@signalk/freeboard-sk 2.24.0 → 2.24.2
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/CHANGELOG.md +19 -0
- package/assets/icons/icon-192x192.png +0 -0
- package/docs/screenshots/1_freeboard-sk.png +0 -0
- package/docs/screenshots/README.md +31 -0
- package/package.json +26 -7
- package/public/3rdpartylicenses.txt +9 -361
- package/public/chunk-2AF4T5IB.js +1 -0
- package/public/chunk-346FAZUS.js +1 -0
- package/public/{chunk-BTVNOQ7K.js → chunk-3GHIRJ3C.js} +2 -2
- package/public/chunk-4SHFYAXK.js +1 -0
- package/public/{chunk-2LV2AYBP.js → chunk-64QDJX7X.js} +1 -1
- package/public/chunk-A4TULHTL.js +1 -0
- package/public/chunk-AEB5DG3B.js +1 -0
- package/public/chunk-AFVK3UQJ.js +5482 -0
- package/public/chunk-AX3UMUXB.js +1 -0
- package/public/{chunk-TLBNKF2R.js → chunk-EFVTFEXB.js} +1 -1
- package/public/chunk-FALIRPMH.js +1035 -0
- package/public/{chunk-A7QJNGJ7.js → chunk-FEIJMPL7.js} +2 -2
- package/public/chunk-G4GM24WE.js +1 -0
- package/public/{chunk-DPEXDGKO.js → chunk-GQXHMDKV.js} +1 -1
- package/public/chunk-KFWFMRV7.js +1 -0
- package/public/chunk-LXUTMJYP.js +1145 -0
- package/public/chunk-NTIQMWPW.js +2718 -0
- package/public/chunk-QIOZNURQ.js +1 -0
- package/public/chunk-RWJHAOI2.js +1 -0
- package/public/chunk-SBFXQ3G7.js +1 -0
- package/public/chunk-TAJAMNLU.js +1 -0
- package/public/chunk-UEUVGTXJ.js +1 -0
- package/public/{chunk-WUXY5N7A.js → chunk-WA2ENVQZ.js} +1 -1
- package/public/index.html +2 -2
- package/public/main-AZEF35BN.js +466 -0
- package/public/polyfills-RV3JTMEC.js +2 -0
- package/public/styles-FMJMFQ5P.css +1 -0
- package/public/worker-AUTVLQL7.js +3 -0
- package/public/worker-FRXPLBUO.js +12 -0
- package/public/worker-T4RJR7DG.js +12 -0
- package/public/worker-Y35X2QU7.js +26 -0
- package/public/chunk-3MOH2GUU.js +0 -1
- package/public/chunk-3ZBG3EOD.js +0 -1
- package/public/chunk-4SN3Q6K3.js +0 -1
- package/public/chunk-5KDMJ54F.js +0 -1
- package/public/chunk-67IVDHNW.js +0 -1
- package/public/chunk-AZK5ODAA.js +0 -1
- package/public/chunk-GMWUHE7S.js +0 -131
- package/public/chunk-GQRIAFM6.js +0 -1
- package/public/chunk-HQSHA6SH.js +0 -13
- package/public/chunk-LXWUCH7T.js +0 -1
- package/public/chunk-QPQHN5VS.js +0 -22
- package/public/chunk-RBFFWNLA.js +0 -1
- package/public/chunk-TQPGRJVE.js +0 -19
- package/public/chunk-V3DD3MHN.js +0 -1
- package/public/chunk-Y6FV7FIU.js +0 -1
- package/public/chunk-YPACWLLV.js +0 -1
- package/public/chunk-YUTPR5Z4.js +0 -1
- package/public/main-SF5NH7GR.js +0 -11
- package/public/polyfills-5CFQRCPP.js +0 -2
- package/public/styles-N7HVRSAT.css +0 -1
- package/public/worker-42LKK6ER.js +0 -26
- package/public/worker-FPJG6QKK.js +0 -5
- package/public/worker-UZNU4LIJ.js +0 -12
- package/public/worker-WYOFLVNH.js +0 -12
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var sn=Object.create;var Fe=Object.defineProperty;var un=Object.getOwnPropertyDescriptor;var an=Object.getOwnPropertyNames;var cn=Object.getPrototypeOf,ln=Object.prototype.hasOwnProperty;var B=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var fn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of an(t))!ln.call(e,i)&&i!==r&&Fe(e,i,{get:()=>t[i],enumerable:!(n=un(t,i))||n.enumerable});return e};var hn=(e,t,r)=>(r=e!=null?sn(cn(e)):{},fn(t||!e||!e.__esModule?Fe(r,"default",{value:e,enumerable:!0}):r,e));var vt=B(ne=>{(function(){ne.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(ne)});var it=B((Se,ht)=>{(function(){var e,t,r,n,i,s,o,c=[].slice,p={}.hasOwnProperty;e=function(){var d,I,D,T,g,E;if(E=arguments[0],g=2<=arguments.length?c.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(d=0,D=g.length;d<D;d++)if(T=g[d],T!=null)for(I in T)p.call(T,I)&&(E[I]=T[I]);return E},i=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},s=function(d){var I;return!!d&&((I=typeof d)=="function"||I==="object")},r=function(d){return i(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},n=function(d){var I;if(r(d))return!d.length;for(I in d)if(p.call(d,I))return!1;return!0},o=function(d){var I,D;return s(d)&&(D=Object.getPrototypeOf(d))&&(I=D.constructor)&&typeof I=="function"&&I instanceof I&&Function.prototype.toString.call(I)===Function.prototype.toString.call(Object)},t=function(d){return i(d.valueOf)?d.valueOf():d},ht.exports.assign=e,ht.exports.isFunction=i,ht.exports.isObject=s,ht.exports.isArray=r,ht.exports.isEmpty=n,ht.exports.isPlainObject=o,ht.exports.getValue=t}).call(Se)});var oe=B((Be,Re)=>{(function(){var e;Re.exports=e=(function(){function t(){}return t.prototype.hasFeature=function(r,n){return!0},t.prototype.createDocumentType=function(r,n,i){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(r,n,i){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(r){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(r,n){throw new Error("This DOM method is not implemented.")},t})()}).call(Be)});var Xe=B((Ue,qe)=>{(function(){var e;qe.exports=e=(function(){function t(){}return t.prototype.handleError=function(r){throw new Error(r)},t})()}).call(Ue)});var Ve=B((je,ke)=>{(function(){var e;ke.exports=e=(function(){function t(r){this.arr=r||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(r){return this.arr[r]||null},t.prototype.contains=function(r){return this.arr.indexOf(r)!==-1},t})()}).call(je)});var Ye=B((We,Ge)=>{(function(){var e,t,r;t=Xe(),r=Ve(),Ge.exports=e=(function(){function n(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new t,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=i=Object.create(this.defaultParams)}return Object.defineProperty(n.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),n.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},n.prototype.canSetParameter=function(i,s){return!0},n.prototype.setParameter=function(i,s){return s!=null?this.params[i]=s:delete this.params[i]},n})()}).call(We)});var V=B(($e,Ke)=>{(function(){Ke.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($e)});var se=B((He,ze)=>{(function(){var e,t,r;e=V(),r=Z(),ze.exports=t=(function(){function n(i,s,o){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),s==null)throw new Error("Missing attribute name. "+this.debugInfo(s));this.name=this.stringify.name(s),this.value=this.stringify.attValue(o),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(n.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(n.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(n.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(n.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(n.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(n.prototype,"specified",{get:function(){return!0}}),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(i){return this.options.writer.attribute(this,this.options.writer.filterOptions(i))},n.prototype.debugInfo=function(i){return i=i||this.name,i==null?"parent: <"+this.parent.name+">":"attribute: {"+i+"}, parent: <"+this.parent.name+">"},n.prototype.isEqualNode=function(i){return!(i.namespaceURI!==this.namespaceURI||i.prefix!==this.prefix||i.localName!==this.localName||i.value!==this.value)},n})()}).call(He)});var Ft=B((Qe,Ze)=>{(function(){var e;Ze.exports=e=(function(){function t(r){this.nodes=r}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.getNamedItem=function(r){return this.nodes[r]},t.prototype.setNamedItem=function(r){var n;return n=this.nodes[r.nodeName],this.nodes[r.nodeName]=r,n||null},t.prototype.removeNamedItem=function(r){var n;return n=this.nodes[r],delete this.nodes[r],n||null},t.prototype.item=function(r){return this.nodes[Object.keys(this.nodes)[r]]||null},t.prototype.getNamedItemNS=function(r,n){throw new Error("This DOM method is not implemented.")},t.prototype.setNamedItemNS=function(r){throw new Error("This DOM method is not implemented.")},t.prototype.removeNamedItemNS=function(r,n){throw new Error("This DOM method is not implemented.")},t})()}).call(Qe)});var St=B((Je,tr)=>{(function(){var e,t,r,n,i,s,o,c,p,d=function(D,T){for(var g in T)I.call(T,g)&&(D[g]=T[g]);function E(){this.constructor=D}return E.prototype=T.prototype,D.prototype=new E,D.__super__=T.prototype,D},I={}.hasOwnProperty;p=it(),c=p.isObject,o=p.isFunction,s=p.getValue,i=Z(),e=V(),t=se(),n=Ft(),tr.exports=r=(function(D){d(T,D);function T(g,E,N){var v,M,O,m;if(T.__super__.constructor.call(this,g),E==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(E),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,N!=null&&this.attribute(N),g.type===e.Document&&(this.isRoot=!0,this.documentObject=g,g.rootObject=this,g.children)){for(m=g.children,M=0,O=m.length;M<O;M++)if(v=m[M],v.type===e.DocType){v.name=this.name;break}}}return Object.defineProperty(T.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(T.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(T.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(T.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(T.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(T.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(T.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(T.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new n(this.attribs)),this.attributeMap}}),T.prototype.clone=function(){var g,E,N,v;N=Object.create(this),N.isRoot&&(N.documentObject=null),N.attribs={},v=this.attribs;for(E in v)I.call(v,E)&&(g=v[E],N.attribs[E]=g.clone());return N.children=[],this.children.forEach(function(M){var O;return O=M.clone(),O.parent=N,N.children.push(O)}),N},T.prototype.attribute=function(g,E){var N,v;if(g!=null&&(g=s(g)),c(g))for(N in g)I.call(g,N)&&(v=g[N],this.attribute(N,v));else o(E)&&(E=E.apply()),this.options.keepNullAttributes&&E==null?this.attribs[g]=new t(this,g,""):E!=null&&(this.attribs[g]=new t(this,g,E));return this},T.prototype.removeAttribute=function(g){var E,N,v;if(g==null)throw new Error("Missing attribute name. "+this.debugInfo());if(g=s(g),Array.isArray(g))for(N=0,v=g.length;N<v;N++)E=g[N],delete this.attribs[E];else delete this.attribs[g];return this},T.prototype.toString=function(g){return this.options.writer.element(this,this.options.writer.filterOptions(g))},T.prototype.att=function(g,E){return this.attribute(g,E)},T.prototype.a=function(g,E){return this.attribute(g,E)},T.prototype.getAttribute=function(g){return this.attribs.hasOwnProperty(g)?this.attribs[g].value:null},T.prototype.setAttribute=function(g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getAttributeNode=function(g){return this.attribs.hasOwnProperty(g)?this.attribs[g]:null},T.prototype.setAttributeNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.removeAttributeNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getAttributeNS=function(g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setAttributeNS=function(g,E,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.removeAttributeNS=function(g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getAttributeNodeNS=function(g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setAttributeNodeNS=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagNameNS=function(g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.hasAttribute=function(g){return this.attribs.hasOwnProperty(g)},T.prototype.hasAttributeNS=function(g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setIdAttribute=function(g,E){return this.attribs.hasOwnProperty(g)?this.attribs[g].isId:E},T.prototype.setIdAttributeNS=function(g,E,N){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.setIdAttributeNode=function(g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByTagNameNS=function(g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.getElementsByClassName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},T.prototype.isEqualNode=function(g){var E,N,v;if(!T.__super__.isEqualNode.apply(this,arguments).isEqualNode(g)||g.namespaceURI!==this.namespaceURI||g.prefix!==this.prefix||g.localName!==this.localName||g.attribs.length!==this.attribs.length)return!1;for(E=N=0,v=this.attribs.length-1;0<=v?N<=v:N>=v;E=0<=v?++N:--N)if(!this.attribs[E].isEqualNode(g.attribs[E]))return!1;return!0},T})(i)}).call(Je)});var At=B((er,rr)=>{(function(){var e,t,r=function(i,s){for(var o in s)n.call(s,o)&&(i[o]=s[o]);function c(){this.constructor=i}return c.prototype=s.prototype,i.prototype=new c,i.__super__=s.prototype,i},n={}.hasOwnProperty;t=Z(),rr.exports=e=(function(i){r(s,i);function s(o){s.__super__.constructor.call(this,o),this.value=""}return Object.defineProperty(s.prototype,"data",{get:function(){return this.value},set:function(o){return this.value=o||""}}),Object.defineProperty(s.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(o){return this.value=o||""}}),s.prototype.clone=function(){return Object.create(this)},s.prototype.substringData=function(o,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.appendData=function(o){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.insertData=function(o,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.deleteData=function(o,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.replaceData=function(o,c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.isEqualNode=function(o){return!(!s.__super__.isEqualNode.apply(this,arguments).isEqualNode(o)||o.data!==this.data)},s})(t)}).call(er)});var Bt=B((ir,nr)=>{(function(){var e,t,r,n=function(s,o){for(var c in o)i.call(o,c)&&(s[c]=o[c]);function p(){this.constructor=s}return p.prototype=o.prototype,s.prototype=new p,s.__super__=o.prototype,s},i={}.hasOwnProperty;e=V(),r=At(),nr.exports=t=(function(s){n(o,s);function o(c,p){if(o.__super__.constructor.call(this,c),p==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=e.CData,this.value=this.stringify.cdata(p)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(c){return this.options.writer.cdata(this,this.options.writer.filterOptions(c))},o})(r)}).call(ir)});var Rt=B((or,sr)=>{(function(){var e,t,r,n=function(s,o){for(var c in o)i.call(o,c)&&(s[c]=o[c]);function p(){this.constructor=s}return p.prototype=o.prototype,s.prototype=new p,s.__super__=o.prototype,s},i={}.hasOwnProperty;e=V(),t=At(),sr.exports=r=(function(s){n(o,s);function o(c,p){if(o.__super__.constructor.call(this,c),p==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=e.Comment,this.value=this.stringify.comment(p)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(c){return this.options.writer.comment(this,this.options.writer.filterOptions(c))},o})(t)}).call(or)});var Ut=B((ur,ar)=>{(function(){var e,t,r,n,i=function(o,c){for(var p in c)s.call(c,p)&&(o[p]=c[p]);function d(){this.constructor=o}return d.prototype=c.prototype,o.prototype=new d,o.__super__=c.prototype,o},s={}.hasOwnProperty;n=it().isObject,r=Z(),e=V(),ar.exports=t=(function(o){i(c,o);function c(p,d,I,D){var T;c.__super__.constructor.call(this,p),n(d)&&(T=d,d=T.version,I=T.encoding,D=T.standalone),d||(d="1.0"),this.type=e.Declaration,this.version=this.stringify.xmlVersion(d),I!=null&&(this.encoding=this.stringify.xmlEncoding(I)),D!=null&&(this.standalone=this.stringify.xmlStandalone(D))}return c.prototype.toString=function(p){return this.options.writer.declaration(this,this.options.writer.filterOptions(p))},c})(r)}).call(ur)});var qt=B((cr,lr)=>{(function(){var e,t,r,n=function(s,o){for(var c in o)i.call(o,c)&&(s[c]=o[c]);function p(){this.constructor=s}return p.prototype=o.prototype,s.prototype=new p,s.__super__=o.prototype,s},i={}.hasOwnProperty;r=Z(),e=V(),lr.exports=t=(function(s){n(o,s);function o(c,p,d,I,D,T){if(o.__super__.constructor.call(this,c),p==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(d==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(p));if(!I)throw new Error("Missing DTD attribute type. "+this.debugInfo(p));if(!D)throw new Error("Missing DTD attribute default. "+this.debugInfo(p));if(D.indexOf("#")!==0&&(D="#"+D),!D.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(p));if(T&&!D.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(p));this.elementName=this.stringify.name(p),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(d),this.attributeType=this.stringify.dtdAttType(I),T&&(this.defaultValue=this.stringify.dtdAttDefault(T)),this.defaultValueType=D}return o.prototype.toString=function(c){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(c))},o})(r)}).call(cr)});var Xt=B((fr,hr)=>{(function(){var e,t,r,n,i=function(o,c){for(var p in c)s.call(c,p)&&(o[p]=c[p]);function d(){this.constructor=o}return d.prototype=c.prototype,o.prototype=new d,o.__super__=c.prototype,o},s={}.hasOwnProperty;n=it().isObject,r=Z(),e=V(),hr.exports=t=(function(o){i(c,o);function c(p,d,I,D){if(c.__super__.constructor.call(this,p),I==null)throw new Error("Missing DTD entity name. "+this.debugInfo(I));if(D==null)throw new Error("Missing DTD entity value. "+this.debugInfo(I));if(this.pe=!!d,this.name=this.stringify.name(I),this.type=e.EntityDeclaration,!n(D))this.value=this.stringify.dtdEntityValue(D),this.internal=!0;else{if(!D.pubID&&!D.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(I));if(D.pubID&&!D.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(I));if(this.internal=!1,D.pubID!=null&&(this.pubID=this.stringify.dtdPubID(D.pubID)),D.sysID!=null&&(this.sysID=this.stringify.dtdSysID(D.sysID)),D.nData!=null&&(this.nData=this.stringify.dtdNData(D.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(I))}}return Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(p){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(p))},c})(r)}).call(fr)});var jt=B((pr,dr)=>{(function(){var e,t,r,n=function(s,o){for(var c in o)i.call(o,c)&&(s[c]=o[c]);function p(){this.constructor=s}return p.prototype=o.prototype,s.prototype=new p,s.__super__=o.prototype,s},i={}.hasOwnProperty;r=Z(),e=V(),dr.exports=t=(function(s){n(o,s);function o(c,p,d){if(o.__super__.constructor.call(this,c),p==null)throw new Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.name(p),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(d)}return o.prototype.toString=function(c){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(c))},o})(r)}).call(pr)});var kt=B((yr,mr)=>{(function(){var e,t,r,n=function(s,o){for(var c in o)i.call(o,c)&&(s[c]=o[c]);function p(){this.constructor=s}return p.prototype=o.prototype,s.prototype=new p,s.__super__=o.prototype,s},i={}.hasOwnProperty;r=Z(),e=V(),mr.exports=t=(function(s){n(o,s);function o(c,p,d){if(o.__super__.constructor.call(this,c),p==null)throw new Error("Missing DTD notation name. "+this.debugInfo(p));if(!d.pubID&&!d.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(p));this.name=this.stringify.name(p),this.type=e.NotationDeclaration,d.pubID!=null&&(this.pubID=this.stringify.dtdPubID(d.pubID)),d.sysID!=null&&(this.sysID=this.stringify.dtdSysID(d.sysID))}return Object.defineProperty(o.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(o.prototype,"systemId",{get:function(){return this.sysID}}),o.prototype.toString=function(c){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(c))},o})(r)}).call(yr)});var Vt=B((gr,wr)=>{(function(){var e,t,r,n,i,s,o,c,p,d=function(D,T){for(var g in T)I.call(T,g)&&(D[g]=T[g]);function E(){this.constructor=D}return E.prototype=T.prototype,D.prototype=new E,D.__super__=T.prototype,D},I={}.hasOwnProperty;p=it().isObject,c=Z(),e=V(),t=qt(),n=Xt(),r=jt(),i=kt(),o=Ft(),wr.exports=s=(function(D){d(T,D);function T(g,E,N){var v,M,O,m,l,a;if(T.__super__.constructor.call(this,g),this.type=e.DocType,g.children){for(m=g.children,M=0,O=m.length;M<O;M++)if(v=m[M],v.type===e.Element){this.name=v.name;break}}this.documentObject=g,p(E)&&(l=E,E=l.pubID,N=l.sysID),N==null&&(a=[E,N],N=a[0],E=a[1]),E!=null&&(this.pubID=this.stringify.dtdPubID(E)),N!=null&&(this.sysID=this.stringify.dtdSysID(N))}return Object.defineProperty(T.prototype,"entities",{get:function(){var g,E,N,v,M;for(v={},M=this.children,E=0,N=M.length;E<N;E++)g=M[E],g.type===e.EntityDeclaration&&!g.pe&&(v[g.name]=g);return new o(v)}}),Object.defineProperty(T.prototype,"notations",{get:function(){var g,E,N,v,M;for(v={},M=this.children,E=0,N=M.length;E<N;E++)g=M[E],g.type===e.NotationDeclaration&&(v[g.name]=g);return new o(v)}}),Object.defineProperty(T.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(T.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(T.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),T.prototype.element=function(g,E){var N;return N=new r(this,g,E),this.children.push(N),this},T.prototype.attList=function(g,E,N,v,M){var O;return O=new t(this,g,E,N,v,M),this.children.push(O),this},T.prototype.entity=function(g,E){var N;return N=new n(this,!1,g,E),this.children.push(N),this},T.prototype.pEntity=function(g,E){var N;return N=new n(this,!0,g,E),this.children.push(N),this},T.prototype.notation=function(g,E){var N;return N=new i(this,g,E),this.children.push(N),this},T.prototype.toString=function(g){return this.options.writer.docType(this,this.options.writer.filterOptions(g))},T.prototype.ele=function(g,E){return this.element(g,E)},T.prototype.att=function(g,E,N,v,M){return this.attList(g,E,N,v,M)},T.prototype.ent=function(g,E){return this.entity(g,E)},T.prototype.pent=function(g,E){return this.pEntity(g,E)},T.prototype.not=function(g,E){return this.notation(g,E)},T.prototype.up=function(){return this.root()||this.documentObject},T.prototype.isEqualNode=function(g){return!(!T.__super__.isEqualNode.apply(this,arguments).isEqualNode(g)||g.name!==this.name||g.publicId!==this.publicId||g.systemId!==this.systemId)},T})(c)}).call(gr)});var Wt=B((Er,Tr)=>{(function(){var e,t,r,n=function(s,o){for(var c in o)i.call(o,c)&&(s[c]=o[c]);function p(){this.constructor=s}return p.prototype=o.prototype,s.prototype=new p,s.__super__=o.prototype,s},i={}.hasOwnProperty;e=V(),t=Z(),Tr.exports=r=(function(s){n(o,s);function o(c,p){if(o.__super__.constructor.call(this,c),p==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(p)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(c){return this.options.writer.raw(this,this.options.writer.filterOptions(c))},o})(t)}).call(Er)});var Gt=B((Dr,Ir)=>{(function(){var e,t,r,n=function(s,o){for(var c in o)i.call(o,c)&&(s[c]=o[c]);function p(){this.constructor=s}return p.prototype=o.prototype,s.prototype=new p,s.__super__=o.prototype,s},i={}.hasOwnProperty;e=V(),t=At(),Ir.exports=r=(function(s){n(o,s);function o(c,p){if(o.__super__.constructor.call(this,c),p==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=e.Text,this.value=this.stringify.text(p)}return Object.defineProperty(o.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"wholeText",{get:function(){var c,p,d;for(d="",p=this.previousSibling;p;)d=p.data+d,p=p.previousSibling;for(d+=this.data,c=this.nextSibling;c;)d=d+c.data,c=c.nextSibling;return d}}),o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(c){return this.options.writer.text(this,this.options.writer.filterOptions(c))},o.prototype.splitText=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceWholeText=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o})(t)}).call(Dr)});var Yt=B((br,Nr)=>{(function(){var e,t,r,n=function(s,o){for(var c in o)i.call(o,c)&&(s[c]=o[c]);function p(){this.constructor=s}return p.prototype=o.prototype,s.prototype=new p,s.__super__=o.prototype,s},i={}.hasOwnProperty;e=V(),t=At(),Nr.exports=r=(function(s){n(o,s);function o(c,p,d){if(o.__super__.constructor.call(this,c),p==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(p),this.name=this.target,d&&(this.value=this.stringify.insValue(d))}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(c){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(c))},o.prototype.isEqualNode=function(c){return!(!o.__super__.isEqualNode.apply(this,arguments).isEqualNode(c)||c.target!==this.target)},o})(t)}).call(br)});var ue=B((xr,Or)=>{(function(){var e,t,r,n=function(s,o){for(var c in o)i.call(o,c)&&(s[c]=o[c]);function p(){this.constructor=s}return p.prototype=o.prototype,s.prototype=new p,s.__super__=o.prototype,s},i={}.hasOwnProperty;r=Z(),e=V(),Or.exports=t=(function(s){n(o,s);function o(c){o.__super__.constructor.call(this,c),this.type=e.Dummy}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(c){return""},o})(r)}).call(xr)});var Lr=B((Cr,Ar)=>{(function(){var e;Ar.exports=e=(function(){function t(r){this.nodes=r}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.item=function(r){return this.nodes[r]||null},t})()}).call(Cr)});var Pr=B((_r,Mr)=>{(function(){Mr.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(_r)});var Z=B((vr,Fr)=>{(function(){var e,t,r,n,i,s,o,c,p,d,I,D,T,g,E,N,v,M,O,m={}.hasOwnProperty;O=it(),M=O.isObject,v=O.isFunction,N=O.isEmpty,E=O.getValue,c=null,r=null,n=null,i=null,s=null,T=null,g=null,D=null,o=null,t=null,I=null,p=null,e=null,Fr.exports=d=(function(){function l(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=St(),r=Bt(),n=Rt(),i=Ut(),s=Vt(),T=Wt(),g=Gt(),D=Yt(),o=ue(),t=V(),I=Lr(),p=Ft(),e=Pr())}return Object.defineProperty(l.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(l.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(l.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(l.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new I(this.children)),this.childNodeList}}),Object.defineProperty(l.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(l.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(l.prototype,"previousSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a-1]||null}}),Object.defineProperty(l.prototype,"nextSibling",{get:function(){var a;return a=this.parent.children.indexOf(this),this.parent.children[a+1]||null}}),Object.defineProperty(l.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(l.prototype,"textContent",{get:function(){var a,y,C,f,A;if(this.nodeType===t.Element||this.nodeType===t.DocumentFragment){for(A="",f=this.children,y=0,C=f.length;y<C;y++)a=f[y],a.textContent&&(A+=a.textContent);return A}else return null},set:function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l.prototype.setParent=function(a){var y,C,f,A,w;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),A=this.children,w=[],C=0,f=A.length;C<f;C++)y=A[C],w.push(y.setParent(this));return w},l.prototype.element=function(a,y,C){var f,A,w,x,P,F,R,U,S,W,q;if(F=null,y===null&&C==null&&(S=[{},null],y=S[0],C=S[1]),y==null&&(y={}),y=E(y),M(y)||(W=[y,C],C=W[0],y=W[1]),a!=null&&(a=E(a)),Array.isArray(a))for(w=0,R=a.length;w<R;w++)A=a[w],F=this.element(A);else if(v(a))F=this.element(a.apply());else if(M(a)){for(P in a)if(m.call(a,P))if(q=a[P],v(q)&&(q=q.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&P.indexOf(this.stringify.convertAttKey)===0)F=this.attribute(P.substr(this.stringify.convertAttKey.length),q);else if(!this.options.separateArrayItems&&Array.isArray(q)&&N(q))F=this.dummy();else if(M(q)&&N(q))F=this.element(P);else if(!this.options.keepNullNodes&&q==null)F=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(q))for(x=0,U=q.length;x<U;x++)A=q[x],f={},f[P]=A,F=this.element(f);else M(q)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&P.indexOf(this.stringify.convertTextKey)===0?F=this.element(q):(F=this.element(P),F.element(q)):F=this.element(P,q)}else!this.options.keepNullNodes&&C===null?F=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&a.indexOf(this.stringify.convertTextKey)===0?F=this.text(C):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&a.indexOf(this.stringify.convertCDataKey)===0?F=this.cdata(C):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&a.indexOf(this.stringify.convertCommentKey)===0?F=this.comment(C):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&a.indexOf(this.stringify.convertRawKey)===0?F=this.raw(C):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&a.indexOf(this.stringify.convertPIKey)===0?F=this.instruction(a.substr(this.stringify.convertPIKey.length),C):F=this.node(a,y,C);if(F==null)throw new Error("Could not create any elements with: "+a+". "+this.debugInfo());return F},l.prototype.insertBefore=function(a,y,C){var f,A,w,x,P;if(a?.type)return w=a,x=y,w.setParent(this),x?(A=children.indexOf(x),P=children.splice(A),children.push(w),Array.prototype.push.apply(children,P)):children.push(w),w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(a));return A=this.parent.children.indexOf(this),P=this.parent.children.splice(A),f=this.parent.element(a,y,C),Array.prototype.push.apply(this.parent.children,P),f},l.prototype.insertAfter=function(a,y,C){var f,A,w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(a));return A=this.parent.children.indexOf(this),w=this.parent.children.splice(A+1),f=this.parent.element(a,y,C),Array.prototype.push.apply(this.parent.children,w),f},l.prototype.remove=function(){var a,y;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat(y=[])),this.parent},l.prototype.node=function(a,y,C){var f,A;return a!=null&&(a=E(a)),y||(y={}),y=E(y),M(y)||(A=[y,C],C=A[0],y=A[1]),f=new c(this,a,y),C!=null&&f.text(C),this.children.push(f),f},l.prototype.text=function(a){var y;return M(a)&&this.element(a),y=new g(this,a),this.children.push(y),this},l.prototype.cdata=function(a){var y;return y=new r(this,a),this.children.push(y),this},l.prototype.comment=function(a){var y;return y=new n(this,a),this.children.push(y),this},l.prototype.commentBefore=function(a){var y,C,f;return C=this.parent.children.indexOf(this),f=this.parent.children.splice(C),y=this.parent.comment(a),Array.prototype.push.apply(this.parent.children,f),this},l.prototype.commentAfter=function(a){var y,C,f;return C=this.parent.children.indexOf(this),f=this.parent.children.splice(C+1),y=this.parent.comment(a),Array.prototype.push.apply(this.parent.children,f),this},l.prototype.raw=function(a){var y;return y=new T(this,a),this.children.push(y),this},l.prototype.dummy=function(){var a;return a=new o(this),a},l.prototype.instruction=function(a,y){var C,f,A,w,x;if(a!=null&&(a=E(a)),y!=null&&(y=E(y)),Array.isArray(a))for(w=0,x=a.length;w<x;w++)C=a[w],this.instruction(C);else if(M(a))for(C in a)m.call(a,C)&&(f=a[C],this.instruction(C,f));else v(y)&&(y=y.apply()),A=new D(this,a,y),this.children.push(A);return this},l.prototype.instructionBefore=function(a,y){var C,f,A;return f=this.parent.children.indexOf(this),A=this.parent.children.splice(f),C=this.parent.instruction(a,y),Array.prototype.push.apply(this.parent.children,A),this},l.prototype.instructionAfter=function(a,y){var C,f,A;return f=this.parent.children.indexOf(this),A=this.parent.children.splice(f+1),C=this.parent.instruction(a,y),Array.prototype.push.apply(this.parent.children,A),this},l.prototype.declaration=function(a,y,C){var f,A;return f=this.document(),A=new i(f,a,y,C),f.children.length===0?f.children.unshift(A):f.children[0].type===t.Declaration?f.children[0]=A:f.children.unshift(A),f.root()||f},l.prototype.dtd=function(a,y){var C,f,A,w,x,P,F,R,U,S;for(f=this.document(),A=new s(f,a,y),U=f.children,w=x=0,F=U.length;x<F;w=++x)if(C=U[w],C.type===t.DocType)return f.children[w]=A,A;for(S=f.children,w=P=0,R=S.length;P<R;w=++P)if(C=S[w],C.isRoot)return f.children.splice(w,0,A),A;return f.children.push(A),A},l.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},l.prototype.root=function(){var a;for(a=this;a;){if(a.type===t.Document)return a.rootObject;if(a.isRoot)return a;a=a.parent}},l.prototype.document=function(){var a;for(a=this;a;){if(a.type===t.Document)return a;a=a.parent}},l.prototype.end=function(a){return this.document().end(a)},l.prototype.prev=function(){var a;if(a=this.parent.children.indexOf(this),a<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},l.prototype.next=function(){var a;if(a=this.parent.children.indexOf(this),a===-1||a===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},l.prototype.importDocument=function(a){var y;return y=a.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},l.prototype.debugInfo=function(a){var y,C;return a=a||this.name,a==null&&!((y=this.parent)!=null&&y.name)?"":a==null?"parent: <"+this.parent.name+">":(C=this.parent)!=null&&C.name?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">"},l.prototype.ele=function(a,y,C){return this.element(a,y,C)},l.prototype.nod=function(a,y,C){return this.node(a,y,C)},l.prototype.txt=function(a){return this.text(a)},l.prototype.dat=function(a){return this.cdata(a)},l.prototype.com=function(a){return this.comment(a)},l.prototype.ins=function(a,y){return this.instruction(a,y)},l.prototype.doc=function(){return this.document()},l.prototype.dec=function(a,y,C){return this.declaration(a,y,C)},l.prototype.e=function(a,y,C){return this.element(a,y,C)},l.prototype.n=function(a,y,C){return this.node(a,y,C)},l.prototype.t=function(a){return this.text(a)},l.prototype.d=function(a){return this.cdata(a)},l.prototype.c=function(a){return this.comment(a)},l.prototype.r=function(a){return this.raw(a)},l.prototype.i=function(a,y){return this.instruction(a,y)},l.prototype.u=function(){return this.up()},l.prototype.importXMLBuilder=function(a){return this.importDocument(a)},l.prototype.replaceChild=function(a,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.removeChild=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.appendChild=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.hasChildNodes=function(){return this.children.length!==0},l.prototype.cloneNode=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isSupported=function(a,y){return!0},l.prototype.hasAttributes=function(){return this.attribs.length!==0},l.prototype.compareDocumentPosition=function(a){var y,C;return y=this,y===a?0:this.document()!==a.document()?(C=e.Disconnected|e.ImplementationSpecific,Math.random()<.5?C|=e.Preceding:C|=e.Following,C):y.isAncestor(a)?e.Contains|e.Preceding:y.isDescendant(a)?e.Contains|e.Following:y.isPreceding(a)?e.Preceding:e.Following},l.prototype.isSameNode=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupPrefix=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isDefaultNamespace=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupNamespaceURI=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(a){var y,C,f;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(y=C=0,f=this.children.length-1;0<=f?C<=f:C>=f;y=0<=f?++C:--C)if(!this.children[y].isEqualNode(a.children[y]))return!1;return!0},l.prototype.getFeature=function(a,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setUserData=function(a,y,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getUserData=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.contains=function(a){return a?a===this||this.isDescendant(a):!1},l.prototype.isDescendant=function(a){var y,C,f,A,w;for(w=this.children,f=0,A=w.length;f<A;f++)if(y=w[f],a===y||(C=y.isDescendant(a),C))return!0;return!1},l.prototype.isAncestor=function(a){return a.isDescendant(this)},l.prototype.isPreceding=function(a){var y,C;return y=this.treePosition(a),C=this.treePosition(this),y===-1||C===-1?!1:y<C},l.prototype.isFollowing=function(a){var y,C;return y=this.treePosition(a),C=this.treePosition(this),y===-1||C===-1?!1:y>C},l.prototype.treePosition=function(a){var y,C;return C=0,y=!1,this.foreachTreeNode(this.document(),function(f){if(C++,!y&&f===a)return y=!0}),y?C:-1},l.prototype.foreachTreeNode=function(a,y){var C,f,A,w,x;for(a||(a=this.document()),w=a.children,f=0,A=w.length;f<A;f++){if(C=w[f],x=y(C))return x;if(x=this.foreachTreeNode(C,y),x)return x}},l})()}).call(vr)});var ae=B((Sr,Br)=>{(function(){var e,t=function(n,i){return function(){return n.apply(i,arguments)}},r={}.hasOwnProperty;Br.exports=e=(function(){function n(i){this.assertLegalName=t(this.assertLegalName,this),this.assertLegalChar=t(this.assertLegalChar,this);var s,o,c;i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),o=i.stringify||{};for(s in o)r.call(o,s)&&(c=o[s],this[s]=c)}return n.prototype.name=function(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")},n.prototype.text=function(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))},n.prototype.cdata=function(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))},n.prototype.comment=function(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)},n.prototype.raw=function(i){return this.options.noValidation?i:""+i||""},n.prototype.attValue=function(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))},n.prototype.insTarget=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},n.prototype.insValue=function(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return this.assertLegalChar(i)},n.prototype.xmlVersion=function(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i},n.prototype.xmlEncoding=function(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return this.assertLegalChar(i)},n.prototype.xmlStandalone=function(i){return this.options.noValidation?i:i?"yes":"no"},n.prototype.dtdPubID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},n.prototype.dtdSysID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},n.prototype.dtdElementValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},n.prototype.dtdAttType=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},n.prototype.dtdAttDefault=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},n.prototype.dtdEntityValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},n.prototype.dtdNData=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},n.prototype.convertAttKey="@",n.prototype.convertPIKey="?",n.prototype.convertTextKey="#text",n.prototype.convertCDataKey="#cdata",n.prototype.convertCommentKey="#comment",n.prototype.convertRawKey="#raw",n.prototype.assertLegalChar=function(i){var s,o;if(this.options.noValidation)return i;if(s="",this.options.version==="1.0"){if(s=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=i.match(s))throw new Error("Invalid character in string: "+i+" at index "+o.index)}else if(this.options.version==="1.1"&&(s=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=i.match(s)))throw new Error("Invalid character in string: "+i+" at index "+o.index);return i},n.prototype.assertLegalName=function(i){var s;if(this.options.noValidation)return i;if(this.assertLegalChar(i),s=/^([: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])*$/,!i.match(s))throw new Error("Invalid character in name");return i},n.prototype.textEscape=function(i){var s;return this.options.noValidation?i:(s=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(s,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},n.prototype.attEscape=function(i){var s;return this.options.noValidation?i:(s=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(s,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},n})()}).call(Sr)});var Lt=B((Rr,Ur)=>{(function(){Ur.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(Rr)});var ce=B((qr,Xr)=>{(function(){var e,t,r,n,i,s,o,c,p,d,I,D,T,g,E,N,v,M={}.hasOwnProperty;v=it().assign,e=V(),p=Ut(),d=Vt(),r=Bt(),n=Rt(),D=St(),g=Wt(),E=Gt(),T=Yt(),I=ue(),i=qt(),s=jt(),o=Xt(),c=kt(),t=Lt(),Xr.exports=N=(function(){function O(m){var l,a,y;m||(m={}),this.options=m,a=m.writer||{};for(l in a)M.call(a,l)&&(y=a[l],this["_"+l]=this[l],this[l]=y)}return O.prototype.filterOptions=function(m){var l,a,y,C,f,A,w,x;return m||(m={}),m=v({},this.options,m),l={writer:this},l.pretty=m.pretty||!1,l.allowEmpty=m.allowEmpty||!1,l.indent=(a=m.indent)!=null?a:" ",l.newline=(y=m.newline)!=null?y:`
|
|
3
|
-
`,l.offset=(C=m.offset)!=null?C:0,l.dontPrettyTextNodes=(f=(A=m.dontPrettyTextNodes)!=null?A:m.dontprettytextnodes)!=null?f:0,l.spaceBeforeSlash=(w=(x=m.spaceBeforeSlash)!=null?x:m.spacebeforeslash)!=null?w:"",l.spaceBeforeSlash===!0&&(l.spaceBeforeSlash=" "),l.suppressPrettyCount=0,l.user={},l.state=t.None,l},O.prototype.indent=function(m,l,a){var y;return!l.pretty||l.suppressPrettyCount?"":l.pretty&&(y=(a||0)+l.offset+1,y>0)?new Array(y).join(l.indent):""},O.prototype.endline=function(m,l,a){return!l.pretty||l.suppressPrettyCount?"":l.newline},O.prototype.attribute=function(m,l,a){var y;return this.openAttribute(m,l,a),y=" "+m.name+'="'+m.value+'"',this.closeAttribute(m,l,a),y},O.prototype.cdata=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a)+"<![CDATA[",l.state=t.InsideTag,y+=m.value,l.state=t.CloseTag,y+="]]>"+this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.comment=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a)+"<!-- ",l.state=t.InsideTag,y+=m.value,l.state=t.CloseTag,y+=" -->"+this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.declaration=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a)+"<?xml",l.state=t.InsideTag,y+=' version="'+m.version+'"',m.encoding!=null&&(y+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(y+=' standalone="'+m.standalone+'"'),l.state=t.CloseTag,y+=l.spaceBeforeSlash+"?>",y+=this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.docType=function(m,l,a){var y,C,f,A,w;if(a||(a=0),this.openNode(m,l,a),l.state=t.OpenTag,A=this.indent(m,l,a),A+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?A+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(A+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(A+=" [",A+=this.endline(m,l,a),l.state=t.InsideTag,w=m.children,C=0,f=w.length;C<f;C++)y=w[C],A+=this.writeChildNode(y,l,a+1);l.state=t.CloseTag,A+="]"}return l.state=t.CloseTag,A+=l.spaceBeforeSlash+">",A+=this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),A},O.prototype.element=function(m,l,a){var y,C,f,A,w,x,P,F,R,U,S,W,q,yt;a||(a=0),U=!1,S="",this.openNode(m,l,a),l.state=t.OpenTag,S+=this.indent(m,l,a)+"<"+m.name,W=m.attribs;for(R in W)M.call(W,R)&&(y=W[R],S+=this.attribute(y,l,a));if(f=m.children.length,A=f===0?null:m.children[0],f===0||m.children.every(function(rt){return(rt.type===e.Text||rt.type===e.Raw)&&rt.value===""}))l.allowEmpty?(S+=">",l.state=t.CloseTag,S+="</"+m.name+">"+this.endline(m,l,a)):(l.state=t.CloseTag,S+=l.spaceBeforeSlash+"/>"+this.endline(m,l,a));else if(l.pretty&&f===1&&(A.type===e.Text||A.type===e.Raw)&&A.value!=null)S+=">",l.state=t.InsideTag,l.suppressPrettyCount++,U=!0,S+=this.writeChildNode(A,l,a+1),l.suppressPrettyCount--,U=!1,l.state=t.CloseTag,S+="</"+m.name+">"+this.endline(m,l,a);else{if(l.dontPrettyTextNodes){for(q=m.children,w=0,P=q.length;w<P;w++)if(C=q[w],(C.type===e.Text||C.type===e.Raw)&&C.value!=null){l.suppressPrettyCount++,U=!0;break}}for(S+=">"+this.endline(m,l,a),l.state=t.InsideTag,yt=m.children,x=0,F=yt.length;x<F;x++)C=yt[x],S+=this.writeChildNode(C,l,a+1);l.state=t.CloseTag,S+=this.indent(m,l,a)+"</"+m.name+">",U&&l.suppressPrettyCount--,S+=this.endline(m,l,a),l.state=t.None}return this.closeNode(m,l,a),S},O.prototype.writeChildNode=function(m,l,a){switch(m.type){case e.CData:return this.cdata(m,l,a);case e.Comment:return this.comment(m,l,a);case e.Element:return this.element(m,l,a);case e.Raw:return this.raw(m,l,a);case e.Text:return this.text(m,l,a);case e.ProcessingInstruction:return this.processingInstruction(m,l,a);case e.Dummy:return"";case e.Declaration:return this.declaration(m,l,a);case e.DocType:return this.docType(m,l,a);case e.AttributeDeclaration:return this.dtdAttList(m,l,a);case e.ElementDeclaration:return this.dtdElement(m,l,a);case e.EntityDeclaration:return this.dtdEntity(m,l,a);case e.NotationDeclaration:return this.dtdNotation(m,l,a);default:throw new Error("Unknown XML node type: "+m.constructor.name)}},O.prototype.processingInstruction=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a)+"<?",l.state=t.InsideTag,y+=m.target,m.value&&(y+=" "+m.value),l.state=t.CloseTag,y+=l.spaceBeforeSlash+"?>",y+=this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.raw=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a),l.state=t.InsideTag,y+=m.value,l.state=t.CloseTag,y+=this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.text=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a),l.state=t.InsideTag,y+=m.value,l.state=t.CloseTag,y+=this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.dtdAttList=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a)+"<!ATTLIST",l.state=t.InsideTag,y+=" "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(y+=" "+m.defaultValueType),m.defaultValue&&(y+=' "'+m.defaultValue+'"'),l.state=t.CloseTag,y+=l.spaceBeforeSlash+">"+this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.dtdElement=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a)+"<!ELEMENT",l.state=t.InsideTag,y+=" "+m.name+" "+m.value,l.state=t.CloseTag,y+=l.spaceBeforeSlash+">"+this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.dtdEntity=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a)+"<!ENTITY",l.state=t.InsideTag,m.pe&&(y+=" %"),y+=" "+m.name,m.value?y+=' "'+m.value+'"':(m.pubID&&m.sysID?y+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(y+=' SYSTEM "'+m.sysID+'"'),m.nData&&(y+=" NDATA "+m.nData)),l.state=t.CloseTag,y+=l.spaceBeforeSlash+">"+this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.dtdNotation=function(m,l,a){var y;return this.openNode(m,l,a),l.state=t.OpenTag,y=this.indent(m,l,a)+"<!NOTATION",l.state=t.InsideTag,y+=" "+m.name,m.pubID&&m.sysID?y+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?y+=' PUBLIC "'+m.pubID+'"':m.sysID&&(y+=' SYSTEM "'+m.sysID+'"'),l.state=t.CloseTag,y+=l.spaceBeforeSlash+">"+this.endline(m,l,a),l.state=t.None,this.closeNode(m,l,a),y},O.prototype.openNode=function(m,l,a){},O.prototype.closeNode=function(m,l,a){},O.prototype.openAttribute=function(m,l,a){},O.prototype.closeAttribute=function(m,l,a){},O})()}).call(qr)});var $t=B((jr,kr)=>{(function(){var e,t,r=function(i,s){for(var o in s)n.call(s,o)&&(i[o]=s[o]);function c(){this.constructor=i}return c.prototype=s.prototype,i.prototype=new c,i.__super__=s.prototype,i},n={}.hasOwnProperty;t=ce(),kr.exports=e=(function(i){r(s,i);function s(o){s.__super__.constructor.call(this,o)}return s.prototype.document=function(o,c){var p,d,I,D,T;for(c=this.filterOptions(c),D="",T=o.children,d=0,I=T.length;d<I;d++)p=T[d],D+=this.writeChildNode(p,c,0);return c.pretty&&D.slice(-c.newline.length)===c.newline&&(D=D.slice(0,-c.newline.length)),D},s})(t)}).call(jr)});var le=B((Vr,Wr)=>{(function(){var e,t,r,n,i,s,o,c,p=function(I,D){for(var T in D)d.call(D,T)&&(I[T]=D[T]);function g(){this.constructor=I}return g.prototype=D.prototype,I.prototype=new g,I.__super__=D.prototype,I},d={}.hasOwnProperty;c=it().isPlainObject,r=oe(),t=Ye(),i=Z(),e=V(),o=ae(),s=$t(),Wr.exports=n=(function(I){p(D,I);function D(T){D.__super__.constructor.call(this,null),this.name="#document",this.type=e.Document,this.documentURI=null,this.domConfig=new t,T||(T={}),T.writer||(T.writer=new s),this.options=T,this.stringify=new o(T)}return Object.defineProperty(D.prototype,"implementation",{value:new r}),Object.defineProperty(D.prototype,"doctype",{get:function(){var T,g,E,N;for(N=this.children,g=0,E=N.length;g<E;g++)if(T=N[g],T.type===e.DocType)return T;return null}}),Object.defineProperty(D.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(D.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(D.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(D.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].encoding:null}}),Object.defineProperty(D.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(D.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(D.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(D.prototype,"origin",{get:function(){return null}}),Object.defineProperty(D.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(D.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(D.prototype,"contentType",{get:function(){return null}}),D.prototype.end=function(T){var g;return g={},T?c(T)&&(g=T,T=this.options.writer):T=this.options.writer,T.document(this,T.filterOptions(g))},D.prototype.toString=function(T){return this.options.writer.document(this,this.options.writer.filterOptions(T))},D.prototype.createElement=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createTextNode=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createComment=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createCDATASection=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createProcessingInstruction=function(T,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createAttribute=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createEntityReference=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.getElementsByTagName=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.importNode=function(T,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createElementNS=function(T,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createAttributeNS=function(T,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.getElementsByTagNameNS=function(T,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.getElementById=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.adoptNode=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.renameNode=function(T,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.getElementsByClassName=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createEvent=function(T){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createNodeIterator=function(T,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},D.prototype.createTreeWalker=function(T,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},D})(i)}).call(Vr)});var $r=B((Gr,Yr)=>{(function(){var e,t,r,n,i,s,o,c,p,d,I,D,T,g,E,N,v,M,O,m,l,a,y,C,f={}.hasOwnProperty;C=it(),a=C.isObject,l=C.isFunction,y=C.isPlainObject,m=C.getValue,e=V(),D=le(),g=St(),n=Bt(),i=Rt(),N=Wt(),O=Gt(),E=Yt(),d=Ut(),I=Vt(),s=qt(),c=Xt(),o=jt(),p=kt(),r=se(),M=ae(),v=$t(),t=Lt(),Yr.exports=T=(function(){function A(w,x,P){var F;this.name="?xml",this.type=e.Document,w||(w={}),F={},w.writer?y(w.writer)&&(F=w.writer,w.writer=new v):w.writer=new v,this.options=w,this.writer=w.writer,this.writerOptions=this.writer.filterOptions(F),this.stringify=new M(w),this.onDataCallback=x||function(){},this.onEndCallback=P||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return A.prototype.createChildNode=function(w){var x,P,F,R,U,S,W,q;switch(w.type){case e.CData:this.cdata(w.value);break;case e.Comment:this.comment(w.value);break;case e.Element:F={},W=w.attribs;for(P in W)f.call(W,P)&&(x=W[P],F[P]=x.value);this.node(w.name,F);break;case e.Dummy:this.dummy();break;case e.Raw:this.raw(w.value);break;case e.Text:this.text(w.value);break;case e.ProcessingInstruction:this.instruction(w.target,w.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+w.constructor.name)}for(q=w.children,U=0,S=q.length;U<S;U++)R=q[U],this.createChildNode(R),R.type===e.Element&&this.up();return this},A.prototype.dummy=function(){return this},A.prototype.node=function(w,x,P){var F;if(w==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(w));return this.openCurrent(),w=m(w),x==null&&(x={}),x=m(x),a(x)||(F=[x,P],P=F[0],x=F[1]),this.currentNode=new g(this,w,x),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,P!=null&&this.text(P),this},A.prototype.element=function(w,x,P){var F,R,U,S,W,q;if(this.currentNode&&this.currentNode.type===e.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(w)||a(w)||l(w))for(S=this.options.noValidation,this.options.noValidation=!0,q=new D(this.options).element("TEMP_ROOT"),q.element(w),this.options.noValidation=S,W=q.children,R=0,U=W.length;R<U;R++)F=W[R],this.createChildNode(F),F.type===e.Element&&this.up();else this.node(w,x,P);return this},A.prototype.attribute=function(w,x){var P,F;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(w));if(w!=null&&(w=m(w)),a(w))for(P in w)f.call(w,P)&&(F=w[P],this.attribute(P,F));else l(x)&&(x=x.apply()),this.options.keepNullAttributes&&x==null?this.currentNode.attribs[w]=new r(this,w,""):x!=null&&(this.currentNode.attribs[w]=new r(this,w,x));return this},A.prototype.text=function(w){var x;return this.openCurrent(),x=new O(this,w),this.onData(this.writer.text(x,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.prototype.cdata=function(w){var x;return this.openCurrent(),x=new n(this,w),this.onData(this.writer.cdata(x,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.prototype.comment=function(w){var x;return this.openCurrent(),x=new i(this,w),this.onData(this.writer.comment(x,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.prototype.raw=function(w){var x;return this.openCurrent(),x=new N(this,w),this.onData(this.writer.raw(x,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.prototype.instruction=function(w,x){var P,F,R,U,S;if(this.openCurrent(),w!=null&&(w=m(w)),x!=null&&(x=m(x)),Array.isArray(w))for(P=0,U=w.length;P<U;P++)F=w[P],this.instruction(F);else if(a(w))for(F in w)f.call(w,F)&&(R=w[F],this.instruction(F,R));else l(x)&&(x=x.apply()),S=new E(this,w,x),this.onData(this.writer.processingInstruction(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},A.prototype.declaration=function(w,x,P){var F;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return F=new d(this,w,x,P),this.onData(this.writer.declaration(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.prototype.doctype=function(w,x,P){if(this.openCurrent(),w==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 I(this,x,P),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},A.prototype.dtdElement=function(w,x){var P;return this.openCurrent(),P=new o(this,w,x),this.onData(this.writer.dtdElement(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.prototype.attList=function(w,x,P,F,R){var U;return this.openCurrent(),U=new s(this,w,x,P,F,R),this.onData(this.writer.dtdAttList(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.prototype.entity=function(w,x){var P;return this.openCurrent(),P=new c(this,!1,w,x),this.onData(this.writer.dtdEntity(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.prototype.pEntity=function(w,x){var P;return this.openCurrent(),P=new c(this,!0,w,x),this.onData(this.writer.dtdEntity(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.prototype.notation=function(w,x){var P;return this.openCurrent(),P=new p(this,w,x),this.onData(this.writer.dtdNotation(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},A.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},A.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},A.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},A.prototype.openNode=function(w){var x,P,F,R;if(!w.isOpen){if(!this.root&&this.currentLevel===0&&w.type===e.Element&&(this.root=w),P="",w.type===e.Element){this.writerOptions.state=t.OpenTag,P=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<"+w.name,R=w.attribs;for(F in R)f.call(R,F)&&(x=R[F],P+=this.writer.attribute(x,this.writerOptions,this.currentLevel));P+=(w.children?">":"/>")+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=t.InsideTag}else this.writerOptions.state=t.OpenTag,P=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+w.rootNodeName,w.pubID&&w.sysID?P+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(P+=' SYSTEM "'+w.sysID+'"'),w.children?(P+=" [",this.writerOptions.state=t.InsideTag):(this.writerOptions.state=t.CloseTag,P+=">"),P+=this.writer.endline(w,this.writerOptions,this.currentLevel);return this.onData(P,this.currentLevel),w.isOpen=!0}},A.prototype.closeNode=function(w){var x;if(!w.isClosed)return x="",this.writerOptions.state=t.CloseTag,w.type===e.Element?x=this.writer.indent(w,this.writerOptions,this.currentLevel)+"</"+w.name+">"+this.writer.endline(w,this.writerOptions,this.currentLevel):x=this.writer.indent(w,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=t.None,this.onData(x,this.currentLevel),w.isClosed=!0},A.prototype.onData=function(w,x){return this.documentStarted=!0,this.onDataCallback(w,x+1)},A.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},A.prototype.debugInfo=function(w){return w==null?"":"node: <"+w+">"},A.prototype.ele=function(){return this.element.apply(this,arguments)},A.prototype.nod=function(w,x,P){return this.node(w,x,P)},A.prototype.txt=function(w){return this.text(w)},A.prototype.dat=function(w){return this.cdata(w)},A.prototype.com=function(w){return this.comment(w)},A.prototype.ins=function(w,x){return this.instruction(w,x)},A.prototype.dec=function(w,x,P){return this.declaration(w,x,P)},A.prototype.dtd=function(w,x,P){return this.doctype(w,x,P)},A.prototype.e=function(w,x,P){return this.element(w,x,P)},A.prototype.n=function(w,x,P){return this.node(w,x,P)},A.prototype.t=function(w){return this.text(w)},A.prototype.d=function(w){return this.cdata(w)},A.prototype.c=function(w){return this.comment(w)},A.prototype.r=function(w){return this.raw(w)},A.prototype.i=function(w,x){return this.instruction(w,x)},A.prototype.att=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},A.prototype.a=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},A.prototype.ent=function(w,x){return this.entity(w,x)},A.prototype.pent=function(w,x){return this.pEntity(w,x)},A.prototype.not=function(w,x){return this.notation(w,x)},A})()}).call(Gr)});var zr=B((Kr,Hr)=>{(function(){var e,t,r,n,i=function(o,c){for(var p in c)s.call(c,p)&&(o[p]=c[p]);function d(){this.constructor=o}return d.prototype=c.prototype,o.prototype=new d,o.__super__=c.prototype,o},s={}.hasOwnProperty;e=V(),n=ce(),t=Lt(),Hr.exports=r=(function(o){i(c,o);function c(p,d){this.stream=p,c.__super__.constructor.call(this,d)}return c.prototype.endline=function(p,d,I){return p.isLastRootNode&&d.state===t.CloseTag?"":c.__super__.endline.call(this,p,d,I)},c.prototype.document=function(p,d){var I,D,T,g,E,N,v,M,O;for(v=p.children,D=T=0,E=v.length;T<E;D=++T)I=v[D],I.isLastRootNode=D===p.children.length-1;for(d=this.filterOptions(d),M=p.children,O=[],g=0,N=M.length;g<N;g++)I=M[g],O.push(this.writeChildNode(I,d,0));return O},c.prototype.attribute=function(p,d,I){return this.stream.write(c.__super__.attribute.call(this,p,d,I))},c.prototype.cdata=function(p,d,I){return this.stream.write(c.__super__.cdata.call(this,p,d,I))},c.prototype.comment=function(p,d,I){return this.stream.write(c.__super__.comment.call(this,p,d,I))},c.prototype.declaration=function(p,d,I){return this.stream.write(c.__super__.declaration.call(this,p,d,I))},c.prototype.docType=function(p,d,I){var D,T,g,E;if(I||(I=0),this.openNode(p,d,I),d.state=t.OpenTag,this.stream.write(this.indent(p,d,I)),this.stream.write("<!DOCTYPE "+p.root().name),p.pubID&&p.sysID?this.stream.write(' PUBLIC "'+p.pubID+'" "'+p.sysID+'"'):p.sysID&&this.stream.write(' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(p,d,I)),d.state=t.InsideTag,E=p.children,T=0,g=E.length;T<g;T++)D=E[T],this.writeChildNode(D,d,I+1);d.state=t.CloseTag,this.stream.write("]")}return d.state=t.CloseTag,this.stream.write(d.spaceBeforeSlash+">"),this.stream.write(this.endline(p,d,I)),d.state=t.None,this.closeNode(p,d,I)},c.prototype.element=function(p,d,I){var D,T,g,E,N,v,M,O,m,l;I||(I=0),this.openNode(p,d,I),d.state=t.OpenTag,this.stream.write(this.indent(p,d,I)+"<"+p.name),m=p.attribs;for(M in m)s.call(m,M)&&(D=m[M],this.attribute(D,d,I));if(g=p.children.length,E=g===0?null:p.children[0],g===0||p.children.every(function(a){return(a.type===e.Text||a.type===e.Raw)&&a.value===""}))d.allowEmpty?(this.stream.write(">"),d.state=t.CloseTag,this.stream.write("</"+p.name+">")):(d.state=t.CloseTag,this.stream.write(d.spaceBeforeSlash+"/>"));else if(d.pretty&&g===1&&(E.type===e.Text||E.type===e.Raw)&&E.value!=null)this.stream.write(">"),d.state=t.InsideTag,d.suppressPrettyCount++,O=!0,this.writeChildNode(E,d,I+1),d.suppressPrettyCount--,O=!1,d.state=t.CloseTag,this.stream.write("</"+p.name+">");else{for(this.stream.write(">"+this.endline(p,d,I)),d.state=t.InsideTag,l=p.children,N=0,v=l.length;N<v;N++)T=l[N],this.writeChildNode(T,d,I+1);d.state=t.CloseTag,this.stream.write(this.indent(p,d,I)+"</"+p.name+">")}return this.stream.write(this.endline(p,d,I)),d.state=t.None,this.closeNode(p,d,I)},c.prototype.processingInstruction=function(p,d,I){return this.stream.write(c.__super__.processingInstruction.call(this,p,d,I))},c.prototype.raw=function(p,d,I){return this.stream.write(c.__super__.raw.call(this,p,d,I))},c.prototype.text=function(p,d,I){return this.stream.write(c.__super__.text.call(this,p,d,I))},c.prototype.dtdAttList=function(p,d,I){return this.stream.write(c.__super__.dtdAttList.call(this,p,d,I))},c.prototype.dtdElement=function(p,d,I){return this.stream.write(c.__super__.dtdElement.call(this,p,d,I))},c.prototype.dtdEntity=function(p,d,I){return this.stream.write(c.__super__.dtdEntity.call(this,p,d,I))},c.prototype.dtdNotation=function(p,d,I){return this.stream.write(c.__super__.dtdNotation.call(this,p,d,I))},c})(n)}).call(Kr)});var Zr=B((Qr,pt)=>{(function(){var e,t,r,n,i,s,o,c,p,d;d=it(),c=d.assign,p=d.isFunction,r=oe(),n=le(),i=$r(),o=$t(),s=zr(),e=V(),t=Lt(),pt.exports.create=function(I,D,T,g){var E,N;if(I==null)throw new Error("Root element needs a name.");return g=c({},D,T,g),E=new n(g),N=E.element(I),g.headless||(E.declaration(g),(g.pubID!=null||g.sysID!=null)&&E.dtd(g)),N},pt.exports.begin=function(I,D,T){var g;return p(I)&&(g=[I,D],D=g[0],T=g[1],I={}),D?new i(I,D,T):new n(I)},pt.exports.stringWriter=function(I){return new o(I)},pt.exports.streamWriter=function(I,D){return new s(I,D)},pt.exports.implementation=new r,pt.exports.nodeType=e,pt.exports.writerState=t}).call(Qr)});var Jr=B(fe=>{(function(){"use strict";var e,t,r,n,i,s={}.hasOwnProperty;e=Zr(),t=vt().defaults,n=function(o){return typeof o=="string"&&(o.indexOf("&")>=0||o.indexOf(">")>=0||o.indexOf("<")>=0)},i=function(o){return"<![CDATA["+r(o)+"]]>"},r=function(o){return o.replace("]]>","]]]]><![CDATA[>")},fe.Builder=(function(){function o(c){var p,d,I;this.options={},d=t["0.2"];for(p in d)s.call(d,p)&&(I=d[p],this.options[p]=I);for(p in c)s.call(c,p)&&(I=c[p],this.options[p]=I)}return o.prototype.buildObject=function(c){var p,d,I,D,T;return p=this.options.attrkey,d=this.options.charkey,Object.keys(c).length===1&&this.options.rootName===t["0.2"].rootName?(T=Object.keys(c)[0],c=c[T]):T=this.options.rootName,I=(function(g){return function(E,N){var v,M,O,m,l,a;if(typeof N!="object")g.options.cdata&&n(N)?E.raw(i(N)):E.txt(N);else if(Array.isArray(N)){for(m in N)if(s.call(N,m)){M=N[m];for(l in M)O=M[l],E=I(E.ele(l),O).up()}}else for(l in N)if(s.call(N,l))if(M=N[l],l===p){if(typeof M=="object")for(v in M)a=M[v],E=E.att(v,a)}else if(l===d)g.options.cdata&&n(M)?E=E.raw(i(M)):E=E.txt(M);else if(Array.isArray(M))for(m in M)s.call(M,m)&&(O=M[m],typeof O=="string"?g.options.cdata&&n(O)?E=E.ele(l).raw(i(O)).up():E=E.ele(l,O).up():E=I(E.ele(l),O).up());else typeof M=="object"?E=I(E.ele(l),M).up():typeof M=="string"&&g.options.cdata&&n(M)?E=E.ele(l).raw(i(M)).up():(M==null&&(M=""),E=E.ele(l,M.toString()).up());return E}})(this),D=e.create(T,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),I(D,c).end(this.options.renderOpts)},o})()}).call(fe)});var ei=B((xo,ti)=>{ti.exports=J;function J(e){if(e)return pn(e)}function pn(e){for(var t in J.prototype)e[t]=J.prototype[t];return e}J.prototype.on=J.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this};J.prototype.once=function(e,t){var r=this;this._callbacks=this._callbacks||{};function n(){r.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};J.prototype.off=J.prototype.removeListener=J.prototype.removeAllListeners=J.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks[e];if(!r)return this;if(arguments.length==1)return delete this._callbacks[e],this;for(var n,i=0;i<r.length;i++)if(n=r[i],n===t||n.fn===t){r.splice(i,1);break}return this};J.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),r=this._callbacks[e];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this};J.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]};J.prototype.hasListeners=function(e){return!!this.listeners(e).length}});var ni=B((Oo,ii)=>{var ri=ei();function _t(){ri.call(this)}_t.prototype=new ri;ii.exports=_t;_t.Stream=_t;_t.prototype.pipe=function(e,t){var r=this;function n(I){e.writable&&e.write(I)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",c));var s=!1;function o(){s||(s=!0,e.end())}function c(){s||(s=!0,typeof e.destroy=="function"&&e.destroy())}function p(I){if(d(),!this.hasListeners("error"))throw I}r.on("error",p),e.on("error",p);function d(){r.off("data",n),e.off("drain",i),r.off("end",o),r.off("close",c),r.off("error",p),e.off("error",p),r.off("end",d),r.off("close",d),e.off("end",d),e.off("close",d)}return r.on("end",d),r.on("close",d),e.on("end",d),e.on("close",d),e.emit("pipe",r),e}});var ui=B(Kt=>{"use strict";Kt.byteLength=yn;Kt.toByteArray=gn;Kt.fromByteArray=Tn;var nt=[],tt=[],dn=typeof Uint8Array<"u"?Uint8Array:Array,he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(mt=0,oi=he.length;mt<oi;++mt)nt[mt]=he[mt],tt[he.charCodeAt(mt)]=mt;var mt,oi;tt[45]=62;tt[95]=63;function si(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function yn(e){var t=si(e),r=t[0],n=t[1];return(r+n)*3/4-n}function mn(e,t,r){return(t+r)*3/4-r}function gn(e){var t,r=si(e),n=r[0],i=r[1],s=new dn(mn(e,n,i)),o=0,c=i>0?n-4:n,p;for(p=0;p<c;p+=4)t=tt[e.charCodeAt(p)]<<18|tt[e.charCodeAt(p+1)]<<12|tt[e.charCodeAt(p+2)]<<6|tt[e.charCodeAt(p+3)],s[o++]=t>>16&255,s[o++]=t>>8&255,s[o++]=t&255;return i===2&&(t=tt[e.charCodeAt(p)]<<2|tt[e.charCodeAt(p+1)]>>4,s[o++]=t&255),i===1&&(t=tt[e.charCodeAt(p)]<<10|tt[e.charCodeAt(p+1)]<<4|tt[e.charCodeAt(p+2)]>>2,s[o++]=t>>8&255,s[o++]=t&255),s}function wn(e){return nt[e>>18&63]+nt[e>>12&63]+nt[e>>6&63]+nt[e&63]}function En(e,t,r){for(var n,i=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),i.push(wn(n));return i.join("")}function Tn(e){for(var t,r=e.length,n=r%3,i=[],s=16383,o=0,c=r-n;o<c;o+=s)i.push(En(e,o,o+s>c?c:o+s));return n===1?(t=e[r-1],i.push(nt[t>>2]+nt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(nt[t>>10]+nt[t>>4&63]+nt[t<<2&63]+"=")),i.join("")}});var ai=B(pe=>{pe.read=function(e,t,r,n,i){var s,o,c=i*8-n-1,p=(1<<c)-1,d=p>>1,I=-7,D=r?i-1:0,T=r?-1:1,g=e[t+D];for(D+=T,s=g&(1<<-I)-1,g>>=-I,I+=c;I>0;s=s*256+e[t+D],D+=T,I-=8);for(o=s&(1<<-I)-1,s>>=-I,I+=n;I>0;o=o*256+e[t+D],D+=T,I-=8);if(s===0)s=1-d;else{if(s===p)return o?NaN:(g?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-d}return(g?-1:1)*o*Math.pow(2,s-n)};pe.write=function(e,t,r,n,i,s){var o,c,p,d=s*8-i-1,I=(1<<d)-1,D=I>>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:s-1,E=n?1:-1,N=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,o=I):(o=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-o))<1&&(o--,p*=2),o+D>=1?t+=T/p:t+=T*Math.pow(2,1-D),t*p>=2&&(o++,p/=2),o+D>=I?(c=0,o=I):o+D>=1?(c=(t*p-1)*Math.pow(2,i),o=o+D):(c=t*Math.pow(2,D-1)*Math.pow(2,i),o=0));i>=8;e[r+g]=c&255,g+=E,c/=256,i-=8);for(o=o<<i|c,d+=i;d>0;e[r+g]=o&255,g+=E,o/=256,d-=8);e[r+g-E]|=N*128}});var xi=B(Ot=>{"use strict";var de=ui(),Nt=ai(),ci=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ot.Buffer=L;Ot.SlowBuffer=On;Ot.INSPECT_MAX_BYTES=50;var Ht=2147483647;Ot.kMaxLength=Ht;L.TYPED_ARRAY_SUPPORT=Dn();!L.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Dn(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(L.prototype,"parent",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.buffer}});Object.defineProperty(L.prototype,"offset",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.byteOffset}});function at(e){if(e>Ht)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,L.prototype),t}function L(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return we(e)}return pi(e,t,r)}L.poolSize=8192;function pi(e,t,r){if(typeof e=="string")return bn(e,t);if(ArrayBuffer.isView(e))return Nn(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ot(e,ArrayBuffer)||e&&ot(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ot(e,SharedArrayBuffer)||e&&ot(e.buffer,SharedArrayBuffer)))return me(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return L.from(n,t,r);let i=xn(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return L.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}L.from=function(e,t,r){return pi(e,t,r)};Object.setPrototypeOf(L.prototype,Uint8Array.prototype);Object.setPrototypeOf(L,Uint8Array);function di(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function In(e,t,r){return di(e),e<=0?at(e):t!==void 0?typeof r=="string"?at(e).fill(t,r):at(e).fill(t):at(e)}L.alloc=function(e,t,r){return In(e,t,r)};function we(e){return di(e),at(e<0?0:Ee(e)|0)}L.allocUnsafe=function(e){return we(e)};L.allocUnsafeSlow=function(e){return we(e)};function bn(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!L.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=yi(e,t)|0,n=at(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function ye(e){let t=e.length<0?0:Ee(e.length)|0,r=at(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function Nn(e){if(ot(e,Uint8Array)){let t=new Uint8Array(e);return me(t.buffer,t.byteOffset,t.byteLength)}return ye(e)}function me(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,L.prototype),n}function xn(e){if(L.isBuffer(e)){let t=Ee(e.length)|0,r=at(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||De(e.length)?at(0):ye(e);if(e.type==="Buffer"&&Array.isArray(e.data))return ye(e.data)}function Ee(e){if(e>=Ht)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ht.toString(16)+" bytes");return e|0}function On(e){return+e!=e&&(e=0),L.alloc(+e)}L.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==L.prototype};L.compare=function(t,r){if(ot(t,Uint8Array)&&(t=L.from(t,t.offset,t.byteLength)),ot(r,Uint8Array)&&(r=L.from(r,r.offset,r.byteLength)),!L.isBuffer(t)||!L.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let s=0,o=Math.min(n,i);s<o;++s)if(t[s]!==r[s]){n=t[s],i=r[s];break}return n<i?-1:i<n?1:0};L.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};L.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return L.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let i=L.allocUnsafe(r),s=0;for(n=0;n<t.length;++n){let o=t[n];if(ot(o,Uint8Array))s+o.length>i.length?(L.isBuffer(o)||(o=L.from(o)),o.copy(i,s)):Uint8Array.prototype.set.call(i,o,s);else if(L.isBuffer(o))o.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=o.length}return i};function yi(e,t){if(L.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ot(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ge(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Ni(e).length;default:if(i)return n?-1:ge(e).length;t=(""+t).toLowerCase(),i=!0}}L.byteLength=yi;function Cn(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Rn(this,t,r);case"utf8":case"utf-8":return gi(this,t,r);case"ascii":return Sn(this,t,r);case"latin1":case"binary":return Bn(this,t,r);case"base64":return vn(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Un(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}L.prototype._isBuffer=!0;function gt(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}L.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)gt(this,r,r+1);return this};L.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)gt(this,r,r+3),gt(this,r+1,r+2);return this};L.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)gt(this,r,r+7),gt(this,r+1,r+6),gt(this,r+2,r+5),gt(this,r+3,r+4);return this};L.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?gi(this,0,t):Cn.apply(this,arguments)};L.prototype.toLocaleString=L.prototype.toString;L.prototype.equals=function(t){if(!L.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:L.compare(this,t)===0};L.prototype.inspect=function(){let t="",r=Ot.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};ci&&(L.prototype[ci]=L.prototype.inspect);L.prototype.compare=function(t,r,n,i,s){if(ot(t,Uint8Array)&&(t=L.from(t,t.offset,t.byteLength)),!L.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),r<0||n>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&r>=n)return 0;if(i>=s)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,s>>>=0,this===t)return 0;let o=s-i,c=n-r,p=Math.min(o,c),d=this.slice(i,s),I=t.slice(r,n);for(let D=0;D<p;++D)if(d[D]!==I[D]){o=d[D],c=I[D];break}return o<c?-1:c<o?1:0};function mi(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,De(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=L.from(t,n)),L.isBuffer(t))return t.length===0?-1:li(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):li(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function li(e,t,r,n,i){let s=1,o=e.length,c=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;s=2,o/=2,c/=2,r/=2}function p(I,D){return s===1?I[D]:I.readUInt16BE(D*s)}let d;if(i){let I=-1;for(d=r;d<o;d++)if(p(e,d)===p(t,I===-1?0:d-I)){if(I===-1&&(I=d),d-I+1===c)return I*s}else I!==-1&&(d-=d-I),I=-1}else for(r+c>o&&(r=o-c),d=r;d>=0;d--){let I=!0;for(let D=0;D<c;D++)if(p(e,d+D)!==p(t,D)){I=!1;break}if(I)return d}return-1}L.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};L.prototype.indexOf=function(t,r,n){return mi(this,t,r,n,!0)};L.prototype.lastIndexOf=function(t,r,n){return mi(this,t,r,n,!1)};function An(e,t,r,n){r=Number(r)||0;let i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let s=t.length;n>s/2&&(n=s/2);let o;for(o=0;o<n;++o){let c=parseInt(t.substr(o*2,2),16);if(De(c))return o;e[r+o]=c}return o}function Ln(e,t,r,n){return zt(ge(t,e.length-r),e,r,n)}function _n(e,t,r,n){return zt(kn(t),e,r,n)}function Mn(e,t,r,n){return zt(Ni(t),e,r,n)}function Pn(e,t,r,n){return zt(Vn(t,e.length-r),e,r,n)}L.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-r;if((n===void 0||n>s)&&(n=s),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return An(this,t,r,n);case"utf8":case"utf-8":return Ln(this,t,r,n);case"ascii":case"latin1":case"binary":return _n(this,t,r,n);case"base64":return Mn(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pn(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function vn(e,t,r){return t===0&&r===e.length?de.fromByteArray(e):de.fromByteArray(e.slice(t,r))}function gi(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let s=e[i],o=null,c=s>239?4:s>223?3:s>191?2:1;if(i+c<=r){let p,d,I,D;switch(c){case 1:s<128&&(o=s);break;case 2:p=e[i+1],(p&192)===128&&(D=(s&31)<<6|p&63,D>127&&(o=D));break;case 3:p=e[i+1],d=e[i+2],(p&192)===128&&(d&192)===128&&(D=(s&15)<<12|(p&63)<<6|d&63,D>2047&&(D<55296||D>57343)&&(o=D));break;case 4:p=e[i+1],d=e[i+2],I=e[i+3],(p&192)===128&&(d&192)===128&&(I&192)===128&&(D=(s&15)<<18|(p&63)<<12|(d&63)<<6|I&63,D>65535&&D<1114112&&(o=D))}}o===null?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=c}return Fn(n)}var fi=4096;function Fn(e){let t=e.length;if(t<=fi)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=fi));return r}function Sn(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function Bn(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Rn(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let s=t;s<r;++s)i+=Wn[e[s]];return i}function Un(e,t,r){let n=e.slice(t,r),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}L.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let i=this.subarray(t,r);return Object.setPrototypeOf(i,L.prototype),i};function Y(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Y(t,r,this.length);let i=this[t],s=1,o=0;for(;++o<r&&(s*=256);)i+=this[t+o]*s;return i};L.prototype.readUintBE=L.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Y(t,r,this.length);let i=this[t+--r],s=1;for(;r>0&&(s*=256);)i+=this[t+--r]*s;return i};L.prototype.readUint8=L.prototype.readUInt8=function(t,r){return t=t>>>0,r||Y(t,1,this.length),this[t]};L.prototype.readUint16LE=L.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||Y(t,2,this.length),this[t]|this[t+1]<<8};L.prototype.readUint16BE=L.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||Y(t,2,this.length),this[t]<<8|this[t+1]};L.prototype.readUint32LE=L.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||Y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};L.prototype.readUint32BE=L.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||Y(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};L.prototype.readBigUInt64LE=dt(function(t){t=t>>>0,xt(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Mt(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,s=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))});L.prototype.readBigUInt64BE=dt(function(t){t=t>>>0,xt(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Mt(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],s=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(s)});L.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Y(t,r,this.length);let i=this[t],s=1,o=0;for(;++o<r&&(s*=256);)i+=this[t+o]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*r)),i};L.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Y(t,r,this.length);let i=r,s=1,o=this[t+--i];for(;i>0&&(s*=256);)o+=this[t+--i]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*r)),o};L.prototype.readInt8=function(t,r){return t=t>>>0,r||Y(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};L.prototype.readInt16LE=function(t,r){t=t>>>0,r||Y(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};L.prototype.readInt16BE=function(t,r){t=t>>>0,r||Y(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};L.prototype.readInt32LE=function(t,r){return t=t>>>0,r||Y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};L.prototype.readInt32BE=function(t,r){return t=t>>>0,r||Y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};L.prototype.readBigInt64LE=dt(function(t){t=t>>>0,xt(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Mt(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});L.prototype.readBigInt64BE=dt(function(t){t=t>>>0,xt(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Mt(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});L.prototype.readFloatLE=function(t,r){return t=t>>>0,r||Y(t,4,this.length),Nt.read(this,t,!0,23,4)};L.prototype.readFloatBE=function(t,r){return t=t>>>0,r||Y(t,4,this.length),Nt.read(this,t,!1,23,4)};L.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||Y(t,8,this.length),Nt.read(this,t,!0,52,8)};L.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||Y(t,8,this.length),Nt.read(this,t,!1,52,8)};function z(e,t,r,n,i,s){if(!L.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let c=Math.pow(2,8*n)-1;z(this,t,r,n,c,0)}let s=1,o=0;for(this[r]=t&255;++o<n&&(s*=256);)this[r+o]=t/s&255;return r+n};L.prototype.writeUintBE=L.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let c=Math.pow(2,8*n)-1;z(this,t,r,n,c,0)}let s=n-1,o=1;for(this[r+s]=t&255;--s>=0&&(o*=256);)this[r+s]=t/o&255;return r+n};L.prototype.writeUint8=L.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,1,255,0),this[r]=t&255,r+1};L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function wi(e,t,r,n,i){bi(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function Ei(e,t,r,n,i){bi(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s=s>>8,e[r+6]=s,s=s>>8,e[r+5]=s,s=s>>8,e[r+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}L.prototype.writeBigUInt64LE=dt(function(t,r=0){return wi(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});L.prototype.writeBigUInt64BE=dt(function(t,r=0){return Ei(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});L.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let p=Math.pow(2,8*n-1);z(this,t,r,n,p-1,-p)}let s=0,o=1,c=0;for(this[r]=t&255;++s<n&&(o*=256);)t<0&&c===0&&this[r+s-1]!==0&&(c=1),this[r+s]=(t/o>>0)-c&255;return r+n};L.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let p=Math.pow(2,8*n-1);z(this,t,r,n,p-1,-p)}let s=n-1,o=1,c=0;for(this[r+s]=t&255;--s>=0&&(o*=256);)t<0&&c===0&&this[r+s+1]!==0&&(c=1),this[r+s]=(t/o>>0)-c&255;return r+n};L.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};L.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};L.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};L.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};L.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||z(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};L.prototype.writeBigInt64LE=dt(function(t,r=0){return wi(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});L.prototype.writeBigInt64BE=dt(function(t,r=0){return Ei(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ti(e,t,r,n,i,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Di(e,t,r,n,i){return t=+t,r=r>>>0,i||Ti(e,t,r,4,34028234663852886e22,-34028234663852886e22),Nt.write(e,t,r,n,23,4),r+4}L.prototype.writeFloatLE=function(t,r,n){return Di(this,t,r,!0,n)};L.prototype.writeFloatBE=function(t,r,n){return Di(this,t,r,!1,n)};function Ii(e,t,r,n,i){return t=+t,r=r>>>0,i||Ti(e,t,r,8,17976931348623157e292,-17976931348623157e292),Nt.write(e,t,r,n,52,8),r+8}L.prototype.writeDoubleLE=function(t,r,n){return Ii(this,t,r,!0,n)};L.prototype.writeDoubleBE=function(t,r,n){return Ii(this,t,r,!1,n)};L.prototype.copy=function(t,r,n,i){if(!L.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);let s=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),s};L.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!L.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){let o=t.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(t=o)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let s;if(typeof t=="number")for(s=r;s<n;++s)this[s]=t;else{let o=L.isBuffer(t)?t:L.from(t,i),c=o.length;if(c===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(s=0;s<n-r;++s)this[s+r]=o[s%c]}return this};var bt={};function Te(e,t,r){bt[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}Te("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Te("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);Te("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=hi(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=hi(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function hi(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function qn(e,t,r){xt(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Mt(t,e.length-(r+1))}function bi(e,t,r,n,i,s){if(e>r||e<t){let o=typeof t=="bigint"?"n":"",c;throw s>3?t===0||t===BigInt(0)?c=`>= 0${o} and < 2${o} ** ${(s+1)*8}${o}`:c=`>= -(2${o} ** ${(s+1)*8-1}${o}) and < 2 ** ${(s+1)*8-1}${o}`:c=`>= ${t}${o} and <= ${r}${o}`,new bt.ERR_OUT_OF_RANGE("value",c,e)}qn(n,i,s)}function xt(e,t){if(typeof e!="number")throw new bt.ERR_INVALID_ARG_TYPE(t,"number",e)}function Mt(e,t,r){throw Math.floor(e)!==e?(xt(e,r),new bt.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new bt.ERR_BUFFER_OUT_OF_BOUNDS:new bt.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var Xn=/[^+/0-9A-Za-z-_]/g;function jn(e){if(e=e.split("=")[0],e=e.trim().replace(Xn,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function ge(e,t){t=t||1/0;let r,n=e.length,i=null,s=[];for(let o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function kn(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Vn(e,t){let r,n,i,s=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,s.push(i),s.push(n);return s}function Ni(e){return de.toByteArray(jn(e))}function zt(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function ot(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function De(e){return e!==e}var Wn=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t})();function dt(e){return typeof BigInt>"u"?Gn:e}function Gn(){throw new Error("BigInt not supported")}});var Ai=B((Ie,Ci)=>{var Qt=xi(),st=Qt.Buffer;function Oi(e,t){for(var r in e)t[r]=e[r]}st.from&&st.alloc&&st.allocUnsafe&&st.allocUnsafeSlow?Ci.exports=Qt:(Oi(Qt,Ie),Ie.Buffer=wt);function wt(e,t,r){return st(e,t,r)}wt.prototype=Object.create(st.prototype);Oi(st,wt);wt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return st(e,t,r)};wt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=st(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};wt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return st(e)};wt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Qt.SlowBuffer(e)}});var Mi=B(_i=>{"use strict";var Ne=Ai().Buffer,Li=Ne.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Yn(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function $n(e){var t=Yn(e);if(typeof t!="string"&&(Ne.isEncoding===Li||!Li(e)))throw new Error("Unknown encoding: "+e);return t||e}_i.StringDecoder=Pt;function Pt(e){this.encoding=$n(e);var t;switch(this.encoding){case"utf16le":this.text=Jn,this.end=to,t=4;break;case"utf8":this.fillLast=zn,t=4;break;case"base64":this.text=eo,this.end=ro,t=3;break;default:this.write=io,this.end=no;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ne.allocUnsafe(t)}Pt.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Pt.prototype.end=Zn;Pt.prototype.text=Qn;Pt.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function be(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Kn(e,t,r){var n=t.length-1;if(n<r)return 0;var i=be(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=be(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=be(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Hn(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function zn(e){var t=this.lastTotal-this.lastNeed,r=Hn(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Qn(e,t){var r=Kn(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function Zn(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Jn(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function to(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function eo(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function ro(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function io(e){return e.toString(this.encoding)}function no(e){return e&&e.length?this.write(e):""}});var Pi=B(Zt=>{(function(e){e.parser=function(h,u){return new r(h,u)},e.SAXParser=r,e.SAXStream=d,e.createStream=p,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(h,u){if(!(this instanceof r))return new r(h,u);var _=this;i(_),_.q=_.c="",_.bufferCheckPosition=e.MAX_BUFFER_LENGTH,_.opt=u||{},_.opt.lowercase=_.opt.lowercase||_.opt.lowercasetags,_.looseCase=_.opt.lowercase?"toLowerCase":"toUpperCase",_.tags=[],_.closed=_.closedRoot=_.sawRoot=!1,_.tag=_.error=null,_.strict=!!h,_.noscript=!!(h||_.opt.noscript),_.state=f.BEGIN,_.strictEntities=_.opt.strictEntities,_.ENTITIES=_.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),_.attribList=[],_.opt.xmlns&&(_.ns=Object.create(E)),_.opt.unquotedAttributeValues===void 0&&(_.opt.unquotedAttributeValues=!h),_.trackPosition=_.opt.position!==!1,_.trackPosition&&(_.position=_.line=_.column=0),w(_,"onready")}Object.create||(Object.create=function(h){function u(){}u.prototype=h;var _=new u;return _}),Object.keys||(Object.keys=function(h){var u=[];for(var _ in h)h.hasOwnProperty(_)&&u.push(_);return u});function n(h){for(var u=Math.max(e.MAX_BUFFER_LENGTH,10),_=0,b=0,X=t.length;b<X;b++){var k=h[t[b]].length;if(k>u)switch(t[b]){case"textNode":P(h);break;case"cdata":x(h,"oncdata",h.cdata),h.cdata="";break;case"script":x(h,"onscript",h.script),h.script="";break;default:R(h,"Max buffer length exceeded: "+t[b])}_=Math.max(_,k)}var G=e.MAX_BUFFER_LENGTH-_;h.bufferCheckPosition=G+h.position}function i(h){for(var u=0,_=t.length;u<_;u++)h[t[u]]=""}function s(h){P(h),h.cdata!==""&&(x(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(x(h,"onscript",h.script),h.script="")}r.prototype={end:function(){U(this)},write:nn,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){s(this)}};var o;try{o=ni().Stream}catch{o=function(){}}o||(o=function(){});var c=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function p(h,u){return new d(h,u)}function d(h,u){if(!(this instanceof d))return new d(h,u);o.apply(this),this._parser=new r(h,u),this.writable=!0,this.readable=!0;var _=this;this._parser.onend=function(){_.emit("end")},this._parser.onerror=function(b){_.emit("error",b),_._parser.error=null},this._decoder=null,c.forEach(function(b){Object.defineProperty(_,"on"+b,{get:function(){return _._parser["on"+b]},set:function(X){if(!X)return _.removeAllListeners(b),_._parser["on"+b]=X,X;_.on(b,X)},enumerable:!0,configurable:!1})})}d.prototype=Object.create(o.prototype,{constructor:{value:d}}),d.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var u=Mi().StringDecoder;this._decoder=new u("utf8")}h=this._decoder.write(h)}return this._parser.write(h.toString()),this.emit("data",h),!0},d.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},d.prototype.on=function(h,u){var _=this;return!_._parser["on"+h]&&c.indexOf(h)!==-1&&(_._parser["on"+h]=function(){var b=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);b.splice(0,0,h),_.emit.apply(_,b)}),o.prototype.on.call(_,h,u)};var I="[CDATA[",D="DOCTYPE",T="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/2000/xmlns/",E={xml:T,xmlns:g},N=/[:_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-]/,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]/,O=/[#:_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 m(h){return h===" "||h===`
|
|
4
|
-
`||h==="\r"||h===" "}function l(h){return h==='"'||h==="'"}function a(h){return h===">"||m(h)}function y(h,u){return h.test(u)}function C(h,u){return!y(h,u)}var f=0;e.STATE={BEGIN:f++,BEGIN_WHITESPACE:f++,TEXT:f++,TEXT_ENTITY:f++,OPEN_WAKA:f++,SGML_DECL:f++,SGML_DECL_QUOTED:f++,DOCTYPE:f++,DOCTYPE_QUOTED:f++,DOCTYPE_DTD:f++,DOCTYPE_DTD_QUOTED:f++,COMMENT_STARTING:f++,COMMENT:f++,COMMENT_ENDING:f++,COMMENT_ENDED:f++,CDATA:f++,CDATA_ENDING:f++,CDATA_ENDING_2:f++,PROC_INST:f++,PROC_INST_BODY:f++,PROC_INST_ENDING:f++,OPEN_TAG:f++,OPEN_TAG_SLASH:f++,ATTRIB:f++,ATTRIB_NAME:f++,ATTRIB_NAME_SAW_WHITE:f++,ATTRIB_VALUE:f++,ATTRIB_VALUE_QUOTED:f++,ATTRIB_VALUE_CLOSED:f++,ATTRIB_VALUE_UNQUOTED:f++,ATTRIB_VALUE_ENTITY_Q:f++,ATTRIB_VALUE_ENTITY_U:f++,CLOSE_TAG:f++,CLOSE_TAG_SAW_WHITE:f++,SCRIPT:f++,SCRIPT_ENDING:f++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.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(e.ENTITIES).forEach(function(h){var u=e.ENTITIES[h],_=typeof u=="number"?String.fromCharCode(u):u;e.ENTITIES[h]=_});for(var A in e.STATE)e.STATE[e.STATE[A]]=A;f=e.STATE;function w(h,u,_){h[u]&&h[u](_)}function x(h,u,_){h.textNode&&P(h),w(h,u,_)}function P(h){h.textNode=F(h.opt,h.textNode),h.textNode&&w(h,"ontext",h.textNode),h.textNode=""}function F(h,u){return h.trim&&(u=u.trim()),h.normalize&&(u=u.replace(/\s+/g," ")),u}function R(h,u){return P(h),h.trackPosition&&(u+=`
|
|
5
|
-
Line: `+h.line+`
|
|
6
|
-
Column: `+h.column+`
|
|
7
|
-
Char: `+h.c),u=new Error(u),h.error=u,w(h,"onerror",u),h}function U(h){return h.sawRoot&&!h.closedRoot&&S(h,"Unclosed root tag"),h.state!==f.BEGIN&&h.state!==f.BEGIN_WHITESPACE&&h.state!==f.TEXT&&R(h,"Unexpected end"),P(h),h.c="",h.closed=!0,w(h,"onend"),r.call(h,h.strict,h.opt),h}function S(h,u){if(typeof h!="object"||!(h instanceof r))throw new Error("bad call to strictFail");h.strict&&R(h,u)}function W(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var u=h.tags[h.tags.length-1]||h,_=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(_.ns=u.ns),h.attribList.length=0,x(h,"onopentagstart",_)}function q(h,u){var _=h.indexOf(":"),b=_<0?["",h]:h.split(":"),X=b[0],k=b[1];return u&&h==="xmlns"&&(X="xmlns",k=""),{prefix:X,local:k}}function yt(h){if(h.strict||(h.attribName=h.attribName[h.looseCase]()),h.attribList.indexOf(h.attribName)!==-1||h.tag.attributes.hasOwnProperty(h.attribName)){h.attribName=h.attribValue="";return}if(h.opt.xmlns){var u=q(h.attribName,!0),_=u.prefix,b=u.local;if(_==="xmlns")if(b==="xml"&&h.attribValue!==T)S(h,"xml: prefix must be bound to "+T+`
|
|
8
|
-
Actual: `+h.attribValue);else if(b==="xmlns"&&h.attribValue!==g)S(h,"xmlns: prefix must be bound to "+g+`
|
|
9
|
-
Actual: `+h.attribValue);else{var X=h.tag,k=h.tags[h.tags.length-1]||h;X.ns===k.ns&&(X.ns=Object.create(k.ns)),X.ns[b]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,x(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}function rt(h,u){if(h.opt.xmlns){var _=h.tag,b=q(h.tagName);_.prefix=b.prefix,_.local=b.local,_.uri=_.ns[b.prefix]||"",_.prefix&&!_.uri&&(S(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),_.uri=b.prefix);var X=h.tags[h.tags.length-1]||h;_.ns&&X.ns!==_.ns&&Object.keys(_.ns).forEach(function(ve){x(h,"onopennamespace",{prefix:ve,uri:_.ns[ve]})});for(var k=0,G=h.attribList.length;k<G;k++){var K=h.attribList[k],H=K[0],It=K[1],$=q(H,!0),ut=$.prefix,on=$.local,Pe=ut===""?"":_.ns[ut]||"",ie={name:H,value:It,prefix:ut,local:on,uri:Pe};ut&&ut!=="xmlns"&&!Pe&&(S(h,"Unbound namespace prefix: "+JSON.stringify(ut)),ie.uri=ut),h.tag.attributes[H]=ie,x(h,"onattribute",ie)}h.attribList.length=0}h.tag.isSelfClosing=!!u,h.sawRoot=!0,h.tags.push(h.tag),x(h,"onopentag",h.tag),u||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=f.SCRIPT:h.state=f.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}function ee(h){if(!h.tagName){S(h,"Weird empty close tag."),h.textNode+="</>",h.state=f.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=f.SCRIPT;return}x(h,"onscript",h.script),h.script=""}var u=h.tags.length,_=h.tagName;h.strict||(_=_[h.looseCase]());for(var b=_;u--;){var X=h.tags[u];if(X.name!==b)S(h,"Unexpected close tag");else break}if(u<0){S(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=f.TEXT;return}h.tagName=_;for(var k=h.tags.length;k-- >u;){var G=h.tag=h.tags.pop();h.tagName=h.tag.name,x(h,"onclosetag",h.tagName);var K={};for(var H in G.ns)K[H]=G.ns[H];var It=h.tags[h.tags.length-1]||h;h.opt.xmlns&&G.ns!==It.ns&&Object.keys(G.ns).forEach(function($){var ut=G.ns[$];x(h,"onclosenamespace",{prefix:$,uri:ut})})}u===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=f.TEXT}function rn(h){var u=h.entity,_=u.toLowerCase(),b,X="";return h.ENTITIES[u]?h.ENTITIES[u]:h.ENTITIES[_]?h.ENTITIES[_]:(u=_,u.charAt(0)==="#"&&(u.charAt(1)==="x"?(u=u.slice(2),b=parseInt(u,16),X=b.toString(16)):(u=u.slice(1),b=parseInt(u,10),X=b.toString(10))),u=u.replace(/^0+/,""),isNaN(b)||X.toLowerCase()!==u||b<0||b>1114111?(S(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(b))}function Me(h,u){u==="<"?(h.state=f.OPEN_WAKA,h.startTagPosition=h.position):m(u)||(S(h,"Non-whitespace before first tag."),h.textNode=u,h.state=f.TEXT)}function re(h,u){var _="";return u<h.length&&(_=h.charAt(u)),_}function nn(h){var u=this;if(this.error)throw this.error;if(u.closed)return R(u,"Cannot write after close. Assign an onready handler.");if(h===null)return U(u);typeof h=="object"&&(h=h.toString());for(var _=0,b="";b=re(h,_++),u.c=b,!!b;)switch(u.trackPosition&&(u.position++,b===`
|
|
10
|
-
`?(u.line++,u.column=0):u.column++),u.state){case f.BEGIN:if(u.state=f.BEGIN_WHITESPACE,b==="\uFEFF")continue;Me(u,b);continue;case f.BEGIN_WHITESPACE:Me(u,b);continue;case f.TEXT:if(u.sawRoot&&!u.closedRoot){for(var k=_-1;b&&b!=="<"&&b!=="&";)b=re(h,_++),b&&u.trackPosition&&(u.position++,b===`
|
|
11
|
-
`?(u.line++,u.column=0):u.column++);u.textNode+=h.substring(k,_-1)}b==="<"&&!(u.sawRoot&&u.closedRoot&&!u.strict)?(u.state=f.OPEN_WAKA,u.startTagPosition=u.position):(!m(b)&&(!u.sawRoot||u.closedRoot)&&S(u,"Text data outside of root node."),b==="&"?u.state=f.TEXT_ENTITY:u.textNode+=b);continue;case f.SCRIPT:b==="<"?u.state=f.SCRIPT_ENDING:u.script+=b;continue;case f.SCRIPT_ENDING:b==="/"?u.state=f.CLOSE_TAG:(u.script+="<"+b,u.state=f.SCRIPT);continue;case f.OPEN_WAKA:if(b==="!")u.state=f.SGML_DECL,u.sgmlDecl="";else if(!m(b))if(y(N,b))u.state=f.OPEN_TAG,u.tagName=b;else if(b==="/")u.state=f.CLOSE_TAG,u.tagName="";else if(b==="?")u.state=f.PROC_INST,u.procInstName=u.procInstBody="";else{if(S(u,"Unencoded <"),u.startTagPosition+1<u.position){var X=u.position-u.startTagPosition;b=new Array(X).join(" ")+b}u.textNode+="<"+b,u.state=f.TEXT}continue;case f.SGML_DECL:if(u.sgmlDecl+b==="--"){u.state=f.COMMENT,u.comment="",u.sgmlDecl="";continue}u.doctype&&u.doctype!==!0&&u.sgmlDecl?(u.state=f.DOCTYPE_DTD,u.doctype+="<!"+u.sgmlDecl+b,u.sgmlDecl=""):(u.sgmlDecl+b).toUpperCase()===I?(x(u,"onopencdata"),u.state=f.CDATA,u.sgmlDecl="",u.cdata=""):(u.sgmlDecl+b).toUpperCase()===D?(u.state=f.DOCTYPE,(u.doctype||u.sawRoot)&&S(u,"Inappropriately located doctype declaration"),u.doctype="",u.sgmlDecl=""):b===">"?(x(u,"onsgmldeclaration",u.sgmlDecl),u.sgmlDecl="",u.state=f.TEXT):(l(b)&&(u.state=f.SGML_DECL_QUOTED),u.sgmlDecl+=b);continue;case f.SGML_DECL_QUOTED:b===u.q&&(u.state=f.SGML_DECL,u.q=""),u.sgmlDecl+=b;continue;case f.DOCTYPE:b===">"?(u.state=f.TEXT,x(u,"ondoctype",u.doctype),u.doctype=!0):(u.doctype+=b,b==="["?u.state=f.DOCTYPE_DTD:l(b)&&(u.state=f.DOCTYPE_QUOTED,u.q=b));continue;case f.DOCTYPE_QUOTED:u.doctype+=b,b===u.q&&(u.q="",u.state=f.DOCTYPE);continue;case f.DOCTYPE_DTD:b==="]"?(u.doctype+=b,u.state=f.DOCTYPE):b==="<"?(u.state=f.OPEN_WAKA,u.startTagPosition=u.position):l(b)?(u.doctype+=b,u.state=f.DOCTYPE_DTD_QUOTED,u.q=b):u.doctype+=b;continue;case f.DOCTYPE_DTD_QUOTED:u.doctype+=b,b===u.q&&(u.state=f.DOCTYPE_DTD,u.q="");continue;case f.COMMENT:b==="-"?u.state=f.COMMENT_ENDING:u.comment+=b;continue;case f.COMMENT_ENDING:b==="-"?(u.state=f.COMMENT_ENDED,u.comment=F(u.opt,u.comment),u.comment&&x(u,"oncomment",u.comment),u.comment=""):(u.comment+="-"+b,u.state=f.COMMENT);continue;case f.COMMENT_ENDED:b!==">"?(S(u,"Malformed comment"),u.comment+="--"+b,u.state=f.COMMENT):u.doctype&&u.doctype!==!0?u.state=f.DOCTYPE_DTD:u.state=f.TEXT;continue;case f.CDATA:for(var k=_-1;b&&b!=="]";)b=re(h,_++),b&&u.trackPosition&&(u.position++,b===`
|
|
12
|
-
`?(u.line++,u.column=0):u.column++);u.cdata+=h.substring(k,_-1),b==="]"&&(u.state=f.CDATA_ENDING);continue;case f.CDATA_ENDING:b==="]"?u.state=f.CDATA_ENDING_2:(u.cdata+="]"+b,u.state=f.CDATA);continue;case f.CDATA_ENDING_2:b===">"?(u.cdata&&x(u,"oncdata",u.cdata),x(u,"onclosecdata"),u.cdata="",u.state=f.TEXT):b==="]"?u.cdata+="]":(u.cdata+="]]"+b,u.state=f.CDATA);continue;case f.PROC_INST:b==="?"?u.state=f.PROC_INST_ENDING:m(b)?u.state=f.PROC_INST_BODY:u.procInstName+=b;continue;case f.PROC_INST_BODY:if(!u.procInstBody&&m(b))continue;b==="?"?u.state=f.PROC_INST_ENDING:u.procInstBody+=b;continue;case f.PROC_INST_ENDING:b===">"?(x(u,"onprocessinginstruction",{name:u.procInstName,body:u.procInstBody}),u.procInstName=u.procInstBody="",u.state=f.TEXT):(u.procInstBody+="?"+b,u.state=f.PROC_INST_BODY);continue;case f.OPEN_TAG:y(v,b)?u.tagName+=b:(W(u),b===">"?rt(u):b==="/"?u.state=f.OPEN_TAG_SLASH:(m(b)||S(u,"Invalid character in tag name"),u.state=f.ATTRIB));continue;case f.OPEN_TAG_SLASH:b===">"?(rt(u,!0),ee(u)):(S(u,"Forward-slash in opening tag not followed by >"),u.state=f.ATTRIB);continue;case f.ATTRIB:if(m(b))continue;b===">"?rt(u):b==="/"?u.state=f.OPEN_TAG_SLASH:y(N,b)?(u.attribName=b,u.attribValue="",u.state=f.ATTRIB_NAME):S(u,"Invalid attribute name");continue;case f.ATTRIB_NAME:b==="="?u.state=f.ATTRIB_VALUE:b===">"?(S(u,"Attribute without value"),u.attribValue=u.attribName,yt(u),rt(u)):m(b)?u.state=f.ATTRIB_NAME_SAW_WHITE:y(v,b)?u.attribName+=b:S(u,"Invalid attribute name");continue;case f.ATTRIB_NAME_SAW_WHITE:if(b==="=")u.state=f.ATTRIB_VALUE;else{if(m(b))continue;S(u,"Attribute without value"),u.tag.attributes[u.attribName]="",u.attribValue="",x(u,"onattribute",{name:u.attribName,value:""}),u.attribName="",b===">"?rt(u):y(N,b)?(u.attribName=b,u.state=f.ATTRIB_NAME):(S(u,"Invalid attribute name"),u.state=f.ATTRIB)}continue;case f.ATTRIB_VALUE:if(m(b))continue;l(b)?(u.q=b,u.state=f.ATTRIB_VALUE_QUOTED):(u.opt.unquotedAttributeValues||R(u,"Unquoted attribute value"),u.state=f.ATTRIB_VALUE_UNQUOTED,u.attribValue=b);continue;case f.ATTRIB_VALUE_QUOTED:if(b!==u.q){b==="&"?u.state=f.ATTRIB_VALUE_ENTITY_Q:u.attribValue+=b;continue}yt(u),u.q="",u.state=f.ATTRIB_VALUE_CLOSED;continue;case f.ATTRIB_VALUE_CLOSED:m(b)?u.state=f.ATTRIB:b===">"?rt(u):b==="/"?u.state=f.OPEN_TAG_SLASH:y(N,b)?(S(u,"No whitespace between attributes"),u.attribName=b,u.attribValue="",u.state=f.ATTRIB_NAME):S(u,"Invalid attribute name");continue;case f.ATTRIB_VALUE_UNQUOTED:if(!a(b)){b==="&"?u.state=f.ATTRIB_VALUE_ENTITY_U:u.attribValue+=b;continue}yt(u),b===">"?rt(u):u.state=f.ATTRIB;continue;case f.CLOSE_TAG:if(u.tagName)b===">"?ee(u):y(v,b)?u.tagName+=b:u.script?(u.script+="</"+u.tagName,u.tagName="",u.state=f.SCRIPT):(m(b)||S(u,"Invalid tagname in closing tag"),u.state=f.CLOSE_TAG_SAW_WHITE);else{if(m(b))continue;C(N,b)?u.script?(u.script+="</"+b,u.state=f.SCRIPT):S(u,"Invalid tagname in closing tag."):u.tagName=b}continue;case f.CLOSE_TAG_SAW_WHITE:if(m(b))continue;b===">"?ee(u):S(u,"Invalid characters in closing tag");continue;case f.TEXT_ENTITY:case f.ATTRIB_VALUE_ENTITY_Q:case f.ATTRIB_VALUE_ENTITY_U:var G,K;switch(u.state){case f.TEXT_ENTITY:G=f.TEXT,K="textNode";break;case f.ATTRIB_VALUE_ENTITY_Q:G=f.ATTRIB_VALUE_QUOTED,K="attribValue";break;case f.ATTRIB_VALUE_ENTITY_U:G=f.ATTRIB_VALUE_UNQUOTED,K="attribValue";break}if(b===";"){var H=rn(u);u.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(H)?(u.entity="",u.state=G,u.write(H)):(u[K]+=H,u.entity="",u.state=G)}else y(u.entity.length?O:M,b)?u.entity+=b:(S(u,"Invalid character in entity name"),u[K]+="&"+u.entity+b,u.entity="",u.state=G);continue;default:throw new Error(u,"Unknown state: "+u.state)}return u.position>=u.bufferCheckPosition&&n(u),u}String.fromCodePoint||(function(){var h=String.fromCharCode,u=Math.floor,_=function(){var b=16384,X=[],k,G,K=-1,H=arguments.length;if(!H)return"";for(var It="";++K<H;){var $=Number(arguments[K]);if(!isFinite($)||$<0||$>1114111||u($)!==$)throw RangeError("Invalid code point: "+$);$<=65535?X.push($):($-=65536,k=($>>10)+55296,G=$%1024+56320,X.push(k,G)),(K+1===H||X.length>b)&&(It+=h.apply(null,X),X.length=0)}return It};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:_,configurable:!0,writable:!0}):String.fromCodePoint=_})()})(typeof Zt>"u"?Zt.sax={}:Zt)});var Vi=B((vo,xe)=>{"use strict";var Ct=typeof Reflect=="object"?Reflect:null,vi=Ct&&typeof Ct.apply=="function"?Ct.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Jt;Ct&&typeof Ct.ownKeys=="function"?Jt=Ct.ownKeys:Object.getOwnPropertySymbols?Jt=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Jt=function(t){return Object.getOwnPropertyNames(t)};function oo(e){console&&console.warn&&console.warn(e)}var Si=Number.isNaN||function(t){return t!==t};function j(){j.init.call(this)}xe.exports=j;xe.exports.once=co;j.EventEmitter=j;j.prototype._events=void 0;j.prototype._eventsCount=0;j.prototype._maxListeners=void 0;var Fi=10;function te(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(j,"defaultMaxListeners",{enumerable:!0,get:function(){return Fi},set:function(e){if(typeof e!="number"||e<0||Si(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Fi=e}});j.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};j.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Si(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Bi(e){return e._maxListeners===void 0?j.defaultMaxListeners:e._maxListeners}j.prototype.getMaxListeners=function(){return Bi(this)};j.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",s=this._events;if(s!==void 0)i=i&&s.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var c=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw c.context=o,c}var p=s[t];if(p===void 0)return!1;if(typeof p=="function")vi(p,this,r);else for(var d=p.length,I=ji(p,d),n=0;n<d;++n)vi(I[n],this,r);return!0};function Ri(e,t,r,n){var i,s,o;if(te(r),s=e._events,s===void 0?(s=e._events=Object.create(null),e._eventsCount=0):(s.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),o=s[t]),o===void 0)o=s[t]=r,++e._eventsCount;else if(typeof o=="function"?o=s[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=Bi(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,oo(c)}return e}j.prototype.addListener=function(t,r){return Ri(this,t,r,!1)};j.prototype.on=j.prototype.addListener;j.prototype.prependListener=function(t,r){return Ri(this,t,r,!0)};function so(){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 Ui(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=so.bind(n);return i.listener=r,n.wrapFn=i,i}j.prototype.once=function(t,r){return te(r),this.on(t,Ui(this,t,r)),this};j.prototype.prependOnceListener=function(t,r){return te(r),this.prependListener(t,Ui(this,t,r)),this};j.prototype.removeListener=function(t,r){var n,i,s,o,c;if(te(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){c=n[o].listener,s=o;break}if(s<0)return this;s===0?n.shift():uo(n,s),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,c||r)}return this};j.prototype.off=j.prototype.removeListener;j.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var s=Object.keys(n),o;for(i=0;i<s.length;++i)o=s[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function qi(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?ao(i):ji(i,i.length)}j.prototype.listeners=function(t){return qi(this,t,!0)};j.prototype.rawListeners=function(t){return qi(this,t,!1)};j.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Xi.call(e,t)};j.prototype.listenerCount=Xi;function Xi(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}j.prototype.eventNames=function(){return this._eventsCount>0?Jt(this._events):[]};function ji(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function uo(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function ao(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function co(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,s),n(o)}function s(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}ki(e,t,s,{once:!0}),t!=="error"&&lo(e,i,{once:!0})})}function lo(e,t,r){typeof e.on=="function"&&ki(e,"error",t,r)}function ki(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(s){n.once&&e.removeEventListener(t,i),r(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var Wi=B(Oe=>{(function(){"use strict";Oe.stripBOM=function(e){return e[0]==="\uFEFF"?e.substring(1):e}}).call(Oe)});var Ce=B(Et=>{(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/),Et.normalize=function(t){return t.toLowerCase()},Et.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Et.stripPrefix=function(t){return t.replace(e,"")},Et.parseNumbers=function(t){return isNaN(t)||(t=t%1===0?parseInt(t,10):parseFloat(t)),t},Et.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t=t.toLowerCase()==="true"),t}}).call(Et)});var Yi=B(Gi=>{Gi.every=function(e){return new Ae(e)};var ct={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};for(Tt in ct)Tt==="millisecond"?ct.ms=ct[Tt]:ct[Tt.charAt(0)]=ct[Tt],ct[Tt+"s"]=ct[Tt];var Tt;function Ae(e){this.count=0;var t=ho(e);t&&(this.time=Number(t[0])*ct[t[1]],this.type=t[1])}Ae.prototype.do=function(e){this.time&&(this.interval=setInterval(r,this.time));var t=this;function r(){t.count++,e.call(t)}return this};Ae.prototype.stop=function(){return this.interval&&(clearInterval(this.interval),delete this.interval),this};var fo=/^\s*(\d+(?:\.\d+)?)\s*([a-z]+)\s*$/;function ho(e){var t=e.match(fo);return t&&ct[t[2]]?t.slice(1):null}});var $i=B(lt=>{(function(){"use strict";var e,t,r,n,i,s,o,c,p,d=function(T,g){return function(){return T.apply(g,arguments)}},I=function(T,g){for(var E in g)D.call(g,E)&&(T[E]=g[E]);function N(){this.constructor=T}return N.prototype=g.prototype,T.prototype=new N,T.__super__=g.prototype,T},D={}.hasOwnProperty;c=Pi(),n=Vi(),e=Wi(),o=Ce(),p=Yi().setImmediate,t=vt().defaults,i=function(T){return typeof T=="object"&&T!=null&&Object.keys(T).length===0},s=function(T,g,E){var N,v,M;for(N=0,v=T.length;N<v;N++)M=T[N],g=M(g,E);return g},r=function(T,g,E){var N;return N=Object.create(null),N.value=E,N.writable=!0,N.enumerable=!0,N.configurable=!0,Object.defineProperty(T,g,N)},lt.Parser=(function(T){I(g,T);function g(E){this.parseStringPromise=d(this.parseStringPromise,this),this.parseString=d(this.parseString,this),this.reset=d(this.reset,this),this.assignOrPush=d(this.assignOrPush,this),this.processAsync=d(this.processAsync,this);var N,v,M;if(!(this instanceof lt.Parser))return new lt.Parser(E);this.options={},v=t["0.2"];for(N in v)D.call(v,N)&&(M=v[N],this.options[N]=M);for(N in E)D.call(E,N)&&(M=E[N],this.options[N]=M);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(o.normalize)),this.reset()}return g.prototype.processAsync=function(){var E,N;try{return this.remaining.length<=this.options.chunkSize?(E=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(E),this.saxParser.close()):(E=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(E),p(this.processAsync))}catch(v){if(N=v,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(N)}},g.prototype.assignOrPush=function(E,N,v){return N in E?(E[N]instanceof Array||r(E,N,[E[N]]),E[N].push(v)):this.options.explicitArray?r(E,N,[v]):r(E,N,v)},g.prototype.reset=function(){var E,N,v,M;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(function(O){return function(m){if(O.saxParser.resume(),!O.saxParser.errThrown)return O.saxParser.errThrown=!0,O.emit("error",m)}})(this),this.saxParser.onend=(function(O){return function(){if(!O.saxParser.ended)return O.saxParser.ended=!0,O.emit("end",O.resultObject)}})(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,M=[],E=this.options.attrkey,N=this.options.charkey,this.saxParser.onopentag=(function(O){return function(m){var l,a,y,C,f;if(y={},y[N]="",!O.options.ignoreAttrs){f=m.attributes;for(l in f)D.call(f,l)&&(!(E in y)&&!O.options.mergeAttrs&&(y[E]={}),a=O.options.attrValueProcessors?s(O.options.attrValueProcessors,m.attributes[l],l):m.attributes[l],C=O.options.attrNameProcessors?s(O.options.attrNameProcessors,l):l,O.options.mergeAttrs?O.assignOrPush(y,C,a):r(y[E],C,a))}return y["#name"]=O.options.tagNameProcessors?s(O.options.tagNameProcessors,m.name):m.name,O.options.xmlns&&(y[O.options.xmlnskey]={uri:m.uri,local:m.local}),M.push(y)}})(this),this.saxParser.onclosetag=(function(O){return function(){var m,l,a,y,C,f,A,w,x,P;if(f=M.pop(),C=f["#name"],(!O.options.explicitChildren||!O.options.preserveChildrenOrder)&&delete f["#name"],f.cdata===!0&&(m=f.cdata,delete f.cdata),x=M[M.length-1],f[N].match(/^\s*$/)&&!m?(l=f[N],delete f[N]):(O.options.trim&&(f[N]=f[N].trim()),O.options.normalize&&(f[N]=f[N].replace(/\s{2,}/g," ").trim()),f[N]=O.options.valueProcessors?s(O.options.valueProcessors,f[N],C):f[N],Object.keys(f).length===1&&N in f&&!O.EXPLICIT_CHARKEY&&(f=f[N])),i(f)&&(typeof O.options.emptyTag=="function"?f=O.options.emptyTag():f=O.options.emptyTag!==""?O.options.emptyTag:l),O.options.validator!=null&&(P="/"+(function(){var F,R,U;for(U=[],F=0,R=M.length;F<R;F++)y=M[F],U.push(y["#name"]);return U})().concat(C).join("/"),(function(){var F;try{return f=O.options.validator(P,x&&x[C],f)}catch(R){return F=R,O.emit("error",F)}})()),O.options.explicitChildren&&!O.options.mergeAttrs&&typeof f=="object"){if(!O.options.preserveChildrenOrder)y={},O.options.attrkey in f&&(y[O.options.attrkey]=f[O.options.attrkey],delete f[O.options.attrkey]),!O.options.charsAsChildren&&O.options.charkey in f&&(y[O.options.charkey]=f[O.options.charkey],delete f[O.options.charkey]),Object.getOwnPropertyNames(f).length>0&&(y[O.options.childkey]=f),f=y;else if(x){x[O.options.childkey]=x[O.options.childkey]||[],A={};for(a in f)D.call(f,a)&&r(A,a,f[a]);x[O.options.childkey].push(A),delete f["#name"],Object.keys(f).length===1&&N in f&&!O.EXPLICIT_CHARKEY&&(f=f[N])}}return M.length>0?O.assignOrPush(x,C,f):(O.options.explicitRoot&&(w=f,f={},r(f,C,w)),O.resultObject=f,O.saxParser.ended=!0,O.emit("end",O.resultObject))}})(this),v=(function(O){return function(m){var l,a;if(a=M[M.length-1],a)return a[N]+=m,O.options.explicitChildren&&O.options.preserveChildrenOrder&&O.options.charsAsChildren&&(O.options.includeWhiteChars||m.replace(/\\n/g,"").trim()!=="")&&(a[O.options.childkey]=a[O.options.childkey]||[],l={"#name":"__text__"},l[N]=m,O.options.normalize&&(l[N]=l[N].replace(/\s{2,}/g," ").trim()),a[O.options.childkey].push(l)),a}})(this),this.saxParser.ontext=v,this.saxParser.oncdata=(function(O){return function(m){var l;if(l=v(m),l)return l.cdata=!0}})(this)},g.prototype.parseString=function(E,N){var v;N!=null&&typeof N=="function"&&(this.on("end",function(M){return this.reset(),N(null,M)}),this.on("error",function(M){return this.reset(),N(M)}));try{return E=E.toString(),E.trim()===""?(this.emit("end",null),!0):(E=e.stripBOM(E),this.options.async?(this.remaining=E,p(this.processAsync),this.saxParser):this.saxParser.write(E).close())}catch(M){if(v=M,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw v}else return this.emit("error",v),this.saxParser.errThrown=!0}},g.prototype.parseStringPromise=function(E){return new Promise((function(N){return function(v,M){return N.parseString(E,function(O,m){return O?M(O):v(m)})}})(this))},g})(n),lt.parseString=function(T,g,E){var N,v,M;return E!=null?(typeof E=="function"&&(N=E),typeof g=="object"&&(v=g)):(typeof g=="function"&&(N=g),v={}),M=new lt.Parser(v),M.parseString(T,N)},lt.parseStringPromise=function(T,g){var E,N;return typeof g=="object"&&(E=g),N=new lt.Parser(E),N.parseStringPromise(T)}}).call(lt)});var Ki=B(ft=>{(function(){"use strict";var e,t,r,n,i=function(o,c){for(var p in c)s.call(c,p)&&(o[p]=c[p]);function d(){this.constructor=o}return d.prototype=c.prototype,o.prototype=new d,o.__super__=c.prototype,o},s={}.hasOwnProperty;t=vt(),e=Jr(),r=$i(),n=Ce(),ft.defaults=t.defaults,ft.processors=n,ft.ValidationError=(function(o){i(c,o);function c(p){this.message=p}return c})(Error),ft.Builder=e.Builder,ft.Parser=r.Parser,ft.parseString=r.parseString,ft.parseStringPromise=r.parseStringPromise}).call(ft)});var _e=hn(Ki()),tn=8e3;self.onmessage=async e=>{let{sourceType:t}=e.data;try{let r;if(t==="wms"){let{url:n,options:i}=e.data;r=await po(n,i)}else if(t==="wmts"){let{url:n,options:i}=e.data;r=await mo(n,i)}else r=null;self.postMessage(r)}catch{self.postMessage(null)}};var po=async(e,t)=>{let r=e+"?request=getcapabilities&service=wms",n=new AbortController,i=setTimeout(()=>n.abort(),tn);try{let s=await fetch(r,{signal:n.signal});if(clearTimeout(i),!s.ok)throw new Error(`(${s.status}) Error fetching capabilities.. ${s.statusText}`);let o=await s.text();return await yo(o,r,t)}catch(s){throw s}},yo=async(e,t,r)=>{let n=0,i=(d,I,D=null,T=0)=>{if(n>=r.maxNodes||T>r.maxDepth)return;n+=1;let g={name:d.Name?Q(d.Name[0]):"",description:d.Abstract?Q(d.Abstract[0]):"",selected:!1,parent:D,time:null};if(d.Title&&(g.title=Q(d.Title[0])),Array.isArray(d.Dimension)){for(let E of d.Dimension)if(E.$?.name.toLowerCase()==="time"&&E.$?.units==="ISO8601"){g.time=Object.assign({current:E.$?.default??null},en(E._,E.$?.default));break}}d.Layer&&(g.children=[],d.Layer.forEach(E=>i(E,g.children,g,T+1))),I.push(g)};if(e.indexOf("<Capability")===-1)throw new Error("Error: Invalid response received!");let s=await(0,_e.parseStringPromise)(e);if(!s.WMS_Capabilities&&!s.WMT_MS_Capabilities)throw new Error("Error: No Capabilities found!");let o=s.WMS_Capabilities?s.WMS_Capabilities:s.WMT_MS_Capabilities?s.WMT_MS_Capabilities:void 0;if(!o?.Capability[0].Layer)throw new Error("Error: No layer information found!");let c={name:"",description:"",type:"WMS",url:t,layers:[]};if(et(o?.Service)){let d=o?.Service[0];c.name=et(d.Title)?Q(d.Title[0]):et(d.Name)?Q(d.Name[0]):"WMS",c.description=et(d.Abstract)?Q(d.Abstract[0]):""}let p=[];return o.Capability[0].Layer.forEach(d=>{i(d,p)}),p.sort((d,I)=>d.name<I.name?-1:1),c.layers=p,c},mo=async(e,t)=>{let r=e+"?request=GetCapabilities&service=wmts",n=new AbortController,i=setTimeout(()=>n.abort(),tn);try{let s=await fetch(r,{signal:n.signal});if(clearTimeout(i),!s.ok)throw new Error(`(${s.status}) Error fetching capabilities.. ${s.statusText}`);let o=await s.text();return await go(o,r,t)}catch(s){throw s}},go=async(e,t,r)=>{let n=c=>{if(!et(c["ows:Identifier"]))return null;let p={name:et(c["ows:Title"])?Q(c["ows:Title"][0]):"",description:et(c["ows:Abstract"])?Q(c["ows:Abstract"][0]):"",id:Q(c["ows:Identifier"][0])};if(et(c["ows:WGS84BoundingBox"])&&(p.bounds=[Number(c["ows:WGS84BoundingBox"][0]["ows:LowerCorner"][0].split(" ")[0]),Number(c["ows:WGS84BoundingBox"][0]["ows:LowerCorner"][0].split(" ")[1]),Number(c["ows:WGS84BoundingBox"][0]["ows:UpperCorner"][0].split(" ")[0]),Number(c["ows:WGS84BoundingBox"][0]["ows:UpperCorner"][0].split(" ")[1])]),et(c.Format)){let d=Q(c.Format[0]);p.format=d.indexOf("jpg")!==-1?"jpg":"png"}else p.format="png";return et(c.Dimension)&&c.Dimension.forEach(d=>{Q(d["ows:Identifier"][0]).toLowerCase()==="time"&&(p.time=Object.assign({current:Dt(Q(d.Default[0]))??null},en(Q(d.Value),Q(d.Default[0]))))}),p};if(e.indexOf("<Capabilities")===-1)throw new Error("Error: Invalid response received!");let i=await(0,_e.parseStringPromise)(e);if(!et(i.Capabilities?.Contents))throw new Error("Error: No Capabilities found!");if(!et(i.Capabilities.Contents[0].Layer))throw new Error("Error: No layer information found!");let s={name:"",description:"",type:"WMTS",url:t,layers:[]},o=0;for(let c of i.Capabilities.Contents[0].Layer){if(o>=r.maxNodes)break;let p=n(c);p&&s.layers.push(p),o++}return s.layers.sort((c,p)=>c.name<p.name?-1:1),s},et=e=>Array.isArray(e)&&e.length!==0,Q=e=>e._??e,Le=e=>{let t=/^P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/,r=e.match(t);return r?{years:parseInt(r[1]??"0"),months:parseInt(r[2]??"0"),weeks:parseInt(r[3]??"0"),days:parseInt(r[4]??"0"),hours:parseInt(r[5]??"0"),minutes:parseInt(r[6]??"0"),seconds:parseFloat(r[7]??"0")}:{years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0}},wo=e=>{let t=Le(e);return t.weeks*(3600*1e3*24*7)+t.days*(3600*1e3*24)+t.hours*(3600*1e3)+t.minutes*(60*1e3)+t.seconds*1e3},Hi=(e,t,r)=>{let n={y:new Date(e).getFullYear(),m:new Date(e).getMonth(),d:new Date(e).getDate()},i={y:r?n.y+t.years:n.y-t.years,m:r?n.m+t.months:n.m-t.months,d:r?n.d+t.days:n.d-t.days};if(t.weeks){let c=t.weeks*7;i.d=r?i.d+c:i.d-c}let s=new Date(e);s.setFullYear(i.y,i.m,i.d);let o=t.hours*(1e3*3600)+t.minutes*(1e3*60)+t.seconds*1e3;return o=r?o:0-o,s.setTime(s.getTime()+o),s.toISOString()},zi=e=>e.startsWith("P"),Qi=e=>!e.includes("-")&&!e.includes(":"),Zi=e=>e.split("-").length===2&&!e.includes("T"),Eo=e=>e.split("-").length===3&&!e.includes("T"),To=e=>e.length===8&&!e.startsWith("P"),Do=e=>e.includes("T")&&!e.includes(":"),Ji=e=>e.includes("/"),Dt=e=>{try{return e.toLocaleLowerCase()==="current"||e.toLocaleLowerCase()==="present"?new Date().toISOString():(To(e)?e=`${e.slice(0,4)}-${e.slice(4,6)}-${e.slice(6)}`:Do(e)&&(e+=":00:00.000Z"),new Date(e).toISOString())}catch{throw new Error(`Unhandled Date format (${e})`)}},en=(e,t)=>{let r=i=>{if(Qi(i))return`${i}-12-31T23:59:59.999Z`;if(Zi(i)){let s=i.split("-").map(c=>parseInt(c)),o=new Date(s[0],s[1],0).getDate();return`${i}-${o}T23:59:59.999Z`}else return Eo(i)?`${i}T23:59:59.999Z`:Dt(i)},n=i=>{let s={from:null,to:null};if((i[0].toLocaleLowerCase()==="present"||i[0].toLocaleLowerCase()==="current")&&(i[0]=new Date().toISOString()),(i[1].toLocaleLowerCase()==="present"||i[1].toLocaleLowerCase()==="current")&&(i[1]=new Date().toISOString()),zi(i[0])?s.from=Hi(i[1],Le(i[0]),!1):s.from=Dt(i[0]),zi(i[1])?s.to=Hi(i[0],Le(i[1]),!0):s.to=r(i[1]),i.length===3){let o=wo(i[2]);o&&(s.interval=o)}return s};try{if(Array.isArray(e)){let i=[];if(e.forEach(o=>{if(Ji(o)){let c=n(o.split("/"));c&&i.push(c)}}),i.length){let o=new Date(t).valueOf();for(let c=0;c<i.length;c++)if(o>=new Date(i[c].from).valueOf()&&o<=new Date(i[c].to).valueOf())return i[c];return i[i.length-1]}let s=e.map(o=>Dt(o));if(s.length>1)return{from:s[0]??null,to:s[s.length-1]??null,values:s};e=s[0]}if(e.includes(",")){let i=e.split(",").map(s=>Dt(s));return{from:i[0]??null,to:i[i.length-1]??null,values:i}}else if(typeof e=="string"){if(Ji(e))return n(e.split("/"));if(Qi(e)){let i=new Date(e),s=i.getFullYear();return i.setFullYear(s+1),{from:Dt(e),to:i.toISOString()}}else if(Zi(e)){let i=new Date(e),s=new Date(i.getFullYear(),i.getMonth()+1,0).getDate();return i.setFullYear(i.getFullYear(),i.getMonth(),s),i.setUTCHours(23),i.setUTCMinutes(59),i.setUTCSeconds(59,999),{from:Dt(e),to:i.toISOString()}}else return{from:null,to:null}}}catch{return{from:null,to:null}}};
|