text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00b2":function(t,e,n){"use strict";const i={activeTopic:"",activeParcelLayer:"",clickCoords:null,shouldShowAddressCandidateList:!1,geocode:{status:null,data:null,input:null,related:null},ownerSearch:{status:null,data:null,input:null},searchType:"address",lastSearchMethod:"geocode",modals:{keys:[],open:""},selectedServices:[],selectedKeywords:[]},r={createSources(t){console.log("createSources is running, config:",t);const e=Object.keys(t.dataSources||{}),n=e.reduce((e,n)=>{let i;return i=t.dataSources[n].targets?{targets:{}}:{status:null,secondaryStatus:null,data:null},e[n]=i,e},{});return n},createPinSources(t){console.log("createSources is running, config:",t);const e=Object.keys(t.pinSources||{}),n=e.reduce((e,n)=>{let i;return i=t.pinSources[n].targets?{targets:{}}:{status:null,secondaryStatus:null,data:null},e[n]=i,e},{});return n},createParcels(t){const e=Object.keys(t.parcels||{}),n=e.reduce((e,n)=>{let i;return i=t.parcels[n].multipleAllowed?{data:[],status:null,activeParcel:null,activeAddress:null,activeMapreg:null}:null,e[n]=i,e},{});return n},store:{state:i,mutations:{setSelectedServices(t,e){t.selectedServices=e},setSelectedKeywords(t,e){t.selectedKeywords=e},setSearchType(t,e){t.searchType=e},setActiveParcelLayer(t,e){t.activeParcelLayer=e},setActiveTopic(t,e){t.activeTopic=e},setClickCoords(t,e){t.clickCoords=e},setSourceStatus(t,e){console.log("setSourceStatus is running, payload:",e,"state",t);const n=e.key,i=e.status,r=e.targetId;r?t.sources[n].targets[r].status=i:Object.keys(t.sources).includes(e.key)?t.sources[n].status=i:t.pinSources[n].status=i},setSecondarySourceStatus(t,e){const n=e.key,i=e.secondaryStatus;e.targetId;t.sources[n].secondaryStatus=i},setSourceData(t,e){const n=e.key,i=e.data,r=e.targetId;r?t.sources[n].targets[r]&&(t.sources[n].targets[r].data=i):Object.keys(t.sources).includes(e.key)?t.sources[n].data=i:t.pinSources[n].data=i},setSourceDataMore(t,e){const n=e.key,i=e.data,r=e.page,o=t.sources[n].data,s=o.features.concat(i.features);t.sources[n].data.features=s,t.sources[n].data.page=r},createEmptySourceTargets(t,e){const{key:n,targetIds:i}=e;t.sources[n].targets=i.reduce((t,e)=>{return t[e]={status:null,data:null},t},{})},clearSourceTargets(t,e){const n=e.key;t.sources[n].targets={}},setMapCenter(t,e){t.map.center=e},setMapZoom(t,e){t.map.zoom=e},setParcelData(t,e){const{parcelLayer:n,data:i,multipleAllowed:r,status:o,activeParcel:s,activeAddress:a,activeMapreg:u}=e||{};r?(t.parcels[n].data=i,t.parcels[n].status=o,t.parcels[n].activeParcel=s,t.parcels[n].activeAddress=a,t.parcels[n].activeMapreg=u):t.parcels[n]=i},setLastSearchMethod(t,e){t.lastSearchMethod=e},setGeocodeStatus(t,e){t.geocode.status=e},setGeocodeData(t,e){t.geocode.data=e},setGeocodeRelated(t,e){t.geocode.related=e},setGeocodeInput(t,e){t.geocode.input=e},setOwnerSearchStatus(t,e){t.ownerSearch.status=e},setOwnerSearchData(t,e){t.ownerSearch.data=e},setOwnerSearchInput(t,e){t.ownerSearch.input=e},setBasemap(t,e){t.map.basemap=e},setImagery(t,e){t.map.imagery=e},setShouldShowImagery(t,e){t.map.shouldShowImagery=e},setShouldShowAddressCandidateList(t,e){t.shouldShowAddressCandidateList=e},setDidToggleModal(t,e){t.modals.open=e}}}};e["a"]=r},"014b":function(t,e,n){"use strict";var i=n("e53d"),r=n("07e3"),o=n("8e60"),s=n("63b6"),a=n("9138"),u=n("ebfd").KEY,c=n("294c"),h=n("dbdb"),l=n("45f2"),f=n("62a0"),p=n("5168"),d=n("ccb9"),g=n("6718"),m=n("47ee"),y=n("9003"),_=n("e4ae"),v=n("f772"),b=n("241e"),x=n("36c3"),w=n("1bc3"),M=n("aebd"),S=n("a159"),E=n("0395"),C=n("bf0b"),I=n("9aa9"),L=n("d9f6"),O=n("c3a1"),T=C.f,P=L.f,N=E.f,A=i.Symbol,R=i.JSON,D=R&&R.stringify,k="prototype",F=p("_hidden"),z=p("toPrimitive"),j={}.propertyIsEnumerable,B=h("symbol-registry"),G=h("symbols"),q=h("op-symbols"),U=Object[k],V="function"==typeof A&&!!I.f,Z=i.QObject,H=!Z||!Z[k]||!Z[k].findChild,$=o&&c(function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=T(U,e);i&&delete U[e],P(t,e,n),i&&t!==U&&P(U,e,i)}:P,Y=function(t){var e=G[t]=S(A[k]);return e._k=t,e},W=V&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},X=function(t,e,n){return t===U&&X(q,e,n),_(t),e=w(e,!0),_(n),r(G,e)?(n.enumerable?(r(t,F)&&t[F][e]&&(t[F][e]=!1),n=S(n,{enumerable:M(0,!1)})):(r(t,F)||P(t,F,M(1,{})),t[F][e]=!0),$(t,e,n)):P(t,e,n)},K=function(t,e){_(t);var n,i=m(e=x(e)),r=0,o=i.length;while(o>r)X(t,n=i[r++],e[n]);return t},J=function(t,e){return void 0===e?S(t):K(S(t),e)},Q=function(t){var e=j.call(this,t=w(t,!0));return!(this===U&&r(G,t)&&!r(q,t))&&(!(e||!r(this,t)||!r(G,t)||r(this,F)&&this[F][t])||e)},tt=function(t,e){if(t=x(t),e=w(e,!0),t!==U||!r(G,e)||r(q,e)){var n=T(t,e);return!n||!r(G,e)||r(t,F)&&t[F][e]||(n.enumerable=!0),n}},et=function(t){var e,n=N(x(t)),i=[],o=0;while(n.length>o)r(G,e=n[o++])||e==F||e==u||i.push(e);return i},nt=function(t){var e,n=t===U,i=N(n?q:x(t)),o=[],s=0;while(i.length>s)!r(G,e=i[s++])||n&&!r(U,e)||o.push(G[e]);return o};V||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(q,n),r(this,F)&&r(this[F],t)&&(this[F][t]=!1),$(this,t,M(1,n))};return o&&H&&$(U,t,{configurable:!0,set:e}),Y(t)},a(A[k],"toString",function(){return this._k}),C.f=tt,L.f=X,n("6abf").f=E.f=et,n("355d").f=Q,I.f=nt,o&&!n("b8e3")&&a(U,"propertyIsEnumerable",Q,!0),d.f=function(t){return Y(p(t))}),s(s.G+s.W+s.F*!V,{Symbol:A});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)p(it[rt++]);for(var ot=O(p.store),st=0;ot.length>st;)g(ot[st++]);s(s.S+s.F*!V,"Symbol",{for:function(t){return r(B,t+="")?B[t]:B[t]=A(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),s(s.S+s.F*!V,"Object",{create:J,defineProperty:X,defineProperties:K,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var at=c(function(){I.f(1)});s(s.S+s.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(b(t))}}),R&&s(s.S+s.F*(!V||c(function(){var t=A();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){var e,n,i=[t],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=e=i[1],(v(e)||void 0!==t)&&!W(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!W(e))return e}),i[1]=e,D.apply(R,i)}}),A[k][z]||n("35e8")(A[k],z,A[k].valueOf),l(A,"Symbol"),l(Math,"Math",!0),l(i.JSON,"JSON",!0)},"0157":function(t,e,n){var i=n("662a");function r(t){return i(new Date,t)}t.exports=r},"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),u=n("41a0"),c=n("7f20"),h=n("38fd"),l=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",g="values",m=function(){return this};t.exports=function(t,e,n,y,_,v,b){u(n,e,y);var x,w,M,S=function(t){if(!f&&t in L)return L[t];switch(t){case d:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",C=_==g,I=!1,L=t.prototype,O=L[l]||L[p]||_&&L[_],T=O||S(_),P=_?C?S("entries"):T:void 0,N="Array"==e&&L.entries||O;if(N&&(M=h(N.call(new t)),M!==Object.prototype&&M.next&&(c(M,E,!0),i||"function"==typeof M[l]||s(M,l,m))),C&&O&&O.name!==g&&(I=!0,T=function(){return O.call(this)}),i&&!b||!f&&!I&&L[l]||s(L,l,T),a[e]=T,a[E]=m,_)if(x={values:C?T:S(g),keys:v?T:S(d),entries:P},b)for(w in x)w in L||o(L,w,x[w]);else r(r.P+r.F*(f||I),e,x);return x}},"0293":function(t,e,n){var i=n("241e"),r=n("53e2");n("ce7e")("getPrototypeOf",function(){return function(t){return r(i(t))}})},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(r(e)),u=i(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"0395":function(t,e,n){var i=n("36c3"),r=n("6abf").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return r(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):r(i(t))}},"061b":function(t,e,n){t.exports=n("fa99")},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0882":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="globe",o=496,s=512,a=[],u="f0ac",c="M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faGlobe=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},"0978":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setHours(0,0,0,0),e}t.exports=r},"097d":function(t,e,n){"use strict";var i=n("5ca1"),r=n("8378"),o=n("7726"),s=n("ebd6"),a=n("bcaa");i(i.P+i.R,"Promise",{finally:function(t){var e=s(this,r.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},"0a06":function(t,e,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),s=n("5270"),a=n("4a7b");function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=a(this.defaults,t),t.method=t.method?t.method.toLowerCase():"get";var e=[s,void 0],n=Promise.resolve(t);this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});while(e.length)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=a(this.defaults,t),r(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],function(t){u.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){u.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=u},"0b16":function(t,e,n){"use strict";var i=n("9d88"),r=n("35e86");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=x,e.resolve=M,e.resolveObject=S,e.format=w,e.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(c),l=["'"].concat(h),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],d=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n("b383");function x(t,e,n){if(t&&r.isObject(t)&&t instanceof o)return t;var i=new o;return i.parse(t,e,n),i}function w(t){return r.isString(t)&&(t=x(t)),t instanceof o?t.format():o.prototype.format.call(t)}function M(t,e){return x(t,!1,!0).resolve(e)}function S(t,e){return t?x(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,n){if(!r.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o<t.indexOf("#")?"?":"#",c=t.split(a),h=/\\/g;c[0]=c[0].replace(h,"/"),t=c.join(a);var x=t;if(x=x.trim(),!n&&1===t.split("#").length){var w=u.exec(x);if(w)return this.path=x,this.href=x,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?b.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var M=s.exec(x);if(M){M=M[0];var S=M.toLowerCase();this.protocol=S,x=x.substr(M.length)}if(n||M||x.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===x.substr(0,2);!E||M&&_[M]||(x=x.substr(2),this.slashes=!0)}if(!_[M]&&(E||M&&!v[M])){for(var C,I,L=-1,O=0;O<p.length;O++){var T=x.indexOf(p[O]);-1!==T&&(-1===L||T<L)&&(L=T)}I=-1===L?x.lastIndexOf("@"):x.lastIndexOf("@",L),-1!==I&&(C=x.slice(0,I),x=x.slice(I+1),this.auth=decodeURIComponent(C)),L=-1;for(O=0;O<f.length;O++){T=x.indexOf(f[O]);-1!==T&&(-1===L||T<L)&&(L=T)}-1===L&&(L=x.length),this.host=x.slice(0,L),x=x.slice(L),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var N=this.hostname.split(/\./),A=(O=0,N.length);O<A;O++){var R=N[O];if(R&&!R.match(g)){for(var D="",k=0,F=R.length;k<F;k++)R.charCodeAt(k)>127?D+="x":D+=R[k];if(!D.match(g)){var z=N.slice(0,O),j=N.slice(O+1),B=R.match(m);B&&(z.push(B[1]),j.unshift(B[2])),j.length&&(x="/"+j.join(".")+x),this.hostname=z.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=i.toASCII(this.hostname));var G=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+G,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!y[S])for(O=0,A=l.length;O<A;O++){var U=l[O];if(-1!==x.indexOf(U)){var V=encodeURIComponent(U);V===U&&(V=escape(U)),x=x.split(U).join(V)}}var Z=x.indexOf("#");-1!==Z&&(this.hash=x.substr(Z),x=x.slice(0,Z));var H=x.indexOf("?");if(-1!==H?(this.search=x.substr(H),this.query=x.substr(H+1),e&&(this.query=b.parse(this.query)),x=x.slice(0,H)):e&&(this.search="",this.query={}),x&&(this.pathname=x),v[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){G=this.pathname||"";var $=this.search||"";this.path=G+$}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",i=this.hash||"",o=!1,s="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&r.isObject(this.query)&&Object.keys(this.query).length&&(s=b.stringify(this.query));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),i&&"#"!==i.charAt(0)&&(i="#"+i),a&&"?"!==a.charAt(0)&&(a="?"+a),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),a=a.replace("#","%23"),e+o+n+a+i},o.prototype.resolve=function(t){return this.resolveObject(x(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(r.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var n=new o,i=Object.keys(this),s=0;s<i.length;s++){var a=i[s];n[a]=this[a]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),c=0;c<u.length;c++){var h=u[c];"protocol"!==h&&(n[h]=t[h])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!v[t.protocol]){for(var l=Object.keys(t),f=0;f<l.length;f++){var p=l[f];n[p]=t[p]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||_[t.protocol])n.pathname=t.pathname;else{var d=(t.pathname||"").split("/");while(d.length&&!(t.host=d.shift()));t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var g=n.pathname||"",m=n.search||"";n.path=g+m}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),x=b||y||n.host&&t.pathname,w=x,M=n.pathname&&n.pathname.split("/")||[],S=(d=t.pathname&&t.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===M[0]?M[0]=n.host:M.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),x=x&&(""===d[0]||""===M[0])),b)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,M=d;else if(d.length)M||(M=[]),M.pop(),M=M.concat(d),n.search=t.search,n.query=t.query;else if(!r.isNullOrUndefined(t.search)){if(S){n.hostname=n.host=M.shift();var E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");E&&(n.auth=E.shift(),n.host=n.hostname=E.shift())}return n.search=t.search,n.query=t.query,r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!M.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=M.slice(-1)[0],I=(n.host||t.host||M.length>1)&&("."===C||".."===C)||""===C,L=0,O=M.length;O>=0;O--)C=M[O],"."===C?M.splice(O,1):".."===C?(M.splice(O,1),L++):L&&(M.splice(O,1),L--);if(!x&&!w)for(;L--;L)M.unshift("..");!x||""===M[0]||M[0]&&"/"===M[0].charAt(0)||M.unshift(""),I&&"/"!==M.join("/").substr(-1)&&M.push("");var T=""===M[0]||M[0]&&"/"===M[0].charAt(0);if(S){n.hostname=n.host=T?"":M.length?M.shift():"";E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");E&&(n.auth=E.shift(),n.host=n.hostname=E.shift())}return x=x||n.host&&M.length,x&&!T&&M.unshift(""),M.length?n.pathname=M.join("/"):(n.pathname=null,n.path=null),r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},"0b17":function(t,e,n){"use strict";var i=n("283f"),r=n.n(i);r.a},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d3e":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=n.getTime(),o=i(e),s=o.getTime();return r<s?-1:r>s?1:0}t.exports=r},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e2");t.exports=Object.keys||function(t){return i(t,r)}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0fc9":function(t,e,n){var i=n("3a38"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},"10c8":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return n}t.exports=r},1169:function(t,e,n){var i=n("2d95");t.exports=Array.isArray||function(t){return"Array"==i(t)}},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),u=n("c69a"),c=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(n){}if(a(t,e))return r(!i.f.call(t,e),t[e])}},"12fd":function(t,e,n){var i=n("6665");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},"145e":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMilliseconds(999),e}t.exports=r},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);var n,s=o(e),a=s.length,u=0;while(a>u)i.f(t,n=s[u++],e[n]);return t}},"152a":function(t,e,n){"use strict";var i,r,o=n("e11e"),s={name:"ControlCorner",props:["vSide","hSide"],render:function(t){},methods:{parentMounted:function(t){var e=t.$leafletElement;e._controlCorners[this.vSide+this.hSide]=o["DomUtil"].create("div","leaflet-"+this.vSide+" leaflet-"+this.hSide,e._controlContainer)}}},a=s,u=(n("9331"),n("2877")),c=Object(u["a"])(a,i,r,!1,null,null,null);e["a"]=c.exports},"158b":function(t,e,n){var i=n("c8d5"),r=n("3814");function o(t,e){var n=i(t),o=Number(e),s=Math.floor(n.getMonth()/3)+1,a=o-s;return r(n,n.getMonth()+3*a)}t.exports=o},1654:function(t,e,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},"166e":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});n("cd1f");function i(t){if(!t)throw new Error("coord is required");if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates;if(Array.isArray(t)&&t.length>=2&&void 0===t[0].length&&void 0===t[1].length)return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function r(t){if(!t)throw new Error("coords is required");if("Feature"===t.type&&null!==t.geometry)return t.geometry.coordinates;if(t.coordinates)return t.coordinates;if(Array.isArray(t))return t;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"16a6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="filter",o=512,s=512,a=[],u="f0b0",c="M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faFilter=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},"17cd":function(t,e,n){var i=n("c8d5"),r=n("b2e9"),o=n("0d3e");function s(t,e){var n=i(t),s=i(e),a=o(n,s),u=Math.abs(r(n,s));n.setMonth(n.getMonth()-a*u);var c=o(n,s)===-a;return a*(u-c)}t.exports=s},"18b7":function(t,e,n){var i=n("72b7");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},1991:function(t,e,n){var i,r,o,s=n("9b43"),a=n("31f4"),u=n("fab2"),c=n("230e"),h=n("7726"),l=h.process,f=h.setImmediate,p=h.clearImmediate,d=h.MessageChannel,g=h.Dispatch,m=0,y={},_="onreadystatechange",v=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){v.call(t.data)};f&&p||(f=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return y[++m]=function(){a("function"==typeof t?t:Function(t),e)},i(m),m},p=function(t){delete y[t]},"process"==n("2d95")(l)?i=function(t){l.nextTick(s(v,t,1))}:g&&g.now?i=function(t){g.now(s(v,t,1))}:d?(r=new d,o=r.port2,r.port1.onmessage=b,i=s(o.postMessage,o,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(i=function(t){h.postMessage(t+"","*")},h.addEventListener("message",b,!1)):i=_ in c("script")?function(t){u.appendChild(c("script"))[_]=function(){u.removeChild(this),v.call(t)}}:function(t){setTimeout(s(v,t,1),0)}),t.exports={set:f,clear:p}},"1a84":function(t,e,n){var i=n("c8d5");function r(){var t=Array.prototype.slice.call(arguments),e=t.map(function(t){return i(t)}),n=Math.min.apply(null,e);return new Date(n)}t.exports=r},"1adf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="search",o=512,s=512,a=[],u="f002",c="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faSearch=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},"1af6":function(t,e,n){var i=n("63b6");i(i.S,"Array",{isArray:n("9003")})},"1baf":function(t,e,n){var i=n("c7ce");function r(t,e,n){var r=i(t,n),o=i(e,n);return r.getTime()===o.getTime()}t.exports=r},"1bc3":function(t,e,n){var i=n("f772");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"1cc6":function(t,e,n){var i=n("ec1f"),r=36e5;function o(t,e){var n=Number(e);return i(t,n*r)}t.exports=o},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},"1df8":function(t,e,n){var i=n("63b6");i(i.S,"Object",{setPrototypeOf:n("ead6").set})},"1ec9":function(t,e,n){var i=n("f772"),r=n("e53d").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"1f42":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"leaflet-bar easy-button-container leaflet-control"},[n("button",{on:{click:t.handleBasemapToggleControlClick}},[n("span",{staticClass:"button-state state-unnamed-state unnamed-state-active"},[n("img",{staticClass:"button-image",attrs:{src:t.toggleButtonImgSrc}})])])])},r=[],o=n("f0a4"),s=(o["a"].props,o["a"].methods),a={name:"BasemapToggleControl",props:["position"],computed:{toggleButtonImgSrc:function(){var t,e=this.$store.state.map.shouldShowBasemapSelectControl;return t=e?"images/basemap_small.png":"images/imagery_small.png",t}},methods:Object.assign(s,{handleBasemapToggleControlClick:function(t){var e=this.$store.state.map.shouldShowBasemapSelectControl,n=!e;this.$store.commit("setShouldShowBasemapSelectControl",n)}})},u=a,c=(n("0b17"),n("2877")),h=Object(c["a"])(u,i,r,!1,null,"3f9dd47f",null);e["a"]=h.exports},"1f72":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowBasemapSelectControl,expression:"shouldShowBasemapSelectControl"}]},[n("select",{attrs:{id:"year-select"},on:{change:t.handleImageryChange}},t._l(t.imageryTypes,function(e,i){return n("optgroup",{attrs:{label:e.label}},t._l(t.basemapsForImageryType(i),function(e){return n("option",{attrs:{"data-key":e.key}},[t._v("\n        "+t._s(e.label)+"\n      ")])}),0)}),0)])},r=[],o=(n("ac6a"),n("456d"),n("a481"),n("f0a4")),s=(o["a"].props,o["a"].methods),a={name:"BasemapSelectControl",props:["position"],computed:{shouldShowBasemapSelectControl:function(){return this.$store.state.map.shouldShowBasemapSelectControl},imageryTypes:function(){return this.$config.map.imageryTypes},currentImagery:function(){return this.$store.state.map.imagery}},watch:{currentImagery:function(t){var e=t.replace(/\D/g,""),n=document.getElementById("year-select");n.value=e}},methods:Object.assign(s,{handleImageryChange:function(){var t=document.getElementById("year-select");console.log("el:",t,"el.options:",t.options,"el.selectedIndex:",t.selectedIndex);var e=t.options[t.selectedIndex].parentElement.label,n=t.options[t.selectedIndex].value,i=e.toLowerCase()+n;this.$store.commit("setImagery",i)},basemapsForImageryType:function(t){for(var e=this.$config.map.basemaps,n=Object.keys(e),i=[],r=0,o=n;r<o.length;r++){var s=o[r],a=e[s],u=a.type;if(u===t){var c=a.label;i.push({type:u,label:c})}}return i}})},u=a,c=n("2877"),h=Object(c["a"])(u,i,r,!1,null,"451b294a",null);e["a"]=h.exports},"1fa8":function(t,e,n){var i=n("cb7c");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(s){var o=t["return"];throw void 0!==o&&i(o.call(t)),s}}},"20b1":function(t,e,n){var i=n("0978");function r(t){var e=new Date;return e.setDate(e.getDate()+1),i(t).getTime()===i(e).getTime()}t.exports=r},"20fd":function(t,e,n){"use strict";var i=n("d9f6"),r=n("aebd");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),u=n("520a"),c=a("species"),h=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=a(t),p=!o(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),d=p?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e}):void 0;if(!p||!d||"replace"===t&&!h||"split"===t&&!l){var g=/./[f],m=n(s,f,""[t],function(t,e,n,i,r){return e.exec===u?p&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),y=m[0],_=m[1];i(String.prototype,t,y),r(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},"21f3":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="map-marker-alt",o=384,s=512,a=[],u="f3c5",c="M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faMapMarkerAlt=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},2299:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMilliseconds(0),e}t.exports=r},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"231c":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getSeconds();return n}t.exports=r},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},"241e":function(t,e,n){var i=n("25eb");t.exports=function(t){return Object(i(t))}},2444:function(t,e,n){"use strict";(function(e){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function a(){var t;return"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e)?t=n("b50d"):"undefined"!==typeof XMLHttpRequest&&(t=n("b50d")),t}var u={adapter:a(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(t){u.headers[t]={}}),i.forEach(["post","put","patch"],function(t){u.headers[t]=i.merge(o)}),t.exports=u}).call(this,n("f28c"))},2507:function(t,e,n){var i=n("c8d5");function r(t){return 1===i(t).getDay()}t.exports=r},"25b0":function(t,e,n){n("1df8"),t.exports=n("584a").Object.setPrototypeOf},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"268f":function(t,e,n){t.exports=n("fde4")},"26d5":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getFullYear()===r.getFullYear()}t.exports=r},"271a":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMinutes(59,59,999),e}t.exports=r},"27a1":function(t,e,n){var i=n("8964"),r=n("9706");function o(t,e){var n=Number(e);return r(t,i(t)+n)}t.exports=o},"27ee":function(t,e,n){var i=n("23c6"),r=n("2b4c")("iterator"),o=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},"283f":function(t,e,n){},2877:function(t,e,n){"use strict";function i(t,e,n,i,r,o,s,a){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):r&&(u=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(c.functional){c._injectStyles=u;var h=c.render;c.render=function(t,e){return u.call(e),h(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:c}}n.d(e,"a",function(){return i})},28770:function(t,e,n){"use strict";function i(t){if(!t)throw new Error("geojson is required");switch(t.type){case"Feature":return r(t);case"FeatureCollection":return s(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return a(t);default:throw new Error("unknown GeoJSON type")}}function r(t){var e={type:"Feature"};return Object.keys(t).forEach(function(n){switch(n){case"type":case"properties":case"geometry":return;default:e[n]=t[n]}}),e.properties=o(t.properties),e.geometry=a(t.geometry),e}function o(t){var e={};return t?(Object.keys(t).forEach(function(n){var i=t[n];"object"===typeof i?null===i?e[n]=null:i.length?e[n]=i.map(function(t){return t}):e[n]=o(i):e[n]=i}),e):e}function s(t){var e={type:"FeatureCollection"};return Object.keys(t).forEach(function(n){switch(n){case"type":case"features":return;default:e[n]=t[n]}}),e.features=t.features.map(function(t){return r(t)}),e}function a(t){var e={type:t.type};return t.bbox&&(e.bbox=t.bbox),"GeometryCollection"===t.type?(e.geometries=t.geometries.map(function(t){return a(t)}),e):(e.coordinates=u(t.coordinates),e)}function u(t){return"object"!==typeof t[0]?t.slice():t.map(function(t){return u(t)})}e["a"]=i},"28a5":function(t,e,n){"use strict";var i=n("aae3"),r=n("cb7c"),o=n("ebd6"),s=n("0390"),a=n("9def"),u=n("5f1b"),c=n("520a"),h=n("79e5"),l=Math.min,f=[].push,p="split",d="length",g="lastIndex",m=4294967295,y=!h(function(){RegExp(m,"y")});n("214f")("split",2,function(t,e,n,h){var _;return _="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[d]||2!="ab"[p](/(?:ab)*/)[d]||4!="."[p](/(.?)(.?)/)[d]||"."[p](/()()/)[d]>1||""[p](/.?/)[d]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);var o,s,a,u=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,p=void 0===e?m:e>>>0,y=new RegExp(t.source,h+"g");while(o=c.call(y,r)){if(s=y[g],s>l&&(u.push(r.slice(l,o.index)),o[d]>1&&o.index<r[d]&&f.apply(u,o.slice(1)),a=o[0][d],l=s,u[d]>=p))break;y[g]===o.index&&y[g]++}return l===r[d]?!a&&y.test("")||u.push(""):u.push(r.slice(l)),u[d]>p?u.slice(0,p):u}:"0"[p](void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r,i):_.call(String(r),n,i)},function(t,e){var i=h(_,t,this,e,_!==n);if(i.done)return i.value;var c=r(t),f=String(this),p=o(c,RegExp),d=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(y?"y":"g"),v=new p(y?c:"^(?:"+c.source+")",g),b=void 0===e?m:e>>>0;if(0===b)return[];if(0===f.length)return null===u(v,f)?[f]:[];var x=0,w=0,M=[];while(w<f.length){v.lastIndex=y?w:0;var S,E=u(v,y?f:f.slice(w));if(null===E||(S=l(a(v.lastIndex+(y?0:w)),f.length))===x)w=s(f,w,d);else{if(M.push(f.slice(x,w)),M.length===b)return M;for(var C=1;C<=E.length-1;C++)if(M.push(E[C]),M.length===b)return M;w=x=S}}return M.push(f.slice(x)),M}]})},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2a80":function(t,e,n){var i=n("9aaa");function r(t){return i(new Date,t)}t.exports=r},"2a9c":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getFullYear()-r.getFullYear()}t.exports=r},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),u="toString",c=(""+a).split(u);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(u&&(o(n,s)||r(n,s,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:a?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[s]||a.call(this)})},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),o=n("e11e2"),s=n("613b")("IE_PROTO"),a=function(){},u="prototype",c=function(){var t,e=n("230e")("iframe"),i=o.length,r="<",s=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),c=t.F;while(i--)delete c[u][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=i(t),n=new a,a[u]=null,n[s]=t):n=c(),void 0===e?n:r(n,e)}},"2b0e":function(t,e,n){"use strict";(function(t){
  /*!
   * Vue.js v2.6.10
   * (c) 2014-2019 Evan You
   * Released under the MIT License.
   */
  var n=Object.freeze({});function i(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function o(t){return!0===t}function s(t){return!1===t}function a(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function u(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function h(t){return"[object Object]"===c.call(t)}function l(t){return"[object RegExp]"===c.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return r(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||h(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}m("slot,component",!0);var y=m("key,ref,slot,slot-scope,is");function _(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var v=Object.prototype.hasOwnProperty;function b(t,e){return v.call(t,e)}function x(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var w=/-(\w)/g,M=x(function(t){return t.replace(w,function(t,e){return e?e.toUpperCase():""})}),S=x(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),E=/\B([A-Z])/g,C=x(function(t){return t.replace(E,"-$1").toLowerCase()});function I(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function L(t,e){return t.bind(e)}var O=Function.prototype.bind?L:I;function T(t,e){e=e||0;var n=t.length-e,i=new Array(n);while(n--)i[n]=t[n+e];return i}function P(t,e){for(var n in e)t[n]=e[n];return t}function N(t){for(var e={},n=0;n<t.length;n++)t[n]&&P(e,t[n]);return e}function A(t,e,n){}var R=function(t,e,n){return!1},D=function(t){return t};function k(t,e){if(t===e)return!0;var n=u(t),i=u(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every(function(t,n){return k(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every(function(n){return k(t[n],e[n])})}catch(c){return!1}}function F(t,e){for(var n=0;n<t.length;n++)if(k(t[n],e))return n;return-1}function z(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var j="data-server-rendered",B=["component","directive","filter"],G=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:R,isReservedAttr:R,isUnknownElement:R,getTagNamespace:A,parsePlatformTagName:D,mustUseProp:R,async:!0,_lifecycleHooks:G},U=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function Z(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var H=new RegExp("[^"+U.source+".$_\\d]");function $(t){if(!H.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Y,W="__proto__"in{},X="undefined"!==typeof window,K="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=K&&WXEnvironment.platform.toLowerCase(),Q=X&&window.navigator.userAgent.toLowerCase(),tt=Q&&/msie|trident/.test(Q),et=Q&&Q.indexOf("msie 9.0")>0,nt=Q&&Q.indexOf("edge/")>0,it=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),rt=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,st=!1;if(X)try{var at={};Object.defineProperty(at,"passive",{get:function(){st=!0}}),window.addEventListener("test-passive",null,at)}catch(Ms){}var ut=function(){return void 0===Y&&(Y=!X&&!K&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ct=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ht(t){return"function"===typeof t&&/native code/.test(t.toString())}var lt,ft="undefined"!==typeof Symbol&&ht(Symbol)&&"undefined"!==typeof Reflect&&ht(Reflect.ownKeys);lt="undefined"!==typeof Set&&ht(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var pt=A,dt=0,gt=function(){this.id=dt++,this.subs=[]};gt.prototype.addSub=function(t){this.subs.push(t)},gt.prototype.removeSub=function(t){_(this.subs,t)},gt.prototype.depend=function(){gt.target&&gt.target.addDep(this)},gt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},gt.target=null;var mt=[];function yt(t){mt.push(t),gt.target=t}function _t(){mt.pop(),gt.target=mt[mt.length-1]}var vt=function(t,e,n,i,r,o,s,a){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},bt={child:{configurable:!0}};bt.child.get=function(){return this.componentInstance},Object.defineProperties(vt.prototype,bt);var xt=function(t){void 0===t&&(t="");var e=new vt;return e.text=t,e.isComment=!0,e};function wt(t){return new vt(void 0,void 0,void 0,String(t))}function Mt(t){var e=new vt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var St=Array.prototype,Et=Object.create(St),Ct=["push","pop","shift","unshift","splice","sort","reverse"];Ct.forEach(function(t){var e=St[t];Z(Et,t,function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var r,o=e.apply(this,n),s=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&s.observeArray(r),s.dep.notify(),o})});var It=Object.getOwnPropertyNames(Et),Lt=!0;function Ot(t){Lt=t}var Tt=function(t){this.value=t,this.dep=new gt,this.vmCount=0,Z(t,"__ob__",this),Array.isArray(t)?(W?Pt(t,Et):Nt(t,Et,It),this.observeArray(t)):this.walk(t)};function Pt(t,e){t.__proto__=e}function Nt(t,e,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];Z(t,o,e[o])}}function At(t,e){var n;if(u(t)&&!(t instanceof vt))return b(t,"__ob__")&&t.__ob__ instanceof Tt?n=t.__ob__:Lt&&!ut()&&(Array.isArray(t)||h(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Tt(t)),e&&n&&n.vmCount++,n}function Rt(t,e,n,i,r){var o=new gt,s=Object.getOwnPropertyDescriptor(t,e);if(!s||!1!==s.configurable){var a=s&&s.get,u=s&&s.set;a&&!u||2!==arguments.length||(n=t[e]);var c=!r&&At(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return gt.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&Ft(e))),e},set:function(e){var i=a?a.call(t):n;e===i||e!==e&&i!==i||a&&!u||(u?u.call(t,e):n=e,c=!r&&At(e),o.notify())}})}}function Dt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?n:i?(Rt(i.value,e,n),i.dep.notify(),n):(t[e]=n,n)}function kt(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||b(t,e)&&(delete t[e],n&&n.dep.notify())}}function Ft(t){for(var e=void 0,n=0,i=t.length;n<i;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Ft(e)}Tt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Rt(t,e[n])},Tt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)At(t[e])};var zt=q.optionMergeStrategies;function jt(t,e){if(!e)return t;for(var n,i,r,o=ft?Reflect.ownKeys(e):Object.keys(e),s=0;s<o.length;s++)n=o[s],"__ob__"!==n&&(i=t[n],r=e[n],b(t,n)?i!==r&&h(i)&&h(r)&&jt(i,r):Dt(t,n,r));return t}function Bt(t,e,n){return n?function(){var i="function"===typeof e?e.call(n,n):e,r="function"===typeof t?t.call(n,n):t;return i?jt(i,r):r}:e?t?function(){return jt("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Gt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?qt(n):n}function qt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Ut(t,e,n,i){var r=Object.create(t||null);return e?P(r,e):r}zt.data=function(t,e,n){return n?Bt(t,e,n):e&&"function"!==typeof e?t:Bt(t,e)},G.forEach(function(t){zt[t]=Gt}),B.forEach(function(t){zt[t+"s"]=Ut}),zt.watch=function(t,e,n,i){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var r={};for(var o in P(r,t),e){var s=r[o],a=e[o];s&&!Array.isArray(s)&&(s=[s]),r[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return r},zt.props=zt.methods=zt.inject=zt.computed=function(t,e,n,i){if(!t)return e;var r=Object.create(null);return P(r,t),e&&P(r,e),r},zt.provide=Bt;var Vt=function(t,e){return void 0===e?t:e};function Zt(t,e){var n=t.props;if(n){var i,r,o,s={};if(Array.isArray(n)){i=n.length;while(i--)r=n[i],"string"===typeof r&&(o=M(r),s[o]={type:null})}else if(h(n))for(var a in n)r=n[a],o=M(a),s[o]=h(r)?r:{type:r};else 0;t.props=s}}function Ht(t,e){var n=t.inject;if(n){var i=t.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(h(n))for(var o in n){var s=n[o];i[o]=h(s)?P({from:o},s):{from:s}}else 0}}function $t(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"===typeof i&&(e[n]={bind:i,update:i})}}function Yt(t,e,n){if("function"===typeof e&&(e=e.options),Zt(e,n),Ht(e,n),$t(e),!e._base&&(e.extends&&(t=Yt(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=Yt(t,e.mixins[i],n);var o,s={};for(o in t)a(o);for(o in e)b(t,o)||a(o);function a(i){var r=zt[i]||Vt;s[i]=r(t[i],e[i],n,i)}return s}function Wt(t,e,n,i){if("string"===typeof n){var r=t[e];if(b(r,n))return r[n];var o=M(n);if(b(r,o))return r[o];var s=S(o);if(b(r,s))return r[s];var a=r[n]||r[o]||r[s];return a}}function Xt(t,e,n,i){var r=e[t],o=!b(n,t),s=n[t],a=te(Boolean,r.type);if(a>-1)if(o&&!b(r,"default"))s=!1;else if(""===s||s===C(t)){var u=te(String,r.type);(u<0||a<u)&&(s=!0)}if(void 0===s){s=Kt(i,r,t);var c=Lt;Ot(!0),At(s),Ot(c)}return s}function Kt(t,e,n){if(b(e,"default")){var i=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof i&&"Function"!==Jt(e.type)?i.call(t):i}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Qt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Qt(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(Qt(e[n],t))return n;return-1}function ee(t,e,n){yt();try{if(e){var i=e;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var s=!1===r[o].call(i,t,e,n);if(s)return}catch(Ms){ie(Ms,i,"errorCaptured hook")}}}ie(t,e,n)}finally{_t()}}function ne(t,e,n,i,r){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&p(o)&&!o._handled&&(o.catch(function(t){return ee(t,i,r+" (Promise/async)")}),o._handled=!0)}catch(Ms){ee(Ms,i,r)}return o}function ie(t,e,n){if(q.errorHandler)try{return q.errorHandler.call(null,t,e,n)}catch(Ms){Ms!==t&&re(Ms,null,"config.errorHandler")}re(t,e,n)}function re(t,e,n){if(!X&&!K||"undefined"===typeof console)throw t;console.error(t)}var oe,se=!1,ae=[],ue=!1;function ce(){ue=!1;var t=ae.slice(0);ae.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ht(Promise)){var he=Promise.resolve();oe=function(){he.then(ce),it&&setTimeout(A)},se=!0}else if(tt||"undefined"===typeof MutationObserver||!ht(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&&ht(setImmediate)?function(){setImmediate(ce)}:function(){setTimeout(ce,0)};else{var le=1,fe=new MutationObserver(ce),pe=document.createTextNode(String(le));fe.observe(pe,{characterData:!0}),oe=function(){le=(le+1)%2,pe.data=String(le)},se=!0}function de(t,e){var n;if(ae.push(function(){if(t)try{t.call(e)}catch(Ms){ee(Ms,e,"nextTick")}else n&&n(e)}),ue||(ue=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise(function(t){n=t})}var ge=new lt;function me(t){ye(t,ge),ge.clear()}function ye(t,e){var n,i,r=Array.isArray(t);if(!(!r&&!u(t)||Object.isFrozen(t)||t instanceof vt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(r){n=t.length;while(n--)ye(t[n],e)}else{i=Object.keys(t),n=i.length;while(n--)ye(t[i[n]],e)}}}var _e=x(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var i="!"===t.charAt(0);return t=i?t.slice(1):t,{name:t,once:n,capture:i,passive:e}});function ve(t,e){function n(){var t=arguments,i=n.fns;if(!Array.isArray(i))return ne(i,null,arguments,e,"v-on handler");for(var r=i.slice(),o=0;o<r.length;o++)ne(r[o],null,t,e,"v-on handler")}return n.fns=t,n}function be(t,e,n,r,s,a){var u,c,h,l;for(u in t)c=t[u],h=e[u],l=_e(u),i(c)||(i(h)?(i(c.fns)&&(c=t[u]=ve(c,a)),o(l.once)&&(c=t[u]=s(l.name,c,l.capture)),n(l.name,c,l.capture,l.passive,l.params)):c!==h&&(h.fns=c,t[u]=h));for(u in e)i(t[u])&&(l=_e(u),r(l.name,e[u],l.capture))}function xe(t,e,n){var s;t instanceof vt&&(t=t.data.hook||(t.data.hook={}));var a=t[e];function u(){n.apply(this,arguments),_(s.fns,u)}i(a)?s=ve([u]):r(a.fns)&&o(a.merged)?(s=a,s.fns.push(u)):s=ve([a,u]),s.merged=!0,t[e]=s}function we(t,e,n){var o=e.options.props;if(!i(o)){var s={},a=t.attrs,u=t.props;if(r(a)||r(u))for(var c in o){var h=C(c);Me(s,u,c,h,!0)||Me(s,a,c,h,!1)}return s}}function Me(t,e,n,i,o){if(r(e)){if(b(e,n))return t[n]=e[n],o||delete e[n],!0;if(b(e,i))return t[n]=e[i],o||delete e[i],!0}return!1}function Se(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Ee(t){return a(t)?[wt(t)]:Array.isArray(t)?Ie(t):void 0}function Ce(t){return r(t)&&r(t.text)&&s(t.isComment)}function Ie(t,e){var n,s,u,c,h=[];for(n=0;n<t.length;n++)s=t[n],i(s)||"boolean"===typeof s||(u=h.length-1,c=h[u],Array.isArray(s)?s.length>0&&(s=Ie(s,(e||"")+"_"+n),Ce(s[0])&&Ce(c)&&(h[u]=wt(c.text+s[0].text),s.shift()),h.push.apply(h,s)):a(s)?Ce(c)?h[u]=wt(c.text+s):""!==s&&h.push(wt(s)):Ce(s)&&Ce(c)?h[u]=wt(c.text+s.text):(o(t._isVList)&&r(s.tag)&&i(s.key)&&r(e)&&(s.key="__vlist"+e+"_"+n+"__"),h.push(s)));return h}function Le(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Oe(t){var e=Te(t.$options.inject,t);e&&(Ot(!1),Object.keys(e).forEach(function(n){Rt(t,n,e[n])}),Ot(!0))}function Te(t,e){if(t){for(var n=Object.create(null),i=ft?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){var s=t[o].from,a=e;while(a){if(a._provided&&b(a._provided,s)){n[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in t[o]){var u=t[o].default;n[o]="function"===typeof u?u.call(e):u}else 0}}return n}}function Pe(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var o=t[i],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,u=n[a]||(n[a]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var c in n)n[c].every(Ne)&&delete n[c];return n}function Ne(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Ae(t,e,i){var r,o=Object.keys(e).length>0,s=t?!!t.$stable:!o,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&i&&i!==n&&a===i.$key&&!o&&!i.$hasNormal)return i;for(var u in r={},t)t[u]&&"$"!==u[0]&&(r[u]=Re(e,u,t[u]))}else r={};for(var c in e)c in r||(r[c]=De(e,c));return t&&Object.isExtensible(t)&&(t._normalized=r),Z(r,"$stable",s),Z(r,"$key",a),Z(r,"$hasNormal",o),r}function Re(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Ee(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function De(t,e){return function(){return t[e]}}function ke(t,e){var n,i,o,s,a;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),i=0,o=t.length;i<o;i++)n[i]=e(t[i],i);else if("number"===typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(u(t))if(ft&&t[Symbol.iterator]){n=[];var c=t[Symbol.iterator](),h=c.next();while(!h.done)n.push(e(h.value,n.length)),h=c.next()}else for(s=Object.keys(t),n=new Array(s.length),i=0,o=s.length;i<o;i++)a=s[i],n[i]=e(t[a],a,i);return r(n)||(n=[]),n._isVList=!0,n}function Fe(t,e,n,i){var r,o=this.$scopedSlots[t];o?(n=n||{},i&&(n=P(P({},i),n)),r=o(n)||e):r=this.$slots[t]||e;var s=n&&n.slot;return s?this.$createElement("template",{slot:s},r):r}function ze(t){return Wt(this.$options,"filters",t,!0)||D}function je(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Be(t,e,n,i,r){var o=q.keyCodes[e]||n;return r&&i&&!q.keyCodes[e]?je(r,i):o?je(o,t):i?C(i)!==e:void 0}function Ge(t,e,n,i,r){if(n)if(u(n)){var o;Array.isArray(n)&&(n=N(n));var s=function(s){if("class"===s||"style"===s||y(s))o=t;else{var a=t.attrs&&t.attrs.type;o=i||q.mustUseProp(e,a,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=M(s),c=C(s);if(!(u in o)&&!(c in o)&&(o[s]=n[s],r)){var h=t.on||(t.on={});h["update:"+s]=function(t){n[s]=t}}};for(var a in n)s(a)}else;return t}function qe(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e?i:(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Ve(i,"__static__"+t,!1),i)}function Ue(t,e,n){return Ve(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ve(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!==typeof t[i]&&Ze(t[i],e+"_"+i,n);else Ze(t,e,n)}function Ze(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function He(t,e){if(e)if(h(e)){var n=t.on=t.on?P({},t.on):{};for(var i in e){var r=n[i],o=e[i];n[i]=r?[].concat(r,o):o}}else;return t}function $e(t,e,n,i){e=e||{$stable:!n};for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?$e(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return i&&(e.$key=i),e}function Ye(t,e){for(var n=0;n<e.length;n+=2){var i=e[n];"string"===typeof i&&i&&(t[e[n]]=e[n+1])}return t}function We(t,e){return"string"===typeof t?e+t:t}function Xe(t){t._o=Ue,t._n=g,t._s=d,t._l=ke,t._t=Fe,t._q=k,t._i=F,t._m=qe,t._f=ze,t._k=Be,t._b=Ge,t._v=wt,t._e=xt,t._u=$e,t._g=He,t._d=Ye,t._p=We}function Ke(t,e,i,r,s){var a,u=this,c=s.options;b(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var h=o(c._compiled),l=!h;this.data=t,this.props=e,this.children=i,this.parent=r,this.listeners=t.on||n,this.injections=Te(c.inject,r),this.slots=function(){return u.$slots||Ae(t.scopedSlots,u.$slots=Pe(i,r)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Ae(t.scopedSlots,this.slots())}}),h&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Ae(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,i){var o=ln(a,t,e,n,i,l);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=r),o}:this._c=function(t,e,n,i){return ln(a,t,e,n,i,l)}}function Je(t,e,i,o,s){var a=t.options,u={},c=a.props;if(r(c))for(var h in c)u[h]=Xt(h,c,e||n);else r(i.attrs)&&tn(u,i.attrs),r(i.props)&&tn(u,i.props);var l=new Ke(i,u,s,o,t),f=a.render.call(null,l._c,l);if(f instanceof vt)return Qe(f,i,l.parent,a,l);if(Array.isArray(f)){for(var p=Ee(f)||[],d=new Array(p.length),g=0;g<p.length;g++)d[g]=Qe(p[g],i,l.parent,a,l);return d}}function Qe(t,e,n,i,r){var o=Mt(t);return o.fnContext=n,o.fnOptions=i,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function tn(t,e){for(var n in e)t[M(n)]=e[n]}Xe(Ke.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var i=t.componentInstance=on(t,Tn);i.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,i=e.componentInstance=t.componentInstance;Dn(i,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,jn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Jn(n):Fn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?zn(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,s,a){if(!i(t)){var c=n.$options._base;if(u(t)&&(t=c.extend(t)),"function"===typeof t){var h;if(i(t.cid)&&(h=t,t=xn(h,c),void 0===t))return bn(h,e,n,s,a);e=e||{},xi(t),r(e.model)&&un(t.options,e);var l=we(e,t,a);if(o(t.options.functional))return Je(t,l,e,n,s);var f=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var p=e.slot;e={},p&&(e.slot=p)}sn(e);var d=t.options.name||a,g=new vt("vue-component-"+t.cid+(d?"-"+d:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:l,listeners:f,tag:a,children:s},h);return g}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new t.componentOptions.Ctor(n)}function sn(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var i=nn[n],r=e[i],o=en[i];r===o||r&&r._merged||(e[i]=r?an(o,r):o)}}function an(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}function un(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),s=o[i],a=e.model.callback;r(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(o[i]=[a].concat(s)):o[i]=a}var cn=1,hn=2;function ln(t,e,n,i,r,s){return(Array.isArray(n)||a(n))&&(r=i,i=n,n=void 0),o(s)&&(r=hn),fn(t,e,n,i,r)}function fn(t,e,n,i,o){if(r(n)&&r(n.__ob__))return xt();if(r(n)&&r(n.is)&&(e=n.is),!e)return xt();var s,a,u;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),o===hn?i=Ee(i):o===cn&&(i=Se(i)),"string"===typeof e)?(a=t.$vnode&&t.$vnode.ns||q.getTagNamespace(e),s=q.isReservedTag(e)?new vt(q.parsePlatformTagName(e),n,i,void 0,void 0,t):n&&n.pre||!r(u=Wt(t.$options,"components",e))?new vt(e,n,i,void 0,void 0,t):rn(u,n,t,i,e)):s=rn(e,n,t,i);return Array.isArray(s)?s:r(s)?(r(a)&&pn(s,a),r(n)&&dn(n),s):xt()}function pn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),r(t.children))for(var s=0,a=t.children.length;s<a;s++){var u=t.children[s];r(u.tag)&&(i(u.ns)||o(n)&&"svg"!==u.tag)&&pn(u,e,n)}}function dn(t){u(t.style)&&me(t.style),u(t.class)&&me(t.class)}function gn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,r=i&&i.context;t.$slots=Pe(e._renderChildren,r),t.$scopedSlots=n,t._c=function(e,n,i,r){return ln(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return ln(t,e,n,i,r,!0)};var o=i&&i.data;Rt(t,"$attrs",o&&o.attrs||n,null,!0),Rt(t,"$listeners",e._parentListeners||n,null,!0)}var mn,yn=null;function _n(t){Xe(t.prototype),t.prototype.$nextTick=function(t){return de(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,r=n._parentVnode;r&&(e.$scopedSlots=Ae(r.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=r;try{yn=e,t=i.call(e._renderProxy,e.$createElement)}catch(Ms){ee(Ms,e,"render"),t=e._vnode}finally{yn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof vt||(t=xt()),t.parent=r,t}}function vn(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?e.extend(t):t}function bn(t,e,n,i,r){var o=xt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}function xn(t,e){if(o(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;var n=yn;if(n&&r(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&r(t.loadingComp))return t.loadingComp;if(n&&!r(t.owners)){var s=t.owners=[n],a=!0,c=null,h=null;n.$on("hook:destroyed",function(){return _(s,n)});var l=function(t){for(var e=0,n=s.length;e<n;e++)s[e].$forceUpdate();t&&(s.length=0,null!==c&&(clearTimeout(c),c=null),null!==h&&(clearTimeout(h),h=null))},f=z(function(n){t.resolved=vn(n,e),a?s.length=0:l(!0)}),d=z(function(e){r(t.errorComp)&&(t.error=!0,l(!0))}),g=t(f,d);return u(g)&&(p(g)?i(t.resolved)&&g.then(f,d):p(g.component)&&(g.component.then(f,d),r(g.error)&&(t.errorComp=vn(g.error,e)),r(g.loading)&&(t.loadingComp=vn(g.loading,e),0===g.delay?t.loading=!0:c=setTimeout(function(){c=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,l(!1))},g.delay||200)),r(g.timeout)&&(h=setTimeout(function(){h=null,i(t.resolved)&&d(null)},g.timeout)))),a=!1,t.loading?t.loadingComp:t.resolved}}function wn(t){return t.isComment&&t.asyncFactory}function Mn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(r(n)&&(r(n.componentOptions)||wn(n)))return n}}function Sn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ln(t,e)}function En(t,e){mn.$on(t,e)}function Cn(t,e){mn.$off(t,e)}function In(t,e){var n=mn;return function i(){var r=e.apply(null,arguments);null!==r&&n.$off(t,i)}}function Ln(t,e,n){mn=t,be(e,n||{},En,Cn,In,t),mn=void 0}function On(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var r=0,o=t.length;r<o;r++)i.$on(t[r],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)n.$off(t[i],e);return n}var o,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;var a=s.length;while(a--)if(o=s[a],o===e||o.fn===e){s.splice(a,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?T(n):n;for(var i=T(arguments,1),r='event handler for "'+t+'"',o=0,s=n.length;o<s;o++)ne(n[o],e,i,e,r)}return e}}var Tn=null;function Pn(t){var e=Tn;return Tn=t,function(){Tn=e}}function Nn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function An(t){t.prototype._update=function(t,e){var n=this,i=n.$el,r=n._vnode,o=Pn(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){jn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||_(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),jn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Rn(t,e,n){var i;return t.$el=e,t.$options.render||(t.$options.render=xt),jn(t,"beforeMount"),i=function(){t._update(t._render(),n)},new ni(t,i,A,{before:function(){t._isMounted&&!t._isDestroyed&&jn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,jn(t,"mounted")),t}function Dn(t,e,i,r,o){var s=r.data.scopedSlots,a=t.$scopedSlots,u=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key),c=!!(o||t.$options._renderChildren||u);if(t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o,t.$attrs=r.data.attrs||n,t.$listeners=i||n,e&&t.$options.props){Ot(!1);for(var h=t._props,l=t.$options._propKeys||[],f=0;f<l.length;f++){var p=l[f],d=t.$options.props;h[p]=Xt(p,d,e,t)}Ot(!0),t.$options.propsData=e}i=i||n;var g=t.$options._parentListeners;t.$options._parentListeners=i,Ln(t,i,g),c&&(t.$slots=Pe(o,r.context),t.$forceUpdate())}function kn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Fn(t,e){if(e){if(t._directInactive=!1,kn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Fn(t.$children[n]);jn(t,"activated")}}function zn(t,e){if((!e||(t._directInactive=!0,!kn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)zn(t.$children[n]);jn(t,"deactivated")}}function jn(t,e){yt();var n=t.$options[e],i=e+" hook";if(n)for(var r=0,o=n.length;r<o;r++)ne(n[r],t,null,t,i);t._hasHookEvent&&t.$emit("hook:"+e),_t()}var Bn=[],Gn=[],qn={},Un=!1,Vn=!1,Zn=0;function Hn(){Zn=Bn.length=Gn.length=0,qn={},Un=Vn=!1}var $n=0,Yn=Date.now;if(X&&!tt){var Wn=window.performance;Wn&&"function"===typeof Wn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Wn.now()})}function Xn(){var t,e;for($n=Yn(),Vn=!0,Bn.sort(function(t,e){return t.id-e.id}),Zn=0;Zn<Bn.length;Zn++)t=Bn[Zn],t.before&&t.before(),e=t.id,qn[e]=null,t.run();var n=Gn.slice(),i=Bn.slice();Hn(),Qn(n),Kn(i),ct&&q.devtools&&ct.emit("flush")}function Kn(t){var e=t.length;while(e--){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&jn(i,"updated")}}function Jn(t){t._inactive=!1,Gn.push(t)}function Qn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Fn(t[e],!0)}function ti(t){var e=t.id;if(null==qn[e]){if(qn[e]=!0,Vn){var n=Bn.length-1;while(n>Zn&&Bn[n].id>t.id)n--;Bn.splice(n+1,0,t)}else Bn.push(t);Un||(Un=!0,de(Xn))}}var ei=0,ni=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ei,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new lt,this.newDepIds=new lt,this.expression="","function"===typeof e?this.getter=e:(this.getter=$(e),this.getter||(this.getter=A)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var t;yt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Ms){if(!this.user)throw Ms;ee(Ms,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),_t(),this.cleanupDeps()}return t},ni.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},ni.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ni.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ti(this)},ni.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Ms){ee(Ms,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},ni.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ni.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},ni.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var ii={enumerable:!0,configurable:!0,get:A,set:A};function ri(t,e,n){ii.get=function(){return this[e][n]},ii.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ii)}function oi(t){t._watchers=[];var e=t.$options;e.props&&si(t,e.props),e.methods&&di(t,e.methods),e.data?ai(t):At(t._data={},!0),e.computed&&hi(t,e.computed),e.watch&&e.watch!==ot&&gi(t,e.watch)}function si(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[],o=!t.$parent;o||Ot(!1);var s=function(o){r.push(o);var s=Xt(o,e,n,t);Rt(i,o,s),o in t||ri(t,"_props",o)};for(var a in e)s(a);Ot(!0)}function ai(t){var e=t.$options.data;e=t._data="function"===typeof e?ui(e,t):e||{},h(e)||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);while(r--){var o=n[r];0,i&&b(i,o)||V(o)||ri(t,"_data",o)}At(e,!0)}function ui(t,e){yt();try{return t.call(e,e)}catch(Ms){return ee(Ms,e,"data()"),{}}finally{_t()}}var ci={lazy:!0};function hi(t,e){var n=t._computedWatchers=Object.create(null),i=ut();for(var r in e){var o=e[r],s="function"===typeof o?o:o.get;0,i||(n[r]=new ni(t,s||A,A,ci)),r in t||li(t,r,o)}}function li(t,e,n){var i=!ut();"function"===typeof n?(ii.get=i?fi(e):pi(n),ii.set=A):(ii.get=n.get?i&&!1!==n.cache?fi(e):pi(n.get):A,ii.set=n.set||A),Object.defineProperty(t,e,ii)}function fi(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),gt.target&&e.depend(),e.value}}function pi(t){return function(){return t.call(this,this)}}function di(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?A:O(e[n],t)}function gi(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)mi(t,n,i[r]);else mi(t,n,i)}}function mi(t,e,n,i){return h(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,i)}function yi(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Dt,t.prototype.$delete=kt,t.prototype.$watch=function(t,e,n){var i=this;if(h(e))return mi(i,t,e,n);n=n||{},n.user=!0;var r=new ni(i,t,e,n);if(n.immediate)try{e.call(i,r.value)}catch(o){ee(o,i,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var _i=0;function vi(t){t.prototype._init=function(t){var e=this;e._uid=_i++,e._isVue=!0,t&&t._isComponent?bi(e,t):e.$options=Yt(xi(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Nn(e),Sn(e),gn(e),jn(e,"beforeCreate"),Oe(e),oi(e),Le(e),jn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function bi(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function xi(t){var e=t.options;if(t.super){var n=xi(t.super),i=t.superOptions;if(n!==i){t.superOptions=n;var r=wi(t);r&&P(t.extendOptions,r),e=t.options=Yt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function wi(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}function Mi(t){this._init(t)}function Si(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Ei(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function Ci(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=t.name||n.options.name;var s=function(t){this._init(t)};return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=e++,s.options=Yt(n.options,t),s["super"]=n,s.options.props&&Ii(s),s.options.computed&&Li(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,B.forEach(function(t){s[t]=n[t]}),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=P({},s.options),r[i]=s,s}}function Ii(t){var e=t.options.props;for(var n in e)ri(t.prototype,"_props",n)}function Li(t){var e=t.options.computed;for(var n in e)li(t.prototype,n,e[n])}function Oi(t){B.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&h(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Ti(t){return t&&(t.Ctor.options.name||t.tag)}function Pi(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function Ni(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var s=n[o];if(s){var a=Ti(s.componentOptions);a&&!e(a)&&Ai(n,o,i,r)}}}function Ai(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,_(n,e)}vi(Mi),yi(Mi),On(Mi),An(Mi),_n(Mi);var Ri=[String,RegExp,Array],Di={name:"keep-alive",abstract:!0,props:{include:Ri,exclude:Ri,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Ai(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Ni(t,function(t){return Pi(e,t)})}),this.$watch("exclude",function(e){Ni(t,function(t){return!Pi(e,t)})})},render:function(){var t=this.$slots.default,e=Mn(t),n=e&&e.componentOptions;if(n){var i=Ti(n),r=this,o=r.include,s=r.exclude;if(o&&(!i||!Pi(o,i))||s&&i&&Pi(s,i))return e;var a=this,u=a.cache,c=a.keys,h=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;u[h]?(e.componentInstance=u[h].componentInstance,_(c,h),c.push(h)):(u[h]=e,c.push(h),this.max&&c.length>parseInt(this.max)&&Ai(u,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},ki={KeepAlive:Di};function Fi(t){var e={get:function(){return q}};Object.defineProperty(t,"config",e),t.util={warn:pt,extend:P,mergeOptions:Yt,defineReactive:Rt},t.set=Dt,t.delete=kt,t.nextTick=de,t.observable=function(t){return At(t),t},t.options=Object.create(null),B.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,P(t.options.components,ki),Si(t),Ei(t),Ci(t),Oi(t)}Fi(Mi),Object.defineProperty(Mi.prototype,"$isServer",{get:ut}),Object.defineProperty(Mi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Mi,"FunctionalRenderContext",{value:Ke}),Mi.version="2.6.10";var zi=m("style,class"),ji=m("input,textarea,option,select,progress"),Bi=function(t,e,n){return"value"===n&&ji(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Gi=m("contenteditable,draggable,spellcheck"),qi=m("events,caret,typing,plaintext-only"),Ui=function(t,e){return Yi(e)||"false"===e?"false":"contenteditable"===t&&qi(e)?e:"true"},Vi=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Zi="http://www.w3.org/1999/xlink",Hi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},$i=function(t){return Hi(t)?t.slice(6,t.length):""},Yi=function(t){return null==t||!1===t};function Wi(t){var e=t.data,n=t,i=t;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(e=Xi(i.data,e));while(r(n=n.parent))n&&n.data&&(e=Xi(e,n.data));return Ki(e.staticClass,e.class)}function Xi(t,e){return{staticClass:Ji(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Ki(t,e){return r(t)||r(e)?Ji(t,Qi(e)):""}function Ji(t,e){return t?e?t+" "+e:t:e||""}function Qi(t){return Array.isArray(t)?tr(t):u(t)?er(t):"string"===typeof t?t:""}function tr(t){for(var e,n="",i=0,o=t.length;i<o;i++)r(e=Qi(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function er(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var nr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ir=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),rr=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),or=function(t){return ir(t)||rr(t)};function sr(t){return rr(t)?"svg":"math"===t?"math":void 0}var ar=Object.create(null);function ur(t){if(!X)return!0;if(or(t))return!1;if(t=t.toLowerCase(),null!=ar[t])return ar[t];var e=document.createElement(t);return t.indexOf("-")>-1?ar[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ar[t]=/HTMLUnknownElement/.test(e.toString())}var cr=m("text,number,password,search,email,tel,url");function hr(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function lr(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function fr(t,e){return document.createElementNS(nr[t],e)}function pr(t){return document.createTextNode(t)}function dr(t){return document.createComment(t)}function gr(t,e,n){t.insertBefore(e,n)}function mr(t,e){t.removeChild(e)}function yr(t,e){t.appendChild(e)}function _r(t){return t.parentNode}function vr(t){return t.nextSibling}function br(t){return t.tagName}function xr(t,e){t.textContent=e}function wr(t,e){t.setAttribute(e,"")}var Mr=Object.freeze({createElement:lr,createElementNS:fr,createTextNode:pr,createComment:dr,insertBefore:gr,removeChild:mr,appendChild:yr,parentNode:_r,nextSibling:vr,tagName:br,setTextContent:xr,setStyleScope:wr}),Sr={create:function(t,e){Er(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Er(t,!0),Er(e))},destroy:function(t){Er(t,!0)}};function Er(t,e){var n=t.data.ref;if(r(n)){var i=t.context,o=t.componentInstance||t.elm,s=i.$refs;e?Array.isArray(s[n])?_(s[n],o):s[n]===o&&(s[n]=void 0):t.data.refInFor?Array.isArray(s[n])?s[n].indexOf(o)<0&&s[n].push(o):s[n]=[o]:s[n]=o}}var Cr=new vt("",{},[]),Ir=["create","activate","update","remove","destroy"];function Lr(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&Or(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function Or(t,e){if("input"!==t.tag)return!0;var n,i=r(n=t.data)&&r(n=n.attrs)&&n.type,o=r(n=e.data)&&r(n=n.attrs)&&n.type;return i===o||cr(i)&&cr(o)}function Tr(t,e,n){var i,o,s={};for(i=e;i<=n;++i)o=t[i].key,r(o)&&(s[o]=i);return s}function Pr(t){var e,n,s={},u=t.modules,c=t.nodeOps;for(e=0;e<Ir.length;++e)for(s[Ir[e]]=[],n=0;n<u.length;++n)r(u[n][Ir[e]])&&s[Ir[e]].push(u[n][Ir[e]]);function h(t){return new vt(c.tagName(t).toLowerCase(),{},[],void 0,t)}function l(t,e){function n(){0===--n.listeners&&f(t)}return n.listeners=e,n}function f(t){var e=c.parentNode(t);r(e)&&c.removeChild(e,t)}function p(t,e,n,i,s,a,u){if(r(t.elm)&&r(a)&&(t=a[u]=Mt(t)),t.isRootInsert=!s,!d(t,e,n,i)){var h=t.data,l=t.children,f=t.tag;r(f)?(t.elm=t.ns?c.createElementNS(t.ns,f):c.createElement(f,t),w(t),v(t,l,e),r(h)&&x(t,e),_(n,t.elm,i)):o(t.isComment)?(t.elm=c.createComment(t.text),_(n,t.elm,i)):(t.elm=c.createTextNode(t.text),_(n,t.elm,i))}}function d(t,e,n,i){var s=t.data;if(r(s)){var a=r(t.componentInstance)&&s.keepAlive;if(r(s=s.hook)&&r(s=s.init)&&s(t,!1),r(t.componentInstance))return g(t,e),_(n,t.elm,i),o(a)&&y(t,e,n,i),!0}}function g(t,e){r(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,b(t)?(x(t,e),w(t)):(Er(t),e.push(t))}function y(t,e,n,i){var o,a=t;while(a.componentInstance)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](Cr,a);e.push(a);break}_(n,t.elm,i)}function _(t,e,n){r(t)&&(r(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function v(t,e,n){if(Array.isArray(e)){0;for(var i=0;i<e.length;++i)p(e[i],n,t.elm,null,!0,e,i)}else a(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function b(t){while(t.componentInstance)t=t.componentInstance._vnode;return r(t.tag)}function x(t,n){for(var i=0;i<s.create.length;++i)s.create[i](Cr,t);e=t.data.hook,r(e)&&(r(e.create)&&e.create(Cr,t),r(e.insert)&&n.push(t))}function w(t){var e;if(r(e=t.fnScopeId))c.setStyleScope(t.elm,e);else{var n=t;while(n)r(e=n.context)&&r(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent}r(e=Tn)&&e!==t.context&&e!==t.fnContext&&r(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function M(t,e,n,i,r,o){for(;i<=r;++i)p(n[i],o,t,e,!1,n,i)}function S(t){var e,n,i=t.data;if(r(i))for(r(e=i.hook)&&r(e=e.destroy)&&e(t),e=0;e<s.destroy.length;++e)s.destroy[e](t);if(r(e=t.children))for(n=0;n<t.children.length;++n)S(t.children[n])}function E(t,e,n,i){for(;n<=i;++n){var o=e[n];r(o)&&(r(o.tag)?(C(o),S(o)):f(o.elm))}}function C(t,e){if(r(e)||r(t.data)){var n,i=s.remove.length+1;for(r(e)?e.listeners+=i:e=l(t.elm,i),r(n=t.componentInstance)&&r(n=n._vnode)&&r(n.data)&&C(n,e),n=0;n<s.remove.length;++n)s.remove[n](t,e);r(n=t.data.hook)&&r(n=n.remove)?n(t,e):e()}else f(t.elm)}function I(t,e,n,o,s){var a,u,h,l,f=0,d=0,g=e.length-1,m=e[0],y=e[g],_=n.length-1,v=n[0],b=n[_],x=!s;while(f<=g&&d<=_)i(m)?m=e[++f]:i(y)?y=e[--g]:Lr(m,v)?(O(m,v,o,n,d),m=e[++f],v=n[++d]):Lr(y,b)?(O(y,b,o,n,_),y=e[--g],b=n[--_]):Lr(m,b)?(O(m,b,o,n,_),x&&c.insertBefore(t,m.elm,c.nextSibling(y.elm)),m=e[++f],b=n[--_]):Lr(y,v)?(O(y,v,o,n,d),x&&c.insertBefore(t,y.elm,m.elm),y=e[--g],v=n[++d]):(i(a)&&(a=Tr(e,f,g)),u=r(v.key)?a[v.key]:L(v,e,f,g),i(u)?p(v,o,t,m.elm,!1,n,d):(h=e[u],Lr(h,v)?(O(h,v,o,n,d),e[u]=void 0,x&&c.insertBefore(t,h.elm,m.elm)):p(v,o,t,m.elm,!1,n,d)),v=n[++d]);f>g?(l=i(n[_+1])?null:n[_+1].elm,M(t,l,n,d,_,o)):d>_&&E(t,e,f,g)}function L(t,e,n,i){for(var o=n;o<i;o++){var s=e[o];if(r(s)&&Lr(t,s))return o}}function O(t,e,n,a,u,h){if(t!==e){r(e.elm)&&r(a)&&(e=a[u]=Mt(e));var l=e.elm=t.elm;if(o(t.isAsyncPlaceholder))r(e.asyncFactory.resolved)?N(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,p=e.data;r(p)&&r(f=p.hook)&&r(f=f.prepatch)&&f(t,e);var d=t.children,g=e.children;if(r(p)&&b(e)){for(f=0;f<s.update.length;++f)s.update[f](t,e);r(f=p.hook)&&r(f=f.update)&&f(t,e)}i(e.text)?r(d)&&r(g)?d!==g&&I(l,d,g,n,h):r(g)?(r(t.text)&&c.setTextContent(l,""),M(l,null,g,0,g.length-1,n)):r(d)?E(l,d,0,d.length-1):r(t.text)&&c.setTextContent(l,""):t.text!==e.text&&c.setTextContent(l,e.text),r(p)&&r(f=p.hook)&&r(f=f.postpatch)&&f(t,e)}}}function T(t,e,n){if(o(n)&&r(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var P=m("attrs,class,staticClass,staticStyle,key");function N(t,e,n,i){var s,a=e.tag,u=e.data,c=e.children;if(i=i||u&&u.pre,e.elm=t,o(e.isComment)&&r(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(r(u)&&(r(s=u.hook)&&r(s=s.init)&&s(e,!0),r(s=e.componentInstance)))return g(e,n),!0;if(r(a)){if(r(c))if(t.hasChildNodes())if(r(s=u)&&r(s=s.domProps)&&r(s=s.innerHTML)){if(s!==t.innerHTML)return!1}else{for(var h=!0,l=t.firstChild,f=0;f<c.length;f++){if(!l||!N(l,c[f],n,i)){h=!1;break}l=l.nextSibling}if(!h||l)return!1}else v(e,c,n);if(r(u)){var p=!1;for(var d in u)if(!P(d)){p=!0,x(e,n);break}!p&&u["class"]&&me(u["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!i(e)){var u=!1,l=[];if(i(t))u=!0,p(e,l);else{var f=r(t.nodeType);if(!f&&Lr(t,e))O(t,e,l,null,null,a);else{if(f){if(1===t.nodeType&&t.hasAttribute(j)&&(t.removeAttribute(j),n=!0),o(n)&&N(t,e,l))return T(e,l,!0),t;t=h(t)}var d=t.elm,g=c.parentNode(d);if(p(e,l,d._leaveCb?null:g,c.nextSibling(d)),r(e.parent)){var m=e.parent,y=b(e);while(m){for(var _=0;_<s.destroy.length;++_)s.destroy[_](m);if(m.elm=e.elm,y){for(var v=0;v<s.create.length;++v)s.create[v](Cr,m);var x=m.data.hook.insert;if(x.merged)for(var w=1;w<x.fns.length;w++)x.fns[w]()}else Er(m);m=m.parent}}r(g)?E(g,[t],0,0):r(t.tag)&&S(t)}}return T(e,l,u),e.elm}r(t)&&S(t)}}var Nr={create:Ar,update:Ar,destroy:function(t){Ar(t,Cr)}};function Ar(t,e){(t.data.directives||e.data.directives)&&Rr(t,e)}function Rr(t,e){var n,i,r,o=t===Cr,s=e===Cr,a=kr(t.data.directives,t.context),u=kr(e.data.directives,e.context),c=[],h=[];for(n in u)i=a[n],r=u[n],i?(r.oldValue=i.value,r.oldArg=i.arg,zr(r,"update",e,t),r.def&&r.def.componentUpdated&&h.push(r)):(zr(r,"bind",e,t),r.def&&r.def.inserted&&c.push(r));if(c.length){var l=function(){for(var n=0;n<c.length;n++)zr(c[n],"inserted",e,t)};o?xe(e,"insert",l):l()}if(h.length&&xe(e,"postpatch",function(){for(var n=0;n<h.length;n++)zr(h[n],"componentUpdated",e,t)}),!o)for(n in a)u[n]||zr(a[n],"unbind",t,t,s)}var Dr=Object.create(null);function kr(t,e){var n,i,r=Object.create(null);if(!t)return r;for(n=0;n<t.length;n++)i=t[n],i.modifiers||(i.modifiers=Dr),r[Fr(i)]=i,i.def=Wt(e.$options,"directives",i.name,!0);return r}function Fr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function zr(t,e,n,i,r){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,i,r)}catch(Ms){ee(Ms,n.context,"directive "+t.name+" "+e+" hook")}}var jr=[Sr,Nr];function Br(t,e){var n=e.componentOptions;if((!r(n)||!1!==n.Ctor.options.inheritAttrs)&&(!i(t.data.attrs)||!i(e.data.attrs))){var o,s,a,u=e.elm,c=t.data.attrs||{},h=e.data.attrs||{};for(o in r(h.__ob__)&&(h=e.data.attrs=P({},h)),h)s=h[o],a=c[o],a!==s&&Gr(u,o,s);for(o in(tt||nt)&&h.value!==c.value&&Gr(u,"value",h.value),c)i(h[o])&&(Hi(o)?u.removeAttributeNS(Zi,$i(o)):Gi(o)||u.removeAttribute(o))}}function Gr(t,e,n){t.tagName.indexOf("-")>-1?qr(t,e,n):Vi(e)?Yi(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Gi(e)?t.setAttribute(e,Ui(e,n)):Hi(e)?Yi(n)?t.removeAttributeNS(Zi,$i(e)):t.setAttributeNS(Zi,e,n):qr(t,e,n)}function qr(t,e,n){if(Yi(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Ur={create:Br,update:Br};function Vr(t,e){var n=e.elm,o=e.data,s=t.data;if(!(i(o.staticClass)&&i(o.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var a=Wi(e),u=n._transitionClasses;r(u)&&(a=Ji(a,Qi(u))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Zr,Hr={create:Vr,update:Vr},$r="__r",Yr="__c";function Wr(t){if(r(t[$r])){var e=tt?"change":"input";t[e]=[].concat(t[$r],t[e]||[]),delete t[$r]}r(t[Yr])&&(t.change=[].concat(t[Yr],t.change||[]),delete t[Yr])}function Xr(t,e,n){var i=Zr;return function r(){var o=e.apply(null,arguments);null!==o&&Qr(t,r,n,i)}}var Kr=se&&!(rt&&Number(rt[1])<=53);function Jr(t,e,n,i){if(Kr){var r=$n,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Zr.addEventListener(t,e,st?{capture:n,passive:i}:n)}function Qr(t,e,n,i){(i||Zr).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Zr=e.elm,Wr(n),be(n,r,Jr,Qr,Xr,e.context),Zr=void 0}}var eo,no={create:to,update:to};function io(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,o,s=e.elm,a=t.data.domProps||{},u=e.data.domProps||{};for(n in r(u.__ob__)&&(u=e.data.domProps=P({},u)),a)n in u||(s[n]="");for(n in u){if(o=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=o;var c=i(o)?"":String(o);ro(s,c)&&(s.value=c)}else if("innerHTML"===n&&rr(s.tagName)&&i(s.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+o+"</svg>";var h=eo.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(h.firstChild)s.appendChild(h.firstChild)}else if(o!==a[n])try{s[n]=o}catch(Ms){}}}}function ro(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||so(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Ms){}return n&&t.value!==e}function so(t,e){var n=t.value,i=t._vModifiers;if(r(i)){if(i.number)return g(n)!==g(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}var ao={create:io,update:io},uo=x(function(t){var e={},n=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e});function co(t){var e=ho(t.style);return t.staticStyle?P(t.staticStyle,e):e}function ho(t){return Array.isArray(t)?N(t):"string"===typeof t?uo(t):t}function lo(t,e){var n,i={};if(e){var r=t;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=co(r.data))&&P(i,n)}(n=co(t.data))&&P(i,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&P(i,n);return i}var fo,po=/^--/,go=/\s*!important$/,mo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(go.test(n))t.style.setProperty(C(e),n.replace(go,""),"important");else{var i=_o(e);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)t.style[i]=n[r];else t.style[i]=n}},yo=["Webkit","Moz","ms"],_o=x(function(t){if(fo=fo||document.createElement("div").style,t=M(t),"filter"!==t&&t in fo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<yo.length;n++){var i=yo[n]+e;if(i in fo)return i}});function vo(t,e){var n=e.data,o=t.data;if(!(i(n.staticStyle)&&i(n.style)&&i(o.staticStyle)&&i(o.style))){var s,a,u=e.elm,c=o.staticStyle,h=o.normalizedStyle||o.style||{},l=c||h,f=ho(e.data.style)||{};e.data.normalizedStyle=r(f.__ob__)?P({},f):f;var p=lo(e,!0);for(a in l)i(p[a])&&mo(u,a,"");for(a in p)s=p[a],s!==l[a]&&mo(u,a,null==s?"":s)}}var bo={create:vo,update:vo},xo=/\s+/;function wo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(xo).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Mo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(xo).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function So(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&P(e,Eo(t.name||"v")),P(e,t),e}return"string"===typeof t?Eo(t):void 0}}var Eo=x(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Co=X&&!et,Io="transition",Lo="animation",Oo="transition",To="transitionend",Po="animation",No="animationend";Co&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Oo="WebkitTransition",To="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Po="WebkitAnimation",No="webkitAnimationEnd"));var Ao=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ro(t){Ao(function(){Ao(t)})}function Do(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),wo(t,e))}function ko(t,e){t._transitionClasses&&_(t._transitionClasses,e),Mo(t,e)}function Fo(t,e,n){var i=jo(t,e),r=i.type,o=i.timeout,s=i.propCount;if(!r)return n();var a=r===Io?To:No,u=0,c=function(){t.removeEventListener(a,h),n()},h=function(e){e.target===t&&++u>=s&&c()};setTimeout(function(){u<s&&c()},o+1),t.addEventListener(a,h)}var zo=/\b(transform|all)(,|$)/;function jo(t,e){var n,i=window.getComputedStyle(t),r=(i[Oo+"Delay"]||"").split(", "),o=(i[Oo+"Duration"]||"").split(", "),s=Bo(r,o),a=(i[Po+"Delay"]||"").split(", "),u=(i[Po+"Duration"]||"").split(", "),c=Bo(a,u),h=0,l=0;e===Io?s>0&&(n=Io,h=s,l=o.length):e===Lo?c>0&&(n=Lo,h=c,l=u.length):(h=Math.max(s,c),n=h>0?s>c?Io:Lo:null,l=n?n===Io?o.length:u.length:0);var f=n===Io&&zo.test(i[Oo+"Property"]);return{type:n,timeout:h,propCount:l,hasTransform:f}}function Bo(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return Go(e)+Go(t[n])}))}function Go(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function qo(t,e){var n=t.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=So(t.data.transition);if(!i(o)&&!r(n._enterCb)&&1===n.nodeType){var s=o.css,a=o.type,c=o.enterClass,h=o.enterToClass,l=o.enterActiveClass,f=o.appearClass,p=o.appearToClass,d=o.appearActiveClass,m=o.beforeEnter,y=o.enter,_=o.afterEnter,v=o.enterCancelled,b=o.beforeAppear,x=o.appear,w=o.afterAppear,M=o.appearCancelled,S=o.duration,E=Tn,C=Tn.$vnode;while(C&&C.parent)E=C.context,C=C.parent;var I=!E._isMounted||!t.isRootInsert;if(!I||x||""===x){var L=I&&f?f:c,O=I&&d?d:l,T=I&&p?p:h,P=I&&b||m,N=I&&"function"===typeof x?x:y,A=I&&w||_,R=I&&M||v,D=g(u(S)?S.enter:S);0;var k=!1!==s&&!et,F=Zo(N),j=n._enterCb=z(function(){k&&(ko(n,T),ko(n,O)),j.cancelled?(k&&ko(n,L),R&&R(n)):A&&A(n),n._enterCb=null});t.data.show||xe(t,"insert",function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),N&&N(n,j)}),P&&P(n),k&&(Do(n,L),Do(n,O),Ro(function(){ko(n,L),j.cancelled||(Do(n,T),F||(Vo(D)?setTimeout(j,D):Fo(n,a,j)))})),t.data.show&&(e&&e(),N&&N(n,j)),k||F||j()}}}function Uo(t,e){var n=t.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=So(t.data.transition);if(i(o)||1!==n.nodeType)return e();if(!r(n._leaveCb)){var s=o.css,a=o.type,c=o.leaveClass,h=o.leaveToClass,l=o.leaveActiveClass,f=o.beforeLeave,p=o.leave,d=o.afterLeave,m=o.leaveCancelled,y=o.delayLeave,_=o.duration,v=!1!==s&&!et,b=Zo(p),x=g(u(_)?_.leave:_);0;var w=n._leaveCb=z(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),v&&(ko(n,h),ko(n,l)),w.cancelled?(v&&ko(n,c),m&&m(n)):(e(),d&&d(n)),n._leaveCb=null});y?y(M):M()}function M(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),v&&(Do(n,c),Do(n,l),Ro(function(){ko(n,c),w.cancelled||(Do(n,h),b||(Vo(x)?setTimeout(w,x):Fo(n,a,w)))})),p&&p(n,w),v||b||w())}}function Vo(t){return"number"===typeof t&&!isNaN(t)}function Zo(t){if(i(t))return!1;var e=t.fns;return r(e)?Zo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Ho(t,e){!0!==e.data.show&&qo(e)}var $o=X?{create:Ho,activate:Ho,remove:function(t,e){!0!==t.data.show?Uo(t,e):e()}}:{},Yo=[Ur,Hr,no,ao,bo,$o],Wo=Yo.concat(jr),Xo=Pr({nodeOps:Mr,modules:Wo});et&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&rs(t,"input")});var Ko={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?xe(n,"postpatch",function(){Ko.componentUpdated(t,e,n)}):Jo(t,e,n.context),t._vOptions=[].map.call(t.options,es)):("textarea"===n.tag||cr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ns),t.addEventListener("compositionend",is),t.addEventListener("change",is),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Jo(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,es);if(r.some(function(t,e){return!k(t,i[e])})){var o=t.multiple?e.value.some(function(t){return ts(t,r)}):e.value!==e.oldValue&&ts(e.value,r);o&&rs(t,"change")}}}};function Jo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout(function(){Qo(t,e,n)},0)}function Qo(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var o,s,a=0,u=t.options.length;a<u;a++)if(s=t.options[a],r)o=F(i,es(s))>-1,s.selected!==o&&(s.selected=o);else if(k(es(s),i))return void(t.selectedIndex!==a&&(t.selectedIndex=a));r||(t.selectedIndex=-1)}}function ts(t,e){return e.every(function(e){return!k(e,t)})}function es(t){return"_value"in t?t._value:t.value}function ns(t){t.target.composing=!0}function is(t){t.target.composing&&(t.target.composing=!1,rs(t.target,"input"))}function rs(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function os(t){return!t.componentInstance||t.data&&t.data.transition?t:os(t.componentInstance._vnode)}var ss={bind:function(t,e,n){var i=e.value;n=os(n);var r=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,qo(n,function(){t.style.display=o})):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value,r=e.oldValue;if(!i!==!r){n=os(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?qo(n,function(){t.style.display=t.__vOriginalDisplay}):Uo(n,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}},as={model:Ko,show:ss},us={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function cs(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?cs(Mn(e.children)):t}function hs(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var o in r)e[M(o)]=r[o];return e}function ls(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fs(t){while(t=t.parent)if(t.data.transition)return!0}function ps(t,e){return e.key===t.key&&e.tag===t.tag}var ds=function(t){return t.tag||wn(t)},gs=function(t){return"show"===t.name},ms={name:"transition",props:us,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ds),n.length)){0;var i=this.mode;0;var r=n[0];if(fs(this.$vnode))return r;var o=cs(r);if(!o)return r;if(this._leaving)return ls(t,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var u=(o.data||(o.data={})).transition=hs(this),c=this._vnode,h=cs(c);if(o.data.directives&&o.data.directives.some(gs)&&(o.data.show=!0),h&&h.data&&!ps(o,h)&&!wn(h)&&(!h.componentInstance||!h.componentInstance._vnode.isComment)){var l=h.data.transition=P({},u);if("out-in"===i)return this._leaving=!0,xe(l,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),ls(t,r);if("in-out"===i){if(wn(o))return c;var f,p=function(){f()};xe(u,"afterEnter",p),xe(u,"enterCancelled",p),xe(l,"delayLeave",function(t){f=t})}}return r}}},ys=P({tag:String,moveClass:String},us);delete ys.mode;var _s={props:ys,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=Pn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=hs(this),a=0;a<r.length;a++){var u=r[a];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=s;else;}if(i){for(var c=[],h=[],l=0;l<i.length;l++){var f=i[l];f.data.transition=s,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?c.push(f):h.push(f)}this.kept=t(e,null,c),this.removed=h}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(vs),t.forEach(bs),t.forEach(xs),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,i=n.style;Do(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(To,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(To,t),n._moveCb=null,ko(n,e))})}}))},methods:{hasMove:function(t,e){if(!Co)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Mo(n,t)}),wo(n,e),n.style.display="none",this.$el.appendChild(n);var i=jo(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function vs(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function bs(t){t.data.newPos=t.elm.getBoundingClientRect()}function xs(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}var ws={Transition:ms,TransitionGroup:_s};Mi.config.mustUseProp=Bi,Mi.config.isReservedTag=or,Mi.config.isReservedAttr=zi,Mi.config.getTagNamespace=sr,Mi.config.isUnknownElement=ur,P(Mi.options.directives,as),P(Mi.options.components,ws),Mi.prototype.__patch__=X?Xo:A,Mi.prototype.$mount=function(t,e){return t=t&&X?hr(t):void 0,Rn(this,t,e)},X&&setTimeout(function(){q.devtools&&ct&&ct.emit("init",Mi)},0),e["a"]=Mi}).call(this,n("c8ba"))},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))};a.store=i},"2b57":function(t,e,n){var i=n("c8d5");function r(t){return 0===i(t).getDay()}t.exports=r},"2b67":function(t,e,n){var i=n("c8d5");function r(t){return i(t).getTime()>(new Date).getTime()}t.exports=r},"2d00":function(t,e){t.exports=!1},"2d23":function(t,e,n){var i=n("1baf");function r(t,e){return i(new Date,t,e)}t.exports=r},"2d83":function(t,e,n){"use strict";var i=n("387f");t.exports=function(t,e,n,r,o){var s=new Error(t);return i(s,e,n,r,o)}},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2d96":function(t,e){function n(){var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function e(e,n,i){var r;return i=i||{},r="string"===typeof t[e]?t[e]:1===n?t[e].one:t[e].other.replace("{{count}}",n),i.addSuffix?i.comparison>0?"in "+r:r+" ago":r}return{localize:e}}t.exports=n},"2dba":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="caret-left",o=192,s=512,a=[],u="f0d9",c="M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faCaretLeft=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f1a":function(t,e,n){var i=n("c7ce"),r=6e4,o=6048e5;function s(t,e,n){var s=i(t,n),a=i(e,n),u=s.getTime()-s.getTimezoneOffset()*r,c=a.getTime()-a.getTimezoneOffset()*r;return Math.round((u-c)/o)}t.exports=s},"2f62":function(t,e,n){"use strict";(function(t){
  /**
   * vuex v3.1.1
   * (c) 2019 Evan You
   * @license MIT
   */
  function i(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:i});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,n.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"b",function(){return P});var r="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){o.emit("vuex:mutation",t,e)}))}function a(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function u(t){return null!==t&&"object"===typeof t}function c(t){return t&&"function"===typeof t.then}function h(t,e){return function(){return t(e)}}var l=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(t,e){this._children[t]=e},l.prototype.removeChild=function(t){delete this._children[t]},l.prototype.getChild=function(t){return this._children[t]},l.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},l.prototype.forEachChild=function(t){a(this._children,t)},l.prototype.forEachGetter=function(t){this._rawModule.getters&&a(this._rawModule.getters,t)},l.prototype.forEachAction=function(t){this._rawModule.actions&&a(this._rawModule.actions,t)},l.prototype.forEachMutation=function(t){this._rawModule.mutations&&a(this._rawModule.mutations,t)},Object.defineProperties(l.prototype,f);var p=function(t){this.register([],t,!1)};function d(t,e,n){if(e.update(n),n.modules)for(var i in n.modules){if(!e.getChild(i))return void 0;d(t.concat(i),e.getChild(i),n.modules[i])}}p.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},p.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},p.prototype.update=function(t){d([],this.root,t)},p.prototype.register=function(t,e,n){var i=this;void 0===n&&(n=!0);var r=new l(e,n);if(0===t.length)this.root=r;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],r)}e.modules&&a(e.modules,function(e,r){i.register(t.concat(r),e,n)})},p.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var g;var m=function(t){var e=this;void 0===t&&(t={}),!g&&"undefined"!==typeof window&&window.Vue&&T(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g;var r=this,o=this,a=o.dispatch,u=o.commit;this.dispatch=function(t,e){return a.call(r,t,e)},this.commit=function(t,e,n){return u.call(r,t,e,n)},this.strict=i;var c=this._modules.root.state;x(this,c,[],this._modules.root),b(this,c),n.forEach(function(t){return t(e)});var h=void 0!==t.devtools?t.devtools:g.config.devtools;h&&s(this)},y={state:{configurable:!0}};function _(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function v(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;x(t,n,[],t._modules.root,!0),b(t,n,e)}function b(t,e,n){var i=t._vm;t.getters={};var r=t._wrappedGetters,o={};a(r,function(e,n){o[n]=h(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var s=g.config.silent;g.config.silent=!0,t._vm=new g({data:{$$state:e},computed:o}),g.config.silent=s,t.strict&&I(t),i&&(n&&t._withCommit(function(){i._data.$$state=null}),g.nextTick(function(){return i.$destroy()}))}function x(t,e,n,i,r){var o=!n.length,s=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[s]=i),!o&&!r){var a=L(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit(function(){g.set(a,u,i.state)})}var c=i.context=w(t,s,n);i.forEachMutation(function(e,n){var i=s+n;S(t,i,e,c)}),i.forEachAction(function(e,n){var i=e.root?n:s+n,r=e.handler||e;E(t,i,r,c)}),i.forEachGetter(function(e,n){var i=s+n;C(t,i,e,c)}),i.forEachChild(function(i,o){x(t,e,n.concat(o),i,r)})}function w(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=O(n,i,r),s=o.payload,a=o.options,u=o.type;return a&&a.root||(u=e+u),t.dispatch(u,s)},commit:i?t.commit:function(n,i,r){var o=O(n,i,r),s=o.payload,a=o.options,u=o.type;a&&a.root||(u=e+u),t.commit(u,s,a)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return M(t,e)}},state:{get:function(){return L(t.state,n)}}}),r}function M(t,e){var n={},i=e.length;return Object.keys(t.getters).forEach(function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}}),n}function S(t,e,n,i){var r=t._mutations[e]||(t._mutations[e]=[]);r.push(function(e){n.call(t,i.state,e)})}function E(t,e,n,i){var r=t._actions[e]||(t._actions[e]=[]);r.push(function(e,r){var o=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e,r);return c(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):o})}function C(t,e,n,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)})}function I(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}function L(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function O(t,e,n){return u(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function T(t){g&&t===g||(g=t,i(g))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},m.prototype.commit=function(t,e,n){var i=this,r=O(t,e,n),o=r.type,s=r.payload,a=(r.options,{type:o,payload:s}),u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(t){t(s)})}),this._subscribers.forEach(function(t){return t(a,i.state)}))},m.prototype.dispatch=function(t,e){var n=this,i=O(t,e),r=i.type,o=i.payload,s={type:r,payload:o},a=this._actions[r];if(a){try{this._actionSubscribers.filter(function(t){return t.before}).forEach(function(t){return t.before(s,n.state)})}catch(c){0}var u=a.length>1?Promise.all(a.map(function(t){return t(o)})):a[0](o);return u.then(function(t){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(s,n.state)})}catch(c){0}return t})}},m.prototype.subscribe=function(t){return _(t,this._subscribers)},m.prototype.subscribeAction=function(t){var e="function"===typeof t?{before:t}:t;return _(e,this._actionSubscribers)},m.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},e,n)},m.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},m.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),x(this,this.state,t,this._modules.get(t),n.preserveState),b(this,this.state)},m.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=L(e.state,t.slice(0,-1));g.delete(n,t[t.length-1])}),v(this)},m.prototype.hotUpdate=function(t){this._modules.update(t),v(this,!0)},m.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(m.prototype,y);var P=F(function(t,e){var n={};return k(e).forEach(function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=z(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0}),n}),N=F(function(t,e){var n={};return k(e).forEach(function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=z(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}}),n}),A=F(function(t,e){var n={};return k(e).forEach(function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||z(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0}),n}),R=F(function(t,e){var n={};return k(e).forEach(function(e){var i=e.key,r=e.val;n[i]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=z(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}}),n}),D=function(t){return{mapState:P.bind(null,t),mapGetters:A.bind(null,t),mapMutations:N.bind(null,t),mapActions:R.bind(null,t)}};function k(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function F(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function z(t,e,n){var i=t._modulesNamespaceMap[n];return i}var j={Store:m,install:T,version:"3.1.1",mapState:P,mapMutations:N,mapGetters:A,mapActions:R,createNamespacedHelpers:D};e["a"]=j}).call(this,n("c8ba"))},"2f8f":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setFullYear(r),n}t.exports=r},"2fdb":function(t,e,n){"use strict";var i=n("5ca1"),r=n("d2c8"),o="includes";i(i.P+i.F*n("5147")(o),"String",{includes:function(t){return!!~r(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"2fff":function(t,e,n){var i=n("4497");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},3023:function(t,e,n){"use strict";n("6808");var i=window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest,r=""===document.documentElement.style.pointerEvents,o={cors:i,pointerEvents:r},s={attributionWidthOffset:55},a=n("e11e"),u=0;function c(t){var e="";for(var n in t.f=t.f||"json",t)if(t.hasOwnProperty(n)){var i,r=t[n],o=Object.prototype.toString.call(r);e.length&&(e+="&"),i="[object Array]"===o?"[object Object]"===Object.prototype.toString.call(r[0])?JSON.stringify(r):r.join(","):"[object Object]"===o?JSON.stringify(r):"[object Date]"===o?r.valueOf():r,e+=encodeURIComponent(n)+"="+encodeURIComponent(i)}return e}function h(t,e){var n=new window.XMLHttpRequest;return n.onerror=function(i){n.onreadystatechange=a["Util"].falseFn,t.call(e,{error:{code:500,message:"XMLHttpRequest error"}},null)},n.onreadystatechange=function(){var i,r;if(4===n.readyState){try{i=JSON.parse(n.responseText)}catch(o){i=null,r={code:500,message:"Could not parse response as JSON. This could also be caused by a CORS or XMLHttpRequest error."}}!r&&i.error&&(r=i.error,i=null),n.onerror=a["Util"].falseFn,t.call(e,r,i)}},n.ontimeout=function(){this.onerror()},n}function l(t,e,n,i){var r=h(n,i);return r.open("POST",t),"undefined"!==typeof i&&null!==i&&"undefined"!==typeof i.options&&(r.timeout=i.options.timeout),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),r.send(c(e)),r}function f(t,e,n,i){var r=h(n,i);return r.open("GET",t+"?"+c(e),!0),"undefined"!==typeof i&&null!==i&&"undefined"!==typeof i.options&&(r.timeout=i.options.timeout),r.send(null),r}function p(t,e,n,i){var r=c(e),s=h(n,i),a=(t+"?"+r).length;if(a<=2e3&&o.cors?s.open("GET",t+"?"+r):a>2e3&&o.cors&&(s.open("POST",t),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")),"undefined"!==typeof i&&null!==i&&"undefined"!==typeof i.options&&(s.timeout=i.options.timeout),a<=2e3&&o.cors)s.send(null);else{if(!(a>2e3&&o.cors))return a<=2e3&&!o.cors?d(t,e,n,i):void V("a request to "+t+" was longer then 2000 characters and this browser cannot make a cross-domain post request. Please use a proxy http://esri.github.io/esri-leaflet/api-reference/request.html");s.send(r)}return s}function d(t,e,n,i){window._EsriLeafletCallbacks=window._EsriLeafletCallbacks||{};var r="c"+u;e.callback="window._EsriLeafletCallbacks."+r,window._EsriLeafletCallbacks[r]=function(t){if(!0!==window._EsriLeafletCallbacks[r]){var e,o=Object.prototype.toString.call(t);"[object Object]"!==o&&"[object Array]"!==o&&(e={error:{code:500,message:"Expected array or object as JSONP response"}},t=null),!e&&t.error&&(e=t,t=null),n.call(i,e,t),window._EsriLeafletCallbacks[r]=!0}};var o=a["DomUtil"].create("script",null,document.body);return o.type="text/javascript",o.src=t+"?"+c(e),o.id=r,o.onerror=function(t){if(t&&!0!==window._EsriLeafletCallbacks[r]){var e={error:{code:500,message:"An unknown error occurred"}};n.call(i,e),window._EsriLeafletCallbacks[r]=!0}},a["DomUtil"].addClass(o,"esri-leaflet-jsonp"),u++,{id:r,url:o.src,abort:function(){window._EsriLeafletCallbacks._callback[r]({code:0,message:"Request aborted."})}}}var g=o.cors?f:d;g.CORS=f,g.JSONP=d;var m={request:p,get:g,post:l},y=m;function _(t,e){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function v(t){return _(t[0],t[t.length-1])||t.push(t[0]),t}function b(t){var e,n=0,i=0,r=t.length,o=t[i];for(i;i<r-1;i++)e=t[i+1],n+=(e[0]-o[0])*(e[1]+o[1]),o=e;return n>=0}function x(t,e,n,i){var r=(i[0]-n[0])*(t[1]-n[1])-(i[1]-n[1])*(t[0]-n[0]),o=(e[0]-t[0])*(t[1]-n[1])-(e[1]-t[1])*(t[0]-n[0]),s=(i[1]-n[1])*(e[0]-t[0])-(i[0]-n[0])*(e[1]-t[1]);if(0!==s){var a=r/s,u=o/s;if(a>=0&&a<=1&&u>=0&&u<=1)return!0}return!1}function w(t,e){for(var n=0;n<t.length-1;n++)for(var i=0;i<e.length-1;i++)if(x(t[n],t[n+1],e[i],e[i+1]))return!0;return!1}function M(t,e){for(var n=!1,i=-1,r=t.length,o=r-1;++i<r;o=i)(t[i][1]<=e[1]&&e[1]<t[o][1]||t[o][1]<=e[1]&&e[1]<t[i][1])&&e[0]<(t[o][0]-t[i][0])*(e[1]-t[i][1])/(t[o][1]-t[i][1])+t[i][0]&&(n=!n);return n}function S(t,e){var n=w(t,e),i=M(t,e[0]);return!(n||!i)}function E(t){for(var e,n,i,r=[],o=[],s=0;s<t.length;s++){var a=v(t[s].slice(0));if(!(a.length<4))if(b(a)){var u=[a.slice().reverse()];r.push(u)}else o.push(a.slice().reverse())}var c=[];while(o.length){i=o.pop();var h=!1;for(e=r.length-1;e>=0;e--)if(n=r[e][0],S(n,i)){r[e].push(i),h=!0;break}h||c.push(i)}while(c.length){i=c.pop();var l=!1;for(e=r.length-1;e>=0;e--)if(n=r[e][0],w(n,i)){r[e].push(i),l=!0;break}l||r.push([i.reverse()])}return 1===r.length?{type:"Polygon",coordinates:r[0]}:{type:"MultiPolygon",coordinates:r}}function C(t){var e=[],n=t.slice(0),i=v(n.shift().slice(0));if(i.length>=4){b(i)||i.reverse(),e.push(i);for(var r=0;r<n.length;r++){var o=v(n[r].slice(0));o.length>=4&&(b(o)&&o.reverse(),e.push(o))}}return e}function I(t){for(var e=[],n=0;n<t.length;n++)for(var i=C(t[n]),r=i.length-1;r>=0;r--){var o=i[r].slice(0);e.push(o)}return e}function L(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function O(t,e){for(var n=e?[e,"OBJECTID","FID"]:["OBJECTID","FID"],i=0;i<n.length;i++){var r=n[i];if(r in t&&("string"===typeof t[r]||"number"===typeof t[r]))return t[r]}throw Error("No valid id attribute found")}function T(t,e){var n={};if(t.features){n.type="FeatureCollection",n.features=[];for(var i=0;i<t.features.length;i++)n.features.push(T(t.features[i],e))}if("number"===typeof t.x&&"number"===typeof t.y&&(n.type="Point",n.coordinates=[t.x,t.y],"number"===typeof t.z&&n.coordinates.push(t.z)),t.points&&(n.type="MultiPoint",n.coordinates=t.points.slice(0)),t.paths&&(1===t.paths.length?(n.type="LineString",n.coordinates=t.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=t.paths.slice(0))),t.rings&&(n=E(t.rings.slice(0))),"number"===typeof t.xmin&&"number"===typeof t.ymin&&"number"===typeof t.xmax&&"number"===typeof t.ymax&&(n.type="Polygon",n.coordinates=[[[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax]]]),(t.geometry||t.attributes)&&(n.type="Feature",n.geometry=t.geometry?T(t.geometry):null,n.properties=t.attributes?L(t.attributes):null,t.attributes))try{n.id=O(t.attributes,e)}catch(r){}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),t.spatialReference&&t.spatialReference.wkid&&4326!==t.spatialReference.wkid&&console.warn("Object converted in non-standard crs - "+JSON.stringify(t.spatialReference)),n}function P(t,e){e=e||"OBJECTID";var n,i={wkid:4326},r={};switch(t.type){case"Point":r.x=t.coordinates[0],r.y=t.coordinates[1],r.spatialReference=i;break;case"MultiPoint":r.points=t.coordinates.slice(0),r.spatialReference=i;break;case"LineString":r.paths=[t.coordinates.slice(0)],r.spatialReference=i;break;case"MultiLineString":r.paths=t.coordinates.slice(0),r.spatialReference=i;break;case"Polygon":r.rings=C(t.coordinates.slice(0)),r.spatialReference=i;break;case"MultiPolygon":r.rings=I(t.coordinates.slice(0)),r.spatialReference=i;break;case"Feature":t.geometry&&(r.geometry=P(t.geometry,e)),r.attributes=t.properties?L(t.properties):{},t.id&&(r.attributes[e]=t.id);break;case"FeatureCollection":for(r=[],n=0;n<t.features.length;n++)r.push(P(t.features[n],e));break;case"GeometryCollection":for(r=[],n=0;n<t.geometries.length;n++)r.push(P(t.geometries[n],e));break}return r}function N(t,e){return P(t,e)}function A(t,e){return T(t,e)}function R(t){if("NaN"!==t.xmin&&"NaN"!==t.ymin&&"NaN"!==t.xmax&&"NaN"!==t.ymax){var e=Object(a["latLng"])(t.ymin,t.xmin),n=Object(a["latLng"])(t.ymax,t.xmax);return Object(a["latLngBounds"])(e,n)}return null}function D(t){return t=Object(a["latLngBounds"])(t),{xmin:t.getSouthWest().lng,ymin:t.getSouthWest().lat,xmax:t.getNorthEast().lng,ymax:t.getNorthEast().lat,spatialReference:{wkid:4326}}}var k=/^(OBJECTID|FID|OID|ID)$/i;function F(t){var e;if(t.objectIdFieldName)e=t.objectIdFieldName;else if(t.fields){for(var n=0;n<=t.fields.length-1;n++)if("esriFieldTypeOID"===t.fields[n].type){e=t.fields[n].name;break}if(!e)for(n=0;n<=t.fields.length-1;n++)if(t.fields[n].name.match(k)){e=t.fields[n].name;break}}return e}function z(t){for(var e in t.attributes)if(e.match(k))return e}function j(t,e){var n,i=t.features||t.results,r=i.length;n=e||F(t);var o={type:"FeatureCollection",features:[]};if(r)for(var s=i.length-1;s>=0;s--){var a=A(i[s],n||z(i[s]));o.features.push(a)}return o}function B(t){return t=a["Util"].trim(t),"/"!==t[t.length-1]&&(t+="/"),t}function G(t){if(-1!==t.url.indexOf("?")){t.requestParams=t.requestParams||{};var e=t.url.substring(t.url.indexOf("?")+1);t.url=t.url.split("?")[0],t.requestParams=JSON.parse('{"'+decodeURI(e).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}')}return t.url=B(t.url.split("?")[0]),t}function q(t){return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i.test(t)}function U(t){var e;switch(t){case"Point":e="esriGeometryPoint";break;case"MultiPoint":e="esriGeometryMultipoint";break;case"LineString":e="esriGeometryPolyline";break;case"MultiLineString":e="esriGeometryPolyline";break;case"Polygon":e="esriGeometryPolygon";break;case"MultiPolygon":e="esriGeometryPolygon";break}return e}function V(){console&&console.warn&&console.warn.apply(console,arguments)}function Z(t){return t.getSize().x-s.attributionWidthOffset+"px"}function H(t){if(t.attributionControl&&!t.attributionControl._esriAttributionAdded){t.attributionControl.setPrefix('<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a> | Powered by <a href="https://www.esri.com">Esri</a>');var e=document.createElement("style");e.type="text/css",e.innerHTML=".esri-truncated-attribution:hover {white-space: normal;}",document.getElementsByTagName("head")[0].appendChild(e),a["DomUtil"].addClass(t.attributionControl._container,"esri-truncated-attribution:hover");var n=document.createElement("style");n.type="text/css",n.innerHTML=".esri-truncated-attribution {vertical-align: -3px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;display: inline-block;transition: 0s white-space;transition-delay: 1s;max-width: "+Z(t)+";}",document.getElementsByTagName("head")[0].appendChild(n),a["DomUtil"].addClass(t.attributionControl._container,"esri-truncated-attribution"),t.on("resize",function(e){t.attributionControl._container.style.maxWidth=Z(e.target)}),t.attributionControl._esriAttributionAdded=!0}}function $(t){var e={geometry:null,geometryType:null};return t instanceof a["LatLngBounds"]?(e.geometry=D(t),e.geometryType="esriGeometryEnvelope",e):(t.getLatLng&&(t=t.getLatLng()),t instanceof a["LatLng"]&&(t={type:"Point",coordinates:[t.lng,t.lat]}),t instanceof a["GeoJSON"]&&(t=t.getLayers()[0].feature.geometry,e.geometry=N(t),e.geometryType=U(t.type)),t.toGeoJSON&&(t=t.toGeoJSON()),"Feature"===t.type&&(t=t.geometry),"Point"===t.type||"LineString"===t.type||"Polygon"===t.type||"MultiPolygon"===t.type?(e.geometry=N(t),e.geometryType=U(t.type),e):void V("invalid geometry passed to spatial query. Should be L.LatLng, L.LatLngBounds, L.Marker or a GeoJSON Point, Line, Polygon or MultiPolygon object"))}function Y(t,e){o.cors&&p(t,{},a["Util"].bind(function(t,n){if(!t){e._esriAttributions=[];for(var i=0;i<n.contributors.length;i++)for(var r=n.contributors[i],o=0;o<r.coverageAreas.length;o++){var s=r.coverageAreas[o],u=Object(a["latLng"])(s.bbox[0],s.bbox[1]),c=Object(a["latLng"])(s.bbox[2],s.bbox[3]);e._esriAttributions.push({attribution:r.attribution,score:s.score,bounds:Object(a["latLngBounds"])(u,c),minZoom:s.zoomMin,maxZoom:s.zoomMax})}e._esriAttributions.sort(function(t,e){return e.score-t.score});var h={target:e};W(h)}},this))}function W(t){var e=t.target,n=e._esriAttributions;if(e&&e.attributionControl){var i=e.attributionControl._container.querySelector(".esri-dynamic-attribution");if(i&&n){for(var r="",o=e.getBounds(),s=Object(a["latLngBounds"])(o.getSouthWest().wrap(),o.getNorthEast().wrap()),u=e.getZoom(),c=0;c<n.length;c++){var h=n[c],l=h.attribution;!r.match(l)&&h.bounds.intersects(s)&&u>=h.minZoom&&u<=h.maxZoom&&(r+=", "+l)}r=r.substr(2),i.innerHTML=r,i.style.maxWidth=Z(e),e.fire("attributionupdated",{attribution:r})}}}var X=a["Class"].extend({options:{proxy:!1,useCors:i},generateSetter:function(t,e){return a["Util"].bind(function(e){return this.params[t]=e,this},e)},initialize:function(t){if(t.request&&t.options?(this._service=t,a["Util"].setOptions(this,t.options)):(a["Util"].setOptions(this,t),this.options.url=B(t.url)),this.params=a["Util"].extend({},this.params||{}),this.setters)for(var e in this.setters){var n=this.setters[e];this[e]=this.generateSetter(n,this)}},token:function(t){return this._service?this._service.authenticate(t):this.params.token=t,this},format:function(t){return this.params.returnUnformattedValues=!t,this},request:function(t,e){return this.options.requestParams&&a["Util"].extend(this.params,this.options.requestParams),this._service?this._service.request(this.path,this.params,t,e):this._request("request",this.path,this.params,t,e)},_request:function(t,e,n,i,r){var o=this.options.proxy?this.options.proxy+"?"+this.options.url+e:this.options.url+e;return"get"!==t&&"request"!==t||this.options.useCors?y[t](o,n,i,r):y.get.JSONP(o,n,i,r)}});var K=X.extend({setters:{offset:"resultOffset",limit:"resultRecordCount",fields:"outFields",precision:"geometryPrecision",featureIds:"objectIds",returnGeometry:"returnGeometry",returnM:"returnM",transform:"datumTransformation",token:"token"},path:"query",params:{returnGeometry:!0,where:"1=1",outSr:4326,outFields:"*"},within:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelContains",this},intersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelIntersects",this},contains:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelWithin",this},crosses:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelCrosses",this},touches:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelTouches",this},overlaps:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelOverlaps",this},bboxIntersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelEnvelopeIntersects",this},indexIntersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelIndexIntersects",this},nearby:function(t,e){return t=Object(a["latLng"])(t),this.params.geometry=[t.lng,t.lat],this.params.geometryType="esriGeometryPoint",this.params.spatialRel="esriSpatialRelIntersects",this.params.units="esriSRUnit_Meter",this.params.distance=e,this.params.inSr=4326,this},where:function(t){return this.params.where=t,this},between:function(t,e){return this.params.time=[t.valueOf(),e.valueOf()],this},simplify:function(t,e){var n=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=n/t.getSize().y*e,this},orderBy:function(t,e){return e=e||"ASC",this.params.orderByFields=this.params.orderByFields?this.params.orderByFields+",":"",this.params.orderByFields+=[t,e].join(" "),this},run:function(t,e){return this._cleanParams(),this.options.isModern||q(this.options.url)?(this.params.f="geojson",this.request(function(n,i){this._trapSQLerrors(n),t.call(e,n,i,i)},this)):this.request(function(n,i){this._trapSQLerrors(n),t.call(e,n,i&&j(i),i)},this)},count:function(t,e){return this._cleanParams(),this.params.returnCountOnly=!0,this.request(function(e,n){t.call(this,e,n&&n.count,n)},e)},ids:function(t,e){return this._cleanParams(),this.params.returnIdsOnly=!0,this.request(function(e,n){t.call(this,e,n&&n.objectIds,n)},e)},bounds:function(t,e){return this._cleanParams(),this.params.returnExtentOnly=!0,this.request(function(n,i){i&&i.extent&&R(i.extent)?t.call(e,n,R(i.extent),i):(n={message:"Invalid Bounds"},t.call(e,n,null,i))},e)},distinct:function(){return this.params.returnGeometry=!1,this.params.returnDistinctValues=!0,this},pixelSize:function(t){var e=Object(a["point"])(t);return this.params.pixelSize=[e.x,e.y],this},layer:function(t){return this.path=t+"/query",this},_trapSQLerrors:function(t){t&&"400"===t.code&&V("one common syntax error in query requests is encasing string values in double quotes instead of single quotes")},_cleanParams:function(){delete this.params.returnIdsOnly,delete this.params.returnExtentOnly,delete this.params.returnCountOnly},_setGeometryParams:function(t){this.params.inSr=4326;var e=$(t);this.params.geometry=e.geometry,this.params.geometryType=e.geometryType}});function J(t){return new K(t)}var Q=J,tt=X.extend({setters:{contains:"contains",text:"searchText",fields:"searchFields",spatialReference:"sr",sr:"sr",layers:"layers",returnGeometry:"returnGeometry",maxAllowableOffset:"maxAllowableOffset",precision:"geometryPrecision",dynamicLayers:"dynamicLayers",returnZ:"returnZ",returnM:"returnM",gdbVersion:"gdbVersion",token:"token"},path:"find",params:{sr:4326,contains:!0,returnGeometry:!0,returnZ:!0,returnM:!1},layerDefs:function(t,e){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[t,e].join(":"),this},simplify:function(t,e){var n=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=n/t.getSize().y*e,this},run:function(t,e){return this.request(function(n,i){t.call(e,n,i&&j(i),i)},e)}});function et(t){return new tt(t)}var nt=et,it=X.extend({path:"identify",between:function(t,e){return this.params.time=[t.valueOf(),e.valueOf()],this}});var rt=it.extend({setters:{layers:"layers",precision:"geometryPrecision",tolerance:"tolerance",returnGeometry:"returnGeometry"},params:{sr:4326,layers:"all",tolerance:3,returnGeometry:!0},on:function(t){var e=D(t.getBounds()),n=t.getSize();return this.params.imageDisplay=[n.x,n.y,96],this.params.mapExtent=[e.xmin,e.ymin,e.xmax,e.ymax],this},at:function(t){return 2===t.length&&(t=Object(a["latLng"])(t)),this._setGeometryParams(t),this},layerDef:function(t,e){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[t,e].join(":"),this},simplify:function(t,e){var n=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=n/t.getSize().y*e,this},run:function(t,e){return this.request(function(n,i){if(n)t.call(e,n,void 0,i);else{var r=j(i);i.results=i.results.reverse();for(var o=0;o<r.features.length;o++){var s=r.features[o];s.layerId=i.results[o].layerId}t.call(e,void 0,r,i)}})},_setGeometryParams:function(t){var e=$(t);this.params.geometry=e.geometry,this.params.geometryType=e.geometryType}});function ot(t){return new rt(t)}var st=ot,at=it.extend({setters:{setMosaicRule:"mosaicRule",setRenderingRule:"renderingRule",setPixelSize:"pixelSize",returnCatalogItems:"returnCatalogItems",returnGeometry:"returnGeometry"},params:{returnGeometry:!1},at:function(t){return t=Object(a["latLng"])(t),this.params.geometry=JSON.stringify({x:t.lng,y:t.lat,spatialReference:{wkid:4326}}),this.params.geometryType="esriGeometryPoint",this},getMosaicRule:function(){return this.params.mosaicRule},getRenderingRule:function(){return this.params.renderingRule},getPixelSize:function(){return this.params.pixelSize},run:function(t,e){return this.request(function(n,i){t.call(e,n,i&&this._responseToGeoJSON(i),i)},this)},_responseToGeoJSON:function(t){var e=t.location,n=t.catalogItems,i=t.catalogItemVisibilities,r={pixel:{type:"Feature",geometry:{type:"Point",coordinates:[e.x,e.y]},crs:{type:"EPSG",properties:{code:e.spatialReference.wkid}},properties:{OBJECTID:t.objectId,name:t.name,value:t.value},id:t.objectId}};if(t.properties&&t.properties.Values&&(r.pixel.properties.values=t.properties.Values),n&&n.features&&(r.catalogItems=j(n),i&&i.length===r.catalogItems.features.length))for(var o=i.length-1;o>=0;o--)r.catalogItems.features[o].properties.catalogItemVisibility=i[o];return r}});function ut(t){return new at(t)}var ct=ut,ht=a["Evented"].extend({options:{proxy:!1,useCors:i,timeout:0},initialize:function(t){t=t||{},this._requestQueue=[],this._authenticating=!1,a["Util"].setOptions(this,t),this.options.url=B(this.options.url)},get:function(t,e,n,i){return this._request("get",t,e,n,i)},post:function(t,e,n,i){return this._request("post",t,e,n,i)},request:function(t,e,n,i){return this._request("request",t,e,n,i)},metadata:function(t,e){return this._request("get","",{},t,e)},authenticate:function(t){return this._authenticating=!1,this.options.token=t,this._runQueue(),this},getTimeout:function(){return this.options.timeout},setTimeout:function(t){this.options.timeout=t},_request:function(t,e,n,i,r){this.fire("requeststart",{url:this.options.url+e,params:n,method:t},!0);var o=this._createServiceCallback(t,e,n,i,r);if(this.options.token&&(n.token=this.options.token),this.options.requestParams&&a["Util"].extend(n,this.options.requestParams),!this._authenticating){var s=this.options.proxy?this.options.proxy+"?"+this.options.url+e:this.options.url+e;return"get"!==t&&"request"!==t||this.options.useCors?y[t](s,n,o,r):y.get.JSONP(s,n,o,r)}this._requestQueue.push([t,e,n,i,r])},_createServiceCallback:function(t,e,n,i,r){return a["Util"].bind(function(o,s){!o||499!==o.code&&498!==o.code||(this._authenticating=!0,this._requestQueue.push([t,e,n,i,r]),this.fire("authenticationrequired",{authenticate:a["Util"].bind(this.authenticate,this)},!0),o.authenticate=a["Util"].bind(this.authenticate,this)),i.call(r,o,s),o?this.fire("requesterror",{url:this.options.url+e,params:n,message:o.message,code:o.code,method:t},!0):this.fire("requestsuccess",{url:this.options.url+e,params:n,response:s,method:t},!0),this.fire("requestend",{url:this.options.url+e,params:n,method:t},!0)},this)},_runQueue:function(){for(var t=this._requestQueue.length-1;t>=0;t--){var e=this._requestQueue[t],n=e.shift();this[n].apply(this,e)}this._requestQueue=[]}});var lt=ht.extend({identify:function(){return st(this)},find:function(){return nt(this)},query:function(){return Q(this)}});function ft(t){return new lt(t)}var pt=ft,dt=ht.extend({query:function(){return Q(this)},identify:function(){return ct(this)}});function gt(t){return new dt(t)}var mt=gt,yt=ht.extend({options:{idAttribute:"OBJECTID"},query:function(){return Q(this)},addFeature:function(t,e,n){this.addFeatures(t,e,n)},addFeatures:function(t,e,n){for(var i=t.features?t.features:[t],r=i.length-1;r>=0;r--)delete i[r].id;return t=N(t),t=i.length>1?t:[t],this.post("addFeatures",{features:t},function(t,i){var r=i&&i.addResults?i.addResults.length>1?i.addResults:i.addResults[0]:void 0;e&&e.call(n,t||i.addResults[0].error,r)},n)},updateFeature:function(t,e,n){this.updateFeatures(t,e,n)},updateFeatures:function(t,e,n){var i=t.features?t.features:[t];return t=N(t,this.options.idAttribute),t=i.length>1?t:[t],this.post("updateFeatures",{features:t},function(t,i){var r=i&&i.updateResults?i.updateResults.length>1?i.updateResults:i.updateResults[0]:void 0;e&&e.call(n,t||i.updateResults[0].error,r)},n)},deleteFeature:function(t,e,n){this.deleteFeatures(t,e,n)},deleteFeatures:function(t,e,n){return this.post("deleteFeatures",{objectIds:t},function(t,i){var r=i&&i.deleteResults?i.deleteResults.length>1?i.deleteResults:i.deleteResults[0]:void 0;e&&e.call(n,t||i.deleteResults[0].error,r)},n)}});function _t(t){return new yt(t)}var vt=_t,bt="https:"!==window.location.protocol?"http:":"https:",xt=a["TileLayer"].extend({statics:{TILES:{Streets:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/World_Street_Map"}},Topographic:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/World_Topo_Map"}},Oceans:{urlTemplate:bt+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/Ocean_Basemap"}},OceansLabels:{urlTemplate:bt+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:r?"esri-labels":"tilePane",attribution:""}},NationalGeographic:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"National Geographic, DeLorme, HERE, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, increment P Corp."}},DarkGray:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"HERE, DeLorme, MapmyIndia, &copy; OpenStreetMap contributors"}},DarkGrayLabels:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:r?"esri-labels":"tilePane",attribution:""}},Gray:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"HERE, DeLorme, MapmyIndia, &copy; OpenStreetMap contributors"}},GrayLabels:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:r?"esri-labels":"tilePane",attribution:""}},Imagery:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community",attributionUrl:"https://static.arcgis.com/attribution/World_Imagery"}},ImageryLabels:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],pane:r?"esri-labels":"tilePane",attribution:""}},ImageryTransportation:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],pane:r?"esri-labels":"tilePane",attribution:""}},ShadedRelief:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"USGS"}},ShadedReliefLabels:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:12,subdomains:["server","services"],pane:r?"esri-labels":"tilePane",attribution:""}},Terrain:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"USGS, NOAA"}},TerrainLabels:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],pane:r?"esri-labels":"tilePane",attribution:""}},USATopo:{urlTemplate:bt+"//{s}.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:15,subdomains:["server","services"],attribution:"USGS, National Geographic Society, i-cubed"}},ImageryClarity:{urlTemplate:bt+"//clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,attribution:"Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community"}},Physical:{urlTemplate:bt+"//{s}.arcgisonline.com/arcgis/rest/services/World_Physical_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:8,subdomains:["server","services"],attribution:"U.S. National Park Service"}},ImageryFirefly:{urlTemplate:bt+"//fly.maptiles.arcgis.com/arcgis/rest/services/World_Imagery_Firefly/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,attribution:"Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community",attributionUrl:"https://static.arcgis.com/attribution/World_Imagery"}}}},initialize:function(t,e){var n;if("object"===typeof t&&t.urlTemplate&&t.options)n=t;else{if("string"!==typeof t||!xt.TILES[t])throw new Error('L.esri.BasemapLayer: Invalid parameter. Use one of "Streets", "Topographic", "Oceans", "OceansLabels", "NationalGeographic", "Physical", "Gray", "GrayLabels", "DarkGray", "DarkGrayLabels", "Imagery", "ImageryLabels", "ImageryTransportation", "ImageryClarity", "ImageryFirefly", ShadedRelief", "ShadedReliefLabels", "Terrain", "TerrainLabels" or "USATopo"');n=xt.TILES[t]}var i=a["Util"].extend(n.options,e);a["Util"].setOptions(this,i),this.options.token&&-1===n.urlTemplate.indexOf("token=")&&(n.urlTemplate+="?token="+this.options.token),this.options.proxy&&(n.urlTemplate=this.options.proxy+"?"+n.urlTemplate),a["TileLayer"].prototype.initialize.call(this,n.urlTemplate,i)},onAdd:function(t){H(t),"esri-labels"===this.options.pane&&this._initPane(),this.options.attributionUrl&&Y((this.options.proxy?this.options.proxy+"?":"")+this.options.attributionUrl,t),t.on("moveend",W),a["TileLayer"].prototype.onAdd.call(this,t)},onRemove:function(t){t.off("moveend",W),a["TileLayer"].prototype.onRemove.call(this,t)},_initPane:function(){if(!this._map.getPane(this.options.pane)){var t=this._map.createPane(this.options.pane);t.style.pointerEvents="none",t.style.zIndex=500}},getAttribution:function(){if(this.options.attribution)var t='<span class="esri-dynamic-attribution">'+this.options.attribution+"</span>";return t}});var wt=a["TileLayer"].extend({options:{zoomOffsetAllowance:.1,errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEABAMAAACuXLVVAAAAA1BMVEUzNDVszlHHAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAAAAAAAAAB6mUWpAAAADZJREFUeJztwQEBAAAAgiD/r25IQAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7waBAAABw08RwAAAAABJRU5ErkJggg=="},statics:{MercatorZoomLevels:{0:156543.033928,1:78271.5169639999,2:39135.7584820001,3:19567.8792409999,4:9783.93962049996,5:4891.96981024998,6:2445.98490512499,7:1222.99245256249,8:611.49622628138,9:305.748113140558,10:152.874056570411,11:76.4370282850732,12:38.2185141425366,13:19.1092570712683,14:9.55462853563415,15:4.77731426794937,16:2.38865713397468,17:1.19432856685505,18:.597164283559817,19:.298582141647617,20:.14929107082381,21:.07464553541191,22:.0373227677059525,23:.0186613838529763}},initialize:function(t){t=a["Util"].setOptions(this,t),t=G(t),this.tileUrl=(t.proxy?t.proxy+"?":"")+t.url+"tile/{z}/{y}/{x}"+(t.requestParams&&Object.keys(t.requestParams).length>0?a["Util"].getParamString(t.requestParams):""),-1!==t.url.indexOf("{s}")&&t.subdomains&&(t.url=t.url.replace("{s}",t.subdomains[0])),this.service=pt(t),this.service.addEventParent(this);var e=new RegExp(/tiles.arcgis(online)?\.com/g);e.test(t.url)&&(this.tileUrl=this.tileUrl.replace("://tiles","://tiles{s}"),t.subdomains=["1","2","3","4"]),this.options.token&&(this.tileUrl+="?token="+this.options.token),a["TileLayer"].prototype.initialize.call(this,this.tileUrl,t)},getTileUrl:function(t){var e=this._getZoomForUrl();return a["Util"].template(this.tileUrl,a["Util"].extend({s:this._getSubdomain(t),x:t.x,y:t.y,z:this._lodMap&&this._lodMap[e]?this._lodMap[e]:e},this.options))},createTile:function(t,e){var n=document.createElement("img");return a["DomEvent"].on(n,"load",a["Util"].bind(this._tileOnLoad,this,e,n)),a["DomEvent"].on(n,"error",a["Util"].bind(this._tileOnError,this,e,n)),this.options.crossOrigin&&(n.crossOrigin=""),n.alt="",!this._lodMap||this._lodMap&&this._lodMap[this._getZoomForUrl()]?n.src=this.getTileUrl(t):this.once("lodmap",function(){n.src=this.getTileUrl(t)},this),n},onAdd:function(t){H(t),this._lodMap||this.metadata(function(e,n){if(!e&&n.spatialReference){var i=n.spatialReference.latestWkid||n.spatialReference.wkid;if(!this.options.attribution&&t.attributionControl&&n.copyrightText&&(this.options.attribution=n.copyrightText,t.attributionControl.addAttribution(this.getAttribution())),t.options.crs!==a["CRS"].EPSG3857||102100!==i&&3857!==i)t.options.crs&&t.options.crs.code&&t.options.crs.code.indexOf(i)>-1||V("L.esri.TiledMapLayer is using a non-mercator spatial reference. Support may be available through Proj4Leaflet http://esri.github.io/esri-leaflet/examples/non-mercator-projection.html");else{this._lodMap={};for(var r=n.tileInfo.lods,o=wt.MercatorZoomLevels,s=0;s<r.length;s++){var u=r[s];for(var c in o){var h=o[c];if(this._withinPercentage(u.resolution,h,this.options.zoomOffsetAllowance)){this._lodMap[c]=u.level;break}}}this.fire("lodmap")}}},this),a["TileLayer"].prototype.onAdd.call(this,t)},metadata:function(t,e){return this.service.metadata(t,e),this},identify:function(){return this.service.identify()},find:function(){return this.service.find()},query:function(){return this.service.query()},authenticate:function(t){var e="?token="+t;return this.tileUrl=this.options.token?this.tileUrl.replace(/\?token=(.+)/g,e):this.tileUrl+e,this.options.token=t,this.service.authenticate(t),this},_withinPercentage:function(t,e,n){var i=Math.abs(t/e-1);return i<n}});function Mt(t,e){return new wt(t,e)}var St=a["ImageOverlay"].extend({onAdd:function(t){this._topLeft=t.getPixelBounds().min,a["ImageOverlay"].prototype.onAdd.call(this,t)},_reset:function(){this._map.options.crs===a["CRS"].EPSG3857?a["ImageOverlay"].prototype._reset.call(this):a["DomUtil"].setPosition(this._image,this._topLeft.subtract(this._map.getPixelOrigin()))}}),Et=a["Layer"].extend({options:{opacity:1,position:"front",f:"image",useCors:i,attribution:null,interactive:!1,alt:""},onAdd:function(t){H(t),this.options.zIndex&&(this.options.position=null),this._update=a["Util"].throttle(this._update,this.options.updateInterval,this),t.on("moveend",this._update,this),this._currentImage&&this._currentImage._bounds.equals(this._map.getBounds())?t.addLayer(this._currentImage):this._currentImage&&(this._map.removeLayer(this._currentImage),this._currentImage=null),this._update(),this._popup&&(this._map.on("click",this._getPopupData,this),this._map.on("dblclick",this._resetPopupState,this)),this.metadata(function(e,n){!e&&!this.options.attribution&&t.attributionControl&&n.copyrightText&&(this.options.attribution=n.copyrightText,t.attributionControl.addAttribution(this.getAttribution()))},this)},onRemove:function(t){this._currentImage&&this._map.removeLayer(this._currentImage),this._popup&&(this._map.off("click",this._getPopupData,this),this._map.off("dblclick",this._resetPopupState,this)),this._map.off("moveend",this._update,this)},bindPopup:function(t,e){return this._shouldRenderPopup=!1,this._lastClick=!1,this._popup=Object(a["popup"])(e),this._popupFunction=t,this._map&&(this._map.on("click",this._getPopupData,this),this._map.on("dblclick",this._resetPopupState,this)),this},unbindPopup:function(){return this._map&&(this._map.closePopup(this._popup),this._map.off("click",this._getPopupData,this),this._map.off("dblclick",this._resetPopupState,this)),this._popup=!1,this},bringToFront:function(){return this.options.position="front",this._currentImage&&(this._currentImage.bringToFront(),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this.options.position="back",this._currentImage&&(this._currentImage.bringToBack(),this._setAutoZIndex(Math.min)),this},setZIndex:function(t){return this.options.zIndex=t,this._currentImage&&this._currentImage.setZIndex(t),this},_setAutoZIndex:function(t){if(this._currentImage){for(var e,n=this._currentImage.getPane().children,i=-t(-1/0,1/0),r=0,o=n.length;r<o;r++)e=n[r].style.zIndex,n[r]!==this._currentImage._image&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this.setZIndex(this.options.zIndex))}},getAttribution:function(){return this.options.attribution},getOpacity:function(){return this.options.opacity},setOpacity:function(t){return this.options.opacity=t,this._currentImage&&this._currentImage.setOpacity(t),this},getTimeRange:function(){return[this.options.from,this.options.to]},setTimeRange:function(t,e){return this.options.from=t,this.options.to=e,this._update(),this},metadata:function(t,e){return this.service.metadata(t,e),this},authenticate:function(t){return this.service.authenticate(t),this},redraw:function(){this._update()},_renderImage:function(t,e,n){if(this._map){if(n&&(t="data:"+n+";base64,"+t),!t)return;var i=new St(t,e,{opacity:0,crossOrigin:this.options.useCors,alt:this.options.alt,pane:this.options.pane||this.getPane(),interactive:this.options.interactive}).addTo(this._map),r=function(){this._map.removeLayer(i),this.fire("error"),i.off("load",o,this)},o=function(t){if(i.off("error",o,this),this._map){var n=t.target,r=this._currentImage;n._bounds.equals(e)&&n._bounds.equals(this._map.getBounds())?(this._currentImage=n,"front"===this.options.position?this.bringToFront():"back"===this.options.position&&this.bringToBack(),this.options.zIndex&&this.setZIndex(this.options.zIndex),this._map&&this._currentImage._map?this._currentImage.setOpacity(this.options.opacity):this._currentImage._map.removeLayer(this._currentImage),r&&this._map&&this._map.removeLayer(r),r&&r._map&&r._map.removeLayer(r)):this._map.removeLayer(n)}this.fire("load",{bounds:e})};i.once("error",r,this),i.once("load",o,this),this.fire("loading",{bounds:e})}},_update:function(){if(this._map){var t=this._map.getZoom(),e=this._map.getBounds();if(!this._animatingZoom&&(!this._map._panTransition||!this._map._panTransition._inProgress))if(t>this.options.maxZoom||t<this.options.minZoom)this._currentImage&&(this._currentImage._map.removeLayer(this._currentImage),this._currentImage=null);else{var n=this._buildExportParams();a["Util"].extend(n,this.options.requestParams),n?this._requestExport(n,e):this._currentImage&&(this._currentImage._map.removeLayer(this._currentImage),this._currentImage=null)}}},_renderPopup:function(t,e,n,i){if(t=Object(a["latLng"])(t),this._shouldRenderPopup&&this._lastClick.equals(t)){var r=this._popupFunction(e,n,i);r&&this._popup.setLatLng(t).setContent(r).openOn(this._map)}},_resetPopupState:function(t){this._shouldRenderPopup=!1,this._lastClick=t.latlng},_calculateBbox:function(){var t=this._map.getPixelBounds(),e=this._map.unproject(t.getBottomLeft()),n=this._map.unproject(t.getTopRight()),i=this._map.options.crs.project(n),r=this._map.options.crs.project(e),o=Object(a["bounds"])(i,r);return[o.getBottomLeft().x,o.getBottomLeft().y,o.getTopRight().x,o.getTopRight().y].join(",")},_calculateImageSize:function(){var t=this._map.getPixelBounds(),e=this._map.getSize(),n=this._map.unproject(t.getBottomLeft()),i=this._map.unproject(t.getTopRight()),r=this._map.latLngToLayerPoint(i).y,o=this._map.latLngToLayerPoint(n).y;return(r>0||o<e.y)&&(e.y=o-r),e.x+","+e.y}});Et.extend({options:{updateInterval:150,format:"jpgpng",transparent:!0,f:"image"},query:function(){return this.service.query()},identify:function(){return this.service.identify()},initialize:function(t){t=G(t),this.service=mt(t),this.service.addEventParent(this),a["Util"].setOptions(this,t)},setPixelType:function(t){return this.options.pixelType=t,this._update(),this},getPixelType:function(){return this.options.pixelType},setBandIds:function(t){return a["Util"].isArray(t)?this.options.bandIds=t.join(","):this.options.bandIds=t.toString(),this._update(),this},getBandIds:function(){return this.options.bandIds},setNoData:function(t,e){return a["Util"].isArray(t)?this.options.noData=t.join(","):this.options.noData=t.toString(),e&&(this.options.noDataInterpretation=e),this._update(),this},getNoData:function(){return this.options.noData},getNoDataInterpretation:function(){return this.options.noDataInterpretation},setRenderingRule:function(t){this.options.renderingRule=t,this._update()},getRenderingRule:function(){return this.options.renderingRule},setMosaicRule:function(t){this.options.mosaicRule=t,this._update()},getMosaicRule:function(){return this.options.mosaicRule},_getPopupData:function(t){var e=a["Util"].bind(function(e,n,i){e||setTimeout(a["Util"].bind(function(){this._renderPopup(t.latlng,e,n,i)},this),300)},this),n=this.identify().at(t.latlng);this.options.mosaicRule&&n.setMosaicRule(this.options.mosaicRule),n.run(e),this._shouldRenderPopup=!0,this._lastClick=t.latlng},_buildExportParams:function(){var t=parseInt(this._map.options.crs.code.split(":")[1],10),e={bbox:this._calculateBbox(),size:this._calculateImageSize(),format:this.options.format,transparent:this.options.transparent,bboxSR:t,imageSR:t};return this.options.from&&this.options.to&&(e.time=this.options.from.valueOf()+","+this.options.to.valueOf()),this.options.pixelType&&(e.pixelType=this.options.pixelType),this.options.interpolation&&(e.interpolation=this.options.interpolation),this.options.compressionQuality&&(e.compressionQuality=this.options.compressionQuality),this.options.bandIds&&(e.bandIds=this.options.bandIds),(0===this.options.noData||this.options.noData)&&(e.noData=this.options.noData),this.options.noDataInterpretation&&(e.noDataInterpretation=this.options.noDataInterpretation),this.service.options.token&&(e.token=this.service.options.token),this.options.renderingRule&&(e.renderingRule=JSON.stringify(this.options.renderingRule)),this.options.mosaicRule&&(e.mosaicRule=JSON.stringify(this.options.mosaicRule)),e},_requestExport:function(t,e){"json"===this.options.f?this.service.request("exportImage",t,function(t,n){t||(this.options.token&&(n.href+="?token="+this.options.token),this.options.proxy&&(n.href=this.options.proxy+"?"+n.href),this._renderImage(n.href,e))},this):(t.f="image",this._renderImage(this.options.url+"exportImage"+a["Util"].getParamString(t),e))}});Et.extend({options:{updateInterval:150,layers:!1,layerDefs:!1,timeOptions:!1,format:"png24",transparent:!0,f:"json"},initialize:function(t){t=G(t),this.service=pt(t),this.service.addEventParent(this),(t.proxy||t.token)&&"json"!==t.f&&(t.f="json"),a["Util"].setOptions(this,t)},getDynamicLayers:function(){return this.options.dynamicLayers},setDynamicLayers:function(t){return this.options.dynamicLayers=t,this._update(),this},getLayers:function(){return this.options.layers},setLayers:function(t){return this.options.layers=t,this._update(),this},getLayerDefs:function(){return this.options.layerDefs},setLayerDefs:function(t){return this.options.layerDefs=t,this._update(),this},getTimeOptions:function(){return this.options.timeOptions},setTimeOptions:function(t){return this.options.timeOptions=t,this._update(),this},query:function(){return this.service.query()},identify:function(){return this.service.identify()},find:function(){return this.service.find()},_getPopupData:function(t){var e,n=a["Util"].bind(function(e,n,i){e||setTimeout(a["Util"].bind(function(){this._renderPopup(t.latlng,e,n,i)},this),300)},this);if(e=this.options.popup?this.options.popup.on(this._map).at(t.latlng):this.identify().on(this._map).at(t.latlng),e.params.maxAllowableOffset||e.simplify(this._map,.5),this.options.popup&&this.options.popup.params&&this.options.popup.params.layers||(this.options.layers?e.layers("visible:"+this.options.layers.join(",")):e.layers("visible")),this.options.layerDefs&&"string"!==typeof this.options.layerDefs&&!e.params.layerDefs)for(var i in this.options.layerDefs)this.options.layerDefs.hasOwnProperty(i)&&e.layerDef(i,this.options.layerDefs[i]);e.run(n),this._shouldRenderPopup=!0,this._lastClick=t.latlng},_buildExportParams:function(){var t=parseInt(this._map.options.crs.code.split(":")[1],10),e={bbox:this._calculateBbox(),size:this._calculateImageSize(),dpi:96,format:this.options.format,transparent:this.options.transparent,bboxSR:t,imageSR:t};if(this.options.dynamicLayers&&(e.dynamicLayers=this.options.dynamicLayers),this.options.layers){if(0===this.options.layers.length)return;e.layers="show:"+this.options.layers.join(",")}return this.options.layerDefs&&(e.layerDefs="string"===typeof this.options.layerDefs?this.options.layerDefs:JSON.stringify(this.options.layerDefs)),this.options.timeOptions&&(e.timeOptions=JSON.stringify(this.options.timeOptions)),this.options.from&&this.options.to&&(e.time=this.options.from.valueOf()+","+this.options.to.valueOf()),this.service.options.token&&(e.token=this.service.options.token),this.options.proxy&&(e.proxy=this.options.proxy),this.options.disableCache&&(e._ts=Date.now()),e},_requestExport:function(t,e){"json"===this.options.f?this.service.request("export",t,function(t,n){t||(this.options.token&&(n.href+="?token="+this.options.token),this.options.proxy&&(n.href=this.options.proxy+"?"+n.href),n.href?this._renderImage(n.href,e):this._renderImage(n.imageData,e,n.contentType))},this):(t.f="image",this._renderImage(this.options.url+"export"+a["Util"].getParamString(t),e))}});var Ct=a["Layer"].extend({options:{cellSize:512,updateInterval:150},initialize:function(t){t=Object(a["setOptions"])(this,t),this._zooming=!1},onAdd:function(t){this._map=t,this._update=a["Util"].throttle(this._update,this.options.updateInterval,this),this._reset(),this._update()},onRemove:function(){this._map.removeEventListener(this.getEvents(),this),this._removeCells()},getEvents:function(){var t={moveend:this._update,zoomstart:this._zoomstart,zoomend:this._reset};return t},addTo:function(t){return t.addLayer(this),this},removeFrom:function(t){return t.removeLayer(this),this},_zoomstart:function(){this._zooming=!0},_reset:function(){this._removeCells(),this._cells={},this._activeCells={},this._cellsToLoad=0,this._cellsTotal=0,this._cellNumBounds=this._getCellNumBounds(),this._resetWrap(),this._zooming=!1},_resetWrap:function(){var t=this._map,e=t.options.crs;if(!e.infinite){var n=this._getCellSize();e.wrapLng&&(this._wrapLng=[Math.floor(t.project([0,e.wrapLng[0]]).x/n),Math.ceil(t.project([0,e.wrapLng[1]]).x/n)]),e.wrapLat&&(this._wrapLat=[Math.floor(t.project([e.wrapLat[0],0]).y/n),Math.ceil(t.project([e.wrapLat[1],0]).y/n)])}},_getCellSize:function(){return this.options.cellSize},_update:function(){if(this._map){var t=this._map.getPixelBounds(),e=this._getCellSize(),n=Object(a["bounds"])(t.min.divideBy(e).floor(),t.max.divideBy(e).floor());this._removeOtherCells(n),this._addCells(n),this.fire("cellsupdated")}},_addCells:function(t){var e,n,i,r=[],o=t.getCenter(),s=this._map.getZoom();for(e=t.min.y;e<=t.max.y;e++)for(n=t.min.x;n<=t.max.x;n++)i=Object(a["point"])(n,e),i.z=s,this._isValidCell(i)&&r.push(i);var u=r.length;if(0!==u)for(this._cellsToLoad+=u,this._cellsTotal+=u,r.sort(function(t,e){return t.distanceTo(o)-e.distanceTo(o)}),n=0;n<u;n++)this._addCell(r[n])},_isValidCell:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._cellNumBounds;if(!n)return!1;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._cellCoordsToBounds(t);return Object(a["latLngBounds"])(this.options.bounds).intersects(i)},_cellCoordsToBounds:function(t){var e=this._map,n=this.options.cellSize,i=t.multiplyBy(n),r=i.add([n,n]),o=e.wrapLatLng(e.unproject(i,t.z)),s=e.wrapLatLng(e.unproject(r,t.z));return Object(a["latLngBounds"])(o,s)},_cellCoordsToKey:function(t){return t.x+":"+t.y},_keyToCellCoords:function(t){var e=t.split(":"),n=parseInt(e[0],10),i=parseInt(e[1],10);return Object(a["point"])(n,i)},_removeOtherCells:function(t){for(var e in this._cells)t.contains(this._keyToCellCoords(e))||this._removeCell(e)},_removeCell:function(t){var e=this._activeCells[t];e&&(delete this._activeCells[t],this.cellLeave&&this.cellLeave(e.bounds,e.coords),this.fire("cellleave",{bounds:e.bounds,coords:e.coords}))},_removeCells:function(){for(var t in this._cells){var e=this._cells[t].bounds,n=this._cells[t].coords;this.cellLeave&&this.cellLeave(e,n),this.fire("cellleave",{bounds:e,coords:n})}},_addCell:function(t){this._wrapCoords(t);var e=this._cellCoordsToKey(t),n=this._cells[e];n&&!this._activeCells[e]&&(this.cellEnter&&this.cellEnter(n.bounds,t),this.fire("cellenter",{bounds:n.bounds,coords:t}),this._activeCells[e]=n),n||(n={coords:t,bounds:this._cellCoordsToBounds(t)},this._cells[e]=n,this._activeCells[e]=n,this.createCell&&this.createCell(n.bounds,t),this.fire("cellcreate",{bounds:n.bounds,coords:t}))},_wrapCoords:function(t){t.x=this._wrapLng?a["Util"].wrapNum(t.x,this._wrapLng):t.x,t.y=this._wrapLat?a["Util"].wrapNum(t.y,this._wrapLat):t.y},_getCellNumBounds:function(){var t=this._map.getPixelWorldBounds(),e=this._getCellSize();return t?Object(a["bounds"])(t.min.divideBy(e).floor(),t.max.divideBy(e).ceil().subtract([1,1])):null}}),It=Ct;function Lt(t){this.values=[].concat(t||[])}Lt.prototype.query=function(t){var e=this.getIndex(t);return this.values[e]},Lt.prototype.getIndex=function(t){this.dirty&&this.sort();var e,n,i=0,r=this.values.length-1;while(i<=r)if(e=(i+r)/2|0,n=this.values[Math.round(e)],+n.value<+t)i=e+1;else{if(!(+n.value>+t))return e;r=e-1}return Math.abs(~r)},Lt.prototype.between=function(t,e){var n=this.getIndex(t),i=this.getIndex(e);if(0===n&&0===i)return[];while(this.values[n-1]&&this.values[n-1].value===t)n--;while(this.values[i+1]&&this.values[i+1].value===e)i++;return this.values[i]&&this.values[i].value===e&&this.values[i+1]&&i++,this.values.slice(n,i)},Lt.prototype.insert=function(t){return this.values.splice(this.getIndex(t.value),0,t),this},Lt.prototype.bulkAdd=function(t,e){return this.values=this.values.concat([].concat(t||[])),e?this.sort():this.dirty=!0,this},Lt.prototype.sort=function(){return this.values.sort(function(t,e){return+e.value-+t.value}).reverse(),this.dirty=!1,this};var Ot=Lt,Tt=It.extend({options:{attribution:null,where:"1=1",fields:["*"],from:!1,to:!1,timeField:!1,timeFilterMode:"server",simplifyFactor:0,precision:6},initialize:function(t){if(It.prototype.initialize.call(this,t),t=G(t),t=a["Util"].setOptions(this,t),this.service=vt(t),this.service.addEventParent(this),"*"!==this.options.fields[0]){for(var e=!1,n=0;n<this.options.fields.length;n++)this.options.fields[n].match(/^(OBJECTID|FID|OID|ID)$/i)&&(e=!0);!1===e&&V("no known esriFieldTypeOID field detected in fields Array.  Please add an attribute field containing unique IDs to ensure the layer can be drawn correctly.")}this.options.timeField.start&&this.options.timeField.end?(this._startTimeIndex=new Ot,this._endTimeIndex=new Ot):this.options.timeField&&(this._timeIndex=new Ot),this._cache={},this._currentSnapshot=[],this._activeRequests=0},onAdd:function(t){return H(t),this.service.metadata(function(e,n){if(!e){var i=n.supportedQueryFormats,r=!1;!1===this.service.options.isModern&&(r=!0),!r&&i&&-1!==i.indexOf("geoJSON")&&(this.service.options.isModern=!0),n.objectIdField&&(this.service.options.idAttribute=n.objectIdField),!this.options.attribution&&t.attributionControl&&n.copyrightText&&(this.options.attribution=n.copyrightText,t.attributionControl.addAttribution(this.getAttribution()))}},this),t.on("zoomend",this._handleZoomChange,this),It.prototype.onAdd.call(this,t)},onRemove:function(t){return t.off("zoomend",this._handleZoomChange,this),It.prototype.onRemove.call(this,t)},getAttribution:function(){return this.options.attribution},createCell:function(t,e){this._visibleZoom()&&this._requestFeatures(t,e)},_requestFeatures:function(t,e,n){return this._activeRequests++,1===this._activeRequests&&this.fire("loading",{bounds:t},!0),this._buildQuery(t).run(function(i,r,o){o&&o.exceededTransferLimit&&this.fire("drawlimitexceeded"),!i&&r&&r.features.length&&a["Util"].requestAnimFrame(a["Util"].bind(function(){this._addFeatures(r.features,e),this._postProcessFeatures(t)},this)),i||!r||r.features.length||this._postProcessFeatures(t),i&&this._postProcessFeatures(t),n&&n.call(this,i,r)},this)},_postProcessFeatures:function(t){this._activeRequests--,this._activeRequests<=0&&this.fire("load",{bounds:t})},_cacheKey:function(t){return t.z+":"+t.x+":"+t.y},_addFeatures:function(t,e){var n=this._cacheKey(e);this._cache[n]=this._cache[n]||[];for(var i=t.length-1;i>=0;i--){var r=t[i].id;-1===this._currentSnapshot.indexOf(r)&&this._currentSnapshot.push(r),-1===this._cache[n].indexOf(r)&&this._cache[n].push(r)}this.options.timeField&&this._buildTimeIndexes(t),this.createLayers(t)},_buildQuery:function(t){var e=this.service.query().intersects(t).where(this.options.where).fields(this.options.fields).precision(this.options.precision);return this.options.requestParams&&a["Util"].extend(e.params,this.options.requestParams),this.options.simplifyFactor&&e.simplify(this._map,this.options.simplifyFactor),"server"===this.options.timeFilterMode&&this.options.from&&this.options.to&&e.between(this.options.from,this.options.to),e},setWhere:function(t,e,n){this.options.where=t&&t.length?t:"1=1";for(var i=[],r=[],o=0,s=null,u=a["Util"].bind(function(t,u){if(t&&(s=t),u)for(var c=u.features.length-1;c>=0;c--)r.push(u.features[c].id);o--,o<=0&&this._visibleZoom()&&(this._currentSnapshot=r,a["Util"].requestAnimFrame(a["Util"].bind(function(){this.removeLayers(i),this.addLayers(r),e&&e.call(n,s)},this)))},this),c=this._currentSnapshot.length-1;c>=0;c--)i.push(this._currentSnapshot[c]);for(var h in this._activeCells){o++;var l=this._keyToCellCoords(h),f=this._cellCoordsToBounds(l);this._requestFeatures(f,h,u)}return this},getWhere:function(){return this.options.where},getTimeRange:function(){return[this.options.from,this.options.to]},setTimeRange:function(t,e,n,i){var r=this.options.from,o=this.options.to,s=0,u=null,c=a["Util"].bind(function(a){a&&(u=a),this._filterExistingFeatures(r,o,t,e),s--,n&&s<=0&&n.call(i,u)},this);if(this.options.from=t,this.options.to=e,this._filterExistingFeatures(r,o,t,e),"server"===this.options.timeFilterMode)for(var h in this._activeCells){s++;var l=this._keyToCellCoords(h),f=this._cellCoordsToBounds(l);this._requestFeatures(f,h,c)}return this},refresh:function(){for(var t in this._activeCells){var e=this._keyToCellCoords(t),n=this._cellCoordsToBounds(e);this._requestFeatures(n,t)}this.redraw&&this.once("load",function(){this.eachFeature(function(t){this._redraw(t.feature.id)},this)},this)},_filterExistingFeatures:function(t,e,n,i){var r=t&&e?this._getFeaturesInTimeRange(t,e):this._currentSnapshot,o=this._getFeaturesInTimeRange(n,i);if(o.indexOf)for(var s=0;s<o.length;s++){var u=r.indexOf(o[s]);u>=0&&r.splice(u,1)}a["Util"].requestAnimFrame(a["Util"].bind(function(){this.removeLayers(r),this.addLayers(o)},this))},_getFeaturesInTimeRange:function(t,e){var n,i=[];if(this.options.timeField.start&&this.options.timeField.end){var r=this._startTimeIndex.between(t,e),o=this._endTimeIndex.between(t,e);n=r.concat(o)}else n=this._timeIndex.between(t,e);for(var s=n.length-1;s>=0;s--)i.push(n[s].id);return i},_buildTimeIndexes:function(t){var e,n;if(this.options.timeField.start&&this.options.timeField.end){var i=[],r=[];for(e=t.length-1;e>=0;e--)n=t[e],i.push({id:n.id,value:new Date(n.properties[this.options.timeField.start])}),r.push({id:n.id,value:new Date(n.properties[this.options.timeField.end])});this._startTimeIndex.bulkAdd(i),this._endTimeIndex.bulkAdd(r)}else{var o=[];for(e=t.length-1;e>=0;e--)n=t[e],o.push({id:n.id,value:new Date(n.properties[this.options.timeField])});this._timeIndex.bulkAdd(o)}},_featureWithinTimeRange:function(t){if(!this.options.from||!this.options.to)return!0;var e=+this.options.from.valueOf(),n=+this.options.to.valueOf();if("string"===typeof this.options.timeField){var i=+t.properties[this.options.timeField];return i>=e&&i<=n}if(this.options.timeField.start&&this.options.timeField.end){var r=+t.properties[this.options.timeField.start],o=+t.properties[this.options.timeField.end];return r>=e&&r<=n||o>=e&&o<=n}},_visibleZoom:function(){if(!this._map)return!1;var t=this._map.getZoom();return!(t>this.options.maxZoom||t<this.options.minZoom)},_handleZoomChange:function(){if(this._visibleZoom())for(var t in this._activeCells){var e=this._activeCells[t].coords,n=this._cacheKey(e);this._cache[n]&&this.addLayers(this._cache[n])}else this.removeLayers(this._currentSnapshot),this._currentSnapshot=[]},authenticate:function(t){return this.service.authenticate(t),this},metadata:function(t,e){return this.service.metadata(t,e),this},query:function(){return this.service.query()},_getMetadata:function(t){var e;this._metadata?t(e,this._metadata):this.metadata(a["Util"].bind(function(e,n){this._metadata=n,t(e,this._metadata)},this))},addFeature:function(t,e,n){this.addFeatures(t,e,n)},addFeatures:function(t,e,n){this._getMetadata(a["Util"].bind(function(i,r){if(i)e&&e.call(this,i,null);else{var o=t.features?t.features:[t];this.service.addFeatures(t,a["Util"].bind(function(t,i){if(!t){for(var s=o.length-1;s>=0;s--)o[s].properties[r.objectIdField]=o.length>1?i[s].objectId:i.objectId,o[s].id=o.length>1?i[s].objectId:i.objectId;this.createLayers(o)}e&&e.call(n,t,i)},this))}},this))},updateFeature:function(t,e,n){this.updateFeatures(t,e,n)},updateFeatures:function(t,e,n){var i=t.features?t.features:[t];this.service.updateFeatures(t,function(t,r){if(!t){for(var o=i.length-1;o>=0;o--)this.removeLayers([i[o].id],!0);this.createLayers(i)}e&&e.call(n,t,r)},this)},deleteFeature:function(t,e,n){this.deleteFeatures(t,e,n)},deleteFeatures:function(t,e,n){return this.service.deleteFeatures(t,function(t,i){var r=i.length?i:[i];if(!t&&r.length>0)for(var o=r.length-1;o>=0;o--)this.removeLayers([r[o].objectId],!0);e&&e.call(n,t,i)},this)}});Tt.extend({options:{cacheLayers:!0},initialize:function(t){Tt.prototype.initialize.call(this,t),this._originalStyle=this.options.style,this._layers={}},onRemove:function(t){for(var e in this._layers)t.removeLayer(this._layers[e]),this.fire("removefeature",{feature:this._layers[e].feature,permanent:!1},!0);return Tt.prototype.onRemove.call(this,t)},createNewLayer:function(t){var e=a["GeoJSON"].geometryToLayer(t,this.options);return e&&(e.defaultOptions=e.options),e},_updateLayer:function(t,e){var n=[],i=this.options.coordsToLatLng||a["GeoJSON"].coordsToLatLng;switch(e.properties&&(t.feature.properties=e.properties),e.geometry.type){case"Point":n=a["GeoJSON"].coordsToLatLng(e.geometry.coordinates),t.setLatLng(n);break;case"LineString":n=a["GeoJSON"].coordsToLatLngs(e.geometry.coordinates,0,i),t.setLatLngs(n);break;case"MultiLineString":n=a["GeoJSON"].coordsToLatLngs(e.geometry.coordinates,1,i),t.setLatLngs(n);break;case"Polygon":n=a["GeoJSON"].coordsToLatLngs(e.geometry.coordinates,1,i),t.setLatLngs(n);break;case"MultiPolygon":n=a["GeoJSON"].coordsToLatLngs(e.geometry.coordinates,2,i),t.setLatLngs(n);break}},createLayers:function(t){for(var e=t.length-1;e>=0;e--){var n,i=t[e],r=this._layers[i.id];this._visibleZoom()&&r&&!this._map.hasLayer(r)&&(this._map.addLayer(r),this.fire("addfeature",{feature:r.feature},!0)),r&&this.options.simplifyFactor>0&&(r.setLatLngs||r.setLatLng)&&this._updateLayer(r,i),r||(n=this.createNewLayer(i),n?(n.feature=i,n.addEventParent(this),this.options.onEachFeature&&this.options.onEachFeature(n.feature,n),this._layers[n.feature.id]=n,this.setFeatureStyle(n.feature.id,this.options.style),this.fire("createfeature",{feature:n.feature},!0),this._visibleZoom()&&(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(i))&&this._map.addLayer(n)):V("invalid GeoJSON encountered"))}},addLayers:function(t){for(var e=t.length-1;e>=0;e--){var n=this._layers[t[e]];n&&this._map.addLayer(n)}},removeLayers:function(t,e){for(var n=t.length-1;n>=0;n--){var i=t[n],r=this._layers[i];r&&(this.fire("removefeature",{feature:r.feature,permanent:e},!0),this._map.removeLayer(r)),r&&e&&delete this._layers[i]}},cellEnter:function(t,e){this._visibleZoom()&&!this._zooming&&this._map&&a["Util"].requestAnimFrame(a["Util"].bind(function(){var t=this._cacheKey(e),n=this._cellCoordsToKey(e),i=this._cache[t];this._activeCells[n]&&i&&this.addLayers(i)},this))},cellLeave:function(t,e){this._zooming||a["Util"].requestAnimFrame(a["Util"].bind(function(){if(this._map){var t=this._cacheKey(e),n=this._cellCoordsToKey(e),i=this._cache[t],r=this._map.getBounds();if(!this._activeCells[n]&&i){for(var o=!0,s=0;s<i.length;s++){var a=this._layers[i[s]];a&&a.getBounds&&r.intersects(a.getBounds())&&(o=!1)}o&&this.removeLayers(i,!this.options.cacheLayers),!this.options.cacheLayers&&o&&(delete this._cache[t],delete this._cells[n],delete this._activeCells[n])}}},this))},resetStyle:function(){return this.options.style=this._originalStyle,this.eachFeature(function(t){this.resetFeatureStyle(t.feature.id)},this),this},setStyle:function(t){return this.options.style=t,this.eachFeature(function(e){this.setFeatureStyle(e.feature.id,t)},this),this},resetFeatureStyle:function(t){var e=this._layers[t],n=this._originalStyle||a["Path"].prototype.options;return e&&(a["Util"].extend(e.options,e.defaultOptions),this.setFeatureStyle(t,n)),this},setFeatureStyle:function(t,e){var n=this._layers[t];return"function"===typeof e&&(e=e(n.feature)),n.setStyle&&n.setStyle(e),this},eachActiveFeature:function(t,e){if(this._map){var n=this._map.getBounds();for(var i in this._layers)-1!==this._currentSnapshot.indexOf(this._layers[i].feature.id)&&("function"===typeof this._layers[i].getLatLng&&n.contains(this._layers[i].getLatLng())?t.call(e,this._layers[i]):"function"===typeof this._layers[i].getBounds&&n.intersects(this._layers[i].getBounds())&&t.call(e,this._layers[i]))}return this},eachFeature:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getFeature:function(t){return this._layers[t]},bringToBack:function(){this.eachFeature(function(t){t.bringToBack&&t.bringToBack()})},bringToFront:function(){this.eachFeature(function(t){t.bringToFront&&t.bringToFront()})},redraw:function(t){return t&&this._redraw(t),this},_redraw:function(t){var e=this._layers[t],n=e.feature;if(e&&e.setIcon&&this.options.pointToLayer&&this.options.pointToLayer){var i=this.options.pointToLayer(n,Object(a["latLng"])(n.geometry.coordinates[1],n.geometry.coordinates[0])),r=i.options.icon;e.setIcon(r)}if(e&&e.setStyle&&this.options.pointToLayer){var o=this.options.pointToLayer(n,Object(a["latLng"])(n.geometry.coordinates[1],n.geometry.coordinates[0])),s=o.options;this.setFeatureStyle(n.id,s)}e&&e.setStyle&&this.options.style&&this.resetStyle(n.id)}});n.d(e,"a",function(){return J}),n.d(e,"b",function(){return Mt})},"30b5":function(t,e,n){"use strict";var i=n("c532");function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var s=[];i.forEach(e,function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),s.push(r(e)+"="+r(t))}))}),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"30d1":function(t,e,n){var i=n("0978");function r(t){return i(t).getTime()===i(new Date).getTime()}t.exports=r},"30f1":function(t,e,n){"use strict";var i=n("b8e3"),r=n("63b6"),o=n("9138"),s=n("35e8"),a=n("481b"),u=n("8f60"),c=n("45f2"),h=n("53e2"),l=n("5168")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",g="values",m=function(){return this};t.exports=function(t,e,n,y,_,v,b){u(n,e,y);var x,w,M,S=function(t){if(!f&&t in L)return L[t];switch(t){case d:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",C=_==g,I=!1,L=t.prototype,O=L[l]||L[p]||_&&L[_],T=O||S(_),P=_?C?S("entries"):T:void 0,N="Array"==e&&L.entries||O;if(N&&(M=h(N.call(new t)),M!==Object.prototype&&M.next&&(c(M,E,!0),i||"function"==typeof M[l]||s(M,l,m))),C&&O&&O.name!==g&&(I=!0,T=function(){return O.call(this)}),i&&!b||!f&&!I&&L[l]||s(L,l,T),a[e]=T,a[E]=m,_)if(x={values:C?T:S(g),keys:v?T:S(d),entries:P},b)for(w in x)w in L||o(L,w,x[w]);else r(r.P+r.F*(f||I),e,x);return x}},"31f4":function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"32a6":function(t,e,n){var i=n("241e"),r=n("c3a1");n("ce7e")("keys",function(){return function(t){return r(i(t))}})},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var i=n("e53d").document;t.exports=i&&i.documentElement},"335c":function(t,e,n){var i=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"33a4":function(t,e,n){var i=n("84f2"),r=n("2b4c")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},"340b":function(t,e,n){t.exports={addDays:n("8946"),addHours:n("1cc6"),addISOYears:n("27a1"),addMilliseconds:n("ec1f"),addMinutes:n("72b7"),addMonths:n("6665"),addQuarters:n("f5dd"),addSeconds:n("af1b"),addWeeks:n("7a83"),addYears:n("fcb3"),areRangesOverlapping:n("eaa5"),closestIndexTo:n("7fd8"),closestTo:n("4f67"),compareAsc:n("0d3e"),compareDesc:n("c873"),differenceInCalendarDays:n("d420"),differenceInCalendarISOWeeks:n("82dc"),differenceInCalendarISOYears:n("f9ff"),differenceInCalendarMonths:n("b2e9"),differenceInCalendarQuarters:n("fb36"),differenceInCalendarWeeks:n("2f1a"),differenceInCalendarYears:n("2a9c"),differenceInDays:n("3bc7"),differenceInHours:n("d2ed"),differenceInISOYears:n("b3f5"),differenceInMilliseconds:n("e785"),differenceInMinutes:n("6570"),differenceInMonths:n("17cd"),differenceInQuarters:n("8301"),differenceInSeconds:n("e13a"),differenceInWeeks:n("ee91"),differenceInYears:n("6fcc"),distanceInWords:n("366b"),distanceInWordsStrict:n("bb7c"),distanceInWordsToNow:n("6254"),eachDay:n("c4c2"),endOfDay:n("9744"),endOfHour:n("271a"),endOfISOWeek:n("4175"),endOfISOYear:n("861d"),endOfMinute:n("3ac3"),endOfMonth:n("d6f8"),endOfQuarter:n("3691"),endOfSecond:n("145e"),endOfToday:n("7443"),endOfTomorrow:n("6f4e"),endOfWeek:n("7494"),endOfYear:n("d975"),endOfYesterday:n("e51d"),format:n("70f2"),getDate:n("b60f"),getDay:n("c2b5"),getDayOfYear:n("580f"),getDaysInMonth:n("5416"),getDaysInYear:n("dddf"),getHours:n("5d95"),getISODay:n("84b9"),getISOWeek:n("81fc"),getISOWeeksInYear:n("3b7b"),getISOYear:n("8964"),getMilliseconds:n("8c81"),getMinutes:n("c589"),getMonth:n("7338"),getOverlappingDaysInRanges:n("6337"),getQuarter:n("b8f9"),getSeconds:n("231c"),getTime:n("902e"),getYear:n("10c8"),isAfter:n("a431"),isBefore:n("6b8f"),isDate:n("a735"),isEqual:n("abd4"),isFirstDayOfMonth:n("353e"),isFriday:n("a852"),isFuture:n("2b67"),isLastDayOfMonth:n("3eee"),isLeapYear:n("acc4"),isMonday:n("2507"),isPast:n("a935"),isSameDay:n("fd39"),isSameHour:n("662a"),isSameISOWeek:n("ccce"),isSameISOYear:n("2fff"),isSameMinute:n("f564"),isSameMonth:n("5a60"),isSameQuarter:n("9aaa"),isSameSecond:n("c6ae"),isSameWeek:n("1baf"),isSameYear:n("26d5"),isSaturday:n("48a6"),isSunday:n("2b57"),isThisHour:n("0157"),isThisISOWeek:n("cc64"),isThisISOYear:n("97af"),isThisMinute:n("3ef9"),isThisMonth:n("9bb9"),isThisQuarter:n("2a80"),isThisSecond:n("e620"),isThisWeek:n("2d23"),isThisYear:n("f66d"),isThursday:n("5a38"),isToday:n("30d1"),isTomorrow:n("20b1"),isTuesday:n("7606"),isValid:n("7eea"),isWednesday:n("c980"),isWeekend:n("9ad8"),isWithinRange:n("f56a"),isYesterday:n("c4f9"),lastDayOfISOWeek:n("5292"),lastDayOfISOYear:n("de13"),lastDayOfMonth:n("eca2"),lastDayOfQuarter:n("ce3d"),lastDayOfWeek:n("cb96"),lastDayOfYear:n("b8a7"),max:n("95ea"),min:n("1a84"),parse:n("c8d5"),setDate:n("957f"),setDay:n("b78a"),setDayOfYear:n("9530"),setHours:n("6f00"),setISODay:n("fa76"),setISOWeek:n("e73d"),setISOYear:n("9706"),setMilliseconds:n("d473"),setMinutes:n("8aed"),setMonth:n("3814"),setQuarter:n("158b"),setSeconds:n("9113"),setYear:n("2f8f"),startOfDay:n("0978"),startOfHour:n("fbaf"),startOfISOWeek:n("b4c7"),startOfISOYear:n("4497"),startOfMinute:n("e96b"),startOfMonth:n("942b"),startOfQuarter:n("4399"),startOfSecond:n("2299"),startOfToday:n("3cae"),startOfTomorrow:n("8148"),startOfWeek:n("c7ce"),startOfYear:n("a4b7"),startOfYesterday:n("693a"),subDays:n("e2ff"),subHours:n("fb98"),subISOYears:n("df35"),subMilliseconds:n("badb"),subMinutes:n("18b7"),subMonths:n("12fd"),subQuarters:n("d4ae"),subSeconds:n("83f0"),subWeeks:n("e1ca"),subYears:n("8902")}},"353e":function(t,e,n){var i=n("c8d5");function r(t){return 1===i(t).getDate()}t.exports=r},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var i=n("d9f6"),r=n("aebd");t.exports=n("8e60")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"35e86":function(t,e,n){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},"366b":function(t,e,n){var i=n("c873"),r=n("c8d5"),o=n("e13a"),s=n("17cd"),a=n("52cf"),u=1440,c=2520,h=43200,l=86400;function f(t,e,n){var f=n||{},p=i(t,e),d=f.locale,g=a.distanceInWords.localize;d&&d.distanceInWords&&d.distanceInWords.localize&&(g=d.distanceInWords.localize);var m,y,_={addSuffix:Boolean(f.addSuffix),comparison:p};p>0?(m=r(t),y=r(e)):(m=r(e),y=r(t));var v,b=o(y,m),x=y.getTimezoneOffset()-m.getTimezoneOffset(),w=Math.round(b/60)-x;if(w<2)return f.includeSeconds?b<5?g("lessThanXSeconds",5,_):b<10?g("lessThanXSeconds",10,_):b<20?g("lessThanXSeconds",20,_):b<40?g("halfAMinute",null,_):g(b<60?"lessThanXMinutes":"xMinutes",1,_):0===w?g("lessThanXMinutes",1,_):g("xMinutes",w,_);if(w<45)return g("xMinutes",w,_);if(w<90)return g("aboutXHours",1,_);if(w<u){var M=Math.round(w/60);return g("aboutXHours",M,_)}if(w<c)return g("xDays",1,_);if(w<h){var S=Math.round(w/u);return g("xDays",S,_)}if(w<l)return v=Math.round(w/h),g("aboutXMonths",v,_);if(v=s(y,m),v<12){var E=Math.round(w/h);return g("xMonths",E,_)}var C=v%12,I=Math.floor(v/12);return C<3?g("aboutXYears",I,_):C<9?g("overXYears",I,_):g("almostXYears",I+1,_)}t.exports=f},3691:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth(),r=n-n%3+3;return e.setMonth(r,0),e.setHours(23,59,59,999),e}t.exports=r},"36c3":function(t,e,n){var i=n("335c"),r=n("25eb");t.exports=function(t){return i(r(t))}},3702:function(t,e,n){var i=n("481b"),r=n("5168")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},"37c8":function(t,e,n){e.f=n("2b4c")},3814:function(t,e,n){var i=n("c8d5"),r=n("5416");function o(t,e){var n=i(t),o=Number(e),s=n.getFullYear(),a=n.getDate(),u=new Date(0);u.setFullYear(s,o,15),u.setHours(0,0,0,0);var c=r(u);return n.setMonth(o,Math.min(a,c)),n}t.exports=o},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},3934:function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},"39c7":function(t){t.exports={a:"2.5.0"}},"3a38":function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"3a72":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("2d00"),s=n("37c8"),a=n("86cc").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},"3ac3":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setSeconds(59,999),e}t.exports=r},"3b7b":function(t,e,n){var i=n("4497"),r=n("7a83"),o=6048e5;function s(t){var e=i(t),n=i(r(e,60)),s=n.valueOf()-e.valueOf();return Math.round(s/o)}t.exports=s},"3bc7":function(t,e,n){var i=n("c8d5"),r=n("d420"),o=n("0d3e");function s(t,e){var n=i(t),s=i(e),a=o(n,s),u=Math.abs(r(n,s));n.setDate(n.getDate()-a*u);var c=o(n,s)===-a;return a*(u-c)}t.exports=s},"3cae":function(t,e,n){var i=n("0978");function r(){return i(new Date)}t.exports=r},"3eee":function(t,e,n){var i=n("c8d5"),r=n("9744"),o=n("d6f8");function s(t){var e=i(t);return r(e).getTime()===o(e).getTime()}t.exports=s},"3ef9":function(t,e,n){var i=n("f564");function r(t){return i(new Date,t)}t.exports=r},"40c3":function(t,e,n){var i=n("6b4c"),r=n("5168")("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},4175:function(t,e,n){var i=n("7494");function r(t){return i(t,{weekStartsOn:1})}t.exports=r},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},"41ef":function(t,e,n){},4399:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}t.exports=r},4497:function(t,e,n){var i=n("8964"),r=n("b4c7");function o(t){var e=i(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var o=r(n);return o}t.exports=o},"454f":function(t,e,n){n("46a7");var i=n("584a").Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",function(){return function(t){return r(i(t))}})},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"45f2":function(t,e,n){var i=n("d9f6").f,r=n("07e3"),o=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"467f":function(t,e,n){"use strict";var i=n("2d83");t.exports=function(t,e,n){var r=n.config.validateStatus;!r||r(n.status)?t(n):e(i("Request failed with status code "+n.status,n.config,null,n.request,n))}},"469f":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("7d7b")},"46a7":function(t,e,n){var i=n("63b6");i(i.S+i.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"472f":function(t,e,n){"use strict";const i={shouldShowAddressCandidateList:!1,popover:{open:!1,text:"",options:{}},fullScreenTopicsEnabled:!1},r={state:i,mutations:{setShouldShowAddressCandidateList(t,e){t.shouldShowAddressCandidateList=e},setPopoverOpen(t,e){t.popover.open=e},setPopoverText(t,e){t.popover.text=e},setPopoverOptions(t,e){t.popover.options=e},setFullScreenTopicsEnabled(t,e){t.fullScreenTopicsEnabled=e}}};e["a"]=r},"47ee":function(t,e,n){var i=n("c3a1"),r=n("9aa9"),o=n("355d");t.exports=function(t){var e=i(t),n=r.f;if(n){var s,a=n(t),u=o.f,c=0;while(a.length>c)u.call(t,s=a[c++])&&e.push(s)}return e}},"481b":function(t,e){t.exports={}},"48a6":function(t,e,n){var i=n("c8d5");function r(t){return 6===i(t).getDay()}t.exports=r},"4a0d":function(t,e,n){"use strict";var i=n("bc3a"),r=n.n(i);class o{constructor(t,e,n,i=3857,r){this.baseUrl=t,this.username=e,this.password=n,this.srid=i,this.proxy=r}getRecordings(t,e){const n=t.getSouthWest(),i=t.getNorthEast(),o=`<wfs:GetFeature service="WFS" version="1.1.0" resultType="results" outputFormat="text/xml; subtype=gml/3.1.1" xmlns:wfs="http://www.opengis.net/wfs">\n\t\t\t\t\t\t\t\t\t\t\t<wfs:Query typeName="atlas:Recording" srsName="EPSG:${this.srid}" xmlns:atlas="http://www.cyclomedia.com/atlas">\n\t\t\t\t\t\t\t\t\t\t\t\t<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">\n\t\t\t\t\t\t    \t\t\t\t\t<ogc:And>\n\t\t\t\t\t\t      \t\t\t\t\t<ogc:BBOX>\n\t\t\t\t\t\t\t\t\t\t\t        <gml:Envelope srsName="EPSG:${this.srid}" xmlns:gml="http://www.opengis.net/gml">\n\t\t\t\t\t\t\t\t\t\t\t          <gml:lowerCorner>${n.lng} ${n.lat}</gml:lowerCorner>\n\t\t\t\t\t\t\t\t\t\t\t          <gml:upperCorner>${i.lng} ${i.lat}</gml:upperCorner>\n\t\t\t\t\t\t\t\t\t\t\t        </gml:Envelope>\n\t\t\t\t\t\t\t\t\t\t\t      </ogc:BBOX>\n\t\t\t\t\t\t\t\t\t\t\t      <ogc:PropertyIsNull>\n\t\t\t\t\t\t\t\t\t\t\t        <ogc:PropertyName>expiredAt</ogc:PropertyName>\n\t\t\t\t\t\t\t\t\t\t\t      </ogc:PropertyIsNull>\n\t\t\t\t\t\t\t\t\t\t\t    </ogc:And>\n\t\t\t\t\t\t\t\t\t\t\t  </ogc:Filter>\n\t\t\t\t\t\t\t\t\t\t\t </wfs:Query>\n\t\t\t\t\t\t\t\t\t\t\t</wfs:GetFeature>`,s=(this.proxy||"")+this.baseUrl,a={"Content-Type":"text/xml",Authorization:"Basic "+window.btoa(this.username+":"+this.password)};r.a.post(s,o,{headers:a}).then(t=>{let n=t.data;function i(t){return(new window.DOMParser).parseFromString(t,"text/xml")}n=i(n);const r=n.getElementsByTagNameNS("*","Recording"),o=[].slice.call(r);if(o.length<1)return void console.log("no cyclomedia recordings for bounds");const s=o.map(t=>{const e=t.getElementsByTagNameNS("*","imageId")[0].firstChild.data,n=t.getElementsByTagNameNS("*","pos")[0].firstChild.data,[i,r]=n.split(" ").map(parseFloat);return{imageId:e,lng:i,lat:r}});e(s)})}}e["a"]=o},"4a59":function(t,e,n){var i=n("9b43"),r=n("1fa8"),o=n("33a4"),s=n("cb7c"),a=n("9def"),u=n("27ee"),c={},h={};e=t.exports=function(t,e,n,l,f){var p,d,g,m,y=f?function(){return t}:u(t),_=i(n,l,e?2:1),v=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(p=a(t.length);p>v;v++)if(m=e?_(s(d=t[v])[0],d[1]):_(t[v]),m===c||m===h)return m}else for(g=y.call(t);!(d=g.next()).done;)if(m=r(g,_,d.value,e),m===c||m===h)return m};e.BREAK=c,e.RETURN=h},"4a7b":function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){e=e||{};var n={};return i.forEach(["url","method","params","data"],function(t){"undefined"!==typeof e[t]&&(n[t]=e[t])}),i.forEach(["headers","auth","proxy"],function(r){i.isObject(e[r])?n[r]=i.deepMerge(t[r],e[r]):"undefined"!==typeof e[r]?n[r]=e[r]:i.isObject(t[r])?n[r]=i.deepMerge(t[r]):"undefined"!==typeof t[r]&&(n[r]=t[r])}),i.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(i){"undefined"!==typeof e[i]?n[i]=e[i]:"undefined"!==typeof t[i]&&(n[i]=t[i])}),n}},"4aa6":function(t,e,n){t.exports=n("dc624")},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},"4cd6":function(t,e,n){"use strict";n("6762"),n("2fdb"),n("456d"),n("ac4d"),n("8a81"),n("ac6a");var i,r,o=n("7618"),s={props:{slots:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}},item:{type:Object,default:function(){return{}}}},beforeCreate:function(){},created:function(){},computed:{nullValue:function(){var t=this.options||{};return t.nullValue}},methods:{evaluateSlot:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t)return t;var r,s=Object(o["a"])(t);if("function"===s){var a=this.$store.state,u=this.$controller,c=t,h=this.item;r=h?c(a,h,u):c(a)}else r=t;if(!1===r);else if(!r)return i;var l=!0,f=!1,p=void 0;try{for(var d,g=function(){var t=d.value,n=e.$config.transforms[t],i=void 0,o=n.globals;o&&(i=Object.keys(window).filter(function(t){return o.includes(t)}).reduce(function(t,e){return t[e]=window[e],t},{}));var s=n.transform;r=s(r,i)},m=n[Symbol.iterator]();!(l=(d=m.next()).done);l=!0)g()}catch(y){f=!0,p=y}finally{try{l||null==m.return||m.return()}finally{if(f)throw p}}return r}}},a=s,u=n("2877"),c=Object(u["a"])(a,i,r,!1,null,null,null);e["a"]=c.exports},"4d16":function(t,e,n){t.exports=n("25b0")},"4ee1":function(t,e,n){var i=n("5168")("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(s){}return n}},"4f67":function(t,e,n){var i=n("c8d5");function r(t,e){if(!(e instanceof Array))throw new TypeError(toString.call(e)+" is not an instance of Array");var n,r,o=i(t),s=o.getTime();return e.forEach(function(t){var e=i(t),o=Math.abs(s-e.getTime());(void 0===n||o<r)&&(n=e,r=o)}),n}t.exports=r},"504c":function(t,e,n){var i=n("9e1e"),r=n("0d58"),o=n("6821"),s=n("52a7").f;t.exports=function(t){return function(e){var n,a=o(e),u=r(a),c=u.length,h=0,l=[];while(c>h)n=u[h++],i&&!s.call(a,n)||l.push(t?[n,a[n]]:a[n]);return l}}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,n){var i=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(r){}}return!0}},5168:function(t,e,n){var i=n("dbdb")("wks"),r=n("62a0"),o=n("e53d").Symbol,s="function"==typeof o,a=t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))};a.store=i},"520a":function(t,e,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,s=r,a="lastIndex",u=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[a]||0!==e[a]}(),c=void 0!==/()??/.exec("")[1],h=u||c;h&&(s=function(t){var e,n,s,h,l=this;return c&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),u&&(e=l[a]),s=r.call(l,t),u&&s&&(l[a]=l.global?s.index+s[0].length:e),c&&s&&s.length>1&&o.call(s[0],n,function(){for(h=1;h<arguments.length-2;h++)void 0===arguments[h]&&(s[h]=void 0)}),s}),t.exports=s},5270:function(t,e,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),s=n("2444"),a=n("d925"),u=n("e683");function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){c(t),t.baseURL&&!a(t.url)&&(t.url=u(t.baseURL,t.url)),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=t.adapter||s.adapter;return e(t).then(function(e){return c(t),e.data=r(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(c(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},5292:function(t,e,n){var i=n("cb96");function r(t){return i(t,{weekStartsOn:1})}t.exports=r},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"52cf":function(t,e,n){var i=n("2d96"),r=n("e830");t.exports={distanceInWords:i(),format:r()}},"53e2":function(t,e,n){var i=n("07e3"),r=n("241e"),o=n("5559")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},5416:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear(),r=e.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}t.exports=r},5465:function(t,e){var n=6e4;t.exports=function(t){var e=new Date(t.getTime()),i=e.getTimezoneOffset();e.setSeconds(0,0);var r=e.getTime()%n;return i*n+r}},"549b":function(t,e,n){"use strict";var i=n("d864"),r=n("63b6"),o=n("241e"),s=n("b0dc"),a=n("3702"),u=n("b447"),c=n("20fd"),h=n("7cd6");r(r.S+r.F*!n("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,l,f=o(t),p="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,m=void 0!==g,y=0,_=h(f);if(m&&(g=i(g,d>2?arguments[2]:void 0,2)),void 0==_||p==Array&&a(_))for(e=u(f.length),n=new p(e);e>y;y++)c(n,y,m?g(f[y],y):f[y]);else for(l=_.call(f),n=new p;!(r=l.next()).done;y++)c(n,y,m?s(l,g,[r.value,y],!0):r.value);return n.length=y,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},"551c":function(t,e,n){"use strict";var i,r,o,s,a=n("2d00"),u=n("7726"),c=n("9b43"),h=n("23c6"),l=n("5ca1"),f=n("d3f4"),p=n("d8e8"),d=n("f605"),g=n("4a59"),m=n("ebd6"),y=n("1991").set,_=n("8079")(),v=n("a5b8"),b=n("9c80"),x=n("a25f"),w=n("bcaa"),M="Promise",S=u.TypeError,E=u.process,C=E&&E.versions,I=C&&C.v8||"",L=u[M],O="process"==h(E),T=function(){},P=r=v.f,N=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(T,T)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==I.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(i){}}(),A=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;_(function(){var i=t._v,r=1==t._s,o=0,s=function(e){var n,o,s,a=r?e.ok:e.fail,u=e.resolve,c=e.reject,h=e.domain;try{a?(r||(2==t._h&&F(t),t._h=1),!0===a?n=i:(h&&h.enter(),n=a(i),h&&(h.exit(),s=!0)),n===e.promise?c(S("Promise-chain cycle")):(o=A(n))?o.call(n,u,c):u(n)):c(i)}catch(l){h&&!s&&h.exit(),c(l)}};while(n.length>o)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){y.call(u,function(){var e,n,i,r=t._v,o=k(t);if(o&&(e=b(function(){O?E.emit("unhandledRejection",r,t):(n=u.onunhandledrejection)?n({promise:t,reason:r}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=O||k(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},k=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){y.call(u,function(){var e;O?E.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},z=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},j=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=A(t))?_(function(){var i={_w:n,_d:!1};try{e.call(t,c(j,i,1),c(z,i,1))}catch(r){z.call(i,r)}}):(n._v=t,n._s=1,R(n,!1))}catch(i){z.call({_w:n,_d:!1},i)}}};N||(L=function(t){d(this,L,M,"_h"),p(t),i.call(this);try{t(c(j,this,1),c(z,this,1))}catch(e){z.call(this,e)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n("dcbc")(L.prototype,{then:function(t,e){var n=P(m(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=c(j,t,1),this.reject=c(z,t,1)},v.f=P=function(t){return t===L||t===s?new o(t):r(t)}),l(l.G+l.W+l.F*!N,{Promise:L}),n("7f20")(L,M),n("7a56")(M),s=n("8378")[M],l(l.S+l.F*!N,M,{reject:function(t){var e=P(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(a||!N),M,{resolve:function(t){return w(a&&this===s?L:this,t)}}),l(l.S+l.F*!(N&&n("5cc5")(function(t){L.all(t)["catch"](T)})),M,{all:function(t){var e=this,n=P(e),i=n.resolve,r=n.reject,o=b(function(){var n=[],o=0,s=1;g(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||i(n))},r)}),--s||i(n)});return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=P(e),i=n.reject,r=b(function(){g(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},"552c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="bars",o=448,s=512,a=[],u="f0c9",c="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faBars=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},5537:function(t,e,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",s=r[o]||(r[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var i=n("dbdb")("keys"),r=n("62a0");t.exports=function(t){return i[t]||(i[t]=r(t))}},"580f":function(t,e,n){var i=n("c8d5"),r=n("a4b7"),o=n("d420");function s(t){var e=i(t),n=o(e,r(e)),s=n+1;return s}t.exports=s},"584a":function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"5a38":function(t,e,n){var i=n("c8d5");function r(t){return 4===i(t).getDay()}t.exports=r},"5a60":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}t.exports=r},"5b4e":function(t,e,n){var i=n("36c3"),r=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,s){var a,u=i(e),c=r(u.length),h=o(s,c);if(t&&n!=n){while(c>h)if(a=u[h++],a!=a)return!0}else for(;c>h;h++)if((t||h in u)&&u[h]===n)return t||h||0;return!t&&-1}}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),u="prototype",c=function(t,e,n){var h,l,f,p,d=t&c.F,g=t&c.G,m=t&c.S,y=t&c.P,_=t&c.B,v=g?i:m?i[e]||(i[e]={}):(i[e]||{})[u],b=g?r:r[e]||(r[e]={}),x=b[u]||(b[u]={});for(h in g&&(n=e),n)l=!d&&v&&void 0!==v[h],f=(l?v:n)[h],p=_&&l?a(f,i):y&&"function"==typeof f?a(Function.call,f):f,v&&s(v,h,f,t&c.U),b[h]!=f&&o(b,h,p),y&&x[h]!=f&&(x[h]=f)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var i=n("2b4c")("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(s){}return n}},"5d58":function(t,e,n){t.exports=n("d8d6")},"5d73":function(t,e,n){t.exports=n("469f")},"5d95":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getHours();return n}t.exports=r},"5eda":function(t,e,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",s)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},6254:function(t,e,n){var i=n("366b");function r(t,e){return i(Date.now(),t,e)}t.exports=r},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6337:function(t,e,n){var i=n("c8d5"),r=864e5;function o(t,e,n,o){var s=i(t).getTime(),a=i(e).getTime(),u=i(n).getTime(),c=i(o).getTime();if(s>a||u>c)throw new Error("The start of the range cannot be after the end of the range");var h=s<c&&u<a;if(!h)return 0;var l=u<s?s:u,f=c>a?a:c,p=f-l;return Math.ceil(p/r)}t.exports=o},"63b6":function(t,e,n){var i=n("e53d"),r=n("584a"),o=n("d864"),s=n("35e8"),a=n("07e3"),u="prototype",c=function(t,e,n){var h,l,f,p=t&c.F,d=t&c.G,g=t&c.S,m=t&c.P,y=t&c.B,_=t&c.W,v=d?r:r[e]||(r[e]={}),b=v[u],x=d?i:g?i[e]:(i[e]||{})[u];for(h in d&&(n=e),n)l=!p&&x&&void 0!==x[h],l&&a(v,h)||(f=l?x[h]:n[h],v[h]=d&&"function"!=typeof x[h]?n[h]:y&&l?o(f,i):_&&x[h]==f?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[u]=t[u],e}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((v.virtual||(v.virtual={}))[h]=f,t&c.R&&b&&!b[h]&&s(b,h,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6570:function(t,e,n){var i=n("e785"),r=6e4;function o(t,e){var n=i(t,e)/r;return n>0?Math.floor(n):Math.ceil(n)}t.exports=o},"662a":function(t,e,n){var i=n("fbaf");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},6665:function(t,e,n){var i=n("c8d5"),r=n("5416");function o(t,e){var n=i(t),o=Number(e),s=n.getMonth()+o,a=new Date(0);a.setFullYear(n.getFullYear(),s,1),a.setHours(0,0,0,0);var u=r(a);return n.setMonth(s,Math.min(u,n.getDate())),n}t.exports=o},6718:function(t,e,n){var i=n("e53d"),r=n("584a"),o=n("b8e3"),s=n("ccb9"),a=n("d9f6").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},6762:function(t,e,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(t,e,n){var i=n("ca5a")("meta"),r=n("d3f4"),o=n("69a8"),s=n("86cc").f,a=0,u=Object.isExtensible||function(){return!0},c=!n("79e5")(function(){return u(Object.preventExtensions({}))}),h=function(t){s(t,i,{value:{i:"O"+ ++a,w:{}}})},l=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!u(t))return"F";if(!e)return"E";h(t)}return t[i].i},f=function(t,e){if(!o(t,i)){if(!u(t))return!0;if(!e)return!1;h(t)}return t[i].w},p=function(t){return c&&d.NEED&&u(t)&&!o(t,i)&&h(t),t},d=t.exports={KEY:i,NEED:!1,fastKey:l,getWeak:f,onFreeze:p}},"67bb":function(t,e,n){t.exports=n("f921")},6808:function(t){t.exports={}},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"693a":function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate(),r=new Date(0);return r.setFullYear(e,n,i-1),r.setHours(0,0,0,0),r}t.exports=n},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"69d3":function(t,e,n){n("6718")("asyncIterator")},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6abf":function(t,e,n){var i=n("e6f3"),r=n("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},"6af7":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"leaflet-bar easy-button-container leaflet-control"},[n("button",{staticClass:"cyclomedia-button",class:this.cyclomediaActive,on:{click:function(e){return e.preventDefault(),t.handleButtonClick(e)}}},[n("span",{staticClass:"button-state"},[n("img",{staticClass:"button-image",attrs:{src:t.imgSrc}})])])])},r=[],o=n("f0a4"),s=n("4a0d"),a={name:"CyclomediaButton",extends:o["a"],props:["link","imgSrc"],created:function(){this.$cyclomediaRecordingsClient=new s["a"](this.$config.cyclomedia.recordingsUrl,this.$config.cyclomedia.username,this.$config.cyclomedia.password,4326)},computed:{cyclomediaInitialized:function(){return this.$store.state.cyclomedia.initialized},cyclomediaActive:function(){return this.$store.state.cyclomedia.active?"active":"inactive"}},methods:{handleButtonClick:function(t){this.cyclomediaInitialized||this.$store.commit("setCyclomediaInitialized",!0);var e=!this.$store.state.cyclomedia.active;this.$store.commit("setCyclomediaActive",e)}}},u=a,c=(n("c865"),n("2877")),h=Object(c["a"])(u,i,r,!1,null,"023c20c2",null);e["a"]=h.exports},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6b8f":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()<r.getTime()}t.exports=r},"6bfa":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fab",r="twitter",o=512,s=512,a=[],u="f099",c="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faTwitter=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},"6c1c":function(t,e,n){n("c367");for(var i=n("e53d"),r=n("35e8"),o=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],h=i[c],l=h&&h.prototype;l&&!l[s]&&r(l,s,c),o[c]=o.Array}},"6cc5":function(t,e,n){},"6f00":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setHours(r),n}t.exports=r},"6f4e":function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate(),r=new Date(0);return r.setFullYear(e,n,i+1),r.setHours(23,59,59,999),r}t.exports=n},"6fcc":function(t,e,n){var i=n("c8d5"),r=n("2a9c"),o=n("0d3e");function s(t,e){var n=i(t),s=i(e),a=o(n,s),u=Math.abs(r(n,s));n.setFullYear(n.getFullYear()-a*u);var c=o(n,s)===-a;return a*(u-c)}t.exports=s},7093:function(t,e,n){"use strict";var i=n("ecee"),r=n("bd28"),o=n("1adf"),s=n("e3e1"),a=n("21f3"),u=n("2dba"),c=n("717a");i["b"].watch(),i["d"].add(o["faSearch"],s["faTimes"],a["faMapMarkerAlt"],r["faDotCircle"],u["faCaretLeft"],c["faCaretRight"]);i["d"]},"70f2":function(t,e,n){var i=n("580f"),r=n("81fc"),o=n("8964"),s=n("c8d5"),a=n("7eea"),u=n("52cf");function c(t,e,n){var i=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",r=n||{},o=r.locale,c=u.format.formatters,h=u.format.formattingTokensRegExp;o&&o.format&&o.format.formatters&&(c=o.format.formatters,o.format.formattingTokensRegExp&&(h=o.format.formattingTokensRegExp));var f=s(t);if(!a(f))return"Invalid Date";var p=l(i,c,h);return p(f)}var h={M:function(t){return t.getMonth()+1},MM:function(t){return d(t.getMonth()+1,2)},Q:function(t){return Math.ceil((t.getMonth()+1)/3)},D:function(t){return t.getDate()},DD:function(t){return d(t.getDate(),2)},DDD:function(t){return i(t)},DDDD:function(t){return d(i(t),3)},d:function(t){return t.getDay()},E:function(t){return t.getDay()||7},W:function(t){return r(t)},WW:function(t){return d(r(t),2)},YY:function(t){return d(t.getFullYear(),4).substr(2)},YYYY:function(t){return d(t.getFullYear(),4)},GG:function(t){return String(o(t)).substr(2)},GGGG:function(t){return o(t)},H:function(t){return t.getHours()},HH:function(t){return d(t.getHours(),2)},h:function(t){var e=t.getHours();return 0===e?12:e>12?e%12:e},hh:function(t){return d(h["h"](t),2)},m:function(t){return t.getMinutes()},mm:function(t){return d(t.getMinutes(),2)},s:function(t){return t.getSeconds()},ss:function(t){return d(t.getSeconds(),2)},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return d(Math.floor(t.getMilliseconds()/10),2)},SSS:function(t){return d(t.getMilliseconds(),3)},Z:function(t){return p(t.getTimezoneOffset(),":")},ZZ:function(t){return p(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()}};function l(t,e,n){var i,r,o=t.match(n),s=o.length;for(i=0;i<s;i++)r=e[o[i]]||h[o[i]],o[i]=r||f(o[i]);return function(t){for(var e="",n=0;n<s;n++)o[n]instanceof Function?e+=o[n](t,h):e+=o[n];return e}}function f(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|]$/g,""):t.replace(/\\/g,"")}function p(t,e){e=e||"";var n=t>0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),o=i%60;return n+d(r,2)+e+d(o,2)}function d(t,e){var n=Math.abs(t).toString();while(n.length<e)n="0"+n;return n}t.exports=c},"717a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="caret-right",o=192,s=512,a=[],u="f0da",c="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faCaretRight=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},"71c1":function(t,e,n){var i=n("3a38"),r=n("25eb");t.exports=function(t){return function(e,n){var o,s,a=String(r(e)),u=i(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},"72b7":function(t,e,n){var i=n("ec1f"),r=6e4;function o(t,e){var n=Number(e);return i(t,n*r)}t.exports=o},7333:function(t,e,n){"use strict";var i=n("9e1e"),r=n("0d58"),o=n("2621"),s=n("52a7"),a=n("4bf8"),u=n("626a"),c=Object.assign;t.exports=!c||n("79e5")(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i})?function(t,e){var n=a(t),c=arguments.length,h=1,l=o.f,f=s.f;while(c>h){var p,d=u(arguments[h++]),g=l?r(d).concat(l(d)):r(d),m=g.length,y=0;while(m>y)p=g[y++],i&&!f.call(d,p)||(n[p]=d[p])}return n}:c},7338:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth();return n}t.exports=r},7443:function(t,e,n){var i=n("9744");function r(){return i(new Date)}t.exports=r},7494:function(t,e,n){var i=n("c8d5");function r(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),o=r.getDay(),s=6+(o<n?-7:0)-(o-n);return r.setDate(r.getDate()+s),r.setHours(23,59,59,999),r}t.exports=r},"75fc":function(t,e,n){"use strict";var i=n("a745"),r=n.n(i);function o(t){if(r()(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}var s=n("774e"),a=n.n(s),u=n("c8bb"),c=n.n(u);function h(t){if(c()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return a()(t)}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function f(t){return o(t)||h(t)||l()}n.d(e,"a",function(){return f})},7606:function(t,e,n){var i=n("c8d5");function r(t){return 2===i(t).getDay()}t.exports=r},7618:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("5d58"),r=n.n(i),o=n("67bb"),s=n.n(o);function a(t){return a="function"===typeof s.a&&"symbol"===typeof r.a?function(t){return typeof t}:function(t){return t&&"function"===typeof s.a&&t.constructor===s.a&&t!==s.a.prototype?"symbol":typeof t},a(t)}function u(t){return u="function"===typeof s.a&&"symbol"===a(r.a)?function(t){return a(t)}:function(t){return t&&"function"===typeof s.a&&t.constructor===s.a&&t!==s.a.prototype?"symbol":a(t)},u(t)}},7650:function(t,e,n){"use strict";n("166e")},"765d":function(t,e,n){n("6718")("observable")},"76b3":function(t,e,n){"use strict";function i(t,e,n){const i=Object.keys(n).filter(t=>{return t.startsWith("l-")}).map(t=>t.slice(2));for(let r of i){const n="l-"+r;e.on(r,e=>{t.$emit(n,e)})}}e["a"]=i},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var i=n("7726"),r=n("86cc"),o=n("9e1e"),s=n("2b4c")("species");t.exports=function(t){var e=i[t];o&&e&&!e[s]&&r.f(e,s,{configurable:!0,get:function(){return this}})}},"7a77":function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},"7a83":function(t,e,n){var i=n("8946");function r(t,e){var n=Number(e),r=7*n;return i(t,r)}t.exports=r},"7aac":function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,r,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7bbc":function(t,e,n){var i=n("6821"),r=n("9093").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return r(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):r(i(t))}},"7c8d":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return s});n("cd1f");function i(t,e,n){if(null!==t)for(var r,o,s,a,u,c,h,l,f=0,p=0,d=t.type,g="FeatureCollection"===d,m="Feature"===d,y=g?t.features.length:1,_=0;_<y;_++){h=g?t.features[_].geometry:m?t.geometry:t,l=!!h&&"GeometryCollection"===h.type,u=l?h.geometries.length:1;for(var v=0;v<u;v++){var b=0,x=0;if(a=l?h.geometries[v]:h,null!==a){c=a.coordinates;var w=a.type;switch(f=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===e(c,p,_,b,x))return!1;p++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===e(c[r],p,_,b,x))return!1;p++,"MultiPoint"===w&&b++}"LineString"===w&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(o=0;o<c[r].length-f;o++){if(!1===e(c[r][o],p,_,b,x))return!1;p++}"MultiLineString"===w&&b++,"Polygon"===w&&x++}"Polygon"===w&&b++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for("MultiPolygon"===w&&(x=0),o=0;o<c[r].length;o++){for(s=0;s<c[r][o].length-f;s++){if(!1===e(c[r][o][s],p,_,b,x))return!1;p++}x++}b++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===i(a.geometries[r],e,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function r(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var n=0;n<t.features.length;n++)if(!1===e(t.features[n],n))break}function o(t,e){var n,i,r,o,s,a,u,c,h,l,f=0,p="FeatureCollection"===t.type,d="Feature"===t.type,g=p?t.features.length:1;for(n=0;n<g;n++){for(a=p?t.features[n].geometry:d?t.geometry:t,c=p?t.features[n].properties:d?t.properties:{},h=p?t.features[n].bbox:d?t.bbox:void 0,l=p?t.features[n].id:d?t.id:void 0,u=!!a&&"GeometryCollection"===a.type,s=u?a.geometries.length:1,r=0;r<s;r++)if(o=u?a.geometries[r]:a,null!==o)switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===e(o,f,c,h,l))return!1;break;case"GeometryCollection":for(i=0;i<o.geometries.length;i++)if(!1===e(o.geometries[i],f,c,h,l))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===e(null,f,c,h,l))return!1;f++}}function s(t,e,n){var i=n;return o(t,function(t,r,o,s,a){i=0===r&&void 0===n?t:e(i,t,r,o,s,a)}),i}},"7cd6":function(t,e,n){var i=n("40c3"),r=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},"7d7b":function(t,e,n){var i=n("e4ae"),r=n("7cd6");t.exports=n("584a").getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},"7e90":function(t,e,n){var i=n("d9f6"),r=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){r(t);var n,s=o(e),a=s.length,u=0;while(a>u)i.f(t,n=s[u++],e[n]);return t}},"7eea":function(t,e,n){var i=n("a735");function r(t){if(i(t))return!isNaN(t);throw new TypeError(toString.call(t)+" is not an instance of Date")}t.exports=r},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},"7fd5":function(t,e,n){"use strict";var i=n("7c8d");function r(t){var e=[1/0,1/0,-1/0,-1/0];return Object(i["a"])(t,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}var o=r,s=n("cd1f");function a(t,e){if(e=e||{},!Object(s["f"])(e))throw new Error("options is invalid");var n=e.properties;if(!t)throw new Error("geojson is required");var i=o(t),r=(i[0]+i[2])/2,a=(i[1]+i[3])/2;return Object(s["i"])([r,a],n)}var u=a,c=n("90c2"),h=n("28770");function l(t,e){return p(t,"mercator",e)}function f(t,e){return p(t,"wgs84",e)}function p(t,e,n){if(n=n||{},!Object(s["f"])(n))throw new Error("options is invalid");var r=n.mutate;if(!t)throw new Error("geojson is required");return Array.isArray(t)&&Object(s["e"])(t[0])?t="mercator"===e?d(t):g(t):(!0!==r&&(t=Object(h["a"])(t)),Object(i["a"])(t,function(t){var n="mercator"===e?d(t):g(t);t[0]=n[0],t[1]=n[1]})),t}function d(t){var e=Math.PI/180,n=6378137,i=20037508.342789244,r=Math.abs(t[0])<=180?t[0]:t[0]-360*m(t[0]),o=[n*r*e,n*Math.log(Math.tan(.25*Math.PI+.5*t[1]*e))];return o[0]>i&&(o[0]=i),o[0]<-i&&(o[0]=-i),o[1]>i&&(o[1]=i),o[1]<-i&&(o[1]=-i),o}function g(t){var e=180/Math.PI,n=6378137;return[t[0]*e/n,(.5*Math.PI-2*Math.atan(Math.exp(-t[1]/n)))*e]}function m(t){return t<0?-1:t>0?1:0}var y=function(){return new _};function _(){this.reset()}_.prototype={constructor:_,reset:function(){this.s=this.t=0},add:function(t){b(v,t,this.t),b(this,v.s,this.s),this.s?this.t+=v.t:this.s=v.t},valueOf:function(){return this.s}};var v=new _;function b(t,e,n){var i=t.s=e+n,r=i-e,o=i-r;t.t=e-o+(n-r)}var x=1e-6,w=Math.PI,M=w/2,S=w/4,E=2*w,C=180/w,I=w/180,L=Math.abs,O=Math.atan,T=Math.atan2,P=Math.cos,N=(Math.ceil,Math.exp),A=(Math.floor,Math.log),R=(Math.pow,Math.sin),D=(Math.sign,Math.sqrt),k=Math.tan;function F(t){return t>1?0:t<-1?w:Math.acos(t)}function z(t){return t>1?M:t<-1?-M:Math.asin(t)}function j(){}function B(t,e){t&&q.hasOwnProperty(t.type)&&q[t.type](t,e)}var G={Feature:function(t,e){B(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i<r)B(n[i].geometry,e)}},q={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){U(t.coordinates,e,0)},MultiLineString:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)U(n[i],e,0)},Polygon:function(t,e){V(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)V(n[i],e)},GeometryCollection:function(t,e){var n=t.geometries,i=-1,r=n.length;while(++i<r)B(n[i],e)}};function U(t,e,n){var i,r=-1,o=t.length-n;e.lineStart();while(++r<o)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function V(t,e){var n=-1,i=t.length;e.polygonStart();while(++n<i)U(t[n],e,1);e.polygonEnd()}var Z=function(t,e){t&&G.hasOwnProperty(t.type)?G[t.type](t,e):B(t,e)};y(),y();function H(t){return[T(t[1],t[0]),z(t[2])]}function $(t){var e=t[0],n=t[1],i=P(n);return[i*P(e),i*R(e),R(n)]}function Y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function W(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function X(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function K(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function J(t){var e=D(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}y();var Q=function(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return n=e.invert(n,i),n&&t.invert(n[0],n[1])}),n};function tt(t,e){return[t>w?t-E:t<-w?t+E:t,e]}function et(t,e,n){return(t%=E)?e||n?Q(it(t),rt(e,n)):it(t):e||n?rt(e,n):tt}function nt(t){return function(e,n){return e+=t,[e>w?e-E:e<-w?e+E:e,n]}}function it(t){var e=nt(t);return e.invert=nt(-t),e}function rt(t,e){var n=P(t),i=R(t),r=P(e),o=R(e);function s(t,e){var s=P(e),a=P(t)*s,u=R(t)*s,c=R(e),h=c*n+a*i;return[T(u*r-h*o,a*n-c*i),z(h*r+u*o)]}return s.invert=function(t,e){var s=P(e),a=P(t)*s,u=R(t)*s,c=R(e),h=c*r-u*o;return[T(u*r+c*o,a*n+h*i),z(h*n-a*i)]},s}tt.invert=tt;var ot=function(t){function e(e){return e=t(e[0]*I,e[1]*I),e[0]*=C,e[1]*=C,e}return t=et(t[0]*I,t[1]*I,t.length>2?t[2]*I:0),e.invert=function(e){return e=t.invert(e[0]*I,e[1]*I),e[0]*=C,e[1]*=C,e},e};function st(t,e,n,i,r,o){if(n){var s=P(e),a=R(e),u=i*n;null==r?(r=e+i*E,o=e-u/2):(r=at(s,r),o=at(s,o),(i>0?r<o:r>o)&&(r+=i*E));for(var c,h=r;i>0?h>o:h<o;h-=u)c=H([s,-a*P(h),-a*R(h)]),t.point(c[0],c[1])}}function at(t,e){e=$(e),e[0]-=t,J(e);var n=F(-e[1]);return((-e[2]<0?-n:n)+E-x)%E}var ut=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:j,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},ct=function(t,e,n,i,r,o){var s,a=t[0],u=t[1],c=e[0],h=e[1],l=0,f=1,p=c-a,d=h-u;if(s=n-a,p||!(s>0)){if(s/=p,p<0){if(s<l)return;s<f&&(f=s)}else if(p>0){if(s>f)return;s>l&&(l=s)}if(s=r-a,p||!(s<0)){if(s/=p,p<0){if(s>f)return;s>l&&(l=s)}else if(p>0){if(s<l)return;s<f&&(f=s)}if(s=i-u,d||!(s>0)){if(s/=d,d<0){if(s<l)return;s<f&&(f=s)}else if(d>0){if(s>f)return;s>l&&(l=s)}if(s=o-u,d||!(s<0)){if(s/=d,d<0){if(s>f)return;s>l&&(l=s)}else if(d>0){if(s<l)return;s<f&&(f=s)}return l>0&&(t[0]=a+l*p,t[1]=u+l*d),f<1&&(e[0]=a+f*p,e[1]=u+f*d),!0}}}}},ht=function(t,e){return L(t[0]-e[0])<x&&L(t[1]-e[1])<x};function lt(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}var ft=function(t,e,n,i,r){var o,s,a=[],u=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],s=t[e];if(ht(i,s)){for(r.lineStart(),o=0;o<e;++o)r.point((i=t[o])[0],i[1]);r.lineEnd()}else a.push(n=new lt(i,t,null,!0)),u.push(n.o=new lt(i,null,n,!1)),a.push(n=new lt(s,t,null,!1)),u.push(n.o=new lt(s,null,n,!0))}}),a.length){for(u.sort(e),pt(a),pt(u),o=0,s=u.length;o<s;++o)u[o].e=n=!n;var c,h,l=a[0];while(1){var f=l,p=!0;while(f.v)if((f=f.n)===l)return;c=f.z,r.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(o=0,s=c.length;o<s;++o)r.point((h=c[o])[0],h[1]);else i(f.x,f.n.x,1,r);f=f.n}else{if(p)for(c=f.p.z,o=c.length-1;o>=0;--o)r.point((h=c[o])[0],h[1]);else i(f.x,f.p.x,-1,r);f=f.p}f=f.o,c=f.z,p=!p}while(!f.v);r.lineEnd()}}};function pt(t){if(e=t.length){var e,n,i=0,r=t[0];while(++i<e)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}var dt=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},gt=function(t){return 1===t.length&&(t=mt(t)),{left:function(e,n,i,r){null==i&&(i=0),null==r&&(r=e.length);while(i<r){var o=i+r>>>1;t(e[o],n)<0?i=o+1:r=o}return i},right:function(e,n,i,r){null==i&&(i=0),null==r&&(r=e.length);while(i<r){var o=i+r>>>1;t(e[o],n)>0?r=o:i=o+1}return i}}};function mt(t){return function(e,n){return dt(t(e),n)}}var yt=gt(dt);yt.right,yt.left;var _t=Array.prototype;_t.slice,_t.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var vt=function(t){var e,n,i,r=t.length,o=-1,s=0;while(++o<r)s+=t[o].length;n=new Array(s);while(--r>=0){i=t[r],e=i.length;while(--e>=0)n[--s]=i[e]}return n};var bt=1e9,xt=-bt;function wt(t,e,n,i){function r(r,o){return t<=r&&r<=n&&e<=o&&o<=i}function o(r,o,a,c){var h=0,l=0;if(null==r||(h=s(r,a))!==(l=s(o,a))||u(r,o)<0^a>0)do{c.point(0===h||3===h?t:n,h>1?i:e)}while((h=(h+a+4)%4)!==l);else c.point(o[0],o[1])}function s(i,r){return L(i[0]-t)<x?r>0?0:3:L(i[0]-n)<x?r>0?2:1:L(i[1]-e)<x?r>0?1:0:r>0?3:2}function a(t,e){return u(t.x,e.x)}function u(t,e){var n=s(t,1),i=s(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(s){var u,c,h,l,f,p,d,g,m,y,_,v=s,b=ut(),x={point:w,lineStart:C,lineEnd:I,polygonStart:S,polygonEnd:E};function w(t,e){r(t,e)&&v.point(t,e)}function M(){for(var e=0,n=0,r=c.length;n<r;++n)for(var o,s,a=c[n],u=1,h=a.length,l=a[0],f=l[0],p=l[1];u<h;++u)o=f,s=p,l=a[u],f=l[0],p=l[1],s<=i?p>i&&(f-o)*(i-s)>(p-s)*(t-o)&&++e:p<=i&&(f-o)*(i-s)<(p-s)*(t-o)&&--e;return e}function S(){v=b,u=[],c=[],_=!0}function E(){var t=M(),e=_&&t,n=(u=vt(u)).length;(e||n)&&(s.polygonStart(),e&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),n&&ft(u,a,t,o,s),s.polygonEnd()),v=s,u=c=h=null}function C(){x.point=L,c&&c.push(h=[]),y=!0,m=!1,d=g=NaN}function I(){u&&(L(l,f),p&&m&&b.rejoin(),u.push(b.result())),x.point=w,m&&v.lineEnd()}function L(o,s){var a=r(o,s);if(c&&h.push([o,s]),y)l=o,f=s,p=a,y=!1,a&&(v.lineStart(),v.point(o,s));else if(a&&m)v.point(o,s);else{var u=[d=Math.max(xt,Math.min(bt,d)),g=Math.max(xt,Math.min(bt,g))],b=[o=Math.max(xt,Math.min(bt,o)),s=Math.max(xt,Math.min(bt,s))];ct(u,b,t,e,n,i)?(m||(v.lineStart(),v.point(u[0],u[1])),v.point(b[0],b[1]),a||v.lineEnd(),_=!1):a&&(v.lineStart(),v.point(o,s),_=!1)}d=o,g=s,m=a}return x}}var Mt=y(),St=function(t,e){var n=e[0],i=e[1],r=[R(n),-P(n),0],o=0,s=0;Mt.reset();for(var a=0,u=t.length;a<u;++a)if(h=(c=t[a]).length)for(var c,h,l=c[h-1],f=l[0],p=l[1]/2+S,d=R(p),g=P(p),m=0;m<h;++m,f=_,d=b,g=M,l=y){var y=c[m],_=y[0],v=y[1]/2+S,b=R(v),M=P(v),C=_-f,I=C>=0?1:-1,L=I*C,O=L>w,N=d*b;if(Mt.add(T(N*I*R(L),g*M+N*P(L))),o+=O?C+I*E:C,O^f>=n^_>=n){var A=W($(l),$(y));J(A);var D=W(r,A);J(D);var k=(O^C>=0?-1:1)*z(D[2]);(i>k||i===k&&(A[0]||A[1]))&&(s+=O^C>=0?1:-1)}}return(o<-x||o<x&&Mt<-x)^1&s};y();var Et=function(t){return t};y(),y();var Ct=1/0,It=Ct,Lt=-Ct,Ot=Lt,Tt={point:Pt,lineStart:j,lineEnd:j,polygonStart:j,polygonEnd:j,result:function(){var t=[[Ct,It],[Lt,Ot]];return Lt=Ot=-(It=Ct=1/0),t}};function Pt(t,e){t<Ct&&(Ct=t),t>Lt&&(Lt=t),e<It&&(It=e),e>Ot&&(Ot=e)}var Nt=Tt;function At(t){this._context=t}At.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,E);break}},result:j};y();function Rt(){this._string=[]}function Dt(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Rt.prototype={_radius:4.5,_circle:Dt(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Dt(this._radius)),this._string.push("M",t,",",e,this._circle);break}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var kt=function(t,e,n,i){return function(r,o){var s,a,u,c=e(o),h=r.invert(i[0],i[1]),l=ut(),f=e(l),p=!1,d={point:g,lineStart:y,lineEnd:_,polygonStart:function(){d.point=v,d.lineStart=b,d.lineEnd=x,a=[],s=[]},polygonEnd:function(){d.point=g,d.lineStart=y,d.lineEnd=_,a=vt(a);var t=St(s,h);a.length?(p||(o.polygonStart(),p=!0),ft(a,zt,t,n,o)):t&&(p||(o.polygonStart(),p=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),p&&(o.polygonEnd(),p=!1),a=s=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function g(e,n){var i=r(e,n);t(e=i[0],n=i[1])&&o.point(e,n)}function m(t,e){var n=r(t,e);c.point(n[0],n[1])}function y(){d.point=m,c.lineStart()}function _(){d.point=g,c.lineEnd()}function v(t,e){u.push([t,e]);var n=r(t,e);f.point(n[0],n[1])}function b(){f.lineStart(),u=[]}function x(){v(u[0][0],u[0][1]),f.lineEnd();var t,e,n,i,r=f.clean(),c=l.result(),h=c.length;if(u.pop(),s.push(u),u=null,h)if(1&r){if(n=c[0],(e=n.length-1)>0){for(p||(o.polygonStart(),p=!0),o.lineStart(),t=0;t<e;++t)o.point((i=n[t])[0],i[1]);o.lineEnd()}}else h>1&&2&r&&c.push(c.pop().concat(c.shift())),a.push(c.filter(Ft))}return d}};function Ft(t){return t.length>1}function zt(t,e){return((t=t.x)[0]<0?t[1]-M-x:M-t[1])-((e=e.x)[0]<0?e[1]-M-x:M-e[1])}var jt=kt(function(){return!0},Bt,qt,[-w,-M]);function Bt(t){var e,n=NaN,i=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var a=o>0?w:-w,u=L(o-n);L(u-w)<x?(t.point(n,i=(i+s)/2>0?M:-M),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(a,i),t.point(o,i),e=0):r!==a&&u>=w&&(L(n-r)<x&&(n-=r*x),L(o-a)<x&&(o-=a*x),i=Gt(n,i,o,s),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(a,i),e=0),t.point(n=o,i=s),r=a},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}}function Gt(t,e,n,i){var r,o,s=R(t-n);return L(s)>x?O((R(e)*(o=P(i))*R(n)-R(i)*(r=P(e))*R(t))/(r*o*s)):(e+i)/2}function qt(t,e,n,i){var r;if(null==t)r=n*M,i.point(-w,r),i.point(0,r),i.point(w,r),i.point(w,0),i.point(w,-r),i.point(0,-r),i.point(-w,-r),i.point(-w,0),i.point(-w,r);else if(L(t[0]-e[0])>x){var o=t[0]<e[0]?w:-w;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(e[0],e[1])}var Ut=function(t,e){var n=P(t),i=n>0,r=L(n)>x;function o(n,i,r,o){st(o,t,e,r,n,i)}function s(t,e){return P(t)*P(e)>n}function a(t){var e,n,o,a,h;return{lineStart:function(){a=o=!1,h=1},point:function(l,f){var p,d=[l,f],g=s(l,f),m=i?g?0:c(l,f):g?c(l+(l<0?w:-w),f):0;if(!e&&(a=o=g)&&t.lineStart(),g!==o&&(p=u(e,d),(!p||ht(e,p)||ht(d,p))&&(d[0]+=x,d[1]+=x,g=s(d[0],d[1]))),g!==o)h=0,g?(t.lineStart(),p=u(d,e),t.point(p[0],p[1])):(p=u(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(r&&e&&i^g){var y;m&n||!(y=u(d,e,!0))||(h=0,i?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||e&&ht(e,d)||t.point(d[0],d[1]),e=d,o=g,n=m},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return h|(a&&o)<<1}}}function u(t,e,i){var r=$(t),o=$(e),s=[1,0,0],a=W(r,o),u=Y(a,a),c=a[0],h=u-c*c;if(!h)return!i&&t;var l=n*u/h,f=-n*c/h,p=W(s,a),d=K(s,l),g=K(a,f);X(d,g);var m=p,y=Y(d,m),_=Y(m,m),v=y*y-_*(Y(d,d)-1);if(!(v<0)){var b=D(v),M=K(m,(-y-b)/_);if(X(M,d),M=H(M),!i)return M;var S,E=t[0],C=e[0],I=t[1],O=e[1];C<E&&(S=E,E=C,C=S);var T=C-E,P=L(T-w)<x,N=P||T<x;if(!P&&O<I&&(S=I,I=O,O=S),N?P?I+O>0^M[1]<(L(M[0]-E)<x?I:O):I<=M[1]&&M[1]<=O:T>w^(E<=M[0]&&M[0]<=C)){var A=K(m,(-y+b)/_);return X(A,d),[M,H(A)]}}}function c(e,n){var r=i?t:w-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return kt(s,a,o,i?[0,-t]:[-w,t-w])};function Vt(t){return function(e){var n=new Zt;for(var i in t)n[i]=t[i];return n.stream=e,n}}function Zt(){}function Ht(t,e,n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),Z(n,t.stream(Nt));var s=Nt.result(),a=Math.min(i/(s[1][0]-s[0][0]),r/(s[1][1]-s[0][1])),u=+e[0][0]+(i-a*(s[1][0]+s[0][0]))/2,c=+e[0][1]+(r-a*(s[1][1]+s[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*a).translate([u,c])}function $t(t,e,n){return Ht(t,[[0,0],e],n)}Zt.prototype={constructor:Zt,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Yt=16,Wt=P(30*I),Xt=function(t,e){return+e?Jt(t,e):Kt(t)};function Kt(t){return Vt({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function Jt(t,e){function n(i,r,o,s,a,u,c,h,l,f,p,d,g,m){var y=c-i,_=h-r,v=y*y+_*_;if(v>4*e&&g--){var b=s+f,w=a+p,M=u+d,S=D(b*b+w*w+M*M),E=z(M/=S),C=L(L(M)-1)<x||L(o-l)<x?(o+l)/2:T(w,b),I=t(C,E),O=I[0],P=I[1],N=O-i,A=P-r,R=_*N-y*A;(R*R/v>e||L((y*N+_*A)/v-.5)>.3||s*f+a*p+u*d<Wt)&&(n(i,r,o,s,a,u,O,P,C,b/=S,w/=S,M,g,m),m.point(O,P),n(O,P,C,b,w,M,c,h,l,f,p,d,g,m))}}return function(e){var i,r,o,s,a,u,c,h,l,f,p,d,g={point:m,lineStart:y,lineEnd:v,polygonStart:function(){e.polygonStart(),g.lineStart=b},polygonEnd:function(){e.polygonEnd(),g.lineStart=y}};function m(n,i){n=t(n,i),e.point(n[0],n[1])}function y(){h=NaN,g.point=_,e.lineStart()}function _(i,r){var o=$([i,r]),s=t(i,r);n(h,l,c,f,p,d,h=s[0],l=s[1],c=i,f=o[0],p=o[1],d=o[2],Yt,e),e.point(h,l)}function v(){g.point=m,e.lineEnd()}function b(){y(),g.point=x,g.lineEnd=w}function x(t,e){_(i=t,e),r=h,o=l,s=f,a=p,u=d,g.point=_}function w(){n(h,l,c,f,p,d,r,o,i,s,a,u,Yt,e),g.lineEnd=v,v()}return g}}var Qt=Vt({point:function(t,e){this.stream.point(t*I,e*I)}});function te(t){return ee(function(){return t})()}function ee(t){var e,n,i,r,o,s,a,u,c,h,l=150,f=480,p=250,d=0,g=0,m=0,y=0,_=0,v=null,b=jt,x=null,w=Et,M=.5,S=Xt(O,M);function E(t){return t=o(t[0]*I,t[1]*I),[t[0]*l+n,i-t[1]*l]}function L(t){return t=o.invert((t[0]-n)/l,(i-t[1])/l),t&&[t[0]*C,t[1]*C]}function O(t,r){return t=e(t,r),[t[0]*l+n,i-t[1]*l]}function T(){o=Q(r=et(m,y,_),e);var t=e(d,g);return n=f-t[0]*l,i=p+t[1]*l,P()}function P(){return c=h=null,E}return E.stream=function(t){return c&&h===t?c:c=Qt(b(r,S(w(h=t))))},E.clipAngle=function(t){return arguments.length?(b=+t?Ut(v=t*I,6*I):(v=null,jt),P()):v*C},E.clipExtent=function(t){return arguments.length?(w=null==t?(x=s=a=u=null,Et):wt(x=+t[0][0],s=+t[0][1],a=+t[1][0],u=+t[1][1]),P()):null==x?null:[[x,s],[a,u]]},E.scale=function(t){return arguments.length?(l=+t,T()):l},E.translate=function(t){return arguments.length?(f=+t[0],p=+t[1],T()):[f,p]},E.center=function(t){return arguments.length?(d=t[0]%360*I,g=t[1]%360*I,T()):[d*C,g*C]},E.rotate=function(t){return arguments.length?(m=t[0]%360*I,y=t[1]%360*I,_=t.length>2?t[2]%360*I:0,T()):[m*C,y*C,_*C]},E.precision=function(t){return arguments.length?(S=Xt(O,M=t*t),P()):D(M)},E.fitExtent=function(t,e){return Ht(E,t,e)},E.fitSize=function(t,e){return $t(E,t,e)},function(){return e=t.apply(this,arguments),E.invert=e.invert&&L,T()}}function ne(t){return function(e,n){var i=P(e),r=P(n),o=t(i*r);return[o*r*R(e),o*R(n)]}}function ie(t){return function(e,n){var i=D(e*e+n*n),r=t(i),o=R(r),s=P(r);return[T(e*o,i*s),z(i&&n*o/i)]}}var re=ne(function(t){return D(2/(1+t))});re.invert=ie(function(t){return 2*z(t/2)});var oe=ne(function(t){return(t=F(t))&&t/R(t)});oe.invert=ie(function(t){return t});function se(t,e){return[t,A(k((M+e)/2))]}se.invert=function(t,e){return[t,2*O(N(e))-M]};function ae(t){var e,n,i,r=te(t),o=r.center,s=r.scale,a=r.translate,u=r.clipExtent,c=null;function h(){var o=w*s(),a=r(ot(r.rotate()).invert([0,0]));return u(null==c?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:t===se?[[Math.max(a[0]-o,c),e],[Math.min(a[0]+o,n),i]]:[[c,Math.max(a[1]-o,e)],[n,Math.min(a[1]+o,i)]])}return r.scale=function(t){return arguments.length?(s(t),h()):s()},r.translate=function(t){return arguments.length?(a(t),h()):a()},r.center=function(t){return arguments.length?(o(t),h()):o()},r.clipExtent=function(t){return arguments.length?(null==t?c=e=n=i=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],i=+t[1][1]),h()):null==c?null:[[c,e],[n,i]]},h()}function ue(t,e){return[t,e]}ue.invert=ue;function ce(t,e){var n=P(e),i=P(t)*n;return[n*R(t)/i,R(e)/i]}ce.invert=ie(O);function he(t,e){var n=e*e,i=n*n;return[t*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),e*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}he.invert=function(t,e){var n,i=e,r=25;do{var o=i*i,s=o*o;i-=n=(i*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-e)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(L(n)>x&&--r>0);return[t/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]};function le(t,e){return[P(e)*R(t),R(e)]}le.invert=ie(z);function fe(t,e){var n=P(e),i=1+P(t)*n;return[n*R(t)/i,R(e)/i]}fe.invert=ie(function(t){return 2*O(t)});function pe(t,e){return[A(k((M+e)/2)),-t]}pe.invert=function(t,e){return[-e,2*O(N(t))-M]};var de=function(){var t=ae(pe),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90]).scale(159.155)};function ge(t,e,n){n=n||{};var r=n.units,o=n.steps||64;if(!t)throw new Error("geojson is required");if("object"!==typeof n)throw new Error("options must be an object");if("number"!==typeof o)throw new Error("steps must be an number");if(void 0===e)throw new Error("radius is required");if(o<=0)throw new Error("steps must be greater than 0");o=o||64,r=r||"kilometers";var a=[];switch(t.type){case"GeometryCollection":return Object(i["c"])(t,function(t){var n=me(t,e,r,o);n&&a.push(n)}),Object(s["d"])(a);case"FeatureCollection":return Object(i["b"])(t,function(t){var n=me(t,e,r,o);n&&Object(i["b"])(n,function(t){t&&a.push(t)})}),Object(s["d"])(a)}return me(t,e,r,o)}function me(t,e,n,r){var a,u=t.properties||{},h="Feature"===t.type?t.geometry:t;if("GeometryCollection"===h.type){var p=[];return Object(i["c"])(t,function(t){var i=me(t,e,n,r);i&&p.push(i)}),Object(s["d"])(p)}var d=o(t),g=d[1]>50&&d[3]>50;a=g?{type:h.type,coordinates:_e(h.coordinates,be(h))}:l(h);var m,y=new c["GeoJSONReader"],_=y.read(a),v=Object(s["k"])(Object(s["g"])(e,n),"meters"),b=c["BufferOp"].bufferOp(_,v),x=new c["GeoJSONWriter"];if(b=x.write(b),!ye(b.coordinates))return m=g?{type:b.type,coordinates:ve(b.coordinates,be(h))}:f(b),m.geometry?m:Object(s["c"])(m,u)}function ye(t){return Array.isArray(t[0])?ye(t[0]):isNaN(t[0])}function _e(t,e){return"object"!==typeof t[0]?e(t):t.map(function(t){return _e(t,e)})}function ve(t,e){return"object"!==typeof t[0]?e.invert(t):t.map(function(t){return ve(t,e)})}function be(t){var e=u(t).geometry.coordinates.reverse(),n=e.map(function(t){return-t});return de().center(e).rotate(n).scale(s["b"])}e["a"]=ge},"7fd8":function(t,e,n){var i=n("c8d5");function r(t,e){if(!(e instanceof Array))throw new TypeError(toString.call(e)+" is not an instance of Array");var n,r,o=i(t),s=o.getTime();return e.forEach(function(t,e){var o=i(t),a=Math.abs(s-o.getTime());(void 0===n||a<r)&&(n=e,r=a)}),n}t.exports=r},8079:function(t,e,n){var i=n("7726"),r=n("1991").set,o=i.MutationObserver||i.WebKitMutationObserver,s=i.process,a=i.Promise,u="process"==n("2d95")(s);t.exports=function(){var t,e,n,c=function(){var i,r;u&&(i=s.domain)&&i.exit();while(t){r=t.fn,t=t.next;try{r()}catch(o){throw t?n():e=void 0,o}}e=void 0,i&&i.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var h=a.resolve(void 0);n=function(){h.then(c)}}else n=function(){r.call(i,c)};else{var l=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},8148:function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate(),r=new Date(0);return r.setFullYear(e,n,i+1),r.setHours(0,0,0,0),r}t.exports=n},"81fc":function(t,e,n){var i=n("c8d5"),r=n("b4c7"),o=n("4497"),s=6048e5;function a(t){var e=i(t),n=r(e).getTime()-o(e).getTime();return Math.round(n/s)+1}t.exports=a},"82dc":function(t,e,n){var i=n("b4c7"),r=6e4,o=6048e5;function s(t,e){var n=i(t),s=i(e),a=n.getTime()-n.getTimezoneOffset()*r,u=s.getTime()-s.getTimezoneOffset()*r;return Math.round((a-u)/o)}t.exports=s},8301:function(t,e,n){var i=n("17cd");function r(t,e){var n=i(t,e)/3;return n>0?Math.floor(n):Math.ceil(n)}t.exports=r},8378:function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"83ae":function(t,e,n){},"83f0":function(t,e,n){var i=n("af1b");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},8436:function(t,e){t.exports=function(){}},"84b9":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDay();return 0===n&&(n=7),n}t.exports=r},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},8615:function(t,e,n){var i=n("5ca1"),r=n("504c")(!1);i(i.S,"Object",{values:function(t){return r(t)}})},"861d":function(t,e,n){var i=n("8964"),r=n("b4c7");function o(t){var e=i(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var o=r(n);return o.setMilliseconds(o.getMilliseconds()-1),o}t.exports=o},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},8902:function(t,e,n){var i=n("fcb3");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},8946:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setDate(n.getDate()+r),n}t.exports=r},8964:function(t,e,n){var i=n("c8d5"),r=n("b4c7");function o(t){var e=i(t),n=e.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var s=r(o),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var u=r(a);return e.getTime()>=s.getTime()?n+1:e.getTime()>=u.getTime()?n:n-1}t.exports=o},"8a81":function(t,e,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("9e1e"),s=n("5ca1"),a=n("2aba"),u=n("67ab").KEY,c=n("79e5"),h=n("5537"),l=n("7f20"),f=n("ca5a"),p=n("2b4c"),d=n("37c8"),g=n("3a72"),m=n("d4c0"),y=n("1169"),_=n("cb7c"),v=n("d3f4"),b=n("4bf8"),x=n("6821"),w=n("6a99"),M=n("4630"),S=n("2aeb"),E=n("7bbc"),C=n("11e9"),I=n("2621"),L=n("86cc"),O=n("0d58"),T=C.f,P=L.f,N=E.f,A=i.Symbol,R=i.JSON,D=R&&R.stringify,k="prototype",F=p("_hidden"),z=p("toPrimitive"),j={}.propertyIsEnumerable,B=h("symbol-registry"),G=h("symbols"),q=h("op-symbols"),U=Object[k],V="function"==typeof A&&!!I.f,Z=i.QObject,H=!Z||!Z[k]||!Z[k].findChild,$=o&&c(function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=T(U,e);i&&delete U[e],P(t,e,n),i&&t!==U&&P(U,e,i)}:P,Y=function(t){var e=G[t]=S(A[k]);return e._k=t,e},W=V&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},X=function(t,e,n){return t===U&&X(q,e,n),_(t),e=w(e,!0),_(n),r(G,e)?(n.enumerable?(r(t,F)&&t[F][e]&&(t[F][e]=!1),n=S(n,{enumerable:M(0,!1)})):(r(t,F)||P(t,F,M(1,{})),t[F][e]=!0),$(t,e,n)):P(t,e,n)},K=function(t,e){_(t);var n,i=m(e=x(e)),r=0,o=i.length;while(o>r)X(t,n=i[r++],e[n]);return t},J=function(t,e){return void 0===e?S(t):K(S(t),e)},Q=function(t){var e=j.call(this,t=w(t,!0));return!(this===U&&r(G,t)&&!r(q,t))&&(!(e||!r(this,t)||!r(G,t)||r(this,F)&&this[F][t])||e)},tt=function(t,e){if(t=x(t),e=w(e,!0),t!==U||!r(G,e)||r(q,e)){var n=T(t,e);return!n||!r(G,e)||r(t,F)&&t[F][e]||(n.enumerable=!0),n}},et=function(t){var e,n=N(x(t)),i=[],o=0;while(n.length>o)r(G,e=n[o++])||e==F||e==u||i.push(e);return i},nt=function(t){var e,n=t===U,i=N(n?q:x(t)),o=[],s=0;while(i.length>s)!r(G,e=i[s++])||n&&!r(U,e)||o.push(G[e]);return o};V||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===U&&e.call(q,n),r(this,F)&&r(this[F],t)&&(this[F][t]=!1),$(this,t,M(1,n))};return o&&H&&$(U,t,{configurable:!0,set:e}),Y(t)},a(A[k],"toString",function(){return this._k}),C.f=tt,L.f=X,n("9093").f=E.f=et,n("52a7").f=Q,I.f=nt,o&&!n("2d00")&&a(U,"propertyIsEnumerable",Q,!0),d.f=function(t){return Y(p(t))}),s(s.G+s.W+s.F*!V,{Symbol:A});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)p(it[rt++]);for(var ot=O(p.store),st=0;ot.length>st;)g(ot[st++]);s(s.S+s.F*!V,"Symbol",{for:function(t){return r(B,t+="")?B[t]:B[t]=A(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),s(s.S+s.F*!V,"Object",{create:J,defineProperty:X,defineProperties:K,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var at=c(function(){I.f(1)});s(s.S+s.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(b(t))}}),R&&s(s.S+s.F*(!V||c(function(){var t=A();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){var e,n,i=[t],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=e=i[1],(v(e)||void 0!==t)&&!W(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!W(e))return e}),i[1]=e,D.apply(R,i)}}),A[k][z]||n("32e9")(A[k],z,A[k].valueOf),l(A,"Symbol"),l(Math,"Math",!0),l(i.JSON,"JSON",!0)},"8aae":function(t,e,n){n("32a6"),t.exports=n("584a").Object.keys},"8aed":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setMinutes(r),n}t.exports=r},"8c4f":function(t,e,n){"use strict";
  /*!
    * vue-router v3.0.6
    * (c) 2019 Evan You
    * @license MIT
    */function i(t,e){0}function r(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function o(t,e){for(var n in e)t[n]=e[n];return t}var s={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,r=e.parent,s=e.data;s.routerView=!0;var u=r.$createElement,c=n.name,h=r.$route,l=r._routerViewCache||(r._routerViewCache={}),f=0,p=!1;while(r&&r._routerRoot!==r){var d=r.$vnode&&r.$vnode.data;d&&(d.routerView&&f++,d.keepAlive&&r._inactive&&(p=!0)),r=r.$parent}if(s.routerViewDepth=f,p)return u(l[c],s,i);var g=h.matched[f];if(!g)return l[c]=null,u();var m=l[c]=g.components[c];s.registerRouteInstance=function(t,e){var n=g.instances[c];(e&&n!==t||!e&&n===t)&&(g.instances[c]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){g.instances[c]=e.componentInstance},s.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[c]&&(g.instances[c]=t.componentInstance)};var y=s.props=a(h,g.props&&g.props[c]);if(y){y=s.props=o({},y);var _=s.attrs=s.attrs||{};for(var v in y)m.props&&v in m.props||(_[v]=y[v],delete y[v])}return u(m,s,i)}};function a(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}var u=/[!'()*]/g,c=function(t){return"%"+t.charCodeAt(0).toString(16)},h=/%2C/g,l=function(t){return encodeURIComponent(t).replace(u,c).replace(h,",")},f=decodeURIComponent;function p(t,e,n){void 0===e&&(e={});var i,r=n||d;try{i=r(t||"")}catch(s){i={}}for(var o in e)i[o]=e[o];return i}function d(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),i=f(n.shift()),r=n.length>0?f(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}),e):e}function g(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var i=[];return n.forEach(function(t){void 0!==t&&(null===t?i.push(l(e)):i.push(l(e)+"="+l(t)))}),i.join("&")}return l(e)+"="+l(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var m=/\/?$/;function y(t,e,n,i){var r=i&&i.options.stringifyQuery,o=e.query||{};try{o=_(o)}catch(a){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:x(e,r),matched:t?b(t):[]};return n&&(s.redirectedFrom=x(n,r)),Object.freeze(s)}function _(t){if(Array.isArray(t))return t.map(_);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=_(t[n]);return e}return t}var v=y(null,{path:"/"});function b(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function x(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;void 0===r&&(r="");var o=e||g;return(n||"/")+o(i)+r}function w(t,e){return e===v?t===e:!!e&&(t.path&&e.path?t.path.replace(m,"")===e.path.replace(m,"")&&t.hash===e.hash&&M(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&M(t.query,e.query)&&M(t.params,e.params)))}function M(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every(function(n){var i=t[n],r=e[n];return"object"===typeof i&&"object"===typeof r?M(i,r):String(i)===String(r)})}function S(t,e){return 0===t.path.replace(m,"/").indexOf(e.path.replace(m,"/"))&&(!e.hash||t.hash===e.hash)&&E(t.query,e.query)}function E(t,e){for(var n in e)if(!(n in t))return!1;return!0}var C,I=[String,Object],L=[String,Array],O={name:"RouterLink",props:{to:{type:I,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:L,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),s=r.location,a=r.route,u=r.href,c={},h=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==h?"router-link-active":h,p=null==l?"router-link-exact-active":l,d=null==this.activeClass?f:this.activeClass,g=null==this.exactActiveClass?p:this.exactActiveClass,m=s.path?y(null,s,null,n):a;c[g]=w(i,m),c[d]=this.exact?c[g]:S(i,m);var _=function(t){T(t)&&(e.replace?n.replace(s):n.push(s))},v={click:T};Array.isArray(this.event)?this.event.forEach(function(t){v[t]=_}):v[this.event]=_;var b={class:c};if("a"===this.tag)b.on=v,b.attrs={href:u};else{var x=P(this.$slots.default);if(x){x.isStatic=!1;var M=x.data=o({},x.data);M.on=v;var E=x.data.attrs=o({},x.data.attrs);E.href=u}else b.on=v}return t(this.tag,b,this.$slots.default)}};function T(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function P(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=P(e.children)))return e}}function N(t){if(!N.installed||C!==t){N.installed=!0,C=t;var e=function(t){return void 0!==t},n=function(t,n){var i=t.$options._parentVnode;e(i)&&e(i=i.data)&&e(i=i.registerRouteInstance)&&i(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",s),t.component("RouterLink",O);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var A="undefined"!==typeof window;function R(t,e,n){var i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?r.pop():"."!==a&&r.push(a)}return""!==r[0]&&r.unshift(""),r.join("/")}function D(t){var e="",n="",i=t.indexOf("#");i>=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}function k(t){return t.replace(/\/\//g,"/")}var F=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},z=it,j=V,B=Z,G=Y,q=nt,U=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function V(t,e){var n,i=[],r=0,o=0,s="",a=e&&e.delimiter||"/";while(null!=(n=U.exec(t))){var u=n[0],c=n[1],h=n.index;if(s+=t.slice(o,h),o=h+u.length,c)s+=c[1];else{var l=t[o],f=n[2],p=n[3],d=n[4],g=n[5],m=n[6],y=n[7];s&&(i.push(s),s="");var _=null!=f&&null!=l&&l!==f,v="+"===m||"*"===m,b="?"===m||"*"===m,x=n[2]||a,w=d||g;i.push({name:p||r++,prefix:f||"",delimiter:x,optional:b,repeat:v,partial:_,asterisk:!!y,pattern:w?X(w):y?".*":"[^"+W(x)+"]+?"})}}return o<t.length&&(s+=t.substr(o)),s&&i.push(s),i}function Z(t,e){return Y(V(t,e))}function H(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function $(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Y(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"===typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,i){for(var r="",o=n||{},s=i||{},a=s.pretty?H:encodeURIComponent,u=0;u<t.length;u++){var c=t[u];if("string"!==typeof c){var h,l=o[c.name];if(null==l){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(F(l)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<l.length;f++){if(h=a(l[f]),!e[u].test(h))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(h)+"`");r+=(0===f?c.prefix:c.delimiter)+h}}else{if(h=c.asterisk?$(l):a(l),!e[u].test(h))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+h+'"');r+=c.prefix+h}}else r+=c}return r}}function W(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function X(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function K(t,e){return t.keys=e,t}function J(t){return t.sensitive?"":"i"}function Q(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return K(t,e)}function tt(t,e,n){for(var i=[],r=0;r<t.length;r++)i.push(it(t[r],e,n).source);var o=new RegExp("(?:"+i.join("|")+")",J(n));return K(o,e)}function et(t,e,n){return nt(V(t,n),e,n)}function nt(t,e,n){F(e)||(n=e||n,e=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,o="",s=0;s<t.length;s++){var a=t[s];if("string"===typeof a)o+=W(a);else{var u=W(a.prefix),c="(?:"+a.pattern+")";e.push(a),a.repeat&&(c+="(?:"+u+c+")*"),c=a.optional?a.partial?u+"("+c+")?":"(?:"+u+"("+c+"))?":u+"("+c+")",o+=c}}var h=W(n.delimiter||"/"),l=o.slice(-h.length)===h;return i||(o=(l?o.slice(0,-h.length):o)+"(?:"+h+"(?=$))?"),o+=r?"$":i&&l?"":"(?="+h+"|$)",K(new RegExp("^"+o,J(n)),e)}function it(t,e,n){return F(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?Q(t,e):F(t)?tt(t,e,n):et(t,e,n)}z.parse=j,z.compile=B,z.tokensToFunction=G,z.tokensToRegExp=q;var rt=Object.create(null);function ot(t,e,n){e=e||{};try{var i=rt[t]||(rt[t]=z.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),i(e,{pretty:!0})}catch(r){return""}finally{delete e[0]}}function st(t,e,n,i){var r=e||[],o=n||Object.create(null),s=i||Object.create(null);t.forEach(function(t){at(r,o,s,t)});for(var a=0,u=r.length;a<u;a++)"*"===r[a]&&(r.push(r.splice(a,1)[0]),u--,a--);return{pathList:r,pathMap:o,nameMap:s}}function at(t,e,n,i,r,o){var s=i.path,a=i.name;var u=i.pathToRegexpOptions||{},c=ct(s,r,u.strict);"boolean"===typeof i.caseSensitive&&(u.sensitive=i.caseSensitive);var h={path:c,regex:ut(c,u),components:i.components||{default:i.component},instances:{},name:a,parent:r,matchAs:o,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach(function(i){var r=o?k(o+"/"+i.path):void 0;at(t,e,n,i,h,r)}),void 0!==i.alias){var l=Array.isArray(i.alias)?i.alias:[i.alias];l.forEach(function(o){var s={path:o,children:i.children};at(t,e,n,s,r,h.path||"/")})}e[h.path]||(t.push(h.path),e[h.path]=h),a&&(n[a]||(n[a]=h))}function ut(t,e){var n=z(t,[],e);return n}function ct(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]?t:null==e?t:k(e.path+"/"+t)}function ht(t,e,n,i){var r="string"===typeof t?{path:t}:t;if(r._normalized)return r;if(r.name)return o({},t);if(!r.path&&r.params&&e){r=o({},r),r._normalized=!0;var s=o(o({},e.params),r.params);if(e.name)r.name=e.name,r.params=s;else if(e.matched.length){var a=e.matched[e.matched.length-1].path;r.path=ot(a,s,"path "+e.path)}else 0;return r}var u=D(r.path||""),c=e&&e.path||"/",h=u.path?R(u.path,c,n||r.append):c,l=p(u.query,r.query,i&&i.options.parseQuery),f=r.hash||u.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:h,query:l,hash:f}}function lt(t,e){var n=st(t),i=n.pathList,r=n.pathMap,o=n.nameMap;function s(t){st(t,i,r,o)}function a(t,n,s){var a=ht(t,n,!1,e),u=a.name;if(u){var c=o[u];if(!c)return h(null,a);var l=c.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!==typeof a.params&&(a.params={}),n&&"object"===typeof n.params)for(var f in n.params)!(f in a.params)&&l.indexOf(f)>-1&&(a.params[f]=n.params[f]);if(c)return a.path=ot(c.path,a.params,'named route "'+u+'"'),h(c,a,s)}else if(a.path){a.params={};for(var p=0;p<i.length;p++){var d=i[p],g=r[d];if(ft(g.regex,a.path,a.params))return h(g,a,s)}}return h(null,a)}function u(t,n){var i=t.redirect,r="function"===typeof i?i(y(t,n,null,e)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return h(null,n);var s=r,u=s.name,c=s.path,l=n.query,f=n.hash,p=n.params;if(l=s.hasOwnProperty("query")?s.query:l,f=s.hasOwnProperty("hash")?s.hash:f,p=s.hasOwnProperty("params")?s.params:p,u){o[u];return a({_normalized:!0,name:u,query:l,hash:f,params:p},void 0,n)}if(c){var d=pt(c,t),g=ot(d,p,'redirect route with path "'+d+'"');return a({_normalized:!0,path:g,query:l,hash:f},void 0,n)}return h(null,n)}function c(t,e,n){var i=ot(n,e.params,'aliased route with path "'+n+'"'),r=a({_normalized:!0,path:i});if(r){var o=r.matched,s=o[o.length-1];return e.params=r.params,h(s,e)}return h(null,e)}function h(t,n,i){return t&&t.redirect?u(t,i||n):t&&t.matchAs?c(t,n,t.matchAs):y(t,n,i,e)}return{match:a,addRoutes:s}}function ft(t,e,n){var i=e.match(t);if(!i)return!1;if(!n)return!0;for(var r=1,o=i.length;r<o;++r){var s=t.keys[r-1],a="string"===typeof i[r]?decodeURIComponent(i[r]):i[r];s&&(n[s.name||"pathMatch"]=a)}return!0}function pt(t,e){return R(t,e.parent?e.parent.path:"/",!0)}var dt=Object.create(null);function gt(){window.history.replaceState({key:Ot()},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",function(t){yt(),t.state&&t.state.key&&Tt(t.state.key)})}function mt(t,e,n,i){if(t.app){var r=t.options.scrollBehavior;r&&t.app.$nextTick(function(){var o=_t(),s=r.call(t,e,n,i?o:null);s&&("function"===typeof s.then?s.then(function(t){St(t,o)}).catch(function(t){0}):St(s,o))})}}function yt(){var t=Ot();t&&(dt[t]={x:window.pageXOffset,y:window.pageYOffset})}function _t(){var t=Ot();if(t)return dt[t]}function vt(t,e){var n=document.documentElement,i=n.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-i.left-e.x,y:r.top-i.top-e.y}}function bt(t){return Mt(t.x)||Mt(t.y)}function xt(t){return{x:Mt(t.x)?t.x:window.pageXOffset,y:Mt(t.y)?t.y:window.pageYOffset}}function wt(t){return{x:Mt(t.x)?t.x:0,y:Mt(t.y)?t.y:0}}function Mt(t){return"number"===typeof t}function St(t,e){var n="object"===typeof t;if(n&&"string"===typeof t.selector){var i=document.querySelector(t.selector);if(i){var r=t.offset&&"object"===typeof t.offset?t.offset:{};r=wt(r),e=vt(i,r)}else bt(t)&&(e=xt(t))}else n&&bt(t)&&(e=xt(t));e&&window.scrollTo(e.x,e.y)}var Et=A&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),Ct=A&&window.performance&&window.performance.now?window.performance:Date,It=Lt();function Lt(){return Ct.now().toFixed(3)}function Ot(){return It}function Tt(t){It=t}function Pt(t,e){yt();var n=window.history;try{e?n.replaceState({key:It},"",t):(It=Lt(),n.pushState({key:It},"",t))}catch(i){window.location[e?"replace":"assign"](t)}}function Nt(t){Pt(t,!0)}function At(t,e,n){var i=function(r){r>=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}function Rt(t){return function(e,n,i){var o=!1,s=0,a=null;Dt(t,function(t,e,n,u){if("function"===typeof t&&void 0===t.cid){o=!0,s++;var c,h=jt(function(e){zt(e)&&(e=e.default),t.resolved="function"===typeof e?e:C.extend(e),n.components[u]=e,s--,s<=0&&i()}),l=jt(function(t){var e="Failed to resolve async component "+u+": "+t;a||(a=r(t)?t:new Error(e),i(a))});try{c=t(h,l)}catch(p){l(p)}if(c)if("function"===typeof c.then)c.then(h,l);else{var f=c.component;f&&"function"===typeof f.then&&f.then(h,l)}}}),o||i()}}function Dt(t,e){return kt(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function kt(t){return Array.prototype.concat.apply([],t)}var Ft="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function zt(t){return t.__esModule||Ft&&"Module"===t[Symbol.toStringTag]}function jt(t){var e=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var Bt=function(t,e){this.router=t,this.base=Gt(e),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Gt(t){if(!t)if(A){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function qt(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n<i;n++)if(t[n]!==e[n])break;return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function Ut(t,e,n,i){var r=Dt(t,function(t,i,r,o){var s=Vt(t,e);if(s)return Array.isArray(s)?s.map(function(t){return n(t,i,r,o)}):n(s,i,r,o)});return kt(i?r.reverse():r)}function Vt(t,e){return"function"!==typeof t&&(t=C.extend(t)),t.options[e]}function Zt(t){return Ut(t,"beforeRouteLeave",$t,!0)}function Ht(t){return Ut(t,"beforeRouteUpdate",$t)}function $t(t,e){if(e)return function(){return t.apply(e,arguments)}}function Yt(t,e,n){return Ut(t,"beforeRouteEnter",function(t,i,r,o){return Wt(t,r,o,e,n)})}function Wt(t,e,n,i,r){return function(o,s,a){return t(o,s,function(t){a(t),"function"===typeof t&&i.push(function(){Xt(t,e.instances,n,r)})})}}function Xt(t,e,n,i){e[n]&&!e[n]._isBeingDestroyed?t(e[n]):i()&&setTimeout(function(){Xt(t,e,n,i)},16)}Bt.prototype.listen=function(t){this.cb=t},Bt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Bt.prototype.onError=function(t){this.errorCbs.push(t)},Bt.prototype.transitionTo=function(t,e,n){var i=this,r=this.router.match(t,this.current);this.confirmTransition(r,function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach(function(t){t(r)}))},function(t){n&&n(t),t&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach(function(e){e(t)}))})},Bt.prototype.confirmTransition=function(t,e,n){var o=this,s=this.current,a=function(t){r(t)&&(o.errorCbs.length?o.errorCbs.forEach(function(e){e(t)}):(i(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)};if(w(t,s)&&t.matched.length===s.matched.length)return this.ensureURL(),a();var u=qt(this.current.matched,t.matched),c=u.updated,h=u.deactivated,l=u.activated,f=[].concat(Zt(h),this.router.beforeHooks,Ht(c),l.map(function(t){return t.beforeEnter}),Rt(l));this.pending=t;var p=function(e,n){if(o.pending!==t)return a();try{e(t,s,function(t){!1===t||r(t)?(o.ensureURL(!0),a(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(a(),"object"===typeof t&&t.replace?o.replace(t):o.push(t)):n(t)})}catch(i){a(i)}};At(f,p,function(){var n=[],i=function(){return o.current===t},r=Yt(l,n,i),s=r.concat(o.router.resolveHooks);At(s,p,function(){if(o.pending!==t)return a();o.pending=null,e(t),o.router.app&&o.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},Bt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Kt=function(t){function e(e,n){var i=this;t.call(this,e,n);var r=e.options.scrollBehavior,o=Et&&r;o&&gt();var s=Jt(this.base);window.addEventListener("popstate",function(t){var n=i.current,r=Jt(i.base);i.current===v&&r===s||i.transitionTo(r,function(t){o&&mt(e,t,n,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this,r=this,o=r.current;this.transitionTo(t,function(t){Pt(k(i.base+t.fullPath)),mt(i.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this,o=r.current;this.transitionTo(t,function(t){Nt(k(i.base+t.fullPath)),mt(i.router,t,o,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(Jt(this.base)!==this.current.fullPath){var e=k(this.base+this.current.fullPath);t?Pt(e):Nt(e)}},e.prototype.getCurrentLocation=function(){return Jt(this.base)},e}(Bt);function Jt(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Qt=function(t){function e(e,n,i){t.call(this,e,n),i&&te(this.base)||ee()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router,n=e.options.scrollBehavior,i=Et&&n;i&&gt(),window.addEventListener(Et?"popstate":"hashchange",function(){var e=t.current;ee()&&t.transitionTo(ne(),function(n){i&&mt(t.router,n,e,!0),Et||oe(n.fullPath)})})},e.prototype.push=function(t,e,n){var i=this,r=this,o=r.current;this.transitionTo(t,function(t){re(t.fullPath),mt(i.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this,o=r.current;this.transitionTo(t,function(t){oe(t.fullPath),mt(i.router,t,o,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ne()!==e&&(t?re(e):oe(e))},e.prototype.getCurrentLocation=function(){return ne()},e}(Bt);function te(t){var e=Jt(t);if(!/^\/#/.test(e))return window.location.replace(k(t+"/#"+e)),!0}function ee(){var t=ne();return"/"===t.charAt(0)||(oe("/"+t),!1)}function ne(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";t=t.slice(e+1);var n=t.indexOf("?");if(n<0){var i=t.indexOf("#");t=i>-1?decodeURI(t.slice(0,i))+t.slice(i):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function ie(t){var e=window.location.href,n=e.indexOf("#"),i=n>=0?e.slice(0,n):e;return i+"#"+t}function re(t){Et?Pt(ie(t)):window.location.hash=t}function oe(t){Et?Nt(ie(t)):window.location.replace(ie(t))}var se=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){e.index=n,e.updateRoute(i)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Bt),ae=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=lt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Et&&!1!==t.fallback,this.fallback&&(e="hash"),A||(e="abstract"),this.mode=e,e){case"history":this.history=new Kt(this,t.base);break;case"hash":this.history=new Qt(this,t.base,this.fallback);break;case"abstract":this.history=new se(this,t.base);break;default:0}},ue={currentRoute:{configurable:!0}};function ce(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function he(t,e,n){var i="hash"===n?"#"+e:e;return t?k(t+"/"+i):i}ae.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},ue.currentRoute.get=function(){return this.history&&this.history.current},ae.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof Kt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Qt){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ae.prototype.beforeEach=function(t){return ce(this.beforeHooks,t)},ae.prototype.beforeResolve=function(t){return ce(this.resolveHooks,t)},ae.prototype.afterEach=function(t){return ce(this.afterHooks,t)},ae.prototype.onReady=function(t,e){this.history.onReady(t,e)},ae.prototype.onError=function(t){this.history.onError(t)},ae.prototype.push=function(t,e,n){this.history.push(t,e,n)},ae.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},ae.prototype.go=function(t){this.history.go(t)},ae.prototype.back=function(){this.go(-1)},ae.prototype.forward=function(){this.go(1)},ae.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ae.prototype.resolve=function(t,e,n){e=e||this.history.current;var i=ht(t,e,n,this),r=this.match(i,e),o=r.redirectedFrom||r.fullPath,s=this.history.base,a=he(s,o,this.mode);return{location:i,route:r,href:a,normalizedTo:i,resolved:r}},ae.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ae.prototype,ue),ae.install=N,ae.version="3.0.6",A&&window.Vue&&window.Vue.use(ae),e["a"]=ae},"8c5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fab",r="facebook",o=512,s=512,a=[],u="f09a",c="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faFacebook=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},"8c81":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMilliseconds();return n}t.exports=r},"8df4":function(t,e,n){"use strict";var i=n("7a77");function r(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new i(t),e(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r(function(e){t=e});return{token:e,cancel:t}},t.exports=r},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var i=n("a159"),r=n("aebd"),o=n("45f2"),s={};n("35e8")(s,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},9003:function(t,e,n){var i=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==i(t)}},"902e":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getTime();return n}t.exports=r},9093:function(t,e,n){var i=n("ce10"),r=n("e11e2").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},"90c2":function(t,e,n){!function(t,n){n(e)}(0,function(t){"use strict";function e(){}function n(t){this.message=t||""}function i(t){this.message=t||""}function r(t){this.message=t||""}function o(){}function s(t){return null===t?Rt:t.color}function a(t){return null===t?null:t.parent}function u(t,e){null!==t&&(t.color=e)}function c(t){return null===t?null:t.left}function h(t){return null===t?null:t.right}function l(){this.root_=null,this.size_=0}function f(){}function p(){this.array_=[],arguments[0]instanceof bt&&this.addAll(arguments[0])}function d(){}function g(t){this.message=t||""}function m(){this.array_=[]}"fill"in Array.prototype||Object.defineProperty(Array.prototype,"fill",{configurable:!0,value:function(t){if(void 0===this||null===this)throw new TypeError(this+" is not an object");var e=Object(this),n=Math.max(Math.min(e.length,9007199254740991),0)||0,i=1 in arguments&&parseInt(Number(arguments[1]),10)||0;i=i<0?Math.max(n+i,0):Math.min(i,n);var r=2 in arguments&&void 0!==arguments[2]?parseInt(Number(arguments[2]),10)||0:n;for(r=r<0?Math.max(n+arguments[2],0):Math.min(r,n);i<r;)e[i]=t,++i;return e},writable:!0}),Number.isFinite=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)},Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(t){return t!=t},Math.trunc=Math.trunc||function(t){return t<0?Math.ceil(t):Math.floor(t)};var y=function(){};y.prototype.interfaces_=function(){return[]},y.prototype.getClass=function(){return y},y.prototype.equalsWithTolerance=function(t,e,n){return Math.abs(t-e)<=n};var _=function(t){function e(e){t.call(this,e),this.name="IllegalArgumentException",this.message=e,this.stack=(new t).stack}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),v=function(){},b={MAX_VALUE:{configurable:!0}};v.isNaN=function(t){return Number.isNaN(t)},v.doubleToLongBits=function(t){return t},v.longBitsToDouble=function(t){return t},v.isInfinite=function(t){return!Number.isFinite(t)},b.MAX_VALUE.get=function(){return Number.MAX_VALUE},Object.defineProperties(v,b);var x=function(){},w=function(){},M=function(){},S=function t(){if(this.x=null,this.y=null,this.z=null,0===arguments.length)this.x=0,this.y=0,this.z=t.NULL_ORDINATE;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.z=e.z}else 2===arguments.length?(this.x=arguments[0],this.y=arguments[1],this.z=t.NULL_ORDINATE):3===arguments.length&&(this.x=arguments[0],this.y=arguments[1],this.z=arguments[2])},E={DimensionalComparator:{configurable:!0},serialVersionUID:{configurable:!0},NULL_ORDINATE:{configurable:!0},X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0}};S.prototype.setOrdinate=function(t,e){switch(t){case S.X:this.x=e;break;case S.Y:this.y=e;break;case S.Z:this.z=e;break;default:throw new _("Invalid ordinate index: "+t)}},S.prototype.equals2D=function(){if(1===arguments.length){var t=arguments[0];return this.x===t.x&&this.y===t.y}if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!y.equalsWithTolerance(this.x,e.x,n)&&!!y.equalsWithTolerance(this.y,e.y,n)}},S.prototype.getOrdinate=function(t){switch(t){case S.X:return this.x;case S.Y:return this.y;case S.Z:return this.z}throw new _("Invalid ordinate index: "+t)},S.prototype.equals3D=function(t){return this.x===t.x&&this.y===t.y&&(this.z===t.z||v.isNaN(this.z))&&v.isNaN(t.z)},S.prototype.equals=function(t){return t instanceof S&&this.equals2D(t)},S.prototype.equalInZ=function(t,e){return y.equalsWithTolerance(this.z,t.z,e)},S.prototype.compareTo=function(t){var e=t;return this.x<e.x?-1:this.x>e.x?1:this.y<e.y?-1:this.y>e.y?1:0},S.prototype.clone=function(){},S.prototype.copy=function(){return new S(this)},S.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+")"},S.prototype.distance3D=function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return Math.sqrt(e*e+n*n+i*i)},S.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},S.prototype.hashCode=function(){var t=17;return t=37*t+S.hashCode(this.x),37*t+S.hashCode(this.y)},S.prototype.setCoordinate=function(t){this.x=t.x,this.y=t.y,this.z=t.z},S.prototype.interfaces_=function(){return[x,w,e]},S.prototype.getClass=function(){return S},S.hashCode=function(){if(1===arguments.length){var t=arguments[0],e=v.doubleToLongBits(t);return Math.trunc((e^e)>>>32)}},E.DimensionalComparator.get=function(){return C},E.serialVersionUID.get=function(){return 0x5cbf2c235c7e5800},E.NULL_ORDINATE.get=function(){return v.NaN},E.X.get=function(){return 0},E.Y.get=function(){return 1},E.Z.get=function(){return 2},Object.defineProperties(S,E);var C=function(t){if(this._dimensionsToTest=2,0===arguments.length);else if(1===arguments.length){var e=arguments[0];if(2!==e&&3!==e)throw new _("only 2 or 3 dimensions may be specified");this._dimensionsToTest=e}};C.prototype.compare=function(t,e){var n=t,i=e,r=C.compare(n.x,i.x);if(0!==r)return r;var o=C.compare(n.y,i.y);return 0!==o?o:this._dimensionsToTest<=2?0:C.compare(n.z,i.z)},C.prototype.interfaces_=function(){return[M]},C.prototype.getClass=function(){return C},C.compare=function(t,e){return t<e?-1:t>e?1:v.isNaN(t)?v.isNaN(e)?0:-1:v.isNaN(e)?1:0};var I=function(){};I.prototype.create=function(){},I.prototype.interfaces_=function(){return[]},I.prototype.getClass=function(){return I};var L=function(){},O={INTERIOR:{configurable:!0},BOUNDARY:{configurable:!0},EXTERIOR:{configurable:!0},NONE:{configurable:!0}};L.prototype.interfaces_=function(){return[]},L.prototype.getClass=function(){return L},L.toLocationSymbol=function(t){switch(t){case L.EXTERIOR:return"e";case L.BOUNDARY:return"b";case L.INTERIOR:return"i";case L.NONE:return"-"}throw new _("Unknown location value: "+t)},O.INTERIOR.get=function(){return 0},O.BOUNDARY.get=function(){return 1},O.EXTERIOR.get=function(){return 2},O.NONE.get=function(){return-1},Object.defineProperties(L,O);var T=function(t,e){return t.interfaces_&&t.interfaces_().indexOf(e)>-1},P=function(){},N={LOG_10:{configurable:!0}};P.prototype.interfaces_=function(){return[]},P.prototype.getClass=function(){return P},P.log10=function(t){var e=Math.log(t);return v.isInfinite(e)?e:v.isNaN(e)?e:e/P.LOG_10},P.min=function(t,e,n,i){var r=t;return e<r&&(r=e),n<r&&(r=n),i<r&&(r=i),r},P.clamp=function(){if("number"==typeof arguments[2]&&"number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1],n=arguments[2];return t<e?e:t>n?n:t}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var i=arguments[0],r=arguments[1],o=arguments[2];return i<r?r:i>o?o:i}},P.wrap=function(t,e){return t<0?e- -t%e:t%e},P.max=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],i=t;return e>i&&(i=e),n>i&&(i=n),i}if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3],u=r;return o>u&&(u=o),s>u&&(u=s),a>u&&(u=a),u}},P.average=function(t,e){return(t+e)/2},N.LOG_10.get=function(){return Math.log(10)},Object.defineProperties(P,N);var A=function(t){this.str=t};A.prototype.append=function(t){this.str+=t},A.prototype.setCharAt=function(t,e){this.str=this.str.substr(0,t)+e+this.str.substr(t+1)},A.prototype.toString=function(t){return this.str};var R=function(t){this.value=t};R.prototype.intValue=function(){return this.value},R.prototype.compareTo=function(t){return this.value<t?-1:this.value>t?1:0},R.isNaN=function(t){return Number.isNaN(t)};var D=function(){};D.isWhitespace=function(t){return t<=32&&t>=0||127===t},D.toUpperCase=function(t){return t.toUpperCase()};var k=function t(){if(this._hi=0,this._lo=0,0===arguments.length)this.init(0);else if(1===arguments.length){if("number"==typeof arguments[0]){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}else if("string"==typeof arguments[0]){var i=arguments[0];t.call(this,t.parse(i))}}else if(2===arguments.length){var r=arguments[0],o=arguments[1];this.init(r,o)}},F={PI:{configurable:!0},TWO_PI:{configurable:!0},PI_2:{configurable:!0},E:{configurable:!0},NaN:{configurable:!0},EPS:{configurable:!0},SPLIT:{configurable:!0},MAX_PRINT_DIGITS:{configurable:!0},TEN:{configurable:!0},ONE:{configurable:!0},SCI_NOT_EXPONENT_CHAR:{configurable:!0},SCI_NOT_ZERO:{configurable:!0}};k.prototype.le=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<=t._lo},k.prototype.extractSignificantDigits=function(t,e){var n=this.abs(),i=k.magnitude(n._hi),r=k.TEN.pow(i);(n=n.divide(r)).gt(k.TEN)?(n=n.divide(k.TEN),i+=1):n.lt(k.ONE)&&(n=n.multiply(k.TEN),i-=1);for(var o=i+1,s=new A,a=k.MAX_PRINT_DIGITS-1,u=0;u<=a;u++){t&&u===o&&s.append(".");var c=Math.trunc(n._hi);if(c<0)break;var h=!1,l=0;c>9?(h=!0,l="9"):l="0"+c,s.append(l),n=n.subtract(k.valueOf(c)).multiply(k.TEN),h&&n.selfAdd(k.TEN);var f=!0,p=k.magnitude(n._hi);if(p<0&&Math.abs(p)>=a-u&&(f=!1),!f)break}return e[0]=i,s.toString()},k.prototype.sqr=function(){return this.multiply(this)},k.prototype.doubleValue=function(){return this._hi+this._lo},k.prototype.subtract=function(){if(arguments[0]instanceof k){var t=arguments[0];return this.add(t.negate())}if("number"==typeof arguments[0]){var e=arguments[0];return this.add(-e)}},k.prototype.equals=function(){if(1===arguments.length){var t=arguments[0];return this._hi===t._hi&&this._lo===t._lo}},k.prototype.isZero=function(){return 0===this._hi&&0===this._lo},k.prototype.selfSubtract=function(){if(arguments[0]instanceof k){var t=arguments[0];return this.isNaN()?this:this.selfAdd(-t._hi,-t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e,0)}},k.prototype.getSpecialNumberString=function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},k.prototype.min=function(t){return this.le(t)?this:t},k.prototype.selfDivide=function(){if(1===arguments.length){if(arguments[0]instanceof k){var t=arguments[0];return this.selfDivide(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfDivide(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,s=null,a=null,u=null,c=null,h=null,l=null;return u=this._hi/n,c=k.SPLIT*u,r=c-u,l=k.SPLIT*n,r=c-r,o=u-r,s=l-n,h=u*n,s=l-s,a=n-s,l=r*s-h+r*a+o*s+o*a,c=(this._hi-h-l+this._lo-u*i)/n,l=u+c,this._hi=l,this._lo=u-l+c,this}},k.prototype.dump=function(){return"DD<"+this._hi+", "+this._lo+">"},k.prototype.divide=function(){if(arguments[0]instanceof k){var t=arguments[0],e=null,n=null,i=null,r=null,o=null,s=null,a=null,u=null;return n=(o=this._hi/t._hi)-(e=(s=k.SPLIT*o)-(e=s-o)),u=e*(i=(u=k.SPLIT*t._hi)-(i=u-t._hi))-(a=o*t._hi)+e*(r=t._hi-i)+n*i+n*r,s=(this._hi-a-u+this._lo-o*t._lo)/t._hi,new k(u=o+s,o-u+s)}if("number"==typeof arguments[0]){var c=arguments[0];return v.isNaN(c)?k.createNaN():k.copy(this).selfDivide(c,0)}},k.prototype.ge=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>=t._lo},k.prototype.pow=function(t){if(0===t)return k.valueOf(1);var e=new k(this),n=k.valueOf(1),i=Math.abs(t);if(i>1)for(;i>0;)i%2==1&&n.selfMultiply(e),(i/=2)>0&&(e=e.sqr());else n=e;return t<0?n.reciprocal():n},k.prototype.ceil=function(){if(this.isNaN())return k.NaN;var t=Math.ceil(this._hi),e=0;return t===this._hi&&(e=Math.ceil(this._lo)),new k(t,e)},k.prototype.compareTo=function(t){var e=t;return this._hi<e._hi?-1:this._hi>e._hi?1:this._lo<e._lo?-1:this._lo>e._lo?1:0},k.prototype.rint=function(){return this.isNaN()?this:this.add(.5).floor()},k.prototype.setValue=function(){if(arguments[0]instanceof k){var t=arguments[0];return this.init(t),this}if("number"==typeof arguments[0]){var e=arguments[0];return this.init(e),this}},k.prototype.max=function(t){return this.ge(t)?this:t},k.prototype.sqrt=function(){if(this.isZero())return k.valueOf(0);if(this.isNegative())return k.NaN;var t=1/Math.sqrt(this._hi),e=this._hi*t,n=k.valueOf(e),i=this.subtract(n.sqr())._hi*(.5*t);return n.add(i)},k.prototype.selfAdd=function(){if(1===arguments.length){if(arguments[0]instanceof k){var t=arguments[0];return this.selfAdd(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0],n=null,i=null,r=null,o=null,s=null,a=null;return r=this._hi+e,s=r-this._hi,o=r-s,o=e-s+(this._hi-o),a=o+this._lo,n=r+a,i=a+(r-n),this._hi=n+i,this._lo=i+(n-this._hi),this}}else if(2===arguments.length){var u=arguments[0],c=arguments[1],h=null,l=null,f=null,p=null,d=null,g=null,m=null;p=this._hi+u,l=this._lo+c,d=p-(g=p-this._hi),f=l-(m=l-this._lo);var y=(h=p+(g=(d=u-g+(this._hi-d))+l))+(g=(f=c-m+(this._lo-f))+(g+(p-h))),_=g+(h-y);return this._hi=y,this._lo=_,this}},k.prototype.selfMultiply=function(){if(1===arguments.length){if(arguments[0]instanceof k){var t=arguments[0];return this.selfMultiply(t._hi,t._lo)}if("number"==typeof arguments[0]){var e=arguments[0];return this.selfMultiply(e,0)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1],r=null,o=null,s=null,a=null,u=null,c=null;r=(u=k.SPLIT*this._hi)-this._hi,c=k.SPLIT*n,r=u-r,o=this._hi-r,s=c-n;var h=(u=this._hi*n)+(c=r*(s=c-s)-u+r*(a=n-s)+o*s+o*a+(this._hi*i+this._lo*n)),l=c+(r=u-h);return this._hi=h,this._lo=l,this}},k.prototype.selfSqr=function(){return this.selfMultiply(this)},k.prototype.floor=function(){if(this.isNaN())return k.NaN;var t=Math.floor(this._hi),e=0;return t===this._hi&&(e=Math.floor(this._lo)),new k(t,e)},k.prototype.negate=function(){return this.isNaN()?this:new k(-this._hi,-this._lo)},k.prototype.clone=function(){},k.prototype.multiply=function(){if(arguments[0]instanceof k){var t=arguments[0];return t.isNaN()?k.createNaN():k.copy(this).selfMultiply(t)}if("number"==typeof arguments[0]){var e=arguments[0];return v.isNaN(e)?k.createNaN():k.copy(this).selfMultiply(e,0)}},k.prototype.isNaN=function(){return v.isNaN(this._hi)},k.prototype.intValue=function(){return Math.trunc(this._hi)},k.prototype.toString=function(){var t=k.magnitude(this._hi);return t>=-3&&t<=20?this.toStandardNotation():this.toSciNotation()},k.prototype.toStandardNotation=function(){var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!0,e),i=e[0]+1,r=n;if("."===n.charAt(0))r="0"+n;else if(i<0)r="0."+k.stringOfChar("0",-i)+n;else if(-1===n.indexOf(".")){var o=i-n.length;r=n+k.stringOfChar("0",o)+".0"}return this.isNegative()?"-"+r:r},k.prototype.reciprocal=function(){var t=null,e=null,n=null,i=null,r=null,o=null,s=null,a=null;e=(r=1/this._hi)-(t=(o=k.SPLIT*r)-(t=o-r)),n=(a=k.SPLIT*this._hi)-this._hi;var u=r+(o=(1-(s=r*this._hi)-(a=t*(n=a-n)-s+t*(i=this._hi-n)+e*n+e*i)-r*this._lo)/this._hi);return new k(u,r-u+o)},k.prototype.toSciNotation=function(){if(this.isZero())return k.SCI_NOT_ZERO;var t=this.getSpecialNumberString();if(null!==t)return t;var e=new Array(1).fill(null),n=this.extractSignificantDigits(!1,e),i=k.SCI_NOT_EXPONENT_CHAR+e[0];if("0"===n.charAt(0))throw new Error("Found leading zero: "+n);var r="";n.length>1&&(r=n.substring(1));var o=n.charAt(0)+"."+r;return this.isNegative()?"-"+o+i:o+i},k.prototype.abs=function(){return this.isNaN()?k.NaN:this.isNegative()?this.negate():new k(this)},k.prototype.isPositive=function(){return(this._hi>0||0===this._hi)&&this._lo>0},k.prototype.lt=function(t){return(this._hi<t._hi||this._hi===t._hi)&&this._lo<t._lo},k.prototype.add=function(){if(arguments[0]instanceof k){var t=arguments[0];return k.copy(this).selfAdd(t)}if("number"==typeof arguments[0]){var e=arguments[0];return k.copy(this).selfAdd(e)}},k.prototype.init=function(){if(1===arguments.length){if("number"==typeof arguments[0]){var t=arguments[0];this._hi=t,this._lo=0}else if(arguments[0]instanceof k){var e=arguments[0];this._hi=e._hi,this._lo=e._lo}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this._hi=n,this._lo=i}},k.prototype.gt=function(t){return(this._hi>t._hi||this._hi===t._hi)&&this._lo>t._lo},k.prototype.isNegative=function(){return(this._hi<0||0===this._hi)&&this._lo<0},k.prototype.trunc=function(){return this.isNaN()?k.NaN:this.isPositive()?this.floor():this.ceil()},k.prototype.signum=function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0},k.prototype.interfaces_=function(){return[e,x,w]},k.prototype.getClass=function(){return k},k.sqr=function(t){return k.valueOf(t).selfMultiply(t)},k.valueOf=function(){if("string"==typeof arguments[0]){var t=arguments[0];return k.parse(t)}if("number"==typeof arguments[0]){var e=arguments[0];return new k(e)}},k.sqrt=function(t){return k.valueOf(t).sqrt()},k.parse=function(t){for(var e=0,n=t.length;D.isWhitespace(t.charAt(e));)e++;var i=!1;if(e<n){var r=t.charAt(e);"-"!==r&&"+"!==r||(e++,"-"===r&&(i=!0))}for(var o=new k,s=0,a=0,u=0;!(e>=n);){var c=t.charAt(e);if(e++,D.isDigit(c)){var h=c-"0";o.selfMultiply(k.TEN),o.selfAdd(h),s++}else{if("."!==c){if("e"===c||"E"===c){var l=t.substring(e);try{u=R.parseInt(l)}catch(e){throw e instanceof Error?new Error("Invalid exponent "+l+" in string "+t):e}break}throw new Error("Unexpected character '"+c+"' at position "+e+" in string "+t)}a=s}}var f=o,p=s-a-u;if(0===p)f=o;else if(p>0){var d=k.TEN.pow(p);f=o.divide(d)}else if(p<0){var g=k.TEN.pow(-p);f=o.multiply(g)}return i?f.negate():f},k.createNaN=function(){return new k(v.NaN,v.NaN)},k.copy=function(t){return new k(t)},k.magnitude=function(t){var e=Math.abs(t),n=Math.log(e)/Math.log(10),i=Math.trunc(Math.floor(n));return 10*Math.pow(10,i)<=e&&(i+=1),i},k.stringOfChar=function(t,e){for(var n=new A,i=0;i<e;i++)n.append(t);return n.toString()},F.PI.get=function(){return new k(3.141592653589793,1.2246467991473532e-16)},F.TWO_PI.get=function(){return new k(6.283185307179586,2.4492935982947064e-16)},F.PI_2.get=function(){return new k(1.5707963267948966,6.123233995736766e-17)},F.E.get=function(){return new k(2.718281828459045,1.4456468917292502e-16)},F.NaN.get=function(){return new k(v.NaN,v.NaN)},F.EPS.get=function(){return 1.23259516440783e-32},F.SPLIT.get=function(){return 134217729},F.MAX_PRINT_DIGITS.get=function(){return 32},F.TEN.get=function(){return k.valueOf(10)},F.ONE.get=function(){return k.valueOf(1)},F.SCI_NOT_EXPONENT_CHAR.get=function(){return"E"},F.SCI_NOT_ZERO.get=function(){return"0.0E0"},Object.defineProperties(k,F);var z=function(){},j={DP_SAFE_EPSILON:{configurable:!0}};z.prototype.interfaces_=function(){return[]},z.prototype.getClass=function(){return z},z.orientationIndex=function(t,e,n){var i=z.orientationIndexFilter(t,e,n);if(i<=1)return i;var r=k.valueOf(e.x).selfAdd(-t.x),o=k.valueOf(e.y).selfAdd(-t.y),s=k.valueOf(n.x).selfAdd(-e.x),a=k.valueOf(n.y).selfAdd(-e.y);return r.selfMultiply(a).selfSubtract(o.selfMultiply(s)).signum()},z.signOfDet2x2=function(t,e,n,i){return t.multiply(i).selfSubtract(e.multiply(n)).signum()},z.intersection=function(t,e,n,i){var r=k.valueOf(i.y).selfSubtract(n.y).selfMultiply(k.valueOf(e.x).selfSubtract(t.x)),o=k.valueOf(i.x).selfSubtract(n.x).selfMultiply(k.valueOf(e.y).selfSubtract(t.y)),s=r.subtract(o),a=k.valueOf(i.x).selfSubtract(n.x).selfMultiply(k.valueOf(t.y).selfSubtract(n.y)),u=k.valueOf(i.y).selfSubtract(n.y).selfMultiply(k.valueOf(t.x).selfSubtract(n.x)),c=a.subtract(u).selfDivide(s).doubleValue(),h=k.valueOf(t.x).selfAdd(k.valueOf(e.x).selfSubtract(t.x).selfMultiply(c)).doubleValue(),l=k.valueOf(e.x).selfSubtract(t.x).selfMultiply(k.valueOf(t.y).selfSubtract(n.y)),f=k.valueOf(e.y).selfSubtract(t.y).selfMultiply(k.valueOf(t.x).selfSubtract(n.x)),p=l.subtract(f).selfDivide(s).doubleValue(),d=k.valueOf(n.y).selfAdd(k.valueOf(i.y).selfSubtract(n.y).selfMultiply(p)).doubleValue();return new S(h,d)},z.orientationIndexFilter=function(t,e,n){var i=null,r=(t.x-n.x)*(e.y-n.y),o=(t.y-n.y)*(e.x-n.x),s=r-o;if(r>0){if(o<=0)return z.signum(s);i=r+o}else{if(!(r<0))return z.signum(s);if(o>=0)return z.signum(s);i=-r-o}var a=z.DP_SAFE_EPSILON*i;return s>=a||-s>=a?z.signum(s):2},z.signum=function(t){return t>0?1:t<0?-1:0},j.DP_SAFE_EPSILON.get=function(){return 1e-15},Object.defineProperties(z,j);var B=function(){},G={X:{configurable:!0},Y:{configurable:!0},Z:{configurable:!0},M:{configurable:!0}};G.X.get=function(){return 0},G.Y.get=function(){return 1},G.Z.get=function(){return 2},G.M.get=function(){return 3},B.prototype.setOrdinate=function(t,e,n){},B.prototype.size=function(){},B.prototype.getOrdinate=function(t,e){},B.prototype.getCoordinate=function(){},B.prototype.getCoordinateCopy=function(t){},B.prototype.getDimension=function(){},B.prototype.getX=function(t){},B.prototype.clone=function(){},B.prototype.expandEnvelope=function(t){},B.prototype.copy=function(){},B.prototype.getY=function(t){},B.prototype.toCoordinateArray=function(){},B.prototype.interfaces_=function(){return[w]},B.prototype.getClass=function(){return B},Object.defineProperties(B,G);var q=function(){},U=function(t){function e(){t.call(this,"Projective point not representable on the Cartesian plane.")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(q),V=function(){};V.arraycopy=function(t,e,n,i,r){for(var o=0,s=e;s<e+r;s++)n[i+o]=t[s],o++},V.getProperty=function(t){return{"line.separator":"\n"}[t]};var Z=function t(){if(this.x=null,this.y=null,this.w=null,0===arguments.length)this.x=0,this.y=0,this.w=1;else if(1===arguments.length){var e=arguments[0];this.x=e.x,this.y=e.y,this.w=1}else if(2===arguments.length){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var n=arguments[0],i=arguments[1];this.x=n,this.y=i,this.w=1}else if(arguments[0]instanceof t&&arguments[1]instanceof t){var r=arguments[0],o=arguments[1];this.x=r.y*o.w-o.y*r.w,this.y=o.x*r.w-r.x*o.w,this.w=r.x*o.y-o.x*r.y}else if(arguments[0]instanceof S&&arguments[1]instanceof S){var s=arguments[0],a=arguments[1];this.x=s.y-a.y,this.y=a.x-s.x,this.w=s.x*a.y-a.x*s.y}}else if(3===arguments.length){var u=arguments[0],c=arguments[1],h=arguments[2];this.x=u,this.y=c,this.w=h}else if(4===arguments.length){var l=arguments[0],f=arguments[1],p=arguments[2],d=arguments[3],g=l.y-f.y,m=f.x-l.x,y=l.x*f.y-f.x*l.y,_=p.y-d.y,v=d.x-p.x,b=p.x*d.y-d.x*p.y;this.x=m*b-v*y,this.y=_*y-g*b,this.w=g*v-_*m}};Z.prototype.getY=function(){var t=this.y/this.w;if(v.isNaN(t)||v.isInfinite(t))throw new U;return t},Z.prototype.getX=function(){var t=this.x/this.w;if(v.isNaN(t)||v.isInfinite(t))throw new U;return t},Z.prototype.getCoordinate=function(){var t=new S;return t.x=this.getX(),t.y=this.getY(),t},Z.prototype.interfaces_=function(){return[]},Z.prototype.getClass=function(){return Z},Z.intersection=function(t,e,n,i){var r=t.y-e.y,o=e.x-t.x,s=t.x*e.y-e.x*t.y,a=n.y-i.y,u=i.x-n.x,c=n.x*i.y-i.x*n.y,h=r*u-a*o,l=(o*c-u*s)/h,f=(a*s-r*c)/h;if(v.isNaN(l)||v.isInfinite(l)||v.isNaN(f)||v.isInfinite(f))throw new U;return new S(l,f)};var H=function t(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,0===arguments.length)this.init();else if(1===arguments.length){if(arguments[0]instanceof S){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof t){var n=arguments[0];this.init(n)}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.init(i.x,r.x,i.y,r.y)}else if(4===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2],u=arguments[3];this.init(o,s,a,u)}},$={serialVersionUID:{configurable:!0}};H.prototype.getArea=function(){return this.getWidth()*this.getHeight()},H.prototype.equals=function(t){if(!(t instanceof H))return!1;var e=t;return this.isNull()?e.isNull():this._maxx===e.getMaxX()&&this._maxy===e.getMaxY()&&this._minx===e.getMinX()&&this._miny===e.getMinY()},H.prototype.intersection=function(t){if(this.isNull()||t.isNull()||!this.intersects(t))return new H;var e=this._minx>t._minx?this._minx:t._minx,n=this._miny>t._miny?this._miny:t._miny,i=this._maxx<t._maxx?this._maxx:t._maxx,r=this._maxy<t._maxy?this._maxy:t._maxy;return new H(e,i,n,r)},H.prototype.isNull=function(){return this._maxx<this._minx},H.prototype.getMaxX=function(){return this._maxx},H.prototype.covers=function(){if(1===arguments.length){if(arguments[0]instanceof S){var t=arguments[0];return this.covers(t.x,t.y)}if(arguments[0]instanceof H){var e=arguments[0];return!this.isNull()&&!e.isNull()&&e.getMinX()>=this._minx&&e.getMaxX()<=this._maxx&&e.getMinY()>=this._miny&&e.getMaxY()<=this._maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return!this.isNull()&&n>=this._minx&&n<=this._maxx&&i>=this._miny&&i<=this._maxy}},H.prototype.intersects=function(){if(1===arguments.length){if(arguments[0]instanceof H){var t=arguments[0];return!this.isNull()&&!t.isNull()&&!(t._minx>this._maxx||t._maxx<this._minx||t._miny>this._maxy||t._maxy<this._miny)}if(arguments[0]instanceof S){var e=arguments[0];return this.intersects(e.x,e.y)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return!this.isNull()&&!(n>this._maxx||n<this._minx||i>this._maxy||i<this._miny)}},H.prototype.getMinY=function(){return this._miny},H.prototype.getMinX=function(){return this._minx},H.prototype.expandToInclude=function(){if(1===arguments.length){if(arguments[0]instanceof S){var t=arguments[0];this.expandToInclude(t.x,t.y)}else if(arguments[0]instanceof H){var e=arguments[0];if(e.isNull())return null;this.isNull()?(this._minx=e.getMinX(),this._maxx=e.getMaxX(),this._miny=e.getMinY(),this._maxy=e.getMaxY()):(e._minx<this._minx&&(this._minx=e._minx),e._maxx>this._maxx&&(this._maxx=e._maxx),e._miny<this._miny&&(this._miny=e._miny),e._maxy>this._maxy&&(this._maxy=e._maxy))}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.isNull()?(this._minx=n,this._maxx=n,this._miny=i,this._maxy=i):(n<this._minx&&(this._minx=n),n>this._maxx&&(this._maxx=n),i<this._miny&&(this._miny=i),i>this._maxy&&(this._maxy=i))}},H.prototype.minExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t<e?t:e},H.prototype.getWidth=function(){return this.isNull()?0:this._maxx-this._minx},H.prototype.compareTo=function(t){var e=t;return this.isNull()?e.isNull()?0:-1:e.isNull()?1:this._minx<e._minx?-1:this._minx>e._minx?1:this._miny<e._miny?-1:this._miny>e._miny?1:this._maxx<e._maxx?-1:this._maxx>e._maxx?1:this._maxy<e._maxy?-1:this._maxy>e._maxy?1:0},H.prototype.translate=function(t,e){if(this.isNull())return null;this.init(this.getMinX()+t,this.getMaxX()+t,this.getMinY()+e,this.getMaxY()+e)},H.prototype.toString=function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"},H.prototype.setToNull=function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1},H.prototype.getHeight=function(){return this.isNull()?0:this._maxy-this._miny},H.prototype.maxExtent=function(){if(this.isNull())return 0;var t=this.getWidth(),e=this.getHeight();return t>e?t:e},H.prototype.expandBy=function(){if(1===arguments.length){var t=arguments[0];this.expandBy(t,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this.isNull())return null;this._minx-=e,this._maxx+=e,this._miny-=n,this._maxy+=n,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}},H.prototype.contains=function(){if(1===arguments.length){if(arguments[0]instanceof H){var t=arguments[0];return this.covers(t)}if(arguments[0]instanceof S){var e=arguments[0];return this.covers(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return this.covers(n,i)}},H.prototype.centre=function(){return this.isNull()?null:new S((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},H.prototype.init=function(){if(0===arguments.length)this.setToNull();else if(1===arguments.length){if(arguments[0]instanceof S){var t=arguments[0];this.init(t.x,t.x,t.y,t.y)}else if(arguments[0]instanceof H){var e=arguments[0];this._minx=e._minx,this._maxx=e._maxx,this._miny=e._miny,this._maxy=e._maxy}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.init(n.x,i.x,n.y,i.y)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];r<o?(this._minx=r,this._maxx=o):(this._minx=o,this._maxx=r),s<a?(this._miny=s,this._maxy=a):(this._miny=a,this._maxy=s)}},H.prototype.getMaxY=function(){return this._maxy},H.prototype.distance=function(t){if(this.intersects(t))return 0;var e=0;this._maxx<t._minx?e=t._minx-this._maxx:this._minx>t._maxx&&(e=this._minx-t._maxx);var n=0;return this._maxy<t._miny?n=t._miny-this._maxy:this._miny>t._maxy&&(n=this._miny-t._maxy),0===e?n:0===n?e:Math.sqrt(e*e+n*n)},H.prototype.hashCode=function(){var t=17;return t=37*t+S.hashCode(this._minx),t=37*t+S.hashCode(this._maxx),t=37*t+S.hashCode(this._miny),37*t+S.hashCode(this._maxy)},H.prototype.interfaces_=function(){return[x,e]},H.prototype.getClass=function(){return H},H.intersects=function(){if(3===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2];return n.x>=(t.x<e.x?t.x:e.x)&&n.x<=(t.x>e.x?t.x:e.x)&&n.y>=(t.y<e.y?t.y:e.y)&&n.y<=(t.y>e.y?t.y:e.y)}if(4===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2],s=arguments[3],a=Math.min(o.x,s.x),u=Math.max(o.x,s.x),c=Math.min(i.x,r.x),h=Math.max(i.x,r.x);return!(c>u)&&!(h<a)&&(a=Math.min(o.y,s.y),u=Math.max(o.y,s.y),c=Math.min(i.y,r.y),h=Math.max(i.y,r.y),!(c>u)&&!(h<a))}},$.serialVersionUID.get=function(){return 0x51845cd552189800},Object.defineProperties(H,$);var Y={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},W=function(t){this.geometryFactory=t||new ye};W.prototype.read=function(t){var e,n,i;t=t.replace(/[\n\r]/g," ");var r=Y.typeStr.exec(t);if(-1!==t.search("EMPTY")&&((r=Y.emptyTypeStr.exec(t))[2]=void 0),r&&(n=r[1].toLowerCase(),i=r[2],K[n]&&(e=K[n].apply(this,[i]))),void 0===e)throw new Error("Could not parse WKT "+t);return e},W.prototype.write=function(t){return this.extractGeometry(t)},W.prototype.extractGeometry=function(t){var e=t.getGeometryType().toLowerCase();if(!X[e])return null;var n=e.toUpperCase();return t.isEmpty()?n+" EMPTY":n+"("+X[e].apply(this,[t])+")"};var X={coordinate:function(t){return t.x+" "+t.y},point:function(t){return X.coordinate.call(this,t._coordinates._coordinates[0])},multipoint:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push("("+X.point.apply(this,[t._geometries[n]])+")");return e.join(",")},linestring:function(t){for(var e=[],n=0,i=t._points._coordinates.length;n<i;++n)e.push(X.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},linearring:function(t){for(var e=[],n=0,i=t._points._coordinates.length;n<i;++n)e.push(X.coordinate.apply(this,[t._points._coordinates[n]]));return e.join(",")},multilinestring:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push("("+X.linestring.apply(this,[t._geometries[n]])+")");return e.join(",")},polygon:function(t){var e=[];e.push("("+X.linestring.apply(this,[t._shell])+")");for(var n=0,i=t._holes.length;n<i;++n)e.push("("+X.linestring.apply(this,[t._holes[n]])+")");return e.join(",")},multipolygon:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push("("+X.polygon.apply(this,[t._geometries[n]])+")");return e.join(",")},geometrycollection:function(t){for(var e=[],n=0,i=t._geometries.length;n<i;++n)e.push(this.extractGeometry(t._geometries[n]));return e.join(",")}},K={point:function(t){if(void 0===t)return this.geometryFactory.createPoint();var e=t.trim().split(Y.spaces);return this.geometryFactory.createPoint(new S(Number.parseFloat(e[0]),Number.parseFloat(e[1])))},multipoint:function(t){if(void 0===t)return this.geometryFactory.createMultiPoint();for(var e,n=t.trim().split(","),i=[],r=0,o=n.length;r<o;++r)e=n[r].replace(Y.trimParens,"$1"),i.push(K.point.apply(this,[e]));return this.geometryFactory.createMultiPoint(i)},linestring:function(t){if(void 0===t)return this.geometryFactory.createLineString();for(var e,n=t.trim().split(","),i=[],r=0,o=n.length;r<o;++r)e=n[r].trim().split(Y.spaces),i.push(new S(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLineString(i)},linearring:function(t){if(void 0===t)return this.geometryFactory.createLinearRing();for(var e,n=t.trim().split(","),i=[],r=0,o=n.length;r<o;++r)e=n[r].trim().split(Y.spaces),i.push(new S(Number.parseFloat(e[0]),Number.parseFloat(e[1])));return this.geometryFactory.createLinearRing(i)},multilinestring:function(t){if(void 0===t)return this.geometryFactory.createMultiLineString();for(var e,n=t.trim().split(Y.parenComma),i=[],r=0,o=n.length;r<o;++r)e=n[r].replace(Y.trimParens,"$1"),i.push(K.linestring.apply(this,[e]));return this.geometryFactory.createMultiLineString(i)},polygon:function(t){if(void 0===t)return this.geometryFactory.createPolygon();for(var e,n,i,r,o=t.trim().split(Y.parenComma),s=[],a=0,u=o.length;a<u;++a)e=o[a].replace(Y.trimParens,"$1"),n=K.linestring.apply(this,[e]),i=this.geometryFactory.createLinearRing(n._points),0===a?r=i:s.push(i);return this.geometryFactory.createPolygon(r,s)},multipolygon:function(t){if(void 0===t)return this.geometryFactory.createMultiPolygon();for(var e,n=t.trim().split(Y.doubleParenComma),i=[],r=0,o=n.length;r<o;++r)e=n[r].replace(Y.trimParens,"$1"),i.push(K.polygon.apply(this,[e]));return this.geometryFactory.createMultiPolygon(i)},geometrycollection:function(t){if(void 0===t)return this.geometryFactory.createGeometryCollection();for(var e=(t=t.replace(/,\s*([A-Za-z])/g,"|$1")).trim().split("|"),n=[],i=0,r=e.length;i<r;++i)n.push(this.read(e[i]));return this.geometryFactory.createGeometryCollection(n)}},J=function(t){this.parser=new W(t)};J.prototype.write=function(t){return this.parser.write(t)},J.toLineString=function(t,e){if(2!==arguments.length)throw new Error("Not implemented");return"LINESTRING ( "+t.x+" "+t.y+", "+e.x+" "+e.y+" )"};var Q=function(t){function e(e){t.call(this,e),this.name="RuntimeException",this.message=e,this.stack=(new t).stack}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),tt=function(t){function e(){if(t.call(this),0===arguments.length)t.call(this);else if(1===arguments.length){var e=arguments[0];t.call(this,e)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Q),et=function(){};et.prototype.interfaces_=function(){return[]},et.prototype.getClass=function(){return et},et.shouldNeverReachHere=function(){if(0===arguments.length)et.shouldNeverReachHere(null);else if(1===arguments.length){var t=arguments[0];throw new tt("Should never reach here"+(null!==t?": "+t:""))}},et.isTrue=function(){var t,e;if(1===arguments.length)t=arguments[0],et.isTrue(t,null);else if(2===arguments.length&&(t=arguments[0],e=arguments[1],!t))throw null===e?new tt:new tt(e)},et.equals=function(){var t,e,n;if(2===arguments.length)t=arguments[0],e=arguments[1],et.equals(t,e,null);else if(3===arguments.length&&(t=arguments[0],e=arguments[1],n=arguments[2],!e.equals(t)))throw new tt("Expected "+t+" but encountered "+e+(null!==n?": "+n:""))};var nt=function(){this._result=null,this._inputLines=Array(2).fill().map(function(){return Array(2)}),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new S,this._intPt[1]=new S,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0},it={DONT_INTERSECT:{configurable:!0},DO_INTERSECT:{configurable:!0},COLLINEAR:{configurable:!0},NO_INTERSECTION:{configurable:!0},POINT_INTERSECTION:{configurable:!0},COLLINEAR_INTERSECTION:{configurable:!0}};nt.prototype.getIndexAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intLineIndex[t][e]},nt.prototype.getTopologySummary=function(){var t=new A;return this.isEndPoint()&&t.append(" endpoint"),this._isProper&&t.append(" proper"),this.isCollinear()&&t.append(" collinear"),t.toString()},nt.prototype.computeIntersection=function(t,e,n,i){this._inputLines[0][0]=t,this._inputLines[0][1]=e,this._inputLines[1][0]=n,this._inputLines[1][1]=i,this._result=this.computeIntersect(t,e,n,i)},nt.prototype.getIntersectionNum=function(){return this._result},nt.prototype.computeIntLineIndex=function(){if(0===arguments.length)null===this._intLineIndex&&(this._intLineIndex=Array(2).fill().map(function(){return Array(2)}),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(1===arguments.length){var t=arguments[0];this.getEdgeDistance(t,0)>this.getEdgeDistance(t,1)?(this._intLineIndex[t][0]=0,this._intLineIndex[t][1]=1):(this._intLineIndex[t][0]=1,this._intLineIndex[t][1]=0)}},nt.prototype.isProper=function(){return this.hasIntersection()&&this._isProper},nt.prototype.setPrecisionModel=function(t){this._precisionModel=t},nt.prototype.isInteriorIntersection=function(){if(0===arguments.length)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(1===arguments.length){for(var t=arguments[0],e=0;e<this._result;e++)if(!this._intPt[e].equals2D(this._inputLines[t][0])&&!this._intPt[e].equals2D(this._inputLines[t][1]))return!0;return!1}},nt.prototype.getIntersection=function(t){return this._intPt[t]},nt.prototype.isEndPoint=function(){return this.hasIntersection()&&!this._isProper},nt.prototype.hasIntersection=function(){return this._result!==nt.NO_INTERSECTION},nt.prototype.getEdgeDistance=function(t,e){return nt.computeEdgeDistance(this._intPt[e],this._inputLines[t][0],this._inputLines[t][1])},nt.prototype.isCollinear=function(){return this._result===nt.COLLINEAR_INTERSECTION},nt.prototype.toString=function(){return J.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+J.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()},nt.prototype.getEndpoint=function(t,e){return this._inputLines[t][e]},nt.prototype.isIntersection=function(t){for(var e=0;e<this._result;e++)if(this._intPt[e].equals2D(t))return!0;return!1},nt.prototype.getIntersectionAlongSegment=function(t,e){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[t][e]]},nt.prototype.interfaces_=function(){return[]},nt.prototype.getClass=function(){return nt},nt.computeEdgeDistance=function(t,e,n){var i=Math.abs(n.x-e.x),r=Math.abs(n.y-e.y),o=-1;if(t.equals(e))o=0;else if(t.equals(n))o=i>r?i:r;else{var s=Math.abs(t.x-e.x),a=Math.abs(t.y-e.y);0!==(o=i>r?s:a)||t.equals(e)||(o=Math.max(s,a))}return et.isTrue(!(0===o&&!t.equals(e)),"Bad distance calculation"),o},nt.nonRobustComputeEdgeDistance=function(t,e,n){var i=t.x-e.x,r=t.y-e.y,o=Math.sqrt(i*i+r*r);return et.isTrue(!(0===o&&!t.equals(e)),"Invalid distance calculation"),o},it.DONT_INTERSECT.get=function(){return 0},it.DO_INTERSECT.get=function(){return 1},it.COLLINEAR.get=function(){return 2},it.NO_INTERSECTION.get=function(){return 0},it.POINT_INTERSECTION.get=function(){return 1},it.COLLINEAR_INTERSECTION.get=function(){return 2},Object.defineProperties(nt,it);var rt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isInSegmentEnvelopes=function(t){var e=new H(this._inputLines[0][0],this._inputLines[0][1]),n=new H(this._inputLines[1][0],this._inputLines[1][1]);return e.contains(t)&&n.contains(t)},e.prototype.computeIntersection=function(){if(3!==arguments.length)return t.prototype.computeIntersection.apply(this,arguments);var e=arguments[0],n=arguments[1],i=arguments[2];if(this._isProper=!1,H.intersects(n,i,e)&&0===at.orientationIndex(n,i,e)&&0===at.orientationIndex(i,n,e))return this._isProper=!0,(e.equals(n)||e.equals(i))&&(this._isProper=!1),this._result=t.POINT_INTERSECTION,null;this._result=t.NO_INTERSECTION},e.prototype.normalizeToMinimum=function(t,e,n,i,r){r.x=this.smallestInAbsValue(t.x,e.x,n.x,i.x),r.y=this.smallestInAbsValue(t.y,e.y,n.y,i.y),t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,n.x-=r.x,n.y-=r.y,i.x-=r.x,i.y-=r.y},e.prototype.safeHCoordinateIntersection=function(t,n,i,r){var o=null;try{o=Z.intersection(t,n,i,r)}catch(s){if(!(s instanceof U))throw s;o=e.nearestEndpoint(t,n,i,r)}return o},e.prototype.intersection=function(t,n,i,r){var o=this.intersectionWithNormalization(t,n,i,r);return this.isInSegmentEnvelopes(o)||(o=new S(e.nearestEndpoint(t,n,i,r))),null!==this._precisionModel&&this._precisionModel.makePrecise(o),o},e.prototype.smallestInAbsValue=function(t,e,n,i){var r=t,o=Math.abs(r);return Math.abs(e)<o&&(r=e,o=Math.abs(e)),Math.abs(n)<o&&(r=n,o=Math.abs(n)),Math.abs(i)<o&&(r=i),r},e.prototype.checkDD=function(t,e,n,i,r){var o=z.intersection(t,e,n,i),s=this.isInSegmentEnvelopes(o);V.out.println("DD in env = "+s+"  --------------------- "+o),r.distance(o)>1e-4&&V.out.println("Distance = "+r.distance(o))},e.prototype.intersectionWithNormalization=function(t,e,n,i){var r=new S(t),o=new S(e),s=new S(n),a=new S(i),u=new S;this.normalizeToEnvCentre(r,o,s,a,u);var c=this.safeHCoordinateIntersection(r,o,s,a);return c.x+=u.x,c.y+=u.y,c},e.prototype.computeCollinearIntersection=function(e,n,i,r){var o=H.intersects(e,n,i),s=H.intersects(e,n,r),a=H.intersects(i,r,e),u=H.intersects(i,r,n);return o&&s?(this._intPt[0]=i,this._intPt[1]=r,t.COLLINEAR_INTERSECTION):a&&u?(this._intPt[0]=e,this._intPt[1]=n,t.COLLINEAR_INTERSECTION):o&&a?(this._intPt[0]=i,this._intPt[1]=e,!i.equals(e)||s||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):o&&u?(this._intPt[0]=i,this._intPt[1]=n,!i.equals(n)||s||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&a?(this._intPt[0]=r,this._intPt[1]=e,!r.equals(e)||o||u?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):s&&u?(this._intPt[0]=r,this._intPt[1]=n,!r.equals(n)||o||a?t.COLLINEAR_INTERSECTION:t.POINT_INTERSECTION):t.NO_INTERSECTION},e.prototype.normalizeToEnvCentre=function(t,e,n,i,r){var o=t.x<e.x?t.x:e.x,s=t.y<e.y?t.y:e.y,a=t.x>e.x?t.x:e.x,u=t.y>e.y?t.y:e.y,c=n.x<i.x?n.x:i.x,h=n.y<i.y?n.y:i.y,l=n.x>i.x?n.x:i.x,f=n.y>i.y?n.y:i.y,p=((o>c?o:c)+(a<l?a:l))/2,d=((s>h?s:h)+(u<f?u:f))/2;r.x=p,r.y=d,t.x-=r.x,t.y-=r.y,e.x-=r.x,e.y-=r.y,n.x-=r.x,n.y-=r.y,i.x-=r.x,i.y-=r.y},e.prototype.computeIntersect=function(e,n,i,r){if(this._isProper=!1,!H.intersects(e,n,i,r))return t.NO_INTERSECTION;var o=at.orientationIndex(e,n,i),s=at.orientationIndex(e,n,r);if(o>0&&s>0||o<0&&s<0)return t.NO_INTERSECTION;var a=at.orientationIndex(i,r,e),u=at.orientationIndex(i,r,n);return a>0&&u>0||a<0&&u<0?t.NO_INTERSECTION:0===o&&0===s&&0===a&&0===u?this.computeCollinearIntersection(e,n,i,r):(0===o||0===s||0===a||0===u?(this._isProper=!1,e.equals2D(i)||e.equals2D(r)?this._intPt[0]=e:n.equals2D(i)||n.equals2D(r)?this._intPt[0]=n:0===o?this._intPt[0]=new S(i):0===s?this._intPt[0]=new S(r):0===a?this._intPt[0]=new S(e):0===u&&(this._intPt[0]=new S(n))):(this._isProper=!0,this._intPt[0]=this.intersection(e,n,i,r)),t.POINT_INTERSECTION)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.nearestEndpoint=function(t,e,n,i){var r=t,o=at.distancePointLine(t,n,i),s=at.distancePointLine(e,n,i);return s<o&&(o=s,r=e),(s=at.distancePointLine(n,t,e))<o&&(o=s,r=n),(s=at.distancePointLine(i,t,e))<o&&(o=s,r=i),r},e}(nt),ot=function(){};ot.prototype.interfaces_=function(){return[]},ot.prototype.getClass=function(){return ot},ot.orientationIndex=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,o=n.x-e.x,s=n.y-e.y;return ot.signOfDet2x2(i,r,o,s)},ot.signOfDet2x2=function(t,e,n,i){var r=null,o=null,s=null;if(r=1,0===t||0===i)return 0===e||0===n?0:e>0?n>0?-r:r:n>0?r:-r;if(0===e||0===n)return i>0?t>0?r:-r:t>0?-r:r;if(e>0?i>0?e<=i||(r=-r,o=t,t=n,n=o,o=e,e=i,i=o):e<=-i?(r=-r,n=-n,i=-i):(o=t,t=-n,n=o,o=e,e=-i,i=o):i>0?-e<=i?(r=-r,t=-t,e=-e):(o=-t,t=n,n=o,o=-e,e=i,i=o):e>=i?(t=-t,e=-e,n=-n,i=-i):(r=-r,o=-t,t=-n,n=o,o=-e,e=-i,i=o),t>0){if(!(n>0))return r;if(!(t<=n))return r}else{if(n>0)return-r;if(!(t>=n))return-r;r=-r,t=-t,n=-n}for(;;){if(s=Math.floor(n/t),n-=s*t,(i-=s*e)<0)return-r;if(i>e)return r;if(t>n+n){if(e<i+i)return r}else{if(e>i+i)return-r;n=t-n,i=e-i,r=-r}if(0===i)return 0===n?0:-r;if(0===n)return r;if(s=Math.floor(t/n),t-=s*n,(e-=s*i)<0)return r;if(e>i)return-r;if(n>t+t){if(i<e+e)return-r}else{if(i>e+e)return r;t=n-t,e=i-e,r=-r}if(0===e)return 0===t?0:r;if(0===t)return-r}};var st=function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var t=arguments[0];this._p=t};st.prototype.countSegment=function(t,e){if(t.x<this._p.x&&e.x<this._p.x)return null;if(this._p.x===e.x&&this._p.y===e.y)return this._isPointOnSegment=!0,null;if(t.y===this._p.y&&e.y===this._p.y){var n=t.x,i=e.x;return n>i&&(n=e.x,i=t.x),this._p.x>=n&&this._p.x<=i&&(this._isPointOnSegment=!0),null}if(t.y>this._p.y&&e.y<=this._p.y||e.y>this._p.y&&t.y<=this._p.y){var r=t.x-this._p.x,o=t.y-this._p.y,s=e.x-this._p.x,a=e.y-this._p.y,u=ot.signOfDet2x2(r,o,s,a);if(0===u)return this._isPointOnSegment=!0,null;a<o&&(u=-u),u>0&&this._crossingCount++}},st.prototype.isPointInPolygon=function(){return this.getLocation()!==L.EXTERIOR},st.prototype.getLocation=function(){return this._isPointOnSegment?L.BOUNDARY:this._crossingCount%2==1?L.INTERIOR:L.EXTERIOR},st.prototype.isOnSegment=function(){return this._isPointOnSegment},st.prototype.interfaces_=function(){return[]},st.prototype.getClass=function(){return st},st.locatePointInRing=function(){if(arguments[0]instanceof S&&T(arguments[1],B)){for(var t=arguments[0],e=arguments[1],n=new st(t),i=new S,r=new S,o=1;o<e.size();o++)if(e.getCoordinate(o,i),e.getCoordinate(o-1,r),n.countSegment(i,r),n.isOnSegment())return n.getLocation();return n.getLocation()}if(arguments[0]instanceof S&&arguments[1]instanceof Array){for(var s=arguments[0],a=arguments[1],u=new st(s),c=1;c<a.length;c++){var h=a[c],l=a[c-1];if(u.countSegment(h,l),u.isOnSegment())return u.getLocation()}return u.getLocation()}};var at=function(){},ut={CLOCKWISE:{configurable:!0},RIGHT:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},LEFT:{configurable:!0},COLLINEAR:{configurable:!0},STRAIGHT:{configurable:!0}};at.prototype.interfaces_=function(){return[]},at.prototype.getClass=function(){return at},at.orientationIndex=function(t,e,n){return z.orientationIndex(t,e,n)},at.signedArea=function(){if(arguments[0]instanceof Array){var t=arguments[0];if(t.length<3)return 0;for(var e=0,n=t[0].x,i=1;i<t.length-1;i++){var r=t[i].x-n,o=t[i+1].y;e+=r*(t[i-1].y-o)}return e/2}if(T(arguments[0],B)){var s=arguments[0],a=s.size();if(a<3)return 0;var u=new S,c=new S,h=new S;s.getCoordinate(0,c),s.getCoordinate(1,h);var l=c.x;h.x-=l;for(var f=0,p=1;p<a-1;p++)u.y=c.y,c.x=h.x,c.y=h.y,s.getCoordinate(p+1,h),h.x-=l,f+=c.x*(u.y-h.y);return f/2}},at.distanceLineLine=function(t,e,n,i){if(t.equals(e))return at.distancePointLine(t,n,i);if(n.equals(i))return at.distancePointLine(i,t,e);var r=!1;if(H.intersects(t,e,n,i)){var o=(e.x-t.x)*(i.y-n.y)-(e.y-t.y)*(i.x-n.x);if(0===o)r=!0;else{var s=(t.y-n.y)*(i.x-n.x)-(t.x-n.x)*(i.y-n.y),a=((t.y-n.y)*(e.x-t.x)-(t.x-n.x)*(e.y-t.y))/o,u=s/o;(u<0||u>1||a<0||a>1)&&(r=!0)}}else r=!0;return r?P.min(at.distancePointLine(t,n,i),at.distancePointLine(e,n,i),at.distancePointLine(n,t,e),at.distancePointLine(i,t,e)):0},at.isPointInRing=function(t,e){return at.locatePointInRing(t,e)!==L.EXTERIOR},at.computeLength=function(t){var e=t.size();if(e<=1)return 0;var n=0,i=new S;t.getCoordinate(0,i);for(var r=i.x,o=i.y,s=1;s<e;s++){t.getCoordinate(s,i);var a=i.x,u=i.y,c=a-r,h=u-o;n+=Math.sqrt(c*c+h*h),r=a,o=u}return n},at.isCCW=function(t){var e=t.length-1;if(e<3)throw new _("Ring has fewer than 4 points, so orientation cannot be determined");for(var n=t[0],i=0,r=1;r<=e;r++){var o=t[r];o.y>n.y&&(n=o,i=r)}var s=i;do{(s-=1)<0&&(s=e)}while(t[s].equals2D(n)&&s!==i);var a=i;do{a=(a+1)%e}while(t[a].equals2D(n)&&a!==i);var u=t[s],c=t[a];if(u.equals2D(n)||c.equals2D(n)||u.equals2D(c))return!1;var h=at.computeOrientation(u,n,c),l=!1;return l=0===h?u.x>c.x:h>0,l},at.locatePointInRing=function(t,e){return st.locatePointInRing(t,e)},at.distancePointLinePerpendicular=function(t,e,n){var i=(n.x-e.x)*(n.x-e.x)+(n.y-e.y)*(n.y-e.y),r=((e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y))/i;return Math.abs(r)*Math.sqrt(i)},at.computeOrientation=function(t,e,n){return at.orientationIndex(t,e,n)},at.distancePointLine=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(0===e.length)throw new _("Line array must contain at least one vertex");for(var n=t.distance(e[0]),i=0;i<e.length-1;i++){var r=at.distancePointLine(t,e[i],e[i+1]);r<n&&(n=r)}return n}if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];if(s.x===a.x&&s.y===a.y)return o.distance(s);var u=(a.x-s.x)*(a.x-s.x)+(a.y-s.y)*(a.y-s.y),c=((o.x-s.x)*(a.x-s.x)+(o.y-s.y)*(a.y-s.y))/u;if(c<=0)return o.distance(s);if(c>=1)return o.distance(a);var h=((s.y-o.y)*(a.x-s.x)-(s.x-o.x)*(a.y-s.y))/u;return Math.abs(h)*Math.sqrt(u)}},at.isOnLine=function(t,e){for(var n=new rt,i=1;i<e.length;i++){var r=e[i-1],o=e[i];if(n.computeIntersection(t,r,o),n.hasIntersection())return!0}return!1},ut.CLOCKWISE.get=function(){return-1},ut.RIGHT.get=function(){return at.CLOCKWISE},ut.COUNTERCLOCKWISE.get=function(){return 1},ut.LEFT.get=function(){return at.COUNTERCLOCKWISE},ut.COLLINEAR.get=function(){return 0},ut.STRAIGHT.get=function(){return at.COLLINEAR},Object.defineProperties(at,ut);var ct=function(){};ct.prototype.filter=function(t){},ct.prototype.interfaces_=function(){return[]},ct.prototype.getClass=function(){return ct};var ht=function(){var t=arguments[0];this._envelope=null,this._factory=null,this._SRID=null,this._userData=null,this._factory=t,this._SRID=t.getSRID()},lt={serialVersionUID:{configurable:!0},SORTINDEX_POINT:{configurable:!0},SORTINDEX_MULTIPOINT:{configurable:!0},SORTINDEX_LINESTRING:{configurable:!0},SORTINDEX_LINEARRING:{configurable:!0},SORTINDEX_MULTILINESTRING:{configurable:!0},SORTINDEX_POLYGON:{configurable:!0},SORTINDEX_MULTIPOLYGON:{configurable:!0},SORTINDEX_GEOMETRYCOLLECTION:{configurable:!0},geometryChangedFilter:{configurable:!0}};ht.prototype.isGeometryCollection=function(){return this.getSortIndex()===ht.SORTINDEX_GEOMETRYCOLLECTION},ht.prototype.getFactory=function(){return this._factory},ht.prototype.getGeometryN=function(t){return this},ht.prototype.getArea=function(){return 0},ht.prototype.isRectangle=function(){return!1},ht.prototype.equals=function(){if(arguments[0]instanceof ht){var t=arguments[0];return null!==t&&this.equalsTopo(t)}if(arguments[0]instanceof Object){var e=arguments[0];if(!(e instanceof ht))return!1;var n=e;return this.equalsExact(n)}},ht.prototype.equalsExact=function(t){return this===t||this.equalsExact(t,0)},ht.prototype.geometryChanged=function(){this.apply(ht.geometryChangedFilter)},ht.prototype.geometryChangedAction=function(){this._envelope=null},ht.prototype.equalsNorm=function(t){return null!==t&&this.norm().equalsExact(t.norm())},ht.prototype.getLength=function(){return 0},ht.prototype.getNumGeometries=function(){return 1},ht.prototype.compareTo=function(){if(1===arguments.length){var t=arguments[0],e=t;return this.getSortIndex()!==e.getSortIndex()?this.getSortIndex()-e.getSortIndex():this.isEmpty()&&e.isEmpty()?0:this.isEmpty()?-1:e.isEmpty()?1:this.compareToSameClass(t)}if(2===arguments.length){var n=arguments[0],i=arguments[1];return this.getSortIndex()!==n.getSortIndex()?this.getSortIndex()-n.getSortIndex():this.isEmpty()&&n.isEmpty()?0:this.isEmpty()?-1:n.isEmpty()?1:this.compareToSameClass(n,i)}},ht.prototype.getUserData=function(){return this._userData},ht.prototype.getSRID=function(){return this._SRID},ht.prototype.getEnvelope=function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},ht.prototype.checkNotGeometryCollection=function(t){if(t.getSortIndex()===ht.SORTINDEX_GEOMETRYCOLLECTION)throw new _("This method does not support GeometryCollection arguments")},ht.prototype.equal=function(t,e,n){return 0===n?t.equals(e):t.distance(e)<=n},ht.prototype.norm=function(){var t=this.copy();return t.normalize(),t},ht.prototype.getPrecisionModel=function(){return this._factory.getPrecisionModel()},ht.prototype.getEnvelopeInternal=function(){return null===this._envelope&&(this._envelope=this.computeEnvelopeInternal()),new H(this._envelope)},ht.prototype.setSRID=function(t){this._SRID=t},ht.prototype.setUserData=function(t){this._userData=t},ht.prototype.compare=function(t,e){for(var n=t.iterator(),i=e.iterator();n.hasNext()&&i.hasNext();){var r=n.next(),o=i.next(),s=r.compareTo(o);if(0!==s)return s}return n.hasNext()?1:i.hasNext()?-1:0},ht.prototype.hashCode=function(){return this.getEnvelopeInternal().hashCode()},ht.prototype.isGeometryCollectionOrDerived=function(){return this.getSortIndex()===ht.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===ht.SORTINDEX_MULTIPOINT||this.getSortIndex()===ht.SORTINDEX_MULTILINESTRING||this.getSortIndex()===ht.SORTINDEX_MULTIPOLYGON},ht.prototype.interfaces_=function(){return[w,x,e]},ht.prototype.getClass=function(){return ht},ht.hasNonEmptyElements=function(t){for(var e=0;e<t.length;e++)if(!t[e].isEmpty())return!0;return!1},ht.hasNullElements=function(t){for(var e=0;e<t.length;e++)if(null===t[e])return!0;return!1},lt.serialVersionUID.get=function(){return 0x799ea46522854c00},lt.SORTINDEX_POINT.get=function(){return 0},lt.SORTINDEX_MULTIPOINT.get=function(){return 1},lt.SORTINDEX_LINESTRING.get=function(){return 2},lt.SORTINDEX_LINEARRING.get=function(){return 3},lt.SORTINDEX_MULTILINESTRING.get=function(){return 4},lt.SORTINDEX_POLYGON.get=function(){return 5},lt.SORTINDEX_MULTIPOLYGON.get=function(){return 6},lt.SORTINDEX_GEOMETRYCOLLECTION.get=function(){return 7},lt.geometryChangedFilter.get=function(){return ft},Object.defineProperties(ht,lt);var ft=function(){};ft.interfaces_=function(){return[ct]},ft.filter=function(t){t.geometryChangedAction()};var pt=function(){};pt.prototype.filter=function(t){},pt.prototype.interfaces_=function(){return[]},pt.prototype.getClass=function(){return pt};var dt=function(){},gt={Mod2BoundaryNodeRule:{configurable:!0},EndPointBoundaryNodeRule:{configurable:!0},MultiValentEndPointBoundaryNodeRule:{configurable:!0},MonoValentEndPointBoundaryNodeRule:{configurable:!0},MOD2_BOUNDARY_RULE:{configurable:!0},ENDPOINT_BOUNDARY_RULE:{configurable:!0},MULTIVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},MONOVALENT_ENDPOINT_BOUNDARY_RULE:{configurable:!0},OGC_SFS_BOUNDARY_RULE:{configurable:!0}};dt.prototype.isInBoundary=function(t){},dt.prototype.interfaces_=function(){return[]},dt.prototype.getClass=function(){return dt},gt.Mod2BoundaryNodeRule.get=function(){return mt},gt.EndPointBoundaryNodeRule.get=function(){return yt},gt.MultiValentEndPointBoundaryNodeRule.get=function(){return _t},gt.MonoValentEndPointBoundaryNodeRule.get=function(){return vt},gt.MOD2_BOUNDARY_RULE.get=function(){return new mt},gt.ENDPOINT_BOUNDARY_RULE.get=function(){return new yt},gt.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new _t},gt.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get=function(){return new vt},gt.OGC_SFS_BOUNDARY_RULE.get=function(){return dt.MOD2_BOUNDARY_RULE},Object.defineProperties(dt,gt);var mt=function(){};mt.prototype.isInBoundary=function(t){return t%2==1},mt.prototype.interfaces_=function(){return[dt]},mt.prototype.getClass=function(){return mt};var yt=function(){};yt.prototype.isInBoundary=function(t){return t>0},yt.prototype.interfaces_=function(){return[dt]},yt.prototype.getClass=function(){return yt};var _t=function(){};_t.prototype.isInBoundary=function(t){return t>1},_t.prototype.interfaces_=function(){return[dt]},_t.prototype.getClass=function(){return _t};var vt=function(){};vt.prototype.isInBoundary=function(t){return 1===t},vt.prototype.interfaces_=function(){return[dt]},vt.prototype.getClass=function(){return vt};var bt=function(){};bt.prototype.add=function(){},bt.prototype.addAll=function(){},bt.prototype.isEmpty=function(){},bt.prototype.iterator=function(){},bt.prototype.size=function(){},bt.prototype.toArray=function(){},bt.prototype.remove=function(){},(n.prototype=new Error).name="IndexOutOfBoundsException";var xt=function(){};xt.prototype.hasNext=function(){},xt.prototype.next=function(){},xt.prototype.remove=function(){};var wt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(){},e.prototype.set=function(){},e.prototype.isEmpty=function(){},e}(bt);(i.prototype=new Error).name="NoSuchElementException";var Mt=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof bt&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.ensureCapacity=function(){},e.prototype.interfaces_=function(){return[t,bt]},e.prototype.add=function(t){return 1===arguments.length?this.array_.push(t):this.array_.splice(arguments[0],arguments[1]),!0},e.prototype.clear=function(){this.array_=[]},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.set=function(t,e){var n=this.array_[t];return this.array_[t]=e,n},e.prototype.iterator=function(){return new St(this)},e.prototype.get=function(t){if(t<0||t>=this.size())throw new n;return this.array_[t]},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.size=function(){return this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.remove=function(t){for(var e=!1,n=0,i=this.array_.length;n<i;n++)if(this.array_[n]===t){this.array_.splice(n,1),e=!0;break}return e},e}(wt),St=function(t){function e(e){t.call(this),this.arrayList_=e,this.position_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new i;return this.arrayList_.get(this.position_++)},e.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},e.prototype.set=function(t){return this.arrayList_.set(this.position_-1,t)},e.prototype.remove=function(){this.arrayList_.remove(this.arrayList_.get(this.position_))},e}(xt),Et=function(t){function e(){if(t.call(this),0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.ensureCapacity(e.length),this.add(e,!0)}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.ensureCapacity(n.length),this.add(n,i)}}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={coordArrayType:{configurable:!0}};return n.coordArrayType.get=function(){return new Array(0).fill(null)},e.prototype.getCoordinate=function(t){return this.get(t)},e.prototype.addAll=function(){if(2===arguments.length){for(var e=arguments[0],n=arguments[1],i=!1,r=e.iterator();r.hasNext();)this.add(r.next(),n),i=!0;return i}return t.prototype.addAll.apply(this,arguments)},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=0;n<this.size();n++)e.add(n,this.get(n).copy());return e},e.prototype.toCoordinateArray=function(){return this.toArray(e.coordArrayType)},e.prototype.add=function(){if(1===arguments.length){var e=arguments[0];t.prototype.add.call(this,e)}else if(2===arguments.length){if(arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var n=arguments[0],i=arguments[1];return this.add(n,i,!0),!0}if(arguments[0]instanceof S&&"boolean"==typeof arguments[1]){var r=arguments[0];if(!arguments[1]&&this.size()>=1&&this.get(this.size()-1).equals2D(r))return null;t.prototype.add.call(this,r)}else if(arguments[0]instanceof Object&&"boolean"==typeof arguments[1]){var o=arguments[0],s=arguments[1];return this.add(o,s),!0}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&arguments[0]instanceof Array&&"boolean"==typeof arguments[1]){var a=arguments[0],u=arguments[1];if(arguments[2])for(var c=0;c<a.length;c++)this.add(a[c],u);else for(var h=a.length-1;h>=0;h--)this.add(a[h],u);return!0}if("boolean"==typeof arguments[2]&&Number.isInteger(arguments[0])&&arguments[1]instanceof S){var l=arguments[0],f=arguments[1];if(!arguments[2]){var p=this.size();if(p>0){if(l>0&&this.get(l-1).equals2D(f))return null;if(l<p&&this.get(l).equals2D(f))return null}}t.prototype.add.call(this,l,f)}}else if(4===arguments.length){var d=arguments[0],g=arguments[1],m=arguments[2],y=arguments[3],_=1;m>y&&(_=-1);for(var v=m;v!==y;v+=_)this.add(d[v],g);return!0}},e.prototype.closeRing=function(){this.size()>0&&this.add(new S(this.get(0)),!1)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},Object.defineProperties(e,n),e}(Mt),Ct=function(){},It={ForwardComparator:{configurable:!0},BidirectionalComparator:{configurable:!0},coordArrayType:{configurable:!0}};It.ForwardComparator.get=function(){return Lt},It.BidirectionalComparator.get=function(){return Ot},It.coordArrayType.get=function(){return new Array(0).fill(null)},Ct.prototype.interfaces_=function(){return[]},Ct.prototype.getClass=function(){return Ct},Ct.isRing=function(t){return!(t.length<4)&&!!t[0].equals2D(t[t.length-1])},Ct.ptNotInList=function(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(Ct.indexOf(i,e)<0)return i}return null},Ct.scroll=function(t,e){var n=Ct.indexOf(e,t);if(n<0)return null;var i=new Array(t.length).fill(null);V.arraycopy(t,n,i,0,t.length-n),V.arraycopy(t,0,i,t.length-n,n),V.arraycopy(i,0,t,0,t.length)},Ct.equals=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];if(t===e)return!0;if(null===t||null===e)return!1;if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0}if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];if(i===r)return!0;if(null===i||null===r)return!1;if(i.length!==r.length)return!1;for(var s=0;s<i.length;s++)if(0!==o.compare(i[s],r[s]))return!1;return!0}},Ct.intersection=function(t,e){for(var n=new Et,i=0;i<t.length;i++)e.intersects(t[i])&&n.add(t[i],!0);return n.toCoordinateArray()},Ct.hasRepeatedPoints=function(t){for(var e=1;e<t.length;e++)if(t[e-1].equals(t[e]))return!0;return!1},Ct.removeRepeatedPoints=function(t){return Ct.hasRepeatedPoints(t)?new Et(t,!1).toCoordinateArray():t},Ct.reverse=function(t){for(var e=t.length-1,n=Math.trunc(e/2),i=0;i<=n;i++){var r=t[i];t[i]=t[e-i],t[e-i]=r}},Ct.removeNull=function(t){for(var e=0,n=0;n<t.length;n++)null!==t[n]&&e++;var i=new Array(e).fill(null);if(0===e)return i;for(var r=0,o=0;o<t.length;o++)null!==t[o]&&(i[r++]=t[o]);return i},Ct.copyDeep=function(){if(1===arguments.length){for(var t=arguments[0],e=new Array(t.length).fill(null),n=0;n<t.length;n++)e[n]=new S(t[n]);return e}if(5===arguments.length)for(var i=arguments[0],r=arguments[1],o=arguments[2],s=arguments[3],a=arguments[4],u=0;u<a;u++)o[s+u]=new S(i[r+u])},Ct.isEqualReversed=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[t.length-n-1];if(0!==i.compareTo(r))return!1}return!0},Ct.envelope=function(t){for(var e=new H,n=0;n<t.length;n++)e.expandToInclude(t[n]);return e},Ct.toCoordinateArray=function(t){return t.toArray(Ct.coordArrayType)},Ct.atLeastNCoordinatesOrNothing=function(t,e){return e.length>=t?e:[]},Ct.indexOf=function(t,e){for(var n=0;n<e.length;n++)if(t.equals(e[n]))return n;return-1},Ct.increasingDirection=function(t){for(var e=0;e<Math.trunc(t.length/2);e++){var n=t.length-1-e,i=t[e].compareTo(t[n]);if(0!==i)return i}return 1},Ct.compare=function(t,e){for(var n=0;n<t.length&&n<e.length;){var i=t[n].compareTo(e[n]);if(0!==i)return i;n++}return n<e.length?-1:n<t.length?1:0},Ct.minCoordinate=function(t){for(var e=null,n=0;n<t.length;n++)(null===e||e.compareTo(t[n])>0)&&(e=t[n]);return e},Ct.extract=function(t,e,n){e=P.clamp(e,0,t.length);var i=(n=P.clamp(n,-1,t.length))-e+1;n<0&&(i=0),e>=t.length&&(i=0),n<e&&(i=0);var r=new Array(i).fill(null);if(0===i)return r;for(var o=0,s=e;s<=n;s++)r[o++]=t[s];return r},Object.defineProperties(Ct,It);var Lt=function(){};Lt.prototype.compare=function(t,e){return Ct.compare(t,e)},Lt.prototype.interfaces_=function(){return[M]},Lt.prototype.getClass=function(){return Lt};var Ot=function(){};Ot.prototype.compare=function(t,e){var n=t,i=e;if(n.length<i.length)return-1;if(n.length>i.length)return 1;if(0===n.length)return 0;var r=Ct.compare(n,i);return Ct.isEqualReversed(n,i)?0:r},Ot.prototype.OLDcompare=function(t,e){var n=t,i=e;if(n.length<i.length)return-1;if(n.length>i.length)return 1;if(0===n.length)return 0;for(var r=Ct.increasingDirection(n),o=Ct.increasingDirection(i),s=r>0?0:n.length-1,a=o>0?0:n.length-1,u=0;u<n.length;u++){var c=n[s].compareTo(i[a]);if(0!==c)return c;s+=r,a+=o}return 0},Ot.prototype.interfaces_=function(){return[M]},Ot.prototype.getClass=function(){return Ot};var Tt=function(){};Tt.prototype.get=function(){},Tt.prototype.put=function(){},Tt.prototype.size=function(){},Tt.prototype.values=function(){},Tt.prototype.entrySet=function(){};var Pt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Tt);(r.prototype=new Error).name="OperationNotSupported",(o.prototype=new bt).contains=function(){};var Nt=function(t){function e(){t.call(this),this.array_=[],arguments[0]instanceof bt&&this.addAll(arguments[0])}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(this.array_[e]===t)return!0;return!1},e.prototype.add=function(t){return!this.contains(t)&&(this.array_.push(t),!0)},e.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},e.prototype.remove=function(t){throw new Error},e.prototype.size=function(){return this.array_.length},e.prototype.isEmpty=function(){return 0===this.array_.length},e.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},e.prototype.iterator=function(){return new At(this)},e}(o),At=function(t){function e(e){t.call(this),this.hashSet_=e,this.position_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new i;return this.hashSet_.array_[this.position_++]},e.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},e.prototype.remove=function(){throw new r},e}(xt),Rt=0;(l.prototype=new Pt).get=function(t){for(var e=this.root_;null!==e;){var n=t.compareTo(e.key);if(n<0)e=e.left;else{if(!(n>0))return e.value;e=e.right}}return null},l.prototype.put=function(t,e){if(null===this.root_)return this.root_={key:t,value:e,left:null,right:null,parent:null,color:Rt,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var n,i,r=this.root_;do{if(n=r,(i=t.compareTo(r.key))<0)r=r.left;else{if(!(i>0)){var o=r.value;return r.value=e,o}r=r.right}}while(null!==r);var s={key:t,left:null,right:null,value:e,parent:n,color:Rt,getValue:function(){return this.value},getKey:function(){return this.key}};return i<0?n.left=s:n.right=s,this.fixAfterInsertion(s),this.size_++,null},l.prototype.fixAfterInsertion=function(t){for(t.color=1;null!=t&&t!==this.root_&&1===t.parent.color;)if(a(t)===c(a(a(t)))){var e=h(a(a(t)));1===s(e)?(u(a(t),Rt),u(e,Rt),u(a(a(t)),1),t=a(a(t))):(t===h(a(t))&&(t=a(t),this.rotateLeft(t)),u(a(t),Rt),u(a(a(t)),1),this.rotateRight(a(a(t))))}else{var n=c(a(a(t)));1===s(n)?(u(a(t),Rt),u(n,Rt),u(a(a(t)),1),t=a(a(t))):(t===c(a(t))&&(t=a(t),this.rotateRight(t)),u(a(t),Rt),u(a(a(t)),1),this.rotateLeft(a(a(t))))}this.root_.color=Rt},l.prototype.values=function(){var t=new Mt,e=this.getFirstEntry();if(null!==e)for(t.add(e.value);null!==(e=l.successor(e));)t.add(e.value);return t},l.prototype.entrySet=function(){var t=new Nt,e=this.getFirstEntry();if(null!==e)for(t.add(e);null!==(e=l.successor(e));)t.add(e);return t},l.prototype.rotateLeft=function(t){if(null!=t){var e=t.right;t.right=e.left,null!=e.left&&(e.left.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.left===t?t.parent.left=e:t.parent.right=e,e.left=t,t.parent=e}},l.prototype.rotateRight=function(t){if(null!=t){var e=t.left;t.left=e.right,null!=e.right&&(e.right.parent=t),e.parent=t.parent,null===t.parent?this.root_=e:t.parent.right===t?t.parent.right=e:t.parent.left=e,e.right=t,t.parent=e}},l.prototype.getFirstEntry=function(){var t=this.root_;if(null!=t)for(;null!=t.left;)t=t.left;return t},l.successor=function(t){if(null===t)return null;if(null!==t.right){for(var e=t.right;null!==e.left;)e=e.left;return e}for(var n=t.parent,i=t;null!==n&&i===n.right;)i=n,n=n.parent;return n},l.prototype.size=function(){return this.size_};var Dt=function(){};Dt.prototype.interfaces_=function(){return[]},Dt.prototype.getClass=function(){return Dt},f.prototype=new o,(p.prototype=new f).contains=function(t){for(var e=0,n=this.array_.length;e<n;e++)if(0===this.array_[e].compareTo(t))return!0;return!1},p.prototype.add=function(t){if(this.contains(t))return!1;for(var e=0,n=this.array_.length;e<n;e++)if(1===this.array_[e].compareTo(t))return this.array_.splice(e,0,t),!0;return this.array_.push(t),!0},p.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next());return!0},p.prototype.remove=function(t){throw new r},p.prototype.size=function(){return this.array_.length},p.prototype.isEmpty=function(){return 0===this.array_.length},p.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t},p.prototype.iterator=function(){return new kt(this)};var kt=function(t){this.treeSet_=t,this.position_=0};kt.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new i;return this.treeSet_.array_[this.position_++]},kt.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},kt.prototype.remove=function(){throw new r};var Ft=function(){};Ft.sort=function(){var t,e,n,i,r=arguments[0];if(1===arguments.length)i=function(t,e){return t.compareTo(e)},r.sort(i);else if(2===arguments.length)n=arguments[1],i=function(t,e){return n.compare(t,e)},r.sort(i);else if(3===arguments.length){(e=r.slice(arguments[1],arguments[2])).sort();var o=r.slice(0,arguments[1]).concat(e,r.slice(arguments[2],r.length));for(r.splice(0,r.length),t=0;t<o.length;t++)r.push(o[t])}else if(4===arguments.length)for(e=r.slice(arguments[1],arguments[2]),n=arguments[3],i=function(t,e){return n.compare(t,e)},e.sort(i),o=r.slice(0,arguments[1]).concat(e,r.slice(arguments[2],r.length)),r.splice(0,r.length),t=0;t<o.length;t++)r.push(o[t])},Ft.asList=function(t){for(var e=new Mt,n=0,i=t.length;n<i;n++)e.add(t[n]);return e};var zt=function(){},jt={P:{configurable:!0},L:{configurable:!0},A:{configurable:!0},FALSE:{configurable:!0},TRUE:{configurable:!0},DONTCARE:{configurable:!0},SYM_FALSE:{configurable:!0},SYM_TRUE:{configurable:!0},SYM_DONTCARE:{configurable:!0},SYM_P:{configurable:!0},SYM_L:{configurable:!0},SYM_A:{configurable:!0}};jt.P.get=function(){return 0},jt.L.get=function(){return 1},jt.A.get=function(){return 2},jt.FALSE.get=function(){return-1},jt.TRUE.get=function(){return-2},jt.DONTCARE.get=function(){return-3},jt.SYM_FALSE.get=function(){return"F"},jt.SYM_TRUE.get=function(){return"T"},jt.SYM_DONTCARE.get=function(){return"*"},jt.SYM_P.get=function(){return"0"},jt.SYM_L.get=function(){return"1"},jt.SYM_A.get=function(){return"2"},zt.prototype.interfaces_=function(){return[]},zt.prototype.getClass=function(){return zt},zt.toDimensionSymbol=function(t){switch(t){case zt.FALSE:return zt.SYM_FALSE;case zt.TRUE:return zt.SYM_TRUE;case zt.DONTCARE:return zt.SYM_DONTCARE;case zt.P:return zt.SYM_P;case zt.L:return zt.SYM_L;case zt.A:return zt.SYM_A}throw new _("Unknown dimension value: "+t)},zt.toDimensionValue=function(t){switch(D.toUpperCase(t)){case zt.SYM_FALSE:return zt.FALSE;case zt.SYM_TRUE:return zt.TRUE;case zt.SYM_DONTCARE:return zt.DONTCARE;case zt.SYM_P:return zt.P;case zt.SYM_L:return zt.L;case zt.SYM_A:return zt.A}throw new _("Unknown dimension symbol: "+t)},Object.defineProperties(zt,jt);var Bt=function(){};Bt.prototype.filter=function(t){},Bt.prototype.interfaces_=function(){return[]},Bt.prototype.getClass=function(){return Bt};var Gt=function(){};Gt.prototype.filter=function(t,e){},Gt.prototype.isDone=function(){},Gt.prototype.isGeometryChanged=function(){},Gt.prototype.interfaces_=function(){return[]},Gt.prototype.getClass=function(){return Gt};var qt=function(t){function e(e,n){if(t.call(this,n),this._geometries=e||[],t.hasNullElements(this._geometries))throw new _("geometries must not contain null elements")}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){for(var t=new H,e=0;e<this._geometries.length;e++)t.expandToInclude(this._geometries[e].getEnvelopeInternal());return t},e.prototype.getGeometryN=function(t){return this._geometries[t]},e.prototype.getSortIndex=function(){return t.SORTINDEX_GEOMETRYCOLLECTION},e.prototype.getCoordinates=function(){for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=0;n<this._geometries.length;n++)for(var i=this._geometries[n].getCoordinates(),r=0;r<i.length;r++)t[++e]=i[r];return t},e.prototype.getArea=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getArea();return t},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!this.isEquivalentClass(e))return!1;var i=e;if(this._geometries.length!==i._geometries.length)return!1;for(var r=0;r<this._geometries.length;r++)if(!this._geometries[r].equalsExact(i._geometries[r],n))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){for(var t=0;t<this._geometries.length;t++)this._geometries[t].normalize();Ft.sort(this._geometries)},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()},e.prototype.getBoundaryDimension=function(){for(var t=zt.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getBoundaryDimension());return t},e.prototype.getDimension=function(){for(var t=zt.FALSE,e=0;e<this._geometries.length;e++)t=Math.max(t,this._geometries[e].getDimension());return t},e.prototype.getLength=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getLength();return t},e.prototype.getNumPoints=function(){for(var t=0,e=0;e<this._geometries.length;e++)t+=this._geometries[e].getNumPoints();return t},e.prototype.getNumGeometries=function(){return this._geometries.length},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createGeometryCollection(e)},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0],e=new p(Ft.asList(this._geometries)),n=new p(Ft.asList(t._geometries));return this.compare(e,n)}if(2===arguments.length){for(var i=arguments[0],r=arguments[1],o=i,s=this.getNumGeometries(),a=o.getNumGeometries(),u=0;u<s&&u<a;){var c=this.getGeometryN(u),h=o.getGeometryN(u),l=c.compareToSameClass(h,r);if(0!==l)return l;u++}return u<s?1:u<a?-1:0}},e.prototype.apply=function(){if(T(arguments[0],pt))for(var t=arguments[0],e=0;e<this._geometries.length;e++)this._geometries[e].apply(t);else if(T(arguments[0],Gt)){var n=arguments[0];if(0===this._geometries.length)return null;for(var i=0;i<this._geometries.length&&(this._geometries[i].apply(n),!n.isDone());i++);n.isGeometryChanged()&&this.geometryChanged()}else if(T(arguments[0],Bt)){var r=arguments[0];r.filter(this);for(var o=0;o<this._geometries.length;o++)this._geometries[o].apply(r)}else if(T(arguments[0],ct)){var s=arguments[0];s.filter(this);for(var a=0;a<this._geometries.length;a++)this._geometries[a].apply(s)}},e.prototype.getBoundary=function(){return this.checkNotGeometryCollection(this),et.shouldNeverReachHere(),null},e.prototype.clone=function(){var e=t.prototype.clone.call(this);e._geometries=new Array(this._geometries.length).fill(null);for(var n=0;n<this._geometries.length;n++)e._geometries[n]=this._geometries[n].clone();return e},e.prototype.getGeometryType=function(){return"GeometryCollection"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.isEmpty=function(){for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isEmpty())return!1;return!0},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x4f07bcb1f857d800},Object.defineProperties(e,n),e}(ht),Ut=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return ht.SORTINDEX_MULTILINESTRING},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?zt.FALSE:0},e.prototype.isClosed=function(){if(this.isEmpty())return!1;for(var t=0;t<this._geometries.length;t++)if(!this._geometries[t].isClosed())return!1;return!0},e.prototype.getDimension=function(){return 1},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[t-1-n]=this._geometries[n].reverse();return this.getFactory().createMultiLineString(e)},e.prototype.getBoundary=function(){return new Vt(this).getBoundary()},e.prototype.getGeometryType=function(){return"MultiLineString"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[Dt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x7155d2ab4afa8000},Object.defineProperties(e,n),e}(qt),Vt=function(){if(this._geom=null,this._geomFact=null,this._bnRule=null,this._endpointMap=null,1===arguments.length){var t=arguments[0],e=dt.MOD2_BOUNDARY_RULE;this._geom=t,this._geomFact=t.getFactory(),this._bnRule=e}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this._geom=n,this._geomFact=n.getFactory(),this._bnRule=i}};Vt.prototype.boundaryMultiLineString=function(t){if(this._geom.isEmpty())return this.getEmptyMultiPoint();var e=this.computeBoundaryCoordinates(t);return 1===e.length?this._geomFact.createPoint(e[0]):this._geomFact.createMultiPointFromCoords(e)},Vt.prototype.getBoundary=function(){return this._geom instanceof Wt?this.boundaryLineString(this._geom):this._geom instanceof Ut?this.boundaryMultiLineString(this._geom):this._geom.getBoundary()},Vt.prototype.boundaryLineString=function(t){return this._geom.isEmpty()?this.getEmptyMultiPoint():t.isClosed()?this._bnRule.isInBoundary(2)?t.getStartPoint():this._geomFact.createMultiPoint():this._geomFact.createMultiPoint([t.getStartPoint(),t.getEndPoint()])},Vt.prototype.getEmptyMultiPoint=function(){return this._geomFact.createMultiPoint()},Vt.prototype.computeBoundaryCoordinates=function(t){var e=new Mt;this._endpointMap=new l;for(var n=0;n<t.getNumGeometries();n++){var i=t.getGeometryN(n);0!==i.getNumPoints()&&(this.addEndpoint(i.getCoordinateN(0)),this.addEndpoint(i.getCoordinateN(i.getNumPoints()-1)))}for(var r=this._endpointMap.entrySet().iterator();r.hasNext();){var o=r.next(),s=o.getValue().count;this._bnRule.isInBoundary(s)&&e.add(o.getKey())}return Ct.toCoordinateArray(e)},Vt.prototype.addEndpoint=function(t){var e=this._endpointMap.get(t);null===e&&(e=new Zt,this._endpointMap.put(t,e)),e.count++},Vt.prototype.interfaces_=function(){return[]},Vt.prototype.getClass=function(){return Vt},Vt.getBoundary=function(){if(1===arguments.length){var t=arguments[0];return new Vt(t).getBoundary()}if(2===arguments.length){var e=arguments[0],n=arguments[1];return new Vt(e,n).getBoundary()}};var Zt=function(){this.count=null};Zt.prototype.interfaces_=function(){return[]},Zt.prototype.getClass=function(){return Zt};var Ht=function(){},$t={NEWLINE:{configurable:!0},SIMPLE_ORDINATE_FORMAT:{configurable:!0}};Ht.prototype.interfaces_=function(){return[]},Ht.prototype.getClass=function(){return Ht},Ht.chars=function(t,e){for(var n=new Array(e).fill(null),i=0;i<e;i++)n[i]=t;return String(n)},Ht.getStackTrace=function(){if(1===arguments.length){var t=arguments[0],e=new function(){},n=new function(){}(e);return t.printStackTrace(n),e.toString()}if(2===arguments.length){for(var i=arguments[0],r=arguments[1],o="",s=new function(){}(new function(){}(Ht.getStackTrace(i))),a=0;a<r;a++)try{o+=s.readLine()+Ht.NEWLINE}catch(t){if(!(t instanceof d))throw t;et.shouldNeverReachHere()}return o}},Ht.split=function(t,e){for(var n=e.length,i=new Mt,r=""+t,o=r.indexOf(e);o>=0;){var s=r.substring(0,o);i.add(s),o=(r=r.substring(o+n)).indexOf(e)}r.length>0&&i.add(r);for(var a=new Array(i.size()).fill(null),u=0;u<a.length;u++)a[u]=i.get(u);return a},Ht.toString=function(){if(1===arguments.length){var t=arguments[0];return Ht.SIMPLE_ORDINATE_FORMAT.format(t)}},Ht.spaces=function(t){return Ht.chars(" ",t)},$t.NEWLINE.get=function(){return V.getProperty("line.separator")},$t.SIMPLE_ORDINATE_FORMAT.get=function(){return new function(){}("0.#")},Object.defineProperties(Ht,$t);var Yt=function(){};Yt.prototype.interfaces_=function(){return[]},Yt.prototype.getClass=function(){return Yt},Yt.copyCoord=function(t,e,n,i){for(var r=Math.min(t.getDimension(),n.getDimension()),o=0;o<r;o++)n.setOrdinate(i,o,t.getOrdinate(e,o))},Yt.isRing=function(t){var e=t.size();return 0===e||!(e<=3)&&t.getOrdinate(0,B.X)===t.getOrdinate(e-1,B.X)&&t.getOrdinate(0,B.Y)===t.getOrdinate(e-1,B.Y)},Yt.isEqual=function(t,e){var n=t.size();if(n!==e.size())return!1;for(var i=Math.min(t.getDimension(),e.getDimension()),r=0;r<n;r++)for(var o=0;o<i;o++){var s=t.getOrdinate(r,o),a=e.getOrdinate(r,o);if(t.getOrdinate(r,o)!==e.getOrdinate(r,o)&&(!v.isNaN(s)||!v.isNaN(a)))return!1}return!0},Yt.extend=function(t,e,n){var i=t.create(n,e.getDimension()),r=e.size();if(Yt.copy(e,0,i,0,r),r>0)for(var o=r;o<n;o++)Yt.copy(e,r-1,i,o,1);return i},Yt.reverse=function(t){for(var e=t.size()-1,n=Math.trunc(e/2),i=0;i<=n;i++)Yt.swap(t,i,e-i)},Yt.swap=function(t,e,n){if(e===n)return null;for(var i=0;i<t.getDimension();i++){var r=t.getOrdinate(e,i);t.setOrdinate(e,i,t.getOrdinate(n,i)),t.setOrdinate(n,i,r)}},Yt.copy=function(t,e,n,i,r){for(var o=0;o<r;o++)Yt.copyCoord(t,e+o,n,i+o)},Yt.toString=function(){if(1===arguments.length){var t=arguments[0],e=t.size();if(0===e)return"()";var n=t.getDimension(),i=new A;i.append("(");for(var r=0;r<e;r++){r>0&&i.append(" ");for(var o=0;o<n;o++)o>0&&i.append(","),i.append(Ht.toString(t.getOrdinate(r,o)))}return i.append(")"),i.toString()}},Yt.ensureValidRing=function(t,e){var n=e.size();return 0===n?e:n<=3?Yt.createClosedRing(t,e,4):e.getOrdinate(0,B.X)===e.getOrdinate(n-1,B.X)&&e.getOrdinate(0,B.Y)===e.getOrdinate(n-1,B.Y)?e:Yt.createClosedRing(t,e,n+1)},Yt.createClosedRing=function(t,e,n){var i=t.create(n,e.getDimension()),r=e.size();Yt.copy(e,0,i,0,r);for(var o=r;o<n;o++)Yt.copy(e,0,i,o,1);return i};var Wt=function(t){function e(e,n){t.call(this,n),this._points=null,this.init(e)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){return this.isEmpty()?new H:this._points.expandEnvelope(new H)},e.prototype.isRing=function(){return this.isClosed()&&this.isSimple()},e.prototype.getSortIndex=function(){return t.SORTINDEX_LINESTRING},e.prototype.getCoordinates=function(){return this._points.toCoordinateArray()},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!this.isEquivalentClass(e))return!1;var i=e;if(this._points.size()!==i._points.size())return!1;for(var r=0;r<this._points.size();r++)if(!this.equal(this._points.getCoordinate(r),i._points.getCoordinate(r),n))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){for(var t=0;t<Math.trunc(this._points.size()/2);t++){var e=this._points.size()-1-t;if(!this._points.getCoordinate(t).equals(this._points.getCoordinate(e)))return this._points.getCoordinate(t).compareTo(this._points.getCoordinate(e))>0&&Yt.reverse(this._points),null}},e.prototype.getCoordinate=function(){return this.isEmpty()?null:this._points.getCoordinate(0)},e.prototype.getBoundaryDimension=function(){return this.isClosed()?zt.FALSE:0},e.prototype.isClosed=function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},e.prototype.getEndPoint=function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},e.prototype.getDimension=function(){return 1},e.prototype.getLength=function(){return at.computeLength(this._points)},e.prototype.getNumPoints=function(){return this._points.size()},e.prototype.reverse=function(){var t=this._points.copy();return Yt.reverse(t),this.getFactory().createLineString(t)},e.prototype.compareToSameClass=function(){if(1===arguments.length){for(var t=arguments[0],e=0,n=0;e<this._points.size()&&n<t._points.size();){var i=this._points.getCoordinate(e).compareTo(t._points.getCoordinate(n));if(0!==i)return i;e++,n++}return e<this._points.size()?1:n<t._points.size()?-1:0}if(2===arguments.length){var r=arguments[0];return arguments[1].compare(this._points,r._points)}},e.prototype.apply=function(){if(T(arguments[0],pt))for(var t=arguments[0],e=0;e<this._points.size();e++)t.filter(this._points.getCoordinate(e));else if(T(arguments[0],Gt)){var n=arguments[0];if(0===this._points.size())return null;for(var i=0;i<this._points.size()&&(n.filter(this._points,i),!n.isDone());i++);n.isGeometryChanged()&&this.geometryChanged()}else T(arguments[0],Bt)?arguments[0].filter(this):T(arguments[0],ct)&&arguments[0].filter(this)},e.prototype.getBoundary=function(){return new Vt(this).getBoundary()},e.prototype.isEquivalentClass=function(t){return t instanceof e},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e._points=this._points.clone(),e},e.prototype.getCoordinateN=function(t){return this._points.getCoordinate(t)},e.prototype.getGeometryType=function(){return"LineString"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.getCoordinateSequence=function(){return this._points},e.prototype.isEmpty=function(){return 0===this._points.size()},e.prototype.init=function(t){if(null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),1===t.size())throw new _("Invalid number of points in LineString (found "+t.size()+" - must be 0 or >= 2)");this._points=t},e.prototype.isCoordinate=function(t){for(var e=0;e<this._points.size();e++)if(this._points.getCoordinate(e).equals(t))return!0;return!1},e.prototype.getStartPoint=function(){return this.isEmpty()?null:this.getPointN(0)},e.prototype.getPointN=function(t){return this.getFactory().createPoint(this._points.getCoordinate(t))},e.prototype.interfaces_=function(){return[Dt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x2b2b51ba435c8e00},Object.defineProperties(e,n),e}(ht),Xt=function(){};Xt.prototype.interfaces_=function(){return[]},Xt.prototype.getClass=function(){return Xt};var Kt=function(t){function e(e,n){t.call(this,n),this._coordinates=e||null,this.init(this._coordinates)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){if(this.isEmpty())return new H;var t=new H;return t.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),t},e.prototype.getSortIndex=function(){return t.SORTINDEX_POINT},e.prototype.getCoordinates=function(){return this.isEmpty()?[]:[this.getCoordinate()]},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&(!(!this.isEmpty()||!e.isEmpty())||this.isEmpty()===e.isEmpty()&&this.equal(e.getCoordinate(),this.getCoordinate(),n))}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){},e.prototype.getCoordinate=function(){return 0!==this._coordinates.size()?this._coordinates.getCoordinate(0):null},e.prototype.getBoundaryDimension=function(){return zt.FALSE},e.prototype.getDimension=function(){return 0},e.prototype.getNumPoints=function(){return this.isEmpty()?0:1},e.prototype.reverse=function(){return this.copy()},e.prototype.getX=function(){if(null===this.getCoordinate())throw new Error("getX called on empty Point");return this.getCoordinate().x},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0];return this.getCoordinate().compareTo(t.getCoordinate())}if(2===arguments.length){var e=arguments[0];return arguments[1].compare(this._coordinates,e._coordinates)}},e.prototype.apply=function(){if(T(arguments[0],pt)){var t=arguments[0];if(this.isEmpty())return null;t.filter(this.getCoordinate())}else if(T(arguments[0],Gt)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this._coordinates,0),e.isGeometryChanged()&&this.geometryChanged()}else T(arguments[0],Bt)?arguments[0].filter(this):T(arguments[0],ct)&&arguments[0].filter(this)},e.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e._coordinates=this._coordinates.clone(),e},e.prototype.getGeometryType=function(){return"Point"},e.prototype.copy=function(){return new e(this._coordinates.copy(),this._factory)},e.prototype.getCoordinateSequence=function(){return this._coordinates},e.prototype.getY=function(){if(null===this.getCoordinate())throw new Error("getY called on empty Point");return this.getCoordinate().y},e.prototype.isEmpty=function(){return 0===this._coordinates.size()},e.prototype.init=function(t){null===t&&(t=this.getFactory().getCoordinateSequenceFactory().create([])),et.isTrue(t.size()<=1),this._coordinates=t},e.prototype.isSimple=function(){return!0},e.prototype.interfaces_=function(){return[Xt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return 0x44077bad161cbc00},Object.defineProperties(e,n),e}(ht),Jt=function(){};Jt.prototype.interfaces_=function(){return[]},Jt.prototype.getClass=function(){return Jt};var Qt=function(t){function e(e,n,i){if(t.call(this,i),this._shell=null,this._holes=null,null===e&&(e=this.getFactory().createLinearRing()),null===n&&(n=[]),t.hasNullElements(n))throw new _("holes must not contain null elements");if(e.isEmpty()&&t.hasNonEmptyElements(n))throw new _("shell is empty but holes are not");this._shell=e,this._holes=n}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.computeEnvelopeInternal=function(){return this._shell.getEnvelopeInternal()},e.prototype.getSortIndex=function(){return t.SORTINDEX_POLYGON},e.prototype.getCoordinates=function(){if(this.isEmpty())return[];for(var t=new Array(this.getNumPoints()).fill(null),e=-1,n=this._shell.getCoordinates(),i=0;i<n.length;i++)t[++e]=n[i];for(var r=0;r<this._holes.length;r++)for(var o=this._holes[r].getCoordinates(),s=0;s<o.length;s++)t[++e]=o[s];return t},e.prototype.getArea=function(){var t=0;t+=Math.abs(at.signedArea(this._shell.getCoordinateSequence()));for(var e=0;e<this._holes.length;e++)t-=Math.abs(at.signedArea(this._holes[e].getCoordinateSequence()));return t},e.prototype.isRectangle=function(){if(0!==this.getNumInteriorRing())return!1;if(null===this._shell)return!1;if(5!==this._shell.getNumPoints())return!1;for(var t=this._shell.getCoordinateSequence(),e=this.getEnvelopeInternal(),n=0;n<5;n++){var i=t.getX(n);if(i!==e.getMinX()&&i!==e.getMaxX())return!1;var r=t.getY(n);if(r!==e.getMinY()&&r!==e.getMaxY())return!1}for(var o=t.getX(0),s=t.getY(0),a=1;a<=4;a++){var u=t.getX(a),c=t.getY(a);if(u!==o===(c!==s))return!1;o=u,s=c}return!0},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];if(!this.isEquivalentClass(e))return!1;var i=e,r=this._shell,o=i._shell;if(!r.equalsExact(o,n))return!1;if(this._holes.length!==i._holes.length)return!1;for(var s=0;s<this._holes.length;s++)if(!this._holes[s].equalsExact(i._holes[s],n))return!1;return!0}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.normalize=function(){if(0===arguments.length){this.normalize(this._shell,!0);for(var t=0;t<this._holes.length;t++)this.normalize(this._holes[t],!1);Ft.sort(this._holes)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(e.isEmpty())return null;var i=new Array(e.getCoordinates().length-1).fill(null);V.arraycopy(e.getCoordinates(),0,i,0,i.length);var r=Ct.minCoordinate(e.getCoordinates());Ct.scroll(i,r),V.arraycopy(i,0,e.getCoordinates(),0,i.length),e.getCoordinates()[i.length]=i[0],at.isCCW(e.getCoordinates())===n&&Ct.reverse(e.getCoordinates())}},e.prototype.getCoordinate=function(){return this._shell.getCoordinate()},e.prototype.getNumInteriorRing=function(){return this._holes.length},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.getLength=function(){var t=0;t+=this._shell.getLength();for(var e=0;e<this._holes.length;e++)t+=this._holes[e].getLength();return t},e.prototype.getNumPoints=function(){for(var t=this._shell.getNumPoints(),e=0;e<this._holes.length;e++)t+=this._holes[e].getNumPoints();return t},e.prototype.reverse=function(){var t=this.copy();t._shell=this._shell.copy().reverse(),t._holes=new Array(this._holes.length).fill(null);for(var e=0;e<this._holes.length;e++)t._holes[e]=this._holes[e].copy().reverse();return t},e.prototype.convexHull=function(){return this.getExteriorRing().convexHull()},e.prototype.compareToSameClass=function(){if(1===arguments.length){var t=arguments[0],e=this._shell,n=t._shell;return e.compareToSameClass(n)}if(2===arguments.length){var i=arguments[0],r=arguments[1],o=i,s=this._shell,a=o._shell,u=s.compareToSameClass(a,r);if(0!==u)return u;for(var c=this.getNumInteriorRing(),h=o.getNumInteriorRing(),l=0;l<c&&l<h;){var f=this.getInteriorRingN(l),p=o.getInteriorRingN(l),d=f.compareToSameClass(p,r);if(0!==d)return d;l++}return l<c?1:l<h?-1:0}},e.prototype.apply=function(t){if(T(t,pt)){this._shell.apply(t);for(var e=0;e<this._holes.length;e++)this._holes[e].apply(t)}else if(T(t,Gt)){if(this._shell.apply(t),!t.isDone())for(var n=0;n<this._holes.length&&(this._holes[n].apply(t),!t.isDone());n++);t.isGeometryChanged()&&this.geometryChanged()}else if(T(t,Bt))t.filter(this);else if(T(t,ct)){t.filter(this),this._shell.apply(t);for(var i=0;i<this._holes.length;i++)this._holes[i].apply(t)}},e.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var t=new Array(this._holes.length+1).fill(null);t[0]=this._shell;for(var e=0;e<this._holes.length;e++)t[e+1]=this._holes[e];return t.length<=1?this.getFactory().createLinearRing(t[0].getCoordinateSequence()):this.getFactory().createMultiLineString(t)},e.prototype.clone=function(){var e=t.prototype.clone.call(this);e._shell=this._shell.clone(),e._holes=new Array(this._holes.length).fill(null);for(var n=0;n<this._holes.length;n++)e._holes[n]=this._holes[n].clone();return e},e.prototype.getGeometryType=function(){return"Polygon"},e.prototype.copy=function(){for(var t=this._shell.copy(),n=new Array(this._holes.length).fill(null),i=0;i<n.length;i++)n[i]=this._holes[i].copy();return new e(t,n,this._factory)},e.prototype.getExteriorRing=function(){return this._shell},e.prototype.isEmpty=function(){return this._shell.isEmpty()},e.prototype.getInteriorRingN=function(t){return this._holes[t]},e.prototype.interfaces_=function(){return[Jt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x307ffefd8dc97200},Object.defineProperties(e,n),e}(ht),te=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return ht.SORTINDEX_MULTIPOINT},e.prototype.isValid=function(){return!0},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getCoordinate=function(){if(1===arguments.length){var e=arguments[0];return this._geometries[e].getCoordinate()}return t.prototype.getCoordinate.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return zt.FALSE},e.prototype.getDimension=function(){return 0},e.prototype.getBoundary=function(){return this.getFactory().createGeometryCollection(null)},e.prototype.getGeometryType=function(){return"MultiPoint"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[Xt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x6fb1ed4162e0fc00},Object.defineProperties(e,n),e}(qt),ee=function(t){function e(e,n){e instanceof S&&n instanceof ye&&(e=n.getCoordinateSequenceFactory().create(e)),t.call(this,e,n),this.validateConstruction()}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={MINIMUM_VALID_SIZE:{configurable:!0},serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return ht.SORTINDEX_LINEARRING},e.prototype.getBoundaryDimension=function(){return zt.FALSE},e.prototype.isClosed=function(){return!!this.isEmpty()||t.prototype.isClosed.call(this)},e.prototype.reverse=function(){var t=this._points.copy();return Yt.reverse(t),this.getFactory().createLinearRing(t)},e.prototype.validateConstruction=function(){if(!this.isEmpty()&&!t.prototype.isClosed.call(this))throw new _("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<e.MINIMUM_VALID_SIZE)throw new _("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},e.prototype.getGeometryType=function(){return"LinearRing"},e.prototype.copy=function(){return new e(this._points.copy(),this._factory)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.MINIMUM_VALID_SIZE.get=function(){return 4},n.serialVersionUID.get=function(){return-0x3b229e262367a600},Object.defineProperties(e,n),e}(Wt),ne=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={serialVersionUID:{configurable:!0}};return e.prototype.getSortIndex=function(){return ht.SORTINDEX_MULTIPOLYGON},e.prototype.equalsExact=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return!!this.isEquivalentClass(e)&&t.prototype.equalsExact.call(this,e,n)}return t.prototype.equalsExact.apply(this,arguments)},e.prototype.getBoundaryDimension=function(){return 1},e.prototype.getDimension=function(){return 2},e.prototype.reverse=function(){for(var t=this._geometries.length,e=new Array(t).fill(null),n=0;n<this._geometries.length;n++)e[n]=this._geometries[n].reverse();return this.getFactory().createMultiPolygon(e)},e.prototype.getBoundary=function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var t=new Mt,e=0;e<this._geometries.length;e++)for(var n=this._geometries[e].getBoundary(),i=0;i<n.getNumGeometries();i++)t.add(n.getGeometryN(i));var r=new Array(t.size()).fill(null);return this.getFactory().createMultiLineString(t.toArray(r))},e.prototype.getGeometryType=function(){return"MultiPolygon"},e.prototype.copy=function(){for(var t=new Array(this._geometries.length).fill(null),n=0;n<t.length;n++)t[n]=this._geometries[n].copy();return new e(t,this._factory)},e.prototype.interfaces_=function(){return[Jt]},e.prototype.getClass=function(){return e},n.serialVersionUID.get=function(){return-0x7a5aa1369171980},Object.defineProperties(e,n),e}(qt),ie=function(t){this._factory=t||null,this._isUserDataCopied=!1},re={NoOpGeometryOperation:{configurable:!0},CoordinateOperation:{configurable:!0},CoordinateSequenceOperation:{configurable:!0}};ie.prototype.setCopyUserData=function(t){this._isUserDataCopied=t},ie.prototype.edit=function(t,e){if(null===t)return null;var n=this.editInternal(t,e);return this._isUserDataCopied&&n.setUserData(t.getUserData()),n},ie.prototype.editInternal=function(t,e){return null===this._factory&&(this._factory=t.getFactory()),t instanceof qt?this.editGeometryCollection(t,e):t instanceof Qt?this.editPolygon(t,e):t instanceof Kt?e.edit(t,this._factory):t instanceof Wt?e.edit(t,this._factory):(et.shouldNeverReachHere("Unsupported Geometry class: "+t.getClass().getName()),null)},ie.prototype.editGeometryCollection=function(t,e){for(var n=e.edit(t,this._factory),i=new Mt,r=0;r<n.getNumGeometries();r++){var o=this.edit(n.getGeometryN(r),e);null===o||o.isEmpty()||i.add(o)}return n.getClass()===te?this._factory.createMultiPoint(i.toArray([])):n.getClass()===Ut?this._factory.createMultiLineString(i.toArray([])):n.getClass()===ne?this._factory.createMultiPolygon(i.toArray([])):this._factory.createGeometryCollection(i.toArray([]))},ie.prototype.editPolygon=function(t,e){var n=e.edit(t,this._factory);if(null===n&&(n=this._factory.createPolygon(null)),n.isEmpty())return n;var i=this.edit(n.getExteriorRing(),e);if(null===i||i.isEmpty())return this._factory.createPolygon();for(var r=new Mt,o=0;o<n.getNumInteriorRing();o++){var s=this.edit(n.getInteriorRingN(o),e);null===s||s.isEmpty()||r.add(s)}return this._factory.createPolygon(i,r.toArray([]))},ie.prototype.interfaces_=function(){return[]},ie.prototype.getClass=function(){return ie},ie.GeometryEditorOperation=function(){},re.NoOpGeometryOperation.get=function(){return oe},re.CoordinateOperation.get=function(){return se},re.CoordinateSequenceOperation.get=function(){return ae},Object.defineProperties(ie,re);var oe=function(){};oe.prototype.edit=function(t,e){return t},oe.prototype.interfaces_=function(){return[ie.GeometryEditorOperation]},oe.prototype.getClass=function(){return oe};var se=function(){};se.prototype.edit=function(t,e){var n=this.editCoordinates(t.getCoordinates(),t);return null===n?t:t instanceof ee?e.createLinearRing(n):t instanceof Wt?e.createLineString(n):t instanceof Kt?n.length>0?e.createPoint(n[0]):e.createPoint():t},se.prototype.interfaces_=function(){return[ie.GeometryEditorOperation]},se.prototype.getClass=function(){return se};var ae=function(){};ae.prototype.edit=function(t,e){return t instanceof ee?e.createLinearRing(this.edit(t.getCoordinateSequence(),t)):t instanceof Wt?e.createLineString(this.edit(t.getCoordinateSequence(),t)):t instanceof Kt?e.createPoint(this.edit(t.getCoordinateSequence(),t)):t},ae.prototype.interfaces_=function(){return[ie.GeometryEditorOperation]},ae.prototype.getClass=function(){return ae};var ue=function(){if(this._dimension=3,this._coordinates=null,1===arguments.length){if(arguments[0]instanceof Array)this._coordinates=arguments[0],this._dimension=3;else if(Number.isInteger(arguments[0])){var t=arguments[0];this._coordinates=new Array(t).fill(null);for(var e=0;e<t;e++)this._coordinates[e]=new S}else if(T(arguments[0],B)){var n=arguments[0];if(null===n)return this._coordinates=new Array(0).fill(null),null;this._dimension=n.getDimension(),this._coordinates=new Array(n.size()).fill(null);for(var i=0;i<this._coordinates.length;i++)this._coordinates[i]=n.getCoordinateCopy(i)}}else if(2===arguments.length)if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var r=arguments[0],o=arguments[1];this._coordinates=r,this._dimension=o,null===r&&(this._coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var s=arguments[0],a=arguments[1];this._coordinates=new Array(s).fill(null),this._dimension=a;for(var u=0;u<s;u++)this._coordinates[u]=new S}},ce={serialVersionUID:{configurable:!0}};ue.prototype.setOrdinate=function(t,e,n){switch(e){case B.X:this._coordinates[t].x=n;break;case B.Y:this._coordinates[t].y=n;break;case B.Z:this._coordinates[t].z=n;break;default:throw new _("invalid ordinateIndex")}},ue.prototype.size=function(){return this._coordinates.length},ue.prototype.getOrdinate=function(t,e){switch(e){case B.X:return this._coordinates[t].x;case B.Y:return this._coordinates[t].y;case B.Z:return this._coordinates[t].z}return v.NaN},ue.prototype.getCoordinate=function(){if(1===arguments.length){var t=arguments[0];return this._coordinates[t]}if(2===arguments.length){var e=arguments[0],n=arguments[1];n.x=this._coordinates[e].x,n.y=this._coordinates[e].y,n.z=this._coordinates[e].z}},ue.prototype.getCoordinateCopy=function(t){return new S(this._coordinates[t])},ue.prototype.getDimension=function(){return this._dimension},ue.prototype.getX=function(t){return this._coordinates[t].x},ue.prototype.clone=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].clone();return new ue(t,this._dimension)},ue.prototype.expandEnvelope=function(t){for(var e=0;e<this._coordinates.length;e++)t.expandToInclude(this._coordinates[e]);return t},ue.prototype.copy=function(){for(var t=new Array(this.size()).fill(null),e=0;e<this._coordinates.length;e++)t[e]=this._coordinates[e].copy();return new ue(t,this._dimension)},ue.prototype.toString=function(){if(this._coordinates.length>0){var t=new A(17*this._coordinates.length);t.append("("),t.append(this._coordinates[0]);for(var e=1;e<this._coordinates.length;e++)t.append(", "),t.append(this._coordinates[e]);return t.append(")"),t.toString()}return"()"},ue.prototype.getY=function(t){return this._coordinates[t].y},ue.prototype.toCoordinateArray=function(){return this._coordinates},ue.prototype.interfaces_=function(){return[B,e]},ue.prototype.getClass=function(){return ue},ce.serialVersionUID.get=function(){return-0xcb44a778db18e00},Object.defineProperties(ue,ce);var he=function(){},le={serialVersionUID:{configurable:!0},instanceObject:{configurable:!0}};he.prototype.readResolve=function(){return he.instance()},he.prototype.create=function(){if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return new ue(t)}if(T(arguments[0],B)){var e=arguments[0];return new ue(e)}}else if(2===arguments.length){var n=arguments[0],i=arguments[1];return i>3&&(i=3),i<2?new ue(n):new ue(n,i)}},he.prototype.interfaces_=function(){return[I,e]},he.prototype.getClass=function(){return he},he.instance=function(){return he.instanceObject},le.serialVersionUID.get=function(){return-0x38e49fa6cf6f2e00},le.instanceObject.get=function(){return new he},Object.defineProperties(he,le);var fe=function(t){function e(){t.call(this),this.map_=new Map}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return this.map_.get(t)||null},e.prototype.put=function(t,e){return this.map_.set(t,e),e},e.prototype.values=function(){for(var t=new Mt,e=this.map_.values(),n=e.next();!n.done;)t.add(n.value),n=e.next();return t},e.prototype.entrySet=function(){var t=new Nt;return this.map_.entries().forEach(function(e){return t.add(e)}),t},e.prototype.size=function(){return this.map_.size()},e}(Tt),pe=function t(){if(this._modelType=null,this._scale=null,0===arguments.length)this._modelType=t.FLOATING;else if(1===arguments.length)if(arguments[0]instanceof ge){var e=arguments[0];this._modelType=e,e===t.FIXED&&this.setScale(1)}else if("number"==typeof arguments[0]){var n=arguments[0];this._modelType=t.FIXED,this.setScale(n)}else if(arguments[0]instanceof t){var i=arguments[0];this._modelType=i._modelType,this._scale=i._scale}},de={serialVersionUID:{configurable:!0},maximumPreciseValue:{configurable:!0}};pe.prototype.equals=function(t){if(!(t instanceof pe))return!1;var e=t;return this._modelType===e._modelType&&this._scale===e._scale},pe.prototype.compareTo=function(t){var e=t,n=this.getMaximumSignificantDigits(),i=e.getMaximumSignificantDigits();return new R(n).compareTo(new R(i))},pe.prototype.getScale=function(){return this._scale},pe.prototype.isFloating=function(){return this._modelType===pe.FLOATING||this._modelType===pe.FLOATING_SINGLE},pe.prototype.getType=function(){return this._modelType},pe.prototype.toString=function(){var t="UNKNOWN";return this._modelType===pe.FLOATING?t="Floating":this._modelType===pe.FLOATING_SINGLE?t="Floating-Single":this._modelType===pe.FIXED&&(t="Fixed (Scale="+this.getScale()+")"),t},pe.prototype.makePrecise=function(){if("number"==typeof arguments[0]){var t=arguments[0];return v.isNaN(t)?t:this._modelType===pe.FLOATING_SINGLE?t:this._modelType===pe.FIXED?Math.round(t*this._scale)/this._scale:t}if(arguments[0]instanceof S){var e=arguments[0];if(this._modelType===pe.FLOATING)return null;e.x=this.makePrecise(e.x),e.y=this.makePrecise(e.y)}},pe.prototype.getMaximumSignificantDigits=function(){var t=16;return this._modelType===pe.FLOATING?t=16:this._modelType===pe.FLOATING_SINGLE?t=6:this._modelType===pe.FIXED&&(t=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),t},pe.prototype.setScale=function(t){this._scale=Math.abs(t)},pe.prototype.interfaces_=function(){return[e,x]},pe.prototype.getClass=function(){return pe},pe.mostPrecise=function(t,e){return t.compareTo(e)>=0?t:e},de.serialVersionUID.get=function(){return 0x6bee6404e9a25c00},de.maximumPreciseValue.get=function(){return 9007199254740992},Object.defineProperties(pe,de);var ge=function t(e){this._name=e||null,t.nameToTypeMap.put(e,this)},me={serialVersionUID:{configurable:!0},nameToTypeMap:{configurable:!0}};ge.prototype.readResolve=function(){return ge.nameToTypeMap.get(this._name)},ge.prototype.toString=function(){return this._name},ge.prototype.interfaces_=function(){return[e]},ge.prototype.getClass=function(){return ge},me.serialVersionUID.get=function(){return-552860263173159e4},me.nameToTypeMap.get=function(){return new fe},Object.defineProperties(ge,me),pe.Type=ge,pe.FIXED=new ge("FIXED"),pe.FLOATING=new ge("FLOATING"),pe.FLOATING_SINGLE=new ge("FLOATING SINGLE");var ye=function t(){this._precisionModel=new pe,this._SRID=0,this._coordinateSequenceFactory=t.getDefaultCoordinateSequenceFactory(),0===arguments.length||(1===arguments.length?T(arguments[0],I)?this._coordinateSequenceFactory=arguments[0]:arguments[0]instanceof pe&&(this._precisionModel=arguments[0]):2===arguments.length?(this._precisionModel=arguments[0],this._SRID=arguments[1]):3===arguments.length&&(this._precisionModel=arguments[0],this._SRID=arguments[1],this._coordinateSequenceFactory=arguments[2]))},_e={serialVersionUID:{configurable:!0}};ye.prototype.toGeometry=function(t){return t.isNull()?this.createPoint(null):t.getMinX()===t.getMaxX()&&t.getMinY()===t.getMaxY()?this.createPoint(new S(t.getMinX(),t.getMinY())):t.getMinX()===t.getMaxX()||t.getMinY()===t.getMaxY()?this.createLineString([new S(t.getMinX(),t.getMinY()),new S(t.getMaxX(),t.getMaxY())]):this.createPolygon(this.createLinearRing([new S(t.getMinX(),t.getMinY()),new S(t.getMinX(),t.getMaxY()),new S(t.getMaxX(),t.getMaxY()),new S(t.getMaxX(),t.getMinY()),new S(t.getMinX(),t.getMinY())]),null)},ye.prototype.createLineString=function(t){return t?t instanceof Array?new Wt(this.getCoordinateSequenceFactory().create(t),this):T(t,B)?new Wt(t,this):void 0:new Wt(this.getCoordinateSequenceFactory().create([]),this)},ye.prototype.createMultiLineString=function(){if(0===arguments.length)return new Ut(null,this);if(1===arguments.length){var t=arguments[0];return new Ut(t,this)}},ye.prototype.buildGeometry=function(t){for(var e=null,n=!1,i=!1,r=t.iterator();r.hasNext();){var o=r.next(),s=o.getClass();null===e&&(e=s),s!==e&&(n=!0),o.isGeometryCollectionOrDerived()&&(i=!0)}if(null===e)return this.createGeometryCollection();if(n||i)return this.createGeometryCollection(ye.toGeometryArray(t));var a=t.iterator().next();if(t.size()>1){if(a instanceof Qt)return this.createMultiPolygon(ye.toPolygonArray(t));if(a instanceof Wt)return this.createMultiLineString(ye.toLineStringArray(t));if(a instanceof Kt)return this.createMultiPoint(ye.toPointArray(t));et.shouldNeverReachHere("Unhandled class: "+a.getClass().getName())}return a},ye.prototype.createMultiPointFromCoords=function(t){return this.createMultiPoint(null!==t?this.getCoordinateSequenceFactory().create(t):null)},ye.prototype.createPoint=function(){if(0===arguments.length)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof S){var t=arguments[0];return this.createPoint(null!==t?this.getCoordinateSequenceFactory().create([t]):null)}if(T(arguments[0],B)){var e=arguments[0];return new Kt(e,this)}}},ye.prototype.getCoordinateSequenceFactory=function(){return this._coordinateSequenceFactory},ye.prototype.createPolygon=function(){if(0===arguments.length)return new Qt(null,null,this);if(1===arguments.length){if(T(arguments[0],B)){var t=arguments[0];return this.createPolygon(this.createLinearRing(t))}if(arguments[0]instanceof Array){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof ee){var n=arguments[0];return this.createPolygon(n,null)}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];return new Qt(i,r,this)}},ye.prototype.getSRID=function(){return this._SRID},ye.prototype.createGeometryCollection=function(){if(0===arguments.length)return new qt(null,this);if(1===arguments.length){var t=arguments[0];return new qt(t,this)}},ye.prototype.createGeometry=function(t){return new ie(this).edit(t,{edit:function(){if(2===arguments.length){var t=arguments[0];return this._coordinateSequenceFactory.create(t)}}})},ye.prototype.getPrecisionModel=function(){return this._precisionModel},ye.prototype.createLinearRing=function(){if(0===arguments.length)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return this.createLinearRing(null!==t?this.getCoordinateSequenceFactory().create(t):null)}if(T(arguments[0],B)){var e=arguments[0];return new ee(e,this)}}},ye.prototype.createMultiPolygon=function(){if(0===arguments.length)return new ne(null,this);if(1===arguments.length){var t=arguments[0];return new ne(t,this)}},ye.prototype.createMultiPoint=function(){if(0===arguments.length)return new te(null,this);if(1===arguments.length){if(arguments[0]instanceof Array){var t=arguments[0];return new te(t,this)}if(arguments[0]instanceof Array){var e=arguments[0];return this.createMultiPoint(null!==e?this.getCoordinateSequenceFactory().create(e):null)}if(T(arguments[0],B)){var n=arguments[0];if(null===n)return this.createMultiPoint(new Array(0).fill(null));for(var i=new Array(n.size()).fill(null),r=0;r<n.size();r++){var o=this.getCoordinateSequenceFactory().create(1,n.getDimension());Yt.copy(n,r,o,0,1),i[r]=this.createPoint(o)}return this.createMultiPoint(i)}}},ye.prototype.interfaces_=function(){return[e]},ye.prototype.getClass=function(){return ye},ye.toMultiPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ye.toGeometryArray=function(t){if(null===t)return null;var e=new Array(t.size()).fill(null);return t.toArray(e)},ye.getDefaultCoordinateSequenceFactory=function(){return he.instance()},ye.toMultiLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ye.toLineStringArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ye.toMultiPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ye.toLinearRingArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ye.toPointArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ye.toPolygonArray=function(t){var e=new Array(t.size()).fill(null);return t.toArray(e)},ye.createPointFromInternalCoord=function(t,e){return e.getPrecisionModel().makePrecise(t),e.getFactory().createPoint(t)},_e.serialVersionUID.get=function(){return-0x5ea75f2051eeb400},Object.defineProperties(ye,_e);var ve=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],be=function(t){this.geometryFactory=t||new ye};be.prototype.read=function(t){var e,n=(e="string"==typeof t?JSON.parse(t):t).type;if(!xe[n])throw new Error("Unknown GeoJSON type: "+e.type);return-1!==ve.indexOf(n)?xe[n].apply(this,[e.coordinates]):"GeometryCollection"===n?xe[n].apply(this,[e.geometries]):xe[n].apply(this,[e])},be.prototype.write=function(t){var e=t.getGeometryType();if(!we[e])throw new Error("Geometry is not supported");return we[e].apply(this,[t])};var xe={Feature:function(t){var e={};for(var n in t)e[n]=t[n];if(t.geometry){var i=t.geometry.type;if(!xe[i])throw new Error("Unknown GeoJSON type: "+t.type);e.geometry=this.read(t.geometry)}return t.bbox&&(e.bbox=xe.bbox.apply(this,[t.bbox])),e},FeatureCollection:function(t){var e={};if(t.features){e.features=[];for(var n=0;n<t.features.length;++n)e.features.push(this.read(t.features[n]))}return t.bbox&&(e.bbox=this.parse.bbox.apply(this,[t.bbox])),e},coordinates:function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n];e.push(new S(i[0],i[1]))}return e},bbox:function(t){return this.geometryFactory.createLinearRing([new S(t[0],t[1]),new S(t[2],t[1]),new S(t[2],t[3]),new S(t[0],t[3]),new S(t[0],t[1])])},Point:function(t){var e=new S(t[0],t[1]);return this.geometryFactory.createPoint(e)},MultiPoint:function(t){for(var e=[],n=0;n<t.length;++n)e.push(xe.Point.apply(this,[t[n]]));return this.geometryFactory.createMultiPoint(e)},LineString:function(t){var e=xe.coordinates.apply(this,[t]);return this.geometryFactory.createLineString(e)},MultiLineString:function(t){for(var e=[],n=0;n<t.length;++n)e.push(xe.LineString.apply(this,[t[n]]));return this.geometryFactory.createMultiLineString(e)},Polygon:function(t){for(var e=xe.coordinates.apply(this,[t[0]]),n=this.geometryFactory.createLinearRing(e),i=[],r=1;r<t.length;++r){var o=t[r],s=xe.coordinates.apply(this,[o]),a=this.geometryFactory.createLinearRing(s);i.push(a)}return this.geometryFactory.createPolygon(n,i)},MultiPolygon:function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n];e.push(xe.Polygon.apply(this,[i]))}return this.geometryFactory.createMultiPolygon(e)},GeometryCollection:function(t){for(var e=[],n=0;n<t.length;++n){var i=t[n];e.push(this.read(i))}return this.geometryFactory.createGeometryCollection(e)}},we={coordinate:function(t){return[t.x,t.y]},Point:function(t){return{type:"Point",coordinates:we.coordinate.apply(this,[t.getCoordinate()])}},MultiPoint:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=we.Point.apply(this,[i]);e.push(r.coordinates)}return{type:"MultiPoint",coordinates:e}},LineString:function(t){for(var e=[],n=t.getCoordinates(),i=0;i<n.length;++i){var r=n[i];e.push(we.coordinate.apply(this,[r]))}return{type:"LineString",coordinates:e}},MultiLineString:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=we.LineString.apply(this,[i]);e.push(r.coordinates)}return{type:"MultiLineString",coordinates:e}},Polygon:function(t){var e=[],n=we.LineString.apply(this,[t._shell]);e.push(n.coordinates);for(var i=0;i<t._holes.length;++i){var r=t._holes[i],o=we.LineString.apply(this,[r]);e.push(o.coordinates)}return{type:"Polygon",coordinates:e}},MultiPolygon:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=we.Polygon.apply(this,[i]);e.push(r.coordinates)}return{type:"MultiPolygon",coordinates:e}},GeometryCollection:function(t){for(var e=[],n=0;n<t._geometries.length;++n){var i=t._geometries[n],r=i.getGeometryType();e.push(we[r].apply(this,[i]))}return{type:"GeometryCollection",geometries:e}}},Me=function(t){this.geometryFactory=t||new ye,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new be(this.geometryFactory)};Me.prototype.read=function(t){var e=this.parser.read(t);return this.precisionModel.getType()===pe.FIXED&&this.reducePrecision(e),e},Me.prototype.reducePrecision=function(t){var e,n;if(t.coordinate)this.precisionModel.makePrecise(t.coordinate);else if(t.points)for(e=0,n=t.points.length;e<n;e++)this.precisionModel.makePrecise(t.points[e]);else if(t.geometries)for(e=0,n=t.geometries.length;e<n;e++)this.reducePrecision(t.geometries[e])};var Se=function(){this.parser=new be(this.geometryFactory)};Se.prototype.write=function(t){return this.parser.write(t)};var Ee=function(){},Ce={ON:{configurable:!0},LEFT:{configurable:!0},RIGHT:{configurable:!0}};Ee.prototype.interfaces_=function(){return[]},Ee.prototype.getClass=function(){return Ee},Ee.opposite=function(t){return t===Ee.LEFT?Ee.RIGHT:t===Ee.RIGHT?Ee.LEFT:t},Ce.ON.get=function(){return 0},Ce.LEFT.get=function(){return 1},Ce.RIGHT.get=function(){return 2},Object.defineProperties(Ee,Ce),(g.prototype=new Error).name="EmptyStackException",(m.prototype=new wt).add=function(t){return this.array_.push(t),!0},m.prototype.get=function(t){if(t<0||t>=this.size())throw new Error;return this.array_[t]},m.prototype.push=function(t){return this.array_.push(t),t},m.prototype.pop=function(t){if(0===this.array_.length)throw new g;return this.array_.pop()},m.prototype.peek=function(){if(0===this.array_.length)throw new g;return this.array_[this.array_.length-1]},m.prototype.empty=function(){return 0===this.array_.length},m.prototype.isEmpty=function(){return this.empty()},m.prototype.search=function(t){return this.array_.indexOf(t)},m.prototype.size=function(){return this.array_.length},m.prototype.toArray=function(){for(var t=[],e=0,n=this.array_.length;e<n;e++)t.push(this.array_[e]);return t};var Ie=function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null};Ie.prototype.getCoordinate=function(){return this._minCoord},Ie.prototype.getRightmostSide=function(t,e){var n=this.getRightmostSideOfSegment(t,e);return n<0&&(n=this.getRightmostSideOfSegment(t,e-1)),n<0&&(this._minCoord=null,this.checkForRightmostCoordinate(t)),n},Ie.prototype.findRightmostEdgeAtVertex=function(){var t=this._minDe.getEdge().getCoordinates();et.isTrue(this._minIndex>0&&this._minIndex<t.length,"rightmost point expected to be interior vertex of edge");var e=t[this._minIndex-1],n=t[this._minIndex+1],i=at.computeOrientation(this._minCoord,n,e),r=!1;e.y<this._minCoord.y&&n.y<this._minCoord.y&&i===at.COUNTERCLOCKWISE?r=!0:e.y>this._minCoord.y&&n.y>this._minCoord.y&&i===at.CLOCKWISE&&(r=!0),r&&(this._minIndex=this._minIndex-1)},Ie.prototype.getRightmostSideOfSegment=function(t,e){var n=t.getEdge().getCoordinates();if(e<0||e+1>=n.length)return-1;if(n[e].y===n[e+1].y)return-1;var i=Ee.LEFT;return n[e].y<n[e+1].y&&(i=Ee.RIGHT),i},Ie.prototype.getEdge=function(){return this._orientedDe},Ie.prototype.checkForRightmostCoordinate=function(t){for(var e=t.getEdge().getCoordinates(),n=0;n<e.length-1;n++)(null===this._minCoord||e[n].x>this._minCoord.x)&&(this._minDe=t,this._minIndex=n,this._minCoord=e[n])},Ie.prototype.findRightmostEdgeAtNode=function(){var t=this._minDe.getNode().getEdges();this._minDe=t.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)},Ie.prototype.findEdge=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();n.isForward()&&this.checkForRightmostCoordinate(n)}et.isTrue(0!==this._minIndex||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),0===this._minIndex?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===Ee.LEFT&&(this._orientedDe=this._minDe.getSym())},Ie.prototype.interfaces_=function(){return[]},Ie.prototype.getClass=function(){return Ie};var Le=function(t){function e(n,i){t.call(this,e.msgWithCoord(n,i)),this.pt=i?new S(i):null,this.name="TopologyException"}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCoordinate=function(){return this.pt},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.msgWithCoord=function(t,e){return e?t:t+" [ "+e+" ]"},e}(Q),Oe=function(){this.array_=[]};Oe.prototype.addLast=function(t){this.array_.push(t)},Oe.prototype.removeFirst=function(){return this.array_.shift()},Oe.prototype.isEmpty=function(){return 0===this.array_.length};var Te=function(){this._finder=null,this._dirEdgeList=new Mt,this._nodes=new Mt,this._rightMostCoord=null,this._env=null,this._finder=new Ie};Te.prototype.clearVisitedEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();)t.next().setVisited(!1)},Te.prototype.getRightmostCoordinate=function(){return this._rightMostCoord},Te.prototype.computeNodeDepth=function(t){for(var e=null,n=t.getEdges().iterator();n.hasNext();){var i=n.next();if(i.isVisited()||i.getSym().isVisited()){e=i;break}}if(null===e)throw new Le("unable to find edge to compute depths at "+t.getCoordinate());t.getEdges().computeDepths(e);for(var r=t.getEdges().iterator();r.hasNext();){var o=r.next();o.setVisited(!0),this.copySymDepths(o)}},Te.prototype.computeDepth=function(t){this.clearVisitedEdges();var e=this._finder.getEdge();e.setEdgeDepths(Ee.RIGHT,t),this.copySymDepths(e),this.computeDepths(e)},Te.prototype.create=function(t){this.addReachable(t),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()},Te.prototype.findResultEdges=function(){for(var t=this._dirEdgeList.iterator();t.hasNext();){var e=t.next();e.getDepth(Ee.RIGHT)>=1&&e.getDepth(Ee.LEFT)<=0&&!e.isInteriorAreaEdge()&&e.setInResult(!0)}},Te.prototype.computeDepths=function(t){var e=new Nt,n=new Oe,i=t.getNode();for(n.addLast(i),e.add(i),t.setVisited(!0);!n.isEmpty();){var r=n.removeFirst();e.add(r),this.computeNodeDepth(r);for(var o=r.getEdges().iterator();o.hasNext();){var s=o.next().getSym();if(!s.isVisited()){var a=s.getNode();e.contains(a)||(n.addLast(a),e.add(a))}}}},Te.prototype.compareTo=function(t){var e=t;return this._rightMostCoord.x<e._rightMostCoord.x?-1:this._rightMostCoord.x>e._rightMostCoord.x?1:0},Te.prototype.getEnvelope=function(){if(null===this._env){for(var t=new H,e=this._dirEdgeList.iterator();e.hasNext();)for(var n=e.next().getEdge().getCoordinates(),i=0;i<n.length-1;i++)t.expandToInclude(n[i]);this._env=t}return this._env},Te.prototype.addReachable=function(t){var e=new m;for(e.add(t);!e.empty();){var n=e.pop();this.add(n,e)}},Te.prototype.copySymDepths=function(t){var e=t.getSym();e.setDepth(Ee.LEFT,t.getDepth(Ee.RIGHT)),e.setDepth(Ee.RIGHT,t.getDepth(Ee.LEFT))},Te.prototype.add=function(t,e){t.setVisited(!0),this._nodes.add(t);for(var n=t.getEdges().iterator();n.hasNext();){var i=n.next();this._dirEdgeList.add(i);var r=i.getSym().getNode();r.isVisited()||e.push(r)}},Te.prototype.getNodes=function(){return this._nodes},Te.prototype.getDirectedEdges=function(){return this._dirEdgeList},Te.prototype.interfaces_=function(){return[x]},Te.prototype.getClass=function(){return Te};var Pe=function t(){if(this.location=null,1===arguments.length){if(arguments[0]instanceof Array){var e=arguments[0];this.init(e.length)}else if(Number.isInteger(arguments[0])){var n=arguments[0];this.init(1),this.location[Ee.ON]=n}else if(arguments[0]instanceof t){var i=arguments[0];if(this.init(i.location.length),null!==i)for(var r=0;r<this.location.length;r++)this.location[r]=i.location[r]}}else if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];this.init(3),this.location[Ee.ON]=o,this.location[Ee.LEFT]=s,this.location[Ee.RIGHT]=a}};Pe.prototype.setAllLocations=function(t){for(var e=0;e<this.location.length;e++)this.location[e]=t},Pe.prototype.isNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]!==L.NONE)return!1;return!0},Pe.prototype.setAllLocationsIfNull=function(t){for(var e=0;e<this.location.length;e++)this.location[e]===L.NONE&&(this.location[e]=t)},Pe.prototype.isLine=function(){return 1===this.location.length},Pe.prototype.merge=function(t){if(t.location.length>this.location.length){var e=new Array(3).fill(null);e[Ee.ON]=this.location[Ee.ON],e[Ee.LEFT]=L.NONE,e[Ee.RIGHT]=L.NONE,this.location=e}for(var n=0;n<this.location.length;n++)this.location[n]===L.NONE&&n<t.location.length&&(this.location[n]=t.location[n])},Pe.prototype.getLocations=function(){return this.location},Pe.prototype.flip=function(){if(this.location.length<=1)return null;var t=this.location[Ee.LEFT];this.location[Ee.LEFT]=this.location[Ee.RIGHT],this.location[Ee.RIGHT]=t},Pe.prototype.toString=function(){var t=new A;return this.location.length>1&&t.append(L.toLocationSymbol(this.location[Ee.LEFT])),t.append(L.toLocationSymbol(this.location[Ee.ON])),this.location.length>1&&t.append(L.toLocationSymbol(this.location[Ee.RIGHT])),t.toString()},Pe.prototype.setLocations=function(t,e,n){this.location[Ee.ON]=t,this.location[Ee.LEFT]=e,this.location[Ee.RIGHT]=n},Pe.prototype.get=function(t){return t<this.location.length?this.location[t]:L.NONE},Pe.prototype.isArea=function(){return this.location.length>1},Pe.prototype.isAnyNull=function(){for(var t=0;t<this.location.length;t++)if(this.location[t]===L.NONE)return!0;return!1},Pe.prototype.setLocation=function(){if(1===arguments.length){var t=arguments[0];this.setLocation(Ee.ON,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.location[e]=n}},Pe.prototype.init=function(t){this.location=new Array(t).fill(null),this.setAllLocations(L.NONE)},Pe.prototype.isEqualOnSide=function(t,e){return this.location[e]===t.location[e]},Pe.prototype.allPositionsEqual=function(t){for(var e=0;e<this.location.length;e++)if(this.location[e]!==t)return!1;return!0},Pe.prototype.interfaces_=function(){return[]},Pe.prototype.getClass=function(){return Pe};var Ne=function t(){if(this.elt=new Array(2).fill(null),1===arguments.length){if(Number.isInteger(arguments[0])){var e=arguments[0];this.elt[0]=new Pe(e),this.elt[1]=new Pe(e)}else if(arguments[0]instanceof t){var n=arguments[0];this.elt[0]=new Pe(n.elt[0]),this.elt[1]=new Pe(n.elt[1])}}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.elt[0]=new Pe(L.NONE),this.elt[1]=new Pe(L.NONE),this.elt[i].setLocation(r)}else if(3===arguments.length){var o=arguments[0],s=arguments[1],a=arguments[2];this.elt[0]=new Pe(o,s,a),this.elt[1]=new Pe(o,s,a)}else if(4===arguments.length){var u=arguments[0],c=arguments[1],h=arguments[2],l=arguments[3];this.elt[0]=new Pe(L.NONE,L.NONE,L.NONE),this.elt[1]=new Pe(L.NONE,L.NONE,L.NONE),this.elt[u].setLocations(c,h,l)}};Ne.prototype.getGeometryCount=function(){var t=0;return this.elt[0].isNull()||t++,this.elt[1].isNull()||t++,t},Ne.prototype.setAllLocations=function(t,e){this.elt[t].setAllLocations(e)},Ne.prototype.isNull=function(t){return this.elt[t].isNull()},Ne.prototype.setAllLocationsIfNull=function(){if(1===arguments.length){var t=arguments[0];this.setAllLocationsIfNull(0,t),this.setAllLocationsIfNull(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.elt[e].setAllLocationsIfNull(n)}},Ne.prototype.isLine=function(t){return this.elt[t].isLine()},Ne.prototype.merge=function(t){for(var e=0;e<2;e++)null===this.elt[e]&&null!==t.elt[e]?this.elt[e]=new Pe(t.elt[e]):this.elt[e].merge(t.elt[e])},Ne.prototype.flip=function(){this.elt[0].flip(),this.elt[1].flip()},Ne.prototype.getLocation=function(){if(1===arguments.length){var t=arguments[0];return this.elt[t].get(Ee.ON)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return this.elt[e].get(n)}},Ne.prototype.toString=function(){var t=new A;return null!==this.elt[0]&&(t.append("A:"),t.append(this.elt[0].toString())),null!==this.elt[1]&&(t.append(" B:"),t.append(this.elt[1].toString())),t.toString()},Ne.prototype.isArea=function(){if(0===arguments.length)return this.elt[0].isArea()||this.elt[1].isArea();if(1===arguments.length){var t=arguments[0];return this.elt[t].isArea()}},Ne.prototype.isAnyNull=function(t){return this.elt[t].isAnyNull()},Ne.prototype.setLocation=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.elt[t].setLocation(Ee.ON,e)}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this.elt[n].setLocation(i,r)}},Ne.prototype.isEqualOnSide=function(t,e){return this.elt[0].isEqualOnSide(t.elt[0],e)&&this.elt[1].isEqualOnSide(t.elt[1],e)},Ne.prototype.allPositionsEqual=function(t,e){return this.elt[t].allPositionsEqual(e)},Ne.prototype.toLine=function(t){this.elt[t].isArea()&&(this.elt[t]=new Pe(this.elt[t].location[0]))},Ne.prototype.interfaces_=function(){return[]},Ne.prototype.getClass=function(){return Ne},Ne.toLineLabel=function(t){for(var e=new Ne(L.NONE),n=0;n<2;n++)e.setLocation(n,t.getLocation(n));return e};var Ae=function(){this._startDe=null,this._maxNodeDegree=-1,this._edges=new Mt,this._pts=new Mt,this._label=new Ne(L.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new Mt,this._geometryFactory=null;var t=arguments[0],e=arguments[1];this._geometryFactory=e,this.computePoints(t),this.computeRing()};Ae.prototype.computeRing=function(){if(null!==this._ring)return null;for(var t=new Array(this._pts.size()).fill(null),e=0;e<this._pts.size();e++)t[e]=this._pts.get(e);this._ring=this._geometryFactory.createLinearRing(t),this._isHole=at.isCCW(this._ring.getCoordinates())},Ae.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},Ae.prototype.computePoints=function(t){this._startDe=t;var e=t,n=!0;do{if(null===e)throw new Le("Found null DirectedEdge");if(e.getEdgeRing()===this)throw new Le("Directed Edge visited twice during ring-building at "+e.getCoordinate());this._edges.add(e);var i=e.getLabel();et.isTrue(i.isArea()),this.mergeLabel(i),this.addPoints(e.getEdge(),e.isForward(),n),n=!1,this.setEdgeRing(e,this),e=this.getNext(e)}while(e!==this._startDe)},Ae.prototype.getLinearRing=function(){return this._ring},Ae.prototype.getCoordinate=function(t){return this._pts.get(t)},Ae.prototype.computeMaxNodeDegree=function(){this._maxNodeDegree=0;var t=this._startDe;do{var e=t.getNode().getEdges().getOutgoingDegree(this);e>this._maxNodeDegree&&(this._maxNodeDegree=e),t=this.getNext(t)}while(t!==this._startDe);this._maxNodeDegree*=2},Ae.prototype.addPoints=function(t,e,n){var i=t.getCoordinates();if(e){var r=1;n&&(r=0);for(var o=r;o<i.length;o++)this._pts.add(i[o])}else{var s=i.length-2;n&&(s=i.length-1);for(var a=s;a>=0;a--)this._pts.add(i[a])}},Ae.prototype.isHole=function(){return this._isHole},Ae.prototype.setInResult=function(){var t=this._startDe;do{t.getEdge().setInResult(!0),t=t.getNext()}while(t!==this._startDe)},Ae.prototype.containsPoint=function(t){var e=this.getLinearRing();if(!e.getEnvelopeInternal().contains(t))return!1;if(!at.isPointInRing(t,e.getCoordinates()))return!1;for(var n=this._holes.iterator();n.hasNext();)if(n.next().containsPoint(t))return!1;return!0},Ae.prototype.addHole=function(t){this._holes.add(t)},Ae.prototype.isShell=function(){return null===this._shell},Ae.prototype.getLabel=function(){return this._label},Ae.prototype.getEdges=function(){return this._edges},Ae.prototype.getMaxNodeDegree=function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree},Ae.prototype.getShell=function(){return this._shell},Ae.prototype.mergeLabel=function(){if(1===arguments.length){var t=arguments[0];this.mergeLabel(t,0),this.mergeLabel(t,1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=e.getLocation(n,Ee.RIGHT);if(i===L.NONE)return null;if(this._label.getLocation(n)===L.NONE)return this._label.setLocation(n,i),null}},Ae.prototype.setShell=function(t){this._shell=t,null!==t&&t.addHole(this)},Ae.prototype.toPolygon=function(t){for(var e=new Array(this._holes.size()).fill(null),n=0;n<this._holes.size();n++)e[n]=this._holes.get(n).getLinearRing();return t.createPolygon(this.getLinearRing(),e)},Ae.prototype.interfaces_=function(){return[]},Ae.prototype.getClass=function(){return Ae};var Re=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setEdgeRing=function(t,e){t.setMinEdgeRing(e)},e.prototype.getNext=function(t){return t.getNextMin()},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ae),De=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildMinimalRings=function(){var t=new Mt,e=this._startDe;do{if(null===e.getMinEdgeRing()){var n=new Re(e,this._geometryFactory);t.add(n)}e=e.getNext()}while(e!==this._startDe);return t},e.prototype.setEdgeRing=function(t,e){t.setEdgeRing(e)},e.prototype.linkDirectedEdgesForMinimalEdgeRings=function(){var t=this._startDe;do{t.getNode().getEdges().linkMinimalDirectedEdges(this),t=t.getNext()}while(t!==this._startDe)},e.prototype.getNext=function(t){return t.getNext()},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ae),ke=function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._label=t}};ke.prototype.setVisited=function(t){this._isVisited=t},ke.prototype.setInResult=function(t){this._isInResult=t},ke.prototype.isCovered=function(){return this._isCovered},ke.prototype.isCoveredSet=function(){return this._isCoveredSet},ke.prototype.setLabel=function(t){this._label=t},ke.prototype.getLabel=function(){return this._label},ke.prototype.setCovered=function(t){this._isCovered=t,this._isCoveredSet=!0},ke.prototype.updateIM=function(t){et.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(t)},ke.prototype.isInResult=function(){return this._isInResult},ke.prototype.isVisited=function(){return this._isVisited},ke.prototype.interfaces_=function(){return[]},ke.prototype.getClass=function(){return ke};var Fe=function(t){function e(){t.call(this),this._coord=null,this._edges=null;var e=arguments[0],n=arguments[1];this._coord=e,this._edges=n,this._label=new Ne(0,L.NONE)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isIncidentEdgeInResult=function(){for(var t=this.getEdges().getEdges().iterator();t.hasNext();)if(t.next().getEdge().isInResult())return!0;return!1},e.prototype.isIsolated=function(){return 1===this._label.getGeometryCount()},e.prototype.getCoordinate=function(){return this._coord},e.prototype.print=function(t){t.println("node "+this._coord+" lbl: "+this._label)},e.prototype.computeIM=function(t){},e.prototype.computeMergedLocation=function(t,e){var n=L.NONE;if(n=this._label.getLocation(e),!t.isNull(e)){var i=t.getLocation(e);n!==L.BOUNDARY&&(n=i)}return n},e.prototype.setLabel=function(){if(2!==arguments.length)return t.prototype.setLabel.apply(this,arguments);var e=arguments[0],n=arguments[1];null===this._label?this._label=new Ne(e,n):this._label.setLocation(e,n)},e.prototype.getEdges=function(){return this._edges},e.prototype.mergeLabel=function(){if(arguments[0]instanceof e){var t=arguments[0];this.mergeLabel(t._label)}else if(arguments[0]instanceof Ne)for(var n=arguments[0],i=0;i<2;i++){var r=this.computeMergedLocation(n,i);this._label.getLocation(i)===L.NONE&&this._label.setLocation(i,r)}},e.prototype.add=function(t){this._edges.insert(t),t.setNode(this)},e.prototype.setLabelBoundary=function(t){if(null===this._label)return null;var e=L.NONE;null!==this._label&&(e=this._label.getLocation(t));var n=null;switch(e){case L.BOUNDARY:n=L.INTERIOR;break;case L.INTERIOR:default:n=L.BOUNDARY}this._label.setLocation(t,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(ke),ze=function(){this.nodeMap=new l,this.nodeFact=null;var t=arguments[0];this.nodeFact=t};ze.prototype.find=function(t){return this.nodeMap.get(t)},ze.prototype.addNode=function(){if(arguments[0]instanceof S){var t=arguments[0],e=this.nodeMap.get(t);return null===e&&(e=this.nodeFact.createNode(t),this.nodeMap.put(t,e)),e}if(arguments[0]instanceof Fe){var n=arguments[0],i=this.nodeMap.get(n.getCoordinate());return null===i?(this.nodeMap.put(n.getCoordinate(),n),n):(i.mergeLabel(n),i)}},ze.prototype.print=function(t){for(var e=this.iterator();e.hasNext();)e.next().print(t)},ze.prototype.iterator=function(){return this.nodeMap.values().iterator()},ze.prototype.values=function(){return this.nodeMap.values()},ze.prototype.getBoundaryNodes=function(t){for(var e=new Mt,n=this.iterator();n.hasNext();){var i=n.next();i.getLabel().getLocation(t)===L.BOUNDARY&&e.add(i)}return e},ze.prototype.add=function(t){var e=t.getCoordinate();this.addNode(e).add(t)},ze.prototype.interfaces_=function(){return[]},ze.prototype.getClass=function(){return ze};var je=function(){},Be={NE:{configurable:!0},NW:{configurable:!0},SW:{configurable:!0},SE:{configurable:!0}};je.prototype.interfaces_=function(){return[]},je.prototype.getClass=function(){return je},je.isNorthern=function(t){return t===je.NE||t===je.NW},je.isOpposite=function(t,e){return t!==e&&2===(t-e+4)%4},je.commonHalfPlane=function(t,e){if(t===e)return t;if(2===(t-e+4)%4)return-1;var n=t<e?t:e;return 0===n&&3===(t>e?t:e)?3:n},je.isInHalfPlane=function(t,e){return e===je.SE?t===je.SE||t===je.SW:t===e||t===e+1},je.quadrant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new _("Cannot compute the quadrant for point ( "+t+", "+e+" )");return t>=0?e>=0?je.NE:je.SE:e>=0?je.NW:je.SW}if(arguments[0]instanceof S&&arguments[1]instanceof S){var n=arguments[0],i=arguments[1];if(i.x===n.x&&i.y===n.y)throw new _("Cannot compute the quadrant for two identical points "+n);return i.x>=n.x?i.y>=n.y?je.NE:je.SE:i.y>=n.y?je.NW:je.SW}},Be.NE.get=function(){return 0},Be.NW.get=function(){return 1},Be.SW.get=function(){return 2},Be.SE.get=function(){return 3},Object.defineProperties(je,Be);var Ge=function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,1===arguments.length){var t=arguments[0];this._edge=t}else if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2];this._edge=e,this.init(n,i),this._label=null}else if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this._edge=r,this.init(o,s),this._label=a}};Ge.prototype.compareDirection=function(t){return this._dx===t._dx&&this._dy===t._dy?0:this._quadrant>t._quadrant?1:this._quadrant<t._quadrant?-1:at.computeOrientation(t._p0,t._p1,this._p1)},Ge.prototype.getDy=function(){return this._dy},Ge.prototype.getCoordinate=function(){return this._p0},Ge.prototype.setNode=function(t){this._node=t},Ge.prototype.print=function(t){var e=Math.atan2(this._dy,this._dx),n=this.getClass().getName(),i=n.lastIndexOf("."),r=n.substring(i+1);t.print("  "+r+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+e+"   "+this._label)},Ge.prototype.compareTo=function(t){var e=t;return this.compareDirection(e)},Ge.prototype.getDirectedCoordinate=function(){return this._p1},Ge.prototype.getDx=function(){return this._dx},Ge.prototype.getLabel=function(){return this._label},Ge.prototype.getEdge=function(){return this._edge},Ge.prototype.getQuadrant=function(){return this._quadrant},Ge.prototype.getNode=function(){return this._node},Ge.prototype.toString=function(){var t=Math.atan2(this._dy,this._dx),e=this.getClass().getName(),n=e.lastIndexOf(".");return"  "+e.substring(n+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+t+"   "+this._label},Ge.prototype.computeLabel=function(t){},Ge.prototype.init=function(t,e){this._p0=t,this._p1=e,this._dx=e.x-t.x,this._dy=e.y-t.y,this._quadrant=je.quadrant(this._dx,this._dy),et.isTrue(!(0===this._dx&&0===this._dy),"EdgeEnd with identical endpoints found")},Ge.prototype.interfaces_=function(){return[x]},Ge.prototype.getClass=function(){return Ge};var qe=function(t){function e(){var e=arguments[0],n=arguments[1];if(t.call(this,e),this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999],this._isForward=n,n)this.init(e.getCoordinate(0),e.getCoordinate(1));else{var i=e.getNumPoints()-1;this.init(e.getCoordinate(i),e.getCoordinate(i-1))}this.computeDirectedLabel()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getNextMin=function(){return this._nextMin},e.prototype.getDepth=function(t){return this._depth[t]},e.prototype.setVisited=function(t){this._isVisited=t},e.prototype.computeDirectedLabel=function(){this._label=new Ne(this._edge.getLabel()),this._isForward||this._label.flip()},e.prototype.getNext=function(){return this._next},e.prototype.setDepth=function(t,e){if(-999!==this._depth[t]&&this._depth[t]!==e)throw new Le("assigned depths do not match",this.getCoordinate());this._depth[t]=e},e.prototype.isInteriorAreaEdge=function(){for(var t=!0,e=0;e<2;e++)this._label.isArea(e)&&this._label.getLocation(e,Ee.LEFT)===L.INTERIOR&&this._label.getLocation(e,Ee.RIGHT)===L.INTERIOR||(t=!1);return t},e.prototype.setNextMin=function(t){this._nextMin=t},e.prototype.print=function(e){t.prototype.print.call(this,e),e.print(" "+this._depth[Ee.LEFT]+"/"+this._depth[Ee.RIGHT]),e.print(" ("+this.getDepthDelta()+")"),this._isInResult&&e.print(" inResult")},e.prototype.setMinEdgeRing=function(t){this._minEdgeRing=t},e.prototype.isLineEdge=function(){var t=this._label.isLine(0)||this._label.isLine(1),e=!this._label.isArea(0)||this._label.allPositionsEqual(0,L.EXTERIOR),n=!this._label.isArea(1)||this._label.allPositionsEqual(1,L.EXTERIOR);return t&&e&&n},e.prototype.setEdgeRing=function(t){this._edgeRing=t},e.prototype.getMinEdgeRing=function(){return this._minEdgeRing},e.prototype.getDepthDelta=function(){var t=this._edge.getDepthDelta();return this._isForward||(t=-t),t},e.prototype.setInResult=function(t){this._isInResult=t},e.prototype.getSym=function(){return this._sym},e.prototype.isForward=function(){return this._isForward},e.prototype.getEdge=function(){return this._edge},e.prototype.printEdge=function(t){this.print(t),t.print(" "),this._isForward?this._edge.print(t):this._edge.printReverse(t)},e.prototype.setSym=function(t){this._sym=t},e.prototype.setVisitedEdge=function(t){this.setVisited(t),this._sym.setVisited(t)},e.prototype.setEdgeDepths=function(t,e){var n=this.getEdge().getDepthDelta();this._isForward||(n=-n);var i=1;t===Ee.LEFT&&(i=-1);var r=Ee.opposite(t),o=e+n*i;this.setDepth(t,e),this.setDepth(r,o)},e.prototype.getEdgeRing=function(){return this._edgeRing},e.prototype.isInResult=function(){return this._isInResult},e.prototype.setNext=function(t){this._next=t},e.prototype.isVisited=function(){return this._isVisited},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.depthFactor=function(t,e){return t===L.EXTERIOR&&e===L.INTERIOR?1:t===L.INTERIOR&&e===L.EXTERIOR?-1:0},e}(Ge),Ue=function(){};Ue.prototype.createNode=function(t){return new Fe(t,null)},Ue.prototype.interfaces_=function(){return[]},Ue.prototype.getClass=function(){return Ue};var Ve=function(){if(this._edges=new Mt,this._nodes=null,this._edgeEndList=new Mt,0===arguments.length)this._nodes=new ze(new Ue);else if(1===arguments.length){var t=arguments[0];this._nodes=new ze(t)}};Ve.prototype.printEdges=function(t){t.println("Edges:");for(var e=0;e<this._edges.size();e++){t.println("edge "+e+":");var n=this._edges.get(e);n.print(t),n.eiList.print(t)}},Ve.prototype.find=function(t){return this._nodes.find(t)},Ve.prototype.addNode=function(){if(arguments[0]instanceof Fe){var t=arguments[0];return this._nodes.addNode(t)}if(arguments[0]instanceof S){var e=arguments[0];return this._nodes.addNode(e)}},Ve.prototype.getNodeIterator=function(){return this._nodes.iterator()},Ve.prototype.linkResultDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkResultDirectedEdges()},Ve.prototype.debugPrintln=function(t){V.out.println(t)},Ve.prototype.isBoundaryNode=function(t,e){var n=this._nodes.find(e);if(null===n)return!1;var i=n.getLabel();return null!==i&&i.getLocation(t)===L.BOUNDARY},Ve.prototype.linkAllDirectedEdges=function(){for(var t=this._nodes.iterator();t.hasNext();)t.next().getEdges().linkAllDirectedEdges()},Ve.prototype.matchInSameDirection=function(t,e,n,i){return!!t.equals(n)&&at.computeOrientation(t,e,i)===at.COLLINEAR&&je.quadrant(t,e)===je.quadrant(n,i)},Ve.prototype.getEdgeEnds=function(){return this._edgeEndList},Ve.prototype.debugPrint=function(t){V.out.print(t)},Ve.prototype.getEdgeIterator=function(){return this._edges.iterator()},Ve.prototype.findEdgeInSameDirection=function(t,e){for(var n=0;n<this._edges.size();n++){var i=this._edges.get(n),r=i.getCoordinates();if(this.matchInSameDirection(t,e,r[0],r[1]))return i;if(this.matchInSameDirection(t,e,r[r.length-1],r[r.length-2]))return i}return null},Ve.prototype.insertEdge=function(t){this._edges.add(t)},Ve.prototype.findEdgeEnd=function(t){for(var e=this.getEdgeEnds().iterator();e.hasNext();){var n=e.next();if(n.getEdge()===t)return n}return null},Ve.prototype.addEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this._edges.add(n);var i=new qe(n,!0),r=new qe(n,!1);i.setSym(r),r.setSym(i),this.add(i),this.add(r)}},Ve.prototype.add=function(t){this._nodes.add(t),this._edgeEndList.add(t)},Ve.prototype.getNodes=function(){return this._nodes.values()},Ve.prototype.findEdge=function(t,e){for(var n=0;n<this._edges.size();n++){var i=this._edges.get(n),r=i.getCoordinates();if(t.equals(r[0])&&e.equals(r[1]))return i}return null},Ve.prototype.interfaces_=function(){return[]},Ve.prototype.getClass=function(){return Ve},Ve.linkResultDirectedEdges=function(t){for(var e=t.iterator();e.hasNext();)e.next().getEdges().linkResultDirectedEdges()};var Ze=function(){this._geometryFactory=null,this._shellList=new Mt;var t=arguments[0];this._geometryFactory=t};Ze.prototype.sortShellsAndHoles=function(t,e,n){for(var i=t.iterator();i.hasNext();){var r=i.next();r.isHole()?n.add(r):e.add(r)}},Ze.prototype.computePolygons=function(t){for(var e=new Mt,n=t.iterator();n.hasNext();){var i=n.next().toPolygon(this._geometryFactory);e.add(i)}return e},Ze.prototype.placeFreeHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();if(null===i.getShell()){var r=this.findEdgeRingContaining(i,t);if(null===r)throw new Le("unable to assign hole to a shell",i.getCoordinate(0));i.setShell(r)}}},Ze.prototype.buildMinimalEdgeRings=function(t,e,n){for(var i=new Mt,r=t.iterator();r.hasNext();){var o=r.next();if(o.getMaxNodeDegree()>2){o.linkDirectedEdgesForMinimalEdgeRings();var s=o.buildMinimalRings(),a=this.findShell(s);null!==a?(this.placePolygonHoles(a,s),e.add(a)):n.addAll(s)}else i.add(o)}return i},Ze.prototype.containsPoint=function(t){for(var e=this._shellList.iterator();e.hasNext();)if(e.next().containsPoint(t))return!0;return!1},Ze.prototype.buildMaximalEdgeRings=function(t){for(var e=new Mt,n=t.iterator();n.hasNext();){var i=n.next();if(i.isInResult()&&i.getLabel().isArea()&&null===i.getEdgeRing()){var r=new De(i,this._geometryFactory);e.add(r),r.setInResult()}}return e},Ze.prototype.placePolygonHoles=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();i.isHole()&&i.setShell(t)}},Ze.prototype.getPolygons=function(){return this.computePolygons(this._shellList)},Ze.prototype.findEdgeRingContaining=function(t,e){for(var n=t.getLinearRing(),i=n.getEnvelopeInternal(),r=n.getCoordinateN(0),o=null,s=null,a=e.iterator();a.hasNext();){var u=a.next(),c=u.getLinearRing(),h=c.getEnvelopeInternal();null!==o&&(s=o.getLinearRing().getEnvelopeInternal());var l=!1;h.contains(i)&&at.isPointInRing(r,c.getCoordinates())&&(l=!0),l&&(null===o||s.contains(h))&&(o=u)}return o},Ze.prototype.findShell=function(t){for(var e=0,n=null,i=t.iterator();i.hasNext();){var r=i.next();r.isHole()||(n=r,e++)}return et.isTrue(e<=1,"found two shells in MinimalEdgeRing list"),n},Ze.prototype.add=function(){if(1===arguments.length){var t=arguments[0];this.add(t.getEdgeEnds(),t.getNodes())}else if(2===arguments.length){var e=arguments[0],n=arguments[1];Ve.linkResultDirectedEdges(n);var i=this.buildMaximalEdgeRings(e),r=new Mt,o=this.buildMinimalEdgeRings(i,this._shellList,r);this.sortShellsAndHoles(o,this._shellList,r),this.placeFreeHoles(this._shellList,r)}},Ze.prototype.interfaces_=function(){return[]},Ze.prototype.getClass=function(){return Ze};var He=function(){};He.prototype.getBounds=function(){},He.prototype.interfaces_=function(){return[]},He.prototype.getClass=function(){return He};var $e=function(){this._bounds=null,this._item=null;var t=arguments[0],e=arguments[1];this._bounds=t,this._item=e};$e.prototype.getItem=function(){return this._item},$e.prototype.getBounds=function(){return this._bounds},$e.prototype.interfaces_=function(){return[He,e]},$e.prototype.getClass=function(){return $e};var Ye=function(){this._size=null,this._items=null,this._size=0,this._items=new Mt,this._items.add(null)};Ye.prototype.poll=function(){if(this.isEmpty())return null;var t=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),t},Ye.prototype.size=function(){return this._size},Ye.prototype.reorder=function(t){for(var e=null,n=this._items.get(t);2*t<=this._size&&((e=2*t)!==this._size&&this._items.get(e+1).compareTo(this._items.get(e))<0&&e++,this._items.get(e).compareTo(n)<0);t=e)this._items.set(t,this._items.get(e));this._items.set(t,n)},Ye.prototype.clear=function(){this._size=0,this._items.clear()},Ye.prototype.isEmpty=function(){return 0===this._size},Ye.prototype.add=function(t){this._items.add(null),this._size+=1;var e=this._size;for(this._items.set(0,t);t.compareTo(this._items.get(Math.trunc(e/2)))<0;e/=2)this._items.set(e,this._items.get(Math.trunc(e/2)));this._items.set(e,t)},Ye.prototype.interfaces_=function(){return[]},Ye.prototype.getClass=function(){return Ye};var We=function(){};We.prototype.visitItem=function(t){},We.prototype.interfaces_=function(){return[]},We.prototype.getClass=function(){return We};var Xe=function(){};Xe.prototype.insert=function(t,e){},Xe.prototype.remove=function(t,e){},Xe.prototype.query=function(){},Xe.prototype.interfaces_=function(){return[]},Xe.prototype.getClass=function(){return Xe};var Ke=function(){if(this._childBoundables=new Mt,this._bounds=null,this._level=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this._level=t}},Je={serialVersionUID:{configurable:!0}};Ke.prototype.getLevel=function(){return this._level},Ke.prototype.size=function(){return this._childBoundables.size()},Ke.prototype.getChildBoundables=function(){return this._childBoundables},Ke.prototype.addChildBoundable=function(t){et.isTrue(null===this._bounds),this._childBoundables.add(t)},Ke.prototype.isEmpty=function(){return this._childBoundables.isEmpty()},Ke.prototype.getBounds=function(){return null===this._bounds&&(this._bounds=this.computeBounds()),this._bounds},Ke.prototype.interfaces_=function(){return[He,e]},Ke.prototype.getClass=function(){return Ke},Je.serialVersionUID.get=function(){return 0x5a1e55ec41369800},Object.defineProperties(Ke,Je);var Qe=function(){};Qe.reverseOrder=function(){return{compare:function(t,e){return e.compareTo(t)}}},Qe.min=function(t){return Qe.sort(t),t.get(0)},Qe.sort=function(t,e){var n=t.toArray();e?Ft.sort(n,e):Ft.sort(n);for(var i=t.iterator(),r=0,o=n.length;r<o;r++)i.next(),i.set(n[r])},Qe.singletonList=function(t){var e=new Mt;return e.add(t),e};var tn=function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var t=arguments[0],e=arguments[1],n=arguments[2];this._boundable1=t,this._boundable2=e,this._itemDistance=n,this._distance=this.distance()};tn.prototype.expandToQueue=function(t,e){var n=tn.isComposite(this._boundable1),i=tn.isComposite(this._boundable2);if(n&&i)return tn.area(this._boundable1)>tn.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,t,e),null):(this.expand(this._boundable2,this._boundable1,t,e),null);if(n)return this.expand(this._boundable1,this._boundable2,t,e),null;if(i)return this.expand(this._boundable2,this._boundable1,t,e),null;throw new _("neither boundable is composite")},tn.prototype.isLeaves=function(){return!(tn.isComposite(this._boundable1)||tn.isComposite(this._boundable2))},tn.prototype.compareTo=function(t){var e=t;return this._distance<e._distance?-1:this._distance>e._distance?1:0},tn.prototype.expand=function(t,e,n,i){for(var r=t.getChildBoundables().iterator();r.hasNext();){var o=r.next(),s=new tn(o,e,this._itemDistance);s.getDistance()<i&&n.add(s)}},tn.prototype.getBoundable=function(t){return 0===t?this._boundable1:this._boundable2},tn.prototype.getDistance=function(){return this._distance},tn.prototype.distance=function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())},tn.prototype.interfaces_=function(){return[x]},tn.prototype.getClass=function(){return tn},tn.area=function(t){return t.getBounds().getArea()},tn.isComposite=function(t){return t instanceof Ke};var en=function t(){if(this._root=null,this._built=!1,this._itemBoundables=new Mt,this._nodeCapacity=null,0===arguments.length){var e=t.DEFAULT_NODE_CAPACITY;this._nodeCapacity=e}else if(1===arguments.length){var n=arguments[0];et.isTrue(n>1,"Node capacity must be greater than 1"),this._nodeCapacity=n}},nn={IntersectsOp:{configurable:!0},serialVersionUID:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};en.prototype.getNodeCapacity=function(){return this._nodeCapacity},en.prototype.lastNode=function(t){return t.get(t.size()-1)},en.prototype.size=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.size(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();n instanceof Ke?t+=this.size(n):n instanceof $e&&(t+=1)}return t}},en.prototype.removeItem=function(t,e){for(var n=null,i=t.getChildBoundables().iterator();i.hasNext();){var r=i.next();r instanceof $e&&r.getItem()===e&&(n=r)}return null!==n&&(t.getChildBoundables().remove(n),!0)},en.prototype.itemsTree=function(){if(0===arguments.length){this.build();var t=this.itemsTree(this._root);return null===t?new Mt:t}if(1===arguments.length){for(var e=arguments[0],n=new Mt,i=e.getChildBoundables().iterator();i.hasNext();){var r=i.next();if(r instanceof Ke){var o=this.itemsTree(r);null!==o&&n.add(o)}else r instanceof $e?n.add(r.getItem()):et.shouldNeverReachHere()}return n.size()<=0?null:n}},en.prototype.insert=function(t,e){et.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new $e(t,e))},en.prototype.boundablesAtLevel=function(){if(1===arguments.length){var t=arguments[0],e=new Mt;return this.boundablesAtLevel(t,this._root,e),e}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];if(et.isTrue(n>-2),i.getLevel()===n)return r.add(i),null;for(var o=i.getChildBoundables().iterator();o.hasNext();){var s=o.next();s instanceof Ke?this.boundablesAtLevel(n,s,r):(et.isTrue(s instanceof $e),-1===n&&r.add(s))}return null}},en.prototype.query=function(){if(1===arguments.length){var t=arguments[0];this.build();var e=new Mt;return this.isEmpty()?e:(this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.query(t,this._root,e),e)}if(2===arguments.length){var n=arguments[0],i=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),n)&&this.query(n,this._root,i)}else if(3===arguments.length)if(T(arguments[2],We)&&arguments[0]instanceof Object&&arguments[1]instanceof Ke)for(var r=arguments[0],o=arguments[1],s=arguments[2],a=o.getChildBoundables(),u=0;u<a.size();u++){var c=a.get(u);this.getIntersectsOp().intersects(c.getBounds(),r)&&(c instanceof Ke?this.query(r,c,s):c instanceof $e?s.visitItem(c.getItem()):et.shouldNeverReachHere())}else if(T(arguments[2],wt)&&arguments[0]instanceof Object&&arguments[1]instanceof Ke)for(var h=arguments[0],l=arguments[1],f=arguments[2],p=l.getChildBoundables(),d=0;d<p.size();d++){var g=p.get(d);this.getIntersectsOp().intersects(g.getBounds(),h)&&(g instanceof Ke?this.query(h,g,f):g instanceof $e?f.add(g.getItem()):et.shouldNeverReachHere())}},en.prototype.build=function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0},en.prototype.getRoot=function(){return this.build(),this._root},en.prototype.remove=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),t)&&this.remove(t,this._root,e)}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],o=this.removeItem(i,r);if(o)return!0;for(var s=null,a=i.getChildBoundables().iterator();a.hasNext();){var u=a.next();if(this.getIntersectsOp().intersects(u.getBounds(),n)&&u instanceof Ke&&(o=this.remove(n,u,r))){s=u;break}}return null!==s&&s.getChildBoundables().isEmpty()&&i.getChildBoundables().remove(s),o}},en.prototype.createHigherLevels=function(t,e){et.isTrue(!t.isEmpty());var n=this.createParentBoundables(t,e+1);return 1===n.size()?n.get(0):this.createHigherLevels(n,e+1)},en.prototype.depth=function(){if(0===arguments.length)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(1===arguments.length){for(var t=0,e=arguments[0].getChildBoundables().iterator();e.hasNext();){var n=e.next();if(n instanceof Ke){var i=this.depth(n);i>t&&(t=i)}}return t+1}},en.prototype.createParentBoundables=function(t,e){et.isTrue(!t.isEmpty());var n=new Mt;n.add(this.createNode(e));var i=new Mt(t);Qe.sort(i,this.getComparator());for(var r=i.iterator();r.hasNext();){var o=r.next();this.lastNode(n).getChildBoundables().size()===this.getNodeCapacity()&&n.add(this.createNode(e)),this.lastNode(n).addChildBoundable(o)}return n},en.prototype.isEmpty=function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()},en.prototype.interfaces_=function(){return[e]},en.prototype.getClass=function(){return en},en.compareDoubles=function(t,e){return t>e?1:t<e?-1:0},nn.IntersectsOp.get=function(){return rn},nn.serialVersionUID.get=function(){return-0x35ef64c82d4c5400},nn.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(en,nn);var rn=function(){},on=function(){};on.prototype.distance=function(t,e){},on.prototype.interfaces_=function(){return[]},on.prototype.getClass=function(){return on};var sn=function(t){function n(e){e=e||n.DEFAULT_NODE_CAPACITY,t.call(this,e)}t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n;var i={STRtreeNode:{configurable:!0},serialVersionUID:{configurable:!0},xComparator:{configurable:!0},yComparator:{configurable:!0},intersectsOp:{configurable:!0},DEFAULT_NODE_CAPACITY:{configurable:!0}};return n.prototype.createParentBoundablesFromVerticalSlices=function(t,e){et.isTrue(t.length>0);for(var n=new Mt,i=0;i<t.length;i++)n.addAll(this.createParentBoundablesFromVerticalSlice(t[i],e));return n},n.prototype.createNode=function(t){return new an(t)},n.prototype.size=function(){return 0===arguments.length?t.prototype.size.call(this):t.prototype.size.apply(this,arguments)},n.prototype.insert=function(){if(2!==arguments.length)return t.prototype.insert.apply(this,arguments);var e=arguments[0],n=arguments[1];if(e.isNull())return null;t.prototype.insert.call(this,e,n)},n.prototype.getIntersectsOp=function(){return n.intersectsOp},n.prototype.verticalSlices=function(t,e){for(var n=Math.trunc(Math.ceil(t.size()/e)),i=new Array(e).fill(null),r=t.iterator(),o=0;o<e;o++){i[o]=new Mt;for(var s=0;r.hasNext()&&s<n;){var a=r.next();i[o].add(a),s++}}return i},n.prototype.query=function(){if(1===arguments.length){var e=arguments[0];return t.prototype.query.call(this,e)}if(2===arguments.length){var n=arguments[0],i=arguments[1];t.prototype.query.call(this,n,i)}else if(3===arguments.length)if(T(arguments[2],We)&&arguments[0]instanceof Object&&arguments[1]instanceof Ke){var r=arguments[0],o=arguments[1],s=arguments[2];t.prototype.query.call(this,r,o,s)}else if(T(arguments[2],wt)&&arguments[0]instanceof Object&&arguments[1]instanceof Ke){var a=arguments[0],u=arguments[1],c=arguments[2];t.prototype.query.call(this,a,u,c)}},n.prototype.getComparator=function(){return n.yComparator},n.prototype.createParentBoundablesFromVerticalSlice=function(e,n){return t.prototype.createParentBoundables.call(this,e,n)},n.prototype.remove=function(){if(2===arguments.length){var e=arguments[0],n=arguments[1];return t.prototype.remove.call(this,e,n)}return t.prototype.remove.apply(this,arguments)},n.prototype.depth=function(){return 0===arguments.length?t.prototype.depth.call(this):t.prototype.depth.apply(this,arguments)},n.prototype.createParentBoundables=function(t,e){et.isTrue(!t.isEmpty());var i=Math.trunc(Math.ceil(t.size()/this.getNodeCapacity())),r=new Mt(t);Qe.sort(r,n.xComparator);var o=this.verticalSlices(r,Math.trunc(Math.ceil(Math.sqrt(i))));return this.createParentBoundablesFromVerticalSlices(o,e)},n.prototype.nearestNeighbour=function(){if(1===arguments.length){if(T(arguments[0],on)){var t=arguments[0],e=new tn(this.getRoot(),this.getRoot(),t);return this.nearestNeighbour(e)}if(arguments[0]instanceof tn){var i=arguments[0];return this.nearestNeighbour(i,v.POSITIVE_INFINITY)}}else if(2===arguments.length){if(arguments[0]instanceof n&&T(arguments[1],on)){var r=arguments[0],o=arguments[1],s=new tn(this.getRoot(),r.getRoot(),o);return this.nearestNeighbour(s)}if(arguments[0]instanceof tn&&"number"==typeof arguments[1]){var a=arguments[0],u=arguments[1],c=null,h=new Ye;for(h.add(a);!h.isEmpty()&&u>0;){var l=h.poll(),f=l.getDistance();if(f>=u)break;l.isLeaves()?(u=f,c=l):l.expandToQueue(h,u)}return[c.getBoundable(0).getItem(),c.getBoundable(1).getItem()]}}else if(3===arguments.length){var p=arguments[0],d=arguments[1],g=arguments[2],m=new $e(p,d),y=new tn(this.getRoot(),m,g);return this.nearestNeighbour(y)[0]}},n.prototype.interfaces_=function(){return[Xe,e]},n.prototype.getClass=function(){return n},n.centreX=function(t){return n.avg(t.getMinX(),t.getMaxX())},n.avg=function(t,e){return(t+e)/2},n.centreY=function(t){return n.avg(t.getMinY(),t.getMaxY())},i.STRtreeNode.get=function(){return an},i.serialVersionUID.get=function(){return 0x39920f7d5f261e0},i.xComparator.get=function(){return{interfaces_:function(){return[M]},compare:function(e,i){return t.compareDoubles(n.centreX(e.getBounds()),n.centreX(i.getBounds()))}}},i.yComparator.get=function(){return{interfaces_:function(){return[M]},compare:function(e,i){return t.compareDoubles(n.centreY(e.getBounds()),n.centreY(i.getBounds()))}}},i.intersectsOp.get=function(){return{interfaces_:function(){return[t.IntersectsOp]},intersects:function(t,e){return t.intersects(e)}}},i.DEFAULT_NODE_CAPACITY.get=function(){return 10},Object.defineProperties(n,i),n}(en),an=function(t){function e(){var e=arguments[0];t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeBounds=function(){for(var t=null,e=this.getChildBoundables().iterator();e.hasNext();){var n=e.next();null===t?t=new H(n.getBounds()):t.expandToInclude(n.getBounds())}return t},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ke),un=function(){};un.prototype.interfaces_=function(){return[]},un.prototype.getClass=function(){return un},un.relativeSign=function(t,e){return t<e?-1:t>e?1:0},un.compare=function(t,e,n){if(e.equals2D(n))return 0;var i=un.relativeSign(e.x,n.x),r=un.relativeSign(e.y,n.y);switch(t){case 0:return un.compareValue(i,r);case 1:return un.compareValue(r,i);case 2:return un.compareValue(r,-i);case 3:return un.compareValue(-i,r);case 4:return un.compareValue(-i,-r);case 5:return un.compareValue(-r,-i);case 6:return un.compareValue(-r,i);case 7:return un.compareValue(i,-r)}return et.shouldNeverReachHere("invalid octant value"),0},un.compareValue=function(t,e){return t<0?-1:t>0?1:e<0?-1:e>0?1:0};var cn=function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._segString=t,this.coord=new S(e),this.segmentIndex=n,this._segmentOctant=i,this._isInterior=!e.equals2D(t.getCoordinate(n))};cn.prototype.getCoordinate=function(){return this.coord},cn.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex)},cn.prototype.compareTo=function(t){var e=t;return this.segmentIndex<e.segmentIndex?-1:this.segmentIndex>e.segmentIndex?1:this.coord.equals2D(e.coord)?0:un.compare(this._segmentOctant,this.coord,e.coord)},cn.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&!this._isInterior||this.segmentIndex===t},cn.prototype.isInterior=function(){return this._isInterior},cn.prototype.interfaces_=function(){return[x]},cn.prototype.getClass=function(){return cn};var hn=function(){this._nodeMap=new l,this._edge=null;var t=arguments[0];this._edge=t};hn.prototype.getSplitCoordinates=function(){var t=new Et;this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next();this.addEdgeCoordinates(n,i,t),n=i}return t.toCoordinateArray()},hn.prototype.addCollapsedNodes=function(){var t=new Mt;this.findCollapsesFromInsertedNodes(t),this.findCollapsesFromExistingVertices(t);for(var e=t.iterator();e.hasNext();){var n=e.next().intValue();this.add(this._edge.getCoordinate(n),n)}},hn.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},hn.prototype.findCollapsesFromExistingVertices=function(t){for(var e=0;e<this._edge.size()-2;e++){var n=this._edge.getCoordinate(e),i=this._edge.getCoordinate(e+2);n.equals2D(i)&&t.add(new R(e+1))}},hn.prototype.addEdgeCoordinates=function(t,e,n){var i=this._edge.getCoordinate(e.segmentIndex),r=e.isInterior()||!e.coord.equals2D(i);n.add(new S(t.coord),!1);for(var o=t.segmentIndex+1;o<=e.segmentIndex;o++)n.add(this._edge.getCoordinate(o));r&&n.add(new S(e.coord))},hn.prototype.iterator=function(){return this._nodeMap.values().iterator()},hn.prototype.addSplitEdges=function(t){this.addEndpoints(),this.addCollapsedNodes();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next(),r=this.createSplitEdge(n,i);t.add(r),n=i}},hn.prototype.findCollapseIndex=function(t,e,n){if(!t.coord.equals2D(e.coord))return!1;var i=e.segmentIndex-t.segmentIndex;return e.isInterior()||i--,1===i&&(n[0]=t.segmentIndex+1,!0)},hn.prototype.findCollapsesFromInsertedNodes=function(t){for(var e=new Array(1).fill(null),n=this.iterator(),i=n.next();n.hasNext();){var r=n.next();this.findCollapseIndex(i,r,e)&&t.add(new R(e[0])),i=r}},hn.prototype.getEdge=function(){return this._edge},hn.prototype.addEndpoints=function(){var t=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(t),t)},hn.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,i=this._edge.getCoordinate(e.segmentIndex),r=e.isInterior()||!e.coord.equals2D(i);r||n--;var o=new Array(n).fill(null),s=0;o[s++]=new S(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this._edge.getCoordinate(a);return r&&(o[s]=new S(e.coord)),new dn(o,this._edge.getData())},hn.prototype.add=function(t,e){var n=new cn(this._edge,t,e,this._edge.getSegmentOctant(e)),i=this._nodeMap.get(n);return null!==i?(et.isTrue(i.coord.equals2D(t),"Found equal nodes with different coordinates"),i):(this._nodeMap.put(n,n),n)},hn.prototype.checkSplitEdgesCorrectness=function(t){var e=this._edge.getCoordinates(),n=t.get(0).getCoordinate(0);if(!n.equals2D(e[0]))throw new Q("bad split edge start point at "+n);var i=t.get(t.size()-1).getCoordinates(),r=i[i.length-1];if(!r.equals2D(e[e.length-1]))throw new Q("bad split edge end point at "+r)},hn.prototype.interfaces_=function(){return[]},hn.prototype.getClass=function(){return hn};var ln=function(){};ln.prototype.interfaces_=function(){return[]},ln.prototype.getClass=function(){return ln},ln.octant=function(){if("number"==typeof arguments[0]&&"number"==typeof arguments[1]){var t=arguments[0],e=arguments[1];if(0===t&&0===e)throw new _("Cannot compute the octant for point ( "+t+", "+e+" )");var n=Math.abs(t),i=Math.abs(e);return t>=0?e>=0?n>=i?0:1:n>=i?7:6:e>=0?n>=i?3:2:n>=i?4:5}if(arguments[0]instanceof S&&arguments[1]instanceof S){var r=arguments[0],o=arguments[1],s=o.x-r.x,a=o.y-r.y;if(0===s&&0===a)throw new _("Cannot compute the octant for two identical points "+r);return ln.octant(s,a)}};var fn=function(){};fn.prototype.getCoordinates=function(){},fn.prototype.size=function(){},fn.prototype.getCoordinate=function(t){},fn.prototype.isClosed=function(){},fn.prototype.setData=function(t){},fn.prototype.getData=function(){},fn.prototype.interfaces_=function(){return[]},fn.prototype.getClass=function(){return fn};var pn=function(){};pn.prototype.addIntersection=function(t,e){},pn.prototype.interfaces_=function(){return[fn]},pn.prototype.getClass=function(){return pn};var dn=function(){this._nodeList=new hn(this),this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};dn.prototype.getCoordinates=function(){return this._pts},dn.prototype.size=function(){return this._pts.length},dn.prototype.getCoordinate=function(t){return this._pts[t]},dn.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},dn.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(t),this.getCoordinate(t+1))},dn.prototype.setData=function(t){this._data=t},dn.prototype.safeOctant=function(t,e){return t.equals2D(e)?0:ln.octant(t,e)},dn.prototype.getData=function(){return this._data},dn.prototype.addIntersection=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];this.addIntersectionNode(t,e)}else if(4===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[3],o=new S(n.getIntersection(r));this.addIntersection(o,i)}},dn.prototype.toString=function(){return J.toLineString(new ue(this._pts))},dn.prototype.getNodeList=function(){return this._nodeList},dn.prototype.addIntersectionNode=function(t,e){var n=e,i=n+1;if(i<this._pts.length){var r=this._pts[i];t.equals2D(r)&&(n=i)}return this._nodeList.add(t,n)},dn.prototype.addIntersections=function(t,e,n){for(var i=0;i<t.getIntersectionNum();i++)this.addIntersection(t,e,n,i)},dn.prototype.interfaces_=function(){return[pn]},dn.prototype.getClass=function(){return dn},dn.getNodedSubstrings=function(){if(1===arguments.length){var t=arguments[0],e=new Mt;return dn.getNodedSubstrings(t,e),e}if(2===arguments.length)for(var n=arguments[0],i=arguments[1],r=n.iterator();r.hasNext();)r.next().getNodeList().addSplitEdges(i)};var gn=function(){if(this.p0=null,this.p1=null,0===arguments.length)this.p0=new S,this.p1=new S;else if(1===arguments.length){var t=arguments[0];this.p0=new S(t.p0),this.p1=new S(t.p1)}else if(2===arguments.length)this.p0=arguments[0],this.p1=arguments[1];else if(4===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2],r=arguments[3];this.p0=new S(e,n),this.p1=new S(i,r)}},mn={serialVersionUID:{configurable:!0}};gn.prototype.minX=function(){return Math.min(this.p0.x,this.p1.x)},gn.prototype.orientationIndex=function(){if(arguments[0]instanceof gn){var t=arguments[0],e=at.orientationIndex(this.p0,this.p1,t.p0),n=at.orientationIndex(this.p0,this.p1,t.p1);return e>=0&&n>=0?Math.max(e,n):e<=0&&n<=0?Math.max(e,n):0}if(arguments[0]instanceof S){var i=arguments[0];return at.orientationIndex(this.p0,this.p1,i)}},gn.prototype.toGeometry=function(t){return t.createLineString([this.p0,this.p1])},gn.prototype.isVertical=function(){return this.p0.x===this.p1.x},gn.prototype.equals=function(t){if(!(t instanceof gn))return!1;var e=t;return this.p0.equals(e.p0)&&this.p1.equals(e.p1)},gn.prototype.intersection=function(t){var e=new rt;return e.computeIntersection(this.p0,this.p1,t.p0,t.p1),e.hasIntersection()?e.getIntersection(0):null},gn.prototype.project=function(){if(arguments[0]instanceof S){var t=arguments[0];if(t.equals(this.p0)||t.equals(this.p1))return new S(t);var e=this.projectionFactor(t),n=new S;return n.x=this.p0.x+e*(this.p1.x-this.p0.x),n.y=this.p0.y+e*(this.p1.y-this.p0.y),n}if(arguments[0]instanceof gn){var i=arguments[0],r=this.projectionFactor(i.p0),o=this.projectionFactor(i.p1);if(r>=1&&o>=1)return null;if(r<=0&&o<=0)return null;var s=this.project(i.p0);r<0&&(s=this.p0),r>1&&(s=this.p1);var a=this.project(i.p1);return o<0&&(a=this.p0),o>1&&(a=this.p1),new gn(s,a)}},gn.prototype.normalize=function(){this.p1.compareTo(this.p0)<0&&this.reverse()},gn.prototype.angle=function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},gn.prototype.getCoordinate=function(t){return 0===t?this.p0:this.p1},gn.prototype.distancePerpendicular=function(t){return at.distancePointLinePerpendicular(t,this.p0,this.p1)},gn.prototype.minY=function(){return Math.min(this.p0.y,this.p1.y)},gn.prototype.midPoint=function(){return gn.midPoint(this.p0,this.p1)},gn.prototype.projectionFactor=function(t){if(t.equals(this.p0))return 0;if(t.equals(this.p1))return 1;var e=this.p1.x-this.p0.x,n=this.p1.y-this.p0.y,i=e*e+n*n;return i<=0?v.NaN:((t.x-this.p0.x)*e+(t.y-this.p0.y)*n)/i},gn.prototype.closestPoints=function(t){var e=this.intersection(t);if(null!==e)return[e,e];var n=new Array(2).fill(null),i=v.MAX_VALUE,r=null,o=this.closestPoint(t.p0);i=o.distance(t.p0),n[0]=o,n[1]=t.p0;var s=this.closestPoint(t.p1);(r=s.distance(t.p1))<i&&(i=r,n[0]=s,n[1]=t.p1);var a=t.closestPoint(this.p0);(r=a.distance(this.p0))<i&&(i=r,n[0]=this.p0,n[1]=a);var u=t.closestPoint(this.p1);return(r=u.distance(this.p1))<i&&(i=r,n[0]=this.p1,n[1]=u),n},gn.prototype.closestPoint=function(t){var e=this.projectionFactor(t);return e>0&&e<1?this.project(t):this.p0.distance(t)<this.p1.distance(t)?this.p0:this.p1},gn.prototype.maxX=function(){return Math.max(this.p0.x,this.p1.x)},gn.prototype.getLength=function(){return this.p0.distance(this.p1)},gn.prototype.compareTo=function(t){var e=t,n=this.p0.compareTo(e.p0);return 0!==n?n:this.p1.compareTo(e.p1)},gn.prototype.reverse=function(){var t=this.p0;this.p0=this.p1,this.p1=t},gn.prototype.equalsTopo=function(t){return this.p0.equals(t.p0)&&(this.p1.equals(t.p1)||this.p0.equals(t.p1))&&this.p1.equals(t.p0)},gn.prototype.lineIntersection=function(t){try{return Z.intersection(this.p0,this.p1,t.p0,t.p1)}catch(t){if(!(t instanceof U))throw t}return null},gn.prototype.maxY=function(){return Math.max(this.p0.y,this.p1.y)},gn.prototype.pointAlongOffset=function(t,e){var n=this.p0.x+t*(this.p1.x-this.p0.x),i=this.p0.y+t*(this.p1.y-this.p0.y),r=this.p1.x-this.p0.x,o=this.p1.y-this.p0.y,s=Math.sqrt(r*r+o*o),a=0,u=0;if(0!==e){if(s<=0)throw new Error("Cannot compute offset from zero-length line segment");a=e*r/s,u=e*o/s}return new S(n-u,i+a)},gn.prototype.setCoordinates=function(){if(1===arguments.length){var t=arguments[0];this.setCoordinates(t.p0,t.p1)}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this.p0.x=e.x,this.p0.y=e.y,this.p1.x=n.x,this.p1.y=n.y}},gn.prototype.segmentFraction=function(t){var e=this.projectionFactor(t);return e<0?e=0:(e>1||v.isNaN(e))&&(e=1),e},gn.prototype.toString=function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},gn.prototype.isHorizontal=function(){return this.p0.y===this.p1.y},gn.prototype.distance=function(){if(arguments[0]instanceof gn){var t=arguments[0];return at.distanceLineLine(this.p0,this.p1,t.p0,t.p1)}if(arguments[0]instanceof S){var e=arguments[0];return at.distancePointLine(e,this.p0,this.p1)}},gn.prototype.pointAlong=function(t){var e=new S;return e.x=this.p0.x+t*(this.p1.x-this.p0.x),e.y=this.p0.y+t*(this.p1.y-this.p0.y),e},gn.prototype.hashCode=function(){var t=v.doubleToLongBits(this.p0.x);t^=31*v.doubleToLongBits(this.p0.y);var e=Math.trunc(t)^Math.trunc(t>>32),n=v.doubleToLongBits(this.p1.x);return n^=31*v.doubleToLongBits(this.p1.y),e^Math.trunc(n)^Math.trunc(n>>32)},gn.prototype.interfaces_=function(){return[x,e]},gn.prototype.getClass=function(){return gn},gn.midPoint=function(t,e){return new S((t.x+e.x)/2,(t.y+e.y)/2)},mn.serialVersionUID.get=function(){return 0x2d2172135f411c00},Object.defineProperties(gn,mn);var yn=function(){this.tempEnv1=new H,this.tempEnv2=new H,this._overlapSeg1=new gn,this._overlapSeg2=new gn};yn.prototype.overlap=function(){if(2===arguments.length);else if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];t.getLineSegment(e,this._overlapSeg1),n.getLineSegment(i,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}},yn.prototype.interfaces_=function(){return[]},yn.prototype.getClass=function(){return yn};var _n=function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this._pts=t,this._start=e,this._end=n,this._context=i};_n.prototype.getLineSegment=function(t,e){e.p0=this._pts[t],e.p1=this._pts[t+1]},_n.prototype.computeSelect=function(t,e,n,i){var r=this._pts[e],o=this._pts[n];if(i.tempEnv1.init(r,o),n-e==1)return i.select(this,e),null;if(!t.intersects(i.tempEnv1))return null;var s=Math.trunc((e+n)/2);e<s&&this.computeSelect(t,e,s,i),s<n&&this.computeSelect(t,s,n,i)},_n.prototype.getCoordinates=function(){for(var t=new Array(this._end-this._start+1).fill(null),e=0,n=this._start;n<=this._end;n++)t[e++]=this._pts[n];return t},_n.prototype.computeOverlaps=function(t,e){this.computeOverlapsInternal(this._start,this._end,t,t._start,t._end,e)},_n.prototype.setId=function(t){this._id=t},_n.prototype.select=function(t,e){this.computeSelect(t,this._start,this._end,e)},_n.prototype.getEnvelope=function(){if(null===this._env){var t=this._pts[this._start],e=this._pts[this._end];this._env=new H(t,e)}return this._env},_n.prototype.getEndIndex=function(){return this._end},_n.prototype.getStartIndex=function(){return this._start},_n.prototype.getContext=function(){return this._context},_n.prototype.getId=function(){return this._id},_n.prototype.computeOverlapsInternal=function(t,e,n,i,r,o){var s=this._pts[t],a=this._pts[e],u=n._pts[i],c=n._pts[r];if(e-t==1&&r-i==1)return o.overlap(this,t,n,i),null;if(o.tempEnv1.init(s,a),o.tempEnv2.init(u,c),!o.tempEnv1.intersects(o.tempEnv2))return null;var h=Math.trunc((t+e)/2),l=Math.trunc((i+r)/2);t<h&&(i<l&&this.computeOverlapsInternal(t,h,n,i,l,o),l<r&&this.computeOverlapsInternal(t,h,n,l,r,o)),h<e&&(i<l&&this.computeOverlapsInternal(h,e,n,i,l,o),l<r&&this.computeOverlapsInternal(h,e,n,l,r,o))},_n.prototype.interfaces_=function(){return[]},_n.prototype.getClass=function(){return _n};var vn=function(){};vn.prototype.interfaces_=function(){return[]},vn.prototype.getClass=function(){return vn},vn.getChainStartIndices=function(t){var e=0,n=new Mt;n.add(new R(e));do{var i=vn.findChainEnd(t,e);n.add(new R(i)),e=i}while(e<t.length-1);return vn.toIntArray(n)},vn.findChainEnd=function(t,e){for(var n=e;n<t.length-1&&t[n].equals2D(t[n+1]);)n++;if(n>=t.length-1)return t.length-1;for(var i=je.quadrant(t[n],t[n+1]),r=e+1;r<t.length;){if(!t[r-1].equals2D(t[r])&&je.quadrant(t[r-1],t[r])!==i)break;r++}return r-1},vn.getChains=function(){if(1===arguments.length){var t=arguments[0];return vn.getChains(t,null)}if(2===arguments.length){for(var e=arguments[0],n=arguments[1],i=new Mt,r=vn.getChainStartIndices(e),o=0;o<r.length-1;o++){var s=new _n(e,r[o],r[o+1],n);i.add(s)}return i}},vn.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var bn=function(){};bn.prototype.computeNodes=function(t){},bn.prototype.getNodedSubstrings=function(){},bn.prototype.interfaces_=function(){return[]},bn.prototype.getClass=function(){return bn};var xn=function(){if(this._segInt=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];this.setSegmentIntersector(t)}};xn.prototype.setSegmentIntersector=function(t){this._segInt=t},xn.prototype.interfaces_=function(){return[bn]},xn.prototype.getClass=function(){return xn};var wn=function(t){function e(e){e?t.call(this,e):t.call(this),this._monoChains=new Mt,this._index=new sn,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={SegmentOverlapAction:{configurable:!0}};return e.prototype.getMonotoneChains=function(){return this._monoChains},e.prototype.getNodedSubstrings=function(){return dn.getNodedSubstrings(this._nodedSegStrings)},e.prototype.getIndex=function(){return this._index},e.prototype.add=function(t){for(var e=vn.getChains(t.getCoordinates(),t).iterator();e.hasNext();){var n=e.next();n.setId(this._idCounter++),this._index.insert(n.getEnvelope(),n),this._monoChains.add(n)}},e.prototype.computeNodes=function(t){this._nodedSegStrings=t;for(var e=t.iterator();e.hasNext();)this.add(e.next());this.intersectChains()},e.prototype.intersectChains=function(){for(var t=new Mn(this._segInt),e=this._monoChains.iterator();e.hasNext();)for(var n=e.next(),i=this._index.query(n.getEnvelope()).iterator();i.hasNext();){var r=i.next();if(r.getId()>n.getId()&&(n.computeOverlaps(r,t),this._nOverlaps++),this._segInt.isDone())return null}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},n.SegmentOverlapAction.get=function(){return Mn},Object.defineProperties(e,n),e}(xn),Mn=function(t){function e(){t.call(this),this._si=null;var e=arguments[0];this._si=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.overlap=function(){if(4!==arguments.length)return t.prototype.overlap.apply(this,arguments);var e=arguments[0],n=arguments[1],i=arguments[2],r=arguments[3],o=e.getContext(),s=i.getContext();this._si.processIntersections(o,n,s,r)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(yn),Sn=function t(){if(this._quadrantSegments=t.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=t.CAP_ROUND,this._joinStyle=t.JOIN_ROUND,this._mitreLimit=t.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=t.DEFAULT_SIMPLIFY_FACTOR,0===arguments.length);else if(1===arguments.length){var e=arguments[0];this.setQuadrantSegments(e)}else if(2===arguments.length){var n=arguments[0],i=arguments[1];this.setQuadrantSegments(n),this.setEndCapStyle(i)}else if(4===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];this.setQuadrantSegments(r),this.setEndCapStyle(o),this.setJoinStyle(s),this.setMitreLimit(a)}},En={CAP_ROUND:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},JOIN_ROUND:{configurable:!0},JOIN_MITRE:{configurable:!0},JOIN_BEVEL:{configurable:!0},DEFAULT_QUADRANT_SEGMENTS:{configurable:!0},DEFAULT_MITRE_LIMIT:{configurable:!0},DEFAULT_SIMPLIFY_FACTOR:{configurable:!0}};Sn.prototype.getEndCapStyle=function(){return this._endCapStyle},Sn.prototype.isSingleSided=function(){return this._isSingleSided},Sn.prototype.setQuadrantSegments=function(t){this._quadrantSegments=t,0===this._quadrantSegments&&(this._joinStyle=Sn.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=Sn.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),t<=0&&(this._quadrantSegments=1),this._joinStyle!==Sn.JOIN_ROUND&&(this._quadrantSegments=Sn.DEFAULT_QUADRANT_SEGMENTS)},Sn.prototype.getJoinStyle=function(){return this._joinStyle},Sn.prototype.setJoinStyle=function(t){this._joinStyle=t},Sn.prototype.setSimplifyFactor=function(t){this._simplifyFactor=t<0?0:t},Sn.prototype.getSimplifyFactor=function(){return this._simplifyFactor},Sn.prototype.getQuadrantSegments=function(){return this._quadrantSegments},Sn.prototype.setEndCapStyle=function(t){this._endCapStyle=t},Sn.prototype.getMitreLimit=function(){return this._mitreLimit},Sn.prototype.setMitreLimit=function(t){this._mitreLimit=t},Sn.prototype.setSingleSided=function(t){this._isSingleSided=t},Sn.prototype.interfaces_=function(){return[]},Sn.prototype.getClass=function(){return Sn},Sn.bufferDistanceError=function(t){var e=Math.PI/2/t;return 1-Math.cos(e/2)},En.CAP_ROUND.get=function(){return 1},En.CAP_FLAT.get=function(){return 2},En.CAP_SQUARE.get=function(){return 3},En.JOIN_ROUND.get=function(){return 1},En.JOIN_MITRE.get=function(){return 2},En.JOIN_BEVEL.get=function(){return 3},En.DEFAULT_QUADRANT_SEGMENTS.get=function(){return 8},En.DEFAULT_MITRE_LIMIT.get=function(){return 5},En.DEFAULT_SIMPLIFY_FACTOR.get=function(){return.01},Object.defineProperties(Sn,En);var Cn=function(t){this._distanceTol=null,this._isDeleted=null,this._angleOrientation=at.COUNTERCLOCKWISE,this._inputLine=t||null},In={INIT:{configurable:!0},DELETE:{configurable:!0},KEEP:{configurable:!0},NUM_PTS_TO_CHECK:{configurable:!0}};Cn.prototype.isDeletable=function(t,e,n,i){var r=this._inputLine[t],o=this._inputLine[e],s=this._inputLine[n];return!!this.isConcave(r,o,s)&&!!this.isShallow(r,o,s,i)&&this.isShallowSampled(r,o,t,n,i)},Cn.prototype.deleteShallowConcavities=function(){for(var t=1,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e),i=!1;n<this._inputLine.length;){var r=!1;this.isDeletable(t,e,n,this._distanceTol)&&(this._isDeleted[e]=Cn.DELETE,r=!0,i=!0),t=r?n:e,e=this.findNextNonDeletedIndex(t),n=this.findNextNonDeletedIndex(e)}return i},Cn.prototype.isShallowConcavity=function(t,e,n,i){return at.computeOrientation(t,e,n)===this._angleOrientation&&at.distancePointLine(e,t,n)<i},Cn.prototype.isShallowSampled=function(t,e,n,i,r){var o=Math.trunc((i-n)/Cn.NUM_PTS_TO_CHECK);o<=0&&(o=1);for(var s=n;s<i;s+=o)if(!this.isShallow(t,e,this._inputLine[s],r))return!1;return!0},Cn.prototype.isConcave=function(t,e,n){var i=at.computeOrientation(t,e,n)===this._angleOrientation;return i},Cn.prototype.simplify=function(t){this._distanceTol=Math.abs(t),t<0&&(this._angleOrientation=at.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var e=!1;do{e=this.deleteShallowConcavities()}while(e);return this.collapseLine()},Cn.prototype.findNextNonDeletedIndex=function(t){for(var e=t+1;e<this._inputLine.length&&this._isDeleted[e]===Cn.DELETE;)e++;return e},Cn.prototype.isShallow=function(t,e,n,i){return at.distancePointLine(e,t,n)<i},Cn.prototype.collapseLine=function(){for(var t=new Et,e=0;e<this._inputLine.length;e++)this._isDeleted[e]!==Cn.DELETE&&t.add(this._inputLine[e]);return t.toCoordinateArray()},Cn.prototype.interfaces_=function(){return[]},Cn.prototype.getClass=function(){return Cn},Cn.simplify=function(t,e){return new Cn(t).simplify(e)},In.INIT.get=function(){return 0},In.DELETE.get=function(){return 1},In.KEEP.get=function(){return 1},In.NUM_PTS_TO_CHECK.get=function(){return 10},Object.defineProperties(Cn,In);var Ln=function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new Mt},On={COORDINATE_ARRAY_TYPE:{configurable:!0}};Ln.prototype.getCoordinates=function(){return this._ptList.toArray(Ln.COORDINATE_ARRAY_TYPE)},Ln.prototype.setPrecisionModel=function(t){this._precisionModel=t},Ln.prototype.addPt=function(t){var e=new S(t);if(this._precisionModel.makePrecise(e),this.isRedundant(e))return null;this._ptList.add(e)},Ln.prototype.revere=function(){},Ln.prototype.addPts=function(t,e){if(e)for(var n=0;n<t.length;n++)this.addPt(t[n]);else for(var i=t.length-1;i>=0;i--)this.addPt(t[i])},Ln.prototype.isRedundant=function(t){if(this._ptList.size()<1)return!1;var e=this._ptList.get(this._ptList.size()-1);return t.distance(e)<this._minimimVertexDistance},Ln.prototype.toString=function(){return(new ye).createLineString(this.getCoordinates()).toString()},Ln.prototype.closeRing=function(){if(this._ptList.size()<1)return null;var t=new S(this._ptList.get(0)),e=this._ptList.get(this._ptList.size()-1);if(t.equals(e))return null;this._ptList.add(t)},Ln.prototype.setMinimumVertexDistance=function(t){this._minimimVertexDistance=t},Ln.prototype.interfaces_=function(){return[]},Ln.prototype.getClass=function(){return Ln},On.COORDINATE_ARRAY_TYPE.get=function(){return new Array(0).fill(null)},Object.defineProperties(Ln,On);var Tn=function(){},Pn={PI_TIMES_2:{configurable:!0},PI_OVER_2:{configurable:!0},PI_OVER_4:{configurable:!0},COUNTERCLOCKWISE:{configurable:!0},CLOCKWISE:{configurable:!0},NONE:{configurable:!0}};Tn.prototype.interfaces_=function(){return[]},Tn.prototype.getClass=function(){return Tn},Tn.toDegrees=function(t){return 180*t/Math.PI},Tn.normalize=function(t){for(;t>Math.PI;)t-=Tn.PI_TIMES_2;for(;t<=-Math.PI;)t+=Tn.PI_TIMES_2;return t},Tn.angle=function(){if(1===arguments.length){var t=arguments[0];return Math.atan2(t.y,t.x)}if(2===arguments.length){var e=arguments[0],n=arguments[1],i=n.x-e.x,r=n.y-e.y;return Math.atan2(r,i)}},Tn.isAcute=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)>0},Tn.isObtuse=function(t,e,n){var i=t.x-e.x,r=t.y-e.y;return i*(n.x-e.x)+r*(n.y-e.y)<0},Tn.interiorAngle=function(t,e,n){var i=Tn.angle(e,t),r=Tn.angle(e,n);return Math.abs(r-i)},Tn.normalizePositive=function(t){if(t<0){for(;t<0;)t+=Tn.PI_TIMES_2;t>=Tn.PI_TIMES_2&&(t=0)}else{for(;t>=Tn.PI_TIMES_2;)t-=Tn.PI_TIMES_2;t<0&&(t=0)}return t},Tn.angleBetween=function(t,e,n){var i=Tn.angle(e,t),r=Tn.angle(e,n);return Tn.diff(i,r)},Tn.diff=function(t,e){var n=null;return(n=t<e?e-t:t-e)>Math.PI&&(n=2*Math.PI-n),n},Tn.toRadians=function(t){return t*Math.PI/180},Tn.getTurn=function(t,e){var n=Math.sin(e-t);return n>0?Tn.COUNTERCLOCKWISE:n<0?Tn.CLOCKWISE:Tn.NONE},Tn.angleBetweenOriented=function(t,e,n){var i=Tn.angle(e,t),r=Tn.angle(e,n)-i;return r<=-Math.PI?r+Tn.PI_TIMES_2:r>Math.PI?r-Tn.PI_TIMES_2:r},Pn.PI_TIMES_2.get=function(){return 2*Math.PI},Pn.PI_OVER_2.get=function(){return Math.PI/2},Pn.PI_OVER_4.get=function(){return Math.PI/4},Pn.COUNTERCLOCKWISE.get=function(){return at.COUNTERCLOCKWISE},Pn.CLOCKWISE.get=function(){return at.CLOCKWISE},Pn.NONE.get=function(){return at.COLLINEAR},Object.defineProperties(Tn,Pn);var Nn=function t(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new gn,this._seg1=new gn,this._offset0=new gn,this._offset1=new gn,this._side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],n=arguments[1],i=arguments[2];this._precisionModel=e,this._bufParams=n,this._li=new rt,this._filletAngleQuantum=Math.PI/2/n.getQuadrantSegments(),n.getQuadrantSegments()>=8&&n.getJoinStyle()===Sn.JOIN_ROUND&&(this._closingSegLengthFactor=t.MAX_CLOSING_SEG_LEN_FACTOR),this.init(i)},An={OFFSET_SEGMENT_SEPARATION_FACTOR:{configurable:!0},INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},CURVE_VERTEX_SNAP_DISTANCE_FACTOR:{configurable:!0},MAX_CLOSING_SEG_LEN_FACTOR:{configurable:!0}};Nn.prototype.addNextSegment=function(t,e){if(this._s0=this._s1,this._s1=this._s2,this._s2=t,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var n=at.computeOrientation(this._s0,this._s1,this._s2),i=n===at.CLOCKWISE&&this._side===Ee.LEFT||n===at.COUNTERCLOCKWISE&&this._side===Ee.RIGHT;0===n?this.addCollinear(e):i?this.addOutsideTurn(n,e):this.addInsideTurn(n,e)},Nn.prototype.addLineEndCap=function(t,e){var n=new gn(t,e),i=new gn;this.computeOffsetSegment(n,Ee.LEFT,this._distance,i);var r=new gn;this.computeOffsetSegment(n,Ee.RIGHT,this._distance,r);var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o);switch(this._bufParams.getEndCapStyle()){case Sn.CAP_ROUND:this._segList.addPt(i.p1),this.addFilletArc(e,a+Math.PI/2,a-Math.PI/2,at.CLOCKWISE,this._distance),this._segList.addPt(r.p1);break;case Sn.CAP_FLAT:this._segList.addPt(i.p1),this._segList.addPt(r.p1);break;case Sn.CAP_SQUARE:var u=new S;u.x=Math.abs(this._distance)*Math.cos(a),u.y=Math.abs(this._distance)*Math.sin(a);var c=new S(i.p1.x+u.x,i.p1.y+u.y),h=new S(r.p1.x+u.x,r.p1.y+u.y);this._segList.addPt(c),this._segList.addPt(h)}},Nn.prototype.getCoordinates=function(){return this._segList.getCoordinates()},Nn.prototype.addMitreJoin=function(t,e,n,i){var r=!0,o=null;try{o=Z.intersection(e.p0,e.p1,n.p0,n.p1),(i<=0?1:o.distance(t)/Math.abs(i))>this._bufParams.getMitreLimit()&&(r=!1)}catch(t){if(!(t instanceof U))throw t;o=new S(0,0),r=!1}r?this._segList.addPt(o):this.addLimitedMitreJoin(e,n,i,this._bufParams.getMitreLimit())},Nn.prototype.addFilletCorner=function(t,e,n,i,r){var o=e.x-t.x,s=e.y-t.y,a=Math.atan2(s,o),u=n.x-t.x,c=n.y-t.y,h=Math.atan2(c,u);i===at.CLOCKWISE?a<=h&&(a+=2*Math.PI):a>=h&&(a-=2*Math.PI),this._segList.addPt(e),this.addFilletArc(t,a,h,i,r),this._segList.addPt(n)},Nn.prototype.addOutsideTurn=function(t,e){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*Nn.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===Sn.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===Sn.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(e&&this._segList.addPt(this._offset0.p1),this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,t,this._distance),this._segList.addPt(this._offset1.p0))},Nn.prototype.createSquare=function(t){this._segList.addPt(new S(t.x+this._distance,t.y+this._distance)),this._segList.addPt(new S(t.x+this._distance,t.y-this._distance)),this._segList.addPt(new S(t.x-this._distance,t.y-this._distance)),this._segList.addPt(new S(t.x-this._distance,t.y+this._distance)),this._segList.closeRing()},Nn.prototype.addSegments=function(t,e){this._segList.addPts(t,e)},Nn.prototype.addFirstSegment=function(){this._segList.addPt(this._offset1.p0)},Nn.prototype.addLastSegment=function(){this._segList.addPt(this._offset1.p1)},Nn.prototype.initSideSegments=function(t,e,n){this._s1=t,this._s2=e,this._side=n,this._seg1.setCoordinates(t,e),this.computeOffsetSegment(this._seg1,n,this._distance,this._offset1)},Nn.prototype.addLimitedMitreJoin=function(t,e,n,i){var r=this._seg0.p1,o=Tn.angle(r,this._seg0.p0),s=Tn.angleBetweenOriented(this._seg0.p0,r,this._seg1.p1)/2,a=Tn.normalize(o+s),u=Tn.normalize(a+Math.PI),c=i*n,h=n-c*Math.abs(Math.sin(s)),l=r.x+c*Math.cos(u),f=r.y+c*Math.sin(u),p=new S(l,f),d=new gn(r,p),g=d.pointAlongOffset(1,h),m=d.pointAlongOffset(1,-h);this._side===Ee.LEFT?(this._segList.addPt(g),this._segList.addPt(m)):(this._segList.addPt(m),this._segList.addPt(g))},Nn.prototype.computeOffsetSegment=function(t,e,n,i){var r=e===Ee.LEFT?1:-1,o=t.p1.x-t.p0.x,s=t.p1.y-t.p0.y,a=Math.sqrt(o*o+s*s),u=r*n*o/a,c=r*n*s/a;i.p0.x=t.p0.x-c,i.p0.y=t.p0.y+u,i.p1.x=t.p1.x-c,i.p1.y=t.p1.y+u},Nn.prototype.addFilletArc=function(t,e,n,i,r){var o=i===at.CLOCKWISE?-1:1,s=Math.abs(e-n),a=Math.trunc(s/this._filletAngleQuantum+.5);if(a<1)return null;for(var u=s/a,c=0,h=new S;c<s;){var l=e+o*c;h.x=t.x+r*Math.cos(l),h.y=t.y+r*Math.sin(l),this._segList.addPt(h),c+=u}},Nn.prototype.addInsideTurn=function(t,e){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*Nn.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var n=new S((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(n);var i=new S((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(i)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}},Nn.prototype.createCircle=function(t){var e=new S(t.x+this._distance,t.y);this._segList.addPt(e),this.addFilletArc(t,0,2*Math.PI,-1,this._distance),this._segList.closeRing()},Nn.prototype.addBevelJoin=function(t,e){this._segList.addPt(t.p1),this._segList.addPt(e.p0)},Nn.prototype.init=function(t){this._distance=t,this._maxCurveSegmentError=t*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new Ln,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(t*Nn.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},Nn.prototype.addCollinear=function(t){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===Sn.JOIN_BEVEL||this._bufParams.getJoinStyle()===Sn.JOIN_MITRE?(t&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addFilletCorner(this._s1,this._offset0.p1,this._offset1.p0,at.CLOCKWISE,this._distance))},Nn.prototype.closeRing=function(){this._segList.closeRing()},Nn.prototype.hasNarrowConcaveAngle=function(){return this._hasNarrowConcaveAngle},Nn.prototype.interfaces_=function(){return[]},Nn.prototype.getClass=function(){return Nn},An.OFFSET_SEGMENT_SEPARATION_FACTOR.get=function(){return.001},An.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return.001},An.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get=function(){return 1e-6},An.MAX_CLOSING_SEG_LEN_FACTOR.get=function(){return 80},Object.defineProperties(Nn,An);var Rn=function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var t=arguments[0],e=arguments[1];this._precisionModel=t,this._bufParams=e};Rn.prototype.getOffsetCurve=function(t,e){if(this._distance=e,0===e)return null;var n=e<0,i=Math.abs(e),r=this.getSegGen(i);t.length<=1?this.computePointCurve(t[0],r):this.computeOffsetCurve(t,n,r);var o=r.getCoordinates();return n&&Ct.reverse(o),o},Rn.prototype.computeSingleSidedBufferCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){n.addSegments(t,!0);var r=Cn.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Ee.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(r[s],!0)}else{n.addSegments(t,!1);var a=Cn.simplify(t,i),u=a.length-1;n.initSideSegments(a[0],a[1],Ee.LEFT),n.addFirstSegment();for(var c=2;c<=u;c++)n.addNextSegment(a[c],!0)}n.addLastSegment(),n.closeRing()},Rn.prototype.computeRingBufferCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);e===Ee.RIGHT&&(i=-i);var r=Cn.simplify(t,i),o=r.length-1;n.initSideSegments(r[o-1],r[0],e);for(var s=1;s<=o;s++){var a=1!==s;n.addNextSegment(r[s],a)}n.closeRing()},Rn.prototype.computeLineBufferCurve=function(t,e){var n=this.simplifyTolerance(this._distance),i=Cn.simplify(t,n),r=i.length-1;e.initSideSegments(i[0],i[1],Ee.LEFT);for(var o=2;o<=r;o++)e.addNextSegment(i[o],!0);e.addLastSegment(),e.addLineEndCap(i[r-1],i[r]);var s=Cn.simplify(t,-n),a=s.length-1;e.initSideSegments(s[a],s[a-1],Ee.LEFT);for(var u=a-2;u>=0;u--)e.addNextSegment(s[u],!0);e.addLastSegment(),e.addLineEndCap(s[1],s[0]),e.closeRing()},Rn.prototype.computePointCurve=function(t,e){switch(this._bufParams.getEndCapStyle()){case Sn.CAP_ROUND:e.createCircle(t);break;case Sn.CAP_SQUARE:e.createSquare(t)}},Rn.prototype.getLineCurve=function(t,e){if(this._distance=e,e<0&&!this._bufParams.isSingleSided())return null;if(0===e)return null;var n=Math.abs(e),i=this.getSegGen(n);if(t.length<=1)this.computePointCurve(t[0],i);else if(this._bufParams.isSingleSided()){var r=e<0;this.computeSingleSidedBufferCurve(t,r,i)}else this.computeLineBufferCurve(t,i);return i.getCoordinates()},Rn.prototype.getBufferParameters=function(){return this._bufParams},Rn.prototype.simplifyTolerance=function(t){return t*this._bufParams.getSimplifyFactor()},Rn.prototype.getRingCurve=function(t,e,n){if(this._distance=n,t.length<=2)return this.getLineCurve(t,n);if(0===n)return Rn.copyCoordinates(t);var i=this.getSegGen(n);return this.computeRingBufferCurve(t,e,i),i.getCoordinates()},Rn.prototype.computeOffsetCurve=function(t,e,n){var i=this.simplifyTolerance(this._distance);if(e){var r=Cn.simplify(t,-i),o=r.length-1;n.initSideSegments(r[o],r[o-1],Ee.LEFT),n.addFirstSegment();for(var s=o-2;s>=0;s--)n.addNextSegment(r[s],!0)}else{var a=Cn.simplify(t,i),u=a.length-1;n.initSideSegments(a[0],a[1],Ee.LEFT),n.addFirstSegment();for(var c=2;c<=u;c++)n.addNextSegment(a[c],!0)}n.addLastSegment()},Rn.prototype.getSegGen=function(t){return new Nn(this._precisionModel,this._bufParams,t)},Rn.prototype.interfaces_=function(){return[]},Rn.prototype.getClass=function(){return Rn},Rn.copyCoordinates=function(t){for(var e=new Array(t.length).fill(null),n=0;n<e.length;n++)e[n]=new S(t[n]);return e};var Dn=function(){this._subgraphs=null,this._seg=new gn,this._cga=new at;var t=arguments[0];this._subgraphs=t},kn={DepthSegment:{configurable:!0}};Dn.prototype.findStabbedSegments=function(){if(1===arguments.length){for(var t=arguments[0],e=new Mt,n=this._subgraphs.iterator();n.hasNext();){var i=n.next(),r=i.getEnvelope();t.y<r.getMinY()||t.y>r.getMaxY()||this.findStabbedSegments(t,i.getDirectedEdges(),e)}return e}if(3===arguments.length)if(T(arguments[2],wt)&&arguments[0]instanceof S&&arguments[1]instanceof qe){for(var o=arguments[0],s=arguments[1],a=arguments[2],u=s.getEdge().getCoordinates(),c=0;c<u.length-1;c++)if(this._seg.p0=u[c],this._seg.p1=u[c+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<o.x)&&!(this._seg.isHorizontal()||o.y<this._seg.p0.y||o.y>this._seg.p1.y||at.computeOrientation(this._seg.p0,this._seg.p1,o)===at.RIGHT)){var h=s.getDepth(Ee.LEFT);this._seg.p0.equals(u[c])||(h=s.getDepth(Ee.RIGHT));var l=new Fn(this._seg,h);a.add(l)}}else if(T(arguments[2],wt)&&arguments[0]instanceof S&&T(arguments[1],wt))for(var f=arguments[0],p=arguments[1],d=arguments[2],g=p.iterator();g.hasNext();){var m=g.next();m.isForward()&&this.findStabbedSegments(f,m,d)}},Dn.prototype.getDepth=function(t){var e=this.findStabbedSegments(t);return 0===e.size()?0:Qe.min(e)._leftDepth},Dn.prototype.interfaces_=function(){return[]},Dn.prototype.getClass=function(){return Dn},kn.DepthSegment.get=function(){return Fn},Object.defineProperties(Dn,kn);var Fn=function(){this._upwardSeg=null,this._leftDepth=null;var t=arguments[0],e=arguments[1];this._upwardSeg=new gn(t),this._leftDepth=e};Fn.prototype.compareTo=function(t){var e=t;if(this._upwardSeg.minX()>=e._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=e._upwardSeg.minX())return-1;var n=this._upwardSeg.orientationIndex(e._upwardSeg);return 0!==n?n:0!=(n=-1*e._upwardSeg.orientationIndex(this._upwardSeg))?n:this._upwardSeg.compareTo(e._upwardSeg)},Fn.prototype.compareX=function(t,e){var n=t.p0.compareTo(e.p0);return 0!==n?n:t.p1.compareTo(e.p1)},Fn.prototype.toString=function(){return this._upwardSeg.toString()},Fn.prototype.interfaces_=function(){return[x]},Fn.prototype.getClass=function(){return Fn};var zn=function(t,e,n){this.p0=t||null,this.p1=e||null,this.p2=n||null};zn.prototype.area=function(){return zn.area(this.p0,this.p1,this.p2)},zn.prototype.signedArea=function(){return zn.signedArea(this.p0,this.p1,this.p2)},zn.prototype.interpolateZ=function(t){if(null===t)throw new _("Supplied point is null.");return zn.interpolateZ(t,this.p0,this.p1,this.p2)},zn.prototype.longestSideLength=function(){return zn.longestSideLength(this.p0,this.p1,this.p2)},zn.prototype.isAcute=function(){return zn.isAcute(this.p0,this.p1,this.p2)},zn.prototype.circumcentre=function(){return zn.circumcentre(this.p0,this.p1,this.p2)},zn.prototype.area3D=function(){return zn.area3D(this.p0,this.p1,this.p2)},zn.prototype.centroid=function(){return zn.centroid(this.p0,this.p1,this.p2)},zn.prototype.inCentre=function(){return zn.inCentre(this.p0,this.p1,this.p2)},zn.prototype.interfaces_=function(){return[]},zn.prototype.getClass=function(){return zn},zn.area=function(t,e,n){return Math.abs(((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2)},zn.signedArea=function(t,e,n){return((n.x-t.x)*(e.y-t.y)-(e.x-t.x)*(n.y-t.y))/2},zn.det=function(t,e,n,i){return t*i-e*n},zn.interpolateZ=function(t,e,n,i){var r=e.x,o=e.y,s=n.x-r,a=i.x-r,u=n.y-o,c=i.y-o,h=s*c-a*u,l=t.x-r,f=t.y-o,p=(c*l-a*f)/h,d=(-u*l+s*f)/h;return e.z+p*(n.z-e.z)+d*(i.z-e.z)},zn.longestSideLength=function(t,e,n){var i=t.distance(e),r=e.distance(n),o=n.distance(t),s=i;return r>s&&(s=r),o>s&&(s=o),s},zn.isAcute=function(t,e,n){return!!Tn.isAcute(t,e,n)&&!!Tn.isAcute(e,n,t)&&!!Tn.isAcute(n,t,e)},zn.circumcentre=function(t,e,n){var i=n.x,r=n.y,o=t.x-i,s=t.y-r,a=e.x-i,u=e.y-r,c=2*zn.det(o,s,a,u),h=zn.det(s,o*o+s*s,u,a*a+u*u),l=zn.det(o,o*o+s*s,a,a*a+u*u);return new S(i-h/c,r+l/c)},zn.perpendicularBisector=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=new Z(t.x+n/2,t.y+i/2,1),o=new Z(t.x-i+n/2,t.y+n+i/2,1);return new Z(r,o)},zn.angleBisector=function(t,e,n){var i=e.distance(t),r=i/(i+e.distance(n)),o=n.x-t.x,s=n.y-t.y;return new S(t.x+r*o,t.y+r*s)},zn.area3D=function(t,e,n){var i=e.x-t.x,r=e.y-t.y,o=e.z-t.z,s=n.x-t.x,a=n.y-t.y,u=n.z-t.z,c=r*u-o*a,h=o*s-i*u,l=i*a-r*s,f=c*c+h*h+l*l,p=Math.sqrt(f)/2;return p},zn.centroid=function(t,e,n){var i=(t.x+e.x+n.x)/3,r=(t.y+e.y+n.y)/3;return new S(i,r)},zn.inCentre=function(t,e,n){var i=e.distance(n),r=t.distance(n),o=t.distance(e),s=i+r+o,a=(i*t.x+r*e.x+o*n.x)/s,u=(i*t.y+r*e.y+o*n.y)/s;return new S(a,u)};var jn=function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new Mt;var t=arguments[0],e=arguments[1],n=arguments[2];this._inputGeom=t,this._distance=e,this._curveBuilder=n};jn.prototype.addPoint=function(t){if(this._distance<=0)return null;var e=t.getCoordinates(),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,L.EXTERIOR,L.INTERIOR)},jn.prototype.addPolygon=function(t){var e=this._distance,n=Ee.LEFT;this._distance<0&&(e=-this._distance,n=Ee.RIGHT);var i=t.getExteriorRing(),r=Ct.removeRepeatedPoints(i.getCoordinates());if(this._distance<0&&this.isErodedCompletely(i,this._distance))return null;if(this._distance<=0&&r.length<3)return null;this.addPolygonRing(r,e,n,L.EXTERIOR,L.INTERIOR);for(var o=0;o<t.getNumInteriorRing();o++){var s=t.getInteriorRingN(o),a=Ct.removeRepeatedPoints(s.getCoordinates());this._distance>0&&this.isErodedCompletely(s,-this._distance)||this.addPolygonRing(a,e,Ee.opposite(n),L.INTERIOR,L.EXTERIOR)}},jn.prototype.isTriangleErodedCompletely=function(t,e){var n=new zn(t[0],t[1],t[2]),i=n.inCentre();return at.distancePointLine(i,n.p0,n.p1)<Math.abs(e)},jn.prototype.addLineString=function(t){if(this._distance<=0&&!this._curveBuilder.getBufferParameters().isSingleSided())return null;var e=Ct.removeRepeatedPoints(t.getCoordinates()),n=this._curveBuilder.getLineCurve(e,this._distance);this.addCurve(n,L.EXTERIOR,L.INTERIOR)},jn.prototype.addCurve=function(t,e,n){if(null===t||t.length<2)return null;var i=new dn(t,new Ne(0,L.BOUNDARY,e,n));this._curveList.add(i)},jn.prototype.getCurves=function(){return this.add(this._inputGeom),this._curveList},jn.prototype.addPolygonRing=function(t,e,n,i,r){if(0===e&&t.length<ee.MINIMUM_VALID_SIZE)return null;var o=i,s=r;t.length>=ee.MINIMUM_VALID_SIZE&&at.isCCW(t)&&(o=r,s=i,n=Ee.opposite(n));var a=this._curveBuilder.getRingCurve(t,n,e);this.addCurve(a,o,s)},jn.prototype.add=function(t){if(t.isEmpty())return null;t instanceof Qt?this.addPolygon(t):t instanceof Wt?this.addLineString(t):t instanceof Kt?this.addPoint(t):t instanceof te?this.addCollection(t):t instanceof Ut?this.addCollection(t):t instanceof ne?this.addCollection(t):t instanceof qt&&this.addCollection(t)},jn.prototype.isErodedCompletely=function(t,e){var n=t.getCoordinates();if(n.length<4)return e<0;if(4===n.length)return this.isTriangleErodedCompletely(n,e);var i=t.getEnvelopeInternal(),r=Math.min(i.getHeight(),i.getWidth());return e<0&&2*Math.abs(e)>r},jn.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},jn.prototype.interfaces_=function(){return[]},jn.prototype.getClass=function(){return jn};var Bn=function(){};Bn.prototype.locate=function(t){},Bn.prototype.interfaces_=function(){return[]},Bn.prototype.getClass=function(){return Bn};var Gn=function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var t=arguments[0];this._parent=t,this._atStart=!0,this._index=0,this._max=t.getNumGeometries()};Gn.prototype.next=function(){if(this._atStart)return this._atStart=!1,Gn.isAtomic(this._parent)&&this._index++,this._parent;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new i;var t=this._parent.getGeometryN(this._index++);return t instanceof qt?(this._subcollectionIterator=new Gn(t),this._subcollectionIterator.next()):t},Gn.prototype.remove=function(){throw new Error(this.getClass().getName())},Gn.prototype.hasNext=function(){if(this._atStart)return!0;if(null!==this._subcollectionIterator){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)},Gn.prototype.interfaces_=function(){return[xt]},Gn.prototype.getClass=function(){return Gn},Gn.isAtomic=function(t){return!(t instanceof qt)};var qn=function(){this._geom=null;var t=arguments[0];this._geom=t};qn.prototype.locate=function(t){return qn.locate(t,this._geom)},qn.prototype.interfaces_=function(){return[Bn]},qn.prototype.getClass=function(){return qn},qn.isPointInRing=function(t,e){return!!e.getEnvelopeInternal().intersects(t)&&at.isPointInRing(t,e.getCoordinates())},qn.containsPointInPolygon=function(t,e){if(e.isEmpty())return!1;var n=e.getExteriorRing();if(!qn.isPointInRing(t,n))return!1;for(var i=0;i<e.getNumInteriorRing();i++){var r=e.getInteriorRingN(i);if(qn.isPointInRing(t,r))return!1}return!0},qn.containsPoint=function(t,e){if(e instanceof Qt)return qn.containsPointInPolygon(t,e);if(e instanceof qt)for(var n=new Gn(e);n.hasNext();){var i=n.next();if(i!==e&&qn.containsPoint(t,i))return!0}return!1},qn.locate=function(t,e){return e.isEmpty()?L.EXTERIOR:qn.containsPoint(t,e)?L.INTERIOR:L.EXTERIOR};var Un=function(){this._edgeMap=new l,this._edgeList=null,this._ptInAreaLocation=[L.NONE,L.NONE]};Un.prototype.getNextCW=function(t){this.getEdges();var e=this._edgeList.indexOf(t),n=e-1;return 0===e&&(n=this._edgeList.size()-1),this._edgeList.get(n)},Un.prototype.propagateSideLabels=function(t){for(var e=L.NONE,n=this.iterator();n.hasNext();){var i=n.next().getLabel();i.isArea(t)&&i.getLocation(t,Ee.LEFT)!==L.NONE&&(e=i.getLocation(t,Ee.LEFT))}if(e===L.NONE)return null;for(var r=e,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getLabel();if(a.getLocation(t,Ee.ON)===L.NONE&&a.setLocation(t,Ee.ON,r),a.isArea(t)){var u=a.getLocation(t,Ee.LEFT),c=a.getLocation(t,Ee.RIGHT);if(c!==L.NONE){if(c!==r)throw new Le("side location conflict",s.getCoordinate());u===L.NONE&&et.shouldNeverReachHere("found single null side (at "+s.getCoordinate()+")"),r=u}else et.isTrue(a.getLocation(t,Ee.LEFT)===L.NONE,"found single null side"),a.setLocation(t,Ee.RIGHT,r),a.setLocation(t,Ee.LEFT,r)}}},Un.prototype.getCoordinate=function(){var t=this.iterator();return t.hasNext()?t.next().getCoordinate():null},Un.prototype.print=function(t){V.out.println("EdgeEndStar:   "+this.getCoordinate());for(var e=this.iterator();e.hasNext();)e.next().print(t)},Un.prototype.isAreaLabelsConsistent=function(t){return this.computeEdgeEndLabels(t.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},Un.prototype.checkAreaLabelsConsistent=function(t){var e=this.getEdges();if(e.size()<=0)return!0;var n=e.size()-1,i=e.get(n).getLabel().getLocation(t,Ee.LEFT);et.isTrue(i!==L.NONE,"Found unlabelled area edge");for(var r=i,o=this.iterator();o.hasNext();){var s=o.next().getLabel();et.isTrue(s.isArea(t),"Found non-area edge");var a=s.getLocation(t,Ee.LEFT),u=s.getLocation(t,Ee.RIGHT);if(a===u)return!1;if(u!==r)return!1;r=a}return!0},Un.prototype.findIndex=function(t){this.iterator();for(var e=0;e<this._edgeList.size();e++)if(this._edgeList.get(e)===t)return e;return-1},Un.prototype.iterator=function(){return this.getEdges().iterator()},Un.prototype.getEdges=function(){return null===this._edgeList&&(this._edgeList=new Mt(this._edgeMap.values())),this._edgeList},Un.prototype.getLocation=function(t,e,n){return this._ptInAreaLocation[t]===L.NONE&&(this._ptInAreaLocation[t]=qn.locate(e,n[t].getGeometry())),this._ptInAreaLocation[t]},Un.prototype.toString=function(){var t=new A;t.append("EdgeEndStar:   "+this.getCoordinate()),t.append("\n");for(var e=this.iterator();e.hasNext();){var n=e.next();t.append(n),t.append("\n")}return t.toString()},Un.prototype.computeEdgeEndLabels=function(t){for(var e=this.iterator();e.hasNext();)e.next().computeLabel(t)},Un.prototype.computeLabelling=function(t){this.computeEdgeEndLabels(t[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var e=[!1,!1],n=this.iterator();n.hasNext();)for(var i=n.next().getLabel(),r=0;r<2;r++)i.isLine(r)&&i.getLocation(r)===L.BOUNDARY&&(e[r]=!0);for(var o=this.iterator();o.hasNext();)for(var s=o.next(),a=s.getLabel(),u=0;u<2;u++)if(a.isAnyNull(u)){var c=L.NONE;if(e[u])c=L.EXTERIOR;else{var h=s.getCoordinate();c=this.getLocation(u,h,t)}a.setAllLocationsIfNull(u,c)}},Un.prototype.getDegree=function(){return this._edgeMap.size()},Un.prototype.insertEdgeEnd=function(t,e){this._edgeMap.put(t,e),this._edgeList=null},Un.prototype.interfaces_=function(){return[]},Un.prototype.getClass=function(){return Un};var Vn=function(t){function e(){t.call(this),this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linkResultDirectedEdges=function(){this.getResultAreaEdges();for(var t=null,e=null,n=this._SCANNING_FOR_INCOMING,i=0;i<this._resultAreaEdgeList.size();i++){var r=this._resultAreaEdgeList.get(i),o=r.getSym();if(r.getLabel().isArea())switch(null===t&&r.isInResult()&&(t=r),n){case this._SCANNING_FOR_INCOMING:if(!o.isInResult())continue;e=o,n=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!r.isInResult())continue;e.setNext(r),n=this._SCANNING_FOR_INCOMING}}if(n===this._LINKING_TO_OUTGOING){if(null===t)throw new Le("no outgoing dirEdge found",this.getCoordinate());et.isTrue(t.isInResult(),"unable to link last incoming dirEdge"),e.setNext(t)}},e.prototype.insert=function(t){var e=t;this.insertEdgeEnd(e,e)},e.prototype.getRightmostEdge=function(){var t=this.getEdges(),e=t.size();if(e<1)return null;var n=t.get(0);if(1===e)return n;var i=t.get(e-1),r=n.getQuadrant(),o=i.getQuadrant();return je.isNorthern(r)&&je.isNorthern(o)?n:je.isNorthern(r)||je.isNorthern(o)?0!==n.getDy()?n:0!==i.getDy()?i:(et.shouldNeverReachHere("found two horizontal edges incident on node"),null):i},e.prototype.print=function(t){V.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var e=this.iterator();e.hasNext();){var n=e.next();t.print("out "),n.print(t),t.println(),t.print("in "),n.getSym().print(t),t.println()}},e.prototype.getResultAreaEdges=function(){if(null!==this._resultAreaEdgeList)return this._resultAreaEdgeList;this._resultAreaEdgeList=new Mt;for(var t=this.iterator();t.hasNext();){var e=t.next();(e.isInResult()||e.getSym().isInResult())&&this._resultAreaEdgeList.add(e)}return this._resultAreaEdgeList},e.prototype.updateLabelling=function(t){for(var e=this.iterator();e.hasNext();){var n=e.next().getLabel();n.setAllLocationsIfNull(0,t.getLocation(0)),n.setAllLocationsIfNull(1,t.getLocation(1))}},e.prototype.linkAllDirectedEdges=function(){this.getEdges();for(var t=null,e=null,n=this._edgeList.size()-1;n>=0;n--){var i=this._edgeList.get(n),r=i.getSym();null===e&&(e=r),null!==t&&r.setNext(t),t=i}e.setNext(t)},e.prototype.computeDepths=function(){if(1===arguments.length){var t=arguments[0],e=this.findIndex(t),n=t.getDepth(Ee.LEFT),i=t.getDepth(Ee.RIGHT),r=this.computeDepths(e+1,this._edgeList.size(),n);if(this.computeDepths(0,e,r)!==i)throw new Le("depth mismatch at "+t.getCoordinate())}else if(3===arguments.length){for(var o=arguments[0],s=arguments[1],a=arguments[2],u=o;u<s;u++){var c=this._edgeList.get(u);c.setEdgeDepths(Ee.RIGHT,a),a=c.getDepth(Ee.LEFT)}return a}},e.prototype.mergeSymLabels=function(){for(var t=this.iterator();t.hasNext();){var e=t.next();e.getLabel().merge(e.getSym().getLabel())}},e.prototype.linkMinimalDirectedEdges=function(t){for(var e=null,n=null,i=this._SCANNING_FOR_INCOMING,r=this._resultAreaEdgeList.size()-1;r>=0;r--){var o=this._resultAreaEdgeList.get(r),s=o.getSym();switch(null===e&&o.getEdgeRing()===t&&(e=o),i){case this._SCANNING_FOR_INCOMING:if(s.getEdgeRing()!==t)continue;n=s,i=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(o.getEdgeRing()!==t)continue;n.setNextMin(o),i=this._SCANNING_FOR_INCOMING}}i===this._LINKING_TO_OUTGOING&&(et.isTrue(null!==e,"found null for first outgoing dirEdge"),et.isTrue(e.getEdgeRing()===t,"unable to link last incoming dirEdge"),n.setNextMin(e))},e.prototype.getOutgoingDegree=function(){if(0===arguments.length){for(var t=0,e=this.iterator();e.hasNext();)e.next().isInResult()&&t++;return t}if(1===arguments.length){for(var n=arguments[0],i=0,r=this.iterator();r.hasNext();)r.next().getEdgeRing()===n&&i++;return i}},e.prototype.getLabel=function(){return this._label},e.prototype.findCoveredLineEdges=function(){for(var t=L.NONE,e=this.iterator();e.hasNext();){var n=e.next(),i=n.getSym();if(!n.isLineEdge()){if(n.isInResult()){t=L.INTERIOR;break}if(i.isInResult()){t=L.EXTERIOR;break}}}if(t===L.NONE)return null;for(var r=t,o=this.iterator();o.hasNext();){var s=o.next(),a=s.getSym();s.isLineEdge()?s.getEdge().setCovered(r===L.INTERIOR):(s.isInResult()&&(r=L.EXTERIOR),a.isInResult()&&(r=L.INTERIOR))}},e.prototype.computeLabelling=function(e){t.prototype.computeLabelling.call(this,e),this._label=new Ne(L.NONE);for(var n=this.iterator();n.hasNext();)for(var i=n.next().getEdge().getLabel(),r=0;r<2;r++){var o=i.getLocation(r);o!==L.INTERIOR&&o!==L.BOUNDARY||this._label.setLocation(r,L.INTERIOR)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Un),Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createNode=function(t){return new Fe(t,new Vn)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Ue),Hn=function t(){this._pts=null,this._orientation=null;var e=arguments[0];this._pts=e,this._orientation=t.orientation(e)};Hn.prototype.compareTo=function(t){var e=t;return Hn.compareOriented(this._pts,this._orientation,e._pts,e._orientation)},Hn.prototype.interfaces_=function(){return[x]},Hn.prototype.getClass=function(){return Hn},Hn.orientation=function(t){return 1===Ct.increasingDirection(t)},Hn.compareOriented=function(t,e,n,i){for(var r=e?1:-1,o=i?1:-1,s=e?t.length:-1,a=i?n.length:-1,u=e?0:t.length-1,c=i?0:n.length-1;;){var h=t[u].compareTo(n[c]);if(0!==h)return h;var l=(u+=r)===s,f=(c+=o)===a;if(l&&!f)return-1;if(!l&&f)return 1;if(l&&f)return 0}};var $n=function(){this._edges=new Mt,this._ocaMap=new l};$n.prototype.print=function(t){t.print("MULTILINESTRING ( ");for(var e=0;e<this._edges.size();e++){var n=this._edges.get(e);e>0&&t.print(","),t.print("(");for(var i=n.getCoordinates(),r=0;r<i.length;r++)r>0&&t.print(","),t.print(i[r].x+" "+i[r].y);t.println(")")}t.print(")  ")},$n.prototype.addAll=function(t){for(var e=t.iterator();e.hasNext();)this.add(e.next())},$n.prototype.findEdgeIndex=function(t){for(var e=0;e<this._edges.size();e++)if(this._edges.get(e).equals(t))return e;return-1},$n.prototype.iterator=function(){return this._edges.iterator()},$n.prototype.getEdges=function(){return this._edges},$n.prototype.get=function(t){return this._edges.get(t)},$n.prototype.findEqualEdge=function(t){var e=new Hn(t.getCoordinates());return this._ocaMap.get(e)},$n.prototype.add=function(t){this._edges.add(t);var e=new Hn(t.getCoordinates());this._ocaMap.put(e,t)},$n.prototype.interfaces_=function(){return[]},$n.prototype.getClass=function(){return $n};var Yn=function(){};Yn.prototype.processIntersections=function(t,e,n,i){},Yn.prototype.isDone=function(){},Yn.prototype.interfaces_=function(){return[]},Yn.prototype.getClass=function(){return Yn};var Wn=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var t=arguments[0];this._li=t};Wn.prototype.isTrivialIntersection=function(t,e,n,i){if(t===n&&1===this._li.getIntersectionNum()){if(Wn.isAdjacentSegments(e,i))return!0;if(t.isClosed()){var r=t.size()-1;if(0===e&&i===r||0===i&&e===r)return!0}}return!1},Wn.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},Wn.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},Wn.prototype.getLineIntersector=function(){return this._li},Wn.prototype.hasProperIntersection=function(){return this._hasProper},Wn.prototype.processIntersections=function(t,e,n,i){if(t===n&&e===i)return null;this.numTests++;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(t,e,n,i)||(this._hasIntersection=!0,t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))},Wn.prototype.hasIntersection=function(){return this._hasIntersection},Wn.prototype.isDone=function(){return!1},Wn.prototype.hasInteriorIntersection=function(){return this._hasInterior},Wn.prototype.interfaces_=function(){return[Yn]},Wn.prototype.getClass=function(){return Wn},Wn.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var Xn=function(){this.coord=null,this.segmentIndex=null,this.dist=null;var t=arguments[0],e=arguments[1],n=arguments[2];this.coord=new S(t),this.segmentIndex=e,this.dist=n};Xn.prototype.getSegmentIndex=function(){return this.segmentIndex},Xn.prototype.getCoordinate=function(){return this.coord},Xn.prototype.print=function(t){t.print(this.coord),t.print(" seg # = "+this.segmentIndex),t.println(" dist = "+this.dist)},Xn.prototype.compareTo=function(t){var e=t;return this.compare(e.segmentIndex,e.dist)},Xn.prototype.isEndPoint=function(t){return 0===this.segmentIndex&&0===this.dist||this.segmentIndex===t},Xn.prototype.toString=function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},Xn.prototype.getDistance=function(){return this.dist},Xn.prototype.compare=function(t,e){return this.segmentIndex<t?-1:this.segmentIndex>t?1:this.dist<e?-1:this.dist>e?1:0},Xn.prototype.interfaces_=function(){return[x]},Xn.prototype.getClass=function(){return Xn};var Kn=function(){this._nodeMap=new l,this.edge=null;var t=arguments[0];this.edge=t};Kn.prototype.print=function(t){t.println("Intersections:");for(var e=this.iterator();e.hasNext();)e.next().print(t)},Kn.prototype.iterator=function(){return this._nodeMap.values().iterator()},Kn.prototype.addSplitEdges=function(t){this.addEndpoints();for(var e=this.iterator(),n=e.next();e.hasNext();){var i=e.next(),r=this.createSplitEdge(n,i);t.add(r),n=i}},Kn.prototype.addEndpoints=function(){var t=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[t],t,0)},Kn.prototype.createSplitEdge=function(t,e){var n=e.segmentIndex-t.segmentIndex+2,i=this.edge.pts[e.segmentIndex],r=e.dist>0||!e.coord.equals2D(i);r||n--;var o=new Array(n).fill(null),s=0;o[s++]=new S(t.coord);for(var a=t.segmentIndex+1;a<=e.segmentIndex;a++)o[s++]=this.edge.pts[a];return r&&(o[s]=e.coord),new ni(o,new Ne(this.edge._label))},Kn.prototype.add=function(t,e,n){var i=new Xn(t,e,n),r=this._nodeMap.get(i);return null!==r?r:(this._nodeMap.put(i,i),i)},Kn.prototype.isIntersection=function(t){for(var e=this.iterator();e.hasNext();)if(e.next().coord.equals(t))return!0;return!1},Kn.prototype.interfaces_=function(){return[]},Kn.prototype.getClass=function(){return Kn};var Jn=function(){};Jn.prototype.getChainStartIndices=function(t){var e=0,n=new Mt;n.add(new R(e));do{var i=this.findChainEnd(t,e);n.add(new R(i)),e=i}while(e<t.length-1);return Jn.toIntArray(n)},Jn.prototype.findChainEnd=function(t,e){for(var n=je.quadrant(t[e],t[e+1]),i=e+1;i<t.length;){if(je.quadrant(t[i-1],t[i])!==n)break;i++}return i-1},Jn.prototype.interfaces_=function(){return[]},Jn.prototype.getClass=function(){return Jn},Jn.toIntArray=function(t){for(var e=new Array(t.size()).fill(null),n=0;n<e.length;n++)e[n]=t.get(n).intValue();return e};var Qn=function(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new H,this.env2=new H;var t=arguments[0];this.e=t,this.pts=t.getCoordinates();var e=new Jn;this.startIndex=e.getChainStartIndices(this.pts)};Qn.prototype.getCoordinates=function(){return this.pts},Qn.prototype.getMaxX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e>n?e:n},Qn.prototype.getMinX=function(t){var e=this.pts[this.startIndex[t]].x,n=this.pts[this.startIndex[t+1]].x;return e<n?e:n},Qn.prototype.computeIntersectsForChain=function(){if(4===arguments.length){var t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3];this.computeIntersectsForChain(this.startIndex[t],this.startIndex[t+1],e,e.startIndex[n],e.startIndex[n+1],i)}else if(6===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3],u=arguments[4],c=arguments[5],h=this.pts[r],l=this.pts[o],f=s.pts[a],p=s.pts[u];if(o-r==1&&u-a==1)return c.addIntersections(this.e,r,s.e,a),null;if(this.env1.init(h,l),this.env2.init(f,p),!this.env1.intersects(this.env2))return null;var d=Math.trunc((r+o)/2),g=Math.trunc((a+u)/2);r<d&&(a<g&&this.computeIntersectsForChain(r,d,s,a,g,c),g<u&&this.computeIntersectsForChain(r,d,s,g,u,c)),d<o&&(a<g&&this.computeIntersectsForChain(d,o,s,a,g,c),g<u&&this.computeIntersectsForChain(d,o,s,g,u,c))}},Qn.prototype.getStartIndexes=function(){return this.startIndex},Qn.prototype.computeIntersects=function(t,e){for(var n=0;n<this.startIndex.length-1;n++)for(var i=0;i<t.startIndex.length-1;i++)this.computeIntersectsForChain(n,t,i,e)},Qn.prototype.interfaces_=function(){return[]},Qn.prototype.getClass=function(){return Qn};var ti=function t(){this._depth=Array(2).fill().map(function(){return Array(3)});for(var e=0;e<2;e++)for(var n=0;n<3;n++)this._depth[e][n]=t.NULL_VALUE},ei={NULL_VALUE:{configurable:!0}};ti.prototype.getDepth=function(t,e){return this._depth[t][e]},ti.prototype.setDepth=function(t,e,n){this._depth[t][e]=n},ti.prototype.isNull=function(){if(0===arguments.length){for(var t=0;t<2;t++)for(var e=0;e<3;e++)if(this._depth[t][e]!==ti.NULL_VALUE)return!1;return!0}if(1===arguments.length){var n=arguments[0];return this._depth[n][1]===ti.NULL_VALUE}if(2===arguments.length){var i=arguments[0],r=arguments[1];return this._depth[i][r]===ti.NULL_VALUE}},ti.prototype.normalize=function(){for(var t=0;t<2;t++)if(!this.isNull(t)){var e=this._depth[t][1];this._depth[t][2]<e&&(e=this._depth[t][2]),e<0&&(e=0);for(var n=1;n<3;n++){var i=0;this._depth[t][n]>e&&(i=1),this._depth[t][n]=i}}},ti.prototype.getDelta=function(t){return this._depth[t][Ee.RIGHT]-this._depth[t][Ee.LEFT]},ti.prototype.getLocation=function(t,e){return this._depth[t][e]<=0?L.EXTERIOR:L.INTERIOR},ti.prototype.toString=function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]},ti.prototype.add=function(){if(1===arguments.length)for(var t=arguments[0],e=0;e<2;e++)for(var n=1;n<3;n++){var i=t.getLocation(e,n);i!==L.EXTERIOR&&i!==L.INTERIOR||(this.isNull(e,n)?this._depth[e][n]=ti.depthAtLocation(i):this._depth[e][n]+=ti.depthAtLocation(i))}else if(3===arguments.length){var r=arguments[0],o=arguments[1];arguments[2]===L.INTERIOR&&this._depth[r][o]++}},ti.prototype.interfaces_=function(){return[]},ti.prototype.getClass=function(){return ti},ti.depthAtLocation=function(t){return t===L.EXTERIOR?0:t===L.INTERIOR?1:ti.NULL_VALUE},ei.NULL_VALUE.get=function(){return-1},Object.defineProperties(ti,ei);var ni=function(t){function e(){if(t.call(this),this.pts=null,this._env=null,this.eiList=new Kn(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new ti,this._depthDelta=0,1===arguments.length){var n=arguments[0];e.call(this,n,null)}else if(2===arguments.length){var i=arguments[0],r=arguments[1];this.pts=i,this._label=r}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDepth=function(){return this._depth},e.prototype.getCollapsedEdge=function(){var t=new Array(2).fill(null);return t[0]=this.pts[0],t[1]=this.pts[1],new e(t,Ne.toLineLabel(this._label))},e.prototype.isIsolated=function(){return this._isIsolated},e.prototype.getCoordinates=function(){return this.pts},e.prototype.setIsolated=function(t){this._isIsolated=t},e.prototype.setName=function(t){this._name=t},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.pts.length!==n.pts.length)return!1;for(var i=!0,r=!0,o=this.pts.length,s=0;s<this.pts.length;s++)if(this.pts[s].equals2D(n.pts[s])||(i=!1),this.pts[s].equals2D(n.pts[--o])||(r=!1),!i&&!r)return!1;return!0},e.prototype.getCoordinate=function(){if(0===arguments.length)return this.pts.length>0?this.pts[0]:null;if(1===arguments.length){var t=arguments[0];return this.pts[t]}},e.prototype.print=function(t){t.print("edge "+this._name+": "),t.print("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.print(","),t.print(this.pts[e].x+" "+this.pts[e].y);t.print(")  "+this._label+" "+this._depthDelta)},e.prototype.computeIM=function(t){e.updateIM(this._label,t)},e.prototype.isCollapsed=function(){return!!this._label.isArea()&&3===this.pts.length&&!!this.pts[0].equals(this.pts[2])},e.prototype.isClosed=function(){return this.pts[0].equals(this.pts[this.pts.length-1])},e.prototype.getMaximumSegmentIndex=function(){return this.pts.length-1},e.prototype.getDepthDelta=function(){return this._depthDelta},e.prototype.getNumPoints=function(){return this.pts.length},e.prototype.printReverse=function(t){t.print("edge "+this._name+": ");for(var e=this.pts.length-1;e>=0;e--)t.print(this.pts[e]+" ");t.println("")},e.prototype.getMonotoneChainEdge=function(){return null===this._mce&&(this._mce=new Qn(this)),this._mce},e.prototype.getEnvelope=function(){if(null===this._env){this._env=new H;for(var t=0;t<this.pts.length;t++)this._env.expandToInclude(this.pts[t])}return this._env},e.prototype.addIntersection=function(t,e,n,i){var r=new S(t.getIntersection(i)),o=e,s=t.getEdgeDistance(n,i),a=o+1;if(a<this.pts.length){var u=this.pts[a];r.equals2D(u)&&(o=a,s=0)}this.eiList.add(r,o,s)},e.prototype.toString=function(){var t=new A;t.append("edge "+this._name+": "),t.append("LINESTRING (");for(var e=0;e<this.pts.length;e++)e>0&&t.append(","),t.append(this.pts[e].x+" "+this.pts[e].y);return t.append(")  "+this._label+" "+this._depthDelta),t.toString()},e.prototype.isPointwiseEqual=function(t){if(this.pts.length!==t.pts.length)return!1;for(var e=0;e<this.pts.length;e++)if(!this.pts[e].equals2D(t.pts[e]))return!1;return!0},e.prototype.setDepthDelta=function(t){this._depthDelta=t},e.prototype.getEdgeIntersectionList=function(){return this.eiList},e.prototype.addIntersections=function(t,e,n){for(var i=0;i<t.getIntersectionNum();i++)this.addIntersection(t,e,n,i)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.updateIM=function(){if(2!==arguments.length)return t.prototype.updateIM.apply(this,arguments);var e=arguments[0],n=arguments[1];n.setAtLeastIfValid(e.getLocation(0,Ee.ON),e.getLocation(1,Ee.ON),1),e.isArea()&&(n.setAtLeastIfValid(e.getLocation(0,Ee.LEFT),e.getLocation(1,Ee.LEFT),2),n.setAtLeastIfValid(e.getLocation(0,Ee.RIGHT),e.getLocation(1,Ee.RIGHT),2))},e}(ke),ii=function(t){this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new $n,this._bufParams=t||null};ii.prototype.setWorkingPrecisionModel=function(t){this._workingPrecisionModel=t},ii.prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),i=t.getLabel();e.isPointwiseEqual(t)||(i=new Ne(t.getLabel())).flip(),n.merge(i);var r=ii.depthDelta(i),o=e.getDepthDelta()+r;e.setDepthDelta(o)}else this._edgeList.add(t),t.setDepthDelta(ii.depthDelta(t.getLabel()))},ii.prototype.buildSubgraphs=function(t,e){for(var n=new Mt,i=t.iterator();i.hasNext();){var r=i.next(),o=r.getRightmostCoordinate(),s=new Dn(n).getDepth(o);r.computeDepth(s),r.findResultEdges(),n.add(r),e.add(r.getDirectedEdges(),r.getNodes())}},ii.prototype.createSubgraphs=function(t){for(var e=new Mt,n=t.getNodes().iterator();n.hasNext();){var i=n.next();if(!i.isVisited()){var r=new Te;r.create(i),e.add(r)}}return Qe.sort(e,Qe.reverseOrder()),e},ii.prototype.createEmptyResultGeometry=function(){return this._geomFact.createPolygon()},ii.prototype.getNoder=function(t){if(null!==this._workingNoder)return this._workingNoder;var e=new wn,n=new rt;return n.setPrecisionModel(t),e.setSegmentIntersector(new Wn(n)),e},ii.prototype.buffer=function(t,e){var n=this._workingPrecisionModel;null===n&&(n=t.getPrecisionModel()),this._geomFact=t.getFactory();var i=new Rn(n,this._bufParams),r=new jn(t,e,i).getCurves();if(r.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(r,n),this._graph=new Ve(new Zn),this._graph.addEdges(this._edgeList.getEdges());var o=this.createSubgraphs(this._graph),s=new Ze(this._geomFact);this.buildSubgraphs(o,s);var a=s.getPolygons();return a.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(a)},ii.prototype.computeNodedEdges=function(t,e){var n=this.getNoder(e);n.computeNodes(t);for(var i=n.getNodedSubstrings().iterator();i.hasNext();){var r=i.next(),o=r.getCoordinates();if(2!==o.length||!o[0].equals2D(o[1])){var s=r.getData(),a=new ni(r.getCoordinates(),new Ne(s));this.insertUniqueEdge(a)}}},ii.prototype.setNoder=function(t){this._workingNoder=t},ii.prototype.interfaces_=function(){return[]},ii.prototype.getClass=function(){return ii},ii.depthDelta=function(t){var e=t.getLocation(0,Ee.LEFT),n=t.getLocation(0,Ee.RIGHT);return e===L.INTERIOR&&n===L.EXTERIOR?1:e===L.EXTERIOR&&n===L.INTERIOR?-1:0},ii.convertSegStrings=function(t){for(var e=new ye,n=new Mt;t.hasNext();){var i=t.next(),r=e.createLineString(i.getCoordinates());n.add(r)}return e.buildGeometry(n)};var ri=function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,2===arguments.length){var t=arguments[0],e=arguments[1];this._noder=t,this._scaleFactor=e,this._offsetX=0,this._offsetY=0,this._isScaled=!this.isIntegerPrecision()}else if(4===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],o=arguments[3];this._noder=n,this._scaleFactor=i,this._offsetX=r,this._offsetY=o,this._isScaled=!this.isIntegerPrecision()}};ri.prototype.rescale=function(){if(T(arguments[0],bt))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.rescale(e.getCoordinates())}else if(arguments[0]instanceof Array){for(var n=arguments[0],i=0;i<n.length;i++)n[i].x=n[i].x/this._scaleFactor+this._offsetX,n[i].y=n[i].y/this._scaleFactor+this._offsetY;2===n.length&&n[0].equals2D(n[1])&&V.out.println(n)}},ri.prototype.scale=function(){if(T(arguments[0],bt)){for(var t=arguments[0],e=new Mt,n=t.iterator();n.hasNext();){var i=n.next();e.add(new dn(this.scale(i.getCoordinates()),i.getData()))}return e}if(arguments[0]instanceof Array){for(var r=arguments[0],o=new Array(r.length).fill(null),s=0;s<r.length;s++)o[s]=new S(Math.round((r[s].x-this._offsetX)*this._scaleFactor),Math.round((r[s].y-this._offsetY)*this._scaleFactor),r[s].z);return Ct.removeRepeatedPoints(o)}},ri.prototype.isIntegerPrecision=function(){return 1===this._scaleFactor},ri.prototype.getNodedSubstrings=function(){var t=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(t),t},ri.prototype.computeNodes=function(t){var e=t;this._isScaled&&(e=this.scale(t)),this._noder.computeNodes(e)},ri.prototype.interfaces_=function(){return[bn]},ri.prototype.getClass=function(){return ri};var oi=function(){this._li=new rt,this._segStrings=null;var t=arguments[0];this._segStrings=t},si={fact:{configurable:!0}};oi.prototype.checkEndPtVertexIntersections=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next().getCoordinates();this.checkEndPtVertexIntersections(e[0],this._segStrings),this.checkEndPtVertexIntersections(e[e.length-1],this._segStrings)}else if(2===arguments.length)for(var n=arguments[0],i=arguments[1].iterator();i.hasNext();)for(var r=i.next().getCoordinates(),o=1;o<r.length-1;o++)if(r[o].equals(n))throw new Q("found endpt/interior pt intersection at index "+o+" :pt "+n)},oi.prototype.checkInteriorIntersections=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();)for(var e=t.next(),n=this._segStrings.iterator();n.hasNext();){var i=n.next();this.checkInteriorIntersections(e,i)}else if(2===arguments.length)for(var r=arguments[0],o=arguments[1],s=r.getCoordinates(),a=o.getCoordinates(),u=0;u<s.length-1;u++)for(var c=0;c<a.length-1;c++)this.checkInteriorIntersections(r,u,o,c);else if(4===arguments.length){var h=arguments[0],l=arguments[1],f=arguments[2],p=arguments[3];if(h===f&&l===p)return null;var d=h.getCoordinates()[l],g=h.getCoordinates()[l+1],m=f.getCoordinates()[p],y=f.getCoordinates()[p+1];if(this._li.computeIntersection(d,g,m,y),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,d,g)||this.hasInteriorIntersection(this._li,m,y)))throw new Q("found non-noded intersection at "+d+"-"+g+" and "+m+"-"+y)}},oi.prototype.checkValid=function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},oi.prototype.checkCollapses=function(){if(0===arguments.length)for(var t=this._segStrings.iterator();t.hasNext();){var e=t.next();this.checkCollapses(e)}else if(1===arguments.length)for(var n=arguments[0].getCoordinates(),i=0;i<n.length-2;i++)this.checkCollapse(n[i],n[i+1],n[i+2])},oi.prototype.hasInteriorIntersection=function(t,e,n){for(var i=0;i<t.getIntersectionNum();i++){var r=t.getIntersection(i);if(!r.equals(e)&&!r.equals(n))return!0}return!1},oi.prototype.checkCollapse=function(t,e,n){if(t.equals(n))throw new Q("found non-noded collapse at "+oi.fact.createLineString([t,e,n]))},oi.prototype.interfaces_=function(){return[]},oi.prototype.getClass=function(){return oi},si.fact.get=function(){return new ye},Object.defineProperties(oi,si);var ai=function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var t=arguments[0],e=arguments[1],n=arguments[2];if(this._originalPt=t,this._pt=t,this._scaleFactor=e,this._li=n,e<=0)throw new _("Scale factor must be non-zero");1!==e&&(this._pt=new S(this.scale(t.x),this.scale(t.y)),this._p0Scaled=new S,this._p1Scaled=new S),this.initCorners(this._pt)},ui={SAFE_ENV_EXPANSION_FACTOR:{configurable:!0}};ai.prototype.intersectsScaled=function(t,e){var n=Math.min(t.x,e.x),i=Math.max(t.x,e.x),r=Math.min(t.y,e.y),o=Math.max(t.y,e.y),s=this._maxx<n||this._minx>i||this._maxy<r||this._miny>o;if(s)return!1;var a=this.intersectsToleranceSquare(t,e);return et.isTrue(!(s&&a),"Found bad envelope test"),a},ai.prototype.initCorners=function(t){this._minx=t.x-.5,this._maxx=t.x+.5,this._miny=t.y-.5,this._maxy=t.y+.5,this._corner[0]=new S(this._maxx,this._maxy),this._corner[1]=new S(this._minx,this._maxy),this._corner[2]=new S(this._minx,this._miny),this._corner[3]=new S(this._maxx,this._miny)},ai.prototype.intersects=function(t,e){return 1===this._scaleFactor?this.intersectsScaled(t,e):(this.copyScaled(t,this._p0Scaled),this.copyScaled(e,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))},ai.prototype.scale=function(t){return Math.round(t*this._scaleFactor)},ai.prototype.getCoordinate=function(){return this._originalPt},ai.prototype.copyScaled=function(t,e){e.x=this.scale(t.x),e.y=this.scale(t.y)},ai.prototype.getSafeEnvelope=function(){if(null===this._safeEnv){var t=ai.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new H(this._originalPt.x-t,this._originalPt.x+t,this._originalPt.y-t,this._originalPt.y+t)}return this._safeEnv},ai.prototype.intersectsPixelClosure=function(t,e){return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))},ai.prototype.intersectsToleranceSquare=function(t,e){var n=!1,i=!1;return this._li.computeIntersection(t,e,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(t,e,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(n=!0),this._li.computeIntersection(t,e,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(i=!0),this._li.computeIntersection(t,e,this._corner[3],this._corner[0]),!!this._li.isProper()||!(!n||!i)||!!t.equals(this._pt)||!!e.equals(this._pt))))},ai.prototype.addSnappedNode=function(t,e){var n=t.getCoordinate(e),i=t.getCoordinate(e+1);return!!this.intersects(n,i)&&(t.addIntersection(this.getCoordinate(),e),!0)},ai.prototype.interfaces_=function(){return[]},ai.prototype.getClass=function(){return ai},ui.SAFE_ENV_EXPANSION_FACTOR.get=function(){return.75},Object.defineProperties(ai,ui);var ci=function(){this.tempEnv1=new H,this.selectedSegment=new gn};ci.prototype.select=function(){if(1===arguments.length);else if(2===arguments.length){var t=arguments[0],e=arguments[1];t.getLineSegment(e,this.selectedSegment),this.select(this.selectedSegment)}},ci.prototype.interfaces_=function(){return[]},ci.prototype.getClass=function(){return ci};var hi=function(){this._index=null;var t=arguments[0];this._index=t},li={HotPixelSnapAction:{configurable:!0}};hi.prototype.snap=function(){if(1===arguments.length){var t=arguments[0];return this.snap(t,null,-1)}if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2],r=e.getSafeEnvelope(),o=new fi(e,n,i);return this._index.query(r,{interfaces_:function(){return[We]},visitItem:function(t){t.select(r,o)}}),o.isNodeAdded()}},hi.prototype.interfaces_=function(){return[]},hi.prototype.getClass=function(){return hi},li.HotPixelSnapAction.get=function(){return fi},Object.defineProperties(hi,li);var fi=function(t){function e(){t.call(this),this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var e=arguments[0],n=arguments[1],i=arguments[2];this._hotPixel=e,this._parentEdge=n,this._hotPixelVertexIndex=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isNodeAdded=function(){return this._isNodeAdded},e.prototype.select=function(){if(2!==arguments.length)return t.prototype.select.apply(this,arguments);var e=arguments[0],n=arguments[1],i=e.getContext();if(null!==this._parentEdge&&i===this._parentEdge&&n===this._hotPixelVertexIndex)return null;this._isNodeAdded=this._hotPixel.addSnappedNode(i,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(ci),pi=function(){this._li=null,this._interiorIntersections=null;var t=arguments[0];this._li=t,this._interiorIntersections=new Mt};pi.prototype.processIntersections=function(t,e,n,i){if(t===n&&e===i)return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];if(this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var u=0;u<this._li.getIntersectionNum();u++)this._interiorIntersections.add(this._li.getIntersection(u));t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1)}},pi.prototype.isDone=function(){return!1},pi.prototype.getInteriorIntersections=function(){return this._interiorIntersections},pi.prototype.interfaces_=function(){return[Yn]},pi.prototype.getClass=function(){return pi};var di=function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var t=arguments[0];this._pm=t,this._li=new rt,this._li.setPrecisionModel(t),this._scaleFactor=t.getScale()};di.prototype.checkCorrectness=function(t){var e=dn.getNodedSubstrings(t),n=new oi(e);try{n.checkValid()}catch(t){if(!(t instanceof q))throw t;t.printStackTrace()}},di.prototype.getNodedSubstrings=function(){return dn.getNodedSubstrings(this._nodedSegStrings)},di.prototype.snapRound=function(t,e){var n=this.findInteriorIntersections(t,e);this.computeIntersectionSnaps(n),this.computeVertexSnaps(t)},di.prototype.findInteriorIntersections=function(t,e){var n=new pi(e);return this._noder.setSegmentIntersector(n),this._noder.computeNodes(t),n.getInteriorIntersections()},di.prototype.computeVertexSnaps=function(){if(T(arguments[0],bt))for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.computeVertexSnaps(e)}else if(arguments[0]instanceof dn)for(var n=arguments[0],i=n.getCoordinates(),r=0;r<i.length;r++){var o=new ai(i[r],this._scaleFactor,this._li);this._pointSnapper.snap(o,n,r)&&n.addIntersection(i[r],r)}},di.prototype.computeNodes=function(t){this._nodedSegStrings=t,this._noder=new wn,this._pointSnapper=new hi(this._noder.getIndex()),this.snapRound(t,this._li)},di.prototype.computeIntersectionSnaps=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=new ai(n,this._scaleFactor,this._li);this._pointSnapper.snap(i)}},di.prototype.interfaces_=function(){return[bn]},di.prototype.getClass=function(){return di};var gi=function(){if(this._argGeom=null,this._distance=null,this._bufParams=new Sn,this._resultGeometry=null,this._saveException=null,1===arguments.length){var t=arguments[0];this._argGeom=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._argGeom=e,this._bufParams=n}},mi={CAP_ROUND:{configurable:!0},CAP_BUTT:{configurable:!0},CAP_FLAT:{configurable:!0},CAP_SQUARE:{configurable:!0},MAX_PRECISION_DIGITS:{configurable:!0}};gi.prototype.bufferFixedPrecision=function(t){var e=new ri(new di(new pe(1)),t.getScale()),n=new ii(this._bufParams);n.setWorkingPrecisionModel(t),n.setNoder(e),this._resultGeometry=n.buffer(this._argGeom,this._distance)},gi.prototype.bufferReducedPrecision=function(){var t=this;if(0===arguments.length){for(var e=gi.MAX_PRECISION_DIGITS;e>=0;e--){try{t.bufferReducedPrecision(e)}catch(e){if(!(e instanceof Le))throw e;t._saveException=e}if(null!==t._resultGeometry)return null}throw this._saveException}if(1===arguments.length){var n=arguments[0],i=gi.precisionScaleFactor(this._argGeom,this._distance,n),r=new pe(i);this.bufferFixedPrecision(r)}},gi.prototype.computeGeometry=function(){if(this.bufferOriginalPrecision(),null!==this._resultGeometry)return null;var t=this._argGeom.getFactory().getPrecisionModel();t.getType()===pe.FIXED?this.bufferFixedPrecision(t):this.bufferReducedPrecision()},gi.prototype.setQuadrantSegments=function(t){this._bufParams.setQuadrantSegments(t)},gi.prototype.bufferOriginalPrecision=function(){try{var t=new ii(this._bufParams);this._resultGeometry=t.buffer(this._argGeom,this._distance)}catch(t){if(!(t instanceof Q))throw t;this._saveException=t}},gi.prototype.getResultGeometry=function(t){return this._distance=t,this.computeGeometry(),this._resultGeometry},gi.prototype.setEndCapStyle=function(t){this._bufParams.setEndCapStyle(t)},gi.prototype.interfaces_=function(){return[]},gi.prototype.getClass=function(){return gi},gi.bufferOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return new gi(t).getResultGeometry(e)}if(3===arguments.length){if(Number.isInteger(arguments[2])&&arguments[0]instanceof ht&&"number"==typeof arguments[1]){var n=arguments[0],i=arguments[1],r=arguments[2],o=new gi(n);return o.setQuadrantSegments(r),o.getResultGeometry(i)}if(arguments[2]instanceof Sn&&arguments[0]instanceof ht&&"number"==typeof arguments[1]){var s=arguments[0],a=arguments[1],u=arguments[2];return new gi(s,u).getResultGeometry(a)}}else if(4===arguments.length){var c=arguments[0],h=arguments[1],l=arguments[2],f=arguments[3],p=new gi(c);return p.setQuadrantSegments(l),p.setEndCapStyle(f),p.getResultGeometry(h)}},gi.precisionScaleFactor=function(t,e,n){var i=t.getEnvelopeInternal(),r=P.max(Math.abs(i.getMaxX()),Math.abs(i.getMaxY()),Math.abs(i.getMinX()),Math.abs(i.getMinY()))+2*(e>0?e:0),o=n-Math.trunc(Math.log(r)/Math.log(10)+1);return Math.pow(10,o)},mi.CAP_ROUND.get=function(){return Sn.CAP_ROUND},mi.CAP_BUTT.get=function(){return Sn.CAP_FLAT},mi.CAP_FLAT.get=function(){return Sn.CAP_FLAT},mi.CAP_SQUARE.get=function(){return Sn.CAP_SQUARE},mi.MAX_PRECISION_DIGITS.get=function(){return 12},Object.defineProperties(gi,mi);var yi=function(){this._pt=[new S,new S],this._distance=v.NaN,this._isNull=!0};yi.prototype.getCoordinates=function(){return this._pt},yi.prototype.getCoordinate=function(t){return this._pt[t]},yi.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i<this._distance&&this.initialize(e,n,i)}},yi.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(i),this._distance=r,this._isNull=!1}},yi.prototype.getDistance=function(){return this._distance},yi.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i>this._distance&&this.initialize(e,n,i)}},yi.prototype.interfaces_=function(){return[]},yi.prototype.getClass=function(){return yi};var _i=function(){};_i.prototype.interfaces_=function(){return[]},_i.prototype.getClass=function(){return _i},_i.computeDistance=function(){if(arguments[2]instanceof yi&&arguments[0]instanceof Wt&&arguments[1]instanceof S)for(var t=arguments[0],e=arguments[1],n=arguments[2],i=t.getCoordinates(),r=new gn,o=0;o<i.length-1;o++){r.setCoordinates(i[o],i[o+1]);var s=r.closestPoint(e);n.setMinimum(s,e)}else if(arguments[2]instanceof yi&&arguments[0]instanceof Qt&&arguments[1]instanceof S){var a=arguments[0],u=arguments[1],c=arguments[2];_i.computeDistance(a.getExteriorRing(),u,c);for(var h=0;h<a.getNumInteriorRing();h++)_i.computeDistance(a.getInteriorRingN(h),u,c)}else if(arguments[2]instanceof yi&&arguments[0]instanceof ht&&arguments[1]instanceof S){var l=arguments[0],f=arguments[1],p=arguments[2];if(l instanceof Wt)_i.computeDistance(l,f,p);else if(l instanceof Qt)_i.computeDistance(l,f,p);else if(l instanceof qt)for(var d=l,g=0;g<d.getNumGeometries();g++){var m=d.getGeometryN(g);_i.computeDistance(m,f,p)}else p.setMinimum(l.getCoordinate(),f)}else if(arguments[2]instanceof yi&&arguments[0]instanceof gn&&arguments[1]instanceof S){var y=arguments[0],_=arguments[1],v=arguments[2],b=y.closestPoint(_);v.setMinimum(b,_)}};var vi=function(t){this._maxPtDist=new yi,this._inputGeom=t||null},bi={MaxPointDistanceFilter:{configurable:!0},MaxMidpointDistanceFilter:{configurable:!0}};vi.prototype.computeMaxMidpointDistance=function(t){var e=new wi(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},vi.prototype.computeMaxVertexDistance=function(t){var e=new xi(this._inputGeom);t.apply(e),this._maxPtDist.setMaximum(e.getMaxPointDistance())},vi.prototype.findDistance=function(t){return this.computeMaxVertexDistance(t),this.computeMaxMidpointDistance(t),this._maxPtDist.getDistance()},vi.prototype.getDistancePoints=function(){return this._maxPtDist},vi.prototype.interfaces_=function(){return[]},vi.prototype.getClass=function(){return vi},bi.MaxPointDistanceFilter.get=function(){return xi},bi.MaxMidpointDistanceFilter.get=function(){return wi},Object.defineProperties(vi,bi);var xi=function(t){this._maxPtDist=new yi,this._minPtDist=new yi,this._geom=t||null};xi.prototype.filter=function(t){this._minPtDist.initialize(),_i.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},xi.prototype.getMaxPointDistance=function(){return this._maxPtDist},xi.prototype.interfaces_=function(){return[pt]},xi.prototype.getClass=function(){return xi};var wi=function(t){this._maxPtDist=new yi,this._minPtDist=new yi,this._geom=t||null};wi.prototype.filter=function(t,e){if(0===e)return null;var n=t.getCoordinate(e-1),i=t.getCoordinate(e),r=new S((n.x+i.x)/2,(n.y+i.y)/2);this._minPtDist.initialize(),_i.computeDistance(this._geom,r,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},wi.prototype.isDone=function(){return!1},wi.prototype.isGeometryChanged=function(){return!1},wi.prototype.getMaxPointDistance=function(){return this._maxPtDist},wi.prototype.interfaces_=function(){return[Gt]},wi.prototype.getClass=function(){return wi};var Mi=function(t){this._comps=t||null};Mi.prototype.filter=function(t){t instanceof Qt&&this._comps.add(t)},Mi.prototype.interfaces_=function(){return[Bt]},Mi.prototype.getClass=function(){return Mi},Mi.getPolygons=function(){if(1===arguments.length){var t=arguments[0];return Mi.getPolygons(t,new Mt)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof Qt?n.add(e):e instanceof qt&&e.apply(new Mi(n)),n}};var Si=function(){if(this._lines=null,this._isForcedToLineString=!1,1===arguments.length){var t=arguments[0];this._lines=t}else if(2===arguments.length){var e=arguments[0],n=arguments[1];this._lines=e,this._isForcedToLineString=n}};Si.prototype.filter=function(t){if(this._isForcedToLineString&&t instanceof ee){var e=t.getFactory().createLineString(t.getCoordinateSequence());return this._lines.add(e),null}t instanceof Wt&&this._lines.add(t)},Si.prototype.setForceToLineString=function(t){this._isForcedToLineString=t},Si.prototype.interfaces_=function(){return[ct]},Si.prototype.getClass=function(){return Si},Si.getGeometry=function(){if(1===arguments.length){var t=arguments[0];return t.getFactory().buildGeometry(Si.getLines(t))}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().buildGeometry(Si.getLines(e,n))}},Si.getLines=function(){if(1===arguments.length){var t=arguments[0];return Si.getLines(t,!1)}if(2===arguments.length){if(T(arguments[0],bt)&&T(arguments[1],bt)){for(var e=arguments[0],n=arguments[1],i=e.iterator();i.hasNext();){var r=i.next();Si.getLines(r,n)}return n}if(arguments[0]instanceof ht&&"boolean"==typeof arguments[1]){var o=arguments[0],s=arguments[1],a=new Mt;return o.apply(new Si(a,s)),a}if(arguments[0]instanceof ht&&T(arguments[1],bt)){var u=arguments[0],c=arguments[1];return u instanceof Wt?c.add(u):u.apply(new Si(c)),c}}else if(3===arguments.length){if("boolean"==typeof arguments[2]&&T(arguments[0],bt)&&T(arguments[1],bt)){for(var h=arguments[0],l=arguments[1],f=arguments[2],p=h.iterator();p.hasNext();){var d=p.next();Si.getLines(d,l,f)}return l}if("boolean"==typeof arguments[2]&&arguments[0]instanceof ht&&T(arguments[1],bt)){var g=arguments[0],m=arguments[1],y=arguments[2];return g.apply(new Si(m,y)),m}}};var Ei=function(){if(this._boundaryRule=dt.OGC_SFS_BOUNDARY_RULE,this._isIn=null,this._numBoundaries=null,0===arguments.length);else if(1===arguments.length){var t=arguments[0];if(null===t)throw new _("Rule must be non-null");this._boundaryRule=t}};Ei.prototype.locateInternal=function(){if(arguments[0]instanceof S&&arguments[1]instanceof Qt){var t=arguments[0],e=arguments[1];if(e.isEmpty())return L.EXTERIOR;var n=e.getExteriorRing(),i=this.locateInPolygonRing(t,n);if(i===L.EXTERIOR)return L.EXTERIOR;if(i===L.BOUNDARY)return L.BOUNDARY;for(var r=0;r<e.getNumInteriorRing();r++){var o=e.getInteriorRingN(r),s=this.locateInPolygonRing(t,o);if(s===L.INTERIOR)return L.EXTERIOR;if(s===L.BOUNDARY)return L.BOUNDARY}return L.INTERIOR}if(arguments[0]instanceof S&&arguments[1]instanceof Wt){var a=arguments[0],u=arguments[1];if(!u.getEnvelopeInternal().intersects(a))return L.EXTERIOR;var c=u.getCoordinates();return u.isClosed()||!a.equals(c[0])&&!a.equals(c[c.length-1])?at.isOnLine(a,c)?L.INTERIOR:L.EXTERIOR:L.BOUNDARY}if(arguments[0]instanceof S&&arguments[1]instanceof Kt){var h=arguments[0];return arguments[1].getCoordinate().equals2D(h)?L.INTERIOR:L.EXTERIOR}},Ei.prototype.locateInPolygonRing=function(t,e){return e.getEnvelopeInternal().intersects(t)?at.locatePointInRing(t,e.getCoordinates()):L.EXTERIOR},Ei.prototype.intersects=function(t,e){return this.locate(t,e)!==L.EXTERIOR},Ei.prototype.updateLocationInfo=function(t){t===L.INTERIOR&&(this._isIn=!0),t===L.BOUNDARY&&this._numBoundaries++},Ei.prototype.computeLocation=function(t,e){if(e instanceof Kt&&this.updateLocationInfo(this.locateInternal(t,e)),e instanceof Wt)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof Qt)this.updateLocationInfo(this.locateInternal(t,e));else if(e instanceof Ut)for(var n=e,i=0;i<n.getNumGeometries();i++){var r=n.getGeometryN(i);this.updateLocationInfo(this.locateInternal(t,r))}else if(e instanceof ne)for(var o=e,s=0;s<o.getNumGeometries();s++){var a=o.getGeometryN(s);this.updateLocationInfo(this.locateInternal(t,a))}else if(e instanceof qt)for(var u=new Gn(e);u.hasNext();){var c=u.next();c!==e&&this.computeLocation(t,c)}},Ei.prototype.locate=function(t,e){return e.isEmpty()?L.EXTERIOR:e instanceof Wt?this.locateInternal(t,e):e instanceof Qt?this.locateInternal(t,e):(this._isIn=!1,this._numBoundaries=0,this.computeLocation(t,e),this._boundaryRule.isInBoundary(this._numBoundaries)?L.BOUNDARY:this._numBoundaries>0||this._isIn?L.INTERIOR:L.EXTERIOR)},Ei.prototype.interfaces_=function(){return[]},Ei.prototype.getClass=function(){return Ei};var Ci=function t(){if(this._component=null,this._segIndex=null,this._pt=null,2===arguments.length){var e=arguments[0],n=arguments[1];t.call(this,e,t.INSIDE_AREA,n)}else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._component=i,this._segIndex=r,this._pt=o}},Ii={INSIDE_AREA:{configurable:!0}};Ci.prototype.isInsideArea=function(){return this._segIndex===Ci.INSIDE_AREA},Ci.prototype.getCoordinate=function(){return this._pt},Ci.prototype.getGeometryComponent=function(){return this._component},Ci.prototype.getSegmentIndex=function(){return this._segIndex},Ci.prototype.interfaces_=function(){return[]},Ci.prototype.getClass=function(){return Ci},Ii.INSIDE_AREA.get=function(){return-1},Object.defineProperties(Ci,Ii);var Li=function(t){this._pts=t||null};Li.prototype.filter=function(t){t instanceof Kt&&this._pts.add(t)},Li.prototype.interfaces_=function(){return[Bt]},Li.prototype.getClass=function(){return Li},Li.getPoints=function(){if(1===arguments.length){var t=arguments[0];return t instanceof Kt?Qe.singletonList(t):Li.getPoints(t,new Mt)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e instanceof Kt?n.add(e):e instanceof qt&&e.apply(new Li(n)),n}};var Oi=function(){this._locations=null;var t=arguments[0];this._locations=t};Oi.prototype.filter=function(t){(t instanceof Kt||t instanceof Wt||t instanceof Qt)&&this._locations.add(new Ci(t,0,t.getCoordinate()))},Oi.prototype.interfaces_=function(){return[Bt]},Oi.prototype.getClass=function(){return Oi},Oi.getLocations=function(t){var e=new Mt;return t.apply(new Oi(e)),e};var Ti=function(){if(this._geom=null,this._terminateDistance=0,this._ptLocator=new Ei,this._minDistanceLocation=null,this._minDistance=v.MAX_VALUE,2===arguments.length){var t=arguments[0],e=arguments[1];this._geom=[t,e],this._terminateDistance=0}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._geom=new Array(2).fill(null),this._geom[0]=n,this._geom[1]=i,this._terminateDistance=r}};Ti.prototype.computeContainmentDistance=function(){if(0===arguments.length){var t=new Array(2).fill(null);if(this.computeContainmentDistance(0,t),this._minDistance<=this._terminateDistance)return null;this.computeContainmentDistance(1,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=1-e,r=Mi.getPolygons(this._geom[e]);if(r.size()>0){var o=Oi.getLocations(this._geom[i]);if(this.computeContainmentDistance(o,r,n),this._minDistance<=this._terminateDistance)return this._minDistanceLocation[i]=n[0],this._minDistanceLocation[e]=n[1],null}}else if(3===arguments.length)if(arguments[2]instanceof Array&&T(arguments[0],wt)&&T(arguments[1],wt)){for(var s=arguments[0],a=arguments[1],u=arguments[2],c=0;c<s.size();c++)for(var h=s.get(c),l=0;l<a.size();l++)if(this.computeContainmentDistance(h,a.get(l),u),this._minDistance<=this._terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof Ci&&arguments[1]instanceof Qt){var f=arguments[0],p=arguments[1],d=arguments[2],g=f.getCoordinate();if(L.EXTERIOR!==this._ptLocator.locate(g,p))return this._minDistance=0,d[0]=f,d[1]=new Ci(p,g),null}},Ti.prototype.computeMinDistanceLinesPoints=function(t,e,n){for(var i=0;i<t.size();i++)for(var r=t.get(i),o=0;o<e.size();o++){var s=e.get(o);if(this.computeMinDistance(r,s,n),this._minDistance<=this._terminateDistance)return null}},Ti.prototype.computeFacetDistance=function(){var t=new Array(2).fill(null),e=Si.getLines(this._geom[0]),n=Si.getLines(this._geom[1]),i=Li.getPoints(this._geom[0]),r=Li.getPoints(this._geom[1]);return this.computeMinDistanceLines(e,n,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(e,r,t),this.updateMinDistance(t,!1),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistanceLinesPoints(n,i,t),this.updateMinDistance(t,!0),this._minDistance<=this._terminateDistance?null:(t[0]=null,t[1]=null,this.computeMinDistancePoints(i,r,t),void this.updateMinDistance(t,!1))))},Ti.prototype.nearestLocations=function(){return this.computeMinDistance(),this._minDistanceLocation},Ti.prototype.updateMinDistance=function(t,e){if(null===t[0])return null;e?(this._minDistanceLocation[0]=t[1],this._minDistanceLocation[1]=t[0]):(this._minDistanceLocation[0]=t[0],this._minDistanceLocation[1]=t[1])},Ti.prototype.nearestPoints=function(){return this.computeMinDistance(),[this._minDistanceLocation[0].getCoordinate(),this._minDistanceLocation[1].getCoordinate()]},Ti.prototype.computeMinDistance=function(){if(0===arguments.length){if(null!==this._minDistanceLocation)return null;if(this._minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this._minDistance<=this._terminateDistance)return null;this.computeFacetDistance()}else if(3===arguments.length)if(arguments[2]instanceof Array&&arguments[0]instanceof Wt&&arguments[1]instanceof Kt){var t=arguments[0],e=arguments[1],n=arguments[2];if(t.getEnvelopeInternal().distance(e.getEnvelopeInternal())>this._minDistance)return null;for(var i=t.getCoordinates(),r=e.getCoordinate(),o=0;o<i.length-1;o++){var s=at.distancePointLine(r,i[o],i[o+1]);if(s<this._minDistance){this._minDistance=s;var a=new gn(i[o],i[o+1]).closestPoint(r);n[0]=new Ci(t,o,a),n[1]=new Ci(e,0,r)}if(this._minDistance<=this._terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Wt&&arguments[1]instanceof Wt){var u=arguments[0],c=arguments[1],h=arguments[2];if(u.getEnvelopeInternal().distance(c.getEnvelopeInternal())>this._minDistance)return null;for(var l=u.getCoordinates(),f=c.getCoordinates(),p=0;p<l.length-1;p++)for(var d=0;d<f.length-1;d++){var g=at.distanceLineLine(l[p],l[p+1],f[d],f[d+1]);if(g<this._minDistance){this._minDistance=g;var m=new gn(l[p],l[p+1]),y=new gn(f[d],f[d+1]),_=m.closestPoints(y);h[0]=new Ci(u,p,_[0]),h[1]=new Ci(c,d,_[1])}if(this._minDistance<=this._terminateDistance)return null}}},Ti.prototype.computeMinDistancePoints=function(t,e,n){for(var i=0;i<t.size();i++)for(var r=t.get(i),o=0;o<e.size();o++){var s=e.get(o),a=r.getCoordinate().distance(s.getCoordinate());if(a<this._minDistance&&(this._minDistance=a,n[0]=new Ci(r,0,r.getCoordinate()),n[1]=new Ci(s,0,s.getCoordinate())),this._minDistance<=this._terminateDistance)return null}},Ti.prototype.distance=function(){if(null===this._geom[0]||null===this._geom[1])throw new _("null geometries are not supported");return this._geom[0].isEmpty()||this._geom[1].isEmpty()?0:(this.computeMinDistance(),this._minDistance)},Ti.prototype.computeMinDistanceLines=function(t,e,n){for(var i=0;i<t.size();i++)for(var r=t.get(i),o=0;o<e.size();o++){var s=e.get(o);if(this.computeMinDistance(r,s,n),this._minDistance<=this._terminateDistance)return null}},Ti.prototype.interfaces_=function(){return[]},Ti.prototype.getClass=function(){return Ti},Ti.distance=function(t,e){return new Ti(t,e).distance()},Ti.isWithinDistance=function(t,e,n){return new Ti(t,e,n).distance()<=n},Ti.nearestPoints=function(t,e){return new Ti(t,e).nearestPoints()};var Pi=function(){this._pt=[new S,new S],this._distance=v.NaN,this._isNull=!0};Pi.prototype.getCoordinates=function(){return this._pt},Pi.prototype.getCoordinate=function(t){return this._pt[t]},Pi.prototype.setMinimum=function(){if(1===arguments.length){var t=arguments[0];this.setMinimum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i<this._distance&&this.initialize(e,n,i)}},Pi.prototype.initialize=function(){if(0===arguments.length)this._isNull=!0;else if(2===arguments.length){var t=arguments[0],e=arguments[1];this._pt[0].setCoordinate(t),this._pt[1].setCoordinate(e),this._distance=t.distance(e),this._isNull=!1}else if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2];this._pt[0].setCoordinate(n),this._pt[1].setCoordinate(i),this._distance=r,this._isNull=!1}},Pi.prototype.toString=function(){return J.toLineString(this._pt[0],this._pt[1])},Pi.prototype.getDistance=function(){return this._distance},Pi.prototype.setMaximum=function(){if(1===arguments.length){var t=arguments[0];this.setMaximum(t._pt[0],t._pt[1])}else if(2===arguments.length){var e=arguments[0],n=arguments[1];if(this._isNull)return this.initialize(e,n),null;var i=e.distance(n);i>this._distance&&this.initialize(e,n,i)}},Pi.prototype.interfaces_=function(){return[]},Pi.prototype.getClass=function(){return Pi};var Ni=function(){};Ni.prototype.interfaces_=function(){return[]},Ni.prototype.getClass=function(){return Ni},Ni.computeDistance=function(){if(arguments[2]instanceof Pi&&arguments[0]instanceof Wt&&arguments[1]instanceof S)for(var t=arguments[0],e=arguments[1],n=arguments[2],i=new gn,r=t.getCoordinates(),o=0;o<r.length-1;o++){i.setCoordinates(r[o],r[o+1]);var s=i.closestPoint(e);n.setMinimum(s,e)}else if(arguments[2]instanceof Pi&&arguments[0]instanceof Qt&&arguments[1]instanceof S){var a=arguments[0],u=arguments[1],c=arguments[2];Ni.computeDistance(a.getExteriorRing(),u,c);for(var h=0;h<a.getNumInteriorRing();h++)Ni.computeDistance(a.getInteriorRingN(h),u,c)}else if(arguments[2]instanceof Pi&&arguments[0]instanceof ht&&arguments[1]instanceof S){var l=arguments[0],f=arguments[1],p=arguments[2];if(l instanceof Wt)Ni.computeDistance(l,f,p);else if(l instanceof Qt)Ni.computeDistance(l,f,p);else if(l instanceof qt)for(var d=l,g=0;g<d.getNumGeometries();g++){var m=d.getGeometryN(g);Ni.computeDistance(m,f,p)}else p.setMinimum(l.getCoordinate(),f)}else if(arguments[2]instanceof Pi&&arguments[0]instanceof gn&&arguments[1]instanceof S){var y=arguments[0],_=arguments[1],v=arguments[2],b=y.closestPoint(_);v.setMinimum(b,_)}};var Ai=function(){this._g0=null,this._g1=null,this._ptDist=new Pi,this._densifyFrac=0;var t=arguments[0],e=arguments[1];this._g0=t,this._g1=e},Ri={MaxPointDistanceFilter:{configurable:!0},MaxDensifiedByFractionDistanceFilter:{configurable:!0}};Ai.prototype.getCoordinates=function(){return this._ptDist.getCoordinates()},Ai.prototype.setDensifyFraction=function(t){if(t>1||t<=0)throw new _("Fraction is not in range (0.0 - 1.0]");this._densifyFrac=t},Ai.prototype.compute=function(t,e){this.computeOrientedDistance(t,e,this._ptDist),this.computeOrientedDistance(e,t,this._ptDist)},Ai.prototype.distance=function(){return this.compute(this._g0,this._g1),this._ptDist.getDistance()},Ai.prototype.computeOrientedDistance=function(t,e,n){var i=new Di(e);if(t.apply(i),n.setMaximum(i.getMaxPointDistance()),this._densifyFrac>0){var r=new ki(e,this._densifyFrac);t.apply(r),n.setMaximum(r.getMaxPointDistance())}},Ai.prototype.orientedDistance=function(){return this.computeOrientedDistance(this._g0,this._g1,this._ptDist),this._ptDist.getDistance()},Ai.prototype.interfaces_=function(){return[]},Ai.prototype.getClass=function(){return Ai},Ai.distance=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return new Ai(t,e).distance()}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],o=new Ai(n,i);return o.setDensifyFraction(r),o.distance()}},Ri.MaxPointDistanceFilter.get=function(){return Di},Ri.MaxDensifiedByFractionDistanceFilter.get=function(){return ki},Object.defineProperties(Ai,Ri);var Di=function(){this._maxPtDist=new Pi,this._minPtDist=new Pi,this._euclideanDist=new Ni,this._geom=null;var t=arguments[0];this._geom=t};Di.prototype.filter=function(t){this._minPtDist.initialize(),Ni.computeDistance(this._geom,t,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)},Di.prototype.getMaxPointDistance=function(){return this._maxPtDist},Di.prototype.interfaces_=function(){return[pt]},Di.prototype.getClass=function(){return Di};var ki=function(){this._maxPtDist=new Pi,this._minPtDist=new Pi,this._geom=null,this._numSubSegs=0;var t=arguments[0],e=arguments[1];this._geom=t,this._numSubSegs=Math.trunc(Math.round(1/e))};ki.prototype.filter=function(t,e){if(0===e)return null;for(var n=t.getCoordinate(e-1),i=t.getCoordinate(e),r=(i.x-n.x)/this._numSubSegs,o=(i.y-n.y)/this._numSubSegs,s=0;s<this._numSubSegs;s++){var a=n.x+s*r,u=n.y+s*o,c=new S(a,u);this._minPtDist.initialize(),Ni.computeDistance(this._geom,c,this._minPtDist),this._maxPtDist.setMaximum(this._minPtDist)}},ki.prototype.isDone=function(){return!1},ki.prototype.isGeometryChanged=function(){return!1},ki.prototype.getMaxPointDistance=function(){return this._maxPtDist},ki.prototype.interfaces_=function(){return[Gt]},ki.prototype.getClass=function(){return ki};var Fi=function(t,e,n){this._minValidDistance=null,this._maxValidDistance=null,this._minDistanceFound=null,this._maxDistanceFound=null,this._isValid=!0,this._errMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._bufDistance=e||null,this._result=n||null},zi={VERBOSE:{configurable:!0},MAX_DISTANCE_DIFF_FRAC:{configurable:!0}};Fi.prototype.checkMaximumDistance=function(t,e,n){var i=new Ai(e,t);if(i.setDensifyFraction(.25),this._maxDistanceFound=i.orientedDistance(),this._maxDistanceFound>n){this._isValid=!1;var r=i.getCoordinates();this._errorLocation=r[1],this._errorIndicator=t.getFactory().createLineString(r),this._errMsg="Distance between buffer curve and input is too large ("+this._maxDistanceFound+" at "+J.toLineString(r[0],r[1])+")"}},Fi.prototype.isValid=function(){var t=Math.abs(this._bufDistance),e=Fi.MAX_DISTANCE_DIFF_FRAC*t;return this._minValidDistance=t-e,this._maxValidDistance=t+e,!(!this._input.isEmpty()&&!this._result.isEmpty())||(this._bufDistance>0?this.checkPositiveValid():this.checkNegativeValid(),Fi.VERBOSE&&V.out.println("Min Dist= "+this._minDistanceFound+"  err= "+(1-this._minDistanceFound/this._bufDistance)+"  Max Dist= "+this._maxDistanceFound+"  err= "+(this._maxDistanceFound/this._bufDistance-1)),this._isValid)},Fi.prototype.checkNegativeValid=function(){if(!(this._input instanceof Qt||this._input instanceof ne||this._input instanceof qt))return null;var t=this.getPolygonLines(this._input);if(this.checkMinimumDistance(t,this._result,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(t,this._result,this._maxValidDistance)},Fi.prototype.getErrorIndicator=function(){return this._errorIndicator},Fi.prototype.checkMinimumDistance=function(t,e,n){var i=new Ti(t,e,n);if(this._minDistanceFound=i.distance(),this._minDistanceFound<n){this._isValid=!1;var r=i.nearestPoints();this._errorLocation=i.nearestPoints()[1],this._errorIndicator=t.getFactory().createLineString(r),this._errMsg="Distance between buffer curve and input is too small ("+this._minDistanceFound+" at "+J.toLineString(r[0],r[1])+" )"}},Fi.prototype.checkPositiveValid=function(){var t=this._result.getBoundary();if(this.checkMinimumDistance(this._input,t,this._minValidDistance),!this._isValid)return null;this.checkMaximumDistance(this._input,t,this._maxValidDistance)},Fi.prototype.getErrorLocation=function(){return this._errorLocation},Fi.prototype.getPolygonLines=function(t){for(var e=new Mt,n=new Si(e),i=Mi.getPolygons(t).iterator();i.hasNext();)i.next().apply(n);return t.getFactory().buildGeometry(e)},Fi.prototype.getErrorMessage=function(){return this._errMsg},Fi.prototype.interfaces_=function(){return[]},Fi.prototype.getClass=function(){return Fi},zi.VERBOSE.get=function(){return!1},zi.MAX_DISTANCE_DIFF_FRAC.get=function(){return.012},Object.defineProperties(Fi,zi);var ji=function(t,e,n){this._isValid=!0,this._errorMsg=null,this._errorLocation=null,this._errorIndicator=null,this._input=t||null,this._distance=e||null,this._result=n||null},Bi={VERBOSE:{configurable:!0},MAX_ENV_DIFF_FRAC:{configurable:!0}};ji.prototype.isValid=function(){return this.checkPolygonal(),this._isValid?(this.checkExpectedEmpty(),this._isValid?(this.checkEnvelope(),this._isValid?(this.checkArea(),this._isValid?(this.checkDistance(),this._isValid):this._isValid):this._isValid):this._isValid):this._isValid},ji.prototype.checkEnvelope=function(){if(this._distance<0)return null;var t=this._distance*ji.MAX_ENV_DIFF_FRAC;0===t&&(t=.001);var e=new H(this._input.getEnvelopeInternal());e.expandBy(this._distance);var n=new H(this._result.getEnvelopeInternal());n.expandBy(t),n.contains(e)||(this._isValid=!1,this._errorMsg="Buffer envelope is incorrect",this._errorIndicator=this._input.getFactory().toGeometry(n)),this.report("Envelope")},ji.prototype.checkDistance=function(){var t=new Fi(this._input,this._distance,this._result);t.isValid()||(this._isValid=!1,this._errorMsg=t.getErrorMessage(),this._errorLocation=t.getErrorLocation(),this._errorIndicator=t.getErrorIndicator()),this.report("Distance")},ji.prototype.checkArea=function(){var t=this._input.getArea(),e=this._result.getArea();this._distance>0&&t>e&&(this._isValid=!1,this._errorMsg="Area of positive buffer is smaller than input",this._errorIndicator=this._result),this._distance<0&&t<e&&(this._isValid=!1,this._errorMsg="Area of negative buffer is larger than input",this._errorIndicator=this._result),this.report("Area")},ji.prototype.checkPolygonal=function(){this._result instanceof Qt||this._result instanceof ne||(this._isValid=!1),this._errorMsg="Result is not polygonal",this._errorIndicator=this._result,this.report("Polygonal")},ji.prototype.getErrorIndicator=function(){return this._errorIndicator},ji.prototype.getErrorLocation=function(){return this._errorLocation},ji.prototype.checkExpectedEmpty=function(){return this._input.getDimension()>=2?null:this._distance>0?null:(this._result.isEmpty()||(this._isValid=!1,this._errorMsg="Result is non-empty",this._errorIndicator=this._result),void this.report("ExpectedEmpty"))},ji.prototype.report=function(t){if(!ji.VERBOSE)return null;V.out.println("Check "+t+": "+(this._isValid?"passed":"FAILED"))},ji.prototype.getErrorMessage=function(){return this._errorMsg},ji.prototype.interfaces_=function(){return[]},ji.prototype.getClass=function(){return ji},ji.isValidMsg=function(t,e,n){var i=new ji(t,e,n);return i.isValid()?null:i.getErrorMessage()},ji.isValid=function(t,e,n){return!!new ji(t,e,n).isValid()},Bi.VERBOSE.get=function(){return!1},Bi.MAX_ENV_DIFF_FRAC.get=function(){return.012},Object.defineProperties(ji,Bi);var Gi=function(){this._pts=null,this._data=null;var t=arguments[0],e=arguments[1];this._pts=t,this._data=e};Gi.prototype.getCoordinates=function(){return this._pts},Gi.prototype.size=function(){return this._pts.length},Gi.prototype.getCoordinate=function(t){return this._pts[t]},Gi.prototype.isClosed=function(){return this._pts[0].equals(this._pts[this._pts.length-1])},Gi.prototype.getSegmentOctant=function(t){return t===this._pts.length-1?-1:ln.octant(this.getCoordinate(t),this.getCoordinate(t+1))},Gi.prototype.setData=function(t){this._data=t},Gi.prototype.getData=function(){return this._data},Gi.prototype.toString=function(){return J.toLineString(new ue(this._pts))},Gi.prototype.interfaces_=function(){return[fn]},Gi.prototype.getClass=function(){return Gi};var qi=function(){this._findAllIntersections=!1,this._isCheckEndSegmentsOnly=!1,this._li=null,this._interiorIntersection=null,this._intSegments=null,this._intersections=new Mt,this._intersectionCount=0,this._keepIntersections=!0;var t=arguments[0];this._li=t,this._interiorIntersection=null};qi.prototype.getInteriorIntersection=function(){return this._interiorIntersection},qi.prototype.setCheckEndSegmentsOnly=function(t){this._isCheckEndSegmentsOnly=t},qi.prototype.getIntersectionSegments=function(){return this._intSegments},qi.prototype.count=function(){return this._intersectionCount},qi.prototype.getIntersections=function(){return this._intersections},qi.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},qi.prototype.setKeepIntersections=function(t){this._keepIntersections=t},qi.prototype.processIntersections=function(t,e,n,i){if(!this._findAllIntersections&&this.hasIntersection())return null;if(t===n&&e===i)return null;if(this._isCheckEndSegmentsOnly&&!this.isEndSegment(t,e)&&!this.isEndSegment(n,i))return null;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&this._li.isInteriorIntersection()&&(this._intSegments=new Array(4).fill(null),this._intSegments[0]=r,this._intSegments[1]=o,this._intSegments[2]=s,this._intSegments[3]=a,this._interiorIntersection=this._li.getIntersection(0),this._keepIntersections&&this._intersections.add(this._interiorIntersection),this._intersectionCount++)},qi.prototype.isEndSegment=function(t,e){return 0===e||e>=t.size()-2},qi.prototype.hasIntersection=function(){return null!==this._interiorIntersection},qi.prototype.isDone=function(){return!this._findAllIntersections&&null!==this._interiorIntersection},qi.prototype.interfaces_=function(){return[Yn]},qi.prototype.getClass=function(){return qi},qi.createAllIntersectionsFinder=function(t){var e=new qi(t);return e.setFindAllIntersections(!0),e},qi.createAnyIntersectionFinder=function(t){return new qi(t)},qi.createIntersectionCounter=function(t){var e=new qi(t);return e.setFindAllIntersections(!0),e.setKeepIntersections(!1),e};var Ui=function(){this._li=new rt,this._segStrings=null,this._findAllIntersections=!1,this._segInt=null,this._isValid=!0;var t=arguments[0];this._segStrings=t};Ui.prototype.execute=function(){if(null!==this._segInt)return null;this.checkInteriorIntersections()},Ui.prototype.getIntersections=function(){return this._segInt.getIntersections()},Ui.prototype.isValid=function(){return this.execute(),this._isValid},Ui.prototype.setFindAllIntersections=function(t){this._findAllIntersections=t},Ui.prototype.checkInteriorIntersections=function(){this._isValid=!0,this._segInt=new qi(this._li),this._segInt.setFindAllIntersections(this._findAllIntersections);var t=new wn;if(t.setSegmentIntersector(this._segInt),t.computeNodes(this._segStrings),this._segInt.hasIntersection())return this._isValid=!1,null},Ui.prototype.checkValid=function(){if(this.execute(),!this._isValid)throw new Le(this.getErrorMessage(),this._segInt.getInteriorIntersection())},Ui.prototype.getErrorMessage=function(){if(this._isValid)return"no intersections found";var t=this._segInt.getIntersectionSegments();return"found non-noded intersection between "+J.toLineString(t[0],t[1])+" and "+J.toLineString(t[2],t[3])},Ui.prototype.interfaces_=function(){return[]},Ui.prototype.getClass=function(){return Ui},Ui.computeIntersections=function(t){var e=new Ui(t);return e.setFindAllIntersections(!0),e.isValid(),e.getIntersections()};var Vi=function t(){this._nv=null;var e=arguments[0];this._nv=new Ui(t.toSegmentStrings(e))};Vi.prototype.checkValid=function(){this._nv.checkValid()},Vi.prototype.interfaces_=function(){return[]},Vi.prototype.getClass=function(){return Vi},Vi.toSegmentStrings=function(t){for(var e=new Mt,n=t.iterator();n.hasNext();){var i=n.next();e.add(new Gi(i.getCoordinates(),i))}return e},Vi.checkValid=function(t){new Vi(t).checkValid()};var Zi=function(t){this._mapOp=t};Zi.prototype.map=function(t){for(var e=new Mt,n=0;n<t.getNumGeometries();n++){var i=this._mapOp.map(t.getGeometryN(n));i.isEmpty()||e.add(i)}return t.getFactory().createGeometryCollection(ye.toGeometryArray(e))},Zi.prototype.interfaces_=function(){return[]},Zi.prototype.getClass=function(){return Zi},Zi.map=function(t,e){return new Zi(e).map(t)};var Hi=function(){this._op=null,this._geometryFactory=null,this._ptLocator=null,this._lineEdgesList=new Mt,this._resultLineList=new Mt;var t=arguments[0],e=arguments[1],n=arguments[2];this._op=t,this._geometryFactory=e,this._ptLocator=n};Hi.prototype.collectLines=function(t){for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next();this.collectLineEdge(n,t,this._lineEdgesList),this.collectBoundaryTouchEdge(n,t,this._lineEdgesList)}},Hi.prototype.labelIsolatedLine=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._op.getArgGeometry(e));t.getLabel().setLocation(e,n)},Hi.prototype.build=function(t){return this.findCoveredLineEdges(),this.collectLines(t),this.buildLines(t),this._resultLineList},Hi.prototype.collectLineEdge=function(t,e,n){var i=t.getLabel(),r=t.getEdge();t.isLineEdge()&&(t.isVisited()||!Cr.isResultOfOp(i,e)||r.isCovered()||(n.add(r),t.setVisitedEdge(!0)))},Hi.prototype.findCoveredLineEdges=function(){for(var t=this._op.getGraph().getNodes().iterator();t.hasNext();)t.next().getEdges().findCoveredLineEdges();for(var e=this._op.getGraph().getEdgeEnds().iterator();e.hasNext();){var n=e.next(),i=n.getEdge();if(n.isLineEdge()&&!i.isCoveredSet()){var r=this._op.isCoveredByA(n.getCoordinate());i.setCovered(r)}}},Hi.prototype.labelIsolatedLines=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next(),i=n.getLabel();n.isIsolated()&&(i.isNull(0)?this.labelIsolatedLine(n,0):this.labelIsolatedLine(n,1))}},Hi.prototype.buildLines=function(t){for(var e=this._lineEdgesList.iterator();e.hasNext();){var n=e.next(),i=this._geometryFactory.createLineString(n.getCoordinates());this._resultLineList.add(i),n.setInResult(!0)}},Hi.prototype.collectBoundaryTouchEdge=function(t,e,n){var i=t.getLabel();return t.isLineEdge()?null:t.isVisited()?null:t.isInteriorAreaEdge()?null:t.getEdge().isInResult()?null:(et.isTrue(!(t.isInResult()||t.getSym().isInResult())||!t.getEdge().isInResult()),void(Cr.isResultOfOp(i,e)&&e===Cr.INTERSECTION&&(n.add(t.getEdge()),t.setVisitedEdge(!0))))},Hi.prototype.interfaces_=function(){return[]},Hi.prototype.getClass=function(){return Hi};var $i=function(){this._op=null,this._geometryFactory=null,this._resultPointList=new Mt;var t=arguments[0],e=arguments[1];this._op=t,this._geometryFactory=e};$i.prototype.filterCoveredNodeToPoint=function(t){var e=t.getCoordinate();if(!this._op.isCoveredByLA(e)){var n=this._geometryFactory.createPoint(e);this._resultPointList.add(n)}},$i.prototype.extractNonCoveredResultNodes=function(t){for(var e=this._op.getGraph().getNodes().iterator();e.hasNext();){var n=e.next();if(!n.isInResult()&&!n.isIncidentEdgeInResult()&&(0===n.getEdges().getDegree()||t===Cr.INTERSECTION)){var i=n.getLabel();Cr.isResultOfOp(i,t)&&this.filterCoveredNodeToPoint(n)}}},$i.prototype.build=function(t){return this.extractNonCoveredResultNodes(t),this._resultPointList},$i.prototype.interfaces_=function(){return[]},$i.prototype.getClass=function(){return $i};var Yi=function(){this._inputGeom=null,this._factory=null,this._pruneEmptyGeometry=!0,this._preserveGeometryCollectionType=!0,this._preserveCollections=!1,this._preserveType=!1};Yi.prototype.transformPoint=function(t,e){return this._factory.createPoint(this.transformCoordinates(t.getCoordinateSequence(),t))},Yi.prototype.transformPolygon=function(t,e){var n=!0,i=this.transformLinearRing(t.getExteriorRing(),t);null!==i&&i instanceof ee&&!i.isEmpty()||(n=!1);for(var r=new Mt,o=0;o<t.getNumInteriorRing();o++){var s=this.transformLinearRing(t.getInteriorRingN(o),t);null===s||s.isEmpty()||(s instanceof ee||(n=!1),r.add(s))}if(n)return this._factory.createPolygon(i,r.toArray([]));var a=new Mt;return null!==i&&a.add(i),a.addAll(r),this._factory.buildGeometry(a)},Yi.prototype.createCoordinateSequence=function(t){return this._factory.getCoordinateSequenceFactory().create(t)},Yi.prototype.getInputGeometry=function(){return this._inputGeom},Yi.prototype.transformMultiLineString=function(t,e){for(var n=new Mt,i=0;i<t.getNumGeometries();i++){var r=this.transformLineString(t.getGeometryN(i),t);null!==r&&(r.isEmpty()||n.add(r))}return this._factory.buildGeometry(n)},Yi.prototype.transformCoordinates=function(t,e){return this.copy(t)},Yi.prototype.transformLineString=function(t,e){return this._factory.createLineString(this.transformCoordinates(t.getCoordinateSequence(),t))},Yi.prototype.transformMultiPoint=function(t,e){for(var n=new Mt,i=0;i<t.getNumGeometries();i++){var r=this.transformPoint(t.getGeometryN(i),t);null!==r&&(r.isEmpty()||n.add(r))}return this._factory.buildGeometry(n)},Yi.prototype.transformMultiPolygon=function(t,e){for(var n=new Mt,i=0;i<t.getNumGeometries();i++){var r=this.transformPolygon(t.getGeometryN(i),t);null!==r&&(r.isEmpty()||n.add(r))}return this._factory.buildGeometry(n)},Yi.prototype.copy=function(t){return t.copy()},Yi.prototype.transformGeometryCollection=function(t,e){for(var n=new Mt,i=0;i<t.getNumGeometries();i++){var r=this.transform(t.getGeometryN(i));null!==r&&(this._pruneEmptyGeometry&&r.isEmpty()||n.add(r))}return this._preserveGeometryCollectionType?this._factory.createGeometryCollection(ye.toGeometryArray(n)):this._factory.buildGeometry(n)},Yi.prototype.transform=function(t){if(this._inputGeom=t,this._factory=t.getFactory(),t instanceof Kt)return this.transformPoint(t,null);if(t instanceof te)return this.transformMultiPoint(t,null);if(t instanceof ee)return this.transformLinearRing(t,null);if(t instanceof Wt)return this.transformLineString(t,null);if(t instanceof Ut)return this.transformMultiLineString(t,null);if(t instanceof Qt)return this.transformPolygon(t,null);if(t instanceof ne)return this.transformMultiPolygon(t,null);if(t instanceof qt)return this.transformGeometryCollection(t,null);throw new _("Unknown Geometry subtype: "+t.getClass().getName())},Yi.prototype.transformLinearRing=function(t,e){var n=this.transformCoordinates(t.getCoordinateSequence(),t);if(null===n)return this._factory.createLinearRing(null);var i=n.size();return i>0&&i<4&&!this._preserveType?this._factory.createLineString(n):this._factory.createLinearRing(n)},Yi.prototype.interfaces_=function(){return[]},Yi.prototype.getClass=function(){return Yi};var Wi=function t(){if(this._snapTolerance=0,this._srcPts=null,this._seg=new gn,this._allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Wt&&"number"==typeof arguments[1]){var e=arguments[0],n=arguments[1];t.call(this,e.getCoordinates(),n)}else if(arguments[0]instanceof Array&&"number"==typeof arguments[1]){var i=arguments[0],r=arguments[1];this._srcPts=i,this._isClosed=t.isClosed(i),this._snapTolerance=r}};Wi.prototype.snapVertices=function(t,e){for(var n=this._isClosed?t.size()-1:t.size(),i=0;i<n;i++){var r=t.get(i),o=this.findSnapForVertex(r,e);null!==o&&(t.set(i,new S(o)),0===i&&this._isClosed&&t.set(t.size()-1,new S(o)))}},Wi.prototype.findSnapForVertex=function(t,e){for(var n=0;n<e.length;n++){if(t.equals2D(e[n]))return null;if(t.distance(e[n])<this._snapTolerance)return e[n]}return null},Wi.prototype.snapTo=function(t){var e=new Et(this._srcPts);return this.snapVertices(e,t),this.snapSegments(e,t),e.toCoordinateArray()},Wi.prototype.snapSegments=function(t,e){if(0===e.length)return null;var n=e.length;e[0].equals2D(e[e.length-1])&&(n=e.length-1);for(var i=0;i<n;i++){var r=e[i],o=this.findSegmentIndexToSnap(r,t);o>=0&&t.add(o+1,new S(r),!1)}},Wi.prototype.findSegmentIndexToSnap=function(t,e){for(var n=v.MAX_VALUE,i=-1,r=0;r<e.size()-1;r++){if(this._seg.p0=e.get(r),this._seg.p1=e.get(r+1),this._seg.p0.equals2D(t)||this._seg.p1.equals2D(t)){if(this._allowSnappingToSourceVertices)continue;return-1}var o=this._seg.distance(t);o<this._snapTolerance&&o<n&&(n=o,i=r)}return i},Wi.prototype.setAllowSnappingToSourceVertices=function(t){this._allowSnappingToSourceVertices=t},Wi.prototype.interfaces_=function(){return[]},Wi.prototype.getClass=function(){return Wi},Wi.isClosed=function(t){return!(t.length<=1)&&t[0].equals2D(t[t.length-1])};var Xi=function(t){this._srcGeom=t||null},Ki={SNAP_PRECISION_FACTOR:{configurable:!0}};Xi.prototype.snapTo=function(t,e){var n=this.extractTargetCoordinates(t);return new Ji(e,n).transform(this._srcGeom)},Xi.prototype.snapToSelf=function(t,e){var n=this.extractTargetCoordinates(this._srcGeom),i=new Ji(t,n,!0).transform(this._srcGeom),r=i;return e&&T(r,Jt)&&(r=i.buffer(0)),r},Xi.prototype.computeSnapTolerance=function(t){return this.computeMinimumSegmentLength(t)/10},Xi.prototype.extractTargetCoordinates=function(t){for(var e=new p,n=t.getCoordinates(),i=0;i<n.length;i++)e.add(n[i]);return e.toArray(new Array(0).fill(null))},Xi.prototype.computeMinimumSegmentLength=function(t){for(var e=v.MAX_VALUE,n=0;n<t.length-1;n++){var i=t[n].distance(t[n+1]);i<e&&(e=i)}return e},Xi.prototype.interfaces_=function(){return[]},Xi.prototype.getClass=function(){return Xi},Xi.snap=function(t,e,n){var i=new Array(2).fill(null),r=new Xi(t);i[0]=r.snapTo(e,n);var o=new Xi(e);return i[1]=o.snapTo(i[0],n),i},Xi.computeOverlaySnapTolerance=function(){if(1===arguments.length){var t=arguments[0],e=Xi.computeSizeBasedSnapTolerance(t),n=t.getPrecisionModel();if(n.getType()===pe.FIXED){var i=1/n.getScale()*2/1.415;i>e&&(e=i)}return e}if(2===arguments.length){var r=arguments[0],o=arguments[1];return Math.min(Xi.computeOverlaySnapTolerance(r),Xi.computeOverlaySnapTolerance(o))}},Xi.computeSizeBasedSnapTolerance=function(t){var e=t.getEnvelopeInternal();return Math.min(e.getHeight(),e.getWidth())*Xi.SNAP_PRECISION_FACTOR},Xi.snapToSelf=function(t,e,n){return new Xi(t).snapToSelf(e,n)},Ki.SNAP_PRECISION_FACTOR.get=function(){return 1e-9},Object.defineProperties(Xi,Ki);var Ji=function(t){function e(e,n,i){t.call(this),this._snapTolerance=e||null,this._snapPts=n||null,this._isSelfSnap=void 0!==i&&i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.snapLine=function(t,e){var n=new Wi(t,this._snapTolerance);return n.setAllowSnappingToSourceVertices(this._isSelfSnap),n.snapTo(e)},e.prototype.transformCoordinates=function(t,e){var n=t.toCoordinateArray(),i=this.snapLine(n,this._snapPts);return this._factory.getCoordinateSequenceFactory().create(i)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Yi),Qi=function(){this._isFirst=!0,this._commonMantissaBitsCount=53,this._commonBits=0,this._commonSignExp=null};Qi.prototype.getCommon=function(){return v.longBitsToDouble(this._commonBits)},Qi.prototype.add=function(t){var e=v.doubleToLongBits(t);return this._isFirst?(this._commonBits=e,this._commonSignExp=Qi.signExpBits(this._commonBits),this._isFirst=!1,null):Qi.signExpBits(e)!==this._commonSignExp?(this._commonBits=0,null):(this._commonMantissaBitsCount=Qi.numCommonMostSigMantissaBits(this._commonBits,e),void(this._commonBits=Qi.zeroLowerBits(this._commonBits,64-(12+this._commonMantissaBitsCount))))},Qi.prototype.toString=function(){if(1===arguments.length){var t=arguments[0],e=v.longBitsToDouble(t),n="0000000000000000000000000000000000000000000000000000000000000000"+v.toBinaryString(t),i=n.substring(n.length-64);return i.substring(0,1)+"  "+i.substring(1,12)+"(exp) "+i.substring(12)+" [ "+e+" ]"}},Qi.prototype.interfaces_=function(){return[]},Qi.prototype.getClass=function(){return Qi},Qi.getBit=function(t,e){return 0!=(t&1<<e)?1:0},Qi.signExpBits=function(t){return t>>52},Qi.zeroLowerBits=function(t,e){return t&~((1<<e)-1)},Qi.numCommonMostSigMantissaBits=function(t,e){for(var n=0,i=52;i>=0;i--){if(Qi.getBit(t,i)!==Qi.getBit(e,i))return n;n++}return 52};var tr=function(){this._commonCoord=null,this._ccFilter=new nr},er={CommonCoordinateFilter:{configurable:!0},Translater:{configurable:!0}};tr.prototype.addCommonBits=function(t){var e=new ir(this._commonCoord);t.apply(e),t.geometryChanged()},tr.prototype.removeCommonBits=function(t){if(0===this._commonCoord.x&&0===this._commonCoord.y)return t;var e=new S(this._commonCoord);e.x=-e.x,e.y=-e.y;var n=new ir(e);return t.apply(n),t.geometryChanged(),t},tr.prototype.getCommonCoordinate=function(){return this._commonCoord},tr.prototype.add=function(t){t.apply(this._ccFilter),this._commonCoord=this._ccFilter.getCommonCoordinate()},tr.prototype.interfaces_=function(){return[]},tr.prototype.getClass=function(){return tr},er.CommonCoordinateFilter.get=function(){return nr},er.Translater.get=function(){return ir},Object.defineProperties(tr,er);var nr=function(){this._commonBitsX=new Qi,this._commonBitsY=new Qi};nr.prototype.filter=function(t){this._commonBitsX.add(t.x),this._commonBitsY.add(t.y)},nr.prototype.getCommonCoordinate=function(){return new S(this._commonBitsX.getCommon(),this._commonBitsY.getCommon())},nr.prototype.interfaces_=function(){return[pt]},nr.prototype.getClass=function(){return nr};var ir=function(){this.trans=null;var t=arguments[0];this.trans=t};ir.prototype.filter=function(t,e){var n=t.getOrdinate(e,0)+this.trans.x,i=t.getOrdinate(e,1)+this.trans.y;t.setOrdinate(e,0,n),t.setOrdinate(e,1,i)},ir.prototype.isDone=function(){return!1},ir.prototype.isGeometryChanged=function(){return!0},ir.prototype.interfaces_=function(){return[Gt]},ir.prototype.getClass=function(){return ir};var rr=function(t,e){this._geom=new Array(2).fill(null),this._snapTolerance=null,this._cbr=null,this._geom[0]=t,this._geom[1]=e,this.computeSnapTolerance()};rr.prototype.selfSnap=function(t){return new Xi(t).snapTo(t,this._snapTolerance)},rr.prototype.removeCommonBits=function(t){this._cbr=new tr,this._cbr.add(t[0]),this._cbr.add(t[1]);var e=new Array(2).fill(null);return e[0]=this._cbr.removeCommonBits(t[0].copy()),e[1]=this._cbr.removeCommonBits(t[1].copy()),e},rr.prototype.prepareResult=function(t){return this._cbr.addCommonBits(t),t},rr.prototype.getResultGeometry=function(t){var e=this.snap(this._geom),n=Cr.overlayOp(e[0],e[1],t);return this.prepareResult(n)},rr.prototype.checkValid=function(t){t.isValid()||V.out.println("Snapped geometry is invalid")},rr.prototype.computeSnapTolerance=function(){this._snapTolerance=Xi.computeOverlaySnapTolerance(this._geom[0],this._geom[1])},rr.prototype.snap=function(t){var e=this.removeCommonBits(t);return Xi.snap(e[0],e[1],this._snapTolerance)},rr.prototype.interfaces_=function(){return[]},rr.prototype.getClass=function(){return rr},rr.overlayOp=function(t,e,n){return new rr(t,e).getResultGeometry(n)},rr.union=function(t,e){return rr.overlayOp(t,e,Cr.UNION)},rr.intersection=function(t,e){return rr.overlayOp(t,e,Cr.INTERSECTION)},rr.symDifference=function(t,e){return rr.overlayOp(t,e,Cr.SYMDIFFERENCE)},rr.difference=function(t,e){return rr.overlayOp(t,e,Cr.DIFFERENCE)};var or=function(t,e){this._geom=new Array(2).fill(null),this._geom[0]=t,this._geom[1]=e};or.prototype.getResultGeometry=function(t){var e=null,n=!1,i=null;try{e=Cr.overlayOp(this._geom[0],this._geom[1],t),n=!0}catch(t){if(!(t instanceof Q))throw t;i=t}if(!n)try{e=rr.overlayOp(this._geom[0],this._geom[1],t)}catch(t){throw t instanceof Q?i:t}return e},or.prototype.interfaces_=function(){return[]},or.prototype.getClass=function(){return or},or.overlayOp=function(t,e,n){return new or(t,e).getResultGeometry(n)},or.union=function(t,e){return or.overlayOp(t,e,Cr.UNION)},or.intersection=function(t,e){return or.overlayOp(t,e,Cr.INTERSECTION)},or.symDifference=function(t,e){return or.overlayOp(t,e,Cr.SYMDIFFERENCE)},or.difference=function(t,e){return or.overlayOp(t,e,Cr.DIFFERENCE)};var sr=function(){this.mce=null,this.chainIndex=null;var t=arguments[0],e=arguments[1];this.mce=t,this.chainIndex=e};sr.prototype.computeIntersections=function(t,e){this.mce.computeIntersectsForChain(this.chainIndex,t.mce,t.chainIndex,e)},sr.prototype.interfaces_=function(){return[]},sr.prototype.getClass=function(){return sr};var ar=function t(){if(this._label=null,this._xValue=null,this._eventType=null,this._insertEvent=null,this._deleteEventIndex=null,this._obj=null,2===arguments.length){var e=arguments[0],n=arguments[1];this._eventType=t.DELETE,this._xValue=e,this._insertEvent=n}else if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._eventType=t.INSERT,this._label=i,this._xValue=r,this._obj=o}},ur={INSERT:{configurable:!0},DELETE:{configurable:!0}};ar.prototype.isDelete=function(){return this._eventType===ar.DELETE},ar.prototype.setDeleteEventIndex=function(t){this._deleteEventIndex=t},ar.prototype.getObject=function(){return this._obj},ar.prototype.compareTo=function(t){var e=t;return this._xValue<e._xValue?-1:this._xValue>e._xValue?1:this._eventType<e._eventType?-1:this._eventType>e._eventType?1:0},ar.prototype.getInsertEvent=function(){return this._insertEvent},ar.prototype.isInsert=function(){return this._eventType===ar.INSERT},ar.prototype.isSameLabel=function(t){return null!==this._label&&this._label===t._label},ar.prototype.getDeleteEventIndex=function(){return this._deleteEventIndex},ar.prototype.interfaces_=function(){return[x]},ar.prototype.getClass=function(){return ar},ur.INSERT.get=function(){return 1},ur.DELETE.get=function(){return 2},Object.defineProperties(ar,ur);var cr=function(){};cr.prototype.interfaces_=function(){return[]},cr.prototype.getClass=function(){return cr};var hr=function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._properIntersectionPoint=null,this._li=null,this._includeProper=null,this._recordIsolated=null,this._isSelfIntersection=null,this._numIntersections=0,this.numTests=0,this._bdyNodes=null,this._isDone=!1,this._isDoneWhenProperInt=!1;var t=arguments[0],e=arguments[1],n=arguments[2];this._li=t,this._includeProper=e,this._recordIsolated=n};hr.prototype.isTrivialIntersection=function(t,e,n,i){if(t===n&&1===this._li.getIntersectionNum()){if(hr.isAdjacentSegments(e,i))return!0;if(t.isClosed()){var r=t.getNumPoints()-1;if(0===e&&i===r||0===i&&e===r)return!0}}return!1},hr.prototype.getProperIntersectionPoint=function(){return this._properIntersectionPoint},hr.prototype.setIsDoneIfProperInt=function(t){this._isDoneWhenProperInt=t},hr.prototype.hasProperInteriorIntersection=function(){return this._hasProperInterior},hr.prototype.isBoundaryPointInternal=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next().getCoordinate();if(t.isIntersection(i))return!0}return!1},hr.prototype.hasProperIntersection=function(){return this._hasProper},hr.prototype.hasIntersection=function(){return this._hasIntersection},hr.prototype.isDone=function(){return this._isDone},hr.prototype.isBoundaryPoint=function(t,e){return null!==e&&(!!this.isBoundaryPointInternal(t,e[0])||!!this.isBoundaryPointInternal(t,e[1]))},hr.prototype.setBoundaryNodes=function(t,e){this._bdyNodes=new Array(2).fill(null),this._bdyNodes[0]=t,this._bdyNodes[1]=e},hr.prototype.addIntersections=function(t,e,n,i){if(t===n&&e===i)return null;this.numTests++;var r=t.getCoordinates()[e],o=t.getCoordinates()[e+1],s=n.getCoordinates()[i],a=n.getCoordinates()[i+1];this._li.computeIntersection(r,o,s,a),this._li.hasIntersection()&&(this._recordIsolated&&(t.setIsolated(!1),n.setIsolated(!1)),this._numIntersections++,this.isTrivialIntersection(t,e,n,i)||(this._hasIntersection=!0,!this._includeProper&&this._li.isProper()||(t.addIntersections(this._li,e,0),n.addIntersections(this._li,i,1)),this._li.isProper()&&(this._properIntersectionPoint=this._li.getIntersection(0).copy(),this._hasProper=!0,this._isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this._li,this._bdyNodes)||(this._hasProperInterior=!0))))},hr.prototype.interfaces_=function(){return[]},hr.prototype.getClass=function(){return hr},hr.isAdjacentSegments=function(t,e){return 1===Math.abs(t-e)};var lr=function(t){function e(){t.call(this),this.events=new Mt,this.nOverlaps=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvents=function(){Qe.sort(this.events);for(var t=0;t<this.events.size();t++){var e=this.events.get(t);e.isDelete()&&e.getInsertEvent().setDeleteEventIndex(t)}},e.prototype.computeIntersections=function(){if(1===arguments.length){var t=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var e=0;e<this.events.size();e++){var n=this.events.get(e);if(n.isInsert()&&this.processOverlaps(e,n.getDeleteEventIndex(),n,t),t.isDone())break}}else if(3===arguments.length)if(arguments[2]instanceof hr&&T(arguments[0],wt)&&T(arguments[1],wt)){var i=arguments[0],r=arguments[1],o=arguments[2];this.addEdges(i,i),this.addEdges(r,r),this.computeIntersections(o)}else if("boolean"==typeof arguments[2]&&T(arguments[0],wt)&&arguments[1]instanceof hr){var s=arguments[0],a=arguments[1];arguments[2]?this.addEdges(s,null):this.addEdges(s),this.computeIntersections(a)}},e.prototype.addEdge=function(t,e){for(var n=t.getMonotoneChainEdge(),i=n.getStartIndexes(),r=0;r<i.length-1;r++){var o=new sr(n,r),s=new ar(e,n.getMinX(r),o);this.events.add(s),this.events.add(new ar(n.getMaxX(r),s))}},e.prototype.processOverlaps=function(t,e,n,i){for(var r=n.getObject(),o=t;o<e;o++){var s=this.events.get(o);if(s.isInsert()){var a=s.getObject();n.isSameLabel(s)||(r.computeIntersections(a,i),this.nOverlaps++)}}},e.prototype.addEdges=function(){if(1===arguments.length)for(var t=arguments[0].iterator();t.hasNext();){var e=t.next();this.addEdge(e,e)}else if(2===arguments.length)for(var n=arguments[0],i=arguments[1],r=n.iterator();r.hasNext();){var o=r.next();this.addEdge(o,i)}},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(cr),fr=function(){this._min=v.POSITIVE_INFINITY,this._max=v.NEGATIVE_INFINITY},pr={NodeComparator:{configurable:!0}};fr.prototype.getMin=function(){return this._min},fr.prototype.intersects=function(t,e){return!(this._min>e||this._max<t)},fr.prototype.getMax=function(){return this._max},fr.prototype.toString=function(){return J.toLineString(new S(this._min,0),new S(this._max,0))},fr.prototype.interfaces_=function(){return[]},fr.prototype.getClass=function(){return fr},pr.NodeComparator.get=function(){return dr},Object.defineProperties(fr,pr);var dr=function(){};dr.prototype.compare=function(t,e){var n=t,i=e,r=(n._min+n._max)/2,o=(i._min+i._max)/2;return r<o?-1:r>o?1:0},dr.prototype.interfaces_=function(){return[M]},dr.prototype.getClass=function(){return dr};var gr=function(t){function e(){t.call(this),this._item=null;var e=arguments[0],n=arguments[1],i=arguments[2];this._min=e,this._max=n,this._item=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;n.visitItem(this._item)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(fr),mr=function(t){function e(){t.call(this),this._node1=null,this._node2=null;var e=arguments[0],n=arguments[1];this._node1=e,this._node2=n,this.buildExtent(this._node1,this._node2)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.buildExtent=function(t,e){this._min=Math.min(t._min,e._min),this._max=Math.max(t._max,e._max)},e.prototype.query=function(t,e,n){if(!this.intersects(t,e))return null;null!==this._node1&&this._node1.query(t,e,n),null!==this._node2&&this._node2.query(t,e,n)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(fr),yr=function(){this._leaves=new Mt,this._root=null,this._level=0};yr.prototype.buildTree=function(){Qe.sort(this._leaves,new fr.NodeComparator);for(var t=this._leaves,e=null,n=new Mt;;){if(this.buildLevel(t,n),1===n.size())return n.get(0);e=t,t=n,n=e}},yr.prototype.insert=function(t,e,n){if(null!==this._root)throw new Error("Index cannot be added to once it has been queried");this._leaves.add(new gr(t,e,n))},yr.prototype.query=function(t,e,n){this.init(),this._root.query(t,e,n)},yr.prototype.buildRoot=function(){if(null!==this._root)return null;this._root=this.buildTree()},yr.prototype.printNode=function(t){V.out.println(J.toLineString(new S(t._min,this._level),new S(t._max,this._level)))},yr.prototype.init=function(){if(null!==this._root)return null;this.buildRoot()},yr.prototype.buildLevel=function(t,e){this._level++,e.clear();for(var n=0;n<t.size();n+=2){var i=t.get(n);if(null===(n+1<t.size()?t.get(n):null))e.add(i);else{var r=new mr(t.get(n),t.get(n+1));e.add(r)}}},yr.prototype.interfaces_=function(){return[]},yr.prototype.getClass=function(){return yr};var _r=function(){this._items=new Mt};_r.prototype.visitItem=function(t){this._items.add(t)},_r.prototype.getItems=function(){return this._items},_r.prototype.interfaces_=function(){return[We]},_r.prototype.getClass=function(){return _r};var vr=function(){this._index=null;var t=arguments[0];if(!T(t,Jt))throw new _("Argument must be Polygonal");this._index=new wr(t)},br={SegmentVisitor:{configurable:!0},IntervalIndexedGeometry:{configurable:!0}};vr.prototype.locate=function(t){var e=new st(t),n=new xr(e);return this._index.query(t.y,t.y,n),e.getLocation()},vr.prototype.interfaces_=function(){return[Bn]},vr.prototype.getClass=function(){return vr},br.SegmentVisitor.get=function(){return xr},br.IntervalIndexedGeometry.get=function(){return wr},Object.defineProperties(vr,br);var xr=function(){this._counter=null;var t=arguments[0];this._counter=t};xr.prototype.visitItem=function(t){var e=t;this._counter.countSegment(e.getCoordinate(0),e.getCoordinate(1))},xr.prototype.interfaces_=function(){return[We]},xr.prototype.getClass=function(){return xr};var wr=function(){this._index=new yr;var t=arguments[0];this.init(t)};wr.prototype.init=function(t){for(var e=Si.getLines(t).iterator();e.hasNext();){var n=e.next().getCoordinates();this.addLine(n)}},wr.prototype.addLine=function(t){for(var e=1;e<t.length;e++){var n=new gn(t[e-1],t[e]),i=Math.min(n.p0.y,n.p1.y),r=Math.max(n.p0.y,n.p1.y);this._index.insert(i,r,n)}},wr.prototype.query=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new _r;return this._index.query(t,e,n),n.getItems()}if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];this._index.query(i,r,o)}},wr.prototype.interfaces_=function(){return[]},wr.prototype.getClass=function(){return wr};var Mr=function(t){function e(){if(t.call(this),this._parentGeom=null,this._lineEdgeMap=new fe,this._boundaryNodeRule=null,this._useBoundaryDeterminationRule=!0,this._argIndex=null,this._boundaryNodes=null,this._hasTooFewPoints=!1,this._invalidPoint=null,this._areaPtLocator=null,this._ptLocator=new Ei,2===arguments.length){var e=arguments[0],n=arguments[1],i=dt.OGC_SFS_BOUNDARY_RULE;this._argIndex=e,this._parentGeom=n,this._boundaryNodeRule=i,null!==n&&this.add(n)}else if(3===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2];this._argIndex=r,this._parentGeom=o,this._boundaryNodeRule=s,null!==o&&this.add(o)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.insertBoundaryPoint=function(t,n){var i=this._nodes.addNode(n).getLabel(),r=1;L.NONE,i.getLocation(t,Ee.ON)===L.BOUNDARY&&r++;var o=e.determineBoundary(this._boundaryNodeRule,r);i.setLocation(t,o)},e.prototype.computeSelfNodes=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1];return this.computeSelfNodes(t,e,!1)}if(3===arguments.length){var n=arguments[0],i=arguments[1],r=arguments[2],o=new hr(n,!0,!1);o.setIsDoneIfProperInt(r);var s=this.createEdgeSetIntersector(),a=this._parentGeom instanceof ee||this._parentGeom instanceof Qt||this._parentGeom instanceof ne,u=i||!a;return s.computeIntersections(this._edges,o,u),this.addSelfIntersectionNodes(this._argIndex),o}},e.prototype.computeSplitEdges=function(t){for(var e=this._edges.iterator();e.hasNext();)e.next().eiList.addSplitEdges(t)},e.prototype.computeEdgeIntersections=function(t,e,n){var i=new hr(e,n,!0);return i.setBoundaryNodes(this.getBoundaryNodes(),t.getBoundaryNodes()),this.createEdgeSetIntersector().computeIntersections(this._edges,t._edges,i),i},e.prototype.getGeometry=function(){return this._parentGeom},e.prototype.getBoundaryNodeRule=function(){return this._boundaryNodeRule},e.prototype.hasTooFewPoints=function(){return this._hasTooFewPoints},e.prototype.addPoint=function(){if(arguments[0]instanceof Kt){var t=arguments[0].getCoordinate();this.insertPoint(this._argIndex,t,L.INTERIOR)}else if(arguments[0]instanceof S){var e=arguments[0];this.insertPoint(this._argIndex,e,L.INTERIOR)}},e.prototype.addPolygon=function(t){this.addPolygonRing(t.getExteriorRing(),L.EXTERIOR,L.INTERIOR);for(var e=0;e<t.getNumInteriorRing();e++){var n=t.getInteriorRingN(e);this.addPolygonRing(n,L.INTERIOR,L.EXTERIOR)}},e.prototype.addEdge=function(t){this.insertEdge(t);var e=t.getCoordinates();this.insertPoint(this._argIndex,e[0],L.BOUNDARY),this.insertPoint(this._argIndex,e[e.length-1],L.BOUNDARY)},e.prototype.addLineString=function(t){var e=Ct.removeRepeatedPoints(t.getCoordinates());if(e.length<2)return this._hasTooFewPoints=!0,this._invalidPoint=e[0],null;var n=new ni(e,new Ne(this._argIndex,L.INTERIOR));this._lineEdgeMap.put(t,n),this.insertEdge(n),et.isTrue(e.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this._argIndex,e[0]),this.insertBoundaryPoint(this._argIndex,e[e.length-1])},e.prototype.getInvalidPoint=function(){return this._invalidPoint},e.prototype.getBoundaryPoints=function(){for(var t=this.getBoundaryNodes(),e=new Array(t.size()).fill(null),n=0,i=t.iterator();i.hasNext();){var r=i.next();e[n++]=r.getCoordinate().copy()}return e},e.prototype.getBoundaryNodes=function(){return null===this._boundaryNodes&&(this._boundaryNodes=this._nodes.getBoundaryNodes(this._argIndex)),this._boundaryNodes},e.prototype.addSelfIntersectionNode=function(t,e,n){if(this.isBoundaryNode(t,e))return null;n===L.BOUNDARY&&this._useBoundaryDeterminationRule?this.insertBoundaryPoint(t,e):this.insertPoint(t,e,n)},e.prototype.addPolygonRing=function(t,e,n){if(t.isEmpty())return null;var i=Ct.removeRepeatedPoints(t.getCoordinates());if(i.length<4)return this._hasTooFewPoints=!0,this._invalidPoint=i[0],null;var r=e,o=n;at.isCCW(i)&&(r=n,o=e);var s=new ni(i,new Ne(this._argIndex,L.BOUNDARY,r,o));this._lineEdgeMap.put(t,s),this.insertEdge(s),this.insertPoint(this._argIndex,i[0],L.BOUNDARY)},e.prototype.insertPoint=function(t,e,n){var i=this._nodes.addNode(e),r=i.getLabel();null===r?i._label=new Ne(t,n):r.setLocation(t,n)},e.prototype.createEdgeSetIntersector=function(){return new lr},e.prototype.addSelfIntersectionNodes=function(t){for(var e=this._edges.iterator();e.hasNext();)for(var n=e.next(),i=n.getLabel().getLocation(t),r=n.eiList.iterator();r.hasNext();){var o=r.next();this.addSelfIntersectionNode(t,o.coord,i)}},e.prototype.add=function(){if(1!==arguments.length)return t.prototype.add.apply(this,arguments);var e=arguments[0];if(e.isEmpty())return null;if(e instanceof ne&&(this._useBoundaryDeterminationRule=!1),e instanceof Qt)this.addPolygon(e);else if(e instanceof Wt)this.addLineString(e);else if(e instanceof Kt)this.addPoint(e);else if(e instanceof te)this.addCollection(e);else if(e instanceof Ut)this.addCollection(e);else if(e instanceof ne)this.addCollection(e);else{if(!(e instanceof qt))throw new Error(e.getClass().getName());this.addCollection(e)}},e.prototype.addCollection=function(t){for(var e=0;e<t.getNumGeometries();e++){var n=t.getGeometryN(e);this.add(n)}},e.prototype.locate=function(t){return T(this._parentGeom,Jt)&&this._parentGeom.getNumGeometries()>50?(null===this._areaPtLocator&&(this._areaPtLocator=new vr(this._parentGeom)),this._areaPtLocator.locate(t)):this._ptLocator.locate(t,this._parentGeom)},e.prototype.findEdge=function(){if(1===arguments.length){var e=arguments[0];return this._lineEdgeMap.get(e)}return t.prototype.findEdge.apply(this,arguments)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e.determineBoundary=function(t,e){return t.isInBoundary(e)?L.BOUNDARY:L.INTERIOR},e}(Ve),Sr=function(){if(this._li=new rt,this._resultPrecisionModel=null,this._arg=null,1===arguments.length){var t=arguments[0];this.setComputationPrecision(t.getPrecisionModel()),this._arg=new Array(1).fill(null),this._arg[0]=new Mr(0,t)}else if(2===arguments.length){var e=arguments[0],n=arguments[1],i=dt.OGC_SFS_BOUNDARY_RULE;e.getPrecisionModel().compareTo(n.getPrecisionModel())>=0?this.setComputationPrecision(e.getPrecisionModel()):this.setComputationPrecision(n.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Mr(0,e,i),this._arg[1]=new Mr(1,n,i)}else if(3===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2];r.getPrecisionModel().compareTo(o.getPrecisionModel())>=0?this.setComputationPrecision(r.getPrecisionModel()):this.setComputationPrecision(o.getPrecisionModel()),this._arg=new Array(2).fill(null),this._arg[0]=new Mr(0,r,s),this._arg[1]=new Mr(1,o,s)}};Sr.prototype.getArgGeometry=function(t){return this._arg[t].getGeometry()},Sr.prototype.setComputationPrecision=function(t){this._resultPrecisionModel=t,this._li.setPrecisionModel(this._resultPrecisionModel)},Sr.prototype.interfaces_=function(){return[]},Sr.prototype.getClass=function(){return Sr};var Er=function(){};Er.prototype.interfaces_=function(){return[]},Er.prototype.getClass=function(){return Er},Er.map=function(){if(arguments[0]instanceof ht&&T(arguments[1],Er.MapOp)){for(var t=arguments[0],e=arguments[1],n=new Mt,i=0;i<t.getNumGeometries();i++){var r=e.map(t.getGeometryN(i));null!==r&&n.add(r)}return t.getFactory().buildGeometry(n)}if(T(arguments[0],bt)&&T(arguments[1],Er.MapOp)){for(var o=arguments[0],s=arguments[1],a=new Mt,u=o.iterator();u.hasNext();){var c=u.next(),h=s.map(c);null!==h&&a.add(h)}return a}},Er.MapOp=function(){};var Cr=function(t){function e(){var e=arguments[0],n=arguments[1];t.call(this,e,n),this._ptLocator=new Ei,this._geomFact=null,this._resultGeom=null,this._graph=null,this._edgeList=new $n,this._resultPolyList=new Mt,this._resultLineList=new Mt,this._resultPointList=new Mt,this._graph=new Ve(new Zn),this._geomFact=e.getFactory()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.insertUniqueEdge=function(t){var e=this._edgeList.findEqualEdge(t);if(null!==e){var n=e.getLabel(),i=t.getLabel();e.isPointwiseEqual(t)||(i=new Ne(t.getLabel())).flip();var r=e.getDepth();r.isNull()&&r.add(n),r.add(i),n.merge(i)}else this._edgeList.add(t)},e.prototype.getGraph=function(){return this._graph},e.prototype.cancelDuplicateResultEdges=function(){for(var t=this._graph.getEdgeEnds().iterator();t.hasNext();){var e=t.next(),n=e.getSym();e.isInResult()&&n.isInResult()&&(e.setInResult(!1),n.setInResult(!1))}},e.prototype.isCoveredByLA=function(t){return!!this.isCovered(t,this._resultLineList)||!!this.isCovered(t,this._resultPolyList)},e.prototype.computeGeometry=function(t,n,i,r){var o=new Mt;return o.addAll(t),o.addAll(n),o.addAll(i),o.isEmpty()?e.createEmptyResult(r,this._arg[0].getGeometry(),this._arg[1].getGeometry(),this._geomFact):this._geomFact.buildGeometry(o)},e.prototype.mergeSymLabels=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().mergeSymLabels()},e.prototype.isCovered=function(t,e){for(var n=e.iterator();n.hasNext();){var i=n.next();if(this._ptLocator.locate(t,i)!==L.EXTERIOR)return!0}return!1},e.prototype.replaceCollapsedEdges=function(){for(var t=new Mt,e=this._edgeList.iterator();e.hasNext();){var n=e.next();n.isCollapsed()&&(e.remove(),t.add(n.getCollapsedEdge()))}this._edgeList.addAll(t)},e.prototype.updateNodeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getEdges().getLabel();e.getLabel().merge(n)}},e.prototype.getResultGeometry=function(t){return this.computeOverlay(t),this._resultGeom},e.prototype.insertUniqueEdges=function(t){for(var e=t.iterator();e.hasNext();){var n=e.next();this.insertUniqueEdge(n)}},e.prototype.computeOverlay=function(t){this.copyPoints(0),this.copyPoints(1),this._arg[0].computeSelfNodes(this._li,!1),this._arg[1].computeSelfNodes(this._li,!1),this._arg[0].computeEdgeIntersections(this._arg[1],this._li,!0);var e=new Mt;this._arg[0].computeSplitEdges(e),this._arg[1].computeSplitEdges(e),this.insertUniqueEdges(e),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),Vi.checkValid(this._edgeList.getEdges()),this._graph.addEdges(this._edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(t),this.cancelDuplicateResultEdges();var n=new Ze(this._geomFact);n.add(this._graph),this._resultPolyList=n.getPolygons();var i=new Hi(this,this._geomFact,this._ptLocator);this._resultLineList=i.build(t);var r=new $i(this,this._geomFact,this._ptLocator);this._resultPointList=r.build(t),this._resultGeom=this.computeGeometry(this._resultPointList,this._resultLineList,this._resultPolyList,t)},e.prototype.labelIncompleteNode=function(t,e){var n=this._ptLocator.locate(t.getCoordinate(),this._arg[e].getGeometry());t.getLabel().setLocation(e,n)},e.prototype.copyPoints=function(t){for(var e=this._arg[t].getNodeIterator();e.hasNext();){var n=e.next();this._graph.addNode(n.getCoordinate()).setLabel(t,n.getLabel().getLocation(t))}},e.prototype.findResultAreaEdges=function(t){for(var n=this._graph.getEdgeEnds().iterator();n.hasNext();){var i=n.next(),r=i.getLabel();r.isArea()&&!i.isInteriorAreaEdge()&&e.isResultOfOp(r.getLocation(0,Ee.RIGHT),r.getLocation(1,Ee.RIGHT),t)&&i.setInResult(!0)}},e.prototype.computeLabelsFromDepths=function(){for(var t=this._edgeList.iterator();t.hasNext();){var e=t.next(),n=e.getLabel(),i=e.getDepth();if(!i.isNull()){i.normalize();for(var r=0;r<2;r++)n.isNull(r)||!n.isArea()||i.isNull(r)||(0===i.getDelta(r)?n.toLine(r):(et.isTrue(!i.isNull(r,Ee.LEFT),"depth of LEFT side has not been initialized"),n.setLocation(r,Ee.LEFT,i.getLocation(r,Ee.LEFT)),et.isTrue(!i.isNull(r,Ee.RIGHT),"depth of RIGHT side has not been initialized"),n.setLocation(r,Ee.RIGHT,i.getLocation(r,Ee.RIGHT))))}}},e.prototype.computeLabelling=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();)t.next().getEdges().computeLabelling(this._arg);this.mergeSymLabels(),this.updateNodeLabelling()},e.prototype.labelIncompleteNodes=function(){for(var t=this._graph.getNodes().iterator();t.hasNext();){var e=t.next(),n=e.getLabel();e.isIsolated()&&(n.isNull(0)?this.labelIncompleteNode(e,0):this.labelIncompleteNode(e,1)),e.getEdges().updateLabelling(n)}},e.prototype.isCoveredByA=function(t){return!!this.isCovered(t,this._resultPolyList)},e.prototype.interfaces_=function(){return[]},e.prototype.getClass=function(){return e},e}(Sr);Cr.overlayOp=function(t,e,n){return new Cr(t,e).getResultGeometry(n)},Cr.intersection=function(t,e){if(t.isEmpty()||e.isEmpty())return Cr.createEmptyResult(Cr.INTERSECTION,t,e,t.getFactory());if(t.isGeometryCollection()){var n=e;return Zi.map(t,{interfaces_:function(){return[Er.MapOp]},map:function(t){return t.intersection(n)}})}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),or.overlayOp(t,e,Cr.INTERSECTION)},Cr.symDifference=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Cr.createEmptyResult(Cr.SYMDIFFERENCE,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),or.overlayOp(t,e,Cr.SYMDIFFERENCE)},Cr.resultDimension=function(t,e,n){var i=e.getDimension(),r=n.getDimension(),o=-1;switch(t){case Cr.INTERSECTION:o=Math.min(i,r);break;case Cr.UNION:o=Math.max(i,r);break;case Cr.DIFFERENCE:o=i;break;case Cr.SYMDIFFERENCE:o=Math.max(i,r)}return o},Cr.createEmptyResult=function(t,e,n,i){var r=null;switch(Cr.resultDimension(t,e,n)){case-1:r=i.createGeometryCollection(new Array(0).fill(null));break;case 0:r=i.createPoint();break;case 1:r=i.createLineString();break;case 2:r=i.createPolygon()}return r},Cr.difference=function(t,e){return t.isEmpty()?Cr.createEmptyResult(Cr.DIFFERENCE,t,e,t.getFactory()):e.isEmpty()?t.copy():(t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),or.overlayOp(t,e,Cr.DIFFERENCE))},Cr.isResultOfOp=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=t.getLocation(0),i=t.getLocation(1);return Cr.isResultOfOp(n,i,e)}if(3===arguments.length){var r=arguments[0],o=arguments[1],s=arguments[2];switch(r===L.BOUNDARY&&(r=L.INTERIOR),o===L.BOUNDARY&&(o=L.INTERIOR),s){case Cr.INTERSECTION:return r===L.INTERIOR&&o===L.INTERIOR;case Cr.UNION:return r===L.INTERIOR||o===L.INTERIOR;case Cr.DIFFERENCE:return r===L.INTERIOR&&o!==L.INTERIOR;case Cr.SYMDIFFERENCE:return r===L.INTERIOR&&o!==L.INTERIOR||r!==L.INTERIOR&&o===L.INTERIOR}return!1}},Cr.INTERSECTION=1,Cr.UNION=2,Cr.DIFFERENCE=3,Cr.SYMDIFFERENCE=4;var Ir=function(){this._g=null,this._boundaryDistanceTolerance=null,this._linework=null,this._ptLocator=new Ei,this._seg=new gn;var t=arguments[0],e=arguments[1];this._g=t,this._boundaryDistanceTolerance=e,this._linework=this.extractLinework(t)};Ir.prototype.isWithinToleranceOfBoundary=function(t){for(var e=0;e<this._linework.getNumGeometries();e++)for(var n=this._linework.getGeometryN(e).getCoordinateSequence(),i=0;i<n.size()-1;i++)if(n.getCoordinate(i,this._seg.p0),n.getCoordinate(i+1,this._seg.p1),this._seg.distance(t)<=this._boundaryDistanceTolerance)return!0;return!1},Ir.prototype.getLocation=function(t){return this.isWithinToleranceOfBoundary(t)?L.BOUNDARY:this._ptLocator.locate(t,this._g)},Ir.prototype.extractLinework=function(t){var e=new Lr;t.apply(e);var n=e.getLinework(),i=ye.toLineStringArray(n);return t.getFactory().createMultiLineString(i)},Ir.prototype.interfaces_=function(){return[]},Ir.prototype.getClass=function(){return Ir};var Lr=function(){this._linework=null,this._linework=new Mt};Lr.prototype.getLinework=function(){return this._linework},Lr.prototype.filter=function(t){if(t instanceof Qt){var e=t;this._linework.add(e.getExteriorRing());for(var n=0;n<e.getNumInteriorRing();n++)this._linework.add(e.getInteriorRingN(n))}},Lr.prototype.interfaces_=function(){return[Bt]},Lr.prototype.getClass=function(){return Lr};var Or=function(){this._g=null,this._doLeft=!0,this._doRight=!0;var t=arguments[0];this._g=t};Or.prototype.extractPoints=function(t,e,n){for(var i=t.getCoordinates(),r=0;r<i.length-1;r++)this.computeOffsetPoints(i[r],i[r+1],e,n)},Or.prototype.setSidesToGenerate=function(t,e){this._doLeft=t,this._doRight=e},Or.prototype.getPoints=function(t){for(var e=new Mt,n=Si.getLines(this._g).iterator();n.hasNext();){var i=n.next();this.extractPoints(i,t,e)}return e},Or.prototype.computeOffsetPoints=function(t,e,n,i){var r=e.x-t.x,o=e.y-t.y,s=Math.sqrt(r*r+o*o),a=n*r/s,u=n*o/s,c=(e.x+t.x)/2,h=(e.y+t.y)/2;if(this._doLeft){var l=new S(c-u,h+a);i.add(l)}if(this._doRight){var f=new S(c+u,h-a);i.add(f)}},Or.prototype.interfaces_=function(){return[]},Or.prototype.getClass=function(){return Or};var Tr=function t(){this._geom=null,this._locFinder=null,this._location=new Array(3).fill(null),this._invalidLocation=null,this._boundaryDistanceTolerance=t.TOLERANCE,this._testCoords=new Mt;var e=arguments[0],n=arguments[1],i=arguments[2];this._boundaryDistanceTolerance=t.computeBoundaryDistanceTolerance(e,n),this._geom=[e,n,i],this._locFinder=[new Ir(this._geom[0],this._boundaryDistanceTolerance),new Ir(this._geom[1],this._boundaryDistanceTolerance),new Ir(this._geom[2],this._boundaryDistanceTolerance)]},Pr={TOLERANCE:{configurable:!0}};Tr.prototype.reportResult=function(t,e,n){V.out.println("Overlay result invalid - A:"+L.toLocationSymbol(e[0])+" B:"+L.toLocationSymbol(e[1])+" expected:"+(n?"i":"e")+" actual:"+L.toLocationSymbol(e[2]))},Tr.prototype.isValid=function(t){this.addTestPts(this._geom[0]),this.addTestPts(this._geom[1]);var e=this.checkValid(t);return e},Tr.prototype.checkValid=function(){if(1===arguments.length){for(var t=arguments[0],e=0;e<this._testCoords.size();e++){var n=this._testCoords.get(e);if(!this.checkValid(t,n))return this._invalidLocation=n,!1}return!0}if(2===arguments.length){var i=arguments[0],r=arguments[1];return this._location[0]=this._locFinder[0].getLocation(r),this._location[1]=this._locFinder[1].getLocation(r),this._location[2]=this._locFinder[2].getLocation(r),!!Tr.hasLocation(this._location,L.BOUNDARY)||this.isValidResult(i,this._location)}},Tr.prototype.addTestPts=function(t){var e=new Or(t);this._testCoords.addAll(e.getPoints(5*this._boundaryDistanceTolerance))},Tr.prototype.isValidResult=function(t,e){var n=Cr.isResultOfOp(e[0],e[1],t),i=!(n^e[2]===L.INTERIOR);return i||this.reportResult(t,e,n),i},Tr.prototype.getInvalidLocation=function(){return this._invalidLocation},Tr.prototype.interfaces_=function(){return[]},Tr.prototype.getClass=function(){return Tr},Tr.hasLocation=function(t,e){for(var n=0;n<3;n++)if(t[n]===e)return!0;return!1},Tr.computeBoundaryDistanceTolerance=function(t,e){return Math.min(Xi.computeSizeBasedSnapTolerance(t),Xi.computeSizeBasedSnapTolerance(e))},Tr.isValid=function(t,e,n,i){return new Tr(t,e,i).isValid(n)},Pr.TOLERANCE.get=function(){return 1e-6},Object.defineProperties(Tr,Pr);var Nr=function t(e){this._geomFactory=null,this._skipEmpty=!1,this._inputGeoms=null,this._geomFactory=t.extractFactory(e),this._inputGeoms=e};Nr.prototype.extractElements=function(t,e){if(null===t)return null;for(var n=0;n<t.getNumGeometries();n++){var i=t.getGeometryN(n);this._skipEmpty&&i.isEmpty()||e.add(i)}},Nr.prototype.combine=function(){for(var t=new Mt,e=this._inputGeoms.iterator();e.hasNext();){var n=e.next();this.extractElements(n,t)}return 0===t.size()?null!==this._geomFactory?this._geomFactory.createGeometryCollection(null):null:this._geomFactory.buildGeometry(t)},Nr.prototype.interfaces_=function(){return[]},Nr.prototype.getClass=function(){return Nr},Nr.combine=function(){if(1===arguments.length){var t=arguments[0];return new Nr(t).combine()}if(2===arguments.length){var e=arguments[0],n=arguments[1];return new Nr(Nr.createList(e,n)).combine()}if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2];return new Nr(Nr.createList(i,r,o)).combine()}},Nr.extractFactory=function(t){return t.isEmpty()?null:t.iterator().next().getFactory()},Nr.createList=function(){if(2===arguments.length){var t=arguments[0],e=arguments[1],n=new Mt;return n.add(t),n.add(e),n}if(3===arguments.length){var i=arguments[0],r=arguments[1],o=arguments[2],s=new Mt;return s.add(i),s.add(r),s.add(o),s}};var Ar=function(){this._inputPolys=null,this._geomFactory=null;var t=arguments[0];this._inputPolys=t,null===this._inputPolys&&(this._inputPolys=new Mt)},Rr={STRTREE_NODE_CAPACITY:{configurable:!0}};Ar.prototype.reduceToGeometries=function(t){for(var e=new Mt,n=t.iterator();n.hasNext();){var i=n.next(),r=null;T(i,wt)?r=this.unionTree(i):i instanceof ht&&(r=i),e.add(r)}return e},Ar.prototype.extractByEnvelope=function(t,e,n){for(var i=new Mt,r=0;r<e.getNumGeometries();r++){var o=e.getGeometryN(r);o.getEnvelopeInternal().intersects(t)?i.add(o):n.add(o)}return this._geomFactory.buildGeometry(i)},Ar.prototype.unionOptimized=function(t,e){var n=t.getEnvelopeInternal(),i=e.getEnvelopeInternal();if(!n.intersects(i))return Nr.combine(t,e);if(t.getNumGeometries()<=1&&e.getNumGeometries()<=1)return this.unionActual(t,e);var r=n.intersection(i);return this.unionUsingEnvelopeIntersection(t,e,r)},Ar.prototype.union=function(){if(null===this._inputPolys)throw new Error("union() method cannot be called twice");if(this._inputPolys.isEmpty())return null;this._geomFactory=this._inputPolys.iterator().next().getFactory();for(var t=new sn(Ar.STRTREE_NODE_CAPACITY),e=this._inputPolys.iterator();e.hasNext();){var n=e.next();t.insert(n.getEnvelopeInternal(),n)}this._inputPolys=null;var i=t.itemsTree();return this.unionTree(i)},Ar.prototype.binaryUnion=function(){if(1===arguments.length){var t=arguments[0];return this.binaryUnion(t,0,t.size())}if(3===arguments.length){var e=arguments[0],n=arguments[1],i=arguments[2];if(i-n<=1){var r=Ar.getGeometry(e,n);return this.unionSafe(r,null)}if(i-n==2)return this.unionSafe(Ar.getGeometry(e,n),Ar.getGeometry(e,n+1));var o=Math.trunc((i+n)/2),s=this.binaryUnion(e,n,o),a=this.binaryUnion(e,o,i);return this.unionSafe(s,a)}},Ar.prototype.repeatedUnion=function(t){for(var e=null,n=t.iterator();n.hasNext();){var i=n.next();e=null===e?i.copy():e.union(i)}return e},Ar.prototype.unionSafe=function(t,e){return null===t&&null===e?null:null===t?e.copy():null===e?t.copy():this.unionOptimized(t,e)},Ar.prototype.unionActual=function(t,e){return Ar.restrictToPolygons(t.union(e))},Ar.prototype.unionTree=function(t){var e=this.reduceToGeometries(t);return this.binaryUnion(e)},Ar.prototype.unionUsingEnvelopeIntersection=function(t,e,n){var i=new Mt,r=this.extractByEnvelope(n,t,i),o=this.extractByEnvelope(n,e,i),s=this.unionActual(r,o);return i.add(s),Nr.combine(i)},Ar.prototype.bufferUnion=function(){if(1===arguments.length){var t=arguments[0];return t.get(0).getFactory().buildGeometry(t).buffer(0)}if(2===arguments.length){var e=arguments[0],n=arguments[1];return e.getFactory().createGeometryCollection([e,n]).buffer(0)}},Ar.prototype.interfaces_=function(){return[]},Ar.prototype.getClass=function(){return Ar},Ar.restrictToPolygons=function(t){if(T(t,Jt))return t;var e=Mi.getPolygons(t);return 1===e.size()?e.get(0):t.getFactory().createMultiPolygon(ye.toPolygonArray(e))},Ar.getGeometry=function(t,e){return e>=t.size()?null:t.get(e)},Ar.union=function(t){return new Ar(t).union()},Rr.STRTREE_NODE_CAPACITY.get=function(){return 4},Object.defineProperties(Ar,Rr);var Dr=function(){};Dr.prototype.interfaces_=function(){return[]},Dr.prototype.getClass=function(){return Dr},Dr.union=function(t,e){if(t.isEmpty()||e.isEmpty()){if(t.isEmpty()&&e.isEmpty())return Cr.createEmptyResult(Cr.UNION,t,e,t.getFactory());if(t.isEmpty())return e.copy();if(e.isEmpty())return t.copy()}return t.checkNotGeometryCollection(t),t.checkNotGeometryCollection(e),or.overlayOp(t,e,Cr.UNION)},t.GeoJSONReader=Me,t.GeoJSONWriter=Se,t.OverlayOp=Cr,t.UnionOp=Dr,t.BufferOp=gi,Object.defineProperty(t,"__esModule",{value:!0})})},"90e5":function(t,e){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];function i(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var r=n.concat(e).sort().reverse(),o=new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+r.join("|")+"|.)","g");return o}t.exports=i},9113:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setSeconds(r),n}t.exports=r},9138:function(t,e,n){t.exports=n("35e8")},"91dd":function(t,e,n){"use strict";function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var s={};if("string"!==typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var u=1e3;o&&"number"===typeof o.maxKeys&&(u=o.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var h=0;h<c;++h){var l,f,p,d,g=t[h].replace(a,"%20"),m=g.indexOf(n);m>=0?(l=g.substr(0,m),f=g.substr(m+1)):(l=g,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),i(s,p)?r(s[p])?s[p].push(d):s[p]=[s[p],d]:s[p]=d}return s};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},9331:function(t,e,n){"use strict";var i=n("83ae"),r=n.n(i);r.a},9427:function(t,e,n){var i=n("63b6");i(i.S,"Object",{create:n("a159")})},"942b":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setDate(1),e.setHours(0,0,0,0),e}t.exports=r},9530:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setMonth(0),n.setDate(r),n}t.exports=r},"957f":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setDate(r),n}t.exports=r},"95d5":function(t,e,n){var i=n("40c3"),r=n("5168")("iterator"),o=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[r]||"@@iterator"in e||o.hasOwnProperty(i(e))}},"95ea":function(t,e,n){var i=n("c8d5");function r(){var t=Array.prototype.slice.call(arguments),e=t.map(function(t){return i(t)}),n=Math.max.apply(null,e);return new Date(n)}t.exports=r},9706:function(t,e,n){var i=n("c8d5"),r=n("4497"),o=n("d420");function s(t,e){var n=i(t),s=Number(e),a=o(n,r(n)),u=new Date(0);return u.setFullYear(s,0,4),u.setHours(0,0,0,0),n=r(u),n.setDate(n.getDate()+a),n}t.exports=s},9744:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setHours(23,59,59,999),e}t.exports=r},"97af":function(t,e,n){var i=n("2fff");function r(t){return i(new Date,t)}t.exports=r},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9aaa":function(t,e,n){var i=n("4399");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},"9ad8":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDay();return 0===n||6===n}t.exports=r},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9bb9":function(t,e,n){var i=n("5a60");function r(t){return i(new Date,t)}t.exports=r},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9d88":function(t,e,n){(function(t,i){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(o){e&&e.nodeType,t&&t.nodeType;var s="object"==typeof i&&i;s.global!==s&&s.window!==s&&s.self;var a,u=2147483647,c=36,h=1,l=26,f=38,p=700,d=72,g=128,m="-",y=/^xn--/,_=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-h,w=Math.floor,M=String.fromCharCode;function S(t){throw new RangeError(b[t])}function E(t,e){var n=t.length,i=[];while(n--)i[n]=e(t[n]);return i}function C(t,e){var n=t.split("@"),i="";n.length>1&&(i=n[0]+"@",t=n[1]),t=t.replace(v,".");var r=t.split("."),o=E(r,e).join(".");return i+o}function I(t){var e,n,i=[],r=0,o=t.length;while(r<o)e=t.charCodeAt(r++),e>=55296&&e<=56319&&r<o?(n=t.charCodeAt(r++),56320==(64512&n)?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--)):i.push(e);return i}function L(t){return E(t,function(t){var e="";return t>65535&&(t-=65536,e+=M(t>>>10&1023|55296),t=56320|1023&t),e+=M(t),e}).join("")}function O(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:c}function T(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function P(t,e,n){var i=0;for(t=n?w(t/p):t>>1,t+=w(t/e);t>x*l>>1;i+=c)t=w(t/x);return w(i+(x+1)*t/(t+f))}function N(t){var e,n,i,r,o,s,a,f,p,y,_=[],v=t.length,b=0,x=g,M=d;for(n=t.lastIndexOf(m),n<0&&(n=0),i=0;i<n;++i)t.charCodeAt(i)>=128&&S("not-basic"),_.push(t.charCodeAt(i));for(r=n>0?n+1:0;r<v;){for(o=b,s=1,a=c;;a+=c){if(r>=v&&S("invalid-input"),f=O(t.charCodeAt(r++)),(f>=c||f>w((u-b)/s))&&S("overflow"),b+=f*s,p=a<=M?h:a>=M+l?l:a-M,f<p)break;y=c-p,s>w(u/y)&&S("overflow"),s*=y}e=_.length+1,M=P(b-o,e,0==o),w(b/e)>u-x&&S("overflow"),x+=w(b/e),b%=e,_.splice(b++,0,x)}return L(_)}function A(t){var e,n,i,r,o,s,a,f,p,y,_,v,b,x,E,C=[];for(t=I(t),v=t.length,e=g,n=0,o=d,s=0;s<v;++s)_=t[s],_<128&&C.push(M(_));i=r=C.length,r&&C.push(m);while(i<v){for(a=u,s=0;s<v;++s)_=t[s],_>=e&&_<a&&(a=_);for(b=i+1,a-e>w((u-n)/b)&&S("overflow"),n+=(a-e)*b,e=a,s=0;s<v;++s)if(_=t[s],_<e&&++n>u&&S("overflow"),_==e){for(f=n,p=c;;p+=c){if(y=p<=o?h:p>=o+l?l:p-o,f<y)break;E=f-y,x=c-y,C.push(M(T(y+E%x,0))),f=w(E/x)}C.push(M(T(f,0))),o=P(n,b,i==r),n=0,++i}++n,++e}return C.join("")}function R(t){return C(t,function(t){return y.test(t)?N(t.slice(4).toLowerCase()):t})}function D(t){return C(t,function(t){return _.test(t)?"xn--"+A(t):t})}a={version:"1.4.1",ucs2:{decode:I,encode:L},decode:N,encode:A,toASCII:D,toUnicode:R},r=function(){return a}.call(e,n,e,t),void 0===r||(t.exports=r)})()}).call(this,n("62e4")(t),n("c8ba"))},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9ee1":function(t,e,n){},a159:function(t,e,n){var i=n("e4ae"),r=n("7e90"),o=n("1691"),s=n("5559")("IE_PROTO"),a=function(){},u="prototype",c=function(){var t,e=n("1ec9")("iframe"),i=o.length,r="<",s=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),c=t.F;while(i--)delete c[u][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=i(t),n=new a,a[u]=null,n[s]=t):n=c(),void 0===e?n:r(n,e)}},a25f:function(t,e,n){var i=n("7726"),r=i.navigator;t.exports=r&&r.userAgent||""},a431:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()>r.getTime()}t.exports=r},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),u=n("5f1b"),c=Math.max,h=Math.min,l=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,d=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,g){return[function(i,r){var o=t(this),s=void 0==i?void 0:i[e];return void 0!==s?s.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=g(n,t,this,e);if(r.done)return r.value;var l=i(t),f=String(this),p="function"===typeof e;p||(e=String(e));var y=l.global;if(y){var _=l.unicode;l.lastIndex=0}var v=[];while(1){var b=u(l,f);if(null===b)break;if(v.push(b),!y)break;var x=String(b[0]);""===x&&(l.lastIndex=a(f,o(l.lastIndex),_))}for(var w="",M=0,S=0;S<v.length;S++){b=v[S];for(var E=String(b[0]),C=c(h(s(b.index),f.length),0),I=[],L=1;L<b.length;L++)I.push(d(b[L]));var O=b.groups;if(p){var T=[E].concat(I,C,f);void 0!==O&&T.push(O);var P=String(e.apply(void 0,T))}else P=m(E,f,C,I,O,e);C>=M&&(w+=f.slice(M,C)+P,M=C+E.length)}return w+f.slice(M)}];function m(t,e,i,o,s,a){var u=i+t.length,c=o.length,h=p;return void 0!==s&&(s=r(s),h=f),n.call(a,h,function(n,r){var a;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(u);case"<":a=s[r.slice(1,-1)];break;default:var h=+r;if(0===h)return n;if(h>c){var f=l(h/10);return 0===f?n:f<=c?void 0===o[f-1]?r.charAt(1):o[f-1]+r.charAt(1):n}a=o[h-1]}return void 0===a?"":a})}})},a4b7:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}t.exports=r},a4bb:function(t,e,n){t.exports=n("8aae")},a5b8:function(t,e,n){"use strict";var i=n("d8e8");function r(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},a735:function(t,e){function n(t){return t instanceof Date}t.exports=n},a745:function(t,e,n){t.exports=n("f410")},a79f:function(t,e,n){"use strict";var i=function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]},r=1,o=2,s=4,a=5,u=484813681109536e-20,c=Math.PI/2,h=.16666666666666666,l=.04722222222222222,f=.022156084656084655,p=1e-10,d=.017453292519943295,g=57.29577951308232,m=Math.PI/4,y=2*Math.PI,_=3.14159265359,v={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},b={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},x=/[\s_\-\/\(\)]/g;function w(t,e){if(t[e])return t[e];var n,i,r=Object.keys(t),o=e.toLowerCase().replace(x,""),s=-1;while(++s<r.length)if(n=r[s],i=n.toLowerCase().replace(x,""),i===o)return t[n]}var M=function(t){var e,n,i,r={},o=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},{}),s={proj:"projName",datum:"datumCode",rf:function(t){r.rf=parseFloat(t)},lat_0:function(t){r.lat0=t*d},lat_1:function(t){r.lat1=t*d},lat_2:function(t){r.lat2=t*d},lat_ts:function(t){r.lat_ts=t*d},lon_0:function(t){r.long0=t*d},lon_1:function(t){r.long1=t*d},lon_2:function(t){r.long2=t*d},alpha:function(t){r.alpha=parseFloat(t)*d},lonc:function(t){r.longc=t*d},x_0:function(t){r.x0=parseFloat(t)},y_0:function(t){r.y0=parseFloat(t)},k_0:function(t){r.k0=parseFloat(t)},k:function(t){r.k0=parseFloat(t)},a:function(t){r.a=parseFloat(t)},b:function(t){r.b=parseFloat(t)},r_a:function(){r.R_A=!0},zone:function(t){r.zone=parseInt(t,10)},south:function(){r.utmSouth=!0},towgs84:function(t){r.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){r.to_meter=parseFloat(t)},units:function(t){r.units=t;var e=w(b,t);e&&(r.to_meter=e.to_meter)},from_greenwich:function(t){r.from_greenwich=t*d},pm:function(t){var e=w(v,t);r.from_greenwich=(e||parseFloat(t))*d},nadgrids:function(t){"@null"===t?r.datumCode="none":r.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))&&(r.axis=t)}};for(e in o)n=o[e],e in s?(i=s[e],"function"===typeof i?i(n):r[i]=n):r[e]=n;return"string"===typeof r.datumCode&&"WGS84"!==r.datumCode&&(r.datumCode=r.datumCode.toLowerCase()),r},S=F,E=1,C=2,I=3,L=4,O=5,T=-1,P=/\s/,N=/[A-Za-z]/,A=/[A-Za-z84]/,R=/[,\]]/,D=/[\d\.E\-\+]/;function k(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=E}function F(t){var e=new k(t);return e.output()}function z(t,e,n){Array.isArray(e)&&(n.unshift(e),e=null);var i=e?{}:t,r=n.reduce(function(t,e){return j(e,t),t},i);e&&(t[e]=r)}function j(t,e){if(Array.isArray(t)){var n,i=t.shift();if("PARAMETER"===i&&(i=t.shift()),1===t.length)return Array.isArray(t[0])?(e[i]={},void j(t[0],e[i])):void(e[i]=t[0]);if(t.length)if("TOWGS84"!==i)switch(Array.isArray(i)||(e[i]={}),i){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[i]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&j(t[2],e[i]));case"SPHEROID":case"ELLIPSOID":return e[i]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&j(t[3],e[i]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return t[0]=["name",t[0]],void z(e,i,t);default:n=-1;while(++n<t.length)if(!Array.isArray(t[n]))return j(t,e[i]);return z(e,i,t)}else e[i]=t;else e[i]=!0}else e[t]=!0}k.prototype.readCharicter=function(){var t=this.text[this.place++];if(this.state!==L)while(P.test(t)){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case E:return this.neutral(t);case C:return this.keyword(t);case L:return this.quoted(t);case O:return this.afterquote(t);case I:return this.number(t);case T:return}},k.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=L);if(R.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)},k.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=E)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=E,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=T))):void 0},k.prototype.number=function(t){if(!D.test(t)){if(R.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},k.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=O},k.prototype.keyword=function(t){if(A.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=E)}if(!R.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},k.prototype.neutral=function(t){if(N.test(t))return this.word=t,void(this.state=C);if('"'===t)return this.word="",void(this.state=L);if(D.test(t))return this.word=t,void(this.state=I);if(!R.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},k.prototype.output=function(){while(this.place<this.text.length)this.readCharicter();if(this.state===T)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var B=.017453292519943295;function G(t,e){var n=e[0],i=e[1];!(n in t)&&i in t&&(t[n]=t[i],3===e.length&&(t[n]=e[2](t[n])))}function q(t){return t*B}function U(t){"GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"===typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,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 e=t.GEOGCS;function n(e){var n=t.to_meter||1;return e*n}"GEOGCS"===t.type&&(e=t),e&&(e.DATUM?t.datumCode=e.DATUM.name.toLowerCase():t.datumCode=e.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==t.datumCode&&"new_zealand_1949"!==t.datumCode||(t.datumCode="nzgd49"),"wgs_1984"===t.datumCode&&("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"_ferro"===t.datumCode.slice(-6)&&(t.datumCode=t.datumCode.slice(0,-6)),"_jakarta"===t.datumCode.slice(-8)&&(t.datumCode=t.datumCode.slice(0,-8)),~t.datumCode.indexOf("belge")&&(t.datumCode="rnb72"),e.DATUM&&e.DATUM.SPHEROID&&(t.ellps=e.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=e.DATUM.SPHEROID.a,t.rf=parseFloat(e.DATUM.SPHEROID.rf,10)),e.DATUM&&e.DATUM.TOWGS84&&(t.datum_params=e.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);var i=function(e){return G(t,e)},r=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",q],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",q],["x0","false_easting",n],["y0","false_northing",n],["long0","central_meridian",q],["lat0","latitude_of_origin",q],["lat0","standard_parallel_1",q],["lat1","standard_parallel_1",q],["lat2","standard_parallel_2",q],["azimuth","Azimuth"],["alpha","azimuth",q],["srsCode","name"]];r.forEach(i),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&&"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&&"Polar Stereographic (variant B)"!==t.projName||(t.lat0=q(t.lat1>0?90:-90),t.lat_ts=t.lat1)}var V=function(t){var e=S(t),n=e.shift(),i=e.shift();e.unshift(["name",i]),e.unshift(["type",n]);var r={};return j(e,r),U(r),r};function Z(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"===typeof n?"+"===n.charAt(0)?Z[t]=M(arguments[1]):Z[t]=V(arguments[1]):Z[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){Array.isArray(t)?Z.apply(e,t):Z(t)});if("string"===typeof t){if(t in Z)return Z[t]}else"EPSG"in t?Z["EPSG:"+t.EPSG]=t:"ESRI"in t?Z["ESRI:"+t.ESRI]=t:"IAU2000"in t?Z["IAU2000:"+t.IAU2000]=t:console.log(t);return}}i(Z);var H=Z;function $(t){return"string"===typeof t}function Y(t){return t in H}var W=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function X(t){return W.some(function(e){return t.indexOf(e)>-1})}var K=["3857","900913","3785","102113"];function J(t){var e=w(t,"authority");if(e){var n=w(e,"epsg");return n&&K.indexOf(n)>-1}}function Q(t){var e=w(t,"extension");if(e)return w(e,"proj4")}function tt(t){return"+"===t[0]}function et(t){if(!$(t))return t;if(Y(t))return H[t];if(X(t)){var e=V(t);if(J(e))return H["EPSG:3857"];var n=Q(e);return n?M(n):e}return tt(t)?M(t):void 0}var nt=et,it=function(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)n=e[i],void 0!==n&&(t[i]=n);return t},rt=function(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)},ot=function(t){return t<0?-1:1},st=function(t){return Math.abs(t)<=_?t:t-ot(t)*y},at=function(t,e,n){var i=t*n,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(c-e))/i},ut=function(t,e){for(var n,i,r=.5*t,o=c-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),i=c-2*Math.atan(e*Math.pow((1-n)/(1+n),r))-o,o+=i,Math.abs(i)<=1e-10)return o;return-9999};function ct(){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=rt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function ht(t){var e,n,i=t.x,r=t.y;if(r*g>90&&r*g<-90&&i*g>180&&i*g<-180)return null;if(Math.abs(Math.abs(r)-c)<=p)return null;if(this.sphere)e=this.x0+this.a*this.k0*st(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(m+.5*r));else{var o=Math.sin(r),s=at(this.e,r,o);e=this.x0+this.a*this.k0*st(i-this.long0),n=this.y0-this.a*this.k0*Math.log(s)}return t.x=e,t.y=n,t}function lt(t){var e,n,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)n=c-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var o=Math.exp(-r/(this.a*this.k0));if(n=ut(this.e,o),-9999===n)return null}return e=st(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t}var ft=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],pt={init:ct,forward:ht,inverse:lt,names:ft};function dt(){}function gt(t){return t}var mt=["longlat","identity"],yt={init:dt,forward:gt,inverse:gt,names:mt},_t=[pt,yt],vt={},bt=[];function xt(t,e){var n=bt.length;return t.names?(bt[n]=t,t.names.forEach(function(t){vt[t.toLowerCase()]=n}),this):(console.log(e),!0)}function wt(t){if(!t)return!1;var e=t.toLowerCase();return"undefined"!==typeof vt[e]&&bt[vt[e]]?bt[vt[e]]:void 0}function Mt(){_t.forEach(xt)}var St={start:Mt,add:xt,get:wt},Et={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."},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"}},Ct=Et.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};function It(t,e,n,i){var r=t*t,o=e*e,s=(r-o)/r,a=0;i?(t*=1-s*(h+s*(l+s*f)),r=t*t,s=0):a=Math.sqrt(s);var u=(r-o)/o;return{es:s,e:a,ep2:u}}function Lt(t,e,n,i,r){if(!t){var o=w(Et,i);o||(o=Ct),t=o.a,e=o.b,n=o.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)<p)&&(r=!0,e=t),{a:t,b:e,rf:n,sphere:r}}Et.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var Ot={};function Tt(t,e,n,i,c,h){var l={};return l.datum_type=void 0===t||"none"===t?a:s,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=r),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=o,l.datum_params[3]*=u,l.datum_params[4]*=u,l.datum_params[5]*=u,l.datum_params[6]=l.datum_params[6]/1e6+1))),l.a=n,l.b=i,l.es=c,l.ep2=h,l}Ot.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},Ot.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},Ot.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},Ot.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},Ot.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},Ot.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},Ot.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},Ot.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},Ot.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},Ot.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},Ot.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},Ot.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},Ot.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},Ot.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},Ot.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},Ot.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},Ot.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};var Pt=Tt;function Nt(t,e){if(!(this instanceof Nt))return new Nt(t);e=e||function(t){if(t)throw t};var n=nt(t);if("object"===typeof n){var i=Nt.projections.get(n.projName);if(i){if(n.datumCode&&"none"!==n.datumCode){var r=w(Ot,n.datumCode);r&&(n.datum_params=r.towgs84?r.towgs84.split(","):null,n.ellps=r.ellipse,n.datumName=r.datumName?r.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84";var o=Lt(n.a,n.b,n.rf,n.ellps,n.sphere),s=It(o.a,o.b,o.rf,n.R_A),a=n.datum||Pt(n.datumCode,n.datum_params,o.a,o.b,s.es,s.ep2);it(this,n),it(this,i),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=s.es,this.e=s.e,this.ep2=s.ep2,this.datum=a,this.init(),e(null,this)}else e(t)}else e(t)}Nt.projections=St,Nt.projections.start();var At=Nt;function Rt(t,e){return t.datum_type===e.datum_type&&(!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(t.datum_type===r?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!==o||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 Dt(t,e,n){var i,r,o,s,a=t.x,u=t.y,h=t.z?t.z:0;if(u<-c&&u>-1.001*c)u=-c;else if(u>c&&u<1.001*c)u=c;else{if(u<-c)return{x:-1/0,y:-1/0,z:t.z};if(u>c)return{x:1/0,y:1/0,z:t.z}}return a>Math.PI&&(a-=2*Math.PI),r=Math.sin(u),s=Math.cos(u),o=r*r,i=n/Math.sqrt(1-e*o),{x:(i+h)*s*Math.cos(a),y:(i+h)*s*Math.sin(a),z:(i*(1-e)+h)*r}}function kt(t,e,n,i){var r,o,s,a,u,h,l,f,p,d,g,m,y,_,v,b,x=1e-12,w=x*x,M=30,S=t.x,E=t.y,C=t.z?t.z:0;if(r=Math.sqrt(S*S+E*E),o=Math.sqrt(S*S+E*E+C*C),r/n<x){if(_=0,o/n<x)return v=c,b=-i,{x:t.x,y:t.y,z:t.z}}else _=Math.atan2(E,S);s=C/o,a=r/o,u=1/Math.sqrt(1-e*(2-e)*a*a),f=a*(1-e)*u,p=s*u,y=0;do{y++,l=n/Math.sqrt(1-e*p*p),b=r*f+C*p-l*(1-e*p*p),h=e*l/(l+b),u=1/Math.sqrt(1-h*(2-h)*a*a),d=a*(1-h)*u,g=s*u,m=g*f-d*p,f=d,p=g}while(m*m>w&&y<M);return v=Math.atan(g/Math.abs(d)),{x:_,y:v,z:b}}function Ft(t,e,n){if(e===r)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(e===o){var i=n[0],s=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6];return{x:l*(t.x-h*t.y+c*t.z)+i,y:l*(h*t.x+t.y-u*t.z)+s,z:l*(-c*t.x+u*t.y+t.z)+a}}}function zt(t,e,n){if(e===r)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(e===o){var i=n[0],s=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6],f=(t.x-i)/l,p=(t.y-s)/l,d=(t.z-a)/l;return{x:f+h*p-c*d,y:-h*f+p+u*d,z:c*f-u*p+d}}}function jt(t){return t===r||t===o}var Bt=function(t,e,n){return Rt(t,e)?n:t.datum_type===a||e.datum_type===a?n:t.es!==e.es||t.a!==e.a||jt(t.datum_type)||jt(e.datum_type)?(n=Dt(n,t.es,t.a),jt(t.datum_type)&&(n=Ft(n,t.datum_type,t.datum_params)),jt(e.datum_type)&&(n=zt(n,e.datum_type,e.datum_params)),kt(n,e.es,e.a,e.b)):n},Gt=function(t,e,n){var i,r,o,s=n.x,a=n.y,u=n.z||0,c={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(0===o?(i=s,r="x"):1===o?(i=a,r="y"):(i=u,r="z"),t.axis[o]){case"e":c[r]=i;break;case"w":c[r]=-i;break;case"n":c[r]=i;break;case"s":c[r]=-i;break;case"u":void 0!==n[r]&&(c.z=i);break;case"d":void 0!==n[r]&&(c.z=-i);break;default:return null}return c},qt=function(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},Ut=function(t){Vt(t.x),Vt(t.y)};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 Zt(t,e){return(t.datum.datum_type===r||t.datum.datum_type===o)&&"WGS84"!==e.datumCode||(e.datum.datum_type===r||e.datum.datum_type===o)&&"WGS84"!==t.datumCode}function Ht(t,e,n){var i;return Array.isArray(n)&&(n=qt(n)),Ut(n),t.datum&&e.datum&&Zt(t,e)&&(i=new At("WGS84"),n=Ht(t,i,n),t=i),"enu"!==t.axis&&(n=Gt(t,!1,n)),"longlat"===t.projName?n={x:n.x*d,y:n.y*d}:(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter}),n=t.inverse(n)),t.from_greenwich&&(n.x+=t.from_greenwich),n=Bt(t.datum,e.datum,n),e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y}),"longlat"===e.projName?n={x:n.x*g,y:n.y*g}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter})),"enu"!==e.axis?Gt(e,!0,n):n}var $t=At("WGS84");function Yt(t,e,n){var i,r,o;return Array.isArray(n)?(i=Ht(t,e,n),3===n.length?[i.x,i.y,i.z]:[i.x,i.y]):(r=Ht(t,e,n),o=Object.keys(n),2===o.length?r:(o.forEach(function(t){"x"!==t&&"y"!==t&&(r[t]=n[t])}),r))}function Wt(t){return t instanceof At?t:t.oProj?t.oProj:At(t)}function Xt(t,e,n){t=Wt(t);var i,r=!1;return"undefined"===typeof e?(e=t,t=$t,r=!0):("undefined"!==typeof e.x||Array.isArray(e))&&(n=e,e=t,t=$t,r=!0),e=Wt(e),n?Yt(t,e,n):(i={forward:function(n){return Yt(t,e,n)},inverse:function(n){return Yt(e,t,n)}},r&&(i.oProj=e),i)}var Kt=Xt,Jt=6,Qt="AJSAJS",te="AFAFAF",ee=65,ne=73,ie=79,re=86,oe=90,se={forward:ae,inverse:ue,toPoint:ce};function ae(t,e){return e=e||5,ge(fe({lat:t[1],lon:t[0]}),e)}function ue(t){var e=pe(ve(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function ce(t){var e=pe(ve(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function he(t){return t*(Math.PI/180)}function le(t){return t/Math.PI*180}function fe(t){var e,n,i,r,o,s,a,u,c,h=t.lat,l=t.lon,f=6378137,p=.00669438,d=.9996,g=he(h),m=he(l);c=Math.floor((l+180)/6)+1,180===l&&(c=60),h>=56&&h<64&&l>=3&&l<12&&(c=32),h>=72&&h<84&&(l>=0&&l<9?c=31:l>=9&&l<21?c=33:l>=21&&l<33?c=35:l>=33&&l<42&&(c=37)),e=6*(c-1)-180+3,u=he(e),n=p/(1-p),i=f/Math.sqrt(1-p*Math.sin(g)*Math.sin(g)),r=Math.tan(g)*Math.tan(g),o=n*Math.cos(g)*Math.cos(g),s=Math.cos(g)*(m-u),a=f*((1-p/4-3*p*p/64-5*p*p*p/256)*g-(3*p/8+3*p*p/32+45*p*p*p/1024)*Math.sin(2*g)+(15*p*p/256+45*p*p*p/1024)*Math.sin(4*g)-35*p*p*p/3072*Math.sin(6*g));var y=d*i*(s+(1-r+o)*s*s*s/6+(5-18*r+r*r+72*o-58*n)*s*s*s*s*s/120)+5e5,_=d*(a+i*Math.tan(g)*(s*s/2+(5-r+9*o+4*o*o)*s*s*s*s/24+(61-58*r+r*r+600*o-330*n)*s*s*s*s*s*s/720));return h<0&&(_+=1e7),{northing:Math.round(_),easting:Math.round(y),zoneNumber:c,zoneLetter:de(h)}}function pe(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var o,s,a,u,c,h,l,f,p,d,g=.9996,m=6378137,y=.00669438,_=(1-Math.sqrt(1-y))/(1+Math.sqrt(1-y)),v=n-5e5,b=e;i<"N"&&(b-=1e7),f=6*(r-1)-180+3,o=y/(1-y),l=b/g,p=l/(m*(1-y/4-3*y*y/64-5*y*y*y/256)),d=p+(3*_/2-27*_*_*_/32)*Math.sin(2*p)+(21*_*_/16-55*_*_*_*_/32)*Math.sin(4*p)+151*_*_*_/96*Math.sin(6*p),s=m/Math.sqrt(1-y*Math.sin(d)*Math.sin(d)),a=Math.tan(d)*Math.tan(d),u=o*Math.cos(d)*Math.cos(d),c=m*(1-y)/Math.pow(1-y*Math.sin(d)*Math.sin(d),1.5),h=v/(s*g);var x=d-s*Math.tan(d)/c*(h*h/2-(5+3*a+10*u-4*u*u-9*o)*h*h*h*h/24+(61+90*a+298*u+45*a*a-252*o-3*u*u)*h*h*h*h*h*h/720);x=le(x);var w,M=(h-(1+2*a+u)*h*h*h/6+(5-2*u+28*a-3*u*u+8*o+24*a*a)*h*h*h*h*h/120)/Math.cos(d);if(M=f+le(M),t.accuracy){var S=pe({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});w={top:S.lat,right:S.lon,bottom:x,left:M}}else w={lat:x,lon:M};return w}function de(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 ge(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+me(t.easting,t.northing,t.zoneNumber)+n.substr(n.length-5,e)+i.substr(i.length-5,e)}function me(t,e,n){var i=ye(n),r=Math.floor(t/1e5),o=Math.floor(e/1e5)%20;return _e(r,o,i)}function ye(t){var e=t%Jt;return 0===e&&(e=Jt),e}function _e(t,e,n){var i=n-1,r=Qt.charCodeAt(i),o=te.charCodeAt(i),s=r+t-1,a=o+e,u=!1;s>oe&&(s=s-oe+ee-1,u=!0),(s===ne||r<ne&&s>ne||(s>ne||r<ne)&&u)&&s++,(s===ie||r<ie&&s>ie||(s>ie||r<ie)&&u)&&(s++,s===ne&&s++),s>oe&&(s=s-oe+ee-1),a>re?(a=a-re+ee-1,u=!0):u=!1,(a===ne||o<ne&&a>ne||(a>ne||o<ne)&&u)&&a++,(a===ie||o<ie&&a>ie||(a>ie||o<ie)&&u)&&(a++,a===ne&&a++),a>re&&(a=a-re+ee-1);var c=String.fromCharCode(s)+String.fromCharCode(a);return c}function ve(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";var e,n=t.length,i=null,r="",o=0;while(!/[A-Z]/.test(e=t.charAt(o))){if(o>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,o++}var s=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(o++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;i=t.substring(o,o+=2);var u=ye(s),c=be(i.charAt(0),u),h=xe(i.charAt(1),u);while(h<we(a))h+=2e6;var l=n-o;if(l%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 f,p,d,g,m,y=l/2,_=0,v=0;return y>0&&(f=1e5/Math.pow(10,y),p=t.substring(o,o+y),_=parseFloat(p)*f,d=t.substring(o+y),v=parseFloat(d)*f),g=_+c,m=v+h,{easting:g,northing:m,zoneLetter:a,zoneNumber:s,accuracy:f}}function be(t,e){var n=Qt.charCodeAt(e-1),i=1e5,r=!1;while(n!==t.charCodeAt(0)){if(n++,n===ne&&n++,n===ie&&n++,n>oe){if(r)throw"Bad character: "+t;n=ee,r=!0}i+=1e5}return i}function xe(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var n=te.charCodeAt(e-1),i=0,r=!1;while(n!==t.charCodeAt(0)){if(n++,n===ne&&n++,n===ie&&n++,n>re){if(r)throw"Bad character: "+t;n=ee,r=!0}i+=1e5}return i}function we(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 Me(t,e,n){if(!(this instanceof Me))return new Me(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"===typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"===typeof t&&"undefined"===typeof e){var i=t.split(",");this.x=parseFloat(i[0],10),this.y=parseFloat(i[1],10),this.z=parseFloat(i[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Me.fromMGRS=function(t){return new Me(ce(t))},Me.prototype.toMGRS=function(t){return ae([this.x,this.y],t)};var Se=Me,Ee=n("39c7"),Ce=1,Ie=.25,Le=.046875,Oe=.01953125,Te=.01068115234375,Pe=.75,Ne=.46875,Ae=.013020833333333334,Re=.007120768229166667,De=.3645833333333333,ke=.005696614583333333,Fe=.3076171875,ze=function(t){var e=[];e[0]=Ce-t*(Ie+t*(Le+t*(Oe+t*Te))),e[1]=t*(Pe-t*(Le+t*(Oe+t*Te)));var n=t*t;return e[2]=n*(Ne-t*(Ae+t*Re)),n*=t,e[3]=n*(De-t*ke),e[4]=n*t*Fe,e},je=function(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))},Be=20,Ge=function(t,e,n){for(var i=1/(1-e),r=t,o=Be;o;--o){var s=Math.sin(r),a=1-e*s*s;if(a=(je(r,s,Math.cos(r),n)-t)*(a*Math.sqrt(a))*i,r-=a,Math.abs(a)<p)return r}return r};function qe(){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=ze(this.es),this.ml0=je(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function Ue(t){var e,n,i,r=t.x,o=t.y,s=st(r-this.long0),a=Math.sin(o),u=Math.cos(o);if(this.es){var c=u*s,h=Math.pow(c,2),l=this.ep2*Math.pow(u,2),f=Math.pow(l,2),d=Math.abs(u)>p?Math.tan(o):0,g=Math.pow(d,2),m=Math.pow(g,2);e=1-this.es*Math.pow(a,2),c/=Math.sqrt(e);var y=je(o,a,u,this.en);n=this.a*(this.k0*c*(1+h/6*(1-g+l+h/20*(5-18*g+m+14*l-58*g*l+h/42*(61+179*m-m*g-479*g)))))+this.x0,i=this.a*(this.k0*(y-this.ml0+a*s*c/2*(1+h/12*(5-g+9*l+4*f+h/30*(61+m-58*g+270*l-330*g*l+h/56*(1385+543*m-m*g-3111*g))))))+this.y0}else{var _=u*Math.sin(s);if(Math.abs(Math.abs(_)-1)<p)return 93;if(n=.5*this.a*this.k0*Math.log((1+_)/(1-_))+this.x0,i=u*Math.cos(s)/Math.sqrt(1-Math.pow(_,2)),_=Math.abs(i),_>=1){if(_-1>p)return 93;i=0}else i=Math.acos(i);o<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t}function Ve(t){var e,n,i,r,o=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+s/this.k0,n=Ge(e,this.es,this.en),Math.abs(n)<c){var a=Math.sin(n),u=Math.cos(n),h=Math.abs(u)>p?Math.tan(n):0,l=this.ep2*Math.pow(u,2),f=Math.pow(l,2),d=Math.pow(h,2),g=Math.pow(d,2);e=1-this.es*Math.pow(a,2);var m=o*Math.sqrt(e)/this.k0,y=Math.pow(m,2);e*=h,i=n-e*y/(1-this.es)*.5*(1-y/12*(5+3*d-9*l*d+l-4*f-y/30*(61+90*d-252*l*d+45*g+46*l-y/56*(1385+3633*d+4095*g+1574*g*d)))),r=st(this.long0+m*(1-y/6*(1+2*d+l-y/20*(5+28*d+24*g+8*l*d+6*l-y/42*(61+662*d+1320*g+720*g*d))))/u)}else i=c*ot(s),r=0;else{var _=Math.exp(o/this.k0),v=.5*(_-1/_),b=this.lat0+s/this.k0,x=Math.cos(b);e=Math.sqrt((1-Math.pow(x,2))/(1+Math.pow(v,2))),i=Math.asin(e),s<0&&(i=-i),r=0===v&&0===x?0:st(Math.atan2(v,x)+this.long0)}return t.x=r,t.y=i,t}var Ze=["Transverse_Mercator","Transverse Mercator","tmerc"],He={init:qe,forward:Ue,inverse:Ve,names:Ze},$e=function(t){var e=Math.exp(t);return e=(e-1/e)/2,e},Ye=function(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))},We=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n},Xe=function(t){var e=Math.abs(t);return e=We(e*(1+e/(Ye(1,e)+1))),t<0?-e:e},Ke=function(t,e){var n,i=2*Math.cos(2*e),r=t.length-1,o=t[r],s=0;while(--r>=0)n=i*o-s+t[r],s=o,o=n;return e+n*Math.sin(2*e)},Je=function(t,e){var n,i=2*Math.cos(e),r=t.length-1,o=t[r],s=0;while(--r>=0)n=i*o-s+t[r],s=o,o=n;return Math.sin(e)*n},Qe=function(t){var e=Math.exp(t);return e=(e+1/e)/2,e},tn=function(t,e,n){var i,r,o=Math.sin(e),s=Math.cos(e),a=$e(n),u=Qe(n),c=2*s*u,h=-2*o*a,l=t.length-1,f=t[l],p=0,d=0,g=0;while(--l>=0)i=d,r=p,d=f,p=g,f=c*d-i-h*p+t[l],g=h*d-r+c*p;return c=o*u,h=s*a,[c*f-h*g,c*g+h*f]};function en(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");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*(.25+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]=-.03233083094085698*n,this.gtu[5]=.6650675310896665*n;var i=Ke(this.cbg,this.lat0);this.Zb=-this.Qn*(i+Je(this.gtu,2*i))}function nn(t){var e=st(t.x-this.long0),n=t.y;n=Ke(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),o=Math.sin(e),s=Math.cos(e);n=Math.atan2(i,s*r),e=Math.atan2(o*r,Ye(i,r*s)),e=Xe(Math.tan(e));var a,u,c=tn(this.gtu,2*n,2*e);return n+=c[0],e+=c[1],Math.abs(e)<=2.623395162778?(a=this.a*(this.Qn*e)+this.x0,u=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,u=1/0),t.x=a,t.y=u,t}function rn(t){var e,n,i=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(r=(r-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var o=tn(this.utg,2*r,2*i);r+=o[0],i+=o[1],i=Math.atan($e(i));var s=Math.sin(r),a=Math.cos(r),u=Math.sin(i),c=Math.cos(i);r=Math.atan2(s*c,Ye(u,c*a)),i=Math.atan2(u,c*a),e=st(i+this.long0),n=Ke(this.cgb,r)}else e=1/0,n=1/0;return t.x=e,t.y=n,t}var on=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"],sn={init:en,forward:nn,inverse:rn,names:on},an=function(t,e){if(void 0===t){if(t=Math.floor(30*(st(e)+Math.PI)/Math.PI)+1,t<0)return 0;if(t>60)return 60}return t},un="etmerc";function cn(){var t=an(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*d,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,sn.init.apply(this),this.forward=sn.forward,this.inverse=sn.inverse}var hn=["Universal Transverse Mercator System","utm"],ln={init:cn,names:hn,dependsOn:un},fn=function(t,e){return Math.pow((1-t)/(1+t),e)},pn=20;function dn(){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+m)/(Math.pow(Math.tan(.5*this.lat0+m),this.C)*fn(this.e*t,this.ratexp))}function gn(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+m),this.C)*fn(this.e*Math.sin(n),this.ratexp))-c,t.x=this.C*e,t}function mn(t){for(var e=1e-14,n=t.x/this.C,i=t.y,r=Math.pow(Math.tan(.5*i+m)/this.K,1/this.C),o=pn;o>0;--o){if(i=2*Math.atan(r*fn(this.e*Math.sin(t.y),-.5*this.e))-c,Math.abs(i-t.y)<e)break;t.y=i}return o?(t.x=n,t.y=i,t):null}var yn=["gauss"],_n={init:dn,forward:gn,inverse:mn,names:yn};function vn(){_n.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 bn(t){var e,n,i,r;return t.x=st(t.x-this.long0),_n.forward.apply(this,[t]),e=Math.sin(t.y),n=Math.cos(t.y),i=Math.cos(t.x),r=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*i),t.x=r*n*Math.sin(t.x),t.y=r*(this.cosc0*e-this.sinc0*n*i),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function xn(t){var e,n,i,r,o;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,o=Math.sqrt(t.x*t.x+t.y*t.y)){var s=2*Math.atan2(o,this.R2);e=Math.sin(s),n=Math.cos(s),r=Math.asin(n*this.sinc0+t.y*e*this.cosc0/o),i=Math.atan2(t.x*e,o*this.cosc0*n-t.y*this.sinc0*e)}else r=this.phic0,i=0;return t.x=i,t.y=r,_n.inverse.apply(this,[t]),t.x=st(t.x+this.long0),t}var wn=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"],Mn={init:vn,forward:bn,inverse:xn,names:wn};function Sn(t,e,n){return e*=n,Math.tan(.5*(c+t))*Math.pow((1-e)/(1+e),.5*n)}function En(){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)<=p&&(this.k0=.5*(1+ot(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=p&&(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)<=p&&(this.k0=.5*this.cons*rt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/at(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=rt(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-c,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function Cn(t){var e,n,i,r,o,s,a=t.x,u=t.y,h=Math.sin(u),l=Math.cos(u),f=st(a-this.long0);return Math.abs(Math.abs(a-this.long0)-Math.PI)<=p&&Math.abs(u+this.lat0)<=p?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*h+this.coslat0*l*Math.cos(f)),t.x=this.a*e*l*Math.sin(f)+this.x0,t.y=this.a*e*(this.coslat0*h-this.sinlat0*l*Math.cos(f))+this.y0,t):(n=2*Math.atan(this.ssfn_(u,h,this.e))-c,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=p?(o=at(this.e,u*this.con,this.con*h),s=2*this.a*this.k0*o/this.cons,t.x=this.x0+s*Math.sin(a-this.long0),t.y=this.y0-this.con*s*Math.cos(a-this.long0),t):(Math.abs(this.sinlat0)<p?(e=2*this.a*this.k0/(1+r*Math.cos(f)),t.y=e*i):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*r*Math.cos(f))),t.y=e*(this.cosX0*i-this.sinX0*r*Math.cos(f))+this.y0),t.x=e*r*Math.sin(f)+this.x0,t))}function In(t){var e,n,i,r,o;t.x-=this.x0,t.y-=this.y0;var s=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var a=2*Math.atan(s/(2*this.a*this.k0));return e=this.long0,n=this.lat0,s<=p?(t.x=e,t.y=n,t):(n=Math.asin(Math.cos(a)*this.sinlat0+t.y*Math.sin(a)*this.coslat0/s),e=Math.abs(this.coslat0)<p?this.lat0>0?st(this.long0+Math.atan2(t.x,-1*t.y)):st(this.long0+Math.atan2(t.x,t.y)):st(this.long0+Math.atan2(t.x*Math.sin(a),s*this.coslat0*Math.cos(a)-t.y*this.sinlat0*Math.sin(a))),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=p){if(s<=p)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,i=s*this.cons/(2*this.a*this.k0),n=this.con*ut(this.e,i),e=this.con*st(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else r=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,s<=p?o=this.X0:(o=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/s),e=st(this.long0+Math.atan2(t.x*Math.sin(r),s*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)))),n=-1*ut(this.e,Math.tan(.5*(c+o)));return t.x=e,t.y=n,t}var Ln=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],On={init:En,forward:Cn,inverse:In,names:Ln,ssfn_:Sn};function Tn(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=this.rf,r=1/i,o=2*r-Math.pow(r,2),s=this.e=Math.sqrt(o);this.R=this.k0*n*Math.sqrt(1-o)/(1-o*Math.pow(e,2)),this.alpha=Math.sqrt(1+o/(1-o)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),u=Math.log(Math.tan(Math.PI/4+t/2)),c=Math.log((1+s*e)/(1-s*e));this.K=a-this.alpha*u+this.alpha*s/2*c}function Pn(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),s=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(o))),a=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(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*s+this.x0,t}function Nn(t){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)),s=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),a=this.lambda0+s/this.alpha,u=0,c=o,h=-1e3,l=0;while(Math.abs(c-h)>1e-7){if(++l>20)return;u=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(c))/2)),h=c,c=2*Math.atan(Math.exp(u))-Math.PI/2}return t.x=a,t.y=c,t}var An=["somerc"],Rn={init:Tn,forward:Pn,inverse:Nn,names:An};function Dn(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var t=Math.sin(this.lat0),e=Math.cos(this.lat0),n=this.e*t;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(e,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-n*n);var i,r,o=at(this.e,this.lat0,t),s=this.bl/e*Math.sqrt((1-this.es)/(1-n*n));if(s*s<1&&(s=1),isNaN(this.longc)){var a=at(this.e,this.lat1,Math.sin(this.lat1)),u=at(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(s+Math.sqrt(s*s-1))*Math.pow(o,this.bl):this.el=(s-Math.sqrt(s*s-1))*Math.pow(o,this.bl);var c=Math.pow(a,this.bl),h=Math.pow(u,this.bl);i=this.el/c,r=.5*(i-1/i);var l=(this.el*this.el-h*c)/(this.el*this.el+h*c),f=(h-c)/(h+c),p=st(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(l*Math.tan(.5*this.bl*p)/f)/this.bl,this.long0=st(this.long0);var d=st(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*d)/r),this.alpha=Math.asin(s*Math.sin(this.gamma0))}else i=this.lat0>=0?s+Math.sqrt(s*s-1):s-Math.sqrt(s*s-1),this.el=i*Math.pow(o,this.bl),r=.5*(i-1/i),this.gamma0=Math.asin(Math.sin(this.alpha)/s),this.long0=this.longc-Math.asin(r*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(s*s-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(s*s-1),Math.cos(this.alpha))}function kn(t){var e,n,i,r=t.x,o=t.y,s=st(r-this.long0);if(Math.abs(Math.abs(o)-c)<=p)i=o>0?-1:1,n=this.al/this.bl*Math.log(Math.tan(m+i*this.gamma0*.5)),e=-1*i*c*this.al/this.bl;else{var a=at(this.e,o,Math.sin(o)),u=this.el/Math.pow(a,this.bl),h=.5*(u-1/u),l=.5*(u+1/u),f=Math.sin(this.bl*s),d=(h*Math.sin(this.gamma0)-f*Math.cos(this.gamma0))/l;n=Math.abs(Math.abs(d)-1)<=p?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-d)/(1+d))/this.bl,e=Math.abs(Math.cos(this.bl*s))<=p?this.al*this.bl*s:this.al*Math.atan2(h*Math.cos(this.gamma0)+f*Math.sin(this.gamma0),Math.cos(this.bl*s))/this.bl}return this.no_rot?(t.x=this.x0+e,t.y=this.y0+n):(e-=this.uc,t.x=this.x0+n*Math.cos(this.alpha)+e*Math.sin(this.alpha),t.y=this.y0+e*Math.cos(this.alpha)-n*Math.sin(this.alpha)),t}function Fn(t){var e,n;this.no_rot?(n=t.y-this.y0,e=t.x-this.x0):(n=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),e=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),e+=this.uc);var i=Math.exp(-1*this.bl*n/this.al),r=.5*(i-1/i),o=.5*(i+1/i),s=Math.sin(this.bl*e/this.al),a=(s*Math.cos(this.gamma0)+r*Math.sin(this.gamma0))/o,u=Math.pow(this.el/Math.sqrt((1+a)/(1-a)),1/this.bl);return Math.abs(a-1)<p?(t.x=this.long0,t.y=c):Math.abs(a+1)<p?(t.x=this.long0,t.y=-1*c):(t.y=ut(this.e,u),t.x=st(this.long0-Math.atan2(r*Math.cos(this.gamma0)-s*Math.sin(this.gamma0),Math.cos(this.bl*e/this.al))/this.bl)),t}var zn=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"],jn={init:Dn,forward:kn,inverse:Fn,names:zn};function Bn(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<p)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),n=Math.cos(this.lat1),i=rt(this.e,e,n),r=at(this.e,this.lat1,e),o=Math.sin(this.lat2),s=Math.cos(this.lat2),a=rt(this.e,o,s),u=at(this.e,this.lat2,o),c=at(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>p?this.ns=Math.log(i/a)/Math.log(r/u):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function Gn(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=p&&(n=ot(n)*(c-2*p));var i,r,o=Math.abs(Math.abs(n)-c);if(o>p)i=at(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if(o=n*this.ns,o<=0)return null;r=0}var s=this.ns*st(e-this.long0);return t.x=this.k0*(r*Math.sin(s))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(s))+this.y0,t}function qn(t){var e,n,i,r,o,s=(t.x-this.x0)/this.k0,a=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+a*a),n=1):(e=-Math.sqrt(s*s+a*a),n=-1);var u=0;if(0!==e&&(u=Math.atan2(n*s,n*a)),0!==e||this.ns>0){if(n=1/this.ns,i=Math.pow(e/(this.a*this.f0),n),r=ut(this.e,i),-9999===r)return null}else r=-c;return o=st(u/this.ns+this.long0),t.x=o,t.y=r,t}var Un=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"],Vn={init:Bn,forward:Gn,inverse:qn,names:Un};function Zn(){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 Hn(t){var e,n,i,r,o,s,a,u=t.x,c=t.y,h=st(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),i=-h*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),o=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(r)),s=this.n*o,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=a*Math.cos(s)/1,t.x=a*Math.sin(s)/1,this.czech||(t.y*=-1,t.x*=-1),t}function $n(t){var e,n,i,r,o,s,a,u,c=t.x;t.x=t.y,t.y=c,this.czech||(t.y*=-1,t.x*=-1),s=Math.sqrt(t.x*t.x+t.y*t.y),o=Math.atan2(t.y,t.x),r=o/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/s,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,u=0;var h=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&&(u=1),a=t.y,h+=1}while(0===u&&h<15);return h>=15?null:t}var Yn=["Krovak","krovak"],Wn={init:Zn,forward:Hn,inverse:$n,names:Yn},Xn=function(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)},Kn=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))},Jn=function(t){return.375*t*(1+.25*t*(1+.46875*t))},Qn=function(t){return.05859375*t*t*(1+.75*t)},ti=function(t){return t*t*t*(35/3072)},ei=function(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)},ni=function(t){return Math.abs(t)<c?t:t-ot(t)*Math.PI},ii=function(t,e,n,i,r){var o,s;o=t/e;for(var a=0;a<15;a++)if(s=(t-(e*o-n*Math.sin(2*o)+i*Math.sin(4*o)-r*Math.sin(6*o)))/(e-2*n*Math.cos(2*o)+4*i*Math.cos(4*o)-6*r*Math.cos(6*o)),o+=s,Math.abs(s)<=1e-10)return o;return NaN};function ri(){this.sphere||(this.e0=Kn(this.es),this.e1=Jn(this.es),this.e2=Qn(this.es),this.e3=ti(this.es),this.ml0=this.a*Xn(this.e0,this.e1,this.e2,this.e3,this.lat0))}function oi(t){var e,n,i=t.x,r=t.y;if(i=st(i-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(r)*Math.sin(i)),n=this.a*(Math.atan2(Math.tan(r),Math.cos(i))-this.lat0);else{var o=Math.sin(r),s=Math.cos(r),a=ei(this.a,this.e,o),u=Math.tan(r)*Math.tan(r),c=i*Math.cos(r),h=c*c,l=this.es*s*s/(1-this.es),f=this.a*Xn(this.e0,this.e1,this.e2,this.e3,r);e=a*c*(1-h*u*(1/6-(8-u+8*l)*h/120)),n=f-this.ml0+a*o/s*h*(.5+(5-u+6*l)*h/24)}return t.x=e+this.x0,t.y=n+this.y0,t}function si(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 s=this.ml0/this.a+r,a=ii(s,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(a)-c)<=p)return t.x=this.long0,t.y=c,r<0&&(t.y*=-1),t;var u=ei(this.a,this.e,Math.sin(a)),h=u*u*u/this.a/this.a*(1-this.es),l=Math.pow(Math.tan(a),2),f=i*this.a/u,d=f*f;e=a-u*Math.tan(a)/h*f*f*(.5-(1+3*l)*f*f/24),n=f*(1-d*(l/3+(1+3*l)*l*d/15))/Math.cos(a)}return t.x=st(n+this.long0),t.y=ni(e),t}var ai=["Cassini","Cassini_Soldner","cass"],ui={init:ri,forward:oi,inverse:si,names:ai},ci=function(t,e){var n;return t>1e-7?(n=t*e,(1-t*t)*(e/(1-n*n)-.5/t*Math.log((1-n)/(1+n)))):2*e},hi=1,li=2,fi=3,pi=4;function di(){var t,e=Math.abs(this.lat0);if(Math.abs(e-c)<p?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<p?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=ci(this.e,1),this.mmf=.5/(1-this.es),this.apa=Mi(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=ci(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;break}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function gi(t){var e,n,i,r,o,s,a,u,h,l,f=t.x,d=t.y;if(f=st(f-this.long0),this.sphere){if(o=Math.sin(d),l=Math.cos(d),i=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(n=this.mode===this.EQUIT?1+l*i:1+this.sinph0*o+this.cosph0*l*i,n<=p)return null;n=Math.sqrt(2/n),e=n*l*Math.sin(f),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*l*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(d+this.phi0)<p)return null;n=m-.5*d,n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)),e=n*Math.sin(f),n*=i}}else{switch(a=0,u=0,h=0,i=Math.cos(f),r=Math.sin(f),o=Math.sin(d),s=ci(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(a=s/this.qp,u=Math.sqrt(1-a*a)),this.mode){case this.OBLIQ:h=1+this.sinb1*a+this.cosb1*u*i;break;case this.EQUIT:h=1+u*i;break;case this.N_POLE:h=c+d,s=this.qp-s;break;case this.S_POLE:h=d-c,s=this.qp+s;break}if(Math.abs(h)<p)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*a-this.sinb1*u*i):(h=Math.sqrt(2/(1+u*i)))*a*this.ymf,e=this.xmf*h*u*r;break;case this.N_POLE:case this.S_POLE:s>=0?(e=(h=Math.sqrt(s))*r,n=i*(this.mode===this.S_POLE?h:-h)):e=n=0;break}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t}function mi(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,o,s,a,u=t.x/this.a,h=t.y/this.a;if(this.sphere){var l,f=0,d=0;if(l=Math.sqrt(u*u+h*h),n=.5*l,n>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(d=Math.sin(n),f=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(l)<=p?0:Math.asin(h*d/l),u*=d,h=f*l;break;case this.OBLIQ:n=Math.abs(l)<=p?this.phi0:Math.asin(f*this.sinph0+h*d*this.cosph0/l),u*=d*this.cosph0,h=(f-Math.sin(n)*this.sinph0)*l;break;case this.N_POLE:h=-h,n=c-n;break;case this.S_POLE:n-=c;break}e=0!==h||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(u,h):0}else{if(a=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(u/=this.dd,h*=this.dd,s=Math.sqrt(u*u+h*h),s<p)return t.x=0,t.y=this.phi0,t;r=2*Math.asin(.5*s/this.rq),i=Math.cos(r),u*=r=Math.sin(r),this.mode===this.OBLIQ?(a=i*this.sinb1+h*r*this.cosb1/s,o=this.qp*a,h=s*this.cosb1*i-h*this.sinb1*r):(a=h*r/s,o=this.qp*a,h=s*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(h=-h),o=u*u+h*h,!o)return t.x=0,t.y=this.phi0,t;a=1-o/this.qp,this.mode===this.S_POLE&&(a=-a)}e=Math.atan2(u,h),n=Si(Math.asin(a),this.apa)}return t.x=st(this.long0+e),t.y=n,t}var yi=.3333333333333333,_i=.17222222222222222,vi=.10257936507936508,bi=.06388888888888888,xi=.0664021164021164,wi=.016415012942191543;function Mi(t){var e,n=[];return n[0]=t*yi,e=t*t,n[0]+=e*_i,n[1]=e*bi,e*=t,n[0]+=e*vi,n[1]+=e*xi,n[2]=e*wi,n}function Si(t,e){var n=t+t;return t+e[0]*Math.sin(n)+e[1]*Math.sin(n+n)+e[2]*Math.sin(n+n+n)}var Ei=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],Ci={init:di,forward:gi,inverse:mi,names:Ei,S_POLE:hi,N_POLE:li,EQUIT:fi,OBLIQ:pi},Ii=function(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)};function Li(){Math.abs(this.lat1+this.lat2)<p||(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=rt(this.e3,this.sin_po,this.cos_po),this.qs1=ci(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=rt(this.e3,this.sin_po,this.cos_po),this.qs2=ci(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=ci(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>p?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 Oi(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=ci(this.e3,this.sin_phi,this.cos_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,o=this.ns0*st(e-this.long0),s=r*Math.sin(o)+this.x0,a=this.rh-r*Math.cos(o)+this.y0;return t.x=s,t.y=a,t}function Ti(t){var e,n,i,r,o,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)),o=st(r/this.ns0+this.long0),t.x=o,t.y=s,t}function Pi(t,e){var n,i,r,o,s,a=Ii(.5*e);if(t<p)return a;for(var u=t*t,c=1;c<=25;c++)if(n=Math.sin(a),i=Math.cos(a),r=t*n,o=1-r*r,s=.5*o*o/i*(e/(1-u)-n/o+.5/t*Math.log((1-r)/(1+r))),a+=s,Math.abs(s)<=1e-7)return a;return null}var Ni=["Albers_Conic_Equal_Area","Albers","aea"],Ai={init:Li,forward:Oi,inverse:Ti,names:Ni,phi1z:Pi};function Ri(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function Di(t){var e,n,i,r,o,s,a,u,c=t.x,h=t.y;return i=st(c-this.long0),e=Math.sin(h),n=Math.cos(h),r=Math.cos(i),s=this.sin_p14*e+this.cos_p14*n*r,o=1,s>0||Math.abs(s)<=p?(a=this.x0+this.a*o*n*Math.sin(i)/s,u=this.y0+this.a*o*(this.cos_p14*e-this.sin_p14*n*r)/s):(a=this.x0+this.infinity_dist*n*Math.sin(i),u=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=u,t}function ki(t){var e,n,i,r,o,s;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))?(r=Math.atan2(e,this.rc),n=Math.sin(r),i=Math.cos(r),s=Ii(i*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n),o=st(this.long0+o)):(s=this.phic0,o=0),t.x=o,t.y=s,t}var Fi=["gnom"],zi={init:Ri,forward:Di,inverse:ki,names:Fi},ji=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*c:c;for(var i,r,o,s,a=Math.asin(.5*e),u=0;u<30;u++)if(r=Math.sin(a),o=Math.cos(a),s=t*r,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))),a+=i,Math.abs(i)<=1e-10)return a;return NaN};function Bi(){this.sphere||(this.k0=rt(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Gi(t){var e,n,i=t.x,r=t.y,o=st(i-this.long0);if(this.sphere)e=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var s=ci(this.e,Math.sin(r));e=this.x0+this.a*this.k0*o,n=this.y0+this.a*s*.5/this.k0}return t.x=e,t.y=n,t}function qi(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=st(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=ji(this.e,2*t.y*this.k0/this.a),e=st(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t}var Ui=["cea"],Vi={init:Bi,forward:Gi,inverse:qi,names:Ui};function Zi(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Hi(t){var e=t.x,n=t.y,i=st(e-this.long0),r=ni(n-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t}function $i(t){var e=t.x,n=t.y;return t.x=st(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=ni(this.lat0+(n-this.y0)/this.a),t}var Yi=["Equirectangular","Equidistant_Cylindrical","eqc"],Wi={init:Zi,forward:Hi,inverse:$i,names:Yi},Xi=20;function Ki(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Kn(this.es),this.e1=Jn(this.es),this.e2=Qn(this.es),this.e3=ti(this.es),this.ml0=this.a*Xn(this.e0,this.e1,this.e2,this.e3,this.lat0)}function Ji(t){var e,n,i,r=t.x,o=t.y,s=st(r-this.long0);if(i=s*Math.sin(o),this.sphere)Math.abs(o)<=p?(e=this.a*s,n=-1*this.a*this.lat0):(e=this.a*Math.sin(i)/Math.tan(o),n=this.a*(ni(o-this.lat0)+(1-Math.cos(i))/Math.tan(o)));else if(Math.abs(o)<=p)e=this.a*s,n=-1*this.ml0;else{var a=ei(this.a,this.e,Math.sin(o))/Math.tan(o);e=a*Math.sin(i),n=this.a*Xn(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+a*(1-Math.cos(i))}return t.x=e+this.x0,t.y=n+this.y0,t}function Qi(t){var e,n,i,r,o,s,a,u,c;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=p)e=st(i/this.a+this.long0),n=0;else{var h;for(s=this.lat0+r/this.a,a=i*i/this.a/this.a+s*s,u=s,o=Xi;o;--o)if(h=Math.tan(u),c=-1*(s*(u*h+1)-u-.5*(u*u+a)*h)/((u-s)/h-1),u+=c,Math.abs(c)<=p){n=u;break}e=st(this.long0+Math.asin(i*Math.tan(u)/this.a)/Math.sin(n))}else if(Math.abs(r+this.ml0)<=p)n=0,e=st(this.long0+i/this.a);else{var l,f,d,g,m;for(s=(this.ml0+r)/this.a,a=i*i/this.a/this.a+s*s,u=s,o=Xi;o;--o)if(m=this.e*Math.sin(u),l=Math.sqrt(1-m*m)*Math.tan(u),f=this.a*Xn(this.e0,this.e1,this.e2,this.e3,u),d=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),g=f/this.a,c=(s*(l*g+1)-g-.5*l*(g*g+a))/(this.es*Math.sin(2*u)*(g*g+a-2*s*g)/(4*l)+(s-g)*(l*d-2/Math.sin(2*u))-d),u-=c,Math.abs(c)<=p){n=u;break}l=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=st(this.long0+Math.asin(i*l/this.a)/Math.sin(n))}return t.x=e,t.y=n,t}var tr=["Polyconic","poly"],er={init:Ki,forward:Ji,inverse:Qi,names:tr};function nr(){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 ir(t){var e,n=t.x,i=t.y,r=i-this.lat0,o=n-this.long0,s=r/u*1e-5,a=o,c=1,h=0;for(e=1;e<=10;e++)c*=s,h+=this.A[e]*c;var l,f,p=h,d=a,g=1,m=0,y=0,_=0;for(e=1;e<=6;e++)l=g*p-m*d,f=m*p+g*d,g=l,m=f,y=y+this.B_re[e]*g-this.B_im[e]*m,_=_+this.B_im[e]*g+this.B_re[e]*m;return t.x=_*this.a+this.x0,t.y=y*this.a+this.y0,t}function rr(t){var e,n,i,r=t.x,o=t.y,s=r-this.x0,a=o-this.y0,c=a/this.a,h=s/this.a,l=1,f=0,p=0,d=0;for(e=1;e<=6;e++)n=l*c-f*h,i=f*c+l*h,l=n,f=i,p=p+this.C_re[e]*l-this.C_im[e]*f,d=d+this.C_im[e]*l+this.C_re[e]*f;for(var g=0;g<this.iterations;g++){var m,y,_=p,v=d,b=c,x=h;for(e=2;e<=6;e++)m=_*p-v*d,y=v*p+_*d,_=m,v=y,b+=(e-1)*(this.B_re[e]*_-this.B_im[e]*v),x+=(e-1)*(this.B_im[e]*_+this.B_re[e]*v);_=1,v=0;var w=this.B_re[1],M=this.B_im[1];for(e=2;e<=6;e++)m=_*p-v*d,y=v*p+_*d,_=m,v=y,w+=e*(this.B_re[e]*_-this.B_im[e]*v),M+=e*(this.B_im[e]*_+this.B_re[e]*v);var S=w*w+M*M;p=(b*w+x*M)/S,d=(x*w-b*M)/S}var E=p,C=d,I=1,L=0;for(e=1;e<=9;e++)I*=E,L+=this.D[e]*I;var O=this.lat0+L*u*1e5,T=this.long0+C;return t.x=T,t.y=O,t}var or=["New_Zealand_Map_Grid","nzmg"],sr={init:nr,forward:ir,inverse:rr,names:or};function ar(){}function ur(t){var e=t.x,n=t.y,i=st(e-this.long0),r=this.x0+this.a*i,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return t.x=r,t.y=o,t}function cr(t){t.x-=this.x0,t.y-=this.y0;var e=st(this.long0+t.x/this.a),n=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=n,t}var hr=["Miller_Cylindrical","mill"],lr={init:ar,forward:ur,inverse:cr,names:hr},fr=20;function pr(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=ze(this.es)}function dr(t){var e,n,i=t.x,r=t.y;if(i=st(i-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(r),s=fr;s;--s){var a=(this.m*r+Math.sin(r)-o)/(this.m+Math.cos(r));if(r-=a,Math.abs(a)<p)break}else r=1!==this.n?Math.asin(this.n*Math.sin(r)):r;e=this.a*this.C_x*i*(this.m+Math.cos(r)),n=this.a*this.C_y*r}else{var u=Math.sin(r),c=Math.cos(r);n=this.a*je(r,u,c,this.en),e=this.a*i*c/Math.sqrt(1-this.es*u*u)}return t.x=e,t.y=n,t}function gr(t){var e,n,i,r;return t.x-=this.x0,i=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,i/=this.C_x*(this.m+Math.cos(e)),this.m?e=Ii((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=Ii(Math.sin(e)/this.n)),i=st(i+this.long0),e=ni(e)):(e=Ge(t.y/this.a,this.es,this.en),r=Math.abs(e),r<c?(r=Math.sin(e),n=this.long0+t.x*Math.sqrt(1-this.es*r*r)/(this.a*Math.cos(e)),i=st(n)):r-p<c&&(i=this.long0)),t.x=i,t.y=e,t}var mr=["Sinusoidal","sinu"],yr={init:pr,forward:dr,inverse:gr,names:mr};function _r(){}function vr(t){var e=t.x,n=t.y,i=st(e-this.long0),r=n,o=Math.PI*Math.sin(n);while(1){var s=-(r+Math.sin(r)-o)/(1+Math.cos(r));if(r+=s,Math.abs(s)<p)break}r/=2,Math.PI/2-Math.abs(n)<p&&(i=0);var a=.900316316158*this.a*i*Math.cos(r)+this.x0,u=1.4142135623731*this.a*Math.sin(r)+this.y0;return t.x=a,t.y=u,t}function br(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 i=st(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var r=Math.asin(n);return t.x=i,t.y=r,t}var xr=["Mollweide","moll"],wr={init:_r,forward:vr,inverse:br,names:xr};function Mr(){Math.abs(this.lat1+this.lat2)<p||(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=Kn(this.es),this.e1=Jn(this.es),this.e2=Qn(this.es),this.e3=ti(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=rt(this.e,this.sinphi,this.cosphi),this.ml1=Xn(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<p?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=rt(this.e,this.sinphi,this.cosphi),this.ml2=Xn(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=Xn(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function Sr(t){var e,n=t.x,i=t.y;if(this.sphere)e=this.a*(this.g-i);else{var r=Xn(this.e0,this.e1,this.e2,this.e3,i);e=this.a*(this.g-r)}var o=this.ns*st(n-this.long0),s=this.x0+e*Math.sin(o),a=this.y0+this.rh-e*Math.cos(o);return t.x=s,t.y=a,t}function Er(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=st(this.long0+o/this.ns),i=ni(this.g-n/this.a),t.x=r,t.y=i,t;var s=this.g-n/this.a;return i=ii(s,this.e0,this.e1,this.e2,this.e3),r=st(this.long0+o/this.ns),t.x=r,t.y=i,t}var Cr=["Equidistant_Conic","eqdc"],Ir={init:Mr,forward:Sr,inverse:Er,names:Cr};function Lr(){this.R=this.a}function Or(t){var e,n,i=t.x,r=t.y,o=st(i-this.long0);Math.abs(r)<=p&&(e=this.x0+this.R*o,n=this.y0);var s=Ii(2*Math.abs(r/Math.PI));(Math.abs(o)<=p||Math.abs(Math.abs(r)-c)<=p)&&(e=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math.tan(.5*s));var a=.5*Math.abs(Math.PI/o-o/Math.PI),u=a*a,h=Math.sin(s),l=Math.cos(s),f=l/(h+l-1),d=f*f,g=f*(2/h-1),m=g*g,y=Math.PI*this.R*(a*(f-m)+Math.sqrt(u*(f-m)*(f-m)-(m+u)*(d-m)))/(m+u);o<0&&(y=-y),e=this.x0+y;var _=u+f;return y=Math.PI*this.R*(g*_-a*Math.sqrt((m+u)*(u+1)-_*_))/(m+u),n=r>=0?this.y0+y:this.y0-y,t.x=e,t.y=n,t}function Tr(t){var e,n,i,r,o,s,a,u,c,h,l,f,d;return t.x-=this.x0,t.y-=this.y0,l=Math.PI*this.R,i=t.x/l,r=t.y/l,o=i*i+r*r,s=-Math.abs(r)*(1+o),a=s-2*r*r+i*i,u=-2*s+1+2*r*r+o*o,d=r*r/u+(2*a*a*a/u/u/u-9*s*a/u/u)/27,c=(s-a*a/3/u)/u,h=2*Math.sqrt(-c/3),l=3*d/c/h,Math.abs(l)>1&&(l=l>=0?1:-1),f=Math.acos(l)/3,n=t.y>=0?(-h*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI:-(-h*Math.cos(f+Math.PI/3)-a/3/u)*Math.PI,e=Math.abs(i)<p?this.long0:st(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(i*i-r*r)+o*o))/2/i),t.x=e,t.y=n,t}var Pr=["Van_der_Grinten_I","VanDerGrinten","vandg"],Nr={init:Lr,forward:Or,inverse:Tr,names:Pr};function Ar(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function Rr(t){var e,n,i,r,o,s,a,u,h,l,f,d,g,m,y,_,v,b,x,w,M,S,E,C=t.x,I=t.y,L=Math.sin(t.y),O=Math.cos(t.y),T=st(C-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=p?(t.x=this.x0+this.a*(c-I)*Math.sin(T),t.y=this.y0-this.a*(c-I)*Math.cos(T),t):Math.abs(this.sin_p12+1)<=p?(t.x=this.x0+this.a*(c+I)*Math.sin(T),t.y=this.y0+this.a*(c+I)*Math.cos(T),t):(b=this.sin_p12*L+this.cos_p12*O*Math.cos(T),_=Math.acos(b),v=_/Math.sin(_),t.x=this.x0+this.a*v*O*Math.sin(T),t.y=this.y0+this.a*v*(this.cos_p12*L-this.sin_p12*O*Math.cos(T)),t):(e=Kn(this.es),n=Jn(this.es),i=Qn(this.es),r=ti(this.es),Math.abs(this.sin_p12-1)<=p?(o=this.a*Xn(e,n,i,r,c),s=this.a*Xn(e,n,i,r,I),t.x=this.x0+(o-s)*Math.sin(T),t.y=this.y0-(o-s)*Math.cos(T),t):Math.abs(this.sin_p12+1)<=p?(o=this.a*Xn(e,n,i,r,c),s=this.a*Xn(e,n,i,r,I),t.x=this.x0+(o+s)*Math.sin(T),t.y=this.y0+(o+s)*Math.cos(T),t):(a=L/O,u=ei(this.a,this.e,this.sin_p12),h=ei(this.a,this.e,L),l=Math.atan((1-this.es)*a+this.es*u*this.sin_p12/(h*O)),f=Math.atan2(Math.sin(T),this.cos_p12*Math.tan(l)-this.sin_p12*Math.cos(T)),x=0===f?Math.asin(this.cos_p12*Math.sin(l)-this.sin_p12*Math.cos(l)):Math.abs(Math.abs(f)-Math.PI)<=p?-Math.asin(this.cos_p12*Math.sin(l)-this.sin_p12*Math.cos(l)):Math.asin(Math.sin(T)*Math.cos(l)/Math.sin(f)),d=this.e*this.sin_p12/Math.sqrt(1-this.es),g=this.e*this.cos_p12*Math.cos(f)/Math.sqrt(1-this.es),m=d*g,y=g*g,w=x*x,M=w*x,S=M*x,E=S*x,_=u*x*(1-w*y*(1-y)/6+M/8*m*(1-2*y)+S/120*(y*(4-7*y)-3*d*d*(1-7*y))-E/48*m),t.x=this.x0+_*Math.sin(f),t.y=this.y0+_*Math.cos(f),t))}function Dr(t){var e,n,i,r,o,s,a,u,h,l,f,d,g,m,y,_,v,b,x,w,M,S,E;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if(e=Math.sqrt(t.x*t.x+t.y*t.y),e>2*c*this.a)return;return n=e/this.a,i=Math.sin(n),r=Math.cos(n),o=this.long0,Math.abs(e)<=p?s=this.lat0:(s=Ii(r*this.sin_p12+t.y*i*this.cos_p12/e),a=Math.abs(this.lat0)-c,o=Math.abs(a)<=p?this.lat0>=0?st(this.long0+Math.atan2(t.x,-t.y)):st(this.long0-Math.atan2(-t.x,t.y)):st(this.long0+Math.atan2(t.x*i,e*this.cos_p12*r-t.y*this.sin_p12*i))),t.x=o,t.y=s,t}return u=Kn(this.es),h=Jn(this.es),l=Qn(this.es),f=ti(this.es),Math.abs(this.sin_p12-1)<=p?(d=this.a*Xn(u,h,l,f,c),e=Math.sqrt(t.x*t.x+t.y*t.y),g=d-e,s=ii(g/this.a,u,h,l,f),o=st(this.long0+Math.atan2(t.x,-1*t.y)),t.x=o,t.y=s,t):Math.abs(this.sin_p12+1)<=p?(d=this.a*Xn(u,h,l,f,c),e=Math.sqrt(t.x*t.x+t.y*t.y),g=e-d,s=ii(g/this.a,u,h,l,f),o=st(this.long0+Math.atan2(t.x,t.y)),t.x=o,t.y=s,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),_=Math.atan2(t.x,t.y),m=ei(this.a,this.e,this.sin_p12),v=Math.cos(_),b=this.e*this.cos_p12*v,x=-b*b/(1-this.es),w=3*this.es*(1-x)*this.sin_p12*this.cos_p12*v/(1-this.es),M=e/m,S=M-x*(1+x)*Math.pow(M,3)/6-w*(1+3*x)*Math.pow(M,4)/24,E=1-x*S*S/2-M*S*S*S/6,y=Math.asin(this.sin_p12*Math.cos(S)+this.cos_p12*Math.sin(S)*v),o=st(this.long0+Math.asin(Math.sin(_)*Math.sin(S)/Math.cos(y))),s=Math.atan((1-this.es*E*this.sin_p12/Math.sin(y))*Math.tan(y)/(1-this.es)),t.x=o,t.y=s,t)}var kr=["Azimuthal_Equidistant","aeqd"],Fr={init:Ar,forward:Rr,inverse:Dr,names:kr};function zr(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function jr(t){var e,n,i,r,o,s,a,u,c=t.x,h=t.y;return i=st(c-this.long0),e=Math.sin(h),n=Math.cos(h),r=Math.cos(i),s=this.sin_p14*e+this.cos_p14*n*r,o=1,(s>0||Math.abs(s)<=p)&&(a=this.a*o*n*Math.sin(i),u=this.y0+this.a*o*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=u,t}function Br(t){var e,n,i,r,o,s,a;return t.x-=this.x0,t.y-=this.y0,e=Math.sqrt(t.x*t.x+t.y*t.y),n=Ii(e/this.a),i=Math.sin(n),r=Math.cos(n),s=this.long0,Math.abs(e)<=p?(a=this.lat0,t.x=s,t.y=a,t):(a=Ii(r*this.sin_p14+t.y*i*this.cos_p14/e),o=Math.abs(this.lat0)-c,Math.abs(o)<=p?(s=this.lat0>=0?st(this.long0+Math.atan2(t.x,-t.y)):st(this.long0-Math.atan2(-t.x,t.y)),t.x=s,t.y=a,t):(s=st(this.long0+Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i)),t.x=s,t.y=a,t))}var Gr=["ortho"],qr={init:zr,forward:jr,inverse:Br,names:Gr},Ur={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Vr={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Zr(){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>=c-m/2?this.face=Ur.TOP:this.lat0<=-(c-m/2)?this.face=Ur.BOTTOM:Math.abs(this.long0)<=m?this.face=Ur.FRONT:Math.abs(this.long0)<=c+m?this.face=this.long0>0?Ur.RIGHT:Ur.LEFT:this.face=Ur.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 Hr(t){var e,n,i,r,o,s,a={x:0,y:0},u={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===Ur.TOP)r=c-e,n>=m&&n<=c+m?(u.value=Vr.AREA_0,i=n-c):n>c+m||n<=-(c+m)?(u.value=Vr.AREA_1,i=n>0?n-_:n+_):n>-(c+m)&&n<=-m?(u.value=Vr.AREA_2,i=n+c):(u.value=Vr.AREA_3,i=n);else if(this.face===Ur.BOTTOM)r=c+e,n>=m&&n<=c+m?(u.value=Vr.AREA_0,i=-n+c):n<m&&n>=-m?(u.value=Vr.AREA_1,i=-n):n<-m&&n>=-(c+m)?(u.value=Vr.AREA_2,i=-n-c):(u.value=Vr.AREA_3,i=n>0?-n+_:-n-_);else{var h,l,f,p,d,g,y;this.face===Ur.RIGHT?n=Wr(n,+c):this.face===Ur.BACK?n=Wr(n,+_):this.face===Ur.LEFT&&(n=Wr(n,-c)),p=Math.sin(e),d=Math.cos(e),g=Math.sin(n),y=Math.cos(n),h=d*y,l=d*g,f=p,this.face===Ur.FRONT?(r=Math.acos(h),i=Yr(r,f,l,u)):this.face===Ur.RIGHT?(r=Math.acos(l),i=Yr(r,f,-h,u)):this.face===Ur.BACK?(r=Math.acos(-h),i=Yr(r,f,-l,u)):this.face===Ur.LEFT?(r=Math.acos(-l),i=Yr(r,f,h,u)):(r=i=0,u.value=Vr.AREA_0)}return s=Math.atan(12/_*(i+Math.acos(Math.sin(i)*Math.cos(m))-c)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),u.value===Vr.AREA_1?s+=c:u.value===Vr.AREA_2?s+=_:u.value===Vr.AREA_3&&(s+=1.5*_),a.x=o*Math.cos(s),a.y=o*Math.sin(s),a.x=a.x*this.a+this.x0,a.y=a.y*this.a+this.y0,t.x=a.x,t.y=a.y,t}function $r(t){var e,n,i,r,o,s,a,u,h,l,f,p,d={lam:0,phi:0},g={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)?g.value=Vr.AREA_0:t.y>=0&&t.y>=Math.abs(t.x)?(g.value=Vr.AREA_1,e-=c):t.x<0&&-t.x>=Math.abs(t.y)?(g.value=Vr.AREA_2,e=e<0?e+_:e-_):(g.value=Vr.AREA_3,e+=c),h=_/12*Math.tan(e),o=Math.sin(h)/(Math.cos(h)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(e),r=Math.tan(n),a=1-i*i*r*r*(1-Math.cos(Math.atan(1/Math.cos(s)))),a<-1?a=-1:a>1&&(a=1),this.face===Ur.TOP)u=Math.acos(a),d.phi=c-u,g.value===Vr.AREA_0?d.lam=s+c:g.value===Vr.AREA_1?d.lam=s<0?s+_:s-_:g.value===Vr.AREA_2?d.lam=s-c:d.lam=s;else if(this.face===Ur.BOTTOM)u=Math.acos(a),d.phi=u-c,g.value===Vr.AREA_0?d.lam=-s+c:g.value===Vr.AREA_1?d.lam=-s:g.value===Vr.AREA_2?d.lam=-s-c:d.lam=s<0?-s-_:-s+_;else{var m,y,v;m=a,h=m*m,v=h>=1?0:Math.sqrt(1-h)*Math.sin(s),h+=v*v,y=h>=1?0:Math.sqrt(1-h),g.value===Vr.AREA_1?(h=y,y=-v,v=h):g.value===Vr.AREA_2?(y=-y,v=-v):g.value===Vr.AREA_3&&(h=y,y=v,v=-h),this.face===Ur.RIGHT?(h=m,m=-y,y=h):this.face===Ur.BACK?(m=-m,y=-y):this.face===Ur.LEFT&&(h=m,m=y,y=-h),d.phi=Math.acos(-v)-c,d.lam=Math.atan2(y,m),this.face===Ur.RIGHT?d.lam=Wr(d.lam,-c):this.face===Ur.BACK?d.lam=Wr(d.lam,-_):this.face===Ur.LEFT&&(d.lam=Wr(d.lam,+c))}0!==this.es&&(l=d.phi<0?1:0,f=Math.tan(d.phi),p=this.b/Math.sqrt(f*f+this.one_minus_f_squared),d.phi=Math.atan(Math.sqrt(this.a*this.a-p*p)/(this.one_minus_f*p)),l&&(d.phi=-d.phi));return d.lam+=this.long0,t.x=d.lam,t.y=d.phi,t}function Yr(t,e,n,i){var r;return t<p?(i.value=Vr.AREA_0,r=0):(r=Math.atan2(e,n),Math.abs(r)<=m?i.value=Vr.AREA_0:r>m&&r<=c+m?(i.value=Vr.AREA_1,r-=c):r>c+m||r<=-(c+m)?(i.value=Vr.AREA_2,r=r>=0?r-_:r+_):(i.value=Vr.AREA_3,r+=c)),r}function Wr(t,e){var n=t+e;return n<-_?n+=y:n>+_&&(n-=y),n}var Xr=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],Kr={init:Zr,forward:Hr,inverse:$r,names:Xr},Jr=[[1,2.2199e-17,-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]],Qr=[[-5.20417e-18,.0124,1.21431e-18,-8.45284e-11],[.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]],to=.8487,eo=1.3523,no=g/5,io=1/no,ro=18,oo=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},so=function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])};function ao(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 uo(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function co(t){var e=st(t.x-this.long0),n=Math.abs(t.y),i=Math.floor(n*no);i<0?i=0:i>=ro&&(i=ro-1),n=g*(n-io*i);var r={x:oo(Jr[i],n)*e,y:oo(Qr[i],n)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*to+this.x0,r.y=r.y*this.a*eo+this.y0,r}function ho(t){var e={x:(t.x-this.x0)/(this.a*to),y:Math.abs(t.y-this.y0)/(this.a*eo)};if(e.y>=1)e.x/=Jr[ro][0],e.y=t.y<0?-c:c;else{var n=Math.floor(e.y*ro);for(n<0?n=0:n>=ro&&(n=ro-1);;)if(Qr[n][0]>e.y)--n;else{if(!(Qr[n+1][0]<=e.y))break;++n}var i=Qr[n],r=5*(e.y-i[0])/(Qr[n+1][0]-i[0]);r=ao(function(t){return(oo(i,t)-e.y)/so(i,t)},r,p,100),e.x/=oo(Jr[n],r),e.y=(5*n+r)*d,t.y<0&&(e.y=-e.y)}return e.x=st(e.x+this.long0),e}var lo=["Robinson","robin"],fo={init:uo,forward:co,inverse:ho,names:lo},po=function(t){t.Proj.projections.add(He),t.Proj.projections.add(sn),t.Proj.projections.add(ln),t.Proj.projections.add(Mn),t.Proj.projections.add(On),t.Proj.projections.add(Rn),t.Proj.projections.add(jn),t.Proj.projections.add(Vn),t.Proj.projections.add(Wn),t.Proj.projections.add(ui),t.Proj.projections.add(Ci),t.Proj.projections.add(Ai),t.Proj.projections.add(zi),t.Proj.projections.add(Vi),t.Proj.projections.add(Wi),t.Proj.projections.add(er),t.Proj.projections.add(sr),t.Proj.projections.add(lr),t.Proj.projections.add(yr),t.Proj.projections.add(wr),t.Proj.projections.add(Ir),t.Proj.projections.add(Nr),t.Proj.projections.add(Fr),t.Proj.projections.add(qr),t.Proj.projections.add(Kr),t.Proj.projections.add(fo)};Kt.defaultDatum="WGS84",Kt.Proj=At,Kt.WGS84=new Kt.Proj("WGS84"),Kt.Point=Se,Kt.toPoint=qt,Kt.defs=H,Kt.transform=Ht,Kt.mgrs=se,Kt.version=Ee["a"],po(Kt);e["a"]=Kt},a852:function(t,e,n){var i=n("c8d5");function r(t){return 5===i(t).getDay()}t.exports=r},a8db:function(t,e,n){"use strict";var i=n("e265"),r=n.n(i),o=n("a4bb"),s=n.n(o);function a(t,e){if(null==t)return{};var n,i,r={},o=s()(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}function u(t,e){if(null==t)return{};var n,i,o=a(t,e);if(r.a){var s=r()(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}n.d(e,"a",function(){return u})},a935:function(t,e,n){var i=n("c8d5");function r(t){return i(t).getTime()<(new Date).getTime()}t.exports=r},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},abd4:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},ac4d:function(t,e,n){n("3a72")("asyncIterator")},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),u=n("84f2"),c=n("2b4c"),h=c("iterator"),l=c("toStringTag"),f=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=r(p),g=0;g<d.length;g++){var m,y=d[g],_=p[y],v=s[y],b=v&&v.prototype;if(b&&(b[h]||a(b,h,f),b[l]||a(b,l,y),u[y]=f,_))for(m in i)b[m]||o(b,m,i[m],!0)}},acc4:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return n%400===0||n%4===0&&n%100!==0}t.exports=r},ad3d:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return w});var i=n("ecee"),r="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};function o(t,e){return e={exports:{}},t(e,e.exports),e.exports}var s=o(function(t){(function(e){var n=function(t,e,i){if(!c(e)||l(e)||f(e)||p(e)||u(e))return e;var r,o=0,s=0;if(h(e))for(r=[],s=e.length;o<s;o++)r.push(n(t,e[o],i));else for(var a in r={},e)Object.prototype.hasOwnProperty.call(e,a)&&(r[t(a,i)]=n(t,e[a],i));return r},i=function(t,e){e=e||{};var n=e.separator||"_",i=e.split||/(?=[A-Z])/;return t.split(i).join(n)},r=function(t){return d(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,function(t,e){return e?e.toUpperCase():""}),t.substr(0,1).toLowerCase()+t.substr(1))},o=function(t){var e=r(t);return e.substr(0,1).toUpperCase()+e.substr(1)},s=function(t,e){return i(t,e).toLowerCase()},a=Object.prototype.toString,u=function(t){return"function"===typeof t},c=function(t){return t===Object(t)},h=function(t){return"[object Array]"==a.call(t)},l=function(t){return"[object Date]"==a.call(t)},f=function(t){return"[object RegExp]"==a.call(t)},p=function(t){return"[object Boolean]"==a.call(t)},d=function(t){return t-=0,t===t},g=function(t,e){var n=e&&"process"in e?e.process:e;return"function"!==typeof n?t:function(e,i){return n(e,t,i)}},m={camelize:r,decamelize:s,pascalize:o,depascalize:s,camelizeKeys:function(t,e){return n(g(r,e),t)},decamelizeKeys:function(t,e){return n(g(s,e),t,e)},pascalizeKeys:function(t,e){return n(g(o,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=m:e.humps=m})(r)}),a="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},u=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},h=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n},l=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)};function f(t){return t.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.indexOf(":"),i=s.camelize(e.slice(0,n)),r=e.slice(n+1).trim();return t[i]=r,t},{})}function p(t){return t.split(/\s+/).reduce(function(t,e){return t[e]=!0,t},{})}function d(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(function(t,e){return Array.isArray(e)?t=t.concat(e):t.push(e),t},[])}function g(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=(e.children||[]).map(g.bind(null,t)),o=Object.keys(e.attributes||{}).reduce(function(t,n){var i=e.attributes[n];switch(n){case"class":t["class"]=p(i);break;case"style":t["style"]=f(i);break;default:t.attrs[n]=i}return t},{class:{},style:{},attrs:{}}),s=i.class,a=void 0===s?{}:s,u=i.style,l=void 0===u?{}:u,m=i.attrs,y=void 0===m?{}:m,_=h(i,["class","style","attrs"]);return"string"===typeof e?e:t(e.tag,c({class:d(o.class,a),style:c({},o.style,l),attrs:c({},o.attrs,y)},_,{props:n}),r)}var m=!1;try{m=!0}catch(M){}function y(){var t;!m&&console&&"function"===typeof console.error&&(t=console).error.apply(t,arguments)}function _(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?u({},t,e):{}}function v(t){var e,n=(e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip},u(e,"fa-"+t.size,null!==t.size),u(e,"fa-rotate-"+t.rotation,null!==t.rotation),u(e,"fa-pull-"+t.pull,null!==t.pull),e);return Object.keys(n).map(function(t){return n[t]?t:null}).filter(function(t){return t})}function b(t,e){var n=0===(t||"").length?[]:[t];return n.concat(e).join(" ")}function x(t){return null===t?null:"object"===("undefined"===typeof t?"undefined":a(t))&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"===typeof t?{prefix:"fas",iconName:t}:void 0}var w={name:"FontAwesomeIcon",functional:!0,props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:String,default:null,validator:function(t){return["horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(parseInt(t,10))>-1}},size:{type:String,default:null,validator:function(t){return["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null}},render:function(t,e){var n=e.props,r=n.icon,o=n.mask,s=n.symbol,a=n.title,u=x(r),h=_("classes",v(n)),l=_("transform","string"===typeof n.transform?i["e"].transform(n.transform):n.transform),f=_("mask",x(o)),p=Object(i["c"])(u,c({},h,l,f,{symbol:s,title:a}));if(!p)return y("Could not find one or more icon(s)",u,f);var d=p.abstract,m=g.bind(null,t);return m(d[0],{},e.data)}};Boolean,String,Number,String,Object}).call(this,n("c8ba"))},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},af1b:function(t,e,n){var i=n("ec1f");function r(t,e){var n=Number(e);return i(t,1e3*n)}t.exports=r},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b0dc:function(t,e,n){var i=n("e4ae");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(s){var o=t["return"];throw void 0!==o&&i(o.call(t)),s}}},b2e9:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e),o=n.getFullYear()-r.getFullYear(),s=n.getMonth()-r.getMonth();return 12*o+s}t.exports=r},b383:function(t,e,n){"use strict";e.decode=e.parse=n("91dd"),e.encode=e.stringify=n("e099")},b3f5:function(t,e,n){var i=n("c8d5"),r=n("f9ff"),o=n("0d3e"),s=n("df35");function a(t,e){var n=i(t),a=i(e),u=o(n,a),c=Math.abs(r(n,a));n=s(n,u*c);var h=o(n,a)===-u;return u*(c-h)}t.exports=a},b447:function(t,e,n){var i=n("3a38"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},b4c7:function(t,e,n){var i=n("c7ce");function r(t){return i(t,{weekStartsOn:1})}t.exports=r},b50d:function(t,e,n){"use strict";var i=n("c532"),r=n("467f"),o=n("30b5"),s=n("c345"),a=n("3934"),u=n("2d83");t.exports=function(t){return new Promise(function(e,c){var h=t.data,l=t.headers;i.isFormData(h)&&delete l["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",d=t.auth.password||"";l.Authorization="Basic "+btoa(p+":"+d)}if(f.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,i=t.responseType&&"text"!==t.responseType?f.response:f.responseText,o={data:i,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};r(e,c,o),f=null}},f.onabort=function(){f&&(c(u("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){c(u("Network Error",t,null,f)),f=null},f.ontimeout=function(){c(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var g=n("7aac"),m=(t.withCredentials||a(t.url))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;m&&(l[t.xsrfHeaderName]=m)}if("setRequestHeader"in f&&i.forEach(l,function(t,e){"undefined"===typeof h&&"content-type"===e.toLowerCase()?delete l[e]:f.setRequestHeader(e,t)}),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(y){if("json"!==t.responseType)throw y}"function"===typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),c(t),f=null)}),void 0===h&&(h=null),f.send(h)})}},b60f:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDate();return n}t.exports=r},b78a:function(t,e,n){var i=n("c8d5"),r=n("8946");function o(t,e,n){var o=n&&Number(n.weekStartsOn)||0,s=i(t),a=Number(e),u=s.getDay(),c=a%7,h=(c+7)%7,l=(h<o?7:0)+a-u;return r(s,l)}t.exports=o},b8a7:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(0,0,0,0),e}t.exports=r},b8e3:function(t,e){t.exports=!0},b8f9:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=Math.floor(e.getMonth()/3)+1;return n}t.exports=r},badb:function(t,e,n){var i=n("ec1f");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},bb7c:function(t,e,n){var i=n("c873"),r=n("c8d5"),o=n("e13a"),s=n("52cf"),a=1440,u=43200,c=525600;function h(t,e,n){var h=n||{},l=i(t,e),f=h.locale,p=s.distanceInWords.localize;f&&f.distanceInWords&&f.distanceInWords.localize&&(p=f.distanceInWords.localize);var d,g,m,y={addSuffix:Boolean(h.addSuffix),comparison:l};l>0?(d=r(t),g=r(e)):(d=r(e),g=r(t));var _,v,b,x,w=Math[h.partialMethod?String(h.partialMethod):"floor"],M=o(g,d),S=g.getTimezoneOffset()-d.getTimezoneOffset(),E=w(M/60)-S;if(m=h.unit?String(h.unit):E<1?"s":E<60?"m":E<a?"h":E<u?"d":E<c?"M":"Y","s"===m)return p("xSeconds",M,y);if("m"===m)return p("xMinutes",E,y);if("h"===m)return _=w(E/60),p("xHours",_,y);if("d"===m)return v=w(E/a),p("xDays",v,y);if("M"===m)return b=w(E/u),p("xMonths",b,y);if("Y"===m)return x=w(E/c),p("xYears",x,y);throw new Error("Unknown unit: "+m)}t.exports=h},bc3a:function(t,e,n){t.exports=n("cee4")},bc53:function(t,e,n){"use strict";var i=n("2b0e"),r=n("0b16");class o{constructor(t){const e=this.config=t.config;this.store=t.store,this.controller=t.controller,this.dataManager=t.dataManager,this.history=window.history;const n=this.silent=!e.router||!e.router.enabled;n||(window.onhashchange=this.hashChanged.bind(this))}activeTopicConfig(){const t=this.store.state.activeTopic;let e;return t&&(e=this.config.topics.filter(e=>{return e.key===t})[0]),e||{}}activeParcelLayer(){return this.config.map?this.activeTopicConfig().parcels||this.config.map.defaultBasemap:this.activeTopicConfig().parcels}makeHash(t,e){if(console.log("make hash, firstRouteParameter:",t,"secondRouteParameter:",e),!t||0===t.length)return null;let n=`#/${encodeURIComponent(t)}/`;if(e)if(Array.isArray(e))if(console.log("secondRouteParameter is an Array"),e.length>1){console.log("secondRouteParameter is an Array and length is greater than 1");for(let[t,i]of e.entries())console.log("topicOrService:",i,"index:",t),n+=`${encodeURIComponent(i)}`,t<e.length-1&&(n+=`${encodeURIComponent(",")}`)}else console.log("secondRouteParameter is an Array and length is not greater than 1"),n+=`${encodeURIComponent(e)}`;else console.log("secondRouteParameter is not an array"),n+=`${e}`;return n}getAddressFromState(){const t=this.store.state.geocode.data||{},e=t.properties||{};return console.log("getAddressFromState is running, geocodeData:",t,"props:",e),t.street_address?t.street_address:e.street_address?e.street_address:void 0}hashChanged(){console.log("hashChanged is running, this.store.state.activeTopic:",this.store.state.activeTopic);const t=window.location,e=t.hash,n=Object(r["parse"])(t.href),i=(n.query,e.split("/").splice(1)),o=i[0];if(console.log("hash:",e,"pathComps:",i,"encodedFirstRouteParameter:",o),!o)return this.routeToModal(""),void this.dataManager.resetGeocode();const s=decodeURIComponent(o);let a;const u=this.config.modals||[];if(u.includes(i[0]))return void this.routeToModal(i[0]);let c,h;if(i.length>1&&(a=decodeURIComponent(i[1])),console.log("in hashChanged, firstRouteParameter:",s,"secondRouteParameter:",a),s.includes("addr ")?(console.log("in hashChanged, includes addr"),c=s,this.store.commit("setSearchType","address")):s.includes("kw ")&&(console.log("in hashChanged, includes kw"),h=s.replace("kw ",""),this.store.commit("setSearchType","keyword")),this.store.state.lastSearchMethod&&this.store.commit("setLastSearchMethod","geocode"),c&&"addr noaddress"!==c&&this.routeToAddress(c),h&&this.routeToKeyword(h),(this.store.state.activeTopic||""===this.store.state.activeTopic)&&this.config.topics&&this.config.topics.length&&this.routeToTopic(a),this.store.state.selectedServices){let t;t=a?a.split(","):[],console.log("secondRouteParameterArray:",t),this.store.commit("setSelectedServices",t)}}routeToAddress(t,e){if(console.log("Router.routeToAddress, nextAddress:",t),t){t=t.replace("addr ","");const n=this.getAddressFromState();n&&t===n||this.dataManager.geocode(t,e)}}routeToNoAddress(){const t=this.makeHash("addr noaddress",this.store.state.selectedServices),e=this.history.state;this.history.replaceState(e,null,t)}routeToOwner(t,e){t&&this.dataManager.geocode(t,e)}routeToKeyword(t){console.log("in router.js routeToKeyword, nextKeywords:",t);let e=t.split(",");if(console.log("in routeToKeyword values:",e),this.store.commit("setSelectedKeywords",e),!this.silent){t="kw "+t;const e=this.makeHash(t,this.store.state.selectedServices),n=this.history.state;this.history.replaceState(n,null,e)}}configForBasemap(t){return this.config.map.basemaps[t]}routeToModal(t){console.log("routeToModal is running, selectedModal:",t),this.store.commit("setDidToggleModal",t)}routeToTopic(t,e){console.log("router.js routeToTopic is running, nextTopic:",t,"target:",e);const n=this.store.state.activeTopic;if((!n||n!==t)&&(this.store.commit("setActiveTopic",t),this.store.commit("setActiveParcelLayer",this.activeParcelLayer()),this.store.state.map)){const e=this.store.state.map.basemap||null,n=this.config.topics.filter(e=>{return e.key===t})[0]||{},i=n.parcels,r=n.imagery;e!==i&&this.store.commit("setBasemap",n.parcels),r&&(this.store.commit("setShouldShowImagery",!0),this.store.commit("setImagery",r))}if(!this.silent){let e=this.getAddressFromState();e="addr "+e;const n=this.makeHash(e,t),i=this.history.state;this.history.replaceState(i,null,n)}}didGeocode(){const t=this.store.state.geocode.data;if(t){let e;t.street_address?e=t.street_address:t.properties.street_address&&(e=t.properties.street_address),this.config.router.returnToDefaultTopicOnGeocode&&this.store.commit("setActiveTopic",this.config.defaultTopic);const n=this.store.state.activeTopic,i=this.store.state.selectedServices;if(!this.silent){const r={geocode:t};let o;e="addr "+e,o=n?this.makeHash(e,n):this.makeHash(e,i),this.history.pushState(r,null,o)}}else this.silent||this.history.pushState(null,null,"#")}}var s=o,a=n("e11e"),u=n("3023"),c=n("cd1f"),h=n("166e");function l(t,e,n){if(n=n||{},!Object(c["f"])(n))throw new Error("options is invalid");var i=n.units,r=Object(h["a"])(t),o=Object(h["a"])(e),s=Object(c["a"])(o[1]-r[1]),a=Object(c["a"])(o[0]-r[0]),u=Object(c["a"])(r[1]),l=Object(c["a"])(o[1]),f=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(u)*Math.cos(l);return Object(c["k"])(2*Math.atan2(Math.sqrt(f),Math.sqrt(1-f)),i)}var f=l,p=n("7c8d");function d(t){return Object(p["d"])(t,function(t,e){return t+m(e)},0)}var g=6378137;function m(t){var e,n=0;switch(t.type){case"Polygon":return y(t.coordinates);case"MultiPolygon":for(e=0;e<t.coordinates.length;e++)n+=y(t.coordinates[e]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(e=0;e<t.geometries.length;e++)n+=m(t.geometries[e]);return n}}function y(t){var e=0;if(t&&t.length>0){e+=Math.abs(_(t[0]));for(var n=1;n<t.length;n++)e-=Math.abs(_(t[n]))}return e}function _(t){var e,n,i,r,o,s,a,u=0,c=t.length;if(c>2){for(a=0;a<c;a++)a===c-2?(r=c-2,o=c-1,s=0):a===c-1?(r=c-1,o=0,s=1):(r=a,o=a+1,s=a+2),e=t[r],n=t[o],i=t[s],u+=(v(i[0])-v(e[0]))*Math.sin(v(n[1]));u=u*g*g/2}return u}function v(t){return t*Math.PI/180}var b=d,x=n("bc3a"),w=n.n(x);class M{constructor(t){this.config=t.config,this.store=t.store,this.dataManager=t.dataManager}evaluateParams(t,e){const n={};if(!e.options.params)return n;const i=Object.entries(e.options.params),r=this.store.state;for(let[o,s]of i){let e;e="function"===typeof s?s(t,r):s,n[o]=e}return n}assignFeatureIds(t,e,n){const i=[];for(let o=0;o<t.length;o++){const s=(n?n+"-":"")+o,a=`feat-${e}-${s}`,u=t[o];try{u._featureId=a}catch(r){console.warn(r)}i.push(u)}return i}didFetch(t,e,n,i){const r="error"===e?null:n;let o=r;Array.isArray(o)&&(o=this.assignFeatureIds(o,t,i));const s={key:t,data:o},a={key:t,status:e};i&&(s.targetId=i,a.targetId=i),this.store.commit("setSourceData",s),this.store.commit("setSourceStatus",a),console.log("171111 base-client js is calling fetchData()"),this.fetchData()}}var S=M;class E extends S{fetch(t){console.log("geocode client fetch",t);this.store;let e;e=this.config.geocoder;const n=e.url(t),i=e.params;this.store.commit("setGeocodeStatus","waiting");const r=this.success.bind(this),o=this.error.bind(this);return w.a.get(n,{params:i}).then(r).catch(o)}success(t){const e=this.store,n=t.data;t.config.url;if(!n.features||n.features.length<1)return;let i=n.features;i=this.assignFeatureIds(i,"geocode");let r=i[0],o=[];for(let s of i.slice(1))r.properties.address_high?s.properties.address_high&&o.push(s):o.push(s);return e.commit("setGeocodeData",r),e.commit("setGeocodeRelated",o),e.commit("setGeocodeStatus","success"),r}error(t){const e=this.store;e.commit("setGeocodeStatus","error"),e.commit("setGeocodeData",null),e.commit("setGeocodeRelated",null)}}var C=E;class I extends S{fetch(t){console.log("owner search client fetch",t);this.store;const e=this.config.ownerSearch,n=e.url(t),i=e.params;this.store.commit("setOwnerSearchStatus","waiting");const r=this.success.bind(this),o=this.error.bind(this);return w.a.get(n,{params:i}).then(r).catch(o)}success(t){console.log("owner search success",t.config.url);const e=this.store,n=t.data;t.config.url;if(!n.features||n.features.length<1)return;let i=n.features;return i=this.assignFeatureIds(i,"owner"),e.commit("setOwnerSearchData",i),e.commit("setOwnerSearchStatus","success"),i}error(t){console.log("owner search error",t);const e=this.store;e.commit("setOwnerSearchStatus","error"),e.commit("setOwnerSearchData",null)}}var L=I,O=n("340b");class T extends S{fetch(t,e,n,i){let r=this.evaluateParams(t,e),o=e.url;const s=e.options,a=r.urlAddition;a&&(o+=encodeURIComponent(a));const u=s.success;r.urlAddition&&delete r["urlAddition"],w.a.get(o,{params:r}).then(e=>{let r,o=e.data;u&&(o=u(o)),i&&(r=i(t)),this.dataManager.didFetchData(n,"success",o,r)},t=>{console.log("fetch json error",t),this.dataManager.didFetchData(n,"error")})}fetchMore(t,e,n,i){let r=this.evaluateParams(t,e);r.page=i+1;let o=e.url;const s=e.options,a=r.urlAddition;a&&(o+=encodeURIComponent(a));const u=s.success;w.a.get(o,{params:r}).then(t=>{let e=t.data;u&&(e=u(e)),this.dataManager.didFetchMoreData(n,"success",e)},t=>{console.log("fetch json error",t),this.dataManager.didFetchMoreData(n,"error")})}fetchNearby(t,e,n,i){const r=this.evaluateParams(t,e),o=e.url,s=e.options,a=s.table,u=s.dateMinNum||null,c=s.dateMinType||null;console.log("dateMinType:",c);const h=s.dateField||null,l=s.success,f=s.distances||250,p="ST_Distance(the_geom::geography, ST_SetSRID(ST_Point("+t.geometry.coordinates[0]+","+t.geometry.coordinates[1]+"),4326)::geography)",d="ST_Y(the_geom)",g="ST_X(the_geom)",m="*, "+p+"as distance,"+d+"as lat, "+g+"as lng";let y;if(r["q"]="select"+m+" from "+a+" where "+p+" < "+f,u){switch(c){case"hour":y=O["subHours"];break;case"day":y=O["subDays"];break;case"week":y=O["subWeeks"];break;case"month":y=O["subMonths"];break;case"year":y=O["subYears"];break}r["q"]=r["q"]+" and "+h+" > '"+Object(O["format"])(y(new Date,u),"YYYY-MM-DD")+"'"}w.a.get(o,{params:r}).then(e=>{for(let t of e.data.rows)t.distance=3.28084*t.distance;let r,o=e.data.rows;l&&(o=l(o)),i&&(r=i(t)),this.dataManager.didFetchData(n,"success",o,r)},t=>{console.log("fetch json error",t),this.dataManager.didFetchData(n,"error")})}}var P=T;function N(t){var e=[];return"FeatureCollection"===t.type?Object(p["b"])(t,function(t){Object(p["a"])(t,function(n){e.push(Object(c["i"])(n,t.properties))})}):Object(p["a"])(t,function(n){e.push(Object(c["i"])(n,t.properties))}),Object(c["d"])(e)}var A=N,R=n("28770");function D(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var n,i=1/0;return Object(p["b"])(e,function(e,r){var o=f(t,e);o<i&&(n=Object(R["a"])(e),n.properties.featureIndex=r,n.properties.distanceToPoint=o,i=o)}),n}var k=D,F=n("a79f");class z extends S{fetch(t,e,n){const i=e.url,{relationship:r,targetGeometry:o,...s}=e.options,u=e.parameters;let c;if(u&&t&&(u["sourceValue"]=t.properties[u.sourceField]),o){const t=this.store.state;c=o(t,a)}else c=t?t.geometry:null;if(e.dependent){if("none"!==e.dependent&&!c)return void this.dataManager.didFetchData(n,"error")}else if(!c)return void this.dataManager.didFetchData(n,"error");this.fetchBySpatialQuery(n,i,r,c,u,s)}fetchNearby(t,e,n){const i="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs",r="+proj=lcc +lat_1=40.96666666666667 +lat_2=39.93333333333333 +lat_0=39.33333333333334 +lon_0=-77.75 +x_0=600000 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs",o=e.url,{calculateDistance:s,geometryServerUrl:u,distances:c,...h}=e.options,l=t.geometry.coordinates,f=Object(F["a"])(i,r,[l[0],l[1]]),p={geometries:`[${f.join(", ")}]`,inSR:2272,outSR:4326,bufferSR:2272,distances:c,unionResults:!0,geodesic:!1,f:"json"},d=u.replace(/\/$/,"")+"/buffer";w.a.get(d,{params:p}).then(t=>{const e=t.data,i=e.geometries||[],r=i[0]||{},u=r.rings||[],c=u[0];if(!c)return void this.dataManager.didFetchData(n,"error");const f=c.map(t=>[...t].reverse()),p=a["polygon"](f),d=(this.dataManager.store.state.map.map,{});this.fetchBySpatialQuery(n,o,"within",p,d,h,s?l:null)},t=>{this.dataManager.didFetchData(n,"error")})}fetchBySpatialQuery(t,e,n,i,r={},o={},s){let a;a="where"===n?Object(u["a"])({url:e})[n](r.targetField+"='"+r.sourceValue+"'"):Object(u["a"])({url:e})[n](i);const h=Object.keys(o)||[];a=h.reduce((t,e)=>{const n=o[e];try{t=t[e](n)}catch(i){throw new Error(`esri-leaflet query task does not support option:\n                         ${e}`)}return t},a),a.run((e,n,i)=>{let r=(n||{}).features;const o=e?"error":"success";if(s){const t=Object(c["i"])(s);r=r.map(e=>{const n=e.geometry.coordinates;let i;if(Array.isArray(n[0])){let e=Object(c["j"])([n[0]]);const r=A(e),o=k(t,r);i=f(t,o,{units:"miles"})}else{const e=Object(c["i"])(n);i=f(t,e,{units:"miles"})}const r=parseInt(5280*i);return e._distance=r,e})}this.dataManager.didFetchData(t,o,r)})}}var j=z;class B{constructor(t){const e=this.store=t.store,n=this.config=t.config;this.controller=t.controller,this.clients={};const i={config:n,store:e,dataManager:this};this.clients.geocode=new C(i),this.clients.ownerSearch=new L(i),this.clients.http=new P(i),this.clients.esri=new j(i)}activeTopicConfig(){const t=this.store.state.activeTopic;let e;return t&&(e=this.config.topics.filter(e=>{return e.key===t})[0]),e||{}}fetchMoreData(t,e){const n=this.store.state.geocode.data,i=this.config.dataSources[t],r=(this.store.state,i.type),o={key:t,secondaryStatus:"waiting"};switch(this.store.commit("setSecondarySourceStatus",o),console.log("INCREMENT - datamanager get 100 More was clicked, type",r,"dataSource",i,"highestPageRetrieved",e),r){case"http-get":console.log("INCREMENT - http-get",t),this.clients.http.fetchMore(n,i,t,e);break}}didFetchMoreData(t,e,n){console.log("INCREMENT - DID FETCH More DATA:",t,e,n);const i="error"===status?null:n;let r=i;Array.isArray(r)&&(r=this.assignFeatureIds(r,t));const o=this.store.state.sources[t].data.page+1,s={key:t,data:r,page:o},a={key:t,secondaryStatus:e};console.log("nextPage",o,"setSourceDataOpts",s),this.store.commit("setSourceDataMore",s),this.store.commit("setSecondarySourceStatus",a)}fetchData(t){let e,n=!1;t?("pins"===t&&(n=!0),e=t):e=this.store.state.geocode.data;let i={};n?(console.log("fetchData is running on pins"),i=this.config.pinSources||{}):i=this.config.dataSources||{};let r=Object.entries(i);e||(r=r.filter(t=>{if(t[1].dependent&&("parcel"===t[1].dependent||"none"===t[1].dependent))return!0}));for(let[o,s]of r){const t=this.store.state,i=s.type,r=s.targets;let a,u,c;if(r){if(c=r.get,u=r.getTargetId,"function"!==typeof c)throw new Error(`Invalid targets getter for data source '${o}'`);a=c(t);const e=a.map(u),n=t.sources[o].targets,i=Object.keys(n),s=i.map(String),h=!e.every(t=>{const e=String(t);return s.includes(e)});if(h&&this.store.commit("createEmptySourceTargets",{key:o,targetIds:e}),!Array.isArray(a))throw new Error("Data source targets getter should return an array")}else a=[e];console.log("in fetchData, dataSourceKey:",o,"targets:",a,"doPins:",n);for(let e of a){let t;u&&(t=u(e));const n=this.checkDataSourceReady(o,s,t);if(!n)continue;const r={key:o,status:"waiting"};switch(t&&(r.targetId=t),this.store.commit("setSourceStatus",r),i){case"http-get":this.clients.http.fetch(e,s,o,u);break;case"http-get-nearby":this.clients.http.fetchNearby(e,s,o,u);break;case"esri":this.clients.esri.fetch(e,s,o);break;case"esri-nearby":this.clients.esri.fetchNearby(e,s,o);break;default:throw`Unknown data source type: ${i}`}}}}didFetchData(t,e,n,i){const r="error"===e?null:n;let o,s=r;console.log("data-manager DID FETCH DATA, key:",t,"targetId:",i||"","data:",n),s&&(o=s.rows),Array.isArray(s)?s=this.assignFeatureIds(s,t,i):s&&(s.rows=this.assignFeatureIds(o,t,i));const a={key:t,data:s},u={key:t,status:e};i&&(a.targetId=i,u.targetId=i),this.store.commit("setSourceData",a),this.store.commit("setSourceStatus",u),this.fetchData()}resetData(){console.log("resetData is running");const t=this.config.dataSources||{};for(let e of Object.keys(t)){const n=t[e],i=n.targets;!1!==n.resettable&&(i?this.store.commit("clearSourceTargets",{key:e}):(this.store.commit("setSourceData",{key:e,data:null}),this.store.commit("setSourceStatus",{key:e,status:null})))}}resetGeocode(){console.log("resetGeocode is running"),this.store.commit("setGeocodeStatus",null),this.store.commit("setGeocodeData",null),this.store.commit("setGeocodeRelated",null),this.store.commit("setGeocodeInput",null),this.config.parcels&&(this.store.commit("setParcelData",{parcelLayer:"dor",multipleAllowed:!0,data:[],status:null,activeParcel:null,activeAddress:null,activeMapreg:null}),this.store.commit("setParcelData",{parcelLayer:"pwd",multipleAllowed:!1,data:null}),this.store.commit("setActiveParcelLayer","pwd")),void 0!=this.config.topics&&(this.config.defaultTopic||null===this.config.defaultTopic?this.store.commit("setActiveTopic",this.config.defaultTopic):this.store.commit("setActiveTopic",this.config.topics[0].key)),this.store.state.map&&this.store.commit("setBasemap","pwd"),this.store.state.sources&&this.resetData()}checkDataSourcesFetched(t=[]){const e=this.store.state;return t.every(t=>{const n=t.split("."),i=2===n.length&&"dor"===n[1];if(i)return"success"===e.parcels.dor.status;const r=n.reduce((t,e)=>{return t[e]},e);return"success"===r.status})}checkDataSourceReady(t,e,n){console.log(`check data source ready: ${t} ${n||""}`,e);const i=e.deps,r=this.checkDataSourcesFetched(i);let o=!1;if(r){let e=this.store.state.sources[t]||this.store.state.pinSources[t];n&&(e=e.targets[n]),o=!e.status}return o}assignFeatureIds(t,e,n){if(!t)return;const i=[];for(let o=0;o<t.length;o++){const s=(n?n+"-":"")+o,a=`feat-${e}-${s}`,u=t[o];try{u._featureId=a}catch(r){console.warn(r)}i.push(u)}return i}evaluateParams(t,e){const n={},i=Object.entries(e.options.params),r=this.store.state;for(let[o,s]of i){let e;e="function"===typeof s?s(t,r):s,n[o]=e}return n}geocode(t,e){if("address"===e){const e=this.didGeocode.bind(this);return this.clients.geocode.fetch(t).then(e)}if("owner"===e){const e=this.didOwnerSearch.bind(this);return this.clients.ownerSearch.fetch(t).then(e)}if(null==e){const e=this.didTryGeocode.bind(this);this.clients.geocode.fetch(t).then(e)}}didOwnerSearch(){console.log("callback from owner search is running")}didTryGeocode(t){if(console.log("didTryGeocode is running, feature:",t),"error"===this.store.state.geocode.status){if(!this.config.onGeocodeFail){const t=this.store.state.geocode.input,e=this.didOwnerSearch.bind(this);return this.clients.ownerSearch.fetch(t).then(e)}{console.log("onGeocodeFail exists");let t={properties:{}};t.properties.opa_account_num=this.store.state.geocode.input,this.resetData(),this.fetchData(t)}}else"success"===this.store.state.geocode.status&&(this.didGeocode(t),this.store.commit("setOwnerSearchStatus",null),this.store.commit("setOwnerSearchData",null),this.store.commit("setOwnerSearchInput",null))}didGeocode(t){let e=19;if(this.config.map.geocodeZoom&&(e=this.config.map.geocodeZoom),console.log("DataManager.didGeocode:",t,"geocodeZoom:",e),this.controller.router.didGeocode(),!this.config.parcels)return void(this.store.state.map&&(this.store.commit("setMapCenter",t.geometry.coordinates),this.store.commit("setMapZoom",e)));const n=this.store.state.activeParcelLayer,i=this.store.state.lastSearchMethod,r=this.config.parcels[n],o=Object.keys(this.config.parcels||{}),s=Object.keys(this.config.parcels||{});let u,c,h,l;if(s.splice(s.indexOf(n),1),t)u=t.geometry.coordinates,[h,c]=u,l=a["latLng"](c,h);else if(console.log("didGeocode - no geom"),"reverseGeocode"===i){const t=this.store.state.clickCoords;u=[t.lng,t.lat],[h,c]=u,l=a["latLng"](c,h)}if("geocode"===i){if(t)for(let a of o){const e=this.config.parcels[a],n=e.parcelIdInGeocoder,i=t.properties[n];i&&i.length>0?this.getParcelsById(i,a):e.getByLatLngIfIdFails&&(console.log("in if lastSearchMethod === geocode, parcelLayer:",a),this.getParcelsByLatLng(l,a))}}else if("reverseGeocode"===i)if(t)for(let a of s){const e=this.config.parcels[a],n=e.parcelIdInGeocoder,i=t.properties[n];i&&i.length>0?this.getParcelsById(i,a):e.getByLatLngIfIdFails&&(console.log("in if lastSearchMethod === reverseGeocode, otherParcelLayer:",a,"Id failed - had to get by LatLng"),this.getParcelsByLatLng(l,a))}else{const t=r.geocodeFailAttemptParcel;if(t){const e=this.store.state.parcels[t];if(e){const n=this.config.parcels[t],i=n.geocodeField;this.store.commit("setLastSearchMethod","reverseGeocode-secondAttempt"),this.geocode(e.properties[i])}}}const f=this.activeTopicConfig();if("geocode"===i&&"error"!==this.store.state.geocode.status){if(!f.zoomToShape&&this.store.state.map){let t=19;this.config.map.geocodeZoom&&(t=this.config.map.geocodeZoom),this.store.commit("setMapCenter",u),this.store.commit("setMapZoom",t)}}else f.zoomToShape&&"reverseGeocode"===i&&this.store.state.geocode.status;if("reverseGeocode-secondAttempt"!==i&&this.resetData(),t){if(t.street_address)return;t.properties.street_address&&this.fetchData()}else this.fetchData()}getParcelsById(t,e){const n=this.config.map.featureLayers[e+"Parcels"].url,i=this.config.parcels[e],r=i.geocodeField,o=Object(u["a"])({url:n});o.where(r+" = '"+t+"'"),o.run(function(t,n,i){this.didGetParcels(t,n,i,e)}.bind(this))}getParcelsByLatLng(t,e,n){const i=a["latLng"](t.lat,t.lng),r=this.config.map.featureLayers[e+"Parcels"].url,o=Object(u["a"])({url:r});o.contains(i);o.run(function(t,i,r){this.didGetParcels(t,i,r,e,n)}.bind(this))}didGetParcels(t,e,n,i,r){const o=this.config.parcels[i],s=o.multipleAllowed,u=o.geocodeField,h=Object.keys(this.config.parcels||{});h.splice(h.indexOf(i),1);const l=this.store.state.lastSearchMethod,f=this.store.state.activeParcelLayer;if(t)return void o.clearStateOnError;if(!e)return;const p=e.features;if(0===p.length)return;const d=this.sortDorParcelFeatures(p);let g;g=s?d[0]:p[0];for(let a of d){let t=a.geometry.coordinates;if(t.length>1){let e=[],n=[];for(let i of t){const t=Object(c["j"])(i);e.push(this.getDistances(i).reduce(function(t,e){return t+e})),n.push(10.7639*b(t))}a.properties.TURF_PERIMETER=e.reduce(function(t,e){return t+e}),a.properties.TURF_AREA=n.reduce(function(t,e){return t+e})}else{const e=Object(c["j"])(t);let n=this.getDistances(t);a.properties.TURF_PERIMETER=n.reduce(function(t,e){return t+e}),a.properties.TURF_AREA=10.7639*b(e)}}this.setParcelsInState(i,s,g,d);const m=f===i&&"reverseGeocode"===l;if(m){const t=this.store.state.clickCoords,e=[t.lng,t.lat],[n,i]=e,r=a["latLng"](i,n);for(let a of h){const t=this.config.parcels[a],e=t.multipleAllowed;this.setParcelsInState(a,e,null,[]),this.getParcelsByLatLng(r,a,"noFetch")}const o=g.properties||{},s=o[u];s&&this.controller.router.routeToAddress(s)}else"noFetch"!==r&&"reverseGeocode-secondAttempt"!=l&&this.fetchData()}getDistances(t){let e=[];for(let i of t[0])e.push(Object(c["i"])(i));let n=[];for(let i=0;i<e.length-1;i++)n[i]=f(e[i],e[i+1],{units:"feet"});return n}setParcelsInState(t,e,n,i){let r;r=e?{parcelLayer:t,multipleAllowed:e,data:i,status:"success",activeParcel:n?n.id:null,activeAddress:null,activeMapreg:n?n.properties.MAPREG:null}:{parcelLayer:t,multipleAllowed:e,data:n},this.store.commit("setParcelData",r)}sortDorParcelFeatures(t){const e={1:1,2:3,3:2};return t.sort((t,e)=>{const n=t.properties.MAPREG,i=e.properties.MAPREG;return n<i?1:n>i?-1:0}),t.sort((t,n)=>{const i=e[t.properties.STATUS],r=e[n.properties.STATUS];return i<r?-1:i>r?1:0}),t}}var G=B;class q{constructor(t){this.store=t.store,this.config=t.config;this.history=window.history,t.controller=this;const e=this.dataManager=new G(t);t.dataManager=e,this.router=new s(t)}appDidLoad(){this.router.hashChanged()}test(){console.log("controller test is firing")}getMoreRecords(t,e){this.dataManager.fetchMoreData(t,e)}filterInputSubmit(t,e,n){console.log("controller filterInputSubmit is running, value:",t,"process:",e),"mapboard"===e?this.handleSearchFormSubmit(t):this.handleConfigurableInputSubmit(t,n)}handleConfigurableInputSubmit(t,e){console.log("controller handleConfigurableInputSubmit is running, value:",t,"searchCategory:",e),"address"===e?this.handleSearchFormSubmit(t,e):"owner"===e&&(console.log("searchCategory is owner"),this.handleSearchFormSubmit(t,e))}handleSearchFormSubmit(t,e){const n=t;console.log("phila-vue-datafetch controller.js, handleSearchFormSubmit is running, value:",t,"searchCategory:",e,"this:",this),this.store.commit("setGeocodeStatus",null),e&&"address"!==e?"owner"===e&&this.store.commit("setOwnerSearchInput",n):this.store.commit("setGeocodeInput",n),this.store.commit("setShouldShowAddressCandidateList",!1),this.store.state.lastSearchMethod&&this.store.commit("setLastSearchMethod","geocode"),this.store.state.clickCoords&&this.store.commit("setClickCoords",null);const i=Object.keys(this.config.parcels||{});for(let r of i){const t=this.config.parcels[r],e=t.multipleAllowed;let n;n=e?{parcelLayer:r,multipleAllowed:e,data:[],status:null,activeParcel:null,activeAddress:null,activeMapreg:null}:{parcelLayer:r,multipleAllowed:e,data:null},this.store.commit("setParcelData",n)}console.log("phila-vue-datafetch controller.js, handleSearchFormSubmit is about to call routeToAddress, input:",n,"searchCategory.toLowerCase():",e.toLowerCase()),e&&"address"!==e.toLowerCase()?"owner"===e.toLowerCase()?(console.log("searchCategory is owner"),this.router.routeToOwner(n,e.toLowerCase())):"keyword"===e.toLowerCase()&&(console.log("searchCategory is keyword"),this.router.routeToKeyword(n,e.toLowerCase())):this.router.routeToAddress(n,e.toLowerCase())}handleMapClick(t){if(13===t.originalEvent.keyCode)return;this.store.commit("setLastSearchMethod","reverseGeocode"),this.store.commit("setClickCoords",null);const e=t.latlng;this.store.commit("setClickCoords",e),this.store.commit("setGeocodeInput",null);const n=this.store.state.activeParcelLayer;this.dataManager.getParcelsByLatLng(e,n)}handleTopicHeaderClick(t){this.router.routeToTopic(t);const e=document.querySelectorAll(`[data-topic-key='${t}']`),n=1===e.length&&e[0];n&&i["a"].nextTick(()=>{n.scrollIntoView()})}goToDefaultAddress(t){this.router.routeToAddress(t)}resetGeocode(){this.dataManager.resetGeocode()}routeToNoAddress(){this.router.routeToNoAddress()}}var U=q;function V(t,e){const n=new U(e);t.mixin({created(){this.$controller=n}})}e["a"]=V},bcaa:function(t,e,n){var i=n("cb7c"),r=n("d3f4"),o=n("a5b8");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t),s=n.resolve;return s(e),n.promise}},bd28:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="far",r="dot-circle",o=512,s=512,a=[],u="f192",c="M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faDotCircle=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},bd86:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("85f2"),r=n.n(i);function o(t,e,n){return e in t?r()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},bded:function(t,e,n){"use strict";let i={map:{center:[-75.163471,39.953338],zoom:18}};const r={activeTopic:"",shouldShowAddressCandidateList:!1,map:{location:{lat:null,lng:null},center:i.map.center,bounds:{_northEast:{lat:null,lng:null},_southWest:{lat:null,lng:null}},zoom:i.map.zoom,boundsBasedOnShape:null,map:null,basemap:"",imagery:"imagery2018",selectedOverlay:null,shouldShowOverlaySelectControl:!1,shouldShowBasemapSelectControl:!1,imageOverlay:null,imageOverlayOpacity:null,filters:[],watchPositionOn:!1},cyclomedia:{initialized:!1,navBarOpen:!1,latLngFromMap:null,orientation:{yaw:null,hFov:null,xyz:null},active:!1,recordings:[]},pictometry:{ipa:null,active:!1,shapeIds:[],pngMarkerIds:[],zoom:null,map:{center:i.map.center,zoom:i.map.zoom}}},o={state:r,mutations:{setWatchPositionOn(t,e){t.map.watchPositionOn=e},setLocation(t,e){t.map.location.lat=e.lat,t.map.location.lng=e.lng},setActiveTopic(t,e){t.activeTopic=e},setMapZoom(t,e){t.map.zoom=e},setImagery(t,e){t.map.imagery=e},setSelectedOverlay(t,e){t.map.selectedOverlay=e},setShouldShowOverlaySelectControl(t,e){t.map.shouldShowOverlaySelectControl=e},setShouldShowBasemapSelectControl(t,e){t.map.shouldShowBasemapSelectControl=e},setShouldShowAddressCandidateList(t,e){t.shouldShowAddressCandidateList=e},setCyclomediaInitialized(t,e){t.cyclomedia.initialized=e},setPictometryActive(t,e){t.pictometry.active=e},setCyclomediaActive(t,e){t.cyclomedia.active=e},setCyclomediaYaw(t,e){t.cyclomedia.orientation.yaw=e},setCyclomediaHFov(t,e){t.cyclomedia.orientation.hFov=e},setCyclomediaXyz(t,e){t.cyclomedia.orientation.xyz=e},setCyclomediaRecordings(t,e){t.cyclomedia.recordings=e},setCyclomediaLatLngFromMap(t,e){t.cyclomedia.latLngFromMap=e},setCyclomediaNavBarOpen(t,e){t.cyclomedia.navBarOpen=e},setPictometryIpa(t,e){t.pictometry.ipa=e},setPictometryShapeIds(t,e){t.pictometry.shapeIds=e},setPictometryPngMarkerIds(t,e){t.pictometry.pngMarkerIds=e},setPictometryMapCenter(t,e){t.pictometry.map.center=e},setPictometryMapZoom(t,e){t.pictometry.map.zoom=e},setPictometryZoom(t,e){t.pictometry.zoom=e},setMap(t,e){t.map.map=e.map}}};e["a"]=o},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},bf0b:function(t,e,n){var i=n("355d"),r=n("aebd"),o=n("36c3"),s=n("1bc3"),a=n("07e3"),u=n("794b"),c=Object.getOwnPropertyDescriptor;e.f=n("8e60")?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(n){}if(a(t,e))return r(!i.f.call(t,e),t[e])}},bf90:function(t,e,n){var i=n("36c3"),r=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},c207:function(t,e){},c2b5:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDay();return n}t.exports=r},c345:function(t,e,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(i.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(s[e]&&r.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}}),s):s}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,s){var a,u=i(e),c=r(u.length),h=o(s,c);if(t&&n!=n){while(c>h)if(a=u[h++],a!=a)return!0}else for(;c>h;h++)if((t||h in u)&&u[h]===n)return t||h||0;return!t&&-1}}},c367:function(t,e,n){"use strict";var i=n("8436"),r=n("50ed"),o=n("481b"),s=n("36c3");t.exports=n("30f1")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},c3a1:function(t,e,n){var i=n("e6f3"),r=n("1691");t.exports=Object.keys||function(t){return i(t,r)}},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,function(n){t=n(t,e)}),t}},c4c2:function(t,e,n){var i=n("c8d5");function r(t,e,n){var r=i(t),o=i(e),s=void 0!==n?n:1,a=o.getTime();if(r.getTime()>a)throw new Error("The first date cannot be after the second date");var u=[],c=r;c.setHours(0,0,0,0);while(c.getTime()<=a)u.push(i(c)),c.setDate(c.getDate()+s);return u}t.exports=r},c4f9:function(t,e,n){var i=n("0978");function r(t){var e=new Date;return e.setDate(e.getDate()-1),i(t).getTime()===i(e).getTime()}t.exports=r},c532:function(t,e,n){"use strict";var i=n("1d2b"),r=n("c7ce9"),o=Object.prototype.toString;function s(t){return"[object Array]"===o.call(t)}function a(t){return"[object ArrayBuffer]"===o.call(t)}function u(t){return"undefined"!==typeof FormData&&t instanceof FormData}function c(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function l(t){return"number"===typeof t}function f(t){return"undefined"===typeof t}function p(t){return null!==t&&"object"===typeof t}function d(t){return"[object Date]"===o.call(t)}function g(t){return"[object File]"===o.call(t)}function m(t){return"[object Blob]"===o.call(t)}function y(t){return"[object Function]"===o.call(t)}function _(t){return p(t)&&y(t.pipe)}function v(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),s(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function M(){var t={};function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=M(t[n],e):t[n]=e}for(var n=0,i=arguments.length;n<i;n++)w(arguments[n],e);return t}function S(){var t={};function e(e,n){"object"===typeof t[n]&&"object"===typeof e?t[n]=S(t[n],e):t[n]="object"===typeof e?S({},e):e}for(var n=0,i=arguments.length;n<i;n++)w(arguments[n],e);return t}function E(t,e,n){return w(e,function(e,r){t[r]=n&&"function"===typeof e?i(e,n):e}),t}t.exports={isArray:s,isArrayBuffer:a,isBuffer:r,isFormData:u,isArrayBufferView:c,isString:h,isNumber:l,isObject:p,isUndefined:f,isDate:d,isFile:g,isBlob:m,isFunction:y,isStream:_,isURLSearchParams:v,isStandardBrowserEnv:x,forEach:w,merge:M,deepMerge:S,extend:E,trim:b}},c589:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMinutes();return n}t.exports=r},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c6ae:function(t,e,n){var i=n("2299");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},c7ce:function(t,e,n){var i=n("c8d5");function r(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),o=r.getDay(),s=(o<n?7:0)+o-n;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}t.exports=r},c7ce9:function(t,e){
  /*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */
  t.exports=function(t){return null!=t&&null!=t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},c865:function(t,e,n){"use strict";var i=n("41ef"),r=n.n(i);r.a},c873:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=n.getTime(),o=i(e),s=o.getTime();return r>s?-1:r<s?1:0}t.exports=r},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c8bb:function(t,e,n){t.exports=n("54a1")},c8d5:function(t,e,n){var i=n("5465"),r=n("a735"),o=36e5,s=6e4,a=2,u=/[T ]/,c=/:/,h=/^(\d{2})$/,l=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],f=/^(\d{4})/,p=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],d=/^-(\d{2})$/,g=/^-?(\d{3})$/,m=/^-?(\d{2})-?(\d{2})$/,y=/^-?W(\d{2})$/,_=/^-?W(\d{2})-?(\d{1})$/,v=/^(\d{2}([.,]\d*)?)$/,b=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,x=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/([Z+-].*)$/,M=/^(Z)$/,S=/^([+-])(\d{2})$/,E=/^([+-])(\d{2}):?(\d{2})$/;function C(t,e){if(r(t))return new Date(t.getTime());if("string"!==typeof t)return new Date(t);var n=e||{},o=n.additionalDigits;o=null==o?a:Number(o);var u=I(t),c=L(u.date,o),h=c.year,l=c.restDateString,f=O(l,h);if(f){var p,d=f.getTime(),g=0;if(u.time&&(g=T(u.time)),u.timezone)p=P(u.timezone)*s;else{var m=d+g,y=new Date(m);p=i(y);var _=new Date(m);_.setDate(y.getDate()+1);var v=i(_)-i(y);v>0&&(p+=v)}return new Date(d+g+p)}return new Date(t)}function I(t){var e,n={},i=t.split(u);if(c.test(i[0])?(n.date=null,e=i[0]):(n.date=i[0],e=i[1]),e){var r=w.exec(e);r?(n.time=e.replace(r[1],""),n.timezone=r[1]):n.time=e}return n}function L(t,e){var n,i=l[e],r=p[e];if(n=f.exec(t)||r.exec(t),n){var o=n[1];return{year:parseInt(o,10),restDateString:t.slice(o.length)}}if(n=h.exec(t)||i.exec(t),n){var s=n[1];return{year:100*parseInt(s,10),restDateString:t.slice(s.length)}}return{year:null}}function O(t,e){if(null===e)return null;var n,i,r,o;if(0===t.length)return i=new Date(0),i.setUTCFullYear(e),i;if(n=d.exec(t),n)return i=new Date(0),r=parseInt(n[1],10)-1,i.setUTCFullYear(e,r),i;if(n=g.exec(t),n){i=new Date(0);var s=parseInt(n[1],10);return i.setUTCFullYear(e,0,s),i}if(n=m.exec(t),n){i=new Date(0),r=parseInt(n[1],10)-1;var a=parseInt(n[2],10);return i.setUTCFullYear(e,r,a),i}if(n=y.exec(t),n)return o=parseInt(n[1],10)-1,N(e,o);if(n=_.exec(t),n){o=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return N(e,o,u)}return null}function T(t){var e,n,i;if(e=v.exec(t),e)return n=parseFloat(e[1].replace(",",".")),n%24*o;if(e=b.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),n%24*o+i*s;if(e=x.exec(t),e){n=parseInt(e[1],10),i=parseInt(e[2],10);var r=parseFloat(e[3].replace(",","."));return n%24*o+i*s+1e3*r}return null}function P(t){var e,n;return e=M.exec(t),e?0:(e=S.exec(t),e?(n=60*parseInt(e[2],10),"+"===e[1]?-n:n):(e=E.exec(t),e?(n=60*parseInt(e[2],10)+parseInt(e[3],10),"+"===e[1]?-n:n):0))}function N(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var r=i.getUTCDay()||7,o=7*e+n+1-r;return i.setUTCDate(i.getUTCDate()+o),i}t.exports=C},c980:function(t,e,n){var i=n("c8d5");function r(t){return 3===i(t).getDay()}t.exports=r},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),o=n("84f2"),s=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},cb96:function(t,e,n){var i=n("c8d5");function r(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),o=r.getDay(),s=6+(o<n?-7:0)-(o-n);return r.setHours(0,0,0,0),r.setDate(r.getDate()+s),r}t.exports=r},cc64:function(t,e,n){var i=n("ccce");function r(t){return i(new Date,t)}t.exports=r},ccb9:function(t,e,n){e.f=n("5168")},ccce:function(t,e,n){var i=n("1baf");function r(t,e){return i(t,e,{weekStartsOn:1})}t.exports=r},cd1f:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"i",function(){return s}),n.d(e,"j",function(){return a}),n.d(e,"h",function(){return u}),n.d(e,"d",function(){return c}),n.d(e,"k",function(){return h}),n.d(e,"g",function(){return l}),n.d(e,"a",function(){return f}),n.d(e,"e",function(){return p}),n.d(e,"f",function(){return d});var i=6371008.8,r={meters:i,metres:i,millimeters:1e3*i,millimetres:1e3*i,centimeters:100*i,centimetres:100*i,kilometers:i/1e3,kilometres:i/1e3,miles:i/1609.344,nauticalmiles:i/1852,inches:39.37*i,yards:i/1.0936,feet:3.28084*i,radians:1,degrees:i/111325};function o(t,e,n){if(n=n||{},!d(n))throw new Error("options is invalid");var i=n.bbox,r=n.id;if(void 0===t)throw new Error("geometry is required");if(e&&e.constructor!==Object)throw new Error("properties must be an Object");i&&g(i),r&&m(r);var o={type:"Feature"};return r&&(o.id=r),i&&(o.bbox=i),o.properties=e||{},o.geometry=t,o}function s(t,e,n){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!p(t[0])||!p(t[1]))throw new Error("coordinates must contain numbers");return o({type:"Point",coordinates:t},e,n)}function a(t,e,n){if(!t)throw new Error("coordinates is required");for(var i=0;i<t.length;i++){var r=t[i];if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<r[r.length-1].length;s++){if(0===i&&0===s&&!p(r[0][0])||!p(r[0][1]))throw new Error("coordinates must contain numbers");if(r[r.length-1][s]!==r[0][s])throw new Error("First and last Position are not equivalent.")}}return o({type:"Polygon",coordinates:t},e,n)}function u(t,e,n){if(!t)throw new Error("coordinates is required");if(t.length<2)throw new Error("coordinates must be an array of two or more positions");if(!p(t[0][1])||!p(t[0][1]))throw new Error("coordinates must contain numbers");return o({type:"LineString",coordinates:t},e,n)}function c(t,e){if(e=e||{},!d(e))throw new Error("options is invalid");var n=e.bbox,i=e.id;if(!t)throw new Error("No features passed");if(!Array.isArray(t))throw new Error("features must be an Array");n&&g(n),i&&m(i);var r={type:"FeatureCollection"};return i&&(r.id=i),n&&(r.bbox=n),r.features=t,r}function h(t,e){if(void 0===t||null===t)throw new Error("radians is required");if(e&&"string"!==typeof e)throw new Error("units must be a string");var n=r[e||"kilometers"];if(!n)throw new Error(e+" units is invalid");return t*n}function l(t,e){if(void 0===t||null===t)throw new Error("distance is required");if(e&&"string"!==typeof e)throw new Error("units must be a string");var n=r[e||"kilometers"];if(!n)throw new Error(e+" units is invalid");return t/n}function f(t){if(null===t||void 0===t)throw new Error("degrees is required");var e=t%360;return e*Math.PI/180}function p(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function d(t){return!!t&&t.constructor===Object}function g(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(function(t){if(!p(t))throw new Error("bbox must only contain numbers")})}function m(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=r(t),u=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);while(e.length>u)i(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},ce3d:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth(),r=n-n%3+3;return e.setMonth(r,0),e.setHours(0,0,0,0),e}t.exports=r},ce7e:function(t,e,n){var i=n("63b6"),r=n("584a"),o=n("294c");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",s)}},cebc:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("268f"),r=n.n(i),o=n("e265"),s=n.n(o),a=n("a4bb"),u=n.n(a),c=n("bd86");function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=u()(n);"function"===typeof s.a&&(i=i.concat(s()(n).filter(function(t){return r()(n,t).enumerable}))),i.forEach(function(e){Object(c["a"])(t,e,n[e])})}return t}},cee4:function(t,e,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),s=n("4a7b"),a=n("2444");function u(t){var e=new o(t),n=r(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var c=u(a);c.Axios=o,c.create=function(t){return u(s(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},d2c8:function(t,e,n){var i=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},d2c9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="envelope",o=512,s=512,a=[],u="f0e0",c="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faEnvelope=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d2ed:function(t,e,n){var i=n("e785"),r=36e5;function o(t,e){var n=i(t,e)/r;return n>0?Math.floor(n):Math.ceil(n)}t.exports=o},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d420:function(t,e,n){var i=n("0978"),r=6e4,o=864e5;function s(t,e){var n=i(t),s=i(e),a=n.getTime()-n.getTimezoneOffset()*r,u=s.getTime()-s.getTimezoneOffset()*r;return Math.round((a-u)/o)}t.exports=s},d473:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setMilliseconds(r),n}t.exports=r},d4ae:function(t,e,n){var i=n("f5dd");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},d4c0:function(t,e,n){var i=n("0d58"),r=n("2621"),o=n("52a7");t.exports=function(t){var e=i(t),n=r.f;if(n){var s,a=n(t),u=o.f,c=0;while(a.length>c)u.call(t,s=a[c++])&&e.push(s)}return e}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6f8:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}t.exports=r},d7b7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="spinner",o=512,s=512,a=[],u="f110",c="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faSpinner=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},d864:function(t,e,n){var i=n("79aa");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},d8d6:function(t,e,n){n("1654"),n("6c1c"),t.exports=n("ccb9").f("iterator")},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d975:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}t.exports=r},d9f6:function(t,e,n){var i=n("e4ae"),r=n("794b"),o=n("1bc3"),s=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var i=n("584a"),r=n("e53d"),o="__core-js_shared__",s=r[o]||(r[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc624:function(t,e,n){n("9427");var i=n("584a").Object;t.exports=function(t,e){return i.create(t,e)}},dcbc:function(t,e,n){var i=n("2aba");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},dddf:function(t,e,n){var i=n("acc4");function r(t){return i(t)?366:365}t.exports=r},de13:function(t,e,n){var i=n("8964"),r=n("b4c7");function o(t){var e=i(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var o=r(n);return o.setDate(o.getDate()-1),o}t.exports=o},de5d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="phone",o=512,s=512,a=[],u="f095",c="M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faPhone=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},df35:function(t,e,n){var i=n("27a1");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},e099:function(t,e,n){"use strict";var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?o(s(t),function(s){var a=encodeURIComponent(i(s))+n;return r(t[s])?o(t[s],function(t){return a+encodeURIComponent(i(t))}).join(e):a+encodeURIComponent(i(t[s]))}).join(e):a?encodeURIComponent(i(a))+n+encodeURIComponent(i(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}var s=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},e11e:function(t,e,n){
  /* @preserve
   * Leaflet 1.5.1+build.2e3e0ff, a JS library for interactive maps. http://leafletjs.com
   * (c) 2010-2018 Vladimir Agafonkin, (c) 2010-2011 CloudMade
   */
  (function(t,n){n(e)})(0,function(t){"use strict";var e="1.5.1+build.2e3e0ffb",n=Object.freeze;function i(t){var e,n,i,r;for(n=1,i=arguments.length;n<i;n++)for(e in r=arguments[n],r)t[e]=r[e];return t}Object.freeze=function(t){return t};var r=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function o(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var s=0;function a(t){return t._leaflet_id=t._leaflet_id||++s,t._leaflet_id}function u(t,e,n){var i,r,o,s;return s=function(){i=!1,r&&(o.apply(n,r),r=!1)},o=function(){i?r=arguments:(t.apply(n,arguments),setTimeout(s,e),i=!0)},o}function c(t,e,n){var i=e[1],r=e[0],o=i-r;return t===i&&n?t:((t-r)%o+o)%o+r}function h(){return!1}function l(t,e){return e=void 0===e?6:e,+(Math.round(t+"e+"+e)+"e-"+e)}function f(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function p(t){return f(t).split(/\s+/)}function d(t,e){for(var n in t.hasOwnProperty("options")||(t.options=t.options?r(t.options):{}),e)t.options[n]=e[n];return t.options}function g(t,e,n){var i=[];for(var r in t)i.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(t[r]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var m=/\{ *([\w_-]+) *\}/g;function y(t,e){return t.replace(m,function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"===typeof i&&(i=i(e)),i})}var _=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function M(t){var e=+new Date,n=Math.max(0,16-(e-w));return w=e+n,window.setTimeout(t,n)}var S=window.requestAnimationFrame||x("RequestAnimationFrame")||M,E=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,n){if(!n||S!==M)return S.call(window,o(t,e));t.call(e)}function I(t){t&&E.call(window,t)}var O=(Object.freeze||Object)({freeze:n,extend:i,create:r,bind:o,lastId:s,stamp:a,throttle:u,wrapNum:c,falseFn:h,formatNum:l,trim:f,splitWords:p,setOptions:d,getParamString:g,template:y,isArray:_,indexOf:v,emptyImageUrl:b,requestFn:S,cancelFn:E,requestAnimFrame:C,cancelAnimFrame:I});function T(){}function P(t){if("undefined"!==typeof L&&L&&L.Mixin){t=_(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}T.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,o=r(n);for(var s in o.constructor=e,e.prototype=o,this)this.hasOwnProperty(s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&(i(e,t.statics),delete t.statics),t.includes&&(P(t.includes),i.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=i(r(o.options),t.options)),i(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},e},T.include=function(t){return i(this.prototype,t),this},T.mergeOptions=function(t){return i(this.prototype.options,t),this},T.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"===typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var N={on:function(t,e,n){if("object"===typeof t)for(var i in t)this._on(i,t[i],e);else{t=p(t);for(var r=0,o=t.length;r<o;r++)this._on(t[r],e,n)}return this},off:function(t,e,n){if(t)if("object"===typeof t)for(var i in t)this._off(i,t[i],e);else{t=p(t);for(var r=0,o=t.length;r<o;r++)this._off(t[r],e,n)}else delete this._events;return this},_on:function(t,e,n){this._events=this._events||{};var i=this._events[t];i||(i=[],this._events[t]=i),n===this&&(n=void 0);for(var r={fn:e,ctx:n},o=i,s=0,a=o.length;s<a;s++)if(o[s].fn===e&&o[s].ctx===n)return;o.push(r)},_off:function(t,e,n){var i,r,o;if(this._events&&(i=this._events[t],i))if(e){if(n===this&&(n=void 0),i)for(r=0,o=i.length;r<o;r++){var s=i[r];if(s.ctx===n&&s.fn===e)return s.fn=h,this._firingCount&&(this._events[t]=i=i.slice()),void i.splice(r,1)}}else{for(r=0,o=i.length;r<o;r++)i[r].fn=h;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var r=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,a=o.length;s<a;s++){var u=o[s];u.fn.call(u.ctx||this,r)}this._firingCount--}}return n&&this._propagateEvent(r),this},listens:function(t,e){var n=this._events&&this._events[t];if(n&&n.length)return!0;if(e)for(var i in this._eventParents)if(this._eventParents[i].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"===typeof t){for(var i in t)this.once(i,t[i],e);return this}var r=o(function(){this.off(t,e,n).off(t,r,n)},this);return this.on(t,e,n).on(t,r,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};N.addEventListener=N.on,N.removeEventListener=N.clearAllEventListeners=N.off,N.addOneTimeEventListener=N.once,N.fireEvent=N.fire,N.hasEventListeners=N.listens;var A=T.extend(N);function R(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var D=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function k(t,e,n){return t instanceof R?t:_(t)?new R(t[0],t[1]):void 0===t||null===t?t:"object"===typeof t&&"x"in t&&"y"in t?new R(t.x,t.y):new R(t,e,n)}function F(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i<r;i++)this.extend(n[i])}function z(t,e){return!t||t instanceof F?t:new F(t,e)}function j(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i<r;i++)this.extend(n[i])}function B(t,e){return t instanceof j?t:new j(t,e)}function G(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function q(t,e,n){return t instanceof G?t:_(t)&&"object"!==typeof t[0]?3===t.length?new G(t[0],t[1],t[2]):2===t.length?new G(t[0],t[1]):null:void 0===t||null===t?t:"object"===typeof t&&"lat"in t?new G(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new G(t,e,n)}R.prototype={clone:function(){return new R(this.x,this.y)},add:function(t){return this.clone()._add(k(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(k(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new R(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new R(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=D(this.x),this.y=D(this.y),this},distanceTo:function(t){t=k(t);var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return t=k(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=k(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+l(this.x)+", "+l(this.y)+")"}},F.prototype={extend:function(t){return t=k(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new R((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new R(this.min.x,this.max.y)},getTopRight:function(){return new R(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return t="number"===typeof t[0]||t instanceof R?k(t):z(t),t instanceof F?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=z(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>=e.x&&i.x<=n.x,s=r.y>=e.y&&i.y<=n.y;return o&&s},overlaps:function(t){t=z(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>e.x&&i.x<n.x,s=r.y>e.y&&i.y<n.y;return o&&s},isValid:function(){return!(!this.min||!this.max)}},j.prototype={extend:function(t){var e,n,i=this._southWest,r=this._northEast;if(t instanceof G)e=t,n=t;else{if(!(t instanceof j))return t?this.extend(q(t)||B(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||r?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new G(e.lat,e.lng),this._northEast=new G(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,r=Math.abs(e.lng-n.lng)*t;return new j(new G(e.lat-i,e.lng-r),new G(n.lat+i,n.lng+r))},getCenter:function(){return new G((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new G(this.getNorth(),this.getWest())},getSouthEast:function(){return new G(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"===typeof t[0]||t instanceof G||"lat"in t?q(t):B(t);var e,n,i=this._southWest,r=this._northEast;return t instanceof j?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=r.lat&&e.lng>=i.lng&&n.lng<=r.lng},intersects:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&i.lat<=n.lat,s=r.lng>=e.lng&&i.lng<=n.lng;return o&&s},overlaps:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&i.lat<n.lat,s=r.lng>e.lng&&i.lng<n.lng;return o&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=B(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},G.prototype={equals:function(t,e){if(!t)return!1;t=q(t);var n=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return n<=(void 0===e?1e-9:e)},toString:function(t){return"LatLng("+l(this.lat,t)+", "+l(this.lng,t)+")"},distanceTo:function(t){return V.distance(this,q(t))},wrap:function(){return V.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return B([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new G(this.lat,this.lng,this.alt)}};var U={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t),i=this.transformation.transform(e.min,n),r=this.transformation.transform(e.max,n);return new F(i,r)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?c(t.lng,this.wrapLng,!0):t.lng,n=this.wrapLat?c(t.lat,this.wrapLat,!0):t.lat,i=t.alt;return new G(n,e,i)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,r=e.lng-n.lng;if(0===i&&0===r)return t;var o=t.getSouthWest(),s=t.getNorthEast(),a=new G(o.lat-i,o.lng-r),u=new G(s.lat-i,s.lng-r);return new j(a,u)}},V=i({},U,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,r=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2),s=Math.sin((e.lng-t.lng)*n/2),a=o*o+Math.cos(i)*Math.cos(r)*s*s,u=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*u}}),Z=6378137,H={R:Z,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),r=Math.sin(i*e);return new R(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new G((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=Z*Math.PI;return new F([-t,-t],[t,t])}()};function $(t,e,n,i){if(_(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function Y(t,e,n,i){return new $(t,e,n,i)}$.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new R((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var W=i({},V,{code:"EPSG:3857",projection:H,transformation:function(){var t=.5/(Math.PI*H.R);return Y(t,.5,-t,.5)}()}),X=i({},W,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){var n,i,r,o,s,a,u="";for(n=0,r=t.length;n<r;n++){for(s=t[n],i=0,o=s.length;i<o;i++)a=s[i],u+=(i?"L":"M")+a.x+" "+a.y;u+=e?Ot?"z":"x":""}return u||"M0 0"}var Q=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),it=Pt("webkit"),rt=Pt("android"),ot=Pt("android 2")||Pt("android 3"),st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),at=rt&&Pt("Google")&&st<537&&!("AudioNode"in window),ut=!!window.opera,ct=Pt("chrome"),ht=Pt("gecko")&&!it&&!ut&&!tt,lt=!ct&&Pt("safari"),ft=Pt("phantom"),pt="OTransition"in Q,dt=0===navigator.platform.indexOf("Win"),gt=tt&&"transition"in Q,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,yt="MozPerspective"in Q,_t=!window.L_DISABLE_3D&&(gt||mt||yt)&&!pt&&!ft,vt="undefined"!==typeof orientation||Pt("mobile"),bt=vt&&it,xt=vt&&mt,wt=!window.PointerEvent&&window.MSPointerEvent,Mt=!(!window.PointerEvent&&!wt),St=!window.L_NO_TOUCH&&(Mt||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Et=vt&&ut,Ct=vt&&ht,It=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Lt=function(){return!!document.createElement("canvas").getContext}(),Ot=!(!document.createElementNS||!K("svg").createSVGRect),Tt=!Ot&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"===typeof e.adj}catch(n){return!1}}();function Pt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Nt=(Object.freeze||Object)({ie:tt,ielt9:et,edge:nt,webkit:it,android:rt,android23:ot,androidStock:at,opera:ut,chrome:ct,gecko:ht,safari:lt,phantom:ft,opera12:pt,win:dt,ie3d:gt,webkit3d:mt,gecko3d:yt,any3d:_t,mobile:vt,mobileWebkit:bt,mobileWebkit3d:xt,msPointer:wt,pointer:Mt,touch:St,mobileOpera:Et,mobileGecko:Ct,retina:It,canvas:Lt,svg:Ot,vml:Tt}),At=wt?"MSPointerDown":"pointerdown",Rt=wt?"MSPointerMove":"pointermove",Dt=wt?"MSPointerUp":"pointerup",kt=wt?"MSPointerCancel":"pointercancel",Ft=["INPUT","SELECT","OPTION"],zt={},jt=!1,Bt=0;function Gt(t,e,n,i){return"touchstart"===e?Ut(t,n,i):"touchmove"===e?Yt(t,n,i):"touchend"===e&&Wt(t,n,i),this}function qt(t,e,n){var i=t["_leaflet_"+e+n];return"touchstart"===e?t.removeEventListener(At,i,!1):"touchmove"===e?t.removeEventListener(Rt,i,!1):"touchend"===e&&(t.removeEventListener(Dt,i,!1),t.removeEventListener(kt,i,!1)),this}function Ut(t,e,n){var i=o(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(Ft.indexOf(t.target.tagName)<0))return;Ue(t)}$t(t,e)});t["_leaflet_touchstart"+n]=i,t.addEventListener(At,i,!1),jt||(document.documentElement.addEventListener(At,Vt,!0),document.documentElement.addEventListener(Rt,Zt,!0),document.documentElement.addEventListener(Dt,Ht,!0),document.documentElement.addEventListener(kt,Ht,!0),jt=!0)}function Vt(t){zt[t.pointerId]=t,Bt++}function Zt(t){zt[t.pointerId]&&(zt[t.pointerId]=t)}function Ht(t){delete zt[t.pointerId],Bt--}function $t(t,e){for(var n in t.touches=[],zt)t.touches.push(zt[n]);t.changedTouches=[t],e(t)}function Yt(t,e,n){var i=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&$t(t,e)};t["_leaflet_touchmove"+n]=i,t.addEventListener(Rt,i,!1)}function Wt(t,e,n){var i=function(t){$t(t,e)};t["_leaflet_touchend"+n]=i,t.addEventListener(Dt,i,!1),t.addEventListener(kt,i,!1)}var Xt=wt?"MSPointerDown":Mt?"pointerdown":"touchstart",Kt=wt?"MSPointerUp":Mt?"pointerup":"touchend",Jt="_leaflet_";function Qt(t,e,n){var i,r,o=!1,s=250;function a(t){var e;if(Mt){if(!nt||"mouse"===t.pointerType)return;e=Bt}else e=t.touches.length;if(!(e>1)){var n=Date.now(),a=n-(i||n);r=t.touches?t.touches[0]:t,o=a>0&&a<=s,i=n}}function u(t){if(o&&!r.cancelBubble){if(Mt){if(!nt||"mouse"===t.pointerType)return;var n,s,a={};for(s in r)n=r[s],a[s]=n&&n.bind?n.bind(r):n;r=a}r.type="dblclick",r.button=0,e(r),i=null}}return t[Jt+Xt+n]=a,t[Jt+Kt+n]=u,t[Jt+"dblclick"+n]=e,t.addEventListener(Xt,a,!1),t.addEventListener(Kt,u,!1),t.addEventListener("dblclick",e,!1),this}function te(t,e){var n=t[Jt+Xt+e],i=t[Jt+Kt+e],r=t[Jt+"dblclick"+e];return t.removeEventListener(Xt,n,!1),t.removeEventListener(Kt,i,!1),nt||t.removeEventListener("dblclick",r,!1),this}var ee,ne,ie,re,oe,se=Me(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ae=Me(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ue="webkitTransition"===ae||"OTransition"===ae?ae+"End":"transitionend";function ce(t){return"string"===typeof t?document.getElementById(t):t}function he(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function le(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function fe(t){var e=t.parentNode;e&&e.removeChild(t)}function pe(t){while(t.firstChild)t.removeChild(t.firstChild)}function de(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ge(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function me(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=be(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ye(t,e){if(void 0!==t.classList)for(var n=p(e),i=0,r=n.length;i<r;i++)t.classList.add(n[i]);else if(!me(t,e)){var o=be(t);ve(t,(o?o+" ":"")+e)}}function _e(t,e){void 0!==t.classList?t.classList.remove(e):ve(t,f((" "+be(t)+" ").replace(" "+e+" "," ")))}function ve(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function be(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function xe(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&we(t,e)}function we(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(r){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}function Me(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Se(t,e,n){var i=e||new R(0,0);t.style[se]=(gt?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function Ee(t,e){t._leaflet_pos=e,_t?Se(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Ce(t){return t._leaflet_pos||new R(0,0)}if("onselectstart"in document)ee=function(){De(window,"selectstart",Ue)},ne=function(){Fe(window,"selectstart",Ue)};else{var Ie=Me(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ee=function(){if(Ie){var t=document.documentElement.style;ie=t[Ie],t[Ie]="none"}},ne=function(){Ie&&(document.documentElement.style[Ie]=ie,ie=void 0)}}function Le(){De(window,"dragstart",Ue)}function Oe(){Fe(window,"dragstart",Ue)}function Te(t){while(-1===t.tabIndex)t=t.parentNode;t.style&&(Pe(),re=t,oe=t.style.outline,t.style.outline="none",De(window,"keydown",Pe))}function Pe(){re&&(re.style.outline=oe,re=void 0,oe=void 0,Fe(window,"keydown",Pe))}function Ne(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ae(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Re=(Object.freeze||Object)({TRANSFORM:se,TRANSITION:ae,TRANSITION_END:ue,get:ce,getStyle:he,create:le,remove:fe,empty:pe,toFront:de,toBack:ge,hasClass:me,addClass:ye,removeClass:_e,setClass:ve,getClass:be,setOpacity:xe,testProp:Me,setTransform:Se,setPosition:Ee,getPosition:Ce,disableTextSelection:ee,enableTextSelection:ne,disableImageDrag:Le,enableImageDrag:Oe,preventOutline:Te,restoreOutline:Pe,getSizedParentNode:Ne,getScale:Ae});function De(t,e,n,i){if("object"===typeof e)for(var r in e)ze(t,r,e[r],n);else{e=p(e);for(var o=0,s=e.length;o<s;o++)ze(t,e[o],n,i)}return this}var ke="_leaflet_events";function Fe(t,e,n,i){if("object"===typeof e)for(var r in e)je(t,r,e[r],n);else if(e){e=p(e);for(var o=0,s=e.length;o<s;o++)je(t,e[o],n,i)}else{for(var a in t[ke])je(t,a,t[ke][a]);delete t[ke]}return this}function ze(t,e,n,i){var r=e+a(n)+(i?"_"+a(i):"");if(t[ke]&&t[ke][r])return this;var o=function(e){return n.call(i||t,e||window.event)},s=o;Mt&&0===e.indexOf("touch")?Gt(t,e,o,r):!St||"dblclick"!==e||!Qt||Mt&&ct?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",o,!1):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,Je(t,e)&&s(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",o,!1)):("click"===e&&rt&&(o=function(t){Qe(t,s)}),t.addEventListener(e,o,!1)):"attachEvent"in t&&t.attachEvent("on"+e,o):Qt(t,o,r),t[ke]=t[ke]||{},t[ke][r]=o}function je(t,e,n,i){var r=e+a(n)+(i?"_"+a(i):""),o=t[ke]&&t[ke][r];if(!o)return this;Mt&&0===e.indexOf("touch")?qt(t,e,r):!St||"dblclick"!==e||!te||Mt&&ct?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",o,!1):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,o,!1):"detachEvent"in t&&t.detachEvent("on"+e,o):te(t,r),t[ke][r]=null}function Be(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Ke(t),this}function Ge(t){return ze(t,"mousewheel",Be),this}function qe(t){return De(t,"mousedown touchstart dblclick",Be),ze(t,"click",Xe),this}function Ue(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ve(t){return Ue(t),Be(t),this}function Ze(t,e){if(!e)return new R(t.clientX,t.clientY);var n=Ae(e),i=n.boundingClientRect;return new R((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var He=dt&&ct?2*window.devicePixelRatio:ht?window.devicePixelRatio:1;function $e(t){return nt?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/He:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}var Ye,We={};function Xe(t){We[t.type]=!0}function Ke(t){var e=We[t.type];return We[t.type]=!1,e}function Je(t,e){var n=e.relatedTarget;if(!n)return!0;try{while(n&&n!==t)n=n.parentNode}catch(i){return!1}return n!==t}function Qe(t,e){var n=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,i=Ye&&n-Ye;i&&i>100&&i<500||t.target._simulatedClick&&!t._simulated?Ve(t):(Ye=n,e(t))}var tn=(Object.freeze||Object)({on:De,off:Fe,stopPropagation:Be,disableScrollPropagation:Ge,disableClickPropagation:qe,preventDefault:Ue,stop:Ve,getMousePosition:Ze,getWheelDelta:$e,fakeStop:Xe,skipped:Ke,isExternalTarget:Je,addListener:De,removeListener:Fe}),en=A.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=Ce(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),Ee(this._el,n),this.fire("step")},_complete:function(){I(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),nn=A.extend({options:{crs:W,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(q(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ae&&_t&&!Et&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),De(this._proxy,ue,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){if(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(q(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n){void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan));var r=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(r)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(_t?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(_t?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),r=this.getSize().divideBy(2),o=t instanceof R?t:this.latLngToContainerPoint(t),s=o.subtract(r).multiplyBy(1-1/i),a=this.containerPointToLatLng(r.add(s));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():B(t);var n=k(e.paddingTopLeft||e.padding||[0,0]),i=k(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,!1,n.add(i));if(r="number"===typeof e.maxZoom?Math.min(e.maxZoom,r):r,r===1/0)return{center:t.getCenter(),zoom:r};var o=i.subtract(n).divideBy(2),s=this.project(t.getSouthWest(),r),a=this.project(t.getNorthEast(),r),u=this.unproject(s.add(a).divideBy(2).add(o),r);return{center:u,zoom:r}},fitBounds:function(t,e){if(t=B(t),!t.isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=k(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new en,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ye(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(n=n||{},!1===n.animate||!_t)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),r=this.project(t),o=this.getSize(),s=this._zoom;t=q(t),e=void 0===e?s:e;var a=Math.max(o.x,o.y),u=a*this.getZoomScale(s,e),c=r.distanceTo(i)||1,h=1.42,l=h*h;function f(t){var e=t?-1:1,n=t?u:a,i=u*u-a*a+e*l*l*c*c,r=2*n*l*c,o=i/r,s=Math.sqrt(o*o+1)-o,h=s<1e-9?-18:Math.log(s);return h}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function d(t){return(Math.exp(t)+Math.exp(-t))/2}function g(t){return p(t)/d(t)}var m=f(0);function y(t){return a*(d(m)/d(m+h*t))}function _(t){return a*(d(m)*g(m+h*t)-p(m))/l}function v(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),x=(f(1)-m)/h,w=n.duration?1e3*n.duration:1e3*x*.8;function M(){var n=(Date.now()-b)/w,o=v(n)*x;n<=1?(this._flyToFrame=C(M,this),this._move(this.unproject(i.add(r.subtract(i).multiplyBy(_(o)/c)),s),this.getScaleZoom(a/y(o),s),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),M.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=B(t),t.isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,B(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var n=k(e.paddingTopLeft||e.padding||[0,0]),i=k(e.paddingBottomRight||e.padding||[0,0]),r=this.getCenter(),o=this.project(r),s=this.project(t),a=this.getPixelBounds(),u=a.getSize().divideBy(2),c=z([a.min.add(n),a.max.subtract(i)]);if(!c.contains(s)){this._enforcingBounds=!0;var h=o.subtract(s),l=k(s.x+h.x,s.y+h.y);(s.x<c.min.x||s.x>c.max.x)&&(l.x=o.x-h.x,h.x>0?l.x+=u.x-n.x:l.x-=u.x-i.x),(s.y<c.min.y||s.y>c.max.y)&&(l.y=o.y-h.y,h.y>0?l.y+=u.y-n.y:l.y-=u.y-i.y),this.panTo(this.unproject(l),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),r=e.divideBy(2).round(),s=n.divideBy(2).round(),a=r.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,n=t.coords.longitude,i=new G(e,n),r=i.toBounds(2*t.coords.accuracy),o=this._locateOptions;if(o.setView){var s=this.getBoundsZoom(r);this.setView(i,o.maxZoom?Math.min(s,o.maxZoom):s)}var a={latlng:i,bounds:r,timestamp:t.timestamp};for(var u in t.coords)"number"===typeof t.coords[u]&&(a[u]=t.coords[u]);this.fire("locationfound",a)},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),fe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(I(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)fe(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i=le("div",n,e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new j(e,n)},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=B(t),n=k(n||[0,0]);var i=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),u=this.getSize().subtract(n),c=z(this.project(a,i),this.project(s,i)).getSize(),h=_t?this.options.zoomSnap:1,l=u.x/c.x,f=u.y/c.y,p=e?Math.max(l,f):Math.min(l,f);return i=this.getScaleZoom(p,i),h&&(i=Math.round(i/(h/100))*(h/100),i=e?Math.ceil(i/h)*h:Math.floor(i/h)*h),Math.max(r,Math.min(o,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new R(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new F(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(q(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(k(t),e)},layerPointToLatLng:function(t){var e=k(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(q(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(q(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(q(t),q(e))},containerPointToLayerPoint:function(t){return k(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return k(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(k(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(q(t)))},mouseEventToContainerPoint:function(t){return Ze(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ce(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");De(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&_t,ye(t,"leaflet-container"+(St?" leaflet-touch":"")+(It?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(lt?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=he(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ee(this._mapPane,new R(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ye(t.markerPane,"leaflet-zoom-hide"),ye(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){Ee(this._mapPane,new R(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,!1)._move(t,e)._moveEnd(i),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return I(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Ee(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?Fe:De;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),_t&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){I(this._resizeRequest),this._resizeRequest=C(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){var n,i=[],r="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,s=!1;while(o){if(n=this._targets[a(o)],n&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(r&&!Je(o,t))break;if(i.push(n),r)break}if(o===this._container)break;o=o.parentNode}return i.length||s||r||!Je(o,t)||(i=[this]),i},_handleDOMEvent:function(t){if(this._loaded&&!Ke(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Te(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var r=i({},t);r.type="preclick",this._fireDOMEvent(r,r.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e)),n.length)){var o=n[0];"contextmenu"===e&&o.listens(e,!0)&&Ue(t);var s={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var a=o.getLatLng&&(!o._radius||o._radius<=10);s.containerPoint=a?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(t),s.layerPoint=this.containerPointToLayerPoint(s.containerPoint),s.latlng=a?o.getLatLng():this.layerPointToLatLng(s.layerPoint)}for(var u=0;u<n.length;u++)if(n[u].fire(e,s,!0),s.originalEvent._stopped||!1===n[u].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,e))return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Ce(this._mapPane)||new R(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var n=t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return n.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return z([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),r=this.getSize().divideBy(2),o=new F(i.subtract(r),i.add(r)),s=this._getBoundsOffset(o,n,e);return s.round().equals([0,0])?t:this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new F(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=z(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),r=i.min.subtract(t.min),o=i.max.subtract(t.max),s=this._rebound(r.x,-o.x),a=this._rebound(r.y,-o.y);return new R(s,a)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=_t?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){_e(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=le("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=se,n=this._proxy.style[e];Se(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",function(){var t=this.getCenter(),e=this.getZoom();Se(this._proxy,this.project(t,e),this.getZoomScale(e,1))},this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){fe(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(r))&&(C(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ye(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&_e(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),C(function(){this._moveEnd(!0)},this))}});function rn(t,e){return new nn(t,e)}var on=T.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return ye(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(fe(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),sn=function(t){return new on(t)};nn.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=le("div",e+"control-container",this._container);function i(i,r){var o=e+i+" "+e+r;t[i+r]=le("div",o,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)fe(this._controlCorners[t]);fe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var an=on.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return on.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ye(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ye(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):_e(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return _e(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=le("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),qe(e),Ge(e);var i=this._section=le("section",t+"-list");n&&(this._map.on("click",this.collapse,this),rt||De(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var r=this._layersLink=le("a",t+"-toggle",e);r.href="#",r.title="Layers",St?(De(r,"click",Ve),De(r,"click",this.expand,this)):De(r,"focus",this.expand,this),n||this.expand(),this._baseLayersList=le("div",t+"-base",i),this._separator=le("div",t+"-separator",i),this._overlaysList=le("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(o(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;pe(this._baseLayersList),pe(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,r=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,r+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&r>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?(e=document.createElement("input"),e.type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+a(this),i),this._layerControlInputs.push(e),e.layerId=a(t.layer),De(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("div");n.appendChild(o),o.appendChild(e),o.appendChild(r);var s=t.overlay?this._overlaysList:this._baseLayersList;return s.appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],r=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||r.push(e);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])&&this._map.removeLayer(r[o]);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])||this._map.addLayer(i[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),un=function(t,e,n){return new an(t,e,n)},cn=on.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=le("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,r){var o=le("a",n,i);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),qe(o),De(o,"click",Ve),De(o,"click",r,this),De(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";_e(this._zoomInButton,e),_e(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&ye(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&ye(this._zoomInButton,e)}});nn.mergeOptions({zoomControl:!0}),nn.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new cn,this.addControl(this.zoomControl))});var hn=function(t){return new cn(t)},ln=on.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=le("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=le("div",e,n)),t.imperial&&(this._iScale=le("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,r=3.2808399*t;r>5280?(e=r/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(r),this._updateScale(this._iScale,i+" ft",i/r))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),fn=function(t){return new ln(t)},pn=on.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=le("div","leaflet-control-attribution"),qe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}}});nn.mergeOptions({attributionControl:!0}),nn.addInitHook(function(){this.options.attributionControl&&(new pn).addTo(this)});var dn=function(t){return new pn(t)};on.Layers=an,on.Zoom=cn,on.Scale=ln,on.Attribution=pn,sn.layers=un,sn.zoom=hn,sn.scale=fn,sn.attribution=dn;var gn=T.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});gn.addTo=function(t,e){return t.addHandler(e,this),this};var mn,yn={Events:N},_n=St?"touchstart mousedown":"mousedown",vn={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},bn={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},xn=A.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){d(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(De(this._dragStartTarget,_n,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(xn._dragging===this&&this.finishDrag(),Fe(this._dragStartTarget,_n,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!me(this._element,"leaflet-zoom-anim")&&!(xn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(xn._dragging=this,this._preventOutline&&Te(this._element),Le(),ee(),!this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Ne(this._element);this._startPoint=new R(e.clientX,e.clientY),this._parentScale=Ae(n),De(document,bn[t.type],this._onMove,this),De(document,vn[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new R(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ue(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=Ce(this._element).subtract(n),ye(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ye(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,I(this._animRequest),this._lastEvent=t,this._animRequest=C(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Ee(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in _e(document.body,"leaflet-dragging"),this._lastTarget&&(_e(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bn)Fe(document,bn[t],this._onMove,this),Fe(document,vn[t],this._onUp,this);Oe(),ne(),this._moved&&this._moving&&(I(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,xn._dragging=!1}});function wn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=In(t,n),t=En(t,n),t}function Mn(t,e,n){return Math.sqrt(Nn(t,e,n,!0))}function Sn(t,e,n){return Nn(t,e,n)}function En(t,e){var n=t.length,i=typeof Uint8Array!==void 0+""?Uint8Array:Array,r=new i(n);r[0]=r[n-1]=1,Cn(t,r,e,0,n-1);var o,s=[];for(o=0;o<n;o++)r[o]&&s.push(t[o]);return s}function Cn(t,e,n,i,r){var o,s,a,u=0;for(s=i+1;s<=r-1;s++)a=Nn(t[s],t[i],t[r],!0),a>u&&(o=s,u=a);u>n&&(e[o]=1,Cn(t,e,n,i,o),Cn(t,e,n,o,r))}function In(t,e){for(var n=[t[0]],i=1,r=0,o=t.length;i<o;i++)Pn(t[i],t[r])>e&&(n.push(t[i]),r=i);return r<o-1&&n.push(t[o-1]),n}function Ln(t,e,n,i,r){var o,s,a,u=i?mn:Tn(t,n),c=Tn(e,n);mn=c;while(1){if(!(u|c))return[t,e];if(u&c)return!1;o=u||c,s=On(t,e,o,n,r),a=Tn(s,n),o===u?(t=s,u=a):(e=s,c=a)}}function On(t,e,n,i,r){var o,s,a=e.x-t.x,u=e.y-t.y,c=i.min,h=i.max;return 8&n?(o=t.x+a*(h.y-t.y)/u,s=h.y):4&n?(o=t.x+a*(c.y-t.y)/u,s=c.y):2&n?(o=h.x,s=t.y+u*(h.x-t.x)/a):1&n&&(o=c.x,s=t.y+u*(c.x-t.x)/a),new R(o,s,r)}function Tn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function Pn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function Nn(t,e,n,i){var r,o=e.x,s=e.y,a=n.x-o,u=n.y-s,c=a*a+u*u;return c>0&&(r=((t.x-o)*a+(t.y-s)*u)/c,r>1?(o=n.x,s=n.y):r>0&&(o+=a*r,s+=u*r)),a=t.x-o,u=t.y-s,i?a*a+u*u:new R(o,s)}function An(t){return!_(t[0])||"object"!==typeof t[0][0]&&"undefined"!==typeof t[0][0]}function Rn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(t)}var Dn=(Object.freeze||Object)({simplify:wn,pointToSegmentDistance:Mn,closestPointOnSegment:Sn,clipSegment:Ln,_getEdgeIntersection:On,_getBitCode:Tn,_sqClosestPointOnSegment:Nn,isFlat:An,_flat:Rn});function kn(t,e,n){var i,r,o,s,a,u,c,h,l,f=[1,4,2,8];for(r=0,c=t.length;r<c;r++)t[r]._code=Tn(t[r],e);for(s=0;s<4;s++){for(h=f[s],i=[],r=0,c=t.length,o=c-1;r<c;o=r++)a=t[r],u=t[o],a._code&h?u._code&h||(l=On(u,a,h,e,n),l._code=Tn(l,e),i.push(l)):(u._code&h&&(l=On(u,a,h,e,n),l._code=Tn(l,e),i.push(l)),i.push(a));t=i}return t}var Fn=(Object.freeze||Object)({clipPolygon:kn}),zn={project:function(t){return new R(t.lng,t.lat)},unproject:function(t){return new G(t.y,t.x)},bounds:new F([-180,-90],[180,90])},jn={R:6378137,R_MINOR:6356752.314245179,bounds:new F([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,r=this.R_MINOR/n,o=Math.sqrt(1-r*r),s=o*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),o/2);return i=-n*Math.log(Math.max(a,1e-10)),new R(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,r=this.R_MINOR/i,o=Math.sqrt(1-r*r),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),u=0,c=.1;u<15&&Math.abs(c)>1e-7;u++)e=o*Math.sin(a),e=Math.pow((1-e)/(1+e),o/2),c=Math.PI/2-2*Math.atan(s*e)-a,a+=c;return new G(a*n,t.x*n/i)}},Bn=(Object.freeze||Object)({LonLat:zn,Mercator:jn,SphericalMercator:H}),Gn=i({},V,{code:"EPSG:3395",projection:jn,transformation:function(){var t=.5/(Math.PI*jn.R);return Y(t,.5,-t,.5)}()}),qn=i({},V,{code:"EPSG:4326",projection:zn,transformation:Y(1/180,1,-1/180,.5)}),Un=i({},U,{projection:zn,transformation:Y(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});U.Earth=V,U.EPSG3395=Gn,U.EPSG3857=W,U.EPSG900913=X,U.EPSG4326=qn,U.Simple=Un;var Vn=A.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});nn.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&a(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?_(t)?t:[t]:[];for(var e=0,n=t.length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var r=this._zoomBoundLayers[i].options;t=void 0===r.minZoom?t:Math.min(t,r.minZoom),e=void 0===r.maxZoom?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Zn=Vn.extend({initialize:function(t,e){var n,i;if(d(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)n=this._layers[e],n[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}}),Hn=function(t,e){return new Zn(t,e)},$n=Zn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Zn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Zn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new j;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Yn=function(t){return new $n(t)},Wn=T.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"===typeof i&&(i=[i,i]);var r=k(i),o=k("shadow"===e&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),r&&(t.style.width=r.x+"px",t.style.height=r.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return It&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Xn(t){return new Wn(t)}var Kn=Wn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Kn.imagePath||(Kn.imagePath=this._detectIconPath()),(this.options.imagePath||Kn.imagePath)+Wn.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=le("div","leaflet-default-icon-path",document.body),e=he(t,"background-image")||he(t,"backgroundImage");return document.body.removeChild(t),e=null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,""),e}}),Jn=gn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new xn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ye(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&_e(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=Ce(e._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),u=z(s.min._subtract(a).add(r),s.max._subtract(a).subtract(r));if(!u.contains(o)){var c=k((Math.max(u.max.x,o.x)-u.max.x)/(s.max.x-u.max.x)-(Math.min(u.min.x,o.x)-u.min.x)/(s.min.x-u.min.x),(Math.max(u.max.y,o.y)-u.max.y)/(s.max.y-u.max.y)-(Math.min(u.min.y,o.y)-u.min.y)/(s.min.y-u.min.y)).multiplyBy(i);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Ee(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(I(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=Ce(e._icon),r=e._map.layerPointToLatLng(i);n&&Ee(n,i),e._latlng=r,t.latlng=r,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){I(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Qn=Vn.extend({options:{icon:new Kn,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e),this._latlng=q(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=q(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),ye(n,e),t.keyboard&&(n.tabIndex="0"),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var r=t.icon.createShadow(this._shadow),o=!1;r!==this._shadow&&(this._removeShadow(),o=!0),r&&(ye(r,e),r.alt=""),this._shadow=r,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),fe(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&fe(this._shadow),this._shadow=null},_setPos:function(t){Ee(this._icon,t),this._shadow&&Ee(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ye(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Jn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Jn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&xe(this._icon,t),this._shadow&&xe(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ti(t,e){return new Qn(t,e)}var ei=Vn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t.hasOwnProperty("weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),ni=ei.extend({options:{fill:!0,radius:10},initialize:function(t,e){d(this,e),this._latlng=q(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=q(t),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return ei.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new F(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ii(t,e){return new ni(t,e)}var ri=ni.extend({initialize:function(t,e,n){if("number"===typeof e&&(e=i({},n,{radius:e})),d(this,e),this._latlng=q(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new j(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:ei.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===V.distance){var r=Math.PI/180,o=this._mRadius/V.R/r,s=n.project([e+o,t]),a=n.project([e-o,t]),u=s.add(a).divideBy(2),c=n.unproject(u).lat,h=Math.acos((Math.cos(o*r)-Math.sin(e*r)*Math.sin(c*r))/(Math.cos(e*r)*Math.cos(c*r)))/r;(isNaN(h)||0===h)&&(h=o/Math.cos(Math.PI/180*e)),this._point=u.subtract(n.getPixelOrigin()),this._radius=isNaN(h)?0:u.x-n.project([c,t-h]).x,this._radiusY=u.y-s.y}else{var l=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(l).x}this._updateBounds()}});function oi(t,e,n){return new ri(t,e,n)}var si=ei.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){d(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,r=null,o=Nn,s=0,a=this._parts.length;s<a;s++)for(var u=this._parts[s],c=1,h=u.length;c<h;c++){e=u[c-1],n=u[c];var l=o(t,e,n,!0);l<i&&(i=l,r=o(t,e,n))}return r&&(r.distance=Math.sqrt(i)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,r,o,s,a=this._rings[0],u=a.length;if(!u)return null;for(t=0,e=0;t<u-1;t++)e+=a[t].distanceTo(a[t+1])/2;if(0===e)return this._map.layerPointToLatLng(a[0]);for(t=0,i=0;t<u-1;t++)if(r=a[t],o=a[t+1],n=r.distanceTo(o),i+=n,i>e)return s=(i-e)/n,this._map.layerPointToLatLng([o.x-s*(o.x-r.x),o.y-s*(o.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=q(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new j,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=An(t),i=0,r=t.length;i<r;i++)n?(e[i]=q(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new F;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new R(t,t);this._pxBounds=new F([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,n){var i,r,o=t[0]instanceof G,s=t.length;if(o){for(r=[],i=0;i<s;i++)r[i]=this._map.latLngToLayerPoint(t[i]),n.extend(r[i]);e.push(r)}else for(i=0;i<s;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,i,r,o,s,a,u=this._parts;for(e=0,i=0,r=this._rings.length;e<r;e++)for(a=this._rings[e],n=0,o=a.length;n<o-1;n++)s=Ln(a[n],a[n+1],t,n,!0),s&&(u[i]=u[i]||[],u[i].push(s[0]),s[1]===a[n+1]&&n!==o-2||(u[i].push(s[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=wn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,r,o,s,a,u=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,o=this._parts.length;n<o;n++)for(a=this._parts[n],i=0,s=a.length,r=s-1;i<s;r=i++)if((e||0!==i)&&Mn(t,a[r],a[i])<=u)return!0;return!1}});function ai(t,e){return new si(t,e)}si._flat=Rn;var ui=si.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,n,i,r,o,s,a,u,c=this._rings[0],h=c.length;if(!h)return null;for(o=s=a=0,t=0,e=h-1;t<h;e=t++)n=c[t],i=c[e],r=n.y*i.x-i.y*n.x,s+=(n.x+i.x)*r,a+=(n.y+i.y)*r,o+=3*r;return u=0===o?c[0]:[s/o,a/o],this._map.layerPointToLatLng(u)},_convertLatLngs:function(t){var e=si.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof G&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){si.prototype._setLatLngs.call(this,t),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new R(e,e);if(t=new F(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,r=0,o=this._rings.length;r<o;r++)i=kn(this._rings[r],t,!0),i.length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,r,o,s,a,u,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,a=this._parts.length;r<a;r++)for(e=this._parts[r],o=0,u=e.length,s=u-1;o<u;s=o++)n=e[o],i=e[s],n.y>t.y!==i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c||si.prototype._containsPoint.call(this,t,!0)}});function ci(t,e){return new ui(t,e)}var hi=$n.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,r=_(t)?t:t.features;if(r){for(e=0,n=r.length;e<n;e++)i=r[e],(i.geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var s=li(t,o);return s?(s.feature=yi(t),s.defaultOptions=s.options,this.resetStyle(s),o.onEachFeature&&o.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"===typeof e&&(e=e(t.feature)),t.setStyle(e))}});function li(t,e){var n,i,r,o,s="Feature"===t.type?t.geometry:t,a=s?s.coordinates:null,u=[],c=e&&e.pointToLayer,h=e&&e.coordsToLatLng||fi;if(!a&&!s)return null;switch(s.type){case"Point":return n=h(a),c?c(t,n):new Qn(n);case"MultiPoint":for(r=0,o=a.length;r<o;r++)n=h(a[r]),u.push(c?c(t,n):new Qn(n));return new $n(u);case"LineString":case"MultiLineString":return i=pi(a,"LineString"===s.type?0:1,h),new si(i,e);case"Polygon":case"MultiPolygon":return i=pi(a,"Polygon"===s.type?1:2,h),new ui(i,e);case"GeometryCollection":for(r=0,o=s.geometries.length;r<o;r++){var l=li({geometry:s.geometries[r],type:"Feature",properties:t.properties},e);l&&u.push(l)}return new $n(u);default:throw new Error("Invalid GeoJSON object.")}}function fi(t){return new G(t[1],t[0],t[2])}function pi(t,e,n){for(var i,r=[],o=0,s=t.length;o<s;o++)i=e?pi(t[o],e-1,n):(n||fi)(t[o]),r.push(i);return r}function di(t,e){return e="number"===typeof e?e:6,void 0!==t.alt?[l(t.lng,e),l(t.lat,e),l(t.alt,e)]:[l(t.lng,e),l(t.lat,e)]}function gi(t,e,n,i){for(var r=[],o=0,s=t.length;o<s;o++)r.push(e?gi(t[o],e-1,n,i):di(t[o],i));return!e&&n&&r.push(r[0]),r}function mi(t,e){return t.feature?i({},t.feature,{geometry:e}):yi(e)}function yi(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var _i={toGeoJSON:function(t){return mi(this,{type:"Point",coordinates:di(this.getLatLng(),t)})}};function vi(t,e){return new hi(t,e)}Qn.include(_i),ri.include(_i),ni.include(_i),si.include({toGeoJSON:function(t){var e=!An(this._latlngs),n=gi(this._latlngs,e?1:0,!1,t);return mi(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),ui.include({toGeoJSON:function(t){var e=!An(this._latlngs),n=e&&!An(this._latlngs[0]),i=gi(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),mi(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Zn.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),mi(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer(function(e){if(e.toGeoJSON){var r=e.toGeoJSON(t);if(n)i.push(r.geometry);else{var o=yi(r);"FeatureCollection"===o.type?i.push.apply(i,o.features):i.push(o)}}}),n?mi(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var bi=vi,xi=Vn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=B(e),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ye(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){fe(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&de(this._image),this},bringToBack:function(){return this._map&&ge(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=B(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:le("img");ye(e,"leaflet-image-layer"),this._zoomAnimated&&ye(e,"leaflet-zoom-animated"),this.options.className&&ye(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Se(this._image,n,e)},_reset:function(){var t=this._image,e=new F(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Ee(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){xe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),wi=function(t,e,n){return new xi(t,e,n)},Mi=xi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:le("video");if(ye(e,"leaflet-image-layer"),this._zoomAnimated&&ye(e,"leaflet-zoom-animated"),e.onselectstart=h,e.onmousemove=h,e.onloadeddata=o(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],r=0;r<n.length;r++)i.push(n[r].src);this._url=n.length>0?i:[e.src]}else{_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")&&(e.style["objectFit"]="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var s=0;s<this._url.length;s++){var a=le("source");a.src=this._url[s],e.appendChild(a)}}}});function Si(t,e,n){return new Mi(t,e,n)}var Ei=xi.extend({_initImage:function(){var t=this._image=this._url;ye(t,"leaflet-image-layer"),this._zoomAnimated&&ye(t,"leaflet-zoom-animated"),t.onselectstart=h,t.onmousemove=h}});function Ci(t,e,n){return new Ei(t,e,n)}var Ii=Vn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){d(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&xe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&xe(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(xe(this._container,0),this._removeTimeout=setTimeout(o(fe,void 0,this._container),200)):fe(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=q(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&de(this._container),this},bringToBack:function(){return this._map&&ge(this._container),this},_prepareOpen:function(t,e,n){if(e instanceof Vn||(n=e,e=t),e instanceof $n)for(var i in t._layers){e=t._layers[i];break}if(!n)if(e.getCenter)n=e.getCenter();else{if(!e.getLatLng)throw new Error("Unable to get source layer LatLng.");n=e.getLatLng()}return this._source=e,this.update(),n},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof e)t.innerHTML=e;else{while(t.hasChildNodes())t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=k(this.options.offset),n=this._getAnchor();this._zoomAnimated?Ee(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}}),Li=Ii.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){Ii.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ei||this._source.on("preclick",Be))},onRemove:function(t){Ii.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ei||this._source.off("preclick",Be))},getEvents:function(){var t=Ii.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=le("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=le("div",t+"-content-wrapper",e);if(this._contentNode=le("div",t+"-content",n),qe(n),Ge(this._contentNode),De(n,"contextmenu",Be),this._tipContainer=le("div",t+"-tip-container",e),this._tip=le("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=le("a",t+"-close-button",e);i.href="#close",i.innerHTML="&#215;",De(i,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,r=this.options.maxHeight,o="leaflet-popup-scrolled";r&&i>r?(e.height=r+"px",ye(t,o)):_e(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Ee(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(he(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,r=new R(this._containerLeft,-n-this._containerBottom);r._add(Ce(this._container));var o=t.layerPointToContainerPoint(r),s=k(this.options.autoPanPadding),a=k(this.options.autoPanPaddingTopLeft||s),u=k(this.options.autoPanPaddingBottomRight||s),c=t.getSize(),h=0,l=0;o.x+i+u.x>c.x&&(h=o.x+i-c.x+u.x),o.x-h-a.x<0&&(h=o.x-a.x),o.y+n+u.y>c.y&&(l=o.y+n-c.y+u.y),o.y-l-a.y<0&&(l=o.y-a.y),(h||l)&&t.fire("autopanstart").panBy([h,l])}},_onCloseButtonClick:function(t){this._close(),Ve(t)},_getAnchor:function(){return k(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Oi=function(t,e){return new Li(t,e)};nn.mergeOptions({closePopupOnClick:!0}),nn.include({openPopup:function(t,e,n){return t instanceof Li||(t=new Li(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Vn.include({bindPopup:function(t,e){return t instanceof Li?(d(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new Li(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Ve(t),e instanceof ei?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Ti=Ii.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){Ii.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){Ii.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=Ii.prototype.getEvents.call(this);return St&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=le("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,n=this._container,i=e.latLngToContainerPoint(e.getCenter()),r=e.layerPointToContainerPoint(t),o=this.options.direction,s=n.offsetWidth,a=n.offsetHeight,u=k(this.options.offset),c=this._getAnchor();"top"===o?t=t.add(k(-s/2+u.x,-a+u.y+c.y,!0)):"bottom"===o?t=t.subtract(k(s/2-u.x,-u.y,!0)):"center"===o?t=t.subtract(k(s/2+u.x,a/2-c.y+u.y,!0)):"right"===o||"auto"===o&&r.x<i.x?(o="right",t=t.add(k(u.x+c.x,c.y-a/2+u.y,!0))):(o="left",t=t.subtract(k(s+c.x-u.x,a/2-c.y-u.y,!0))),_e(n,"leaflet-tooltip-right"),_e(n,"leaflet-tooltip-left"),_e(n,"leaflet-tooltip-top"),_e(n,"leaflet-tooltip-bottom"),ye(n,"leaflet-tooltip-"+o),Ee(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&xe(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return k(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Pi=function(t,e){return new Ti(t,e)};nn.include({openTooltip:function(t,e,n){return t instanceof Ti||(t=new Ti(n).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Vn.include({bindTooltip:function(t,e){return t instanceof Ti?(d(t,e),this._tooltip=t,t._source=this):(this._tooltip&&!e||(this._tooltip=new Ti(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),St&&(n.click=this._openTooltip)),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){return this._tooltip&&this._map&&(e=this._tooltip._prepareOpen(this,t,e),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(ye(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(_e(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var Ni=Wn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(pe(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=k(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Ai(t){return new Ni(t)}Wn.Default=Kn;var Ri=Vn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:vt,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){d(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),fe(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(de(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ge(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof R?t:new R(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),r=0,o=n.length;r<o;r++)e=n[r].style.zIndex,n[r]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!et){xe(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var r=this._tiles[i];if(r.current&&r.loaded){var o=Math.min(1,(t-r.loaded)/200);xe(r.el,o),o<1?e=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(I(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=le("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(fe(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],r=this._map;return i||(i=this._levels[t]={},i.el=le("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=r.project(r.unproject(r.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,r.getCenter(),r.getZoom()),h(i.el.offsetWidth),this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)e=this._tiles[t],e.retain=e.current;for(t in this._tiles)if(e=this._tiles[t],e.current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)fe(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var r=Math.floor(t/2),o=Math.floor(e/2),s=n-1,a=new R(+r,+o);a.z=+s;var u=this._tileCoordsToKey(a),c=this._tiles[u];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),s>i&&this._retainParent(r,o,s,i))},_retainChildren:function(t,e,n,i){for(var r=2*t;r<2*t+2;r++)for(var o=2*e;o<2*e+2;o++){var s=new R(r,o);s.z=n+1;var a=this._tileCoordsToKey(s),u=this._tiles[a];u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),n+1<i&&this._retainChildren(r,o,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var r=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom)&&(r=void 0);var o=this.options.updateWhenZooming&&r!==this._tileZoom;i&&!o||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),r=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();_t?Se(t.el,r,i):Ee(t.el,r)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),r=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*i);return new F(r.subtract(o),r.add(o))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(i),o=r.getCenter(),s=[],a=this.options.keepBuffer,u=new F(r.getBottomLeft().subtract([a,-a]),r.getTopRight().add([a,-a]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var h=this._tiles[c].coords;h.z===this._tileZoom&&u.contains(new R(h.x,h.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var l=r.min.y;l<=r.max.y;l++)for(var f=r.min.x;f<=r.max.x;f++){var p=new R(f,l);if(p.z=this._tileZoom,this._isValidTile(p)){var d=this._tiles[this._tileCoordsToKey(p)];d?d.current=!0:s.push(p)}}if(s.sort(function(t,e){return t.distanceTo(o)-e.distanceTo(o)}),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(f=0;f<s.length;f++)this._addTile(s[f],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),r=i.add(n),o=e.unproject(i,t.z),s=e.unproject(r,t.z);return[o,s]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new j(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new R(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(fe(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ye(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=h,t.onmousemove=h,et&&this.options.opacity<1&&xe(t,this.options.opacity),rt&&!ot&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&C(o(this._tileReady,this,t,null,r)),Ee(r,n),this._tiles[i]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);n=this._tiles[i],n&&(n.loaded=+new Date,this._map._fadeAnimated?(xe(n.el,0),I(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ye(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new R(this._wrapX?c(t.x,this._wrapX):t.x,this._wrapY?c(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new F(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Di(t){return new Ri(t)}var ki=Ri.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,e=d(this,e),e.detectRetina&&It&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),rt||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return De(n,"load",o(this._tileOnLoad,this,e,n)),De(n,"error",o(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:It?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e["y"]=n),e["-y"]=n}return y(this._url,i(e,this.options))},_tileOnLoad:function(t,e){et?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,i=this.options.zoomOffset;return n&&(t=e-t),t+i},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=h,e.onerror=h,e.complete||(e.src=b,fe(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return at||e.el.setAttribute("src",b),Ri.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==b))return Ri.prototype._tileReady.call(this,t,e,n)}});function Fi(t,e){return new ki(t,e)}var zi=ki.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var r in e)r in this.options||(n[r]=e[r]);e=d(this,e);var o=e.detectRetina&&It?2:1,s=this.getTileSize();n.width=s.x*o,n.height=s.y*o,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ki.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=z(n.project(e[0]),n.project(e[1])),r=i.min,o=i.max,s=(this._wmsVersion>=1.3&&this._crs===qn?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),a=ki.prototype.getTileUrl.call(this,t);return a+g(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function ji(t,e){return new zi(t,e)}ki.WMS=zi,Fi.wms=ji;var Bi=Vn.extend({options:{padding:.1,tolerance:0},initialize:function(t){d(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ye(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=Ce(this._container),r=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=this._map.project(t,e),a=s.subtract(o),u=r.multiplyBy(-n).add(i).add(r).subtract(a);_t?Se(this._container,u,n):Ee(this._container,u)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new F(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Gi=Bi.extend({getEvents:function(){var t=Bi.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Bi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");De(t,"mousemove",u(this._onMouseMove,32,this),this),De(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),De(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){I(this._redrawRequest),delete this._ctx,fe(this._container),Fe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;for(var e in this._redrawBounds=null,this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Bi.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=It?2:1;Ee(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",It&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Bi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;r.push(e)}t.options._dashArray=r}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new F,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,r,o,s=t._parts,a=s.length,u=this._ctx;if(a){for(u.beginPath(),n=0;n<a;n++){for(i=0,r=s[n].length;i<r;i++)o=s[n][i],u[i?"lineTo":"moveTo"](o.x,o.y);e&&u.closePath()}this._fillStroke(u,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),r=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(e.x,e.y/r,i,0,2*Math.PI,!1),1!==r&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),r=this._drawFirst;r;r=r.next)e=r.layer,e.options.interactive&&e._containsPoint(i)&&!this._map._draggableMoved(e)&&(n=e);n&&(Xe(t),this._fireEvent([n],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(_e(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,e){for(var n,i,r=this._drawFirst;r;r=r.next)n=r.layer,n.options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(ye(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function qi(t){return Lt?new Gi(t):null}var Ui=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Vi={_initContainer:function(){this._container=le("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Bi.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Ui("shape");ye(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Ui("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;fe(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,r=t._container;r.stroked=!!i.stroke,r.filled=!!i.fill,i.stroke?(e||(e=t._stroke=Ui("stroke")),r.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=_(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(r.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=Ui("fill")),r.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(r.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){de(t._container)},_bringToBack:function(t){ge(t._container)}},Zi=Tt?Ui:K,Hi=Bi.extend({getEvents:function(){var t=Bi.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=Zi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Zi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){fe(this._container),Fe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){Bi.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Ee(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Zi("path");t.options.className&&ye(e,t.options.className),t.options.interactive&&ye(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){fe(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i=Math.max(Math.round(t._radiusY),1)||n,r="a"+n+","+i+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){de(t._path)},_bringToBack:function(t){ge(t._path)}});function $i(t){return Ot||Tt?new Hi(t):null}Tt&&Hi.include(Vi),nn.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&qi(t)||$i(t)}});var Yi=ui.extend({initialize:function(t,e){ui.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=B(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Wi(t,e){return new Yi(t,e)}Hi.create=Zi,Hi.pointsToPath=J,hi.geometryToLayer=li,hi.coordsToLatLng=fi,hi.coordsToLatLngs=pi,hi.latLngToCoords=di,hi.latLngsToCoords=gi,hi.getFeature=mi,hi.asFeature=yi,nn.mergeOptions({boxZoom:!0});var Xi=gn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){De(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Fe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){fe(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),ee(),Le(),this._startPoint=this._map.mouseEventToContainerPoint(t),De(document,{contextmenu:Ve,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=le("div","leaflet-zoom-box",this._container),ye(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new F(this._point,this._startPoint),n=e.getSize();Ee(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(fe(this._box),_e(this._container,"leaflet-crosshair")),ne(),Oe(),Fe(document,{contextmenu:Ve,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new j(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});nn.addInitHook("addHandler","boxZoom",Xi),nn.mergeOptions({doubleClickZoom:!0});var Ki=gn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,r=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});nn.addInitHook("addHandler","doubleClickZoom",Ki),nn.mergeOptions({dragging:!0,inertia:!ot,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ji=gn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new xn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ye(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){_e(this._map._container,"leaflet-grab"),_e(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=B(this._map.options.maxBounds);this._offsetLimit=z(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,r=(i-e+n)%t+e-n,o=(i+e+n)%t-e-n,s=Math.abs(r+n)<Math.abs(o+n)?r:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=r.multiplyBy(s/o),u=a.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,u),h=a.multiplyBy(c/u),l=c/(n.inertiaDeceleration*s),f=h.multiplyBy(-l/2).round();f.x||f.y?(f=e._limitOffset(f,e.options.maxBounds),C(function(){e.panBy(f,{duration:l,easeLinearity:s,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});nn.addInitHook("addHandler","dragging",Ji),nn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Qi=gn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),De(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Fe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},r=this.keyCodes;for(e=0,n=r.left.length;e<n;e++)i[r.left[e]]=[-1*t,0];for(e=0,n=r.right.length;e<n;e++)i[r.right[e]]=[t,0];for(e=0,n=r.down.length;e<n;e++)i[r.down[e]]=[0,t];for(e=0,n=r.up.length;e<n;e++)i[r.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},r=this.keyCodes;for(e=0,n=r.zoomIn.length;e<n;e++)i[r.zoomIn[e]]=t;for(e=0,n=r.zoomOut.length;e<n;e++)i[r.zoomOut[e]]=-t},_addHooks:function(){De(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Fe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys)i._panAnim&&i._panAnim._inProgress||(e=this._panKeys[n],t.shiftKey&&(e=k(e).multiplyBy(3)),i.panBy(e),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds));else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}Ve(t)}}});nn.addInitHook("addHandler","keyboard",Qi),nn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var tr=gn.extend({addHooks:function(){De(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Fe(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=$e(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),i),Ve(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,o=n?Math.ceil(r/n)*n:r,s=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});nn.addInitHook("addHandler","scrollWheelZoom",tr),nn.mergeOptions({tap:!0,tapTolerance:15});var er=gn.extend({addHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Fe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ue(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new R(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&ye(n,"leaflet-active"),this._holdTimeout=setTimeout(o(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),this._simulateEvent("mousedown",e),De(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Fe(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&_e(n,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new R(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var n=document.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}});St&&!Mt&&nn.addInitHook("addHandler","tap",er),nn.mergeOptions({touchZoom:St&&!ot,bounceAtZoomLimits:!0});var nr=gn.extend({addHooks:function(){ye(this._map._container,"leaflet-touch-zoom"),De(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){_e(this._map._container,"leaflet-touch-zoom"),Fe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),De(document,"touchmove",this._onTouchMove,this),De(document,"touchend",this._onTouchEnd,this),Ue(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var s=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),I(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=C(a,this,!0),Ue(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,I(this._animRequest),Fe(document,"touchmove",this._onTouchMove),Fe(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});nn.addInitHook("addHandler","touchZoom",nr),nn.BoxZoom=Xi,nn.DoubleClickZoom=Ki,nn.Drag=Ji,nn.Keyboard=Qi,nn.ScrollWheelZoom=tr,nn.Tap=er,nn.TouchZoom=nr,Object.freeze=n,t.version=e,t.Control=on,t.control=sn,t.Browser=Nt,t.Evented=A,t.Mixin=yn,t.Util=O,t.Class=T,t.Handler=gn,t.extend=i,t.bind=o,t.stamp=a,t.setOptions=d,t.DomEvent=tn,t.DomUtil=Re,t.PosAnimation=en,t.Draggable=xn,t.LineUtil=Dn,t.PolyUtil=Fn,t.Point=R,t.point=k,t.Bounds=F,t.bounds=z,t.Transformation=$,t.transformation=Y,t.Projection=Bn,t.LatLng=G,t.latLng=q,t.LatLngBounds=j,t.latLngBounds=B,t.CRS=U,t.GeoJSON=hi,t.geoJSON=vi,t.geoJson=bi,t.Layer=Vn,t.LayerGroup=Zn,t.layerGroup=Hn,t.FeatureGroup=$n,t.featureGroup=Yn,t.ImageOverlay=xi,t.imageOverlay=wi,t.VideoOverlay=Mi,t.videoOverlay=Si,t.SVGOverlay=Ei,t.svgOverlay=Ci,t.DivOverlay=Ii,t.Popup=Li,t.popup=Oi,t.Tooltip=Ti,t.tooltip=Pi,t.Icon=Wn,t.icon=Xn,t.DivIcon=Ni,t.divIcon=Ai,t.Marker=Qn,t.marker=ti,t.TileLayer=ki,t.tileLayer=Fi,t.GridLayer=Ri,t.gridLayer=Di,t.SVG=Hi,t.svg=$i,t.Renderer=Bi,t.Canvas=Gi,t.canvas=qi,t.Path=ei,t.CircleMarker=ni,t.circleMarker=ii,t.Circle=ri,t.circle=oi,t.Polyline=si,t.polyline=ai,t.Polygon=ui,t.polygon=ci,t.Rectangle=Yi,t.rectangle=Wi,t.Map=nn,t.map=rn;var ir=window.L;t.noConflict=function(){return window.L=ir,this},window.L=t})},e11e2:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e13a:function(t,e,n){var i=n("e785");function r(t,e){var n=i(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}t.exports=r},e1ca:function(t,e,n){var i=n("7a83");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},e265:function(t,e,n){t.exports=n("ed33")},e2ff:function(t,e,n){var i=n("8946");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},e3e1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="fas",r="times",o=352,s=512,a=[],u="f00d",c="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z";e.definition={prefix:i,iconName:r,icon:[o,s,a,u,c]},e.faTimes=e.definition,e.prefix=i,e.iconName=r,e.width=o,e.height=s,e.ligatures=a,e.unicode=u,e.svgPathData=c},e4ae:function(t,e,n){var i=n("f772");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},e51d:function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate(),r=new Date(0);return r.setFullYear(e,n,i-1),r.setHours(23,59,59,999),r}t.exports=n},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e620:function(t,e,n){var i=n("c6ae");function r(t){return i(new Date,t)}t.exports=r},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6f3:function(t,e,n){var i=n("07e3"),r=n("36c3"),o=n("5b4e")(!1),s=n("5559")("IE_PROTO");t.exports=function(t,e){var n,a=r(t),u=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);while(e.length>u)i(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},e73d:function(t,e,n){var i=n("c8d5"),r=n("81fc");function o(t,e){var n=i(t),o=Number(e),s=r(n)-o;return n.setDate(n.getDate()-7*s),n}t.exports=o},e785:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()-r.getTime()}t.exports=r},e830:function(t,e,n){var i=n("90e5");function r(){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["AM","PM"],u=["am","pm"],c=["a.m.","p.m."],h={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return r[t.getDay()]},dddd:function(t){return s[t.getDay()]},A:function(t){return t.getHours()/12>=1?a[1]:a[0]},a:function(t){return t.getHours()/12>=1?u[1]:u[0]},aa:function(t){return t.getHours()/12>=1?c[1]:c[0]}},l=["M","D","DDD","d","Q","W"];return l.forEach(function(t){h[t+"o"]=function(e,n){return o(n[t](e))}}),{formatters:h,formattingTokensRegExp:i(h)}}function o(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}t.exports=r},e96b:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setSeconds(0,0),e}t.exports=r},eaa5:function(t,e,n){var i=n("c8d5");function r(t,e,n,r){var o=i(t).getTime(),s=i(e).getTime(),a=i(n).getTime(),u=i(r).getTime();if(o>s||a>u)throw new Error("The start of the range cannot be after the end of the range");return o<u&&a<s}t.exports=r},ead6:function(t,e,n){var i=n("f772"),r=n("e4ae"),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n("d864")(Function.call,n("bf0b").f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(r){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},ebd6:function(t,e,n){var i=n("cb7c"),r=n("d8e8"),o=n("2b4c")("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||void 0==(n=i(s)[o])?e:r(n)}},ebfd:function(t,e,n){var i=n("62a0")("meta"),r=n("f772"),o=n("07e3"),s=n("d9f6").f,a=0,u=Object.isExtensible||function(){return!0},c=!n("294c")(function(){return u(Object.preventExtensions({}))}),h=function(t){s(t,i,{value:{i:"O"+ ++a,w:{}}})},l=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!u(t))return"F";if(!e)return"E";h(t)}return t[i].i},f=function(t,e){if(!o(t,i)){if(!u(t))return!0;if(!e)return!1;h(t)}return t[i].w},p=function(t){return c&&d.NEED&&u(t)&&!o(t,i)&&h(t),t},d=t.exports={KEY:i,NEED:!1,fastKey:l,getWeak:f,onFreeze:p}},ec1f:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t).getTime(),r=Number(e);return new Date(n+r)}t.exports=r},eca2:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}t.exports=r},ecee:function(t,e,n){"use strict";(function(t){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){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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,i.key,i)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){a(t,e,n[e])})}return t}function c(t,e){return f(t)||d(t,e)||m()}function h(t){return l(t)||p(t)||g()}function l(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function f(t){if(Array.isArray(t))return t}function p(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function d(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),e&&n.length===e)break}catch(u){r=!0,o=u}finally{try{i||null==a["return"]||a["return"]()}finally{if(r)throw o}}return n}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(e,"c",function(){return Tn}),n.d(e,"a",function(){return ot}),n.d(e,"f",function(){return Pn}),n.d(e,"d",function(){return En}),n.d(e,"b",function(){return Ln}),n.d(e,"e",function(){return On});var y=function(){},_={},v={},b=null,x={mark:y,measure:y};try{"undefined"!==typeof window&&(_=window),"undefined"!==typeof document&&(v=document),"undefined"!==typeof MutationObserver&&(b=MutationObserver),"undefined"!==typeof performance&&(x=performance)}catch(kn){}var w=_.navigator||{},M=w.userAgent,S=void 0===M?"":M,E=_,C=v,I=b,L=x,O=(E.document,!!C.documentElement&&!!C.head&&"function"===typeof C.addEventListener&&"function"===typeof C.createElement),T=~S.indexOf("MSIE")||~S.indexOf("Trident/"),P="___FONT_AWESOME___",N=16,A="fa",R="svg-inline--fa",D="data-fa-i2svg",k="data-fa-pseudo-element",F="data-fa-pseudo-element-pending",z="data-prefix",j="data-icon",B="fontawesome-i2svg",G="async",q=["HTML","HEAD","STYLE","SCRIPT"],U=function(){try{return!0}catch(kn){return!1}}(),V={fas:"solid",far:"regular",fal:"light",fab:"brands",fa:"solid"},Z={solid:"fas",regular:"far",light:"fal",brands:"fab"},H="fa-layers-text",$=/Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/,Y={900:"fas",400:"far",normal:"far",300:"fal"},W=[1,2,3,4,5,6,7,8,9,10],X=W.concat([11,12,13,14,15,16,17,18,19,20]),K=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],J=["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(W.map(function(t){return"".concat(t,"x")})).concat(X.map(function(t){return"w-".concat(t)})),Q=E.FontAwesomeConfig||{};function tt(t){var e=C.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function et(t){return""===t||"false"!==t&&("true"===t||t)}if(C&&"function"===typeof C.querySelector){var nt=[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];nt.forEach(function(t){var e=c(t,2),n=e[0],i=e[1],r=et(tt(n));void 0!==r&&null!==r&&(Q[i]=r)})}var it={familyPrefix:A,replacementClass:R,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},rt=u({},it,Q);rt.autoReplaceSvg||(rt.observeMutations=!1);var ot=u({},rt);E.FontAwesomeConfig=ot;var st=E||{};st[P]||(st[P]={}),st[P].styles||(st[P].styles={}),st[P].hooks||(st[P].hooks={}),st[P].shims||(st[P].shims=[]);var at=st[P],ut=[],ct=function t(){C.removeEventListener("DOMContentLoaded",t),ht=1,ut.map(function(t){return t()})},ht=!1;function lt(t){O&&(ht?setTimeout(t,0):ut.push(t))}O&&(ht=(C.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(C.readyState),ht||C.addEventListener("DOMContentLoaded",ct));var ft,pt="pending",dt="settled",gt="fulfilled",mt="rejected",yt=function(){},_t="undefined"!==typeof t&&"undefined"!==typeof t.process&&"function"===typeof t.process.emit,vt="undefined"===typeof setImmediate?setTimeout:setImmediate,bt=[];function xt(){for(var t=0;t<bt.length;t++)bt[t][0](bt[t][1]);bt=[],ft=!1}function wt(t,e){bt.push([t,e]),ft||(ft=!0,vt(xt,0))}function Mt(t,e){function n(t){Ct(e,t)}function i(t){Lt(e,t)}try{t(n,i)}catch(kn){i(kn)}}function St(t){var e=t.owner,n=e._state,i=e._data,r=t[n],o=t.then;if("function"===typeof r){n=gt;try{i=r(i)}catch(kn){Lt(o,kn)}}Et(o,i)||(n===gt&&Ct(o,i),n===mt&&Lt(o,i))}function Et(t,e){var n;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"===typeof e||"object"===i(e))){var r=e.then;if("function"===typeof r)return r.call(e,function(i){n||(n=!0,e===i?It(t,i):Ct(t,i))},function(e){n||(n=!0,Lt(t,e))}),!0}}catch(kn){return n||Lt(t,kn),!0}return!1}function Ct(t,e){t!==e&&Et(t,e)||It(t,e)}function It(t,e){t._state===pt&&(t._state=dt,t._data=e,wt(Tt,t))}function Lt(t,e){t._state===pt&&(t._state=dt,t._data=e,wt(Pt,t))}function Ot(t){t._then=t._then.forEach(St)}function Tt(t){t._state=gt,Ot(t)}function Pt(e){e._state=mt,Ot(e),!e._handled&&_t&&t.process.emit("unhandledRejection",e._data,e)}function Nt(e){t.process.emit("rejectionHandled",e)}function At(t){if("function"!==typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof At===!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],Mt(t,this)}At.prototype={constructor:At,_state:pt,_then:null,_data:void 0,_handled:!1,then:function(t,e){var n={owner:this,then:new this.constructor(yt),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,this._state===mt&&_t&&wt(Nt,this)),this._state===gt||this._state===mt?wt(St,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},At.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new At(function(e,n){var i=[],r=0;function o(t){return r++,function(n){i[t]=n,--r||e(i)}}for(var s,a=0;a<t.length;a++)s=t[a],s&&"function"===typeof s.then?s.then(o(a),n):i[a]=s;r||e(i)})},At.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new At(function(e,n){for(var i,r=0;r<t.length;r++)i=t[r],i&&"function"===typeof i.then?i.then(e,n):e(i)})},At.resolve=function(t){return t&&"object"===i(t)&&t.constructor===At?t:new At(function(e){e(t)})},At.reject=function(t){return new At(function(e,n){n(t)})};var Rt="function"===typeof Promise?Promise:At,Dt=N,kt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ft(t){return~J.indexOf(t)}function zt(t){if(t&&O){var e=C.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=C.head.childNodes,i=null,r=n.length-1;r>-1;r--){var o=n[r],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(i=o)}return C.head.insertBefore(e,i),t}}var jt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Bt(){var t=12,e="";while(t-- >0)e+=jt[62*Math.random()|0];return e}function Gt(t){for(var e=[],n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function qt(t){return t.classList?Gt(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Ut(t,e){var n=e.split("-"),i=n[0],r=n.slice(1).join("-");return i!==t||""===r||Ft(r)?null:r}function Vt(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Zt(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(Vt(t[n]),'" ')},"").trim()}function Ht(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n],";")},"")}function $t(t){return t.size!==kt.size||t.x!==kt.x||t.y!==kt.y||t.rotate!==kt.rotate||t.flipX||t.flipY}function Yt(t){var e=t.transform,n=t.containerWidth,i=t.iconWidth,r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*e.x,", ").concat(32*e.y,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),a="rotate(".concat(e.rotate," 0 0)"),u={transform:"".concat(o," ").concat(s," ").concat(a)},c={transform:"translate(".concat(i/2*-1," -256)")};return{outer:r,inner:u,path:c}}function Wt(t){var e=t.transform,n=t.width,i=void 0===n?N:n,r=t.height,o=void 0===r?N:r,s=t.startCentered,a=void 0!==s&&s,u="";return u+=a&&T?"translate(".concat(e.x/Dt-i/2,"em, ").concat(e.y/Dt-o/2,"em) "):a?"translate(calc(-50% + ".concat(e.x/Dt,"em), calc(-50% + ").concat(e.y/Dt,"em)) "):"translate(".concat(e.x/Dt,"em, ").concat(e.y/Dt,"em) "),u+="scale(".concat(e.size/Dt*(e.flipX?-1:1),", ").concat(e.size/Dt*(e.flipY?-1:1),") "),u+="rotate(".concat(e.rotate,"deg) "),u}var Xt={x:0,y:0,width:"100%",height:"100%"};function Kt(t){var e=t.children,n=t.attributes,i=t.main,r=t.mask,o=t.transform,s=i.width,a=i.icon,c=r.width,h=r.icon,l=Yt({transform:o,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:u({},Xt,{fill:"white"})},p={tag:"g",attributes:u({},l.inner),children:[{tag:"path",attributes:u({},a.attributes,l.path,{fill:"black"})}]},d={tag:"g",attributes:u({},l.outer),children:[p]},g="mask-".concat(Bt()),m="clip-".concat(Bt()),y={tag:"mask",attributes:u({},Xt,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,d]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:m},children:[h]},y]};return e.push(_,{tag:"rect",attributes:u({fill:"currentColor","clip-path":"url(#".concat(m,")"),mask:"url(#".concat(g,")")},Xt)}),{children:e,attributes:n}}function Jt(t){var e=t.children,n=t.attributes,i=t.main,r=t.transform,o=t.styles,s=Ht(o);if(s.length>0&&(n["style"]=s),$t(r)){var a=Yt({transform:r,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:u({},a.outer),children:[{tag:"g",attributes:u({},a.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:u({},i.icon.attributes,a.path)}]}]})}else e.push(i.icon);return{children:e,attributes:n}}function Qt(t){var e=t.children,n=t.main,i=t.mask,r=t.attributes,o=t.styles,s=t.transform;if($t(s)&&n.found&&!i.found){var a=n.width,c=n.height,h={x:a/c/2,y:.5};r["style"]=Ht(u({},o,{"transform-origin":"".concat(h.x+s.x/16,"em ").concat(h.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}function te(t){var e=t.prefix,n=t.iconName,i=t.children,r=t.attributes,o=t.symbol,s=!0===o?"".concat(e,"-").concat(ot.familyPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:u({},r,{id:s}),children:i}]}]}function ee(t){var e=t.icons,n=e.main,i=e.mask,r=t.prefix,o=t.iconName,s=t.transform,a=t.symbol,c=t.title,h=t.extra,l=t.watchable,f=void 0!==l&&l,p=i.found?i:n,d=p.width,g=p.height,m="fa-w-".concat(Math.ceil(d/g*16)),y=[ot.replacementClass,o?"".concat(ot.familyPrefix,"-").concat(o):"",m].filter(function(t){return-1===h.classes.indexOf(t)}).concat(h.classes).join(" "),_={children:[],attributes:u({},h.attributes,{"data-prefix":r,"data-icon":o,class:y,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(g)})};f&&(_.attributes[D]=""),c&&_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(Bt())},children:[c]});var v=u({},_,{prefix:r,iconName:o,main:n,mask:i,transform:s,symbol:a,styles:h.styles}),b=i.found&&n.found?Kt(v):Jt(v),x=b.children,w=b.attributes;return v.children=x,v.attributes=w,a?te(v):Qt(v)}function ne(t){var e=t.content,n=t.width,i=t.height,r=t.transform,o=t.title,s=t.extra,a=t.watchable,c=void 0!==a&&a,h=u({},s.attributes,o?{title:o}:{},{class:s.classes.join(" ")});c&&(h[D]="");var l=u({},s.styles);$t(r)&&(l["transform"]=Wt({transform:r,startCentered:!0,width:n,height:i}),l["-webkit-transform"]=l["transform"]);var f=Ht(l);f.length>0&&(h["style"]=f);var p=[];return p.push({tag:"span",attributes:h,children:[e]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function ie(t){var e=t.content,n=t.title,i=t.extra,r=u({},i.attributes,n?{title:n}:{},{class:i.classes.join(" ")}),o=Ht(i.styles);o.length>0&&(r["style"]=o);var s=[];return s.push({tag:"span",attributes:r,children:[e]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var re=function(){},oe=ot.measurePerformance&&L&&L.mark&&L.measure?L:{mark:re,measure:re},se='FA "5.8.2"',ae=function(t){return oe.mark("".concat(se," ").concat(t," begins")),function(){return ue(t)}},ue=function(t){oe.mark("".concat(se," ").concat(t," ends")),oe.measure("".concat(se," ").concat(t),"".concat(se," ").concat(t," begins"),"".concat(se," ").concat(t," ends"))},ce={begin:ae,end:ue},he=function(t,e){return function(n,i,r,o){return t.call(e,n,i,r,o)}},le=function(t,e,n,i){var r,o,s,a=Object.keys(t),u=a.length,c=void 0!==i?he(e,i):e;for(void 0===n?(r=1,s=t[a[0]]):(r=0,s=n);r<u;r++)o=a[r],s=c(s,t[o],o,t);return s};function fe(t){for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n).toString(16);e+=("000"+i).slice(-4)}return e}function pe(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,r=void 0!==i&&i,o=Object.keys(e).reduce(function(t,n){var i=e[n],r=!!i.icon;return r?t[i.iconName]=i.icon:t[n]=i,t},{});"function"!==typeof at.hooks.addPack||r?at.styles[t]=u({},at.styles[t]||{},o):at.hooks.addPack(t,o),"fas"===t&&pe("fa",e)}var de=at.styles,ge=at.shims,me={},ye={},_e={},ve=function(){var t=function(t){return le(de,function(e,n,i){return e[i]=le(n,t,{}),e},{})};me=t(function(t,e,n){return e[3]&&(t[e[3]]=n),t}),ye=t(function(t,e,n){var i=e[2];return t[n]=n,i.forEach(function(e){t[e]=n}),t});var e="far"in de;_e=le(ge,function(t,n){var i=n[0],r=n[1],o=n[2];return"far"!==r||e||(r="fas"),t[i]={prefix:r,iconName:o},t},{})};function be(t,e){return(me[t]||{})[e]}function xe(t,e){return(ye[t]||{})[e]}function we(t){return _e[t]||{prefix:null,iconName:null}}ve();var Me=at.styles,Se=function(){return{prefix:null,iconName:null,rest:[]}};function Ee(t){return t.reduce(function(t,e){var n=Ut(ot.familyPrefix,e);if(Me[e])t.prefix=e;else if(ot.autoFetchSvg&&["fas","far","fal","fab","fa"].indexOf(e)>-1)t.prefix=e;else if(n){var i="fa"===t.prefix?we(n):{};t.iconName=i.iconName||n,t.prefix=i.prefix||t.prefix}else e!==ot.replacementClass&&0!==e.indexOf("fa-w-")&&t.rest.push(e);return t},Se())}function Ce(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function Ie(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,o=void 0===r?[]:r;return"string"===typeof t?Vt(t):"<".concat(e," ").concat(Zt(i),">").concat(o.map(Ie).join(""),"</").concat(e,">")}var Le=function(){};function Oe(t){var e=t.getAttribute?t.getAttribute(D):null;return"string"===typeof e}function Te(){if(!0===ot.autoReplaceSvg)return Pe.replace;var t=Pe[ot.autoReplaceSvg];return t||Pe.replace}var Pe={replace:function(t){var e=t[0],n=t[1],i=n.map(function(t){return Ie(t)}).join("\n");if(e.parentNode&&e.outerHTML)e.outerHTML=i+(ot.keepOriginalSource&&"svg"!==e.tagName.toLowerCase()?"\x3c!-- ".concat(e.outerHTML," --\x3e"):"");else if(e.parentNode){var r=document.createElement("span");e.parentNode.replaceChild(r,e),r.outerHTML=i}},nest:function(t){var e=t[0],n=t[1];if(~qt(e).indexOf(ot.replacementClass))return Pe.replace(t);var i=new RegExp("".concat(ot.familyPrefix,"-.*"));delete n[0].attributes.style;var r=n[0].attributes.class.split(" ").reduce(function(t,e){return e===ot.replacementClass||e.match(i)?t.toSvg.push(e):t.toNode.push(e),t},{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" ");var o=n.map(function(t){return Ie(t)}).join("\n");e.setAttribute("class",r.toNode.join(" ")),e.setAttribute(D,""),e.innerHTML=o}};function Ne(t){t()}function Ae(t,e){var n="function"===typeof e?e:Le;if(0===t.length)n();else{var i=Ne;ot.mutateApproach===G&&(i=E.requestAnimationFrame||Ne),i(function(){var e=Te(),i=ce.begin("mutate");t.map(e),i(),n()})}}var Re=!1;function De(){Re=!0}function ke(){Re=!1}var Fe=null;function ze(t){if(I&&ot.observeMutations){var e=t.treeCallback,n=t.nodeCallback,i=t.pseudoElementsCallback,r=t.observeMutationsRoot,o=void 0===r?C:r;Fe=new I(function(t){Re||Gt(t).forEach(function(t){if("childList"===t.type&&t.addedNodes.length>0&&!Oe(t.addedNodes[0])&&(ot.searchPseudoElements&&i(t.target),e(t.target)),"attributes"===t.type&&t.target.parentNode&&ot.searchPseudoElements&&i(t.target.parentNode),"attributes"===t.type&&Oe(t.target)&&~K.indexOf(t.attributeName))if("class"===t.attributeName){var r=Ee(qt(t.target)),o=r.prefix,s=r.iconName;o&&t.target.setAttribute("data-prefix",o),s&&t.target.setAttribute("data-icon",s)}else n(t.target)})}),O&&Fe.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function je(){Fe&&Fe.disconnect()}function Be(t){var e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce(function(t,e){var n=e.split(":"),i=n[0],r=n.slice(1);return i&&r.length>0&&(t[i]=r.join(":").trim()),t},{})),n}function Ge(t){var e=t.getAttribute("data-prefix"),n=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",r=Ee(qt(t));return e&&n&&(r.prefix=e,r.iconName=n),r.prefix&&i.length>1?r.iconName=xe(r.prefix,t.innerText):r.prefix&&1===i.length&&(r.iconName=be(r.prefix,fe(t.innerText))),r}var qe=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var n=e.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r;break}return t},e):e};function Ue(t){return qe(t.getAttribute("data-fa-transform"))}function Ve(t){var e=t.getAttribute("data-fa-symbol");return null!==e&&(""===e||e)}function Ze(t){var e=Gt(t.attributes).reduce(function(t,e){return"class"!==t.name&&"style"!==t.name&&(t[e.name]=e.value),t},{}),n=t.getAttribute("title");return ot.autoA11y&&(n?e["aria-labelledby"]="".concat(ot.replacementClass,"-title-").concat(Bt()):(e["aria-hidden"]="true",e["focusable"]="false")),e}function He(t){var e=t.getAttribute("data-fa-mask");return e?Ee(e.split(" ").map(function(t){return t.trim()})):Se()}function $e(){return{iconName:null,title:null,prefix:null,transform:kt,symbol:!1,mask:null,extra:{classes:[],styles:{},attributes:{}}}}function Ye(t){var e=Ge(t),n=e.iconName,i=e.prefix,r=e.rest,o=Be(t),s=Ue(t),a=Ve(t),u=Ze(t),c=He(t);return{iconName:n,title:t.getAttribute("title"),prefix:i,transform:s,symbol:a,mask:c,extra:{classes:r,styles:o,attributes:u}}}function We(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}We.prototype=Object.create(Error.prototype),We.prototype.constructor=We;var Xe={fill:"currentColor"},Ke={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},Je={tag:"path",attributes:u({},Xe,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},Qe=u({},Ke,{attributeName:"opacity"}),tn={tag:"circle",attributes:u({},Xe,{cx:"256",cy:"364",r:"28"}),children:[{tag:"animate",attributes:u({},Ke,{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:u({},Qe,{values:"1;0;1;1;0;1;"})}]},en={tag:"path",attributes:u({},Xe,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:[{tag:"animate",attributes:u({},Qe,{values:"1;0;0;0;0;1;"})}]},nn={tag:"path",attributes:u({},Xe,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:u({},Qe,{values:"0;0;1;1;0;0;"})}]},rn={tag:"g",children:[Je,tn,en,nn]},on=at.styles;function sn(t,e){return new Rt(function(n,i){var r={found:!1,width:512,height:512,icon:rn};if(t&&e&&on[e]&&on[e][t]){var o=on[e][t],s=o[0],a=o[1],u=o.slice(4);return r={found:!0,width:s,height:a,icon:{tag:"path",attributes:{fill:"currentColor",d:u[0]}}},n(r)}t&&e&&!ot.showMissingIcons?i(new We("Icon is missing for prefix ".concat(e," with icon name ").concat(t))):n(r)})}var an=at.styles;function un(t,e){var n=e.iconName,i=e.title,r=e.prefix,o=e.transform,s=e.symbol,a=e.mask,u=e.extra;return new Rt(function(e,h){Rt.all([sn(n,r),sn(a.iconName,a.prefix)]).then(function(a){var h=c(a,2),l=h[0],f=h[1];e([t,ee({icons:{main:l,mask:f},prefix:r,iconName:n,transform:o,symbol:s,mask:f,title:i,extra:u,watchable:!0})])})})}function cn(t,e){var n=e.title,i=e.transform,r=e.extra,o=null,s=null;if(T){var a=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();o=u.width/a,s=u.height/a}return ot.autoA11y&&!n&&(r.attributes["aria-hidden"]="true"),Rt.resolve([t,ne({content:t.innerHTML,width:o,height:s,transform:i,title:n,extra:r,watchable:!0})])}function hn(t){var e=Ye(t);return~e.extra.classes.indexOf(H)?cn(t,e):un(t,e)}function ln(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(O){var n=C.documentElement.classList,i=function(t){return n.add("".concat(B,"-").concat(t))},r=function(t){return n.remove("".concat(B,"-").concat(t))},o=ot.autoFetchSvg?Object.keys(V):Object.keys(an),s=[".".concat(H,":not([").concat(D,"])")].concat(o.map(function(t){return".".concat(t,":not([").concat(D,"])")})).join(", ");if(0!==s.length){var a=[];try{a=Gt(t.querySelectorAll(s))}catch(kn){}if(a.length>0){i("pending"),r("complete");var u=ce.begin("onTree"),c=a.reduce(function(t,e){try{var n=hn(e);n&&t.push(n)}catch(kn){U||kn instanceof We&&console.error(kn)}return t},[]);return new Rt(function(t,n){Rt.all(c).then(function(n){Ae(n,function(){i("active"),i("complete"),r("pending"),"function"===typeof e&&e(),u(),t()})}).catch(function(){u(),n()})})}}}}function fn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;hn(t).then(function(t){t&&Ae([t],e)})}function pn(t,e){var n="".concat(F).concat(e.replace(":","-"));return new Rt(function(i,r){if(null!==t.getAttribute(n))return i();var o=Gt(t.children),s=o.filter(function(t){return t.getAttribute(k)===e})[0],a=E.getComputedStyle(t,e),c=a.getPropertyValue("font-family").match($),h=a.getPropertyValue("font-weight");if(s&&!c)return t.removeChild(s),i();if(c){var l=a.getPropertyValue("content"),f=~["Light","Regular","Solid","Brands"].indexOf(c[1])?Z[c[1].toLowerCase()]:Y[h],p=fe(3===l.length?l.substr(1,1):l),d=be(f,p),g=d;if(!d||s&&s.getAttribute(z)===f&&s.getAttribute(j)===g)i();else{t.setAttribute(n,g),s&&t.removeChild(s);var m=$e(),y=m.extra;y.attributes[k]=e,sn(d,f).then(function(r){var o=ee(u({},m,{icons:{main:r,mask:Se()},prefix:f,iconName:g,extra:y,watchable:!0})),s=C.createElement("svg");":before"===e?t.insertBefore(s,t.firstChild):t.appendChild(s),s.outerHTML=o.map(function(t){return Ie(t)}).join("\n"),t.removeAttribute(n),i()}).catch(r)}}else i()})}function dn(t){return Rt.all([pn(t,":before"),pn(t,":after")])}function gn(t){return t.parentNode!==document.head&&!~q.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(k)&&(!t.parentNode||"svg"!==t.parentNode.tagName)}function mn(t){if(O)return new Rt(function(e,n){var i=Gt(t.querySelectorAll("*")).filter(gn).map(dn),r=ce.begin("searchPseudoElements");De(),Rt.all(i).then(function(){r(),ke(),e()}).catch(function(){r(),ke(),n()})})}var yn='svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}';function _n(){var t=A,e=R,n=ot.familyPrefix,i=ot.replacementClass,r=yn;if(n!==t||i!==e){var o=new RegExp("\\.".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(e),"g");r=r.replace(o,".".concat(n,"-")).replace(s,".".concat(i))}return r}var vn=function(){function t(){r(this,t),this.definitions={}}return s(t,[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(function(e){t.definitions[e]=u({},t.definitions[e]||{},r[e]),pe(e,r[e]),ve()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map(function(e){var i=n[e],r=i.prefix,o=i.iconName,s=i.icon;t[r]||(t[r]={}),t[r][o]=s}),t}}]),t}();function bn(t){var e=t[0],n=t[1],i=t.slice(4);return{found:!0,width:e,height:n,icon:{tag:"path",attributes:{fill:"currentColor",d:i[0]}}}}function xn(){ot.autoAddCss&&!In&&(zt(_n()),In=!0)}function wn(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return Ie(t)})}}),Object.defineProperty(t,"node",{get:function(){if(O){var e=C.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function Mn(t){var e=t.prefix,n=void 0===e?"fa":e,i=t.iconName;if(i)return Ce(En.definitions,n,i)||Ce(at.styles,n,i)}function Sn(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(e||{}).icon?e:Mn(e||{}),r=n.mask;return r&&(r=(r||{}).icon?r:Mn(r||{})),t(i,u({},n,{mask:r}))}}var En=new vn,Cn=function(){ot.autoReplaceSvg=!1,ot.observeMutations=!1,je()},In=!1,Ln={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(O){xn();var e=t.node,n=void 0===e?C:e,i=t.callback,r=void 0===i?function(){}:i;return ot.searchPseudoElements&&mn(n),ln(n,r)}return Rt.reject("Operation requires a DOM of some kind.")},css:_n,insertCss:function(){In||(zt(_n()),In=!0)},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,n=t.observeMutationsRoot;!1===ot.autoReplaceSvg&&(ot.autoReplaceSvg=!0),ot.observeMutations=!0,lt(function(){Dn({autoReplaceSvgRoot:e}),ze({treeCallback:ln,nodeCallback:fn,pseudoElementsCallback:mn,observeMutationsRoot:n})})}},On={transform:function(t){return qe(t)}},Tn=Sn(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?kt:n,r=e.symbol,o=void 0!==r&&r,s=e.mask,a=void 0===s?null:s,c=e.title,h=void 0===c?null:c,l=e.classes,f=void 0===l?[]:l,p=e.attributes,d=void 0===p?{}:p,g=e.styles,m=void 0===g?{}:g;if(t){var y=t.prefix,_=t.iconName,v=t.icon;return wn(u({type:"icon"},t),function(){return xn(),ot.autoA11y&&(h?d["aria-labelledby"]="".concat(ot.replacementClass,"-title-").concat(Bt()):(d["aria-hidden"]="true",d["focusable"]="false")),ee({icons:{main:bn(v),mask:a?bn(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:_,transform:u({},kt,i),symbol:o,title:h,extra:{attributes:d,styles:m,classes:f}})})}}),Pn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?kt:n,r=e.title,o=void 0===r?null:r,s=e.classes,a=void 0===s?[]:s,c=e.attributes,l=void 0===c?{}:c,f=e.styles,p=void 0===f?{}:f;return wn({type:"text",content:t},function(){return xn(),ne({content:t,transform:u({},kt,i),title:o,extra:{attributes:l,styles:p,classes:["".concat(ot.familyPrefix,"-layers-text")].concat(h(a))}})})},Nn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.title,i=void 0===n?null:n,r=e.classes,o=void 0===r?[]:r,s=e.attributes,a=void 0===s?{}:s,u=e.styles,c=void 0===u?{}:u;return wn({type:"counter",content:t},function(){return xn(),ie({content:t.toString(),title:i,extra:{attributes:a,styles:c,classes:["".concat(ot.familyPrefix,"-layers-counter")].concat(h(o))}})})},An=function(t){return wn({type:"layer"},function(){xn();var e=[];return t(function(t){Array.isArray(t)?t.map(function(t){e=e.concat(t.abstract)}):e=e.concat(t.abstract)}),[{tag:"span",attributes:{class:"".concat(ot.familyPrefix,"-layers")},children:e}]})},Rn={noAuto:Cn,config:ot,dom:Ln,library:En,parse:On,findIconDefinition:Mn,icon:Tn,text:Pn,counter:Nn,layer:An,toHtml:Ie},Dn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,n=void 0===e?C:e;(Object.keys(at.styles).length>0||ot.autoFetchSvg)&&O&&ot.autoReplaceSvg&&Rn.dom.i2svg({node:n})}}).call(this,n("c8ba"))},ed33:function(t,e,n){n("014b"),t.exports=n("584a").Object.getOwnPropertySymbols},ee91:function(t,e,n){var i=n("3bc7");function r(t,e){var n=i(t,e)/7;return n>0?Math.floor(n):Math.ceil(n)}t.exports=r},effb:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:this.mapContainerClass},[n("div",{ref:"map",staticClass:"map",attrs:{id:"map"}},[n("div",[t._t("default")],2)])])},r=[],o=n("a745"),s=n.n(o);function a(t){if(s()(t))return t}var u=n("5d73"),c=n.n(u);function h(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=c()(t);!(i=(s=a.next()).done);i=!0)if(n.push(s.value),e&&n.length===e)break}catch(u){r=!0,o=u}finally{try{i||null==a["return"]||a["return"]()}finally{if(r)throw o}}return n}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function f(t,e){return a(t)||h(t,e)||l()}var p=n("a8db"),d=(n("6762"),n("2fdb"),n("ac4d"),n("8a81"),n("ac6a"),n("e11e")),g=n("76b3"),m={name:"Map_",props:["center","zoom","zoomControlPosition","minZoom","maxZoom"],mounted:function(){var t=this.$leafletElement=this.createLeafletElement();t.zoomControl.setPosition(this.$props.zoomControlPosition),this.$store.commit("setMap",{map:t}),this.setMapView(this.center),this.$nextTick(function(){t.attributionControl.setPrefix('<a target="_blank" href="//www.phila.gov/it/aboutus/units/Pages/GISServicesGroup.aspx">City of Philadelphia | CityGeo</a>')});var e=!0,n=!1,i=void 0;try{for(var r,o=this.$children[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var s=r.value;s.parentMounted(this,s.$props)}}catch(a){n=!0,i=a}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}Object(g["a"])(this,this.$leafletElement,this._events),this.$config.map.clickToIdentifyFeatures&&t.on("click",this.identifyFeatures)},watch:{center:function(t){this.setMapView(t)},zoom:function(t){t&&(this.$leafletElement.setZoom(t),this.$store.commit("setMapZoom",t))},mapBounds:function(t){this.setMapBounds(t)},fullScreenMapEnabled:function(){this.$leafletElement.invalidateSize()},webMapDisplayedLayers:function(t){var e=[],n=!0,i=!1,r=void 0;try{for(var o,s=this.intersectingFeatures[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value;e.push(a.feature.layerName)}}catch(l){i=!0,r=l}finally{try{n||null==s.return||s.return()}finally{if(i)throw r}}for(var u=0,c=e;u<c.length;u++){var h=c[u];if(!t.includes(h))return void this.$store.commit("setIntersectingFeatures",[])}}},computed:{mapContainerClass:function(){return this.$config.map.containerClass?this.$config.map.containerClass:"map-container"},fullScreenMapEnabled:function(){return this.$store.state.fullScreenMapEnabled},mapBounds:function(){return this.$store.state.map.bounds},webMapDisplayedLayers:function(){return this.$store.state.map.webMapDisplayedLayers},intersectingFeatures:function(){return this.$store.state.map.intersectingFeatures}},methods:{createLeafletElement:function(){var t=this.$props,e=(t.zoomControlPosition,Object(p["a"])(t,["zoomControlPosition"]));return new d["Map"](this.$refs.map,e)},childDidMount:function(t){t.addTo(this.$leafletElement)},setMapView:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.zoom;if(0!==e.length){var i=f(e,2),r=i[0],o=i[1],s=new d["LatLng"](o,r);this.$nextTick(function(){t.$leafletElement.setView(s,n)})}},setMapBounds:function(t){if(t._northEast){var e=this.$leafletElement;e.fitBounds([[t._northEast.lat,t._northEast.lng],[t._southWest.lat,t._southWest.lng]])}},identifyFeatures:function(t){var e,n=this.$leafletElement,i=new d["LatLngBounds"](t.latlng,t.latlng),r=[];for(var o in n._layers){var s=n._layers[o];if(s._layers)for(var a in s._layers){var u=s._layers[a];if(u.feature){e=u.feature.geometry.type;var c=void 0;"Polygon"===e||"MultiPolygon"===e?u.contains(t.latlng)&&this.checkForDuplicates(o,u,r):"LineString"===e?(c=u.getBounds(),c&&i.intersects(c)&&this.checkForDuplicates(o,u,r)):"Point"===e&&(c=new d["LatLngBounds"](u._latlng,u._latlng),c&&i.intersects(c)&&this.checkForDuplicates(o,u,r))}}}this.$store.commit("setPopupCoords",t.latlng),this.$store.commit("setIntersectingFeatures",r)},checkForDuplicates:function(t,e,n){for(var i=[],r=0;r<n.length;r++)i[r]=t+"_"+n[r].feature.id;i.includes(t+"_"+e.feature.id)||n.push(e)}}},y=m,_=(n("fdc8"),n("2877")),v=Object(_["a"])(y,i,r,!1,null,null,null);e["a"]=v.exports},f0a4:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default")],2)},r=[];function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=n("85f2"),a=n.n(s);function u(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),a()(t,i.key,i)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}var h=n("7618");function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t,e){return!e||"object"!==Object(h["a"])(e)&&"function"!==typeof e?l(t):e}var p=n("061b"),d=n.n(p),g=n("4d16"),m=n.n(g);function y(t){return y=m.a?d.a:function(t){return t.__proto__||d()(t)},y(t)}var _=n("4aa6"),v=n.n(_);function b(t,e){return b=m.a||function(t,e){return t.__proto__=e,t},b(t,e)}function x(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=v()(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}var w=n("e11e"),M=(n("f33c"),{name:"Control",props:["position"],methods:{createLeafletElement:function(t){var e=function(e){function n(t,e){var i;return o(this,n),i=f(this,y(n).call(this,e)),i.el=t,i}return x(n,e),c(n,[{key:"onAdd",value:function(){var e=this.el;return t.DomEvent.disableClickPropagation(e),t.DomEvent.disableScrollPropagation(e),e}}]),n}(t.Control),n=this.$el;return new e(n,{position:this.position})},parentMounted:function(t,e){var n=this.createLeafletElement(w);this.$leafletElement=n;var i=t.$leafletElement;n.addTo(i)}}}),S=M,E=n("2877"),C=Object(E["a"])(S,i,r,!1,null,null,null);e["a"]=C.exports},f110:function(t,e,n){"use strict";e["a"]={name:"cyclomediaMixin",computed:{cyclomediaActive(){return this.$store.state.cyclomedia.active},cyclomediaRecordings(){return this.$store.state.cyclomedia.recordings}},methods:{handleCyclomediaButtonClick(){this.updateCyclomediaRecordings()},handleCyclomediaRecordingClick(t){const e=t.latlng;console.log("handleCyclomediaRecordingClick is running, latlng:",e),this.$store.commit("setCyclomediaLatLngFromMap",e)},updateCyclomediaRecordings(){const t=this.$store.state.map.map,e=t.getZoom();if(!this.$store.state.cyclomedia.active||e<=18)return void this.$store.commit("setCyclomediaRecordings",[]);const n=t.getBounds();this.$cyclomediaRecordingsClient.getRecordings(n,t=>{this.$store.commit("setCyclomediaRecordings",t)})}}}},f28c:function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function u(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(t){i=s}})();var c,h=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?h=c.concat(h):f=-1,h.length&&d())}function d(){if(!l){var t=a(p);l=!0;var e=h.length;while(e){c=h,h=[];while(++f<e)c&&c[f].run();f=-1,e=h.length}c=null,l=!1,u(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new g(t,e)),1!==h.length||l||a(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},f33c:function(t,e,n){},f410:function(t,e,n){n("1af6"),t.exports=n("584a").Array.isArray},f564:function(t,e,n){var i=n("e96b");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},f56a:function(t,e,n){var i=n("c8d5");function r(t,e,n){var r=i(t).getTime(),o=i(e).getTime(),s=i(n).getTime();if(o>s)throw new Error("The start of the range cannot be after the end of the range");return r>=o&&r<=s}t.exports=r},f5dd:function(t,e,n){var i=n("6665");function r(t,e){var n=Number(e),r=3*n;return i(t,r)}t.exports=r},f605:function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},f66d:function(t,e,n){var i=n("26d5");function r(t){return i(new Date,t)}t.exports=r},f6b4:function(t,e,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},f751:function(t,e,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f921:function(t,e,n){n("014b"),n("c207"),n("69d3"),n("765d"),t.exports=n("584a").Symbol},f9ff:function(t,e,n){var i=n("8964");function r(t,e){return i(t)-i(e)}t.exports=r},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fa76:function(t,e,n){var i=n("c8d5"),r=n("8946"),o=n("84b9");function s(t,e){var n=i(t),s=Number(e),a=o(n),u=s-a;return r(n,u)}t.exports=s},fa99:function(t,e,n){n("0293"),t.exports=n("584a").Object.getPrototypeOf},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb36:function(t,e,n){var i=n("b8f9"),r=n("c8d5");function o(t,e){var n=r(t),o=r(e),s=n.getFullYear()-o.getFullYear(),a=i(n)-i(o);return 4*s+a}t.exports=o},fb98:function(t,e,n){var i=n("1cc6");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},fbaf:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMinutes(0,0,0),e}t.exports=r},fcb3:function(t,e,n){var i=n("6665");function r(t,e){var n=Number(e);return i(t,12*n)}t.exports=r},fd39:function(t,e,n){var i=n("0978");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},fdc8:function(t,e,n){"use strict";var i=n("9ee1"),r=n.n(i);r.a},fde4:function(t,e,n){n("bf90");var i=n("584a").Object;t.exports=function(t,e){return i.getOwnPropertyDescriptor(t,e)}}}]);
  //# sourceMappingURL=chunk-vendors.81d72bc4.js.map