@signalk/freeboard-sk 3.2.1 → 3.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +276 -276
- package/package.json +17 -14
- package/plugin/vitest.config.mjs +1 -0
- package/public/assets/features/anchor-watch-1.jpg +0 -0
- package/public/assets/features/anchor-watch-2.jpg +0 -0
- package/public/assets/features/anchor-watch-3.jpg +0 -0
- package/public/assets/features/bearing-distance-1.jpg +0 -0
- package/public/assets/features/collision-alarm-display-1.jpg +0 -0
- package/public/assets/features/collision-alarm-display-2.jpg +0 -0
- package/public/assets/features/extension-panels-3.jpg +0 -0
- package/public/assets/features/radar-guard-zones-1.jpg +0 -0
- package/public/assets/features/radar-guard-zones-2.jpg +0 -0
- package/public/assets/features/radar-overlay-2.jpg +0 -0
- package/public/assets/features/radar-overlay-3.jpg +0 -0
- package/public/assets/features/route-planning-3.jpg +0 -0
- package/public/assets/features/route-planning-4.jpg +0 -0
- package/public/assets/features-corpus.json +1 -1
- package/public/assets/help/index.html +56 -126
- package/public/assets/img/bearing-distance.svg +5 -0
- package/public/chunk-2MIQQV2V.js +1 -0
- package/public/{chunk-3HSIX7SC.js → chunk-45ZTFAA5.js} +1 -1
- package/public/chunk-5OVWWF5M.js +1 -0
- package/public/{chunk-3LS56QZI.js → chunk-62WHV6CJ.js} +11 -11
- package/public/{chunk-LNNAK44C.js → chunk-6E2BDKCH.js} +1 -1
- package/public/{chunk-VQDXDSU7.js → chunk-AQKT2J2C.js} +1 -1
- package/public/chunk-BXGNCKBA.js +1 -0
- package/public/{chunk-TWWDZIBY.js → chunk-FT544SHF.js} +1 -1
- package/public/{chunk-IUPTBCPS.js → chunk-HZKV2PFE.js} +1 -1
- package/public/chunk-I33LU6L4.js +1 -0
- package/public/{chunk-VAI3YHUS.js → chunk-ISXARX6U.js} +1 -1
- package/public/chunk-J6MIIPAV.js +1 -0
- package/public/{chunk-IAPJVEYW.js → chunk-MX5HWKAH.js} +1 -1
- package/public/{chunk-IQZW2T75.js → chunk-MYBGWSLC.js} +1 -1
- package/public/{chunk-7Z7GI4ZY.js → chunk-PAHYECKY.js} +1 -1
- package/public/{chunk-JWBOMKMB.js → chunk-PD55PKQG.js} +2 -2
- package/public/chunk-QDGLJETB.js +4170 -0
- package/public/chunk-QDLU24KL.js +1 -0
- package/public/{chunk-IWEZGJPC.js → chunk-R63U3Z2W.js} +1 -1
- package/public/{chunk-DBGL657U.js → chunk-RG7WQ7O2.js} +15 -15
- package/public/{chunk-NO274VZU.js → chunk-T7ZWMXKZ.js} +1 -1
- package/public/{chunk-XUGRUSQE.js → chunk-X6D4D6EN.js} +1 -1
- package/public/{chunk-DX34XOH2.js → chunk-YSHHABBQ.js} +1 -1
- package/public/{chunk-ZU72P2HZ.js → chunk-YZN4NRWW.js} +1 -1
- package/public/chunk-ZYTWCAFS.js +1 -0
- package/public/index.html +2 -2
- package/public/main-4CNNLPXH.js +468 -0
- package/public/{styles-YRQUZIIZ.css → styles-BRU77GKR.css} +1 -1
- package/public/worker-E75PSRY4.js +12 -0
- package/public/worker-PCWM7FLK.js +3 -0
- package/public/{worker-BFPH3XRP.js → worker-UJD2XPGR.js} +6 -6
- package/public/worker-W3UMLYIU.js +12 -0
- package/public/chunk-3HHS54E4.js +0 -1
- package/public/chunk-4GN5KO3L.js +0 -1
- package/public/chunk-5UXNTYSY.js +0 -4372
- package/public/chunk-HVGGQ65L.js +0 -1
- package/public/chunk-OS23ZF5N.js +0 -1
- package/public/chunk-PPBXI4I6.js +0 -1
- package/public/chunk-UBTZRPVO.js +0 -1
- package/public/chunk-YROCNGFN.js +0 -1
- package/public/main-BZXS6MPD.js +0 -468
- package/public/worker-5LIQ6F6U.js +0 -12
- package/public/worker-DYC3TMVW.js +0 -3
- package/public/worker-SUE26ZZI.js +0 -12
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var sn=Object.create;var se=Object.defineProperty;var an=Object.getOwnPropertyDescriptor;var un=Object.getOwnPropertyNames;var cn=Object.getPrototypeOf,ln=Object.prototype.hasOwnProperty;var F=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(u){throw e=0,u}};var fn=(t,e,u,d)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of un(e))!ln.call(t,n)&&n!==u&&se(t,n,{get:()=>e[n],enumerable:!(d=an(e,n))||d.enumerable});return t};var hn=(t,e,u)=>(u=t!=null?sn(cn(t)):{},fn(e||!t||!t.__esModule?se(u,"default",{value:t,enumerable:!0}):u,t));var gt=F(Ut=>{"use strict";(function(){Ut.defaults={"0.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:""},"0.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:`
|
|
2
|
+
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(Ut)});var tt=F((ae,st)=>{"use strict";(function(){var t,e,u,d,n,l,a,f=[].slice,h={}.hasOwnProperty;t=function(){var w,D,O,b,y,T;if(T=arguments[0],y=2<=arguments.length?f.call(arguments,1):[],n(Object.assign))Object.assign.apply(null,arguments);else for(w=0,O=y.length;w<O;w++)if(b=y[w],b!=null)for(D in b)h.call(b,D)&&(T[D]=b[D]);return T},n=function(w){return!!w&&Object.prototype.toString.call(w)==="[object Function]"},l=function(w){var D;return!!w&&((D=typeof w)=="function"||D==="object")},u=function(w){return n(Array.isArray)?Array.isArray(w):Object.prototype.toString.call(w)==="[object Array]"},d=function(w){var D;if(u(w))return!w.length;for(D in w)if(h.call(w,D))return!1;return!0},a=function(w){var D,O;return l(w)&&(O=Object.getPrototypeOf(w))&&(D=O.constructor)&&typeof D=="function"&&D instanceof D&&Function.prototype.toString.call(D)===Function.prototype.toString.call(Object)},e=function(w){return n(w.valueOf)?w.valueOf():w},st.exports.assign=t,st.exports.isFunction=n,st.exports.isObject=l,st.exports.isArray=u,st.exports.isEmpty=d,st.exports.isPlainObject=a,st.exports.getValue=e}).call(ae)});var Wt=F((ue,ce)=>{"use strict";(function(){var t;ce.exports=t=(function(){function e(){}return e.prototype.hasFeature=function(u,d){return!0},e.prototype.createDocumentType=function(u,d,n){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(u,d,n){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(u){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(u,d){throw new Error("This DOM method is not implemented.")},e})()}).call(ue)});var he=F((le,fe)=>{"use strict";(function(){var t;fe.exports=t=(function(){function e(){}return e.prototype.handleError=function(u){throw new Error(u)},e})()}).call(le)});var me=F((pe,de)=>{"use strict";(function(){var t;de.exports=t=(function(){function e(u){this.arr=u||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(u){return this.arr[u]||null},e.prototype.contains=function(u){return this.arr.indexOf(u)!==-1},e})()}).call(pe)});var we=F((ye,ge)=>{"use strict";(function(){var t,e,u;e=he(),u=me(),ge.exports=t=(function(){function d(){var n;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,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=n=Object.create(this.defaultParams)}return Object.defineProperty(d.prototype,"parameterNames",{get:function(){return new u(Object.keys(this.defaultParams))}}),d.prototype.getParameter=function(n){return this.params.hasOwnProperty(n)?this.params[n]:null},d.prototype.canSetParameter=function(n,l){return!0},d.prototype.setParameter=function(n,l){return l!=null?this.params[n]=l:delete this.params[n]},d})()}).call(ye)});var k=F((Te,be)=>{"use strict";(function(){be.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(Te)});var Vt=F((De,Ee)=>{"use strict";(function(){var t,e,u;t=k(),u=K(),Ee.exports=e=(function(){function d(n,l,a){if(this.parent=n,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),l==null)throw new Error("Missing attribute name. "+this.debugInfo(l));this.name=this.stringify.name(l),this.value=this.stringify.attValue(a),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"specified",{get:function(){return!0}}),d.prototype.clone=function(){return Object.create(this)},d.prototype.toString=function(n){return this.options.writer.attribute(this,this.options.writer.filterOptions(n))},d.prototype.debugInfo=function(n){return n=n||this.name,n==null?"parent: <"+this.parent.name+">":"attribute: {"+n+"}, parent: <"+this.parent.name+">"},d.prototype.isEqualNode=function(n){return!(n.namespaceURI!==this.namespaceURI||n.prefix!==this.prefix||n.localName!==this.localName||n.value!==this.value)},d})()}).call(De)});var wt=F((Ne,Oe)=>{"use strict";(function(){var t;Oe.exports=t=(function(){function e(u){this.nodes=u}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(u){return this.nodes[u]},e.prototype.setNamedItem=function(u){var d;return d=this.nodes[u.nodeName],this.nodes[u.nodeName]=u,d||null},e.prototype.removeNamedItem=function(u){var d;return d=this.nodes[u],delete this.nodes[u],d||null},e.prototype.item=function(u){return this.nodes[Object.keys(this.nodes)[u]]||null},e.prototype.getNamedItemNS=function(u,d){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(u){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(u,d){throw new Error("This DOM method is not implemented.")},e})()}).call(Ne)});var Tt=F((Ie,Ce)=>{"use strict";(function(){var t,e,u,d,n,l,a,f,h,w=function(O,b){for(var y in b)D.call(b,y)&&(O[y]=b[y]);function T(){this.constructor=O}return T.prototype=b.prototype,O.prototype=new T,O.__super__=b.prototype,O},D={}.hasOwnProperty;h=tt(),f=h.isObject,a=h.isFunction,l=h.getValue,n=K(),t=k(),e=Vt(),d=wt(),Ce.exports=u=(function(O){w(b,O);function b(y,T,N){var x,v,L,m;if(b.__super__.constructor.call(this,y),T==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(T),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,N!=null&&this.attribute(N),y.type===t.Document&&(this.isRoot=!0,this.documentObject=y,y.rootObject=this,y.children)){for(m=y.children,v=0,L=m.length;v<L;v++)if(x=m[v],x.type===t.DocType){x.name=this.name;break}}}return Object.defineProperty(b.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(b.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(b.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(b.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(b.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(b.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new d(this.attribs)),this.attributeMap}}),b.prototype.clone=function(){var y,T,N,x;N=Object.create(this),N.isRoot&&(N.documentObject=null),N.attribs={},x=this.attribs;for(T in x)D.call(x,T)&&(y=x[T],N.attribs[T]=y.clone());return N.children=[],this.children.forEach(function(v){var L;return L=v.clone(),L.parent=N,N.children.push(L)}),N},b.prototype.attribute=function(y,T){var N,x;if(y!=null&&(y=l(y)),f(y))for(N in y)D.call(y,N)&&(x=y[N],this.attribute(N,x));else a(T)&&(T=T.apply()),this.options.keepNullAttributes&&T==null?this.attribs[y]=new e(this,y,""):T!=null&&(this.attribs[y]=new e(this,y,T));return this},b.prototype.removeAttribute=function(y){var T,N,x;if(y==null)throw new Error("Missing attribute name. "+this.debugInfo());if(y=l(y),Array.isArray(y))for(N=0,x=y.length;N<x;N++)T=y[N],delete this.attribs[T];else delete this.attribs[y];return this},b.prototype.toString=function(y){return this.options.writer.element(this,this.options.writer.filterOptions(y))},b.prototype.att=function(y,T){return this.attribute(y,T)},b.prototype.a=function(y,T){return this.attribute(y,T)},b.prototype.getAttribute=function(y){return this.attribs.hasOwnProperty(y)?this.attribs[y].value:null},b.prototype.setAttribute=function(y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getAttributeNode=function(y){return this.attribs.hasOwnProperty(y)?this.attribs[y]:null},b.prototype.setAttributeNode=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeAttributeNode=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagName=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getAttributeNS=function(y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setAttributeNS=function(y,T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeAttributeNS=function(y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getAttributeNodeNS=function(y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setAttributeNodeNS=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagNameNS=function(y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasAttribute=function(y){return this.attribs.hasOwnProperty(y)},b.prototype.hasAttributeNS=function(y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setIdAttribute=function(y,T){return this.attribs.hasOwnProperty(y)?this.attribs[y].isId:T},b.prototype.setIdAttributeNS=function(y,T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setIdAttributeNode=function(y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagName=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagNameNS=function(y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByClassName=function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(y){var T,N,x;if(!b.__super__.isEqualNode.apply(this,arguments).isEqualNode(y)||y.namespaceURI!==this.namespaceURI||y.prefix!==this.prefix||y.localName!==this.localName||y.attribs.length!==this.attribs.length)return!1;for(T=N=0,x=this.attribs.length-1;0<=x?N<=x:N>=x;T=0<=x?++N:--N)if(!this.attribs[T].isEqualNode(y.attribs[T]))return!1;return!0},b})(n)}).call(Ie)});var dt=F((Le,_e)=>{"use strict";(function(){var t,e,u=function(n,l){for(var a in l)d.call(l,a)&&(n[a]=l[a]);function f(){this.constructor=n}return f.prototype=l.prototype,n.prototype=new f,n.__super__=l.prototype,n},d={}.hasOwnProperty;e=K(),_e.exports=t=(function(n){u(l,n);function l(a){l.__super__.constructor.call(this,a),this.value=""}return Object.defineProperty(l.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(l.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(l.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),l.prototype.clone=function(){return Object.create(this)},l.prototype.substringData=function(a,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.appendData=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.insertData=function(a,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.deleteData=function(a,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.replaceData=function(a,f,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(a){return!(!l.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.data!==this.data)},l})(e)}).call(Le)});var bt=F((Me,ve)=>{"use strict";(function(){var t,e,u,d=function(l,a){for(var f in a)n.call(a,f)&&(l[f]=a[f]);function h(){this.constructor=l}return h.prototype=a.prototype,l.prototype=new h,l.__super__=a.prototype,l},n={}.hasOwnProperty;t=k(),u=dt(),ve.exports=e=(function(l){d(a,l);function a(f,h){if(a.__super__.constructor.call(this,f),h==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(h)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(f){return this.options.writer.cdata(this,this.options.writer.filterOptions(f))},a})(u)}).call(Me)});var Dt=F((xe,Ae)=>{"use strict";(function(){var t,e,u,d=function(l,a){for(var f in a)n.call(a,f)&&(l[f]=a[f]);function h(){this.constructor=l}return h.prototype=a.prototype,l.prototype=new h,l.__super__=a.prototype,l},n={}.hasOwnProperty;t=k(),e=dt(),Ae.exports=u=(function(l){d(a,l);function a(f,h){if(a.__super__.constructor.call(this,f),h==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(h)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(f){return this.options.writer.comment(this,this.options.writer.filterOptions(f))},a})(e)}).call(xe)});var Et=F((Pe,Se)=>{"use strict";(function(){var t,e,u,d,n=function(a,f){for(var h in f)l.call(f,h)&&(a[h]=f[h]);function w(){this.constructor=a}return w.prototype=f.prototype,a.prototype=new w,a.__super__=f.prototype,a},l={}.hasOwnProperty;d=tt().isObject,u=K(),t=k(),Se.exports=e=(function(a){n(f,a);function f(h,w,D,O){var b;f.__super__.constructor.call(this,h),d(w)&&(b=w,w=b.version,D=b.encoding,O=b.standalone),w||(w="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(w),D!=null&&(this.encoding=this.stringify.xmlEncoding(D)),O!=null&&(this.standalone=this.stringify.xmlStandalone(O))}return f.prototype.toString=function(h){return this.options.writer.declaration(this,this.options.writer.filterOptions(h))},f})(u)}).call(Pe)});var Nt=F((Fe,Re)=>{"use strict";(function(){var t,e,u,d=function(l,a){for(var f in a)n.call(a,f)&&(l[f]=a[f]);function h(){this.constructor=l}return h.prototype=a.prototype,l.prototype=new h,l.__super__=a.prototype,l},n={}.hasOwnProperty;u=K(),t=k(),Re.exports=e=(function(l){d(a,l);function a(f,h,w,D,O,b){if(a.__super__.constructor.call(this,f),h==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(w==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(h));if(!D)throw new Error("Missing DTD attribute type. "+this.debugInfo(h));if(!O)throw new Error("Missing DTD attribute default. "+this.debugInfo(h));if(O.indexOf("#")!==0&&(O="#"+O),!O.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(h));if(b&&!O.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(h));this.elementName=this.stringify.name(h),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(w),this.attributeType=this.stringify.dtdAttType(D),b&&(this.defaultValue=this.stringify.dtdAttDefault(b)),this.defaultValueType=O}return a.prototype.toString=function(f){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(f))},a})(u)}).call(Fe)});var Ot=F((Xe,qe)=>{"use strict";(function(){var t,e,u,d,n=function(a,f){for(var h in f)l.call(f,h)&&(a[h]=f[h]);function w(){this.constructor=a}return w.prototype=f.prototype,a.prototype=new w,a.__super__=f.prototype,a},l={}.hasOwnProperty;d=tt().isObject,u=K(),t=k(),qe.exports=e=(function(a){n(f,a);function f(h,w,D,O){if(f.__super__.constructor.call(this,h),D==null)throw new Error("Missing DTD entity name. "+this.debugInfo(D));if(O==null)throw new Error("Missing DTD entity value. "+this.debugInfo(D));if(this.pe=!!w,this.name=this.stringify.name(D),this.type=t.EntityDeclaration,!d(O))this.value=this.stringify.dtdEntityValue(O),this.internal=!0;else{if(!O.pubID&&!O.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(D));if(O.pubID&&!O.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(D));if(this.internal=!1,O.pubID!=null&&(this.pubID=this.stringify.dtdPubID(O.pubID)),O.sysID!=null&&(this.sysID=this.stringify.dtdSysID(O.sysID)),O.nData!=null&&(this.nData=this.stringify.dtdNData(O.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(D))}}return Object.defineProperty(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(f.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(f.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(f.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(f.prototype,"xmlVersion",{get:function(){return null}}),f.prototype.toString=function(h){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(h))},f})(u)}).call(Xe)});var It=F((je,Be)=>{"use strict";(function(){var t,e,u,d=function(l,a){for(var f in a)n.call(a,f)&&(l[f]=a[f]);function h(){this.constructor=l}return h.prototype=a.prototype,l.prototype=new h,l.__super__=a.prototype,l},n={}.hasOwnProperty;u=K(),t=k(),Be.exports=e=(function(l){d(a,l);function a(f,h,w){if(a.__super__.constructor.call(this,f),h==null)throw new Error("Missing DTD element name. "+this.debugInfo());w||(w="(#PCDATA)"),Array.isArray(w)&&(w="("+w.join(",")+")"),this.name=this.stringify.name(h),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(w)}return a.prototype.toString=function(f){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(f))},a})(u)}).call(je)});var Ct=F((Ue,We)=>{"use strict";(function(){var t,e,u,d=function(l,a){for(var f in a)n.call(a,f)&&(l[f]=a[f]);function h(){this.constructor=l}return h.prototype=a.prototype,l.prototype=new h,l.__super__=a.prototype,l},n={}.hasOwnProperty;u=K(),t=k(),We.exports=e=(function(l){d(a,l);function a(f,h,w){if(a.__super__.constructor.call(this,f),h==null)throw new Error("Missing DTD notation name. "+this.debugInfo(h));if(!w.pubID&&!w.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(h));this.name=this.stringify.name(h),this.type=t.NotationDeclaration,w.pubID!=null&&(this.pubID=this.stringify.dtdPubID(w.pubID)),w.sysID!=null&&(this.sysID=this.stringify.dtdSysID(w.sysID))}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a.prototype.toString=function(f){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(f))},a})(u)}).call(Ue)});var Lt=F((Ve,ke)=>{"use strict";(function(){var t,e,u,d,n,l,a,f,h,w=function(O,b){for(var y in b)D.call(b,y)&&(O[y]=b[y]);function T(){this.constructor=O}return T.prototype=b.prototype,O.prototype=new T,O.__super__=b.prototype,O},D={}.hasOwnProperty;h=tt().isObject,f=K(),t=k(),e=Nt(),d=Ot(),u=It(),n=Ct(),a=wt(),ke.exports=l=(function(O){w(b,O);function b(y,T,N){var x,v,L,m,o,i;if(b.__super__.constructor.call(this,y),this.type=t.DocType,y.children){for(m=y.children,v=0,L=m.length;v<L;v++)if(x=m[v],x.type===t.Element){this.name=x.name;break}}this.documentObject=y,h(T)&&(o=T,T=o.pubID,N=o.sysID),N==null&&(i=[T,N],N=i[0],T=i[1]),T!=null&&(this.pubID=this.stringify.dtdPubID(T)),N!=null&&(this.sysID=this.stringify.dtdSysID(N))}return Object.defineProperty(b.prototype,"entities",{get:function(){var y,T,N,x,v;for(x={},v=this.children,T=0,N=v.length;T<N;T++)y=v[T],y.type===t.EntityDeclaration&&!y.pe&&(x[y.name]=y);return new a(x)}}),Object.defineProperty(b.prototype,"notations",{get:function(){var y,T,N,x,v;for(x={},v=this.children,T=0,N=v.length;T<N;T++)y=v[T],y.type===t.NotationDeclaration&&(x[y.name]=y);return new a(x)}}),Object.defineProperty(b.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(b.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(b.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.element=function(y,T){var N;return N=new u(this,y,T),this.children.push(N),this},b.prototype.attList=function(y,T,N,x,v){var L;return L=new e(this,y,T,N,x,v),this.children.push(L),this},b.prototype.entity=function(y,T){var N;return N=new d(this,!1,y,T),this.children.push(N),this},b.prototype.pEntity=function(y,T){var N;return N=new d(this,!0,y,T),this.children.push(N),this},b.prototype.notation=function(y,T){var N;return N=new n(this,y,T),this.children.push(N),this},b.prototype.toString=function(y){return this.options.writer.docType(this,this.options.writer.filterOptions(y))},b.prototype.ele=function(y,T){return this.element(y,T)},b.prototype.att=function(y,T,N,x,v){return this.attList(y,T,N,x,v)},b.prototype.ent=function(y,T){return this.entity(y,T)},b.prototype.pent=function(y,T){return this.pEntity(y,T)},b.prototype.not=function(y,T){return this.notation(y,T)},b.prototype.up=function(){return this.root()||this.documentObject},b.prototype.isEqualNode=function(y){return!(!b.__super__.isEqualNode.apply(this,arguments).isEqualNode(y)||y.name!==this.name||y.publicId!==this.publicId||y.systemId!==this.systemId)},b})(f)}).call(Ve)});var _t=F((Ge,Ye)=>{"use strict";(function(){var t,e,u,d=function(l,a){for(var f in a)n.call(a,f)&&(l[f]=a[f]);function h(){this.constructor=l}return h.prototype=a.prototype,l.prototype=new h,l.__super__=a.prototype,l},n={}.hasOwnProperty;t=k(),e=K(),Ye.exports=u=(function(l){d(a,l);function a(f,h){if(a.__super__.constructor.call(this,f),h==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(h)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(f){return this.options.writer.raw(this,this.options.writer.filterOptions(f))},a})(e)}).call(Ge)});var Mt=F((He,$e)=>{"use strict";(function(){var t,e,u,d=function(l,a){for(var f in a)n.call(a,f)&&(l[f]=a[f]);function h(){this.constructor=l}return h.prototype=a.prototype,l.prototype=new h,l.__super__=a.prototype,l},n={}.hasOwnProperty;t=k(),e=dt(),$e.exports=u=(function(l){d(a,l);function a(f,h){if(a.__super__.constructor.call(this,f),h==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(h)}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var f,h,w;for(w="",h=this.previousSibling;h;)w=h.data+w,h=h.previousSibling;for(w+=this.data,f=this.nextSibling;f;)w=w+f.data,f=f.nextSibling;return w}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(f){return this.options.writer.text(this,this.options.writer.filterOptions(f))},a.prototype.splitText=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceWholeText=function(f){throw new Error("This DOM method is not implemented."+this.debugInfo())},a})(e)}).call(He)});var vt=F((ze,Ke)=>{"use strict";(function(){var t,e,u,d=function(l,a){for(var f in a)n.call(a,f)&&(l[f]=a[f]);function h(){this.constructor=l}return h.prototype=a.prototype,l.prototype=new h,l.__super__=a.prototype,l},n={}.hasOwnProperty;t=k(),e=dt(),Ke.exports=u=(function(l){d(a,l);function a(f,h,w){if(a.__super__.constructor.call(this,f),h==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(h),this.name=this.target,w&&(this.value=this.stringify.insValue(w))}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(f){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(f))},a.prototype.isEqualNode=function(f){return!(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(f)||f.target!==this.target)},a})(e)}).call(ze)});var kt=F((Qe,Ze)=>{"use strict";(function(){var t,e,u,d=function(l,a){for(var f in a)n.call(a,f)&&(l[f]=a[f]);function h(){this.constructor=l}return h.prototype=a.prototype,l.prototype=new h,l.__super__=a.prototype,l},n={}.hasOwnProperty;u=K(),t=k(),Ze.exports=e=(function(l){d(a,l);function a(f){a.__super__.constructor.call(this,f),this.type=t.Dummy}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(f){return""},a})(u)}).call(Qe)});var er=F((Je,tr)=>{"use strict";(function(){var t;tr.exports=t=(function(){function e(u){this.nodes=u}return Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.item=function(u){return this.nodes[u]||null},e})()}).call(Je)});var ir=F((rr,nr)=>{"use strict";(function(){nr.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(rr)});var K=F((or,sr)=>{"use strict";(function(){var t,e,u,d,n,l,a,f,h,w,D,O,b,y,T,N,x,v,L,m={}.hasOwnProperty;L=tt(),v=L.isObject,x=L.isFunction,N=L.isEmpty,T=L.getValue,f=null,u=null,d=null,n=null,l=null,b=null,y=null,O=null,a=null,e=null,D=null,h=null,t=null,sr.exports=w=(function(){function o(i){this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,f||(f=Tt(),u=bt(),d=Dt(),n=Et(),l=Lt(),b=_t(),y=Mt(),O=vt(),a=kt(),e=k(),D=er(),h=wt(),t=ir())}return Object.defineProperty(o.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(o.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(o.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(o.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(o.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new D(this.children)),this.childNodeList}}),Object.defineProperty(o.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(o.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(o.prototype,"previousSibling",{get:function(){var i;return i=this.parent.children.indexOf(this),this.parent.children[i-1]||null}}),Object.defineProperty(o.prototype,"nextSibling",{get:function(){var i;return i=this.parent.children.indexOf(this),this.parent.children[i+1]||null}}),Object.defineProperty(o.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(o.prototype,"textContent",{get:function(){var i,p,C,I,c;if(this.nodeType===e.Element||this.nodeType===e.DocumentFragment){for(c="",I=this.children,p=0,C=I.length;p<C;p++)i=I[p],i.textContent&&(c+=i.textContent);return c}else return null},set:function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),o.prototype.setParent=function(i){var p,C,I,c,g;for(this.parent=i,i&&(this.options=i.options,this.stringify=i.stringify),c=this.children,g=[],C=0,I=c.length;C<I;C++)p=c[C],g.push(p.setParent(this));return g},o.prototype.element=function(i,p,C){var I,c,g,M,A,P,R,X,S,W,q;if(P=null,p===null&&C==null&&(S=[{},null],p=S[0],C=S[1]),p==null&&(p={}),p=T(p),v(p)||(W=[p,C],C=W[0],p=W[1]),i!=null&&(i=T(i)),Array.isArray(i))for(g=0,R=i.length;g<R;g++)c=i[g],P=this.element(c);else if(x(i))P=this.element(i.apply());else if(v(i)){for(A in i)if(m.call(i,A))if(q=i[A],x(q)&&(q=q.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&A.indexOf(this.stringify.convertAttKey)===0)P=this.attribute(A.substr(this.stringify.convertAttKey.length),q);else if(!this.options.separateArrayItems&&Array.isArray(q)&&N(q))P=this.dummy();else if(v(q)&&N(q))P=this.element(A);else if(!this.options.keepNullNodes&&q==null)P=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(q))for(M=0,X=q.length;M<X;M++)c=q[M],I={},I[A]=c,P=this.element(I);else v(q)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&A.indexOf(this.stringify.convertTextKey)===0?P=this.element(q):(P=this.element(A),P.element(q)):P=this.element(A,q)}else!this.options.keepNullNodes&&C===null?P=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&i.indexOf(this.stringify.convertTextKey)===0?P=this.text(C):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&i.indexOf(this.stringify.convertCDataKey)===0?P=this.cdata(C):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&i.indexOf(this.stringify.convertCommentKey)===0?P=this.comment(C):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&i.indexOf(this.stringify.convertRawKey)===0?P=this.raw(C):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&i.indexOf(this.stringify.convertPIKey)===0?P=this.instruction(i.substr(this.stringify.convertPIKey.length),C):P=this.node(i,p,C);if(P==null)throw new Error("Could not create any elements with: "+i+". "+this.debugInfo());return P},o.prototype.insertBefore=function(i,p,C){var I,c,g,M,A;if(i?.type)return g=i,M=p,g.setParent(this),M?(c=children.indexOf(M),A=children.splice(c),children.push(g),Array.prototype.push.apply(children,A)):children.push(g),g;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(i));return c=this.parent.children.indexOf(this),A=this.parent.children.splice(c),I=this.parent.element(i,p,C),Array.prototype.push.apply(this.parent.children,A),I},o.prototype.insertAfter=function(i,p,C){var I,c,g;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(i));return c=this.parent.children.indexOf(this),g=this.parent.children.splice(c+1),I=this.parent.element(i,p,C),Array.prototype.push.apply(this.parent.children,g),I},o.prototype.remove=function(){var i,p;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return i=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[i,i-i+1].concat(p=[])),this.parent},o.prototype.node=function(i,p,C){var I,c;return i!=null&&(i=T(i)),p||(p={}),p=T(p),v(p)||(c=[p,C],C=c[0],p=c[1]),I=new f(this,i,p),C!=null&&I.text(C),this.children.push(I),I},o.prototype.text=function(i){var p;return v(i)&&this.element(i),p=new y(this,i),this.children.push(p),this},o.prototype.cdata=function(i){var p;return p=new u(this,i),this.children.push(p),this},o.prototype.comment=function(i){var p;return p=new d(this,i),this.children.push(p),this},o.prototype.commentBefore=function(i){var p,C,I;return C=this.parent.children.indexOf(this),I=this.parent.children.splice(C),p=this.parent.comment(i),Array.prototype.push.apply(this.parent.children,I),this},o.prototype.commentAfter=function(i){var p,C,I;return C=this.parent.children.indexOf(this),I=this.parent.children.splice(C+1),p=this.parent.comment(i),Array.prototype.push.apply(this.parent.children,I),this},o.prototype.raw=function(i){var p;return p=new b(this,i),this.children.push(p),this},o.prototype.dummy=function(){var i;return i=new a(this),i},o.prototype.instruction=function(i,p){var C,I,c,g,M;if(i!=null&&(i=T(i)),p!=null&&(p=T(p)),Array.isArray(i))for(g=0,M=i.length;g<M;g++)C=i[g],this.instruction(C);else if(v(i))for(C in i)m.call(i,C)&&(I=i[C],this.instruction(C,I));else x(p)&&(p=p.apply()),c=new O(this,i,p),this.children.push(c);return this},o.prototype.instructionBefore=function(i,p){var C,I,c;return I=this.parent.children.indexOf(this),c=this.parent.children.splice(I),C=this.parent.instruction(i,p),Array.prototype.push.apply(this.parent.children,c),this},o.prototype.instructionAfter=function(i,p){var C,I,c;return I=this.parent.children.indexOf(this),c=this.parent.children.splice(I+1),C=this.parent.instruction(i,p),Array.prototype.push.apply(this.parent.children,c),this},o.prototype.declaration=function(i,p,C){var I,c;return I=this.document(),c=new n(I,i,p,C),I.children.length===0?I.children.unshift(c):I.children[0].type===e.Declaration?I.children[0]=c:I.children.unshift(c),I.root()||I},o.prototype.dtd=function(i,p){var C,I,c,g,M,A,P,R,X,S;for(I=this.document(),c=new l(I,i,p),X=I.children,g=M=0,P=X.length;M<P;g=++M)if(C=X[g],C.type===e.DocType)return I.children[g]=c,c;for(S=I.children,g=A=0,R=S.length;A<R;g=++A)if(C=S[g],C.isRoot)return I.children.splice(g,0,c),c;return I.children.push(c),c},o.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},o.prototype.root=function(){var i;for(i=this;i;){if(i.type===e.Document)return i.rootObject;if(i.isRoot)return i;i=i.parent}},o.prototype.document=function(){var i;for(i=this;i;){if(i.type===e.Document)return i;i=i.parent}},o.prototype.end=function(i){return this.document().end(i)},o.prototype.prev=function(){var i;if(i=this.parent.children.indexOf(this),i<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[i-1]},o.prototype.next=function(){var i;if(i=this.parent.children.indexOf(this),i===-1||i===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[i+1]},o.prototype.importDocument=function(i){var p;return p=i.root().clone(),p.parent=this,p.isRoot=!1,this.children.push(p),this},o.prototype.debugInfo=function(i){var p,C;return i=i||this.name,i==null&&!((p=this.parent)!=null&&p.name)?"":i==null?"parent: <"+this.parent.name+">":(C=this.parent)!=null&&C.name?"node: <"+i+">, parent: <"+this.parent.name+">":"node: <"+i+">"},o.prototype.ele=function(i,p,C){return this.element(i,p,C)},o.prototype.nod=function(i,p,C){return this.node(i,p,C)},o.prototype.txt=function(i){return this.text(i)},o.prototype.dat=function(i){return this.cdata(i)},o.prototype.com=function(i){return this.comment(i)},o.prototype.ins=function(i,p){return this.instruction(i,p)},o.prototype.doc=function(){return this.document()},o.prototype.dec=function(i,p,C){return this.declaration(i,p,C)},o.prototype.e=function(i,p,C){return this.element(i,p,C)},o.prototype.n=function(i,p,C){return this.node(i,p,C)},o.prototype.t=function(i){return this.text(i)},o.prototype.d=function(i){return this.cdata(i)},o.prototype.c=function(i){return this.comment(i)},o.prototype.r=function(i){return this.raw(i)},o.prototype.i=function(i,p){return this.instruction(i,p)},o.prototype.u=function(){return this.up()},o.prototype.importXMLBuilder=function(i){return this.importDocument(i)},o.prototype.replaceChild=function(i,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.removeChild=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.appendChild=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.hasChildNodes=function(){return this.children.length!==0},o.prototype.cloneNode=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isSupported=function(i,p){return!0},o.prototype.hasAttributes=function(){return this.attribs.length!==0},o.prototype.compareDocumentPosition=function(i){var p,C;return p=this,p===i?0:this.document()!==i.document()?(C=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?C|=t.Preceding:C|=t.Following,C):p.isAncestor(i)?t.Contains|t.Preceding:p.isDescendant(i)?t.Contains|t.Following:p.isPreceding(i)?t.Preceding:t.Following},o.prototype.isSameNode=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.lookupPrefix=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isDefaultNamespace=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.lookupNamespaceURI=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(i){var p,C,I;if(i.nodeType!==this.nodeType||i.children.length!==this.children.length)return!1;for(p=C=0,I=this.children.length-1;0<=I?C<=I:C>=I;p=0<=I?++C:--C)if(!this.children[p].isEqualNode(i.children[p]))return!1;return!0},o.prototype.getFeature=function(i,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setUserData=function(i,p,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getUserData=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.contains=function(i){return i?i===this||this.isDescendant(i):!1},o.prototype.isDescendant=function(i){var p,C,I,c,g;for(g=this.children,I=0,c=g.length;I<c;I++)if(p=g[I],i===p||(C=p.isDescendant(i),C))return!0;return!1},o.prototype.isAncestor=function(i){return i.isDescendant(this)},o.prototype.isPreceding=function(i){var p,C;return p=this.treePosition(i),C=this.treePosition(this),p===-1||C===-1?!1:p<C},o.prototype.isFollowing=function(i){var p,C;return p=this.treePosition(i),C=this.treePosition(this),p===-1||C===-1?!1:p>C},o.prototype.treePosition=function(i){var p,C;return C=0,p=!1,this.foreachTreeNode(this.document(),function(I){if(C++,!p&&I===i)return p=!0}),p?C:-1},o.prototype.foreachTreeNode=function(i,p){var C,I,c,g,M;for(i||(i=this.document()),g=i.children,I=0,c=g.length;I<c;I++){if(C=g[I],M=p(C))return M;if(M=this.foreachTreeNode(C,p),M)return M}},o})()}).call(or)});var Gt=F((ar,ur)=>{"use strict";(function(){var t,e=function(d,n){return function(){return d.apply(n,arguments)}},u={}.hasOwnProperty;ur.exports=t=(function(){function d(n){this.assertLegalName=e(this.assertLegalName,this),this.assertLegalChar=e(this.assertLegalChar,this);var l,a,f;n||(n={}),this.options=n,this.options.version||(this.options.version="1.0"),a=n.stringify||{};for(l in a)u.call(a,l)&&(f=a[l],this[l]=f)}return d.prototype.name=function(n){return this.options.noValidation?n:this.assertLegalName(""+n||"")},d.prototype.text=function(n){return this.options.noValidation?n:this.assertLegalChar(this.textEscape(""+n||""))},d.prototype.cdata=function(n){return this.options.noValidation?n:(n=""+n||"",n=n.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(n))},d.prototype.comment=function(n){if(this.options.noValidation)return n;if(n=""+n||"",n.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+n);return this.assertLegalChar(n)},d.prototype.raw=function(n){return this.options.noValidation?n:""+n||""},d.prototype.attValue=function(n){return this.options.noValidation?n:this.assertLegalChar(this.attEscape(n=""+n||""))},d.prototype.insTarget=function(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")},d.prototype.insValue=function(n){if(this.options.noValidation)return n;if(n=""+n||"",n.match(/\?>/))throw new Error("Invalid processing instruction value: "+n);return this.assertLegalChar(n)},d.prototype.xmlVersion=function(n){if(this.options.noValidation)return n;if(n=""+n||"",!n.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+n);return n},d.prototype.xmlEncoding=function(n){if(this.options.noValidation)return n;if(n=""+n||"",!n.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+n);return this.assertLegalChar(n)},d.prototype.xmlStandalone=function(n){return this.options.noValidation?n:n?"yes":"no"},d.prototype.dtdPubID=function(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")},d.prototype.dtdSysID=function(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")},d.prototype.dtdElementValue=function(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")},d.prototype.dtdAttType=function(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")},d.prototype.dtdAttDefault=function(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")},d.prototype.dtdEntityValue=function(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")},d.prototype.dtdNData=function(n){return this.options.noValidation?n:this.assertLegalChar(""+n||"")},d.prototype.convertAttKey="@",d.prototype.convertPIKey="?",d.prototype.convertTextKey="#text",d.prototype.convertCDataKey="#cdata",d.prototype.convertCommentKey="#comment",d.prototype.convertRawKey="#raw",d.prototype.assertLegalChar=function(n){var l,a;if(this.options.noValidation)return n;if(l="",this.options.version==="1.0"){if(l=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=n.match(l))throw new Error("Invalid character in string: "+n+" at index "+a.index)}else if(this.options.version==="1.1"&&(l=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=n.match(l)))throw new Error("Invalid character in string: "+n+" at index "+a.index);return n},d.prototype.assertLegalName=function(n){var l;if(this.options.noValidation)return n;if(this.assertLegalChar(n),l=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!n.match(l))throw new Error("Invalid character in name");return n},d.prototype.textEscape=function(n){var l;return this.options.noValidation?n:(l=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,n.replace(l,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},d.prototype.attEscape=function(n){var l;return this.options.noValidation?n:(l=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,n.replace(l,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},d})()}).call(ar)});var mt=F((cr,lr)=>{"use strict";(function(){lr.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(cr)});var Yt=F((fr,hr)=>{"use strict";(function(){var t,e,u,d,n,l,a,f,h,w,D,O,b,y,T,N,x,v={}.hasOwnProperty;x=tt().assign,t=k(),h=Et(),w=Lt(),u=bt(),d=Dt(),O=Tt(),y=_t(),T=Mt(),b=vt(),D=kt(),n=Nt(),l=It(),a=Ot(),f=Ct(),e=mt(),hr.exports=N=(function(){function L(m){var o,i,p;m||(m={}),this.options=m,i=m.writer||{};for(o in i)v.call(i,o)&&(p=i[o],this["_"+o]=this[o],this[o]=p)}return L.prototype.filterOptions=function(m){var o,i,p,C,I,c,g,M;return m||(m={}),m=x({},this.options,m),o={writer:this},o.pretty=m.pretty||!1,o.allowEmpty=m.allowEmpty||!1,o.indent=(i=m.indent)!=null?i:" ",o.newline=(p=m.newline)!=null?p:`
|
|
3
|
+
`,o.offset=(C=m.offset)!=null?C:0,o.dontPrettyTextNodes=(I=(c=m.dontPrettyTextNodes)!=null?c:m.dontprettytextnodes)!=null?I:0,o.spaceBeforeSlash=(g=(M=m.spaceBeforeSlash)!=null?M:m.spacebeforeslash)!=null?g:"",o.spaceBeforeSlash===!0&&(o.spaceBeforeSlash=" "),o.suppressPrettyCount=0,o.user={},o.state=e.None,o},L.prototype.indent=function(m,o,i){var p;return!o.pretty||o.suppressPrettyCount?"":o.pretty&&(p=(i||0)+o.offset+1,p>0)?new Array(p).join(o.indent):""},L.prototype.endline=function(m,o,i){return!o.pretty||o.suppressPrettyCount?"":o.newline},L.prototype.attribute=function(m,o,i){var p;return this.openAttribute(m,o,i),p=" "+m.name+'="'+m.value+'"',this.closeAttribute(m,o,i),p},L.prototype.cdata=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i)+"<![CDATA[",o.state=e.InsideTag,p+=m.value,o.state=e.CloseTag,p+="]]>"+this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.comment=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i)+"<!-- ",o.state=e.InsideTag,p+=m.value,o.state=e.CloseTag,p+=" -->"+this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.declaration=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i)+"<?xml",o.state=e.InsideTag,p+=' version="'+m.version+'"',m.encoding!=null&&(p+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(p+=' standalone="'+m.standalone+'"'),o.state=e.CloseTag,p+=o.spaceBeforeSlash+"?>",p+=this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.docType=function(m,o,i){var p,C,I,c,g;if(i||(i=0),this.openNode(m,o,i),o.state=e.OpenTag,c=this.indent(m,o,i),c+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?c+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(c+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(c+=" [",c+=this.endline(m,o,i),o.state=e.InsideTag,g=m.children,C=0,I=g.length;C<I;C++)p=g[C],c+=this.writeChildNode(p,o,i+1);o.state=e.CloseTag,c+="]"}return o.state=e.CloseTag,c+=o.spaceBeforeSlash+">",c+=this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),c},L.prototype.element=function(m,o,i){var p,C,I,c,g,M,A,P,R,X,S,W,q,J;i||(i=0),X=!1,S="",this.openNode(m,o,i),o.state=e.OpenTag,S+=this.indent(m,o,i)+"<"+m.name,W=m.attribs;for(R in W)v.call(W,R)&&(p=W[R],S+=this.attribute(p,o,i));if(I=m.children.length,c=I===0?null:m.children[0],I===0||m.children.every(function(ht){return(ht.type===t.Text||ht.type===t.Raw)&&ht.value===""}))o.allowEmpty?(S+=">",o.state=e.CloseTag,S+="</"+m.name+">"+this.endline(m,o,i)):(o.state=e.CloseTag,S+=o.spaceBeforeSlash+"/>"+this.endline(m,o,i));else if(o.pretty&&I===1&&(c.type===t.Text||c.type===t.Raw)&&c.value!=null)S+=">",o.state=e.InsideTag,o.suppressPrettyCount++,X=!0,S+=this.writeChildNode(c,o,i+1),o.suppressPrettyCount--,X=!1,o.state=e.CloseTag,S+="</"+m.name+">"+this.endline(m,o,i);else{if(o.dontPrettyTextNodes){for(q=m.children,g=0,A=q.length;g<A;g++)if(C=q[g],(C.type===t.Text||C.type===t.Raw)&&C.value!=null){o.suppressPrettyCount++,X=!0;break}}for(S+=">"+this.endline(m,o,i),o.state=e.InsideTag,J=m.children,M=0,P=J.length;M<P;M++)C=J[M],S+=this.writeChildNode(C,o,i+1);o.state=e.CloseTag,S+=this.indent(m,o,i)+"</"+m.name+">",X&&o.suppressPrettyCount--,S+=this.endline(m,o,i),o.state=e.None}return this.closeNode(m,o,i),S},L.prototype.writeChildNode=function(m,o,i){switch(m.type){case t.CData:return this.cdata(m,o,i);case t.Comment:return this.comment(m,o,i);case t.Element:return this.element(m,o,i);case t.Raw:return this.raw(m,o,i);case t.Text:return this.text(m,o,i);case t.ProcessingInstruction:return this.processingInstruction(m,o,i);case t.Dummy:return"";case t.Declaration:return this.declaration(m,o,i);case t.DocType:return this.docType(m,o,i);case t.AttributeDeclaration:return this.dtdAttList(m,o,i);case t.ElementDeclaration:return this.dtdElement(m,o,i);case t.EntityDeclaration:return this.dtdEntity(m,o,i);case t.NotationDeclaration:return this.dtdNotation(m,o,i);default:throw new Error("Unknown XML node type: "+m.constructor.name)}},L.prototype.processingInstruction=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i)+"<?",o.state=e.InsideTag,p+=m.target,m.value&&(p+=" "+m.value),o.state=e.CloseTag,p+=o.spaceBeforeSlash+"?>",p+=this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.raw=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i),o.state=e.InsideTag,p+=m.value,o.state=e.CloseTag,p+=this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.text=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i),o.state=e.InsideTag,p+=m.value,o.state=e.CloseTag,p+=this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.dtdAttList=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i)+"<!ATTLIST",o.state=e.InsideTag,p+=" "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(p+=" "+m.defaultValueType),m.defaultValue&&(p+=' "'+m.defaultValue+'"'),o.state=e.CloseTag,p+=o.spaceBeforeSlash+">"+this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.dtdElement=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i)+"<!ELEMENT",o.state=e.InsideTag,p+=" "+m.name+" "+m.value,o.state=e.CloseTag,p+=o.spaceBeforeSlash+">"+this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.dtdEntity=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i)+"<!ENTITY",o.state=e.InsideTag,m.pe&&(p+=" %"),p+=" "+m.name,m.value?p+=' "'+m.value+'"':(m.pubID&&m.sysID?p+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(p+=' SYSTEM "'+m.sysID+'"'),m.nData&&(p+=" NDATA "+m.nData)),o.state=e.CloseTag,p+=o.spaceBeforeSlash+">"+this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.dtdNotation=function(m,o,i){var p;return this.openNode(m,o,i),o.state=e.OpenTag,p=this.indent(m,o,i)+"<!NOTATION",o.state=e.InsideTag,p+=" "+m.name,m.pubID&&m.sysID?p+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?p+=' PUBLIC "'+m.pubID+'"':m.sysID&&(p+=' SYSTEM "'+m.sysID+'"'),o.state=e.CloseTag,p+=o.spaceBeforeSlash+">"+this.endline(m,o,i),o.state=e.None,this.closeNode(m,o,i),p},L.prototype.openNode=function(m,o,i){},L.prototype.closeNode=function(m,o,i){},L.prototype.openAttribute=function(m,o,i){},L.prototype.closeAttribute=function(m,o,i){},L})()}).call(fr)});var xt=F((pr,dr)=>{"use strict";(function(){var t,e,u=function(n,l){for(var a in l)d.call(l,a)&&(n[a]=l[a]);function f(){this.constructor=n}return f.prototype=l.prototype,n.prototype=new f,n.__super__=l.prototype,n},d={}.hasOwnProperty;e=Yt(),dr.exports=t=(function(n){u(l,n);function l(a){l.__super__.constructor.call(this,a)}return l.prototype.document=function(a,f){var h,w,D,O,b;for(f=this.filterOptions(f),O="",b=a.children,w=0,D=b.length;w<D;w++)h=b[w],O+=this.writeChildNode(h,f,0);return f.pretty&&O.slice(-f.newline.length)===f.newline&&(O=O.slice(0,-f.newline.length)),O},l})(e)}).call(pr)});var Ht=F((mr,yr)=>{"use strict";(function(){var t,e,u,d,n,l,a,f,h=function(D,O){for(var b in O)w.call(O,b)&&(D[b]=O[b]);function y(){this.constructor=D}return y.prototype=O.prototype,D.prototype=new y,D.__super__=O.prototype,D},w={}.hasOwnProperty;f=tt().isPlainObject,u=Wt(),e=we(),n=K(),t=k(),a=Gt(),l=xt(),yr.exports=d=(function(D){h(O,D);function O(b){O.__super__.constructor.call(this,null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new e,b||(b={}),b.writer||(b.writer=new l),this.options=b,this.stringify=new a(b)}return Object.defineProperty(O.prototype,"implementation",{value:new u}),Object.defineProperty(O.prototype,"doctype",{get:function(){var b,y,T,N;for(N=this.children,y=0,T=N.length;y<T;y++)if(b=N[y],b.type===t.DocType)return b;return null}}),Object.defineProperty(O.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(O.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(O.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(O.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(O.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(O.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(O.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(O.prototype,"origin",{get:function(){return null}}),Object.defineProperty(O.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(O.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(O.prototype,"contentType",{get:function(){return null}}),O.prototype.end=function(b){var y;return y={},b?f(b)&&(y=b,b=this.options.writer):b=this.options.writer,b.document(this,b.filterOptions(y))},O.prototype.toString=function(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))},O.prototype.createElement=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createTextNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createComment=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createCDATASection=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createProcessingInstruction=function(b,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createAttribute=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createEntityReference=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.importNode=function(b,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createElementNS=function(b,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createAttributeNS=function(b,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByTagNameNS=function(b,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementById=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.adoptNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.renameNode=function(b,y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createEvent=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createNodeIterator=function(b,y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createTreeWalker=function(b,y,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},O})(n)}).call(mr)});var Tr=F((gr,wr)=>{"use strict";(function(){var t,e,u,d,n,l,a,f,h,w,D,O,b,y,T,N,x,v,L,m,o,i,p,C,I={}.hasOwnProperty;C=tt(),i=C.isObject,o=C.isFunction,p=C.isPlainObject,m=C.getValue,t=k(),O=Ht(),y=Tt(),d=bt(),n=Dt(),N=_t(),L=Mt(),T=vt(),w=Et(),D=Lt(),l=Nt(),f=Ot(),a=It(),h=Ct(),u=Vt(),v=Gt(),x=xt(),e=mt(),wr.exports=b=(function(){function c(g,M,A){var P;this.name="?xml",this.type=t.Document,g||(g={}),P={},g.writer?p(g.writer)&&(P=g.writer,g.writer=new x):g.writer=new x,this.options=g,this.writer=g.writer,this.writerOptions=this.writer.filterOptions(P),this.stringify=new v(g),this.onDataCallback=M||function(){},this.onEndCallback=A||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return c.prototype.createChildNode=function(g){var M,A,P,R,X,S,W,q;switch(g.type){case t.CData:this.cdata(g.value);break;case t.Comment:this.comment(g.value);break;case t.Element:P={},W=g.attribs;for(A in W)I.call(W,A)&&(M=W[A],P[A]=M.value);this.node(g.name,P);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(g.value);break;case t.Text:this.text(g.value);break;case t.ProcessingInstruction:this.instruction(g.target,g.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+g.constructor.name)}for(q=g.children,X=0,S=q.length;X<S;X++)R=q[X],this.createChildNode(R),R.type===t.Element&&this.up();return this},c.prototype.dummy=function(){return this},c.prototype.node=function(g,M,A){var P;if(g==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(g));return this.openCurrent(),g=m(g),M==null&&(M={}),M=m(M),i(M)||(P=[M,A],A=P[0],M=P[1]),this.currentNode=new y(this,g,M),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,A!=null&&this.text(A),this},c.prototype.element=function(g,M,A){var P,R,X,S,W,q;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(g)||i(g)||o(g))for(S=this.options.noValidation,this.options.noValidation=!0,q=new O(this.options).element("TEMP_ROOT"),q.element(g),this.options.noValidation=S,W=q.children,R=0,X=W.length;R<X;R++)P=W[R],this.createChildNode(P),P.type===t.Element&&this.up();else this.node(g,M,A);return this},c.prototype.attribute=function(g,M){var A,P;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(g));if(g!=null&&(g=m(g)),i(g))for(A in g)I.call(g,A)&&(P=g[A],this.attribute(A,P));else o(M)&&(M=M.apply()),this.options.keepNullAttributes&&M==null?this.currentNode.attribs[g]=new u(this,g,""):M!=null&&(this.currentNode.attribs[g]=new u(this,g,M));return this},c.prototype.text=function(g){var M;return this.openCurrent(),M=new L(this,g),this.onData(this.writer.text(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.prototype.cdata=function(g){var M;return this.openCurrent(),M=new d(this,g),this.onData(this.writer.cdata(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.prototype.comment=function(g){var M;return this.openCurrent(),M=new n(this,g),this.onData(this.writer.comment(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.prototype.raw=function(g){var M;return this.openCurrent(),M=new N(this,g),this.onData(this.writer.raw(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.prototype.instruction=function(g,M){var A,P,R,X,S;if(this.openCurrent(),g!=null&&(g=m(g)),M!=null&&(M=m(M)),Array.isArray(g))for(A=0,X=g.length;A<X;A++)P=g[A],this.instruction(P);else if(i(g))for(P in g)I.call(g,P)&&(R=g[P],this.instruction(P,R));else o(M)&&(M=M.apply()),S=new T(this,g,M),this.onData(this.writer.processingInstruction(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},c.prototype.declaration=function(g,M,A){var P;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return P=new w(this,g,M,A),this.onData(this.writer.declaration(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.prototype.doctype=function(g,M,A){if(this.openCurrent(),g==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new D(this,M,A),this.currentNode.rootNodeName=g,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},c.prototype.dtdElement=function(g,M){var A;return this.openCurrent(),A=new a(this,g,M),this.onData(this.writer.dtdElement(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.prototype.attList=function(g,M,A,P,R){var X;return this.openCurrent(),X=new l(this,g,M,A,P,R),this.onData(this.writer.dtdAttList(X,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.prototype.entity=function(g,M){var A;return this.openCurrent(),A=new f(this,!1,g,M),this.onData(this.writer.dtdEntity(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.prototype.pEntity=function(g,M){var A;return this.openCurrent(),A=new f(this,!0,g,M),this.onData(this.writer.dtdEntity(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.prototype.notation=function(g,M){var A;return this.openCurrent(),A=new h(this,g,M),this.onData(this.writer.dtdNotation(A,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},c.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},c.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},c.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},c.prototype.openNode=function(g){var M,A,P,R;if(!g.isOpen){if(!this.root&&this.currentLevel===0&&g.type===t.Element&&(this.root=g),A="",g.type===t.Element){this.writerOptions.state=e.OpenTag,A=this.writer.indent(g,this.writerOptions,this.currentLevel)+"<"+g.name,R=g.attribs;for(P in R)I.call(R,P)&&(M=R[P],A+=this.writer.attribute(M,this.writerOptions,this.currentLevel));A+=(g.children?">":"/>")+this.writer.endline(g,this.writerOptions,this.currentLevel),this.writerOptions.state=e.InsideTag}else this.writerOptions.state=e.OpenTag,A=this.writer.indent(g,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+g.rootNodeName,g.pubID&&g.sysID?A+=' PUBLIC "'+g.pubID+'" "'+g.sysID+'"':g.sysID&&(A+=' SYSTEM "'+g.sysID+'"'),g.children?(A+=" [",this.writerOptions.state=e.InsideTag):(this.writerOptions.state=e.CloseTag,A+=">"),A+=this.writer.endline(g,this.writerOptions,this.currentLevel);return this.onData(A,this.currentLevel),g.isOpen=!0}},c.prototype.closeNode=function(g){var M;if(!g.isClosed)return M="",this.writerOptions.state=e.CloseTag,g.type===t.Element?M=this.writer.indent(g,this.writerOptions,this.currentLevel)+"</"+g.name+">"+this.writer.endline(g,this.writerOptions,this.currentLevel):M=this.writer.indent(g,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(g,this.writerOptions,this.currentLevel),this.writerOptions.state=e.None,this.onData(M,this.currentLevel),g.isClosed=!0},c.prototype.onData=function(g,M){return this.documentStarted=!0,this.onDataCallback(g,M+1)},c.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},c.prototype.debugInfo=function(g){return g==null?"":"node: <"+g+">"},c.prototype.ele=function(){return this.element.apply(this,arguments)},c.prototype.nod=function(g,M,A){return this.node(g,M,A)},c.prototype.txt=function(g){return this.text(g)},c.prototype.dat=function(g){return this.cdata(g)},c.prototype.com=function(g){return this.comment(g)},c.prototype.ins=function(g,M){return this.instruction(g,M)},c.prototype.dec=function(g,M,A){return this.declaration(g,M,A)},c.prototype.dtd=function(g,M,A){return this.doctype(g,M,A)},c.prototype.e=function(g,M,A){return this.element(g,M,A)},c.prototype.n=function(g,M,A){return this.node(g,M,A)},c.prototype.t=function(g){return this.text(g)},c.prototype.d=function(g){return this.cdata(g)},c.prototype.c=function(g){return this.comment(g)},c.prototype.r=function(g){return this.raw(g)},c.prototype.i=function(g,M){return this.instruction(g,M)},c.prototype.att=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},c.prototype.a=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},c.prototype.ent=function(g,M){return this.entity(g,M)},c.prototype.pent=function(g,M){return this.pEntity(g,M)},c.prototype.not=function(g,M){return this.notation(g,M)},c})()}).call(gr)});var Er=F((br,Dr)=>{"use strict";(function(){var t,e,u,d,n=function(a,f){for(var h in f)l.call(f,h)&&(a[h]=f[h]);function w(){this.constructor=a}return w.prototype=f.prototype,a.prototype=new w,a.__super__=f.prototype,a},l={}.hasOwnProperty;t=k(),d=Yt(),e=mt(),Dr.exports=u=(function(a){n(f,a);function f(h,w){this.stream=h,f.__super__.constructor.call(this,w)}return f.prototype.endline=function(h,w,D){return h.isLastRootNode&&w.state===e.CloseTag?"":f.__super__.endline.call(this,h,w,D)},f.prototype.document=function(h,w){var D,O,b,y,T,N,x,v,L;for(x=h.children,O=b=0,T=x.length;b<T;O=++b)D=x[O],D.isLastRootNode=O===h.children.length-1;for(w=this.filterOptions(w),v=h.children,L=[],y=0,N=v.length;y<N;y++)D=v[y],L.push(this.writeChildNode(D,w,0));return L},f.prototype.attribute=function(h,w,D){return this.stream.write(f.__super__.attribute.call(this,h,w,D))},f.prototype.cdata=function(h,w,D){return this.stream.write(f.__super__.cdata.call(this,h,w,D))},f.prototype.comment=function(h,w,D){return this.stream.write(f.__super__.comment.call(this,h,w,D))},f.prototype.declaration=function(h,w,D){return this.stream.write(f.__super__.declaration.call(this,h,w,D))},f.prototype.docType=function(h,w,D){var O,b,y,T;if(D||(D=0),this.openNode(h,w,D),w.state=e.OpenTag,this.stream.write(this.indent(h,w,D)),this.stream.write("<!DOCTYPE "+h.root().name),h.pubID&&h.sysID?this.stream.write(' PUBLIC "'+h.pubID+'" "'+h.sysID+'"'):h.sysID&&this.stream.write(' SYSTEM "'+h.sysID+'"'),h.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(h,w,D)),w.state=e.InsideTag,T=h.children,b=0,y=T.length;b<y;b++)O=T[b],this.writeChildNode(O,w,D+1);w.state=e.CloseTag,this.stream.write("]")}return w.state=e.CloseTag,this.stream.write(w.spaceBeforeSlash+">"),this.stream.write(this.endline(h,w,D)),w.state=e.None,this.closeNode(h,w,D)},f.prototype.element=function(h,w,D){var O,b,y,T,N,x,v,L,m,o;D||(D=0),this.openNode(h,w,D),w.state=e.OpenTag,this.stream.write(this.indent(h,w,D)+"<"+h.name),m=h.attribs;for(v in m)l.call(m,v)&&(O=m[v],this.attribute(O,w,D));if(y=h.children.length,T=y===0?null:h.children[0],y===0||h.children.every(function(i){return(i.type===t.Text||i.type===t.Raw)&&i.value===""}))w.allowEmpty?(this.stream.write(">"),w.state=e.CloseTag,this.stream.write("</"+h.name+">")):(w.state=e.CloseTag,this.stream.write(w.spaceBeforeSlash+"/>"));else if(w.pretty&&y===1&&(T.type===t.Text||T.type===t.Raw)&&T.value!=null)this.stream.write(">"),w.state=e.InsideTag,w.suppressPrettyCount++,L=!0,this.writeChildNode(T,w,D+1),w.suppressPrettyCount--,L=!1,w.state=e.CloseTag,this.stream.write("</"+h.name+">");else{for(this.stream.write(">"+this.endline(h,w,D)),w.state=e.InsideTag,o=h.children,N=0,x=o.length;N<x;N++)b=o[N],this.writeChildNode(b,w,D+1);w.state=e.CloseTag,this.stream.write(this.indent(h,w,D)+"</"+h.name+">")}return this.stream.write(this.endline(h,w,D)),w.state=e.None,this.closeNode(h,w,D)},f.prototype.processingInstruction=function(h,w,D){return this.stream.write(f.__super__.processingInstruction.call(this,h,w,D))},f.prototype.raw=function(h,w,D){return this.stream.write(f.__super__.raw.call(this,h,w,D))},f.prototype.text=function(h,w,D){return this.stream.write(f.__super__.text.call(this,h,w,D))},f.prototype.dtdAttList=function(h,w,D){return this.stream.write(f.__super__.dtdAttList.call(this,h,w,D))},f.prototype.dtdElement=function(h,w,D){return this.stream.write(f.__super__.dtdElement.call(this,h,w,D))},f.prototype.dtdEntity=function(h,w,D){return this.stream.write(f.__super__.dtdEntity.call(this,h,w,D))},f.prototype.dtdNotation=function(h,w,D){return this.stream.write(f.__super__.dtdNotation.call(this,h,w,D))},f})(d)}).call(br)});var Or=F((Nr,at)=>{"use strict";(function(){var t,e,u,d,n,l,a,f,h,w;w=tt(),f=w.assign,h=w.isFunction,u=Wt(),d=Ht(),n=Tr(),a=xt(),l=Er(),t=k(),e=mt(),at.exports.create=function(D,O,b,y){var T,N;if(D==null)throw new Error("Root element needs a name.");return y=f({},O,b,y),T=new d(y),N=T.element(D),y.headless||(T.declaration(y),(y.pubID!=null||y.sysID!=null)&&T.dtd(y)),N},at.exports.begin=function(D,O,b){var y;return h(D)&&(y=[D,O],O=y[0],b=y[1],D={}),O?new n(D,O,b):new d(D)},at.exports.stringWriter=function(D){return new a(D)},at.exports.streamWriter=function(D,O){return new l(D,O)},at.exports.implementation=new u,at.exports.nodeType=t,at.exports.writerState=e}).call(Nr)});var Ir=F($t=>{"use strict";(function(){"use strict";var t,e,u,d,n,l={}.hasOwnProperty;t=Or(),e=gt().defaults,d=function(a){return typeof a=="string"&&(a.indexOf("&")>=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},n=function(a){return"<![CDATA["+u(a)+"]]>"},u=function(a){return a.replace("]]>","]]]]><![CDATA[>")},$t.Builder=(function(){function a(f){var h,w,D;this.options={},w=e["0.2"];for(h in w)l.call(w,h)&&(D=w[h],this.options[h]=D);for(h in f)l.call(f,h)&&(D=f[h],this.options[h]=D)}return a.prototype.buildObject=function(f){var h,w,D,O,b;return h=this.options.attrkey,w=this.options.charkey,Object.keys(f).length===1&&this.options.rootName===e["0.2"].rootName?(b=Object.keys(f)[0],f=f[b]):b=this.options.rootName,D=(function(y){return function(T,N){var x,v,L,m,o,i;if(typeof N!="object")y.options.cdata&&d(N)?T.raw(n(N)):T.txt(N);else if(Array.isArray(N)){for(m in N)if(l.call(N,m)){v=N[m];for(o in v)L=v[o],T=D(T.ele(o),L).up()}}else for(o in N)if(l.call(N,o))if(v=N[o],o===h){if(typeof v=="object")for(x in v)i=v[x],T=T.att(x,i)}else if(o===w)y.options.cdata&&d(v)?T=T.raw(n(v)):T=T.txt(v);else if(Array.isArray(v))for(m in v)l.call(v,m)&&(L=v[m],typeof L=="string"?y.options.cdata&&d(L)?T=T.ele(o).raw(n(L)).up():T=T.ele(o,L).up():T=D(T.ele(o),L).up());else typeof v=="object"?T=D(T.ele(o),v).up():typeof v=="string"&&y.options.cdata&&d(v)?T=T.ele(o).raw(n(v)).up():(v==null&&(v=""),T=T.ele(o,v.toString()).up());return T}})(this),O=t.create(b,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),D(O,f).end(this.options.renderOpts)},a})()}).call($t)});var Cr=F((Un,zt)=>{"use strict";function H(t){if(t)return mn(t);this._callbacks=new Map}function mn(t){return Object.assign(t,H.prototype),t._callbacks=new Map,t}H.prototype.on=function(t,e){let u=this._callbacks.get(t)??[];return u.push(e),this._callbacks.set(t,u),this};H.prototype.once=function(t,e){let u=(...d)=>{this.off(t,u),e.apply(this,d)};return u.fn=e,this.on(t,u),this};H.prototype.off=function(t,e){if(t===void 0&&e===void 0)return this._callbacks.clear(),this;if(e===void 0)return this._callbacks.delete(t),this;let u=this._callbacks.get(t);if(u){for(let[d,n]of u.entries())if(n===e||n.fn===e){u.splice(d,1);break}u.length===0?this._callbacks.delete(t):this._callbacks.set(t,u)}return this};H.prototype.emit=function(t,...e){let u=this._callbacks.get(t);if(u){let d=[...u];for(let n of d)n.apply(this,e)}return this};H.prototype.listeners=function(t){return this._callbacks.get(t)??[]};H.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(let u of this._callbacks.values())e+=u.length;return e};H.prototype.hasListeners=function(t){return this.listenerCount(t)>0};H.prototype.addEventListener=H.prototype.on;H.prototype.removeListener=H.prototype.off;H.prototype.removeEventListener=H.prototype.off;H.prototype.removeAllListeners=H.prototype.off;typeof zt<"u"&&(zt.exports=H)});var Mr=F((Wn,_r)=>{"use strict";var Lr=Cr();function yt(){Lr.call(this)}yt.prototype=new Lr;_r.exports=yt;yt.Stream=yt;yt.prototype.pipe=function(t,e){var u=this;function d(D){t.writable&&t.write(D)===!1&&u.pause&&u.pause()}u.on("data",d);function n(){u.readable&&u.resume&&u.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(u.on("end",a),u.on("close",f));var l=!1;function a(){l||(l=!0,t.end())}function f(){l||(l=!0,typeof t.destroy=="function"&&t.destroy())}function h(D){if(w(),!this.hasListeners("error"))throw D}u.on("error",h),t.on("error",h);function w(){u.off("data",d),t.off("drain",n),u.off("end",a),u.off("close",f),u.off("error",h),t.off("error",h),u.off("end",w),u.off("close",w),t.off("end",w),t.off("close",w)}return u.on("end",w),u.on("close",w),t.on("end",w),t.on("close",w),t.emit("pipe",u),t}});var vr=F(At=>{"use strict";(function(t){t.parser=function(s,r){return new u(s,r)},t.SAXParser=u,t.SAXStream=D,t.createStream=h,t.MAX_BUFFER_LENGTH=64*1024;var e=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function u(s,r){if(!(this instanceof u))return new u(s,r);var _=this;n(_),_.q=_.c="",_.bufferCheckPosition=t.MAX_BUFFER_LENGTH,_.encoding=null,_.opt=r||{},_.opt.lowercase=_.opt.lowercase||_.opt.lowercasetags,_.looseCase=_.opt.lowercase?"toLowerCase":"toUpperCase",_.opt.maxEntityCount=_.opt.maxEntityCount||512,_.opt.maxEntityDepth=_.opt.maxEntityDepth||4,_.entityCount=_.entityDepth=0,_.tags=[],_.closed=_.closedRoot=_.sawRoot=!1,_.tag=_.error=null,_.strict=!!s,_.noscript=!!(s||_.opt.noscript),_.state=c.BEGIN,_.strictEntities=_.opt.strictEntities,_.ENTITIES=_.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),_.attribList=[],_.opt.xmlns&&(_.ns=Object.create(N)),_.opt.unquotedAttributeValues===void 0&&(_.opt.unquotedAttributeValues=!s),_.trackPosition=_.opt.position!==!1,_.trackPosition&&(_.position=_.line=_.column=0),M(_,"onready")}Object.create||(Object.create=function(s){function r(){}r.prototype=s;var _=new r;return _}),Object.keys||(Object.keys=function(s){var r=[];for(var _ in s)s.hasOwnProperty(_)&&r.push(_);return r});function d(s){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),_=0,E=0,j=e.length;E<j;E++){var V=s[e[E]].length;if(V>r)switch(e[E]){case"textNode":W(s);break;case"cdata":S(s,"oncdata",s.cdata),s.cdata="";break;case"script":S(s,"onscript",s.script),s.script="";break;default:J(s,"Max buffer length exceeded: "+e[E])}_=Math.max(_,V)}var G=t.MAX_BUFFER_LENGTH-_;s.bufferCheckPosition=G+s.position}function n(s){for(var r=0,_=e.length;r<_;r++)s[e[r]]=""}function l(s){W(s),s.cdata!==""&&(S(s,"oncdata",s.cdata),s.cdata=""),s.script!==""&&(S(s,"onscript",s.script),s.script="")}u.prototype={end:function(){ht(this)},write:nn,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){l(this)}};var a;try{a=Mr().Stream}catch{a=function(){}}a||(a=function(){});var f=t.EVENTS.filter(function(s){return s!=="error"&&s!=="end"});function h(s,r){return new D(s,r)}function w(s,r){if(s.length>=2){if(s[0]===255&&s[1]===254)return"utf-16le";if(s[0]===254&&s[1]===255)return"utf-16be"}return s.length>=3&&s[0]===239&&s[1]===187&&s[2]===191?"utf8":s.length>=4?s[0]===60&&s[1]===0&&s[2]===63&&s[3]===0?"utf-16le":s[0]===0&&s[1]===60&&s[2]===0&&s[3]===63?"utf-16be":"utf8":r?"utf8":null}function D(s,r){if(!(this instanceof D))return new D(s,r);a.apply(this),this._parser=new u(s,r),this.writable=!0,this.readable=!0;var _=this;this._parser.onend=function(){_.emit("end")},this._parser.onerror=function(E){_.emit("error",E),_._parser.error=null},this._decoder=null,this._decoderBuffer=null,f.forEach(function(E){Object.defineProperty(_,"on"+E,{get:function(){return _._parser["on"+E]},set:function(j){if(!j)return _.removeAllListeners(E),_._parser["on"+E]=j,j;_.on(E,j)},enumerable:!0,configurable:!1})})}D.prototype=Object.create(a.prototype,{constructor:{value:D}}),D.prototype._decodeBuffer=function(s,r){if(this._decoderBuffer&&(s=Buffer.concat([this._decoderBuffer,s]),this._decoderBuffer=null),!this._decoder){var _=w(s,r);if(!_)return this._decoderBuffer=s,"";this._parser.encoding=_,this._decoder=new TextDecoder(_)}return this._decoder.decode(s,{stream:!r})},D.prototype.write=function(s){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(s))s=this._decodeBuffer(s,!1);else if(this._decoderBuffer){var r=this._decodeBuffer(Buffer.alloc(0),!0);r&&(this._parser.write(r),this.emit("data",r))}return this._parser.write(s.toString()),this.emit("data",s),!0},D.prototype.end=function(s){if(s&&s.length&&this.write(s),this._decoderBuffer){var r=this._decodeBuffer(Buffer.alloc(0),!0);r&&(this._parser.write(r),this.emit("data",r))}else if(this._decoder){var _=this._decoder.decode();_&&(this._parser.write(_),this.emit("data",_))}return this._parser.end(),!0},D.prototype.on=function(s,r){var _=this;return!_._parser["on"+s]&&f.indexOf(s)!==-1&&(_._parser["on"+s]=function(){var E=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);E.splice(0,0,s),_.emit.apply(_,E)}),a.prototype.on.call(_,s,r)};var O="[CDATA[",b="DOCTYPE",y="http://www.w3.org/XML/1998/namespace",T="http://www.w3.org/2000/xmlns/",N={xml:y,xmlns:T},x=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,L=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function o(s){return s===" "||s===`
|
|
4
|
+
`||s==="\r"||s===" "}function i(s){return s==='"'||s==="'"}function p(s){return s===">"||o(s)}function C(s,r){return s.test(r)}function I(s,r){return!C(s,r)}var c=0;t.STATE={BEGIN:c++,BEGIN_WHITESPACE:c++,TEXT:c++,TEXT_ENTITY:c++,OPEN_WAKA:c++,SGML_DECL:c++,SGML_DECL_QUOTED:c++,DOCTYPE:c++,DOCTYPE_QUOTED:c++,DOCTYPE_DTD:c++,DOCTYPE_DTD_QUOTED:c++,COMMENT_STARTING:c++,COMMENT:c++,COMMENT_ENDING:c++,COMMENT_ENDED:c++,CDATA:c++,CDATA_ENDING:c++,CDATA_ENDING_2:c++,PROC_INST:c++,PROC_INST_BODY:c++,PROC_INST_ENDING:c++,OPEN_TAG:c++,OPEN_TAG_SLASH:c++,ATTRIB:c++,ATTRIB_NAME:c++,ATTRIB_NAME_SAW_WHITE:c++,ATTRIB_VALUE:c++,ATTRIB_VALUE_QUOTED:c++,ATTRIB_VALUE_CLOSED:c++,ATTRIB_VALUE_UNQUOTED:c++,ATTRIB_VALUE_ENTITY_Q:c++,ATTRIB_VALUE_ENTITY_U:c++,CLOSE_TAG:c++,CLOSE_TAG_SAW_WHITE:c++,SCRIPT:c++,SCRIPT_ENDING:c++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(s){var r=t.ENTITIES[s],_=typeof r=="number"?String.fromCharCode(r):r;t.ENTITIES[s]=_});for(var g in t.STATE)t.STATE[t.STATE[g]]=g;c=t.STATE;function M(s,r,_){s[r]&&s[r](_)}function A(s){var r=s&&s.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);return r?r[2]:null}function P(s){return s?s.toLowerCase().replace(/[^a-z0-9]/g,""):null}function R(s,r){let _=P(s),E=P(r);return!_||!E?!0:E==="utf16"?_==="utf16le"||_==="utf16be":_===E}function X(s,r){if(!(!s.strict||!s.encoding||!r||r.name!=="xml")){var _=A(r.body);_&&!R(s.encoding,_)&&B(s,"XML declaration encoding "+_+" does not match detected stream encoding "+s.encoding.toUpperCase())}}function S(s,r,_){s.textNode&&W(s),M(s,r,_)}function W(s){s.textNode=q(s.opt,s.textNode),s.textNode&&M(s,"ontext",s.textNode),s.textNode=""}function q(s,r){return s.trim&&(r=r.trim()),s.normalize&&(r=r.replace(/\s+/g," ")),r}function J(s,r){return W(s),s.trackPosition&&(r+=`
|
|
5
|
+
Line: `+s.line+`
|
|
6
|
+
Column: `+s.column+`
|
|
7
|
+
Char: `+s.c),r=new Error(r),s.error=r,M(s,"onerror",r),s}function ht(s){return s.sawRoot&&!s.closedRoot&&B(s,"Unclosed root tag"),s.state!==c.BEGIN&&s.state!==c.BEGIN_WHITESPACE&&s.state!==c.TEXT&&J(s,"Unexpected end"),W(s),s.c="",s.closed=!0,M(s,"onend"),u.call(s,s.strict,s.opt),s}function B(s,r){if(typeof s!="object"||!(s instanceof u))throw new Error("bad call to strictFail");s.strict&&J(s,r)}function en(s){s.strict||(s.tagName=s.tagName[s.looseCase]());var r=s.tags[s.tags.length-1]||s,_=s.tag={name:s.tagName,attributes:{}};s.opt.xmlns&&(_.ns=r.ns),s.attribList.length=0,S(s,"onopentagstart",_)}function Ft(s,r){var _=s.indexOf(":"),E=_<0?["",s]:s.split(":"),j=E[0],V=E[1];return r&&s==="xmlns"&&(j="xmlns",V=""),{prefix:j,local:V}}function Rt(s){if(s.strict||(s.attribName=s.attribName[s.looseCase]()),s.attribList.indexOf(s.attribName)!==-1||s.tag.attributes.hasOwnProperty(s.attribName)){s.attribName=s.attribValue="";return}if(s.opt.xmlns){var r=Ft(s.attribName,!0),_=r.prefix,E=r.local;if(_==="xmlns")if(E==="xml"&&s.attribValue!==y)B(s,"xml: prefix must be bound to "+y+`
|
|
8
|
+
Actual: `+s.attribValue);else if(E==="xmlns"&&s.attribValue!==T)B(s,"xmlns: prefix must be bound to "+T+`
|
|
9
|
+
Actual: `+s.attribValue);else{var j=s.tag,V=s.tags[s.tags.length-1]||s;j.ns===V.ns&&(j.ns=Object.create(V.ns)),j.ns[E]=s.attribValue}s.attribList.push([s.attribName,s.attribValue])}else s.tag.attributes[s.attribName]=s.attribValue,S(s,"onattribute",{name:s.attribName,value:s.attribValue});s.attribName=s.attribValue=""}function ut(s,r){if(s.opt.xmlns){var _=s.tag,E=Ft(s.tagName);_.prefix=E.prefix,_.local=E.local,_.uri=_.ns[E.prefix]||"",_.prefix&&!_.uri&&(B(s,"Unbound namespace prefix: "+JSON.stringify(s.tagName)),_.uri=E.prefix);var j=s.tags[s.tags.length-1]||s;_.ns&&j.ns!==_.ns&&Object.keys(_.ns).forEach(function(oe){S(s,"onopennamespace",{prefix:oe,uri:_.ns[oe]})});for(var V=0,G=s.attribList.length;V<G;V++){var $=s.attribList[V],z=$[0],et=$[1],Y=Ft(z,!0),rt=Y.prefix,on=Y.local,ie=rt===""?"":_.ns[rt]||"",jt={name:z,value:et,prefix:rt,local:on,uri:ie};rt&&rt!=="xmlns"&&!ie&&(B(s,"Unbound namespace prefix: "+JSON.stringify(rt)),jt.uri=rt),s.tag.attributes[z]=jt,S(s,"onattribute",jt)}s.attribList.length=0}s.tag.isSelfClosing=!!r,s.sawRoot=!0,s.tags.push(s.tag),S(s,"onopentag",s.tag),r||(!s.noscript&&s.tagName.toLowerCase()==="script"?s.state=c.SCRIPT:s.state=c.TEXT,s.tag=null,s.tagName=""),s.attribName=s.attribValue="",s.attribList.length=0}function Xt(s){if(!s.tagName){B(s,"Weird empty close tag."),s.textNode+="</>",s.state=c.TEXT;return}if(s.script){if(s.tagName!=="script"){s.script+="</"+s.tagName+">",s.tagName="",s.state=c.SCRIPT;return}S(s,"onscript",s.script),s.script=""}var r=s.tags.length,_=s.tagName;s.strict||(_=_[s.looseCase]());for(var E=_;r--;){var j=s.tags[r];if(j.name!==E)B(s,"Unexpected close tag");else break}if(r<0){B(s,"Unmatched closing tag: "+s.tagName),s.textNode+="</"+s.tagName+">",s.state=c.TEXT;return}s.tagName=_;for(var V=s.tags.length;V-- >r;){var G=s.tag=s.tags.pop();s.tagName=s.tag.name,S(s,"onclosetag",s.tagName);var $={};for(var z in G.ns)$[z]=G.ns[z];var et=s.tags[s.tags.length-1]||s;s.opt.xmlns&&G.ns!==et.ns&&Object.keys(G.ns).forEach(function(Y){var rt=G.ns[Y];S(s,"onclosenamespace",{prefix:Y,uri:rt})})}r===0&&(s.closedRoot=!0),s.tagName=s.attribValue=s.attribName="",s.attribList.length=0,s.state=c.TEXT}function rn(s){var r=s.entity,_=r.toLowerCase(),E,j="";return s.ENTITIES[r]?s.ENTITIES[r]:s.ENTITIES[_]?s.ENTITIES[_]:(r=_,r.charAt(0)==="#"&&(r.charAt(1)==="x"?(r=r.slice(2),E=parseInt(r,16),j=E.toString(16)):(r=r.slice(1),E=parseInt(r,10),j=E.toString(10))),r=r.replace(/^0+/,""),isNaN(E)||j.toLowerCase()!==r||E<0||E>1114111?(B(s,"Invalid character entity"),"&"+s.entity+";"):String.fromCodePoint(E))}function ne(s,r){r==="<"?(s.state=c.OPEN_WAKA,s.startTagPosition=s.position):o(r)||(B(s,"Non-whitespace before first tag."),s.textNode=r,s.state=c.TEXT)}function qt(s,r){var _="";return r<s.length&&(_=s.charAt(r)),_}function nn(s){var r=this;if(this.error)throw this.error;if(r.closed)return J(r,"Cannot write after close. Assign an onready handler.");if(s===null)return ht(r);typeof s=="object"&&(s=s.toString());for(var _=0,E="";E=qt(s,_++),r.c=E,!!E;)switch(r.trackPosition&&(r.position++,E===`
|
|
10
|
+
`?(r.line++,r.column=0):r.column++),r.state){case c.BEGIN:if(r.state=c.BEGIN_WHITESPACE,E==="\uFEFF")continue;ne(r,E);continue;case c.BEGIN_WHITESPACE:ne(r,E);continue;case c.TEXT:if(r.sawRoot&&!r.closedRoot){for(var V=_-1;E&&E!=="<"&&E!=="&";)E=qt(s,_++),E&&r.trackPosition&&(r.position++,E===`
|
|
11
|
+
`?(r.line++,r.column=0):r.column++);r.textNode+=s.substring(V,_-1)}E==="<"&&!(r.sawRoot&&r.closedRoot&&!r.strict)?(r.state=c.OPEN_WAKA,r.startTagPosition=r.position):(!o(E)&&(!r.sawRoot||r.closedRoot)&&B(r,"Text data outside of root node."),E==="&"?r.state=c.TEXT_ENTITY:r.textNode+=E);continue;case c.SCRIPT:E==="<"?r.state=c.SCRIPT_ENDING:r.script+=E;continue;case c.SCRIPT_ENDING:E==="/"?r.state=c.CLOSE_TAG:(r.script+="<"+E,r.state=c.SCRIPT);continue;case c.OPEN_WAKA:if(E==="!")r.state=c.SGML_DECL,r.sgmlDecl="";else if(!o(E))if(C(x,E))r.state=c.OPEN_TAG,r.tagName=E;else if(E==="/")r.state=c.CLOSE_TAG,r.tagName="";else if(E==="?")r.state=c.PROC_INST,r.procInstName=r.procInstBody="";else{if(B(r,"Unencoded <"),r.startTagPosition+1<r.position){var j=r.position-r.startTagPosition;E=new Array(j).join(" ")+E}r.textNode+="<"+E,r.state=c.TEXT}continue;case c.SGML_DECL:if(r.sgmlDecl+E==="--"){r.state=c.COMMENT,r.comment="",r.sgmlDecl="";continue}r.doctype&&r.doctype!==!0&&r.sgmlDecl?(r.state=c.DOCTYPE_DTD,r.doctype+="<!"+r.sgmlDecl+E,r.sgmlDecl=""):(r.sgmlDecl+E).toUpperCase()===O?(S(r,"onopencdata"),r.state=c.CDATA,r.sgmlDecl="",r.cdata=""):(r.sgmlDecl+E).toUpperCase()===b?(r.state=c.DOCTYPE,(r.doctype||r.sawRoot)&&B(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):E===">"?(S(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=c.TEXT):(i(E)&&(r.state=c.SGML_DECL_QUOTED),r.sgmlDecl+=E);continue;case c.SGML_DECL_QUOTED:E===r.q&&(r.state=c.SGML_DECL,r.q=""),r.sgmlDecl+=E;continue;case c.DOCTYPE:E===">"?(r.state=c.TEXT,S(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=E,E==="["?r.state=c.DOCTYPE_DTD:i(E)&&(r.state=c.DOCTYPE_QUOTED,r.q=E));continue;case c.DOCTYPE_QUOTED:r.doctype+=E,E===r.q&&(r.q="",r.state=c.DOCTYPE);continue;case c.DOCTYPE_DTD:E==="]"?(r.doctype+=E,r.state=c.DOCTYPE):E==="<"?(r.state=c.OPEN_WAKA,r.startTagPosition=r.position):i(E)?(r.doctype+=E,r.state=c.DOCTYPE_DTD_QUOTED,r.q=E):r.doctype+=E;continue;case c.DOCTYPE_DTD_QUOTED:r.doctype+=E,E===r.q&&(r.state=c.DOCTYPE_DTD,r.q="");continue;case c.COMMENT:E==="-"?r.state=c.COMMENT_ENDING:r.comment+=E;continue;case c.COMMENT_ENDING:E==="-"?(r.state=c.COMMENT_ENDED,r.comment=q(r.opt,r.comment),r.comment&&S(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+E,r.state=c.COMMENT);continue;case c.COMMENT_ENDED:E!==">"?(B(r,"Malformed comment"),r.comment+="--"+E,r.state=c.COMMENT):r.doctype&&r.doctype!==!0?r.state=c.DOCTYPE_DTD:r.state=c.TEXT;continue;case c.CDATA:for(var V=_-1;E&&E!=="]";)E=qt(s,_++),E&&r.trackPosition&&(r.position++,E===`
|
|
12
|
+
`?(r.line++,r.column=0):r.column++);r.cdata+=s.substring(V,_-1),E==="]"&&(r.state=c.CDATA_ENDING);continue;case c.CDATA_ENDING:E==="]"?r.state=c.CDATA_ENDING_2:(r.cdata+="]"+E,r.state=c.CDATA);continue;case c.CDATA_ENDING_2:E===">"?(r.cdata&&S(r,"oncdata",r.cdata),S(r,"onclosecdata"),r.cdata="",r.state=c.TEXT):E==="]"?r.cdata+="]":(r.cdata+="]]"+E,r.state=c.CDATA);continue;case c.PROC_INST:E==="?"?r.state=c.PROC_INST_ENDING:o(E)?r.state=c.PROC_INST_BODY:r.procInstName+=E;continue;case c.PROC_INST_BODY:if(!r.procInstBody&&o(E))continue;E==="?"?r.state=c.PROC_INST_ENDING:r.procInstBody+=E;continue;case c.PROC_INST_ENDING:if(E===">"){let et={name:r.procInstName,body:r.procInstBody};X(r,et),S(r,"onprocessinginstruction",et),r.procInstName=r.procInstBody="",r.state=c.TEXT}else r.procInstBody+="?"+E,r.state=c.PROC_INST_BODY;continue;case c.OPEN_TAG:C(v,E)?r.tagName+=E:(en(r),E===">"?ut(r):E==="/"?r.state=c.OPEN_TAG_SLASH:(o(E)||B(r,"Invalid character in tag name"),r.state=c.ATTRIB));continue;case c.OPEN_TAG_SLASH:E===">"?(ut(r,!0),Xt(r)):(B(r,"Forward-slash in opening tag not followed by >"),r.state=c.ATTRIB);continue;case c.ATTRIB:if(o(E))continue;E===">"?ut(r):E==="/"?r.state=c.OPEN_TAG_SLASH:C(x,E)?(r.attribName=E,r.attribValue="",r.state=c.ATTRIB_NAME):B(r,"Invalid attribute name");continue;case c.ATTRIB_NAME:E==="="?r.state=c.ATTRIB_VALUE:E===">"?(B(r,"Attribute without value"),r.attribValue=r.attribName,Rt(r),ut(r)):o(E)?r.state=c.ATTRIB_NAME_SAW_WHITE:C(v,E)?r.attribName+=E:B(r,"Invalid attribute name");continue;case c.ATTRIB_NAME_SAW_WHITE:if(E==="=")r.state=c.ATTRIB_VALUE;else{if(o(E))continue;B(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",S(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",E===">"?ut(r):C(x,E)?(r.attribName=E,r.state=c.ATTRIB_NAME):(B(r,"Invalid attribute name"),r.state=c.ATTRIB)}continue;case c.ATTRIB_VALUE:if(o(E))continue;i(E)?(r.q=E,r.state=c.ATTRIB_VALUE_QUOTED):(r.opt.unquotedAttributeValues||J(r,"Unquoted attribute value"),r.state=c.ATTRIB_VALUE_UNQUOTED,r.attribValue=E);continue;case c.ATTRIB_VALUE_QUOTED:if(E!==r.q){E==="&"?r.state=c.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=E;continue}Rt(r),r.q="",r.state=c.ATTRIB_VALUE_CLOSED;continue;case c.ATTRIB_VALUE_CLOSED:o(E)?r.state=c.ATTRIB:E===">"?ut(r):E==="/"?r.state=c.OPEN_TAG_SLASH:C(x,E)?(B(r,"No whitespace between attributes"),r.attribName=E,r.attribValue="",r.state=c.ATTRIB_NAME):B(r,"Invalid attribute name");continue;case c.ATTRIB_VALUE_UNQUOTED:if(!p(E)){E==="&"?r.state=c.ATTRIB_VALUE_ENTITY_U:r.attribValue+=E;continue}Rt(r),E===">"?ut(r):r.state=c.ATTRIB;continue;case c.CLOSE_TAG:if(r.tagName)E===">"?Xt(r):C(v,E)?r.tagName+=E:r.script?(r.script+="</"+r.tagName+E,r.tagName="",r.state=c.SCRIPT):(o(E)||B(r,"Invalid tagname in closing tag"),r.state=c.CLOSE_TAG_SAW_WHITE);else{if(o(E))continue;I(x,E)?r.script?(r.script+="</"+E,r.state=c.SCRIPT):B(r,"Invalid tagname in closing tag."):r.tagName=E}continue;case c.CLOSE_TAG_SAW_WHITE:if(o(E))continue;E===">"?Xt(r):B(r,"Invalid characters in closing tag");continue;case c.TEXT_ENTITY:case c.ATTRIB_VALUE_ENTITY_Q:case c.ATTRIB_VALUE_ENTITY_U:var G,$;switch(r.state){case c.TEXT_ENTITY:G=c.TEXT,$="textNode";break;case c.ATTRIB_VALUE_ENTITY_Q:G=c.ATTRIB_VALUE_QUOTED,$="attribValue";break;case c.ATTRIB_VALUE_ENTITY_U:G=c.ATTRIB_VALUE_UNQUOTED,$="attribValue";break}if(E===";"){var z=rn(r);r.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(z)?((r.entityCount+=1)>r.opt.maxEntityCount&&J(r,"Parsed entity count exceeds max entity count"),(r.entityDepth+=1)>r.opt.maxEntityDepth&&J(r,"Parsed entity depth exceeds max entity depth"),r.entity="",r.state=G,r.write(z),r.entityDepth-=1):(r[$]+=z,r.entity="",r.state=G)}else C(r.entity.length?m:L,E)?r.entity+=E:(B(r,"Invalid character in entity name"),r[$]+="&"+r.entity+E,r.entity="",r.state=G);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&d(r),r}String.fromCodePoint||(function(){var s=String.fromCharCode,r=Math.floor,_=function(){var E=16384,j=[],V,G,$=-1,z=arguments.length;if(!z)return"";for(var et="";++$<z;){var Y=Number(arguments[$]);if(!isFinite(Y)||Y<0||Y>1114111||r(Y)!==Y)throw RangeError("Invalid code point: "+Y);Y<=65535?j.push(Y):(Y-=65536,V=(Y>>10)+55296,G=Y%1024+56320,j.push(V,G)),($+1===z||j.length>E)&&(et+=s.apply(null,j),j.length=0)}return et};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:_,configurable:!0,writable:!0}):String.fromCodePoint=_})()})(typeof At>"u"?At.sax={}:At)});var Ur=F((kn,Kt)=>{"use strict";var pt=typeof Reflect=="object"?Reflect:null,xr=pt&&typeof pt.apply=="function"?pt.apply:function(e,u,d){return Function.prototype.apply.call(e,u,d)},Pt;pt&&typeof pt.ownKeys=="function"?Pt=pt.ownKeys:Object.getOwnPropertySymbols?Pt=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Pt=function(e){return Object.getOwnPropertyNames(e)};function yn(t){console&&console.warn&&console.warn(t)}var Pr=Number.isNaN||function(e){return e!==e};function U(){U.init.call(this)}Kt.exports=U;Kt.exports.once=bn;U.EventEmitter=U;U.prototype._events=void 0;U.prototype._eventsCount=0;U.prototype._maxListeners=void 0;var Ar=10;function St(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(U,"defaultMaxListeners",{enumerable:!0,get:function(){return Ar},set:function(t){if(typeof t!="number"||t<0||Pr(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Ar=t}});U.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};U.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Pr(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Sr(t){return t._maxListeners===void 0?U.defaultMaxListeners:t._maxListeners}U.prototype.getMaxListeners=function(){return Sr(this)};U.prototype.emit=function(e){for(var u=[],d=1;d<arguments.length;d++)u.push(arguments[d]);var n=e==="error",l=this._events;if(l!==void 0)n=n&&l.error===void 0;else if(!n)return!1;if(n){var a;if(u.length>0&&(a=u[0]),a instanceof Error)throw a;var f=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw f.context=a,f}var h=l[e];if(h===void 0)return!1;if(typeof h=="function")xr(h,this,u);else for(var w=h.length,D=jr(h,w),d=0;d<w;++d)xr(D[d],this,u);return!0};function Fr(t,e,u,d){var n,l,a;if(St(u),l=t._events,l===void 0?(l=t._events=Object.create(null),t._eventsCount=0):(l.newListener!==void 0&&(t.emit("newListener",e,u.listener?u.listener:u),l=t._events),a=l[e]),a===void 0)a=l[e]=u,++t._eventsCount;else if(typeof a=="function"?a=l[e]=d?[u,a]:[a,u]:d?a.unshift(u):a.push(u),n=Sr(t),n>0&&a.length>n&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=a.length,yn(f)}return t}U.prototype.addListener=function(e,u){return Fr(this,e,u,!1)};U.prototype.on=U.prototype.addListener;U.prototype.prependListener=function(e,u){return Fr(this,e,u,!0)};function gn(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Rr(t,e,u){var d={fired:!1,wrapFn:void 0,target:t,type:e,listener:u},n=gn.bind(d);return n.listener=u,d.wrapFn=n,n}U.prototype.once=function(e,u){return St(u),this.on(e,Rr(this,e,u)),this};U.prototype.prependOnceListener=function(e,u){return St(u),this.prependListener(e,Rr(this,e,u)),this};U.prototype.removeListener=function(e,u){var d,n,l,a,f;if(St(u),n=this._events,n===void 0)return this;if(d=n[e],d===void 0)return this;if(d===u||d.listener===u)--this._eventsCount===0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,d.listener||u));else if(typeof d!="function"){for(l=-1,a=d.length-1;a>=0;a--)if(d[a]===u||d[a].listener===u){f=d[a].listener,l=a;break}if(l<0)return this;l===0?d.shift():wn(d,l),d.length===1&&(n[e]=d[0]),n.removeListener!==void 0&&this.emit("removeListener",e,f||u)}return this};U.prototype.off=U.prototype.removeListener;U.prototype.removeAllListeners=function(e){var u,d,n;if(d=this._events,d===void 0)return this;if(d.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):d[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete d[e]),this;if(arguments.length===0){var l=Object.keys(d),a;for(n=0;n<l.length;++n)a=l[n],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(u=d[e],typeof u=="function")this.removeListener(e,u);else if(u!==void 0)for(n=u.length-1;n>=0;n--)this.removeListener(e,u[n]);return this};function Xr(t,e,u){var d=t._events;if(d===void 0)return[];var n=d[e];return n===void 0?[]:typeof n=="function"?u?[n.listener||n]:[n]:u?Tn(n):jr(n,n.length)}U.prototype.listeners=function(e){return Xr(this,e,!0)};U.prototype.rawListeners=function(e){return Xr(this,e,!1)};U.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):qr.call(t,e)};U.prototype.listenerCount=qr;function qr(t){var e=this._events;if(e!==void 0){var u=e[t];if(typeof u=="function")return 1;if(u!==void 0)return u.length}return 0}U.prototype.eventNames=function(){return this._eventsCount>0?Pt(this._events):[]};function jr(t,e){for(var u=new Array(e),d=0;d<e;++d)u[d]=t[d];return u}function wn(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function Tn(t){for(var e=new Array(t.length),u=0;u<e.length;++u)e[u]=t[u].listener||t[u];return e}function bn(t,e){return new Promise(function(u,d){function n(a){t.removeListener(e,l),d(a)}function l(){typeof t.removeListener=="function"&&t.removeListener("error",n),u([].slice.call(arguments))}Br(t,e,l,{once:!0}),e!=="error"&&Dn(t,n,{once:!0})})}function Dn(t,e,u){typeof t.on=="function"&&Br(t,"error",e,u)}function Br(t,e,u,d){if(typeof t.on=="function")d.once?t.once(e,u):t.on(e,u);else if(typeof t.addEventListener=="function")t.addEventListener(e,function n(l){d.once&&t.removeEventListener(e,n),u(l)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var Wr=F(Qt=>{"use strict";(function(){"use strict";Qt.stripBOM=function(t){return t[0]==="\uFEFF"?t.substring(1):t}}).call(Qt)});var Zt=F(ct=>{"use strict";(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),ct.normalize=function(e){return e.toLowerCase()},ct.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},ct.stripPrefix=function(e){return e.replace(t,"")},ct.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},ct.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e=e.toLowerCase()==="true"),e}}).call(ct)});var kr=F(Vr=>{"use strict";Vr.every=function(t){return new Jt(t)};var nt={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};for(lt in nt)lt==="millisecond"?nt.ms=nt[lt]:nt[lt.charAt(0)]=nt[lt],nt[lt+"s"]=nt[lt];var lt;function Jt(t){this.count=0;var e=Nn(t);e&&(this.time=Number(e[0])*nt[e[1]],this.type=e[1])}Jt.prototype.do=function(t){this.time&&(this.interval=setInterval(u,this.time));var e=this;function u(){e.count++,t.call(e)}return this};Jt.prototype.stop=function(){return this.interval&&(clearInterval(this.interval),delete this.interval),this};var En=/^\s*(\d+(?:\.\d+)?)\s*([a-z]+)\s*$/;function Nn(t){var e=t.match(En);return e&&nt[e[2]]?e.slice(1):null}});var Gr=F(it=>{"use strict";(function(){"use strict";var t,e,u,d,n,l,a,f,h,w=function(b,y){return function(){return b.apply(y,arguments)}},D=function(b,y){for(var T in y)O.call(y,T)&&(b[T]=y[T]);function N(){this.constructor=b}return N.prototype=y.prototype,b.prototype=new N,b.__super__=y.prototype,b},O={}.hasOwnProperty;f=vr(),d=Ur(),t=Wr(),a=Zt(),h=kr().setImmediate,e=gt().defaults,n=function(b){return typeof b=="object"&&b!=null&&Object.keys(b).length===0},l=function(b,y,T){var N,x,v;for(N=0,x=b.length;N<x;N++)v=b[N],y=v(y,T);return y},u=function(b,y,T){var N;return N=Object.create(null),N.value=T,N.writable=!0,N.enumerable=!0,N.configurable=!0,Object.defineProperty(b,y,N)},it.Parser=(function(b){D(y,b);function y(T){this.parseStringPromise=w(this.parseStringPromise,this),this.parseString=w(this.parseString,this),this.reset=w(this.reset,this),this.assignOrPush=w(this.assignOrPush,this),this.processAsync=w(this.processAsync,this);var N,x,v;if(!(this instanceof it.Parser))return new it.Parser(T);this.options={},x=e["0.2"];for(N in x)O.call(x,N)&&(v=x[N],this.options[N]=v);for(N in T)O.call(T,N)&&(v=T[N],this.options[N]=v);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(a.normalize)),this.reset()}return y.prototype.processAsync=function(){var T,N;try{return this.remaining.length<=this.options.chunkSize?(T=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(T),this.saxParser.close()):(T=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(T),h(this.processAsync))}catch(x){if(N=x,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(N)}},y.prototype.assignOrPush=function(T,N,x){return N in T?(T[N]instanceof Array||u(T,N,[T[N]]),T[N].push(x)):this.options.explicitArray?u(T,N,[x]):u(T,N,x)},y.prototype.reset=function(){var T,N,x,v;return this.removeAllListeners(),this.saxParser=f.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(function(L){return function(m){if(L.saxParser.resume(),!L.saxParser.errThrown)return L.saxParser.errThrown=!0,L.emit("error",m)}})(this),this.saxParser.onend=(function(L){return function(){if(!L.saxParser.ended)return L.saxParser.ended=!0,L.emit("end",L.resultObject)}})(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,v=[],T=this.options.attrkey,N=this.options.charkey,this.saxParser.onopentag=(function(L){return function(m){var o,i,p,C,I;if(p={},p[N]="",!L.options.ignoreAttrs){I=m.attributes;for(o in I)O.call(I,o)&&(!(T in p)&&!L.options.mergeAttrs&&(p[T]={}),i=L.options.attrValueProcessors?l(L.options.attrValueProcessors,m.attributes[o],o):m.attributes[o],C=L.options.attrNameProcessors?l(L.options.attrNameProcessors,o):o,L.options.mergeAttrs?L.assignOrPush(p,C,i):u(p[T],C,i))}return p["#name"]=L.options.tagNameProcessors?l(L.options.tagNameProcessors,m.name):m.name,L.options.xmlns&&(p[L.options.xmlnskey]={uri:m.uri,local:m.local}),v.push(p)}})(this),this.saxParser.onclosetag=(function(L){return function(){var m,o,i,p,C,I,c,g,M,A;if(I=v.pop(),C=I["#name"],(!L.options.explicitChildren||!L.options.preserveChildrenOrder)&&delete I["#name"],I.cdata===!0&&(m=I.cdata,delete I.cdata),M=v[v.length-1],I[N].match(/^\s*$/)&&!m?(o=I[N],delete I[N]):(L.options.trim&&(I[N]=I[N].trim()),L.options.normalize&&(I[N]=I[N].replace(/\s{2,}/g," ").trim()),I[N]=L.options.valueProcessors?l(L.options.valueProcessors,I[N],C):I[N],Object.keys(I).length===1&&N in I&&!L.EXPLICIT_CHARKEY&&(I=I[N])),n(I)&&(typeof L.options.emptyTag=="function"?I=L.options.emptyTag():I=L.options.emptyTag!==""?L.options.emptyTag:o),L.options.validator!=null&&(A="/"+(function(){var P,R,X;for(X=[],P=0,R=v.length;P<R;P++)p=v[P],X.push(p["#name"]);return X})().concat(C).join("/"),(function(){var P;try{return I=L.options.validator(A,M&&M[C],I)}catch(R){return P=R,L.emit("error",P)}})()),L.options.explicitChildren&&!L.options.mergeAttrs&&typeof I=="object"){if(!L.options.preserveChildrenOrder)p={},L.options.attrkey in I&&(p[L.options.attrkey]=I[L.options.attrkey],delete I[L.options.attrkey]),!L.options.charsAsChildren&&L.options.charkey in I&&(p[L.options.charkey]=I[L.options.charkey],delete I[L.options.charkey]),Object.getOwnPropertyNames(I).length>0&&(p[L.options.childkey]=I),I=p;else if(M){M[L.options.childkey]=M[L.options.childkey]||[],c={};for(i in I)O.call(I,i)&&u(c,i,I[i]);M[L.options.childkey].push(c),delete I["#name"],Object.keys(I).length===1&&N in I&&!L.EXPLICIT_CHARKEY&&(I=I[N])}}return v.length>0?L.assignOrPush(M,C,I):(L.options.explicitRoot&&(g=I,I={},u(I,C,g)),L.resultObject=I,L.saxParser.ended=!0,L.emit("end",L.resultObject))}})(this),x=(function(L){return function(m){var o,i;if(i=v[v.length-1],i)return i[N]+=m,L.options.explicitChildren&&L.options.preserveChildrenOrder&&L.options.charsAsChildren&&(L.options.includeWhiteChars||m.replace(/\\n/g,"").trim()!=="")&&(i[L.options.childkey]=i[L.options.childkey]||[],o={"#name":"__text__"},o[N]=m,L.options.normalize&&(o[N]=o[N].replace(/\s{2,}/g," ").trim()),i[L.options.childkey].push(o)),i}})(this),this.saxParser.ontext=x,this.saxParser.oncdata=(function(L){return function(m){var o;if(o=x(m),o)return o.cdata=!0}})(this)},y.prototype.parseString=function(T,N){var x;N!=null&&typeof N=="function"&&(this.on("end",function(v){return this.reset(),N(null,v)}),this.on("error",function(v){return this.reset(),N(v)}));try{return T=T.toString(),T.trim()===""?(this.emit("end",null),!0):(T=t.stripBOM(T),this.options.async?(this.remaining=T,h(this.processAsync),this.saxParser):this.saxParser.write(T).close())}catch(v){if(x=v,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw x}else return this.emit("error",x),this.saxParser.errThrown=!0}},y.prototype.parseStringPromise=function(T){return new Promise((function(N){return function(x,v){return N.parseString(T,function(L,m){return L?v(L):x(m)})}})(this))},y})(d),it.parseString=function(b,y,T){var N,x,v;return T!=null?(typeof T=="function"&&(N=T),typeof y=="object"&&(x=y)):(typeof y=="function"&&(N=y),x={}),v=new it.Parser(x),v.parseString(b,N)},it.parseStringPromise=function(b,y){var T,N;return typeof y=="object"&&(T=y),N=new it.Parser(T),N.parseStringPromise(b)}}).call(it)});var Yr=F(ot=>{"use strict";(function(){"use strict";var t,e,u,d,n=function(a,f){for(var h in f)l.call(f,h)&&(a[h]=f[h]);function w(){this.constructor=a}return w.prototype=f.prototype,a.prototype=new w,a.__super__=f.prototype,a},l={}.hasOwnProperty;e=gt(),t=Ir(),u=Gr(),d=Zt(),ot.defaults=e.defaults,ot.processors=d,ot.ValidationError=(function(a){n(f,a);function f(h){this.message=h}return f})(Error),ot.Builder=t.Builder,ot.Parser=u.Parser,ot.parseString=u.parseString,ot.parseStringPromise=u.parseStringPromise}).call(ot)});var Pn=31*864e5;var pn=t=>{let e=t.trim().split("#")[0],u=e.indexOf("?");return u===-1?{base:e,params:new URLSearchParams}:{base:e.slice(0,u),params:new URLSearchParams(e.slice(u+1))}},dn=(t,e)=>{let u=e.map(n=>n.toLowerCase()),d=new URLSearchParams;return t.forEach((n,l)=>{u.includes(l.toLowerCase())||d.append(l,n)}),d};var Bt=(t,e)=>{let{base:u,params:d}=pn(t??""),n=dn(d,Object.keys(e));return Object.entries(e).forEach(([l,a])=>n.append(l,a)),`${u}?${n.toString()}`};var ee=hn(Yr()),Zr=8e3;self.onmessage=async t=>{let{sourceType:e}=t.data;try{let u;if(e==="wms"){let{url:d,options:n}=t.data;u=await On(d,n)}else if(e==="wmts"){let{url:d,options:n}=t.data;u=await Cn(d,n)}else u=null;self.postMessage(u)}catch(u){self.postMessage({error:u?.message??String(u)})}};var Jr=async t=>{let e=`(${t.status}) Error fetching capabilities.. ${t.statusText}`;try{return re(await t.text())??e}catch{return e}},re=t=>{if(!/<(ServiceExceptionReport|(ows:)?ExceptionReport)[\s>/]/.test(t))return;let u=(/<ServiceException(?![A-Za-z])[^>]*>([\s\S]*?)<\/ServiceException>/.exec(t)??/<(?:ows:)?ExceptionText[^>]*>([\s\S]*?)<\/(?:ows:)?ExceptionText>/.exec(t))?.[1]?.replace(/\s+/g," ").trim();return u?`Service reported: ${u}`:"Service reported an error."},On=async(t,e)=>{let u=Bt(t,{service:"WMS",request:"GetCapabilities"}),d=new AbortController,n=setTimeout(()=>d.abort(),Zr);try{let l=await fetch(u,{signal:d.signal});if(!l.ok)throw new Error(await Jr(l));let a=await l.text();return await In(a,u,e)}finally{clearTimeout(n)}},In=async(t,e,u)=>{let d=0,n=(D,O,b=null,y=0)=>{if(d>=u.maxNodes||y>u.maxDepth)return;d+=1;let T={name:D.Name?Q(D.Name[0]):"",description:D.Abstract?Q(D.Abstract[0]):"",selected:!1,parent:b,time:null};if(D.Title&&(T.title=Q(D.Title[0])),Array.isArray(D.Dimension)){for(let N of D.Dimension)if(N.$?.name.toLowerCase()==="time"&&N.$?.units==="ISO8601"){T.time=Object.assign({current:N.$?.default??null},tn(N._,N.$?.default));break}}D.Layer&&(T.children=[],D.Layer.forEach(N=>n(N,T.children,T,y+1))),O.push(T)},l=re(t);if(l)throw new Error(l);if(t.indexOf("<Capability")===-1)throw new Error("Error: Invalid response received!");let a=await(0,ee.parseStringPromise)(t);if(!a.WMS_Capabilities&&!a.WMT_MS_Capabilities)throw new Error("Error: No Capabilities found!");let f=a.WMS_Capabilities?a.WMS_Capabilities:a.WMT_MS_Capabilities?a.WMT_MS_Capabilities:void 0;if(!f?.Capability[0].Layer)throw new Error("Error: No layer information found!");let h={name:"",description:"",type:"WMS",url:e,layers:[]};if(Z(f?.Service)){let D=f?.Service[0];h.name=Z(D.Title)?Q(D.Title[0]):Z(D.Name)?Q(D.Name[0]):"WMS",h.description=Z(D.Abstract)?Q(D.Abstract[0]):""}let w=[];return f.Capability[0].Layer.forEach(D=>{n(D,w)}),w.sort((D,O)=>D.name<O.name?-1:1),h.layers=w,h},Cn=async(t,e)=>{let u=Bt(t,{service:"WMTS",request:"GetCapabilities"}),d=new AbortController,n=setTimeout(()=>d.abort(),Zr);try{let l=await fetch(u,{signal:d.signal});if(!l.ok)throw new Error(await Jr(l));let a=await l.text();return await Ln(a,u,e)}finally{clearTimeout(n)}},Ln=async(t,e,u)=>{let d=h=>{if(!Z(h["ows:Identifier"]))return null;let w={name:Z(h["ows:Title"])?Q(h["ows:Title"][0]):"",description:Z(h["ows:Abstract"])?Q(h["ows:Abstract"][0]):"",id:Q(h["ows:Identifier"][0]),format:"png"};if(Z(h["ows:WGS84BoundingBox"])&&(w.bounds=[Number(h["ows:WGS84BoundingBox"][0]["ows:LowerCorner"][0].split(" ")[0]),Number(h["ows:WGS84BoundingBox"][0]["ows:LowerCorner"][0].split(" ")[1]),Number(h["ows:WGS84BoundingBox"][0]["ows:UpperCorner"][0].split(" ")[0]),Number(h["ows:WGS84BoundingBox"][0]["ows:UpperCorner"][0].split(" ")[1])]),Z(h.Format)){let D=Q(h.Format[0]);w.format=D.indexOf("jpg")!==-1?"jpg":"png"}return Z(h.Dimension)&&h.Dimension.forEach(D=>{Q(D["ows:Identifier"][0]).toLowerCase()==="time"&&(w.time=Object.assign({current:ft(Q(D.Default[0]))??null},tn(D.Value,Q(D.Default[0]))))}),w},n=re(t);if(n)throw new Error(n);if(t.indexOf("<Capabilities")===-1)throw new Error("Error: Invalid response received!");let l=await(0,ee.parseStringPromise)(t);if(!Z(l.Capabilities?.Contents))throw new Error("Error: No Capabilities found!");if(!Z(l.Capabilities.Contents[0].Layer))throw new Error("Error: No layer information found!");let a={name:"",description:"",type:"WMTS",url:e,layers:[]},f=0;for(let h of l.Capabilities.Contents[0].Layer){if(f>=u.maxNodes)break;let w=d(h);w&&a.layers.push(w),f++}return a.layers.sort((h,w)=>h.name<w.name?-1:1),a},Z=t=>Array.isArray(t)&&t.length!==0,Q=t=>typeof t=="string"?t:t._??"",te=t=>{let e=/^P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/,u=t.match(e);return u?{years:parseInt(u[1]??"0"),months:parseInt(u[2]??"0"),weeks:parseInt(u[3]??"0"),days:parseInt(u[4]??"0"),hours:parseInt(u[5]??"0"),minutes:parseInt(u[6]??"0"),seconds:parseFloat(u[7]??"0")}:{years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0}},_n=t=>{let e=te(t);return e.weeks*(3600*1e3*24*7)+e.days*(3600*1e3*24)+e.hours*(3600*1e3)+e.minutes*(60*1e3)+e.seconds*1e3},Hr=(t,e,u)=>{let d={y:new Date(t).getFullYear(),m:new Date(t).getMonth(),d:new Date(t).getDate()},n={y:u?d.y+e.years:d.y-e.years,m:u?d.m+e.months:d.m-e.months,d:u?d.d+e.days:d.d-e.days};if(e.weeks){let f=e.weeks*7;n.d=u?n.d+f:n.d-f}let l=new Date(t);l.setFullYear(n.y,n.m,n.d);let a=e.hours*(1e3*3600)+e.minutes*(1e3*60)+e.seconds*1e3;return a=u?a:0-a,l.setTime(l.getTime()+a),l.toISOString()},$r=t=>t.startsWith("P"),zr=t=>!t.includes("-")&&!t.includes(":"),Kr=t=>t.split("-").length===2&&!t.includes("T"),Mn=t=>t.split("-").length===3&&!t.includes("T"),vn=t=>t.length===8&&!t.startsWith("P"),xn=t=>t.includes("T")&&!t.includes(":"),Qr=t=>t.includes("/"),ft=t=>{try{return t.toLocaleLowerCase()==="current"||t.toLocaleLowerCase()==="present"?new Date().toISOString():(vn(t)?t=`${t.slice(0,4)}-${t.slice(4,6)}-${t.slice(6)}`:xn(t)&&(t+=":00:00.000Z"),new Date(t).toISOString())}catch(e){throw new Error(`Unhandled Date format (${t})`,{cause:e})}},tn=(t,e)=>{let u=n=>{if(zr(n))return`${n}-12-31T23:59:59.999Z`;if(Kr(n)){let l=n.split("-").map(f=>parseInt(f)),a=new Date(l[0],l[1],0).getDate();return`${n}-${a}T23:59:59.999Z`}else return Mn(n)?`${n}T23:59:59.999Z`:ft(n)},d=n=>{let l={from:null,to:null};if((n[0].toLocaleLowerCase()==="present"||n[0].toLocaleLowerCase()==="current")&&(n[0]=new Date().toISOString()),(n[1].toLocaleLowerCase()==="present"||n[1].toLocaleLowerCase()==="current")&&(n[1]=new Date().toISOString()),$r(n[0])?l.from=Hr(n[1],te(n[0]),!1):l.from=ft(n[0]),$r(n[1])?l.to=Hr(n[0],te(n[1]),!0):l.to=u(n[1]),n.length===3){let a=_n(n[2]);a&&(l.interval=a)}return l};try{if(Array.isArray(t)){let n=[];if(t.forEach(a=>{if(Qr(a)){let f=d(a.split("/"));f&&n.push(f)}}),n.length){let a=new Date(e).valueOf();for(let f=0;f<n.length;f++)if(a>=new Date(n[f].from).valueOf()&&a<=new Date(n[f].to).valueOf())return n[f];return n[n.length-1]}let l=t.map(a=>ft(a));if(l.length>1)return{from:l[0]??null,to:l[l.length-1]??null,values:l};t=l[0]}if(t.includes(",")){let n=t.split(",").map(l=>ft(l));return{from:n[0]??null,to:n[n.length-1]??null,values:n}}else if(typeof t=="string"){if(Qr(t))return d(t.split("/"));if(zr(t)){let n=new Date(t),l=n.getFullYear();return n.setFullYear(l+1),{from:ft(t),to:n.toISOString()}}else if(Kr(t)){let n=new Date(t),l=new Date(n.getFullYear(),n.getMonth()+1,0).getDate();return n.setFullYear(n.getFullYear(),n.getMonth(),l),n.setUTCHours(23),n.setUTCMinutes(59),n.setUTCSeconds(59,999),{from:ft(t),to:n.toISOString()}}else return{from:null,to:null}}}catch{return{from:null,to:null}}};export{re as ogcExceptionMessage,In as parseWMSCapabilities,Ln as parseWMTSCapabilities,On as wmsGetInfo};
|
package/public/chunk-3HHS54E4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Ie,b as O,c as Ae,d as Ke,e as Be}from"./chunk-VQDXDSU7.js";import{Ga as Re,Ha as Oe,Ia as Ge,Ja as Fe,Ka as Xe,L as Se,La as We,Ua as Ve,V as Pe,W as Me,X as De,d as ee,i as _e,j as ye,k as ke,l as Ce,m as ve,p as Ee,q as R}from"./chunk-5UXNTYSY.js";import{a as be,b as Te,c as we}from"./chunk-VAI3YHUS.js";import{j as oe,k as re,l as se}from"./chunk-3LS56QZI.js";import{a as he,b as ge,d as xe}from"./chunk-IQZW2T75.js";import{a as fe}from"./chunk-LNNAK44C.js";import"./chunk-3HSIX7SC.js";import{b as le,i as ce,j as pe,n as de,o as me}from"./chunk-XUGRUSQE.js";import{b as ue}from"./chunk-JWBOMKMB.js";import"./chunk-ZU72P2HZ.js";import"./chunk-DX34XOH2.js";import{$d as Z,Fa as f,Fd as j,Ga as _,Gd as N,Ia as V,Ja as T,Jd as U,Ka as w,La as g,Ld as z,M as B,Ma as r,Na as s,Nd as q,Oa as L,Od as Q,Q as b,S as m,T as u,Va as y,Wd as Y,Xa as h,Yd as J,Za as d,be as te,c as A,ge as ie,hb as E,je as ae,k as K,ka as c,mb as l,nb as H,ob as S,pa as C,qb as P,rb as M,re as ne,sa as $,sb as D}from"./chunk-DBGL657U.js";import{g as v}from"./chunk-NCEQPEJE.js";var G=class{gpx;constructor(){this.init()}init(){this.gpx=new Ie,this.gpx.metadata.name="Signal K Resource Export",this.gpx.metadata.desc="Freeboard export of Signal K resources"}toXML(){return this.gpx.toXML()}setRoutes(i,e){if(e)e.forEach(t=>{i[t]&&this.gpx.rte.push(this.packageRoute(t,i[t]))});else for(let t in i)this.gpx.rte.push(this.packageRoute(t,i[t]))}packageRoute(i,e){let t=new Ae;t.extensions=t.extensions??{},t.extensions.signalk={},t.extensions.signalk.uuid=i,e.distance&&(t.extensions.signalk.distance=e.distance),t.name=e.name||null,t.desc=e.description||null,t.cmt=e.feature.properties.cmt||null,t.src=e.feature.properties.src||null,t.number=e.feature.properties.number||null,t.type=e.feature.properties.type||null;for(let a of e.feature.geometry.coordinates){let n=new O;n.lon=a[0],n.lat=a[1],n.ele=a[2]||null,t.rtept.push(n),this.gpx.updateBounds(n)}return t}setWaypoints(i,e){if(e)e.forEach(t=>{i[t]&&this.gpx.wpt.push(this.packageWaypoint(t,i[t]))});else for(let t in i)this.gpx.wpt.push(this.packageWaypoint(t,i[t]))}packageWaypoint(i,e){let t=new O;if(t.extensions=t.extensions||{},t.extensions.signalk={},t.extensions.signalk.uuid=i,t.name=e.name||"",t.desc=e.description||"",t.cmt=e.feature.properties.cmt||null,t.geoidHeight=e.feature.properties.geoidHeight||null,t.src=e.feature.properties.src||null,t.sym=e.feature.properties.sym||null,t.type=e.feature.properties.type||null,e.type==="waypoint"){let a=Ee(e.feature.properties.skIcon);a?.gpxType&&(t.type=a.gpxType),a?.gpxSym&&(t.sym=a.gpxSym)}return t.fix=e.feature.properties.fix||null,t.sat=e.feature.properties.sat||null,t.hdop=e.feature.properties.hdop||null,t.vdop=e.feature.properties.vdop||null,t.pdop=e.feature.properties.pdop||null,t.ageOfGpsData=e.feature.properties.ageOfGpsData||null,t.dgpsid=e.feature.properties.dgpsid||null,t.lat=e.feature.geometry.coordinates[1],t.lon=e.feature.geometry.coordinates[0],t.ele=e.feature.geometry.coordinates[2]||null,this.gpx.updateBounds(t),t}setTracks(i,e){if(e)e.forEach(t=>{i[t]&&this.gpx.trk.push(this.packageTrack(t,i[t]))});else for(let t in i)this.gpx.trk.push(this.packageTrack(t,i[t]))}packageTrack(i,e){let t=new Ke;t.extensions=t.extensions||{},t.extensions.signalk={},t.extensions.signalk.uuid=i,t.name=e.feature.properties.name||null,t.desc=e.feature.properties.description||null,t.cmt=e.feature.properties.cmt||null,t.src=e.feature.properties.src||null,t.number=e.feature.properties.number||null,t.type=e.feature.properties.type||null;let a=e.feature.properties.coordTimes;return e.feature.geometry.coordinates.forEach((n,p)=>{let x=new Be;n.forEach((W,He)=>{let k=new O;k.lon=W[0],k.lat=W[1],k.ele=W[2]||null;let I=a?.[p]?.[He];I&&(k.datetime=new Date(I)),x.trkpt.push(k),this.gpx.updateBounds(k)}),t.trkseg.push(x)}),t}};var F=class o{resultSource;result$;sk2gpx;hasFSA;signalk=b(R);constructor(){this.resultSource=new A,this.result$=this.resultSource.asObservable(),this.hasFSA="showOpenFilePicker"in window}clear(){this.sk2gpx=null}prepData(i){let e={routes:[],waypoints:[],tracks:[]},t=1;return e.routes=i.routes.map(a=>{let n=a[1];return n.feature.id=a[0],n}),t=1,e.waypoints=i.waypoints.map(a=>{let n=a[1];return n.feature.id=a[0],n.name=n.name??`Wpt: ${t}`,t++,n}),e.tracks=i.tracks,e}saveToFile(i,e){this.sk2gpx=new G;let t={},a={},n={};for(let p=0;p<e.rte.selected.length;p++)e.rte.selected[p]&&(t[i.routes[p].feature.id]=i.routes[p]);this.sk2gpx.setRoutes(t);for(let p=0;p<e.wpt.selected.length;p++)e.wpt.selected[p]&&(a[i.waypoints[p].feature.id]=i.waypoints[p]);this.sk2gpx.setWaypoints(a),(e.trk.tracks??[]).forEach(p=>{let x=this.signalk.uuid;n[x]=We(x,p)}),this.sk2gpx.setTracks(n),this.hasFSA?this.fsaSaveFile():this.legacySaveToFile()}legacySaveToFile(){let i=new Blob([this.sk2gpx.toXML()],{type:"text/xml"}),e=document.createElement("a");e.href=URL.createObjectURL(i),e.download="fb_export.gpx",e.click(),URL.revokeObjectURL(e.href),e.remove(),this.resultSource.next(-1)}fsaSaveFile(){window.showSaveFilePicker({types:[{description:"GPX file",accept:{"text/xml":[".gpx"]}}]}).then(i=>{i.createWritable().then(e=>{let t=new Blob([this.sk2gpx.toXML()]);e.write(t).then(()=>{e.close(),this.resultSource.next(0)})}).catch(e=>{console.warn(e),this.resultSource.next(1)})}).catch(i=>{i?.name==="SecurityError"?this.legacySaveToFile():this.resultSource.next(-1)})}static \u0275fac=function(e){return new(e||o)};static \u0275prov=B({token:o,factory:o.\u0275fac,providedIn:"root"})};var Ue=(o,i)=>i.context;function ze(o,i){o&1&&L(0,"mat-progress-bar",10)}function qe(o,i){if(o&1){let e=y();r(0,"div",19)(1,"div",20),l(2),s(),r(3,"div",21)(4,"mat-checkbox",22,0),h("change",function(){let a=m(e).$index,n=E(5),p=d(2);return u(p.checkWpt(n.checked,a))}),s()()()}if(o&2){let e=i.$implicit,t=i.$index,a=d(2);c(2),H(e.name),c(2),g("checked",a.selWaypoints[t])}}function Qe(o,i){if(o&1){let e=y();r(0,"div",12)(1,"mat-expansion-panel",13),h("opened",function(){m(e);let a=d();return u(a.display.expand.waypoints=!0)})("closed",function(){m(e);let a=d();return u(a.display.expand.waypoints=!1)}),r(2,"mat-expansion-panel-header",14)(3,"mat-panel-title")(4,"mat-icon",15),l(5,"place"),s(),l(6," \xA0"),r(7,"b"),l(8,"Waypoints:"),s()(),r(9,"mat-panel-description")(10,"div",16)(11,"mat-checkbox",17),h("change",function(a){m(e);let n=d();return u(n.checkWpt(a.checked,-1))})("click",function(a){return a.cancelBubble=!0}),s()()()(),r(12,"div",18),T(13,qe,6,2,"div",19,V),s()()()}if(o&2){let e=d();c(),g("expanded",e.display.expand.waypoints),c(10),g("indeterminate",e.display.someWptChecked)("checked",e.display.allWaypointsChecked)("disabled",e.resData.waypoints.length===0),c(2),w(e.resData.waypoints)}}function Ye(o,i){if(o&1){let e=y();r(0,"div",19)(1,"div",20)(2,"mat-icon",23),l(3,"directions"),s(),l(4),s(),r(5,"div",21)(6,"mat-checkbox",25,1),h("change",function(){let a=m(e).$index,n=E(7),p=d(2);return u(p.checkRte(n.checked,a))}),s()()()}if(o&2){let e=i.$implicit,t=i.$index,a=d(2);c(4),S(" ",e.name," "),c(2),g("checked",a.selRoutes[t])}}function Je(o,i){if(o&1){let e=y();r(0,"div",12)(1,"mat-expansion-panel",13),h("opened",function(){m(e);let a=d();return u(a.display.expand.routes=!0)})("closed",function(){m(e);let a=d();return u(a.display.expand.routes=!1)}),r(2,"mat-expansion-panel-header",14)(3,"mat-panel-title")(4,"mat-icon",23),l(5,"directions"),s(),l(6," \xA0"),r(7,"b"),l(8,"Routes:"),s()(),r(9,"mat-panel-description")(10,"div",16)(11,"mat-checkbox",24),h("change",function(a){m(e);let n=d();return u(n.checkRte(a.checked,-1))})("click",function(a){return a.cancelBubble=!0}),s()()()(),r(12,"div",18),T(13,Ye,8,2,"div",19,V),s()()()}if(o&2){let e=d();c(),g("expanded",e.display.expand.routes),c(10),g("indeterminate",e.display.someRteChecked)("checked",e.display.allRoutesChecked)("disabled",e.resData.routes.length==0),c(2),w(e.resData.routes)}}function Ze(o,i){o&1&&(r(0,"div",30),l(1," Only the positions gathered while Freeboard was open: the server has no recorded track for this vessel. "),s())}function et(o,i){if(o&1){let e=y();r(0,"div",19)(1,"div",20)(2,"mat-icon",26),l(3,"directions_boat"),s(),l(4),s(),r(5,"div",21)(6,"mat-checkbox",29,2),h("change",function(){let a=m(e).$index,n=E(7),p=d(2);return u(p.checkTrk(n.checked,a))}),s()()(),f(8,Ze,2,0,"div",30)}if(o&2){let e=i.$implicit,t=i.$index,a=d(2);c(4),S(" ",e.label," "),c(2),g("checked",a.selTracks[t]),c(2),_(e.tailOnly&&a.trackChoice==="displayed"?8:-1)}}function tt(o,i){o&1&&(r(0,"mat-option",37),l(1,"Track history range"),s())}function it(o,i){o&1&&(r(0,"div",30),l(1,"Choose a From time before the To time."),s())}function at(o,i){if(o&1){let e=y();r(0,"div",39)(1,"mat-form-field")(2,"mat-label"),l(3,"From"),s(),r(4,"input",40),D("ngModelChange",function(a){m(e);let n=d(3);return M(n.customFrom,a)||(n.customFrom=a),u(a)}),s()(),r(5,"mat-form-field")(6,"mat-label"),l(7,"To"),s(),r(8,"input",40),D("ngModelChange",function(a){m(e);let n=d(3);return M(n.customTo,a)||(n.customTo=a),u(a)}),s()()(),f(9,it,2,0,"div",30)}if(o&2){let e=d(3);c(4),P("ngModel",e.customFrom),c(4),P("ngModel",e.customTo),c(),_(e.customInvalid?9:-1)}}function nt(o,i){o&1&&(r(0,"div",30),l(1," Fetched from the server when you save, in the most detail it provides. "),s())}function ot(o,i){if(o&1){let e=y();r(0,"div",28)(1,"mat-form-field",31)(2,"mat-label"),l(3,"Track to export"),s(),r(4,"mat-select",32),D("ngModelChange",function(a){m(e);let n=d(2);return M(n.trackChoice,a)||(n.trackChoice=a),u(a)}),r(5,"mat-option",33),l(6,"As displayed"),s(),r(7,"mat-option",34),l(8,"Last 7 days"),s(),r(9,"mat-option",35),l(10,"Last 30 days"),s(),r(11,"mat-option",36),l(12,"All recorded"),s(),f(13,tt,2,0,"mat-option",37),r(14,"mat-option",38),l(15,"Custom range"),s()()(),f(16,at,10,3)(17,nt,2,0,"div",30),s()}if(o&2){let e=d(2);c(4),P("ngModel",e.trackChoice),c(9),_(e.historyRange?13:-1),c(3),_(e.trackChoice==="custom"?16:e.trackChoice!=="displayed"?17:-1)}}function rt(o,i){if(o&1){let e=y();r(0,"div",12)(1,"mat-expansion-panel",13),h("opened",function(){m(e);let a=d();return u(a.display.expand.tracks=!0)})("closed",function(){m(e);let a=d();return u(a.display.expand.tracks=!1)}),r(2,"mat-expansion-panel-header",14)(3,"mat-panel-title")(4,"mat-icon",26),l(5,"show_chart"),s(),l(6," \xA0"),r(7,"b"),l(8,"Tracks:"),s()(),r(9,"mat-panel-description")(10,"div",16)(11,"mat-checkbox",27),h("change",function(a){m(e);let n=d();return u(n.checkTrk(a.checked,-1))})("click",function(a){return a.cancelBubble=!0}),s()()()(),r(12,"div",18),T(13,et,9,3,null,null,Ue),s(),f(15,ot,18,3,"div",28),s()()}if(o&2){let e=d();c(),g("expanded",e.display.expand.tracks),c(10),g("indeterminate",e.display.someTrkChecked)("checked",e.display.allTracksChecked)("disabled",e.resData.tracks.length==0),c(2),w(e.resData.tracks),c(2),_(e.rangeAvailable?15:-1)}}var st=36e5;function $e(o){let i=new Date(o),e=t=>String(t).padStart(2,"0");return`${i.getFullYear()}-${e(i.getMonth()+1)}-${e(i.getDate())}T${e(i.getHours())}:${e(i.getMinutes())}`}function X(o){let i=o?new Date(o).getTime():NaN;return Number.isFinite(i)?i:null}var Le=class o{constructor(i,e,t,a,n){this.app=i;this.skres=e;this.facade=t;this.dialogRef=a;this.data=n}app;skres;facade;dialogRef;data;resData={routes:[],waypoints:[],tracks:[]};trackChoice="displayed";customFrom="";customTo="";fetching=!1;closed=!1;signalk=b(R);trackHistory=b(De);selRoutes=[];selectedRoute=null;selWaypoints=[];selTracks=[];display={notValid:!1,allRoutesChecked:!1,allWaypointsChecked:!1,allTracksChecked:!1,someWptChecked:!1,someRteChecked:!1,someTrkChecked:!1,saveRoutesOK:!1,saveWaypointsOK:!1,saveTracksOK:!1,routeViewer:!1,selCount:{routes:0,waypoints:0,tracks:0},expand:{routes:!1,waypoints:!1,tracks:!1}};unsubscribe=[];ngOnInit(){let i=Date.now();this.customFrom=$e(i-24*st),this.customTo=$e(i),this.loadResources(),this.data.initialChoice&&this.rangeAvailable&&(this.data.initialChoice!=="history"||this.historyRange)&&(this.trackChoice=this.data.initialChoice),this.unsubscribe.push(this.facade.result$.subscribe(e=>{this.dialogRef.close(e)}))}ngOnDestroy(){this.closed=!0,this.unsubscribe.forEach(i=>i.unsubscribe()),this.facade.clear()}loadResources(){return v(this,null,function*(){if(this.data.tracksOnly){this.data.waypoints=[],this.parseResourceData();return}this.data.routes.sort((i,e)=>i[1].name.localeCompare(e[1].name));try{this.app.sIsFetching.set(!0);let i=yield this.skres.listFromServer("waypoints");i.sort((e,t)=>e[1].name.localeCompare(t[1].name)),this.data.waypoints=i,this.app.sIsFetching.set(!1)}catch(i){this.app.sIsFetching.set(!1),this.resData.waypoints=[]}this.parseResourceData()})}get rangeAvailable(){return!!this.app.featureFlags().tracksApi}get historyRange(){return this.resData.tracks.some(i=>this.trackHistory.isShown(i.context))?this.trackHistory.range():void 0}chosenRange(){return Re(this.trackChoice,Date.now(),{history:this.historyRange,custom:{from:X(this.customFrom),to:X(this.customTo)}})}get customInvalid(){return this.trackChoice==="custom"&&!Oe({from:X(this.customFrom),to:X(this.customTo)})}get rangeUnusable(){return this.rangeAvailable&&this.trackChoice!=="displayed"&&this.chosenRange()===null}get canSave(){return!this.fetching&&!(this.display.saveTracksOK&&this.rangeUnusable)&&(this.display.saveRoutesOK||this.display.saveWaypointsOK||this.display.saveTracksOK)}save(){return v(this,null,function*(){let i;try{i=yield this.selectedTracks()}catch(e){if(this.closed)return;this.app.showAlert("GPX Save","Unable to fetch the recorded track from the server.");return}i===null||this.closed||this.facade.saveToFile(this.resData,{rte:{selected:this.selRoutes},wpt:{selected:this.selWaypoints},trk:{tracks:i}})})}selectedTracks(){return v(this,null,function*(){let i=this.resData.tracks.filter((n,p)=>this.selTracks[p]);if(i.length===0)return[];let e=this.rangeAvailable?this.chosenRange():null,t=Date.now(),a=[];this.fetching=!0;try{for(let n of i){let p=e===null?n.displayed:yield this.fetchTrack(n.context,e),x=Xe(n.label,p,t);if(!x)return this.app.showAlert("GPX Save",e===null?`There is no track to save for ${n.label}.`:`No track is recorded for ${n.label} in the selected range.`),null;a.push(x)}}finally{this.fetching=!1}return a})}fetchTrack(i,e){return v(this,null,function*(){let t=this.app.trackSource()?.provider,a=this.signalk.api.get(2,`/tracks?${Ge(i,e,t)}`);if(!a)throw new Error("Not connected");let n=yield K(a),p=ee(i,n,t);return{lines:p?.lines??[],times:p?.times??(p?.lines??[]).map(x=>x.map(()=>{}))}})}parseResourceData(){this.display.allRoutesChecked=!1,this.display.saveRoutesOK=!1,this.selRoutes=[],this.display.allWaypointsChecked=!1,this.display.saveWaypointsOK=!1,this.selWaypoints=[],this.display.allTracksChecked=!1,this.display.saveTracksOK=!1,this.selTracks=[],this.display.selCount={routes:0,waypoints:0,tracks:0},this.display.expand={routes:!1,waypoints:!1,tracks:!1},this.display.notValid=!1,this.resData=this.facade.prepData(this.data),this.resData.tracks=this.resData.tracks.filter(i=>this.rangeAvailable||Fe(i.displayed?.lines)),this.resData.routes.forEach(()=>{this.selRoutes.push(!1)}),this.selRoutes.length===1&&(this.selRoutes[0]=!0,this.display.allRoutesChecked=!0,this.display.expand.routes=!0,this.display.saveRoutesOK=!0),this.resData.waypoints.forEach(()=>{this.selWaypoints.push(!1)}),this.resData.tracks.forEach(()=>{this.selTracks.push(!1)}),this.data.tracksOnly&&this.selTracks.length!==0&&(this.checkTrk(!0,-1),this.display.expand.tracks=!0)}checkRte(i,e=-1){let t=0;if(e!==-1){this.selRoutes[e]=i,this.display.saveRoutesOK=i;for(let a of this.selRoutes)a&&t++;this.display.saveRoutesOK=t!==0,this.display.selCount.routes=t,this.display.allRoutesChecked=t===this.selRoutes.length}else{for(let a=0;a<this.selRoutes.length;a++)this.selRoutes[a]=i,this.display.saveRoutesOK=i,this.display.allRoutesChecked=i;this.display.selCount.routes=i?this.selRoutes.length:0}this.display.someRteChecked=!(this.display.allRoutesChecked||t===0)}checkWpt(i,e=-1){let t=0;if(e!==-1){this.selWaypoints[e]=i,this.display.saveWaypointsOK=i;for(let a of this.selWaypoints)a&&t++;this.display.saveWaypointsOK=t!==0,this.display.selCount.waypoints=t,this.display.allWaypointsChecked=t===this.selWaypoints.length}else{for(let a=0;a<this.selWaypoints.length;a++)this.selWaypoints[a]=i,this.display.saveWaypointsOK=i,this.display.allWaypointsChecked=i;this.display.selCount.waypoints=i?this.selWaypoints.length:0}this.display.someWptChecked=!(this.display.allWaypointsChecked||t===0)}checkTrk(i,e=-1){let t=0;if(e!==-1){this.selTracks[e]=i,this.display.saveTracksOK=i;for(let a of this.selTracks)a&&t++;this.display.saveTracksOK=t!==0,this.display.selCount.tracks=t,this.display.allTracksChecked=t===this.selTracks.length}else{for(let a=0;a<this.selTracks.length;a++)this.selTracks[a]=i,this.display.saveTracksOK=i,this.display.allTracksChecked=i;this.display.selCount.tracks=i?this.selTracks.length:0}this.display.someTrkChecked=!(this.display.allTracksChecked||t===0)}static \u0275fac=function(e){return new(e||o)(C(Ve),C(Se),C(F),C(j),C(N))};static \u0275cmp=$({type:o,selectors:[["gpxsave-dialog"]],decls:19,vars:6,consts:[["wval",""],["rval",""],["tval",""],[1,"gpxsave-dialog"],[2,"background-color","transparent"],[2,"display","flex","width","100%"],["mat-raised-button","","matTooltip","Save selected resources","matTooltipPosition","right",2,"width","85px",3,"click","disabled"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mode","indeterminate"],["mat-dialog-content","",2,"padding","2px"],[1,"card-group"],[3,"opened","closed","expanded"],[1,"panel-header"],[1,"icon-waypoint"],[1,"panel-description"],["matTooltip","Select all Waypoints","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],[1,"list-container-scrollable"],[1,"item-row"],[1,"name"],[1,"check"],["matTooltip","Select Waypoint","matTooltipPosition","below",3,"change","checked"],[1,"icon-route"],["matTooltip","Select all Routes","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],["matTooltip","Select this Route","matTooltipPosition","below",3,"change","checked"],[1,"icon-track"],["matTooltip","Select all Tracks","matTooltipPosition","before",3,"change","click","indeterminate","checked","disabled"],[1,"track-range"],["matTooltip","Select this Track","matTooltipPosition","below",3,"change","checked"],[1,"track-note"],[1,"track-range-select"],[3,"ngModelChange","ngModel"],["value","displayed"],["value","7d"],["value","30d"],["value","all"],["value","history"],["value","custom"],[1,"track-range-custom"],["matInput","","type","datetime-local",3,"ngModelChange","ngModel"]],template:function(e,t){e&1&&(r(0,"div",3)(1,"mat-toolbar",4)(2,"div",5)(3,"div")(4,"button",6),h("click",function(){return t.save()}),r(5,"mat-icon"),l(6,"save"),s(),l(7,"\xA0Save\xA0 "),s()(),r(8,"div",7),l(9),s(),r(10,"div",8)(11,"button",9),h("click",function(){return t.dialogRef.close(-1)}),r(12,"mat-icon"),l(13,"close"),s()()()()(),f(14,ze,1,0,"mat-progress-bar",10),r(15,"div",11),f(16,Qe,15,4,"div",12),f(17,Je,15,4,"div",12),f(18,rt,16,5,"div",12),s()()),e&2&&(c(4),g("disabled",!t.canSave),c(5),S(" ",t.data.tracksOnly?"Export track to GPX":"Export to GPX"," "),c(5),_(t.fetching?14:-1),c(2),_(t.resData.waypoints.length!==0?16:-1),c(),_(t.resData.routes.length!==0?17:-1),c(),_(t.resData.tracks.length!==0?18:-1))},dependencies:[Te,be,Me,Pe,z,U,Q,q,Z,J,Y,oe,pe,ce,le,me,de,ue,ve,_e,ye,Ce,ke,se,re,we,fe,xe,ge,he,ne,te,ie,ae],styles:[".gpxsave-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative}.dialog-content[_ngcontent-%COMP%]{position:relative;min-height:300px;max-height:400px;width:100%;min-width:240px;overflow-y:auto}.dialog-icon[_ngcontent-%COMP%]{display:none}.card-group[_ngcontent-%COMP%]{padding:5px 5%}.card-group[_ngcontent-%COMP%] .panel-header[_ngcontent-%COMP%]{padding:0 5px}.card-group[_ngcontent-%COMP%] .panel-description[_ngcontent-%COMP%]{text-align:right;width:100%;padding-right:10px}.card-group-title[_ngcontent-%COMP%]{font-weight:700;font-size:10pt;font-family:Arial,Helvetica,sans-serif;padding:10px 0}button[_ngcontent-%COMP%]{min-width:unset;padding:unset}.item-row[_ngcontent-%COMP%]{display:flex;width:100%;padding:2px 0}.item-row[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-overflow:ellipsis;line-height:2.5em}.item-row[_ngcontent-%COMP%] .check[_ngcontent-%COMP%]{text-align:right;padding-right:15px}.track-note[_ngcontent-%COMP%]{font-size:.85em;opacity:.8;padding:0 15px 4px 30px}.track-range[_ngcontent-%COMP%]{padding:8px 5px 0}.track-range-select[_ngcontent-%COMP%]{width:100%}.track-range-custom[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:0 8px}.track-range-custom[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:1 1 220px}@media only screen and (min-width:475px){button[_ngcontent-%COMP%]{min-width:inherit;padding:inherit}.dialog-content[_ngcontent-%COMP%]{min-width:400px}.dialog-icon[_ngcontent-%COMP%]{display:inline}}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{Le as GPXExportDialog,X as fromLocalInput,$e as toLocalInput};
|
package/public/chunk-4GN5KO3L.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Aa as dt,C as $e,F as et,G as tt,H as it,N as nt,Oa as gt,P as at,Pa as mt,Ua as L,a as Te,b as De,da as ot,e as I,g as Ee,h as We,oa as rt,pa as $,qa as ee,t as Je,u as Qe,ya as st,za as lt}from"./chunk-5UXNTYSY.js";import{a as Xe,b as Ye,c as Q}from"./chunk-VAI3YHUS.js";import{b as Oe,e as Ie,j as Be,k as Ae,l as Fe}from"./chunk-3LS56QZI.js";import{a as X,b as Y,c as qe,d as J}from"./chunk-IQZW2T75.js";import{a as je}from"./chunk-LNNAK44C.js";import"./chunk-3HSIX7SC.js";import{b as K,c as Ne,d as Re,f as Ue,i as z,j as Ge,n as q,o as j}from"./chunk-XUGRUSQE.js";import{a as He,h as Ze,j as Ke,k as ze}from"./chunk-JWBOMKMB.js";import"./chunk-ZU72P2HZ.js";import"./chunk-DX34XOH2.js";import{$ as B,$d as R,Ea as O,Fa as b,Fd as Se,Ga as T,Ia as D,Ja as y,Jd as Ce,Ka as S,La as h,Ld as Me,Ma as n,Mb as A,Na as i,Nd as we,Oa as E,Od as N,Q as W,Qb as ye,Rb as F,S as m,T as c,U as x,V as pe,Va as V,Wd as ve,Xa as p,Yd as be,Z as _e,Za as M,aa as ue,be as U,ea as fe,ge as G,hb as w,je as H,ka as o,kb as he,ke as Ve,mb as l,nb as C,ne as ke,ob as k,oe as Pe,pe as Le,qb as _,qe as xe,rb as u,re as Z,sa as P,sb as f}from"./chunk-DBGL657U.js";import"./chunk-NCEQPEJE.js";var Mt=(s,d)=>d[0];function wt(s,d){if(s&1&&(n(0,"mat-option",8),x(),n(1,"svg",6),E(2,"line",7),i()()),s&2){let a=d.$implicit;h("value",a),o(2),O("stroke-width",a)}}function vt(s,d){if(s&1&&(n(0,"mat-option",8),x(),n(1,"svg",6),E(2,"line",9),i()()),s&2){let a=d.$implicit;h("value",a[0]),o(2),O("stroke-dasharray",a[1])}}var te=class s{color=F("#ff0000");dash=F("none");weight=F(1);_color=A(()=>this.color());_dash=A(()=>this.dash());_weight=A(()=>this.weight());selectionChange=ye();app=W(L);line={dashArrays:this.app.lineDashMap,weights:[1,2,3,4,5]};constructor(){}ngOnInit(){}onSelectChange(){let d=this.app.formatLineDashArray(this._dash());this.selectionChange.emit({lineStyle:{fill:{color:this._color()},stroke:{color:this._color(),width:this._weight(),lineDash:d}},config:{color:this._color(),weight:this._weight(),dash:this._dash()}})}static \u0275fac=function(a){return new(a||s)};static \u0275cmp=P({type:s,selectors:[["linestyle-select"]],inputs:{color:[1,"color"],dash:[1,"dash"],weight:[1,"weight"]},outputs:{selectionChange:"selectionChange"},decls:25,vars:5,consts:[[2,"display","flex"],[2,"width","100px"],["mat-input","","matNativeControl","","type","color",3,"ngModelChange","change","ngModel"],[2,"width","110px"],[3,"ngModelChange","selectionChange","ngModel"],[2,"display","flex","align-items","center","gap","8px"],["width","48","height","10",2,"vertical-align","middle","margin-right","6px"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-array","none"],[3,"value"],["x1","0","y1","5","x2","48","y2","5","stroke","currentColor","stroke-width","2"]],template:function(a,e){a&1&&(n(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),l(3,"Color"),i(),n(4,"input",2),f("ngModelChange",function(r){return u(e._color,r)||(e._color=r),r}),p("change",function(){return e.onSelectChange()}),i()(),n(5,"mat-form-field",3)(6,"mat-label"),l(7,"Weight"),i(),n(8,"mat-select",4),f("ngModelChange",function(r){return u(e._weight,r)||(e._weight=r),r}),p("selectionChange",function(){return e.onSelectChange()}),n(9,"mat-select-trigger")(10,"div",5),x(),n(11,"svg",6),E(12,"line",7),i()()(),y(13,wt,3,2,"mat-option",8,D),i()(),pe(),n(15,"mat-form-field",3)(16,"mat-label"),l(17,"Style"),i(),n(18,"mat-select",4),f("ngModelChange",function(r){return u(e._dash,r)||(e._dash=r),r}),p("selectionChange",function(){return e.onSelectChange()}),n(19,"mat-select-trigger")(20,"div",5),x(),n(21,"svg",6),E(22,"line",9),i()()(),y(23,vt,3,2,"mat-option",8,Mt),i()()()),a&2&&(o(4),_("ngModel",e._color),o(4),_("ngModel",e._weight),o(4),O("stroke-width",e._weight()),o(),S(e.line.weights),o(5),_("ngModel",e._dash),o(4),O("stroke-dasharray",e.line.dashArrays.get(e._dash())),o(),S(e.line.dashArrays))},dependencies:[Z,U,G,H,N,R,Q,j,q,z,K,J,Y,qe,X],encapsulation:2})};var ie="auto";var Tt=(s,d)=>d[0];function Dt(s,d){if(s&1){let a=V();n(0,"div",4)(1,"mat-radio-button",5,0),p("change",function(){m(a);let g=w(2),r=M().$implicit,t=M();return r[1].current=g.value,c(t.save(!0))}),l(3),i()()}if(s&2){let a=d.$implicit,e=M().$implicit,g=M();o(),h("name",e[0])("value",a)("checked",a===e[1].current),o(2),k(" ",g.pathLabel(a)," ")}}function Et(s,d){if(s&1&&(n(0,"div",2)(1,"div",3)(2,"div"),l(3),i()(),n(4,"div"),y(5,Dt,4,4,"div",4,D),i()()),s&2){let a=d.$implicit;o(3),C(a[1].name),o(2),S(a[1].available)}}var ne=class s{title="";chosen=new _e;pathChoices={tws:{name:"True Wind Speed",choices:["environment.wind.speedTrue","environment.wind.speedOverGround"],available:[],current:""},twd:{name:"True Wind Direction",choices:["environment.wind.directionTrue","environment.wind.directionMagnetic","environment.wind.angleTrueGround","environment.wind.angleTrueWater"],available:[],current:""},heading:{name:"Heading / COG",choices:[ie,"navigation.courseOverGroundTrue","navigation.courseOverGroundMagnetic","navigation.headingTrue","navigation.headingMagnetic"],available:[],current:""}};pathChoicesArray=Object.entries(this.pathChoices);availPaths;app=W(L);constructor(){}pathLabel(d){return d===ie?"Automatic":d.split(".").slice(-1)[0]}ngOnInit(){this.initEntries()}initEntries(){this.availPaths=new Map(Object.entries(this.app.data.vessels.prefAvailablePaths)),this.pathChoices.tws.current=this.app.config.units.preferredPaths.tws,this.pathChoices.twd.current=this.app.config.units.preferredPaths.twd,this.pathChoices.heading.current=this.app.config.units.preferredPaths.heading,Object.entries(this.pathChoices).forEach(a=>{let e=a[1];e.choices.forEach(g=>{(g===ie||this.availPaths.has(g))&&e.available.push(g)}),e.available.length===0&&e.available.push(e.choices[0])})}save(d){let a={};Object.entries(this.pathChoices).forEach(e=>{a[e[0]]=e[1].current}),this.chosen.emit({save:d,value:a})}static \u0275fac=function(a){return new(a||s)};static \u0275cmp=P({type:s,selectors:[["signalk-preferred-paths"]],inputs:{title:"title"},outputs:{chosen:"chosen"},decls:6,vars:1,consts:[["pathopt",""],[2,"font-size","10pt"],[1,"sk-details"],[1,"title"],[2,"margin","5px 0 5px 0"],[3,"change","name","value","checked"]],template:function(a,e){a&1&&(n(0,"fieldset")(1,"legend",1),l(2),i(),n(3,"div"),y(4,Et,7,1,"div",2,Tt),i()()),a&2&&(o(2),C(e.title),o(2),S(e.pathChoicesArray))},dependencies:[ee,$],styles:[".sk-details[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:10pt;max-height:100%;width:60vw;max-width:300px}.sk-details[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{background:left 1px -webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.18)),color-stop(.65,transparent)) #b2bbc2e3;padding:3px 5px 0;margin-top:3px;font-weight:500;line-height:23px;color:#000}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:0;line-height:23px;margin:0;flex:1 1 auto;overflow:auto}.sk-details[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;flex-direction:row;line-height:26px;border-width:0 0 0 0;border-style:solid;border-color:gray;padding-left:5px}.sk-details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-width:0 0 1px 0}.sk-details[_ngcontent-%COMP%] .sectionname[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;font-weight:500}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;width:100%;background-color:#fff}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-style:italic}.sk-details[_ngcontent-%COMP%] .pathvalue[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0})};var v=(s,d)=>d[0],Wt=(s,d)=>d.id;function Vt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function kt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Pt(s,d){if(s&1&&(n(0,"mat-option",132),l(1),i()),s&2){let a=d.$implicit;h("value",a.url)("matTooltip",a.description),o(),k(" ",a.name," ")}}function Lt(s,d){if(s&1){let a=V();n(0,"div",46)(1,"div",38)(2,"mat-form-field",39)(3,"mat-label"),l(4,"Select Instruments App"),i(),n(5,"mat-select",64),f("ngModelChange",function(g){m(a);let r=M();return u(r.facade.settings.display.plugins.instruments,g)||(r.facade.settings.display.plugins.instruments=g),c(g)}),p("selectionChange",function(){m(a);let g=M();return c(g.onInstrumentApp())}),y(6,Pt,2,3,"mat-option",132,D),i()()(),n(8,"div",38)(9,"mat-form-field",52)(10,"mat-label"),l(11,"Parameters"),i(),n(12,"input",133,21),f("ngModelChange",function(g){m(a);let r=M();return u(r.facade.settings.display.plugins.parameters,g)||(r.facade.settings.display.plugins.parameters=g),c(g)}),p("change",function(){m(a);let g=M();return c(g.persistModel("pluginParameters"))}),i()()(),n(14,"div",38)(15,"mat-checkbox",134),f("ngModelChange",function(g){m(a);let r=M();return u(r.facade.settings.display.plugins.startOnOpen,g)||(r.facade.settings.display.plugins.startOnOpen=g),c(g)}),p("change",function(){m(a);let g=M();return c(g.persistModel("pluginStartOnOpen"))}),l(16," Halt App on hide "),i()(),n(17,"div",38)(18,"button",135),p("click",function(){m(a);let g=M();return c(g.toggleFavourites())}),n(19,"mat-icon"),l(20,"star"),i(),l(21," FAVOURITES "),i()()()}if(s&2){let a=M();o(5),_("ngModel",a.facade.settings.display.plugins.instruments),o(),S(a.facade.applicationList),o(6),h("disabled",a.facade.settings.display.plugins.instruments===null),_("ngModel",a.facade.settings.display.plugins.parameters),o(3),_("ngModel",a.facade.settings.display.plugins.startOnOpen)}}function xt(s,d){if(s&1&&(n(0,"mat-list-option",137),l(1),i()),s&2){let a=d.$implicit,e=M(2);h("disabled",a.url==e.facade.settings.display.plugins.instruments)("selected",e.facade.settings.display.plugins.favourites.includes(a.url))("value",a.url),o(),k(" ",a.name," ")}}function Ot(s,d){if(s&1){let a=V();n(0,"div",37)(1,"div",38)(2,"div",114),E(3,"br"),l(4,"Select Favourite Apps: "),i(),E(5,"mat-divider"),n(6,"mat-selection-list",136,22),p("selectionChange",function(g){m(a);let r=w(7),t=M();return c(t.onFavSelected(g,r))}),y(8,xt,2,4,"mat-list-option",137,D),i()()()}if(s&2){let a=M();o(8),S(a.facade.favouritesList)}}function It(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Bt(s,d){s&1&&(n(0,"mat-error"),l(1,"Please enter a number >= 0"),i())}function At(s,d){s&1&&(n(0,"mat-error"),l(1,"Please enter a number >= 1"),i())}function Ft(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Nt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Rt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Ut(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Gt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Ht(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Zt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Kt(s,d){if(s&1){let a=V();n(0,"div",38)(1,"mat-form-field",39)(2,"mat-label"),l(3,"Position display format"),i(),n(4,"mat-select",138),f("ngModelChange",function(g){m(a);let r=M();return u(r.facade.settings.units.positionFormat,g)||(r.facade.settings.units.positionFormat=g),c(g)}),p("selectionChange",function(){m(a);let g=M();return c(g.persistModel())}),y(5,Zt,2,2,"mat-option",41,D),i()()()}if(s&2){let a=M();o(4),_("ngModel",a.facade.settings.units.positionFormat),o(),S(a.options.preferredValues.coords)}}function zt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function qt(s,d){if(s&1){let a=V();n(0,"div",38)(1,"mat-form-field",39)(2,"mat-label"),l(3,"Prefer True / Magnetic values"),i(),n(4,"mat-select",139),f("ngModelChange",function(g){m(a);let r=M();return u(r.facade.settings.units.headingAttribute,g)||(r.facade.settings.units.headingAttribute=g),c(g)}),p("selectionChange",function(){m(a);let g=M();return c(g.persistModel("headingAttribute"))}),y(5,zt,2,2,"mat-option",41,D),i()()()}if(s&2){let a=M();o(4),_("ngModel",a.facade.settings.units.headingAttribute),o(),S(a.options.preferredValues.heading)}}function jt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a),o(),C(a)}}function Xt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Yt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Jt(s,d){if(s&1){let a=V();n(0,"mat-form-field",39)(1,"mat-label"),l(2,"Resume Following After"),i(),n(3,"mat-select",140),f("ngModelChange",function(g){m(a);let r=M();return u(r.facade.settings.map.refollowDelay,g)||(r.facade.settings.map.refollowDelay=g),c(g)}),p("selectionChange",function(){m(a);let g=M();return c(g.persistModel())}),y(4,Yt,2,2,"mat-option",41,v),i()()}if(s&2){let a=M();o(3),_("ngModel",a.facade.settings.map.refollowDelay),o(),S(a.options.map.refollowDelay)}}function Qt(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function $t(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function ei(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function ti(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a),o(),C(a)}}function ii(s,d){s&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function ni(s,d){s&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function ai(s,d){s&1&&(n(0,"mat-error"),l(1," Please enter a positive number "),i())}function oi(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function ri(s,d){s&1&&(n(0,"mat-error"),l(1," Please enter a number > 0 "),i())}function si(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a),o(),C(a)}}function li(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function di(s,d){if(s&1&&(n(0,"mat-radio-button",41),E(1,"img",141),l(2),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),he(`transform: scale(${a[0]})`),o(),k(" (",a[1],") ")}}function gi(s,d){s&1&&(n(0,"mat-error"),l(1," Please enter a value between -90 and 90 (max 9 decimals) "),i())}function mi(s,d){s&1&&(n(0,"mat-error"),l(1," Please enter a value between -180 and 180 (max 9 decimals) "),i())}function ci(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function pi(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function _i(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a),o(),C(a)}}function ui(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a),o(),C(a)}}function fi(s,d){s&1&&(n(0,"mat-error"),l(1," Please enter a number >= 1. "),i())}function hi(s,d){s&1&&(n(0,"mat-hint"),l(1,"Server requires a Track API (v2) provider"),i())}function yi(s,d){if(s&1&&(n(0,"mat-hint"),l(1),i()),s&2){let a=M();o(),k("Using: ",a.app.serverTrailWanted()?"Server":"This device")}}function Si(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Ci(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Mi(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function wi(s,d){if(s&1){let a=V();n(0,"div",37)(1,"div",142)(2,"mat-slider",103)(3,"input",104),f("ngModelChange",function(g){m(a);let r=M();return u(r.facade.settings.vessels.aisTrackLength,g)||(r.facade.settings.vessels.aisTrackLength=g),c(g)}),p("valueChange",function(){m(a);let g=M();return c(g.deferPersist())}),i()(),l(4),i()()}if(s&2){let a=M();o(2),h("disabled",!a.app.featureFlags().tracksApi),o(),_("ngModel",a.facade.settings.vessels.aisTrackLength),o(),k(" Picked vessel track length (",a.facade.settings.vessels.aisTrackLength," hrs) ")}}function vi(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function bi(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Ti(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Di(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a),o(),C(a)}}function Ei(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Wi(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a),o(),C(a)}}function Vi(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a),o(),C(a)}}function ki(s,d){if(s&1){let a=V();n(0,"button",143),p("click",function(){m(a),M();let g=w(561);return c(g.value="")}),n(1,"mat-icon"),l(2,"close"),i()()}}function Pi(s,d){if(s&1&&(n(0,"mat-list-option",116),l(1),i()),s&2){let a=d.$implicit,e=M();h("selected",e.facade.settings.resources.paths.includes(a))("value",a),o(),k(" ",a," ")}}function Li(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a.id),o(),C(a.name)}}function xi(s,d){if(s&1){let a=V();n(0,"mat-tab",117)(1,"div",32)(2,"div",33)(3,"div",129)(4,"div",35),l(5,"RADAR SETTINGS"),i(),n(6,"mat-card",36)(7,"div",46)(8,"div",38)(9,"mat-form-field",144)(10,"mat-label"),l(11,"Radar Devices"),i(),n(12,"mat-select",145,23),f("ngModelChange",function(g){m(a);let r=M();return u(r.facade.settings.radars.deviceId,g)||(r.facade.settings.radars.deviceId=g),c(g)}),p("selectionChange",function(){m(a);let g=M();return c(g.doRadar())}),y(14,Li,2,2,"mat-option",41,Wt),i()()(),n(16,"div",38)(17,"button",146),p("click",function(){m(a);let g=M();return c(g.refreshRadars())}),n(18,"mat-icon"),l(19," refresh"),i(),l(20," REFRESH "),i()()()()()()()()}if(s&2){let a=M();o(12),h("disabled",!a.radarList().length||a.app.uiCtrl().radarLayer),_("ngModel",a.facade.settings.radars.deviceId),o(2),S(a.radarList())}}function Oi(s,d){if(s&1&&(n(0,"mat-option",41),l(1),i()),s&2){let a=d.$implicit;h("value",a[0]),o(),C(a[1])}}function Ii(s,d){s&1&&(n(0,"mat-error"),l(1," Value required. "),i())}var _t=class s{show={favourites:B(!1)};options;centerOffsetLimit=Ee;aisStateFilter={moored:!1,anchored:!1};formattedNumberModel={rangeCirclesDistance:1e3};unitsChangedSignal=B(0);radarList=B([]);saveOnClose=!1;arrivalCircleChanged=!1;facade=W(mt);myElement=W(fe);dialogRef=W(Se);wakeLock=W(Te);s57=W(Je);app=W(L);radarApi=W($e);course=W(at);constructor(){this.options=new gt,ue(()=>{this.unitsChangedSignal(),this.formatNumberModel()})}ngOnInit(){this.facade.refresh(),this.facade.settings.selections.aisState.forEach(d=>{d in this.aisStateFilter&&(this.aisStateFilter[d]=!0)}),this.refreshRadars()}refreshRadars(){this.radarApi.listRadars().then(d=>{this.radarList.set(d)}).catch(()=>{this.radarList.set([])})}formatNumberModel(){this.formattedNumberModel={rangeCirclesDistance:this.facade.settings.units.distance==="kilometer"?Math.floor(this.facade.settings.vessels.rangeCirclesDistance/1e3):Math.floor(I.transform(this.facade.settings.vessels.rangeCirclesDistance,"m","naut-mile"))}}raiseChange(){this.app.alignUnitPrefs(this.app.serverConfig.unitPreferences()),this.unitsChangedSignal.update(d=>d+1)}handleClose(){this.saveOnClose&&this.persistModel(),this.arrivalCircleChanged&&this.applyArrivalCircle(),this.dialogRef.close()}doWakelock(d){this.persistModel(),d?this.wakeLock.disable():this.wakeLock.enable()}doS57(d){this.facade.settings.map.s57Options.depthUnit=this.facade.settings.units.depth,d?this.parseNumber(d):this.persistModel(),this.s57.setOptions(this.facade.settings.map.s57Options)}doRadar(){this.radarApi.init(this.facade.settings.radars.deviceId).then(d=>{d&&this.persistModel()})}onLineStyle(d,a){let e=this.facade.settings.vessels.selfLines[d];e&&(e.color=a.config.color,e.dash=a.config.dash,e.weight=a.config.weight,this.app.selfLines.update(g=>{let r=Object.assign({},g);return r[d]=a.lineStyle,r}),this.persistModel())}toggleFavourites(){this.show.favourites.update(d=>!d)}parseCenterOffset(d){d.reset(typeof d.model=="number"?We(d.model):0),this.persistModel()}onArrivalCircleChange(d){this.parseNumber(d),this.arrivalCircleChanged=!0}applyArrivalCircle(){let d=this.facade.settings.course.arrivalCircle,a=this.course.courseData();a.position&&d>0&&d!==a.arrivalCircle&&this.course.setArrivalCircle(d)}parseNumber(d,a){if(typeof d.model!="number"){d.reset(this.fallbackToDefault());return}!a&&d.model<0&&d.reset(Math.abs(d.model)),this.persistModel()}parseFormattedNumber(d,a){typeof d.model=="number"&&(!a&&d.model<0&&d.reset(Math.abs(d.model)),this.facade.settings.vessels.rangeCirclesDistance=this.facade.settings.units.distance==="kilometer"?Math.floor(this.formattedNumberModel.rangeCirclesDistance*1e3):Math.floor(I.nauticalMilesToKm(this.formattedNumberModel.rangeCirclesDistance)*1e3),this.persistModel())}fallbackToDefault(){let d=Qe();if(typeof this.facade.settings.display.statusBar.referenceSpeed!="number")return d.display.statusBar.referenceSpeed;if(typeof this.facade.settings.display.statusBar.tapFadeSpeed!="number")return d.display.statusBar.tapFadeSpeed;if(typeof this.facade.settings.map.s57Options.shallowDepth!="number")return d.map.s57Options.shallowDepth;if(typeof this.facade.settings.map.s57Options.safetyDepth!="number")return d.map.s57Options.safetyDepth;if(typeof this.facade.settings.map.s57Options.deepDepth!="number")return d.map.s57Options.deepDepth;if(typeof this.facade.fixedPosition[0]!="number"||typeof this.facade.fixedPosition[1]!="number")return 0;if(typeof this.facade.settings.course.arrivalCircle!="number")return d.course.arrivalCircle}get serverTrailAvailable(){return De(this.app.trackSource())}persistModel(d){this.facade.applySettings(),this.facade.emitChangeEvent(d)}get speedUnitSymbol(){return I.getSymbol(this.facade.settings.units.speed)}deferPersist(d){this.saveOnClose=!0,this.facade.emitChangeEvent(d)}onInstrumentApp(){this.persistModel("pluginInstruments"),this.facade.buildFavouritesList()}onPreferredPaths(d){d.save&&(this.facade.settings.units.preferredPaths=d.value,this.persistModel())}onFavSelected(d,a){this.facade.settings.display.plugins.favourites=a.selectedOptions.selected.map(e=>e.value),this.persistModel()}onAisStateFilter(){let d=[];for(let a in this.aisStateFilter)this.aisStateFilter[a]&&d.push(a);this.facade.settings.selections.aisState=[].concat(d),this.persistModel()}onResPathSelected(d){this.facade.settings.resources.paths=d.selectedOptions.selected.map(a=>a.value),this.facade.settings.resources.paths.forEach(a=>{a in this.facade.settings.selections.resourceSets||(this.facade.settings.selections.resourceSets[a]=[])}),this.persistModel()}clearAuthToken(){this.facade.clearToken()}renderSymbol(d){return I.getSymbol(d)}static \u0275fac=function(a){return new(a||s)};static \u0275cmp=P({type:s,selectors:[["settings-dialog"]],decls:660,vars:140,consts:[["refspeed","ngModel"],["tapfade","ngModel"],["serverprefs",""],["distunits",""],["centerOffsetY","ngModel"],["centerOffsetX","ngModel"],["s57shallowDepth","ngModel"],["s57safetyDepth","ngModel"],["s57deepDepth","ngModel"],["coursearrivalcircle","ngModel"],["courseautoadvance",""],["courseautoadvanceon",""],["vesselfixedlocationmode",""],["fixedlat","ngModel"],["fixedlon","ngModel"],["rangeCirclesDistance","ngModel"],["notesrootfilter",""],["respath",""],["skmaxradius",""],["videourl","ngModel"],["experiments",""],["instparams","ngModel"],["favs",""],["radarlist",""],[2,"background-color","transparent"],[1,"dialog-icon"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],["dynamicHeight","false","mat-stretch-tabs","false","mat-align-tabs","start"],["label","Display"],[1,"theme-page","settings"],[1,"theme-panel"],["id","sectDisplay",1,"setting-group"],[1,"setting-group-title"],[1,"setting-card"],[1,"setting-card-row",2,"padding-bottom","10px"],[1,"setting-card-row-item"],[2,"width","100%"],["matTooltip","Dark Mode setting.",3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["label","after","matTooltip","Auto-set using environment.mode value.",3,"ngModelChange","change","ngModel"],["matTooltip","Action button selection.",3,"ngModelChange","selectionChange","ngModel"],["label","after","matTooltip","Disable wake lock.",3,"ngModelChange","change","disabled","ngModel"],["label","after","matTooltip","Un-check to prefer dialogs over the information panel",3,"ngModelChange","change","ngModel"],[1,"setting-card-row"],["matTooltip","Do not play sounds","label","after",3,"ngModelChange","change","ngModel"],["label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Period of time out of alarm state before re-triggering.",3,"ngModelChange","selectionChange","ngModel","disabled"],[1,"setting-group"],["label","after","matTooltip","Show the bearing, distance and ETA from the vessel to the cursor in the status bar. Click or tap the chart to hold the readout on that point.",3,"ngModelChange","change","ngModel"],["floatLabel","always",2,"width","100%"],["matInput","","type","number","min","0","matTooltip","Boat speed used to estimate ETA when SOG is unavailable (e.g. at anchor or hove to).",3,"ngModelChange","change","disabled","ngModel"],["matInput","","type","number","min","1","step","0.5","matTooltip","How long the marker left by a click or tap takes to fade. The readout stays held on that point until it does.",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Glyph used to display wind direction and speed.",3,"ngModelChange","selectionChange","ngModel"],["label","Units"],["id","sectUnits",1,"setting-group"],["label","after","matTooltip","Use the unit preferences configured on the server.",3,"ngModelChange","change","disabled","ngModel"],[3,"ngModelChange","selectionChange","disabled","ngModel"],["title","Preferred Paths",3,"chosen"],["label","Map"],["id","sectMap",1,"setting-group"],["aria-hidden","true",1,"setting-field-group-title"],[3,"ngModelChange","selectionChange","ngModel"],[1,"setting-field-group-title"],[1,"setting-field-group"],["floatLabel","always"],["matInput","","type","number","matTooltip","Where the vessel sits up or down the screen, as a percentage of the distance to the edge. Positive looks ahead (vessel lower); negative looks behind.",3,"ngModelChange","change","min","max","ngModel"],["matInput","","type","number","matTooltip","Where the vessel sits left or right of centre, as a percentage of the distance to the edge. Positive shifts the map right (vessel left).",3,"ngModelChange","change","min","max","ngModel"],["matTooltip","Add close button to popovers","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Double Click map to zoom","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Keep tiles visible when zooming past chart maxZoom","label","after",3,"ngModelChange","change","ngModel"],[1,"setting-card-row-item","setting-card-row-stack"],["matTooltip","What panning the chart does while following the vessel.",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Graphicsstyle",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Boundaries",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Color Table",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Colors",3,"ngModelChange","selectionChange","ngModel"],["matInput","","type","number","required","","min","0",3,"ngModelChange","change","ngModel"],["matSuffix",""],["multiple","","placeholder","Layers",3,"ngModelChange","selectionChange","ngModel"],["label","Course"],["id","sectCourse",1,"setting-group"],["matTooltip","Select the trigger for advancing to next point.",3,"ngModelChange","selectionChange","disabled","ngModel"],["matTooltip","Period of time before destination is advanced to next waypoint.",3,"ngModelChange","selectionChange","disabled","ngModel"],["label","Vessels"],["id","sectVessels",1,"setting-group"],[3,"ngModelChange","change","ngModel"],["label","after","matTooltip","e.g. Building, Camp, etc.",3,"ngModelChange","change","ngModel"],["matInput","","type","number","required","","pattern","^-?([1-8]?[0-9])(\\.\\d{1,9})?$","min","-90","max","90",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","pattern","^-?(1[0-7]?[0-9]|[1-9]?[0-9])(\\.\\d{1,9})?$","min","-180","max","180",3,"ngModelChange","change","ngModel","disabled"],["matTooltip","Length of heading line.",3,"ngModelChange","selectionChange","ngModel"],[3,"selectionChange","color","dash","weight"],["matTooltip","Length of COG line.",3,"ngModelChange","selectionChange","ngModel"],[3,"ngModelChange","selectionChange","ngModel","disabled"],["label","after",3,"ngModelChange","change","ngModel","disabled"],["matInput","","type","number","required","","min","1",3,"ngModelChange","change","ngModel","disabled"],[2,"width","200px"],["matTooltip","Where the vessel track comes from. Auto uses the server when it can supply one.",3,"ngModelChange","selectionChange","disabled","ngModel"],["value","auto"],["value","server",3,"disabled"],["value","local"],["discrete","","tickInterval","1","min","1","max","96",3,"disabled"],["matSliderThumb","",3,"ngModelChange","valueChange","ngModel"],["label","Resources"],["id","sectNotes",1,"setting-group"],[3,"valueChange","selectionChange","disabled","value"],["matInput","","type","text","placeholder","?radius=%note:radius%","matTooltip","Filter to apply when retrieving notes",3,"ngModelChange","change","ngModel"],["matSuffix","","mat-icon-button",""],["matTooltip","Allow group name editing.","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Require position information when adding notes to a group.","label","after",3,"ngModelChange","change","ngModel"],["label","after","matTooltip","Open Note details with a single click instead of showing the pop-up options",3,"ngModelChange","change","ngModel"],["id","sectResLayers",1,"setting-group"],[2,"font-style","italic"],["matTooltip","Select resource layers to show.",3,"selectionChange"],[3,"selected","value"],["label","Radar"],["label","Signal K"],["id","sectSKConnection",1,"setting-group"],[2,"font-size","smaller"],["matToolTip","Check to receive other vessel data","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive AtoN data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matTooltip","Check to receive aircraft data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive SaR data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Check to receive Weather / Meteo data","matTooltipPosition","below","label","after",3,"ngModelChange","change","ngModel"],["matToolTip","Only include AIS targets within this distance","matTooltipPosition","below",3,"ngModelChange","selectionChange","ngModel"],["mat-icon-button","","matTooltip","Clear Auth Token",3,"click"],["label","Experiments"],["id","sectExperiments",1,"setting-group"],["matInput","","type","text","required","","placeholder","Video stream URL","matTooltip","Enter URL of video stream",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Enable ALL experimental Features","label","after",3,"ngModelChange","change","ngModel"],["matTooltipPosition","right",3,"value","matTooltip"],["matInput","","type","text","placeholder","e.g. ?layout=mylayout","matTooltip","Enter parameters to pass to Instrument App",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Stop instrument app when hidden","label","after",3,"ngModelChange","change","ngModel"],["mat-raised-button","","matTooltip","Favourite Apps","label","after",3,"click"],[3,"selectionChange"],[3,"disabled","selected","value"],["matTooltip","Display position in this format",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Preferred value type for paths not in Preferred Paths above",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Resume following the vessel once the chart has been left idle for this long.",3,"ngModelChange","selectionChange","ngModel"],["src","./assets/img/vessels/self.png"],["matTooltip","How far back the track of a vessel picked with its TRACK button reaches. Needs a Track API (v2) provider.",1,"setting-card-row-item"],["matSuffix","","mat-icon-button","",3,"click"],[2,"width","stretch"],["matToolTip","Select radar device","matTooltipPosition","below",3,"ngModelChange","selectionChange","disabled","ngModel"],["mat-raised-button","",3,"click"]],template:function(a,e){if(a&1){let g=V();n(0,"mat-toolbar",24)(1,"span",25)(2,"mat-icon"),l(3,"settings"),i()(),n(4,"span",26),l(5,"Settings"),i(),n(6,"span",27)(7,"button",28),p("click",function(){return e.handleClose()}),n(8,"mat-icon"),l(9,"close"),i()()()(),n(10,"div",29)(11,"mat-tab-group",30)(12,"mat-tab",31)(13,"div",32)(14,"div",33)(15,"div",34)(16,"div",35),l(17,"DISPLAY"),i(),n(18,"mat-card",36)(19,"mat-card-content")(20,"div",37)(21,"div",38)(22,"mat-form-field",39)(23,"mat-label"),l(24,"Dark Mode setting"),i(),n(25,"mat-select",40),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.darkMode.source,t)||(e.facade.settings.display.darkMode.source=t),c(t)}),p("selectionChange",function(){return e.persistModel("darkTheme")}),y(26,Vt,2,2,"mat-option",41,v),i()()(),n(28,"div",38)(29,"mat-checkbox",42),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.nightMode,t)||(e.facade.settings.display.nightMode=t),c(t)}),p("change",function(){return e.persistModel()}),l(30," Auto-set Night Mode "),i()(),n(31,"div",38)(32,"mat-form-field",39)(33,"mat-label"),l(34,"Action Button"),i(),n(35,"mat-select",43),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.fab,t)||(e.facade.settings.display.fab=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(36,kt,2,2,"mat-option",41,v),i()()(),n(38,"div",38)(39,"mat-checkbox",44),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.disableWakelock,t)||(e.facade.settings.display.disableWakelock=t),c(t)}),p("change",function(t){return e.doWakelock(t.checked)}),l(40," Allow Device to Sleep "),i()(),n(41,"div",38)(42,"mat-checkbox",45),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.preferInfoPanel,t)||(e.facade.settings.display.preferInfoPanel=t),c(t)}),p("change",function(){return e.persistModel()}),l(43," Prefer Info-Panel "),i()()()()(),E(44,"br"),n(45,"mat-card",36)(46,"mat-card-content"),b(47,Lt,22,4,"div",46),b(48,Ot,10,0,"div",37),i()(),E(49,"br"),i(),n(50,"div",34)(51,"div",35),l(52,"SOUND"),i(),n(53,"mat-card",36)(54,"mat-card-content")(55,"div",37)(56,"div",38)(57,"mat-checkbox",47),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.muteSound,t)||(e.facade.settings.display.muteSound=t),c(t)}),p("change",function(){return e.persistModel()}),l(58," Do not Play Sounds "),i()(),n(59,"div",38)(60,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.depthAlarm.enabled,t)||(e.facade.settings.display.depthAlarm.enabled=t),c(t)}),p("change",function(){return e.persistModel()}),l(61," Show DEPTH Alarms "),i()(),n(62,"div",38)(63,"mat-form-field",39)(64,"mat-label"),l(65,"Alarm Smoothing Time"),i(),n(66,"mat-select",49),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.depthAlarm.smoothing,t)||(e.facade.settings.display.depthAlarm.smoothing=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(67,It,2,2,"mat-option",41,v),i()()()()()()(),n(69,"div",50)(70,"div",35),l(71,"STATUS BAR OPTIONS"),i(),n(72,"mat-card",36)(73,"mat-card-content")(74,"div",37)(75,"div",38)(76,"mat-checkbox",51),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.liveEta,t)||(e.facade.settings.display.statusBar.liveEta=t),c(t)}),p("change",function(){return e.persistModel()}),l(77," Live ETA at cursor "),i()(),n(78,"div",38)(79,"mat-form-field",52)(80,"mat-label"),l(81),i(),n(82,"input",53,0),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.referenceSpeed,t)||(e.facade.settings.display.statusBar.referenceSpeed=t),c(t)}),p("change",function(){m(g);let t=w(83);return c(e.parseNumber(t))}),i(),b(84,Bt,2,0,"mat-error"),i()(),n(85,"div",38)(86,"mat-form-field",52)(87,"mat-label"),l(88,"Tap Fade Speed (s)"),i(),n(89,"input",54,1),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.statusBar.tapFadeSpeed,t)||(e.facade.settings.display.statusBar.tapFadeSpeed=t),c(t)}),p("change",function(){m(g);let t=w(90);return c(e.parseNumber(t))}),i(),b(91,At,2,0,"mat-error"),i()()()()()(),n(92,"div",50)(93,"div",35),l(94,"WEATHER"),i(),n(95,"mat-card",36)(96,"mat-card-content")(97,"div",37)(98,"div",38)(99,"mat-form-field",39)(100,"mat-label"),l(101,"Wind indicator"),i(),n(102,"mat-select",55),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.windIndicator,t)||(e.facade.settings.display.windIndicator=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(103,Ft,2,2,"mat-option",41,v),i()()()()()()()()()(),n(105,"mat-tab",56)(106,"div",32)(107,"div",33)(108,"div",57)(109,"div",35),l(110,"UNITS & VALUES"),i(),n(111,"mat-card",36)(112,"mat-card-content")(113,"div",37)(114,"div",38)(115,"fieldset")(116,"legend")(117,"mat-checkbox",58,2),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.useServerPrefs,t)||(e.facade.settings.units.useServerPrefs=t),c(t)}),p("change",function(){return m(g),e.raiseChange(),c(e.persistModel())}),l(119," Use Server Unit Preferences "),i()(),n(120,"div",37)(121,"div",38)(122,"mat-form-field",39)(123,"mat-label"),l(124,"Distance units"),i(),n(125,"mat-select",59,3),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.distance,t)||(e.facade.settings.units.distance=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(127,Nt,2,2,"mat-option",41,v),i()()(),n(129,"div",38)(130,"mat-form-field",39)(131,"mat-label"),l(132,"Depth units"),i(),n(133,"mat-select",59),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.depth,t)||(e.facade.settings.units.depth=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.doS57())}),y(134,Rt,2,2,"mat-option",41,v),i()()(),n(136,"div",38)(137,"mat-form-field",39)(138,"mat-label"),l(139,"Length units"),i(),n(140,"mat-select",59),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.length,t)||(e.facade.settings.units.length=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(141,Ut,2,2,"mat-option",41,v),i()()(),n(143,"div",38)(144,"mat-form-field",39)(145,"mat-label"),l(146,"Temperature units"),i(),n(147,"mat-select",59),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.temperature,t)||(e.facade.settings.units.temperature=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(148,Gt,2,2,"mat-option",41,v),i()()(),n(150,"div",38)(151,"mat-form-field",39)(152,"mat-label"),l(153,"Speed units"),i(),n(154,"mat-select",59),f("ngModelChange",function(t){return m(g),u(e.facade.settings.units.speed,t)||(e.facade.settings.units.speed=t),c(t)}),p("selectionChange",function(){return m(g),e.raiseChange(),c(e.persistModel())}),y(155,Ht,2,2,"mat-option",41,v),i()()()()()()(),n(157,"div",37),b(158,Kt,7,1,"div",38),b(159,qt,7,1,"div",38),n(160,"div",38)(161,"signalk-preferred-paths",60),p("chosen",function(t){return e.onPreferredPaths(t)}),i()()()()()()()()(),n(162,"mat-tab",61)(163,"div",32)(164,"div",33)(165,"div",62)(166,"div",35),l(167,"MAP"),i(),n(168,"mat-card")(169,"mat-card-content")(170,"div",37)(171,"div",38)(172,"div",63),l(173," \xA0 "),i(),n(174,"mat-form-field",39)(175,"mat-label"),l(176,"Feature label zoom level"),i(),n(177,"mat-select",64),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.labelsMinZoom,t)||(e.facade.settings.map.labelsMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(178,jt,2,2,"mat-option",41,D),i()()(),n(180,"div",38)(181,"div",65),l(182," Offset Vessel Center (%) "),i(),n(183,"div",66)(184,"mat-form-field",67)(185,"mat-label"),l(186,"Vertical"),i(),n(187,"input",68,4),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.centerOffset.y,t)||(e.facade.settings.map.centerOffset.y=t),c(t)}),p("change",function(){m(g);let t=w(188);return c(e.parseCenterOffset(t))}),i()(),n(189,"mat-form-field",67)(190,"mat-label"),l(191,"Horizontal"),i(),n(192,"input",69,5),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.centerOffset.x,t)||(e.facade.settings.map.centerOffset.x=t),c(t)}),p("change",function(){m(g);let t=w(193);return c(e.parseCenterOffset(t))}),i()()()(),n(194,"div",38)(195,"mat-checkbox",70),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.popoverMulti,t)||(e.facade.settings.map.popoverMulti=t),c(t)}),p("change",function(){return e.persistModel()}),l(196," Popovers close with button "),i()(),n(197,"div",38)(198,"mat-checkbox",71),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.doubleClickZoom,t)||(e.facade.settings.map.doubleClickZoom=t),c(t)}),p("change",function(){return e.persistModel()}),l(199," Double click to Zoom "),i()(),n(200,"div",38)(201,"mat-checkbox",72),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.overZoomTiles,t)||(e.facade.settings.map.overZoomTiles=t),c(t)}),p("change",function(){return e.persistModel()}),l(202," Keep tiles visible on max zoom "),i()(),n(203,"div",73)(204,"mat-form-field",39)(205,"mat-label"),l(206,"Map Pan When Following"),i(),n(207,"mat-select",74),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.panBehavior,t)||(e.facade.settings.map.panBehavior=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(208,Xt,2,2,"mat-option",41,v),i()(),b(210,Jt,6,1,"mat-form-field",39),i()()()(),n(211,"div",35),l(212,"VECTOR CHARTS"),i(),n(213,"mat-card")(214,"mat-card-content")(215,"div",37)(216,"div",38)(217,"mat-form-field",39)(218,"mat-label"),l(219,"Graphics Style"),i(),n(220,"mat-select",75),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.graphicsStyle,t)||(e.facade.settings.map.s57Options.graphicsStyle=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(221,Qt,2,2,"mat-option",41,v),i()()(),n(223,"div",38)(224,"mat-form-field",39)(225,"mat-label"),l(226,"Boundaries"),i(),n(227,"mat-select",76),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.boundaries,t)||(e.facade.settings.map.s57Options.boundaries=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(228,$t,2,2,"mat-option",41,v),i()()(),n(230,"div",38)(231,"mat-form-field",39)(232,"mat-label"),l(233,"Color Table (Requires refresh)"),i(),n(234,"mat-select",77),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.colorTable,t)||(e.facade.settings.map.s57Options.colorTable=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(235,ei,2,2,"mat-option",41,v),i()()(),n(237,"div",38)(238,"mat-form-field",39)(239,"mat-label"),l(240,"Colors"),i(),n(241,"mat-select",78),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.colors,t)||(e.facade.settings.map.s57Options.colors=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(242,ti,2,2,"mat-option",41,D),i()()()(),n(244,"div",37)(245,"div",38)(246,"mat-form-field",39)(247,"mat-label"),l(248,"Shallow depth"),i(),n(249,"input",79,6),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.shallowDepth,t)||(e.facade.settings.map.s57Options.shallowDepth=t),c(t)}),p("change",function(){m(g);let t=w(250);return c(e.doS57(t))}),i(),b(251,ii,2,0,"mat-error"),n(252,"span",80),l(253,"m"),i()()(),n(254,"div",38)(255,"mat-form-field",39)(256,"mat-label"),l(257,"Safety depth"),i(),n(258,"input",79,7),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.safetyDepth,t)||(e.facade.settings.map.s57Options.safetyDepth=t),c(t)}),p("change",function(){m(g);let t=w(259);return c(e.doS57(t))}),i(),b(260,ni,2,0,"mat-error"),n(261,"span",80),l(262,"m"),i()()(),n(263,"div",38)(264,"mat-form-field",39)(265,"mat-label"),l(266,"Deep depth"),i(),n(267,"input",79,8),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.deepDepth,t)||(e.facade.settings.map.s57Options.deepDepth=t),c(t)}),p("change",function(){m(g);let t=w(268);return c(e.doS57(t))}),i(),b(269,ai,2,0,"mat-error"),n(270,"span",80),l(271,"m"),i()()(),n(272,"div",38)(273,"mat-form-field",39)(274,"mat-label"),l(275,"Layers"),i(),n(276,"mat-select",81),f("ngModelChange",function(t){return m(g),u(e.facade.settings.map.s57Options.otherLayers,t)||(e.facade.settings.map.s57Options.otherLayers=t),c(t)}),p("selectionChange",function(){return e.doS57()}),y(277,oi,2,2,"mat-option",41,v),i()()()()()()()()()(),n(279,"mat-tab",82)(280,"div",32)(281,"div",33)(282,"div",83)(283,"div",35),l(284,"COURSE"),i(),n(285,"mat-card",36)(286,"mat-card-content")(287,"div",37)(288,"div",38)(289,"mat-form-field",39)(290,"mat-label"),l(291,"Arrival Circle"),i(),n(292,"input",79,9),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.arrivalCircle,t)||(e.facade.settings.course.arrivalCircle=t),c(t)}),p("change",function(){m(g);let t=w(293);return c(e.onArrivalCircleChange(t))}),i(),b(294,ri,2,0,"mat-error"),n(295,"span",80),l(296,"m"),i()()()(),n(297,"div",37)(298,"div",38)(299,"mat-checkbox",48,10),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointOnArrival,t)||(e.facade.settings.course.autoNextPointOnArrival=t),c(t)}),p("change",function(){return e.persistModel()}),l(301," Auto-advance to next point on arrival "),i()()(),n(302,"div",37)(303,"div",38)(304,"mat-form-field",39)(305,"mat-label"),l(306,"Notification type to use"),i(),n(307,"mat-select",84,11),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointTrigger,t)||(e.facade.settings.course.autoNextPointTrigger=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(309,si,2,2,"mat-option",41,D),i()()(),n(311,"div",38)(312,"mat-form-field",39)(313,"mat-label"),l(314,"Time to wait before advancing"),i(),n(315,"mat-select",85),f("ngModelChange",function(t){return m(g),u(e.facade.settings.course.autoNextPointDelay,t)||(e.facade.settings.course.autoNextPointDelay=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(316,li,2,2,"mat-option",41,v),i()()()()()()()()()(),n(318,"mat-tab",86)(319,"div",32)(320,"div",33)(321,"div",87)(322,"div",35),l(323,"VESSEL"),i(),n(324,"mat-card",36)(325,"mat-card-content")(326,"div",37)(327,"div",38)(328,"fieldset")(329,"legend"),l(330,"Vessel Icon Size"),i(),n(331,"div",37)(332,"div",38)(333,"mat-radio-group",88),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.iconScale,t)||(e.facade.settings.vessels.iconScale=t),c(t)}),p("change",function(){return e.persistModel()}),y(334,di,3,4,"mat-radio-button",41,v),i()()()()()(),n(336,"div",38)(337,"fieldset")(338,"legend")(339,"mat-checkbox",89,12),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.fixedLocationMode,t)||(e.facade.settings.vessels.fixedLocationMode=t),c(t)}),p("change",function(){return e.persistModel()}),l(341," Fixed Location Mode "),i()(),n(342,"div",37)(343,"div",38)(344,"mat-form-field",67)(345,"mat-label"),l(346,"Latitude"),i(),n(347,"input",90,13),f("ngModelChange",function(t){return m(g),u(e.facade.fixedPosition[1],t)||(e.facade.fixedPosition[1]=t),c(t)}),p("change",function(){m(g);let t=w(348);return c(e.parseNumber(t,!0))}),i(),b(349,gi,2,0,"mat-error"),i(),n(350,"mat-form-field",67)(351,"mat-label"),l(352,"Longitude"),i(),n(353,"input",91,14),f("ngModelChange",function(t){return m(g),u(e.facade.fixedPosition[0],t)||(e.facade.fixedPosition[0]=t),c(t)}),p("change",function(){m(g);let t=w(354);return c(e.parseNumber(t,!0))}),i(),b(355,mi,2,0,"mat-error"),i()()()()()()(),E(356,"br"),n(357,"mat-card",36)(358,"mat-card-content")(359,"div",38)(360,"fieldset")(361,"legend"),l(362,"Vessel Lines:"),i(),n(363,"div",37)(364,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.windVectors,t)||(e.facade.settings.vessels.windVectors=t),c(t)}),p("change",function(){return e.persistModel()}),l(365," Display Wind Vectors "),i(),n(366,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.laylines,t)||(e.facade.settings.vessels.laylines=t),c(t)}),p("change",function(){return e.persistModel()}),l(367," Display Laylines "),i()(),n(368,"div",37)(369,"div",38)(370,"fieldset")(371,"legend"),l(372,"Heading Line"),i(),n(373,"div",37)(374,"div",38)(375,"mat-form-field")(376,"mat-label"),l(377,"Heading Line Length"),i(),n(378,"mat-select",92),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.selfLines.heading.length,t)||(e.facade.settings.vessels.selfLines.heading.length=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(379,ci,2,2,"mat-option",41,v),i()()(),n(381,"div",38)(382,"linestyle-select",93),p("selectionChange",function(t){return e.onLineStyle("heading",t)}),i()()()()()(),n(383,"div",37)(384,"div",38)(385,"fieldset")(386,"legend"),l(387,"COG Line"),i(),n(388,"div",37)(389,"div",38)(390,"mat-form-field")(391,"mat-label"),l(392,"COG Line Length"),i(),n(393,"mat-select",94),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.selfLines.cog.length,t)||(e.facade.settings.vessels.selfLines.cog.length=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(394,pi,2,2,"mat-option",41,v),i()()(),n(396,"div",38)(397,"linestyle-select",93),p("selectionChange",function(t){return e.onLineStyle("cog",t)}),i()()()()()()()(),n(398,"div",38)(399,"fieldset")(400,"legend")(401,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircles,t)||(e.facade.settings.vessels.rangeCircles=t),c(t)}),p("change",function(){return e.persistModel()}),l(402," Display Range Circles "),i()(),n(403,"div",37)(404,"div",38)(405,"mat-form-field",39)(406,"mat-label"),l(407,"Number of Range Circles"),i(),n(408,"mat-select",95),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircleCount,t)||(e.facade.settings.vessels.rangeCircleCount=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(409,_i,2,2,"mat-option",41,D),i()()(),n(411,"div",38)(412,"mat-form-field",39)(413,"mat-label"),l(414,"Minimum Zoom Level"),i(),n(415,"mat-select",95),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCircleMinZoom,t)||(e.facade.settings.vessels.rangeCircleMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(416,ui,2,2,"mat-option",41,D),i()()()(),n(418,"div",37)(419,"div",38)(420,"mat-checkbox",96),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.rangeCirclesFixed,t)||(e.facade.settings.vessels.rangeCirclesFixed=t),c(t)}),p("change",function(){return e.persistModel()}),l(421," Use Fixed Distance "),i()(),n(422,"div",38)(423,"mat-form-field",67)(424,"mat-label"),l(425),i(),n(426,"input",97,15),f("ngModelChange",function(t){return m(g),u(e.formattedNumberModel.rangeCirclesDistance,t)||(e.formattedNumberModel.rangeCirclesDistance=t),c(t)}),p("change",function(){m(g);let t=w(427);return c(e.parseFormattedNumber(t))}),i(),b(428,fi,2,0,"mat-error"),i()()()()()()(),E(429,"br"),n(430,"mat-card",36)(431,"mat-card-content")(432,"div",37)(433,"fieldset")(434,"legend")(435,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trail,t)||(e.facade.settings.vessels.trail=t),c(t)}),p("change",function(){return e.persistModel("vesselTrail")}),l(436," Display Vessel Track "),i()(),n(437,"div",37)(438,"div",38)(439,"mat-form-field",98)(440,"mat-label"),l(441,"Track source"),i(),n(442,"mat-select",99),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailSource,t)||(e.facade.settings.vessels.trailSource=t),c(t)}),p("selectionChange",function(){return e.persistModel("trailSource")}),n(443,"mat-option",100),l(444,"Auto"),i(),n(445,"mat-option",101),l(446,"Server"),i(),n(447,"mat-option",102),l(448,"This device"),i()(),b(449,hi,2,0,"mat-hint")(450,yi,2,1,"mat-hint"),i(),l(451," \xA0\xA0 "),n(452,"mat-slider",103)(453,"input",104),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailDuration,t)||(e.facade.settings.vessels.trailDuration=t),c(t)}),p("valueChange",function(){return e.deferPersist()}),i()(),l(454),i()(),n(455,"div",37)(456,"div",38)(457,"mat-form-field",39)(458,"mat-label"),l(459,"Resolution: Last hour"),i(),n(460,"mat-select",95),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailResolution.lastHour,t)||(e.facade.settings.vessels.trailResolution.lastHour=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(461,Si,2,2,"mat-option",41,v),i()()(),n(463,"div",38)(464,"mat-form-field",39)(465,"mat-label"),l(466,"Resolution: 1 hr -> 24 hrs"),i(),n(467,"mat-select",95),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailResolution.next23,t)||(e.facade.settings.vessels.trailResolution.next23=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(468,Ci,2,2,"mat-option",41,v),i()()(),n(470,"div",38)(471,"mat-form-field",39)(472,"mat-label"),l(473,"Resolution: > 24 hrs"),i(),n(474,"mat-select",95),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.trailResolution.beyond24,t)||(e.facade.settings.vessels.trailResolution.beyond24=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(475,Mi,2,2,"mat-option",41,v),i()()()()()()()(),n(477,"div",35),l(478,"OTHER VESSELS"),i(),n(479,"mat-card",36)(480,"mat-card-content")(481,"div",37)(482,"div",38)(483,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisShowTrack,t)||(e.facade.settings.vessels.aisShowTrack=t),c(t)}),p("change",function(){return e.persistModel()}),l(484," Show all tracks "),i(),l(485," \xA0 "),n(486,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.moored,t)||(e.aisStateFilter.moored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),l(487," Hide Moored "),i(),l(488," \xA0 "),n(489,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.aisStateFilter.anchored,t)||(e.aisStateFilter.anchored=t),c(t)}),p("change",function(){return e.onAisStateFilter()}),l(490," Hide Anchored "),i()()(),b(491,wi,5,3,"div",37),n(492,"div",37)(493,"div",38)(494,"mat-form-field",39)(495,"mat-label"),l(496,"Mark AIS target inactive after"),i(),n(497,"mat-select",64),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisStaleAge,t)||(e.facade.settings.vessels.aisStaleAge=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(498,vi,2,2,"mat-option",41,v),i()()(),n(500,"div",38)(501,"mat-form-field",39)(502,"mat-label"),l(503,"Remove AIS target after"),i(),n(504,"mat-select",64),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisMaxAge,t)||(e.facade.settings.vessels.aisMaxAge=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(505,bi,2,2,"mat-option",41,v),i()()(),n(507,"div",38)(508,"mat-form-field",39)(509,"mat-label"),l(510,"Wind Vector Value"),i(),n(511,"mat-select",64),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisWindApparent,t)||(e.facade.settings.vessels.aisWindApparent=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(512,Ti,2,2,"mat-option",41,v),i()()(),n(514,"div",38)(515,"mat-form-field",39)(516,"mat-label"),l(517,"Wind / Track Zoom Level"),i(),n(518,"mat-select",64),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisWindMinZoom,t)||(e.facade.settings.vessels.aisWindMinZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(519,Di,2,2,"mat-option",41,D),i()()(),n(521,"div",38)(522,"mat-form-field",39)(523,"mat-label"),l(524,"COG Line"),i(),n(525,"mat-select",64),f("ngModelChange",function(t){return m(g),u(e.facade.settings.vessels.aisCogLine,t)||(e.facade.settings.vessels.aisCogLine=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(526,Ei,2,2,"mat-option",41,v),i()()()()()()()()()(),n(528,"mat-tab",105)(529,"div",32)(530,"div",33)(531,"div",106)(532,"div",35),l(533,"NOTES"),i(),n(534,"mat-card",36)(535,"mat-card-content")(536,"div",46)(537,"div",38)(538,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.ui.showNotes,t)||(e.facade.settings.ui.showNotes=t),c(t)}),p("change",function(){return e.persistModel()}),l(539," Display Notes on Map "),i()(),n(540,"div",38)(541,"mat-form-field",39)(542,"mat-label"),l(543,"Notes Zoom Level"),i(),n(544,"mat-select",107),f("valueChange",function(t){return m(g),u(e.facade.settings.resources.notes.minZoom,t)||(e.facade.settings.resources.notes.minZoom=t),c(t)}),p("selectionChange",function(){return e.persistModel("fetchNotes")}),y(545,Wi,2,2,"mat-option",41,D),i()()()(),n(547,"div",46)(548,"div",38)(549,"mat-form-field",39)(550,"mat-label"),l(551),i(),n(552,"mat-select",59),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.getRadius,t)||(e.facade.settings.resources.notes.getRadius=t),c(t)}),p("selectionChange",function(){return e.persistModel("fetchNotes")}),y(553,Vi,2,2,"mat-option",41,D),i()()()(),n(555,"div",46)(556,"div",38)(557,"mat-form-field",52)(558,"mat-label"),l(559,"Notes fetch filter:"),i(),n(560,"input",108,16),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.rootFilter,t)||(e.facade.settings.resources.notes.rootFilter=t),c(t)}),p("change",function(){return e.persistModel("fetchNotes")}),i(),b(562,ki,3,0,"button",109),i()()(),n(563,"div",46)(564,"div",38)(565,"mat-checkbox",110),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.groupNameEdit,t)||(e.facade.settings.resources.notes.groupNameEdit=t),c(t)}),p("change",function(){return e.persistModel()}),l(566," Edit Group Names "),i()(),n(567,"div",38)(568,"mat-checkbox",111),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.notes.groupRequiresPosition,t)||(e.facade.settings.resources.notes.groupRequiresPosition=t),c(t)}),p("change",function(){return e.persistModel()}),l(569," Position Group Note "),i()()(),n(570,"div",46)(571,"div",38)(572,"mat-checkbox",112),f("ngModelChange",function(t){return m(g),u(e.facade.settings.display.singleClickNoteDetails,t)||(e.facade.settings.display.singleClickNoteDetails=t),c(t)}),p("change",function(){return e.persistModel()}),l(573," Single Click for Note Details "),i()()()()()(),n(574,"div",113)(575,"div",35),l(576,"CUSTOM RESOURCES"),i(),n(577,"mat-card",36)(578,"mat-card-content")(579,"div",46)(580,"div",38)(581,"div",114),l(582," Select custom resource types (./resources/<name>) "),i(),n(583,"mat-selection-list",115,17),p("selectionChange",function(){m(g);let t=w(584);return c(e.onResPathSelected(t))}),y(585,Pi,2,3,"mat-list-option",116,D),i()()()()()()()()(),b(587,xi,21,2,"mat-tab",117),n(588,"mat-tab",118)(589,"div",32)(590,"div",33)(591,"div",119)(592,"div",35),l(593,"SIGNAL K: CONNECTION"),i(),n(594,"mat-card",36)(595,"mat-card-content")(596,"div",46)(597,"fieldset")(598,"legend"),l(599,"Filter Stream data:"),i(),n(600,"span",120),l(601," Check to include Signal K schema groups on display."),E(602,"br"),n(603,"i"),l(604,"Use to manage display performance."),i()(),n(605,"div",38)(606,"mat-checkbox",121),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.vessels,t)||(e.facade.settings.signalk.vessels=t),c(t)}),p("change",function(){return e.persistModel()}),l(607," Vessels (other than Self) "),i()(),n(608,"div",38)(609,"mat-checkbox",122),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.atons,t)||(e.facade.settings.signalk.atons=t),c(t)}),p("change",function(){return e.persistModel()}),l(610," Aids to Navigation (AtoN) "),i()(),n(611,"div",38)(612,"mat-checkbox",123),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.aircraft,t)||(e.facade.settings.signalk.aircraft=t),c(t)}),p("change",function(){return e.persistModel()}),l(613," Aircraft "),i()(),n(614,"div",38)(615,"mat-checkbox",124),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.sar,t)||(e.facade.settings.signalk.sar=t),c(t)}),p("change",function(){return e.persistModel()}),l(616," Search and Rescue (SaR) "),i()(),n(617,"div",38)(618,"mat-checkbox",125),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.meteo,t)||(e.facade.settings.signalk.meteo=t),c(t)}),p("change",function(){return e.persistModel()}),l(619," Weather (Meteo) "),i()(),n(620,"div",38),E(621,"br"),n(622,"mat-form-field",39)(623,"mat-label"),l(624,"Max. distance from vessel"),i(),n(625,"mat-select",126,18),f("ngModelChange",function(t){return m(g),u(e.facade.settings.signalk.maxRadius,t)||(e.facade.settings.signalk.maxRadius=t),c(t)}),p("selectionChange",function(){return e.persistModel()}),y(627,Oi,2,2,"mat-option",41,v),i()()()()(),n(629,"div",46)(630,"div",38)(631,"button",127),p("click",function(){return e.clearAuthToken()}),n(632,"mat-icon"),l(633,"key_off"),i()()()()()()()()()(),n(634,"mat-tab",128)(635,"div",32)(636,"div",33)(637,"div",129)(638,"div",35),l(639,"EXPERIMENTS"),i(),n(640,"mat-card",36)(641,"mat-card-content")(642,"div",46)(643,"div",38)(644,"mat-checkbox",48),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.video.enable,t)||(e.facade.settings.resources.video.enable=t),c(t)}),p("change",function(){return e.persistModel()}),l(645," Enable Video "),i()(),n(646,"div",38)(647,"mat-form-field",52)(648,"mat-label"),l(649,"url:"),i(),n(650,"input",130,19),f("ngModelChange",function(t){return m(g),u(e.facade.settings.resources.video.url,t)||(e.facade.settings.resources.video.url=t),c(t)}),p("change",function(){return e.persistModel("videoUrl")}),i(),b(652,Ii,2,0,"mat-error"),i()()(),n(653,"div",46)(654,"div",38)(655,"mat-checkbox",131,20),f("ngModelChange",function(t){return m(g),u(e.facade.settings.experiments,t)||(e.facade.settings.experiments=t),c(t)}),p("change",function(){return e.persistModel()}),n(657,"mat-icon"),l(658,"science"),i(),l(659," Experimental Features "),i()()()()()()()()()()()}if(a&2){let g=w(83),r=w(90),t=w(126),ae=w(250),oe=w(259),re=w(268),se=w(293),me=w(300),ce=w(340),le=w(348),de=w(354),ge=w(427),ut=w(561),ft=w(651);o(25),_("ngModel",e.facade.settings.display.darkMode.source),o(),S(e.options.darkMode),o(3),_("ngModel",e.facade.settings.display.nightMode),o(6),_("ngModel",e.facade.settings.display.fab),o(),S(e.options.buttons.fab),o(3),h("disabled",!e.wakeLock.isAvailable),_("ngModel",e.facade.settings.display.disableWakelock),o(3),_("ngModel",e.facade.settings.display.preferInfoPanel),o(5),T(e.facade.applicationList.length>1?47:-1),o(),T(e.show.favourites()?48:-1),o(9),_("ngModel",e.facade.settings.display.muteSound),o(3),_("ngModel",e.facade.settings.display.depthAlarm.enabled),o(6),_("ngModel",e.facade.settings.display.depthAlarm.smoothing),h("disabled",!e.facade.settings.display.depthAlarm.enabled),o(),S(e.options.alarm.smoothing),o(9),_("ngModel",e.facade.settings.display.statusBar.liveEta),o(5),k("Reference Boat Speed (",e.speedUnitSymbol,")"),o(),h("disabled",!e.facade.settings.display.statusBar.liveEta),_("ngModel",e.facade.settings.display.statusBar.referenceSpeed),o(2),T(g.invalid&&(g.dirty||g.touched)?84:-1),o(5),h("disabled",!e.facade.settings.display.statusBar.liveEta),_("ngModel",e.facade.settings.display.statusBar.tapFadeSpeed),o(2),T(r.invalid&&(r.dirty||r.touched)?91:-1),o(11),_("ngModel",e.facade.settings.display.windIndicator),o(),S(e.options.windIndicator),o(14),h("disabled",!e.app.serverConfig.unitPreferences()),_("ngModel",e.facade.settings.units.useServerPrefs),o(8),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.distance),o(2),S(e.options.availableUnits.distance),o(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.depth),o(),S(e.options.availableUnits.depth),o(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.length),o(),S(e.options.availableUnits.length),o(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.temperature),o(),S(e.options.availableUnits.temperature),o(6),h("disabled",e.facade.settings.units.useServerPrefs),_("ngModel",e.facade.settings.units.speed),o(),S(e.options.availableUnits.speed),o(3),T(e.options.preferredValues.coords.length!==0?158:-1),o(),T(e.options.preferredValues.heading.length!==0?159:-1),o(18),_("ngModel",e.facade.settings.map.labelsMinZoom),o(),S(e.options.zoomLevels),o(9),h("min",-e.centerOffsetLimit)("max",e.centerOffsetLimit),_("ngModel",e.facade.settings.map.centerOffset.y),o(5),h("min",-e.centerOffsetLimit)("max",e.centerOffsetLimit),_("ngModel",e.facade.settings.map.centerOffset.x),o(3),_("ngModel",e.facade.settings.map.popoverMulti),o(3),_("ngModel",e.facade.settings.map.doubleClickZoom),o(3),_("ngModel",e.facade.settings.map.overZoomTiles),o(6),_("ngModel",e.facade.settings.map.panBehavior),o(),S(e.options.map.panBehavior),o(2),T(e.facade.settings.map.panBehavior==="exit"?210:-1),o(10),_("ngModel",e.facade.settings.map.s57Options.graphicsStyle),o(),S(e.options.map.s57.graphicsStyle),o(6),_("ngModel",e.facade.settings.map.s57Options.boundaries),o(),S(e.options.map.s57.boundaries),o(6),_("ngModel",e.facade.settings.map.s57Options.colorTable),o(),S(e.options.map.s57.colorTables),o(6),_("ngModel",e.facade.settings.map.s57Options.colors),o(),S(e.options.map.s57.colors),o(7),_("ngModel",e.facade.settings.map.s57Options.shallowDepth),o(2),T(ae.invalid&&(ae.dirty||ae.touched)?251:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.safetyDepth),o(2),T(oe.invalid&&(oe.dirty||oe.touched)?260:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.deepDepth),o(2),T(re.invalid&&(re.dirty||re.touched)?269:-1),o(7),_("ngModel",e.facade.settings.map.s57Options.otherLayers),o(),S(e.options.map.s57.otherLayers),o(15),_("ngModel",e.facade.settings.course.arrivalCircle),o(2),T(se.invalid&&(se.dirty||se.touched)?294:-1),o(5),_("ngModel",e.facade.settings.course.autoNextPointOnArrival),o(8),h("disabled",me.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointTrigger),o(2),S(e.options.course.nextPointTrigger),o(6),h("disabled",me.checked===!1),_("ngModel",e.facade.settings.course.autoNextPointDelay),o(),S(e.options.course.nextPointDelay),o(17),_("ngModel",e.facade.settings.vessels.iconScale),o(),S(e.options.vessel.selfIconScale),o(5),_("ngModel",e.facade.settings.vessels.fixedLocationMode),o(8),_("ngModel",e.facade.fixedPosition[1]),h("disabled",!ce.checked),o(2),T(le.invalid&&(le.dirty||le.touched)?349:-1),o(4),_("ngModel",e.facade.fixedPosition[0]),h("disabled",!ce.checked),o(2),T(de.invalid&&(de.dirty||de.touched)?355:-1),o(9),_("ngModel",e.facade.settings.vessels.windVectors),o(2),_("ngModel",e.facade.settings.vessels.laylines),o(12),_("ngModel",e.facade.settings.vessels.selfLines.heading.length),o(),S(e.options.vessel.headingLine),o(3),h("color",e.facade.settings.vessels.selfLines.heading.color)("dash",e.facade.settings.vessels.selfLines.heading.dash)("weight",e.facade.settings.vessels.selfLines.heading.weight),o(11),_("ngModel",e.facade.settings.vessels.selfLines.cog.length),o(),S(e.options.vessel.cogLine),o(3),h("color",e.facade.settings.vessels.selfLines.cog.color)("dash",e.facade.settings.vessels.selfLines.cog.dash)("weight",e.facade.settings.vessels.selfLines.cog.weight),o(4),_("ngModel",e.facade.settings.vessels.rangeCircles),o(7),_("ngModel",e.facade.settings.vessels.rangeCircleCount),h("disabled",!e.facade.settings.vessels.rangeCircles),o(),S(e.options.rangeCircles.count),o(6),_("ngModel",e.facade.settings.vessels.rangeCircleMinZoom),h("disabled",!e.facade.settings.vessels.rangeCircles),o(),S(e.options.rangeCircles.zoomLevels),o(4),_("ngModel",e.facade.settings.vessels.rangeCirclesFixed),h("disabled",!e.facade.settings.vessels.rangeCircles),o(5),k(" Distance between circles (",e.renderSymbol(e.facade.settings.units.distance),") "),o(),_("ngModel",e.formattedNumberModel.rangeCirclesDistance),h("disabled",!e.facade.settings.vessels.rangeCircles||!e.facade.settings.vessels.rangeCirclesFixed),o(2),T(ge.invalid&&(ge.dirty||ge.touched)?428:-1),o(7),_("ngModel",e.facade.settings.vessels.trail),o(7),h("disabled",!e.facade.settings.vessels.trail),_("ngModel",e.facade.settings.vessels.trailSource),o(3),h("disabled",!e.serverTrailAvailable),o(4),T(e.serverTrailAvailable?e.facade.settings.vessels.trailSource==="auto"?450:-1:449),o(3),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),_("ngModel",e.facade.settings.vessels.trailDuration),o(),k(" Length (",e.facade.settings.vessels.trailDuration," hrs) "),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.lastHour),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.highResolution),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.next23),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.highResolution),o(6),_("ngModel",e.facade.settings.vessels.trailResolution.beyond24),h("disabled",!e.app.serverTrailWanted()||!e.facade.settings.vessels.trail),o(),S(e.options.trailIntervals.mediumResolution),o(8),_("ngModel",e.facade.settings.vessels.aisShowTrack),o(3),_("ngModel",e.aisStateFilter.moored),o(3),_("ngModel",e.aisStateFilter.anchored),o(2),T(e.facade.settings.vessels.aisShowTrack?-1:491),o(6),_("ngModel",e.facade.settings.vessels.aisStaleAge),o(),S(e.options.vessel.aisTimeouts),o(6),_("ngModel",e.facade.settings.vessels.aisMaxAge),o(),S(e.options.vessel.aisTimeouts),o(6),_("ngModel",e.facade.settings.vessels.aisWindApparent),o(),S(e.options.preferredValues.wind),o(6),_("ngModel",e.facade.settings.vessels.aisWindMinZoom),o(),S(e.options.zoomLevels),o(6),_("ngModel",e.facade.settings.vessels.aisCogLine),o(),S(e.options.vessel.aisCogLine),o(12),_("ngModel",e.facade.settings.ui.showNotes),o(6),h("disabled",!e.facade.settings.ui.showNotes),_("value",e.facade.settings.resources.notes.minZoom),o(),S(e.options.zoomLevels),o(6),C("Fetch Notes radius: ("+e.options.availableUnits.distance.get(t.value)+")"),o(),h("disabled",!e.facade.settings.ui.showNotes),_("ngModel",e.facade.settings.resources.notes.getRadius),o(),S(e.options.resources.noteRadius),o(7),_("ngModel",e.facade.settings.resources.notes.rootFilter),o(2),T(ut.value?562:-1),o(3),_("ngModel",e.facade.settings.resources.notes.groupNameEdit),o(3),_("ngModel",e.facade.settings.resources.notes.groupRequiresPosition),o(4),_("ngModel",e.facade.settings.display.singleClickNoteDetails),o(13),S(e.facade.resourcePathList),o(2),T(e.app.featureFlags().radarApi?587:-1),o(19),_("ngModel",e.facade.settings.signalk.vessels),o(3),_("ngModel",e.facade.settings.signalk.atons),o(3),_("ngModel",e.facade.settings.signalk.aircraft),o(3),_("ngModel",e.facade.settings.signalk.sar),o(3),_("ngModel",e.facade.settings.signalk.meteo),o(7),_("ngModel",e.facade.settings.signalk.maxRadius),o(2),S(e.options.vessel.aisMaxRadius),o(17),_("ngModel",e.facade.settings.resources.video.enable),o(6),h("disabled",!e.facade.settings.resources.video.enable),_("ngModel",e.facade.settings.resources.video.url),o(2),T(ft.invalid?652:-1),o(3),_("ngModel",e.facade.settings.experiments)}},dependencies:[Z,U,Ve,G,Le,xe,Pe,ke,H,Me,Ce,Fe,Ae,ee,rt,$,Be,Oe,Ie,ze,Ke,Ze,He,R,be,ve,N,we,Q,je,dt,st,lt,nt,J,z,K,Re,Ne,Ue,Y,X,Ge,j,q,ot,Ye,Xe,it,et,tt,ne,te],styles:["[_nghost-%COMP%] .mat-dialog-content{padding:0 4px}[_nghost-%COMP%] .mat-mdc-dialog-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-height:none;overflow:hidden}[_nghost-%COMP%] .mat-mdc-dialog-content .mat-mdc-tab-group, [_nghost-%COMP%] .mat-mdc-dialog-content .mat-mdc-tab-body-wrapper{flex:1 1 auto;min-height:0}.settings[_ngcontent-%COMP%] .setting-group-title[_ngcontent-%COMP%]{font-weight:700;font-size:10pt;font-family:Arial,Helvetica,sans-serif;padding:10px 0}.setting-card-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.settings[_ngcontent-%COMP%] .setting-card-row-item[_ngcontent-%COMP%]{padding-right:15px;flex:1 1 auto}.settings[_ngcontent-%COMP%] .setting-card-row-item.setting-card-row-stack[_ngcontent-%COMP%]{flex-basis:220px}.settings[_ngcontent-%COMP%] .setting-field-group-title[_ngcontent-%COMP%]{font-size:10pt;font-family:Arial,Helvetica,sans-serif;opacity:.7;line-height:1.4;min-height:1.4em;padding-bottom:2px}.settings[_ngcontent-%COMP%] .setting-field-group[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.settings[_ngcontent-%COMP%] .setting-field-group[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{flex:0 1 150px;min-width:80px}@media only screen and (max-width:599px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}@media only screen and (min-width:600px)and (max-width:959px),screen and (min-width:960px)and (max-width:1279px),screen and (min-width:1280px)and (max-width:1919px),screen and (min-width:1920px)and (max-width:5000px){.settings[_ngcontent-%COMP%] .setting-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{_t as SettingsDialog};
|