@signalk/freeboard-sk
Version:
Openlayers chart plotter implementation for Signal K
1 lines • 3.13 MB
JavaScript
(self.webpackChunkfreeboard_sk=self.webpackChunkfreeboard_sk||[]).push([[792],{51:Ce=>{const G="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...S)=>console.error("SEMVER",...S):()=>{};Ce.exports=G},170:function(Ce,G,S){(function(){var A,v={}.hasOwnProperty;A=S(9213),Ce.exports=function(W){function q(C){q.__super__.constructor.call(this,C),this.value=""}return function(W,q){for(var C in q)v.call(q,C)&&(W[C]=q[C]);function k(){this.constructor=W}k.prototype=q.prototype,W.prototype=new k,W.__super__=q.prototype}(q,W),Object.defineProperty(q.prototype,"data",{get:function(){return this.value},set:function(C){return this.value=C||""}}),Object.defineProperty(q.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(q.prototype,"textContent",{get:function(){return this.value},set:function(C){return this.value=C||""}}),q.prototype.clone=function(){return Object.create(this)},q.prototype.substringData=function(C,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.appendData=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.insertData=function(C,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.deleteData=function(C,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.replaceData=function(C,k,I){throw new Error("This DOM method is not implemented."+this.debugInfo())},q.prototype.isEqualNode=function(C){return!(!q.__super__.isEqualNode.apply(this,arguments).isEqualNode(C)||C.data!==this.data)},q}(A)}).call(this)},178:(Ce,G,S)=>{const R=/\s+/g;class A{constructor($e,Xe){if(Xe=W(Xe),$e instanceof A)return $e.loose===!!Xe.loose&&$e.includePrerelease===!!Xe.includePrerelease?$e:new A($e.raw,Xe);if($e instanceof q)return this.raw=$e.value,this.set=[[$e]],this.formatted=void 0,this;if(this.options=Xe,this.loose=!!Xe.loose,this.includePrerelease=!!Xe.includePrerelease,this.raw=$e.trim().replace(R," "),this.set=this.raw.split("||").map(it=>this.parseRange(it.trim())).filter(it=>it.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const it=this.set[0];if(this.set=this.set.filter(dt=>!me(dt[0])),0===this.set.length)this.set=[it];else if(this.set.length>1)for(const dt of this.set)if(1===dt.length&&Fe(dt[0])){this.set=[dt];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let $e=0;$e<this.set.length;$e++){$e>0&&(this.formatted+="||");const Xe=this.set[$e];for(let it=0;it<Xe.length;it++)it>0&&(this.formatted+=" "),this.formatted+=Xe[it].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange($e){const it=((this.options.includePrerelease&&H)|(this.options.loose&&ae))+":"+$e,dt=v.get(it);if(dt)return dt;const Et=this.options.loose;$e=$e.replace(Et?I[j.HYPHENRANGELOOSE]:I[j.HYPHENRANGE],Ke(this.options.includePrerelease)),C("hyphen replace",$e),$e=$e.replace(I[j.COMPARATORTRIM],K),C("comparator trim",$e),$e=$e.replace(I[j.TILDETRIM],ee),C("tilde trim",$e),$e=$e.replace(I[j.CARETTRIM],$),C("caret trim",$e);let Wt=$e.split(" ").map(Ht=>de(Ht,this.options)).join(" ").split(/\s+/).map(Ht=>Ie(Ht,this.options));Et&&(Wt=Wt.filter(Ht=>(C("loose invalid filter",Ht,this.options),!!Ht.match(I[j.COMPARATORLOOSE])))),C("range list",Wt);const Qt=new Map,En=Wt.map(Ht=>new q(Ht,this.options));for(const Ht of En){if(me(Ht))return[Ht];Qt.set(Ht.value,Ht)}Qt.size>1&&Qt.has("")&&Qt.delete("");const Fi=[...Qt.values()];return v.set(it,Fi),Fi}intersects($e,Xe){if(!($e instanceof A))throw new TypeError("a Range is required");return this.set.some(it=>ye(it,Xe)&&$e.set.some(dt=>ye(dt,Xe)&&it.every(Et=>dt.every(xt=>Et.intersects(xt,Xe)))))}test($e){if(!$e)return!1;if("string"==typeof $e)try{$e=new k($e,this.options)}catch{return!1}for(let Xe=0;Xe<this.set.length;Xe++)if(rt(this.set[Xe],$e,this.options))return!0;return!1}}Ce.exports=A;const v=new(S(5363)),W=S(8016),q=S(4119),C=S(51),k=S(319),{safeRe:I,t:j,comparatorTrimReplace:K,tildeTrimReplace:ee,caretTrimReplace:$}=S(8267),{FLAG_INCLUDE_PRERELEASE:H,FLAG_LOOSE:ae}=S(9473),me=Se=>"<0.0.0-0"===Se.value,Fe=Se=>""===Se.value,ye=(Se,$e)=>{let Xe=!0;const it=Se.slice();let dt=it.pop();for(;Xe&&it.length;)Xe=it.every(Et=>dt.intersects(Et,$e)),dt=it.pop();return Xe},de=(Se,$e)=>(C("comp",Se,$e),Se=te(Se,$e),C("caret",Se),Se=z(Se,$e),C("tildes",Se),Se=Z(Se,$e),C("xrange",Se),Se=be(Se,$e),C("stars",Se),Se),J=Se=>!Se||"x"===Se.toLowerCase()||"*"===Se,z=(Se,$e)=>Se.trim().split(/\s+/).map(Xe=>X(Xe,$e)).join(" "),X=(Se,$e)=>Se.replace($e.loose?I[j.TILDELOOSE]:I[j.TILDE],(it,dt,Et,xt,Wt)=>{let Qt;return C("tilde",Se,it,dt,Et,xt,Wt),J(dt)?Qt="":J(Et)?Qt=`>=${dt}.0.0 <${+dt+1}.0.0-0`:J(xt)?Qt=`>=${dt}.${Et}.0 <${dt}.${+Et+1}.0-0`:Wt?(C("replaceTilde pr",Wt),Qt=`>=${dt}.${Et}.${xt}-${Wt} <${dt}.${+Et+1}.0-0`):Qt=`>=${dt}.${Et}.${xt} <${dt}.${+Et+1}.0-0`,C("tilde return",Qt),Qt}),te=(Se,$e)=>Se.trim().split(/\s+/).map(Xe=>xe(Xe,$e)).join(" "),xe=(Se,$e)=>{C("caret",Se,$e);const it=$e.includePrerelease?"-0":"";return Se.replace($e.loose?I[j.CARETLOOSE]:I[j.CARET],(dt,Et,xt,Wt,Qt)=>{let En;return C("caret",Se,dt,Et,xt,Wt,Qt),J(Et)?En="":J(xt)?En=`>=${Et}.0.0${it} <${+Et+1}.0.0-0`:J(Wt)?En="0"===Et?`>=${Et}.${xt}.0${it} <${Et}.${+xt+1}.0-0`:`>=${Et}.${xt}.0${it} <${+Et+1}.0.0-0`:Qt?(C("replaceCaret pr",Qt),En="0"===Et?"0"===xt?`>=${Et}.${xt}.${Wt}-${Qt} <${Et}.${xt}.${+Wt+1}-0`:`>=${Et}.${xt}.${Wt}-${Qt} <${Et}.${+xt+1}.0-0`:`>=${Et}.${xt}.${Wt}-${Qt} <${+Et+1}.0.0-0`):(C("no pr"),En="0"===Et?"0"===xt?`>=${Et}.${xt}.${Wt}${it} <${Et}.${xt}.${+Wt+1}-0`:`>=${Et}.${xt}.${Wt}${it} <${Et}.${+xt+1}.0-0`:`>=${Et}.${xt}.${Wt} <${+Et+1}.0.0-0`),C("caret return",En),En})},Z=(Se,$e)=>(C("replaceXRanges",Se,$e),Se.split(/\s+/).map(Xe=>De(Xe,$e)).join(" ")),De=(Se,$e)=>(Se=Se.trim()).replace($e.loose?I[j.XRANGELOOSE]:I[j.XRANGE],(it,dt,Et,xt,Wt,Qt)=>{C("xRange",Se,it,dt,Et,xt,Wt,Qt);const En=J(Et),Fi=En||J(xt),Ht=Fi||J(Wt);return"="===dt&&Ht&&(dt=""),Qt=$e.includePrerelease?"-0":"",En?it=">"===dt||"<"===dt?"<0.0.0-0":"*":dt&&Ht?(Fi&&(xt=0),Wt=0,">"===dt?(dt=">=",Fi?(Et=+Et+1,xt=0,Wt=0):(xt=+xt+1,Wt=0)):"<="===dt&&(dt="<",Fi?Et=+Et+1:xt=+xt+1),"<"===dt&&(Qt="-0"),it=`${dt+Et}.${xt}.${Wt}${Qt}`):Fi?it=`>=${Et}.0.0${Qt} <${+Et+1}.0.0-0`:Ht&&(it=`>=${Et}.${xt}.0${Qt} <${Et}.${+xt+1}.0-0`),C("xRange return",it),it}),be=(Se,$e)=>(C("replaceStars",Se,$e),Se.trim().replace(I[j.STAR],"")),Ie=(Se,$e)=>(C("replaceGTE0",Se,$e),Se.trim().replace(I[$e.includePrerelease?j.GTE0PRE:j.GTE0],"")),Ke=Se=>($e,Xe,it,dt,Et,xt,Wt,Qt,En,Fi,Ht,ce)=>`${Xe=J(it)?"":J(dt)?`>=${it}.0.0${Se?"-0":""}`:J(Et)?`>=${it}.${dt}.0${Se?"-0":""}`:xt?`>=${Xe}`:`>=${Xe}${Se?"-0":""}`} ${Qt=J(En)?"":J(Fi)?`<${+En+1}.0.0-0`:J(Ht)?`<${En}.${+Fi+1}.0-0`:ce?`<=${En}.${Fi}.${Ht}-${ce}`:Se?`<${En}.${Fi}.${+Ht+1}-0`:`<=${Qt}`}`.trim(),rt=(Se,$e,Xe)=>{for(let it=0;it<Se.length;it++)if(!Se[it].test($e))return!1;if($e.prerelease.length&&!Xe.includePrerelease){for(let it=0;it<Se.length;it++)if(C(Se[it].semver),Se[it].semver!==q.ANY&&Se[it].semver.prerelease.length>0){const dt=Se[it].semver;if(dt.major===$e.major&&dt.minor===$e.minor&&dt.patch===$e.patch)return!0}return!1}return!0}},179:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=S(7636);G.default=function(W){var C=R.areaConversion[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m"];if(C)return W*C;throw new Error("Invalid unit used for area conversion.")}},190:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=q(S(7029)),A=q(S(3100)),V=q(S(5705)),v=q(S(942)),W=S(7636);function q(I){return I&&I.__esModule?I:{default:I}}G.default=function(j,K){var te,xe,ee=(0,R.default)(j),$=(0,A.default)(j),H=(0,V.default)(ee),ae=(0,V.default)($),me=K/W.earthRadius,Fe=H-me,ye=H+me,de=(0,V.default)(W.MAXLAT),J=(0,V.default)(W.MINLAT),z=(0,V.default)(W.MAXLON),X=(0,V.default)(W.MINLON);if(Fe>J&&ye<de){var Z=Math.asin(Math.sin(me)/Math.cos(H));(te=ae-Z)<X&&(te+=2*Math.PI),(xe=ae+Z)>z&&(xe-=2*Math.PI)}else Fe=Math.max(Fe,J),ye=Math.min(ye,de),te=X,xe=z;return[{latitude:(0,v.default)(Fe),longitude:(0,v.default)(te)},{latitude:(0,v.default)(ye),longitude:(0,v.default)(xe)}]}},202:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=function A(W){return W&&W.__esModule?W:{default:W}}(S(8674));G.default=function(q,C,k){return(0,R.default)(q,C,.01)<k}},266:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=W(S(3026)),A=W(S(4902)),V=W(S(1532)),v=S(7636);function W(k){return k&&k.__esModule?k:{default:k}}G.default=function k(I){return(0,R.default)(I)?!(parseFloat(I)>v.MAXLON||I<v.MINLON):!!(0,A.default)(I)&&k((0,V.default)(I))}},282:function(Ce,G,S){(function(){var R,A,v,q={}.hasOwnProperty;R=S(8886),v=S(7059),A=S(1892),Ce.exports=function(C){function k(I,j){this.stream=I,k.__super__.constructor.call(this,j)}return function(C,k){for(var I in k)q.call(k,I)&&(C[I]=k[I]);function j(){this.constructor=C}j.prototype=k.prototype,C.prototype=new j,C.__super__=k.prototype}(k,C),k.prototype.endline=function(I,j,K){return I.isLastRootNode&&j.state===A.CloseTag?"":k.__super__.endline.call(this,I,j,K)},k.prototype.document=function(I,j){var ee,$,H,ae,me,Fe,ye,de;for(ee=$=0,ae=(Fe=I.children).length;$<ae;ee=++$)Fe[ee].isLastRootNode=ee===I.children.length-1;for(j=this.filterOptions(j),de=[],H=0,me=(ye=I.children).length;H<me;H++)de.push(this.writeChildNode(ye[H],j,0));return de},k.prototype.attribute=function(I,j,K){return this.stream.write(k.__super__.attribute.call(this,I,j,K))},k.prototype.cdata=function(I,j,K){return this.stream.write(k.__super__.cdata.call(this,I,j,K))},k.prototype.comment=function(I,j,K){return this.stream.write(k.__super__.comment.call(this,I,j,K))},k.prototype.declaration=function(I,j,K){return this.stream.write(k.__super__.declaration.call(this,I,j,K))},k.prototype.docType=function(I,j,K){var $,H,ae;if(K||(K=0),this.openNode(I,j,K),j.state=A.OpenTag,this.stream.write(this.indent(I,j,K)),this.stream.write("<!DOCTYPE "+I.root().name),I.pubID&&I.sysID?this.stream.write(' PUBLIC "'+I.pubID+'" "'+I.sysID+'"'):I.sysID&&this.stream.write(' SYSTEM "'+I.sysID+'"'),I.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(I,j,K)),j.state=A.InsideTag,$=0,H=(ae=I.children).length;$<H;$++)this.writeChildNode(ae[$],j,K+1);j.state=A.CloseTag,this.stream.write("]")}return j.state=A.CloseTag,this.stream.write(j.spaceBeforeSlash+">"),this.stream.write(this.endline(I,j,K)),j.state=A.None,this.closeNode(I,j,K)},k.prototype.element=function(I,j,K){var H,ae,me,Fe,ye,J,z;for(ye in K||(K=0),this.openNode(I,j,K),j.state=A.OpenTag,this.stream.write(this.indent(I,j,K)+"<"+I.name),J=I.attribs)q.call(J,ye)&&this.attribute(J[ye],j,K);if(ae=0===(H=I.children.length)?null:I.children[0],0===H||I.children.every(function(X){return(X.type===R.Text||X.type===R.Raw)&&""===X.value}))j.allowEmpty?(this.stream.write(">"),j.state=A.CloseTag,this.stream.write("</"+I.name+">")):(j.state=A.CloseTag,this.stream.write(j.spaceBeforeSlash+"/>"));else if(!j.pretty||1!==H||ae.type!==R.Text&&ae.type!==R.Raw||null==ae.value){for(this.stream.write(">"+this.endline(I,j,K)),j.state=A.InsideTag,me=0,Fe=(z=I.children).length;me<Fe;me++)this.writeChildNode(z[me],j,K+1);j.state=A.CloseTag,this.stream.write(this.indent(I,j,K)+"</"+I.name+">")}else this.stream.write(">"),j.state=A.InsideTag,j.suppressPrettyCount++,this.writeChildNode(ae,j,K+1),j.suppressPrettyCount--,j.state=A.CloseTag,this.stream.write("</"+I.name+">");return this.stream.write(this.endline(I,j,K)),j.state=A.None,this.closeNode(I,j,K)},k.prototype.processingInstruction=function(I,j,K){return this.stream.write(k.__super__.processingInstruction.call(this,I,j,K))},k.prototype.raw=function(I,j,K){return this.stream.write(k.__super__.raw.call(this,I,j,K))},k.prototype.text=function(I,j,K){return this.stream.write(k.__super__.text.call(this,I,j,K))},k.prototype.dtdAttList=function(I,j,K){return this.stream.write(k.__super__.dtdAttList.call(this,I,j,K))},k.prototype.dtdElement=function(I,j,K){return this.stream.write(k.__super__.dtdElement.call(this,I,j,K))},k.prototype.dtdEntity=function(I,j,K){return this.stream.write(k.__super__.dtdEntity.call(this,I,j,K))},k.prototype.dtdNotation=function(I,j,K){return this.stream.write(k.__super__.dtdNotation.call(this,I,j,K))},k}(v)}).call(this)},313:function(Ce,G,S){(function(){var R,A,V,v,W,q,C,k,I,j,K,ee,H,ae,me,Fe,ye,de,J,z,X,te,xe,Z={}.hasOwnProperty;xe=S(9700),X=xe.isObject,z=xe.isFunction,te=xe.isPlainObject,J=xe.getValue,R=S(8886),ee=S(1152),H=S(9377),v=S(3476),W=S(2224),me=S(9447),de=S(5814),ae=S(1124),j=S(1801),K=S(4431),q=S(4554),k=S(4542),C=S(8305),I=S(7519),V=S(6813),ye=S(8139),Fe=S(7471),A=S(1892),Ce.exports=function(){function De(be,Ie,Ke){var rt;this.name="?xml",this.type=R.Document,be||(be={}),rt={},be.writer?te(be.writer)&&(rt=be.writer,be.writer=new Fe):be.writer=new Fe,this.options=be,this.writer=be.writer,this.writerOptions=this.writer.filterOptions(rt),this.stringify=new ye(be),this.onDataCallback=Ie||function(){},this.onEndCallback=Ke||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return De.prototype.createChildNode=function(be){var Ke,rt,Se,$e,Xe,it,dt;switch(be.type){case R.CData:this.cdata(be.value);break;case R.Comment:this.comment(be.value);break;case R.Element:for(Ke in rt={},it=be.attribs)Z.call(it,Ke)&&(rt[Ke]=it[Ke].value);this.node(be.name,rt);break;case R.Dummy:this.dummy();break;case R.Raw:this.raw(be.value);break;case R.Text:this.text(be.value);break;case R.ProcessingInstruction:this.instruction(be.target,be.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+be.constructor.name)}for($e=0,Xe=(dt=be.children).length;$e<Xe;$e++)this.createChildNode(Se=dt[$e]),Se.type===R.Element&&this.up();return this},De.prototype.dummy=function(){return this},De.prototype.node=function(be,Ie,Ke){var rt;if(null==be)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(be));return this.openCurrent(),be=J(be),null==Ie&&(Ie={}),Ie=J(Ie),X(Ie)||(Ke=(rt=[Ie,Ke])[0],Ie=rt[1]),this.currentNode=new H(this,be,Ie),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=Ke&&this.text(Ke),this},De.prototype.element=function(be,Ie,Ke){var rt,Se,$e,Xe,it,dt;if(this.currentNode&&this.currentNode.type===R.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(be)||X(be)||z(be))for(Xe=this.options.noValidation,this.options.noValidation=!0,(dt=new ee(this.options).element("TEMP_ROOT")).element(be),this.options.noValidation=Xe,Se=0,$e=(it=dt.children).length;Se<$e;Se++)this.createChildNode(rt=it[Se]),rt.type===R.Element&&this.up();else this.node(be,Ie,Ke);return this},De.prototype.attribute=function(be,Ie){var Ke;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(be));if(null!=be&&(be=J(be)),X(be))for(Ke in be)Z.call(be,Ke)&&this.attribute(Ke,be[Ke]);else z(Ie)&&(Ie=Ie.apply()),this.options.keepNullAttributes&&null==Ie?this.currentNode.attribs[be]=new V(this,be,""):null!=Ie&&(this.currentNode.attribs[be]=new V(this,be,Ie));return this},De.prototype.text=function(be){var Ie;return this.openCurrent(),Ie=new de(this,be),this.onData(this.writer.text(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.cdata=function(be){var Ie;return this.openCurrent(),Ie=new v(this,be),this.onData(this.writer.cdata(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.comment=function(be){var Ie;return this.openCurrent(),Ie=new W(this,be),this.onData(this.writer.comment(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.raw=function(be){var Ie;return this.openCurrent(),Ie=new me(this,be),this.onData(this.writer.raw(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.instruction=function(be,Ie){var Ke,rt,$e,Xe;if(this.openCurrent(),null!=be&&(be=J(be)),null!=Ie&&(Ie=J(Ie)),Array.isArray(be))for(Ke=0,$e=be.length;Ke<$e;Ke++)this.instruction(rt=be[Ke]);else if(X(be))for(rt in be)Z.call(be,rt)&&this.instruction(rt,be[rt]);else z(Ie)&&(Ie=Ie.apply()),Xe=new ae(this,be,Ie),this.onData(this.writer.processingInstruction(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},De.prototype.declaration=function(be,Ie,Ke){var rt;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return rt=new j(this,be,Ie,Ke),this.onData(this.writer.declaration(rt,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.doctype=function(be,Ie,Ke){if(this.openCurrent(),null==be)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new K(this,Ie,Ke),this.currentNode.rootNodeName=be,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},De.prototype.dtdElement=function(be,Ie){var Ke;return this.openCurrent(),Ke=new C(this,be,Ie),this.onData(this.writer.dtdElement(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.attList=function(be,Ie,Ke,rt,Se){var $e;return this.openCurrent(),$e=new q(this,be,Ie,Ke,rt,Se),this.onData(this.writer.dtdAttList($e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.entity=function(be,Ie){var Ke;return this.openCurrent(),Ke=new k(this,!1,be,Ie),this.onData(this.writer.dtdEntity(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.pEntity=function(be,Ie){var Ke;return this.openCurrent(),Ke=new k(this,!0,be,Ie),this.onData(this.writer.dtdEntity(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.notation=function(be,Ie){var Ke;return this.openCurrent(),Ke=new I(this,be,Ie),this.onData(this.writer.dtdNotation(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},De.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},De.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},De.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},De.prototype.openNode=function(be){var Ke,rt,Se;if(!be.isOpen){if(!this.root&&0===this.currentLevel&&be.type===R.Element&&(this.root=be),Ke="",be.type===R.Element){for(rt in this.writerOptions.state=A.OpenTag,Ke=this.writer.indent(be,this.writerOptions,this.currentLevel)+"<"+be.name,Se=be.attribs)Z.call(Se,rt)&&(Ke+=this.writer.attribute(Se[rt],this.writerOptions,this.currentLevel));Ke+=(be.children?">":"/>")+this.writer.endline(be,this.writerOptions,this.currentLevel),this.writerOptions.state=A.InsideTag}else this.writerOptions.state=A.OpenTag,Ke=this.writer.indent(be,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+be.rootNodeName,be.pubID&&be.sysID?Ke+=' PUBLIC "'+be.pubID+'" "'+be.sysID+'"':be.sysID&&(Ke+=' SYSTEM "'+be.sysID+'"'),be.children?(Ke+=" [",this.writerOptions.state=A.InsideTag):(this.writerOptions.state=A.CloseTag,Ke+=">"),Ke+=this.writer.endline(be,this.writerOptions,this.currentLevel);return this.onData(Ke,this.currentLevel),be.isOpen=!0}},De.prototype.closeNode=function(be){var Ie;if(!be.isClosed)return"",this.writerOptions.state=A.CloseTag,Ie=be.type===R.Element?this.writer.indent(be,this.writerOptions,this.currentLevel)+"</"+be.name+">"+this.writer.endline(be,this.writerOptions,this.currentLevel):this.writer.indent(be,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(be,this.writerOptions,this.currentLevel),this.writerOptions.state=A.None,this.onData(Ie,this.currentLevel),be.isClosed=!0},De.prototype.onData=function(be,Ie){return this.documentStarted=!0,this.onDataCallback(be,Ie+1)},De.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},De.prototype.debugInfo=function(be){return null==be?"":"node: <"+be+">"},De.prototype.ele=function(){return this.element.apply(this,arguments)},De.prototype.nod=function(be,Ie,Ke){return this.node(be,Ie,Ke)},De.prototype.txt=function(be){return this.text(be)},De.prototype.dat=function(be){return this.cdata(be)},De.prototype.com=function(be){return this.comment(be)},De.prototype.ins=function(be,Ie){return this.instruction(be,Ie)},De.prototype.dec=function(be,Ie,Ke){return this.declaration(be,Ie,Ke)},De.prototype.dtd=function(be,Ie,Ke){return this.doctype(be,Ie,Ke)},De.prototype.e=function(be,Ie,Ke){return this.element(be,Ie,Ke)},De.prototype.n=function(be,Ie,Ke){return this.node(be,Ie,Ke)},De.prototype.t=function(be){return this.text(be)},De.prototype.d=function(be){return this.cdata(be)},De.prototype.c=function(be){return this.comment(be)},De.prototype.r=function(be){return this.raw(be)},De.prototype.i=function(be,Ie){return this.instruction(be,Ie)},De.prototype.att=function(){return this.currentNode&&this.currentNode.type===R.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},De.prototype.a=function(){return this.currentNode&&this.currentNode.type===R.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},De.prototype.ent=function(be,Ie){return this.entity(be,Ie)},De.prototype.pent=function(be,Ie){return this.pEntity(be,Ie)},De.prototype.not=function(be,Ie){return this.notation(be,Ie)},De}()}).call(this)},319:(Ce,G,S)=>{const R=S(51),{MAX_LENGTH:A,MAX_SAFE_INTEGER:V}=S(9473),{safeRe:v,safeSrc:W,t:q}=S(8267),C=S(8016),{compareIdentifiers:k}=S(384);class I{constructor(K,ee){if(ee=C(ee),K instanceof I){if(K.loose===!!ee.loose&&K.includePrerelease===!!ee.includePrerelease)return K;K=K.version}else if("string"!=typeof K)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof K}".`);if(K.length>A)throw new TypeError(`version is longer than ${A} characters`);R("SemVer",K,ee),this.options=ee,this.loose=!!ee.loose,this.includePrerelease=!!ee.includePrerelease;const $=K.trim().match(ee.loose?v[q.LOOSE]:v[q.FULL]);if(!$)throw new TypeError(`Invalid Version: ${K}`);if(this.raw=K,this.major=+$[1],this.minor=+$[2],this.patch=+$[3],this.major>V||this.major<0)throw new TypeError("Invalid major version");if(this.minor>V||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>V||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=$[4]?$[4].split(".").map(H=>{if(/^[0-9]+$/.test(H)){const ae=+H;if(ae>=0&&ae<V)return ae}return H}):[],this.build=$[5]?$[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(K){if(R("SemVer.compare",this.version,this.options,K),!(K instanceof I)){if("string"==typeof K&&K===this.version)return 0;K=new I(K,this.options)}return K.version===this.version?0:this.compareMain(K)||this.comparePre(K)}compareMain(K){return K instanceof I||(K=new I(K,this.options)),k(this.major,K.major)||k(this.minor,K.minor)||k(this.patch,K.patch)}comparePre(K){if(K instanceof I||(K=new I(K,this.options)),this.prerelease.length&&!K.prerelease.length)return-1;if(!this.prerelease.length&&K.prerelease.length)return 1;if(!this.prerelease.length&&!K.prerelease.length)return 0;let ee=0;do{const $=this.prerelease[ee],H=K.prerelease[ee];if(R("prerelease compare",ee,$,H),void 0===$&&void 0===H)return 0;if(void 0===H)return 1;if(void 0===$)return-1;if($!==H)return k($,H)}while(++ee)}compareBuild(K){K instanceof I||(K=new I(K,this.options));let ee=0;do{const $=this.build[ee],H=K.build[ee];if(R("build compare",ee,$,H),void 0===$&&void 0===H)return 0;if(void 0===H)return 1;if(void 0===$)return-1;if($!==H)return k($,H)}while(++ee)}inc(K,ee,$){if(K.startsWith("pre")){if(!ee&&!1===$)throw new Error("invalid increment argument: identifier is empty");if(ee){const H=new RegExp(`^${this.options.loose?W[q.PRERELEASELOOSE]:W[q.PRERELEASE]}$`),ae=`-${ee}`.match(H);if(!ae||ae[1]!==ee)throw new Error(`invalid identifier: ${ee}`)}}switch(K){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",ee,$);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",ee,$);break;case"prepatch":this.prerelease.length=0,this.inc("patch",ee,$),this.inc("pre",ee,$);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",ee,$),this.inc("pre",ee,$);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const H=Number($)?1:0;if(0===this.prerelease.length)this.prerelease=[H];else{let ae=this.prerelease.length;for(;--ae>=0;)"number"==typeof this.prerelease[ae]&&(this.prerelease[ae]++,ae=-2);if(-1===ae){if(ee===this.prerelease.join(".")&&!1===$)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(H)}}if(ee){let ae=[ee,H];!1===$&&(ae=[ee]),0===k(this.prerelease[0],ee)?isNaN(this.prerelease[1])&&(this.prerelease=ae):this.prerelease=ae}break}default:throw new Error(`invalid increment argument: ${K}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}Ce.exports=I},354:(Ce,G)=>{"use strict";function V(k,I){(null==I||I>k.length)&&(I=k.length);for(var j=0,K=new Array(I);j<I;j++)K[j]=k[j];return K}Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0,G.default=function(I){if(!I.startsWith("POLYGON"))throw new Error("Invalid wkt.");return I.slice(I.indexOf("(")+2,I.indexOf(")")).split(", ").map(function(ee){var H=function S(k,I){return function W(k){if(Array.isArray(k))return k}(k)||function v(k,I){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(k)){var j=[],K=!0,ee=!1,$=void 0;try{for(var ae,H=k[Symbol.iterator]();!(K=(ae=H.next()).done)&&(j.push(ae.value),!I||j.length!==I);K=!0);}catch(me){ee=!0,$=me}finally{try{!K&&null!=H.return&&H.return()}finally{if(ee)throw $}}return j}}(k,I)||function A(k,I){if(k){if("string"==typeof k)return V(k,I);var j=Object.prototype.toString.call(k).slice(8,-1);if("Object"===j&&k.constructor&&(j=k.constructor.name),"Map"===j||"Set"===j)return Array.from(k);if("Arguments"===j||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return V(k,I)}}(k,I)||function R(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(ee.split(" "),2),me=H[1];return{longitude:parseFloat(H[0]),latitude:parseFloat(me)}})}},361:(Ce,G,S)=>{const R=S(3964);Ce.exports=(V,v,W)=>R(V,v,"<",W)},384:Ce=>{const G=/^[0-9]+$/,S=(A,V)=>{const v=G.test(A),W=G.test(V);return v&&W&&(A=+A,V=+V),A===V?0:v&&!W?-1:W&&!v?1:A<V?-1:1};Ce.exports={compareIdentifiers:S,rcompareIdentifiers:(A,V)=>S(V,A)}},502:(Ce,G,S)=>{const R=S(319);Ce.exports=(V,v,W,q,C)=>{"string"==typeof W&&(C=q,q=W,W=void 0);try{return new R(V instanceof R?V.version:V,W).inc(v,q,C).version}catch{return null}}},554:(Ce,G,S)=>{const R=S(2118),A=S(7546),V=S(9163),v=S(3304),W=S(3524),q=S(1585);Ce.exports=(k,I,j,K)=>{switch(I){case"===":return"object"==typeof k&&(k=k.version),"object"==typeof j&&(j=j.version),k===j;case"!==":return"object"==typeof k&&(k=k.version),"object"==typeof j&&(j=j.version),k!==j;case"":case"=":case"==":return R(k,j,K);case"!=":return A(k,j,K);case">":return V(k,j,K);case">=":return v(k,j,K);case"<":return W(k,j,K);case"<=":return q(k,j,K);default:throw new TypeError(`Invalid operator: ${I}`)}}},763:(Ce,G,S)=>{const R=S(2229);Ce.exports=(V,v)=>{const W=R(V.trim().replace(/^[=v]+/,""),v);return W?W.version:null}},874:function(Ce,G,S){"use strict";var R=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(G,"__esModule",{value:!0}),G.PropertyValues=void 0;var A=R(S(9170)),V=function(){function v(){this.streams={},this.count=0}return v.prototype.onPropertyValues=function(W,q){return this.getStreamTuple(W).stream.onValue(q)},v.prototype.emitPropertyValue=function(W){if(this.count>=v.MAX_VALUES_COUNT)throw new Error("Max PropertyValues count ".concat(v.MAX_VALUES_COUNT," exceeded trying to emit ").concat(JSON.stringify(W)));this.getStreamTuple(W.name).bus.push(W)},v.prototype.getStreamTuple=function(W){var q=this,C=this.streams[W];if(!C){var k=new A.default.Bus,I=k.scan([],function(j,K){return j.push(K),q.count++,j}).toProperty();(C={bus:k,stream:I}).stream.subscribe(function(){return{}}),C.bus.push(void 0),this.streams[W]=C}return C},v.MAX_VALUES_COUNT=1e3,v}();G.PropertyValues=V},884:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=W(S(7029)),A=W(S(3100)),V=W(S(5705)),v=W(S(942));function W(k){return k&&k.__esModule?k:{default:k}}G.default=function(I,j){var K=(0,R.default)(j),ee=(0,A.default)(j),$=(0,R.default)(I),H=(0,A.default)(I);return((0,v.default)(Math.atan2(Math.sin((0,V.default)(ee)-(0,V.default)(H))*Math.cos((0,V.default)(K)),Math.cos((0,V.default)($))*Math.sin((0,V.default)(K))-Math.sin((0,V.default)($))*Math.cos((0,V.default)(K))*Math.cos((0,V.default)(ee)-(0,V.default)(H))))+360)%360}},917:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=S(7636);G.default=function(W){var C=R.distanceConversion[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m"];if(C)return W*C;throw new Error("Invalid unit used for distance conversion.")}},939:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=W(S(7029)),A=W(S(3100)),V=W(S(5705)),v=W(S(942));function W(k){return k&&k.__esModule?k:{default:k}}G.default=function(I,j){var K=(0,V.default)((0,A.default)(j))-(0,V.default)((0,A.default)(I)),ee=Math.log(Math.tan((0,V.default)((0,R.default)(j))/2+Math.PI/4)/Math.tan((0,V.default)((0,R.default)(I))/2+Math.PI/4));return Math.abs(K)>Math.PI&&(K=K>0?-1*(2*Math.PI-K):2*Math.PI+K),((0,v.default)(Math.atan2(K,ee))+360)%360}},942:(Ce,G)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0,G.default=function(V){return 180*V/Math.PI}},992:(Ce,G,S)=>{const R=S(3964);Ce.exports=(V,v,W)=>R(V,v,">",W)},1118:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=function A(W){return W&&W.__esModule?W:{default:W}}(S(2447));G.default=function(q,C){return(0,R.default)(q,C)[0]}},1124:function(Ce,G,S){(function(){var R,A,W={}.hasOwnProperty;R=S(8886),A=S(170),Ce.exports=function(q){function C(k,I,j){if(C.__super__.constructor.call(this,k),null==I)throw new Error("Missing instruction target. "+this.debugInfo());this.type=R.ProcessingInstruction,this.target=this.stringify.insTarget(I),this.name=this.target,j&&(this.value=this.stringify.insValue(j))}return function(q,C){for(var k in C)W.call(C,k)&&(q[k]=C[k]);function I(){this.constructor=q}I.prototype=C.prototype,q.prototype=new I,q.__super__=C.prototype}(C,q),C.prototype.clone=function(){return Object.create(this)},C.prototype.toString=function(k){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(k))},C.prototype.isEqualNode=function(k){return!(!C.__super__.isEqualNode.apply(this,arguments).isEqualNode(k)||k.target!==this.target)},C}(A)}).call(this)},1152:function(Ce,G,S){(function(){var R,A,V,W,q,C,k,j={}.hasOwnProperty;k=S(9700).isPlainObject,V=S(7391),A=S(1599),W=S(9213),R=S(8886),C=S(8139),q=S(7471),Ce.exports=function(K){function ee($){ee.__super__.constructor.call(this,null),this.name="#document",this.type=R.Document,this.documentURI=null,this.domConfig=new A,$||($={}),$.writer||($.writer=new q),this.options=$,this.stringify=new C($)}return function(K,ee){for(var $ in ee)j.call(ee,$)&&(K[$]=ee[$]);function H(){this.constructor=K}H.prototype=ee.prototype,K.prototype=new H,K.__super__=ee.prototype}(ee,K),Object.defineProperty(ee.prototype,"implementation",{value:new V}),Object.defineProperty(ee.prototype,"doctype",{get:function(){var $,H,ae,me;for(H=0,ae=(me=this.children).length;H<ae;H++)if(($=me[H]).type===R.DocType)return $;return null}}),Object.defineProperty(ee.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ee.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ee.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ee.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===R.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ee.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===R.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(ee.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===R.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ee.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ee.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ee.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ee.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ee.prototype,"contentType",{get:function(){return null}}),ee.prototype.end=function($){var H;return H={},$?k($)&&(H=$,$=this.options.writer):$=this.options.writer,$.document(this,$.filterOptions(H))},ee.prototype.toString=function($){return this.options.writer.document(this,this.options.writer.filterOptions($))},ee.prototype.createElement=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createTextNode=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createComment=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createCDATASection=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createProcessingInstruction=function($,H){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createAttribute=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createEntityReference=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.getElementsByTagName=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.importNode=function($,H){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createElementNS=function($,H){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createAttributeNS=function($,H){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.getElementsByTagNameNS=function($,H){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.getElementById=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.adoptNode=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.renameNode=function($,H,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.getElementsByClassName=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createEvent=function($){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createNodeIterator=function($,H,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee.prototype.createTreeWalker=function($,H,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ee}(W)}).call(this)},1161:function(Ce,G,S){(function(){"use strict";var R,A,V,v,W,q={}.hasOwnProperty;R=S(6640),A=S(2426).defaults,v=function(C){return"string"==typeof C&&(C.indexOf("&")>=0||C.indexOf(">")>=0||C.indexOf("<")>=0)},W=function(C){return"<![CDATA["+V(C)+"]]>"},V=function(C){return C.replace("]]>","]]]]><![CDATA[>")},G.Builder=function(){function C(k){var I,j;for(I in this.options={},j=A[.2])q.call(j,I)&&(this.options[I]=j[I]);for(I in k)q.call(k,I)&&(this.options[I]=k[I])}return C.prototype.buildObject=function(k){var I,j,K,ee,$;return I=this.options.attrkey,j=this.options.charkey,1===Object.keys(k).length&&this.options.rootName===A[.2].rootName?k=k[$=Object.keys(k)[0]]:$=this.options.rootName,K=function(H){return function(ae,me){var Fe,ye,de,J,z;if("object"!=typeof me)H.options.cdata&&v(me)?ae.raw(W(me)):ae.txt(me);else if(Array.isArray(me)){for(J in me)if(q.call(me,J))for(z in ye=me[J])de=ye[z],ae=K(ae.ele(z),de).up()}else for(z in me)if(q.call(me,z))if(ye=me[z],z===I){if("object"==typeof ye)for(Fe in ye)ae=ae.att(Fe,ye[Fe])}else if(z===j)ae=H.options.cdata&&v(ye)?ae.raw(W(ye)):ae.txt(ye);else if(Array.isArray(ye))for(J in ye)q.call(ye,J)&&(ae="string"==typeof(de=ye[J])?H.options.cdata&&v(de)?ae.ele(z).raw(W(de)).up():ae.ele(z,de).up():K(ae.ele(z),de).up());else"object"==typeof ye?ae=K(ae.ele(z),ye).up():"string"==typeof ye&&H.options.cdata&&v(ye)?ae=ae.ele(z).raw(W(ye)).up():(null==ye&&(ye=""),ae=ae.ele(z,ye.toString()).up());return ae}}(this),ee=R.create($,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),K(ee,k).end(this.options.renderOpts)},C}()}).call(this)},1167:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=S(7636);G.default=function(W){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"kmh"){case"kmh":return W*R.timeConversion.h*R.distanceConversion.km;case"mph":return W*R.timeConversion.h*R.distanceConversion.mi;default:return W}}},1532:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=S(7636);G.default=function(W){var q=new RegExp(R.sexagesimalPattern).exec(W.toString().trim());if(typeof q>"u"||null===q)throw new Error("Given value is not in sexagesimal format");var C=Number(q[2])/60||0,k=Number(q[4])/3600||0,I=parseFloat(q[1])+C+k;return["S","W"].includes(q[7])?-I:I}},1560:function(Ce){(function(){Ce.exports=function(){function S(R){this.arr=R||[]}return Object.defineProperty(S.prototype,"length",{get:function(){return this.arr.length}}),S.prototype.item=function(R){return this.arr[R]||null},S.prototype.contains=function(R){return-1!==this.arr.indexOf(R)},S}()}).call(this)},1585:(Ce,G,S)=>{const R=S(9225);Ce.exports=(V,v,W)=>R(V,v,W)<=0},1599:function(Ce,G,S){(function(){var A,V;A=S(5775),V=S(1560),Ce.exports=function(){function v(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new A,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(v.prototype,"parameterNames",{get:function(){return new V(Object.keys(this.defaultParams))}}),v.prototype.getParameter=function(W){return this.params.hasOwnProperty(W)?this.params[W]:null},v.prototype.canSetParameter=function(W,q){return!0},v.prototype.setParameter=function(W,q){return null!=q?this.params[W]=q:delete this.params[W]},v}()}).call(this)},1679:(Ce,G,S)=>{const R=S(319);Ce.exports=(V,v)=>new R(V,v).minor},1691:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=W(S(5705)),A=W(S(7029)),V=W(S(3100)),v=S(7636);function W(k){return k&&k.__esModule?k:{default:k}}G.default=function(I){var j=0;if(I.length>2){for(var K,ee,$,H=0;H<I.length;H++){H===I.length-2?(K=I.length-2,ee=I.length-1,$=0):H===I.length-1?(K=I.length-1,ee=0,$=1):(K=H,ee=H+1,$=H+2);var ae=(0,V.default)(I[K]),me=(0,A.default)(I[ee]),Fe=(0,V.default)(I[$]);j+=((0,R.default)(Fe)-(0,R.default)(ae))*Math.sin((0,R.default)(me))}j=j*v.earthRadius*v.earthRadius/2}return Math.abs(j)}},1762:function(Ce,G,S){(function(){"use strict";var R,A,V,v,q={}.hasOwnProperty;A=S(2426),R=S(1161),V=S(4743),v=S(2649),G.defaults=A.defaults,G.processors=v,G.ValidationError=function(){function k(I){this.message=I}return function(C,k){for(var I in k)q.call(k,I)&&(C[I]=k[I]);function j(){this.constructor=C}j.prototype=k.prototype,C.prototype=new j,C.__super__=k.prototype}(k,Error),k}(),G.Builder=R.Builder,G.Parser=V.Parser,G.parseString=V.parseString,G.parseStringPromise=V.parseStringPromise}).call(this)},1801:function(Ce,G,S){(function(){var R,V,v,q={}.hasOwnProperty;v=S(9700).isObject,V=S(9213),R=S(8886),Ce.exports=function(C){function k(I,j,K,ee){var $;k.__super__.constructor.call(this,I),v(j)&&(j=($=j).version,K=$.encoding,ee=$.standalone),j||(j="1.0"),this.type=R.Declaration,this.version=this.stringify.xmlVersion(j),null!=K&&(this.encoding=this.stringify.xmlEncoding(K)),null!=ee&&(this.standalone=this.stringify.xmlStandalone(ee))}return function(C,k){for(var I in k)q.call(k,I)&&(C[I]=k[I]);function j(){this.constructor=C}j.prototype=k.prototype,C.prototype=new j,C.__super__=k.prototype}(k,C),k.prototype.toString=function(I){return this.options.writer.declaration(this,this.options.writer.filterOptions(I))},k}(V)}).call(this)},1892:function(Ce){(function(){Ce.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},1924:(Ce,G,S)=>{const R=S(8420);Ce.exports=(V,v)=>V.sort((W,q)=>R(q,W,v))},2020:(Ce,G)=>{G.read=function(S,R,A,V,v){var W,q,C=8*v-V-1,k=(1<<C)-1,I=k>>1,j=-7,K=A?v-1:0,ee=A?-1:1,$=S[R+K];for(K+=ee,W=$&(1<<-j)-1,$>>=-j,j+=C;j>0;W=256*W+S[R+K],K+=ee,j-=8);for(q=W&(1<<-j)-1,W>>=-j,j+=V;j>0;q=256*q+S[R+K],K+=ee,j-=8);if(0===W)W=1-I;else{if(W===k)return q?NaN:1/0*($?-1:1);q+=Math.pow(2,V),W-=I}return($?-1:1)*q*Math.pow(2,W-V)},G.write=function(S,R,A,V,v,W){var q,C,k,I=8*W-v-1,j=(1<<I)-1,K=j>>1,ee=23===v?Math.pow(2,-24)-Math.pow(2,-77):0,$=V?0:W-1,H=V?1:-1,ae=R<0||0===R&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(C=isNaN(R)?1:0,q=j):(q=Math.floor(Math.log(R)/Math.LN2),R*(k=Math.pow(2,-q))<1&&(q--,k*=2),(R+=q+K>=1?ee/k:ee*Math.pow(2,1-K))*k>=2&&(q++,k/=2),q+K>=j?(C=0,q=j):q+K>=1?(C=(R*k-1)*Math.pow(2,v),q+=K):(C=R*Math.pow(2,K-1)*Math.pow(2,v),q=0));v>=8;S[A+$]=255&C,$+=H,C/=256,v-=8);for(q=q<<v|C,I+=v;I>0;S[A+$]=255&q,$+=H,q/=256,I-=8);S[A+$-H]|=128*ae}},2118:(Ce,G,S)=>{const R=S(9225);Ce.exports=(V,v,W)=>0===R(V,v,W)},2222:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=q(S(7029)),A=q(S(3100)),V=q(S(5705)),v=q(S(942)),W=S(7636);function q(I){return I&&I.__esModule?I:{default:I}}G.default=function(j,K,ee){var $=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6371e3,H=(0,R.default)(j),ae=(0,A.default)(j),me=K/$,Fe=(0,V.default)(ee),ye=(0,V.default)(H),de=(0,V.default)(ae),J=Math.asin(Math.sin(ye)*Math.cos(me)+Math.cos(ye)*Math.sin(me)*Math.cos(Fe)),z=de+Math.atan2(Math.sin(Fe)*Math.sin(me)*Math.cos(ye),Math.cos(me)-Math.sin(ye)*Math.sin(J)),X=(0,v.default)(z);return(X<W.MINLON||X>W.MAXLON)&&(z=(z+3*Math.PI)%(2*Math.PI)-Math.PI,X=(0,v.default)(z)),{latitude:(0,v.default)(J),longitude:X}}},2224:function(Ce,G,S){(function(){var R,A,W={}.hasOwnProperty;R=S(8886),A=S(170),Ce.exports=function(q){function C(k,I){if(C.__super__.constructor.call(this,k),null==I)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=R.Comment,this.value=this.stringify.comment(I)}return function(q,C){for(var k in C)W.call(C,k)&&(q[k]=C[k]);function I(){this.constructor=q}I.prototype=C.prototype,q.prototype=new I,q.__super__=C.prototype}(C,q),C.prototype.clone=function(){return Object.create(this)},C.prototype.toString=function(k){return this.options.writer.comment(this,this.options.writer.filterOptions(k))},C}(A)}).call(this)},2229:(Ce,G,S)=>{const R=S(319);Ce.exports=(V,v,W=!1)=>{if(V instanceof R)return V;try{return new R(V,v)}catch(q){if(!W)return null;throw q}}},2426:function(Ce,G){(function(){G.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},2447:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0}),G.default=void 0;var R=function A(W){return W&&W.__esModule?W:{default:W}}(S(8674));G.default=function(q,C){var k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.default;return k="function"==typeof k?k:R.default,C.slice().sort(function(I,j){return k(q,I)-k(q,j)})}},2541:(Ce,G,S)=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});var R={computeDestinationPoint:!0,convertArea:!0,convertDistance:!0,convertSpeed:!0,decimalToSexagesimal:!0,findNearest:!0,getAreaOfPolygon:!0,getBounds:!0,getBoundsOfDistance:!0,getCenter:!0,getCenterOfBounds:!0,getCompassDirection:!0,getCoordinateKey:!0,getCoordinateKeys:!0,getDistance:!0,getDistanceFromLine:!0,getGreatCircleBearing:!0,getLatitude:!0,getLongitude:!0,getPathLength:!0,getPreciseDistance:!0,getRhumbLineBearing:!0,getRoughCompassDirection:!0,getSpeed:!0,isDecimal:!0,isPointInLine:!0,isPointInPolygon:!0,isPointNearLine:!0,isPointWithinRadius:!0,isSexagesimal:!0,isValidCoordinate:!0,isValidLatitude:!0,isValidLongitude:!0,orderByDistance:!0,sexagesimalToDecimal:!0,toDecimal:!0,toRad:!0,toDeg:!0,wktToPolygon:!0};Object.defineProperty(G,"computeDestinationPoint",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(G,"convertArea",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(G,"convertDistance",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(G,"convertSpeed",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(G,"decimalToSexagesimal",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(G,"findNearest",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(G,"getAreaOfPolygon",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(G,"getBounds",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(G,"getBoundsOfDistance",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(G,"getCenter",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(G,"getCenterOfBounds",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(G,"getCompassDirection",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(G,"getCoordinateKey",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(G,"getCoordinateKeys",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(G,"getDistance",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(G,"getDistanceFromLine",{enumerable:!0,get:function(){return Fe.default}}),Object.defineProperty(G,"getGreatCircleBearing",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(G,"getLatitude",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(G,"getLongitude",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(G,"getPathLength",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(G,"getPreciseDistance",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(G,"getRhumbLineBearing",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(G,"getRoughCompassDirection",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(G,"getSpeed",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(G,"isDecimal",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(G,"isPointInLine",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(G,"isPointInPolygon",{enumerable:!0,get:function(){return Ie.default}})