@expo/repack-app 0.2.9 → 0.2.11

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/dist/index.js CHANGED
@@ -1,35 +1,37 @@
1
- "use strict";var Ng=Object.create;var as=Object.defineProperty;var Sg=Object.getOwnPropertyDescriptor;var Fg=Object.getOwnPropertyNames;var Mg=Object.getPrototypeOf,Eg=Object.prototype.hasOwnProperty;var S=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports),Vg=(t,o)=>{for(var e in o)as(t,e,{get:o[e],enumerable:!0})},jn=(t,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of Fg(o))!Eg.call(t,i)&&i!==e&&as(t,i,{get:()=>o[i],enumerable:!(s=Sg(o,i))||s.enumerable});return t};var P=(t,o,e)=>(e=t!=null?Ng(Mg(t)):{},jn(o||!t||!t.__esModule?as(e,"default",{value:t,enumerable:!0}):e,t)),Xg=t=>jn(as({},"__esModule",{value:!0}),t);var Hi=S((th,$i)=>{var ls=process||{},Rn=ls.argv||[],cs=ls.env||{},Yg=!(cs.NO_COLOR||Rn.includes("--no-color"))&&(!!cs.FORCE_COLOR||Rn.includes("--color")||ls.platform==="win32"||(ls.stdout||{}).isTTY&&cs.TERM!=="dumb"||!!cs.CI),Ig=(t,o,e=t)=>s=>{let i=""+s,r=i.indexOf(o,t.length);return~r?t+Zg(i,o,e,r)+o:t+i+o},Zg=(t,o,e,s)=>{let i="",r=0;do i+=t.substring(r,s)+e,r=s+o.length,s=t.indexOf(o,r);while(~s);return i+t.substring(r)},Jn=(t=Yg)=>{let o=t?Ig:()=>String;return{isColorSupported:t,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}};$i.exports=Jn();$i.exports.createColors=Jn});var us=S(or=>{(function(){or.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(or)});var Zo=S((Bn,lt)=>{(function(){var t,o,e,s,i,r,n,a=[].slice,c={}.hasOwnProperty;t=function(){var u,d,x,m,w,z;if(z=arguments[0],w=2<=arguments.length?a.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(u=0,x=w.length;u<x;u++)if(m=w[u],m!=null)for(d in m)c.call(m,d)&&(z[d]=m[d]);return z},i=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},r=function(u){var d;return!!u&&((d=typeof u)=="function"||d==="object")},e=function(u){return i(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},s=function(u){var d;if(e(u))return!u.length;for(d in u)if(c.call(u,d))return!1;return!0},n=function(u){var d,x;return r(u)&&(x=Object.getPrototypeOf(u))&&(d=x.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},o=function(u){return i(u.valueOf)?u.valueOf():u},lt.exports.assign=t,lt.exports.isFunction=i,lt.exports.isObject=r,lt.exports.isArray=e,lt.exports.isEmpty=s,lt.exports.isPlainObject=n,lt.exports.getValue=o}).call(Bn)});var tr=S((Dn,$n)=>{(function(){var t;$n.exports=t=function(){function o(){}return o.prototype.hasFeature=function(e,s){return!0},o.prototype.createDocumentType=function(e,s,i){throw new Error("This DOM method is not implemented.")},o.prototype.createDocument=function(e,s,i){throw new Error("This DOM method is not implemented.")},o.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},o.prototype.getFeature=function(e,s){throw new Error("This DOM method is not implemented.")},o}()}).call(Dn)});var ta=S((Hn,oa)=>{(function(){var t;oa.exports=t=function(){function o(){}return o.prototype.handleError=function(e){throw new Error(e)},o}()}).call(Hn)});var ia=S((ea,sa)=>{(function(){var t;sa.exports=t=function(){function o(e){this.arr=e||[]}return Object.defineProperty(o.prototype,"length",{get:function(){return this.arr.length}}),o.prototype.item=function(e){return this.arr[e]||null},o.prototype.contains=function(e){return this.arr.indexOf(e)!==-1},o}()}).call(ea)});var aa=S((ra,na)=>{(function(){var t,o,e;o=ta(),e=ia(),na.exports=t=function(){function s(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new o,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(s.prototype,"parameterNames",{get:function(){return new e(Object.keys(this.defaultParams))}}),s.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},s.prototype.canSetParameter=function(i,r){return!0},s.prototype.setParameter=function(i,r){return r!=null?this.params[i]=r:delete this.params[i]},s}()}).call(ra)});var U=S((ca,la)=>{(function(){la.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(ca)});var er=S((ua,_a)=>{(function(){var t,o,e;t=U(),e=ho(),_a.exports=o=function(){function s(i,r,n){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),r==null)throw new Error("Missing attribute name. "+this.debugInfo(r));this.name=this.stringify.name(r),this.value=this.stringify.attValue(n),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(s.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(s.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"specified",{get:function(){return!0}}),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(i){return this.options.writer.attribute(this,this.options.writer.filterOptions(i))},s.prototype.debugInfo=function(i){return i=i||this.name,i==null?"parent: <"+this.parent.name+">":"attribute: {"+i+"}, parent: <"+this.parent.name+">"},s.prototype.isEqualNode=function(i){return!(i.namespaceURI!==this.namespaceURI||i.prefix!==this.prefix||i.localName!==this.localName||i.value!==this.value)},s}()}).call(ua)});var _s=S((xa,ma)=>{(function(){var t;ma.exports=t=function(){function o(e){this.nodes=e}return Object.defineProperty(o.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),o.prototype.clone=function(){return this.nodes=null},o.prototype.getNamedItem=function(e){return this.nodes[e]},o.prototype.setNamedItem=function(e){var s;return s=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,s||null},o.prototype.removeNamedItem=function(e){var s;return s=this.nodes[e],delete this.nodes[e],s||null},o.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},o.prototype.getNamedItemNS=function(e,s){throw new Error("This DOM method is not implemented.")},o.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},o.prototype.removeNamedItemNS=function(e,s){throw new Error("This DOM method is not implemented.")},o}()}).call(xa)});var xs=S((ga,Oa)=>{(function(){var t,o,e,s,i,r,n,a,c,u=function(x,m){for(var w in m)d.call(m,w)&&(x[w]=m[w]);function z(){this.constructor=x}return z.prototype=m.prototype,x.prototype=new z,x.__super__=m.prototype,x},d={}.hasOwnProperty;c=Zo(),a=c.isObject,n=c.isFunction,r=c.getValue,i=ho(),t=U(),o=er(),s=_s(),Oa.exports=e=function(x){u(m,x);function m(w,z,k){var p,W,q,O;if(m.__super__.constructor.call(this,w),z==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(z),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,k!=null&&this.attribute(k),w.type===t.Document&&(this.isRoot=!0,this.documentObject=w,w.rootObject=this,w.children)){for(O=w.children,W=0,q=O.length;W<q;W++)if(p=O[W],p.type===t.DocType){p.name=this.name;break}}}return Object.defineProperty(m.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(m.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(m.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(m.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(m.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(m.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(m.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(m.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new s(this.attribs)),this.attributeMap}}),m.prototype.clone=function(){var w,z,k,p;k=Object.create(this),k.isRoot&&(k.documentObject=null),k.attribs={},p=this.attribs;for(z in p)d.call(p,z)&&(w=p[z],k.attribs[z]=w.clone());return k.children=[],this.children.forEach(function(W){var q;return q=W.clone(),q.parent=k,k.children.push(q)}),k},m.prototype.attribute=function(w,z){var k,p;if(w!=null&&(w=r(w)),a(w))for(k in w)d.call(w,k)&&(p=w[k],this.attribute(k,p));else n(z)&&(z=z.apply()),this.options.keepNullAttributes&&z==null?this.attribs[w]=new o(this,w,""):z!=null&&(this.attribs[w]=new o(this,w,z));return this},m.prototype.removeAttribute=function(w){var z,k,p;if(w==null)throw new Error("Missing attribute name. "+this.debugInfo());if(w=r(w),Array.isArray(w))for(k=0,p=w.length;k<p;k++)z=w[k],delete this.attribs[z];else delete this.attribs[w];return this},m.prototype.toString=function(w){return this.options.writer.element(this,this.options.writer.filterOptions(w))},m.prototype.att=function(w,z){return this.attribute(w,z)},m.prototype.a=function(w,z){return this.attribute(w,z)},m.prototype.getAttribute=function(w){return this.attribs.hasOwnProperty(w)?this.attribs[w].value:null},m.prototype.setAttribute=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getAttributeNode=function(w){return this.attribs.hasOwnProperty(w)?this.attribs[w]:null},m.prototype.setAttributeNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.removeAttributeNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getAttributeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setAttributeNS=function(w,z,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.removeAttributeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getAttributeNodeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setAttributeNodeNS=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagNameNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.hasAttribute=function(w){return this.attribs.hasOwnProperty(w)},m.prototype.hasAttributeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setIdAttribute=function(w,z){return this.attribs.hasOwnProperty(w)?this.attribs[w].isId:z},m.prototype.setIdAttributeNS=function(w,z,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setIdAttributeNode=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagNameNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByClassName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.isEqualNode=function(w){var z,k,p;if(!m.__super__.isEqualNode.apply(this,arguments).isEqualNode(w)||w.namespaceURI!==this.namespaceURI||w.prefix!==this.prefix||w.localName!==this.localName||w.attribs.length!==this.attribs.length)return!1;for(z=k=0,p=this.attribs.length-1;0<=p?k<=p:k>=p;z=0<=p?++k:--k)if(!this.attribs[z].isEqualNode(w.attribs[z]))return!1;return!0},m}(i)}).call(ga)});var he=S((da,wa)=>{(function(){var t,o,e=function(i,r){for(var n in r)s.call(r,n)&&(i[n]=r[n]);function a(){this.constructor=i}return a.prototype=r.prototype,i.prototype=new a,i.__super__=r.prototype,i},s={}.hasOwnProperty;o=ho(),wa.exports=t=function(i){e(r,i);function r(n){r.__super__.constructor.call(this,n),this.value=""}return Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.substringData=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.appendData=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.insertData=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.deleteData=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceData=function(n,a,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.isEqualNode=function(n){return!(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)||n.data!==this.data)},r}(o)}).call(da)});var ms=S((ya,ha)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),e=he(),ha.exports=o=function(r){s(n,r);function n(a,c){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(c)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},n}(e)}).call(ya)});var gs=S((fa,za)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),o=he(),za.exports=e=function(r){s(n,r);function n(a,c){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(c)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},n}(o)}).call(fa)});var Os=S((ka,Ka)=>{(function(){var t,o,e,s,i=function(n,a){for(var c in a)r.call(a,c)&&(n[c]=a[c]);function u(){this.constructor=n}return u.prototype=a.prototype,n.prototype=new u,n.__super__=a.prototype,n},r={}.hasOwnProperty;s=Zo().isObject,e=ho(),t=U(),Ka.exports=o=function(n){i(a,n);function a(c,u,d,x){var m;a.__super__.constructor.call(this,c),s(u)&&(m=u,u=m.version,d=m.encoding,x=m.standalone),u||(u="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(u),d!=null&&(this.encoding=this.stringify.xmlEncoding(d)),x!=null&&(this.standalone=this.stringify.xmlStandalone(x))}return a.prototype.toString=function(c){return this.options.writer.declaration(this,this.options.writer.filterOptions(c))},a}(e)}).call(ka)});var ds=S((Ga,ba)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;e=ho(),t=U(),ba.exports=o=function(r){s(n,r);function n(a,c,u,d,x,m){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(u==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(c));if(!d)throw new Error("Missing DTD attribute type. "+this.debugInfo(c));if(!x)throw new Error("Missing DTD attribute default. "+this.debugInfo(c));if(x.indexOf("#")!==0&&(x="#"+x),!x.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(m&&!x.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(u),this.attributeType=this.stringify.dtdAttType(d),m&&(this.defaultValue=this.stringify.dtdAttDefault(m)),this.defaultValueType=x}return n.prototype.toString=function(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))},n}(e)}).call(Ga)});var ws=S((va,pa)=>{(function(){var t,o,e,s,i=function(n,a){for(var c in a)r.call(a,c)&&(n[c]=a[c]);function u(){this.constructor=n}return u.prototype=a.prototype,n.prototype=new u,n.__super__=a.prototype,n},r={}.hasOwnProperty;s=Zo().isObject,e=ho(),t=U(),pa.exports=o=function(n){i(a,n);function a(c,u,d,x){if(a.__super__.constructor.call(this,c),d==null)throw new Error("Missing DTD entity name. "+this.debugInfo(d));if(x==null)throw new Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!u,this.name=this.stringify.name(d),this.type=t.EntityDeclaration,!s(x))this.value=this.stringify.dtdEntityValue(x),this.internal=!0;else{if(!x.pubID&&!x.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(x.pubID&&!x.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,x.pubID!=null&&(this.pubID=this.stringify.dtdPubID(x.pubID)),x.sysID!=null&&(this.sysID=this.stringify.dtdSysID(x.sysID)),x.nData!=null&&(this.nData=this.stringify.dtdNData(x.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return null}}),a.prototype.toString=function(c){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(c))},a}(e)}).call(va)});var ys=S((Wa,qa)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;e=ho(),t=U(),qa.exports=o=function(r){s(n,r);function n(a,c,u){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());u||(u="(#PCDATA)"),Array.isArray(u)&&(u="("+u.join(",")+")"),this.name=this.stringify.name(c),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(u)}return n.prototype.toString=function(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))},n}(e)}).call(Wa)});var hs=S((Ca,Na)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;e=ho(),t=U(),Na.exports=o=function(r){s(n,r);function n(a,c,u){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing DTD notation name. "+this.debugInfo(c));if(!u.pubID&&!u.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=t.NotationDeclaration,u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID))}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),n.prototype.toString=function(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))},n}(e)}).call(Ca)});var fs=S((Sa,Fa)=>{(function(){var t,o,e,s,i,r,n,a,c,u=function(x,m){for(var w in m)d.call(m,w)&&(x[w]=m[w]);function z(){this.constructor=x}return z.prototype=m.prototype,x.prototype=new z,x.__super__=m.prototype,x},d={}.hasOwnProperty;c=Zo().isObject,a=ho(),t=U(),o=ds(),s=ws(),e=ys(),i=hs(),n=_s(),Fa.exports=r=function(x){u(m,x);function m(w,z,k){var p,W,q,O,l,g;if(m.__super__.constructor.call(this,w),this.type=t.DocType,w.children){for(O=w.children,W=0,q=O.length;W<q;W++)if(p=O[W],p.type===t.Element){this.name=p.name;break}}this.documentObject=w,c(z)&&(l=z,z=l.pubID,k=l.sysID),k==null&&(g=[z,k],k=g[0],z=g[1]),z!=null&&(this.pubID=this.stringify.dtdPubID(z)),k!=null&&(this.sysID=this.stringify.dtdSysID(k))}return Object.defineProperty(m.prototype,"entities",{get:function(){var w,z,k,p,W;for(p={},W=this.children,z=0,k=W.length;z<k;z++)w=W[z],w.type===t.EntityDeclaration&&!w.pe&&(p[w.name]=w);return new n(p)}}),Object.defineProperty(m.prototype,"notations",{get:function(){var w,z,k,p,W;for(p={},W=this.children,z=0,k=W.length;z<k;z++)w=W[z],w.type===t.NotationDeclaration&&(p[w.name]=w);return new n(p)}}),Object.defineProperty(m.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(m.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(m.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),m.prototype.element=function(w,z){var k;return k=new e(this,w,z),this.children.push(k),this},m.prototype.attList=function(w,z,k,p,W){var q;return q=new o(this,w,z,k,p,W),this.children.push(q),this},m.prototype.entity=function(w,z){var k;return k=new s(this,!1,w,z),this.children.push(k),this},m.prototype.pEntity=function(w,z){var k;return k=new s(this,!0,w,z),this.children.push(k),this},m.prototype.notation=function(w,z){var k;return k=new i(this,w,z),this.children.push(k),this},m.prototype.toString=function(w){return this.options.writer.docType(this,this.options.writer.filterOptions(w))},m.prototype.ele=function(w,z){return this.element(w,z)},m.prototype.att=function(w,z,k,p,W){return this.attList(w,z,k,p,W)},m.prototype.ent=function(w,z){return this.entity(w,z)},m.prototype.pent=function(w,z){return this.pEntity(w,z)},m.prototype.not=function(w,z){return this.notation(w,z)},m.prototype.up=function(){return this.root()||this.documentObject},m.prototype.isEqualNode=function(w){return!(!m.__super__.isEqualNode.apply(this,arguments).isEqualNode(w)||w.name!==this.name||w.publicId!==this.publicId||w.systemId!==this.systemId)},m}(a)}).call(Sa)});var zs=S((Ma,Ea)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),o=ho(),Ea.exports=e=function(r){s(n,r);function n(a,c){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(c)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},n}(o)}).call(Ma)});var ks=S((Va,Xa)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),o=he(),Xa.exports=e=function(r){s(n,r);function n(a,c){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(c)}return Object.defineProperty(n.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(n.prototype,"wholeText",{get:function(){var a,c,u;for(u="",c=this.previousSibling;c;)u=c.data+u,c=c.previousSibling;for(u+=this.data,a=this.nextSibling;a;)u=u+a.data,a=a.nextSibling;return u}}),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},n.prototype.splitText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.replaceWholeText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(o)}).call(Va)});var Ks=S((Ya,Ia)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),o=he(),Ia.exports=e=function(r){s(n,r);function n(a,c,u){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,u&&(this.value=this.stringify.insValue(u))}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},n.prototype.isEqualNode=function(a){return!(!n.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.target!==this.target)},n}(o)}).call(Ya)});var sr=S((Za,Pa)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;e=ho(),t=U(),Pa.exports=o=function(r){s(n,r);function n(a){n.__super__.constructor.call(this,a),this.type=t.Dummy}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return""},n}(e)}).call(Za)});var Ua=S((La,Ta)=>{(function(){var t;Ta.exports=t=function(){function o(e){this.nodes=e}return Object.defineProperty(o.prototype,"length",{get:function(){return this.nodes.length||0}}),o.prototype.clone=function(){return this.nodes=null},o.prototype.item=function(e){return this.nodes[e]||null},o}()}).call(La)});var ja=S((Aa,Qa)=>{(function(){Qa.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(Aa)});var ho=S((Ra,Ja)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,z,k,p,W,q,O={}.hasOwnProperty;q=Zo(),W=q.isObject,p=q.isFunction,k=q.isEmpty,z=q.getValue,a=null,e=null,s=null,i=null,r=null,m=null,w=null,x=null,n=null,o=null,d=null,c=null,t=null,Ja.exports=u=function(){function l(g){this.parent=g,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,a||(a=xs(),e=ms(),s=gs(),i=Os(),r=fs(),m=zs(),w=ks(),x=Ks(),n=sr(),o=U(),d=Ua(),c=_s(),t=ja())}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 d(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 g;return g=this.parent.children.indexOf(this),this.parent.children[g-1]||null}}),Object.defineProperty(l.prototype,"nextSibling",{get:function(){var g;return g=this.parent.children.indexOf(this),this.parent.children[g+1]||null}}),Object.defineProperty(l.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(l.prototype,"textContent",{get:function(){var g,_,G,y,h;if(this.nodeType===o.Element||this.nodeType===o.DocumentFragment){for(h="",y=this.children,_=0,G=y.length;_<G;_++)g=y[_],g.textContent&&(h+=g.textContent);return h}else return null},set:function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l.prototype.setParent=function(g){var _,G,y,h,f;for(this.parent=g,g&&(this.options=g.options,this.stringify=g.stringify),h=this.children,f=[],G=0,y=h.length;G<y;G++)_=h[G],f.push(_.setParent(this));return f},l.prototype.element=function(g,_,G){var y,h,f,v,N,F,V,I,E,X,Z;if(F=null,_===null&&G==null&&(E=[{},null],_=E[0],G=E[1]),_==null&&(_={}),_=z(_),W(_)||(X=[_,G],G=X[0],_=X[1]),g!=null&&(g=z(g)),Array.isArray(g))for(f=0,V=g.length;f<V;f++)h=g[f],F=this.element(h);else if(p(g))F=this.element(g.apply());else if(W(g)){for(N in g)if(O.call(g,N))if(Z=g[N],p(Z)&&(Z=Z.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&N.indexOf(this.stringify.convertAttKey)===0)F=this.attribute(N.substr(this.stringify.convertAttKey.length),Z);else if(!this.options.separateArrayItems&&Array.isArray(Z)&&k(Z))F=this.dummy();else if(W(Z)&&k(Z))F=this.element(N);else if(!this.options.keepNullNodes&&Z==null)F=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Z))for(v=0,I=Z.length;v<I;v++)h=Z[v],y={},y[N]=h,F=this.element(y);else W(Z)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&N.indexOf(this.stringify.convertTextKey)===0?F=this.element(Z):(F=this.element(N),F.element(Z)):F=this.element(N,Z)}else!this.options.keepNullNodes&&G===null?F=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&g.indexOf(this.stringify.convertTextKey)===0?F=this.text(G):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&g.indexOf(this.stringify.convertCDataKey)===0?F=this.cdata(G):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&g.indexOf(this.stringify.convertCommentKey)===0?F=this.comment(G):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&g.indexOf(this.stringify.convertRawKey)===0?F=this.raw(G):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&g.indexOf(this.stringify.convertPIKey)===0?F=this.instruction(g.substr(this.stringify.convertPIKey.length),G):F=this.node(g,_,G);if(F==null)throw new Error("Could not create any elements with: "+g+". "+this.debugInfo());return F},l.prototype.insertBefore=function(g,_,G){var y,h,f,v,N;if(g?.type)return f=g,v=_,f.setParent(this),v?(h=children.indexOf(v),N=children.splice(h),children.push(f),Array.prototype.push.apply(children,N)):children.push(f),f;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(g));return h=this.parent.children.indexOf(this),N=this.parent.children.splice(h),y=this.parent.element(g,_,G),Array.prototype.push.apply(this.parent.children,N),y},l.prototype.insertAfter=function(g,_,G){var y,h,f;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(g));return h=this.parent.children.indexOf(this),f=this.parent.children.splice(h+1),y=this.parent.element(g,_,G),Array.prototype.push.apply(this.parent.children,f),y},l.prototype.remove=function(){var g,_;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return g=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[g,g-g+1].concat(_=[])),this.parent},l.prototype.node=function(g,_,G){var y,h;return g!=null&&(g=z(g)),_||(_={}),_=z(_),W(_)||(h=[_,G],G=h[0],_=h[1]),y=new a(this,g,_),G!=null&&y.text(G),this.children.push(y),y},l.prototype.text=function(g){var _;return W(g)&&this.element(g),_=new w(this,g),this.children.push(_),this},l.prototype.cdata=function(g){var _;return _=new e(this,g),this.children.push(_),this},l.prototype.comment=function(g){var _;return _=new s(this,g),this.children.push(_),this},l.prototype.commentBefore=function(g){var _,G,y;return G=this.parent.children.indexOf(this),y=this.parent.children.splice(G),_=this.parent.comment(g),Array.prototype.push.apply(this.parent.children,y),this},l.prototype.commentAfter=function(g){var _,G,y;return G=this.parent.children.indexOf(this),y=this.parent.children.splice(G+1),_=this.parent.comment(g),Array.prototype.push.apply(this.parent.children,y),this},l.prototype.raw=function(g){var _;return _=new m(this,g),this.children.push(_),this},l.prototype.dummy=function(){var g;return g=new n(this),g},l.prototype.instruction=function(g,_){var G,y,h,f,v;if(g!=null&&(g=z(g)),_!=null&&(_=z(_)),Array.isArray(g))for(f=0,v=g.length;f<v;f++)G=g[f],this.instruction(G);else if(W(g))for(G in g)O.call(g,G)&&(y=g[G],this.instruction(G,y));else p(_)&&(_=_.apply()),h=new x(this,g,_),this.children.push(h);return this},l.prototype.instructionBefore=function(g,_){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y),G=this.parent.instruction(g,_),Array.prototype.push.apply(this.parent.children,h),this},l.prototype.instructionAfter=function(g,_){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y+1),G=this.parent.instruction(g,_),Array.prototype.push.apply(this.parent.children,h),this},l.prototype.declaration=function(g,_,G){var y,h;return y=this.document(),h=new i(y,g,_,G),y.children.length===0?y.children.unshift(h):y.children[0].type===o.Declaration?y.children[0]=h:y.children.unshift(h),y.root()||y},l.prototype.dtd=function(g,_){var G,y,h,f,v,N,F,V,I,E;for(y=this.document(),h=new r(y,g,_),I=y.children,f=v=0,F=I.length;v<F;f=++v)if(G=I[f],G.type===o.DocType)return y.children[f]=h,h;for(E=y.children,f=N=0,V=E.length;N<V;f=++N)if(G=E[f],G.isRoot)return y.children.splice(f,0,h),h;return y.children.push(h),h},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 g;for(g=this;g;){if(g.type===o.Document)return g.rootObject;if(g.isRoot)return g;g=g.parent}},l.prototype.document=function(){var g;for(g=this;g;){if(g.type===o.Document)return g;g=g.parent}},l.prototype.end=function(g){return this.document().end(g)},l.prototype.prev=function(){var g;if(g=this.parent.children.indexOf(this),g<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[g-1]},l.prototype.next=function(){var g;if(g=this.parent.children.indexOf(this),g===-1||g===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[g+1]},l.prototype.importDocument=function(g){var _;return _=g.root().clone(),_.parent=this,_.isRoot=!1,this.children.push(_),this},l.prototype.debugInfo=function(g){var _,G;return g=g||this.name,g==null&&!((_=this.parent)!=null&&_.name)?"":g==null?"parent: <"+this.parent.name+">":(G=this.parent)!=null&&G.name?"node: <"+g+">, parent: <"+this.parent.name+">":"node: <"+g+">"},l.prototype.ele=function(g,_,G){return this.element(g,_,G)},l.prototype.nod=function(g,_,G){return this.node(g,_,G)},l.prototype.txt=function(g){return this.text(g)},l.prototype.dat=function(g){return this.cdata(g)},l.prototype.com=function(g){return this.comment(g)},l.prototype.ins=function(g,_){return this.instruction(g,_)},l.prototype.doc=function(){return this.document()},l.prototype.dec=function(g,_,G){return this.declaration(g,_,G)},l.prototype.e=function(g,_,G){return this.element(g,_,G)},l.prototype.n=function(g,_,G){return this.node(g,_,G)},l.prototype.t=function(g){return this.text(g)},l.prototype.d=function(g){return this.cdata(g)},l.prototype.c=function(g){return this.comment(g)},l.prototype.r=function(g){return this.raw(g)},l.prototype.i=function(g,_){return this.instruction(g,_)},l.prototype.u=function(){return this.up()},l.prototype.importXMLBuilder=function(g){return this.importDocument(g)},l.prototype.replaceChild=function(g,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.removeChild=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.appendChild=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.hasChildNodes=function(){return this.children.length!==0},l.prototype.cloneNode=function(g){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(g,_){return!0},l.prototype.hasAttributes=function(){return this.attribs.length!==0},l.prototype.compareDocumentPosition=function(g){var _,G;return _=this,_===g?0:this.document()!==g.document()?(G=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?G|=t.Preceding:G|=t.Following,G):_.isAncestor(g)?t.Contains|t.Preceding:_.isDescendant(g)?t.Contains|t.Following:_.isPreceding(g)?t.Preceding:t.Following},l.prototype.isSameNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupPrefix=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isDefaultNamespace=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupNamespaceURI=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(g){var _,G,y;if(g.nodeType!==this.nodeType||g.children.length!==this.children.length)return!1;for(_=G=0,y=this.children.length-1;0<=y?G<=y:G>=y;_=0<=y?++G:--G)if(!this.children[_].isEqualNode(g.children[_]))return!1;return!0},l.prototype.getFeature=function(g,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setUserData=function(g,_,G){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getUserData=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.contains=function(g){return g?g===this||this.isDescendant(g):!1},l.prototype.isDescendant=function(g){var _,G,y,h,f;for(f=this.children,y=0,h=f.length;y<h;y++)if(_=f[y],g===_||(G=_.isDescendant(g),G))return!0;return!1},l.prototype.isAncestor=function(g){return g.isDescendant(this)},l.prototype.isPreceding=function(g){var _,G;return _=this.treePosition(g),G=this.treePosition(this),_===-1||G===-1?!1:_<G},l.prototype.isFollowing=function(g){var _,G;return _=this.treePosition(g),G=this.treePosition(this),_===-1||G===-1?!1:_>G},l.prototype.treePosition=function(g){var _,G;return G=0,_=!1,this.foreachTreeNode(this.document(),function(y){if(G++,!_&&y===g)return _=!0}),_?G:-1},l.prototype.foreachTreeNode=function(g,_){var G,y,h,f,v;for(g||(g=this.document()),f=g.children,y=0,h=f.length;y<h;y++){if(G=f[y],v=_(G))return v;if(v=this.foreachTreeNode(G,_),v)return v}},l}()}).call(Ra)});var ir=S((Ba,Da)=>{(function(){var t,o=function(s,i){return function(){return s.apply(i,arguments)}},e={}.hasOwnProperty;Da.exports=t=function(){function s(i){this.assertLegalName=o(this.assertLegalName,this),this.assertLegalChar=o(this.assertLegalChar,this);var r,n,a;i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),n=i.stringify||{};for(r in n)e.call(n,r)&&(a=n[r],this[r]=a)}return s.prototype.name=function(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")},s.prototype.text=function(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))},s.prototype.cdata=function(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))},s.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)},s.prototype.raw=function(i){return this.options.noValidation?i:""+i||""},s.prototype.attValue=function(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))},s.prototype.insTarget=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.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)},s.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},s.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)},s.prototype.xmlStandalone=function(i){return this.options.noValidation?i:i?"yes":"no"},s.prototype.dtdPubID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdSysID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdElementValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdAttType=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdAttDefault=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdEntityValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdNData=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.convertAttKey="@",s.prototype.convertPIKey="?",s.prototype.convertTextKey="#text",s.prototype.convertCDataKey="#cdata",s.prototype.convertCommentKey="#comment",s.prototype.convertRawKey="#raw",s.prototype.assertLegalChar=function(i){var r,n;if(this.options.noValidation)return i;if(r="",this.options.version==="1.0"){if(r=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=i.match(r))throw new Error("Invalid character in string: "+i+" at index "+n.index)}else if(this.options.version==="1.1"&&(r=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=i.match(r)))throw new Error("Invalid character in string: "+i+" at index "+n.index);return i},s.prototype.assertLegalName=function(i){var r;if(this.options.noValidation)return i;if(this.assertLegalChar(i),r=/^([: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(r))throw new Error("Invalid character in name");return i},s.prototype.textEscape=function(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},s.prototype.attEscape=function(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},s}()}).call(Ba)});var fe=S(($a,Ha)=>{(function(){Ha.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call($a)});var rr=S((oc,tc)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,z,k,p,W={}.hasOwnProperty;p=Zo().assign,t=U(),c=Os(),u=fs(),e=ms(),s=gs(),x=xs(),w=zs(),z=ks(),m=Ks(),d=sr(),i=ds(),r=ys(),n=ws(),a=hs(),o=fe(),tc.exports=k=function(){function q(O){var l,g,_;O||(O={}),this.options=O,g=O.writer||{};for(l in g)W.call(g,l)&&(_=g[l],this["_"+l]=this[l],this[l]=_)}return q.prototype.filterOptions=function(O){var l,g,_,G,y,h,f,v;return O||(O={}),O=p({},this.options,O),l={writer:this},l.pretty=O.pretty||!1,l.allowEmpty=O.allowEmpty||!1,l.indent=(g=O.indent)!=null?g:" ",l.newline=(_=O.newline)!=null?_:`
3
- `,l.offset=(G=O.offset)!=null?G:0,l.dontPrettyTextNodes=(y=(h=O.dontPrettyTextNodes)!=null?h:O.dontprettytextnodes)!=null?y:0,l.spaceBeforeSlash=(f=(v=O.spaceBeforeSlash)!=null?v:O.spacebeforeslash)!=null?f:"",l.spaceBeforeSlash===!0&&(l.spaceBeforeSlash=" "),l.suppressPrettyCount=0,l.user={},l.state=o.None,l},q.prototype.indent=function(O,l,g){var _;return!l.pretty||l.suppressPrettyCount?"":l.pretty&&(_=(g||0)+l.offset+1,_>0)?new Array(_).join(l.indent):""},q.prototype.endline=function(O,l,g){return!l.pretty||l.suppressPrettyCount?"":l.newline},q.prototype.attribute=function(O,l,g){var _;return this.openAttribute(O,l,g),_=" "+O.name+'="'+O.value+'"',this.closeAttribute(O,l,g),_},q.prototype.cdata=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<![CDATA[",l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+="]]>"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.comment=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!-- ",l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=" -->"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.declaration=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<?xml",l.state=o.InsideTag,_+=' version="'+O.version+'"',O.encoding!=null&&(_+=' encoding="'+O.encoding+'"'),O.standalone!=null&&(_+=' standalone="'+O.standalone+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+"?>",_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.docType=function(O,l,g){var _,G,y,h,f;if(g||(g=0),this.openNode(O,l,g),l.state=o.OpenTag,h=this.indent(O,l,g),h+="<!DOCTYPE "+O.root().name,O.pubID&&O.sysID?h+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(h+=' SYSTEM "'+O.sysID+'"'),O.children.length>0){for(h+=" [",h+=this.endline(O,l,g),l.state=o.InsideTag,f=O.children,G=0,y=f.length;G<y;G++)_=f[G],h+=this.writeChildNode(_,l,g+1);l.state=o.CloseTag,h+="]"}return l.state=o.CloseTag,h+=l.spaceBeforeSlash+">",h+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),h},q.prototype.element=function(O,l,g){var _,G,y,h,f,v,N,F,V,I,E,X,Z,Go;g||(g=0),I=!1,E="",this.openNode(O,l,g),l.state=o.OpenTag,E+=this.indent(O,l,g)+"<"+O.name,X=O.attribs;for(V in X)W.call(X,V)&&(_=X[V],E+=this.attribute(_,l,g));if(y=O.children.length,h=y===0?null:O.children[0],y===0||O.children.every(function(ro){return(ro.type===t.Text||ro.type===t.Raw)&&ro.value===""}))l.allowEmpty?(E+=">",l.state=o.CloseTag,E+="</"+O.name+">"+this.endline(O,l,g)):(l.state=o.CloseTag,E+=l.spaceBeforeSlash+"/>"+this.endline(O,l,g));else if(l.pretty&&y===1&&(h.type===t.Text||h.type===t.Raw)&&h.value!=null)E+=">",l.state=o.InsideTag,l.suppressPrettyCount++,I=!0,E+=this.writeChildNode(h,l,g+1),l.suppressPrettyCount--,I=!1,l.state=o.CloseTag,E+="</"+O.name+">"+this.endline(O,l,g);else{if(l.dontPrettyTextNodes){for(Z=O.children,f=0,N=Z.length;f<N;f++)if(G=Z[f],(G.type===t.Text||G.type===t.Raw)&&G.value!=null){l.suppressPrettyCount++,I=!0;break}}for(E+=">"+this.endline(O,l,g),l.state=o.InsideTag,Go=O.children,v=0,F=Go.length;v<F;v++)G=Go[v],E+=this.writeChildNode(G,l,g+1);l.state=o.CloseTag,E+=this.indent(O,l,g)+"</"+O.name+">",I&&l.suppressPrettyCount--,E+=this.endline(O,l,g),l.state=o.None}return this.closeNode(O,l,g),E},q.prototype.writeChildNode=function(O,l,g){switch(O.type){case t.CData:return this.cdata(O,l,g);case t.Comment:return this.comment(O,l,g);case t.Element:return this.element(O,l,g);case t.Raw:return this.raw(O,l,g);case t.Text:return this.text(O,l,g);case t.ProcessingInstruction:return this.processingInstruction(O,l,g);case t.Dummy:return"";case t.Declaration:return this.declaration(O,l,g);case t.DocType:return this.docType(O,l,g);case t.AttributeDeclaration:return this.dtdAttList(O,l,g);case t.ElementDeclaration:return this.dtdElement(O,l,g);case t.EntityDeclaration:return this.dtdEntity(O,l,g);case t.NotationDeclaration:return this.dtdNotation(O,l,g);default:throw new Error("Unknown XML node type: "+O.constructor.name)}},q.prototype.processingInstruction=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<?",l.state=o.InsideTag,_+=O.target,O.value&&(_+=" "+O.value),l.state=o.CloseTag,_+=l.spaceBeforeSlash+"?>",_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.raw=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g),l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.text=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g),l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.dtdAttList=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ATTLIST",l.state=o.InsideTag,_+=" "+O.elementName+" "+O.attributeName+" "+O.attributeType,O.defaultValueType!=="#DEFAULT"&&(_+=" "+O.defaultValueType),O.defaultValue&&(_+=' "'+O.defaultValue+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.dtdElement=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ELEMENT",l.state=o.InsideTag,_+=" "+O.name+" "+O.value,l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.dtdEntity=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ENTITY",l.state=o.InsideTag,O.pe&&(_+=" %"),_+=" "+O.name,O.value?_+=' "'+O.value+'"':(O.pubID&&O.sysID?_+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(_+=' SYSTEM "'+O.sysID+'"'),O.nData&&(_+=" NDATA "+O.nData)),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.dtdNotation=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!NOTATION",l.state=o.InsideTag,_+=" "+O.name,O.pubID&&O.sysID?_+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.pubID?_+=' PUBLIC "'+O.pubID+'"':O.sysID&&(_+=' SYSTEM "'+O.sysID+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.openNode=function(O,l,g){},q.prototype.closeNode=function(O,l,g){},q.prototype.openAttribute=function(O,l,g){},q.prototype.closeAttribute=function(O,l,g){},q}()}).call(oc)});var Gs=S((ec,sc)=>{(function(){var t,o,e=function(i,r){for(var n in r)s.call(r,n)&&(i[n]=r[n]);function a(){this.constructor=i}return a.prototype=r.prototype,i.prototype=new a,i.__super__=r.prototype,i},s={}.hasOwnProperty;o=rr(),sc.exports=t=function(i){e(r,i);function r(n){r.__super__.constructor.call(this,n)}return r.prototype.document=function(n,a){var c,u,d,x,m;for(a=this.filterOptions(a),x="",m=n.children,u=0,d=m.length;u<d;u++)c=m[u],x+=this.writeChildNode(c,a,0);return a.pretty&&x.slice(-a.newline.length)===a.newline&&(x=x.slice(0,-a.newline.length)),x},r}(o)}).call(ec)});var nr=S((ic,rc)=>{(function(){var t,o,e,s,i,r,n,a,c=function(d,x){for(var m in x)u.call(x,m)&&(d[m]=x[m]);function w(){this.constructor=d}return w.prototype=x.prototype,d.prototype=new w,d.__super__=x.prototype,d},u={}.hasOwnProperty;a=Zo().isPlainObject,e=tr(),o=aa(),i=ho(),t=U(),n=ir(),r=Gs(),rc.exports=s=function(d){c(x,d);function x(m){x.__super__.constructor.call(this,null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new o,m||(m={}),m.writer||(m.writer=new r),this.options=m,this.stringify=new n(m)}return Object.defineProperty(x.prototype,"implementation",{value:new e}),Object.defineProperty(x.prototype,"doctype",{get:function(){var m,w,z,k;for(k=this.children,w=0,z=k.length;w<z;w++)if(m=k[w],m.type===t.DocType)return m;return null}}),Object.defineProperty(x.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(x.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(x.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(x.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(x.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(x.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(x.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(x.prototype,"origin",{get:function(){return null}}),Object.defineProperty(x.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(x.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(x.prototype,"contentType",{get:function(){return null}}),x.prototype.end=function(m){var w;return w={},m?a(m)&&(w=m,m=this.options.writer):m=this.options.writer,m.document(this,m.filterOptions(w))},x.prototype.toString=function(m){return this.options.writer.document(this,this.options.writer.filterOptions(m))},x.prototype.createElement=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createTextNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createComment=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createCDATASection=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createProcessingInstruction=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createAttribute=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createEntityReference=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.getElementsByTagName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.importNode=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createElementNS=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createAttributeNS=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.getElementsByTagNameNS=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.getElementById=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.adoptNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.renameNode=function(m,w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.getElementsByClassName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createEvent=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createNodeIterator=function(m,w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createTreeWalker=function(m,w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},x}(i)}).call(ic)});var cc=S((nc,ac)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,z,k,p,W,q,O,l,g,_,G,y={}.hasOwnProperty;G=Zo(),g=G.isObject,l=G.isFunction,_=G.isPlainObject,O=G.getValue,t=U(),x=nr(),w=xs(),s=ms(),i=gs(),k=zs(),q=ks(),z=Ks(),u=Os(),d=fs(),r=ds(),a=ws(),n=ys(),c=hs(),e=er(),W=ir(),p=Gs(),o=fe(),ac.exports=m=function(){function h(f,v,N){var F;this.name="?xml",this.type=t.Document,f||(f={}),F={},f.writer?_(f.writer)&&(F=f.writer,f.writer=new p):f.writer=new p,this.options=f,this.writer=f.writer,this.writerOptions=this.writer.filterOptions(F),this.stringify=new W(f),this.onDataCallback=v||function(){},this.onEndCallback=N||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return h.prototype.createChildNode=function(f){var v,N,F,V,I,E,X,Z;switch(f.type){case t.CData:this.cdata(f.value);break;case t.Comment:this.comment(f.value);break;case t.Element:F={},X=f.attribs;for(N in X)y.call(X,N)&&(v=X[N],F[N]=v.value);this.node(f.name,F);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(f.value);break;case t.Text:this.text(f.value);break;case t.ProcessingInstruction:this.instruction(f.target,f.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+f.constructor.name)}for(Z=f.children,I=0,E=Z.length;I<E;I++)V=Z[I],this.createChildNode(V),V.type===t.Element&&this.up();return this},h.prototype.dummy=function(){return this},h.prototype.node=function(f,v,N){var F;if(f==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(f));return this.openCurrent(),f=O(f),v==null&&(v={}),v=O(v),g(v)||(F=[v,N],N=F[0],v=F[1]),this.currentNode=new w(this,f,v),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,N!=null&&this.text(N),this},h.prototype.element=function(f,v,N){var F,V,I,E,X,Z;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(f)||g(f)||l(f))for(E=this.options.noValidation,this.options.noValidation=!0,Z=new x(this.options).element("TEMP_ROOT"),Z.element(f),this.options.noValidation=E,X=Z.children,V=0,I=X.length;V<I;V++)F=X[V],this.createChildNode(F),F.type===t.Element&&this.up();else this.node(f,v,N);return this},h.prototype.attribute=function(f,v){var N,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(f));if(f!=null&&(f=O(f)),g(f))for(N in f)y.call(f,N)&&(F=f[N],this.attribute(N,F));else l(v)&&(v=v.apply()),this.options.keepNullAttributes&&v==null?this.currentNode.attribs[f]=new e(this,f,""):v!=null&&(this.currentNode.attribs[f]=new e(this,f,v));return this},h.prototype.text=function(f){var v;return this.openCurrent(),v=new q(this,f),this.onData(this.writer.text(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.cdata=function(f){var v;return this.openCurrent(),v=new s(this,f),this.onData(this.writer.cdata(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.comment=function(f){var v;return this.openCurrent(),v=new i(this,f),this.onData(this.writer.comment(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.raw=function(f){var v;return this.openCurrent(),v=new k(this,f),this.onData(this.writer.raw(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.instruction=function(f,v){var N,F,V,I,E;if(this.openCurrent(),f!=null&&(f=O(f)),v!=null&&(v=O(v)),Array.isArray(f))for(N=0,I=f.length;N<I;N++)F=f[N],this.instruction(F);else if(g(f))for(F in f)y.call(f,F)&&(V=f[F],this.instruction(F,V));else l(v)&&(v=v.apply()),E=new z(this,f,v),this.onData(this.writer.processingInstruction(E,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},h.prototype.declaration=function(f,v,N){var F;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return F=new u(this,f,v,N),this.onData(this.writer.declaration(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.doctype=function(f,v,N){if(this.openCurrent(),f==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,v,N),this.currentNode.rootNodeName=f,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},h.prototype.dtdElement=function(f,v){var N;return this.openCurrent(),N=new n(this,f,v),this.onData(this.writer.dtdElement(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.attList=function(f,v,N,F,V){var I;return this.openCurrent(),I=new r(this,f,v,N,F,V),this.onData(this.writer.dtdAttList(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.entity=function(f,v){var N;return this.openCurrent(),N=new a(this,!1,f,v),this.onData(this.writer.dtdEntity(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.pEntity=function(f,v){var N;return this.openCurrent(),N=new a(this,!0,f,v),this.onData(this.writer.dtdEntity(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.notation=function(f,v){var N;return this.openCurrent(),N=new c(this,f,v),this.onData(this.writer.dtdNotation(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.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},h.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},h.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},h.prototype.openNode=function(f){var v,N,F,V;if(!f.isOpen){if(!this.root&&this.currentLevel===0&&f.type===t.Element&&(this.root=f),N="",f.type===t.Element){this.writerOptions.state=o.OpenTag,N=this.writer.indent(f,this.writerOptions,this.currentLevel)+"<"+f.name,V=f.attribs;for(F in V)y.call(V,F)&&(v=V[F],N+=this.writer.attribute(v,this.writerOptions,this.currentLevel));N+=(f.children?">":"/>")+this.writer.endline(f,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,N=this.writer.indent(f,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+f.rootNodeName,f.pubID&&f.sysID?N+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.sysID&&(N+=' SYSTEM "'+f.sysID+'"'),f.children?(N+=" [",this.writerOptions.state=o.InsideTag):(this.writerOptions.state=o.CloseTag,N+=">"),N+=this.writer.endline(f,this.writerOptions,this.currentLevel);return this.onData(N,this.currentLevel),f.isOpen=!0}},h.prototype.closeNode=function(f){var v;if(!f.isClosed)return v="",this.writerOptions.state=o.CloseTag,f.type===t.Element?v=this.writer.indent(f,this.writerOptions,this.currentLevel)+"</"+f.name+">"+this.writer.endline(f,this.writerOptions,this.currentLevel):v=this.writer.indent(f,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(f,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(v,this.currentLevel),f.isClosed=!0},h.prototype.onData=function(f,v){return this.documentStarted=!0,this.onDataCallback(f,v+1)},h.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},h.prototype.debugInfo=function(f){return f==null?"":"node: <"+f+">"},h.prototype.ele=function(){return this.element.apply(this,arguments)},h.prototype.nod=function(f,v,N){return this.node(f,v,N)},h.prototype.txt=function(f){return this.text(f)},h.prototype.dat=function(f){return this.cdata(f)},h.prototype.com=function(f){return this.comment(f)},h.prototype.ins=function(f,v){return this.instruction(f,v)},h.prototype.dec=function(f,v,N){return this.declaration(f,v,N)},h.prototype.dtd=function(f,v,N){return this.doctype(f,v,N)},h.prototype.e=function(f,v,N){return this.element(f,v,N)},h.prototype.n=function(f,v,N){return this.node(f,v,N)},h.prototype.t=function(f){return this.text(f)},h.prototype.d=function(f){return this.cdata(f)},h.prototype.c=function(f){return this.comment(f)},h.prototype.r=function(f){return this.raw(f)},h.prototype.i=function(f,v){return this.instruction(f,v)},h.prototype.att=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.a=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.ent=function(f,v){return this.entity(f,v)},h.prototype.pent=function(f,v){return this.pEntity(f,v)},h.prototype.not=function(f,v){return this.notation(f,v)},h}()}).call(nc)});var _c=S((lc,uc)=>{(function(){var t,o,e,s,i=function(n,a){for(var c in a)r.call(a,c)&&(n[c]=a[c]);function u(){this.constructor=n}return u.prototype=a.prototype,n.prototype=new u,n.__super__=a.prototype,n},r={}.hasOwnProperty;t=U(),s=rr(),o=fe(),uc.exports=e=function(n){i(a,n);function a(c,u){this.stream=c,a.__super__.constructor.call(this,u)}return a.prototype.endline=function(c,u,d){return c.isLastRootNode&&u.state===o.CloseTag?"":a.__super__.endline.call(this,c,u,d)},a.prototype.document=function(c,u){var d,x,m,w,z,k,p,W,q;for(p=c.children,x=m=0,z=p.length;m<z;x=++m)d=p[x],d.isLastRootNode=x===c.children.length-1;for(u=this.filterOptions(u),W=c.children,q=[],w=0,k=W.length;w<k;w++)d=W[w],q.push(this.writeChildNode(d,u,0));return q},a.prototype.attribute=function(c,u,d){return this.stream.write(a.__super__.attribute.call(this,c,u,d))},a.prototype.cdata=function(c,u,d){return this.stream.write(a.__super__.cdata.call(this,c,u,d))},a.prototype.comment=function(c,u,d){return this.stream.write(a.__super__.comment.call(this,c,u,d))},a.prototype.declaration=function(c,u,d){return this.stream.write(a.__super__.declaration.call(this,c,u,d))},a.prototype.docType=function(c,u,d){var x,m,w,z;if(d||(d=0),this.openNode(c,u,d),u.state=o.OpenTag,this.stream.write(this.indent(c,u,d)),this.stream.write("<!DOCTYPE "+c.root().name),c.pubID&&c.sysID?this.stream.write(' PUBLIC "'+c.pubID+'" "'+c.sysID+'"'):c.sysID&&this.stream.write(' SYSTEM "'+c.sysID+'"'),c.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(c,u,d)),u.state=o.InsideTag,z=c.children,m=0,w=z.length;m<w;m++)x=z[m],this.writeChildNode(x,u,d+1);u.state=o.CloseTag,this.stream.write("]")}return u.state=o.CloseTag,this.stream.write(u.spaceBeforeSlash+">"),this.stream.write(this.endline(c,u,d)),u.state=o.None,this.closeNode(c,u,d)},a.prototype.element=function(c,u,d){var x,m,w,z,k,p,W,q,O,l;d||(d=0),this.openNode(c,u,d),u.state=o.OpenTag,this.stream.write(this.indent(c,u,d)+"<"+c.name),O=c.attribs;for(W in O)r.call(O,W)&&(x=O[W],this.attribute(x,u,d));if(w=c.children.length,z=w===0?null:c.children[0],w===0||c.children.every(function(g){return(g.type===t.Text||g.type===t.Raw)&&g.value===""}))u.allowEmpty?(this.stream.write(">"),u.state=o.CloseTag,this.stream.write("</"+c.name+">")):(u.state=o.CloseTag,this.stream.write(u.spaceBeforeSlash+"/>"));else if(u.pretty&&w===1&&(z.type===t.Text||z.type===t.Raw)&&z.value!=null)this.stream.write(">"),u.state=o.InsideTag,u.suppressPrettyCount++,q=!0,this.writeChildNode(z,u,d+1),u.suppressPrettyCount--,q=!1,u.state=o.CloseTag,this.stream.write("</"+c.name+">");else{for(this.stream.write(">"+this.endline(c,u,d)),u.state=o.InsideTag,l=c.children,k=0,p=l.length;k<p;k++)m=l[k],this.writeChildNode(m,u,d+1);u.state=o.CloseTag,this.stream.write(this.indent(c,u,d)+"</"+c.name+">")}return this.stream.write(this.endline(c,u,d)),u.state=o.None,this.closeNode(c,u,d)},a.prototype.processingInstruction=function(c,u,d){return this.stream.write(a.__super__.processingInstruction.call(this,c,u,d))},a.prototype.raw=function(c,u,d){return this.stream.write(a.__super__.raw.call(this,c,u,d))},a.prototype.text=function(c,u,d){return this.stream.write(a.__super__.text.call(this,c,u,d))},a.prototype.dtdAttList=function(c,u,d){return this.stream.write(a.__super__.dtdAttList.call(this,c,u,d))},a.prototype.dtdElement=function(c,u,d){return this.stream.write(a.__super__.dtdElement.call(this,c,u,d))},a.prototype.dtdEntity=function(c,u,d){return this.stream.write(a.__super__.dtdEntity.call(this,c,u,d))},a.prototype.dtdNotation=function(c,u,d){return this.stream.write(a.__super__.dtdNotation.call(this,c,u,d))},a}(s)}).call(lc)});var mc=S((xc,ut)=>{(function(){var t,o,e,s,i,r,n,a,c,u;u=Zo(),a=u.assign,c=u.isFunction,e=tr(),s=nr(),i=cc(),n=Gs(),r=_c(),t=U(),o=fe(),ut.exports.create=function(d,x,m,w){var z,k;if(d==null)throw new Error("Root element needs a name.");return w=a({},x,m,w),z=new s(w),k=z.element(d),w.headless||(z.declaration(w),(w.pubID!=null||w.sysID!=null)&&z.dtd(w)),k},ut.exports.begin=function(d,x,m){var w;return c(d)&&(w=[d,x],x=w[0],m=w[1],d={}),x?new i(d,x,m):new s(d)},ut.exports.stringWriter=function(d){return new n(d)},ut.exports.streamWriter=function(d,x){return new r(d,x)},ut.exports.implementation=new e,ut.exports.nodeType=t,ut.exports.writerState=o}).call(xc)});var gc=S(ar=>{(function(){"use strict";var t,o,e,s,i,r={}.hasOwnProperty;t=mc(),o=us().defaults,s=function(n){return typeof n=="string"&&(n.indexOf("&")>=0||n.indexOf(">")>=0||n.indexOf("<")>=0)},i=function(n){return"<![CDATA["+e(n)+"]]>"},e=function(n){return n.replace("]]>","]]]]><![CDATA[>")},ar.Builder=function(){function n(a){var c,u,d;this.options={},u=o["0.2"];for(c in u)r.call(u,c)&&(d=u[c],this.options[c]=d);for(c in a)r.call(a,c)&&(d=a[c],this.options[c]=d)}return n.prototype.buildObject=function(a){var c,u,d,x,m;return c=this.options.attrkey,u=this.options.charkey,Object.keys(a).length===1&&this.options.rootName===o["0.2"].rootName?(m=Object.keys(a)[0],a=a[m]):m=this.options.rootName,d=function(w){return function(z,k){var p,W,q,O,l,g;if(typeof k!="object")w.options.cdata&&s(k)?z.raw(i(k)):z.txt(k);else if(Array.isArray(k)){for(O in k)if(r.call(k,O)){W=k[O];for(l in W)q=W[l],z=d(z.ele(l),q).up()}}else for(l in k)if(r.call(k,l))if(W=k[l],l===c){if(typeof W=="object")for(p in W)g=W[p],z=z.att(p,g)}else if(l===u)w.options.cdata&&s(W)?z=z.raw(i(W)):z=z.txt(W);else if(Array.isArray(W))for(O in W)r.call(W,O)&&(q=W[O],typeof q=="string"?w.options.cdata&&s(q)?z=z.ele(l).raw(i(q)).up():z=z.ele(l,q).up():z=d(z.ele(l),q).up());else typeof W=="object"?z=d(z.ele(l),W).up():typeof W=="string"&&w.options.cdata&&s(W)?z=z.ele(l).raw(i(W)).up():(W==null&&(W=""),z=z.ele(l,W.toString()).up());return z}}(this),x=t.create(m,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),d(x,a).end(this.options.renderOpts)},n}()}).call(ar)});var Oc=S(bs=>{(function(t){t.parser=function(b,K){return new e(b,K)},t.SAXParser=e,t.SAXStream=u,t.createStream=c,t.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function e(b,K){if(!(this instanceof e))return new e(b,K);var M=this;i(M),M.q=M.c="",M.bufferCheckPosition=t.MAX_BUFFER_LENGTH,M.opt=K||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!b,M.noscript=!!(b||M.opt.noscript),M.state=y.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(z)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),f(M,"onready")}Object.create||(Object.create=function(b){function K(){}K.prototype=b;var M=new K;return M}),Object.keys||(Object.keys=function(b){var K=[];for(var M in b)b.hasOwnProperty(M)&&K.push(M);return K});function s(b){for(var K=Math.max(t.MAX_BUFFER_LENGTH,10),M=0,C=0,L=o.length;C<L;C++){var R=b[o[C]].length;if(R>K)switch(o[C]){case"textNode":N(b);break;case"cdata":v(b,"oncdata",b.cdata),b.cdata="";break;case"script":v(b,"onscript",b.script),b.script="";break;default:V(b,"Max buffer length exceeded: "+o[C])}M=Math.max(M,R)}var J=t.MAX_BUFFER_LENGTH-M;b.bufferCheckPosition=J+b.position}function i(b){for(var K=0,M=o.length;K<M;K++)b[o[K]]=""}function r(b){N(b),b.cdata!==""&&(v(b,"oncdata",b.cdata),b.cdata=""),b.script!==""&&(v(b,"onscript",b.script),b.script="")}e.prototype={end:function(){I(this)},write:St,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){r(this)}};var n;try{n=require("stream").Stream}catch{n=function(){}}n||(n=function(){});var a=t.EVENTS.filter(function(b){return b!=="error"&&b!=="end"});function c(b,K){return new u(b,K)}function u(b,K){if(!(this instanceof u))return new u(b,K);n.apply(this),this._parser=new e(b,K),this.writable=!0,this.readable=!0;var M=this;this._parser.onend=function(){M.emit("end")},this._parser.onerror=function(C){M.emit("error",C),M._parser.error=null},this._decoder=null,a.forEach(function(C){Object.defineProperty(M,"on"+C,{get:function(){return M._parser["on"+C]},set:function(L){if(!L)return M.removeAllListeners(C),M._parser["on"+C]=L,L;M.on(C,L)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(n.prototype,{constructor:{value:u}}),u.prototype.write=function(b){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(b)){if(!this._decoder){var K=require("string_decoder").StringDecoder;this._decoder=new K("utf8")}b=this._decoder.write(b)}return this._parser.write(b.toString()),this.emit("data",b),!0},u.prototype.end=function(b){return b&&b.length&&this.write(b),this._parser.end(),!0},u.prototype.on=function(b,K){var M=this;return!M._parser["on"+b]&&a.indexOf(b)!==-1&&(M._parser["on"+b]=function(){var C=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);C.splice(0,0,b),M.emit.apply(M,C)}),n.prototype.on.call(M,b,K)};var d="[CDATA[",x="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",w="http://www.w3.org/2000/xmlns/",z={xml:m,xmlns:w},k=/[:_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]/,p=/[:_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-]/,W=/[#:_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]/,q=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function O(b){return b===" "||b===`
4
- `||b==="\r"||b===" "}function l(b){return b==='"'||b==="'"}function g(b){return b===">"||O(b)}function _(b,K){return b.test(K)}function G(b,K){return!_(b,K)}var y=0;t.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(b){var K=t.ENTITIES[b],M=typeof K=="number"?String.fromCharCode(K):K;t.ENTITIES[b]=M});for(var h in t.STATE)t.STATE[t.STATE[h]]=h;y=t.STATE;function f(b,K,M){b[K]&&b[K](M)}function v(b,K,M){b.textNode&&N(b),f(b,K,M)}function N(b){b.textNode=F(b.opt,b.textNode),b.textNode&&f(b,"ontext",b.textNode),b.textNode=""}function F(b,K){return b.trim&&(K=K.trim()),b.normalize&&(K=K.replace(/\s+/g," ")),K}function V(b,K){return N(b),b.trackPosition&&(K+=`
1
+ "use strict";var Ng=Object.create;var cs=Object.defineProperty;var Sg=Object.getOwnPropertyDescriptor;var Fg=Object.getOwnPropertyNames;var Mg=Object.getPrototypeOf,Eg=Object.prototype.hasOwnProperty;var S=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports),Vg=(t,o)=>{for(var e in o)cs(t,e,{get:o[e],enumerable:!0})},Rn=(t,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of Fg(o))!Eg.call(t,i)&&i!==e&&cs(t,i,{get:()=>o[i],enumerable:!(s=Sg(o,i))||s.enumerable});return t};var P=(t,o,e)=>(e=t!=null?Ng(Mg(t)):{},Rn(o||!t||!t.__esModule?cs(e,"default",{value:t,enumerable:!0}):e,t)),Xg=t=>Rn(cs({},"__esModule",{value:!0}),t);var Hi=S((th,$i)=>{var us=process||{},Jn=us.argv||[],ls=us.env||{},Yg=!(ls.NO_COLOR||Jn.includes("--no-color"))&&(!!ls.FORCE_COLOR||Jn.includes("--color")||us.platform==="win32"||(us.stdout||{}).isTTY&&ls.TERM!=="dumb"||!!ls.CI),Ig=(t,o,e=t)=>s=>{let i=""+s,r=i.indexOf(o,t.length);return~r?t+Zg(i,o,e,r)+o:t+i+o},Zg=(t,o,e,s)=>{let i="",r=0;do i+=t.substring(r,s)+e,r=s+o.length,s=t.indexOf(o,r);while(~s);return i+t.substring(r)},Bn=(t=Yg)=>{let o=t?Ig:()=>String;return{isColorSupported:t,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}};$i.exports=Bn();$i.exports.createColors=Bn});var _s=S(or=>{(function(){or.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(or)});var Zo=S((Dn,at)=>{(function(){var t,o,e,s,i,r,n,a=[].slice,c={}.hasOwnProperty;t=function(){var u,d,x,m,w,f;if(f=arguments[0],w=2<=arguments.length?a.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(u=0,x=w.length;u<x;u++)if(m=w[u],m!=null)for(d in m)c.call(m,d)&&(f[d]=m[d]);return f},i=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},r=function(u){var d;return!!u&&((d=typeof u)=="function"||d==="object")},e=function(u){return i(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},s=function(u){var d;if(e(u))return!u.length;for(d in u)if(c.call(u,d))return!1;return!0},n=function(u){var d,x;return r(u)&&(x=Object.getPrototypeOf(u))&&(d=x.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},o=function(u){return i(u.valueOf)?u.valueOf():u},at.exports.assign=t,at.exports.isFunction=i,at.exports.isObject=r,at.exports.isArray=e,at.exports.isEmpty=s,at.exports.isPlainObject=n,at.exports.getValue=o}).call(Dn)});var tr=S(($n,Hn)=>{(function(){var t;Hn.exports=t=function(){function o(){}return o.prototype.hasFeature=function(e,s){return!0},o.prototype.createDocumentType=function(e,s,i){throw new Error("This DOM method is not implemented.")},o.prototype.createDocument=function(e,s,i){throw new Error("This DOM method is not implemented.")},o.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},o.prototype.getFeature=function(e,s){throw new Error("This DOM method is not implemented.")},o}()}).call($n)});var ea=S((oa,ta)=>{(function(){var t;ta.exports=t=function(){function o(){}return o.prototype.handleError=function(e){throw new Error(e)},o}()}).call(oa)});var ra=S((sa,ia)=>{(function(){var t;ia.exports=t=function(){function o(e){this.arr=e||[]}return Object.defineProperty(o.prototype,"length",{get:function(){return this.arr.length}}),o.prototype.item=function(e){return this.arr[e]||null},o.prototype.contains=function(e){return this.arr.indexOf(e)!==-1},o}()}).call(sa)});var ca=S((na,aa)=>{(function(){var t,o,e;o=ea(),e=ra(),aa.exports=t=function(){function s(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new o,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(s.prototype,"parameterNames",{get:function(){return new e(Object.keys(this.defaultParams))}}),s.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},s.prototype.canSetParameter=function(i,r){return!0},s.prototype.setParameter=function(i,r){return r!=null?this.params[i]=r:delete this.params[i]},s}()}).call(na)});var U=S((la,ua)=>{(function(){ua.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(la)});var er=S((_a,xa)=>{(function(){var t,o,e;t=U(),e=ho(),xa.exports=o=function(){function s(i,r,n){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),r==null)throw new Error("Missing attribute name. "+this.debugInfo(r));this.name=this.stringify.name(r),this.value=this.stringify.attValue(n),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(s.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(s.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"specified",{get:function(){return!0}}),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(i){return this.options.writer.attribute(this,this.options.writer.filterOptions(i))},s.prototype.debugInfo=function(i){return i=i||this.name,i==null?"parent: <"+this.parent.name+">":"attribute: {"+i+"}, parent: <"+this.parent.name+">"},s.prototype.isEqualNode=function(i){return!(i.namespaceURI!==this.namespaceURI||i.prefix!==this.prefix||i.localName!==this.localName||i.value!==this.value)},s}()}).call(_a)});var xs=S((ma,ga)=>{(function(){var t;ga.exports=t=function(){function o(e){this.nodes=e}return Object.defineProperty(o.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),o.prototype.clone=function(){return this.nodes=null},o.prototype.getNamedItem=function(e){return this.nodes[e]},o.prototype.setNamedItem=function(e){var s;return s=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,s||null},o.prototype.removeNamedItem=function(e){var s;return s=this.nodes[e],delete this.nodes[e],s||null},o.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},o.prototype.getNamedItemNS=function(e,s){throw new Error("This DOM method is not implemented.")},o.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},o.prototype.removeNamedItemNS=function(e,s){throw new Error("This DOM method is not implemented.")},o}()}).call(ma)});var ms=S((Oa,da)=>{(function(){var t,o,e,s,i,r,n,a,c,u=function(x,m){for(var w in m)d.call(m,w)&&(x[w]=m[w]);function f(){this.constructor=x}return f.prototype=m.prototype,x.prototype=new f,x.__super__=m.prototype,x},d={}.hasOwnProperty;c=Zo(),a=c.isObject,n=c.isFunction,r=c.getValue,i=ho(),t=U(),o=er(),s=xs(),da.exports=e=function(x){u(m,x);function m(w,f,k){var W,p,q,O;if(m.__super__.constructor.call(this,w),f==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(f),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,k!=null&&this.attribute(k),w.type===t.Document&&(this.isRoot=!0,this.documentObject=w,w.rootObject=this,w.children)){for(O=w.children,p=0,q=O.length;p<q;p++)if(W=O[p],W.type===t.DocType){W.name=this.name;break}}}return Object.defineProperty(m.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(m.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(m.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(m.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(m.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(m.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(m.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(m.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new s(this.attribs)),this.attributeMap}}),m.prototype.clone=function(){var w,f,k,W;k=Object.create(this),k.isRoot&&(k.documentObject=null),k.attribs={},W=this.attribs;for(f in W)d.call(W,f)&&(w=W[f],k.attribs[f]=w.clone());return k.children=[],this.children.forEach(function(p){var q;return q=p.clone(),q.parent=k,k.children.push(q)}),k},m.prototype.attribute=function(w,f){var k,W;if(w!=null&&(w=r(w)),a(w))for(k in w)d.call(w,k)&&(W=w[k],this.attribute(k,W));else n(f)&&(f=f.apply()),this.options.keepNullAttributes&&f==null?this.attribs[w]=new o(this,w,""):f!=null&&(this.attribs[w]=new o(this,w,f));return this},m.prototype.removeAttribute=function(w){var f,k,W;if(w==null)throw new Error("Missing attribute name. "+this.debugInfo());if(w=r(w),Array.isArray(w))for(k=0,W=w.length;k<W;k++)f=w[k],delete this.attribs[f];else delete this.attribs[w];return this},m.prototype.toString=function(w){return this.options.writer.element(this,this.options.writer.filterOptions(w))},m.prototype.att=function(w,f){return this.attribute(w,f)},m.prototype.a=function(w,f){return this.attribute(w,f)},m.prototype.getAttribute=function(w){return this.attribs.hasOwnProperty(w)?this.attribs[w].value:null},m.prototype.setAttribute=function(w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getAttributeNode=function(w){return this.attribs.hasOwnProperty(w)?this.attribs[w]:null},m.prototype.setAttributeNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.removeAttributeNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getAttributeNS=function(w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setAttributeNS=function(w,f,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.removeAttributeNS=function(w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getAttributeNodeNS=function(w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setAttributeNodeNS=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagNameNS=function(w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.hasAttribute=function(w){return this.attribs.hasOwnProperty(w)},m.prototype.hasAttributeNS=function(w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setIdAttribute=function(w,f){return this.attribs.hasOwnProperty(w)?this.attribs[w].isId:f},m.prototype.setIdAttributeNS=function(w,f,k){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setIdAttributeNode=function(w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagNameNS=function(w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByClassName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.isEqualNode=function(w){var f,k,W;if(!m.__super__.isEqualNode.apply(this,arguments).isEqualNode(w)||w.namespaceURI!==this.namespaceURI||w.prefix!==this.prefix||w.localName!==this.localName||w.attribs.length!==this.attribs.length)return!1;for(f=k=0,W=this.attribs.length-1;0<=W?k<=W:k>=W;f=0<=W?++k:--k)if(!this.attribs[f].isEqualNode(w.attribs[f]))return!1;return!0},m}(i)}).call(Oa)});var fe=S((wa,ya)=>{(function(){var t,o,e=function(i,r){for(var n in r)s.call(r,n)&&(i[n]=r[n]);function a(){this.constructor=i}return a.prototype=r.prototype,i.prototype=new a,i.__super__=r.prototype,i},s={}.hasOwnProperty;o=ho(),ya.exports=t=function(i){e(r,i);function r(n){r.__super__.constructor.call(this,n),this.value=""}return Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.substringData=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.appendData=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.insertData=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.deleteData=function(n,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceData=function(n,a,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.isEqualNode=function(n){return!(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)||n.data!==this.data)},r}(o)}).call(wa)});var gs=S((ha,fa)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),e=fe(),fa.exports=o=function(r){s(n,r);function n(a,c){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(c)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},n}(e)}).call(ha)});var Os=S((za,ka)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),o=fe(),ka.exports=e=function(r){s(n,r);function n(a,c){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(c)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},n}(o)}).call(za)});var ds=S((Ka,Ga)=>{(function(){var t,o,e,s,i=function(n,a){for(var c in a)r.call(a,c)&&(n[c]=a[c]);function u(){this.constructor=n}return u.prototype=a.prototype,n.prototype=new u,n.__super__=a.prototype,n},r={}.hasOwnProperty;s=Zo().isObject,e=ho(),t=U(),Ga.exports=o=function(n){i(a,n);function a(c,u,d,x){var m;a.__super__.constructor.call(this,c),s(u)&&(m=u,u=m.version,d=m.encoding,x=m.standalone),u||(u="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(u),d!=null&&(this.encoding=this.stringify.xmlEncoding(d)),x!=null&&(this.standalone=this.stringify.xmlStandalone(x))}return a.prototype.toString=function(c){return this.options.writer.declaration(this,this.options.writer.filterOptions(c))},a}(e)}).call(Ka)});var ws=S((ba,va)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;e=ho(),t=U(),va.exports=o=function(r){s(n,r);function n(a,c,u,d,x,m){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(u==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(c));if(!d)throw new Error("Missing DTD attribute type. "+this.debugInfo(c));if(!x)throw new Error("Missing DTD attribute default. "+this.debugInfo(c));if(x.indexOf("#")!==0&&(x="#"+x),!x.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(m&&!x.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(u),this.attributeType=this.stringify.dtdAttType(d),m&&(this.defaultValue=this.stringify.dtdAttDefault(m)),this.defaultValueType=x}return n.prototype.toString=function(a){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(a))},n}(e)}).call(ba)});var ys=S((Wa,pa)=>{(function(){var t,o,e,s,i=function(n,a){for(var c in a)r.call(a,c)&&(n[c]=a[c]);function u(){this.constructor=n}return u.prototype=a.prototype,n.prototype=new u,n.__super__=a.prototype,n},r={}.hasOwnProperty;s=Zo().isObject,e=ho(),t=U(),pa.exports=o=function(n){i(a,n);function a(c,u,d,x){if(a.__super__.constructor.call(this,c),d==null)throw new Error("Missing DTD entity name. "+this.debugInfo(d));if(x==null)throw new Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!u,this.name=this.stringify.name(d),this.type=t.EntityDeclaration,!s(x))this.value=this.stringify.dtdEntityValue(x),this.internal=!0;else{if(!x.pubID&&!x.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(x.pubID&&!x.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,x.pubID!=null&&(this.pubID=this.stringify.dtdPubID(x.pubID)),x.sysID!=null&&(this.sysID=this.stringify.dtdSysID(x.sysID)),x.nData!=null&&(this.nData=this.stringify.dtdNData(x.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return null}}),a.prototype.toString=function(c){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(c))},a}(e)}).call(Wa)});var hs=S((qa,Ca)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;e=ho(),t=U(),Ca.exports=o=function(r){s(n,r);function n(a,c,u){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());u||(u="(#PCDATA)"),Array.isArray(u)&&(u="("+u.join(",")+")"),this.name=this.stringify.name(c),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(u)}return n.prototype.toString=function(a){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(a))},n}(e)}).call(qa)});var fs=S((Na,Sa)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;e=ho(),t=U(),Sa.exports=o=function(r){s(n,r);function n(a,c,u){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing DTD notation name. "+this.debugInfo(c));if(!u.pubID&&!u.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=t.NotationDeclaration,u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID))}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),n.prototype.toString=function(a){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(a))},n}(e)}).call(Na)});var zs=S((Fa,Ma)=>{(function(){var t,o,e,s,i,r,n,a,c,u=function(x,m){for(var w in m)d.call(m,w)&&(x[w]=m[w]);function f(){this.constructor=x}return f.prototype=m.prototype,x.prototype=new f,x.__super__=m.prototype,x},d={}.hasOwnProperty;c=Zo().isObject,a=ho(),t=U(),o=ws(),s=ys(),e=hs(),i=fs(),n=xs(),Ma.exports=r=function(x){u(m,x);function m(w,f,k){var W,p,q,O,l,g;if(m.__super__.constructor.call(this,w),this.type=t.DocType,w.children){for(O=w.children,p=0,q=O.length;p<q;p++)if(W=O[p],W.type===t.Element){this.name=W.name;break}}this.documentObject=w,c(f)&&(l=f,f=l.pubID,k=l.sysID),k==null&&(g=[f,k],k=g[0],f=g[1]),f!=null&&(this.pubID=this.stringify.dtdPubID(f)),k!=null&&(this.sysID=this.stringify.dtdSysID(k))}return Object.defineProperty(m.prototype,"entities",{get:function(){var w,f,k,W,p;for(W={},p=this.children,f=0,k=p.length;f<k;f++)w=p[f],w.type===t.EntityDeclaration&&!w.pe&&(W[w.name]=w);return new n(W)}}),Object.defineProperty(m.prototype,"notations",{get:function(){var w,f,k,W,p;for(W={},p=this.children,f=0,k=p.length;f<k;f++)w=p[f],w.type===t.NotationDeclaration&&(W[w.name]=w);return new n(W)}}),Object.defineProperty(m.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(m.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(m.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),m.prototype.element=function(w,f){var k;return k=new e(this,w,f),this.children.push(k),this},m.prototype.attList=function(w,f,k,W,p){var q;return q=new o(this,w,f,k,W,p),this.children.push(q),this},m.prototype.entity=function(w,f){var k;return k=new s(this,!1,w,f),this.children.push(k),this},m.prototype.pEntity=function(w,f){var k;return k=new s(this,!0,w,f),this.children.push(k),this},m.prototype.notation=function(w,f){var k;return k=new i(this,w,f),this.children.push(k),this},m.prototype.toString=function(w){return this.options.writer.docType(this,this.options.writer.filterOptions(w))},m.prototype.ele=function(w,f){return this.element(w,f)},m.prototype.att=function(w,f,k,W,p){return this.attList(w,f,k,W,p)},m.prototype.ent=function(w,f){return this.entity(w,f)},m.prototype.pent=function(w,f){return this.pEntity(w,f)},m.prototype.not=function(w,f){return this.notation(w,f)},m.prototype.up=function(){return this.root()||this.documentObject},m.prototype.isEqualNode=function(w){return!(!m.__super__.isEqualNode.apply(this,arguments).isEqualNode(w)||w.name!==this.name||w.publicId!==this.publicId||w.systemId!==this.systemId)},m}(a)}).call(Fa)});var ks=S((Ea,Va)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),o=ho(),Va.exports=e=function(r){s(n,r);function n(a,c){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(c)}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},n}(o)}).call(Ea)});var Ks=S((Xa,Ya)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),o=fe(),Ya.exports=e=function(r){s(n,r);function n(a,c){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(c)}return Object.defineProperty(n.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(n.prototype,"wholeText",{get:function(){var a,c,u;for(u="",c=this.previousSibling;c;)u=c.data+u,c=c.previousSibling;for(u+=this.data,a=this.nextSibling;a;)u=u+a.data,a=a.nextSibling;return u}}),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},n.prototype.splitText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.replaceWholeText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(o)}).call(Xa)});var Gs=S((Ia,Za)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;t=U(),o=fe(),Za.exports=e=function(r){s(n,r);function n(a,c,u){if(n.__super__.constructor.call(this,a),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,u&&(this.value=this.stringify.insValue(u))}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},n.prototype.isEqualNode=function(a){return!(!n.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.target!==this.target)},n}(o)}).call(Ia)});var sr=S((Pa,La)=>{(function(){var t,o,e,s=function(r,n){for(var a in n)i.call(n,a)&&(r[a]=n[a]);function c(){this.constructor=r}return c.prototype=n.prototype,r.prototype=new c,r.__super__=n.prototype,r},i={}.hasOwnProperty;e=ho(),t=U(),La.exports=o=function(r){s(n,r);function n(a){n.__super__.constructor.call(this,a),this.type=t.Dummy}return n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(a){return""},n}(e)}).call(Pa)});var Aa=S((Ta,Ua)=>{(function(){var t;Ua.exports=t=function(){function o(e){this.nodes=e}return Object.defineProperty(o.prototype,"length",{get:function(){return this.nodes.length||0}}),o.prototype.clone=function(){return this.nodes=null},o.prototype.item=function(e){return this.nodes[e]||null},o}()}).call(Ta)});var Ra=S((Qa,ja)=>{(function(){ja.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(Qa)});var ho=S((Ja,Ba)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,f,k,W,p,q,O={}.hasOwnProperty;q=Zo(),p=q.isObject,W=q.isFunction,k=q.isEmpty,f=q.getValue,a=null,e=null,s=null,i=null,r=null,m=null,w=null,x=null,n=null,o=null,d=null,c=null,t=null,Ba.exports=u=function(){function l(g){this.parent=g,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,a||(a=ms(),e=gs(),s=Os(),i=ds(),r=zs(),m=ks(),w=Ks(),x=Gs(),n=sr(),o=U(),d=Aa(),c=xs(),t=Ra())}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 d(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 g;return g=this.parent.children.indexOf(this),this.parent.children[g-1]||null}}),Object.defineProperty(l.prototype,"nextSibling",{get:function(){var g;return g=this.parent.children.indexOf(this),this.parent.children[g+1]||null}}),Object.defineProperty(l.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(l.prototype,"textContent",{get:function(){var g,_,G,y,h;if(this.nodeType===o.Element||this.nodeType===o.DocumentFragment){for(h="",y=this.children,_=0,G=y.length;_<G;_++)g=y[_],g.textContent&&(h+=g.textContent);return h}else return null},set:function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l.prototype.setParent=function(g){var _,G,y,h,z;for(this.parent=g,g&&(this.options=g.options,this.stringify=g.stringify),h=this.children,z=[],G=0,y=h.length;G<y;G++)_=h[G],z.push(_.setParent(this));return z},l.prototype.element=function(g,_,G){var y,h,z,v,N,F,V,I,E,X,Z;if(F=null,_===null&&G==null&&(E=[{},null],_=E[0],G=E[1]),_==null&&(_={}),_=f(_),p(_)||(X=[_,G],G=X[0],_=X[1]),g!=null&&(g=f(g)),Array.isArray(g))for(z=0,V=g.length;z<V;z++)h=g[z],F=this.element(h);else if(W(g))F=this.element(g.apply());else if(p(g)){for(N in g)if(O.call(g,N))if(Z=g[N],W(Z)&&(Z=Z.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&N.indexOf(this.stringify.convertAttKey)===0)F=this.attribute(N.substr(this.stringify.convertAttKey.length),Z);else if(!this.options.separateArrayItems&&Array.isArray(Z)&&k(Z))F=this.dummy();else if(p(Z)&&k(Z))F=this.element(N);else if(!this.options.keepNullNodes&&Z==null)F=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Z))for(v=0,I=Z.length;v<I;v++)h=Z[v],y={},y[N]=h,F=this.element(y);else p(Z)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&N.indexOf(this.stringify.convertTextKey)===0?F=this.element(Z):(F=this.element(N),F.element(Z)):F=this.element(N,Z)}else!this.options.keepNullNodes&&G===null?F=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&g.indexOf(this.stringify.convertTextKey)===0?F=this.text(G):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&g.indexOf(this.stringify.convertCDataKey)===0?F=this.cdata(G):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&g.indexOf(this.stringify.convertCommentKey)===0?F=this.comment(G):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&g.indexOf(this.stringify.convertRawKey)===0?F=this.raw(G):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&g.indexOf(this.stringify.convertPIKey)===0?F=this.instruction(g.substr(this.stringify.convertPIKey.length),G):F=this.node(g,_,G);if(F==null)throw new Error("Could not create any elements with: "+g+". "+this.debugInfo());return F},l.prototype.insertBefore=function(g,_,G){var y,h,z,v,N;if(g?.type)return z=g,v=_,z.setParent(this),v?(h=children.indexOf(v),N=children.splice(h),children.push(z),Array.prototype.push.apply(children,N)):children.push(z),z;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(g));return h=this.parent.children.indexOf(this),N=this.parent.children.splice(h),y=this.parent.element(g,_,G),Array.prototype.push.apply(this.parent.children,N),y},l.prototype.insertAfter=function(g,_,G){var y,h,z;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(g));return h=this.parent.children.indexOf(this),z=this.parent.children.splice(h+1),y=this.parent.element(g,_,G),Array.prototype.push.apply(this.parent.children,z),y},l.prototype.remove=function(){var g,_;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return g=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[g,g-g+1].concat(_=[])),this.parent},l.prototype.node=function(g,_,G){var y,h;return g!=null&&(g=f(g)),_||(_={}),_=f(_),p(_)||(h=[_,G],G=h[0],_=h[1]),y=new a(this,g,_),G!=null&&y.text(G),this.children.push(y),y},l.prototype.text=function(g){var _;return p(g)&&this.element(g),_=new w(this,g),this.children.push(_),this},l.prototype.cdata=function(g){var _;return _=new e(this,g),this.children.push(_),this},l.prototype.comment=function(g){var _;return _=new s(this,g),this.children.push(_),this},l.prototype.commentBefore=function(g){var _,G,y;return G=this.parent.children.indexOf(this),y=this.parent.children.splice(G),_=this.parent.comment(g),Array.prototype.push.apply(this.parent.children,y),this},l.prototype.commentAfter=function(g){var _,G,y;return G=this.parent.children.indexOf(this),y=this.parent.children.splice(G+1),_=this.parent.comment(g),Array.prototype.push.apply(this.parent.children,y),this},l.prototype.raw=function(g){var _;return _=new m(this,g),this.children.push(_),this},l.prototype.dummy=function(){var g;return g=new n(this),g},l.prototype.instruction=function(g,_){var G,y,h,z,v;if(g!=null&&(g=f(g)),_!=null&&(_=f(_)),Array.isArray(g))for(z=0,v=g.length;z<v;z++)G=g[z],this.instruction(G);else if(p(g))for(G in g)O.call(g,G)&&(y=g[G],this.instruction(G,y));else W(_)&&(_=_.apply()),h=new x(this,g,_),this.children.push(h);return this},l.prototype.instructionBefore=function(g,_){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y),G=this.parent.instruction(g,_),Array.prototype.push.apply(this.parent.children,h),this},l.prototype.instructionAfter=function(g,_){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y+1),G=this.parent.instruction(g,_),Array.prototype.push.apply(this.parent.children,h),this},l.prototype.declaration=function(g,_,G){var y,h;return y=this.document(),h=new i(y,g,_,G),y.children.length===0?y.children.unshift(h):y.children[0].type===o.Declaration?y.children[0]=h:y.children.unshift(h),y.root()||y},l.prototype.dtd=function(g,_){var G,y,h,z,v,N,F,V,I,E;for(y=this.document(),h=new r(y,g,_),I=y.children,z=v=0,F=I.length;v<F;z=++v)if(G=I[z],G.type===o.DocType)return y.children[z]=h,h;for(E=y.children,z=N=0,V=E.length;N<V;z=++N)if(G=E[z],G.isRoot)return y.children.splice(z,0,h),h;return y.children.push(h),h},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 g;for(g=this;g;){if(g.type===o.Document)return g.rootObject;if(g.isRoot)return g;g=g.parent}},l.prototype.document=function(){var g;for(g=this;g;){if(g.type===o.Document)return g;g=g.parent}},l.prototype.end=function(g){return this.document().end(g)},l.prototype.prev=function(){var g;if(g=this.parent.children.indexOf(this),g<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[g-1]},l.prototype.next=function(){var g;if(g=this.parent.children.indexOf(this),g===-1||g===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[g+1]},l.prototype.importDocument=function(g){var _;return _=g.root().clone(),_.parent=this,_.isRoot=!1,this.children.push(_),this},l.prototype.debugInfo=function(g){var _,G;return g=g||this.name,g==null&&!((_=this.parent)!=null&&_.name)?"":g==null?"parent: <"+this.parent.name+">":(G=this.parent)!=null&&G.name?"node: <"+g+">, parent: <"+this.parent.name+">":"node: <"+g+">"},l.prototype.ele=function(g,_,G){return this.element(g,_,G)},l.prototype.nod=function(g,_,G){return this.node(g,_,G)},l.prototype.txt=function(g){return this.text(g)},l.prototype.dat=function(g){return this.cdata(g)},l.prototype.com=function(g){return this.comment(g)},l.prototype.ins=function(g,_){return this.instruction(g,_)},l.prototype.doc=function(){return this.document()},l.prototype.dec=function(g,_,G){return this.declaration(g,_,G)},l.prototype.e=function(g,_,G){return this.element(g,_,G)},l.prototype.n=function(g,_,G){return this.node(g,_,G)},l.prototype.t=function(g){return this.text(g)},l.prototype.d=function(g){return this.cdata(g)},l.prototype.c=function(g){return this.comment(g)},l.prototype.r=function(g){return this.raw(g)},l.prototype.i=function(g,_){return this.instruction(g,_)},l.prototype.u=function(){return this.up()},l.prototype.importXMLBuilder=function(g){return this.importDocument(g)},l.prototype.replaceChild=function(g,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.removeChild=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.appendChild=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.hasChildNodes=function(){return this.children.length!==0},l.prototype.cloneNode=function(g){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(g,_){return!0},l.prototype.hasAttributes=function(){return this.attribs.length!==0},l.prototype.compareDocumentPosition=function(g){var _,G;return _=this,_===g?0:this.document()!==g.document()?(G=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?G|=t.Preceding:G|=t.Following,G):_.isAncestor(g)?t.Contains|t.Preceding:_.isDescendant(g)?t.Contains|t.Following:_.isPreceding(g)?t.Preceding:t.Following},l.prototype.isSameNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupPrefix=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isDefaultNamespace=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupNamespaceURI=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(g){var _,G,y;if(g.nodeType!==this.nodeType||g.children.length!==this.children.length)return!1;for(_=G=0,y=this.children.length-1;0<=y?G<=y:G>=y;_=0<=y?++G:--G)if(!this.children[_].isEqualNode(g.children[_]))return!1;return!0},l.prototype.getFeature=function(g,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setUserData=function(g,_,G){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getUserData=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.contains=function(g){return g?g===this||this.isDescendant(g):!1},l.prototype.isDescendant=function(g){var _,G,y,h,z;for(z=this.children,y=0,h=z.length;y<h;y++)if(_=z[y],g===_||(G=_.isDescendant(g),G))return!0;return!1},l.prototype.isAncestor=function(g){return g.isDescendant(this)},l.prototype.isPreceding=function(g){var _,G;return _=this.treePosition(g),G=this.treePosition(this),_===-1||G===-1?!1:_<G},l.prototype.isFollowing=function(g){var _,G;return _=this.treePosition(g),G=this.treePosition(this),_===-1||G===-1?!1:_>G},l.prototype.treePosition=function(g){var _,G;return G=0,_=!1,this.foreachTreeNode(this.document(),function(y){if(G++,!_&&y===g)return _=!0}),_?G:-1},l.prototype.foreachTreeNode=function(g,_){var G,y,h,z,v;for(g||(g=this.document()),z=g.children,y=0,h=z.length;y<h;y++){if(G=z[y],v=_(G))return v;if(v=this.foreachTreeNode(G,_),v)return v}},l}()}).call(Ja)});var ir=S((Da,$a)=>{(function(){var t,o=function(s,i){return function(){return s.apply(i,arguments)}},e={}.hasOwnProperty;$a.exports=t=function(){function s(i){this.assertLegalName=o(this.assertLegalName,this),this.assertLegalChar=o(this.assertLegalChar,this);var r,n,a;i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),n=i.stringify||{};for(r in n)e.call(n,r)&&(a=n[r],this[r]=a)}return s.prototype.name=function(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")},s.prototype.text=function(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))},s.prototype.cdata=function(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))},s.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)},s.prototype.raw=function(i){return this.options.noValidation?i:""+i||""},s.prototype.attValue=function(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))},s.prototype.insTarget=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.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)},s.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},s.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)},s.prototype.xmlStandalone=function(i){return this.options.noValidation?i:i?"yes":"no"},s.prototype.dtdPubID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdSysID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdElementValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdAttType=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdAttDefault=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdEntityValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdNData=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.convertAttKey="@",s.prototype.convertPIKey="?",s.prototype.convertTextKey="#text",s.prototype.convertCDataKey="#cdata",s.prototype.convertCommentKey="#comment",s.prototype.convertRawKey="#raw",s.prototype.assertLegalChar=function(i){var r,n;if(this.options.noValidation)return i;if(r="",this.options.version==="1.0"){if(r=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=i.match(r))throw new Error("Invalid character in string: "+i+" at index "+n.index)}else if(this.options.version==="1.1"&&(r=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=i.match(r)))throw new Error("Invalid character in string: "+i+" at index "+n.index);return i},s.prototype.assertLegalName=function(i){var r;if(this.options.noValidation)return i;if(this.assertLegalChar(i),r=/^([: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(r))throw new Error("Invalid character in name");return i},s.prototype.textEscape=function(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},s.prototype.attEscape=function(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},s}()}).call(Da)});var ze=S((Ha,oc)=>{(function(){oc.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(Ha)});var rr=S((tc,ec)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,f,k,W,p={}.hasOwnProperty;W=Zo().assign,t=U(),c=ds(),u=zs(),e=gs(),s=Os(),x=ms(),w=ks(),f=Ks(),m=Gs(),d=sr(),i=ws(),r=hs(),n=ys(),a=fs(),o=ze(),ec.exports=k=function(){function q(O){var l,g,_;O||(O={}),this.options=O,g=O.writer||{};for(l in g)p.call(g,l)&&(_=g[l],this["_"+l]=this[l],this[l]=_)}return q.prototype.filterOptions=function(O){var l,g,_,G,y,h,z,v;return O||(O={}),O=W({},this.options,O),l={writer:this},l.pretty=O.pretty||!1,l.allowEmpty=O.allowEmpty||!1,l.indent=(g=O.indent)!=null?g:" ",l.newline=(_=O.newline)!=null?_:`
3
+ `,l.offset=(G=O.offset)!=null?G:0,l.dontPrettyTextNodes=(y=(h=O.dontPrettyTextNodes)!=null?h:O.dontprettytextnodes)!=null?y:0,l.spaceBeforeSlash=(z=(v=O.spaceBeforeSlash)!=null?v:O.spacebeforeslash)!=null?z:"",l.spaceBeforeSlash===!0&&(l.spaceBeforeSlash=" "),l.suppressPrettyCount=0,l.user={},l.state=o.None,l},q.prototype.indent=function(O,l,g){var _;return!l.pretty||l.suppressPrettyCount?"":l.pretty&&(_=(g||0)+l.offset+1,_>0)?new Array(_).join(l.indent):""},q.prototype.endline=function(O,l,g){return!l.pretty||l.suppressPrettyCount?"":l.newline},q.prototype.attribute=function(O,l,g){var _;return this.openAttribute(O,l,g),_=" "+O.name+'="'+O.value+'"',this.closeAttribute(O,l,g),_},q.prototype.cdata=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<![CDATA[",l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+="]]>"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.comment=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!-- ",l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=" -->"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.declaration=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<?xml",l.state=o.InsideTag,_+=' version="'+O.version+'"',O.encoding!=null&&(_+=' encoding="'+O.encoding+'"'),O.standalone!=null&&(_+=' standalone="'+O.standalone+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+"?>",_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.docType=function(O,l,g){var _,G,y,h,z;if(g||(g=0),this.openNode(O,l,g),l.state=o.OpenTag,h=this.indent(O,l,g),h+="<!DOCTYPE "+O.root().name,O.pubID&&O.sysID?h+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(h+=' SYSTEM "'+O.sysID+'"'),O.children.length>0){for(h+=" [",h+=this.endline(O,l,g),l.state=o.InsideTag,z=O.children,G=0,y=z.length;G<y;G++)_=z[G],h+=this.writeChildNode(_,l,g+1);l.state=o.CloseTag,h+="]"}return l.state=o.CloseTag,h+=l.spaceBeforeSlash+">",h+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),h},q.prototype.element=function(O,l,g){var _,G,y,h,z,v,N,F,V,I,E,X,Z,Go;g||(g=0),I=!1,E="",this.openNode(O,l,g),l.state=o.OpenTag,E+=this.indent(O,l,g)+"<"+O.name,X=O.attribs;for(V in X)p.call(X,V)&&(_=X[V],E+=this.attribute(_,l,g));if(y=O.children.length,h=y===0?null:O.children[0],y===0||O.children.every(function(ro){return(ro.type===t.Text||ro.type===t.Raw)&&ro.value===""}))l.allowEmpty?(E+=">",l.state=o.CloseTag,E+="</"+O.name+">"+this.endline(O,l,g)):(l.state=o.CloseTag,E+=l.spaceBeforeSlash+"/>"+this.endline(O,l,g));else if(l.pretty&&y===1&&(h.type===t.Text||h.type===t.Raw)&&h.value!=null)E+=">",l.state=o.InsideTag,l.suppressPrettyCount++,I=!0,E+=this.writeChildNode(h,l,g+1),l.suppressPrettyCount--,I=!1,l.state=o.CloseTag,E+="</"+O.name+">"+this.endline(O,l,g);else{if(l.dontPrettyTextNodes){for(Z=O.children,z=0,N=Z.length;z<N;z++)if(G=Z[z],(G.type===t.Text||G.type===t.Raw)&&G.value!=null){l.suppressPrettyCount++,I=!0;break}}for(E+=">"+this.endline(O,l,g),l.state=o.InsideTag,Go=O.children,v=0,F=Go.length;v<F;v++)G=Go[v],E+=this.writeChildNode(G,l,g+1);l.state=o.CloseTag,E+=this.indent(O,l,g)+"</"+O.name+">",I&&l.suppressPrettyCount--,E+=this.endline(O,l,g),l.state=o.None}return this.closeNode(O,l,g),E},q.prototype.writeChildNode=function(O,l,g){switch(O.type){case t.CData:return this.cdata(O,l,g);case t.Comment:return this.comment(O,l,g);case t.Element:return this.element(O,l,g);case t.Raw:return this.raw(O,l,g);case t.Text:return this.text(O,l,g);case t.ProcessingInstruction:return this.processingInstruction(O,l,g);case t.Dummy:return"";case t.Declaration:return this.declaration(O,l,g);case t.DocType:return this.docType(O,l,g);case t.AttributeDeclaration:return this.dtdAttList(O,l,g);case t.ElementDeclaration:return this.dtdElement(O,l,g);case t.EntityDeclaration:return this.dtdEntity(O,l,g);case t.NotationDeclaration:return this.dtdNotation(O,l,g);default:throw new Error("Unknown XML node type: "+O.constructor.name)}},q.prototype.processingInstruction=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<?",l.state=o.InsideTag,_+=O.target,O.value&&(_+=" "+O.value),l.state=o.CloseTag,_+=l.spaceBeforeSlash+"?>",_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.raw=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g),l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.text=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g),l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.dtdAttList=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ATTLIST",l.state=o.InsideTag,_+=" "+O.elementName+" "+O.attributeName+" "+O.attributeType,O.defaultValueType!=="#DEFAULT"&&(_+=" "+O.defaultValueType),O.defaultValue&&(_+=' "'+O.defaultValue+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.dtdElement=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ELEMENT",l.state=o.InsideTag,_+=" "+O.name+" "+O.value,l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.dtdEntity=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ENTITY",l.state=o.InsideTag,O.pe&&(_+=" %"),_+=" "+O.name,O.value?_+=' "'+O.value+'"':(O.pubID&&O.sysID?_+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(_+=' SYSTEM "'+O.sysID+'"'),O.nData&&(_+=" NDATA "+O.nData)),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.dtdNotation=function(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!NOTATION",l.state=o.InsideTag,_+=" "+O.name,O.pubID&&O.sysID?_+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.pubID?_+=' PUBLIC "'+O.pubID+'"':O.sysID&&(_+=' SYSTEM "'+O.sysID+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_},q.prototype.openNode=function(O,l,g){},q.prototype.closeNode=function(O,l,g){},q.prototype.openAttribute=function(O,l,g){},q.prototype.closeAttribute=function(O,l,g){},q}()}).call(tc)});var bs=S((sc,ic)=>{(function(){var t,o,e=function(i,r){for(var n in r)s.call(r,n)&&(i[n]=r[n]);function a(){this.constructor=i}return a.prototype=r.prototype,i.prototype=new a,i.__super__=r.prototype,i},s={}.hasOwnProperty;o=rr(),ic.exports=t=function(i){e(r,i);function r(n){r.__super__.constructor.call(this,n)}return r.prototype.document=function(n,a){var c,u,d,x,m;for(a=this.filterOptions(a),x="",m=n.children,u=0,d=m.length;u<d;u++)c=m[u],x+=this.writeChildNode(c,a,0);return a.pretty&&x.slice(-a.newline.length)===a.newline&&(x=x.slice(0,-a.newline.length)),x},r}(o)}).call(sc)});var nr=S((rc,nc)=>{(function(){var t,o,e,s,i,r,n,a,c=function(d,x){for(var m in x)u.call(x,m)&&(d[m]=x[m]);function w(){this.constructor=d}return w.prototype=x.prototype,d.prototype=new w,d.__super__=x.prototype,d},u={}.hasOwnProperty;a=Zo().isPlainObject,e=tr(),o=ca(),i=ho(),t=U(),n=ir(),r=bs(),nc.exports=s=function(d){c(x,d);function x(m){x.__super__.constructor.call(this,null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new o,m||(m={}),m.writer||(m.writer=new r),this.options=m,this.stringify=new n(m)}return Object.defineProperty(x.prototype,"implementation",{value:new e}),Object.defineProperty(x.prototype,"doctype",{get:function(){var m,w,f,k;for(k=this.children,w=0,f=k.length;w<f;w++)if(m=k[w],m.type===t.DocType)return m;return null}}),Object.defineProperty(x.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(x.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(x.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(x.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(x.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(x.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(x.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(x.prototype,"origin",{get:function(){return null}}),Object.defineProperty(x.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(x.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(x.prototype,"contentType",{get:function(){return null}}),x.prototype.end=function(m){var w;return w={},m?a(m)&&(w=m,m=this.options.writer):m=this.options.writer,m.document(this,m.filterOptions(w))},x.prototype.toString=function(m){return this.options.writer.document(this,this.options.writer.filterOptions(m))},x.prototype.createElement=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createTextNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createComment=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createCDATASection=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createProcessingInstruction=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createAttribute=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createEntityReference=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.getElementsByTagName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.importNode=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createElementNS=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createAttributeNS=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.getElementsByTagNameNS=function(m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.getElementById=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.adoptNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.renameNode=function(m,w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.getElementsByClassName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createEvent=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createNodeIterator=function(m,w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.createTreeWalker=function(m,w,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},x}(i)}).call(rc)});var lc=S((ac,cc)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,f,k,W,p,q,O,l,g,_,G,y={}.hasOwnProperty;G=Zo(),g=G.isObject,l=G.isFunction,_=G.isPlainObject,O=G.getValue,t=U(),x=nr(),w=ms(),s=gs(),i=Os(),k=ks(),q=Ks(),f=Gs(),u=ds(),d=zs(),r=ws(),a=ys(),n=hs(),c=fs(),e=er(),p=ir(),W=bs(),o=ze(),cc.exports=m=function(){function h(z,v,N){var F;this.name="?xml",this.type=t.Document,z||(z={}),F={},z.writer?_(z.writer)&&(F=z.writer,z.writer=new W):z.writer=new W,this.options=z,this.writer=z.writer,this.writerOptions=this.writer.filterOptions(F),this.stringify=new p(z),this.onDataCallback=v||function(){},this.onEndCallback=N||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return h.prototype.createChildNode=function(z){var v,N,F,V,I,E,X,Z;switch(z.type){case t.CData:this.cdata(z.value);break;case t.Comment:this.comment(z.value);break;case t.Element:F={},X=z.attribs;for(N in X)y.call(X,N)&&(v=X[N],F[N]=v.value);this.node(z.name,F);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(z.value);break;case t.Text:this.text(z.value);break;case t.ProcessingInstruction:this.instruction(z.target,z.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+z.constructor.name)}for(Z=z.children,I=0,E=Z.length;I<E;I++)V=Z[I],this.createChildNode(V),V.type===t.Element&&this.up();return this},h.prototype.dummy=function(){return this},h.prototype.node=function(z,v,N){var F;if(z==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(z));return this.openCurrent(),z=O(z),v==null&&(v={}),v=O(v),g(v)||(F=[v,N],N=F[0],v=F[1]),this.currentNode=new w(this,z,v),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,N!=null&&this.text(N),this},h.prototype.element=function(z,v,N){var F,V,I,E,X,Z;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(z)||g(z)||l(z))for(E=this.options.noValidation,this.options.noValidation=!0,Z=new x(this.options).element("TEMP_ROOT"),Z.element(z),this.options.noValidation=E,X=Z.children,V=0,I=X.length;V<I;V++)F=X[V],this.createChildNode(F),F.type===t.Element&&this.up();else this.node(z,v,N);return this},h.prototype.attribute=function(z,v){var N,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(z));if(z!=null&&(z=O(z)),g(z))for(N in z)y.call(z,N)&&(F=z[N],this.attribute(N,F));else l(v)&&(v=v.apply()),this.options.keepNullAttributes&&v==null?this.currentNode.attribs[z]=new e(this,z,""):v!=null&&(this.currentNode.attribs[z]=new e(this,z,v));return this},h.prototype.text=function(z){var v;return this.openCurrent(),v=new q(this,z),this.onData(this.writer.text(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.cdata=function(z){var v;return this.openCurrent(),v=new s(this,z),this.onData(this.writer.cdata(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.comment=function(z){var v;return this.openCurrent(),v=new i(this,z),this.onData(this.writer.comment(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.raw=function(z){var v;return this.openCurrent(),v=new k(this,z),this.onData(this.writer.raw(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.instruction=function(z,v){var N,F,V,I,E;if(this.openCurrent(),z!=null&&(z=O(z)),v!=null&&(v=O(v)),Array.isArray(z))for(N=0,I=z.length;N<I;N++)F=z[N],this.instruction(F);else if(g(z))for(F in z)y.call(z,F)&&(V=z[F],this.instruction(F,V));else l(v)&&(v=v.apply()),E=new f(this,z,v),this.onData(this.writer.processingInstruction(E,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},h.prototype.declaration=function(z,v,N){var F;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return F=new u(this,z,v,N),this.onData(this.writer.declaration(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.doctype=function(z,v,N){if(this.openCurrent(),z==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,v,N),this.currentNode.rootNodeName=z,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},h.prototype.dtdElement=function(z,v){var N;return this.openCurrent(),N=new n(this,z,v),this.onData(this.writer.dtdElement(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.attList=function(z,v,N,F,V){var I;return this.openCurrent(),I=new r(this,z,v,N,F,V),this.onData(this.writer.dtdAttList(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.entity=function(z,v){var N;return this.openCurrent(),N=new a(this,!1,z,v),this.onData(this.writer.dtdEntity(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.pEntity=function(z,v){var N;return this.openCurrent(),N=new a(this,!0,z,v),this.onData(this.writer.dtdEntity(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.notation=function(z,v){var N;return this.openCurrent(),N=new c(this,z,v),this.onData(this.writer.dtdNotation(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.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},h.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},h.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},h.prototype.openNode=function(z){var v,N,F,V;if(!z.isOpen){if(!this.root&&this.currentLevel===0&&z.type===t.Element&&(this.root=z),N="",z.type===t.Element){this.writerOptions.state=o.OpenTag,N=this.writer.indent(z,this.writerOptions,this.currentLevel)+"<"+z.name,V=z.attribs;for(F in V)y.call(V,F)&&(v=V[F],N+=this.writer.attribute(v,this.writerOptions,this.currentLevel));N+=(z.children?">":"/>")+this.writer.endline(z,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,N=this.writer.indent(z,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+z.rootNodeName,z.pubID&&z.sysID?N+=' PUBLIC "'+z.pubID+'" "'+z.sysID+'"':z.sysID&&(N+=' SYSTEM "'+z.sysID+'"'),z.children?(N+=" [",this.writerOptions.state=o.InsideTag):(this.writerOptions.state=o.CloseTag,N+=">"),N+=this.writer.endline(z,this.writerOptions,this.currentLevel);return this.onData(N,this.currentLevel),z.isOpen=!0}},h.prototype.closeNode=function(z){var v;if(!z.isClosed)return v="",this.writerOptions.state=o.CloseTag,z.type===t.Element?v=this.writer.indent(z,this.writerOptions,this.currentLevel)+"</"+z.name+">"+this.writer.endline(z,this.writerOptions,this.currentLevel):v=this.writer.indent(z,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(z,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(v,this.currentLevel),z.isClosed=!0},h.prototype.onData=function(z,v){return this.documentStarted=!0,this.onDataCallback(z,v+1)},h.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},h.prototype.debugInfo=function(z){return z==null?"":"node: <"+z+">"},h.prototype.ele=function(){return this.element.apply(this,arguments)},h.prototype.nod=function(z,v,N){return this.node(z,v,N)},h.prototype.txt=function(z){return this.text(z)},h.prototype.dat=function(z){return this.cdata(z)},h.prototype.com=function(z){return this.comment(z)},h.prototype.ins=function(z,v){return this.instruction(z,v)},h.prototype.dec=function(z,v,N){return this.declaration(z,v,N)},h.prototype.dtd=function(z,v,N){return this.doctype(z,v,N)},h.prototype.e=function(z,v,N){return this.element(z,v,N)},h.prototype.n=function(z,v,N){return this.node(z,v,N)},h.prototype.t=function(z){return this.text(z)},h.prototype.d=function(z){return this.cdata(z)},h.prototype.c=function(z){return this.comment(z)},h.prototype.r=function(z){return this.raw(z)},h.prototype.i=function(z,v){return this.instruction(z,v)},h.prototype.att=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.a=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.ent=function(z,v){return this.entity(z,v)},h.prototype.pent=function(z,v){return this.pEntity(z,v)},h.prototype.not=function(z,v){return this.notation(z,v)},h}()}).call(ac)});var xc=S((uc,_c)=>{(function(){var t,o,e,s,i=function(n,a){for(var c in a)r.call(a,c)&&(n[c]=a[c]);function u(){this.constructor=n}return u.prototype=a.prototype,n.prototype=new u,n.__super__=a.prototype,n},r={}.hasOwnProperty;t=U(),s=rr(),o=ze(),_c.exports=e=function(n){i(a,n);function a(c,u){this.stream=c,a.__super__.constructor.call(this,u)}return a.prototype.endline=function(c,u,d){return c.isLastRootNode&&u.state===o.CloseTag?"":a.__super__.endline.call(this,c,u,d)},a.prototype.document=function(c,u){var d,x,m,w,f,k,W,p,q;for(W=c.children,x=m=0,f=W.length;m<f;x=++m)d=W[x],d.isLastRootNode=x===c.children.length-1;for(u=this.filterOptions(u),p=c.children,q=[],w=0,k=p.length;w<k;w++)d=p[w],q.push(this.writeChildNode(d,u,0));return q},a.prototype.attribute=function(c,u,d){return this.stream.write(a.__super__.attribute.call(this,c,u,d))},a.prototype.cdata=function(c,u,d){return this.stream.write(a.__super__.cdata.call(this,c,u,d))},a.prototype.comment=function(c,u,d){return this.stream.write(a.__super__.comment.call(this,c,u,d))},a.prototype.declaration=function(c,u,d){return this.stream.write(a.__super__.declaration.call(this,c,u,d))},a.prototype.docType=function(c,u,d){var x,m,w,f;if(d||(d=0),this.openNode(c,u,d),u.state=o.OpenTag,this.stream.write(this.indent(c,u,d)),this.stream.write("<!DOCTYPE "+c.root().name),c.pubID&&c.sysID?this.stream.write(' PUBLIC "'+c.pubID+'" "'+c.sysID+'"'):c.sysID&&this.stream.write(' SYSTEM "'+c.sysID+'"'),c.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(c,u,d)),u.state=o.InsideTag,f=c.children,m=0,w=f.length;m<w;m++)x=f[m],this.writeChildNode(x,u,d+1);u.state=o.CloseTag,this.stream.write("]")}return u.state=o.CloseTag,this.stream.write(u.spaceBeforeSlash+">"),this.stream.write(this.endline(c,u,d)),u.state=o.None,this.closeNode(c,u,d)},a.prototype.element=function(c,u,d){var x,m,w,f,k,W,p,q,O,l;d||(d=0),this.openNode(c,u,d),u.state=o.OpenTag,this.stream.write(this.indent(c,u,d)+"<"+c.name),O=c.attribs;for(p in O)r.call(O,p)&&(x=O[p],this.attribute(x,u,d));if(w=c.children.length,f=w===0?null:c.children[0],w===0||c.children.every(function(g){return(g.type===t.Text||g.type===t.Raw)&&g.value===""}))u.allowEmpty?(this.stream.write(">"),u.state=o.CloseTag,this.stream.write("</"+c.name+">")):(u.state=o.CloseTag,this.stream.write(u.spaceBeforeSlash+"/>"));else if(u.pretty&&w===1&&(f.type===t.Text||f.type===t.Raw)&&f.value!=null)this.stream.write(">"),u.state=o.InsideTag,u.suppressPrettyCount++,q=!0,this.writeChildNode(f,u,d+1),u.suppressPrettyCount--,q=!1,u.state=o.CloseTag,this.stream.write("</"+c.name+">");else{for(this.stream.write(">"+this.endline(c,u,d)),u.state=o.InsideTag,l=c.children,k=0,W=l.length;k<W;k++)m=l[k],this.writeChildNode(m,u,d+1);u.state=o.CloseTag,this.stream.write(this.indent(c,u,d)+"</"+c.name+">")}return this.stream.write(this.endline(c,u,d)),u.state=o.None,this.closeNode(c,u,d)},a.prototype.processingInstruction=function(c,u,d){return this.stream.write(a.__super__.processingInstruction.call(this,c,u,d))},a.prototype.raw=function(c,u,d){return this.stream.write(a.__super__.raw.call(this,c,u,d))},a.prototype.text=function(c,u,d){return this.stream.write(a.__super__.text.call(this,c,u,d))},a.prototype.dtdAttList=function(c,u,d){return this.stream.write(a.__super__.dtdAttList.call(this,c,u,d))},a.prototype.dtdElement=function(c,u,d){return this.stream.write(a.__super__.dtdElement.call(this,c,u,d))},a.prototype.dtdEntity=function(c,u,d){return this.stream.write(a.__super__.dtdEntity.call(this,c,u,d))},a.prototype.dtdNotation=function(c,u,d){return this.stream.write(a.__super__.dtdNotation.call(this,c,u,d))},a}(s)}).call(uc)});var gc=S((mc,ct)=>{(function(){var t,o,e,s,i,r,n,a,c,u;u=Zo(),a=u.assign,c=u.isFunction,e=tr(),s=nr(),i=lc(),n=bs(),r=xc(),t=U(),o=ze(),ct.exports.create=function(d,x,m,w){var f,k;if(d==null)throw new Error("Root element needs a name.");return w=a({},x,m,w),f=new s(w),k=f.element(d),w.headless||(f.declaration(w),(w.pubID!=null||w.sysID!=null)&&f.dtd(w)),k},ct.exports.begin=function(d,x,m){var w;return c(d)&&(w=[d,x],x=w[0],m=w[1],d={}),x?new i(d,x,m):new s(d)},ct.exports.stringWriter=function(d){return new n(d)},ct.exports.streamWriter=function(d,x){return new r(d,x)},ct.exports.implementation=new e,ct.exports.nodeType=t,ct.exports.writerState=o}).call(mc)});var Oc=S(ar=>{(function(){"use strict";var t,o,e,s,i,r={}.hasOwnProperty;t=gc(),o=_s().defaults,s=function(n){return typeof n=="string"&&(n.indexOf("&")>=0||n.indexOf(">")>=0||n.indexOf("<")>=0)},i=function(n){return"<![CDATA["+e(n)+"]]>"},e=function(n){return n.replace("]]>","]]]]><![CDATA[>")},ar.Builder=function(){function n(a){var c,u,d;this.options={},u=o["0.2"];for(c in u)r.call(u,c)&&(d=u[c],this.options[c]=d);for(c in a)r.call(a,c)&&(d=a[c],this.options[c]=d)}return n.prototype.buildObject=function(a){var c,u,d,x,m;return c=this.options.attrkey,u=this.options.charkey,Object.keys(a).length===1&&this.options.rootName===o["0.2"].rootName?(m=Object.keys(a)[0],a=a[m]):m=this.options.rootName,d=function(w){return function(f,k){var W,p,q,O,l,g;if(typeof k!="object")w.options.cdata&&s(k)?f.raw(i(k)):f.txt(k);else if(Array.isArray(k)){for(O in k)if(r.call(k,O)){p=k[O];for(l in p)q=p[l],f=d(f.ele(l),q).up()}}else for(l in k)if(r.call(k,l))if(p=k[l],l===c){if(typeof p=="object")for(W in p)g=p[W],f=f.att(W,g)}else if(l===u)w.options.cdata&&s(p)?f=f.raw(i(p)):f=f.txt(p);else if(Array.isArray(p))for(O in p)r.call(p,O)&&(q=p[O],typeof q=="string"?w.options.cdata&&s(q)?f=f.ele(l).raw(i(q)).up():f=f.ele(l,q).up():f=d(f.ele(l),q).up());else typeof p=="object"?f=d(f.ele(l),p).up():typeof p=="string"&&w.options.cdata&&s(p)?f=f.ele(l).raw(i(p)).up():(p==null&&(p=""),f=f.ele(l,p.toString()).up());return f}}(this),x=t.create(m,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),d(x,a).end(this.options.renderOpts)},n}()}).call(ar)});var dc=S(vs=>{(function(t){t.parser=function(b,K){return new e(b,K)},t.SAXParser=e,t.SAXStream=u,t.createStream=c,t.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function e(b,K){if(!(this instanceof e))return new e(b,K);var M=this;i(M),M.q=M.c="",M.bufferCheckPosition=t.MAX_BUFFER_LENGTH,M.opt=K||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!b,M.noscript=!!(b||M.opt.noscript),M.state=y.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(f)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),z(M,"onready")}Object.create||(Object.create=function(b){function K(){}K.prototype=b;var M=new K;return M}),Object.keys||(Object.keys=function(b){var K=[];for(var M in b)b.hasOwnProperty(M)&&K.push(M);return K});function s(b){for(var K=Math.max(t.MAX_BUFFER_LENGTH,10),M=0,C=0,L=o.length;C<L;C++){var R=b[o[C]].length;if(R>K)switch(o[C]){case"textNode":N(b);break;case"cdata":v(b,"oncdata",b.cdata),b.cdata="";break;case"script":v(b,"onscript",b.script),b.script="";break;default:V(b,"Max buffer length exceeded: "+o[C])}M=Math.max(M,R)}var J=t.MAX_BUFFER_LENGTH-M;b.bufferCheckPosition=J+b.position}function i(b){for(var K=0,M=o.length;K<M;K++)b[o[K]]=""}function r(b){N(b),b.cdata!==""&&(v(b,"oncdata",b.cdata),b.cdata=""),b.script!==""&&(v(b,"onscript",b.script),b.script="")}e.prototype={end:function(){I(this)},write:Nt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){r(this)}};var n;try{n=require("stream").Stream}catch{n=function(){}}n||(n=function(){});var a=t.EVENTS.filter(function(b){return b!=="error"&&b!=="end"});function c(b,K){return new u(b,K)}function u(b,K){if(!(this instanceof u))return new u(b,K);n.apply(this),this._parser=new e(b,K),this.writable=!0,this.readable=!0;var M=this;this._parser.onend=function(){M.emit("end")},this._parser.onerror=function(C){M.emit("error",C),M._parser.error=null},this._decoder=null,a.forEach(function(C){Object.defineProperty(M,"on"+C,{get:function(){return M._parser["on"+C]},set:function(L){if(!L)return M.removeAllListeners(C),M._parser["on"+C]=L,L;M.on(C,L)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(n.prototype,{constructor:{value:u}}),u.prototype.write=function(b){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(b)){if(!this._decoder){var K=require("string_decoder").StringDecoder;this._decoder=new K("utf8")}b=this._decoder.write(b)}return this._parser.write(b.toString()),this.emit("data",b),!0},u.prototype.end=function(b){return b&&b.length&&this.write(b),this._parser.end(),!0},u.prototype.on=function(b,K){var M=this;return!M._parser["on"+b]&&a.indexOf(b)!==-1&&(M._parser["on"+b]=function(){var C=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);C.splice(0,0,b),M.emit.apply(M,C)}),n.prototype.on.call(M,b,K)};var d="[CDATA[",x="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",w="http://www.w3.org/2000/xmlns/",f={xml:m,xmlns:w},k=/[:_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]/,W=/[:_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-]/,p=/[#:_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]/,q=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function O(b){return b===" "||b===`
4
+ `||b==="\r"||b===" "}function l(b){return b==='"'||b==="'"}function g(b){return b===">"||O(b)}function _(b,K){return b.test(K)}function G(b,K){return!_(b,K)}var y=0;t.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(b){var K=t.ENTITIES[b],M=typeof K=="number"?String.fromCharCode(K):K;t.ENTITIES[b]=M});for(var h in t.STATE)t.STATE[t.STATE[h]]=h;y=t.STATE;function z(b,K,M){b[K]&&b[K](M)}function v(b,K,M){b.textNode&&N(b),z(b,K,M)}function N(b){b.textNode=F(b.opt,b.textNode),b.textNode&&z(b,"ontext",b.textNode),b.textNode=""}function F(b,K){return b.trim&&(K=K.trim()),b.normalize&&(K=K.replace(/\s+/g," ")),K}function V(b,K){return N(b),b.trackPosition&&(K+=`
5
5
  Line: `+b.line+`
6
6
  Column: `+b.column+`
7
- Char: `+b.c),K=new Error(K),b.error=K,f(b,"onerror",K),b}function I(b){return b.sawRoot&&!b.closedRoot&&E(b,"Unclosed root tag"),b.state!==y.BEGIN&&b.state!==y.BEGIN_WHITESPACE&&b.state!==y.TEXT&&V(b,"Unexpected end"),N(b),b.c="",b.closed=!0,f(b,"onend"),e.call(b,b.strict,b.opt),b}function E(b,K){if(typeof b!="object"||!(b instanceof e))throw new Error("bad call to strictFail");b.strict&&V(b,K)}function X(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var K=b.tags[b.tags.length-1]||b,M=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(M.ns=K.ns),b.attribList.length=0,v(b,"onopentagstart",M)}function Z(b,K){var M=b.indexOf(":"),C=M<0?["",b]:b.split(":"),L=C[0],R=C[1];return K&&b==="xmlns"&&(L="xmlns",R=""),{prefix:L,local:R}}function Go(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName)){b.attribName=b.attribValue="";return}if(b.opt.xmlns){var K=Z(b.attribName,!0),M=K.prefix,C=K.local;if(M==="xmlns")if(C==="xml"&&b.attribValue!==m)E(b,"xml: prefix must be bound to "+m+`
7
+ Char: `+b.c),K=new Error(K),b.error=K,z(b,"onerror",K),b}function I(b){return b.sawRoot&&!b.closedRoot&&E(b,"Unclosed root tag"),b.state!==y.BEGIN&&b.state!==y.BEGIN_WHITESPACE&&b.state!==y.TEXT&&V(b,"Unexpected end"),N(b),b.c="",b.closed=!0,z(b,"onend"),e.call(b,b.strict,b.opt),b}function E(b,K){if(typeof b!="object"||!(b instanceof e))throw new Error("bad call to strictFail");b.strict&&V(b,K)}function X(b){b.strict||(b.tagName=b.tagName[b.looseCase]());var K=b.tags[b.tags.length-1]||b,M=b.tag={name:b.tagName,attributes:{}};b.opt.xmlns&&(M.ns=K.ns),b.attribList.length=0,v(b,"onopentagstart",M)}function Z(b,K){var M=b.indexOf(":"),C=M<0?["",b]:b.split(":"),L=C[0],R=C[1];return K&&b==="xmlns"&&(L="xmlns",R=""),{prefix:L,local:R}}function Go(b){if(b.strict||(b.attribName=b.attribName[b.looseCase]()),b.attribList.indexOf(b.attribName)!==-1||b.tag.attributes.hasOwnProperty(b.attribName)){b.attribName=b.attribValue="";return}if(b.opt.xmlns){var K=Z(b.attribName,!0),M=K.prefix,C=K.local;if(M==="xmlns")if(C==="xml"&&b.attribValue!==m)E(b,"xml: prefix must be bound to "+m+`
8
8
  Actual: `+b.attribValue);else if(C==="xmlns"&&b.attribValue!==w)E(b,"xmlns: prefix must be bound to "+w+`
9
- Actual: `+b.attribValue);else{var L=b.tag,R=b.tags[b.tags.length-1]||b;L.ns===R.ns&&(L.ns=Object.create(R.ns)),L.ns[C]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,v(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}function ro(b,K){if(b.opt.xmlns){var M=b.tag,C=Z(b.tagName);M.prefix=C.prefix,M.local=C.local,M.uri=M.ns[C.prefix]||"",M.prefix&&!M.uri&&(E(b,"Unbound namespace prefix: "+JSON.stringify(b.tagName)),M.uri=C.prefix);var L=b.tags[b.tags.length-1]||b;M.ns&&L.ns!==M.ns&&Object.keys(M.ns).forEach(function(Qn){v(b,"onopennamespace",{prefix:Qn,uri:M.ns[Qn]})});for(var R=0,J=b.attribList.length;R<J;R++){var go=b.attribList[R],bo=go[0],Ft=go[1],so=Z(bo,!0),Bo=so.prefix,Cg=so.local,An=Bo===""?"":M.ns[Bo]||"",Di={name:bo,value:Ft,prefix:Bo,local:Cg,uri:An};Bo&&Bo!=="xmlns"&&!An&&(E(b,"Unbound namespace prefix: "+JSON.stringify(Bo)),Di.uri=Bo),b.tag.attributes[bo]=Di,v(b,"onattribute",Di)}b.attribList.length=0}b.tag.isSelfClosing=!!K,b.sawRoot=!0,b.tags.push(b.tag),v(b,"onopentag",b.tag),K||(!b.noscript&&b.tagName.toLowerCase()==="script"?b.state=y.SCRIPT:b.state=y.TEXT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}function ct(b){if(!b.tagName){E(b,"Weird empty close tag."),b.textNode+="</>",b.state=y.TEXT;return}if(b.script){if(b.tagName!=="script"){b.script+="</"+b.tagName+">",b.tagName="",b.state=y.SCRIPT;return}v(b,"onscript",b.script),b.script=""}var K=b.tags.length,M=b.tagName;b.strict||(M=M[b.looseCase]());for(var C=M;K--;){var L=b.tags[K];if(L.name!==C)E(b,"Unexpected close tag");else break}if(K<0){E(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",b.state=y.TEXT;return}b.tagName=M;for(var R=b.tags.length;R-- >K;){var J=b.tag=b.tags.pop();b.tagName=b.tag.name,v(b,"onclosetag",b.tagName);var go={};for(var bo in J.ns)go[bo]=J.ns[bo];var Ft=b.tags[b.tags.length-1]||b;b.opt.xmlns&&J.ns!==Ft.ns&&Object.keys(J.ns).forEach(function(so){var Bo=J.ns[so];v(b,"onclosenamespace",{prefix:so,uri:Bo})})}K===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=y.TEXT}function Ct(b){var K=b.entity,M=K.toLowerCase(),C,L="";return b.ENTITIES[K]?b.ENTITIES[K]:b.ENTITIES[M]?b.ENTITIES[M]:(K=M,K.charAt(0)==="#"&&(K.charAt(1)==="x"?(K=K.slice(2),C=parseInt(K,16),L=C.toString(16)):(K=K.slice(1),C=parseInt(K,10),L=C.toString(10))),K=K.replace(/^0+/,""),isNaN(C)||L.toLowerCase()!==K?(E(b,"Invalid character entity"),"&"+b.entity+";"):String.fromCodePoint(C))}function Nt(b,K){K==="<"?(b.state=y.OPEN_WAKA,b.startTagPosition=b.position):O(K)||(E(b,"Non-whitespace before first tag."),b.textNode=K,b.state=y.TEXT)}function Jo(b,K){var M="";return K<b.length&&(M=b.charAt(K)),M}function St(b){var K=this;if(this.error)throw this.error;if(K.closed)return V(K,"Cannot write after close. Assign an onready handler.");if(b===null)return I(K);typeof b=="object"&&(b=b.toString());for(var M=0,C="";C=Jo(b,M++),K.c=C,!!C;)switch(K.trackPosition&&(K.position++,C===`
10
- `?(K.line++,K.column=0):K.column++),K.state){case y.BEGIN:if(K.state=y.BEGIN_WHITESPACE,C==="\uFEFF")continue;Nt(K,C);continue;case y.BEGIN_WHITESPACE:Nt(K,C);continue;case y.TEXT:if(K.sawRoot&&!K.closedRoot){for(var L=M-1;C&&C!=="<"&&C!=="&";)C=Jo(b,M++),C&&K.trackPosition&&(K.position++,C===`
11
- `?(K.line++,K.column=0):K.column++);K.textNode+=b.substring(L,M-1)}C==="<"&&!(K.sawRoot&&K.closedRoot&&!K.strict)?(K.state=y.OPEN_WAKA,K.startTagPosition=K.position):(!O(C)&&(!K.sawRoot||K.closedRoot)&&E(K,"Text data outside of root node."),C==="&"?K.state=y.TEXT_ENTITY:K.textNode+=C);continue;case y.SCRIPT:C==="<"?K.state=y.SCRIPT_ENDING:K.script+=C;continue;case y.SCRIPT_ENDING:C==="/"?K.state=y.CLOSE_TAG:(K.script+="<"+C,K.state=y.SCRIPT);continue;case y.OPEN_WAKA:if(C==="!")K.state=y.SGML_DECL,K.sgmlDecl="";else if(!O(C))if(_(k,C))K.state=y.OPEN_TAG,K.tagName=C;else if(C==="/")K.state=y.CLOSE_TAG,K.tagName="";else if(C==="?")K.state=y.PROC_INST,K.procInstName=K.procInstBody="";else{if(E(K,"Unencoded <"),K.startTagPosition+1<K.position){var R=K.position-K.startTagPosition;C=new Array(R).join(" ")+C}K.textNode+="<"+C,K.state=y.TEXT}continue;case y.SGML_DECL:(K.sgmlDecl+C).toUpperCase()===d?(v(K,"onopencdata"),K.state=y.CDATA,K.sgmlDecl="",K.cdata=""):K.sgmlDecl+C==="--"?(K.state=y.COMMENT,K.comment="",K.sgmlDecl=""):(K.sgmlDecl+C).toUpperCase()===x?(K.state=y.DOCTYPE,(K.doctype||K.sawRoot)&&E(K,"Inappropriately located doctype declaration"),K.doctype="",K.sgmlDecl=""):C===">"?(v(K,"onsgmldeclaration",K.sgmlDecl),K.sgmlDecl="",K.state=y.TEXT):(l(C)&&(K.state=y.SGML_DECL_QUOTED),K.sgmlDecl+=C);continue;case y.SGML_DECL_QUOTED:C===K.q&&(K.state=y.SGML_DECL,K.q=""),K.sgmlDecl+=C;continue;case y.DOCTYPE:C===">"?(K.state=y.TEXT,v(K,"ondoctype",K.doctype),K.doctype=!0):(K.doctype+=C,C==="["?K.state=y.DOCTYPE_DTD:l(C)&&(K.state=y.DOCTYPE_QUOTED,K.q=C));continue;case y.DOCTYPE_QUOTED:K.doctype+=C,C===K.q&&(K.q="",K.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:K.doctype+=C,C==="]"?K.state=y.DOCTYPE:l(C)&&(K.state=y.DOCTYPE_DTD_QUOTED,K.q=C);continue;case y.DOCTYPE_DTD_QUOTED:K.doctype+=C,C===K.q&&(K.state=y.DOCTYPE_DTD,K.q="");continue;case y.COMMENT:C==="-"?K.state=y.COMMENT_ENDING:K.comment+=C;continue;case y.COMMENT_ENDING:C==="-"?(K.state=y.COMMENT_ENDED,K.comment=F(K.opt,K.comment),K.comment&&v(K,"oncomment",K.comment),K.comment=""):(K.comment+="-"+C,K.state=y.COMMENT);continue;case y.COMMENT_ENDED:C!==">"?(E(K,"Malformed comment"),K.comment+="--"+C,K.state=y.COMMENT):K.state=y.TEXT;continue;case y.CDATA:C==="]"?K.state=y.CDATA_ENDING:K.cdata+=C;continue;case y.CDATA_ENDING:C==="]"?K.state=y.CDATA_ENDING_2:(K.cdata+="]"+C,K.state=y.CDATA);continue;case y.CDATA_ENDING_2:C===">"?(K.cdata&&v(K,"oncdata",K.cdata),v(K,"onclosecdata"),K.cdata="",K.state=y.TEXT):C==="]"?K.cdata+="]":(K.cdata+="]]"+C,K.state=y.CDATA);continue;case y.PROC_INST:C==="?"?K.state=y.PROC_INST_ENDING:O(C)?K.state=y.PROC_INST_BODY:K.procInstName+=C;continue;case y.PROC_INST_BODY:if(!K.procInstBody&&O(C))continue;C==="?"?K.state=y.PROC_INST_ENDING:K.procInstBody+=C;continue;case y.PROC_INST_ENDING:C===">"?(v(K,"onprocessinginstruction",{name:K.procInstName,body:K.procInstBody}),K.procInstName=K.procInstBody="",K.state=y.TEXT):(K.procInstBody+="?"+C,K.state=y.PROC_INST_BODY);continue;case y.OPEN_TAG:_(p,C)?K.tagName+=C:(X(K),C===">"?ro(K):C==="/"?K.state=y.OPEN_TAG_SLASH:(O(C)||E(K,"Invalid character in tag name"),K.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:C===">"?(ro(K,!0),ct(K)):(E(K,"Forward-slash in opening tag not followed by >"),K.state=y.ATTRIB);continue;case y.ATTRIB:if(O(C))continue;C===">"?ro(K):C==="/"?K.state=y.OPEN_TAG_SLASH:_(k,C)?(K.attribName=C,K.attribValue="",K.state=y.ATTRIB_NAME):E(K,"Invalid attribute name");continue;case y.ATTRIB_NAME:C==="="?K.state=y.ATTRIB_VALUE:C===">"?(E(K,"Attribute without value"),K.attribValue=K.attribName,Go(K),ro(K)):O(C)?K.state=y.ATTRIB_NAME_SAW_WHITE:_(p,C)?K.attribName+=C:E(K,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if(C==="=")K.state=y.ATTRIB_VALUE;else{if(O(C))continue;E(K,"Attribute without value"),K.tag.attributes[K.attribName]="",K.attribValue="",v(K,"onattribute",{name:K.attribName,value:""}),K.attribName="",C===">"?ro(K):_(k,C)?(K.attribName=C,K.state=y.ATTRIB_NAME):(E(K,"Invalid attribute name"),K.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(O(C))continue;l(C)?(K.q=C,K.state=y.ATTRIB_VALUE_QUOTED):(E(K,"Unquoted attribute value"),K.state=y.ATTRIB_VALUE_UNQUOTED,K.attribValue=C);continue;case y.ATTRIB_VALUE_QUOTED:if(C!==K.q){C==="&"?K.state=y.ATTRIB_VALUE_ENTITY_Q:K.attribValue+=C;continue}Go(K),K.q="",K.state=y.ATTRIB_VALUE_CLOSED;continue;case y.ATTRIB_VALUE_CLOSED:O(C)?K.state=y.ATTRIB:C===">"?ro(K):C==="/"?K.state=y.OPEN_TAG_SLASH:_(k,C)?(E(K,"No whitespace between attributes"),K.attribName=C,K.attribValue="",K.state=y.ATTRIB_NAME):E(K,"Invalid attribute name");continue;case y.ATTRIB_VALUE_UNQUOTED:if(!g(C)){C==="&"?K.state=y.ATTRIB_VALUE_ENTITY_U:K.attribValue+=C;continue}Go(K),C===">"?ro(K):K.state=y.ATTRIB;continue;case y.CLOSE_TAG:if(K.tagName)C===">"?ct(K):_(p,C)?K.tagName+=C:K.script?(K.script+="</"+K.tagName,K.tagName="",K.state=y.SCRIPT):(O(C)||E(K,"Invalid tagname in closing tag"),K.state=y.CLOSE_TAG_SAW_WHITE);else{if(O(C))continue;G(k,C)?K.script?(K.script+="</"+C,K.state=y.SCRIPT):E(K,"Invalid tagname in closing tag."):K.tagName=C}continue;case y.CLOSE_TAG_SAW_WHITE:if(O(C))continue;C===">"?ct(K):E(K,"Invalid characters in closing tag");continue;case y.TEXT_ENTITY:case y.ATTRIB_VALUE_ENTITY_Q:case y.ATTRIB_VALUE_ENTITY_U:var J,go;switch(K.state){case y.TEXT_ENTITY:J=y.TEXT,go="textNode";break;case y.ATTRIB_VALUE_ENTITY_Q:J=y.ATTRIB_VALUE_QUOTED,go="attribValue";break;case y.ATTRIB_VALUE_ENTITY_U:J=y.ATTRIB_VALUE_UNQUOTED,go="attribValue";break}if(C===";")if(K.opt.unparsedEntities){var bo=Ct(K);K.entity="",K.state=J,K.write(bo)}else K[go]+=Ct(K),K.entity="",K.state=J;else _(K.entity.length?q:W,C)?K.entity+=C:(E(K,"Invalid character in entity name"),K[go]+="&"+K.entity+C,K.entity="",K.state=J);continue;default:throw new Error(K,"Unknown state: "+K.state)}return K.position>=K.bufferCheckPosition&&s(K),K}String.fromCodePoint||function(){var b=String.fromCharCode,K=Math.floor,M=function(){var C=16384,L=[],R,J,go=-1,bo=arguments.length;if(!bo)return"";for(var Ft="";++go<bo;){var so=Number(arguments[go]);if(!isFinite(so)||so<0||so>1114111||K(so)!==so)throw RangeError("Invalid code point: "+so);so<=65535?L.push(so):(so-=65536,R=(so>>10)+55296,J=so%1024+56320,L.push(R,J)),(go+1===bo||L.length>C)&&(Ft+=b.apply(null,L),L.length=0)}return Ft};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M}()})(typeof bs>"u"?bs.sax={}:bs)});var dc=S(cr=>{(function(){"use strict";cr.stripBOM=function(t){return t[0]==="\uFEFF"?t.substring(1):t}}).call(cr)});var lr=S(zt=>{(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),zt.normalize=function(o){return o.toLowerCase()},zt.firstCharLowerCase=function(o){return o.charAt(0).toLowerCase()+o.slice(1)},zt.stripPrefix=function(o){return o.replace(t,"")},zt.parseNumbers=function(o){return isNaN(o)||(o=o%1===0?parseInt(o,10):parseFloat(o)),o},zt.parseBooleans=function(o){return/^(?:true|false)$/i.test(o)&&(o=o.toLowerCase()==="true"),o}}).call(zt)});var wc=S(Do=>{(function(){"use strict";var t,o,e,s,i,r,n,a,c,u=function(m,w){return function(){return m.apply(w,arguments)}},d=function(m,w){for(var z in w)x.call(w,z)&&(m[z]=w[z]);function k(){this.constructor=m}return k.prototype=w.prototype,m.prototype=new k,m.__super__=w.prototype,m},x={}.hasOwnProperty;a=Oc(),s=require("events"),t=dc(),n=lr(),c=require("timers").setImmediate,o=us().defaults,i=function(m){return typeof m=="object"&&m!=null&&Object.keys(m).length===0},r=function(m,w,z){var k,p,W;for(k=0,p=m.length;k<p;k++)W=m[k],w=W(w,z);return w},e=function(m,w,z){var k;return k=Object.create(null),k.value=z,k.writable=!0,k.enumerable=!0,k.configurable=!0,Object.defineProperty(m,w,k)},Do.Parser=function(m){d(w,m);function w(z){this.parseStringPromise=u(this.parseStringPromise,this),this.parseString=u(this.parseString,this),this.reset=u(this.reset,this),this.assignOrPush=u(this.assignOrPush,this),this.processAsync=u(this.processAsync,this);var k,p,W;if(!(this instanceof Do.Parser))return new Do.Parser(z);this.options={},p=o["0.2"];for(k in p)x.call(p,k)&&(W=p[k],this.options[k]=W);for(k in z)x.call(z,k)&&(W=z[k],this.options[k]=W);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(n.normalize)),this.reset()}return w.prototype.processAsync=function(){var z,k;try{return this.remaining.length<=this.options.chunkSize?(z=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(z),this.saxParser.close()):(z=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(z),c(this.processAsync))}catch(p){if(k=p,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(k)}},w.prototype.assignOrPush=function(z,k,p){return k in z?(z[k]instanceof Array||e(z,k,[z[k]]),z[k].push(p)):this.options.explicitArray?e(z,k,[p]):e(z,k,p)},w.prototype.reset=function(){var z,k,p,W;return this.removeAllListeners(),this.saxParser=a.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(q){return function(O){if(q.saxParser.resume(),!q.saxParser.errThrown)return q.saxParser.errThrown=!0,q.emit("error",O)}}(this),this.saxParser.onend=function(q){return function(){if(!q.saxParser.ended)return q.saxParser.ended=!0,q.emit("end",q.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,W=[],z=this.options.attrkey,k=this.options.charkey,this.saxParser.onopentag=function(q){return function(O){var l,g,_,G,y;if(_={},_[k]="",!q.options.ignoreAttrs){y=O.attributes;for(l in y)x.call(y,l)&&(!(z in _)&&!q.options.mergeAttrs&&(_[z]={}),g=q.options.attrValueProcessors?r(q.options.attrValueProcessors,O.attributes[l],l):O.attributes[l],G=q.options.attrNameProcessors?r(q.options.attrNameProcessors,l):l,q.options.mergeAttrs?q.assignOrPush(_,G,g):e(_[z],G,g))}return _["#name"]=q.options.tagNameProcessors?r(q.options.tagNameProcessors,O.name):O.name,q.options.xmlns&&(_[q.options.xmlnskey]={uri:O.uri,local:O.local}),W.push(_)}}(this),this.saxParser.onclosetag=function(q){return function(){var O,l,g,_,G,y,h,f,v,N;if(y=W.pop(),G=y["#name"],(!q.options.explicitChildren||!q.options.preserveChildrenOrder)&&delete y["#name"],y.cdata===!0&&(O=y.cdata,delete y.cdata),v=W[W.length-1],y[k].match(/^\s*$/)&&!O?(l=y[k],delete y[k]):(q.options.trim&&(y[k]=y[k].trim()),q.options.normalize&&(y[k]=y[k].replace(/\s{2,}/g," ").trim()),y[k]=q.options.valueProcessors?r(q.options.valueProcessors,y[k],G):y[k],Object.keys(y).length===1&&k in y&&!q.EXPLICIT_CHARKEY&&(y=y[k])),i(y)&&(typeof q.options.emptyTag=="function"?y=q.options.emptyTag():y=q.options.emptyTag!==""?q.options.emptyTag:l),q.options.validator!=null&&(N="/"+function(){var F,V,I;for(I=[],F=0,V=W.length;F<V;F++)_=W[F],I.push(_["#name"]);return I}().concat(G).join("/"),function(){var F;try{return y=q.options.validator(N,v&&v[G],y)}catch(V){return F=V,q.emit("error",F)}}()),q.options.explicitChildren&&!q.options.mergeAttrs&&typeof y=="object"){if(!q.options.preserveChildrenOrder)_={},q.options.attrkey in y&&(_[q.options.attrkey]=y[q.options.attrkey],delete y[q.options.attrkey]),!q.options.charsAsChildren&&q.options.charkey in y&&(_[q.options.charkey]=y[q.options.charkey],delete y[q.options.charkey]),Object.getOwnPropertyNames(y).length>0&&(_[q.options.childkey]=y),y=_;else if(v){v[q.options.childkey]=v[q.options.childkey]||[],h={};for(g in y)x.call(y,g)&&e(h,g,y[g]);v[q.options.childkey].push(h),delete y["#name"],Object.keys(y).length===1&&k in y&&!q.EXPLICIT_CHARKEY&&(y=y[k])}}return W.length>0?q.assignOrPush(v,G,y):(q.options.explicitRoot&&(f=y,y={},e(y,G,f)),q.resultObject=y,q.saxParser.ended=!0,q.emit("end",q.resultObject))}}(this),p=function(q){return function(O){var l,g;if(g=W[W.length-1],g)return g[k]+=O,q.options.explicitChildren&&q.options.preserveChildrenOrder&&q.options.charsAsChildren&&(q.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(g[q.options.childkey]=g[q.options.childkey]||[],l={"#name":"__text__"},l[k]=O,q.options.normalize&&(l[k]=l[k].replace(/\s{2,}/g," ").trim()),g[q.options.childkey].push(l)),g}}(this),this.saxParser.ontext=p,this.saxParser.oncdata=function(q){return function(O){var l;if(l=p(O),l)return l.cdata=!0}}(this)},w.prototype.parseString=function(z,k){var p;k!=null&&typeof k=="function"&&(this.on("end",function(W){return this.reset(),k(null,W)}),this.on("error",function(W){return this.reset(),k(W)}));try{return z=z.toString(),z.trim()===""?(this.emit("end",null),!0):(z=t.stripBOM(z),this.options.async?(this.remaining=z,c(this.processAsync),this.saxParser):this.saxParser.write(z).close())}catch(W){if(p=W,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw p}else return this.emit("error",p),this.saxParser.errThrown=!0}},w.prototype.parseStringPromise=function(z){return new Promise(function(k){return function(p,W){return k.parseString(z,function(q,O){return q?W(q):p(O)})}}(this))},w}(s),Do.parseString=function(m,w,z){var k,p,W;return z!=null?(typeof z=="function"&&(k=z),typeof w=="object"&&(p=w)):(typeof w=="function"&&(k=w),p={}),W=new Do.Parser(p),W.parseString(m,k)},Do.parseStringPromise=function(m,w){var z,k;return typeof w=="object"&&(z=w),k=new Do.Parser(z),k.parseStringPromise(m)}}).call(Do)});var ur=S($o=>{(function(){"use strict";var t,o,e,s,i=function(n,a){for(var c in a)r.call(a,c)&&(n[c]=a[c]);function u(){this.constructor=n}return u.prototype=a.prototype,n.prototype=new u,n.__super__=a.prototype,n},r={}.hasOwnProperty;o=us(),t=gc(),e=wc(),s=lr(),$o.defaults=o.defaults,$o.processors=s,$o.ValidationError=function(n){i(a,n);function a(c){this.message=c}return a}(Error),$o.Builder=t.Builder,$o.Parser=e.Parser,$o.parseString=e.parseString,$o.parseStringPromise=e.parseStringPromise}).call($o)});var Ec=S((mh,Mc)=>{Mc.exports=Fc;Fc.sync=jg;var Nc=require("fs");function Qg(t,o){var e=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!e||(e=e.split(";"),e.indexOf("")!==-1))return!0;for(var s=0;s<e.length;s++){var i=e[s].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function Sc(t,o,e){return!t.isSymbolicLink()&&!t.isFile()?!1:Qg(o,e)}function Fc(t,o,e){Nc.stat(t,function(s,i){e(s,s?!1:Sc(i,t,o))})}function jg(t,o){return Sc(Nc.statSync(t),t,o)}});var Zc=S((gh,Ic)=>{Ic.exports=Xc;Xc.sync=Rg;var Vc=require("fs");function Xc(t,o,e){Vc.stat(t,function(s,i){e(s,s?!1:Yc(i,o))})}function Rg(t,o){return Yc(Vc.statSync(t),o)}function Yc(t,o){return t.isFile()&&Jg(t,o)}function Jg(t,o){var e=t.mode,s=t.uid,i=t.gid,r=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),n=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),d=a|c,x=e&u||e&c&&i===n||e&a&&s===r||e&d&&r===0;return x}});var Lc=S((dh,Pc)=>{var Oh=require("fs"),ps;process.platform==="win32"||global.TESTING_WINDOWS?ps=Ec():ps=Zc();Pc.exports=mr;mr.sync=Bg;function mr(t,o,e){if(typeof o=="function"&&(e=o,o={}),!e){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,i){mr(t,o||{},function(r,n){r?i(r):s(n)})})}ps(t,o||{},function(s,i){s&&(s.code==="EACCES"||o&&o.ignoreErrors)&&(s=null,i=!1),e(s,i)})}function Bg(t,o){try{return ps.sync(t,o||{})}catch(e){if(o&&o.ignoreErrors||e.code==="EACCES")return!1;throw e}}});var Jc=S((wh,Rc)=>{var Mt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Tc=require("path"),Dg=Mt?";":":",Uc=Lc(),Ac=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Qc=(t,o)=>{let e=o.colon||Dg,s=t.match(/\//)||Mt&&t.match(/\\/)?[""]:[...Mt?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(e)],i=Mt?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=Mt?i.split(e):[""];return Mt&&t.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:s,pathExt:r,pathExtExe:i}},jc=(t,o,e)=>{typeof o=="function"&&(e=o,o={}),o||(o={});let{pathEnv:s,pathExt:i,pathExtExe:r}=Qc(t,o),n=[],a=u=>new Promise((d,x)=>{if(u===s.length)return o.all&&n.length?d(n):x(Ac(t));let m=s[u],w=/^".*"$/.test(m)?m.slice(1,-1):m,z=Tc.join(w,t),k=!w&&/^\.[\\\/]/.test(t)?t.slice(0,2)+z:z;d(c(k,u,0))}),c=(u,d,x)=>new Promise((m,w)=>{if(x===i.length)return m(a(d+1));let z=i[x];Uc(u+z,{pathExt:r},(k,p)=>{if(!k&&p)if(o.all)n.push(u+z);else return m(u+z);return m(c(u,d,x+1))})});return e?a(0).then(u=>e(null,u),e):a(0)},$g=(t,o)=>{o=o||{};let{pathEnv:e,pathExt:s,pathExtExe:i}=Qc(t,o),r=[];for(let n=0;n<e.length;n++){let a=e[n],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=Tc.join(c,t),d=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let x=0;x<s.length;x++){let m=d+s[x];try{if(Uc.sync(m,{pathExt:i}))if(o.all)r.push(m);else return m}catch{}}}if(o.all&&r.length)return r;if(o.nothrow)return null;throw Ac(t)};Rc.exports=jc;jc.sync=$g});var Dc=S((yh,gr)=>{"use strict";var Bc=(t={})=>{let o=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(o).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};gr.exports=Bc;gr.exports.default=Bc});var tl=S((hh,ol)=>{"use strict";var $c=require("path"),Hg=Jc(),oO=Dc();function Hc(t,o){let e=t.options.env||process.env,s=process.cwd(),i=t.options.cwd!=null,r=i&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(t.options.cwd)}catch{}let n;try{n=Hg.sync(t.command,{path:e[oO({env:e})],pathExt:o?$c.delimiter:void 0})}catch{}finally{r&&process.chdir(s)}return n&&(n=$c.resolve(i?t.options.cwd:"",n)),n}function tO(t){return Hc(t)||Hc(t,!0)}ol.exports=tO});var el=S((fh,dr)=>{"use strict";var Or=/([()\][%!^"`<>&|;, *?])/g;function eO(t){return t=t.replace(Or,"^$1"),t}function sO(t,o){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Or,"^$1"),o&&(t=t.replace(Or,"^$1")),t}dr.exports.command=eO;dr.exports.argument=sO});var il=S((zh,sl)=>{"use strict";sl.exports=/^#!(.*)/});var nl=S((kh,rl)=>{"use strict";var iO=il();rl.exports=(t="")=>{let o=t.match(iO);if(!o)return null;let[e,s]=o[0].replace(/#! ?/,"").split(" "),i=e.split("/").pop();return i==="env"?s:s?`${i} ${s}`:i}});var cl=S((Kh,al)=>{"use strict";var wr=require("fs"),rO=nl();function nO(t){let e=Buffer.alloc(150),s;try{s=wr.openSync(t,"r"),wr.readSync(s,e,0,150,0),wr.closeSync(s)}catch{}return rO(e.toString())}al.exports=nO});var xl=S((Gh,_l)=>{"use strict";var aO=require("path"),ll=tl(),ul=el(),cO=cl(),lO=process.platform==="win32",uO=/\.(?:com|exe)$/i,_O=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function xO(t){t.file=ll(t);let o=t.file&&cO(t.file);return o?(t.args.unshift(t.file),t.command=o,ll(t)):t.file}function mO(t){if(!lO)return t;let o=xO(t),e=!uO.test(o);if(t.options.forceShell||e){let s=_O.test(o);t.command=aO.normalize(t.command),t.command=ul.command(t.command),t.args=t.args.map(r=>ul.argument(r,s));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function gO(t,o,e){o&&!Array.isArray(o)&&(e=o,o=null),o=o?o.slice(0):[],e=Object.assign({},e);let s={command:t,args:o,options:e,file:void 0,original:{command:t,args:o}};return e.shell?s:mO(s)}_l.exports=gO});var Ol=S((bh,gl)=>{"use strict";var yr=process.platform==="win32";function hr(t,o){return Object.assign(new Error(`${o} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${t.command}`,path:t.command,spawnargs:t.args})}function OO(t,o){if(!yr)return;let e=t.emit;t.emit=function(s,i){if(s==="exit"){let r=ml(i,o,"spawn");if(r)return e.call(t,"error",r)}return e.apply(t,arguments)}}function ml(t,o){return yr&&t===1&&!o.file?hr(o.original,"spawn"):null}function dO(t,o){return yr&&t===1&&!o.file?hr(o.original,"spawnSync"):null}gl.exports={hookChildProcess:OO,verifyENOENT:ml,verifyENOENTSync:dO,notFoundError:hr}});var yl=S((vh,Et)=>{"use strict";var dl=require("child_process"),fr=xl(),zr=Ol();function wl(t,o,e){let s=fr(t,o,e),i=dl.spawn(s.command,s.args,s.options);return zr.hookChildProcess(i,s),i}function wO(t,o,e){let s=fr(t,o,e),i=dl.spawnSync(s.command,s.args,s.options);return i.error=i.error||zr.verifyENOENTSync(i.status,s),i}Et.exports=wl;Et.exports.spawn=wl;Et.exports.sync=wO;Et.exports._parse=fr;Et.exports._enoent=zr});var fl=S((kr,hl)=>{"use strict";var yO=kr&&kr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},hO=yO(yl());function fO(t,o,e={}){let s=new Error,i=s.stack?s.stack.replace(/^.*/," ..."):null,r,n=new Promise((a,c)=>{let{ignoreStdio:u,...d}=e;r=(0,hO.default)(t,o,d);let x="",m="";u||(r.stdout&&r.stdout.on("data",k=>{x+=k}),r.stderr&&r.stderr.on("data",k=>{m+=k}));let w=(k,p)=>{r.removeListener("error",z);let W={pid:r.pid,output:[x,m],stdout:x,stderr:m,status:k,signal:p};if(k!==0){let q=o&&o.length>0?` ${o.join(" ")}`:"",O=p?new Error(`${t}${q} exited with signal: ${p}`):new Error(`${t}${q} exited with non-zero code: ${k}`);O.stack&&i&&(O.stack+=`
12
- ${i}`),Object.assign(O,W),c(O)}else a(W)},z=k=>{u?r.removeListener("exit",w):r.removeListener("close",w),Object.assign(k,{pid:r.pid,output:[x,m],stdout:x,stderr:m,status:null,signal:null}),c(k)};u?r.once("exit",w):r.once("close",w),r.once("error",z)});return n.child=r,n}hl.exports=fO});var kl=S((ph,zl)=>{"use strict";var zO=require("fs"),kO=require("os"),Kr=Symbol.for("__RESOLVED_TEMP_DIRECTORY__");global[Kr]||Object.defineProperty(global,Kr,{value:zO.realpathSync(kO.tmpdir())});zl.exports=global[Kr]});var El=S((Sh,Ml)=>{"use strict";Ml.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var vr=S((Fh,Xl)=>{var be=El(),Vl={};for(let t of Object.keys(be))Vl[be[t]]=t;var Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Xl.exports=Y;for(let t of Object.keys(Y)){if(!("channels"in Y[t]))throw new Error("missing channels property: "+t);if(!("labels"in Y[t]))throw new Error("missing channel labels property: "+t);if(Y[t].labels.length!==Y[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:o,labels:e}=Y[t];delete Y[t].channels,delete Y[t].labels,Object.defineProperty(Y[t],"channels",{value:o}),Object.defineProperty(Y[t],"labels",{value:e})}Y.rgb.hsl=function(t){let o=t[0]/255,e=t[1]/255,s=t[2]/255,i=Math.min(o,e,s),r=Math.max(o,e,s),n=r-i,a,c;r===i?a=0:o===r?a=(e-s)/n:e===r?a=2+(s-o)/n:s===r&&(a=4+(o-e)/n),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+r)/2;return r===i?c=0:u<=.5?c=n/(r+i):c=n/(2-r-i),[a,c*100,u*100]};Y.rgb.hsv=function(t){let o,e,s,i,r,n=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(n,a,c),d=u-Math.min(n,a,c),x=function(m){return(u-m)/6/d+1/2};return d===0?(i=0,r=0):(r=d/u,o=x(n),e=x(a),s=x(c),n===u?i=s-e:a===u?i=1/3+o-s:c===u&&(i=2/3+e-o),i<0?i+=1:i>1&&(i-=1)),[i*360,r*100,u*100]};Y.rgb.hwb=function(t){let o=t[0],e=t[1],s=t[2],i=Y.rgb.hsl(t)[0],r=1/255*Math.min(o,Math.min(e,s));return s=1-1/255*Math.max(o,Math.max(e,s)),[i,r*100,s*100]};Y.rgb.cmyk=function(t){let o=t[0]/255,e=t[1]/255,s=t[2]/255,i=Math.min(1-o,1-e,1-s),r=(1-o-i)/(1-i)||0,n=(1-e-i)/(1-i)||0,a=(1-s-i)/(1-i)||0;return[r*100,n*100,a*100,i*100]};function pO(t,o){return(t[0]-o[0])**2+(t[1]-o[1])**2+(t[2]-o[2])**2}Y.rgb.keyword=function(t){let o=Vl[t];if(o)return o;let e=1/0,s;for(let i of Object.keys(be)){let r=be[i],n=pO(t,r);n<e&&(e=n,s=i)}return s};Y.keyword.rgb=function(t){return be[t]};Y.rgb.xyz=function(t){let o=t[0]/255,e=t[1]/255,s=t[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;let i=o*.4124+e*.3576+s*.1805,r=o*.2126+e*.7152+s*.0722,n=o*.0193+e*.1192+s*.9505;return[i*100,r*100,n*100]};Y.rgb.lab=function(t){let o=Y.rgb.xyz(t),e=o[0],s=o[1],i=o[2];e/=95.047,s/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let r=116*s-16,n=500*(e-s),a=200*(s-i);return[r,n,a]};Y.hsl.rgb=function(t){let o=t[0]/360,e=t[1]/100,s=t[2]/100,i,r,n;if(e===0)return n=s*255,[n,n,n];s<.5?i=s*(1+e):i=s+e-s*e;let a=2*s-i,c=[0,0,0];for(let u=0;u<3;u++)r=o+1/3*-(u-1),r<0&&r++,r>1&&r--,6*r<1?n=a+(i-a)*6*r:2*r<1?n=i:3*r<2?n=a+(i-a)*(2/3-r)*6:n=a,c[u]=n*255;return c};Y.hsl.hsv=function(t){let o=t[0],e=t[1]/100,s=t[2]/100,i=e,r=Math.max(s,.01);s*=2,e*=s<=1?s:2-s,i*=r<=1?r:2-r;let n=(s+e)/2,a=s===0?2*i/(r+i):2*e/(s+e);return[o,a*100,n*100]};Y.hsv.rgb=function(t){let o=t[0]/60,e=t[1]/100,s=t[2]/100,i=Math.floor(o)%6,r=o-Math.floor(o),n=255*s*(1-e),a=255*s*(1-e*r),c=255*s*(1-e*(1-r));switch(s*=255,i){case 0:return[s,c,n];case 1:return[a,s,n];case 2:return[n,s,c];case 3:return[n,a,s];case 4:return[c,n,s];case 5:return[s,n,a]}};Y.hsv.hsl=function(t){let o=t[0],e=t[1]/100,s=t[2]/100,i=Math.max(s,.01),r,n;n=(2-e)*s;let a=(2-e)*i;return r=e*i,r/=a<=1?a:2-a,r=r||0,n/=2,[o,r*100,n*100]};Y.hwb.rgb=function(t){let o=t[0]/360,e=t[1]/100,s=t[2]/100,i=e+s,r;i>1&&(e/=i,s/=i);let n=Math.floor(6*o),a=1-s;r=6*o-n,(n&1)!==0&&(r=1-r);let c=e+r*(a-e),u,d,x;switch(n){default:case 6:case 0:u=a,d=c,x=e;break;case 1:u=c,d=a,x=e;break;case 2:u=e,d=a,x=c;break;case 3:u=e,d=c,x=a;break;case 4:u=c,d=e,x=a;break;case 5:u=a,d=e,x=c;break}return[u*255,d*255,x*255]};Y.cmyk.rgb=function(t){let o=t[0]/100,e=t[1]/100,s=t[2]/100,i=t[3]/100,r=1-Math.min(1,o*(1-i)+i),n=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,s*(1-i)+i);return[r*255,n*255,a*255]};Y.xyz.rgb=function(t){let o=t[0]/100,e=t[1]/100,s=t[2]/100,i,r,n;return i=o*3.2406+e*-1.5372+s*-.4986,r=o*-.9689+e*1.8758+s*.0415,n=o*.0557+e*-.204+s*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[i*255,r*255,n*255]};Y.xyz.lab=function(t){let o=t[0],e=t[1],s=t[2];o/=95.047,e/=100,s/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let i=116*e-16,r=500*(o-e),n=200*(e-s);return[i,r,n]};Y.lab.xyz=function(t){let o=t[0],e=t[1],s=t[2],i,r,n;r=(o+16)/116,i=e/500+r,n=r-s/200;let a=r**3,c=i**3,u=n**3;return r=a>.008856?a:(r-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,i*=95.047,r*=100,n*=108.883,[i,r,n]};Y.lab.lch=function(t){let o=t[0],e=t[1],s=t[2],i;i=Math.atan2(s,e)*360/2/Math.PI,i<0&&(i+=360);let n=Math.sqrt(e*e+s*s);return[o,n,i]};Y.lch.lab=function(t){let o=t[0],e=t[1],i=t[2]/360*2*Math.PI,r=e*Math.cos(i),n=e*Math.sin(i);return[o,r,n]};Y.rgb.ansi16=function(t,o=null){let[e,s,i]=t,r=o===null?Y.rgb.hsv(t)[2]:o;if(r=Math.round(r/50),r===0)return 30;let n=30+(Math.round(i/255)<<2|Math.round(s/255)<<1|Math.round(e/255));return r===2&&(n+=60),n};Y.hsv.ansi16=function(t){return Y.rgb.ansi16(Y.hsv.rgb(t),t[2])};Y.rgb.ansi256=function(t){let o=t[0],e=t[1],s=t[2];return o===e&&e===s?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(e/255*5)+Math.round(s/255*5)};Y.ansi16.rgb=function(t){let o=t%10;if(o===0||o===7)return t>50&&(o+=3.5),o=o/10.5*255,[o,o,o];let e=(~~(t>50)+1)*.5,s=(o&1)*e*255,i=(o>>1&1)*e*255,r=(o>>2&1)*e*255;return[s,i,r]};Y.ansi256.rgb=function(t){if(t>=232){let r=(t-232)*10+8;return[r,r,r]}t-=16;let o,e=Math.floor(t/36)/5*255,s=Math.floor((o=t%36)/6)/5*255,i=o%6/5*255;return[e,s,i]};Y.rgb.hex=function(t){let e=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(e.length)+e};Y.hex.rgb=function(t){let o=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let e=o[0];o[0].length===3&&(e=e.split("").map(a=>a+a).join(""));let s=parseInt(e,16),i=s>>16&255,r=s>>8&255,n=s&255;return[i,r,n]};Y.rgb.hcg=function(t){let o=t[0]/255,e=t[1]/255,s=t[2]/255,i=Math.max(Math.max(o,e),s),r=Math.min(Math.min(o,e),s),n=i-r,a,c;return n<1?a=r/(1-n):a=0,n<=0?c=0:i===o?c=(e-s)/n%6:i===e?c=2+(s-o)/n:c=4+(o-e)/n,c/=6,c%=1,[c*360,n*100,a*100]};Y.hsl.hcg=function(t){let o=t[1]/100,e=t[2]/100,s=e<.5?2*o*e:2*o*(1-e),i=0;return s<1&&(i=(e-.5*s)/(1-s)),[t[0],s*100,i*100]};Y.hsv.hcg=function(t){let o=t[1]/100,e=t[2]/100,s=o*e,i=0;return s<1&&(i=(e-s)/(1-s)),[t[0],s*100,i*100]};Y.hcg.rgb=function(t){let o=t[0]/360,e=t[1]/100,s=t[2]/100;if(e===0)return[s*255,s*255,s*255];let i=[0,0,0],r=o%1*6,n=r%1,a=1-n,c=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-e)*s,[(e*i[0]+c)*255,(e*i[1]+c)*255,(e*i[2]+c)*255]};Y.hcg.hsv=function(t){let o=t[1]/100,e=t[2]/100,s=o+e*(1-o),i=0;return s>0&&(i=o/s),[t[0],i*100,s*100]};Y.hcg.hsl=function(t){let o=t[1]/100,s=t[2]/100*(1-o)+.5*o,i=0;return s>0&&s<.5?i=o/(2*s):s>=.5&&s<1&&(i=o/(2*(1-s))),[t[0],i*100,s*100]};Y.hcg.hwb=function(t){let o=t[1]/100,e=t[2]/100,s=o+e*(1-o);return[t[0],(s-o)*100,(1-s)*100]};Y.hwb.hcg=function(t){let o=t[1]/100,s=1-t[2]/100,i=s-o,r=0;return i<1&&(r=(s-i)/(1-i)),[t[0],i*100,r*100]};Y.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Y.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Y.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Y.gray.hsl=function(t){return[0,0,t[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(t){return[0,100,t[0]]};Y.gray.cmyk=function(t){return[0,0,0,t[0]]};Y.gray.lab=function(t){return[t[0],0,0]};Y.gray.hex=function(t){let o=Math.round(t[0]/100*255)&255,s=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(s.length)+s};Y.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Il=S((Mh,Yl)=>{var Ns=vr();function WO(){let t={},o=Object.keys(Ns);for(let e=o.length,s=0;s<e;s++)t[o[s]]={distance:-1,parent:null};return t}function qO(t){let o=WO(),e=[t];for(o[t].distance=0;e.length;){let s=e.pop(),i=Object.keys(Ns[s]);for(let r=i.length,n=0;n<r;n++){let a=i[n],c=o[a];c.distance===-1&&(c.distance=o[s].distance+1,c.parent=s,e.unshift(a))}}return o}function CO(t,o){return function(e){return o(t(e))}}function NO(t,o){let e=[o[t].parent,t],s=Ns[o[t].parent][t],i=o[t].parent;for(;o[i].parent;)e.unshift(o[i].parent),s=CO(Ns[o[i].parent][i],s),i=o[i].parent;return s.conversion=e,s}Yl.exports=function(t){let o=qO(t),e={},s=Object.keys(o);for(let i=s.length,r=0;r<i;r++){let n=s[r];o[n].parent!==null&&(e[n]=NO(n,o))}return e}});var Pl=S((Eh,Zl)=>{var pr=vr(),SO=Il(),It={},FO=Object.keys(pr);function MO(t){let o=function(...e){let s=e[0];return s==null?s:(s.length>1&&(e=s),t(e))};return"conversion"in t&&(o.conversion=t.conversion),o}function EO(t){let o=function(...e){let s=e[0];if(s==null)return s;s.length>1&&(e=s);let i=t(e);if(typeof i=="object")for(let r=i.length,n=0;n<r;n++)i[n]=Math.round(i[n]);return i};return"conversion"in t&&(o.conversion=t.conversion),o}FO.forEach(t=>{It[t]={},Object.defineProperty(It[t],"channels",{value:pr[t].channels}),Object.defineProperty(It[t],"labels",{value:pr[t].labels});let o=SO(t);Object.keys(o).forEach(s=>{let i=o[s];It[t][s]=EO(i),It[t][s].raw=MO(i)})});Zl.exports=It});var jl=S((Vh,Ql)=>{"use strict";var Ll=(t,o)=>(...e)=>`\x1B[${t(...e)+o}m`,Tl=(t,o)=>(...e)=>{let s=t(...e);return`\x1B[${38+o};5;${s}m`},Ul=(t,o)=>(...e)=>{let s=t(...e);return`\x1B[${38+o};2;${s[0]};${s[1]};${s[2]}m`},Ss=t=>t,Al=(t,o,e)=>[t,o,e],Zt=(t,o,e)=>{Object.defineProperty(t,o,{get:()=>{let s=e();return Object.defineProperty(t,o,{value:s,enumerable:!0,configurable:!0}),s},enumerable:!0,configurable:!0})},Wr,Pt=(t,o,e,s)=>{Wr===void 0&&(Wr=Pl());let i=s?10:0,r={};for(let[n,a]of Object.entries(Wr)){let c=n==="ansi16"?"ansi":n;n===o?r[c]=t(e,i):typeof a=="object"&&(r[c]=t(a[o],i))}return r};function VO(){let t=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[e,s]of Object.entries(o)){for(let[i,r]of Object.entries(s))o[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},s[i]=o[i],t.set(r[0],r[1]);Object.defineProperty(o,e,{value:s,enumerable:!1})}return Object.defineProperty(o,"codes",{value:t,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",Zt(o.color,"ansi",()=>Pt(Ll,"ansi16",Ss,!1)),Zt(o.color,"ansi256",()=>Pt(Tl,"ansi256",Ss,!1)),Zt(o.color,"ansi16m",()=>Pt(Ul,"rgb",Al,!1)),Zt(o.bgColor,"ansi",()=>Pt(Ll,"ansi16",Ss,!0)),Zt(o.bgColor,"ansi256",()=>Pt(Tl,"ansi256",Ss,!0)),Zt(o.bgColor,"ansi16m",()=>Pt(Ul,"rgb",Al,!0)),o}Object.defineProperty(Ql,"exports",{enumerable:!0,get:VO})});var Jl=S((Xh,Rl)=>{"use strict";Rl.exports=(t,o=process.argv)=>{let e=t.startsWith("-")?"":t.length===1?"-":"--",s=o.indexOf(e+t),i=o.indexOf("--");return s!==-1&&(i===-1||s<i)}});var Nr=S((Yh,Dl)=>{"use strict";var XO=require("os"),Bl=require("tty"),po=Jl(),{env:D}=process,_t;po("no-color")||po("no-colors")||po("color=false")||po("color=never")?_t=0:(po("color")||po("colors")||po("color=true")||po("color=always"))&&(_t=1);"FORCE_COLOR"in D&&(D.FORCE_COLOR==="true"?_t=1:D.FORCE_COLOR==="false"?_t=0:_t=D.FORCE_COLOR.length===0?1:Math.min(parseInt(D.FORCE_COLOR,10),3));function qr(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Cr(t,o){if(_t===0)return 0;if(po("color=16m")||po("color=full")||po("color=truecolor"))return 3;if(po("color=256"))return 2;if(t&&!o&&_t===void 0)return 0;let e=_t||0;if(D.TERM==="dumb")return e;if(process.platform==="win32"){let s=XO.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in D)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(s=>s in D)||D.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in D)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(D.TEAMCITY_VERSION)?1:0;if(D.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in D){let s=parseInt((D.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(D.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(D.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(D.TERM)||"COLORTERM"in D?1:e}function YO(t){let o=Cr(t,t&&t.isTTY);return qr(o)}Dl.exports={supportsColor:YO,stdout:qr(Cr(!0,Bl.isatty(1))),stderr:qr(Cr(!0,Bl.isatty(2)))}});var Hl=S((Ih,$l)=>{"use strict";var IO=(t,o,e)=>{let s=t.indexOf(o);if(s===-1)return t;let i=o.length,r=0,n="";do n+=t.substr(r,s-r)+o+e,r=s+i,s=t.indexOf(o,r);while(s!==-1);return n+=t.substr(r),n},ZO=(t,o,e,s)=>{let i=0,r="";do{let n=t[s-1]==="\r";r+=t.substr(i,(n?s-1:s)-i)+o+(n?`\r
9
+ Actual: `+b.attribValue);else{var L=b.tag,R=b.tags[b.tags.length-1]||b;L.ns===R.ns&&(L.ns=Object.create(R.ns)),L.ns[C]=b.attribValue}b.attribList.push([b.attribName,b.attribValue])}else b.tag.attributes[b.attribName]=b.attribValue,v(b,"onattribute",{name:b.attribName,value:b.attribValue});b.attribName=b.attribValue=""}function ro(b,K){if(b.opt.xmlns){var M=b.tag,C=Z(b.tagName);M.prefix=C.prefix,M.local=C.local,M.uri=M.ns[C.prefix]||"",M.prefix&&!M.uri&&(E(b,"Unbound namespace prefix: "+JSON.stringify(b.tagName)),M.uri=C.prefix);var L=b.tags[b.tags.length-1]||b;M.ns&&L.ns!==M.ns&&Object.keys(M.ns).forEach(function(jn){v(b,"onopennamespace",{prefix:jn,uri:M.ns[jn]})});for(var R=0,J=b.attribList.length;R<J;R++){var go=b.attribList[R],bo=go[0],St=go[1],so=Z(bo,!0),Bo=so.prefix,Cg=so.local,Qn=Bo===""?"":M.ns[Bo]||"",Di={name:bo,value:St,prefix:Bo,local:Cg,uri:Qn};Bo&&Bo!=="xmlns"&&!Qn&&(E(b,"Unbound namespace prefix: "+JSON.stringify(Bo)),Di.uri=Bo),b.tag.attributes[bo]=Di,v(b,"onattribute",Di)}b.attribList.length=0}b.tag.isSelfClosing=!!K,b.sawRoot=!0,b.tags.push(b.tag),v(b,"onopentag",b.tag),K||(!b.noscript&&b.tagName.toLowerCase()==="script"?b.state=y.SCRIPT:b.state=y.TEXT,b.tag=null,b.tagName=""),b.attribName=b.attribValue="",b.attribList.length=0}function nt(b){if(!b.tagName){E(b,"Weird empty close tag."),b.textNode+="</>",b.state=y.TEXT;return}if(b.script){if(b.tagName!=="script"){b.script+="</"+b.tagName+">",b.tagName="",b.state=y.SCRIPT;return}v(b,"onscript",b.script),b.script=""}var K=b.tags.length,M=b.tagName;b.strict||(M=M[b.looseCase]());for(var C=M;K--;){var L=b.tags[K];if(L.name!==C)E(b,"Unexpected close tag");else break}if(K<0){E(b,"Unmatched closing tag: "+b.tagName),b.textNode+="</"+b.tagName+">",b.state=y.TEXT;return}b.tagName=M;for(var R=b.tags.length;R-- >K;){var J=b.tag=b.tags.pop();b.tagName=b.tag.name,v(b,"onclosetag",b.tagName);var go={};for(var bo in J.ns)go[bo]=J.ns[bo];var St=b.tags[b.tags.length-1]||b;b.opt.xmlns&&J.ns!==St.ns&&Object.keys(J.ns).forEach(function(so){var Bo=J.ns[so];v(b,"onclosenamespace",{prefix:so,uri:Bo})})}K===0&&(b.closedRoot=!0),b.tagName=b.attribValue=b.attribName="",b.attribList.length=0,b.state=y.TEXT}function qt(b){var K=b.entity,M=K.toLowerCase(),C,L="";return b.ENTITIES[K]?b.ENTITIES[K]:b.ENTITIES[M]?b.ENTITIES[M]:(K=M,K.charAt(0)==="#"&&(K.charAt(1)==="x"?(K=K.slice(2),C=parseInt(K,16),L=C.toString(16)):(K=K.slice(1),C=parseInt(K,10),L=C.toString(10))),K=K.replace(/^0+/,""),isNaN(C)||L.toLowerCase()!==K?(E(b,"Invalid character entity"),"&"+b.entity+";"):String.fromCodePoint(C))}function Ct(b,K){K==="<"?(b.state=y.OPEN_WAKA,b.startTagPosition=b.position):O(K)||(E(b,"Non-whitespace before first tag."),b.textNode=K,b.state=y.TEXT)}function Jo(b,K){var M="";return K<b.length&&(M=b.charAt(K)),M}function Nt(b){var K=this;if(this.error)throw this.error;if(K.closed)return V(K,"Cannot write after close. Assign an onready handler.");if(b===null)return I(K);typeof b=="object"&&(b=b.toString());for(var M=0,C="";C=Jo(b,M++),K.c=C,!!C;)switch(K.trackPosition&&(K.position++,C===`
10
+ `?(K.line++,K.column=0):K.column++),K.state){case y.BEGIN:if(K.state=y.BEGIN_WHITESPACE,C==="\uFEFF")continue;Ct(K,C);continue;case y.BEGIN_WHITESPACE:Ct(K,C);continue;case y.TEXT:if(K.sawRoot&&!K.closedRoot){for(var L=M-1;C&&C!=="<"&&C!=="&";)C=Jo(b,M++),C&&K.trackPosition&&(K.position++,C===`
11
+ `?(K.line++,K.column=0):K.column++);K.textNode+=b.substring(L,M-1)}C==="<"&&!(K.sawRoot&&K.closedRoot&&!K.strict)?(K.state=y.OPEN_WAKA,K.startTagPosition=K.position):(!O(C)&&(!K.sawRoot||K.closedRoot)&&E(K,"Text data outside of root node."),C==="&"?K.state=y.TEXT_ENTITY:K.textNode+=C);continue;case y.SCRIPT:C==="<"?K.state=y.SCRIPT_ENDING:K.script+=C;continue;case y.SCRIPT_ENDING:C==="/"?K.state=y.CLOSE_TAG:(K.script+="<"+C,K.state=y.SCRIPT);continue;case y.OPEN_WAKA:if(C==="!")K.state=y.SGML_DECL,K.sgmlDecl="";else if(!O(C))if(_(k,C))K.state=y.OPEN_TAG,K.tagName=C;else if(C==="/")K.state=y.CLOSE_TAG,K.tagName="";else if(C==="?")K.state=y.PROC_INST,K.procInstName=K.procInstBody="";else{if(E(K,"Unencoded <"),K.startTagPosition+1<K.position){var R=K.position-K.startTagPosition;C=new Array(R).join(" ")+C}K.textNode+="<"+C,K.state=y.TEXT}continue;case y.SGML_DECL:(K.sgmlDecl+C).toUpperCase()===d?(v(K,"onopencdata"),K.state=y.CDATA,K.sgmlDecl="",K.cdata=""):K.sgmlDecl+C==="--"?(K.state=y.COMMENT,K.comment="",K.sgmlDecl=""):(K.sgmlDecl+C).toUpperCase()===x?(K.state=y.DOCTYPE,(K.doctype||K.sawRoot)&&E(K,"Inappropriately located doctype declaration"),K.doctype="",K.sgmlDecl=""):C===">"?(v(K,"onsgmldeclaration",K.sgmlDecl),K.sgmlDecl="",K.state=y.TEXT):(l(C)&&(K.state=y.SGML_DECL_QUOTED),K.sgmlDecl+=C);continue;case y.SGML_DECL_QUOTED:C===K.q&&(K.state=y.SGML_DECL,K.q=""),K.sgmlDecl+=C;continue;case y.DOCTYPE:C===">"?(K.state=y.TEXT,v(K,"ondoctype",K.doctype),K.doctype=!0):(K.doctype+=C,C==="["?K.state=y.DOCTYPE_DTD:l(C)&&(K.state=y.DOCTYPE_QUOTED,K.q=C));continue;case y.DOCTYPE_QUOTED:K.doctype+=C,C===K.q&&(K.q="",K.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:K.doctype+=C,C==="]"?K.state=y.DOCTYPE:l(C)&&(K.state=y.DOCTYPE_DTD_QUOTED,K.q=C);continue;case y.DOCTYPE_DTD_QUOTED:K.doctype+=C,C===K.q&&(K.state=y.DOCTYPE_DTD,K.q="");continue;case y.COMMENT:C==="-"?K.state=y.COMMENT_ENDING:K.comment+=C;continue;case y.COMMENT_ENDING:C==="-"?(K.state=y.COMMENT_ENDED,K.comment=F(K.opt,K.comment),K.comment&&v(K,"oncomment",K.comment),K.comment=""):(K.comment+="-"+C,K.state=y.COMMENT);continue;case y.COMMENT_ENDED:C!==">"?(E(K,"Malformed comment"),K.comment+="--"+C,K.state=y.COMMENT):K.state=y.TEXT;continue;case y.CDATA:C==="]"?K.state=y.CDATA_ENDING:K.cdata+=C;continue;case y.CDATA_ENDING:C==="]"?K.state=y.CDATA_ENDING_2:(K.cdata+="]"+C,K.state=y.CDATA);continue;case y.CDATA_ENDING_2:C===">"?(K.cdata&&v(K,"oncdata",K.cdata),v(K,"onclosecdata"),K.cdata="",K.state=y.TEXT):C==="]"?K.cdata+="]":(K.cdata+="]]"+C,K.state=y.CDATA);continue;case y.PROC_INST:C==="?"?K.state=y.PROC_INST_ENDING:O(C)?K.state=y.PROC_INST_BODY:K.procInstName+=C;continue;case y.PROC_INST_BODY:if(!K.procInstBody&&O(C))continue;C==="?"?K.state=y.PROC_INST_ENDING:K.procInstBody+=C;continue;case y.PROC_INST_ENDING:C===">"?(v(K,"onprocessinginstruction",{name:K.procInstName,body:K.procInstBody}),K.procInstName=K.procInstBody="",K.state=y.TEXT):(K.procInstBody+="?"+C,K.state=y.PROC_INST_BODY);continue;case y.OPEN_TAG:_(W,C)?K.tagName+=C:(X(K),C===">"?ro(K):C==="/"?K.state=y.OPEN_TAG_SLASH:(O(C)||E(K,"Invalid character in tag name"),K.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:C===">"?(ro(K,!0),nt(K)):(E(K,"Forward-slash in opening tag not followed by >"),K.state=y.ATTRIB);continue;case y.ATTRIB:if(O(C))continue;C===">"?ro(K):C==="/"?K.state=y.OPEN_TAG_SLASH:_(k,C)?(K.attribName=C,K.attribValue="",K.state=y.ATTRIB_NAME):E(K,"Invalid attribute name");continue;case y.ATTRIB_NAME:C==="="?K.state=y.ATTRIB_VALUE:C===">"?(E(K,"Attribute without value"),K.attribValue=K.attribName,Go(K),ro(K)):O(C)?K.state=y.ATTRIB_NAME_SAW_WHITE:_(W,C)?K.attribName+=C:E(K,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if(C==="=")K.state=y.ATTRIB_VALUE;else{if(O(C))continue;E(K,"Attribute without value"),K.tag.attributes[K.attribName]="",K.attribValue="",v(K,"onattribute",{name:K.attribName,value:""}),K.attribName="",C===">"?ro(K):_(k,C)?(K.attribName=C,K.state=y.ATTRIB_NAME):(E(K,"Invalid attribute name"),K.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(O(C))continue;l(C)?(K.q=C,K.state=y.ATTRIB_VALUE_QUOTED):(E(K,"Unquoted attribute value"),K.state=y.ATTRIB_VALUE_UNQUOTED,K.attribValue=C);continue;case y.ATTRIB_VALUE_QUOTED:if(C!==K.q){C==="&"?K.state=y.ATTRIB_VALUE_ENTITY_Q:K.attribValue+=C;continue}Go(K),K.q="",K.state=y.ATTRIB_VALUE_CLOSED;continue;case y.ATTRIB_VALUE_CLOSED:O(C)?K.state=y.ATTRIB:C===">"?ro(K):C==="/"?K.state=y.OPEN_TAG_SLASH:_(k,C)?(E(K,"No whitespace between attributes"),K.attribName=C,K.attribValue="",K.state=y.ATTRIB_NAME):E(K,"Invalid attribute name");continue;case y.ATTRIB_VALUE_UNQUOTED:if(!g(C)){C==="&"?K.state=y.ATTRIB_VALUE_ENTITY_U:K.attribValue+=C;continue}Go(K),C===">"?ro(K):K.state=y.ATTRIB;continue;case y.CLOSE_TAG:if(K.tagName)C===">"?nt(K):_(W,C)?K.tagName+=C:K.script?(K.script+="</"+K.tagName,K.tagName="",K.state=y.SCRIPT):(O(C)||E(K,"Invalid tagname in closing tag"),K.state=y.CLOSE_TAG_SAW_WHITE);else{if(O(C))continue;G(k,C)?K.script?(K.script+="</"+C,K.state=y.SCRIPT):E(K,"Invalid tagname in closing tag."):K.tagName=C}continue;case y.CLOSE_TAG_SAW_WHITE:if(O(C))continue;C===">"?nt(K):E(K,"Invalid characters in closing tag");continue;case y.TEXT_ENTITY:case y.ATTRIB_VALUE_ENTITY_Q:case y.ATTRIB_VALUE_ENTITY_U:var J,go;switch(K.state){case y.TEXT_ENTITY:J=y.TEXT,go="textNode";break;case y.ATTRIB_VALUE_ENTITY_Q:J=y.ATTRIB_VALUE_QUOTED,go="attribValue";break;case y.ATTRIB_VALUE_ENTITY_U:J=y.ATTRIB_VALUE_UNQUOTED,go="attribValue";break}if(C===";")if(K.opt.unparsedEntities){var bo=qt(K);K.entity="",K.state=J,K.write(bo)}else K[go]+=qt(K),K.entity="",K.state=J;else _(K.entity.length?q:p,C)?K.entity+=C:(E(K,"Invalid character in entity name"),K[go]+="&"+K.entity+C,K.entity="",K.state=J);continue;default:throw new Error(K,"Unknown state: "+K.state)}return K.position>=K.bufferCheckPosition&&s(K),K}String.fromCodePoint||function(){var b=String.fromCharCode,K=Math.floor,M=function(){var C=16384,L=[],R,J,go=-1,bo=arguments.length;if(!bo)return"";for(var St="";++go<bo;){var so=Number(arguments[go]);if(!isFinite(so)||so<0||so>1114111||K(so)!==so)throw RangeError("Invalid code point: "+so);so<=65535?L.push(so):(so-=65536,R=(so>>10)+55296,J=so%1024+56320,L.push(R,J)),(go+1===bo||L.length>C)&&(St+=b.apply(null,L),L.length=0)}return St};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:M,configurable:!0,writable:!0}):String.fromCodePoint=M}()})(typeof vs>"u"?vs.sax={}:vs)});var wc=S(cr=>{(function(){"use strict";cr.stripBOM=function(t){return t[0]==="\uFEFF"?t.substring(1):t}}).call(cr)});var lr=S(ft=>{(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),ft.normalize=function(o){return o.toLowerCase()},ft.firstCharLowerCase=function(o){return o.charAt(0).toLowerCase()+o.slice(1)},ft.stripPrefix=function(o){return o.replace(t,"")},ft.parseNumbers=function(o){return isNaN(o)||(o=o%1===0?parseInt(o,10):parseFloat(o)),o},ft.parseBooleans=function(o){return/^(?:true|false)$/i.test(o)&&(o=o.toLowerCase()==="true"),o}}).call(ft)});var yc=S(Do=>{(function(){"use strict";var t,o,e,s,i,r,n,a,c,u=function(m,w){return function(){return m.apply(w,arguments)}},d=function(m,w){for(var f in w)x.call(w,f)&&(m[f]=w[f]);function k(){this.constructor=m}return k.prototype=w.prototype,m.prototype=new k,m.__super__=w.prototype,m},x={}.hasOwnProperty;a=dc(),s=require("events"),t=wc(),n=lr(),c=require("timers").setImmediate,o=_s().defaults,i=function(m){return typeof m=="object"&&m!=null&&Object.keys(m).length===0},r=function(m,w,f){var k,W,p;for(k=0,W=m.length;k<W;k++)p=m[k],w=p(w,f);return w},e=function(m,w,f){var k;return k=Object.create(null),k.value=f,k.writable=!0,k.enumerable=!0,k.configurable=!0,Object.defineProperty(m,w,k)},Do.Parser=function(m){d(w,m);function w(f){this.parseStringPromise=u(this.parseStringPromise,this),this.parseString=u(this.parseString,this),this.reset=u(this.reset,this),this.assignOrPush=u(this.assignOrPush,this),this.processAsync=u(this.processAsync,this);var k,W,p;if(!(this instanceof Do.Parser))return new Do.Parser(f);this.options={},W=o["0.2"];for(k in W)x.call(W,k)&&(p=W[k],this.options[k]=p);for(k in f)x.call(f,k)&&(p=f[k],this.options[k]=p);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(n.normalize)),this.reset()}return w.prototype.processAsync=function(){var f,k;try{return this.remaining.length<=this.options.chunkSize?(f=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(f),this.saxParser.close()):(f=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(f),c(this.processAsync))}catch(W){if(k=W,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(k)}},w.prototype.assignOrPush=function(f,k,W){return k in f?(f[k]instanceof Array||e(f,k,[f[k]]),f[k].push(W)):this.options.explicitArray?e(f,k,[W]):e(f,k,W)},w.prototype.reset=function(){var f,k,W,p;return this.removeAllListeners(),this.saxParser=a.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(q){return function(O){if(q.saxParser.resume(),!q.saxParser.errThrown)return q.saxParser.errThrown=!0,q.emit("error",O)}}(this),this.saxParser.onend=function(q){return function(){if(!q.saxParser.ended)return q.saxParser.ended=!0,q.emit("end",q.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,p=[],f=this.options.attrkey,k=this.options.charkey,this.saxParser.onopentag=function(q){return function(O){var l,g,_,G,y;if(_={},_[k]="",!q.options.ignoreAttrs){y=O.attributes;for(l in y)x.call(y,l)&&(!(f in _)&&!q.options.mergeAttrs&&(_[f]={}),g=q.options.attrValueProcessors?r(q.options.attrValueProcessors,O.attributes[l],l):O.attributes[l],G=q.options.attrNameProcessors?r(q.options.attrNameProcessors,l):l,q.options.mergeAttrs?q.assignOrPush(_,G,g):e(_[f],G,g))}return _["#name"]=q.options.tagNameProcessors?r(q.options.tagNameProcessors,O.name):O.name,q.options.xmlns&&(_[q.options.xmlnskey]={uri:O.uri,local:O.local}),p.push(_)}}(this),this.saxParser.onclosetag=function(q){return function(){var O,l,g,_,G,y,h,z,v,N;if(y=p.pop(),G=y["#name"],(!q.options.explicitChildren||!q.options.preserveChildrenOrder)&&delete y["#name"],y.cdata===!0&&(O=y.cdata,delete y.cdata),v=p[p.length-1],y[k].match(/^\s*$/)&&!O?(l=y[k],delete y[k]):(q.options.trim&&(y[k]=y[k].trim()),q.options.normalize&&(y[k]=y[k].replace(/\s{2,}/g," ").trim()),y[k]=q.options.valueProcessors?r(q.options.valueProcessors,y[k],G):y[k],Object.keys(y).length===1&&k in y&&!q.EXPLICIT_CHARKEY&&(y=y[k])),i(y)&&(typeof q.options.emptyTag=="function"?y=q.options.emptyTag():y=q.options.emptyTag!==""?q.options.emptyTag:l),q.options.validator!=null&&(N="/"+function(){var F,V,I;for(I=[],F=0,V=p.length;F<V;F++)_=p[F],I.push(_["#name"]);return I}().concat(G).join("/"),function(){var F;try{return y=q.options.validator(N,v&&v[G],y)}catch(V){return F=V,q.emit("error",F)}}()),q.options.explicitChildren&&!q.options.mergeAttrs&&typeof y=="object"){if(!q.options.preserveChildrenOrder)_={},q.options.attrkey in y&&(_[q.options.attrkey]=y[q.options.attrkey],delete y[q.options.attrkey]),!q.options.charsAsChildren&&q.options.charkey in y&&(_[q.options.charkey]=y[q.options.charkey],delete y[q.options.charkey]),Object.getOwnPropertyNames(y).length>0&&(_[q.options.childkey]=y),y=_;else if(v){v[q.options.childkey]=v[q.options.childkey]||[],h={};for(g in y)x.call(y,g)&&e(h,g,y[g]);v[q.options.childkey].push(h),delete y["#name"],Object.keys(y).length===1&&k in y&&!q.EXPLICIT_CHARKEY&&(y=y[k])}}return p.length>0?q.assignOrPush(v,G,y):(q.options.explicitRoot&&(z=y,y={},e(y,G,z)),q.resultObject=y,q.saxParser.ended=!0,q.emit("end",q.resultObject))}}(this),W=function(q){return function(O){var l,g;if(g=p[p.length-1],g)return g[k]+=O,q.options.explicitChildren&&q.options.preserveChildrenOrder&&q.options.charsAsChildren&&(q.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(g[q.options.childkey]=g[q.options.childkey]||[],l={"#name":"__text__"},l[k]=O,q.options.normalize&&(l[k]=l[k].replace(/\s{2,}/g," ").trim()),g[q.options.childkey].push(l)),g}}(this),this.saxParser.ontext=W,this.saxParser.oncdata=function(q){return function(O){var l;if(l=W(O),l)return l.cdata=!0}}(this)},w.prototype.parseString=function(f,k){var W;k!=null&&typeof k=="function"&&(this.on("end",function(p){return this.reset(),k(null,p)}),this.on("error",function(p){return this.reset(),k(p)}));try{return f=f.toString(),f.trim()===""?(this.emit("end",null),!0):(f=t.stripBOM(f),this.options.async?(this.remaining=f,c(this.processAsync),this.saxParser):this.saxParser.write(f).close())}catch(p){if(W=p,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw W}else return this.emit("error",W),this.saxParser.errThrown=!0}},w.prototype.parseStringPromise=function(f){return new Promise(function(k){return function(W,p){return k.parseString(f,function(q,O){return q?p(q):W(O)})}}(this))},w}(s),Do.parseString=function(m,w,f){var k,W,p;return f!=null?(typeof f=="function"&&(k=f),typeof w=="object"&&(W=w)):(typeof w=="function"&&(k=w),W={}),p=new Do.Parser(W),p.parseString(m,k)},Do.parseStringPromise=function(m,w){var f,k;return typeof w=="object"&&(f=w),k=new Do.Parser(f),k.parseStringPromise(m)}}).call(Do)});var ur=S($o=>{(function(){"use strict";var t,o,e,s,i=function(n,a){for(var c in a)r.call(a,c)&&(n[c]=a[c]);function u(){this.constructor=n}return u.prototype=a.prototype,n.prototype=new u,n.__super__=a.prototype,n},r={}.hasOwnProperty;o=_s(),t=Oc(),e=yc(),s=lr(),$o.defaults=o.defaults,$o.processors=s,$o.ValidationError=function(n){i(a,n);function a(c){this.message=c}return a}(Error),$o.Builder=t.Builder,$o.Parser=e.Parser,$o.parseString=e.parseString,$o.parseStringPromise=e.parseStringPromise}).call($o)});var Sc=S((xh,Nc)=>{"use strict";Nc.exports=qc;function qc(t,o,e){t instanceof RegExp&&(t=pc(t,e)),o instanceof RegExp&&(o=pc(o,e));var s=Cc(t,o,e);return s&&{start:s[0],end:s[1],pre:e.slice(0,s[0]),body:e.slice(s[0]+t.length,s[1]),post:e.slice(s[1]+o.length)}}function pc(t,o){var e=o.match(t);return e?e[0]:null}qc.range=Cc;function Cc(t,o,e){var s,i,r,n,a,c=e.indexOf(t),u=e.indexOf(o,c+1),d=c;if(c>=0&&u>0){if(t===o)return[c,u];for(s=[],r=e.length;d>=0&&!a;)d==c?(s.push(d),c=e.indexOf(t,d+1)):s.length==1?a=[s.pop(),u]:(i=s.pop(),i<r&&(r=i,n=u),u=e.indexOf(o,d+1)),d=c<u&&c>=0?c:u;s.length&&(a=[r,n])}return a}});var Zc=S((mh,Ic)=>{var Fc=Sc();Ic.exports=jg;var Mc="\0SLASH"+Math.random()+"\0",Ec="\0OPEN"+Math.random()+"\0",xr="\0CLOSE"+Math.random()+"\0",Vc="\0COMMA"+Math.random()+"\0",Xc="\0PERIOD"+Math.random()+"\0";function _r(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function Ag(t){return t.split("\\\\").join(Mc).split("\\{").join(Ec).split("\\}").join(xr).split("\\,").join(Vc).split("\\.").join(Xc)}function Qg(t){return t.split(Mc).join("\\").split(Ec).join("{").split(xr).join("}").split(Vc).join(",").split(Xc).join(".")}function Yc(t){if(!t)return[""];var o=[],e=Fc("{","}",t);if(!e)return t.split(",");var s=e.pre,i=e.body,r=e.post,n=s.split(",");n[n.length-1]+="{"+i+"}";var a=Yc(r);return r.length&&(n[n.length-1]+=a.shift(),n.push.apply(n,a)),o.push.apply(o,n),o}function jg(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),ke(Ag(t),!0).map(Qg)):[]}function Rg(t){return"{"+t+"}"}function Jg(t){return/^-?0\d/.test(t)}function Bg(t,o){return t<=o}function Dg(t,o){return t>=o}function ke(t,o){var e=[],s=Fc("{","}",t);if(!s)return[t];var i=s.pre,r=s.post.length?ke(s.post,!1):[""];if(/\$$/.test(s.pre))for(var n=0;n<r.length;n++){var a=i+"{"+s.body+"}"+r[n];e.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,x=s.body.indexOf(",")>=0;if(!d&&!x)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+xr+s.post,ke(t)):[t];var m;if(d)m=s.body.split(/\.\./);else if(m=Yc(s.body),m.length===1&&(m=ke(m[0],!1).map(Rg),m.length===1))return r.map(function(z){return s.pre+m[0]+z});var w;if(d){var f=_r(m[0]),k=_r(m[1]),W=Math.max(m[0].length,m[1].length),p=m.length==3?Math.abs(_r(m[2])):1,q=Bg,O=k<f;O&&(p*=-1,q=Dg);var l=m.some(Jg);w=[];for(var g=f;q(g,k);g+=p){var _;if(u)_=String.fromCharCode(g),_==="\\"&&(_="");else if(_=String(g),l){var G=W-_.length;if(G>0){var y=new Array(G+1).join("0");g<0?_="-"+y+_.slice(1):_=y+_}}w.push(_)}}else{w=[];for(var h=0;h<m.length;h++)w.push.apply(w,ke(m[h],!1))}for(var h=0;h<w.length;h++)for(var n=0;n<r.length;n++){var a=i+w[h]+r[n];(!o||d||a)&&e.push(a)}}return e}});var Ml=S((Of,Fl)=>{Fl.exports=Sl;Sl.sync=ad;var Cl=require("fs");function nd(t,o){var e=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!e||(e=e.split(";"),e.indexOf("")!==-1))return!0;for(var s=0;s<e.length;s++){var i=e[s].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function Nl(t,o,e){return!t.isSymbolicLink()&&!t.isFile()?!1:nd(o,e)}function Sl(t,o,e){Cl.stat(t,function(s,i){e(s,s?!1:Nl(i,t,o))})}function ad(t,o){return Nl(Cl.statSync(t),t,o)}});var Il=S((df,Yl)=>{Yl.exports=Vl;Vl.sync=cd;var El=require("fs");function Vl(t,o,e){El.stat(t,function(s,i){e(s,s?!1:Xl(i,o))})}function cd(t,o){return Xl(El.statSync(t),o)}function Xl(t,o){return t.isFile()&&ld(t,o)}function ld(t,o){var e=t.mode,s=t.uid,i=t.gid,r=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),n=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),d=a|c,x=e&u||e&c&&i===n||e&a&&s===r||e&d&&r===0;return x}});var Pl=S((yf,Zl)=>{var wf=require("fs"),js;process.platform==="win32"||global.TESTING_WINDOWS?js=Ml():js=Il();Zl.exports=Fr;Fr.sync=ud;function Fr(t,o,e){if(typeof o=="function"&&(e=o,o={}),!e){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,i){Fr(t,o||{},function(r,n){r?i(r):s(n)})})}js(t,o||{},function(s,i){s&&(s.code==="EACCES"||o&&o.ignoreErrors)&&(s=null,i=!1),e(s,i)})}function ud(t,o){try{return js.sync(t,o||{})}catch(e){if(o&&o.ignoreErrors||e.code==="EACCES")return!1;throw e}}});var Rl=S((hf,jl)=>{var At=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Ll=require("path"),_d=At?";":":",Tl=Pl(),Ul=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Al=(t,o)=>{let e=o.colon||_d,s=t.match(/\//)||At&&t.match(/\\/)?[""]:[...At?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(e)],i=At?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=At?i.split(e):[""];return At&&t.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:s,pathExt:r,pathExtExe:i}},Ql=(t,o,e)=>{typeof o=="function"&&(e=o,o={}),o||(o={});let{pathEnv:s,pathExt:i,pathExtExe:r}=Al(t,o),n=[],a=u=>new Promise((d,x)=>{if(u===s.length)return o.all&&n.length?d(n):x(Ul(t));let m=s[u],w=/^".*"$/.test(m)?m.slice(1,-1):m,f=Ll.join(w,t),k=!w&&/^\.[\\\/]/.test(t)?t.slice(0,2)+f:f;d(c(k,u,0))}),c=(u,d,x)=>new Promise((m,w)=>{if(x===i.length)return m(a(d+1));let f=i[x];Tl(u+f,{pathExt:r},(k,W)=>{if(!k&&W)if(o.all)n.push(u+f);else return m(u+f);return m(c(u,d,x+1))})});return e?a(0).then(u=>e(null,u),e):a(0)},xd=(t,o)=>{o=o||{};let{pathEnv:e,pathExt:s,pathExtExe:i}=Al(t,o),r=[];for(let n=0;n<e.length;n++){let a=e[n],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=Ll.join(c,t),d=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let x=0;x<s.length;x++){let m=d+s[x];try{if(Tl.sync(m,{pathExt:i}))if(o.all)r.push(m);else return m}catch{}}}if(o.all&&r.length)return r;if(o.nothrow)return null;throw Ul(t)};jl.exports=Ql;Ql.sync=xd});var Bl=S((ff,Mr)=>{"use strict";var Jl=(t={})=>{let o=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(o).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};Mr.exports=Jl;Mr.exports.default=Jl});var ou=S((zf,Hl)=>{"use strict";var Dl=require("path"),md=Rl(),gd=Bl();function $l(t,o){let e=t.options.env||process.env,s=process.cwd(),i=t.options.cwd!=null,r=i&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(t.options.cwd)}catch{}let n;try{n=md.sync(t.command,{path:e[gd({env:e})],pathExt:o?Dl.delimiter:void 0})}catch{}finally{r&&process.chdir(s)}return n&&(n=Dl.resolve(i?t.options.cwd:"",n)),n}function Od(t){return $l(t)||$l(t,!0)}Hl.exports=Od});var tu=S((kf,Vr)=>{"use strict";var Er=/([()\][%!^"`<>&|;, *?])/g;function dd(t){return t=t.replace(Er,"^$1"),t}function wd(t,o){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Er,"^$1"),o&&(t=t.replace(Er,"^$1")),t}Vr.exports.command=dd;Vr.exports.argument=wd});var su=S((Kf,eu)=>{"use strict";eu.exports=/^#!(.*)/});var ru=S((Gf,iu)=>{"use strict";var yd=su();iu.exports=(t="")=>{let o=t.match(yd);if(!o)return null;let[e,s]=o[0].replace(/#! ?/,"").split(" "),i=e.split("/").pop();return i==="env"?s:s?`${i} ${s}`:i}});var au=S((bf,nu)=>{"use strict";var Xr=require("fs"),hd=ru();function fd(t){let e=Buffer.alloc(150),s;try{s=Xr.openSync(t,"r"),Xr.readSync(s,e,0,150,0),Xr.closeSync(s)}catch{}return hd(e.toString())}nu.exports=fd});var _u=S((vf,uu)=>{"use strict";var zd=require("path"),cu=ou(),lu=tu(),kd=au(),Kd=process.platform==="win32",Gd=/\.(?:com|exe)$/i,bd=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function vd(t){t.file=cu(t);let o=t.file&&kd(t.file);return o?(t.args.unshift(t.file),t.command=o,cu(t)):t.file}function Wd(t){if(!Kd)return t;let o=vd(t),e=!Gd.test(o);if(t.options.forceShell||e){let s=bd.test(o);t.command=zd.normalize(t.command),t.command=lu.command(t.command),t.args=t.args.map(r=>lu.argument(r,s));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function pd(t,o,e){o&&!Array.isArray(o)&&(e=o,o=null),o=o?o.slice(0):[],e=Object.assign({},e);let s={command:t,args:o,options:e,file:void 0,original:{command:t,args:o}};return e.shell?s:Wd(s)}uu.exports=pd});var gu=S((Wf,mu)=>{"use strict";var Yr=process.platform==="win32";function Ir(t,o){return Object.assign(new Error(`${o} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${t.command}`,path:t.command,spawnargs:t.args})}function qd(t,o){if(!Yr)return;let e=t.emit;t.emit=function(s,i){if(s==="exit"){let r=xu(i,o,"spawn");if(r)return e.call(t,"error",r)}return e.apply(t,arguments)}}function xu(t,o){return Yr&&t===1&&!o.file?Ir(o.original,"spawn"):null}function Cd(t,o){return Yr&&t===1&&!o.file?Ir(o.original,"spawnSync"):null}mu.exports={hookChildProcess:qd,verifyENOENT:xu,verifyENOENTSync:Cd,notFoundError:Ir}});var wu=S((pf,Qt)=>{"use strict";var Ou=require("child_process"),Zr=_u(),Pr=gu();function du(t,o,e){let s=Zr(t,o,e),i=Ou.spawn(s.command,s.args,s.options);return Pr.hookChildProcess(i,s),i}function Nd(t,o,e){let s=Zr(t,o,e),i=Ou.spawnSync(s.command,s.args,s.options);return i.error=i.error||Pr.verifyENOENTSync(i.status,s),i}Qt.exports=du;Qt.exports.spawn=du;Qt.exports.sync=Nd;Qt.exports._parse=Zr;Qt.exports._enoent=Pr});var hu=S((Lr,yu)=>{"use strict";var Sd=Lr&&Lr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Fd=Sd(wu());function Md(t,o,e={}){let s=new Error,i=s.stack?s.stack.replace(/^.*/," ..."):null,r,n=new Promise((a,c)=>{let{ignoreStdio:u,...d}=e;r=(0,Fd.default)(t,o,d);let x="",m="";u||(r.stdout&&r.stdout.on("data",k=>{x+=k}),r.stderr&&r.stderr.on("data",k=>{m+=k}));let w=(k,W)=>{r.removeListener("error",f);let p={pid:r.pid,output:[x,m],stdout:x,stderr:m,status:k,signal:W};if(k!==0){let q=o&&o.length>0?` ${o.join(" ")}`:"",O=W?new Error(`${t}${q} exited with signal: ${W}`):new Error(`${t}${q} exited with non-zero code: ${k}`);O.stack&&i&&(O.stack+=`
12
+ ${i}`),Object.assign(O,p),c(O)}else a(p)},f=k=>{u?r.removeListener("exit",w):r.removeListener("close",w),Object.assign(k,{pid:r.pid,output:[x,m],stdout:x,stderr:m,status:null,signal:null}),c(k)};u?r.once("exit",w):r.once("close",w),r.once("error",f)});return n.child=r,n}yu.exports=Md});var zu=S((qf,fu)=>{"use strict";var Ed=require("fs"),Vd=require("os"),Tr=Symbol.for("__RESOLVED_TEMP_DIRECTORY__");global[Tr]||Object.defineProperty(global,Tr,{value:Ed.realpathSync(Vd.tmpdir())});fu.exports=global[Tr]});var Mu=S((Mf,Fu)=>{"use strict";Fu.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Qr=S((Ef,Vu)=>{var Le=Mu(),Eu={};for(let t of Object.keys(Le))Eu[Le[t]]=t;var Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Vu.exports=Y;for(let t of Object.keys(Y)){if(!("channels"in Y[t]))throw new Error("missing channels property: "+t);if(!("labels"in Y[t]))throw new Error("missing channel labels property: "+t);if(Y[t].labels.length!==Y[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:o,labels:e}=Y[t];delete Y[t].channels,delete Y[t].labels,Object.defineProperty(Y[t],"channels",{value:o}),Object.defineProperty(Y[t],"labels",{value:e})}Y.rgb.hsl=function(t){let o=t[0]/255,e=t[1]/255,s=t[2]/255,i=Math.min(o,e,s),r=Math.max(o,e,s),n=r-i,a,c;r===i?a=0:o===r?a=(e-s)/n:e===r?a=2+(s-o)/n:s===r&&(a=4+(o-e)/n),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+r)/2;return r===i?c=0:u<=.5?c=n/(r+i):c=n/(2-r-i),[a,c*100,u*100]};Y.rgb.hsv=function(t){let o,e,s,i,r,n=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(n,a,c),d=u-Math.min(n,a,c),x=function(m){return(u-m)/6/d+1/2};return d===0?(i=0,r=0):(r=d/u,o=x(n),e=x(a),s=x(c),n===u?i=s-e:a===u?i=1/3+o-s:c===u&&(i=2/3+e-o),i<0?i+=1:i>1&&(i-=1)),[i*360,r*100,u*100]};Y.rgb.hwb=function(t){let o=t[0],e=t[1],s=t[2],i=Y.rgb.hsl(t)[0],r=1/255*Math.min(o,Math.min(e,s));return s=1-1/255*Math.max(o,Math.max(e,s)),[i,r*100,s*100]};Y.rgb.cmyk=function(t){let o=t[0]/255,e=t[1]/255,s=t[2]/255,i=Math.min(1-o,1-e,1-s),r=(1-o-i)/(1-i)||0,n=(1-e-i)/(1-i)||0,a=(1-s-i)/(1-i)||0;return[r*100,n*100,a*100,i*100]};function Pd(t,o){return(t[0]-o[0])**2+(t[1]-o[1])**2+(t[2]-o[2])**2}Y.rgb.keyword=function(t){let o=Eu[t];if(o)return o;let e=1/0,s;for(let i of Object.keys(Le)){let r=Le[i],n=Pd(t,r);n<e&&(e=n,s=i)}return s};Y.keyword.rgb=function(t){return Le[t]};Y.rgb.xyz=function(t){let o=t[0]/255,e=t[1]/255,s=t[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;let i=o*.4124+e*.3576+s*.1805,r=o*.2126+e*.7152+s*.0722,n=o*.0193+e*.1192+s*.9505;return[i*100,r*100,n*100]};Y.rgb.lab=function(t){let o=Y.rgb.xyz(t),e=o[0],s=o[1],i=o[2];e/=95.047,s/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let r=116*s-16,n=500*(e-s),a=200*(s-i);return[r,n,a]};Y.hsl.rgb=function(t){let o=t[0]/360,e=t[1]/100,s=t[2]/100,i,r,n;if(e===0)return n=s*255,[n,n,n];s<.5?i=s*(1+e):i=s+e-s*e;let a=2*s-i,c=[0,0,0];for(let u=0;u<3;u++)r=o+1/3*-(u-1),r<0&&r++,r>1&&r--,6*r<1?n=a+(i-a)*6*r:2*r<1?n=i:3*r<2?n=a+(i-a)*(2/3-r)*6:n=a,c[u]=n*255;return c};Y.hsl.hsv=function(t){let o=t[0],e=t[1]/100,s=t[2]/100,i=e,r=Math.max(s,.01);s*=2,e*=s<=1?s:2-s,i*=r<=1?r:2-r;let n=(s+e)/2,a=s===0?2*i/(r+i):2*e/(s+e);return[o,a*100,n*100]};Y.hsv.rgb=function(t){let o=t[0]/60,e=t[1]/100,s=t[2]/100,i=Math.floor(o)%6,r=o-Math.floor(o),n=255*s*(1-e),a=255*s*(1-e*r),c=255*s*(1-e*(1-r));switch(s*=255,i){case 0:return[s,c,n];case 1:return[a,s,n];case 2:return[n,s,c];case 3:return[n,a,s];case 4:return[c,n,s];case 5:return[s,n,a]}};Y.hsv.hsl=function(t){let o=t[0],e=t[1]/100,s=t[2]/100,i=Math.max(s,.01),r,n;n=(2-e)*s;let a=(2-e)*i;return r=e*i,r/=a<=1?a:2-a,r=r||0,n/=2,[o,r*100,n*100]};Y.hwb.rgb=function(t){let o=t[0]/360,e=t[1]/100,s=t[2]/100,i=e+s,r;i>1&&(e/=i,s/=i);let n=Math.floor(6*o),a=1-s;r=6*o-n,(n&1)!==0&&(r=1-r);let c=e+r*(a-e),u,d,x;switch(n){default:case 6:case 0:u=a,d=c,x=e;break;case 1:u=c,d=a,x=e;break;case 2:u=e,d=a,x=c;break;case 3:u=e,d=c,x=a;break;case 4:u=c,d=e,x=a;break;case 5:u=a,d=e,x=c;break}return[u*255,d*255,x*255]};Y.cmyk.rgb=function(t){let o=t[0]/100,e=t[1]/100,s=t[2]/100,i=t[3]/100,r=1-Math.min(1,o*(1-i)+i),n=1-Math.min(1,e*(1-i)+i),a=1-Math.min(1,s*(1-i)+i);return[r*255,n*255,a*255]};Y.xyz.rgb=function(t){let o=t[0]/100,e=t[1]/100,s=t[2]/100,i,r,n;return i=o*3.2406+e*-1.5372+s*-.4986,r=o*-.9689+e*1.8758+s*.0415,n=o*.0557+e*-.204+s*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),n=Math.min(Math.max(0,n),1),[i*255,r*255,n*255]};Y.xyz.lab=function(t){let o=t[0],e=t[1],s=t[2];o/=95.047,e/=100,s/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let i=116*e-16,r=500*(o-e),n=200*(e-s);return[i,r,n]};Y.lab.xyz=function(t){let o=t[0],e=t[1],s=t[2],i,r,n;r=(o+16)/116,i=e/500+r,n=r-s/200;let a=r**3,c=i**3,u=n**3;return r=a>.008856?a:(r-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,i*=95.047,r*=100,n*=108.883,[i,r,n]};Y.lab.lch=function(t){let o=t[0],e=t[1],s=t[2],i;i=Math.atan2(s,e)*360/2/Math.PI,i<0&&(i+=360);let n=Math.sqrt(e*e+s*s);return[o,n,i]};Y.lch.lab=function(t){let o=t[0],e=t[1],i=t[2]/360*2*Math.PI,r=e*Math.cos(i),n=e*Math.sin(i);return[o,r,n]};Y.rgb.ansi16=function(t,o=null){let[e,s,i]=t,r=o===null?Y.rgb.hsv(t)[2]:o;if(r=Math.round(r/50),r===0)return 30;let n=30+(Math.round(i/255)<<2|Math.round(s/255)<<1|Math.round(e/255));return r===2&&(n+=60),n};Y.hsv.ansi16=function(t){return Y.rgb.ansi16(Y.hsv.rgb(t),t[2])};Y.rgb.ansi256=function(t){let o=t[0],e=t[1],s=t[2];return o===e&&e===s?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(e/255*5)+Math.round(s/255*5)};Y.ansi16.rgb=function(t){let o=t%10;if(o===0||o===7)return t>50&&(o+=3.5),o=o/10.5*255,[o,o,o];let e=(~~(t>50)+1)*.5,s=(o&1)*e*255,i=(o>>1&1)*e*255,r=(o>>2&1)*e*255;return[s,i,r]};Y.ansi256.rgb=function(t){if(t>=232){let r=(t-232)*10+8;return[r,r,r]}t-=16;let o,e=Math.floor(t/36)/5*255,s=Math.floor((o=t%36)/6)/5*255,i=o%6/5*255;return[e,s,i]};Y.rgb.hex=function(t){let e=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(e.length)+e};Y.hex.rgb=function(t){let o=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let e=o[0];o[0].length===3&&(e=e.split("").map(a=>a+a).join(""));let s=parseInt(e,16),i=s>>16&255,r=s>>8&255,n=s&255;return[i,r,n]};Y.rgb.hcg=function(t){let o=t[0]/255,e=t[1]/255,s=t[2]/255,i=Math.max(Math.max(o,e),s),r=Math.min(Math.min(o,e),s),n=i-r,a,c;return n<1?a=r/(1-n):a=0,n<=0?c=0:i===o?c=(e-s)/n%6:i===e?c=2+(s-o)/n:c=4+(o-e)/n,c/=6,c%=1,[c*360,n*100,a*100]};Y.hsl.hcg=function(t){let o=t[1]/100,e=t[2]/100,s=e<.5?2*o*e:2*o*(1-e),i=0;return s<1&&(i=(e-.5*s)/(1-s)),[t[0],s*100,i*100]};Y.hsv.hcg=function(t){let o=t[1]/100,e=t[2]/100,s=o*e,i=0;return s<1&&(i=(e-s)/(1-s)),[t[0],s*100,i*100]};Y.hcg.rgb=function(t){let o=t[0]/360,e=t[1]/100,s=t[2]/100;if(e===0)return[s*255,s*255,s*255];let i=[0,0,0],r=o%1*6,n=r%1,a=1-n,c=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=n,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=n;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=n,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-e)*s,[(e*i[0]+c)*255,(e*i[1]+c)*255,(e*i[2]+c)*255]};Y.hcg.hsv=function(t){let o=t[1]/100,e=t[2]/100,s=o+e*(1-o),i=0;return s>0&&(i=o/s),[t[0],i*100,s*100]};Y.hcg.hsl=function(t){let o=t[1]/100,s=t[2]/100*(1-o)+.5*o,i=0;return s>0&&s<.5?i=o/(2*s):s>=.5&&s<1&&(i=o/(2*(1-s))),[t[0],i*100,s*100]};Y.hcg.hwb=function(t){let o=t[1]/100,e=t[2]/100,s=o+e*(1-o);return[t[0],(s-o)*100,(1-s)*100]};Y.hwb.hcg=function(t){let o=t[1]/100,s=1-t[2]/100,i=s-o,r=0;return i<1&&(r=(s-i)/(1-i)),[t[0],i*100,r*100]};Y.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Y.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Y.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Y.gray.hsl=function(t){return[0,0,t[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(t){return[0,100,t[0]]};Y.gray.cmyk=function(t){return[0,0,0,t[0]]};Y.gray.lab=function(t){return[t[0],0,0]};Y.gray.hex=function(t){let o=Math.round(t[0]/100*255)&255,s=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(s.length)+s};Y.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Yu=S((Vf,Xu)=>{var Ds=Qr();function Ld(){let t={},o=Object.keys(Ds);for(let e=o.length,s=0;s<e;s++)t[o[s]]={distance:-1,parent:null};return t}function Td(t){let o=Ld(),e=[t];for(o[t].distance=0;e.length;){let s=e.pop(),i=Object.keys(Ds[s]);for(let r=i.length,n=0;n<r;n++){let a=i[n],c=o[a];c.distance===-1&&(c.distance=o[s].distance+1,c.parent=s,e.unshift(a))}}return o}function Ud(t,o){return function(e){return o(t(e))}}function Ad(t,o){let e=[o[t].parent,t],s=Ds[o[t].parent][t],i=o[t].parent;for(;o[i].parent;)e.unshift(o[i].parent),s=Ud(Ds[o[i].parent][i],s),i=o[i].parent;return s.conversion=e,s}Xu.exports=function(t){let o=Td(t),e={},s=Object.keys(o);for(let i=s.length,r=0;r<i;r++){let n=s[r];o[n].parent!==null&&(e[n]=Ad(n,o))}return e}});var Zu=S((Xf,Iu)=>{var jr=Qr(),Qd=Yu(),Bt={},jd=Object.keys(jr);function Rd(t){let o=function(...e){let s=e[0];return s==null?s:(s.length>1&&(e=s),t(e))};return"conversion"in t&&(o.conversion=t.conversion),o}function Jd(t){let o=function(...e){let s=e[0];if(s==null)return s;s.length>1&&(e=s);let i=t(e);if(typeof i=="object")for(let r=i.length,n=0;n<r;n++)i[n]=Math.round(i[n]);return i};return"conversion"in t&&(o.conversion=t.conversion),o}jd.forEach(t=>{Bt[t]={},Object.defineProperty(Bt[t],"channels",{value:jr[t].channels}),Object.defineProperty(Bt[t],"labels",{value:jr[t].labels});let o=Qd(t);Object.keys(o).forEach(s=>{let i=o[s];Bt[t][s]=Jd(i),Bt[t][s].raw=Rd(i)})});Iu.exports=Bt});var Qu=S((Yf,Au)=>{"use strict";var Pu=(t,o)=>(...e)=>`\x1B[${t(...e)+o}m`,Lu=(t,o)=>(...e)=>{let s=t(...e);return`\x1B[${38+o};5;${s}m`},Tu=(t,o)=>(...e)=>{let s=t(...e);return`\x1B[${38+o};2;${s[0]};${s[1]};${s[2]}m`},$s=t=>t,Uu=(t,o,e)=>[t,o,e],Dt=(t,o,e)=>{Object.defineProperty(t,o,{get:()=>{let s=e();return Object.defineProperty(t,o,{value:s,enumerable:!0,configurable:!0}),s},enumerable:!0,configurable:!0})},Rr,$t=(t,o,e,s)=>{Rr===void 0&&(Rr=Zu());let i=s?10:0,r={};for(let[n,a]of Object.entries(Rr)){let c=n==="ansi16"?"ansi":n;n===o?r[c]=t(e,i):typeof a=="object"&&(r[c]=t(a[o],i))}return r};function Bd(){let t=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[e,s]of Object.entries(o)){for(let[i,r]of Object.entries(s))o[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},s[i]=o[i],t.set(r[0],r[1]);Object.defineProperty(o,e,{value:s,enumerable:!1})}return Object.defineProperty(o,"codes",{value:t,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",Dt(o.color,"ansi",()=>$t(Pu,"ansi16",$s,!1)),Dt(o.color,"ansi256",()=>$t(Lu,"ansi256",$s,!1)),Dt(o.color,"ansi16m",()=>$t(Tu,"rgb",Uu,!1)),Dt(o.bgColor,"ansi",()=>$t(Pu,"ansi16",$s,!0)),Dt(o.bgColor,"ansi256",()=>$t(Lu,"ansi256",$s,!0)),Dt(o.bgColor,"ansi16m",()=>$t(Tu,"rgb",Uu,!0)),o}Object.defineProperty(Au,"exports",{enumerable:!0,get:Bd})});var Ru=S((If,ju)=>{"use strict";ju.exports=(t,o=process.argv)=>{let e=t.startsWith("-")?"":t.length===1?"-":"--",s=o.indexOf(e+t),i=o.indexOf("--");return s!==-1&&(i===-1||s<i)}});var Dr=S((Zf,Bu)=>{"use strict";var Dd=require("os"),Ju=require("tty"),Co=Ru(),{env:oo}=process,mt;Co("no-color")||Co("no-colors")||Co("color=false")||Co("color=never")?mt=0:(Co("color")||Co("colors")||Co("color=true")||Co("color=always"))&&(mt=1);"FORCE_COLOR"in oo&&(oo.FORCE_COLOR==="true"?mt=1:oo.FORCE_COLOR==="false"?mt=0:mt=oo.FORCE_COLOR.length===0?1:Math.min(parseInt(oo.FORCE_COLOR,10),3));function Jr(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Br(t,o){if(mt===0)return 0;if(Co("color=16m")||Co("color=full")||Co("color=truecolor"))return 3;if(Co("color=256"))return 2;if(t&&!o&&mt===void 0)return 0;let e=mt||0;if(oo.TERM==="dumb")return e;if(process.platform==="win32"){let s=Dd.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in oo)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(s=>s in oo)||oo.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in oo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(oo.TEAMCITY_VERSION)?1:0;if(oo.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in oo){let s=parseInt((oo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(oo.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(oo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(oo.TERM)||"COLORTERM"in oo?1:e}function $d(t){let o=Br(t,t&&t.isTTY);return Jr(o)}Bu.exports={supportsColor:$d,stdout:Jr(Br(!0,Ju.isatty(1))),stderr:Jr(Br(!0,Ju.isatty(2)))}});var $u=S((Pf,Du)=>{"use strict";var Hd=(t,o,e)=>{let s=t.indexOf(o);if(s===-1)return t;let i=o.length,r=0,n="";do n+=t.substr(r,s-r)+o+e,r=s+i,s=t.indexOf(o,r);while(s!==-1);return n+=t.substr(r),n},ow=(t,o,e,s)=>{let i=0,r="";do{let n=t[s-1]==="\r";r+=t.substr(i,(n?s-1:s)-i)+o+(n?`\r
13
13
  `:`
14
14
  `)+e,i=s+1,s=t.indexOf(`
15
- `,i)}while(s!==-1);return r+=t.substr(i),r};$l.exports={stringReplaceAll:IO,stringEncaseCRLFWithFirstIndex:ZO}});var iu=S((Zh,su)=>{"use strict";var PO=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ou=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,LO=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,TO=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,UO=new Map([["n",`
16
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function eu(t){let o=t[0]==="u",e=t[1]==="{";return o&&!e&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):o&&e?String.fromCodePoint(parseInt(t.slice(2,-1),16)):UO.get(t)||t}function AO(t,o){let e=[],s=o.trim().split(/\s*,\s*/g),i;for(let r of s){let n=Number(r);if(!Number.isNaN(n))e.push(n);else if(i=r.match(LO))e.push(i[2].replace(TO,(a,c,u)=>c?eu(c):u));else throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}return e}function QO(t){ou.lastIndex=0;let o=[],e;for(;(e=ou.exec(t))!==null;){let s=e[1];if(e[2]){let i=AO(s,e[2]);o.push([s].concat(i))}else o.push([s])}return o}function tu(t,o){let e={};for(let i of o)for(let r of i.styles)e[r[0]]=i.inverse?null:r.slice(1);let s=t;for(let[i,r]of Object.entries(e))if(Array.isArray(r)){if(!(i in s))throw new Error(`Unknown Chalk style: ${i}`);s=r.length>0?s[i](...r):s[i]}return s}su.exports=(t,o)=>{let e=[],s=[],i=[];if(o.replace(PO,(r,n,a,c,u,d)=>{if(n)i.push(eu(n));else if(c){let x=i.join("");i=[],s.push(e.length===0?x:tu(t,e)(x)),e.push({inverse:a,styles:QO(c)})}else if(u){if(e.length===0)throw new Error("Found extraneous } in Chalk template literal");s.push(tu(t,e)(i.join(""))),i=[],e.pop()}else i.push(d)}),s.push(i.join("")),e.length>0){let r=`Chalk template literal is missing ${e.length} closing bracket${e.length===1?"":"s"} (\`}\`)`;throw new Error(r)}return s.join("")}});var _u=S((Ph,uu)=>{"use strict";var ve=jl(),{stdout:Fr,stderr:Mr}=Nr(),{stringReplaceAll:jO,stringEncaseCRLFWithFirstIndex:RO}=Hl(),{isArray:Fs}=Array,nu=["ansi","ansi","ansi256","ansi16m"],Lt=Object.create(null),JO=(t,o={})=>{if(o.level&&!(Number.isInteger(o.level)&&o.level>=0&&o.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let e=Fr?Fr.level:0;t.level=o.level===void 0?e:o.level},Er=class{constructor(o){return au(o)}},au=t=>{let o={};return JO(o,t),o.template=(...e)=>lu(o.template,...e),Object.setPrototypeOf(o,Ms.prototype),Object.setPrototypeOf(o.template,o),o.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},o.template.Instance=Er,o.template};function Ms(t){return au(t)}for(let[t,o]of Object.entries(ve))Lt[t]={get(){let e=Es(this,Vr(o.open,o.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:e}),e}};Lt.visible={get(){let t=Es(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var cu=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of cu)Lt[t]={get(){let{level:o}=this;return function(...e){let s=Vr(ve.color[nu[o]][t](...e),ve.color.close,this._styler);return Es(this,s,this._isEmpty)}}};for(let t of cu){let o="bg"+t[0].toUpperCase()+t.slice(1);Lt[o]={get(){let{level:e}=this;return function(...s){let i=Vr(ve.bgColor[nu[e]][t](...s),ve.bgColor.close,this._styler);return Es(this,i,this._isEmpty)}}}}var BO=Object.defineProperties(()=>{},{...Lt,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Vr=(t,o,e)=>{let s,i;return e===void 0?(s=t,i=o):(s=e.openAll+t,i=o+e.closeAll),{open:t,close:o,openAll:s,closeAll:i,parent:e}},Es=(t,o,e)=>{let s=(...i)=>Fs(i[0])&&Fs(i[0].raw)?ru(s,lu(s,...i)):ru(s,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(s,BO),s._generator=t,s._styler=o,s._isEmpty=e,s},ru=(t,o)=>{if(t.level<=0||!o)return t._isEmpty?"":o;let e=t._styler;if(e===void 0)return o;let{openAll:s,closeAll:i}=e;if(o.indexOf("\x1B")!==-1)for(;e!==void 0;)o=jO(o,e.close,e.open),e=e.parent;let r=o.indexOf(`
17
- `);return r!==-1&&(o=RO(o,i,s,r)),s+o+i},Sr,lu=(t,...o)=>{let[e]=o;if(!Fs(e)||!Fs(e.raw))return o.join(" ");let s=o.slice(1),i=[e.raw[0]];for(let r=1;r<e.length;r++)i.push(String(s[r-1]).replace(/[{}\\]/g,"\\$&"),String(e.raw[r]));return Sr===void 0&&(Sr=iu()),Sr(t,i.join(""))};Object.defineProperties(Ms.prototype,Lt);var Vs=Ms();Vs.supportsColor=Fr;Vs.stderr=Ms({level:Mr?Mr.level:0});Vs.stderr.supportsColor=Mr;uu.exports=Vs});var xu=S((Lh,DO)=>{DO.exports={name:"dotenv",version:"16.4.7",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var du=S((Th,ot)=>{var Xr=require("fs"),Yr=require("path"),$O=require("os"),HO=require("crypto"),od=xu(),Ir=od.version,td=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function ed(t){let o={},e=t.toString();e=e.replace(/\r\n?/mg,`
18
- `);let s;for(;(s=td.exec(e))!=null;){let i=s[1],r=s[2]||"";r=r.trim();let n=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),n==='"'&&(r=r.replace(/\\n/g,`
19
- `),r=r.replace(/\\r/g,"\r")),o[i]=r}return o}function sd(t){let o=Ou(t),e=B.configDotenv({path:o});if(!e.parsed){let n=new Error(`MISSING_DATA: Cannot parse ${o} for an unknown reason`);throw n.code="MISSING_DATA",n}let s=gu(t).split(","),i=s.length,r;for(let n=0;n<i;n++)try{let a=s[n].trim(),c=nd(e,a);r=B.decrypt(c.ciphertext,c.key);break}catch(a){if(n+1>=i)throw a}return B.parse(r)}function id(t){console.log(`[dotenv@${Ir}][INFO] ${t}`)}function rd(t){console.log(`[dotenv@${Ir}][WARN] ${t}`)}function Xs(t){console.log(`[dotenv@${Ir}][DEBUG] ${t}`)}function gu(t){return t&&t.DOTENV_KEY&&t.DOTENV_KEY.length>0?t.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function nd(t,o){let e;try{e=new URL(o)}catch(a){if(a.code==="ERR_INVALID_URL"){let c=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw c.code="INVALID_DOTENV_KEY",c}throw a}let s=e.password;if(!s){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let i=e.searchParams.get("environment");if(!i){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let r=`DOTENV_VAULT_${i.toUpperCase()}`,n=t.parsed[r];if(!n){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${r} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:n,key:s}}function Ou(t){let o=null;if(t&&t.path&&t.path.length>0)if(Array.isArray(t.path))for(let e of t.path)Xr.existsSync(e)&&(o=e.endsWith(".vault")?e:`${e}.vault`);else o=t.path.endsWith(".vault")?t.path:`${t.path}.vault`;else o=Yr.resolve(process.cwd(),".env.vault");return Xr.existsSync(o)?o:null}function mu(t){return t[0]==="~"?Yr.join($O.homedir(),t.slice(1)):t}function ad(t){id("Loading env from encrypted .env.vault");let o=B._parseVault(t),e=process.env;return t&&t.processEnv!=null&&(e=t.processEnv),B.populate(e,o,t),{parsed:o}}function cd(t){let o=Yr.resolve(process.cwd(),".env"),e="utf8",s=!!(t&&t.debug);t&&t.encoding?e=t.encoding:s&&Xs("No encoding is specified. UTF-8 is used by default");let i=[o];if(t&&t.path)if(!Array.isArray(t.path))i=[mu(t.path)];else{i=[];for(let c of t.path)i.push(mu(c))}let r,n={};for(let c of i)try{let u=B.parse(Xr.readFileSync(c,{encoding:e}));B.populate(n,u,t)}catch(u){s&&Xs(`Failed to load ${c} ${u.message}`),r=u}let a=process.env;return t&&t.processEnv!=null&&(a=t.processEnv),B.populate(a,n,t),r?{parsed:n,error:r}:{parsed:n}}function ld(t){if(gu(t).length===0)return B.configDotenv(t);let o=Ou(t);return o?B._configVault(t):(rd(`You set DOTENV_KEY but you are missing a .env.vault file at ${o}. Did you forget to build it?`),B.configDotenv(t))}function ud(t,o){let e=Buffer.from(o.slice(-64),"hex"),s=Buffer.from(t,"base64"),i=s.subarray(0,12),r=s.subarray(-16);s=s.subarray(12,-16);try{let n=HO.createDecipheriv("aes-256-gcm",e,i);return n.setAuthTag(r),`${n.update(s)}${n.final()}`}catch(n){let a=n instanceof RangeError,c=n.message==="Invalid key length",u=n.message==="Unsupported state or unable to authenticate data";if(a||c){let d=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw d.code="INVALID_DOTENV_KEY",d}else if(u){let d=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw d.code="DECRYPTION_FAILED",d}else throw n}}function _d(t,o,e={}){let s=!!(e&&e.debug),i=!!(e&&e.override);if(typeof o!="object"){let r=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw r.code="OBJECT_REQUIRED",r}for(let r of Object.keys(o))Object.prototype.hasOwnProperty.call(t,r)?(i===!0&&(t[r]=o[r]),s&&Xs(i===!0?`"${r}" is already defined and WAS overwritten`:`"${r}" is already defined and was NOT overwritten`)):t[r]=o[r]}var B={configDotenv:cd,_configVault:ad,_parseVault:sd,config:ld,decrypt:ud,parse:ed,populate:_d};ot.exports.configDotenv=B.configDotenv;ot.exports._configVault=B._configVault;ot.exports._parseVault=B._parseVault;ot.exports.config=B.config;ot.exports.decrypt=B.decrypt;ot.exports.parse=B.parse;ot.exports.populate=B.populate;ot.exports=B});var yu=S((Uh,wu)=>{"use strict";var xd=/(\\)?(\$)(?!\()(\{?)([\w.]+)(?::?-((?:\$\{(?:\$\{(?:\$\{[^}]*\}|[^}])*}|[^}])*}|[^}])+))?(\}?)/gi;function md(t){return t.replace(/\\\$/g,"$")}function pe(t,o,e){return t.replace(xd,(s,i,r,n,a,c,u)=>i==="\\"?s.slice(1):o[a]?o[a]===e[a]?o[a]:pe(o[a],o,e):e[a]&&e[a]!==t?pe(e[a],o,e):c?c.startsWith("$")?pe(c,o,e):c:"")}function gd(t){let o=process.env;t&&t.processEnv!=null&&(o=t.processEnv);for(let e in t.parsed){let s=t.parsed[e];Object.prototype.hasOwnProperty.call(o,e)?o[e]===t.parsed[e]?s=pe(s,o,t.parsed):s=o[e]:s=pe(s,o,t.parsed),t.parsed[e]=md(s)}for(let e in t.parsed)o[e]=t.parsed[e];return t}wu.exports.expand=gd});var ku=S((Ah,zu)=>{var Od=require("util"),dd=require("url"),Zr=!1,Pr=!0;function hu(t,o){let e=process.env[t];if(e===void 0){if(o===void 0&&!Pr)return e;if(o===void 0)throw new Error("GetEnv.Nonexistent: "+t+" does not exist and no fallback value provided.");if(Zr)throw new Error("GetEnv.DisabledFallbacks: "+t+" relying on fallback when fallbacks have been disabled");return""+o}return e}var We={string:function(t){return""+t},int:function(t){if(!t.match(/^-?\d+$/))throw new Error("GetEnv.NoInteger: "+t+" is not an integer.");return+t},float:function(t){if(+t==1/0||+t==-1/0)throw new Error("GetEnv.Infinity: "+t+" is set to +/-Infinity.");if(!!(isNaN(t)||t===""))throw new Error("GetEnv.NoFloat: "+t+" is not a number.");return+t},bool:function(t){if(!(t==="true"||t==="false"))throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.");return t==="true"},boolish:function(t){try{return We.bool(t)}catch{if(!(t==="1"||t==="0"))throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.");return t==="1"}},url:dd.parse};function fu(t){return function(o,e){if(typeof o=="string"){let s=hu(o,e);return We[t](s)}else return Wo.multi(o)}}var Wo=fu("string");Object.keys(We).forEach(function(t){Wo[t]=fu(t)});Wo.array=function(o,e,s){if(e=e||"string",Object.keys(We).indexOf(e)===-1)throw new Error("GetEnv.ArrayUndefinedType: Unknown array type "+e);return hu(o,s).split(/\s*,\s*/).map(We[e])};Wo.multi=function(o){let e={};for(let s in o){let i=o[s];if(Od.isArray(i))switch(i.length){case 1:case 2:e[s]=Wo(i[0],i[1]);break;case 3:e[s]=Wo[i[2]](i[0],i[1]);break;default:throw"getenv.multi(): invalid spec"}else e[s]=Wo(i)}return e};Wo.disableFallbacks=function(){Zr=!0};Wo.enableFallbacks=function(){Zr=!1};Wo.disableErrors=function(){Pr=!1};Wo.enableErrors=function(){Pr=!0};zu.exports=Wo});var Gu=S((Qh,Ku)=>{var Tt=1e3,Ut=Tt*60,At=Ut*60,Gt=At*24,wd=Gt*7,yd=Gt*365.25;Ku.exports=function(t,o){o=o||{};var e=typeof t;if(e==="string"&&t.length>0)return hd(t);if(e==="number"&&isFinite(t))return o.long?zd(t):fd(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function hd(t){if(t=String(t),!(t.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(o){var e=parseFloat(o[1]),s=(o[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return e*yd;case"weeks":case"week":case"w":return e*wd;case"days":case"day":case"d":return e*Gt;case"hours":case"hour":case"hrs":case"hr":case"h":return e*At;case"minutes":case"minute":case"mins":case"min":case"m":return e*Ut;case"seconds":case"second":case"secs":case"sec":case"s":return e*Tt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}function fd(t){var o=Math.abs(t);return o>=Gt?Math.round(t/Gt)+"d":o>=At?Math.round(t/At)+"h":o>=Ut?Math.round(t/Ut)+"m":o>=Tt?Math.round(t/Tt)+"s":t+"ms"}function zd(t){var o=Math.abs(t);return o>=Gt?Ys(t,o,Gt,"day"):o>=At?Ys(t,o,At,"hour"):o>=Ut?Ys(t,o,Ut,"minute"):o>=Tt?Ys(t,o,Tt,"second"):t+" ms"}function Ys(t,o,e,s){var i=o>=e*1.5;return Math.round(t/e)+" "+s+(i?"s":"")}});var Lr=S((jh,bu)=>{function kd(t){e.debug=e,e.default=e,e.coerce=c,e.disable=n,e.enable=i,e.enabled=a,e.humanize=Gu(),e.destroy=u,Object.keys(t).forEach(d=>{e[d]=t[d]}),e.names=[],e.skips=[],e.formatters={};function o(d){let x=0;for(let m=0;m<d.length;m++)x=(x<<5)-x+d.charCodeAt(m),x|=0;return e.colors[Math.abs(x)%e.colors.length]}e.selectColor=o;function e(d){let x,m=null,w,z;function k(...p){if(!k.enabled)return;let W=k,q=Number(new Date),O=q-(x||q);W.diff=O,W.prev=x,W.curr=q,x=q,p[0]=e.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let l=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(_,G)=>{if(_==="%%")return"%";l++;let y=e.formatters[G];if(typeof y=="function"){let h=p[l];_=y.call(W,h),p.splice(l,1),l--}return _}),e.formatArgs.call(W,p),(W.log||e.log).apply(W,p)}return k.namespace=d,k.useColors=e.useColors(),k.color=e.selectColor(d),k.extend=s,k.destroy=e.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(w!==e.namespaces&&(w=e.namespaces,z=e.enabled(d)),z),set:p=>{m=p}}),typeof e.init=="function"&&e.init(k),k}function s(d,x){let m=e(this.namespace+(typeof x>"u"?":":x)+d);return m.log=this.log,m}function i(d){e.save(d),e.namespaces=d,e.names=[],e.skips=[];let x=(typeof d=="string"?d:"").trim().replace(" ",",").split(",").filter(Boolean);for(let m of x)m[0]==="-"?e.skips.push(m.slice(1)):e.names.push(m)}function r(d,x){let m=0,w=0,z=-1,k=0;for(;m<d.length;)if(w<x.length&&(x[w]===d[m]||x[w]==="*"))x[w]==="*"?(z=w,k=m,w++):(m++,w++);else if(z!==-1)w=z+1,k++,m=k;else return!1;for(;w<x.length&&x[w]==="*";)w++;return w===x.length}function n(){let d=[...e.names,...e.skips.map(x=>"-"+x)].join(",");return e.enable(""),d}function a(d){for(let x of e.skips)if(r(d,x))return!1;for(let x of e.names)if(r(d,x))return!0;return!1}function c(d){return d instanceof Error?d.stack||d.message:d}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return e.enable(e.load()),e}bu.exports=kd});var vu=S((fo,Is)=>{fo.formatArgs=Gd;fo.save=bd;fo.load=vd;fo.useColors=Kd;fo.storage=pd();fo.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();fo.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Kd(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Gd(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Is.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;t.splice(1,0,o,"color: inherit");let e=0,s=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(e++,i==="%c"&&(s=e))}),t.splice(s,0,o)}fo.log=console.debug||console.log||(()=>{});function bd(t){try{t?fo.storage.setItem("debug",t):fo.storage.removeItem("debug")}catch{}}function vd(){let t;try{t=fo.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function pd(){try{return localStorage}catch{}}Is.exports=Lr()(fo);var{formatters:Wd}=Is.exports;Wd.j=function(t){try{return JSON.stringify(t)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var Wu=S(($,Ps)=>{var qd=require("tty"),Zs=require("util");$.init=Vd;$.log=Fd;$.formatArgs=Nd;$.save=Md;$.load=Ed;$.useColors=Cd;$.destroy=Zs.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");$.colors=[6,2,3,4,5,1];try{let t=Nr();t&&(t.stderr||t).level>=2&&($.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}$.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,o)=>{let e=o.substring(6).toLowerCase().replace(/_([a-z])/g,(i,r)=>r.toUpperCase()),s=process.env[o];return/^(yes|on|true|enabled)$/i.test(s)?s=!0:/^(no|off|false|disabled)$/i.test(s)?s=!1:s==="null"?s=null:s=Number(s),t[e]=s,t},{});function Cd(){return"colors"in $.inspectOpts?!!$.inspectOpts.colors:qd.isatty(process.stderr.fd)}function Nd(t){let{namespace:o,useColors:e}=this;if(e){let s=this.color,i="\x1B[3"+(s<8?s:"8;5;"+s),r=` ${i};1m${o} \x1B[0m`;t[0]=r+t[0].split(`
15
+ `,i)}while(s!==-1);return r+=t.substr(i),r};Du.exports={stringReplaceAll:Hd,stringEncaseCRLFWithFirstIndex:ow}});var s_=S((Lf,e_)=>{"use strict";var tw=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Hu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ew=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,sw=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,iw=new Map([["n",`
16
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function t_(t){let o=t[0]==="u",e=t[1]==="{";return o&&!e&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):o&&e?String.fromCodePoint(parseInt(t.slice(2,-1),16)):iw.get(t)||t}function rw(t,o){let e=[],s=o.trim().split(/\s*,\s*/g),i;for(let r of s){let n=Number(r);if(!Number.isNaN(n))e.push(n);else if(i=r.match(ew))e.push(i[2].replace(sw,(a,c,u)=>c?t_(c):u));else throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}return e}function nw(t){Hu.lastIndex=0;let o=[],e;for(;(e=Hu.exec(t))!==null;){let s=e[1];if(e[2]){let i=rw(s,e[2]);o.push([s].concat(i))}else o.push([s])}return o}function o_(t,o){let e={};for(let i of o)for(let r of i.styles)e[r[0]]=i.inverse?null:r.slice(1);let s=t;for(let[i,r]of Object.entries(e))if(Array.isArray(r)){if(!(i in s))throw new Error(`Unknown Chalk style: ${i}`);s=r.length>0?s[i](...r):s[i]}return s}e_.exports=(t,o)=>{let e=[],s=[],i=[];if(o.replace(tw,(r,n,a,c,u,d)=>{if(n)i.push(t_(n));else if(c){let x=i.join("");i=[],s.push(e.length===0?x:o_(t,e)(x)),e.push({inverse:a,styles:nw(c)})}else if(u){if(e.length===0)throw new Error("Found extraneous } in Chalk template literal");s.push(o_(t,e)(i.join(""))),i=[],e.pop()}else i.push(d)}),s.push(i.join("")),e.length>0){let r=`Chalk template literal is missing ${e.length} closing bracket${e.length===1?"":"s"} (\`}\`)`;throw new Error(r)}return s.join("")}});var u_=S((Tf,l_)=>{"use strict";var Te=Qu(),{stdout:Hr,stderr:on}=Dr(),{stringReplaceAll:aw,stringEncaseCRLFWithFirstIndex:cw}=$u(),{isArray:Hs}=Array,r_=["ansi","ansi","ansi256","ansi16m"],Ht=Object.create(null),lw=(t,o={})=>{if(o.level&&!(Number.isInteger(o.level)&&o.level>=0&&o.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let e=Hr?Hr.level:0;t.level=o.level===void 0?e:o.level},tn=class{constructor(o){return n_(o)}},n_=t=>{let o={};return lw(o,t),o.template=(...e)=>c_(o.template,...e),Object.setPrototypeOf(o,oi.prototype),Object.setPrototypeOf(o.template,o),o.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},o.template.Instance=tn,o.template};function oi(t){return n_(t)}for(let[t,o]of Object.entries(Te))Ht[t]={get(){let e=ti(this,en(o.open,o.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:e}),e}};Ht.visible={get(){let t=ti(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var a_=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of a_)Ht[t]={get(){let{level:o}=this;return function(...e){let s=en(Te.color[r_[o]][t](...e),Te.color.close,this._styler);return ti(this,s,this._isEmpty)}}};for(let t of a_){let o="bg"+t[0].toUpperCase()+t.slice(1);Ht[o]={get(){let{level:e}=this;return function(...s){let i=en(Te.bgColor[r_[e]][t](...s),Te.bgColor.close,this._styler);return ti(this,i,this._isEmpty)}}}}var uw=Object.defineProperties(()=>{},{...Ht,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),en=(t,o,e)=>{let s,i;return e===void 0?(s=t,i=o):(s=e.openAll+t,i=o+e.closeAll),{open:t,close:o,openAll:s,closeAll:i,parent:e}},ti=(t,o,e)=>{let s=(...i)=>Hs(i[0])&&Hs(i[0].raw)?i_(s,c_(s,...i)):i_(s,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(s,uw),s._generator=t,s._styler=o,s._isEmpty=e,s},i_=(t,o)=>{if(t.level<=0||!o)return t._isEmpty?"":o;let e=t._styler;if(e===void 0)return o;let{openAll:s,closeAll:i}=e;if(o.indexOf("\x1B")!==-1)for(;e!==void 0;)o=aw(o,e.close,e.open),e=e.parent;let r=o.indexOf(`
17
+ `);return r!==-1&&(o=cw(o,i,s,r)),s+o+i},$r,c_=(t,...o)=>{let[e]=o;if(!Hs(e)||!Hs(e.raw))return o.join(" ");let s=o.slice(1),i=[e.raw[0]];for(let r=1;r<e.length;r++)i.push(String(s[r-1]).replace(/[{}\\]/g,"\\$&"),String(e.raw[r]));return $r===void 0&&($r=s_()),$r(t,i.join(""))};Object.defineProperties(oi.prototype,Ht);var ei=oi();ei.supportsColor=Hr;ei.stderr=oi({level:on?on.level:0});ei.stderr.supportsColor=on;l_.exports=ei});var __=S((Uf,_w)=>{_w.exports={name:"dotenv",version:"16.4.7",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var O_=S((Af,tt)=>{var sn=require("fs"),rn=require("path"),xw=require("os"),mw=require("crypto"),gw=__(),nn=gw.version,Ow=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function dw(t){let o={},e=t.toString();e=e.replace(/\r\n?/mg,`
18
+ `);let s;for(;(s=Ow.exec(e))!=null;){let i=s[1],r=s[2]||"";r=r.trim();let n=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),n==='"'&&(r=r.replace(/\\n/g,`
19
+ `),r=r.replace(/\\r/g,"\r")),o[i]=r}return o}function ww(t){let o=g_(t),e=B.configDotenv({path:o});if(!e.parsed){let n=new Error(`MISSING_DATA: Cannot parse ${o} for an unknown reason`);throw n.code="MISSING_DATA",n}let s=m_(t).split(","),i=s.length,r;for(let n=0;n<i;n++)try{let a=s[n].trim(),c=fw(e,a);r=B.decrypt(c.ciphertext,c.key);break}catch(a){if(n+1>=i)throw a}return B.parse(r)}function yw(t){console.log(`[dotenv@${nn}][INFO] ${t}`)}function hw(t){console.log(`[dotenv@${nn}][WARN] ${t}`)}function si(t){console.log(`[dotenv@${nn}][DEBUG] ${t}`)}function m_(t){return t&&t.DOTENV_KEY&&t.DOTENV_KEY.length>0?t.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function fw(t,o){let e;try{e=new URL(o)}catch(a){if(a.code==="ERR_INVALID_URL"){let c=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw c.code="INVALID_DOTENV_KEY",c}throw a}let s=e.password;if(!s){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let i=e.searchParams.get("environment");if(!i){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let r=`DOTENV_VAULT_${i.toUpperCase()}`,n=t.parsed[r];if(!n){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${r} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return{ciphertext:n,key:s}}function g_(t){let o=null;if(t&&t.path&&t.path.length>0)if(Array.isArray(t.path))for(let e of t.path)sn.existsSync(e)&&(o=e.endsWith(".vault")?e:`${e}.vault`);else o=t.path.endsWith(".vault")?t.path:`${t.path}.vault`;else o=rn.resolve(process.cwd(),".env.vault");return sn.existsSync(o)?o:null}function x_(t){return t[0]==="~"?rn.join(xw.homedir(),t.slice(1)):t}function zw(t){yw("Loading env from encrypted .env.vault");let o=B._parseVault(t),e=process.env;return t&&t.processEnv!=null&&(e=t.processEnv),B.populate(e,o,t),{parsed:o}}function kw(t){let o=rn.resolve(process.cwd(),".env"),e="utf8",s=!!(t&&t.debug);t&&t.encoding?e=t.encoding:s&&si("No encoding is specified. UTF-8 is used by default");let i=[o];if(t&&t.path)if(!Array.isArray(t.path))i=[x_(t.path)];else{i=[];for(let c of t.path)i.push(x_(c))}let r,n={};for(let c of i)try{let u=B.parse(sn.readFileSync(c,{encoding:e}));B.populate(n,u,t)}catch(u){s&&si(`Failed to load ${c} ${u.message}`),r=u}let a=process.env;return t&&t.processEnv!=null&&(a=t.processEnv),B.populate(a,n,t),r?{parsed:n,error:r}:{parsed:n}}function Kw(t){if(m_(t).length===0)return B.configDotenv(t);let o=g_(t);return o?B._configVault(t):(hw(`You set DOTENV_KEY but you are missing a .env.vault file at ${o}. Did you forget to build it?`),B.configDotenv(t))}function Gw(t,o){let e=Buffer.from(o.slice(-64),"hex"),s=Buffer.from(t,"base64"),i=s.subarray(0,12),r=s.subarray(-16);s=s.subarray(12,-16);try{let n=mw.createDecipheriv("aes-256-gcm",e,i);return n.setAuthTag(r),`${n.update(s)}${n.final()}`}catch(n){let a=n instanceof RangeError,c=n.message==="Invalid key length",u=n.message==="Unsupported state or unable to authenticate data";if(a||c){let d=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw d.code="INVALID_DOTENV_KEY",d}else if(u){let d=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw d.code="DECRYPTION_FAILED",d}else throw n}}function bw(t,o,e={}){let s=!!(e&&e.debug),i=!!(e&&e.override);if(typeof o!="object"){let r=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw r.code="OBJECT_REQUIRED",r}for(let r of Object.keys(o))Object.prototype.hasOwnProperty.call(t,r)?(i===!0&&(t[r]=o[r]),s&&si(i===!0?`"${r}" is already defined and WAS overwritten`:`"${r}" is already defined and was NOT overwritten`)):t[r]=o[r]}var B={configDotenv:kw,_configVault:zw,_parseVault:ww,config:Kw,decrypt:Gw,parse:dw,populate:bw};tt.exports.configDotenv=B.configDotenv;tt.exports._configVault=B._configVault;tt.exports._parseVault=B._parseVault;tt.exports.config=B.config;tt.exports.decrypt=B.decrypt;tt.exports.parse=B.parse;tt.exports.populate=B.populate;tt.exports=B});var w_=S((Qf,d_)=>{"use strict";var vw=/(\\)?(\$)(?!\()(\{?)([\w.]+)(?::?-((?:\$\{(?:\$\{(?:\$\{[^}]*\}|[^}])*}|[^}])*}|[^}])+))?(\}?)/gi;function Ww(t){return t.replace(/\\\$/g,"$")}function Ue(t,o,e){return t.replace(vw,(s,i,r,n,a,c,u)=>i==="\\"?s.slice(1):o[a]?o[a]===e[a]?o[a]:Ue(o[a],o,e):e[a]&&e[a]!==t?Ue(e[a],o,e):c?c.startsWith("$")?Ue(c,o,e):c:"")}function pw(t){let o=process.env;t&&t.processEnv!=null&&(o=t.processEnv);for(let e in t.parsed){let s=t.parsed[e];Object.prototype.hasOwnProperty.call(o,e)?o[e]===t.parsed[e]?s=Ue(s,o,t.parsed):s=o[e]:s=Ue(s,o,t.parsed),t.parsed[e]=Ww(s)}for(let e in t.parsed)o[e]=t.parsed[e];return t}d_.exports.expand=pw});var z_=S((jf,f_)=>{var qw=require("util"),Cw=require("url"),an=!1,cn=!0;function y_(t,o){let e=process.env[t];if(e===void 0){if(o===void 0&&!cn)return e;if(o===void 0)throw new Error("GetEnv.Nonexistent: "+t+" does not exist and no fallback value provided.");if(an)throw new Error("GetEnv.DisabledFallbacks: "+t+" relying on fallback when fallbacks have been disabled");return""+o}return e}var Ae={string:function(t){return""+t},int:function(t){if(!t.match(/^-?\d+$/))throw new Error("GetEnv.NoInteger: "+t+" is not an integer.");return+t},float:function(t){if(+t==1/0||+t==-1/0)throw new Error("GetEnv.Infinity: "+t+" is set to +/-Infinity.");if(!!(isNaN(t)||t===""))throw new Error("GetEnv.NoFloat: "+t+" is not a number.");return+t},bool:function(t){if(!(t==="true"||t==="false"))throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.");return t==="true"},boolish:function(t){try{return Ae.bool(t)}catch{if(!(t==="1"||t==="0"))throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.");return t==="1"}},url:Cw.parse};function h_(t){return function(o,e){if(typeof o=="string"){let s=y_(o,e);return Ae[t](s)}else return No.multi(o)}}var No=h_("string");Object.keys(Ae).forEach(function(t){No[t]=h_(t)});No.array=function(o,e,s){if(e=e||"string",Object.keys(Ae).indexOf(e)===-1)throw new Error("GetEnv.ArrayUndefinedType: Unknown array type "+e);return y_(o,s).split(/\s*,\s*/).map(Ae[e])};No.multi=function(o){let e={};for(let s in o){let i=o[s];if(qw.isArray(i))switch(i.length){case 1:case 2:e[s]=No(i[0],i[1]);break;case 3:e[s]=No[i[2]](i[0],i[1]);break;default:throw"getenv.multi(): invalid spec"}else e[s]=No(i)}return e};No.disableFallbacks=function(){an=!0};No.enableFallbacks=function(){an=!1};No.disableErrors=function(){cn=!1};No.enableErrors=function(){cn=!0};f_.exports=No});var K_=S((Rf,k_)=>{var oe=1e3,te=oe*60,ee=te*60,vt=ee*24,Nw=vt*7,Sw=vt*365.25;k_.exports=function(t,o){o=o||{};var e=typeof t;if(e==="string"&&t.length>0)return Fw(t);if(e==="number"&&isFinite(t))return o.long?Ew(t):Mw(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Fw(t){if(t=String(t),!(t.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(o){var e=parseFloat(o[1]),s=(o[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return e*Sw;case"weeks":case"week":case"w":return e*Nw;case"days":case"day":case"d":return e*vt;case"hours":case"hour":case"hrs":case"hr":case"h":return e*ee;case"minutes":case"minute":case"mins":case"min":case"m":return e*te;case"seconds":case"second":case"secs":case"sec":case"s":return e*oe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}function Mw(t){var o=Math.abs(t);return o>=vt?Math.round(t/vt)+"d":o>=ee?Math.round(t/ee)+"h":o>=te?Math.round(t/te)+"m":o>=oe?Math.round(t/oe)+"s":t+"ms"}function Ew(t){var o=Math.abs(t);return o>=vt?ii(t,o,vt,"day"):o>=ee?ii(t,o,ee,"hour"):o>=te?ii(t,o,te,"minute"):o>=oe?ii(t,o,oe,"second"):t+" ms"}function ii(t,o,e,s){var i=o>=e*1.5;return Math.round(t/e)+" "+s+(i?"s":"")}});var ln=S((Jf,G_)=>{function Vw(t){e.debug=e,e.default=e,e.coerce=c,e.disable=n,e.enable=i,e.enabled=a,e.humanize=K_(),e.destroy=u,Object.keys(t).forEach(d=>{e[d]=t[d]}),e.names=[],e.skips=[],e.formatters={};function o(d){let x=0;for(let m=0;m<d.length;m++)x=(x<<5)-x+d.charCodeAt(m),x|=0;return e.colors[Math.abs(x)%e.colors.length]}e.selectColor=o;function e(d){let x,m=null,w,f;function k(...W){if(!k.enabled)return;let p=k,q=Number(new Date),O=q-(x||q);p.diff=O,p.prev=x,p.curr=q,x=q,W[0]=e.coerce(W[0]),typeof W[0]!="string"&&W.unshift("%O");let l=0;W[0]=W[0].replace(/%([a-zA-Z%])/g,(_,G)=>{if(_==="%%")return"%";l++;let y=e.formatters[G];if(typeof y=="function"){let h=W[l];_=y.call(p,h),W.splice(l,1),l--}return _}),e.formatArgs.call(p,W),(p.log||e.log).apply(p,W)}return k.namespace=d,k.useColors=e.useColors(),k.color=e.selectColor(d),k.extend=s,k.destroy=e.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(w!==e.namespaces&&(w=e.namespaces,f=e.enabled(d)),f),set:W=>{m=W}}),typeof e.init=="function"&&e.init(k),k}function s(d,x){let m=e(this.namespace+(typeof x>"u"?":":x)+d);return m.log=this.log,m}function i(d){e.save(d),e.namespaces=d,e.names=[],e.skips=[];let x=(typeof d=="string"?d:"").trim().replace(" ",",").split(",").filter(Boolean);for(let m of x)m[0]==="-"?e.skips.push(m.slice(1)):e.names.push(m)}function r(d,x){let m=0,w=0,f=-1,k=0;for(;m<d.length;)if(w<x.length&&(x[w]===d[m]||x[w]==="*"))x[w]==="*"?(f=w,k=m,w++):(m++,w++);else if(f!==-1)w=f+1,k++,m=k;else return!1;for(;w<x.length&&x[w]==="*";)w++;return w===x.length}function n(){let d=[...e.names,...e.skips.map(x=>"-"+x)].join(",");return e.enable(""),d}function a(d){for(let x of e.skips)if(r(d,x))return!1;for(let x of e.names)if(r(d,x))return!0;return!1}function c(d){return d instanceof Error?d.stack||d.message:d}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return e.enable(e.load()),e}G_.exports=Vw});var b_=S((ko,ri)=>{ko.formatArgs=Yw;ko.save=Iw;ko.load=Zw;ko.useColors=Xw;ko.storage=Pw();ko.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ko.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Xw(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Yw(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ri.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;t.splice(1,0,o,"color: inherit");let e=0,s=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(e++,i==="%c"&&(s=e))}),t.splice(s,0,o)}ko.log=console.debug||console.log||(()=>{});function Iw(t){try{t?ko.storage.setItem("debug",t):ko.storage.removeItem("debug")}catch{}}function Zw(){let t;try{t=ko.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Pw(){try{return localStorage}catch{}}ri.exports=ln()(ko);var{formatters:Lw}=ri.exports;Lw.j=function(t){try{return JSON.stringify(t)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var W_=S((to,ai)=>{var Tw=require("tty"),ni=require("util");to.init=Bw;to.log=jw;to.formatArgs=Aw;to.save=Rw;to.load=Jw;to.useColors=Uw;to.destroy=ni.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");to.colors=[6,2,3,4,5,1];try{let t=Dr();t&&(t.stderr||t).level>=2&&(to.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}to.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,o)=>{let e=o.substring(6).toLowerCase().replace(/_([a-z])/g,(i,r)=>r.toUpperCase()),s=process.env[o];return/^(yes|on|true|enabled)$/i.test(s)?s=!0:/^(no|off|false|disabled)$/i.test(s)?s=!1:s==="null"?s=null:s=Number(s),t[e]=s,t},{});function Uw(){return"colors"in to.inspectOpts?!!to.inspectOpts.colors:Tw.isatty(process.stderr.fd)}function Aw(t){let{namespace:o,useColors:e}=this;if(e){let s=this.color,i="\x1B[3"+(s<8?s:"8;5;"+s),r=` ${i};1m${o} \x1B[0m`;t[0]=r+t[0].split(`
20
20
  `).join(`
21
- `+r),t.push(i+"m+"+Ps.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Sd()+o+" "+t[0]}function Sd(){return $.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Fd(...t){return process.stderr.write(Zs.formatWithOptions($.inspectOpts,...t)+`
22
- `)}function Md(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Ed(){return process.env.DEBUG}function Vd(t){t.inspectOpts={};let o=Object.keys($.inspectOpts);for(let e=0;e<o.length;e++)t.inspectOpts[o[e]]=$.inspectOpts[o[e]]}Ps.exports=Lr()($);var{formatters:pu}=Ps.exports;pu.o=function(t){return this.inspectOpts.colors=this.useColors,Zs.inspect(t,this.inspectOpts).split(`
23
- `).map(o=>o.trim()).join(" ")};pu.O=function(t){return this.inspectOpts.colors=this.useColors,Zs.inspect(t,this.inspectOpts)}});var qu=S((Rh,Tr)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Tr.exports=vu():Tr.exports=Wu()});var Iu=S(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.LOADED_ENV_NAME=no.KNOWN_MODES=void 0;no.get=Yu;no.getEnvFiles=Us;no.getFiles=Ld;no.isEnabled=jt;no.load=Pd;no.loadEnvFiles=Eu;no.loadProjectEnv=Zd;no.logLoadedEnv=Xu;no.parseEnvFiles=jr;no.parseProjectEnv=Vu;function Qr(){let t=Ts(_u());return Qr=function(){return t},t}function Cu(){let t=Xd(du());return Cu=function(){return t},t}function Nu(){let t=yu();return Nu=function(){return t},t}function Su(){let t=ku();return Su=function(){return t},t}function Qt(){let t=Ts(require("node:console"));return Qt=function(){return t},t}function Fu(){let t=Ts(require("node:fs"));return Fu=function(){return t},t}function Ls(){let t=Ts(require("node:path"));return Ls=function(){return t},t}function Mu(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(Mu=function(s){return s?e:o})(t)}function Xd(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var e=Mu(o);if(e&&e.has(t))return e.get(t);var s={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(r!=="default"&&{}.hasOwnProperty.call(t,r)){var n=i?Object.getOwnPropertyDescriptor(t,r):null;n&&(n.get||n.set)?Object.defineProperty(s,r,n):s[r]=t[r]}return s.default=t,e&&e.set(t,s),s}function Ts(t){return t&&t.__esModule?t:{default:t}}var uo=qu()("expo:env");function jt(){return!(0,Su().boolish)("EXPO_NO_DOTENV",!1)}var Yd=no.KNOWN_MODES=["development","test","production"],Ur=no.LOADED_ENV_NAME="__EXPO_ENV_LOADED";function Us({mode:t=process.env.NODE_ENV,silent:o}={}){if(!jt())return uo("Skipping .env files because EXPO_NO_DOTENV is defined"),[];let e=o?uo:Qt().default.error,s=o?uo:Qt().default.warn;return t?(Yd.includes(t)||s(`NODE_ENV="${t}" is non-conventional and might cause development code to run in production. Use "development", "test", or "production" instead. Continuing with non-conventional mode`),[`.env.${t}.local`,t!=="test"&&".env.local",`.env.${t}`,".env"].filter(Boolean)):(e("The NODE_ENV environment variable is required but was not specified. Ensure the project is bundled with Expo CLI or NODE_ENV is set. Using only .env.local and .env"),[".env.local",".env"])}function jr(t,{systemEnv:o=process.env}={}){if(!jt())return uo("Skipping .env files because EXPO_NO_DOTENV is defined"),{env:{},files:[]};let e={},s=[];return[...t].reverse().forEach(i=>{try{let r=Fu().default.readFileSync(i,"utf8"),n=Cu().parse(r);if(!n)return uo(`Failed to load environment variables from: ${i}%s`);s.push(i),uo(`Loaded environment variables from: ${i}`);for(let a of Object.keys(n))typeof e[a]<"u"&&uo(`"${a}" is already defined and overwritten by: ${i}`),e[a]=n[a]}catch(r){if("code"in r&&r.code==="ENOENT")return uo(`${i} does not exist, skipping this env file`);if("code"in r&&r.code==="EISDIR")return uo(`${i} is a directory, skipping this env file`);if("code"in r&&r.code==="EACCES")return uo(`No permission to read ${i}, skipping this env file`);throw r}}),{env:Id(e,o),files:s.reverse()}}function Eu(t,{force:o,silent:e=!1,systemEnv:s=process.env}={}){if(!o&&s[Ur])return{result:"skipped",loaded:JSON.parse(s[Ur])};let i=jr(t,{systemEnv:s}),r=[];for(let n in i.env)typeof s[n]<"u"?uo(`"${n}" is already defined and IS NOT overwritten`):(s[n]=i.env[n],r.push(n));return s[Ur]=JSON.stringify(r),{result:"loaded",...i,loaded:r}}function Id(t,o=process.env){let e={},s=(0,Nu().expand)({parsed:t,processEnv:{...o}});if(s.error)return Qt().default.error(`Failed to expand environment variables, using non-expanded environment variables: ${s.error}`),t;for(let i of Object.keys(t))s.parsed?.[i]&&(e[i]=s.parsed[i]);return e}function Vu(t,o){return jr(Us(o).map(e=>Ls().default.join(t,e)),o)}function Zd(t,o){return Eu(Us(o).map(e=>Ls().default.join(t,e)),o)}function Xu(t,o={}){return o.force||o.silent||!t.loaded.length||(t.result==="loaded"&&Qt().default.log(Qr().default.gray("env: load",t.files.map(e=>Ls().default.basename(e)).join(" "))),Qt().default.log(Qr().default.gray("env: export",t.loaded.join(" ")))),t}var Ar=null;function Yu(t,{force:o,silent:e}={}){return jt()?((o||!Ar)&&(Ar=Vu(t,{silent:e})),Ar):(uo("Skipping .env files because EXPO_NO_DOTENV is defined"),{env:{},files:[]})}function Pd(t,o={}){if(!jt())return uo("Skipping .env files because EXPO_NO_DOTENV is defined"),process.env;let e=Yu(t,o),s=[];for(let i in e.env)typeof process.env[i]<"u"?uo(`"${i}" is already defined and IS NOT overwritten`):(process.env[i]=e.env[i],s.push(i));return Xu({...e,result:"loaded",loaded:s},o),process.env}function Ld(t,{silent:o=!1}={}){return jt()?Us({mode:t,silent:o}):(uo("Skipping .env files because EXPO_NO_DOTENV is defined"),[])}});var Uu=S((Dh,Rr)=>{"use strict";var Pu=require("path"),Lu=require("module"),Ud=require("fs"),Tu=(t,o,e)=>{if(typeof t!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof t}\``);if(typeof o!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof o}\``);try{t=Ud.realpathSync(t)}catch(r){if(r.code==="ENOENT")t=Pu.resolve(t);else{if(e)return;throw r}}let s=Pu.join(t,"noop.js"),i=()=>Lu._resolveFilename(o,{id:s,filename:s,paths:Lu._nodeModulePaths(t)});if(e)try{return i()}catch{return}return i()};Rr.exports=(t,o)=>Tu(t,o);Rr.exports.silent=(t,o)=>Tu(t,o,!0)});var $u=S((lf,Du)=>{"use strict";Du.exports=Ju;function Ju(t,o,e){t instanceof RegExp&&(t=Ru(t,e)),o instanceof RegExp&&(o=Ru(o,e));var s=Bu(t,o,e);return s&&{start:s[0],end:s[1],pre:e.slice(0,s[0]),body:e.slice(s[0]+t.length,s[1]),post:e.slice(s[1]+o.length)}}function Ru(t,o){var e=o.match(t);return e?e[0]:null}Ju.range=Bu;function Bu(t,o,e){var s,i,r,n,a,c=e.indexOf(t),u=e.indexOf(o,c+1),d=c;if(c>=0&&u>0){if(t===o)return[c,u];for(s=[],r=e.length;d>=0&&!a;)d==c?(s.push(d),c=e.indexOf(t,d+1)):s.length==1?a=[s.pop(),u]:(i=s.pop(),i<r&&(r=i,n=u),u=e.indexOf(o,d+1)),d=c<u&&c>=0?c:u;s.length&&(a=[r,n])}return a}});var n_=S((uf,r_)=>{var Hu=$u();r_.exports=Jd;var o_="\0SLASH"+Math.random()+"\0",t_="\0OPEN"+Math.random()+"\0",Dr="\0CLOSE"+Math.random()+"\0",e_="\0COMMA"+Math.random()+"\0",s_="\0PERIOD"+Math.random()+"\0";function Br(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function jd(t){return t.split("\\\\").join(o_).split("\\{").join(t_).split("\\}").join(Dr).split("\\,").join(e_).split("\\.").join(s_)}function Rd(t){return t.split(o_).join("\\").split(t_).join("{").split(Dr).join("}").split(e_).join(",").split(s_).join(".")}function i_(t){if(!t)return[""];var o=[],e=Hu("{","}",t);if(!e)return t.split(",");var s=e.pre,i=e.body,r=e.post,n=s.split(",");n[n.length-1]+="{"+i+"}";var a=i_(r);return r.length&&(n[n.length-1]+=a.shift(),n.push.apply(n,a)),o.push.apply(o,n),o}function Jd(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),qe(jd(t),!0).map(Rd)):[]}function Bd(t){return"{"+t+"}"}function Dd(t){return/^-?0\d/.test(t)}function $d(t,o){return t<=o}function Hd(t,o){return t>=o}function qe(t,o){var e=[],s=Hu("{","}",t);if(!s)return[t];var i=s.pre,r=s.post.length?qe(s.post,!1):[""];if(/\$$/.test(s.pre))for(var n=0;n<r.length;n++){var a=i+"{"+s.body+"}"+r[n];e.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,x=s.body.indexOf(",")>=0;if(!d&&!x)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+Dr+s.post,qe(t)):[t];var m;if(d)m=s.body.split(/\.\./);else if(m=i_(s.body),m.length===1&&(m=qe(m[0],!1).map(Bd),m.length===1))return r.map(function(f){return s.pre+m[0]+f});var w;if(d){var z=Br(m[0]),k=Br(m[1]),p=Math.max(m[0].length,m[1].length),W=m.length==3?Math.abs(Br(m[2])):1,q=$d,O=k<z;O&&(W*=-1,q=Hd);var l=m.some(Dd);w=[];for(var g=z;q(g,k);g+=W){var _;if(u)_=String.fromCharCode(g),_==="\\"&&(_="");else if(_=String(g),l){var G=p-_.length;if(G>0){var y=new Array(G+1).join("0");g<0?_="-"+y+_.slice(1):_=y+_}}w.push(_)}}else{w=[];for(var h=0;h<m.length;h++)w.push.apply(w,qe(m[h],!1))}for(var h=0;h<w.length;h++)for(var n=0;n<r.length;n++){var a=i+w[h]+r[n];(!o||d||a)&&e.push(a)}}return e}});var j_=S((dn,wn)=>{(function(t,o,e){typeof dn=="object"?(wn.exports=e(),wn.exports.default=e()):typeof define=="function"&&define.amd?define(e):o[t]=e()})("slugify",dn,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),o=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function e(s,i){if(typeof s!="string")throw new Error("slugify: string argument expected");i=typeof i=="string"?{replacement:i}:i||{};var r=o[i.locale]||{},n=i.replacement===void 0?"-":i.replacement,a=i.trim===void 0?!0:i.trim,c=s.normalize().split("").reduce(function(u,d){var x=r[d];return x===void 0&&(x=t[d]),x===void 0&&(x=d),x===n&&(x=" "),u+x.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),a&&(c=c.trim()),c=c.replace(/\s+/g,n),i.lower&&(c=c.toLowerCase()),c}return e.extend=function(s){Object.assign(t,s)},e})});var ix=S(ki=>{"use strict";ki.byteLength=cy;ki.toByteArray=uy;ki.fromByteArray=my;var Uo=[],So=[],ay=typeof Uint8Array<"u"?Uint8Array:Array,yn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Wt=0,ex=yn.length;Wt<ex;++Wt)Uo[Wt]=yn[Wt],So[yn.charCodeAt(Wt)]=Wt;var Wt,ex;So[45]=62;So[95]=63;function sx(t){var o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=o);var s=e===o?0:4-e%4;return[e,s]}function cy(t){var o=sx(t),e=o[0],s=o[1];return(e+s)*3/4-s}function ly(t,o,e){return(o+e)*3/4-e}function uy(t){var o,e=sx(t),s=e[0],i=e[1],r=new ay(ly(t,s,i)),n=0,a=i>0?s-4:s,c;for(c=0;c<a;c+=4)o=So[t.charCodeAt(c)]<<18|So[t.charCodeAt(c+1)]<<12|So[t.charCodeAt(c+2)]<<6|So[t.charCodeAt(c+3)],r[n++]=o>>16&255,r[n++]=o>>8&255,r[n++]=o&255;return i===2&&(o=So[t.charCodeAt(c)]<<2|So[t.charCodeAt(c+1)]>>4,r[n++]=o&255),i===1&&(o=So[t.charCodeAt(c)]<<10|So[t.charCodeAt(c+1)]<<4|So[t.charCodeAt(c+2)]>>2,r[n++]=o>>8&255,r[n++]=o&255),r}function _y(t){return Uo[t>>18&63]+Uo[t>>12&63]+Uo[t>>6&63]+Uo[t&63]}function xy(t,o,e){for(var s,i=[],r=o;r<e;r+=3)s=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(t[r+2]&255),i.push(_y(s));return i.join("")}function my(t){for(var o,e=t.length,s=e%3,i=[],r=16383,n=0,a=e-s;n<a;n+=r)i.push(xy(t,n,n+r>a?a:n+r));return s===1?(o=t[e-1],i.push(Uo[o>>2]+Uo[o<<4&63]+"==")):s===2&&(o=(t[e-2]<<8)+t[e-1],i.push(Uo[o>>10]+Uo[o>>4&63]+Uo[o<<2&63]+"=")),i.join("")}});var Ao=S((rx,dt)=>{(function(){var t,o,e,s,i,r,n,a={}.hasOwnProperty;t=function(c,...u){var d,x,m,w;if(i(Object.assign))Object.assign.apply(null,arguments);else for(d=0,m=u.length;d<m;d++)if(w=u[d],w!=null)for(x in w)a.call(w,x)&&(c[x]=w[x]);return c},i=function(c){return!!c&&Object.prototype.toString.call(c)==="[object Function]"},r=function(c){var u;return!!c&&((u=typeof c)=="function"||u==="object")},e=function(c){return i(Array.isArray)?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"},s=function(c){var u;if(e(c))return!c.length;for(u in c)if(a.call(c,u))return!1;return!0},n=function(c){var u,d;return r(c)&&(d=Object.getPrototypeOf(c))&&(u=d.constructor)&&typeof u=="function"&&u instanceof u&&Function.prototype.toString.call(u)===Function.prototype.toString.call(Object)},o=function(c){return i(c.valueOf)?c.valueOf():c},dt.exports.assign=t,dt.exports.isFunction=i,dt.exports.isObject=r,dt.exports.isArray=e,dt.exports.isEmpty=s,dt.exports.isPlainObject=n,dt.exports.getValue=o}).call(rx)});var hn=S((nx,ax)=>{(function(){var t;ax.exports=t=class{hasFeature(e,s){return!0}createDocumentType(e,s,i){throw new Error("This DOM method is not implemented.")}createDocument(e,s,i){throw new Error("This DOM method is not implemented.")}createHTMLDocument(e){throw new Error("This DOM method is not implemented.")}getFeature(e,s){throw new Error("This DOM method is not implemented.")}}}).call(nx)});var ux=S((cx,lx)=>{(function(){var t;lx.exports=t=class{constructor(){}handleError(e){throw new Error(e)}}}).call(cx)});var mx=S((_x,xx)=>{(function(){var t;xx.exports=t=function(){class o{constructor(s){this.arr=s||[]}item(s){return this.arr[s]||null}contains(s){return this.arr.indexOf(s)!==-1}}return Object.defineProperty(o.prototype,"length",{get:function(){return this.arr.length}}),o}.call(this)}).call(_x)});var dx=S((gx,Ox)=>{(function(){var t,o,e;o=ux(),e=mx(),Ox.exports=t=function(){class s{constructor(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new o,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=r=Object.create(this.defaultParams)}getParameter(r){return this.params.hasOwnProperty(r)?this.params[r]:null}canSetParameter(r,n){return!0}setParameter(r,n){return n!=null?this.params[r]=n:delete this.params[r]}}return Object.defineProperty(s.prototype,"parameterNames",{get:function(){return new e(Object.keys(this.defaultParams))}}),s}.call(this)}).call(gx)});var Q=S((wx,yx)=>{(function(){yx.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(wx)});var fn=S((hx,fx)=>{(function(){var t,o,e;t=Q(),e=Ko(),fx.exports=o=function(){class s{constructor(r,n,a){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(a),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))}debugInfo(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"}isEqualNode(r){return!(r.namespaceURI!==this.namespaceURI||r.prefix!==this.prefix||r.localName!==this.localName||r.value!==this.value)}}return Object.defineProperty(s.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(s.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"specified",{get:function(){return!0}}),s}.call(this)}).call(hx)});var Ki=S((zx,kx)=>{(function(){var t;kx.exports=t=function(){class o{constructor(s){this.nodes=s}clone(){return this.nodes=null}getNamedItem(s){return this.nodes[s]}setNamedItem(s){var i;return i=this.nodes[s.nodeName],this.nodes[s.nodeName]=s,i||null}removeNamedItem(s){var i;return i=this.nodes[s],delete this.nodes[s],i||null}item(s){return this.nodes[Object.keys(this.nodes)[s]]||null}getNamedItemNS(s,i){throw new Error("This DOM method is not implemented.")}setNamedItemNS(s){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(s,i){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(o.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),o}.call(this)}).call(zx)});var Gi=S((Kx,Gx)=>{(function(){var t,o,e,s,i,r,n,a,c={}.hasOwnProperty;({isObject:a,isFunction:n,getValue:r}=Ao()),i=Ko(),t=Q(),o=fn(),s=Ki(),Gx.exports=e=function(){class u extends i{constructor(x,m,w){var z,k,p,W;if(super(x),m==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(m),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,w!=null&&this.attribute(w),x.type===t.Document&&(this.isRoot=!0,this.documentObject=x,x.rootObject=this,x.children)){for(W=x.children,k=0,p=W.length;k<p;k++)if(z=W[k],z.type===t.DocType){z.name=this.name;break}}}clone(){var x,m,w,z;w=Object.create(this),w.isRoot&&(w.documentObject=null),w.attribs={},z=this.attribs;for(m in z)c.call(z,m)&&(x=z[m],w.attribs[m]=x.clone());return w.children=[],this.children.forEach(function(k){var p;return p=k.clone(),p.parent=w,w.children.push(p)}),w}attribute(x,m){var w,z;if(x!=null&&(x=r(x)),a(x))for(w in x)c.call(x,w)&&(z=x[w],this.attribute(w,z));else n(m)&&(m=m.apply()),this.options.keepNullAttributes&&m==null?this.attribs[x]=new o(this,x,""):m!=null&&(this.attribs[x]=new o(this,x,m));return this}removeAttribute(x){var m,w,z;if(x==null)throw new Error("Missing attribute name. "+this.debugInfo());if(x=r(x),Array.isArray(x))for(w=0,z=x.length;w<z;w++)m=x[w],delete this.attribs[m];else delete this.attribs[x];return this}toString(x){return this.options.writer.element(this,this.options.writer.filterOptions(x))}att(x,m){return this.attribute(x,m)}a(x,m){return this.attribute(x,m)}getAttribute(x){return this.attribs.hasOwnProperty(x)?this.attribs[x].value:null}setAttribute(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(x){return this.attribs.hasOwnProperty(x)?this.attribs[x]:null}setAttributeNode(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(x,m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(x){return this.attribs.hasOwnProperty(x)}hasAttributeNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(x,m){return this.attribs.hasOwnProperty(x)?this.attribs[x].isId:m}setIdAttributeNS(x,m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(x){var m,w,z;if(!super.isEqualNode(x)||x.namespaceURI!==this.namespaceURI||x.prefix!==this.prefix||x.localName!==this.localName||x.attribs.length!==this.attribs.length)return!1;for(m=w=0,z=this.attribs.length-1;0<=z?w<=z:w>=z;m=0<=z?++w:--w)if(!this.attribs[m].isEqualNode(x.attribs[m]))return!1;return!0}}return Object.defineProperty(u.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(u.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(u.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(u.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(u.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(u.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(u.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(u.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new s(this.attribs)),this.attributeMap}}),u}.call(this)}).call(Kx)});var Ae=S((bx,vx)=>{(function(){var t,o;o=Ko(),vx.exports=t=function(){class e extends o{constructor(i){super(i),this.value=""}clone(){return Object.create(this)}substringData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(i){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(i,r,n){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(i){return!(!super.isEqualNode(i)||i.data!==this.data)}}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),e}.call(this)}).call(bx)});var bi=S((px,Wx)=>{(function(){var t,o,e;t=Q(),e=Ae(),Wx.exports=o=class extends e{constructor(i,r){if(super(i),r==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.cdata(this,this.options.writer.filterOptions(i))}}}).call(px)});var vi=S((qx,Cx)=>{(function(){var t,o,e;t=Q(),o=Ae(),Cx.exports=e=class extends o{constructor(i,r){if(super(i),r==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.comment(this,this.options.writer.filterOptions(i))}}}).call(qx)});var pi=S((Nx,Sx)=>{(function(){var t,o,e,s;({isObject:s}=Ao()),e=Ko(),t=Q(),Sx.exports=o=class extends e{constructor(r,n,a,c){super(r),s(n)&&({version:n,encoding:a,standalone:c}=n),n||(n="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(n),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}toString(r){return this.options.writer.declaration(this,this.options.writer.filterOptions(r))}}}).call(Nx)});var Wi=S((Fx,Mx)=>{(function(){var t,o,e;e=Ko(),t=Q(),Mx.exports=o=class extends e{constructor(i,r,n,a,c,u){if(super(i),r==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(n==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(r));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(r));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(r));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(r));if(u&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(r));this.elementName=this.stringify.name(r),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(n),this.attributeType=this.stringify.dtdAttType(a),u&&(this.defaultValue=this.stringify.dtdAttDefault(u)),this.defaultValueType=c}toString(i){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(i))}}}).call(Fx)});var qi=S((Ex,Vx)=>{(function(){var t,o,e,s;({isObject:s}=Ao()),e=Ko(),t=Q(),Vx.exports=o=function(){class i extends e{constructor(n,a,c,u){if(super(n),c==null)throw new Error("Missing DTD entity name. "+this.debugInfo(c));if(u==null)throw new Error("Missing DTD entity value. "+this.debugInfo(c));if(this.pe=!!a,this.name=this.stringify.name(c),this.type=t.EntityDeclaration,!s(u))this.value=this.stringify.dtdEntityValue(u),this.internal=!0;else{if(!u.pubID&&!u.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(c));if(u.pubID&&!u.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(c));if(this.internal=!1,u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID)),u.nData!=null&&(this.nData=this.stringify.dtdNData(u.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(c))}}toString(n){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(n))}}return Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(i.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(i.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlVersion",{get:function(){return null}}),i}.call(this)}).call(Ex)});var Ci=S((Xx,Yx)=>{(function(){var t,o,e;e=Ko(),t=Q(),Yx.exports=o=class extends e{constructor(i,r,n){if(super(i),r==null)throw new Error("Missing DTD element name. "+this.debugInfo());n||(n="(#PCDATA)"),Array.isArray(n)&&(n="("+n.join(",")+")"),this.name=this.stringify.name(r),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(n)}toString(i){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(i))}}}).call(Xx)});var Ni=S((Ix,Zx)=>{(function(){var t,o,e;e=Ko(),t=Q(),Zx.exports=o=function(){class s extends e{constructor(r,n,a){if(super(r),n==null)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.name(n),this.type=t.NotationDeclaration,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}toString(r){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(r))}}return Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),s}.call(this)}).call(Ix)});var Si=S((Px,Lx)=>{(function(){var t,o,e,s,i,r,n,a,c;({isObject:c}=Ao()),a=Ko(),t=Q(),o=Wi(),s=qi(),e=Ci(),i=Ni(),n=Ki(),Lx.exports=r=function(){class u extends a{constructor(x,m,w){var z,k,p,W;if(super(x),this.type=t.DocType,x.children){for(W=x.children,k=0,p=W.length;k<p;k++)if(z=W[k],z.type===t.Element){this.name=z.name;break}}this.documentObject=x,c(m)&&({pubID:m,sysID:w}=m),w==null&&([w,m]=[m,w]),m!=null&&(this.pubID=this.stringify.dtdPubID(m)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}element(x,m){var w;return w=new e(this,x,m),this.children.push(w),this}attList(x,m,w,z,k){var p;return p=new o(this,x,m,w,z,k),this.children.push(p),this}entity(x,m){var w;return w=new s(this,!1,x,m),this.children.push(w),this}pEntity(x,m){var w;return w=new s(this,!0,x,m),this.children.push(w),this}notation(x,m){var w;return w=new i(this,x,m),this.children.push(w),this}toString(x){return this.options.writer.docType(this,this.options.writer.filterOptions(x))}ele(x,m){return this.element(x,m)}att(x,m,w,z,k){return this.attList(x,m,w,z,k)}ent(x,m){return this.entity(x,m)}pent(x,m){return this.pEntity(x,m)}not(x,m){return this.notation(x,m)}up(){return this.root()||this.documentObject}isEqualNode(x){return!(!super.isEqualNode(x)||x.name!==this.name||x.publicId!==this.publicId||x.systemId!==this.systemId)}}return Object.defineProperty(u.prototype,"entities",{get:function(){var d,x,m,w,z;for(w={},z=this.children,x=0,m=z.length;x<m;x++)d=z[x],d.type===t.EntityDeclaration&&!d.pe&&(w[d.name]=d);return new n(w)}}),Object.defineProperty(u.prototype,"notations",{get:function(){var d,x,m,w,z;for(w={},z=this.children,x=0,m=z.length;x<m;x++)d=z[x],d.type===t.NotationDeclaration&&(w[d.name]=d);return new n(w)}}),Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(u.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),u}.call(this)}).call(Px)});var Fi=S((Tx,Ux)=>{(function(){var t,o,e;t=Q(),o=Ko(),Ux.exports=e=class extends o{constructor(i,r){if(super(i),r==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.raw(this,this.options.writer.filterOptions(i))}}}).call(Tx)});var Mi=S((Ax,Qx)=>{(function(){var t,o,e;t=Q(),o=Ae(),Qx.exports=e=function(){class s extends o{constructor(r,n){if(super(r),n==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(n)}clone(){return Object.create(this)}toString(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))}splitText(r){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(r){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(s.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"wholeText",{get:function(){var i,r,n;for(n="",r=this.previousSibling;r;)n=r.data+n,r=r.previousSibling;for(n+=this.data,i=this.nextSibling;i;)n=n+i.data,i=i.nextSibling;return n}}),s}.call(this)}).call(Ax)});var Ei=S((jx,Rx)=>{(function(){var t,o,e;t=Q(),o=Ae(),Rx.exports=e=class extends o{constructor(i,r,n){if(super(i),r==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(r),this.name=this.target,n&&(this.value=this.stringify.insValue(n))}clone(){return Object.create(this)}toString(i){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(i))}isEqualNode(i){return!(!super.isEqualNode(i)||i.target!==this.target)}}}).call(jx)});var zn=S((Jx,Bx)=>{(function(){var t,o,e;e=Ko(),t=Q(),Bx.exports=o=class extends e{constructor(i){super(i),this.type=t.Dummy}clone(){return Object.create(this)}toString(i){return""}}}).call(Jx)});var Hx=S((Dx,$x)=>{(function(){var t;$x.exports=t=function(){class o{constructor(s){this.nodes=s}clone(){return this.nodes=null}item(s){return this.nodes[s]||null}}return Object.defineProperty(o.prototype,"length",{get:function(){return this.nodes.length||0}}),o}.call(this)}).call(Dx)});var em=S((om,tm)=>{(function(){tm.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(om)});var Ko=S((sm,im)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,z,k,p,W,q={}.hasOwnProperty,O=[].splice;({isObject:W,isFunction:p,isEmpty:k,getValue:z}=Ao()),a=null,e=null,s=null,i=null,r=null,m=null,w=null,x=null,n=null,o=null,d=null,c=null,t=null,im.exports=u=function(){class l{constructor(_){this.parent=_,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,a||(a=Gi(),e=bi(),s=vi(),i=pi(),r=Si(),m=Fi(),w=Mi(),x=Ei(),n=zn(),o=Q(),d=Hx(),c=Ki(),t=em())}setParent(_){var G,y,h,f,v;for(this.parent=_,_&&(this.options=_.options,this.stringify=_.stringify),f=this.children,v=[],y=0,h=f.length;y<h;y++)G=f[y],v.push(G.setParent(this));return v}element(_,G,y){var h,f,v,N,F,V,I,E,X;if(V=null,G===null&&y==null&&([G,y]=[{},null]),G==null&&(G={}),G=z(G),W(G)||([y,G]=[G,y]),_!=null&&(_=z(_)),Array.isArray(_))for(v=0,I=_.length;v<I;v++)f=_[v],V=this.element(f);else if(p(_))V=this.element(_.apply());else if(W(_)){for(F in _)if(q.call(_,F))if(X=_[F],p(X)&&(X=X.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&F.indexOf(this.stringify.convertAttKey)===0)V=this.attribute(F.substr(this.stringify.convertAttKey.length),X);else if(!this.options.separateArrayItems&&Array.isArray(X)&&k(X))V=this.dummy();else if(W(X)&&k(X))V=this.element(F);else if(!this.options.keepNullNodes&&X==null)V=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(X))for(N=0,E=X.length;N<E;N++)f=X[N],h={},h[F]=f,V=this.element(h);else W(X)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&F.indexOf(this.stringify.convertTextKey)===0?V=this.element(X):(V=this.element(F),V.element(X)):V=this.element(F,X)}else!this.options.keepNullNodes&&y===null?V=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&_.indexOf(this.stringify.convertTextKey)===0?V=this.text(y):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&_.indexOf(this.stringify.convertCDataKey)===0?V=this.cdata(y):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&_.indexOf(this.stringify.convertCommentKey)===0?V=this.comment(y):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&_.indexOf(this.stringify.convertRawKey)===0?V=this.raw(y):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&_.indexOf(this.stringify.convertPIKey)===0?V=this.instruction(_.substr(this.stringify.convertPIKey.length),y):V=this.node(_,G,y);if(V==null)throw new Error("Could not create any elements with: "+_+". "+this.debugInfo());return V}insertBefore(_,G,y){var h,f,v,N,F;if(_?.type)return v=_,N=G,v.setParent(this),N?(f=children.indexOf(N),F=children.splice(f),children.push(v),Array.prototype.push.apply(children,F)):children.push(v),v;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(_));return f=this.parent.children.indexOf(this),F=this.parent.children.splice(f),h=this.parent.element(_,G,y),Array.prototype.push.apply(this.parent.children,F),h}insertAfter(_,G,y){var h,f,v;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(_));return f=this.parent.children.indexOf(this),v=this.parent.children.splice(f+1),h=this.parent.element(_,G,y),Array.prototype.push.apply(this.parent.children,v),h}remove(){var _,G;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return _=this.parent.children.indexOf(this),O.apply(this.parent.children,[_,_-_+1].concat(G=[])),this.parent}node(_,G,y){var h;return _!=null&&(_=z(_)),G||(G={}),G=z(G),W(G)||([y,G]=[G,y]),h=new a(this,_,G),y!=null&&h.text(y),this.children.push(h),h}text(_){var G;return W(_)&&this.element(_),G=new w(this,_),this.children.push(G),this}cdata(_){var G;return G=new e(this,_),this.children.push(G),this}comment(_){var G;return G=new s(this,_),this.children.push(G),this}commentBefore(_){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y),G=this.parent.comment(_),Array.prototype.push.apply(this.parent.children,h),this}commentAfter(_){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y+1),G=this.parent.comment(_),Array.prototype.push.apply(this.parent.children,h),this}raw(_){var G;return G=new m(this,_),this.children.push(G),this}dummy(){var _;return _=new n(this),_}instruction(_,G){var y,h,f,v,N;if(_!=null&&(_=z(_)),G!=null&&(G=z(G)),Array.isArray(_))for(v=0,N=_.length;v<N;v++)y=_[v],this.instruction(y);else if(W(_))for(y in _)q.call(_,y)&&(h=_[y],this.instruction(y,h));else p(G)&&(G=G.apply()),f=new x(this,_,G),this.children.push(f);return this}instructionBefore(_,G){var y,h,f;return h=this.parent.children.indexOf(this),f=this.parent.children.splice(h),y=this.parent.instruction(_,G),Array.prototype.push.apply(this.parent.children,f),this}instructionAfter(_,G){var y,h,f;return h=this.parent.children.indexOf(this),f=this.parent.children.splice(h+1),y=this.parent.instruction(_,G),Array.prototype.push.apply(this.parent.children,f),this}declaration(_,G,y){var h,f;return h=this.document(),f=new i(h,_,G,y),h.children.length===0?h.children.unshift(f):h.children[0].type===o.Declaration?h.children[0]=f:h.children.unshift(f),h.root()||h}dtd(_,G){var y,h,f,v,N,F,V,I,E,X;for(h=this.document(),f=new r(h,_,G),E=h.children,v=N=0,V=E.length;N<V;v=++N)if(y=E[v],y.type===o.DocType)return h.children[v]=f,f;for(X=h.children,v=F=0,I=X.length;F<I;v=++F)if(y=X[v],y.isRoot)return h.children.splice(v,0,f),f;return h.children.push(f),f}up(){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}root(){var _;for(_=this;_;){if(_.type===o.Document)return _.rootObject;if(_.isRoot)return _;_=_.parent}}document(){var _;for(_=this;_;){if(_.type===o.Document)return _;_=_.parent}}end(_){return this.document().end(_)}prev(){var _;if(_=this.parent.children.indexOf(this),_<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[_-1]}next(){var _;if(_=this.parent.children.indexOf(this),_===-1||_===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[_+1]}importDocument(_){var G,y,h,f,v;if(y=_.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this.type===o.Document&&(y.isRoot=!0,y.documentObject=this,this.rootObject=y,this.children)){for(v=this.children,h=0,f=v.length;h<f;h++)if(G=v[h],G.type===o.DocType){G.name=y.name;break}}return this}debugInfo(_){var G,y;return _=_||this.name,_==null&&!((G=this.parent)!=null&&G.name)?"":_==null?"parent: <"+this.parent.name+">":(y=this.parent)!=null&&y.name?"node: <"+_+">, parent: <"+this.parent.name+">":"node: <"+_+">"}ele(_,G,y){return this.element(_,G,y)}nod(_,G,y){return this.node(_,G,y)}txt(_){return this.text(_)}dat(_){return this.cdata(_)}com(_){return this.comment(_)}ins(_,G){return this.instruction(_,G)}doc(){return this.document()}dec(_,G,y){return this.declaration(_,G,y)}e(_,G,y){return this.element(_,G,y)}n(_,G,y){return this.node(_,G,y)}t(_){return this.text(_)}d(_){return this.cdata(_)}c(_){return this.comment(_)}r(_){return this.raw(_)}i(_,G){return this.instruction(_,G)}u(){return this.up()}importXMLBuilder(_){return this.importDocument(_)}attribute(_,G){throw new Error("attribute() applies to element nodes only.")}att(_,G){return this.attribute(_,G)}a(_,G){return this.attribute(_,G)}removeAttribute(_){throw new Error("attribute() applies to element nodes only.")}replaceChild(_,G){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(_,G){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(_){var G,y;return G=this,G===_?0:this.document()!==_.document()?(y=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?y|=t.Preceding:y|=t.Following,y):G.isAncestor(_)?t.Contains|t.Preceding:G.isDescendant(_)?t.Contains|t.Following:G.isPreceding(_)?t.Preceding:t.Following}isSameNode(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(_){var G,y,h;if(_.nodeType!==this.nodeType||_.children.length!==this.children.length)return!1;for(G=y=0,h=this.children.length-1;0<=h?y<=h:y>=h;G=0<=h?++y:--y)if(!this.children[G].isEqualNode(_.children[G]))return!1;return!0}getFeature(_,G){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(_,G,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(_){return _?_===this||this.isDescendant(_):!1}isDescendant(_){var G,y,h,f,v;for(v=this.children,h=0,f=v.length;h<f;h++)if(G=v[h],_===G||(y=G.isDescendant(_),y))return!0;return!1}isAncestor(_){return _.isDescendant(this)}isPreceding(_){var G,y;return G=this.treePosition(_),y=this.treePosition(this),G===-1||y===-1?!1:G<y}isFollowing(_){var G,y;return G=this.treePosition(_),y=this.treePosition(this),G===-1||y===-1?!1:G>y}treePosition(_){var G,y;return y=0,G=!1,this.foreachTreeNode(this.document(),function(h){if(y++,!G&&h===_)return G=!0}),G?y:-1}foreachTreeNode(_,G){var y,h,f,v,N;for(_||(_=this.document()),v=_.children,h=0,f=v.length;h<f;h++){if(y=v[h],N=G(y))return N;if(N=this.foreachTreeNode(y,G),N)return N}}}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 d(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 g;return g=this.parent.children.indexOf(this),this.parent.children[g-1]||null}}),Object.defineProperty(l.prototype,"nextSibling",{get:function(){var g;return g=this.parent.children.indexOf(this),this.parent.children[g+1]||null}}),Object.defineProperty(l.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(l.prototype,"textContent",{get:function(){var g,_,G,y,h;if(this.nodeType===o.Element||this.nodeType===o.DocumentFragment){for(h="",y=this.children,_=0,G=y.length;_<G;_++)g=y[_],g.textContent&&(h+=g.textContent);return h}else return null},set:function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l}.call(this)}).call(sm)});var kn=S((rm,nm)=>{(function(){var t,o={}.hasOwnProperty;nm.exports=t=function(){class e{constructor(i){var r,n,a;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),n=i.stringify||{};for(r in n)o.call(n,r)&&(a=n[r],this[r]=a)}name(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")}text(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))}cdata(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))}comment(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)}raw(i){return this.options.noValidation?i:""+i||""}attValue(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))}insTarget(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}insValue(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return this.assertLegalChar(i)}xmlVersion(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i}xmlEncoding(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)}xmlStandalone(i){return this.options.noValidation?i:i?"yes":"no"}dtdPubID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdSysID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdElementValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttType(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttDefault(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdEntityValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdNData(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}assertLegalChar(i){var r,n;if(this.options.noValidation)return i;if(this.options.version==="1.0"){if(r=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(r,this.options.invalidCharReplacement);else if(n=i.match(r))throw new Error(`Invalid character in string: ${i} at index ${n.index}`)}else if(this.options.version==="1.1"){if(r=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(r,this.options.invalidCharReplacement);else if(n=i.match(r))throw new Error(`Invalid character in string: ${i} at index ${n.index}`)}return i}assertLegalName(i){var r;if(this.options.noValidation)return i;if(i=this.assertLegalChar(i),r=/^([: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(r))throw new Error(`Invalid character in name: ${i}`);return i}textEscape(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e}.call(this)}).call(rm)});var Qe=S((am,cm)=>{(function(){cm.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(am)});var Kn=S((lm,um)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,z,k,p,W={}.hasOwnProperty;({assign:p}=Ao()),t=Q(),c=pi(),u=Si(),e=bi(),s=vi(),x=Gi(),w=Fi(),z=Mi(),m=Ei(),d=zn(),i=Wi(),r=Ci(),n=qi(),a=Ni(),o=Qe(),um.exports=k=class{constructor(O){var l,g,_;O||(O={}),this.options=O,g=O.writer||{};for(l in g)W.call(g,l)&&(_=g[l],this["_"+l]=this[l],this[l]=_)}filterOptions(O){var l,g,_,G,y,h,f,v,N;return O||(O={}),O=p({},this.options,O),l={writer:this},l.pretty=O.pretty||!1,l.allowEmpty=O.allowEmpty||!1,l.indent=(g=O.indent)!=null?g:" ",l.newline=(_=O.newline)!=null?_:`
24
- `,l.offset=(G=O.offset)!=null?G:0,l.width=(y=O.width)!=null?y:0,l.dontPrettyTextNodes=(h=(f=O.dontPrettyTextNodes)!=null?f:O.dontprettytextnodes)!=null?h:0,l.spaceBeforeSlash=(v=(N=O.spaceBeforeSlash)!=null?N:O.spacebeforeslash)!=null?v:"",l.spaceBeforeSlash===!0&&(l.spaceBeforeSlash=" "),l.suppressPrettyCount=0,l.user={},l.state=o.None,l}indent(O,l,g){var _;return!l.pretty||l.suppressPrettyCount?"":l.pretty&&(_=(g||0)+l.offset+1,_>0)?new Array(_).join(l.indent):""}endline(O,l,g){return!l.pretty||l.suppressPrettyCount?"":l.newline}attribute(O,l,g){var _;return this.openAttribute(O,l,g),l.pretty&&l.width>0?_=O.name+'="'+O.value+'"':_=" "+O.name+'="'+O.value+'"',this.closeAttribute(O,l,g),_}cdata(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<![CDATA[",l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+="]]>"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}comment(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!-- ",l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=" -->"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}declaration(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<?xml",l.state=o.InsideTag,_+=' version="'+O.version+'"',O.encoding!=null&&(_+=' encoding="'+O.encoding+'"'),O.standalone!=null&&(_+=' standalone="'+O.standalone+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+"?>",_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}docType(O,l,g){var _,G,y,h,f;if(g||(g=0),this.openNode(O,l,g),l.state=o.OpenTag,h=this.indent(O,l,g),h+="<!DOCTYPE "+O.root().name,O.pubID&&O.sysID?h+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(h+=' SYSTEM "'+O.sysID+'"'),O.children.length>0){for(h+=" [",h+=this.endline(O,l,g),l.state=o.InsideTag,f=O.children,G=0,y=f.length;G<y;G++)_=f[G],h+=this.writeChildNode(_,l,g+1);l.state=o.CloseTag,h+="]"}return l.state=o.CloseTag,h+=l.spaceBeforeSlash+">",h+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),h}element(O,l,g){var _,G,y,h,f,v,N,F,V,I,E,X,Z,Go,ro,ct,Ct,Nt,Jo;if(g||(g=0),X=!1,this.openNode(O,l,g),l.state=o.OpenTag,Z=this.indent(O,l,g)+"<"+O.name,l.pretty&&l.width>0){F=Z.length,ro=O.attribs;for(E in ro)W.call(ro,E)&&(_=ro[E],Go=this.attribute(_,l,g),G=Go.length,F+G>l.width?(Jo=this.indent(O,l,g+1)+Go,Z+=this.endline(O,l,g)+Jo,F=Jo.length):(Jo=" "+Go,Z+=Jo,F+=Jo.length))}else{ct=O.attribs;for(E in ct)W.call(ct,E)&&(_=ct[E],Z+=this.attribute(_,l,g))}if(h=O.children.length,f=h===0?null:O.children[0],h===0||O.children.every(function(St){return(St.type===t.Text||St.type===t.Raw||St.type===t.CData)&&St.value===""}))l.allowEmpty?(Z+=">",l.state=o.CloseTag,Z+="</"+O.name+">"+this.endline(O,l,g)):(l.state=o.CloseTag,Z+=l.spaceBeforeSlash+"/>"+this.endline(O,l,g));else if(l.pretty&&h===1&&(f.type===t.Text||f.type===t.Raw||f.type===t.CData)&&f.value!=null)Z+=">",l.state=o.InsideTag,l.suppressPrettyCount++,X=!0,Z+=this.writeChildNode(f,l,g+1),l.suppressPrettyCount--,X=!1,l.state=o.CloseTag,Z+="</"+O.name+">"+this.endline(O,l,g);else{if(l.dontPrettyTextNodes){for(Ct=O.children,v=0,V=Ct.length;v<V;v++)if(y=Ct[v],(y.type===t.Text||y.type===t.Raw||y.type===t.CData)&&y.value!=null){l.suppressPrettyCount++,X=!0;break}}for(Z+=">"+this.endline(O,l,g),l.state=o.InsideTag,Nt=O.children,N=0,I=Nt.length;N<I;N++)y=Nt[N],Z+=this.writeChildNode(y,l,g+1);l.state=o.CloseTag,Z+=this.indent(O,l,g)+"</"+O.name+">",X&&l.suppressPrettyCount--,Z+=this.endline(O,l,g),l.state=o.None}return this.closeNode(O,l,g),Z}writeChildNode(O,l,g){switch(O.type){case t.CData:return this.cdata(O,l,g);case t.Comment:return this.comment(O,l,g);case t.Element:return this.element(O,l,g);case t.Raw:return this.raw(O,l,g);case t.Text:return this.text(O,l,g);case t.ProcessingInstruction:return this.processingInstruction(O,l,g);case t.Dummy:return"";case t.Declaration:return this.declaration(O,l,g);case t.DocType:return this.docType(O,l,g);case t.AttributeDeclaration:return this.dtdAttList(O,l,g);case t.ElementDeclaration:return this.dtdElement(O,l,g);case t.EntityDeclaration:return this.dtdEntity(O,l,g);case t.NotationDeclaration:return this.dtdNotation(O,l,g);default:throw new Error("Unknown XML node type: "+O.constructor.name)}}processingInstruction(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<?",l.state=o.InsideTag,_+=O.target,O.value&&(_+=" "+O.value),l.state=o.CloseTag,_+=l.spaceBeforeSlash+"?>",_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}raw(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g),l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}text(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g),l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}dtdAttList(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ATTLIST",l.state=o.InsideTag,_+=" "+O.elementName+" "+O.attributeName+" "+O.attributeType,O.defaultValueType!=="#DEFAULT"&&(_+=" "+O.defaultValueType),O.defaultValue&&(_+=' "'+O.defaultValue+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}dtdElement(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ELEMENT",l.state=o.InsideTag,_+=" "+O.name+" "+O.value,l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}dtdEntity(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ENTITY",l.state=o.InsideTag,O.pe&&(_+=" %"),_+=" "+O.name,O.value?_+=' "'+O.value+'"':(O.pubID&&O.sysID?_+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(_+=' SYSTEM "'+O.sysID+'"'),O.nData&&(_+=" NDATA "+O.nData)),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}dtdNotation(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!NOTATION",l.state=o.InsideTag,_+=" "+O.name,O.pubID&&O.sysID?_+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.pubID?_+=' PUBLIC "'+O.pubID+'"':O.sysID&&(_+=' SYSTEM "'+O.sysID+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}openNode(O,l,g){}closeNode(O,l,g){}openAttribute(O,l,g){}closeAttribute(O,l,g){}}}).call(lm)});var Vi=S((_m,xm)=>{(function(){var t,o;o=Kn(),xm.exports=t=class extends o{constructor(s){super(s)}document(s,i){var r,n,a,c,u;for(i=this.filterOptions(i),c="",u=s.children,n=0,a=u.length;n<a;n++)r=u[n],c+=this.writeChildNode(r,i,0);return i.pretty&&c.slice(-i.newline.length)===i.newline&&(c=c.slice(0,-i.newline.length)),c}}}).call(_m)});var Gn=S((mm,gm)=>{(function(){var t,o,e,s,i,r,n,a;({isPlainObject:a}=Ao()),e=hn(),o=dx(),i=Ko(),t=Q(),n=kn(),r=Vi(),gm.exports=s=function(){class c extends i{constructor(d){super(null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new o,d||(d={}),d.writer||(d.writer=new r),this.options=d,this.stringify=new n(d)}end(d){var x;return x={},d?a(d)&&(x=d,d=this.options.writer):d=this.options.writer,d.document(this,d.filterOptions(x))}toString(d){return this.options.writer.document(this,this.options.writer.filterOptions(d))}createElement(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(d,x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(d,x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(d,x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(c.prototype,"implementation",{value:new e}),Object.defineProperty(c.prototype,"doctype",{get:function(){var u,d,x,m;for(m=this.children,d=0,x=m.length;d<x;d++)if(u=m[d],u.type===t.DocType)return u;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c}.call(this)}).call(mm)});var wm=S((Om,dm)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,z,k,p,W,q,O,l,g,_,G={}.hasOwnProperty;({isObject:g,isFunction:l,isPlainObject:_,getValue:O}=Ao()),t=Q(),x=Gn(),w=Gi(),s=bi(),i=vi(),k=Fi(),q=Mi(),z=Ei(),u=pi(),d=Si(),r=Wi(),a=qi(),n=Ci(),c=Ni(),e=fn(),W=kn(),p=Vi(),o=Qe(),dm.exports=m=class{constructor(h,f,v){var N;this.name="?xml",this.type=t.Document,h||(h={}),N={},h.writer?_(h.writer)&&(N=h.writer,h.writer=new p):h.writer=new p,this.options=h,this.writer=h.writer,this.writerOptions=this.writer.filterOptions(N),this.stringify=new W(h),this.onDataCallback=f||function(){},this.onEndCallback=v||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(h){var f,v,N,F,V,I,E,X;switch(h.type){case t.CData:this.cdata(h.value);break;case t.Comment:this.comment(h.value);break;case t.Element:N={},E=h.attribs;for(v in E)G.call(E,v)&&(f=E[v],N[v]=f.value);this.node(h.name,N);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(h.value);break;case t.Text:this.text(h.value);break;case t.ProcessingInstruction:this.instruction(h.target,h.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+h.constructor.name)}for(X=h.children,V=0,I=X.length;V<I;V++)F=X[V],this.createChildNode(F),F.type===t.Element&&this.up();return this}dummy(){return this}node(h,f,v){if(h==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(h));return this.openCurrent(),h=O(h),f==null&&(f={}),f=O(f),g(f)||([v,f]=[f,v]),this.currentNode=new w(this,h,f),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,v!=null&&this.text(v),this}element(h,f,v){var N,F,V,I,E,X;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement(...arguments);else if(Array.isArray(h)||g(h)||l(h))for(I=this.options.noValidation,this.options.noValidation=!0,X=new x(this.options).element("TEMP_ROOT"),X.element(h),this.options.noValidation=I,E=X.children,F=0,V=E.length;F<V;F++)N=E[F],this.createChildNode(N),N.type===t.Element&&this.up();else this.node(h,f,v);return this}attribute(h,f){var v,N;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(h));if(h!=null&&(h=O(h)),g(h))for(v in h)G.call(h,v)&&(N=h[v],this.attribute(v,N));else l(f)&&(f=f.apply()),this.options.keepNullAttributes&&f==null?this.currentNode.attribs[h]=new e(this,h,""):f!=null&&(this.currentNode.attribs[h]=new e(this,h,f));return this}text(h){var f;return this.openCurrent(),f=new q(this,h),this.onData(this.writer.text(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(h){var f;return this.openCurrent(),f=new s(this,h),this.onData(this.writer.cdata(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(h){var f;return this.openCurrent(),f=new i(this,h),this.onData(this.writer.comment(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(h){var f;return this.openCurrent(),f=new k(this,h),this.onData(this.writer.raw(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(h,f){var v,N,F,V,I;if(this.openCurrent(),h!=null&&(h=O(h)),f!=null&&(f=O(f)),Array.isArray(h))for(v=0,V=h.length;v<V;v++)N=h[v],this.instruction(N);else if(g(h))for(N in h)G.call(h,N)&&(F=h[N],this.instruction(N,F));else l(f)&&(f=f.apply()),I=new z(this,h,f),this.onData(this.writer.processingInstruction(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(h,f,v){var N;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return N=new u(this,h,f,v),this.onData(this.writer.declaration(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(h,f,v){if(this.openCurrent(),h==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,f,v),this.currentNode.rootNodeName=h,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(h,f){var v;return this.openCurrent(),v=new n(this,h,f),this.onData(this.writer.dtdElement(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(h,f,v,N,F){var V;return this.openCurrent(),V=new r(this,h,f,v,N,F),this.onData(this.writer.dtdAttList(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(h,f){var v;return this.openCurrent(),v=new a(this,!1,h,f),this.onData(this.writer.dtdEntity(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(h,f){var v;return this.openCurrent(),v=new a(this,!0,h,f),this.onData(this.writer.dtdEntity(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(h,f){var v;return this.openCurrent(),v=new c(this,h,f),this.onData(this.writer.dtdNotation(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){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}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(h){var f,v,N,F;if(!h.isOpen){if(!this.root&&this.currentLevel===0&&h.type===t.Element&&(this.root=h),v="",h.type===t.Element){this.writerOptions.state=o.OpenTag,v=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<"+h.name,F=h.attribs;for(N in F)G.call(F,N)&&(f=F[N],v+=this.writer.attribute(f,this.writerOptions,this.currentLevel));v+=(h.children?">":"/>")+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,v=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+h.rootNodeName,h.pubID&&h.sysID?v+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(v+=' SYSTEM "'+h.sysID+'"'),h.children?(v+=" [",this.writerOptions.state=o.InsideTag):(this.writerOptions.state=o.CloseTag,v+=">"),v+=this.writer.endline(h,this.writerOptions,this.currentLevel);return this.onData(v,this.currentLevel),h.isOpen=!0}}closeNode(h){var f;if(!h.isClosed)return f="",this.writerOptions.state=o.CloseTag,h.type===t.Element?f=this.writer.indent(h,this.writerOptions,this.currentLevel)+"</"+h.name+">"+this.writer.endline(h,this.writerOptions,this.currentLevel):f=this.writer.indent(h,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(f,this.currentLevel),h.isClosed=!0}onData(h,f){return this.documentStarted=!0,this.onDataCallback(h,f+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(h){return h==null?"":"node: <"+h+">"}ele(){return this.element(...arguments)}nod(h,f,v){return this.node(h,f,v)}txt(h){return this.text(h)}dat(h){return this.cdata(h)}com(h){return this.comment(h)}ins(h,f){return this.instruction(h,f)}dec(h,f,v){return this.declaration(h,f,v)}dtd(h,f,v){return this.doctype(h,f,v)}e(h,f,v){return this.element(h,f,v)}n(h,f,v){return this.node(h,f,v)}t(h){return this.text(h)}d(h){return this.cdata(h)}c(h){return this.comment(h)}r(h){return this.raw(h)}i(h,f){return this.instruction(h,f)}att(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(h,f){return this.entity(h,f)}pent(h,f){return this.pEntity(h,f)}not(h,f){return this.notation(h,f)}}}).call(Om)});var fm=S((ym,hm)=>{(function(){var t,o,e,s,i={}.hasOwnProperty;t=Q(),s=Kn(),o=Qe(),hm.exports=e=class extends s{constructor(n,a){super(a),this.stream=n}endline(n,a,c){return n.isLastRootNode&&a.state===o.CloseTag?"":super.endline(n,a,c)}document(n,a){var c,u,d,x,m,w,z,k,p;for(z=n.children,u=d=0,m=z.length;d<m;u=++d)c=z[u],c.isLastRootNode=u===n.children.length-1;for(a=this.filterOptions(a),k=n.children,p=[],x=0,w=k.length;x<w;x++)c=k[x],p.push(this.writeChildNode(c,a,0));return p}cdata(n,a,c){return this.stream.write(super.cdata(n,a,c))}comment(n,a,c){return this.stream.write(super.comment(n,a,c))}declaration(n,a,c){return this.stream.write(super.declaration(n,a,c))}docType(n,a,c){var u,d,x,m;if(c||(c=0),this.openNode(n,a,c),a.state=o.OpenTag,this.stream.write(this.indent(n,a,c)),this.stream.write("<!DOCTYPE "+n.root().name),n.pubID&&n.sysID?this.stream.write(' PUBLIC "'+n.pubID+'" "'+n.sysID+'"'):n.sysID&&this.stream.write(' SYSTEM "'+n.sysID+'"'),n.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(n,a,c)),a.state=o.InsideTag,m=n.children,d=0,x=m.length;d<x;d++)u=m[d],this.writeChildNode(u,a,c+1);a.state=o.CloseTag,this.stream.write("]")}return a.state=o.CloseTag,this.stream.write(a.spaceBeforeSlash+">"),this.stream.write(this.endline(n,a,c)),a.state=o.None,this.closeNode(n,a,c)}element(n,a,c){var u,d,x,m,w,z,k,p,W,q,O,l,g,_,G,y;if(c||(c=0),this.openNode(n,a,c),a.state=o.OpenTag,O=this.indent(n,a,c)+"<"+n.name,a.pretty&&a.width>0){k=O.length,g=n.attribs;for(W in g)i.call(g,W)&&(u=g[W],l=this.attribute(u,a,c),d=l.length,k+d>a.width?(y=this.indent(n,a,c+1)+l,O+=this.endline(n,a,c)+y,k=y.length):(y=" "+l,O+=y,k+=y.length))}else{_=n.attribs;for(W in _)i.call(_,W)&&(u=_[W],O+=this.attribute(u,a,c))}if(this.stream.write(O),m=n.children.length,w=m===0?null:n.children[0],m===0||n.children.every(function(h){return(h.type===t.Text||h.type===t.Raw||h.type===t.CData)&&h.value===""}))a.allowEmpty?(this.stream.write(">"),a.state=o.CloseTag,this.stream.write("</"+n.name+">")):(a.state=o.CloseTag,this.stream.write(a.spaceBeforeSlash+"/>"));else if(a.pretty&&m===1&&(w.type===t.Text||w.type===t.Raw||w.type===t.CData)&&w.value!=null)this.stream.write(">"),a.state=o.InsideTag,a.suppressPrettyCount++,q=!0,this.writeChildNode(w,a,c+1),a.suppressPrettyCount--,q=!1,a.state=o.CloseTag,this.stream.write("</"+n.name+">");else{for(this.stream.write(">"+this.endline(n,a,c)),a.state=o.InsideTag,G=n.children,z=0,p=G.length;z<p;z++)x=G[z],this.writeChildNode(x,a,c+1);a.state=o.CloseTag,this.stream.write(this.indent(n,a,c)+"</"+n.name+">")}return this.stream.write(this.endline(n,a,c)),a.state=o.None,this.closeNode(n,a,c)}processingInstruction(n,a,c){return this.stream.write(super.processingInstruction(n,a,c))}raw(n,a,c){return this.stream.write(super.raw(n,a,c))}text(n,a,c){return this.stream.write(super.text(n,a,c))}dtdAttList(n,a,c){return this.stream.write(super.dtdAttList(n,a,c))}dtdElement(n,a,c){return this.stream.write(super.dtdElement(n,a,c))}dtdEntity(n,a,c){return this.stream.write(super.dtdEntity(n,a,c))}dtdNotation(n,a,c){return this.stream.write(super.dtdNotation(n,a,c))}}}).call(ym)});var km=S((zm,wt)=>{(function(){var t,o,e,s,i,r,n,a,c;({assign:a,isFunction:c}=Ao()),e=hn(),s=Gn(),i=wm(),n=Vi(),r=fm(),t=Q(),o=Qe(),wt.exports.create=function(u,d,x,m){var w,z;if(u==null)throw new Error("Root element needs a name.");return m=a({},d,x,m),w=new s(m),z=w.element(u),m.headless||(w.declaration(m),(m.pubID!=null||m.sysID!=null)&&w.dtd(m)),z},wt.exports.begin=function(u,d,x){return c(u)&&([d,x]=[u,d],u={}),d?new i(u,d,x):new s(u)},wt.exports.stringWriter=function(u){return new n(u)},wt.exports.streamWriter=function(u,d){return new r(u,d)},wt.exports.implementation=new e,wt.exports.nodeType=t,wt.exports.writerState=o}).call(zm)});var vm=S(je=>{"use strict";var bm=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(je,"__esModule",{value:!0});je.build=wy;var Km=bm(ix()),gy=bm(km());function Oy(t){function o(e){return e<10?"0"+e:e}return t.getUTCFullYear()+"-"+o(t.getUTCMonth()+1)+"-"+o(t.getUTCDate())+"T"+o(t.getUTCHours())+":"+o(t.getUTCMinutes())+":"+o(t.getUTCSeconds())+"Z"}var dy=Object.prototype.toString;function Gm(t){let o=dy.call(t).match(/\[object (.*)\]/);return o&&o[1]}function wy(t,o){let e={version:"1.0",encoding:"UTF-8"},s={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},i=gy.default.create("plist");return i.dec(e.version,e.encoding,e.standalone),i.dtd(s.pubid,s.sysid),i.att("version","1.0"),bn(t,i),o||(o={}),o.pretty=o.pretty!==!1,i.end(o)}function bn(t,o){let e,s,i,r=Gm(t);if(r!=="Undefined")if(Array.isArray(t))for(o=o.ele("array"),s=0;s<t.length;s++)bn(t[s],o);else if(Buffer.isBuffer(t))o.ele("data").raw(t.toString("base64"));else if(r==="Object"){o=o.ele("dict");for(i in t)t.hasOwnProperty(i)&&t[i]!==void 0&&(o.ele("key").txt(i),bn(t[i],o))}else r==="Number"?(e=t%1===0?"integer":"real",o.ele(e).txt(t.toString())):r==="Date"?o.ele("date").txt(Oy(new Date(t))):r==="Boolean"?o.ele(t?"true":"false"):r==="String"?o.ele("string").txt(t):r==="ArrayBuffer"?o.ele("data").raw(Km.default.fromByteArray(t)):t&&t.buffer&&Gm(t.buffer)==="ArrayBuffer"&&o.ele("data").raw(Km.default.fromByteArray(new Uint8Array(t.buffer)))}});var Re=S(ae=>{"use strict";function yy(t,o,e){if(e===void 0&&(e=Array.prototype),t&&typeof e.find=="function")return e.find.call(t,o);for(var s=0;s<t.length;s++)if(Object.prototype.hasOwnProperty.call(t,s)){var i=t[s];if(o.call(void 0,i,s,t))return i}}function vn(t,o){return o===void 0&&(o=Object),o&&typeof o.freeze=="function"?o.freeze(t):t}function hy(t,o){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e]);return t}var pm=vn({HTML:"text/html",isHTML:function(t){return t===pm.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Wm=vn({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===Wm.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});ae.assign=hy;ae.find=yy;ae.freeze=vn;ae.MIME_TYPE=pm;ae.NAMESPACE=Wm});var Xn=S(yt=>{var Vm=Re(),Qo=Vm.find,Je=Vm.NAMESPACE;function fy(t){return t!==""}function zy(t){return t?t.split(/[\t\n\f\r ]+/).filter(fy):[]}function ky(t,o){return t.hasOwnProperty(o)||(t[o]=!0),t}function qm(t){if(!t)return[];var o=zy(t);return Object.keys(o.reduce(ky,{}))}function Ky(t){return function(o){return t&&t.indexOf(o)!==-1}}function De(t,o){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}function wo(t,o){var e=t.prototype;if(!(e instanceof o)){let i=function(){};var s=i;i.prototype=o.prototype,i=new i,De(e,i),t.prototype=e=i}e.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),e.constructor=t)}var yo={},Io=yo.ELEMENT_NODE=1,le=yo.ATTRIBUTE_NODE=2,Xi=yo.TEXT_NODE=3,Xm=yo.CDATA_SECTION_NODE=4,Ym=yo.ENTITY_REFERENCE_NODE=5,Gy=yo.ENTITY_NODE=6,Im=yo.PROCESSING_INSTRUCTION_NODE=7,Zm=yo.COMMENT_NODE=8,Pm=yo.DOCUMENT_NODE=9,Lm=yo.DOCUMENT_TYPE_NODE=10,rt=yo.DOCUMENT_FRAGMENT_NODE=11,by=yo.NOTATION_NODE=12,lo={},eo={},N7=lo.INDEX_SIZE_ERR=(eo[1]="Index size error",1),S7=lo.DOMSTRING_SIZE_ERR=(eo[2]="DOMString size error",2),Oo=lo.HIERARCHY_REQUEST_ERR=(eo[3]="Hierarchy request error",3),F7=lo.WRONG_DOCUMENT_ERR=(eo[4]="Wrong document",4),M7=lo.INVALID_CHARACTER_ERR=(eo[5]="Invalid character",5),E7=lo.NO_DATA_ALLOWED_ERR=(eo[6]="No data allowed",6),V7=lo.NO_MODIFICATION_ALLOWED_ERR=(eo[7]="No modification allowed",7),Tm=lo.NOT_FOUND_ERR=(eo[8]="Not found",8),X7=lo.NOT_SUPPORTED_ERR=(eo[9]="Not supported",9),Cm=lo.INUSE_ATTRIBUTE_ERR=(eo[10]="Attribute in use",10),Y7=lo.INVALID_STATE_ERR=(eo[11]="Invalid state",11),I7=lo.SYNTAX_ERR=(eo[12]="Syntax error",12),Z7=lo.INVALID_MODIFICATION_ERR=(eo[13]="Invalid modification",13),P7=lo.NAMESPACE_ERR=(eo[14]="Invalid namespace",14),L7=lo.INVALID_ACCESS_ERR=(eo[15]="Invalid access",15);function j(t,o){if(o instanceof Error)var e=o;else e=this,Error.call(this,eo[t]),this.message=eo[t],Error.captureStackTrace&&Error.captureStackTrace(this,j);return e.code=t,o&&(this.message=this.message+": "+o),e}j.prototype=Error.prototype;De(lo,j);function it(){}it.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,o){for(var e=[],s=0;s<this.length;s++)ce(this[s],e,t,o);return e.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function ue(t,o){this._node=t,this._refresh=o,qn(this)}function qn(t){var o=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==o){var e=t._refresh(t._node);if(tg(t,"length",e.length),!t.$$length||e.length<t.$$length)for(var s=e.length;s in t;s++)Object.prototype.hasOwnProperty.call(t,s)&&delete t[s];De(e,t),t._inc=o}}ue.prototype.item=function(t){return qn(this),this[t]||null};wo(ue,it);function Yi(){}function Um(t,o){for(var e=t.length;e--;)if(t[e]===o)return e}function Nm(t,o,e,s){if(s?o[Um(o,s)]=e:o[o.length++]=e,t){e.ownerElement=t;var i=t.ownerDocument;i&&(s&&jm(i,t,s),vy(i,t,e))}}function Sm(t,o,e){var s=Um(o,e);if(s>=0){for(var i=o.length-1;s<i;)o[s]=o[++s];if(o.length=i,t){var r=t.ownerDocument;r&&(jm(r,t,e),e.ownerElement=null)}}else throw new j(Tm,new Error(t.tagName+"@"+e))}Yi.prototype={length:0,item:it.prototype.item,getNamedItem:function(t){for(var o=this.length;o--;){var e=this[o];if(e.nodeName==t)return e}},setNamedItem:function(t){var o=t.ownerElement;if(o&&o!=this._ownerElement)throw new j(Cm);var e=this.getNamedItem(t.nodeName);return Nm(this._ownerElement,this,t,e),e},setNamedItemNS:function(t){var o=t.ownerElement,e;if(o&&o!=this._ownerElement)throw new j(Cm);return e=this.getNamedItemNS(t.namespaceURI,t.localName),Nm(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var o=this.getNamedItem(t);return Sm(this._ownerElement,this,o),o},removeNamedItemNS:function(t,o){var e=this.getNamedItemNS(t,o);return Sm(this._ownerElement,this,e),e},getNamedItemNS:function(t,o){for(var e=this.length;e--;){var s=this[e];if(s.localName==o&&s.namespaceURI==t)return s}return null}};function Am(){}Am.prototype={hasFeature:function(t,o){return!0},createDocument:function(t,o,e){var s=new $e;if(s.implementation=this,s.childNodes=new it,s.doctype=e||null,e&&s.appendChild(e),o){var i=s.createElementNS(t,o);s.appendChild(i)}return s},createDocumentType:function(t,o,e){var s=new Pi;return s.name=t,s.nodeName=t,s.publicId=o||"",s.systemId=e||"",s}};function T(){}T.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,o){return Ii(this,t,o)},replaceChild:function(t,o){Ii(this,t,o,Jm),o&&this.removeChild(o)},removeChild:function(t){return Rm(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Wn(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var o=t.nextSibling;o&&o.nodeType==Xi&&t.nodeType==Xi?(this.removeChild(o),t.appendData(o.data)):(t.normalize(),t=o)}},isSupported:function(t,o){return this.ownerDocument.implementation.hasFeature(t,o)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var o=this;o;){var e=o._nsMap;if(e){for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]===t)return s}o=o.nodeType==le?o.ownerDocument:o.parentNode}return null},lookupNamespaceURI:function(t){for(var o=this;o;){var e=o._nsMap;if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];o=o.nodeType==le?o.ownerDocument:o.parentNode}return null},isDefaultNamespace:function(t){var o=this.lookupPrefix(t);return o==null}};function Qm(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}De(yo,T);De(yo,T.prototype);function Be(t,o){if(o(t))return!0;if(t=t.firstChild)do if(Be(t,o))return!0;while(t=t.nextSibling)}function $e(){this.ownerDocument=this}function vy(t,o,e){t&&t._inc++;var s=e.namespaceURI;s===Je.XMLNS&&(o._nsMap[e.prefix?e.localName:""]=e.value)}function jm(t,o,e,s){t&&t._inc++;var i=e.namespaceURI;i===Je.XMLNS&&delete o._nsMap[e.prefix?e.localName:""]}function Cn(t,o,e){if(t&&t._inc){t._inc++;var s=o.childNodes;if(e)s[s.length++]=e;else{for(var i=o.firstChild,r=0;i;)s[r++]=i,i=i.nextSibling;s.length=r,delete s[s.length]}}}function Rm(t,o){var e=o.previousSibling,s=o.nextSibling;return e?e.nextSibling=s:t.firstChild=s,s?s.previousSibling=e:t.lastChild=e,o.parentNode=null,o.previousSibling=null,o.nextSibling=null,Cn(t.ownerDocument,t),o}function py(t){return t&&(t.nodeType===T.DOCUMENT_NODE||t.nodeType===T.DOCUMENT_FRAGMENT_NODE||t.nodeType===T.ELEMENT_NODE)}function Wy(t){return t&&(jo(t)||Nn(t)||nt(t)||t.nodeType===T.DOCUMENT_FRAGMENT_NODE||t.nodeType===T.COMMENT_NODE||t.nodeType===T.PROCESSING_INSTRUCTION_NODE)}function nt(t){return t&&t.nodeType===T.DOCUMENT_TYPE_NODE}function jo(t){return t&&t.nodeType===T.ELEMENT_NODE}function Nn(t){return t&&t.nodeType===T.TEXT_NODE}function Fm(t,o){var e=t.childNodes||[];if(Qo(e,jo)||nt(o))return!1;var s=Qo(e,nt);return!(o&&s&&e.indexOf(s)>e.indexOf(o))}function Mm(t,o){var e=t.childNodes||[];function s(r){return jo(r)&&r!==o}if(Qo(e,s))return!1;var i=Qo(e,nt);return!(o&&i&&e.indexOf(i)>e.indexOf(o))}function qy(t,o,e){if(!py(t))throw new j(Oo,"Unexpected parent node type "+t.nodeType);if(e&&e.parentNode!==t)throw new j(Tm,"child not in parent");if(!Wy(o)||nt(o)&&t.nodeType!==T.DOCUMENT_NODE)throw new j(Oo,"Unexpected node type "+o.nodeType+" for parent node type "+t.nodeType)}function Cy(t,o,e){var s=t.childNodes||[],i=o.childNodes||[];if(o.nodeType===T.DOCUMENT_FRAGMENT_NODE){var r=i.filter(jo);if(r.length>1||Qo(i,Nn))throw new j(Oo,"More than one element or text in fragment");if(r.length===1&&!Fm(t,e))throw new j(Oo,"Element in fragment can not be inserted before doctype")}if(jo(o)&&!Fm(t,e))throw new j(Oo,"Only one element can be added and only after doctype");if(nt(o)){if(Qo(s,nt))throw new j(Oo,"Only one doctype is allowed");var n=Qo(s,jo);if(e&&s.indexOf(n)<s.indexOf(e))throw new j(Oo,"Doctype can only be inserted before an element");if(!e&&n)throw new j(Oo,"Doctype can not be appended since element is present")}}function Jm(t,o,e){var s=t.childNodes||[],i=o.childNodes||[];if(o.nodeType===T.DOCUMENT_FRAGMENT_NODE){var r=i.filter(jo);if(r.length>1||Qo(i,Nn))throw new j(Oo,"More than one element or text in fragment");if(r.length===1&&!Mm(t,e))throw new j(Oo,"Element in fragment can not be inserted before doctype")}if(jo(o)&&!Mm(t,e))throw new j(Oo,"Only one element can be added and only after doctype");if(nt(o)){let c=function(u){return nt(u)&&u!==e};var a=c;if(Qo(s,c))throw new j(Oo,"Only one doctype is allowed");var n=Qo(s,jo);if(e&&s.indexOf(n)<s.indexOf(e))throw new j(Oo,"Doctype can only be inserted before an element")}}function Ii(t,o,e,s){qy(t,o,e),t.nodeType===T.DOCUMENT_NODE&&(s||Cy)(t,o,e);var i=o.parentNode;if(i&&i.removeChild(o),o.nodeType===rt){var r=o.firstChild;if(r==null)return o;var n=o.lastChild}else r=n=o;var a=e?e.previousSibling:t.lastChild;r.previousSibling=a,n.nextSibling=e,a?a.nextSibling=r:t.firstChild=r,e==null?t.lastChild=n:e.previousSibling=n;do r.parentNode=t;while(r!==n&&(r=r.nextSibling));return Cn(t.ownerDocument||t,t),o.nodeType==rt&&(o.firstChild=o.lastChild=null),o}function Ny(t,o){return o.parentNode&&o.parentNode.removeChild(o),o.parentNode=t,o.previousSibling=t.lastChild,o.nextSibling=null,o.previousSibling?o.previousSibling.nextSibling=o:t.firstChild=o,t.lastChild=o,Cn(t.ownerDocument,t,o),o}$e.prototype={nodeName:"#document",nodeType:Pm,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,o){if(t.nodeType==rt){for(var e=t.firstChild;e;){var s=e.nextSibling;this.insertBefore(e,o),e=s}return t}return Ii(this,t,o),t.ownerDocument=this,this.documentElement===null&&t.nodeType===Io&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),Rm(this,t)},replaceChild:function(t,o){Ii(this,t,o,Jm),t.ownerDocument=this,o&&this.removeChild(o),jo(t)&&(this.documentElement=t)},importNode:function(t,o){return og(this,t,o)},getElementById:function(t){var o=null;return Be(this.documentElement,function(e){if(e.nodeType==Io&&e.getAttribute("id")==t)return o=e,!0}),o},getElementsByClassName:function(t){var o=qm(t);return new ue(this,function(e){var s=[];return o.length>0&&Be(e.documentElement,function(i){if(i!==e&&i.nodeType===Io){var r=i.getAttribute("class");if(r){var n=t===r;if(!n){var a=qm(r);n=o.every(Ky(a))}n&&s.push(i)}}}),s})},createElement:function(t){var o=new qt;o.ownerDocument=this,o.nodeName=t,o.tagName=t,o.localName=t,o.childNodes=new it;var e=o.attributes=new Yi;return e._ownerElement=o,o},createDocumentFragment:function(){var t=new Li;return t.ownerDocument=this,t.childNodes=new it,t},createTextNode:function(t){var o=new Sn;return o.ownerDocument=this,o.appendData(t),o},createComment:function(t){var o=new Fn;return o.ownerDocument=this,o.appendData(t),o},createCDATASection:function(t){var o=new Mn;return o.ownerDocument=this,o.appendData(t),o},createProcessingInstruction:function(t,o){var e=new Vn;return e.ownerDocument=this,e.tagName=e.nodeName=e.target=t,e.nodeValue=e.data=o,e},createAttribute:function(t){var o=new Zi;return o.ownerDocument=this,o.name=t,o.nodeName=t,o.localName=t,o.specified=!0,o},createEntityReference:function(t){var o=new En;return o.ownerDocument=this,o.nodeName=t,o},createElementNS:function(t,o){var e=new qt,s=o.split(":"),i=e.attributes=new Yi;return e.childNodes=new it,e.ownerDocument=this,e.nodeName=o,e.tagName=o,e.namespaceURI=t,s.length==2?(e.prefix=s[0],e.localName=s[1]):e.localName=o,i._ownerElement=e,e},createAttributeNS:function(t,o){var e=new Zi,s=o.split(":");return e.ownerDocument=this,e.nodeName=o,e.name=o,e.namespaceURI=t,e.specified=!0,s.length==2?(e.prefix=s[0],e.localName=s[1]):e.localName=o,e}};wo($e,T);function qt(){this._nsMap={}}qt.prototype={nodeType:Io,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var o=this.getAttributeNode(t);return o&&o.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,o){var e=this.ownerDocument.createAttribute(t);e.value=e.nodeValue=""+o,this.setAttributeNode(e)},removeAttribute:function(t){var o=this.getAttributeNode(t);o&&this.removeAttributeNode(o)},appendChild:function(t){return t.nodeType===rt?this.insertBefore(t,null):Ny(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,o){var e=this.getAttributeNodeNS(t,o);e&&this.removeAttributeNode(e)},hasAttributeNS:function(t,o){return this.getAttributeNodeNS(t,o)!=null},getAttributeNS:function(t,o){var e=this.getAttributeNodeNS(t,o);return e&&e.value||""},setAttributeNS:function(t,o,e){var s=this.ownerDocument.createAttributeNS(t,o);s.value=s.nodeValue=""+e,this.setAttributeNode(s)},getAttributeNodeNS:function(t,o){return this.attributes.getNamedItemNS(t,o)},getElementsByTagName:function(t){return new ue(this,function(o){var e=[];return Be(o,function(s){s!==o&&s.nodeType==Io&&(t==="*"||s.tagName==t)&&e.push(s)}),e})},getElementsByTagNameNS:function(t,o){return new ue(this,function(e){var s=[];return Be(e,function(i){i!==e&&i.nodeType===Io&&(t==="*"||i.namespaceURI===t)&&(o==="*"||i.localName==o)&&s.push(i)}),s})}};$e.prototype.getElementsByTagName=qt.prototype.getElementsByTagName;$e.prototype.getElementsByTagNameNS=qt.prototype.getElementsByTagNameNS;wo(qt,T);function Zi(){}Zi.prototype.nodeType=le;wo(Zi,T);function He(){}He.prototype={data:"",substringData:function(t,o){return this.data.substring(t,t+o)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,o){this.replaceData(t,0,o)},appendChild:function(t){throw new Error(eo[Oo])},deleteData:function(t,o){this.replaceData(t,o,"")},replaceData:function(t,o,e){var s=this.data.substring(0,t),i=this.data.substring(t+o);e=s+e+i,this.nodeValue=this.data=e,this.length=e.length}};wo(He,T);function Sn(){}Sn.prototype={nodeName:"#text",nodeType:Xi,splitText:function(t){var o=this.data,e=o.substring(t);o=o.substring(0,t),this.data=this.nodeValue=o,this.length=o.length;var s=this.ownerDocument.createTextNode(e);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}};wo(Sn,He);function Fn(){}Fn.prototype={nodeName:"#comment",nodeType:Zm};wo(Fn,He);function Mn(){}Mn.prototype={nodeName:"#cdata-section",nodeType:Xm};wo(Mn,He);function Pi(){}Pi.prototype.nodeType=Lm;wo(Pi,T);function Bm(){}Bm.prototype.nodeType=by;wo(Bm,T);function Dm(){}Dm.prototype.nodeType=Gy;wo(Dm,T);function En(){}En.prototype.nodeType=Ym;wo(En,T);function Li(){}Li.prototype.nodeName="#document-fragment";Li.prototype.nodeType=rt;wo(Li,T);function Vn(){}Vn.prototype.nodeType=Im;wo(Vn,T);function $m(){}$m.prototype.serializeToString=function(t,o,e){return Hm.call(t,o,e)};T.prototype.toString=Hm;function Hm(t,o){var e=[],s=this.nodeType==9&&this.documentElement||this,i=s.prefix,r=s.namespaceURI;if(r&&i==null){var i=s.lookupPrefix(r);if(i==null)var n=[{namespace:r,prefix:null}]}return ce(this,e,t,o,n),e.join("")}function Em(t,o,e){var s=t.prefix||"",i=t.namespaceURI;if(!i||s==="xml"&&i===Je.XML||i===Je.XMLNS)return!1;for(var r=e.length;r--;){var n=e[r];if(n.prefix===s)return n.namespace!==i}return!0}function pn(t,o,e){t.push(" ",o,'="',e.replace(/[<>&"\t\n\r]/g,Qm),'"')}function ce(t,o,e,s,i){if(i||(i=[]),s)if(t=s(t),t){if(typeof t=="string"){o.push(t);return}}else return;switch(t.nodeType){case Io:var r=t.attributes,n=r.length,W=t.firstChild,a=t.tagName;e=Je.isHTML(t.namespaceURI)||e;var c=a;if(!e&&!t.prefix&&t.namespaceURI){for(var u,d=0;d<r.length;d++)if(r.item(d).name==="xmlns"){u=r.item(d).value;break}if(!u)for(var x=i.length-1;x>=0;x--){var m=i[x];if(m.prefix===""&&m.namespace===t.namespaceURI){u=m.namespace;break}}if(u!==t.namespaceURI)for(var x=i.length-1;x>=0;x--){var m=i[x];if(m.namespace===t.namespaceURI){m.prefix&&(c=m.prefix+":"+a);break}}}o.push("<",c);for(var w=0;w<n;w++){var z=r.item(w);z.prefix=="xmlns"?i.push({prefix:z.localName,namespace:z.value}):z.nodeName=="xmlns"&&i.push({prefix:"",namespace:z.value})}for(var w=0;w<n;w++){var z=r.item(w);if(Em(z,e,i)){var k=z.prefix||"",p=z.namespaceURI;pn(o,k?"xmlns:"+k:"xmlns",p),i.push({prefix:k,namespace:p})}ce(z,o,e,s,i)}if(a===c&&Em(t,e,i)){var k=t.prefix||"",p=t.namespaceURI;pn(o,k?"xmlns:"+k:"xmlns",p),i.push({prefix:k,namespace:p})}if(W||e&&!/^(?:meta|link|img|br|hr|input)$/i.test(a)){if(o.push(">"),e&&/^script$/i.test(a))for(;W;)W.data?o.push(W.data):ce(W,o,e,s,i.slice()),W=W.nextSibling;else for(;W;)ce(W,o,e,s,i.slice()),W=W.nextSibling;o.push("</",c,">")}else o.push("/>");return;case Pm:case rt:for(var W=t.firstChild;W;)ce(W,o,e,s,i.slice()),W=W.nextSibling;return;case le:return pn(o,t.name,t.value);case Xi:return o.push(t.data.replace(/[<&>]/g,Qm));case Xm:return o.push("<![CDATA[",t.data,"]]>");case Zm:return o.push("<!--",t.data,"-->");case Lm:var q=t.publicId,O=t.systemId;if(o.push("<!DOCTYPE ",t.name),q)o.push(" PUBLIC ",q),O&&O!="."&&o.push(" ",O),o.push(">");else if(O&&O!=".")o.push(" SYSTEM ",O,">");else{var l=t.internalSubset;l&&o.push(" [",l,"]"),o.push(">")}return;case Im:return o.push("<?",t.target," ",t.data,"?>");case Ym:return o.push("&",t.nodeName,";");default:o.push("??",t.nodeName)}}function og(t,o,e){var s;switch(o.nodeType){case Io:s=o.cloneNode(!1),s.ownerDocument=t;case rt:break;case le:e=!0;break}if(s||(s=o.cloneNode(!1)),s.ownerDocument=t,s.parentNode=null,e)for(var i=o.firstChild;i;)s.appendChild(og(t,i,e)),i=i.nextSibling;return s}function Wn(t,o,e){var s=new o.constructor;for(var i in o)if(Object.prototype.hasOwnProperty.call(o,i)){var r=o[i];typeof r!="object"&&r!=s[i]&&(s[i]=r)}switch(o.childNodes&&(s.childNodes=new it),s.ownerDocument=t,s.nodeType){case Io:var n=o.attributes,a=s.attributes=new Yi,c=n.length;a._ownerElement=s;for(var u=0;u<c;u++)s.setAttributeNode(Wn(t,n.item(u),!0));break;case le:e=!0}if(e)for(var d=o.firstChild;d;)s.appendChild(Wn(t,d,e)),d=d.nextSibling;return s}function tg(t,o,e){t[o]=e}try{if(Object.defineProperty){let t=function(o){switch(o.nodeType){case Io:case rt:var e=[];for(o=o.firstChild;o;)o.nodeType!==7&&o.nodeType!==8&&e.push(t(o)),o=o.nextSibling;return e.join("");default:return o.nodeValue}};Sy=t,Object.defineProperty(ue.prototype,"length",{get:function(){return qn(this),this.$$length}}),Object.defineProperty(T.prototype,"textContent",{get:function(){return t(this)},set:function(o){switch(this.nodeType){case Io:case rt:for(;this.firstChild;)this.removeChild(this.firstChild);(o||String(o))&&this.appendChild(this.ownerDocument.createTextNode(o));break;default:this.data=o,this.value=o,this.nodeValue=o}}}),tg=function(o,e,s){o["$$"+e]=s}}}catch{}var Sy;yt.DocumentType=Pi;yt.DOMException=j;yt.DOMImplementation=Am;yt.Element=qt;yt.Node=T;yt.NodeList=it;yt.XMLSerializer=$m});var sg=S(os=>{"use strict";var eg=Re().freeze;os.XML_ENTITIES=eg({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});os.HTML_ENTITIES=eg({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
25
- `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});os.entityMap=os.HTML_ENTITIES});var _g=S(In=>{var is=Re().NAMESPACE,Yn=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ig=new RegExp("[\\-\\.0-9"+Yn.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),rg=new RegExp("^"+Yn.source+ig.source+"*(?::"+Yn.source+ig.source+"*)?$"),ts=0,ht=1,_e=2,es=3,xe=4,me=5,ss=6,Ti=7;function ge(t,o){this.message=t,this.locator=o,Error.captureStackTrace&&Error.captureStackTrace(this,ge)}ge.prototype=new Error;ge.prototype.name=ge.name;function cg(){}cg.prototype={parse:function(t,o,e){var s=this.domBuilder;s.startDocument(),lg(o,o={}),Fy(t,o,e,s,this.errorHandler),s.endDocument()}};function Fy(t,o,e,s,i){function r(E){if(E>65535){E-=65536;var X=55296+(E>>10),Z=56320+(E&1023);return String.fromCharCode(X,Z)}else return String.fromCharCode(E)}function n(E){var X=E.slice(1,-1);return Object.hasOwnProperty.call(e,X)?e[X]:X.charAt(0)==="#"?r(parseInt(X.substr(1).replace("x","0x"))):(i.error("entity not found:"+E),E)}function a(E){if(E>k){var X=t.substring(k,E).replace(/&#?\w+;/g,n);m&&c(k),s.characters(X,0,E-k),k=E}}function c(E,X){for(;E>=d&&(X=x.exec(t));)u=X.index,d=u+X[0].length,m.lineNumber++;m.columnNumber=E-u+1}for(var u=0,d=0,x=/.*(?:\r\n?|\n)|.*$/g,m=s.locator,w=[{currentNSMap:o}],z={},k=0;;){try{var p=t.indexOf("<",k);if(p<0){if(!t.substr(k).match(/^\s*$/)){var W=s.doc,q=W.createTextNode(t.substr(k));W.appendChild(q),s.currentElement=q}return}switch(p>k&&a(p),t.charAt(p+1)){case"/":var v=t.indexOf(">",p+3),O=t.substring(p+2,v).replace(/[ \t\n\r]+$/g,""),l=w.pop();v<0?(O=t.substring(p+2).replace(/[\s<].*/,""),i.error("end tag name: "+O+" is not complete:"+l.tagName),v=p+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),i.error("end tag name: "+O+" maybe not complete"),v=p+1+O.length);var g=l.localNSMap,_=l.tagName==O,G=_||l.tagName&&l.tagName.toLowerCase()==O.toLowerCase();if(G){if(s.endElement(l.uri,l.localName,O),g)for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&s.endPrefixMapping(y);_||i.fatalError("end tag name: "+O+" is not match the current start tagName:"+l.tagName)}else w.push(l);v++;break;case"?":m&&c(p),v=Yy(t,p,s);break;case"!":m&&c(p),v=Xy(t,p,s,i);break;default:m&&c(p);var h=new ug,f=w[w.length-1].currentNSMap,v=My(t,p,h,f,n,i),N=h.length;if(!h.closed&&Vy(t,v,h.tagName,z)&&(h.closed=!0,e.nbsp||i.warning("unclosed xml attribute")),m&&N){for(var F=ng(m,{}),V=0;V<N;V++){var I=h[V];c(I.offset),I.locator=ng(m,{})}s.locator=F,ag(h,s,f)&&w.push(h),s.locator=m}else ag(h,s,f)&&w.push(h);is.isHTML(h.uri)&&!h.closed?v=Ey(t,v,h.tagName,n,s):v++}}catch(E){if(E instanceof ge)throw E;i.error("element parse error: "+E),v=-1}v>k?k=v:a(Math.max(p,k)+1)}}function ng(t,o){return o.lineNumber=t.lineNumber,o.columnNumber=t.columnNumber,o}function My(t,o,e,s,i,r){function n(w,z,k){e.attributeNames.hasOwnProperty(w)&&r.fatalError("Attribute "+w+" redefined"),e.addValue(w,z.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),k)}for(var a,c,u=++o,d=ts;;){var x=t.charAt(u);switch(x){case"=":if(d===ht)a=t.slice(o,u),d=es;else if(d===_e)d=es;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(d===es||d===ht)if(d===ht&&(r.warning('attribute value must after "="'),a=t.slice(o,u)),o=u+1,u=t.indexOf(x,o),u>0)c=t.slice(o,u),n(a,c,o-1),d=me;else throw new Error("attribute value no end '"+x+"' match");else if(d==xe)c=t.slice(o,u),n(a,c,o),r.warning('attribute "'+a+'" missed start quot('+x+")!!"),o=u+1,d=me;else throw new Error('attribute value must after "="');break;case"/":switch(d){case ts:e.setTagName(t.slice(o,u));case me:case ss:case Ti:d=Ti,e.closed=!0;case xe:case ht:break;case _e:e.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return r.error("unexpected end of input"),d==ts&&e.setTagName(t.slice(o,u)),u;case">":switch(d){case ts:e.setTagName(t.slice(o,u));case me:case ss:case Ti:break;case xe:case ht:c=t.slice(o,u),c.slice(-1)==="/"&&(e.closed=!0,c=c.slice(0,-1));case _e:d===_e&&(c=a),d==xe?(r.warning('attribute "'+c+'" missed quot(")!'),n(a,c,o)):((!is.isHTML(s[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&r.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),n(c,c,o));break;case es:throw new Error("attribute value missed!!")}return u;case"\x80":x=" ";default:if(x<=" ")switch(d){case ts:e.setTagName(t.slice(o,u)),d=ss;break;case ht:a=t.slice(o,u),d=_e;break;case xe:var c=t.slice(o,u);r.warning('attribute "'+c+'" missed quot(")!!'),n(a,c,o);case me:d=ss;break}else switch(d){case _e:var m=e.tagName;(!is.isHTML(s[""])||!a.match(/^(?:disabled|checked|selected)$/i))&&r.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n(a,a,o),o=u,d=ht;break;case me:r.warning('attribute space is required"'+a+'"!!');case ss:d=ht,o=u;break;case es:d=xe,o=u;break;case Ti:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function ag(t,o,e){for(var s=t.tagName,i=null,x=t.length;x--;){var r=t[x],n=r.qName,a=r.value,m=n.indexOf(":");if(m>0)var c=r.prefix=n.slice(0,m),u=n.slice(m+1),d=c==="xmlns"&&u;else u=n,c=null,d=n==="xmlns"&&"";r.localName=u,d!==!1&&(i==null&&(i={},lg(e,e={})),e[d]=i[d]=a,r.uri=is.XMLNS,o.startPrefixMapping(d,a))}for(var x=t.length;x--;){r=t[x];var c=r.prefix;c&&(c==="xml"&&(r.uri=is.XML),c!=="xmlns"&&(r.uri=e[c||""]))}var m=s.indexOf(":");m>0?(c=t.prefix=s.slice(0,m),u=t.localName=s.slice(m+1)):(c=null,u=t.localName=s);var w=t.uri=e[c||""];if(o.startElement(w,u,s,t),t.closed){if(o.endElement(w,u,s),i)for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&o.endPrefixMapping(c)}else return t.currentNSMap=e,t.localNSMap=i,!0}function Ey(t,o,e,s,i){if(/^(?:script|textarea)$/i.test(e)){var r=t.indexOf("</"+e+">",o),n=t.substring(o+1,r);if(/[&<]/.test(n))return/^script$/i.test(e)?(i.characters(n,0,n.length),r):(n=n.replace(/&#?\w+;/g,s),i.characters(n,0,n.length),r)}return o+1}function Vy(t,o,e,s){var i=s[e];return i==null&&(i=t.lastIndexOf("</"+e+">"),i<o&&(i=t.lastIndexOf("</"+e)),s[e]=i),i<o}function lg(t,o){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}function Xy(t,o,e,s){var i=t.charAt(o+2);switch(i){case"-":if(t.charAt(o+3)==="-"){var r=t.indexOf("-->",o+4);return r>o?(e.comment(t,o+4,r-o-4),r+3):(s.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(o+3,6)=="CDATA["){var r=t.indexOf("]]>",o+9);return e.startCDATA(),e.characters(t,o+9,r-o-9),e.endCDATA(),r+3}var n=Iy(t,o),a=n.length;if(a>1&&/!doctype/i.test(n[0][0])){var c=n[1][0],u=!1,d=!1;a>3&&(/^public$/i.test(n[2][0])?(u=n[3][0],d=a>4&&n[4][0]):/^system$/i.test(n[2][0])&&(d=n[3][0]));var x=n[a-1];return e.startDTD(c,u,d),e.endDTD(),x.index+x[0].length}}return-1}function Yy(t,o,e){var s=t.indexOf("?>",o);if(s){var i=t.substring(o,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){var r=i[0].length;return e.processingInstruction(i[1],i[2]),s+2}else return-1}return-1}function ug(){this.attributeNames={}}ug.prototype={setTagName:function(t){if(!rg.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,o,e){if(!rg.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:o,offset:e}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function Iy(t,o){var e,s=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=o,i.exec(t);e=i.exec(t);)if(s.push(e),e[1])return s}In.XMLReader=cg;In.ParseError=ge});var yg=S(Ai=>{var Zy=Re(),Py=Xn(),xg=sg(),Og=_g(),Ly=Py.DOMImplementation,mg=Zy.NAMESPACE,Ty=Og.ParseError,Uy=Og.XMLReader;function dg(t){return t.replace(/\r[\n\u0085]/g,`
21
+ `+r),t.push(i+"m+"+ai.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Qw()+o+" "+t[0]}function Qw(){return to.inspectOpts.hideDate?"":new Date().toISOString()+" "}function jw(...t){return process.stderr.write(ni.formatWithOptions(to.inspectOpts,...t)+`
22
+ `)}function Rw(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Jw(){return process.env.DEBUG}function Bw(t){t.inspectOpts={};let o=Object.keys(to.inspectOpts);for(let e=0;e<o.length;e++)t.inspectOpts[o[e]]=to.inspectOpts[o[e]]}ai.exports=ln()(to);var{formatters:v_}=ai.exports;v_.o=function(t){return this.inspectOpts.colors=this.useColors,ni.inspect(t,this.inspectOpts).split(`
23
+ `).map(o=>o.trim()).join(" ")};v_.O=function(t){return this.inspectOpts.colors=this.useColors,ni.inspect(t,this.inspectOpts)}});var p_=S((Bf,un)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?un.exports=b_():un.exports=W_()});var Y_=S(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.LOADED_ENV_NAME=co.KNOWN_MODES=void 0;co.get=X_;co.getEnvFiles=ui;co.getFiles=ey;co.isEnabled=ie;co.load=ty;co.loadEnvFiles=M_;co.loadProjectEnv=oy;co.logLoadedEnv=V_;co.parseEnvFiles=gn;co.parseProjectEnv=E_;function mn(){let t=li(u_());return mn=function(){return t},t}function q_(){let t=Dw(O_());return q_=function(){return t},t}function C_(){let t=w_();return C_=function(){return t},t}function N_(){let t=z_();return N_=function(){return t},t}function se(){let t=li(require("node:console"));return se=function(){return t},t}function S_(){let t=li(require("node:fs"));return S_=function(){return t},t}function ci(){let t=li(require("node:path"));return ci=function(){return t},t}function F_(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,e=new WeakMap;return(F_=function(s){return s?e:o})(t)}function Dw(t,o){if(!o&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var e=F_(o);if(e&&e.has(t))return e.get(t);var s={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(r!=="default"&&{}.hasOwnProperty.call(t,r)){var n=i?Object.getOwnPropertyDescriptor(t,r):null;n&&(n.get||n.set)?Object.defineProperty(s,r,n):s[r]=t[r]}return s.default=t,e&&e.set(t,s),s}function li(t){return t&&t.__esModule?t:{default:t}}var xo=p_()("expo:env");function ie(){return!(0,N_().boolish)("EXPO_NO_DOTENV",!1)}var $w=co.KNOWN_MODES=["development","test","production"],_n=co.LOADED_ENV_NAME="__EXPO_ENV_LOADED";function ui({mode:t=process.env.NODE_ENV,silent:o}={}){if(!ie())return xo("Skipping .env files because EXPO_NO_DOTENV is defined"),[];let e=o?xo:se().default.error,s=o?xo:se().default.warn;return t?($w.includes(t)||s(`NODE_ENV="${t}" is non-conventional and might cause development code to run in production. Use "development", "test", or "production" instead. Continuing with non-conventional mode`),[`.env.${t}.local`,t!=="test"&&".env.local",`.env.${t}`,".env"].filter(Boolean)):(e("The NODE_ENV environment variable is required but was not specified. Ensure the project is bundled with Expo CLI or NODE_ENV is set. Using only .env.local and .env"),[".env.local",".env"])}function gn(t,{systemEnv:o=process.env}={}){if(!ie())return xo("Skipping .env files because EXPO_NO_DOTENV is defined"),{env:{},files:[]};let e={},s=[];return[...t].reverse().forEach(i=>{try{let r=S_().default.readFileSync(i,"utf8"),n=q_().parse(r);if(!n)return xo(`Failed to load environment variables from: ${i}%s`);s.push(i),xo(`Loaded environment variables from: ${i}`);for(let a of Object.keys(n))typeof e[a]<"u"&&xo(`"${a}" is already defined and overwritten by: ${i}`),e[a]=n[a]}catch(r){if("code"in r&&r.code==="ENOENT")return xo(`${i} does not exist, skipping this env file`);if("code"in r&&r.code==="EISDIR")return xo(`${i} is a directory, skipping this env file`);if("code"in r&&r.code==="EACCES")return xo(`No permission to read ${i}, skipping this env file`);throw r}}),{env:Hw(e,o),files:s.reverse()}}function M_(t,{force:o,silent:e=!1,systemEnv:s=process.env}={}){if(!o&&s[_n])return{result:"skipped",loaded:JSON.parse(s[_n])};let i=gn(t,{systemEnv:s}),r=[];for(let n in i.env)typeof s[n]<"u"?xo(`"${n}" is already defined and IS NOT overwritten`):(s[n]=i.env[n],r.push(n));return s[_n]=JSON.stringify(r),{result:"loaded",...i,loaded:r}}function Hw(t,o=process.env){let e={},s=(0,C_().expand)({parsed:t,processEnv:{...o}});if(s.error)return se().default.error(`Failed to expand environment variables, using non-expanded environment variables: ${s.error}`),t;for(let i of Object.keys(t))s.parsed?.[i]&&(e[i]=s.parsed[i]);return e}function E_(t,o){return gn(ui(o).map(e=>ci().default.join(t,e)),o)}function oy(t,o){return M_(ui(o).map(e=>ci().default.join(t,e)),o)}function V_(t,o={}){return o.force||o.silent||!t.loaded.length||(t.result==="loaded"&&se().default.log(mn().default.gray("env: load",t.files.map(e=>ci().default.basename(e)).join(" "))),se().default.log(mn().default.gray("env: export",t.loaded.join(" ")))),t}var xn=null;function X_(t,{force:o,silent:e}={}){return ie()?((o||!xn)&&(xn=E_(t,{silent:e})),xn):(xo("Skipping .env files because EXPO_NO_DOTENV is defined"),{env:{},files:[]})}function ty(t,o={}){if(!ie())return xo("Skipping .env files because EXPO_NO_DOTENV is defined"),process.env;let e=X_(t,o),s=[];for(let i in e.env)typeof process.env[i]<"u"?xo(`"${i}" is already defined and IS NOT overwritten`):(process.env[i]=e.env[i],s.push(i));return V_({...e,result:"loaded",loaded:s},o),process.env}function ey(t,{silent:o=!1}={}){return ie()?ui({mode:t,silent:o}):(xo("Skipping .env files because EXPO_NO_DOTENV is defined"),[])}});var T_=S((Hf,On)=>{"use strict";var Z_=require("path"),P_=require("module"),iy=require("fs"),L_=(t,o,e)=>{if(typeof t!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof t}\``);if(typeof o!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof o}\``);try{t=iy.realpathSync(t)}catch(r){if(r.code==="ENOENT")t=Z_.resolve(t);else{if(e)return;throw r}}let s=Z_.join(t,"noop.js"),i=()=>P_._resolveFilename(o,{id:s,filename:s,paths:P_._nodeModulePaths(t)});if(e)try{return i()}catch{return}return i()};On.exports=(t,o)=>L_(t,o);On.exports.silent=(t,o)=>L_(t,o,!0)});var j_=S((wn,yn)=>{(function(t,o,e){typeof wn=="object"?(yn.exports=e(),yn.exports.default=e()):typeof define=="function"&&define.amd?define(e):o[t]=e()})("slugify",wn,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),o=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function e(s,i){if(typeof s!="string")throw new Error("slugify: string argument expected");i=typeof i=="string"?{replacement:i}:i||{};var r=o[i.locale]||{},n=i.replacement===void 0?"-":i.replacement,a=i.trim===void 0?!0:i.trim,c=s.normalize().split("").reduce(function(u,d){var x=r[d];return x===void 0&&(x=t[d]),x===void 0&&(x=d),x===n&&(x=" "),u+x.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),a&&(c=c.trim()),c=c.replace(/\s+/g,n),i.lower&&(c=c.toLowerCase()),c}return e.extend=function(s){Object.assign(t,s)},e})});var ix=S(ki=>{"use strict";ki.byteLength=cy;ki.toByteArray=uy;ki.fromByteArray=my;var Uo=[],So=[],ay=typeof Uint8Array<"u"?Uint8Array:Array,hn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Wt=0,ex=hn.length;Wt<ex;++Wt)Uo[Wt]=hn[Wt],So[hn.charCodeAt(Wt)]=Wt;var Wt,ex;So[45]=62;So[95]=63;function sx(t){var o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=o);var s=e===o?0:4-e%4;return[e,s]}function cy(t){var o=sx(t),e=o[0],s=o[1];return(e+s)*3/4-s}function ly(t,o,e){return(o+e)*3/4-e}function uy(t){var o,e=sx(t),s=e[0],i=e[1],r=new ay(ly(t,s,i)),n=0,a=i>0?s-4:s,c;for(c=0;c<a;c+=4)o=So[t.charCodeAt(c)]<<18|So[t.charCodeAt(c+1)]<<12|So[t.charCodeAt(c+2)]<<6|So[t.charCodeAt(c+3)],r[n++]=o>>16&255,r[n++]=o>>8&255,r[n++]=o&255;return i===2&&(o=So[t.charCodeAt(c)]<<2|So[t.charCodeAt(c+1)]>>4,r[n++]=o&255),i===1&&(o=So[t.charCodeAt(c)]<<10|So[t.charCodeAt(c+1)]<<4|So[t.charCodeAt(c+2)]>>2,r[n++]=o>>8&255,r[n++]=o&255),r}function _y(t){return Uo[t>>18&63]+Uo[t>>12&63]+Uo[t>>6&63]+Uo[t&63]}function xy(t,o,e){for(var s,i=[],r=o;r<e;r+=3)s=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(t[r+2]&255),i.push(_y(s));return i.join("")}function my(t){for(var o,e=t.length,s=e%3,i=[],r=16383,n=0,a=e-s;n<a;n+=r)i.push(xy(t,n,n+r>a?a:n+r));return s===1?(o=t[e-1],i.push(Uo[o>>2]+Uo[o<<4&63]+"==")):s===2&&(o=(t[e-2]<<8)+t[e-1],i.push(Uo[o>>10]+Uo[o>>4&63]+Uo[o<<2&63]+"=")),i.join("")}});var Ao=S((rx,Ot)=>{(function(){var t,o,e,s,i,r,n,a={}.hasOwnProperty;t=function(c,...u){var d,x,m,w;if(i(Object.assign))Object.assign.apply(null,arguments);else for(d=0,m=u.length;d<m;d++)if(w=u[d],w!=null)for(x in w)a.call(w,x)&&(c[x]=w[x]);return c},i=function(c){return!!c&&Object.prototype.toString.call(c)==="[object Function]"},r=function(c){var u;return!!c&&((u=typeof c)=="function"||u==="object")},e=function(c){return i(Array.isArray)?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"},s=function(c){var u;if(e(c))return!c.length;for(u in c)if(a.call(c,u))return!1;return!0},n=function(c){var u,d;return r(c)&&(d=Object.getPrototypeOf(c))&&(u=d.constructor)&&typeof u=="function"&&u instanceof u&&Function.prototype.toString.call(u)===Function.prototype.toString.call(Object)},o=function(c){return i(c.valueOf)?c.valueOf():c},Ot.exports.assign=t,Ot.exports.isFunction=i,Ot.exports.isObject=r,Ot.exports.isArray=e,Ot.exports.isEmpty=s,Ot.exports.isPlainObject=n,Ot.exports.getValue=o}).call(rx)});var fn=S((nx,ax)=>{(function(){var t;ax.exports=t=class{hasFeature(e,s){return!0}createDocumentType(e,s,i){throw new Error("This DOM method is not implemented.")}createDocument(e,s,i){throw new Error("This DOM method is not implemented.")}createHTMLDocument(e){throw new Error("This DOM method is not implemented.")}getFeature(e,s){throw new Error("This DOM method is not implemented.")}}}).call(nx)});var ux=S((cx,lx)=>{(function(){var t;lx.exports=t=class{constructor(){}handleError(e){throw new Error(e)}}}).call(cx)});var mx=S((_x,xx)=>{(function(){var t;xx.exports=t=function(){class o{constructor(s){this.arr=s||[]}item(s){return this.arr[s]||null}contains(s){return this.arr.indexOf(s)!==-1}}return Object.defineProperty(o.prototype,"length",{get:function(){return this.arr.length}}),o}.call(this)}).call(_x)});var dx=S((gx,Ox)=>{(function(){var t,o,e;o=ux(),e=mx(),Ox.exports=t=function(){class s{constructor(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new o,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=r=Object.create(this.defaultParams)}getParameter(r){return this.params.hasOwnProperty(r)?this.params[r]:null}canSetParameter(r,n){return!0}setParameter(r,n){return n!=null?this.params[r]=n:delete this.params[r]}}return Object.defineProperty(s.prototype,"parameterNames",{get:function(){return new e(Object.keys(this.defaultParams))}}),s}.call(this)}).call(gx)});var Q=S((wx,yx)=>{(function(){yx.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(wx)});var zn=S((hx,fx)=>{(function(){var t,o,e;t=Q(),e=Ko(),fx.exports=o=function(){class s{constructor(r,n,a){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(a),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))}debugInfo(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"}isEqualNode(r){return!(r.namespaceURI!==this.namespaceURI||r.prefix!==this.prefix||r.localName!==this.localName||r.value!==this.value)}}return Object.defineProperty(s.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(s.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"specified",{get:function(){return!0}}),s}.call(this)}).call(hx)});var Ki=S((zx,kx)=>{(function(){var t;kx.exports=t=function(){class o{constructor(s){this.nodes=s}clone(){return this.nodes=null}getNamedItem(s){return this.nodes[s]}setNamedItem(s){var i;return i=this.nodes[s.nodeName],this.nodes[s.nodeName]=s,i||null}removeNamedItem(s){var i;return i=this.nodes[s],delete this.nodes[s],i||null}item(s){return this.nodes[Object.keys(this.nodes)[s]]||null}getNamedItemNS(s,i){throw new Error("This DOM method is not implemented.")}setNamedItemNS(s){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(s,i){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(o.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),o}.call(this)}).call(zx)});var Gi=S((Kx,Gx)=>{(function(){var t,o,e,s,i,r,n,a,c={}.hasOwnProperty;({isObject:a,isFunction:n,getValue:r}=Ao()),i=Ko(),t=Q(),o=zn(),s=Ki(),Gx.exports=e=function(){class u extends i{constructor(x,m,w){var f,k,W,p;if(super(x),m==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(m),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,w!=null&&this.attribute(w),x.type===t.Document&&(this.isRoot=!0,this.documentObject=x,x.rootObject=this,x.children)){for(p=x.children,k=0,W=p.length;k<W;k++)if(f=p[k],f.type===t.DocType){f.name=this.name;break}}}clone(){var x,m,w,f;w=Object.create(this),w.isRoot&&(w.documentObject=null),w.attribs={},f=this.attribs;for(m in f)c.call(f,m)&&(x=f[m],w.attribs[m]=x.clone());return w.children=[],this.children.forEach(function(k){var W;return W=k.clone(),W.parent=w,w.children.push(W)}),w}attribute(x,m){var w,f;if(x!=null&&(x=r(x)),a(x))for(w in x)c.call(x,w)&&(f=x[w],this.attribute(w,f));else n(m)&&(m=m.apply()),this.options.keepNullAttributes&&m==null?this.attribs[x]=new o(this,x,""):m!=null&&(this.attribs[x]=new o(this,x,m));return this}removeAttribute(x){var m,w,f;if(x==null)throw new Error("Missing attribute name. "+this.debugInfo());if(x=r(x),Array.isArray(x))for(w=0,f=x.length;w<f;w++)m=x[w],delete this.attribs[m];else delete this.attribs[x];return this}toString(x){return this.options.writer.element(this,this.options.writer.filterOptions(x))}att(x,m){return this.attribute(x,m)}a(x,m){return this.attribute(x,m)}getAttribute(x){return this.attribs.hasOwnProperty(x)?this.attribs[x].value:null}setAttribute(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(x){return this.attribs.hasOwnProperty(x)?this.attribs[x]:null}setAttributeNode(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(x,m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(x){return this.attribs.hasOwnProperty(x)}hasAttributeNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(x,m){return this.attribs.hasOwnProperty(x)?this.attribs[x].isId:m}setIdAttributeNS(x,m,w){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(x){var m,w,f;if(!super.isEqualNode(x)||x.namespaceURI!==this.namespaceURI||x.prefix!==this.prefix||x.localName!==this.localName||x.attribs.length!==this.attribs.length)return!1;for(m=w=0,f=this.attribs.length-1;0<=f?w<=f:w>=f;m=0<=f?++w:--w)if(!this.attribs[m].isEqualNode(x.attribs[m]))return!1;return!0}}return Object.defineProperty(u.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(u.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(u.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(u.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(u.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(u.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(u.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(u.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new s(this.attribs)),this.attributeMap}}),u}.call(this)}).call(Kx)});var Qe=S((bx,vx)=>{(function(){var t,o;o=Ko(),vx.exports=t=function(){class e extends o{constructor(i){super(i),this.value=""}clone(){return Object.create(this)}substringData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(i){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(i,r,n){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(i){return!(!super.isEqualNode(i)||i.data!==this.data)}}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),e}.call(this)}).call(bx)});var bi=S((Wx,px)=>{(function(){var t,o,e;t=Q(),e=Qe(),px.exports=o=class extends e{constructor(i,r){if(super(i),r==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.cdata(this,this.options.writer.filterOptions(i))}}}).call(Wx)});var vi=S((qx,Cx)=>{(function(){var t,o,e;t=Q(),o=Qe(),Cx.exports=e=class extends o{constructor(i,r){if(super(i),r==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.comment(this,this.options.writer.filterOptions(i))}}}).call(qx)});var Wi=S((Nx,Sx)=>{(function(){var t,o,e,s;({isObject:s}=Ao()),e=Ko(),t=Q(),Sx.exports=o=class extends e{constructor(r,n,a,c){super(r),s(n)&&({version:n,encoding:a,standalone:c}=n),n||(n="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(n),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}toString(r){return this.options.writer.declaration(this,this.options.writer.filterOptions(r))}}}).call(Nx)});var pi=S((Fx,Mx)=>{(function(){var t,o,e;e=Ko(),t=Q(),Mx.exports=o=class extends e{constructor(i,r,n,a,c,u){if(super(i),r==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(n==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(r));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(r));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(r));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(r));if(u&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(r));this.elementName=this.stringify.name(r),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(n),this.attributeType=this.stringify.dtdAttType(a),u&&(this.defaultValue=this.stringify.dtdAttDefault(u)),this.defaultValueType=c}toString(i){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(i))}}}).call(Fx)});var qi=S((Ex,Vx)=>{(function(){var t,o,e,s;({isObject:s}=Ao()),e=Ko(),t=Q(),Vx.exports=o=function(){class i extends e{constructor(n,a,c,u){if(super(n),c==null)throw new Error("Missing DTD entity name. "+this.debugInfo(c));if(u==null)throw new Error("Missing DTD entity value. "+this.debugInfo(c));if(this.pe=!!a,this.name=this.stringify.name(c),this.type=t.EntityDeclaration,!s(u))this.value=this.stringify.dtdEntityValue(u),this.internal=!0;else{if(!u.pubID&&!u.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(c));if(u.pubID&&!u.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(c));if(this.internal=!1,u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID)),u.nData!=null&&(this.nData=this.stringify.dtdNData(u.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(c))}}toString(n){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(n))}}return Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(i.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(i.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlVersion",{get:function(){return null}}),i}.call(this)}).call(Ex)});var Ci=S((Xx,Yx)=>{(function(){var t,o,e;e=Ko(),t=Q(),Yx.exports=o=class extends e{constructor(i,r,n){if(super(i),r==null)throw new Error("Missing DTD element name. "+this.debugInfo());n||(n="(#PCDATA)"),Array.isArray(n)&&(n="("+n.join(",")+")"),this.name=this.stringify.name(r),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(n)}toString(i){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(i))}}}).call(Xx)});var Ni=S((Ix,Zx)=>{(function(){var t,o,e;e=Ko(),t=Q(),Zx.exports=o=function(){class s extends e{constructor(r,n,a){if(super(r),n==null)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.name(n),this.type=t.NotationDeclaration,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}toString(r){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(r))}}return Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),s}.call(this)}).call(Ix)});var Si=S((Px,Lx)=>{(function(){var t,o,e,s,i,r,n,a,c;({isObject:c}=Ao()),a=Ko(),t=Q(),o=pi(),s=qi(),e=Ci(),i=Ni(),n=Ki(),Lx.exports=r=function(){class u extends a{constructor(x,m,w){var f,k,W,p;if(super(x),this.type=t.DocType,x.children){for(p=x.children,k=0,W=p.length;k<W;k++)if(f=p[k],f.type===t.Element){this.name=f.name;break}}this.documentObject=x,c(m)&&({pubID:m,sysID:w}=m),w==null&&([w,m]=[m,w]),m!=null&&(this.pubID=this.stringify.dtdPubID(m)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}element(x,m){var w;return w=new e(this,x,m),this.children.push(w),this}attList(x,m,w,f,k){var W;return W=new o(this,x,m,w,f,k),this.children.push(W),this}entity(x,m){var w;return w=new s(this,!1,x,m),this.children.push(w),this}pEntity(x,m){var w;return w=new s(this,!0,x,m),this.children.push(w),this}notation(x,m){var w;return w=new i(this,x,m),this.children.push(w),this}toString(x){return this.options.writer.docType(this,this.options.writer.filterOptions(x))}ele(x,m){return this.element(x,m)}att(x,m,w,f,k){return this.attList(x,m,w,f,k)}ent(x,m){return this.entity(x,m)}pent(x,m){return this.pEntity(x,m)}not(x,m){return this.notation(x,m)}up(){return this.root()||this.documentObject}isEqualNode(x){return!(!super.isEqualNode(x)||x.name!==this.name||x.publicId!==this.publicId||x.systemId!==this.systemId)}}return Object.defineProperty(u.prototype,"entities",{get:function(){var d,x,m,w,f;for(w={},f=this.children,x=0,m=f.length;x<m;x++)d=f[x],d.type===t.EntityDeclaration&&!d.pe&&(w[d.name]=d);return new n(w)}}),Object.defineProperty(u.prototype,"notations",{get:function(){var d,x,m,w,f;for(w={},f=this.children,x=0,m=f.length;x<m;x++)d=f[x],d.type===t.NotationDeclaration&&(w[d.name]=d);return new n(w)}}),Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(u.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),u}.call(this)}).call(Px)});var Fi=S((Tx,Ux)=>{(function(){var t,o,e;t=Q(),o=Ko(),Ux.exports=e=class extends o{constructor(i,r){if(super(i),r==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.raw(this,this.options.writer.filterOptions(i))}}}).call(Tx)});var Mi=S((Ax,Qx)=>{(function(){var t,o,e;t=Q(),o=Qe(),Qx.exports=e=function(){class s extends o{constructor(r,n){if(super(r),n==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(n)}clone(){return Object.create(this)}toString(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))}splitText(r){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(r){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(s.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"wholeText",{get:function(){var i,r,n;for(n="",r=this.previousSibling;r;)n=r.data+n,r=r.previousSibling;for(n+=this.data,i=this.nextSibling;i;)n=n+i.data,i=i.nextSibling;return n}}),s}.call(this)}).call(Ax)});var Ei=S((jx,Rx)=>{(function(){var t,o,e;t=Q(),o=Qe(),Rx.exports=e=class extends o{constructor(i,r,n){if(super(i),r==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(r),this.name=this.target,n&&(this.value=this.stringify.insValue(n))}clone(){return Object.create(this)}toString(i){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(i))}isEqualNode(i){return!(!super.isEqualNode(i)||i.target!==this.target)}}}).call(jx)});var kn=S((Jx,Bx)=>{(function(){var t,o,e;e=Ko(),t=Q(),Bx.exports=o=class extends e{constructor(i){super(i),this.type=t.Dummy}clone(){return Object.create(this)}toString(i){return""}}}).call(Jx)});var Hx=S((Dx,$x)=>{(function(){var t;$x.exports=t=function(){class o{constructor(s){this.nodes=s}clone(){return this.nodes=null}item(s){return this.nodes[s]||null}}return Object.defineProperty(o.prototype,"length",{get:function(){return this.nodes.length||0}}),o}.call(this)}).call(Dx)});var em=S((om,tm)=>{(function(){tm.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(om)});var Ko=S((sm,im)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,f,k,W,p,q={}.hasOwnProperty,O=[].splice;({isObject:p,isFunction:W,isEmpty:k,getValue:f}=Ao()),a=null,e=null,s=null,i=null,r=null,m=null,w=null,x=null,n=null,o=null,d=null,c=null,t=null,im.exports=u=function(){class l{constructor(_){this.parent=_,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,a||(a=Gi(),e=bi(),s=vi(),i=Wi(),r=Si(),m=Fi(),w=Mi(),x=Ei(),n=kn(),o=Q(),d=Hx(),c=Ki(),t=em())}setParent(_){var G,y,h,z,v;for(this.parent=_,_&&(this.options=_.options,this.stringify=_.stringify),z=this.children,v=[],y=0,h=z.length;y<h;y++)G=z[y],v.push(G.setParent(this));return v}element(_,G,y){var h,z,v,N,F,V,I,E,X;if(V=null,G===null&&y==null&&([G,y]=[{},null]),G==null&&(G={}),G=f(G),p(G)||([y,G]=[G,y]),_!=null&&(_=f(_)),Array.isArray(_))for(v=0,I=_.length;v<I;v++)z=_[v],V=this.element(z);else if(W(_))V=this.element(_.apply());else if(p(_)){for(F in _)if(q.call(_,F))if(X=_[F],W(X)&&(X=X.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&F.indexOf(this.stringify.convertAttKey)===0)V=this.attribute(F.substr(this.stringify.convertAttKey.length),X);else if(!this.options.separateArrayItems&&Array.isArray(X)&&k(X))V=this.dummy();else if(p(X)&&k(X))V=this.element(F);else if(!this.options.keepNullNodes&&X==null)V=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(X))for(N=0,E=X.length;N<E;N++)z=X[N],h={},h[F]=z,V=this.element(h);else p(X)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&F.indexOf(this.stringify.convertTextKey)===0?V=this.element(X):(V=this.element(F),V.element(X)):V=this.element(F,X)}else!this.options.keepNullNodes&&y===null?V=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&_.indexOf(this.stringify.convertTextKey)===0?V=this.text(y):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&_.indexOf(this.stringify.convertCDataKey)===0?V=this.cdata(y):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&_.indexOf(this.stringify.convertCommentKey)===0?V=this.comment(y):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&_.indexOf(this.stringify.convertRawKey)===0?V=this.raw(y):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&_.indexOf(this.stringify.convertPIKey)===0?V=this.instruction(_.substr(this.stringify.convertPIKey.length),y):V=this.node(_,G,y);if(V==null)throw new Error("Could not create any elements with: "+_+". "+this.debugInfo());return V}insertBefore(_,G,y){var h,z,v,N,F;if(_?.type)return v=_,N=G,v.setParent(this),N?(z=children.indexOf(N),F=children.splice(z),children.push(v),Array.prototype.push.apply(children,F)):children.push(v),v;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(_));return z=this.parent.children.indexOf(this),F=this.parent.children.splice(z),h=this.parent.element(_,G,y),Array.prototype.push.apply(this.parent.children,F),h}insertAfter(_,G,y){var h,z,v;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(_));return z=this.parent.children.indexOf(this),v=this.parent.children.splice(z+1),h=this.parent.element(_,G,y),Array.prototype.push.apply(this.parent.children,v),h}remove(){var _,G;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return _=this.parent.children.indexOf(this),O.apply(this.parent.children,[_,_-_+1].concat(G=[])),this.parent}node(_,G,y){var h;return _!=null&&(_=f(_)),G||(G={}),G=f(G),p(G)||([y,G]=[G,y]),h=new a(this,_,G),y!=null&&h.text(y),this.children.push(h),h}text(_){var G;return p(_)&&this.element(_),G=new w(this,_),this.children.push(G),this}cdata(_){var G;return G=new e(this,_),this.children.push(G),this}comment(_){var G;return G=new s(this,_),this.children.push(G),this}commentBefore(_){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y),G=this.parent.comment(_),Array.prototype.push.apply(this.parent.children,h),this}commentAfter(_){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y+1),G=this.parent.comment(_),Array.prototype.push.apply(this.parent.children,h),this}raw(_){var G;return G=new m(this,_),this.children.push(G),this}dummy(){var _;return _=new n(this),_}instruction(_,G){var y,h,z,v,N;if(_!=null&&(_=f(_)),G!=null&&(G=f(G)),Array.isArray(_))for(v=0,N=_.length;v<N;v++)y=_[v],this.instruction(y);else if(p(_))for(y in _)q.call(_,y)&&(h=_[y],this.instruction(y,h));else W(G)&&(G=G.apply()),z=new x(this,_,G),this.children.push(z);return this}instructionBefore(_,G){var y,h,z;return h=this.parent.children.indexOf(this),z=this.parent.children.splice(h),y=this.parent.instruction(_,G),Array.prototype.push.apply(this.parent.children,z),this}instructionAfter(_,G){var y,h,z;return h=this.parent.children.indexOf(this),z=this.parent.children.splice(h+1),y=this.parent.instruction(_,G),Array.prototype.push.apply(this.parent.children,z),this}declaration(_,G,y){var h,z;return h=this.document(),z=new i(h,_,G,y),h.children.length===0?h.children.unshift(z):h.children[0].type===o.Declaration?h.children[0]=z:h.children.unshift(z),h.root()||h}dtd(_,G){var y,h,z,v,N,F,V,I,E,X;for(h=this.document(),z=new r(h,_,G),E=h.children,v=N=0,V=E.length;N<V;v=++N)if(y=E[v],y.type===o.DocType)return h.children[v]=z,z;for(X=h.children,v=F=0,I=X.length;F<I;v=++F)if(y=X[v],y.isRoot)return h.children.splice(v,0,z),z;return h.children.push(z),z}up(){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}root(){var _;for(_=this;_;){if(_.type===o.Document)return _.rootObject;if(_.isRoot)return _;_=_.parent}}document(){var _;for(_=this;_;){if(_.type===o.Document)return _;_=_.parent}}end(_){return this.document().end(_)}prev(){var _;if(_=this.parent.children.indexOf(this),_<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[_-1]}next(){var _;if(_=this.parent.children.indexOf(this),_===-1||_===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[_+1]}importDocument(_){var G,y,h,z,v;if(y=_.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this.type===o.Document&&(y.isRoot=!0,y.documentObject=this,this.rootObject=y,this.children)){for(v=this.children,h=0,z=v.length;h<z;h++)if(G=v[h],G.type===o.DocType){G.name=y.name;break}}return this}debugInfo(_){var G,y;return _=_||this.name,_==null&&!((G=this.parent)!=null&&G.name)?"":_==null?"parent: <"+this.parent.name+">":(y=this.parent)!=null&&y.name?"node: <"+_+">, parent: <"+this.parent.name+">":"node: <"+_+">"}ele(_,G,y){return this.element(_,G,y)}nod(_,G,y){return this.node(_,G,y)}txt(_){return this.text(_)}dat(_){return this.cdata(_)}com(_){return this.comment(_)}ins(_,G){return this.instruction(_,G)}doc(){return this.document()}dec(_,G,y){return this.declaration(_,G,y)}e(_,G,y){return this.element(_,G,y)}n(_,G,y){return this.node(_,G,y)}t(_){return this.text(_)}d(_){return this.cdata(_)}c(_){return this.comment(_)}r(_){return this.raw(_)}i(_,G){return this.instruction(_,G)}u(){return this.up()}importXMLBuilder(_){return this.importDocument(_)}attribute(_,G){throw new Error("attribute() applies to element nodes only.")}att(_,G){return this.attribute(_,G)}a(_,G){return this.attribute(_,G)}removeAttribute(_){throw new Error("attribute() applies to element nodes only.")}replaceChild(_,G){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(_,G){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(_){var G,y;return G=this,G===_?0:this.document()!==_.document()?(y=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?y|=t.Preceding:y|=t.Following,y):G.isAncestor(_)?t.Contains|t.Preceding:G.isDescendant(_)?t.Contains|t.Following:G.isPreceding(_)?t.Preceding:t.Following}isSameNode(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(_){var G,y,h;if(_.nodeType!==this.nodeType||_.children.length!==this.children.length)return!1;for(G=y=0,h=this.children.length-1;0<=h?y<=h:y>=h;G=0<=h?++y:--y)if(!this.children[G].isEqualNode(_.children[G]))return!1;return!0}getFeature(_,G){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(_,G,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(_){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(_){return _?_===this||this.isDescendant(_):!1}isDescendant(_){var G,y,h,z,v;for(v=this.children,h=0,z=v.length;h<z;h++)if(G=v[h],_===G||(y=G.isDescendant(_),y))return!0;return!1}isAncestor(_){return _.isDescendant(this)}isPreceding(_){var G,y;return G=this.treePosition(_),y=this.treePosition(this),G===-1||y===-1?!1:G<y}isFollowing(_){var G,y;return G=this.treePosition(_),y=this.treePosition(this),G===-1||y===-1?!1:G>y}treePosition(_){var G,y;return y=0,G=!1,this.foreachTreeNode(this.document(),function(h){if(y++,!G&&h===_)return G=!0}),G?y:-1}foreachTreeNode(_,G){var y,h,z,v,N;for(_||(_=this.document()),v=_.children,h=0,z=v.length;h<z;h++){if(y=v[h],N=G(y))return N;if(N=this.foreachTreeNode(y,G),N)return N}}}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 d(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 g;return g=this.parent.children.indexOf(this),this.parent.children[g-1]||null}}),Object.defineProperty(l.prototype,"nextSibling",{get:function(){var g;return g=this.parent.children.indexOf(this),this.parent.children[g+1]||null}}),Object.defineProperty(l.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(l.prototype,"textContent",{get:function(){var g,_,G,y,h;if(this.nodeType===o.Element||this.nodeType===o.DocumentFragment){for(h="",y=this.children,_=0,G=y.length;_<G;_++)g=y[_],g.textContent&&(h+=g.textContent);return h}else return null},set:function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l}.call(this)}).call(sm)});var Kn=S((rm,nm)=>{(function(){var t,o={}.hasOwnProperty;nm.exports=t=function(){class e{constructor(i){var r,n,a;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),n=i.stringify||{};for(r in n)o.call(n,r)&&(a=n[r],this[r]=a)}name(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")}text(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))}cdata(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))}comment(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)}raw(i){return this.options.noValidation?i:""+i||""}attValue(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))}insTarget(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}insValue(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return this.assertLegalChar(i)}xmlVersion(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i}xmlEncoding(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)}xmlStandalone(i){return this.options.noValidation?i:i?"yes":"no"}dtdPubID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdSysID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdElementValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttType(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttDefault(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdEntityValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdNData(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}assertLegalChar(i){var r,n;if(this.options.noValidation)return i;if(this.options.version==="1.0"){if(r=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(r,this.options.invalidCharReplacement);else if(n=i.match(r))throw new Error(`Invalid character in string: ${i} at index ${n.index}`)}else if(this.options.version==="1.1"){if(r=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(r,this.options.invalidCharReplacement);else if(n=i.match(r))throw new Error(`Invalid character in string: ${i} at index ${n.index}`)}return i}assertLegalName(i){var r;if(this.options.noValidation)return i;if(i=this.assertLegalChar(i),r=/^([: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(r))throw new Error(`Invalid character in name: ${i}`);return i}textEscape(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e}.call(this)}).call(rm)});var je=S((am,cm)=>{(function(){cm.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(am)});var Gn=S((lm,um)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,f,k,W,p={}.hasOwnProperty;({assign:W}=Ao()),t=Q(),c=Wi(),u=Si(),e=bi(),s=vi(),x=Gi(),w=Fi(),f=Mi(),m=Ei(),d=kn(),i=pi(),r=Ci(),n=qi(),a=Ni(),o=je(),um.exports=k=class{constructor(O){var l,g,_;O||(O={}),this.options=O,g=O.writer||{};for(l in g)p.call(g,l)&&(_=g[l],this["_"+l]=this[l],this[l]=_)}filterOptions(O){var l,g,_,G,y,h,z,v,N;return O||(O={}),O=W({},this.options,O),l={writer:this},l.pretty=O.pretty||!1,l.allowEmpty=O.allowEmpty||!1,l.indent=(g=O.indent)!=null?g:" ",l.newline=(_=O.newline)!=null?_:`
24
+ `,l.offset=(G=O.offset)!=null?G:0,l.width=(y=O.width)!=null?y:0,l.dontPrettyTextNodes=(h=(z=O.dontPrettyTextNodes)!=null?z:O.dontprettytextnodes)!=null?h:0,l.spaceBeforeSlash=(v=(N=O.spaceBeforeSlash)!=null?N:O.spacebeforeslash)!=null?v:"",l.spaceBeforeSlash===!0&&(l.spaceBeforeSlash=" "),l.suppressPrettyCount=0,l.user={},l.state=o.None,l}indent(O,l,g){var _;return!l.pretty||l.suppressPrettyCount?"":l.pretty&&(_=(g||0)+l.offset+1,_>0)?new Array(_).join(l.indent):""}endline(O,l,g){return!l.pretty||l.suppressPrettyCount?"":l.newline}attribute(O,l,g){var _;return this.openAttribute(O,l,g),l.pretty&&l.width>0?_=O.name+'="'+O.value+'"':_=" "+O.name+'="'+O.value+'"',this.closeAttribute(O,l,g),_}cdata(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<![CDATA[",l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+="]]>"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}comment(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!-- ",l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=" -->"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}declaration(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<?xml",l.state=o.InsideTag,_+=' version="'+O.version+'"',O.encoding!=null&&(_+=' encoding="'+O.encoding+'"'),O.standalone!=null&&(_+=' standalone="'+O.standalone+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+"?>",_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}docType(O,l,g){var _,G,y,h,z;if(g||(g=0),this.openNode(O,l,g),l.state=o.OpenTag,h=this.indent(O,l,g),h+="<!DOCTYPE "+O.root().name,O.pubID&&O.sysID?h+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(h+=' SYSTEM "'+O.sysID+'"'),O.children.length>0){for(h+=" [",h+=this.endline(O,l,g),l.state=o.InsideTag,z=O.children,G=0,y=z.length;G<y;G++)_=z[G],h+=this.writeChildNode(_,l,g+1);l.state=o.CloseTag,h+="]"}return l.state=o.CloseTag,h+=l.spaceBeforeSlash+">",h+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),h}element(O,l,g){var _,G,y,h,z,v,N,F,V,I,E,X,Z,Go,ro,nt,qt,Ct,Jo;if(g||(g=0),X=!1,this.openNode(O,l,g),l.state=o.OpenTag,Z=this.indent(O,l,g)+"<"+O.name,l.pretty&&l.width>0){F=Z.length,ro=O.attribs;for(E in ro)p.call(ro,E)&&(_=ro[E],Go=this.attribute(_,l,g),G=Go.length,F+G>l.width?(Jo=this.indent(O,l,g+1)+Go,Z+=this.endline(O,l,g)+Jo,F=Jo.length):(Jo=" "+Go,Z+=Jo,F+=Jo.length))}else{nt=O.attribs;for(E in nt)p.call(nt,E)&&(_=nt[E],Z+=this.attribute(_,l,g))}if(h=O.children.length,z=h===0?null:O.children[0],h===0||O.children.every(function(Nt){return(Nt.type===t.Text||Nt.type===t.Raw||Nt.type===t.CData)&&Nt.value===""}))l.allowEmpty?(Z+=">",l.state=o.CloseTag,Z+="</"+O.name+">"+this.endline(O,l,g)):(l.state=o.CloseTag,Z+=l.spaceBeforeSlash+"/>"+this.endline(O,l,g));else if(l.pretty&&h===1&&(z.type===t.Text||z.type===t.Raw||z.type===t.CData)&&z.value!=null)Z+=">",l.state=o.InsideTag,l.suppressPrettyCount++,X=!0,Z+=this.writeChildNode(z,l,g+1),l.suppressPrettyCount--,X=!1,l.state=o.CloseTag,Z+="</"+O.name+">"+this.endline(O,l,g);else{if(l.dontPrettyTextNodes){for(qt=O.children,v=0,V=qt.length;v<V;v++)if(y=qt[v],(y.type===t.Text||y.type===t.Raw||y.type===t.CData)&&y.value!=null){l.suppressPrettyCount++,X=!0;break}}for(Z+=">"+this.endline(O,l,g),l.state=o.InsideTag,Ct=O.children,N=0,I=Ct.length;N<I;N++)y=Ct[N],Z+=this.writeChildNode(y,l,g+1);l.state=o.CloseTag,Z+=this.indent(O,l,g)+"</"+O.name+">",X&&l.suppressPrettyCount--,Z+=this.endline(O,l,g),l.state=o.None}return this.closeNode(O,l,g),Z}writeChildNode(O,l,g){switch(O.type){case t.CData:return this.cdata(O,l,g);case t.Comment:return this.comment(O,l,g);case t.Element:return this.element(O,l,g);case t.Raw:return this.raw(O,l,g);case t.Text:return this.text(O,l,g);case t.ProcessingInstruction:return this.processingInstruction(O,l,g);case t.Dummy:return"";case t.Declaration:return this.declaration(O,l,g);case t.DocType:return this.docType(O,l,g);case t.AttributeDeclaration:return this.dtdAttList(O,l,g);case t.ElementDeclaration:return this.dtdElement(O,l,g);case t.EntityDeclaration:return this.dtdEntity(O,l,g);case t.NotationDeclaration:return this.dtdNotation(O,l,g);default:throw new Error("Unknown XML node type: "+O.constructor.name)}}processingInstruction(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<?",l.state=o.InsideTag,_+=O.target,O.value&&(_+=" "+O.value),l.state=o.CloseTag,_+=l.spaceBeforeSlash+"?>",_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}raw(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g),l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}text(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g),l.state=o.InsideTag,_+=O.value,l.state=o.CloseTag,_+=this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}dtdAttList(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ATTLIST",l.state=o.InsideTag,_+=" "+O.elementName+" "+O.attributeName+" "+O.attributeType,O.defaultValueType!=="#DEFAULT"&&(_+=" "+O.defaultValueType),O.defaultValue&&(_+=' "'+O.defaultValue+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}dtdElement(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ELEMENT",l.state=o.InsideTag,_+=" "+O.name+" "+O.value,l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}dtdEntity(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!ENTITY",l.state=o.InsideTag,O.pe&&(_+=" %"),_+=" "+O.name,O.value?_+=' "'+O.value+'"':(O.pubID&&O.sysID?_+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.sysID&&(_+=' SYSTEM "'+O.sysID+'"'),O.nData&&(_+=" NDATA "+O.nData)),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}dtdNotation(O,l,g){var _;return this.openNode(O,l,g),l.state=o.OpenTag,_=this.indent(O,l,g)+"<!NOTATION",l.state=o.InsideTag,_+=" "+O.name,O.pubID&&O.sysID?_+=' PUBLIC "'+O.pubID+'" "'+O.sysID+'"':O.pubID?_+=' PUBLIC "'+O.pubID+'"':O.sysID&&(_+=' SYSTEM "'+O.sysID+'"'),l.state=o.CloseTag,_+=l.spaceBeforeSlash+">"+this.endline(O,l,g),l.state=o.None,this.closeNode(O,l,g),_}openNode(O,l,g){}closeNode(O,l,g){}openAttribute(O,l,g){}closeAttribute(O,l,g){}}}).call(lm)});var Vi=S((_m,xm)=>{(function(){var t,o;o=Gn(),xm.exports=t=class extends o{constructor(s){super(s)}document(s,i){var r,n,a,c,u;for(i=this.filterOptions(i),c="",u=s.children,n=0,a=u.length;n<a;n++)r=u[n],c+=this.writeChildNode(r,i,0);return i.pretty&&c.slice(-i.newline.length)===i.newline&&(c=c.slice(0,-i.newline.length)),c}}}).call(_m)});var bn=S((mm,gm)=>{(function(){var t,o,e,s,i,r,n,a;({isPlainObject:a}=Ao()),e=fn(),o=dx(),i=Ko(),t=Q(),n=Kn(),r=Vi(),gm.exports=s=function(){class c extends i{constructor(d){super(null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new o,d||(d={}),d.writer||(d.writer=new r),this.options=d,this.stringify=new n(d)}end(d){var x;return x={},d?a(d)&&(x=d,d=this.options.writer):d=this.options.writer,d.document(this,d.filterOptions(x))}toString(d){return this.options.writer.document(this,this.options.writer.filterOptions(d))}createElement(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(d,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(d,x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(d,x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(d,x,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(c.prototype,"implementation",{value:new e}),Object.defineProperty(c.prototype,"doctype",{get:function(){var u,d,x,m;for(m=this.children,d=0,x=m.length;d<x;d++)if(u=m[d],u.type===t.DocType)return u;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c}.call(this)}).call(mm)});var wm=S((Om,dm)=>{(function(){var t,o,e,s,i,r,n,a,c,u,d,x,m,w,f,k,W,p,q,O,l,g,_,G={}.hasOwnProperty;({isObject:g,isFunction:l,isPlainObject:_,getValue:O}=Ao()),t=Q(),x=bn(),w=Gi(),s=bi(),i=vi(),k=Fi(),q=Mi(),f=Ei(),u=Wi(),d=Si(),r=pi(),a=qi(),n=Ci(),c=Ni(),e=zn(),p=Kn(),W=Vi(),o=je(),dm.exports=m=class{constructor(h,z,v){var N;this.name="?xml",this.type=t.Document,h||(h={}),N={},h.writer?_(h.writer)&&(N=h.writer,h.writer=new W):h.writer=new W,this.options=h,this.writer=h.writer,this.writerOptions=this.writer.filterOptions(N),this.stringify=new p(h),this.onDataCallback=z||function(){},this.onEndCallback=v||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(h){var z,v,N,F,V,I,E,X;switch(h.type){case t.CData:this.cdata(h.value);break;case t.Comment:this.comment(h.value);break;case t.Element:N={},E=h.attribs;for(v in E)G.call(E,v)&&(z=E[v],N[v]=z.value);this.node(h.name,N);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(h.value);break;case t.Text:this.text(h.value);break;case t.ProcessingInstruction:this.instruction(h.target,h.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+h.constructor.name)}for(X=h.children,V=0,I=X.length;V<I;V++)F=X[V],this.createChildNode(F),F.type===t.Element&&this.up();return this}dummy(){return this}node(h,z,v){if(h==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(h));return this.openCurrent(),h=O(h),z==null&&(z={}),z=O(z),g(z)||([v,z]=[z,v]),this.currentNode=new w(this,h,z),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,v!=null&&this.text(v),this}element(h,z,v){var N,F,V,I,E,X;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement(...arguments);else if(Array.isArray(h)||g(h)||l(h))for(I=this.options.noValidation,this.options.noValidation=!0,X=new x(this.options).element("TEMP_ROOT"),X.element(h),this.options.noValidation=I,E=X.children,F=0,V=E.length;F<V;F++)N=E[F],this.createChildNode(N),N.type===t.Element&&this.up();else this.node(h,z,v);return this}attribute(h,z){var v,N;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(h));if(h!=null&&(h=O(h)),g(h))for(v in h)G.call(h,v)&&(N=h[v],this.attribute(v,N));else l(z)&&(z=z.apply()),this.options.keepNullAttributes&&z==null?this.currentNode.attribs[h]=new e(this,h,""):z!=null&&(this.currentNode.attribs[h]=new e(this,h,z));return this}text(h){var z;return this.openCurrent(),z=new q(this,h),this.onData(this.writer.text(z,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(h){var z;return this.openCurrent(),z=new s(this,h),this.onData(this.writer.cdata(z,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(h){var z;return this.openCurrent(),z=new i(this,h),this.onData(this.writer.comment(z,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(h){var z;return this.openCurrent(),z=new k(this,h),this.onData(this.writer.raw(z,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(h,z){var v,N,F,V,I;if(this.openCurrent(),h!=null&&(h=O(h)),z!=null&&(z=O(z)),Array.isArray(h))for(v=0,V=h.length;v<V;v++)N=h[v],this.instruction(N);else if(g(h))for(N in h)G.call(h,N)&&(F=h[N],this.instruction(N,F));else l(z)&&(z=z.apply()),I=new f(this,h,z),this.onData(this.writer.processingInstruction(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(h,z,v){var N;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return N=new u(this,h,z,v),this.onData(this.writer.declaration(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(h,z,v){if(this.openCurrent(),h==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,z,v),this.currentNode.rootNodeName=h,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(h,z){var v;return this.openCurrent(),v=new n(this,h,z),this.onData(this.writer.dtdElement(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(h,z,v,N,F){var V;return this.openCurrent(),V=new r(this,h,z,v,N,F),this.onData(this.writer.dtdAttList(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(h,z){var v;return this.openCurrent(),v=new a(this,!1,h,z),this.onData(this.writer.dtdEntity(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(h,z){var v;return this.openCurrent(),v=new a(this,!0,h,z),this.onData(this.writer.dtdEntity(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(h,z){var v;return this.openCurrent(),v=new c(this,h,z),this.onData(this.writer.dtdNotation(v,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){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}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(h){var z,v,N,F;if(!h.isOpen){if(!this.root&&this.currentLevel===0&&h.type===t.Element&&(this.root=h),v="",h.type===t.Element){this.writerOptions.state=o.OpenTag,v=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<"+h.name,F=h.attribs;for(N in F)G.call(F,N)&&(z=F[N],v+=this.writer.attribute(z,this.writerOptions,this.currentLevel));v+=(h.children?">":"/>")+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,v=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+h.rootNodeName,h.pubID&&h.sysID?v+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(v+=' SYSTEM "'+h.sysID+'"'),h.children?(v+=" [",this.writerOptions.state=o.InsideTag):(this.writerOptions.state=o.CloseTag,v+=">"),v+=this.writer.endline(h,this.writerOptions,this.currentLevel);return this.onData(v,this.currentLevel),h.isOpen=!0}}closeNode(h){var z;if(!h.isClosed)return z="",this.writerOptions.state=o.CloseTag,h.type===t.Element?z=this.writer.indent(h,this.writerOptions,this.currentLevel)+"</"+h.name+">"+this.writer.endline(h,this.writerOptions,this.currentLevel):z=this.writer.indent(h,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(z,this.currentLevel),h.isClosed=!0}onData(h,z){return this.documentStarted=!0,this.onDataCallback(h,z+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(h){return h==null?"":"node: <"+h+">"}ele(){return this.element(...arguments)}nod(h,z,v){return this.node(h,z,v)}txt(h){return this.text(h)}dat(h){return this.cdata(h)}com(h){return this.comment(h)}ins(h,z){return this.instruction(h,z)}dec(h,z,v){return this.declaration(h,z,v)}dtd(h,z,v){return this.doctype(h,z,v)}e(h,z,v){return this.element(h,z,v)}n(h,z,v){return this.node(h,z,v)}t(h){return this.text(h)}d(h){return this.cdata(h)}c(h){return this.comment(h)}r(h){return this.raw(h)}i(h,z){return this.instruction(h,z)}att(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(h,z){return this.entity(h,z)}pent(h,z){return this.pEntity(h,z)}not(h,z){return this.notation(h,z)}}}).call(Om)});var fm=S((ym,hm)=>{(function(){var t,o,e,s,i={}.hasOwnProperty;t=Q(),s=Gn(),o=je(),hm.exports=e=class extends s{constructor(n,a){super(a),this.stream=n}endline(n,a,c){return n.isLastRootNode&&a.state===o.CloseTag?"":super.endline(n,a,c)}document(n,a){var c,u,d,x,m,w,f,k,W;for(f=n.children,u=d=0,m=f.length;d<m;u=++d)c=f[u],c.isLastRootNode=u===n.children.length-1;for(a=this.filterOptions(a),k=n.children,W=[],x=0,w=k.length;x<w;x++)c=k[x],W.push(this.writeChildNode(c,a,0));return W}cdata(n,a,c){return this.stream.write(super.cdata(n,a,c))}comment(n,a,c){return this.stream.write(super.comment(n,a,c))}declaration(n,a,c){return this.stream.write(super.declaration(n,a,c))}docType(n,a,c){var u,d,x,m;if(c||(c=0),this.openNode(n,a,c),a.state=o.OpenTag,this.stream.write(this.indent(n,a,c)),this.stream.write("<!DOCTYPE "+n.root().name),n.pubID&&n.sysID?this.stream.write(' PUBLIC "'+n.pubID+'" "'+n.sysID+'"'):n.sysID&&this.stream.write(' SYSTEM "'+n.sysID+'"'),n.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(n,a,c)),a.state=o.InsideTag,m=n.children,d=0,x=m.length;d<x;d++)u=m[d],this.writeChildNode(u,a,c+1);a.state=o.CloseTag,this.stream.write("]")}return a.state=o.CloseTag,this.stream.write(a.spaceBeforeSlash+">"),this.stream.write(this.endline(n,a,c)),a.state=o.None,this.closeNode(n,a,c)}element(n,a,c){var u,d,x,m,w,f,k,W,p,q,O,l,g,_,G,y;if(c||(c=0),this.openNode(n,a,c),a.state=o.OpenTag,O=this.indent(n,a,c)+"<"+n.name,a.pretty&&a.width>0){k=O.length,g=n.attribs;for(p in g)i.call(g,p)&&(u=g[p],l=this.attribute(u,a,c),d=l.length,k+d>a.width?(y=this.indent(n,a,c+1)+l,O+=this.endline(n,a,c)+y,k=y.length):(y=" "+l,O+=y,k+=y.length))}else{_=n.attribs;for(p in _)i.call(_,p)&&(u=_[p],O+=this.attribute(u,a,c))}if(this.stream.write(O),m=n.children.length,w=m===0?null:n.children[0],m===0||n.children.every(function(h){return(h.type===t.Text||h.type===t.Raw||h.type===t.CData)&&h.value===""}))a.allowEmpty?(this.stream.write(">"),a.state=o.CloseTag,this.stream.write("</"+n.name+">")):(a.state=o.CloseTag,this.stream.write(a.spaceBeforeSlash+"/>"));else if(a.pretty&&m===1&&(w.type===t.Text||w.type===t.Raw||w.type===t.CData)&&w.value!=null)this.stream.write(">"),a.state=o.InsideTag,a.suppressPrettyCount++,q=!0,this.writeChildNode(w,a,c+1),a.suppressPrettyCount--,q=!1,a.state=o.CloseTag,this.stream.write("</"+n.name+">");else{for(this.stream.write(">"+this.endline(n,a,c)),a.state=o.InsideTag,G=n.children,f=0,W=G.length;f<W;f++)x=G[f],this.writeChildNode(x,a,c+1);a.state=o.CloseTag,this.stream.write(this.indent(n,a,c)+"</"+n.name+">")}return this.stream.write(this.endline(n,a,c)),a.state=o.None,this.closeNode(n,a,c)}processingInstruction(n,a,c){return this.stream.write(super.processingInstruction(n,a,c))}raw(n,a,c){return this.stream.write(super.raw(n,a,c))}text(n,a,c){return this.stream.write(super.text(n,a,c))}dtdAttList(n,a,c){return this.stream.write(super.dtdAttList(n,a,c))}dtdElement(n,a,c){return this.stream.write(super.dtdElement(n,a,c))}dtdEntity(n,a,c){return this.stream.write(super.dtdEntity(n,a,c))}dtdNotation(n,a,c){return this.stream.write(super.dtdNotation(n,a,c))}}}).call(ym)});var km=S((zm,dt)=>{(function(){var t,o,e,s,i,r,n,a,c;({assign:a,isFunction:c}=Ao()),e=fn(),s=bn(),i=wm(),n=Vi(),r=fm(),t=Q(),o=je(),dt.exports.create=function(u,d,x,m){var w,f;if(u==null)throw new Error("Root element needs a name.");return m=a({},d,x,m),w=new s(m),f=w.element(u),m.headless||(w.declaration(m),(m.pubID!=null||m.sysID!=null)&&w.dtd(m)),f},dt.exports.begin=function(u,d,x){return c(u)&&([d,x]=[u,d],u={}),d?new i(u,d,x):new s(u)},dt.exports.stringWriter=function(u){return new n(u)},dt.exports.streamWriter=function(u,d){return new r(u,d)},dt.exports.implementation=new e,dt.exports.nodeType=t,dt.exports.writerState=o}).call(zm)});var vm=S(Re=>{"use strict";var bm=Re&&Re.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Re,"__esModule",{value:!0});Re.build=wy;var Km=bm(ix()),gy=bm(km());function Oy(t){function o(e){return e<10?"0"+e:e}return t.getUTCFullYear()+"-"+o(t.getUTCMonth()+1)+"-"+o(t.getUTCDate())+"T"+o(t.getUTCHours())+":"+o(t.getUTCMinutes())+":"+o(t.getUTCSeconds())+"Z"}var dy=Object.prototype.toString;function Gm(t){let o=dy.call(t).match(/\[object (.*)\]/);return o&&o[1]}function wy(t,o){let e={version:"1.0",encoding:"UTF-8"},s={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},i=gy.default.create("plist");return i.dec(e.version,e.encoding,e.standalone),i.dtd(s.pubid,s.sysid),i.att("version","1.0"),vn(t,i),o||(o={}),o.pretty=o.pretty!==!1,i.end(o)}function vn(t,o){let e,s,i,r=Gm(t);if(r!=="Undefined")if(Array.isArray(t))for(o=o.ele("array"),s=0;s<t.length;s++)vn(t[s],o);else if(Buffer.isBuffer(t))o.ele("data").raw(t.toString("base64"));else if(r==="Object"){o=o.ele("dict");for(i in t)t.hasOwnProperty(i)&&t[i]!==void 0&&(o.ele("key").txt(i),vn(t[i],o))}else r==="Number"?(e=t%1===0?"integer":"real",o.ele(e).txt(t.toString())):r==="Date"?o.ele("date").txt(Oy(new Date(t))):r==="Boolean"?o.ele(t?"true":"false"):r==="String"?o.ele("string").txt(t):r==="ArrayBuffer"?o.ele("data").raw(Km.default.fromByteArray(t)):t&&t.buffer&&Gm(t.buffer)==="ArrayBuffer"&&o.ele("data").raw(Km.default.fromByteArray(new Uint8Array(t.buffer)))}});var Je=S(ce=>{"use strict";function yy(t,o,e){if(e===void 0&&(e=Array.prototype),t&&typeof e.find=="function")return e.find.call(t,o);for(var s=0;s<t.length;s++)if(Object.prototype.hasOwnProperty.call(t,s)){var i=t[s];if(o.call(void 0,i,s,t))return i}}function Wn(t,o){return o===void 0&&(o=Object),o&&typeof o.freeze=="function"?o.freeze(t):t}function hy(t,o){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e]);return t}var Wm=Wn({HTML:"text/html",isHTML:function(t){return t===Wm.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),pm=Wn({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===pm.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});ce.assign=hy;ce.find=yy;ce.freeze=Wn;ce.MIME_TYPE=Wm;ce.NAMESPACE=pm});var Yn=S(wt=>{var Vm=Je(),Qo=Vm.find,Be=Vm.NAMESPACE;function fy(t){return t!==""}function zy(t){return t?t.split(/[\t\n\f\r ]+/).filter(fy):[]}function ky(t,o){return t.hasOwnProperty(o)||(t[o]=!0),t}function qm(t){if(!t)return[];var o=zy(t);return Object.keys(o.reduce(ky,{}))}function Ky(t){return function(o){return t&&t.indexOf(o)!==-1}}function $e(t,o){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}function wo(t,o){var e=t.prototype;if(!(e instanceof o)){let i=function(){};var s=i;i.prototype=o.prototype,i=new i,$e(e,i),t.prototype=e=i}e.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),e.constructor=t)}var yo={},Io=yo.ELEMENT_NODE=1,ue=yo.ATTRIBUTE_NODE=2,Xi=yo.TEXT_NODE=3,Xm=yo.CDATA_SECTION_NODE=4,Ym=yo.ENTITY_REFERENCE_NODE=5,Gy=yo.ENTITY_NODE=6,Im=yo.PROCESSING_INSTRUCTION_NODE=7,Zm=yo.COMMENT_NODE=8,Pm=yo.DOCUMENT_NODE=9,Lm=yo.DOCUMENT_TYPE_NODE=10,st=yo.DOCUMENT_FRAGMENT_NODE=11,by=yo.NOTATION_NODE=12,lo={},eo={},S7=lo.INDEX_SIZE_ERR=(eo[1]="Index size error",1),F7=lo.DOMSTRING_SIZE_ERR=(eo[2]="DOMString size error",2),Oo=lo.HIERARCHY_REQUEST_ERR=(eo[3]="Hierarchy request error",3),M7=lo.WRONG_DOCUMENT_ERR=(eo[4]="Wrong document",4),E7=lo.INVALID_CHARACTER_ERR=(eo[5]="Invalid character",5),V7=lo.NO_DATA_ALLOWED_ERR=(eo[6]="No data allowed",6),X7=lo.NO_MODIFICATION_ALLOWED_ERR=(eo[7]="No modification allowed",7),Tm=lo.NOT_FOUND_ERR=(eo[8]="Not found",8),Y7=lo.NOT_SUPPORTED_ERR=(eo[9]="Not supported",9),Cm=lo.INUSE_ATTRIBUTE_ERR=(eo[10]="Attribute in use",10),I7=lo.INVALID_STATE_ERR=(eo[11]="Invalid state",11),Z7=lo.SYNTAX_ERR=(eo[12]="Syntax error",12),P7=lo.INVALID_MODIFICATION_ERR=(eo[13]="Invalid modification",13),L7=lo.NAMESPACE_ERR=(eo[14]="Invalid namespace",14),T7=lo.INVALID_ACCESS_ERR=(eo[15]="Invalid access",15);function j(t,o){if(o instanceof Error)var e=o;else e=this,Error.call(this,eo[t]),this.message=eo[t],Error.captureStackTrace&&Error.captureStackTrace(this,j);return e.code=t,o&&(this.message=this.message+": "+o),e}j.prototype=Error.prototype;$e(lo,j);function et(){}et.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,o){for(var e=[],s=0;s<this.length;s++)le(this[s],e,t,o);return e.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function _e(t,o){this._node=t,this._refresh=o,Cn(this)}function Cn(t){var o=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==o){var e=t._refresh(t._node);if(tg(t,"length",e.length),!t.$$length||e.length<t.$$length)for(var s=e.length;s in t;s++)Object.prototype.hasOwnProperty.call(t,s)&&delete t[s];$e(e,t),t._inc=o}}_e.prototype.item=function(t){return Cn(this),this[t]||null};wo(_e,et);function Yi(){}function Um(t,o){for(var e=t.length;e--;)if(t[e]===o)return e}function Nm(t,o,e,s){if(s?o[Um(o,s)]=e:o[o.length++]=e,t){e.ownerElement=t;var i=t.ownerDocument;i&&(s&&jm(i,t,s),vy(i,t,e))}}function Sm(t,o,e){var s=Um(o,e);if(s>=0){for(var i=o.length-1;s<i;)o[s]=o[++s];if(o.length=i,t){var r=t.ownerDocument;r&&(jm(r,t,e),e.ownerElement=null)}}else throw new j(Tm,new Error(t.tagName+"@"+e))}Yi.prototype={length:0,item:et.prototype.item,getNamedItem:function(t){for(var o=this.length;o--;){var e=this[o];if(e.nodeName==t)return e}},setNamedItem:function(t){var o=t.ownerElement;if(o&&o!=this._ownerElement)throw new j(Cm);var e=this.getNamedItem(t.nodeName);return Nm(this._ownerElement,this,t,e),e},setNamedItemNS:function(t){var o=t.ownerElement,e;if(o&&o!=this._ownerElement)throw new j(Cm);return e=this.getNamedItemNS(t.namespaceURI,t.localName),Nm(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var o=this.getNamedItem(t);return Sm(this._ownerElement,this,o),o},removeNamedItemNS:function(t,o){var e=this.getNamedItemNS(t,o);return Sm(this._ownerElement,this,e),e},getNamedItemNS:function(t,o){for(var e=this.length;e--;){var s=this[e];if(s.localName==o&&s.namespaceURI==t)return s}return null}};function Am(){}Am.prototype={hasFeature:function(t,o){return!0},createDocument:function(t,o,e){var s=new He;if(s.implementation=this,s.childNodes=new et,s.doctype=e||null,e&&s.appendChild(e),o){var i=s.createElementNS(t,o);s.appendChild(i)}return s},createDocumentType:function(t,o,e){var s=new Pi;return s.name=t,s.nodeName=t,s.publicId=o||"",s.systemId=e||"",s}};function T(){}T.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,o){return Ii(this,t,o)},replaceChild:function(t,o){Ii(this,t,o,Jm),o&&this.removeChild(o)},removeChild:function(t){return Rm(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return qn(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var o=t.nextSibling;o&&o.nodeType==Xi&&t.nodeType==Xi?(this.removeChild(o),t.appendData(o.data)):(t.normalize(),t=o)}},isSupported:function(t,o){return this.ownerDocument.implementation.hasFeature(t,o)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var o=this;o;){var e=o._nsMap;if(e){for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]===t)return s}o=o.nodeType==ue?o.ownerDocument:o.parentNode}return null},lookupNamespaceURI:function(t){for(var o=this;o;){var e=o._nsMap;if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];o=o.nodeType==ue?o.ownerDocument:o.parentNode}return null},isDefaultNamespace:function(t){var o=this.lookupPrefix(t);return o==null}};function Qm(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}$e(yo,T);$e(yo,T.prototype);function De(t,o){if(o(t))return!0;if(t=t.firstChild)do if(De(t,o))return!0;while(t=t.nextSibling)}function He(){this.ownerDocument=this}function vy(t,o,e){t&&t._inc++;var s=e.namespaceURI;s===Be.XMLNS&&(o._nsMap[e.prefix?e.localName:""]=e.value)}function jm(t,o,e,s){t&&t._inc++;var i=e.namespaceURI;i===Be.XMLNS&&delete o._nsMap[e.prefix?e.localName:""]}function Nn(t,o,e){if(t&&t._inc){t._inc++;var s=o.childNodes;if(e)s[s.length++]=e;else{for(var i=o.firstChild,r=0;i;)s[r++]=i,i=i.nextSibling;s.length=r,delete s[s.length]}}}function Rm(t,o){var e=o.previousSibling,s=o.nextSibling;return e?e.nextSibling=s:t.firstChild=s,s?s.previousSibling=e:t.lastChild=e,o.parentNode=null,o.previousSibling=null,o.nextSibling=null,Nn(t.ownerDocument,t),o}function Wy(t){return t&&(t.nodeType===T.DOCUMENT_NODE||t.nodeType===T.DOCUMENT_FRAGMENT_NODE||t.nodeType===T.ELEMENT_NODE)}function py(t){return t&&(jo(t)||Sn(t)||it(t)||t.nodeType===T.DOCUMENT_FRAGMENT_NODE||t.nodeType===T.COMMENT_NODE||t.nodeType===T.PROCESSING_INSTRUCTION_NODE)}function it(t){return t&&t.nodeType===T.DOCUMENT_TYPE_NODE}function jo(t){return t&&t.nodeType===T.ELEMENT_NODE}function Sn(t){return t&&t.nodeType===T.TEXT_NODE}function Fm(t,o){var e=t.childNodes||[];if(Qo(e,jo)||it(o))return!1;var s=Qo(e,it);return!(o&&s&&e.indexOf(s)>e.indexOf(o))}function Mm(t,o){var e=t.childNodes||[];function s(r){return jo(r)&&r!==o}if(Qo(e,s))return!1;var i=Qo(e,it);return!(o&&i&&e.indexOf(i)>e.indexOf(o))}function qy(t,o,e){if(!Wy(t))throw new j(Oo,"Unexpected parent node type "+t.nodeType);if(e&&e.parentNode!==t)throw new j(Tm,"child not in parent");if(!py(o)||it(o)&&t.nodeType!==T.DOCUMENT_NODE)throw new j(Oo,"Unexpected node type "+o.nodeType+" for parent node type "+t.nodeType)}function Cy(t,o,e){var s=t.childNodes||[],i=o.childNodes||[];if(o.nodeType===T.DOCUMENT_FRAGMENT_NODE){var r=i.filter(jo);if(r.length>1||Qo(i,Sn))throw new j(Oo,"More than one element or text in fragment");if(r.length===1&&!Fm(t,e))throw new j(Oo,"Element in fragment can not be inserted before doctype")}if(jo(o)&&!Fm(t,e))throw new j(Oo,"Only one element can be added and only after doctype");if(it(o)){if(Qo(s,it))throw new j(Oo,"Only one doctype is allowed");var n=Qo(s,jo);if(e&&s.indexOf(n)<s.indexOf(e))throw new j(Oo,"Doctype can only be inserted before an element");if(!e&&n)throw new j(Oo,"Doctype can not be appended since element is present")}}function Jm(t,o,e){var s=t.childNodes||[],i=o.childNodes||[];if(o.nodeType===T.DOCUMENT_FRAGMENT_NODE){var r=i.filter(jo);if(r.length>1||Qo(i,Sn))throw new j(Oo,"More than one element or text in fragment");if(r.length===1&&!Mm(t,e))throw new j(Oo,"Element in fragment can not be inserted before doctype")}if(jo(o)&&!Mm(t,e))throw new j(Oo,"Only one element can be added and only after doctype");if(it(o)){let c=function(u){return it(u)&&u!==e};var a=c;if(Qo(s,c))throw new j(Oo,"Only one doctype is allowed");var n=Qo(s,jo);if(e&&s.indexOf(n)<s.indexOf(e))throw new j(Oo,"Doctype can only be inserted before an element")}}function Ii(t,o,e,s){qy(t,o,e),t.nodeType===T.DOCUMENT_NODE&&(s||Cy)(t,o,e);var i=o.parentNode;if(i&&i.removeChild(o),o.nodeType===st){var r=o.firstChild;if(r==null)return o;var n=o.lastChild}else r=n=o;var a=e?e.previousSibling:t.lastChild;r.previousSibling=a,n.nextSibling=e,a?a.nextSibling=r:t.firstChild=r,e==null?t.lastChild=n:e.previousSibling=n;do r.parentNode=t;while(r!==n&&(r=r.nextSibling));return Nn(t.ownerDocument||t,t),o.nodeType==st&&(o.firstChild=o.lastChild=null),o}function Ny(t,o){return o.parentNode&&o.parentNode.removeChild(o),o.parentNode=t,o.previousSibling=t.lastChild,o.nextSibling=null,o.previousSibling?o.previousSibling.nextSibling=o:t.firstChild=o,t.lastChild=o,Nn(t.ownerDocument,t,o),o}He.prototype={nodeName:"#document",nodeType:Pm,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,o){if(t.nodeType==st){for(var e=t.firstChild;e;){var s=e.nextSibling;this.insertBefore(e,o),e=s}return t}return Ii(this,t,o),t.ownerDocument=this,this.documentElement===null&&t.nodeType===Io&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),Rm(this,t)},replaceChild:function(t,o){Ii(this,t,o,Jm),t.ownerDocument=this,o&&this.removeChild(o),jo(t)&&(this.documentElement=t)},importNode:function(t,o){return og(this,t,o)},getElementById:function(t){var o=null;return De(this.documentElement,function(e){if(e.nodeType==Io&&e.getAttribute("id")==t)return o=e,!0}),o},getElementsByClassName:function(t){var o=qm(t);return new _e(this,function(e){var s=[];return o.length>0&&De(e.documentElement,function(i){if(i!==e&&i.nodeType===Io){var r=i.getAttribute("class");if(r){var n=t===r;if(!n){var a=qm(r);n=o.every(Ky(a))}n&&s.push(i)}}}),s})},createElement:function(t){var o=new pt;o.ownerDocument=this,o.nodeName=t,o.tagName=t,o.localName=t,o.childNodes=new et;var e=o.attributes=new Yi;return e._ownerElement=o,o},createDocumentFragment:function(){var t=new Li;return t.ownerDocument=this,t.childNodes=new et,t},createTextNode:function(t){var o=new Fn;return o.ownerDocument=this,o.appendData(t),o},createComment:function(t){var o=new Mn;return o.ownerDocument=this,o.appendData(t),o},createCDATASection:function(t){var o=new En;return o.ownerDocument=this,o.appendData(t),o},createProcessingInstruction:function(t,o){var e=new Xn;return e.ownerDocument=this,e.tagName=e.nodeName=e.target=t,e.nodeValue=e.data=o,e},createAttribute:function(t){var o=new Zi;return o.ownerDocument=this,o.name=t,o.nodeName=t,o.localName=t,o.specified=!0,o},createEntityReference:function(t){var o=new Vn;return o.ownerDocument=this,o.nodeName=t,o},createElementNS:function(t,o){var e=new pt,s=o.split(":"),i=e.attributes=new Yi;return e.childNodes=new et,e.ownerDocument=this,e.nodeName=o,e.tagName=o,e.namespaceURI=t,s.length==2?(e.prefix=s[0],e.localName=s[1]):e.localName=o,i._ownerElement=e,e},createAttributeNS:function(t,o){var e=new Zi,s=o.split(":");return e.ownerDocument=this,e.nodeName=o,e.name=o,e.namespaceURI=t,e.specified=!0,s.length==2?(e.prefix=s[0],e.localName=s[1]):e.localName=o,e}};wo(He,T);function pt(){this._nsMap={}}pt.prototype={nodeType:Io,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var o=this.getAttributeNode(t);return o&&o.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,o){var e=this.ownerDocument.createAttribute(t);e.value=e.nodeValue=""+o,this.setAttributeNode(e)},removeAttribute:function(t){var o=this.getAttributeNode(t);o&&this.removeAttributeNode(o)},appendChild:function(t){return t.nodeType===st?this.insertBefore(t,null):Ny(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,o){var e=this.getAttributeNodeNS(t,o);e&&this.removeAttributeNode(e)},hasAttributeNS:function(t,o){return this.getAttributeNodeNS(t,o)!=null},getAttributeNS:function(t,o){var e=this.getAttributeNodeNS(t,o);return e&&e.value||""},setAttributeNS:function(t,o,e){var s=this.ownerDocument.createAttributeNS(t,o);s.value=s.nodeValue=""+e,this.setAttributeNode(s)},getAttributeNodeNS:function(t,o){return this.attributes.getNamedItemNS(t,o)},getElementsByTagName:function(t){return new _e(this,function(o){var e=[];return De(o,function(s){s!==o&&s.nodeType==Io&&(t==="*"||s.tagName==t)&&e.push(s)}),e})},getElementsByTagNameNS:function(t,o){return new _e(this,function(e){var s=[];return De(e,function(i){i!==e&&i.nodeType===Io&&(t==="*"||i.namespaceURI===t)&&(o==="*"||i.localName==o)&&s.push(i)}),s})}};He.prototype.getElementsByTagName=pt.prototype.getElementsByTagName;He.prototype.getElementsByTagNameNS=pt.prototype.getElementsByTagNameNS;wo(pt,T);function Zi(){}Zi.prototype.nodeType=ue;wo(Zi,T);function os(){}os.prototype={data:"",substringData:function(t,o){return this.data.substring(t,t+o)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,o){this.replaceData(t,0,o)},appendChild:function(t){throw new Error(eo[Oo])},deleteData:function(t,o){this.replaceData(t,o,"")},replaceData:function(t,o,e){var s=this.data.substring(0,t),i=this.data.substring(t+o);e=s+e+i,this.nodeValue=this.data=e,this.length=e.length}};wo(os,T);function Fn(){}Fn.prototype={nodeName:"#text",nodeType:Xi,splitText:function(t){var o=this.data,e=o.substring(t);o=o.substring(0,t),this.data=this.nodeValue=o,this.length=o.length;var s=this.ownerDocument.createTextNode(e);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}};wo(Fn,os);function Mn(){}Mn.prototype={nodeName:"#comment",nodeType:Zm};wo(Mn,os);function En(){}En.prototype={nodeName:"#cdata-section",nodeType:Xm};wo(En,os);function Pi(){}Pi.prototype.nodeType=Lm;wo(Pi,T);function Bm(){}Bm.prototype.nodeType=by;wo(Bm,T);function Dm(){}Dm.prototype.nodeType=Gy;wo(Dm,T);function Vn(){}Vn.prototype.nodeType=Ym;wo(Vn,T);function Li(){}Li.prototype.nodeName="#document-fragment";Li.prototype.nodeType=st;wo(Li,T);function Xn(){}Xn.prototype.nodeType=Im;wo(Xn,T);function $m(){}$m.prototype.serializeToString=function(t,o,e){return Hm.call(t,o,e)};T.prototype.toString=Hm;function Hm(t,o){var e=[],s=this.nodeType==9&&this.documentElement||this,i=s.prefix,r=s.namespaceURI;if(r&&i==null){var i=s.lookupPrefix(r);if(i==null)var n=[{namespace:r,prefix:null}]}return le(this,e,t,o,n),e.join("")}function Em(t,o,e){var s=t.prefix||"",i=t.namespaceURI;if(!i||s==="xml"&&i===Be.XML||i===Be.XMLNS)return!1;for(var r=e.length;r--;){var n=e[r];if(n.prefix===s)return n.namespace!==i}return!0}function pn(t,o,e){t.push(" ",o,'="',e.replace(/[<>&"\t\n\r]/g,Qm),'"')}function le(t,o,e,s,i){if(i||(i=[]),s)if(t=s(t),t){if(typeof t=="string"){o.push(t);return}}else return;switch(t.nodeType){case Io:var r=t.attributes,n=r.length,p=t.firstChild,a=t.tagName;e=Be.isHTML(t.namespaceURI)||e;var c=a;if(!e&&!t.prefix&&t.namespaceURI){for(var u,d=0;d<r.length;d++)if(r.item(d).name==="xmlns"){u=r.item(d).value;break}if(!u)for(var x=i.length-1;x>=0;x--){var m=i[x];if(m.prefix===""&&m.namespace===t.namespaceURI){u=m.namespace;break}}if(u!==t.namespaceURI)for(var x=i.length-1;x>=0;x--){var m=i[x];if(m.namespace===t.namespaceURI){m.prefix&&(c=m.prefix+":"+a);break}}}o.push("<",c);for(var w=0;w<n;w++){var f=r.item(w);f.prefix=="xmlns"?i.push({prefix:f.localName,namespace:f.value}):f.nodeName=="xmlns"&&i.push({prefix:"",namespace:f.value})}for(var w=0;w<n;w++){var f=r.item(w);if(Em(f,e,i)){var k=f.prefix||"",W=f.namespaceURI;pn(o,k?"xmlns:"+k:"xmlns",W),i.push({prefix:k,namespace:W})}le(f,o,e,s,i)}if(a===c&&Em(t,e,i)){var k=t.prefix||"",W=t.namespaceURI;pn(o,k?"xmlns:"+k:"xmlns",W),i.push({prefix:k,namespace:W})}if(p||e&&!/^(?:meta|link|img|br|hr|input)$/i.test(a)){if(o.push(">"),e&&/^script$/i.test(a))for(;p;)p.data?o.push(p.data):le(p,o,e,s,i.slice()),p=p.nextSibling;else for(;p;)le(p,o,e,s,i.slice()),p=p.nextSibling;o.push("</",c,">")}else o.push("/>");return;case Pm:case st:for(var p=t.firstChild;p;)le(p,o,e,s,i.slice()),p=p.nextSibling;return;case ue:return pn(o,t.name,t.value);case Xi:return o.push(t.data.replace(/[<&>]/g,Qm));case Xm:return o.push("<![CDATA[",t.data,"]]>");case Zm:return o.push("<!--",t.data,"-->");case Lm:var q=t.publicId,O=t.systemId;if(o.push("<!DOCTYPE ",t.name),q)o.push(" PUBLIC ",q),O&&O!="."&&o.push(" ",O),o.push(">");else if(O&&O!=".")o.push(" SYSTEM ",O,">");else{var l=t.internalSubset;l&&o.push(" [",l,"]"),o.push(">")}return;case Im:return o.push("<?",t.target," ",t.data,"?>");case Ym:return o.push("&",t.nodeName,";");default:o.push("??",t.nodeName)}}function og(t,o,e){var s;switch(o.nodeType){case Io:s=o.cloneNode(!1),s.ownerDocument=t;case st:break;case ue:e=!0;break}if(s||(s=o.cloneNode(!1)),s.ownerDocument=t,s.parentNode=null,e)for(var i=o.firstChild;i;)s.appendChild(og(t,i,e)),i=i.nextSibling;return s}function qn(t,o,e){var s=new o.constructor;for(var i in o)if(Object.prototype.hasOwnProperty.call(o,i)){var r=o[i];typeof r!="object"&&r!=s[i]&&(s[i]=r)}switch(o.childNodes&&(s.childNodes=new et),s.ownerDocument=t,s.nodeType){case Io:var n=o.attributes,a=s.attributes=new Yi,c=n.length;a._ownerElement=s;for(var u=0;u<c;u++)s.setAttributeNode(qn(t,n.item(u),!0));break;case ue:e=!0}if(e)for(var d=o.firstChild;d;)s.appendChild(qn(t,d,e)),d=d.nextSibling;return s}function tg(t,o,e){t[o]=e}try{if(Object.defineProperty){let t=function(o){switch(o.nodeType){case Io:case st:var e=[];for(o=o.firstChild;o;)o.nodeType!==7&&o.nodeType!==8&&e.push(t(o)),o=o.nextSibling;return e.join("");default:return o.nodeValue}};Sy=t,Object.defineProperty(_e.prototype,"length",{get:function(){return Cn(this),this.$$length}}),Object.defineProperty(T.prototype,"textContent",{get:function(){return t(this)},set:function(o){switch(this.nodeType){case Io:case st:for(;this.firstChild;)this.removeChild(this.firstChild);(o||String(o))&&this.appendChild(this.ownerDocument.createTextNode(o));break;default:this.data=o,this.value=o,this.nodeValue=o}}}),tg=function(o,e,s){o["$$"+e]=s}}}catch{}var Sy;wt.DocumentType=Pi;wt.DOMException=j;wt.DOMImplementation=Am;wt.Element=pt;wt.Node=T;wt.NodeList=et;wt.XMLSerializer=$m});var sg=S(ts=>{"use strict";var eg=Je().freeze;ts.XML_ENTITIES=eg({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});ts.HTML_ENTITIES=eg({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
25
+ `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});ts.entityMap=ts.HTML_ENTITIES});var _g=S(Zn=>{var rs=Je().NAMESPACE,In=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ig=new RegExp("[\\-\\.0-9"+In.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),rg=new RegExp("^"+In.source+ig.source+"*(?::"+In.source+ig.source+"*)?$"),es=0,yt=1,xe=2,ss=3,me=4,ge=5,is=6,Ti=7;function Oe(t,o){this.message=t,this.locator=o,Error.captureStackTrace&&Error.captureStackTrace(this,Oe)}Oe.prototype=new Error;Oe.prototype.name=Oe.name;function cg(){}cg.prototype={parse:function(t,o,e){var s=this.domBuilder;s.startDocument(),lg(o,o={}),Fy(t,o,e,s,this.errorHandler),s.endDocument()}};function Fy(t,o,e,s,i){function r(E){if(E>65535){E-=65536;var X=55296+(E>>10),Z=56320+(E&1023);return String.fromCharCode(X,Z)}else return String.fromCharCode(E)}function n(E){var X=E.slice(1,-1);return Object.hasOwnProperty.call(e,X)?e[X]:X.charAt(0)==="#"?r(parseInt(X.substr(1).replace("x","0x"))):(i.error("entity not found:"+E),E)}function a(E){if(E>k){var X=t.substring(k,E).replace(/&#?\w+;/g,n);m&&c(k),s.characters(X,0,E-k),k=E}}function c(E,X){for(;E>=d&&(X=x.exec(t));)u=X.index,d=u+X[0].length,m.lineNumber++;m.columnNumber=E-u+1}for(var u=0,d=0,x=/.*(?:\r\n?|\n)|.*$/g,m=s.locator,w=[{currentNSMap:o}],f={},k=0;;){try{var W=t.indexOf("<",k);if(W<0){if(!t.substr(k).match(/^\s*$/)){var p=s.doc,q=p.createTextNode(t.substr(k));p.appendChild(q),s.currentElement=q}return}switch(W>k&&a(W),t.charAt(W+1)){case"/":var v=t.indexOf(">",W+3),O=t.substring(W+2,v).replace(/[ \t\n\r]+$/g,""),l=w.pop();v<0?(O=t.substring(W+2).replace(/[\s<].*/,""),i.error("end tag name: "+O+" is not complete:"+l.tagName),v=W+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),i.error("end tag name: "+O+" maybe not complete"),v=W+1+O.length);var g=l.localNSMap,_=l.tagName==O,G=_||l.tagName&&l.tagName.toLowerCase()==O.toLowerCase();if(G){if(s.endElement(l.uri,l.localName,O),g)for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&s.endPrefixMapping(y);_||i.fatalError("end tag name: "+O+" is not match the current start tagName:"+l.tagName)}else w.push(l);v++;break;case"?":m&&c(W),v=Yy(t,W,s);break;case"!":m&&c(W),v=Xy(t,W,s,i);break;default:m&&c(W);var h=new ug,z=w[w.length-1].currentNSMap,v=My(t,W,h,z,n,i),N=h.length;if(!h.closed&&Vy(t,v,h.tagName,f)&&(h.closed=!0,e.nbsp||i.warning("unclosed xml attribute")),m&&N){for(var F=ng(m,{}),V=0;V<N;V++){var I=h[V];c(I.offset),I.locator=ng(m,{})}s.locator=F,ag(h,s,z)&&w.push(h),s.locator=m}else ag(h,s,z)&&w.push(h);rs.isHTML(h.uri)&&!h.closed?v=Ey(t,v,h.tagName,n,s):v++}}catch(E){if(E instanceof Oe)throw E;i.error("element parse error: "+E),v=-1}v>k?k=v:a(Math.max(W,k)+1)}}function ng(t,o){return o.lineNumber=t.lineNumber,o.columnNumber=t.columnNumber,o}function My(t,o,e,s,i,r){function n(w,f,k){e.attributeNames.hasOwnProperty(w)&&r.fatalError("Attribute "+w+" redefined"),e.addValue(w,f.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),k)}for(var a,c,u=++o,d=es;;){var x=t.charAt(u);switch(x){case"=":if(d===yt)a=t.slice(o,u),d=ss;else if(d===xe)d=ss;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(d===ss||d===yt)if(d===yt&&(r.warning('attribute value must after "="'),a=t.slice(o,u)),o=u+1,u=t.indexOf(x,o),u>0)c=t.slice(o,u),n(a,c,o-1),d=ge;else throw new Error("attribute value no end '"+x+"' match");else if(d==me)c=t.slice(o,u),n(a,c,o),r.warning('attribute "'+a+'" missed start quot('+x+")!!"),o=u+1,d=ge;else throw new Error('attribute value must after "="');break;case"/":switch(d){case es:e.setTagName(t.slice(o,u));case ge:case is:case Ti:d=Ti,e.closed=!0;case me:case yt:break;case xe:e.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return r.error("unexpected end of input"),d==es&&e.setTagName(t.slice(o,u)),u;case">":switch(d){case es:e.setTagName(t.slice(o,u));case ge:case is:case Ti:break;case me:case yt:c=t.slice(o,u),c.slice(-1)==="/"&&(e.closed=!0,c=c.slice(0,-1));case xe:d===xe&&(c=a),d==me?(r.warning('attribute "'+c+'" missed quot(")!'),n(a,c,o)):((!rs.isHTML(s[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&r.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),n(c,c,o));break;case ss:throw new Error("attribute value missed!!")}return u;case"\x80":x=" ";default:if(x<=" ")switch(d){case es:e.setTagName(t.slice(o,u)),d=is;break;case yt:a=t.slice(o,u),d=xe;break;case me:var c=t.slice(o,u);r.warning('attribute "'+c+'" missed quot(")!!'),n(a,c,o);case ge:d=is;break}else switch(d){case xe:var m=e.tagName;(!rs.isHTML(s[""])||!a.match(/^(?:disabled|checked|selected)$/i))&&r.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n(a,a,o),o=u,d=yt;break;case ge:r.warning('attribute space is required"'+a+'"!!');case is:d=yt,o=u;break;case ss:d=me,o=u;break;case Ti:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function ag(t,o,e){for(var s=t.tagName,i=null,x=t.length;x--;){var r=t[x],n=r.qName,a=r.value,m=n.indexOf(":");if(m>0)var c=r.prefix=n.slice(0,m),u=n.slice(m+1),d=c==="xmlns"&&u;else u=n,c=null,d=n==="xmlns"&&"";r.localName=u,d!==!1&&(i==null&&(i={},lg(e,e={})),e[d]=i[d]=a,r.uri=rs.XMLNS,o.startPrefixMapping(d,a))}for(var x=t.length;x--;){r=t[x];var c=r.prefix;c&&(c==="xml"&&(r.uri=rs.XML),c!=="xmlns"&&(r.uri=e[c||""]))}var m=s.indexOf(":");m>0?(c=t.prefix=s.slice(0,m),u=t.localName=s.slice(m+1)):(c=null,u=t.localName=s);var w=t.uri=e[c||""];if(o.startElement(w,u,s,t),t.closed){if(o.endElement(w,u,s),i)for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&o.endPrefixMapping(c)}else return t.currentNSMap=e,t.localNSMap=i,!0}function Ey(t,o,e,s,i){if(/^(?:script|textarea)$/i.test(e)){var r=t.indexOf("</"+e+">",o),n=t.substring(o+1,r);if(/[&<]/.test(n))return/^script$/i.test(e)?(i.characters(n,0,n.length),r):(n=n.replace(/&#?\w+;/g,s),i.characters(n,0,n.length),r)}return o+1}function Vy(t,o,e,s){var i=s[e];return i==null&&(i=t.lastIndexOf("</"+e+">"),i<o&&(i=t.lastIndexOf("</"+e)),s[e]=i),i<o}function lg(t,o){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}function Xy(t,o,e,s){var i=t.charAt(o+2);switch(i){case"-":if(t.charAt(o+3)==="-"){var r=t.indexOf("-->",o+4);return r>o?(e.comment(t,o+4,r-o-4),r+3):(s.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(o+3,6)=="CDATA["){var r=t.indexOf("]]>",o+9);return e.startCDATA(),e.characters(t,o+9,r-o-9),e.endCDATA(),r+3}var n=Iy(t,o),a=n.length;if(a>1&&/!doctype/i.test(n[0][0])){var c=n[1][0],u=!1,d=!1;a>3&&(/^public$/i.test(n[2][0])?(u=n[3][0],d=a>4&&n[4][0]):/^system$/i.test(n[2][0])&&(d=n[3][0]));var x=n[a-1];return e.startDTD(c,u,d),e.endDTD(),x.index+x[0].length}}return-1}function Yy(t,o,e){var s=t.indexOf("?>",o);if(s){var i=t.substring(o,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){var r=i[0].length;return e.processingInstruction(i[1],i[2]),s+2}else return-1}return-1}function ug(){this.attributeNames={}}ug.prototype={setTagName:function(t){if(!rg.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,o,e){if(!rg.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:o,offset:e}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function Iy(t,o){var e,s=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=o,i.exec(t);e=i.exec(t);)if(s.push(e),e[1])return s}Zn.XMLReader=cg;Zn.ParseError=Oe});var yg=S(Ai=>{var Zy=Je(),Py=Yn(),xg=sg(),Og=_g(),Ly=Py.DOMImplementation,mg=Zy.NAMESPACE,Ty=Og.ParseError,Uy=Og.XMLReader;function dg(t){return t.replace(/\r[\n\u0085]/g,`
26
26
  `).replace(/[\r\u0085\u2028]/g,`
27
- `)}function wg(t){this.options=t||{locator:{}}}wg.prototype.parseFromString=function(t,o){var e=this.options,s=new Uy,i=e.domBuilder||new rs,r=e.errorHandler,n=e.locator,a=e.xmlns||{},c=/\/x?html?$/.test(o),u=c?xg.HTML_ENTITIES:xg.XML_ENTITIES;n&&i.setDocumentLocator(n),s.errorHandler=Ay(r,i,n),s.domBuilder=e.domBuilder||i,c&&(a[""]=mg.HTML),a.xml=a.xml||mg.XML;var d=e.normalizeLineEndings||dg;return t&&typeof t=="string"?s.parse(d(t),a,u):s.errorHandler.error("invalid doc source"),i.doc};function Ay(t,o,e){if(!t){if(o instanceof rs)return o;t=o}var s={},i=t instanceof Function;e=e||{};function r(n){var a=t[n];!a&&i&&(a=t.length==2?function(c){t(n,c)}:t),s[n]=a&&function(c){a("[xmldom "+n+"] "+c+Zn(e))}||function(){}}return r("warning"),r("error"),r("fatalError"),s}function rs(){this.cdata=!1}function Oe(t,o){o.lineNumber=t.lineNumber,o.columnNumber=t.columnNumber}rs.prototype={startDocument:function(){this.doc=new Ly().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,o,e,s){var i=this.doc,r=i.createElementNS(t,e||o),n=s.length;Ui(this,r),this.currentElement=r,this.locator&&Oe(this.locator,r);for(var a=0;a<n;a++){var t=s.getURI(a),c=s.getValue(a),e=s.getQName(a),u=i.createAttributeNS(t,e);this.locator&&Oe(s.getLocator(a),u),u.value=u.nodeValue=c,r.setAttributeNode(u)}},endElement:function(t,o,e){var s=this.currentElement,i=s.tagName;this.currentElement=s.parentNode},startPrefixMapping:function(t,o){},endPrefixMapping:function(t){},processingInstruction:function(t,o){var e=this.doc.createProcessingInstruction(t,o);this.locator&&Oe(this.locator,e),Ui(this,e)},ignorableWhitespace:function(t,o,e){},characters:function(t,o,e){if(t=gg.apply(this,arguments),t){if(this.cdata)var s=this.doc.createCDATASection(t);else var s=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(t)&&this.doc.appendChild(s),this.locator&&Oe(this.locator,s)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,o,e){t=gg.apply(this,arguments);var s=this.doc.createComment(t);this.locator&&Oe(this.locator,s),Ui(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,o,e){var s=this.doc.implementation;if(s&&s.createDocumentType){var i=s.createDocumentType(t,o,e);this.locator&&Oe(this.locator,i),Ui(this,i),this.doc.doctype=i}},warning:function(t){console.warn("[xmldom warning] "+t,Zn(this.locator))},error:function(t){console.error("[xmldom error] "+t,Zn(this.locator))},fatalError:function(t){throw new Ty(t,this.locator)}};function Zn(t){if(t)return`
28
- @`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function gg(t,o,e){return typeof t=="string"?t.substr(o,e):t.length>=o+e||o?new java.lang.String(t,o,e)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){rs.prototype[t]=function(){return null}});function Ui(t,o){t.currentElement?t.currentElement.appendChild(o):t.doc.appendChild(o)}Ai.__DOMHandler=rs;Ai.normalizeLineEndings=dg;Ai.DOMParser=wg});var fg=S(Qi=>{var hg=Xn();Qi.DOMImplementation=hg.DOMImplementation;Qi.XMLSerializer=hg.XMLSerializer;Qi.DOMParser=yg().DOMParser});var kg=S(ns=>{"use strict";var Qy=ns&&ns.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ns,"__esModule",{value:!0});ns.parse=Jy;var jy=fg(),de=Qy(require("assert")),ji=3,zg=4,Ry=8;function Pn(t){return t.nodeType===ji||t.nodeType===Ry||t.nodeType===zg}function at(t){return!t.childNodes||t.childNodes.length===0}function Jy(t){let o=new jy.DOMParser({errorHandler(){}}).parseFromString(t);(0,de.default)(o.documentElement.nodeName==="plist","malformed document. First element should be <plist>");let e=we(o.documentElement);return e.length===1&&(e=e[0]),e}function we(t){let o,e,s,i,r,n;if(!t)return null;if(t.nodeName==="plist"){if(i=[],at(t))return i;for(o=0;o<t.childNodes.length;o++)Pn(t.childNodes[o])||i.push(we(t.childNodes[o]));return i}else if(t.nodeName==="dict"){if(e={},s=null,n=0,at(t))return e;for(o=0;o<t.childNodes.length;o++)Pn(t.childNodes[o])||(n%2===0?((0,de.default)(t.childNodes[o].nodeName==="key","Missing key while parsing <dict/>."),s=we(t.childNodes[o])):((0,de.default)(t.childNodes[o].nodeName!=="key",'Unexpected key "'+we(t.childNodes[o])+'" while parsing <dict/>.'),e[s]=we(t.childNodes[o])),n+=1);if(n%2===1)throw new Error('Missing value for "'+s+'" while parsing <dict/>');return e}else if(t.nodeName==="array"){if(i=[],at(t))return i;for(o=0;o<t.childNodes.length;o++)Pn(t.childNodes[o])||(r=we(t.childNodes[o]),r!=null&&i.push(r));return i}else if(t.nodeName!=="#text"){if(t.nodeName==="key")return at(t)?"":t.childNodes[0].nodeValue;if(t.nodeName==="string"){if(r="",at(t))return r;for(o=0;o<t.childNodes.length;o++){let a=t.childNodes[o].nodeType;(a===ji||a===zg)&&(r+=t.childNodes[o].nodeValue)}return r}else{if(t.nodeName==="integer")return(0,de.default)(!at(t),'Cannot parse "" as integer.'),parseInt(t.childNodes[0].nodeValue,10);if(t.nodeName==="real"){for((0,de.default)(!at(t),'Cannot parse "" as real.'),r="",o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===ji&&(r+=t.childNodes[o].nodeValue);return parseFloat(r)}else if(t.nodeName==="data"){if(r="",at(t))return Buffer.from(r,"base64");for(o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===ji&&(r+=t.childNodes[o].nodeValue.replace(/\s+/g,""));return Buffer.from(r,"base64")}else{if(t.nodeName==="date")return(0,de.default)(!at(t),'Cannot parse "" as Date.'),new Date(t.childNodes[0].nodeValue);if(t.nodeName==="true")return!0;if(t.nodeName==="false")return!1}}}}});var Kg=S(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});var By=vm(),Dy=kg();Ln.default={parse:Dy.parse,build:By.build}});var Hy={};Vg(Hy,{ConsoleLogger:()=>ze,repackAppAndroidAsync:()=>ju,repackAppIosAsync:()=>qg});module.exports=Xg(Hy);var Jr=P(require("node:assert")),bt=P(require("node:fs/promises")),tt=P(require("node:path")),Qu=P(Hi());var vo=P(require("fs/promises")),kt=P(require("node:assert")),Fo=P(require("node:path")),vs=P(ur());var yc="./apktool.jar";var fc=Fo.default.resolve(__dirname,yc),zc=/^W: (?<file>.+?):\d+?: error: resource (?<resource>android:.+?) is private./;async function kc(t,o){let{spawnAsync:e,workingDirectory:s}=o,i="decoded-apk";return await e("java",["-jar",fc,"decode",t,"-s","-o",i],{cwd:s}),Fo.default.join(s,i)}async function Kc(t,o){let e=null;try{return await hc(t,o)}catch(s){if(s.stderr&&zc.test(s.stderr))e=s.stderr;else throw s}if(e)return await Lg({logger:o.logger,apktoolError:e}),await hc(t,o);throw new Error("Failed to rebuild APK.")}async function Lg({logger:t,apktoolError:o}){let e=o.split(`
29
- `),s=new Map;for(let i of e){let r=zc.exec(i);if(r?.groups){let{file:n,resource:a}=r.groups;s.has(n)||s.set(n,new Set),s.get(n)?.add(a)}}for(let[i,r]of s){t.info(`Trying to fix private resource - file[${i}] resources[${[...r].join(", ")}]`);let n=await vo.default.readFile(i,"utf8");for(let a of r){let c=`@${a}`,u=a.indexOf(":");(0,kt.default)(u>0,"Invalid android resource.");let d=a.slice(0,u),x=a.slice(u+1);(0,kt.default)(d==="android","Invalid android resource.");let m=`@*android:${x}`;n=n.replaceAll(c,m)}await vo.default.writeFile(i,n,"utf8")}}async function hc(t,o){let{spawnAsync:e,workingDirectory:s}=o,r=Fo.default.resolve(s,"apktool-packed.apk");return await e("java",["-jar",fc,"build","-o",r,t]),r}async function Gc({decodedApkRoot:t,assetRoot:o,bundleOutputPath:e}){await vo.default.copyFile(e,Fo.default.join(t,"assets","index.android.bundle"));let s=await vc(o,Fo.default.join(t,"res"));await Tg(t,s)}async function bc(t,o){let e=Fo.default.join(t,"apktool.yml"),s=await vo.default.readFile(e,"utf8");s=s.replace(/^(\s+renameManifestPackage:\s+)(.+)$/gm,`$1${o}`),await vo.default.writeFile(e,s)}async function Tg(t,o){let e=Fo.default.join(t,"res/values/public.xml"),s=await vo.default.readFile(e,"utf8"),i=new vs.Parser,r=new Set,n=await i.parseStringPromise(s),a=0,c=0,u=0;for(let k of n.resources.public){let p=parseInt(k.$.id,16);k.$.type==="drawable"?(a=Math.max(a,p),r.add(k.$.name)):k.$.type==="raw"&&(c=Math.max(c,p),r.add(k.$.name)),u=Math.max(u,p)}(0,kt.default)(a!==0,"Drawable resources must be defined."),c===0&&(c=(u&4294901760)+65536);let d=(a&4294901760)+65536,x=(c&4294901760)+65536,m=new Set([...o.keys()].filter(k=>!r.has(k)));for(let k of m){let p=o.get(k);p!=null&&(p.type==="drawable"?(a+=1,(0,kt.default)(a<d,"Drawable resource ID boundary exceeded."),n.resources.public.push({$:{type:"drawable",name:p.name,id:`0x${a.toString(16)}`}})):p.type==="raw"&&(c+=1,(0,kt.default)(c<x,"Raw resource ID boundary exceeded."),n.resources.public.push({$:{type:"raw",name:p.name,id:`0x${c.toString(16)}`}})))}let z=new vs.Builder().buildObject(n);await vo.default.writeFile(e,z)}function Ug(t){if(t.startsWith("drawable"))return"drawable";if(t==="raw")return"raw";throw new Error(`Unsupported asset type for ${t}`)}async function vc(t,o,e=0,s=2,i=void 0,r=new Map){await vo.default.mkdir(o,{recursive:!0});let n=await vo.default.readdir(t,{withFileTypes:!0});return await Promise.all(n.map(async a=>{let c=Fo.default.join(t,a.name),u=Fo.default.join(o,a.name);if(a.isDirectory()){let d=i??Ug(a.name);e<s-1?await vc(c,u,e+1,s,d,r):await vo.default.mkdir(u,{recursive:!0})}else{await vo.default.copyFile(c,u);let{name:d}=Fo.default.parse(a.name);(0,kt.default)(i,"Asset type must be defined."),r.set(d,{name:d,type:i})}})),r}var xr=P(require("node:assert")),pc=P(require("node:fs/promises")),Ho=P(require("node:path")),_r=null;async function Wc(t){if(_r==null){let o=t?.androidBuildToolsDir??await Ag(t);(0,xr.default)(o!=null,"Unable to find the Android build-tools directory."),_r={aapt2Path:Ho.default.join(o,"aapt2"),apksignerPath:Ho.default.join(o,"apksigner"),dexdumpPath:Ho.default.join(o,"dexdump"),zipalignPath:Ho.default.join(o,"zipalign")}}return _r}async function qc(t,o,e){let{spawnAsync:s,workingDirectory:i}=o,{apksignerPath:r,zipalignPath:n}=await Wc(o),a=Ho.default.join(i,"resigned.apk"),c=Ho.default.resolve(i,"resigned-unaligned.apk");await s("zip",["-r","-0",c,"lib","resources.arsc"],{cwd:t}),await s("zip",["-r",c,".","-x","lib/*","-x","resources.arsc"],{cwd:t}),await s(n,["-v","-p","4",c,a]);let u=["sign","--ks",e.keyStorePath,"--ks-pass",e.keyStorePassword];return e.keyAlias&&u.push("--ks-key-alias",e.keyAlias),e.keyPassword&&u.push("--key-pass",e.keyPassword),u.push(a),await s(r,u),a}async function Ag(t){let{logger:o}=t,e=process.env.ANDROID_SDK_ROOT;(0,xr.default)(e!=null,"ANDROID_SDK_ROOT environment variable is not set");let s=Ho.default.join(e,"build-tools");try{let r=(await pc.default.readdir(s,{withFileTypes:!0})).filter(n=>n.isDirectory()).map(n=>n.name).sort((n,a)=>{let c=n.split(".").map(Number),u=a.split(".").map(Number);for(let d=0;d<Math.min(c.length,u.length);d++)if(c[d]!==u[d])return u[d]-c[d];return u.length-c.length});return r.length>0?Ho.default.join(s,r[0]):(o.error("No build-tools directories found."),null)}catch(i){return o.error(`Failed to read the build-tools directory: ${i}`),null}}async function Cc(t,o,e){let{logger:s,spawnAsync:i}=e,{dexdumpPath:r}=await Wc(e),n=`"^ Class descriptor : 'L${o.replace(/\./g,"/")}\\/"`;try{let{stdout:a}=await i(r,["classes*.dex","|","grep",n],{cwd:t,shell:!0,stdio:"pipe"}),c=a.split(`
30
- `).map(u=>u.match(/Class descriptor\s+?:\s+?'L(.+);'/)?.[1].replace(/\//g,".")).filter(Boolean);return new Set(c)}catch(a){let c=`Failed to search for classes in the APK - grepAppIdPattern[${o}]: ${a}`;throw s.info(c),new Error(c)}}var Yt=P(require("node:assert")),Ge=P(require("node:fs/promises")),vl=P(require("node:path")),Cs=P(ur());var Kl=P(fl()),Gl=P(require("node:assert")),Kt=P(require("node:fs/promises")),Vt=P(require("node:path"));async function bl(t){return(await Kt.default.stat(t).catch(()=>null))?.isFile()??!1}async function qs(t){return(await Kt.default.stat(t).catch(()=>null))?.isDirectory()??!1}function ke(t){return(0,Gl.default)(t!=null,"Expected value to be non-null"),t}async function Ke(t){let o=t.platform==="android"?".apk":".ipa";return{...t,projectRoot:Vt.default.resolve(t.projectRoot),workingDirectory:t.workingDirectory??await Kt.default.mkdtemp(Vt.default.join(kl(),"repack-app-")),outputPath:t.outputPath??Vt.default.join(t.projectRoot,`repacked${o}`),logger:KO(t.logger),spawnAsync:t.spawnAsync??GO(!!t.verbose)}}function KO(t){return t!=null?Ws.isBunyanLikeLogger(t)?new Ws(t):t:new ze}var ze=class{debug(...o){console.debug(...o)}info(...o){console.log(...o)}warn(...o){console.warn(...o)}error(...o){console.error(...o)}time(o){console.time(o)}timeEnd(o){console.timeEnd(o)}},Ws=class{constructor(o){this.logger=o}timerMap={};static isBunyanLikeLogger(o){return o.info&&o.time===void 0}debug(...o){this.logger.debug(o.join(""))}info(...o){this.logger.info(o.join(""))}warn(...o){this.logger.warn(o.join(""))}error(...o){this.logger.error(o.join(""))}time(o){this.timerMap[o]=Date.now()}timeEnd(o){if(this.timerMap[o]==null){this.logger.warn(`Timer '${o}' does not exist`);return}let e=Date.now()-this.timerMap[o];this.logger.info(`${o}: ${e} ms`),delete this.timerMap[o]}};function GO(t){return function(e,s,i){return(0,Kl.default)(e,s,{stdio:t?"inherit":"pipe",...i})}}async function Xt(t,o){await Kt.default.mkdir(o,{recursive:!0});let e=await Kt.default.readdir(t,{withFileTypes:!0});for(let s of e){let i=Vt.default.join(t,s.name),r=Vt.default.join(o,s.name);s.isDirectory()?await Xt(i,r):s.isFile()&&await Kt.default.copyFile(i,r)}}async function pl({config:t,decodedApkRoot:o}){let e=vl.default.join(o,"res","values","strings.xml"),s=await Ge.default.readFile(e,"utf8");s=s.replace(/(<string name="app_name">)(.+)(<\/string>)/,`$1${t.name}$3`),await Ge.default.writeFile(e,s)}async function Wl({config:t,androidManiestXml:o,dexClasses:e,originalAppId:s,originalAppIdFallback:i,updatesRuntimeVersion:r}){let n=ke(t.android?.package);o.manifest.$.package=n,br(o,d=>d.startsWith(s)&&!e.has(d)?d.replace(s,n):d);let a=Gr("manifest",o.manifest,(d,x)=>d==="intent-filter"&&Gr(d,x,(m,w)=>m==="action"&&w[0].$?.["android:name"]==="android.intent.action.VIEW").length>0),c=Array.isArray(t.scheme)?t.scheme[0]:t.scheme;for(let d of a)br(d,x=>{let m=x.replace(s,n).replace(/^exp\+.+$/g,`exp+${ke(t.slug)}`);return c&&(m=m.replace(/^myapp$/g,c)),i!=null&&(m=m.replace(i,n)),m});let u=o.manifest.application[0];(0,Yt.default)(u.$?.["android:name"]?.endsWith(".MainApplication"),"Expected application node to be named as MainApplication"),bO(u,t,r)}async function ql(t){let o=await Ge.default.readFile(t,"utf8");return await new Cs.Parser().parseStringPromise(o)}async function Cl(t,o){let s=new Cs.Builder().buildObject(t);await Ge.default.writeFile(o,s)}function Nl(t){let o=t.manifest.$.package;return(0,Yt.default)(o!=null,"Expected package attribute to be present in AndroidManifest.xml"),o}function Sl(t,o){let e=t.manifest.application?.[0]?.$?.["android:name"];if(e){let s=e.replace(/\.[^.]+$/,"");if(s!==e&&s!==o)return s}return null}function bO(t,o,e){let s=t["meta-data"]??[],i=o.updates?.enabled??!0,r=s.find(u=>u.$?.["android:name"]==="expo.modules.updates.ENABLED");r!=null?((0,Yt.default)(r.$!=null),r.$["android:value"]=i?"true":"false"):s.push({$:{"android:name":"expo.modules.updates.ENABLED","android:value":i?"true":"false"}});let n=s.find(u=>u.$?.["android:name"]==="expo.modules.updates.EXPO_RUNTIME_VERSION");e!=null&&(n!=null?((0,Yt.default)(n.$!=null),n.$["android:value"]=e):s.push({$:{"android:name":"expo.modules.updates.EXPO_RUNTIME_VERSION","android:value":e}}));let a=s.find(u=>u.$?.["android:name"]==="expo.modules.updates.EXPO_UPDATE_URL"),c=o.updates?.url;c&&(a!=null?((0,Yt.default)(a.$!=null),a.$["android:value"]=c):s.push({$:{"android:name":"expo.modules.updates.EXPO_UPDATE_URL","android:value":c}}))}function Gr(t,o,e){return o==null?[]:e(t,o)?[o]:Object.keys(o).filter(s=>s!=="$"&&s!=="_").flatMap(s=>{let i=o[s];return Gr(s,i,e)})}function br(t,o){if(t==null)return;let e=t.$??{};for(let[s,i]of Object.entries(e))e[s]=o(i);for(let[s,i]of Object.entries(t))s==="$"||s==="_"||br(i,o)}var Fl="./debug.keystore";var Zu=P(Iu());function As(t,o){let e=process.env;for(let[s,i]of Object.entries(o??{})){if(e[s]!==void 0)continue;let r;i==null?r="":typeof i=="string"?r=i:r=JSON.stringify(i),e[s]=r}Td("development"),(0,Zu.loadProjectEnv)(t)}function Td(t){process.env.NODE_ENV=process.env.NODE_ENV||t,process.env.BABEL_ENV=process.env.BABEL_ENV||process.env.NODE_ENV,globalThis.__DEV__=process.env.NODE_ENV!=="production"}var js=P(require("node:assert")),Qs=P(require("node:fs/promises")),Mo=P(require("node:path")),Rt=P(Uu());async function Rs(t,o){let{workingDirectory:e}=t,s=Mo.default.join(e,"app.config");return await Qs.default.writeFile(s,JSON.stringify(o)),s}async function Js(t){let{platform:o,projectRoot:e,spawnAsync:s,workingDirectory:i}=t,{stdout:r}=await s("node",["-e","require('expo/scripts/resolveAppEntry')",e,o,"absolute"],{cwd:e,stdio:"pipe"}),n=Rt.default.silent(t.projectRoot,"expo-updates/utils/build/createUpdatesResources.js");return(0,js.default)(n,"Failed to resolve `createUpdatesResources.js` within expo-updates package"),await s("node",[n,o,e,i,"all",r.trim()],{cwd:e}),Mo.default.join(i,"app.manifest")}function Bs(t){let o=Au(t);(0,js.default)(o,"Failed to resolve '@expo/config' package in the project");let{getPackageJson:e}=require(o),s=e(t);return!!(s.dependencies&&"expo-updates"in s.dependencies)}async function Ds(t,o){let{projectRoot:e,spawnAsync:s}=t,i=Rt.default.silent(e,"expo-updates/bin/cli")??(0,Rt.default)(e,"expo-updates/bin/cli.js"),{stdout:r}=await s(i,["runtimeversion:resolve","--platform","android","--workflow","managed"],{cwd:e,stdio:"pipe"});return JSON.parse(r).runtimeVersion??null}function Au(t){let o=Rt.default.silent(t,"expo/package.json");return o?Rt.default.silent(Mo.default.dirname(o),"@expo/config")??null:null}function $s(t,o){let e=Au(t);(0,js.default)(e,"Failed to resolve '@expo/config' package in the project");let{getConfig:s}=require(e);return s(t,o)}async function Hs(t,o){let{projectRoot:e,platform:s,spawnAsync:i,workingDirectory:r}=o,n=Mo.default.resolve(r,"bundles");await Qs.default.mkdir(n,{recursive:!0});let a=Mo.default.join(n,"assets");await Qs.default.mkdir(a,{recursive:!0});let{stdout:c}=await i("node",["-e","require('expo/scripts/resolveAppEntry')",e,s,"absolute"],{cwd:e,stdio:"pipe"}),u=Ad(t,s),d=s==="android"?"index.android.bundle":"main.bundle",x=Mo.default.join(n,d),m=["expo","export:embed","--platform",s,"--entry-file",c.trim(),"--bundle-output",Mo.default.join(n,d),"--assets-dest",Mo.default.join(n,"assets"),"--dev","false","--reset-cache"];return u?(m.push("--minify","false"),m.push("--bytecode","true"),m.push("--unstable-transform-profile","hermes")):m.push("--minify","true"),o.exportEmbedOptions?.sourcemapOutput&&m.push("--sourcemap-output",o.exportEmbedOptions.sourcemapOutput),await i("npx",m,{cwd:e}),{bundleOutputPath:x,assetRoot:a}}async function oi({appWorkingDirectory:t,options:o}){if(o.exportEmbedOptions!=null)return!0;let e;return o.platform==="android"?e=Mo.default.join(t,"assets","index.android.bundle"):e=Mo.default.join(t,"main.jsbundle"),await bl(e)}function Ad(t,o){switch(o){case"android":return(t.android?.jsEngine??t.jsEngine)!=="jsc";case"ios":return(t.ios?.jsEngine??t.jsEngine)!=="jsc";default:return!1}}var Qd=tt.default.resolve(__dirname,Fl);async function ju(t){let o=await Ke(t),{logger:e,spawnAsync:s,workingDirectory:i}=o;await bt.default.mkdir(i,{recursive:!0}),As(o.projectRoot,o.env);let{exp:r}=$s(o.projectRoot,{isPublicConfig:!0,skipSDKVersionRequirement:!0}),n=await kc(tt.default.resolve(o.sourceAppPath),o);(0,Jr.default)(r.android?.package,"Expected app ID (`android.package`) to be defined in app.json");let a=Bs(o.projectRoot),c=a?await Ds(o,r):null;if(e.info(Qu.default.dim(`Resolved runtime version: ${c}`)),await oi({appWorkingDirectory:n,options:o})){e.time("Generating bundle");let{assetRoot:l,bundleOutputPath:g}=await Hs(r,o);if(e.timeEnd("Generating bundle"),e.time("Adding bundled resources"),await Gc({decodedApkRoot:n,assetRoot:l,bundleOutputPath:g}),e.timeEnd("Adding bundled resources"),a){e.time("Generating 'app.manifest' for expo-updates");let _=await Js(o),G=tt.default.join(n,"assets");await bt.default.copyFile(_,tt.default.join(G,tt.default.basename(_))),e.timeEnd("Generating 'app.manifest' for expo-updates")}}e.time("Updating AndroidManifest.xml");let d=tt.default.join(n,"AndroidManifest.xml"),x=await ql(d),m=Nl(x),w=new Set([m]),z=Sl(x,m);z!=null&&w.add(z);let k=await Promise.any(Array.from(w).map(l=>Cc(n,l,o)));(0,Jr.default)(k!=null,"Failed to search for dex classes with appId in the APK"),await Wl({config:r,androidManiestXml:x,dexClasses:k,originalAppId:m,originalAppIdFallback:z,options:o,updatesRuntimeVersion:c}),await bc(n,r.android?.package),await Cl(x,d),e.timeEnd("Updating AndroidManifest.xml"),e.time("Updating resources"),await pl({config:r,decodedApkRoot:n}),e.timeEnd("Updating resources"),e.time("Generating app config");let p=await Rs(o,r);await bt.default.copyFile(p,tt.default.join(n,"assets","app.config")),e.timeEnd("Generating app config"),e.time("Creating updated apk");let W=await Kc(n,o),q=tt.default.join(i,"unzip");await bt.default.mkdir(q,{recursive:!0}),await s("unzip",["-o",W,"-d",q]);let O=await qc(q,o,{keyStorePath:o.androidSigningOptions?.keyStorePath??Qd,keyStorePassword:o.androidSigningOptions?.keyStorePassword??"pass:android",keyAlias:o.androidSigningOptions?.keyAlias,keyPassword:o.androidSigningOptions?.keyPassword});if(e.timeEnd("Creating updated apk"),await bt.default.rename(O,o.outputPath),!o.skipWorkingDirCleanup)try{await bt.default.rm(i,{recursive:!0})}catch{}return o.outputPath}var Bi=P(require("node:assert")),ft=P(require("node:fs/promises")),Ro=P(require("node:path")),Wg=P(Hi());var g_=P(n_(),1);var Ce=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};var ow={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Ne=t=>t.replace(/[[\]\\-]/g,"\\$&"),tw=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),a_=t=>t.join(""),c_=(t,o)=>{let e=o;if(t.charAt(e)!=="[")throw new Error("not in a brace expression");let s=[],i=[],r=e+1,n=!1,a=!1,c=!1,u=!1,d=e,x="";o:for(;r<t.length;){let k=t.charAt(r);if((k==="!"||k==="^")&&r===e+1){u=!0,r++;continue}if(k==="]"&&n&&!c){d=r+1;break}if(n=!0,k==="\\"&&!c){c=!0,r++;continue}if(k==="["&&!c){for(let[p,[W,q,O]]of Object.entries(ow))if(t.startsWith(p,r)){if(x)return["$.",!1,t.length-e,!0];r+=p.length,O?i.push(W):s.push(W),a=a||q;continue o}}if(c=!1,x){k>x?s.push(Ne(x)+"-"+Ne(k)):k===x&&s.push(Ne(k)),x="",r++;continue}if(t.startsWith("-]",r+1)){s.push(Ne(k+"-")),r+=2;continue}if(t.startsWith("-",r+1)){x=k,r+=2;continue}s.push(Ne(k)),r++}if(d<r)return["",!1,0,!1];if(!s.length&&!i.length)return["$.",!1,t.length-e,!0];if(i.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!u){let k=s[0].length===2?s[0].slice(-1):s[0];return[tw(k),!1,d-e,!1]}let m="["+(u?"^":"")+a_(s)+"]",w="["+(u?"":"^")+a_(i)+"]";return[s.length&&i.length?"("+m+"|"+w+")":s.length?m:w,a,d-e,!0]};var Eo=(t,{windowsPathsNoEscape:o=!1}={})=>o?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var ew=new Set(["!","?","+","*","@"]),l_=t=>ew.has(t),sw="(?!(?:^|/)\\.\\.?(?:$|/))",ti="(?!\\.)",iw=new Set(["[","."]),rw=new Set(["..","."]),nw=new Set("().*{}+?[]^$\\!"),aw=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),$r="[^/]",u_=$r+"*?",__=$r+"+?",Jt=class t{type;#o;#t;#r=!1;#s=[];#n;#f;#l;#_=!1;#a;#c;#i=!1;constructor(o,e,s={}){this.type=o,o&&(this.#t=!0),this.#n=e,this.#o=this.#n?this.#n.#o:this,this.#a=this.#o===this?s:this.#o.#a,this.#l=this.#o===this?[]:this.#o.#l,o==="!"&&!this.#o.#_&&this.#l.push(this),this.#f=this.#n?this.#n.#s.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let o of this.#s)if(typeof o!="string"&&(o.type||o.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#s.map(o=>String(o)).join("|")+")":this.#c=this.#s.map(o=>String(o)).join("")}#d(){if(this!==this.#o)throw new Error("should only call on root");if(this.#_)return this;this.toString(),this.#_=!0;let o;for(;o=this.#l.pop();){if(o.type!=="!")continue;let e=o,s=e.#n;for(;s;){for(let i=e.#f+1;!s.type&&i<s.#s.length;i++)for(let r of o.#s){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(s.#s[i])}e=s,s=e.#n}}return this}push(...o){for(let e of o)if(e!==""){if(typeof e!="string"&&!(e instanceof t&&e.#n===this))throw new Error("invalid part: "+e);this.#s.push(e)}}toJSON(){let o=this.type===null?this.#s.slice().map(e=>typeof e=="string"?e:e.toJSON()):[this.type,...this.#s.map(e=>e.toJSON())];return this.isStart()&&!this.type&&o.unshift([]),this.isEnd()&&(this===this.#o||this.#o.#_&&this.#n?.type==="!")&&o.push({}),o}isStart(){if(this.#o===this)return!0;if(!this.#n?.isStart())return!1;if(this.#f===0)return!0;let o=this.#n;for(let e=0;e<this.#f;e++){let s=o.#s[e];if(!(s instanceof t&&s.type==="!"))return!1}return!0}isEnd(){if(this.#o===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let o=this.#n?this.#n.#s.length:0;return this.#f===o-1}copyIn(o){typeof o=="string"?this.push(o):this.push(o.clone(this))}clone(o){let e=new t(this.type,o);for(let s of this.#s)e.copyIn(s);return e}static#w(o,e,s,i){let r=!1,n=!1,a=-1,c=!1;if(e.type===null){let w=s,z="";for(;w<o.length;){let k=o.charAt(w++);if(r||k==="\\"){r=!r,z+=k;continue}if(n){w===a+1?(k==="^"||k==="!")&&(c=!0):k==="]"&&!(w===a+2&&c)&&(n=!1),z+=k;continue}else if(k==="["){n=!0,a=w,c=!1,z+=k;continue}if(!i.noext&&l_(k)&&o.charAt(w)==="("){e.push(z),z="";let p=new t(k,e);w=t.#w(o,p,w,i),e.push(p);continue}z+=k}return e.push(z),w}let u=s+1,d=new t(null,e),x=[],m="";for(;u<o.length;){let w=o.charAt(u++);if(r||w==="\\"){r=!r,m+=w;continue}if(n){u===a+1?(w==="^"||w==="!")&&(c=!0):w==="]"&&!(u===a+2&&c)&&(n=!1),m+=w;continue}else if(w==="["){n=!0,a=u,c=!1,m+=w;continue}if(l_(w)&&o.charAt(u)==="("){d.push(m),m="";let z=new t(w,d);d.push(z),u=t.#w(o,z,u,i);continue}if(w==="|"){d.push(m),m="",x.push(d),d=new t(null,e);continue}if(w===")")return m===""&&e.#s.length===0&&(e.#i=!0),d.push(m),m="",e.push(...x,d),u;m+=w}return e.type=null,e.#t=void 0,e.#s=[o.substring(s-1)],u}static fromGlob(o,e={}){let s=new t(null,void 0,e);return t.#w(o,s,0,e),s}toMMPattern(){if(this!==this.#o)return this.#o.toMMPattern();let o=this.toString(),[e,s,i,r]=this.toRegExpSource();if(!(i||this.#t||this.#a.nocase&&!this.#a.nocaseMagicOnly&&o.toUpperCase()!==o.toLowerCase()))return s;let a=(this.#a.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${e}$`,a),{_src:e,_glob:o})}get options(){return this.#a}toRegExpSource(o){let e=o??!!this.#a.dot;if(this.#o===this&&this.#d(),!this.type){let c=this.isStart()&&this.isEnd(),u=this.#s.map(w=>{let[z,k,p,W]=typeof w=="string"?t.#x(w,this.#t,c):w.toRegExpSource(o);return this.#t=this.#t||p,this.#r=this.#r||W,z}).join(""),d="";if(this.isStart()&&typeof this.#s[0]=="string"&&!(this.#s.length===1&&rw.has(this.#s[0]))){let z=iw,k=e&&z.has(u.charAt(0))||u.startsWith("\\.")&&z.has(u.charAt(2))||u.startsWith("\\.\\.")&&z.has(u.charAt(4)),p=!e&&!o&&z.has(u.charAt(0));d=k?sw:p?ti:""}let x="";return this.isEnd()&&this.#o.#_&&this.#n?.type==="!"&&(x="(?:$|\\/)"),[d+u+x,Eo(u),this.#t=!!this.#t,this.#r]}let s=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#m(e);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let c=this.toString();return this.#s=[c],this.type=null,this.#t=void 0,[c,Eo(this.toString()),!1,!1]}let n=!s||o||e||!ti?"":this.#m(!0);n===r&&(n=""),n&&(r=`(?:${r})(?:${n})*?`);let a="";if(this.type==="!"&&this.#i)a=(this.isStart()&&!e?ti:"")+__;else{let c=this.type==="!"?"))"+(this.isStart()&&!e&&!o?ti:"")+u_+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&n?")":this.type==="*"&&n?")?":`)${this.type}`;a=i+r+c}return[a,Eo(r),this.#t=!!this.#t,this.#r]}#m(o){return this.#s.map(e=>{if(typeof e=="string")throw new Error("string type in extglob ast??");let[s,i,r,n]=e.toRegExpSource(o);return this.#r=this.#r||n,s}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static#x(o,e,s=!1){let i=!1,r="",n=!1;for(let a=0;a<o.length;a++){let c=o.charAt(a);if(i){i=!1,r+=(nw.has(c)?"\\":"")+c;continue}if(c==="\\"){a===o.length-1?r+="\\\\":i=!0;continue}if(c==="["){let[u,d,x,m]=c_(o,a);if(x){r+=u,n=n||d,a+=x-1,e=e||m;continue}}if(c==="*"){s&&o==="*"?r+=__:r+=u_,e=!0;continue}if(c==="?"){r+=$r,e=!0;continue}r+=aw(c)}return[r,Eo(o),!!e,n]}};var Bt=(t,{windowsPathsNoEscape:o=!1}={})=>o?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var _o=(t,o,e={})=>(Ce(o),!e.nocomment&&o.charAt(0)==="#"?!1:new zo(o,e).match(t)),cw=/^\*+([^+@!?\*\[\(]*)$/,lw=t=>o=>!o.startsWith(".")&&o.endsWith(t),uw=t=>o=>o.endsWith(t),_w=t=>(t=t.toLowerCase(),o=>!o.startsWith(".")&&o.toLowerCase().endsWith(t)),xw=t=>(t=t.toLowerCase(),o=>o.toLowerCase().endsWith(t)),mw=/^\*+\.\*+$/,gw=t=>!t.startsWith(".")&&t.includes("."),Ow=t=>t!=="."&&t!==".."&&t.includes("."),dw=/^\.\*+$/,ww=t=>t!=="."&&t!==".."&&t.startsWith("."),yw=/^\*+$/,hw=t=>t.length!==0&&!t.startsWith("."),fw=t=>t.length!==0&&t!=="."&&t!=="..",zw=/^\?+([^+@!?\*\[\(]*)?$/,kw=([t,o=""])=>{let e=O_([t]);return o?(o=o.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(o)):e},Kw=([t,o=""])=>{let e=d_([t]);return o?(o=o.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(o)):e},Gw=([t,o=""])=>{let e=d_([t]);return o?s=>e(s)&&s.endsWith(o):e},bw=([t,o=""])=>{let e=O_([t]);return o?s=>e(s)&&s.endsWith(o):e},O_=([t])=>{let o=t.length;return e=>e.length===o&&!e.startsWith(".")},d_=([t])=>{let o=t.length;return e=>e.length===o&&e!=="."&&e!==".."},w_=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",x_={win32:{sep:"\\"},posix:{sep:"/"}},vw=w_==="win32"?x_.win32.sep:x_.posix.sep;_o.sep=vw;var io=Symbol("globstar **");_o.GLOBSTAR=io;var pw="[^/]",Ww=pw+"*?",qw="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Cw="(?:(?!(?:\\/|^)\\.).)*?",Nw=(t,o={})=>e=>_o(e,t,o);_o.filter=Nw;var qo=(t,o={})=>Object.assign({},t,o),Sw=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return _o;let o=_o;return Object.assign((s,i,r={})=>o(s,i,qo(t,r)),{Minimatch:class extends o.Minimatch{constructor(i,r={}){super(i,qo(t,r))}static defaults(i){return o.defaults(qo(t,i)).Minimatch}},AST:class extends o.AST{constructor(i,r,n={}){super(i,r,qo(t,n))}static fromGlob(i,r={}){return o.AST.fromGlob(i,qo(t,r))}},unescape:(s,i={})=>o.unescape(s,qo(t,i)),escape:(s,i={})=>o.escape(s,qo(t,i)),filter:(s,i={})=>o.filter(s,qo(t,i)),defaults:s=>o.defaults(qo(t,s)),makeRe:(s,i={})=>o.makeRe(s,qo(t,i)),braceExpand:(s,i={})=>o.braceExpand(s,qo(t,i)),match:(s,i,r={})=>o.match(s,i,qo(t,r)),sep:o.sep,GLOBSTAR:io})};_o.defaults=Sw;var y_=(t,o={})=>(Ce(t),o.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,g_.default)(t));_o.braceExpand=y_;var Fw=(t,o={})=>new zo(t,o).makeRe();_o.makeRe=Fw;var Mw=(t,o,e={})=>{let s=new zo(o,e);return t=t.filter(i=>s.match(i)),s.options.nonull&&!t.length&&t.push(o),t};_o.match=Mw;var m_=/[?*]|[+@!]\(.*?\)|\[|\]/,Ew=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),zo=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(o,e={}){Ce(o),e=e||{},this.options=e,this.pattern=o,this.platform=e.platform||w_,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=e.windowsNoMagicRoot!==void 0?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let o of this.set)for(let e of o)if(typeof e!="string")return!0;return!1}debug(...o){}make(){let o=this.pattern,e=this.options;if(!e.nocomment&&o.charAt(0)==="#"){this.comment=!0;return}if(!o){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let s=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let i=this.globParts.map((r,n,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[0]===""&&r[1]===""&&(r[2]==="?"||!m_.test(r[2]))&&!m_.test(r[3]),u=/^[a-z]:/i.test(r[0]);if(c)return[...r.slice(0,4),...r.slice(4).map(d=>this.parse(d))];if(u)return[r[0],...r.slice(1).map(d=>this.parse(d))]}return r.map(c=>this.parse(c))});if(this.debug(this.pattern,i),this.set=i.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let n=this.set[r];n[0]===""&&n[1]===""&&this.globParts[r][2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])&&(n[2]="?")}this.debug(this.pattern,this.set)}preprocess(o){if(this.options.noglobstar)for(let s=0;s<o.length;s++)for(let i=0;i<o[s].length;i++)o[s][i]==="**"&&(o[s][i]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(o=this.firstPhasePreProcess(o),o=this.secondPhasePreProcess(o)):e>=1?o=this.levelOneOptimize(o):o=this.adjascentGlobstarOptimize(o),o}adjascentGlobstarOptimize(o){return o.map(e=>{let s=-1;for(;(s=e.indexOf("**",s+1))!==-1;){let i=s;for(;e[i+1]==="**";)i++;i!==s&&e.splice(s,i-s)}return e})}levelOneOptimize(o){return o.map(e=>(e=e.reduce((s,i)=>{let r=s[s.length-1];return i==="**"&&r==="**"?s:i===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(s.pop(),s):(s.push(i),s)},[]),e.length===0?[""]:e))}levelTwoFileOptimize(o){Array.isArray(o)||(o=this.slashSplit(o));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<o.length-1;i++){let r=o[i];i===1&&r===""&&o[0]===""||(r==="."||r==="")&&(e=!0,o.splice(i,1),i--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(e=!0,o.pop())}let s=0;for(;(s=o.indexOf("..",s+1))!==-1;){let i=o[s-1];i&&i!=="."&&i!==".."&&i!=="**"&&(e=!0,o.splice(s-1,2),s-=2)}}while(e);return o.length===0?[""]:o}firstPhasePreProcess(o){let e=!1;do{e=!1;for(let s of o){let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let n=i;for(;s[n+1]==="**";)n++;n>i&&s.splice(i+1,n-i);let a=s[i+1],c=s[i+2],u=s[i+3];if(a!==".."||!c||c==="."||c===".."||!u||u==="."||u==="..")continue;e=!0,s.splice(i,1);let d=s.slice(0);d[i]="**",o.push(d),i--}if(!this.preserveMultipleSlashes){for(let n=1;n<s.length-1;n++){let a=s[n];n===1&&a===""&&s[0]===""||(a==="."||a==="")&&(e=!0,s.splice(n,1),n--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(e=!0,s.pop())}let r=0;for(;(r=s.indexOf("..",r+1))!==-1;){let n=s[r-1];if(n&&n!=="."&&n!==".."&&n!=="**"){e=!0;let c=r===1&&s[r+1]==="**"?["."]:[];s.splice(r-1,2,...c),s.length===0&&s.push(""),r-=2}}}}while(e);return o}secondPhasePreProcess(o){for(let e=0;e<o.length-1;e++)for(let s=e+1;s<o.length;s++){let i=this.partsMatch(o[e],o[s],!this.preserveMultipleSlashes);if(i){o[e]=[],o[s]=i;break}}return o.filter(e=>e.length)}partsMatch(o,e,s=!1){let i=0,r=0,n=[],a="";for(;i<o.length&&r<e.length;)if(o[i]===e[r])n.push(a==="b"?e[r]:o[i]),i++,r++;else if(s&&o[i]==="**"&&e[r]===o[i+1])n.push(o[i]),i++;else if(s&&e[r]==="**"&&o[i]===e[r+1])n.push(e[r]),r++;else if(o[i]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(a==="b")return!1;a="a",n.push(o[i]),i++,r++}else if(e[r]==="*"&&o[i]&&(this.options.dot||!o[i].startsWith("."))&&o[i]!=="**"){if(a==="a")return!1;a="b",n.push(e[r]),i++,r++}else return!1;return o.length===e.length&&n}parseNegate(){if(this.nonegate)return;let o=this.pattern,e=!1,s=0;for(let i=0;i<o.length&&o.charAt(i)==="!";i++)e=!e,s++;s&&(this.pattern=o.slice(s)),this.negate=e}matchOne(o,e,s=!1){let i=this.options;if(this.isWindows){let k=typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0]),p=!k&&o[0]===""&&o[1]===""&&o[2]==="?"&&/^[a-z]:$/i.test(o[3]),W=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),q=!W&&e[0]===""&&e[1]===""&&e[2]==="?"&&typeof e[3]=="string"&&/^[a-z]:$/i.test(e[3]),O=p?3:k?0:void 0,l=q?3:W?0:void 0;if(typeof O=="number"&&typeof l=="number"){let[g,_]=[o[O],e[l]];g.toLowerCase()===_.toLowerCase()&&(e[l]=g,l>O?e=e.slice(l):O>l&&(o=o.slice(O)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(o=this.levelTwoFileOptimize(o)),this.debug("matchOne",this,{file:o,pattern:e}),this.debug("matchOne",o.length,e.length);for(var n=0,a=0,c=o.length,u=e.length;n<c&&a<u;n++,a++){this.debug("matchOne loop");var d=e[a],x=o[n];if(this.debug(e,d,x),d===!1)return!1;if(d===io){this.debug("GLOBSTAR",[e,d,x]);var m=n,w=a+1;if(w===u){for(this.debug("** at the end");n<c;n++)if(o[n]==="."||o[n]===".."||!i.dot&&o[n].charAt(0)===".")return!1;return!0}for(;m<c;){var z=o[m];if(this.debug(`
31
- globstar while`,o,m,e,w,z),this.matchOne(o.slice(m),e.slice(w),s))return this.debug("globstar found match!",m,c,z),!0;if(z==="."||z===".."||!i.dot&&z.charAt(0)==="."){this.debug("dot detected!",o,m,e,w);break}this.debug("globstar swallow a segment, and continue"),m++}return!!(s&&(this.debug(`
32
- >>> no match, partial?`,o,m,e,w),m===c))}let k;if(typeof d=="string"?(k=x===d,this.debug("string match",d,x,k)):(k=d.test(x),this.debug("pattern match",d,x,k)),!k)return!1}if(n===c&&a===u)return!0;if(n===c)return s;if(a===u)return n===c-1&&o[n]==="";throw new Error("wtf?")}braceExpand(){return y_(this.pattern,this.options)}parse(o){Ce(o);let e=this.options;if(o==="**")return io;if(o==="")return"";let s,i=null;(s=o.match(yw))?i=e.dot?fw:hw:(s=o.match(cw))?i=(e.nocase?e.dot?xw:_w:e.dot?uw:lw)(s[1]):(s=o.match(zw))?i=(e.nocase?e.dot?Kw:kw:e.dot?Gw:bw)(s):(s=o.match(mw))?i=e.dot?Ow:gw:(s=o.match(dw))&&(i=ww);let r=Jt.fromGlob(o,this.options).toMMPattern();return i&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:i}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let o=this.set;if(!o.length)return this.regexp=!1,this.regexp;let e=this.options,s=e.noglobstar?Ww:e.dot?qw:Cw,i=new Set(e.nocase?["i"]:[]),r=o.map(c=>{let u=c.map(d=>{if(d instanceof RegExp)for(let x of d.flags.split(""))i.add(x);return typeof d=="string"?Ew(d):d===io?io:d._src});return u.forEach((d,x)=>{let m=u[x+1],w=u[x-1];d!==io||w===io||(w===void 0?m!==void 0&&m!==io?u[x+1]="(?:\\/|"+s+"\\/)?"+m:u[x]=s:m===void 0?u[x-1]=w+"(?:\\/|"+s+")?":m!==io&&(u[x-1]=w+"(?:\\/|\\/"+s+"\\/)"+m,u[x+1]=io))}),u.filter(d=>d!==io).join("/")}).join("|"),[n,a]=o.length>1?["(?:",")"]:["",""];r="^"+n+r+a+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(o){return this.preserveMultipleSlashes?o.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(o)?["",...o.split(/\/+/)]:o.split(/\/+/)}match(o,e=this.partial){if(this.debug("match",o,this.pattern),this.comment)return!1;if(this.empty)return o==="";if(o==="/"&&e)return!0;let s=this.options;this.isWindows&&(o=o.split("\\").join("/"));let i=this.slashSplit(o);this.debug(this.pattern,"split",i);let r=this.set;this.debug(this.pattern,"set",r);let n=i[i.length-1];if(!n)for(let a=i.length-2;!n&&a>=0;a--)n=i[a];for(let a=0;a<r.length;a++){let c=r[a],u=i;if(s.matchBase&&c.length===1&&(u=[n]),this.matchOne(u,c,e))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(o){return _o.defaults(o).Minimatch}};_o.AST=Jt;_o.Minimatch=zo;_o.escape=Bt;_o.unescape=Eo;var L_=require("node:url");var Dt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,f_=new Set,Hr=typeof process=="object"&&process?process:{},z_=(t,o,e,s)=>{typeof Hr.emitWarning=="function"?Hr.emitWarning(t,o,e,s):console.error(`[${e}] ${o}: ${t}`)},ei=globalThis.AbortController,h_=globalThis.AbortSignal;if(typeof ei>"u"){h_=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,i){this._onabort.push(i)}},ei=class{constructor(){o()}signal=new h_;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let i of this.signal._onabort)i(s);this.signal.onabort?.(s)}}};let t=Hr.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=()=>{t&&(t=!1,z_("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))}}var Vw=t=>!f_.has(t),Cf=Symbol("type"),xt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),k_=t=>xt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?$t:null:null,$t=class extends Array{constructor(o){super(o),this.fill(0)}},on=class t{heap;length;static#o=!1;static create(o){let e=k_(o);if(!e)return[];t.#o=!0;let s=new t(o,e);return t.#o=!1,s}constructor(o,e){if(!t.#o)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},Se=class t{#o;#t;#r;#s;#n;#f;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#_;#a;#c;#i;#d;#w;#m;#x;#K;#O;#G;#b;#h;#z;#k;#g;static unsafeExposeInternals(o){return{starts:o.#b,ttls:o.#h,sizes:o.#G,keyMap:o.#a,keyList:o.#c,valList:o.#i,next:o.#d,prev:o.#w,get head(){return o.#m},get tail(){return o.#x},free:o.#K,isBackgroundFetch:e=>o.#u(e),backgroundFetch:(e,s,i,r)=>o.#Y(e,s,i,r),moveToTail:e=>o.#Z(e),indexes:e=>o.#p(e),rindexes:e=>o.#W(e),isStale:e=>o.#y(e)}}get max(){return this.#o}get maxSize(){return this.#t}get calculatedSize(){return this.#_}get size(){return this.#l}get fetchMethod(){return this.#n}get memoMethod(){return this.#f}get dispose(){return this.#r}get disposeAfter(){return this.#s}constructor(o){let{max:e=0,ttl:s,ttlResolution:i=1,ttlAutopurge:r,updateAgeOnGet:n,updateAgeOnHas:a,allowStale:c,dispose:u,disposeAfter:d,noDisposeOnSet:x,noUpdateTTL:m,maxSize:w=0,maxEntrySize:z=0,sizeCalculation:k,fetchMethod:p,memoMethod:W,noDeleteOnFetchRejection:q,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:l,allowStaleOnFetchAbort:g,ignoreFetchAbort:_}=o;if(e!==0&&!xt(e))throw new TypeError("max option must be a nonnegative integer");let G=e?k_(e):Array;if(!G)throw new Error("invalid max value: "+e);if(this.#o=e,this.#t=w,this.maxEntrySize=z||this.#t,this.sizeCalculation=k,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(W!==void 0&&typeof W!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#f=W,p!==void 0&&typeof p!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#n=p,this.#k=!!p,this.#a=new Map,this.#c=new Array(e).fill(void 0),this.#i=new Array(e).fill(void 0),this.#d=new G(e),this.#w=new G(e),this.#m=0,this.#x=0,this.#K=on.create(e),this.#l=0,this.#_=0,typeof u=="function"&&(this.#r=u),typeof d=="function"?(this.#s=d,this.#O=[]):(this.#s=void 0,this.#O=void 0),this.#z=!!this.#r,this.#g=!!this.#s,this.noDisposeOnSet=!!x,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!q,this.allowStaleOnFetchRejection=!!l,this.allowStaleOnFetchAbort=!!g,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(this.#t!==0&&!xt(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!xt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#C()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!a,this.ttlResolution=xt(i)||i===0?i:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!xt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#q()}if(this.#o===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#o&&!this.#t){let y="LRU_CACHE_UNBOUNDED";Vw(y)&&(f_.add(y),z_("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",y,t))}}getRemainingTTL(o){return this.#a.has(o)?1/0:0}#q(){let o=new $t(this.#o),e=new $t(this.#o);this.#h=o,this.#b=e,this.#S=(r,n,a=Dt.now())=>{if(e[r]=n!==0?a:0,o[r]=n,n!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#y(r)&&this.#N(this.#c[r],"expire")},n+1);c.unref&&c.unref()}},this.#v=r=>{e[r]=o[r]!==0?Dt.now():0},this.#e=(r,n)=>{if(o[n]){let a=o[n],c=e[n];if(!a||!c)return;r.ttl=a,r.start=c,r.now=s||i();let u=r.now-c;r.remainingTTL=a-u}};let s=0,i=()=>{let r=Dt.now();if(this.ttlResolution>0){s=r;let n=setTimeout(()=>s=0,this.ttlResolution);n.unref&&n.unref()}return r};this.getRemainingTTL=r=>{let n=this.#a.get(r);if(n===void 0)return 0;let a=o[n],c=e[n];if(!a||!c)return 1/0;let u=(s||i())-c;return a-u},this.#y=r=>{let n=e[r],a=o[r];return!!a&&!!n&&(s||i())-n>a}}#v=()=>{};#e=()=>{};#S=()=>{};#y=()=>!1;#C(){let o=new $t(this.#o);this.#_=0,this.#G=o,this.#F=e=>{this.#_-=o[e],o[e]=0},this.#E=(e,s,i,r)=>{if(this.#u(s))return 0;if(!xt(i))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(i=r(s,e),!xt(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#M=(e,s,i)=>{if(o[e]=s,this.#t){let r=this.#t-o[e];for(;this.#_>r;)this.#X(!0)}this.#_+=o[e],i&&(i.entrySize=s,i.totalCalculatedSize=this.#_)}}#F=o=>{};#M=(o,e,s)=>{};#E=(o,e,s,i)=>{if(s||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#p({allowStale:o=this.allowStale}={}){if(this.#l)for(let e=this.#x;!(!this.#V(e)||((o||!this.#y(e))&&(yield e),e===this.#m));)e=this.#w[e]}*#W({allowStale:o=this.allowStale}={}){if(this.#l)for(let e=this.#m;!(!this.#V(e)||((o||!this.#y(e))&&(yield e),e===this.#x));)e=this.#d[e]}#V(o){return o!==void 0&&this.#a.get(this.#c[o])===o}*entries(){for(let o of this.#p())this.#i[o]!==void 0&&this.#c[o]!==void 0&&!this.#u(this.#i[o])&&(yield[this.#c[o],this.#i[o]])}*rentries(){for(let o of this.#W())this.#i[o]!==void 0&&this.#c[o]!==void 0&&!this.#u(this.#i[o])&&(yield[this.#c[o],this.#i[o]])}*keys(){for(let o of this.#p()){let e=this.#c[o];e!==void 0&&!this.#u(this.#i[o])&&(yield e)}}*rkeys(){for(let o of this.#W()){let e=this.#c[o];e!==void 0&&!this.#u(this.#i[o])&&(yield e)}}*values(){for(let o of this.#p())this.#i[o]!==void 0&&!this.#u(this.#i[o])&&(yield this.#i[o])}*rvalues(){for(let o of this.#W())this.#i[o]!==void 0&&!this.#u(this.#i[o])&&(yield this.#i[o])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(o,e={}){for(let s of this.#p()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;if(r!==void 0&&o(r,this.#c[s],this))return this.get(this.#c[s],e)}}forEach(o,e=this){for(let s of this.#p()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;r!==void 0&&o.call(e,r,this.#c[s],this)}}rforEach(o,e=this){for(let s of this.#W()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;r!==void 0&&o.call(e,r,this.#c[s],this)}}purgeStale(){let o=!1;for(let e of this.#W({allowStale:!0}))this.#y(e)&&(this.#N(this.#c[e],"expire"),o=!0);return o}info(o){let e=this.#a.get(o);if(e===void 0)return;let s=this.#i[e],i=this.#u(s)?s.__staleWhileFetching:s;if(i===void 0)return;let r={value:i};if(this.#h&&this.#b){let n=this.#h[e],a=this.#b[e];if(n&&a){let c=n-(Dt.now()-a);r.ttl=c,r.start=Date.now()}}return this.#G&&(r.size=this.#G[e]),r}dump(){let o=[];for(let e of this.#p({allowStale:!0})){let s=this.#c[e],i=this.#i[e],r=this.#u(i)?i.__staleWhileFetching:i;if(r===void 0||s===void 0)continue;let n={value:r};if(this.#h&&this.#b){n.ttl=this.#h[e];let a=Dt.now()-this.#b[e];n.start=Math.floor(Date.now()-a)}this.#G&&(n.size=this.#G[e]),o.unshift([s,n])}return o}load(o){this.clear();for(let[e,s]of o){if(s.start){let i=Date.now()-s.start;s.start=Dt.now()-i}this.set(e,s.value,s)}}set(o,e,s={}){if(e===void 0)return this.delete(o),this;let{ttl:i=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=s,{noUpdateTTL:u=this.noUpdateTTL}=s,d=this.#E(o,e,s.size||0,a);if(this.maxEntrySize&&d>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#N(o,"set"),this;let x=this.#l===0?void 0:this.#a.get(o);if(x===void 0)x=this.#l===0?this.#x:this.#K.length!==0?this.#K.pop():this.#l===this.#o?this.#X(!1):this.#l,this.#c[x]=o,this.#i[x]=e,this.#a.set(o,x),this.#d[this.#x]=x,this.#w[x]=this.#x,this.#x=x,this.#l++,this.#M(x,d,c),c&&(c.set="add"),u=!1;else{this.#Z(x);let m=this.#i[x];if(e!==m){if(this.#k&&this.#u(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=m;w!==void 0&&!n&&(this.#z&&this.#r?.(w,o,"set"),this.#g&&this.#O?.push([w,o,"set"]))}else n||(this.#z&&this.#r?.(m,o,"set"),this.#g&&this.#O?.push([m,o,"set"]));if(this.#F(x),this.#M(x,d,c),this.#i[x]=e,c){c.set="replace";let w=m&&this.#u(m)?m.__staleWhileFetching:m;w!==void 0&&(c.oldValue=w)}}else c&&(c.set="update")}if(i!==0&&!this.#h&&this.#q(),this.#h&&(u||this.#S(x,i,r),c&&this.#e(c,x)),!n&&this.#g&&this.#O){let m=this.#O,w;for(;w=m?.shift();)this.#s?.(...w)}return this}pop(){try{for(;this.#l;){let o=this.#i[this.#m];if(this.#X(!0),this.#u(o)){if(o.__staleWhileFetching)return o.__staleWhileFetching}else if(o!==void 0)return o}}finally{if(this.#g&&this.#O){let o=this.#O,e;for(;e=o?.shift();)this.#s?.(...e)}}}#X(o){let e=this.#m,s=this.#c[e],i=this.#i[e];return this.#k&&this.#u(i)?i.__abortController.abort(new Error("evicted")):(this.#z||this.#g)&&(this.#z&&this.#r?.(i,s,"evict"),this.#g&&this.#O?.push([i,s,"evict"])),this.#F(e),o&&(this.#c[e]=void 0,this.#i[e]=void 0,this.#K.push(e)),this.#l===1?(this.#m=this.#x=0,this.#K.length=0):this.#m=this.#d[e],this.#a.delete(s),this.#l--,e}has(o,e={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:i}=e,r=this.#a.get(o);if(r!==void 0){let n=this.#i[r];if(this.#u(n)&&n.__staleWhileFetching===void 0)return!1;if(this.#y(r))i&&(i.has="stale",this.#e(i,r));else return s&&this.#v(r),i&&(i.has="hit",this.#e(i,r)),!0}else i&&(i.has="miss");return!1}peek(o,e={}){let{allowStale:s=this.allowStale}=e,i=this.#a.get(o);if(i===void 0||!s&&this.#y(i))return;let r=this.#i[i];return this.#u(r)?r.__staleWhileFetching:r}#Y(o,e,s,i){let r=e===void 0?void 0:this.#i[e];if(this.#u(r))return r;let n=new ei,{signal:a}=s;a?.addEventListener("abort",()=>n.abort(a.reason),{signal:n.signal});let c={signal:n.signal,options:s,context:i},u=(k,p=!1)=>{let{aborted:W}=n.signal,q=s.ignoreFetchAbort&&k!==void 0;if(s.status&&(W&&!p?(s.status.fetchAborted=!0,s.status.fetchError=n.signal.reason,q&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),W&&!q&&!p)return x(n.signal.reason);let O=w;return this.#i[e]===w&&(k===void 0?O.__staleWhileFetching?this.#i[e]=O.__staleWhileFetching:this.#N(o,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(o,k,c.options))),k},d=k=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=k),x(k)),x=k=>{let{aborted:p}=n.signal,W=p&&s.allowStaleOnFetchAbort,q=W||s.allowStaleOnFetchRejection,O=q||s.noDeleteOnFetchRejection,l=w;if(this.#i[e]===w&&(!O||l.__staleWhileFetching===void 0?this.#N(o,"fetch"):W||(this.#i[e]=l.__staleWhileFetching)),q)return s.status&&l.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw k},m=(k,p)=>{let W=this.#n?.(o,r,c);W&&W instanceof Promise&&W.then(q=>k(q===void 0?void 0:q),p),n.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(k(void 0),s.allowStaleOnFetchAbort&&(k=q=>u(q,!0)))})};s.status&&(s.status.fetchDispatched=!0);let w=new Promise(m).then(u,d),z=Object.assign(w,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return e===void 0?(this.set(o,z,{...c.options,status:void 0}),e=this.#a.get(o)):this.#i[e]=z,z}#u(o){if(!this.#k)return!1;let e=o;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof ei}async fetch(o,e={}){let{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:x=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:w=this.ignoreFetchAbort,allowStaleOnFetchAbort:z=this.allowStaleOnFetchAbort,context:k,forceRefresh:p=!1,status:W,signal:q}=e;if(!this.#k)return W&&(W.fetch="get"),this.get(o,{allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,status:W});let O={allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:a,size:c,sizeCalculation:u,noUpdateTTL:d,noDeleteOnFetchRejection:x,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:z,ignoreFetchAbort:w,status:W,signal:q},l=this.#a.get(o);if(l===void 0){W&&(W.fetch="miss");let g=this.#Y(o,l,O,k);return g.__returned=g}else{let g=this.#i[l];if(this.#u(g)){let f=s&&g.__staleWhileFetching!==void 0;return W&&(W.fetch="inflight",f&&(W.returnedStale=!0)),f?g.__staleWhileFetching:g.__returned=g}let _=this.#y(l);if(!p&&!_)return W&&(W.fetch="hit"),this.#Z(l),i&&this.#v(l),W&&this.#e(W,l),g;let G=this.#Y(o,l,O,k),h=G.__staleWhileFetching!==void 0&&s;return W&&(W.fetch=_?"stale":"refresh",h&&_&&(W.returnedStale=!0)),h?G.__staleWhileFetching:G.__returned=G}}async forceFetch(o,e={}){let s=await this.fetch(o,e);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(o,e={}){let s=this.#f;if(!s)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:r,...n}=e,a=this.get(o,n);if(!r&&a!==void 0)return a;let c=s(o,a,{options:n,context:i});return this.set(o,c,n),c}get(o,e={}){let{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=e,a=this.#a.get(o);if(a!==void 0){let c=this.#i[a],u=this.#u(c);return n&&this.#e(n,a),this.#y(a)?(n&&(n.get="stale"),u?(n&&s&&c.__staleWhileFetching!==void 0&&(n.returnedStale=!0),s?c.__staleWhileFetching:void 0):(r||this.#N(o,"expire"),n&&s&&(n.returnedStale=!0),s?c:void 0)):(n&&(n.get="hit"),u?c.__staleWhileFetching:(this.#Z(a),i&&this.#v(a),c))}else n&&(n.get="miss")}#I(o,e){this.#w[e]=o,this.#d[o]=e}#Z(o){o!==this.#x&&(o===this.#m?this.#m=this.#d[o]:this.#I(this.#w[o],this.#d[o]),this.#I(this.#x,o),this.#x=o)}delete(o){return this.#N(o,"delete")}#N(o,e){let s=!1;if(this.#l!==0){let i=this.#a.get(o);if(i!==void 0)if(s=!0,this.#l===1)this.#P(e);else{this.#F(i);let r=this.#i[i];if(this.#u(r)?r.__abortController.abort(new Error("deleted")):(this.#z||this.#g)&&(this.#z&&this.#r?.(r,o,e),this.#g&&this.#O?.push([r,o,e])),this.#a.delete(o),this.#c[i]=void 0,this.#i[i]=void 0,i===this.#x)this.#x=this.#w[i];else if(i===this.#m)this.#m=this.#d[i];else{let n=this.#w[i];this.#d[n]=this.#d[i];let a=this.#d[i];this.#w[a]=this.#w[i]}this.#l--,this.#K.push(i)}}if(this.#g&&this.#O?.length){let i=this.#O,r;for(;r=i?.shift();)this.#s?.(...r)}return s}clear(){return this.#P("delete")}#P(o){for(let e of this.#W({allowStale:!0})){let s=this.#i[e];if(this.#u(s))s.__abortController.abort(new Error("deleted"));else{let i=this.#c[e];this.#z&&this.#r?.(s,i,o),this.#g&&this.#O?.push([s,i,o])}}if(this.#a.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#h&&this.#b&&(this.#h.fill(0),this.#b.fill(0)),this.#G&&this.#G.fill(0),this.#m=0,this.#x=0,this.#K.length=0,this.#_=0,this.#l=0,this.#g&&this.#O){let e=this.#O,s;for(;s=e?.shift();)this.#s?.(...s)}}};var te=require("node:path"),S_=require("node:url"),To=require("fs"),Qw=P(require("node:fs"),1),Ot=require("node:fs/promises");var li=require("node:events"),cn=P(require("node:stream"),1),p_=require("node:string_decoder"),K_=typeof process=="object"&&process?process:{stdout:null,stderr:null},Xw=t=>!!t&&typeof t=="object"&&(t instanceof gt||t instanceof cn.default||Yw(t)||Iw(t)),Yw=t=>!!t&&typeof t=="object"&&t instanceof li.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==cn.default.Writable.prototype.pipe,Iw=t=>!!t&&typeof t=="object"&&t instanceof li.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function",et=Symbol("EOF"),st=Symbol("maybeEmitEnd"),mt=Symbol("emittedEnd"),si=Symbol("emittingEnd"),Fe=Symbol("emittedError"),ii=Symbol("closed"),G_=Symbol("read"),ri=Symbol("flush"),b_=Symbol("flushChunk"),Vo=Symbol("encoding"),Ht=Symbol("decoder"),H=Symbol("flowing"),Me=Symbol("paused"),oe=Symbol("resume"),oo=Symbol("buffer"),xo=Symbol("pipes"),to=Symbol("bufferLength"),tn=Symbol("bufferPush"),ni=Symbol("bufferShift"),ao=Symbol("objectMode"),A=Symbol("destroyed"),en=Symbol("error"),sn=Symbol("emitData"),v_=Symbol("emitEnd"),rn=Symbol("emitEnd2"),Po=Symbol("async"),nn=Symbol("abort"),ai=Symbol("aborted"),Ee=Symbol("signal"),vt=Symbol("dataListeners"),ko=Symbol("discarded"),Ve=t=>Promise.resolve().then(t),Zw=t=>t(),Pw=t=>t==="end"||t==="finish"||t==="prefinish",Lw=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,Tw=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ci=class{src;dest;opts;ondrain;constructor(o,e,s){this.src=o,this.dest=e,this.opts=s,this.ondrain=()=>o[oe](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(o){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},an=class extends ci{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(o,e,s){super(o,e,s),this.proxyErrors=i=>e.emit("error",i),o.on("error",this.proxyErrors)}},Uw=t=>!!t.objectMode,Aw=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",gt=class extends li.EventEmitter{[H]=!1;[Me]=!1;[xo]=[];[oo]=[];[ao];[Vo];[Po];[Ht];[et]=!1;[mt]=!1;[si]=!1;[ii]=!1;[Fe]=null;[to]=0;[A]=!1;[Ee];[ai]=!1;[vt]=0;[ko]=!1;writable=!0;readable=!0;constructor(...o){let e=o[0]||{};if(super(),e.objectMode&&typeof e.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");Uw(e)?(this[ao]=!0,this[Vo]=null):Aw(e)?(this[Vo]=e.encoding,this[ao]=!1):(this[ao]=!1,this[Vo]=null),this[Po]=!!e.async,this[Ht]=this[Vo]?new p_.StringDecoder(this[Vo]):null,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[oo]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[xo]});let{signal:s}=e;s&&(this[Ee]=s,s.aborted?this[nn]():s.addEventListener("abort",()=>this[nn]()))}get bufferLength(){return this[to]}get encoding(){return this[Vo]}set encoding(o){throw new Error("Encoding must be set at instantiation time")}setEncoding(o){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[ao]}set objectMode(o){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Po]}set async(o){this[Po]=this[Po]||!!o}[nn](){this[ai]=!0,this.emit("abort",this[Ee]?.reason),this.destroy(this[Ee]?.reason)}get aborted(){return this[ai]}set aborted(o){}write(o,e,s){if(this[ai])return!1;if(this[et])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof e=="function"&&(s=e,e="utf8"),e||(e="utf8");let i=this[Po]?Ve:Zw;if(!this[ao]&&!Buffer.isBuffer(o)){if(Tw(o))o=Buffer.from(o.buffer,o.byteOffset,o.byteLength);else if(Lw(o))o=Buffer.from(o);else if(typeof o!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[ao]?(this[H]&&this[to]!==0&&this[ri](!0),this[H]?this.emit("data",o):this[tn](o),this[to]!==0&&this.emit("readable"),s&&i(s),this[H]):o.length?(typeof o=="string"&&!(e===this[Vo]&&!this[Ht]?.lastNeed)&&(o=Buffer.from(o,e)),Buffer.isBuffer(o)&&this[Vo]&&(o=this[Ht].write(o)),this[H]&&this[to]!==0&&this[ri](!0),this[H]?this.emit("data",o):this[tn](o),this[to]!==0&&this.emit("readable"),s&&i(s),this[H]):(this[to]!==0&&this.emit("readable"),s&&i(s),this[H])}read(o){if(this[A])return null;if(this[ko]=!1,this[to]===0||o===0||o&&o>this[to])return this[st](),null;this[ao]&&(o=null),this[oo].length>1&&!this[ao]&&(this[oo]=[this[Vo]?this[oo].join(""):Buffer.concat(this[oo],this[to])]);let e=this[G_](o||null,this[oo][0]);return this[st](),e}[G_](o,e){if(this[ao])this[ni]();else{let s=e;o===s.length||o===null?this[ni]():typeof s=="string"?(this[oo][0]=s.slice(o),e=s.slice(0,o),this[to]-=o):(this[oo][0]=s.subarray(o),e=s.subarray(0,o),this[to]-=o)}return this.emit("data",e),!this[oo].length&&!this[et]&&this.emit("drain"),e}end(o,e,s){return typeof o=="function"&&(s=o,o=void 0),typeof e=="function"&&(s=e,e="utf8"),o!==void 0&&this.write(o,e),s&&this.once("end",s),this[et]=!0,this.writable=!1,(this[H]||!this[Me])&&this[st](),this}[oe](){this[A]||(!this[vt]&&!this[xo].length&&(this[ko]=!0),this[Me]=!1,this[H]=!0,this.emit("resume"),this[oo].length?this[ri]():this[et]?this[st]():this.emit("drain"))}resume(){return this[oe]()}pause(){this[H]=!1,this[Me]=!0,this[ko]=!1}get destroyed(){return this[A]}get flowing(){return this[H]}get paused(){return this[Me]}[tn](o){this[ao]?this[to]+=1:this[to]+=o.length,this[oo].push(o)}[ni](){return this[ao]?this[to]-=1:this[to]-=this[oo][0].length,this[oo].shift()}[ri](o=!1){do;while(this[b_](this[ni]())&&this[oo].length);!o&&!this[oo].length&&!this[et]&&this.emit("drain")}[b_](o){return this.emit("data",o),this[H]}pipe(o,e){if(this[A])return o;this[ko]=!1;let s=this[mt];return e=e||{},o===K_.stdout||o===K_.stderr?e.end=!1:e.end=e.end!==!1,e.proxyErrors=!!e.proxyErrors,s?e.end&&o.end():(this[xo].push(e.proxyErrors?new an(this,o,e):new ci(this,o,e)),this[Po]?Ve(()=>this[oe]()):this[oe]()),o}unpipe(o){let e=this[xo].find(s=>s.dest===o);e&&(this[xo].length===1?(this[H]&&this[vt]===0&&(this[H]=!1),this[xo]=[]):this[xo].splice(this[xo].indexOf(e),1),e.unpipe())}addListener(o,e){return this.on(o,e)}on(o,e){let s=super.on(o,e);if(o==="data")this[ko]=!1,this[vt]++,!this[xo].length&&!this[H]&&this[oe]();else if(o==="readable"&&this[to]!==0)super.emit("readable");else if(Pw(o)&&this[mt])super.emit(o),this.removeAllListeners(o);else if(o==="error"&&this[Fe]){let i=e;this[Po]?Ve(()=>i.call(this,this[Fe])):i.call(this,this[Fe])}return s}removeListener(o,e){return this.off(o,e)}off(o,e){let s=super.off(o,e);return o==="data"&&(this[vt]=this.listeners("data").length,this[vt]===0&&!this[ko]&&!this[xo].length&&(this[H]=!1)),s}removeAllListeners(o){let e=super.removeAllListeners(o);return(o==="data"||o===void 0)&&(this[vt]=0,!this[ko]&&!this[xo].length&&(this[H]=!1)),e}get emittedEnd(){return this[mt]}[st](){!this[si]&&!this[mt]&&!this[A]&&this[oo].length===0&&this[et]&&(this[si]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ii]&&this.emit("close"),this[si]=!1)}emit(o,...e){let s=e[0];if(o!=="error"&&o!=="close"&&o!==A&&this[A])return!1;if(o==="data")return!this[ao]&&!s?!1:this[Po]?(Ve(()=>this[sn](s)),!0):this[sn](s);if(o==="end")return this[v_]();if(o==="close"){if(this[ii]=!0,!this[mt]&&!this[A])return!1;let r=super.emit("close");return this.removeAllListeners("close"),r}else if(o==="error"){this[Fe]=s,super.emit(en,s);let r=!this[Ee]||this.listeners("error").length?super.emit("error",s):!1;return this[st](),r}else if(o==="resume"){let r=super.emit("resume");return this[st](),r}else if(o==="finish"||o==="prefinish"){let r=super.emit(o);return this.removeAllListeners(o),r}let i=super.emit(o,...e);return this[st](),i}[sn](o){for(let s of this[xo])s.dest.write(o)===!1&&this.pause();let e=this[ko]?!1:super.emit("data",o);return this[st](),e}[v_](){return this[mt]?!1:(this[mt]=!0,this.readable=!1,this[Po]?(Ve(()=>this[rn]()),!0):this[rn]())}[rn](){if(this[Ht]){let e=this[Ht].end();if(e){for(let s of this[xo])s.dest.write(e);this[ko]||super.emit("data",e)}}for(let e of this[xo])e.end();let o=super.emit("end");return this.removeAllListeners("end"),o}async collect(){let o=Object.assign([],{dataLength:0});this[ao]||(o.dataLength=0);let e=this.promise();return this.on("data",s=>{o.push(s),this[ao]||(o.dataLength+=s.length)}),await e,o}async concat(){if(this[ao])throw new Error("cannot concat in objectMode");let o=await this.collect();return this[Vo]?o.join(""):Buffer.concat(o,o.dataLength)}async promise(){return new Promise((o,e)=>{this.on(A,()=>e(new Error("stream destroyed"))),this.on("error",s=>e(s)),this.on("end",()=>o())})}[Symbol.asyncIterator](){this[ko]=!1;let o=!1,e=async()=>(this.pause(),o=!0,{value:void 0,done:!0});return{next:()=>{if(o)return e();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[et])return e();let r,n,a=x=>{this.off("data",c),this.off("end",u),this.off(A,d),e(),n(x)},c=x=>{this.off("error",a),this.off("end",u),this.off(A,d),this.pause(),r({value:x,done:!!this[et]})},u=()=>{this.off("error",a),this.off("data",c),this.off(A,d),e(),r({done:!0,value:void 0})},d=()=>a(new Error("stream destroyed"));return new Promise((x,m)=>{n=m,r=x,this.once(A,d),this.once("error",a),this.once("end",u),this.once("data",c)})},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ko]=!1;let o=!1,e=()=>(this.pause(),this.off(en,e),this.off(A,e),this.off("end",e),o=!0,{done:!0,value:void 0}),s=()=>{if(o)return e();let i=this.read();return i===null?e():{done:!1,value:i}};return this.once("end",e),this.once(en,e),this.once(A,e),{next:s,throw:e,return:e,[Symbol.iterator](){return this}}}destroy(o){if(this[A])return o?this.emit("error",o):this.emit(A),this;this[A]=!0,this[ko]=!0,this[oo].length=0,this[to]=0;let e=this;return typeof e.close=="function"&&!this[ii]&&e.close(),o?this.emit("error",o):this.emit(A),this}static get isStream(){return Xw}};var jw=To.realpathSync.native,Ye={lstatSync:To.lstatSync,readdir:To.readdir,readdirSync:To.readdirSync,readlinkSync:To.readlinkSync,realpathSync:jw,promises:{lstat:Ot.lstat,readdir:Ot.readdir,readlink:Ot.readlink,realpath:Ot.realpath}},F_=t=>!t||t===Ye||t===Qw?Ye:{...Ye,...t,promises:{...Ye.promises,...t.promises||{}}},M_=/^\\\\\?\\([a-z]:)\\?$/i,Rw=t=>t.replace(/\//g,"\\").replace(M_,"$1\\"),Jw=/[\\\/]/,No=0,E_=1,V_=2,Lo=4,X_=6,Y_=8,pt=10,I_=12,Co=15,Xe=~Co,ln=16,W_=32,Ie=64,Xo=128,ui=256,xi=512,q_=Ie|Xo|xi,Bw=1023,un=t=>t.isFile()?Y_:t.isDirectory()?Lo:t.isSymbolicLink()?pt:t.isCharacterDevice()?V_:t.isBlockDevice()?X_:t.isSocket()?I_:t.isFIFO()?E_:No,C_=new Map,Ze=t=>{let o=C_.get(t);if(o)return o;let e=t.normalize("NFKD");return C_.set(t,e),e},N_=new Map,_i=t=>{let o=N_.get(t);if(o)return o;let e=Ze(t.toLowerCase());return N_.set(t,e),e},mi=class extends Se{constructor(){super({max:256})}},_n=class extends Se{constructor(o=16*1024){super({maxSize:o,sizeCalculation:e=>e.length+1})}},Z_=Symbol("PathScurry setAsCwd"),co=class{name;root;roots;parent;nocase;isCWD=!1;#o;#t;get dev(){return this.#t}#r;get mode(){return this.#r}#s;get nlink(){return this.#s}#n;get uid(){return this.#n}#f;get gid(){return this.#f}#l;get rdev(){return this.#l}#_;get blksize(){return this.#_}#a;get ino(){return this.#a}#c;get size(){return this.#c}#i;get blocks(){return this.#i}#d;get atimeMs(){return this.#d}#w;get mtimeMs(){return this.#w}#m;get ctimeMs(){return this.#m}#x;get birthtimeMs(){return this.#x}#K;get atime(){return this.#K}#O;get mtime(){return this.#O}#G;get ctime(){return this.#G}#b;get birthtime(){return this.#b}#h;#z;#k;#g;#q;#v;#e;#S;#y;#C;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(o,e=No,s,i,r,n,a){this.name=o,this.#h=r?_i(o):Ze(o),this.#e=e&Bw,this.nocase=r,this.roots=i,this.root=s||this,this.#S=n,this.#k=a.fullpath,this.#q=a.relative,this.#v=a.relativePosix,this.parent=a.parent,this.parent?this.#o=this.parent.#o:this.#o=F_(a.fs)}depth(){return this.#z!==void 0?this.#z:this.parent?this.#z=this.parent.depth()+1:this.#z=0}childrenCache(){return this.#S}resolve(o){if(!o)return this;let e=this.getRootString(o),i=o.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#F(i):this.#F(i)}#F(o){let e=this;for(let s of o)e=e.child(s);return e}children(){let o=this.#S.get(this);if(o)return o;let e=Object.assign([],{provisional:0});return this.#S.set(this,e),this.#e&=~ln,e}child(o,e){if(o===""||o===".")return this;if(o==="..")return this.parent||this;let s=this.children(),i=this.nocase?_i(o):Ze(o);for(let c of s)if(c.#h===i)return c;let r=this.parent?this.sep:"",n=this.#k?this.#k+r+o:void 0,a=this.newChild(o,No,{...e,parent:this,fullpath:n});return this.canReaddir()||(a.#e|=Xo),s.push(a),a}relative(){if(this.isCWD)return"";if(this.#q!==void 0)return this.#q;let o=this.name,e=this.parent;if(!e)return this.#q=this.name;let s=e.relative();return s+(!s||!e.parent?"":this.sep)+o}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#v!==void 0)return this.#v;let o=this.name,e=this.parent;if(!e)return this.#v=this.fullpathPosix();let s=e.relativePosix();return s+(!s||!e.parent?"":"/")+o}fullpath(){if(this.#k!==void 0)return this.#k;let o=this.name,e=this.parent;if(!e)return this.#k=this.name;let i=e.fullpath()+(e.parent?this.sep:"")+o;return this.#k=i}fullpathPosix(){if(this.#g!==void 0)return this.#g;if(this.sep==="/")return this.#g=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#g=`//?/${i}`:this.#g=i}let o=this.parent,e=o.fullpathPosix(),s=e+(!e||!o.parent?"":"/")+this.name;return this.#g=s}isUnknown(){return(this.#e&Co)===No}isType(o){return this[`is${o}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#e&Co)===Y_}isDirectory(){return(this.#e&Co)===Lo}isCharacterDevice(){return(this.#e&Co)===V_}isBlockDevice(){return(this.#e&Co)===X_}isFIFO(){return(this.#e&Co)===E_}isSocket(){return(this.#e&Co)===I_}isSymbolicLink(){return(this.#e&pt)===pt}lstatCached(){return this.#e&W_?this:void 0}readlinkCached(){return this.#y}realpathCached(){return this.#C}readdirCached(){let o=this.children();return o.slice(0,o.provisional)}canReadlink(){if(this.#y)return!0;if(!this.parent)return!1;let o=this.#e&Co;return!(o!==No&&o!==pt||this.#e&ui||this.#e&Xo)}calledReaddir(){return!!(this.#e&ln)}isENOENT(){return!!(this.#e&Xo)}isNamed(o){return this.nocase?this.#h===_i(o):this.#h===Ze(o)}async readlink(){let o=this.#y;if(o)return o;if(this.canReadlink()&&this.parent)try{let e=await this.#o.promises.readlink(this.fullpath()),s=(await this.parent.realpath())?.resolve(e);if(s)return this.#y=s}catch(e){this.#u(e.code);return}}readlinkSync(){let o=this.#y;if(o)return o;if(this.canReadlink()&&this.parent)try{let e=this.#o.readlinkSync(this.fullpath()),s=this.parent.realpathSync()?.resolve(e);if(s)return this.#y=s}catch(e){this.#u(e.code);return}}#M(o){this.#e|=ln;for(let e=o.provisional;e<o.length;e++){let s=o[e];s&&s.#E()}}#E(){this.#e&Xo||(this.#e=(this.#e|Xo)&Xe,this.#p())}#p(){let o=this.children();o.provisional=0;for(let e of o)e.#E()}#W(){this.#e|=xi,this.#V()}#V(){if(this.#e&Ie)return;let o=this.#e;(o&Co)===Lo&&(o&=Xe),this.#e=o|Ie,this.#p()}#X(o=""){o==="ENOTDIR"||o==="EPERM"?this.#V():o==="ENOENT"?this.#E():this.children().provisional=0}#Y(o=""){o==="ENOTDIR"?this.parent.#V():o==="ENOENT"&&this.#E()}#u(o=""){let e=this.#e;e|=ui,o==="ENOENT"&&(e|=Xo),(o==="EINVAL"||o==="UNKNOWN")&&(e&=Xe),this.#e=e,o==="ENOTDIR"&&this.parent&&this.parent.#V()}#I(o,e){return this.#N(o,e)||this.#Z(o,e)}#Z(o,e){let s=un(o),i=this.newChild(o.name,s,{parent:this}),r=i.#e&Co;return r!==Lo&&r!==pt&&r!==No&&(i.#e|=Ie),e.unshift(i),e.provisional++,i}#N(o,e){for(let s=e.provisional;s<e.length;s++){let i=e[s];if((this.nocase?_i(o.name):Ze(o.name))===i.#h)return this.#P(o,i,s,e)}}#P(o,e,s,i){let r=e.name;return e.#e=e.#e&Xe|un(o),r!==o.name&&(e.name=o.name),s!==i.provisional&&(s===i.length-1?i.pop():i.splice(s,1),i.unshift(e)),i.provisional++,e}async lstat(){if((this.#e&Xo)===0)try{return this.#A(await this.#o.promises.lstat(this.fullpath())),this}catch(o){this.#Y(o.code)}}lstatSync(){if((this.#e&Xo)===0)try{return this.#A(this.#o.lstatSync(this.fullpath())),this}catch(o){this.#Y(o.code)}}#A(o){let{atime:e,atimeMs:s,birthtime:i,birthtimeMs:r,blksize:n,blocks:a,ctime:c,ctimeMs:u,dev:d,gid:x,ino:m,mode:w,mtime:z,mtimeMs:k,nlink:p,rdev:W,size:q,uid:O}=o;this.#K=e,this.#d=s,this.#b=i,this.#x=r,this.#_=n,this.#i=a,this.#G=c,this.#m=u,this.#t=d,this.#f=x,this.#a=m,this.#r=w,this.#O=z,this.#w=k,this.#s=p,this.#l=W,this.#c=q,this.#n=O;let l=un(o);this.#e=this.#e&Xe|l|W_,l!==No&&l!==Lo&&l!==pt&&(this.#e|=Ie)}#T=[];#U=!1;#Q(o){this.#U=!1;let e=this.#T.slice();this.#T.length=0,e.forEach(s=>s(null,o))}readdirCB(o,e=!1){if(!this.canReaddir()){e?o(null,[]):queueMicrotask(()=>o(null,[]));return}let s=this.children();if(this.calledReaddir()){let r=s.slice(0,s.provisional);e?o(null,r):queueMicrotask(()=>o(null,r));return}if(this.#T.push(o),this.#U)return;this.#U=!0;let i=this.fullpath();this.#o.readdir(i,{withFileTypes:!0},(r,n)=>{if(r)this.#X(r.code),s.provisional=0;else{for(let a of n)this.#I(a,s);this.#M(s)}this.#Q(s.slice(0,s.provisional))})}#L;async readdir(){if(!this.canReaddir())return[];let o=this.children();if(this.calledReaddir())return o.slice(0,o.provisional);let e=this.fullpath();if(this.#L)await this.#L;else{let s=()=>{};this.#L=new Promise(i=>s=i);try{for(let i of await this.#o.promises.readdir(e,{withFileTypes:!0}))this.#I(i,o);this.#M(o)}catch(i){this.#X(i.code),o.provisional=0}this.#L=void 0,s()}return o.slice(0,o.provisional)}readdirSync(){if(!this.canReaddir())return[];let o=this.children();if(this.calledReaddir())return o.slice(0,o.provisional);let e=this.fullpath();try{for(let s of this.#o.readdirSync(e,{withFileTypes:!0}))this.#I(s,o);this.#M(o)}catch(s){this.#X(s.code),o.provisional=0}return o.slice(0,o.provisional)}canReaddir(){if(this.#e&q_)return!1;let o=Co&this.#e;return o===No||o===Lo||o===pt}shouldWalk(o,e){return(this.#e&Lo)===Lo&&!(this.#e&q_)&&!o.has(this)&&(!e||e(this))}async realpath(){if(this.#C)return this.#C;if(!((xi|ui|Xo)&this.#e))try{let o=await this.#o.promises.realpath(this.fullpath());return this.#C=this.resolve(o)}catch{this.#W()}}realpathSync(){if(this.#C)return this.#C;if(!((xi|ui|Xo)&this.#e))try{let o=this.#o.realpathSync(this.fullpath());return this.#C=this.resolve(o)}catch{this.#W()}}[Z_](o){if(o===this)return;o.isCWD=!1,this.isCWD=!0;let e=new Set([]),s=[],i=this;for(;i&&i.parent;)e.add(i),i.#q=s.join(this.sep),i.#v=s.join("/"),i=i.parent,s.push("..");for(i=o;i&&i.parent&&!e.has(i);)i.#q=void 0,i.#v=void 0,i=i.parent}},gi=class t extends co{sep="\\";splitSep=Jw;constructor(o,e=No,s,i,r,n,a){super(o,e,s,i,r,n,a)}newChild(o,e=No,s={}){return new t(o,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}getRootString(o){return te.win32.parse(o).root}getRoot(o){if(o=Rw(o.toUpperCase()),o===this.root.name)return this.root;for(let[e,s]of Object.entries(this.roots))if(this.sameRoot(o,e))return this.roots[o]=s;return this.roots[o]=new ee(o,this).root}sameRoot(o,e=this.root.name){return o=o.toUpperCase().replace(/\//g,"\\").replace(M_,"$1\\"),o===e}},Oi=class t extends co{splitSep="/";sep="/";constructor(o,e=No,s,i,r,n,a){super(o,e,s,i,r,n,a)}getRootString(o){return o.startsWith("/")?"/":""}getRoot(o){return this.root}newChild(o,e=No,s={}){return new t(o,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}},di=class{root;rootPath;roots;cwd;#o;#t;#r;nocase;#s;constructor(o=process.cwd(),e,s,{nocase:i,childrenCacheSize:r=16*1024,fs:n=Ye}={}){this.#s=F_(n),(o instanceof URL||o.startsWith("file://"))&&(o=(0,S_.fileURLToPath)(o));let a=e.resolve(o);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#o=new mi,this.#t=new mi,this.#r=new _n(r);let c=a.substring(this.rootPath.length).split(s);if(c.length===1&&!c[0]&&c.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let u=this.root,d=c.length-1,x=e.sep,m=this.rootPath,w=!1;for(let z of c){let k=d--;u=u.child(z,{relative:new Array(k).fill("..").join(x),relativePosix:new Array(k).fill("..").join("/"),fullpath:m+=(w?"":x)+z}),w=!0}this.cwd=u}depth(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.depth()}childrenCache(){return this.#r}resolve(...o){let e="";for(let r=o.length-1;r>=0;r--){let n=o[r];if(!(!n||n===".")&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}let s=this.#o.get(e);if(s!==void 0)return s;let i=this.cwd.resolve(e).fullpath();return this.#o.set(e,i),i}resolvePosix(...o){let e="";for(let r=o.length-1;r>=0;r--){let n=o[r];if(!(!n||n===".")&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}let s=this.#t.get(e);if(s!==void 0)return s;let i=this.cwd.resolve(e).fullpathPosix();return this.#t.set(e,i),i}relative(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.relative()}relativePosix(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.relativePosix()}basename(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.name}dirname(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),(o.parent||o).fullpath()}async readdir(o=this.cwd,e={withFileTypes:!0}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o,o=this.cwd);let{withFileTypes:s}=e;if(o.canReaddir()){let i=await o.readdir();return s?i:i.map(r=>r.name)}else return[]}readdirSync(o=this.cwd,e={withFileTypes:!0}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o,o=this.cwd);let{withFileTypes:s=!0}=e;return o.canReaddir()?s?o.readdirSync():o.readdirSync().map(i=>i.name):[]}async lstat(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.lstat()}lstatSync(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.lstatSync()}async readlink(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o.withFileTypes,o=this.cwd);let s=await o.readlink();return e?s:s?.fullpath()}readlinkSync(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o.withFileTypes,o=this.cwd);let s=o.readlinkSync();return e?s:s?.fullpath()}async realpath(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o.withFileTypes,o=this.cwd);let s=await o.realpath();return e?s:s?.fullpath()}realpathSync(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o.withFileTypes,o=this.cwd);let s=o.realpathSync();return e?s:s?.fullpath()}async walk(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,a=[];(!r||r(o))&&a.push(s?o:o.fullpath());let c=new Set,u=(x,m)=>{c.add(x),x.readdirCB((w,z)=>{if(w)return m(w);let k=z.length;if(!k)return m();let p=()=>{--k===0&&m()};for(let W of z)(!r||r(W))&&a.push(s?W:W.fullpath()),i&&W.isSymbolicLink()?W.realpath().then(q=>q?.isUnknown()?q.lstat():q).then(q=>q?.shouldWalk(c,n)?u(q,p):p()):W.shouldWalk(c,n)?u(W,p):p()},!0)},d=o;return new Promise((x,m)=>{u(d,w=>{if(w)return m(w);x(a)})})}walkSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,a=[];(!r||r(o))&&a.push(s?o:o.fullpath());let c=new Set([o]);for(let u of c){let d=u.readdirSync();for(let x of d){(!r||r(x))&&a.push(s?x:x.fullpath());let m=x;if(x.isSymbolicLink()){if(!(i&&(m=x.realpathSync())))continue;m.isUnknown()&&m.lstatSync()}m.shouldWalk(c,n)&&c.add(m)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(o=this.cwd,e={}){return typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o,o=this.cwd),this.stream(o,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e;(!r||r(o))&&(yield s?o:o.fullpath());let a=new Set([o]);for(let c of a){let u=c.readdirSync();for(let d of u){(!r||r(d))&&(yield s?d:d.fullpath());let x=d;if(d.isSymbolicLink()){if(!(i&&(x=d.realpathSync())))continue;x.isUnknown()&&x.lstatSync()}x.shouldWalk(a,n)&&a.add(x)}}}stream(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,a=new gt({objectMode:!0});(!r||r(o))&&a.write(s?o:o.fullpath());let c=new Set,u=[o],d=0,x=()=>{let m=!1;for(;!m;){let w=u.shift();if(!w){d===0&&a.end();return}d++,c.add(w);let z=(p,W,q=!1)=>{if(p)return a.emit("error",p);if(i&&!q){let O=[];for(let l of W)l.isSymbolicLink()&&O.push(l.realpath().then(g=>g?.isUnknown()?g.lstat():g));if(O.length){Promise.all(O).then(()=>z(null,W,!0));return}}for(let O of W)O&&(!r||r(O))&&(a.write(s?O:O.fullpath())||(m=!0));d--;for(let O of W){let l=O.realpathCached()||O;l.shouldWalk(c,n)&&u.push(l)}m&&!a.flowing?a.once("drain",x):k||x()},k=!0;w.readdirCB(z,!0),k=!1}};return x(),a}streamSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof co||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,a=new gt({objectMode:!0}),c=new Set;(!r||r(o))&&a.write(s?o:o.fullpath());let u=[o],d=0,x=()=>{let m=!1;for(;!m;){let w=u.shift();if(!w){d===0&&a.end();return}d++,c.add(w);let z=w.readdirSync();for(let k of z)(!r||r(k))&&(a.write(s?k:k.fullpath())||(m=!0));d--;for(let k of z){let p=k;if(k.isSymbolicLink()){if(!(i&&(p=k.realpathSync())))continue;p.isUnknown()&&p.lstatSync()}p.shouldWalk(c,n)&&u.push(p)}}m&&!a.flowing&&a.once("drain",x)};return x(),a}chdir(o=this.cwd){let e=this.cwd;this.cwd=typeof o=="string"?this.cwd.resolve(o):o,this.cwd[Z_](e)}},ee=class extends di{sep="\\";constructor(o=process.cwd(),e={}){let{nocase:s=!0}=e;super(o,te.win32,"\\",{...e,nocase:s}),this.nocase=s;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(o){return te.win32.parse(o).root.toUpperCase()}newRoot(o){return new gi(this.rootPath,Lo,void 0,this.roots,this.nocase,this.childrenCache(),{fs:o})}isAbsolute(o){return o.startsWith("/")||o.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(o)}},se=class extends di{sep="/";constructor(o=process.cwd(),e={}){let{nocase:s=!1}=e;super(o,te.posix,"/",{...e,nocase:s}),this.nocase=s}parseRootPath(o){return"/"}newRoot(o){return new Oi(this.rootPath,Lo,void 0,this.roots,this.nocase,this.childrenCache(),{fs:o})}isAbsolute(o){return o.startsWith("/")}},Pe=class extends se{constructor(o=process.cwd(),e={}){let{nocase:s=!0}=e;super(o,{...e,nocase:s})}},Ef=process.platform==="win32"?gi:Oi,P_=process.platform==="win32"?ee:process.platform==="darwin"?Pe:se;var Dw=t=>t.length>=1,$w=t=>t.length>=1,ie=class t{#o;#t;#r;length;#s;#n;#f;#l;#_;#a;#c=!0;constructor(o,e,s,i){if(!Dw(o))throw new TypeError("empty pattern list");if(!$w(e))throw new TypeError("empty glob list");if(e.length!==o.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=o.length,s<0||s>=this.length)throw new TypeError("index out of range");if(this.#o=o,this.#t=e,this.#r=s,this.#s=i,this.#r===0){if(this.isUNC()){let[r,n,a,c,...u]=this.#o,[d,x,m,w,...z]=this.#t;u[0]===""&&(u.shift(),z.shift());let k=[r,n,a,c,""].join("/"),p=[d,x,m,w,""].join("/");this.#o=[k,...u],this.#t=[p,...z],this.length=this.#o.length}else if(this.isDrive()||this.isAbsolute()){let[r,...n]=this.#o,[a,...c]=this.#t;n[0]===""&&(n.shift(),c.shift());let u=r+"/",d=a+"/";this.#o=[u,...n],this.#t=[d,...c],this.length=this.#o.length}}}pattern(){return this.#o[this.#r]}isString(){return typeof this.#o[this.#r]=="string"}isGlobstar(){return this.#o[this.#r]===io}isRegExp(){return this.#o[this.#r]instanceof RegExp}globString(){return this.#f=this.#f||(this.#r===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return this.#n!==void 0?this.#n:this.hasMore()?(this.#n=new t(this.#o,this.#t,this.#r+1,this.#s),this.#n.#a=this.#a,this.#n.#_=this.#_,this.#n.#l=this.#l,this.#n):this.#n=null}isUNC(){let o=this.#o;return this.#_!==void 0?this.#_:this.#_=this.#s==="win32"&&this.#r===0&&o[0]===""&&o[1]===""&&typeof o[2]=="string"&&!!o[2]&&typeof o[3]=="string"&&!!o[3]}isDrive(){let o=this.#o;return this.#l!==void 0?this.#l:this.#l=this.#s==="win32"&&this.#r===0&&this.length>1&&typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0])}isAbsolute(){let o=this.#o;return this.#a!==void 0?this.#a:this.#a=o[0]===""&&o.length>1||this.isDrive()||this.isUNC()}root(){let o=this.#o[0];return typeof o=="string"&&this.isAbsolute()&&this.#r===0?o:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#c)}markFollowGlobstar(){return this.#r===0||!this.isGlobstar()||!this.#c?!1:(this.#c=!1,!0)}};var Hw=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",re=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(o,{nobrace:e,nocase:s,noext:i,noglobstar:r,platform:n=Hw}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=n,this.mmopts={dot:!0,nobrace:e,nocase:s,noext:i,noglobstar:r,optimizationLevel:2,platform:n,nocomment:!0,nonegate:!0};for(let a of o)this.add(a)}add(o){let e=new zo(o,this.mmopts);for(let s=0;s<e.set.length;s++){let i=e.set[s],r=e.globParts[s];if(!i||!r)throw new Error("invalid pattern object");for(;i[0]==="."&&r[0]===".";)i.shift(),r.shift();let n=new ie(i,r,0,this.platform),a=new zo(n.globString(),this.mmopts),c=r[r.length-1]==="**",u=n.isAbsolute();u?this.absolute.push(a):this.relative.push(a),c&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(o){let e=o.fullpath(),s=`${e}/`,i=o.relative()||".",r=`${i}/`;for(let n of this.relative)if(n.match(i)||n.match(r))return!0;for(let n of this.absolute)if(n.match(e)||n.match(s))return!0;return!1}childrenIgnored(o){let e=o.fullpath()+"/",s=(o.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(s))return!0;for(let i of this.absoluteChildren)if(i.match(e))return!0;return!1}};var xn=class t{store;constructor(o=new Map){this.store=o}copy(){return new t(new Map(this.store))}hasWalked(o,e){return this.store.get(o.fullpath())?.has(e.globString())}storeWalked(o,e){let s=o.fullpath(),i=this.store.get(s);i?i.add(e.globString()):this.store.set(s,new Set([e.globString()]))}},mn=class{store=new Map;add(o,e,s){let i=(e?2:0)|(s?1:0),r=this.store.get(o);this.store.set(o,r===void 0?i:i&r)}entries(){return[...this.store.entries()].map(([o,e])=>[o,!!(e&2),!!(e&1)])}},gn=class{store=new Map;add(o,e){if(!o.canReaddir())return;let s=this.store.get(o);s?s.find(i=>i.globString()===e.globString())||s.push(e):this.store.set(o,[e])}get(o){let e=this.store.get(o);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map(o=>[o,this.store.get(o)])}keys(){return[...this.store.keys()].filter(o=>o.canReaddir())}},Le=class t{hasWalkedCache;matches=new mn;subwalks=new gn;patterns;follow;dot;opts;constructor(o,e){this.opts=o,this.follow=!!o.follow,this.dot=!!o.dot,this.hasWalkedCache=e?e.copy():new xn}processPatterns(o,e){this.patterns=e;let s=e.map(i=>[o,i]);for(let[i,r]of s){this.hasWalkedCache.storeWalked(i,r);let n=r.root(),a=r.isAbsolute()&&this.opts.absolute!==!1;if(n){i=i.resolve(n==="/"&&this.opts.root!==void 0?this.opts.root:n);let x=r.rest();if(x)r=x;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let c,u,d=!1;for(;typeof(c=r.pattern())=="string"&&(u=r.rest());)i=i.resolve(c),r=u,d=!0;if(c=r.pattern(),u=r.rest(),d){if(this.hasWalkedCache.hasWalked(i,r))continue;this.hasWalkedCache.storeWalked(i,r)}if(typeof c=="string"){let x=c===".."||c===""||c===".";this.matches.add(i.resolve(c),a,x);continue}else if(c===io){(!i.isSymbolicLink()||this.follow||r.checkFollowGlobstar())&&this.subwalks.add(i,r);let x=u?.pattern(),m=u?.rest();if(!u||(x===""||x===".")&&!m)this.matches.add(i,a,x===""||x===".");else if(x===".."){let w=i.parent||i;m?this.hasWalkedCache.hasWalked(w,m)||this.subwalks.add(w,m):this.matches.add(w,a,!0)}}else c instanceof RegExp&&this.subwalks.add(i,r)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(o,e){let s=this.subwalks.get(o),i=this.child();for(let r of e)for(let n of s){let a=n.isAbsolute(),c=n.pattern(),u=n.rest();c===io?i.testGlobstar(r,n,u,a):c instanceof RegExp?i.testRegExp(r,c,u,a):i.testString(r,c,u,a)}return i}testGlobstar(o,e,s,i){if((this.dot||!o.name.startsWith("."))&&(e.hasMore()||this.matches.add(o,i,!1),o.canReaddir()&&(this.follow||!o.isSymbolicLink()?this.subwalks.add(o,e):o.isSymbolicLink()&&(s&&e.checkFollowGlobstar()?this.subwalks.add(o,s):e.markFollowGlobstar()&&this.subwalks.add(o,e)))),s){let r=s.pattern();if(typeof r=="string"&&r!==".."&&r!==""&&r!==".")this.testString(o,r,s.rest(),i);else if(r===".."){let n=o.parent||o;this.subwalks.add(n,s)}else r instanceof RegExp&&this.testRegExp(o,r,s.rest(),i)}}testRegExp(o,e,s,i){e.test(o.name)&&(s?this.subwalks.add(o,s):this.matches.add(o,i,!1))}testString(o,e,s,i){o.isNamed(e)&&(s?this.subwalks.add(o,s):this.matches.add(o,i,!1))}};var oy=(t,o)=>typeof t=="string"?new re([t],o):Array.isArray(t)?new re(t,o):t,wi=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#o=[];#t;#r;signal;maxDepth;includeChildMatches;constructor(o,e,s){if(this.patterns=o,this.path=e,this.opts=s,this.#r=!s.posix&&s.platform==="win32"?"\\":"/",this.includeChildMatches=s.includeChildMatches!==!1,(s.ignore||!this.includeChildMatches)&&(this.#t=oy(s.ignore??[],s),!this.includeChildMatches&&typeof this.#t.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=s.maxDepth||1/0,s.signal&&(this.signal=s.signal,this.signal.addEventListener("abort",()=>{this.#o.length=0}))}#s(o){return this.seen.has(o)||!!this.#t?.ignored?.(o)}#n(o){return!!this.#t?.childrenIgnored?.(o)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let o;for(;!this.paused&&(o=this.#o.shift());)o()}onResume(o){this.signal?.aborted||(this.paused?this.#o.push(o):o())}async matchCheck(o,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=o.realpathCached()||await o.realpath(),!s)return;o=s}let r=o.isUnknown()||this.opts.stat?await o.lstat():o;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let n=await r.realpath();n&&(n.isUnknown()||this.opts.stat)&&await n.lstat()}return this.matchCheckTest(r,e)}matchCheckTest(o,e){return o&&(this.maxDepth===1/0||o.depth()<=this.maxDepth)&&(!e||o.canReaddir())&&(!this.opts.nodir||!o.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!o.isSymbolicLink()||!o.realpathCached()?.isDirectory())&&!this.#s(o)?o:void 0}matchCheckSync(o,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=o.realpathCached()||o.realpathSync(),!s)return;o=s}let r=o.isUnknown()||this.opts.stat?o.lstatSync():o;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let n=r.realpathSync();n&&(n?.isUnknown()||this.opts.stat)&&n.lstatSync()}return this.matchCheckTest(r,e)}matchFinish(o,e){if(this.#s(o))return;if(!this.includeChildMatches&&this.#t?.add){let r=`${o.relativePosix()}/**`;this.#t.add(r)}let s=this.opts.absolute===void 0?e:this.opts.absolute;this.seen.add(o);let i=this.opts.mark&&o.isDirectory()?this.#r:"";if(this.opts.withFileTypes)this.matchEmit(o);else if(s){let r=this.opts.posix?o.fullpathPosix():o.fullpath();this.matchEmit(r+i)}else{let r=this.opts.posix?o.relativePosix():o.relative(),n=this.opts.dotRelative&&!r.startsWith(".."+this.#r)?"."+this.#r:"";this.matchEmit(r?n+r+i:"."+i)}}async match(o,e,s){let i=await this.matchCheck(o,s);i&&this.matchFinish(i,e)}matchSync(o,e,s){let i=this.matchCheckSync(o,s);i&&this.matchFinish(i,e)}walkCB(o,e,s){this.signal?.aborted&&s(),this.walkCB2(o,e,new Le(this.opts),s)}walkCB2(o,e,s,i){if(this.#n(o))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(o,e,s,i));return}s.processPatterns(o,e);let r=1,n=()=>{--r===0&&i()};for(let[a,c,u]of s.matches.entries())this.#s(a)||(r++,this.match(a,c,u).then(()=>n()));for(let a of s.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;r++;let c=a.readdirCached();a.calledReaddir()?this.walkCB3(a,c,s,n):a.readdirCB((u,d)=>this.walkCB3(a,d,s,n),!0)}n()}walkCB3(o,e,s,i){s=s.filterEntries(o,e);let r=1,n=()=>{--r===0&&i()};for(let[a,c,u]of s.matches.entries())this.#s(a)||(r++,this.match(a,c,u).then(()=>n()));for(let[a,c]of s.subwalks.entries())r++,this.walkCB2(a,c,s.child(),n);n()}walkCBSync(o,e,s){this.signal?.aborted&&s(),this.walkCB2Sync(o,e,new Le(this.opts),s)}walkCB2Sync(o,e,s,i){if(this.#n(o))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(o,e,s,i));return}s.processPatterns(o,e);let r=1,n=()=>{--r===0&&i()};for(let[a,c,u]of s.matches.entries())this.#s(a)||this.matchSync(a,c,u);for(let a of s.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;r++;let c=a.readdirSync();this.walkCB3Sync(a,c,s,n)}n()}walkCB3Sync(o,e,s,i){s=s.filterEntries(o,e);let r=1,n=()=>{--r===0&&i()};for(let[a,c,u]of s.matches.entries())this.#s(a)||this.matchSync(a,c,u);for(let[a,c]of s.subwalks.entries())r++,this.walkCB2Sync(a,c,s.child(),n);n()}},Te=class extends wi{matches=new Set;constructor(o,e,s){super(o,e,s)}matchEmit(o){this.matches.add(o)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((o,e)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?e(this.signal.reason):o(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},Ue=class extends wi{results;constructor(o,e,s){super(o,e,s),this.results=new gt({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(o){this.results.write(o),this.results.flowing||this.pause()}stream(){let o=this.path;return o.isUnknown()?o.lstat().then(()=>{this.walkCB(o,this.patterns,()=>this.results.end())}):this.walkCB(o,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var ty=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Yo=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(o,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,L_.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=e.includeChildMatches!==!1,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth=typeof e.maxDepth=="number"?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof o=="string"&&(o=[o]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(o=o.map(c=>c.replace(/\\/g,"/"))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");o=o.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=o,this.platform=e.platform||ty,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,e.nocase!==void 0&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let c=e.platform==="win32"?ee:e.platform==="darwin"?Pe:e.platform?se:P_;this.scurry=new c(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;let s=this.platform==="darwin"||this.platform==="win32",i={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:s,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},r=this.pattern.map(c=>new zo(c,i)),[n,a]=r.reduce((c,u)=>(c[0].push(...u.set),c[1].push(...u.globParts),c),[[],[]]);this.patterns=n.map((c,u)=>{let d=a[u];if(!d)throw new Error("invalid pattern object");return new ie(c,d,0,this.platform)})}async walk(){return[...await new Te(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Te(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Ue(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Ue(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var On=(t,o={})=>{Array.isArray(t)||(t=[t]);for(let e of t)if(new zo(e,o).hasMagic())return!0;return!1};function hi(t,o={}){return new Yo(t,o).streamSync()}function U_(t,o={}){return new Yo(t,o).stream()}function A_(t,o={}){return new Yo(t,o).walkSync()}async function T_(t,o={}){return new Yo(t,o).walk()}function fi(t,o={}){return new Yo(t,o).iterateSync()}function Q_(t,o={}){return new Yo(t,o).iterate()}var ey=hi,sy=Object.assign(U_,{sync:hi}),iy=fi,ry=Object.assign(Q_,{sync:fi}),ny=Object.assign(A_,{stream:hi,iterate:fi}),yi=Object.assign(T_,{glob:T_,globSync:A_,sync:ny,globStream:U_,stream:sy,globStreamSync:hi,streamSync:ey,globIterate:Q_,iterate:ry,globIterateSync:fi,iterateSync:iy,Glob:Yo,hasMagic:On,escape:Bt,unescape:Eo});yi.glob=yi;var B_=P(require("node:assert")),ne=P(require("node:fs/promises")),mo=P(require("node:path"));var J_=P(j_());function zi(t){return R_(t)||R_((0,J_.default)(t))||"app"}function R_(t){return t.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}async function D_(t){let{spawnAsync:o,sourceAppPath:e}=t,s=mo.default.join(t.workingDirectory,"extracted");if(await ne.default.mkdir(s,{recursive:!0}),e.endsWith(".zip")||e.endsWith(".ipa"))await o("unzip",[e,"-d",s]);else if(e.endsWith(".tar.gz"))await o("tar",["-xzf",e,"-C",s]);else if(e.endsWith(".app")){let n=mo.default.basename(e);await Xt(e,mo.default.join(s,n))}else throw new Error("Unsupported file type. Please provide a .zip, .tar.gz, or .app file.");let r=(await yi("{Payload/*.app,*.app}",{cwd:s,absolute:!0}))[0];return(0,B_.default)(r,`Failed to find the .app directory in the extracted artifact: ${s}`),r}async function $_({config:t,appWorkingDirectory:o,executableName:e}){let{dir:s,name:i}=mo.default.parse(o),r=zi(t.name),n=mo.default.join(s,`${r}.app`);return await ne.default.rename(mo.default.join(s,`${i}.app`),n),await ne.default.rename(mo.default.join(n,e),mo.default.join(n,r)),n}async function H_(t,o){let e=mo.default.resolve(t.workingDirectory,mo.default.basename(o));return await Xt(o,e),e}async function ox(t,o){let{spawnAsync:e,workingDirectory:s}=t;await ne.default.mkdir(mo.default.join(s,"Payload"),{recursive:!0}),await ne.default.rename(o,mo.default.join(s,"Payload",mo.default.basename(o)));let i=mo.default.resolve(s,"repacked.ipa");return await e("zip",["-r",i,"Payload"],{cwd:s}),i}function tx(t,o,e){let s=e.keychainPath?`keychain_path: "${e.keychainPath}",`:"",i;if(typeof e.provisioningProfile=="string")i=`provisioning_profile: "${e.provisioningProfile}",`;else if(typeof e.provisioningProfile=="object"&&!Array.isArray(e.provisioningProfile)){let n="";for(let[a,c]of Object.entries(e.provisioningProfile))n+=` "${a}" => "${c}",
27
+ `)}function wg(t){this.options=t||{locator:{}}}wg.prototype.parseFromString=function(t,o){var e=this.options,s=new Uy,i=e.domBuilder||new ns,r=e.errorHandler,n=e.locator,a=e.xmlns||{},c=/\/x?html?$/.test(o),u=c?xg.HTML_ENTITIES:xg.XML_ENTITIES;n&&i.setDocumentLocator(n),s.errorHandler=Ay(r,i,n),s.domBuilder=e.domBuilder||i,c&&(a[""]=mg.HTML),a.xml=a.xml||mg.XML;var d=e.normalizeLineEndings||dg;return t&&typeof t=="string"?s.parse(d(t),a,u):s.errorHandler.error("invalid doc source"),i.doc};function Ay(t,o,e){if(!t){if(o instanceof ns)return o;t=o}var s={},i=t instanceof Function;e=e||{};function r(n){var a=t[n];!a&&i&&(a=t.length==2?function(c){t(n,c)}:t),s[n]=a&&function(c){a("[xmldom "+n+"] "+c+Pn(e))}||function(){}}return r("warning"),r("error"),r("fatalError"),s}function ns(){this.cdata=!1}function de(t,o){o.lineNumber=t.lineNumber,o.columnNumber=t.columnNumber}ns.prototype={startDocument:function(){this.doc=new Ly().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,o,e,s){var i=this.doc,r=i.createElementNS(t,e||o),n=s.length;Ui(this,r),this.currentElement=r,this.locator&&de(this.locator,r);for(var a=0;a<n;a++){var t=s.getURI(a),c=s.getValue(a),e=s.getQName(a),u=i.createAttributeNS(t,e);this.locator&&de(s.getLocator(a),u),u.value=u.nodeValue=c,r.setAttributeNode(u)}},endElement:function(t,o,e){var s=this.currentElement,i=s.tagName;this.currentElement=s.parentNode},startPrefixMapping:function(t,o){},endPrefixMapping:function(t){},processingInstruction:function(t,o){var e=this.doc.createProcessingInstruction(t,o);this.locator&&de(this.locator,e),Ui(this,e)},ignorableWhitespace:function(t,o,e){},characters:function(t,o,e){if(t=gg.apply(this,arguments),t){if(this.cdata)var s=this.doc.createCDATASection(t);else var s=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(t)&&this.doc.appendChild(s),this.locator&&de(this.locator,s)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,o,e){t=gg.apply(this,arguments);var s=this.doc.createComment(t);this.locator&&de(this.locator,s),Ui(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,o,e){var s=this.doc.implementation;if(s&&s.createDocumentType){var i=s.createDocumentType(t,o,e);this.locator&&de(this.locator,i),Ui(this,i),this.doc.doctype=i}},warning:function(t){console.warn("[xmldom warning] "+t,Pn(this.locator))},error:function(t){console.error("[xmldom error] "+t,Pn(this.locator))},fatalError:function(t){throw new Ty(t,this.locator)}};function Pn(t){if(t)return`
28
+ @`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function gg(t,o,e){return typeof t=="string"?t.substr(o,e):t.length>=o+e||o?new java.lang.String(t,o,e)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){ns.prototype[t]=function(){return null}});function Ui(t,o){t.currentElement?t.currentElement.appendChild(o):t.doc.appendChild(o)}Ai.__DOMHandler=ns;Ai.normalizeLineEndings=dg;Ai.DOMParser=wg});var fg=S(Qi=>{var hg=Yn();Qi.DOMImplementation=hg.DOMImplementation;Qi.XMLSerializer=hg.XMLSerializer;Qi.DOMParser=yg().DOMParser});var kg=S(as=>{"use strict";var Qy=as&&as.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(as,"__esModule",{value:!0});as.parse=Jy;var jy=fg(),we=Qy(require("assert")),ji=3,zg=4,Ry=8;function Ln(t){return t.nodeType===ji||t.nodeType===Ry||t.nodeType===zg}function rt(t){return!t.childNodes||t.childNodes.length===0}function Jy(t){let o=new jy.DOMParser({errorHandler(){}}).parseFromString(t);(0,we.default)(o.documentElement.nodeName==="plist","malformed document. First element should be <plist>");let e=ye(o.documentElement);return e.length===1&&(e=e[0]),e}function ye(t){let o,e,s,i,r,n;if(!t)return null;if(t.nodeName==="plist"){if(i=[],rt(t))return i;for(o=0;o<t.childNodes.length;o++)Ln(t.childNodes[o])||i.push(ye(t.childNodes[o]));return i}else if(t.nodeName==="dict"){if(e={},s=null,n=0,rt(t))return e;for(o=0;o<t.childNodes.length;o++)Ln(t.childNodes[o])||(n%2===0?((0,we.default)(t.childNodes[o].nodeName==="key","Missing key while parsing <dict/>."),s=ye(t.childNodes[o])):((0,we.default)(t.childNodes[o].nodeName!=="key",'Unexpected key "'+ye(t.childNodes[o])+'" while parsing <dict/>.'),e[s]=ye(t.childNodes[o])),n+=1);if(n%2===1)throw new Error('Missing value for "'+s+'" while parsing <dict/>');return e}else if(t.nodeName==="array"){if(i=[],rt(t))return i;for(o=0;o<t.childNodes.length;o++)Ln(t.childNodes[o])||(r=ye(t.childNodes[o]),r!=null&&i.push(r));return i}else if(t.nodeName!=="#text"){if(t.nodeName==="key")return rt(t)?"":t.childNodes[0].nodeValue;if(t.nodeName==="string"){if(r="",rt(t))return r;for(o=0;o<t.childNodes.length;o++){let a=t.childNodes[o].nodeType;(a===ji||a===zg)&&(r+=t.childNodes[o].nodeValue)}return r}else{if(t.nodeName==="integer")return(0,we.default)(!rt(t),'Cannot parse "" as integer.'),parseInt(t.childNodes[0].nodeValue,10);if(t.nodeName==="real"){for((0,we.default)(!rt(t),'Cannot parse "" as real.'),r="",o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===ji&&(r+=t.childNodes[o].nodeValue);return parseFloat(r)}else if(t.nodeName==="data"){if(r="",rt(t))return Buffer.from(r,"base64");for(o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===ji&&(r+=t.childNodes[o].nodeValue.replace(/\s+/g,""));return Buffer.from(r,"base64")}else{if(t.nodeName==="date")return(0,we.default)(!rt(t),'Cannot parse "" as Date.'),new Date(t.childNodes[0].nodeValue);if(t.nodeName==="true")return!0;if(t.nodeName==="false")return!1}}}}});var Kg=S(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});var By=vm(),Dy=kg();Tn.default={parse:Dy.parse,build:By.build}});var Hy={};Vg(Hy,{ConsoleLogger:()=>Ye,repackAppAndroidAsync:()=>Q_,repackAppIosAsync:()=>qg});module.exports=Xg(Hy);var dn=P(require("node:assert")),ne=P(require("node:fs/promises")),gt=P(require("node:path")),A_=P(Hi());var zt=P(require("node:assert")),vo=P(require("node:fs/promises")),Fo=P(require("node:path")),Ws=P(ur());var hc="./apktool.jar";var zc=Fo.default.resolve(__dirname,hc),kc=/^W: (?<file>.+?):\d+?: error: resource (?<resource>android:.+?) is private./;async function Kc(t,o){let{spawnAsync:e,workingDirectory:s}=o,i="decoded-apk";return await e("java",["-jar",zc,"decode",t,"-s","-o",i],{cwd:s}),Fo.default.join(s,i)}async function Gc(t,o){let e=null;try{return await fc(t,o)}catch(s){if(s.stderr&&kc.test(s.stderr))e=s.stderr;else throw s}if(e)return await Lg({logger:o.logger,apktoolError:e}),await fc(t,o);throw new Error("Failed to rebuild APK.")}async function Lg({logger:t,apktoolError:o}){let e=o.split(`
29
+ `),s=new Map;for(let i of e){let r=kc.exec(i);if(r?.groups){let{file:n,resource:a}=r.groups;s.has(n)||s.set(n,new Set),s.get(n)?.add(a)}}for(let[i,r]of s){t.info(`Trying to fix private resource - file[${i}] resources[${[...r].join(", ")}]`);let n=await vo.default.readFile(i,"utf8");for(let a of r){let c=`@${a}`,u=a.indexOf(":");(0,zt.default)(u>0,"Invalid android resource.");let d=a.slice(0,u),x=a.slice(u+1);(0,zt.default)(d==="android","Invalid android resource.");let m=`@*android:${x}`;n=n.replaceAll(c,m)}await vo.default.writeFile(i,n,"utf8")}}async function fc(t,o){let{spawnAsync:e,workingDirectory:s}=o,r=Fo.default.resolve(s,"apktool-packed.apk");return await e("java",["-jar",zc,"build","-o",r,t]),r}async function bc({decodedApkRoot:t,assetRoot:o,bundleOutputPath:e}){await vo.default.copyFile(e,Fo.default.join(t,"assets","index.android.bundle"));let s=await Wc(o,Fo.default.join(t,"res"));await Tg(t,s)}async function vc(t,o){let e=Fo.default.join(t,"apktool.yml"),s=await vo.default.readFile(e,"utf8");if(s.includes("renameManifestPackage:"))s=s.replace(/^(\s+renameManifestPackage:\s+)(.+)$/gm,`$1${o}`);else{let i=s.match(/^(packageInfo:\s*\n(?:\s+.+\n)*)/m);if(i){let r=i[1],n=r.trimEnd()+`
30
+ renameManifestPackage: ${o}
31
+ `;s=s.replace(r,n)}}await vo.default.writeFile(e,s)}async function Tg(t,o){let e=Fo.default.join(t,"res/values/public.xml"),s=await vo.default.readFile(e,"utf8"),i=new Ws.Parser,r=new Set,n=await i.parseStringPromise(s),a=0,c=0,u=0;for(let k of n.resources.public){let W=parseInt(k.$.id,16);k.$.type==="drawable"?(a=Math.max(a,W),r.add(k.$.name)):k.$.type==="raw"&&(c=Math.max(c,W),r.add(k.$.name)),u=Math.max(u,W)}(0,zt.default)(a!==0,"Drawable resources must be defined."),c===0&&(c=(u&4294901760)+65536);let d=(a&4294901760)+65536,x=(c&4294901760)+65536,m=new Set([...o.keys()].filter(k=>!r.has(k)));for(let k of m){let W=o.get(k);W!=null&&(W.type==="drawable"?(a+=1,(0,zt.default)(a<d,"Drawable resource ID boundary exceeded."),n.resources.public.push({$:{type:"drawable",name:W.name,id:`0x${a.toString(16)}`}})):W.type==="raw"&&(c+=1,(0,zt.default)(c<x,"Raw resource ID boundary exceeded."),n.resources.public.push({$:{type:"raw",name:W.name,id:`0x${c.toString(16)}`}})))}let f=new Ws.Builder().buildObject(n);await vo.default.writeFile(e,f)}function Ug(t){if(t.startsWith("drawable"))return"drawable";if(t==="raw")return"raw";throw new Error(`Unsupported asset type for ${t}`)}async function Wc(t,o,e=0,s=2,i=void 0,r=new Map){await vo.default.mkdir(o,{recursive:!0});let n=await vo.default.readdir(t,{withFileTypes:!0});return await Promise.all(n.map(async a=>{let c=Fo.default.join(t,a.name),u=Fo.default.join(o,a.name);if(a.isDirectory()){let d=i??Ug(a.name);e<s-1?await Wc(c,u,e+1,s,d,r):await vo.default.mkdir(u,{recursive:!0})}else{await vo.default.copyFile(c,u);let{name:d}=Fo.default.parse(a.name);(0,zt.default)(i,"Asset type must be defined."),r.set(d,{name:d,type:i})}})),r}var Rc=P(Zc(),1);var Ke=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};var $g={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Ge=t=>t.replace(/[[\]\\-]/g,"\\$&"),Hg=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Pc=t=>t.join(""),Lc=(t,o)=>{let e=o;if(t.charAt(e)!=="[")throw new Error("not in a brace expression");let s=[],i=[],r=e+1,n=!1,a=!1,c=!1,u=!1,d=e,x="";o:for(;r<t.length;){let k=t.charAt(r);if((k==="!"||k==="^")&&r===e+1){u=!0,r++;continue}if(k==="]"&&n&&!c){d=r+1;break}if(n=!0,k==="\\"&&!c){c=!0,r++;continue}if(k==="["&&!c){for(let[W,[p,q,O]]of Object.entries($g))if(t.startsWith(W,r)){if(x)return["$.",!1,t.length-e,!0];r+=W.length,O?i.push(p):s.push(p),a=a||q;continue o}}if(c=!1,x){k>x?s.push(Ge(x)+"-"+Ge(k)):k===x&&s.push(Ge(k)),x="",r++;continue}if(t.startsWith("-]",r+1)){s.push(Ge(k+"-")),r+=2;continue}if(t.startsWith("-",r+1)){x=k,r+=2;continue}s.push(Ge(k)),r++}if(d<r)return["",!1,0,!1];if(!s.length&&!i.length)return["$.",!1,t.length-e,!0];if(i.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!u){let k=s[0].length===2?s[0].slice(-1):s[0];return[Hg(k),!1,d-e,!1]}let m="["+(u?"^":"")+Pc(s)+"]",w="["+(u?"":"^")+Pc(i)+"]";return[s.length&&i.length?"("+m+"|"+w+")":s.length?m:w,a,d-e,!0]};var Mo=(t,{windowsPathsNoEscape:o=!1}={})=>o?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var oO=new Set(["!","?","+","*","@"]),Tc=t=>oO.has(t),tO="(?!(?:^|/)\\.\\.?(?:$|/))",ps="(?!\\.)",eO=new Set(["[","."]),sO=new Set(["..","."]),iO=new Set("().*{}+?[]^$\\!"),rO=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mr="[^/]",Uc=mr+"*?",Ac=mr+"+?",Ft=class t{type;#o;#t;#r=!1;#s=[];#n;#f;#l;#_=!1;#a;#c;#i=!1;constructor(o,e,s={}){this.type=o,o&&(this.#t=!0),this.#n=e,this.#o=this.#n?this.#n.#o:this,this.#a=this.#o===this?s:this.#o.#a,this.#l=this.#o===this?[]:this.#o.#l,o==="!"&&!this.#o.#_&&this.#l.push(this),this.#f=this.#n?this.#n.#s.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let o of this.#s)if(typeof o!="string"&&(o.type||o.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#s.map(o=>String(o)).join("|")+")":this.#c=this.#s.map(o=>String(o)).join("")}#d(){if(this!==this.#o)throw new Error("should only call on root");if(this.#_)return this;this.toString(),this.#_=!0;let o;for(;o=this.#l.pop();){if(o.type!=="!")continue;let e=o,s=e.#n;for(;s;){for(let i=e.#f+1;!s.type&&i<s.#s.length;i++)for(let r of o.#s){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(s.#s[i])}e=s,s=e.#n}}return this}push(...o){for(let e of o)if(e!==""){if(typeof e!="string"&&!(e instanceof t&&e.#n===this))throw new Error("invalid part: "+e);this.#s.push(e)}}toJSON(){let o=this.type===null?this.#s.slice().map(e=>typeof e=="string"?e:e.toJSON()):[this.type,...this.#s.map(e=>e.toJSON())];return this.isStart()&&!this.type&&o.unshift([]),this.isEnd()&&(this===this.#o||this.#o.#_&&this.#n?.type==="!")&&o.push({}),o}isStart(){if(this.#o===this)return!0;if(!this.#n?.isStart())return!1;if(this.#f===0)return!0;let o=this.#n;for(let e=0;e<this.#f;e++){let s=o.#s[e];if(!(s instanceof t&&s.type==="!"))return!1}return!0}isEnd(){if(this.#o===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let o=this.#n?this.#n.#s.length:0;return this.#f===o-1}copyIn(o){typeof o=="string"?this.push(o):this.push(o.clone(this))}clone(o){let e=new t(this.type,o);for(let s of this.#s)e.copyIn(s);return e}static#w(o,e,s,i){let r=!1,n=!1,a=-1,c=!1;if(e.type===null){let w=s,f="";for(;w<o.length;){let k=o.charAt(w++);if(r||k==="\\"){r=!r,f+=k;continue}if(n){w===a+1?(k==="^"||k==="!")&&(c=!0):k==="]"&&!(w===a+2&&c)&&(n=!1),f+=k;continue}else if(k==="["){n=!0,a=w,c=!1,f+=k;continue}if(!i.noext&&Tc(k)&&o.charAt(w)==="("){e.push(f),f="";let W=new t(k,e);w=t.#w(o,W,w,i),e.push(W);continue}f+=k}return e.push(f),w}let u=s+1,d=new t(null,e),x=[],m="";for(;u<o.length;){let w=o.charAt(u++);if(r||w==="\\"){r=!r,m+=w;continue}if(n){u===a+1?(w==="^"||w==="!")&&(c=!0):w==="]"&&!(u===a+2&&c)&&(n=!1),m+=w;continue}else if(w==="["){n=!0,a=u,c=!1,m+=w;continue}if(Tc(w)&&o.charAt(u)==="("){d.push(m),m="";let f=new t(w,d);d.push(f),u=t.#w(o,f,u,i);continue}if(w==="|"){d.push(m),m="",x.push(d),d=new t(null,e);continue}if(w===")")return m===""&&e.#s.length===0&&(e.#i=!0),d.push(m),m="",e.push(...x,d),u;m+=w}return e.type=null,e.#t=void 0,e.#s=[o.substring(s-1)],u}static fromGlob(o,e={}){let s=new t(null,void 0,e);return t.#w(o,s,0,e),s}toMMPattern(){if(this!==this.#o)return this.#o.toMMPattern();let o=this.toString(),[e,s,i,r]=this.toRegExpSource();if(!(i||this.#t||this.#a.nocase&&!this.#a.nocaseMagicOnly&&o.toUpperCase()!==o.toLowerCase()))return s;let a=(this.#a.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${e}$`,a),{_src:e,_glob:o})}get options(){return this.#a}toRegExpSource(o){let e=o??!!this.#a.dot;if(this.#o===this&&this.#d(),!this.type){let c=this.isStart()&&this.isEnd(),u=this.#s.map(w=>{let[f,k,W,p]=typeof w=="string"?t.#x(w,this.#t,c):w.toRegExpSource(o);return this.#t=this.#t||W,this.#r=this.#r||p,f}).join(""),d="";if(this.isStart()&&typeof this.#s[0]=="string"&&!(this.#s.length===1&&sO.has(this.#s[0]))){let f=eO,k=e&&f.has(u.charAt(0))||u.startsWith("\\.")&&f.has(u.charAt(2))||u.startsWith("\\.\\.")&&f.has(u.charAt(4)),W=!e&&!o&&f.has(u.charAt(0));d=k?tO:W?ps:""}let x="";return this.isEnd()&&this.#o.#_&&this.#n?.type==="!"&&(x="(?:$|\\/)"),[d+u+x,Mo(u),this.#t=!!this.#t,this.#r]}let s=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#m(e);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let c=this.toString();return this.#s=[c],this.type=null,this.#t=void 0,[c,Mo(this.toString()),!1,!1]}let n=!s||o||e||!ps?"":this.#m(!0);n===r&&(n=""),n&&(r=`(?:${r})(?:${n})*?`);let a="";if(this.type==="!"&&this.#i)a=(this.isStart()&&!e?ps:"")+Ac;else{let c=this.type==="!"?"))"+(this.isStart()&&!e&&!o?ps:"")+Uc+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&n?")":this.type==="*"&&n?")?":`)${this.type}`;a=i+r+c}return[a,Mo(r),this.#t=!!this.#t,this.#r]}#m(o){return this.#s.map(e=>{if(typeof e=="string")throw new Error("string type in extglob ast??");let[s,i,r,n]=e.toRegExpSource(o);return this.#r=this.#r||n,s}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static#x(o,e,s=!1){let i=!1,r="",n=!1;for(let a=0;a<o.length;a++){let c=o.charAt(a);if(i){i=!1,r+=(iO.has(c)?"\\":"")+c;continue}if(c==="\\"){a===o.length-1?r+="\\\\":i=!0;continue}if(c==="["){let[u,d,x,m]=Lc(o,a);if(x){r+=u,n=n||d,a+=x-1,e=e||m;continue}}if(c==="*"){s&&o==="*"?r+=Ac:r+=Uc,e=!0;continue}if(c==="?"){r+=mr,e=!0;continue}r+=rO(c)}return[r,Mo(o),!!e,n]}};var Mt=(t,{windowsPathsNoEscape:o=!1}={})=>o?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var uo=(t,o,e={})=>(Ke(o),!e.nocomment&&o.charAt(0)==="#"?!1:new fo(o,e).match(t)),nO=/^\*+([^+@!?\*\[\(]*)$/,aO=t=>o=>!o.startsWith(".")&&o.endsWith(t),cO=t=>o=>o.endsWith(t),lO=t=>(t=t.toLowerCase(),o=>!o.startsWith(".")&&o.toLowerCase().endsWith(t)),uO=t=>(t=t.toLowerCase(),o=>o.toLowerCase().endsWith(t)),_O=/^\*+\.\*+$/,xO=t=>!t.startsWith(".")&&t.includes("."),mO=t=>t!=="."&&t!==".."&&t.includes("."),gO=/^\.\*+$/,OO=t=>t!=="."&&t!==".."&&t.startsWith("."),dO=/^\*+$/,wO=t=>t.length!==0&&!t.startsWith("."),yO=t=>t.length!==0&&t!=="."&&t!=="..",hO=/^\?+([^+@!?\*\[\(]*)?$/,fO=([t,o=""])=>{let e=Jc([t]);return o?(o=o.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(o)):e},zO=([t,o=""])=>{let e=Bc([t]);return o?(o=o.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(o)):e},kO=([t,o=""])=>{let e=Bc([t]);return o?s=>e(s)&&s.endsWith(o):e},KO=([t,o=""])=>{let e=Jc([t]);return o?s=>e(s)&&s.endsWith(o):e},Jc=([t])=>{let o=t.length;return e=>e.length===o&&!e.startsWith(".")},Bc=([t])=>{let o=t.length;return e=>e.length===o&&e!=="."&&e!==".."},Dc=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Qc={win32:{sep:"\\"},posix:{sep:"/"}},GO=Dc==="win32"?Qc.win32.sep:Qc.posix.sep;uo.sep=GO;var io=Symbol("globstar **");uo.GLOBSTAR=io;var bO="[^/]",vO=bO+"*?",WO="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",pO="(?:(?!(?:\\/|^)\\.).)*?",qO=(t,o={})=>e=>uo(e,t,o);uo.filter=qO;var Wo=(t,o={})=>Object.assign({},t,o),CO=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return uo;let o=uo;return Object.assign((s,i,r={})=>o(s,i,Wo(t,r)),{Minimatch:class extends o.Minimatch{constructor(i,r={}){super(i,Wo(t,r))}static defaults(i){return o.defaults(Wo(t,i)).Minimatch}},AST:class extends o.AST{constructor(i,r,n={}){super(i,r,Wo(t,n))}static fromGlob(i,r={}){return o.AST.fromGlob(i,Wo(t,r))}},unescape:(s,i={})=>o.unescape(s,Wo(t,i)),escape:(s,i={})=>o.escape(s,Wo(t,i)),filter:(s,i={})=>o.filter(s,Wo(t,i)),defaults:s=>o.defaults(Wo(t,s)),makeRe:(s,i={})=>o.makeRe(s,Wo(t,i)),braceExpand:(s,i={})=>o.braceExpand(s,Wo(t,i)),match:(s,i,r={})=>o.match(s,i,Wo(t,r)),sep:o.sep,GLOBSTAR:io})};uo.defaults=CO;var $c=(t,o={})=>(Ke(t),o.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Rc.default)(t));uo.braceExpand=$c;var NO=(t,o={})=>new fo(t,o).makeRe();uo.makeRe=NO;var SO=(t,o,e={})=>{let s=new fo(o,e);return t=t.filter(i=>s.match(i)),s.options.nonull&&!t.length&&t.push(o),t};uo.match=SO;var jc=/[?*]|[+@!]\(.*?\)|\[|\]/,FO=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fo=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(o,e={}){Ke(o),e=e||{},this.options=e,this.pattern=o,this.platform=e.platform||Dc,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=e.windowsNoMagicRoot!==void 0?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let o of this.set)for(let e of o)if(typeof e!="string")return!0;return!1}debug(...o){}make(){let o=this.pattern,e=this.options;if(!e.nocomment&&o.charAt(0)==="#"){this.comment=!0;return}if(!o){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let s=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let i=this.globParts.map((r,n,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[0]===""&&r[1]===""&&(r[2]==="?"||!jc.test(r[2]))&&!jc.test(r[3]),u=/^[a-z]:/i.test(r[0]);if(c)return[...r.slice(0,4),...r.slice(4).map(d=>this.parse(d))];if(u)return[r[0],...r.slice(1).map(d=>this.parse(d))]}return r.map(c=>this.parse(c))});if(this.debug(this.pattern,i),this.set=i.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let n=this.set[r];n[0]===""&&n[1]===""&&this.globParts[r][2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])&&(n[2]="?")}this.debug(this.pattern,this.set)}preprocess(o){if(this.options.noglobstar)for(let s=0;s<o.length;s++)for(let i=0;i<o[s].length;i++)o[s][i]==="**"&&(o[s][i]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(o=this.firstPhasePreProcess(o),o=this.secondPhasePreProcess(o)):e>=1?o=this.levelOneOptimize(o):o=this.adjascentGlobstarOptimize(o),o}adjascentGlobstarOptimize(o){return o.map(e=>{let s=-1;for(;(s=e.indexOf("**",s+1))!==-1;){let i=s;for(;e[i+1]==="**";)i++;i!==s&&e.splice(s,i-s)}return e})}levelOneOptimize(o){return o.map(e=>(e=e.reduce((s,i)=>{let r=s[s.length-1];return i==="**"&&r==="**"?s:i===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(s.pop(),s):(s.push(i),s)},[]),e.length===0?[""]:e))}levelTwoFileOptimize(o){Array.isArray(o)||(o=this.slashSplit(o));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<o.length-1;i++){let r=o[i];i===1&&r===""&&o[0]===""||(r==="."||r==="")&&(e=!0,o.splice(i,1),i--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(e=!0,o.pop())}let s=0;for(;(s=o.indexOf("..",s+1))!==-1;){let i=o[s-1];i&&i!=="."&&i!==".."&&i!=="**"&&(e=!0,o.splice(s-1,2),s-=2)}}while(e);return o.length===0?[""]:o}firstPhasePreProcess(o){let e=!1;do{e=!1;for(let s of o){let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let n=i;for(;s[n+1]==="**";)n++;n>i&&s.splice(i+1,n-i);let a=s[i+1],c=s[i+2],u=s[i+3];if(a!==".."||!c||c==="."||c===".."||!u||u==="."||u==="..")continue;e=!0,s.splice(i,1);let d=s.slice(0);d[i]="**",o.push(d),i--}if(!this.preserveMultipleSlashes){for(let n=1;n<s.length-1;n++){let a=s[n];n===1&&a===""&&s[0]===""||(a==="."||a==="")&&(e=!0,s.splice(n,1),n--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(e=!0,s.pop())}let r=0;for(;(r=s.indexOf("..",r+1))!==-1;){let n=s[r-1];if(n&&n!=="."&&n!==".."&&n!=="**"){e=!0;let c=r===1&&s[r+1]==="**"?["."]:[];s.splice(r-1,2,...c),s.length===0&&s.push(""),r-=2}}}}while(e);return o}secondPhasePreProcess(o){for(let e=0;e<o.length-1;e++)for(let s=e+1;s<o.length;s++){let i=this.partsMatch(o[e],o[s],!this.preserveMultipleSlashes);if(i){o[e]=[],o[s]=i;break}}return o.filter(e=>e.length)}partsMatch(o,e,s=!1){let i=0,r=0,n=[],a="";for(;i<o.length&&r<e.length;)if(o[i]===e[r])n.push(a==="b"?e[r]:o[i]),i++,r++;else if(s&&o[i]==="**"&&e[r]===o[i+1])n.push(o[i]),i++;else if(s&&e[r]==="**"&&o[i]===e[r+1])n.push(e[r]),r++;else if(o[i]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(a==="b")return!1;a="a",n.push(o[i]),i++,r++}else if(e[r]==="*"&&o[i]&&(this.options.dot||!o[i].startsWith("."))&&o[i]!=="**"){if(a==="a")return!1;a="b",n.push(e[r]),i++,r++}else return!1;return o.length===e.length&&n}parseNegate(){if(this.nonegate)return;let o=this.pattern,e=!1,s=0;for(let i=0;i<o.length&&o.charAt(i)==="!";i++)e=!e,s++;s&&(this.pattern=o.slice(s)),this.negate=e}matchOne(o,e,s=!1){let i=this.options;if(this.isWindows){let k=typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0]),W=!k&&o[0]===""&&o[1]===""&&o[2]==="?"&&/^[a-z]:$/i.test(o[3]),p=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),q=!p&&e[0]===""&&e[1]===""&&e[2]==="?"&&typeof e[3]=="string"&&/^[a-z]:$/i.test(e[3]),O=W?3:k?0:void 0,l=q?3:p?0:void 0;if(typeof O=="number"&&typeof l=="number"){let[g,_]=[o[O],e[l]];g.toLowerCase()===_.toLowerCase()&&(e[l]=g,l>O?e=e.slice(l):O>l&&(o=o.slice(O)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(o=this.levelTwoFileOptimize(o)),this.debug("matchOne",this,{file:o,pattern:e}),this.debug("matchOne",o.length,e.length);for(var n=0,a=0,c=o.length,u=e.length;n<c&&a<u;n++,a++){this.debug("matchOne loop");var d=e[a],x=o[n];if(this.debug(e,d,x),d===!1)return!1;if(d===io){this.debug("GLOBSTAR",[e,d,x]);var m=n,w=a+1;if(w===u){for(this.debug("** at the end");n<c;n++)if(o[n]==="."||o[n]===".."||!i.dot&&o[n].charAt(0)===".")return!1;return!0}for(;m<c;){var f=o[m];if(this.debug(`
32
+ globstar while`,o,m,e,w,f),this.matchOne(o.slice(m),e.slice(w),s))return this.debug("globstar found match!",m,c,f),!0;if(f==="."||f===".."||!i.dot&&f.charAt(0)==="."){this.debug("dot detected!",o,m,e,w);break}this.debug("globstar swallow a segment, and continue"),m++}return!!(s&&(this.debug(`
33
+ >>> no match, partial?`,o,m,e,w),m===c))}let k;if(typeof d=="string"?(k=x===d,this.debug("string match",d,x,k)):(k=d.test(x),this.debug("pattern match",d,x,k)),!k)return!1}if(n===c&&a===u)return!0;if(n===c)return s;if(a===u)return n===c-1&&o[n]==="";throw new Error("wtf?")}braceExpand(){return $c(this.pattern,this.options)}parse(o){Ke(o);let e=this.options;if(o==="**")return io;if(o==="")return"";let s,i=null;(s=o.match(dO))?i=e.dot?yO:wO:(s=o.match(nO))?i=(e.nocase?e.dot?uO:lO:e.dot?cO:aO)(s[1]):(s=o.match(hO))?i=(e.nocase?e.dot?zO:fO:e.dot?kO:KO)(s):(s=o.match(_O))?i=e.dot?mO:xO:(s=o.match(gO))&&(i=OO);let r=Ft.fromGlob(o,this.options).toMMPattern();return i&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:i}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let o=this.set;if(!o.length)return this.regexp=!1,this.regexp;let e=this.options,s=e.noglobstar?vO:e.dot?WO:pO,i=new Set(e.nocase?["i"]:[]),r=o.map(c=>{let u=c.map(d=>{if(d instanceof RegExp)for(let x of d.flags.split(""))i.add(x);return typeof d=="string"?FO(d):d===io?io:d._src});return u.forEach((d,x)=>{let m=u[x+1],w=u[x-1];d!==io||w===io||(w===void 0?m!==void 0&&m!==io?u[x+1]="(?:\\/|"+s+"\\/)?"+m:u[x]=s:m===void 0?u[x-1]=w+"(?:\\/|"+s+")?":m!==io&&(u[x-1]=w+"(?:\\/|\\/"+s+"\\/)"+m,u[x+1]=io))}),u.filter(d=>d!==io).join("/")}).join("|"),[n,a]=o.length>1?["(?:",")"]:["",""];r="^"+n+r+a+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(o){return this.preserveMultipleSlashes?o.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(o)?["",...o.split(/\/+/)]:o.split(/\/+/)}match(o,e=this.partial){if(this.debug("match",o,this.pattern),this.comment)return!1;if(this.empty)return o==="";if(o==="/"&&e)return!0;let s=this.options;this.isWindows&&(o=o.split("\\").join("/"));let i=this.slashSplit(o);this.debug(this.pattern,"split",i);let r=this.set;this.debug(this.pattern,"set",r);let n=i[i.length-1];if(!n)for(let a=i.length-2;!n&&a>=0;a--)n=i[a];for(let a=0;a<r.length;a++){let c=r[a],u=i;if(s.matchBase&&c.length===1&&(u=[n]),this.matchOne(u,c,e))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(o){return uo.defaults(o).Minimatch}};uo.AST=Ft;uo.Minimatch=fo;uo.escape=Mt;uo.unescape=Mo;var kl=require("node:url");var Et=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ol=new Set,gr=typeof process=="object"&&process?process:{},tl=(t,o,e,s)=>{typeof gr.emitWarning=="function"?gr.emitWarning(t,o,e,s):console.error(`[${e}] ${o}: ${t}`)},qs=globalThis.AbortController,Hc=globalThis.AbortSignal;if(typeof qs>"u"){Hc=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,i){this._onabort.push(i)}},qs=class{constructor(){o()}signal=new Hc;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let i of this.signal._onabort)i(s);this.signal.onabort?.(s)}}};let t=gr.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=()=>{t&&(t=!1,tl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))}}var MO=t=>!ol.has(t),Fh=Symbol("type"),lt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),el=t=>lt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Vt:null:null,Vt=class extends Array{constructor(o){super(o),this.fill(0)}},Or=class t{heap;length;static#o=!1;static create(o){let e=el(o);if(!e)return[];t.#o=!0;let s=new t(o,e);return t.#o=!1,s}constructor(o,e){if(!t.#o)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},be=class t{#o;#t;#r;#s;#n;#f;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#_;#a;#c;#i;#d;#w;#m;#x;#K;#O;#G;#b;#h;#z;#k;#g;static unsafeExposeInternals(o){return{starts:o.#b,ttls:o.#h,sizes:o.#G,keyMap:o.#a,keyList:o.#c,valList:o.#i,next:o.#d,prev:o.#w,get head(){return o.#m},get tail(){return o.#x},free:o.#K,isBackgroundFetch:e=>o.#u(e),backgroundFetch:(e,s,i,r)=>o.#Y(e,s,i,r),moveToTail:e=>o.#Z(e),indexes:e=>o.#W(e),rindexes:e=>o.#p(e),isStale:e=>o.#y(e)}}get max(){return this.#o}get maxSize(){return this.#t}get calculatedSize(){return this.#_}get size(){return this.#l}get fetchMethod(){return this.#n}get memoMethod(){return this.#f}get dispose(){return this.#r}get disposeAfter(){return this.#s}constructor(o){let{max:e=0,ttl:s,ttlResolution:i=1,ttlAutopurge:r,updateAgeOnGet:n,updateAgeOnHas:a,allowStale:c,dispose:u,disposeAfter:d,noDisposeOnSet:x,noUpdateTTL:m,maxSize:w=0,maxEntrySize:f=0,sizeCalculation:k,fetchMethod:W,memoMethod:p,noDeleteOnFetchRejection:q,noDeleteOnStaleGet:O,allowStaleOnFetchRejection:l,allowStaleOnFetchAbort:g,ignoreFetchAbort:_}=o;if(e!==0&&!lt(e))throw new TypeError("max option must be a nonnegative integer");let G=e?el(e):Array;if(!G)throw new Error("invalid max value: "+e);if(this.#o=e,this.#t=w,this.maxEntrySize=f||this.#t,this.sizeCalculation=k,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(p!==void 0&&typeof p!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#f=p,W!==void 0&&typeof W!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#n=W,this.#k=!!W,this.#a=new Map,this.#c=new Array(e).fill(void 0),this.#i=new Array(e).fill(void 0),this.#d=new G(e),this.#w=new G(e),this.#m=0,this.#x=0,this.#K=Or.create(e),this.#l=0,this.#_=0,typeof u=="function"&&(this.#r=u),typeof d=="function"?(this.#s=d,this.#O=[]):(this.#s=void 0,this.#O=void 0),this.#z=!!this.#r,this.#g=!!this.#s,this.noDisposeOnSet=!!x,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!q,this.allowStaleOnFetchRejection=!!l,this.allowStaleOnFetchAbort=!!g,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(this.#t!==0&&!lt(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!lt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#C()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!O,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!a,this.ttlResolution=lt(i)||i===0?i:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!lt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#q()}if(this.#o===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#o&&!this.#t){let y="LRU_CACHE_UNBOUNDED";MO(y)&&(ol.add(y),tl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",y,t))}}getRemainingTTL(o){return this.#a.has(o)?1/0:0}#q(){let o=new Vt(this.#o),e=new Vt(this.#o);this.#h=o,this.#b=e,this.#S=(r,n,a=Et.now())=>{if(e[r]=n!==0?a:0,o[r]=n,n!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#y(r)&&this.#N(this.#c[r],"expire")},n+1);c.unref&&c.unref()}},this.#v=r=>{e[r]=o[r]!==0?Et.now():0},this.#e=(r,n)=>{if(o[n]){let a=o[n],c=e[n];if(!a||!c)return;r.ttl=a,r.start=c,r.now=s||i();let u=r.now-c;r.remainingTTL=a-u}};let s=0,i=()=>{let r=Et.now();if(this.ttlResolution>0){s=r;let n=setTimeout(()=>s=0,this.ttlResolution);n.unref&&n.unref()}return r};this.getRemainingTTL=r=>{let n=this.#a.get(r);if(n===void 0)return 0;let a=o[n],c=e[n];if(!a||!c)return 1/0;let u=(s||i())-c;return a-u},this.#y=r=>{let n=e[r],a=o[r];return!!a&&!!n&&(s||i())-n>a}}#v=()=>{};#e=()=>{};#S=()=>{};#y=()=>!1;#C(){let o=new Vt(this.#o);this.#_=0,this.#G=o,this.#F=e=>{this.#_-=o[e],o[e]=0},this.#E=(e,s,i,r)=>{if(this.#u(s))return 0;if(!lt(i))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(i=r(s,e),!lt(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#M=(e,s,i)=>{if(o[e]=s,this.#t){let r=this.#t-o[e];for(;this.#_>r;)this.#X(!0)}this.#_+=o[e],i&&(i.entrySize=s,i.totalCalculatedSize=this.#_)}}#F=o=>{};#M=(o,e,s)=>{};#E=(o,e,s,i)=>{if(s||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#W({allowStale:o=this.allowStale}={}){if(this.#l)for(let e=this.#x;!(!this.#V(e)||((o||!this.#y(e))&&(yield e),e===this.#m));)e=this.#w[e]}*#p({allowStale:o=this.allowStale}={}){if(this.#l)for(let e=this.#m;!(!this.#V(e)||((o||!this.#y(e))&&(yield e),e===this.#x));)e=this.#d[e]}#V(o){return o!==void 0&&this.#a.get(this.#c[o])===o}*entries(){for(let o of this.#W())this.#i[o]!==void 0&&this.#c[o]!==void 0&&!this.#u(this.#i[o])&&(yield[this.#c[o],this.#i[o]])}*rentries(){for(let o of this.#p())this.#i[o]!==void 0&&this.#c[o]!==void 0&&!this.#u(this.#i[o])&&(yield[this.#c[o],this.#i[o]])}*keys(){for(let o of this.#W()){let e=this.#c[o];e!==void 0&&!this.#u(this.#i[o])&&(yield e)}}*rkeys(){for(let o of this.#p()){let e=this.#c[o];e!==void 0&&!this.#u(this.#i[o])&&(yield e)}}*values(){for(let o of this.#W())this.#i[o]!==void 0&&!this.#u(this.#i[o])&&(yield this.#i[o])}*rvalues(){for(let o of this.#p())this.#i[o]!==void 0&&!this.#u(this.#i[o])&&(yield this.#i[o])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(o,e={}){for(let s of this.#W()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;if(r!==void 0&&o(r,this.#c[s],this))return this.get(this.#c[s],e)}}forEach(o,e=this){for(let s of this.#W()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;r!==void 0&&o.call(e,r,this.#c[s],this)}}rforEach(o,e=this){for(let s of this.#p()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;r!==void 0&&o.call(e,r,this.#c[s],this)}}purgeStale(){let o=!1;for(let e of this.#p({allowStale:!0}))this.#y(e)&&(this.#N(this.#c[e],"expire"),o=!0);return o}info(o){let e=this.#a.get(o);if(e===void 0)return;let s=this.#i[e],i=this.#u(s)?s.__staleWhileFetching:s;if(i===void 0)return;let r={value:i};if(this.#h&&this.#b){let n=this.#h[e],a=this.#b[e];if(n&&a){let c=n-(Et.now()-a);r.ttl=c,r.start=Date.now()}}return this.#G&&(r.size=this.#G[e]),r}dump(){let o=[];for(let e of this.#W({allowStale:!0})){let s=this.#c[e],i=this.#i[e],r=this.#u(i)?i.__staleWhileFetching:i;if(r===void 0||s===void 0)continue;let n={value:r};if(this.#h&&this.#b){n.ttl=this.#h[e];let a=Et.now()-this.#b[e];n.start=Math.floor(Date.now()-a)}this.#G&&(n.size=this.#G[e]),o.unshift([s,n])}return o}load(o){this.clear();for(let[e,s]of o){if(s.start){let i=Date.now()-s.start;s.start=Et.now()-i}this.set(e,s.value,s)}}set(o,e,s={}){if(e===void 0)return this.delete(o),this;let{ttl:i=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=s,{noUpdateTTL:u=this.noUpdateTTL}=s,d=this.#E(o,e,s.size||0,a);if(this.maxEntrySize&&d>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#N(o,"set"),this;let x=this.#l===0?void 0:this.#a.get(o);if(x===void 0)x=this.#l===0?this.#x:this.#K.length!==0?this.#K.pop():this.#l===this.#o?this.#X(!1):this.#l,this.#c[x]=o,this.#i[x]=e,this.#a.set(o,x),this.#d[this.#x]=x,this.#w[x]=this.#x,this.#x=x,this.#l++,this.#M(x,d,c),c&&(c.set="add"),u=!1;else{this.#Z(x);let m=this.#i[x];if(e!==m){if(this.#k&&this.#u(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=m;w!==void 0&&!n&&(this.#z&&this.#r?.(w,o,"set"),this.#g&&this.#O?.push([w,o,"set"]))}else n||(this.#z&&this.#r?.(m,o,"set"),this.#g&&this.#O?.push([m,o,"set"]));if(this.#F(x),this.#M(x,d,c),this.#i[x]=e,c){c.set="replace";let w=m&&this.#u(m)?m.__staleWhileFetching:m;w!==void 0&&(c.oldValue=w)}}else c&&(c.set="update")}if(i!==0&&!this.#h&&this.#q(),this.#h&&(u||this.#S(x,i,r),c&&this.#e(c,x)),!n&&this.#g&&this.#O){let m=this.#O,w;for(;w=m?.shift();)this.#s?.(...w)}return this}pop(){try{for(;this.#l;){let o=this.#i[this.#m];if(this.#X(!0),this.#u(o)){if(o.__staleWhileFetching)return o.__staleWhileFetching}else if(o!==void 0)return o}}finally{if(this.#g&&this.#O){let o=this.#O,e;for(;e=o?.shift();)this.#s?.(...e)}}}#X(o){let e=this.#m,s=this.#c[e],i=this.#i[e];return this.#k&&this.#u(i)?i.__abortController.abort(new Error("evicted")):(this.#z||this.#g)&&(this.#z&&this.#r?.(i,s,"evict"),this.#g&&this.#O?.push([i,s,"evict"])),this.#F(e),o&&(this.#c[e]=void 0,this.#i[e]=void 0,this.#K.push(e)),this.#l===1?(this.#m=this.#x=0,this.#K.length=0):this.#m=this.#d[e],this.#a.delete(s),this.#l--,e}has(o,e={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:i}=e,r=this.#a.get(o);if(r!==void 0){let n=this.#i[r];if(this.#u(n)&&n.__staleWhileFetching===void 0)return!1;if(this.#y(r))i&&(i.has="stale",this.#e(i,r));else return s&&this.#v(r),i&&(i.has="hit",this.#e(i,r)),!0}else i&&(i.has="miss");return!1}peek(o,e={}){let{allowStale:s=this.allowStale}=e,i=this.#a.get(o);if(i===void 0||!s&&this.#y(i))return;let r=this.#i[i];return this.#u(r)?r.__staleWhileFetching:r}#Y(o,e,s,i){let r=e===void 0?void 0:this.#i[e];if(this.#u(r))return r;let n=new qs,{signal:a}=s;a?.addEventListener("abort",()=>n.abort(a.reason),{signal:n.signal});let c={signal:n.signal,options:s,context:i},u=(k,W=!1)=>{let{aborted:p}=n.signal,q=s.ignoreFetchAbort&&k!==void 0;if(s.status&&(p&&!W?(s.status.fetchAborted=!0,s.status.fetchError=n.signal.reason,q&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),p&&!q&&!W)return x(n.signal.reason);let O=w;return this.#i[e]===w&&(k===void 0?O.__staleWhileFetching?this.#i[e]=O.__staleWhileFetching:this.#N(o,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(o,k,c.options))),k},d=k=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=k),x(k)),x=k=>{let{aborted:W}=n.signal,p=W&&s.allowStaleOnFetchAbort,q=p||s.allowStaleOnFetchRejection,O=q||s.noDeleteOnFetchRejection,l=w;if(this.#i[e]===w&&(!O||l.__staleWhileFetching===void 0?this.#N(o,"fetch"):p||(this.#i[e]=l.__staleWhileFetching)),q)return s.status&&l.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw k},m=(k,W)=>{let p=this.#n?.(o,r,c);p&&p instanceof Promise&&p.then(q=>k(q===void 0?void 0:q),W),n.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(k(void 0),s.allowStaleOnFetchAbort&&(k=q=>u(q,!0)))})};s.status&&(s.status.fetchDispatched=!0);let w=new Promise(m).then(u,d),f=Object.assign(w,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return e===void 0?(this.set(o,f,{...c.options,status:void 0}),e=this.#a.get(o)):this.#i[e]=f,f}#u(o){if(!this.#k)return!1;let e=o;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof qs}async fetch(o,e={}){let{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:x=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:w=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:k,forceRefresh:W=!1,status:p,signal:q}=e;if(!this.#k)return p&&(p.fetch="get"),this.get(o,{allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,status:p});let O={allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:a,size:c,sizeCalculation:u,noUpdateTTL:d,noDeleteOnFetchRejection:x,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:f,ignoreFetchAbort:w,status:p,signal:q},l=this.#a.get(o);if(l===void 0){p&&(p.fetch="miss");let g=this.#Y(o,l,O,k);return g.__returned=g}else{let g=this.#i[l];if(this.#u(g)){let z=s&&g.__staleWhileFetching!==void 0;return p&&(p.fetch="inflight",z&&(p.returnedStale=!0)),z?g.__staleWhileFetching:g.__returned=g}let _=this.#y(l);if(!W&&!_)return p&&(p.fetch="hit"),this.#Z(l),i&&this.#v(l),p&&this.#e(p,l),g;let G=this.#Y(o,l,O,k),h=G.__staleWhileFetching!==void 0&&s;return p&&(p.fetch=_?"stale":"refresh",h&&_&&(p.returnedStale=!0)),h?G.__staleWhileFetching:G.__returned=G}}async forceFetch(o,e={}){let s=await this.fetch(o,e);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(o,e={}){let s=this.#f;if(!s)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:r,...n}=e,a=this.get(o,n);if(!r&&a!==void 0)return a;let c=s(o,a,{options:n,context:i});return this.set(o,c,n),c}get(o,e={}){let{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=e,a=this.#a.get(o);if(a!==void 0){let c=this.#i[a],u=this.#u(c);return n&&this.#e(n,a),this.#y(a)?(n&&(n.get="stale"),u?(n&&s&&c.__staleWhileFetching!==void 0&&(n.returnedStale=!0),s?c.__staleWhileFetching:void 0):(r||this.#N(o,"expire"),n&&s&&(n.returnedStale=!0),s?c:void 0)):(n&&(n.get="hit"),u?c.__staleWhileFetching:(this.#Z(a),i&&this.#v(a),c))}else n&&(n.get="miss")}#I(o,e){this.#w[e]=o,this.#d[o]=e}#Z(o){o!==this.#x&&(o===this.#m?this.#m=this.#d[o]:this.#I(this.#w[o],this.#d[o]),this.#I(this.#x,o),this.#x=o)}delete(o){return this.#N(o,"delete")}#N(o,e){let s=!1;if(this.#l!==0){let i=this.#a.get(o);if(i!==void 0)if(s=!0,this.#l===1)this.#P(e);else{this.#F(i);let r=this.#i[i];if(this.#u(r)?r.__abortController.abort(new Error("deleted")):(this.#z||this.#g)&&(this.#z&&this.#r?.(r,o,e),this.#g&&this.#O?.push([r,o,e])),this.#a.delete(o),this.#c[i]=void 0,this.#i[i]=void 0,i===this.#x)this.#x=this.#w[i];else if(i===this.#m)this.#m=this.#d[i];else{let n=this.#w[i];this.#d[n]=this.#d[i];let a=this.#d[i];this.#w[a]=this.#w[i]}this.#l--,this.#K.push(i)}}if(this.#g&&this.#O?.length){let i=this.#O,r;for(;r=i?.shift();)this.#s?.(...r)}return s}clear(){return this.#P("delete")}#P(o){for(let e of this.#p({allowStale:!0})){let s=this.#i[e];if(this.#u(s))s.__abortController.abort(new Error("deleted"));else{let i=this.#c[e];this.#z&&this.#r?.(s,i,o),this.#g&&this.#O?.push([s,i,o])}}if(this.#a.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#h&&this.#b&&(this.#h.fill(0),this.#b.fill(0)),this.#G&&this.#G.fill(0),this.#m=0,this.#x=0,this.#K.length=0,this.#_=0,this.#l=0,this.#g&&this.#O){let e=this.#O,s;for(;s=e?.shift();)this.#s?.(...s)}}};var It=require("node:path"),xl=require("node:url"),To=require("fs"),UO=P(require("node:fs"),1),xt=require("node:fs/promises");var Vs=require("node:events"),kr=P(require("node:stream"),1),al=require("node:string_decoder"),sl=typeof process=="object"&&process?process:{stdout:null,stderr:null},EO=t=>!!t&&typeof t=="object"&&(t instanceof _t||t instanceof kr.default||VO(t)||XO(t)),VO=t=>!!t&&typeof t=="object"&&t instanceof Vs.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==kr.default.Writable.prototype.pipe,XO=t=>!!t&&typeof t=="object"&&t instanceof Vs.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function",Ho=Symbol("EOF"),ot=Symbol("maybeEmitEnd"),ut=Symbol("emittedEnd"),Cs=Symbol("emittingEnd"),ve=Symbol("emittedError"),Ns=Symbol("closed"),il=Symbol("read"),Ss=Symbol("flush"),rl=Symbol("flushChunk"),Eo=Symbol("encoding"),Xt=Symbol("decoder"),D=Symbol("flowing"),We=Symbol("paused"),Yt=Symbol("resume"),$=Symbol("buffer"),_o=Symbol("pipes"),H=Symbol("bufferLength"),dr=Symbol("bufferPush"),Fs=Symbol("bufferShift"),no=Symbol("objectMode"),A=Symbol("destroyed"),wr=Symbol("error"),yr=Symbol("emitData"),nl=Symbol("emitEnd"),hr=Symbol("emitEnd2"),Po=Symbol("async"),fr=Symbol("abort"),Ms=Symbol("aborted"),pe=Symbol("signal"),kt=Symbol("dataListeners"),zo=Symbol("discarded"),qe=t=>Promise.resolve().then(t),YO=t=>t(),IO=t=>t==="end"||t==="finish"||t==="prefinish",ZO=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,PO=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Es=class{src;dest;opts;ondrain;constructor(o,e,s){this.src=o,this.dest=e,this.opts=s,this.ondrain=()=>o[Yt](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(o){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},zr=class extends Es{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(o,e,s){super(o,e,s),this.proxyErrors=i=>e.emit("error",i),o.on("error",this.proxyErrors)}},LO=t=>!!t.objectMode,TO=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",_t=class extends Vs.EventEmitter{[D]=!1;[We]=!1;[_o]=[];[$]=[];[no];[Eo];[Po];[Xt];[Ho]=!1;[ut]=!1;[Cs]=!1;[Ns]=!1;[ve]=null;[H]=0;[A]=!1;[pe];[Ms]=!1;[kt]=0;[zo]=!1;writable=!0;readable=!0;constructor(...o){let e=o[0]||{};if(super(),e.objectMode&&typeof e.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");LO(e)?(this[no]=!0,this[Eo]=null):TO(e)?(this[Eo]=e.encoding,this[no]=!1):(this[no]=!1,this[Eo]=null),this[Po]=!!e.async,this[Xt]=this[Eo]?new al.StringDecoder(this[Eo]):null,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[$]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[_o]});let{signal:s}=e;s&&(this[pe]=s,s.aborted?this[fr]():s.addEventListener("abort",()=>this[fr]()))}get bufferLength(){return this[H]}get encoding(){return this[Eo]}set encoding(o){throw new Error("Encoding must be set at instantiation time")}setEncoding(o){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[no]}set objectMode(o){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Po]}set async(o){this[Po]=this[Po]||!!o}[fr](){this[Ms]=!0,this.emit("abort",this[pe]?.reason),this.destroy(this[pe]?.reason)}get aborted(){return this[Ms]}set aborted(o){}write(o,e,s){if(this[Ms])return!1;if(this[Ho])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof e=="function"&&(s=e,e="utf8"),e||(e="utf8");let i=this[Po]?qe:YO;if(!this[no]&&!Buffer.isBuffer(o)){if(PO(o))o=Buffer.from(o.buffer,o.byteOffset,o.byteLength);else if(ZO(o))o=Buffer.from(o);else if(typeof o!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[no]?(this[D]&&this[H]!==0&&this[Ss](!0),this[D]?this.emit("data",o):this[dr](o),this[H]!==0&&this.emit("readable"),s&&i(s),this[D]):o.length?(typeof o=="string"&&!(e===this[Eo]&&!this[Xt]?.lastNeed)&&(o=Buffer.from(o,e)),Buffer.isBuffer(o)&&this[Eo]&&(o=this[Xt].write(o)),this[D]&&this[H]!==0&&this[Ss](!0),this[D]?this.emit("data",o):this[dr](o),this[H]!==0&&this.emit("readable"),s&&i(s),this[D]):(this[H]!==0&&this.emit("readable"),s&&i(s),this[D])}read(o){if(this[A])return null;if(this[zo]=!1,this[H]===0||o===0||o&&o>this[H])return this[ot](),null;this[no]&&(o=null),this[$].length>1&&!this[no]&&(this[$]=[this[Eo]?this[$].join(""):Buffer.concat(this[$],this[H])]);let e=this[il](o||null,this[$][0]);return this[ot](),e}[il](o,e){if(this[no])this[Fs]();else{let s=e;o===s.length||o===null?this[Fs]():typeof s=="string"?(this[$][0]=s.slice(o),e=s.slice(0,o),this[H]-=o):(this[$][0]=s.subarray(o),e=s.subarray(0,o),this[H]-=o)}return this.emit("data",e),!this[$].length&&!this[Ho]&&this.emit("drain"),e}end(o,e,s){return typeof o=="function"&&(s=o,o=void 0),typeof e=="function"&&(s=e,e="utf8"),o!==void 0&&this.write(o,e),s&&this.once("end",s),this[Ho]=!0,this.writable=!1,(this[D]||!this[We])&&this[ot](),this}[Yt](){this[A]||(!this[kt]&&!this[_o].length&&(this[zo]=!0),this[We]=!1,this[D]=!0,this.emit("resume"),this[$].length?this[Ss]():this[Ho]?this[ot]():this.emit("drain"))}resume(){return this[Yt]()}pause(){this[D]=!1,this[We]=!0,this[zo]=!1}get destroyed(){return this[A]}get flowing(){return this[D]}get paused(){return this[We]}[dr](o){this[no]?this[H]+=1:this[H]+=o.length,this[$].push(o)}[Fs](){return this[no]?this[H]-=1:this[H]-=this[$][0].length,this[$].shift()}[Ss](o=!1){do;while(this[rl](this[Fs]())&&this[$].length);!o&&!this[$].length&&!this[Ho]&&this.emit("drain")}[rl](o){return this.emit("data",o),this[D]}pipe(o,e){if(this[A])return o;this[zo]=!1;let s=this[ut];return e=e||{},o===sl.stdout||o===sl.stderr?e.end=!1:e.end=e.end!==!1,e.proxyErrors=!!e.proxyErrors,s?e.end&&o.end():(this[_o].push(e.proxyErrors?new zr(this,o,e):new Es(this,o,e)),this[Po]?qe(()=>this[Yt]()):this[Yt]()),o}unpipe(o){let e=this[_o].find(s=>s.dest===o);e&&(this[_o].length===1?(this[D]&&this[kt]===0&&(this[D]=!1),this[_o]=[]):this[_o].splice(this[_o].indexOf(e),1),e.unpipe())}addListener(o,e){return this.on(o,e)}on(o,e){let s=super.on(o,e);if(o==="data")this[zo]=!1,this[kt]++,!this[_o].length&&!this[D]&&this[Yt]();else if(o==="readable"&&this[H]!==0)super.emit("readable");else if(IO(o)&&this[ut])super.emit(o),this.removeAllListeners(o);else if(o==="error"&&this[ve]){let i=e;this[Po]?qe(()=>i.call(this,this[ve])):i.call(this,this[ve])}return s}removeListener(o,e){return this.off(o,e)}off(o,e){let s=super.off(o,e);return o==="data"&&(this[kt]=this.listeners("data").length,this[kt]===0&&!this[zo]&&!this[_o].length&&(this[D]=!1)),s}removeAllListeners(o){let e=super.removeAllListeners(o);return(o==="data"||o===void 0)&&(this[kt]=0,!this[zo]&&!this[_o].length&&(this[D]=!1)),e}get emittedEnd(){return this[ut]}[ot](){!this[Cs]&&!this[ut]&&!this[A]&&this[$].length===0&&this[Ho]&&(this[Cs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Ns]&&this.emit("close"),this[Cs]=!1)}emit(o,...e){let s=e[0];if(o!=="error"&&o!=="close"&&o!==A&&this[A])return!1;if(o==="data")return!this[no]&&!s?!1:this[Po]?(qe(()=>this[yr](s)),!0):this[yr](s);if(o==="end")return this[nl]();if(o==="close"){if(this[Ns]=!0,!this[ut]&&!this[A])return!1;let r=super.emit("close");return this.removeAllListeners("close"),r}else if(o==="error"){this[ve]=s,super.emit(wr,s);let r=!this[pe]||this.listeners("error").length?super.emit("error",s):!1;return this[ot](),r}else if(o==="resume"){let r=super.emit("resume");return this[ot](),r}else if(o==="finish"||o==="prefinish"){let r=super.emit(o);return this.removeAllListeners(o),r}let i=super.emit(o,...e);return this[ot](),i}[yr](o){for(let s of this[_o])s.dest.write(o)===!1&&this.pause();let e=this[zo]?!1:super.emit("data",o);return this[ot](),e}[nl](){return this[ut]?!1:(this[ut]=!0,this.readable=!1,this[Po]?(qe(()=>this[hr]()),!0):this[hr]())}[hr](){if(this[Xt]){let e=this[Xt].end();if(e){for(let s of this[_o])s.dest.write(e);this[zo]||super.emit("data",e)}}for(let e of this[_o])e.end();let o=super.emit("end");return this.removeAllListeners("end"),o}async collect(){let o=Object.assign([],{dataLength:0});this[no]||(o.dataLength=0);let e=this.promise();return this.on("data",s=>{o.push(s),this[no]||(o.dataLength+=s.length)}),await e,o}async concat(){if(this[no])throw new Error("cannot concat in objectMode");let o=await this.collect();return this[Eo]?o.join(""):Buffer.concat(o,o.dataLength)}async promise(){return new Promise((o,e)=>{this.on(A,()=>e(new Error("stream destroyed"))),this.on("error",s=>e(s)),this.on("end",()=>o())})}[Symbol.asyncIterator](){this[zo]=!1;let o=!1,e=async()=>(this.pause(),o=!0,{value:void 0,done:!0});return{next:()=>{if(o)return e();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Ho])return e();let r,n,a=x=>{this.off("data",c),this.off("end",u),this.off(A,d),e(),n(x)},c=x=>{this.off("error",a),this.off("end",u),this.off(A,d),this.pause(),r({value:x,done:!!this[Ho]})},u=()=>{this.off("error",a),this.off("data",c),this.off(A,d),e(),r({done:!0,value:void 0})},d=()=>a(new Error("stream destroyed"));return new Promise((x,m)=>{n=m,r=x,this.once(A,d),this.once("error",a),this.once("end",u),this.once("data",c)})},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[zo]=!1;let o=!1,e=()=>(this.pause(),this.off(wr,e),this.off(A,e),this.off("end",e),o=!0,{done:!0,value:void 0}),s=()=>{if(o)return e();let i=this.read();return i===null?e():{done:!1,value:i}};return this.once("end",e),this.once(wr,e),this.once(A,e),{next:s,throw:e,return:e,[Symbol.iterator](){return this}}}destroy(o){if(this[A])return o?this.emit("error",o):this.emit(A),this;this[A]=!0,this[zo]=!0,this[$].length=0,this[H]=0;let e=this;return typeof e.close=="function"&&!this[Ns]&&e.close(),o?this.emit("error",o):this.emit(A),this}static get isStream(){return EO}};var AO=To.realpathSync.native,Ne={lstatSync:To.lstatSync,readdir:To.readdir,readdirSync:To.readdirSync,readlinkSync:To.readlinkSync,realpathSync:AO,promises:{lstat:xt.lstat,readdir:xt.readdir,readlink:xt.readlink,realpath:xt.realpath}},ml=t=>!t||t===Ne||t===UO?Ne:{...Ne,...t,promises:{...Ne.promises,...t.promises||{}}},gl=/^\\\\\?\\([a-z]:)\\?$/i,QO=t=>t.replace(/\//g,"\\").replace(gl,"$1\\"),jO=/[\\\/]/,qo=0,Ol=1,dl=2,Lo=4,wl=6,yl=8,Kt=10,hl=12,po=15,Ce=~po,Kr=16,cl=32,Se=64,Vo=128,Xs=256,Is=512,ll=Se|Vo|Is,RO=1023,Gr=t=>t.isFile()?yl:t.isDirectory()?Lo:t.isSymbolicLink()?Kt:t.isCharacterDevice()?dl:t.isBlockDevice()?wl:t.isSocket()?hl:t.isFIFO()?Ol:qo,ul=new Map,Fe=t=>{let o=ul.get(t);if(o)return o;let e=t.normalize("NFKD");return ul.set(t,e),e},_l=new Map,Ys=t=>{let o=_l.get(t);if(o)return o;let e=Fe(t.toLowerCase());return _l.set(t,e),e},Zs=class extends be{constructor(){super({max:256})}},br=class extends be{constructor(o=16*1024){super({maxSize:o,sizeCalculation:e=>e.length+1})}},fl=Symbol("PathScurry setAsCwd"),ao=class{name;root;roots;parent;nocase;isCWD=!1;#o;#t;get dev(){return this.#t}#r;get mode(){return this.#r}#s;get nlink(){return this.#s}#n;get uid(){return this.#n}#f;get gid(){return this.#f}#l;get rdev(){return this.#l}#_;get blksize(){return this.#_}#a;get ino(){return this.#a}#c;get size(){return this.#c}#i;get blocks(){return this.#i}#d;get atimeMs(){return this.#d}#w;get mtimeMs(){return this.#w}#m;get ctimeMs(){return this.#m}#x;get birthtimeMs(){return this.#x}#K;get atime(){return this.#K}#O;get mtime(){return this.#O}#G;get ctime(){return this.#G}#b;get birthtime(){return this.#b}#h;#z;#k;#g;#q;#v;#e;#S;#y;#C;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(o,e=qo,s,i,r,n,a){this.name=o,this.#h=r?Ys(o):Fe(o),this.#e=e&RO,this.nocase=r,this.roots=i,this.root=s||this,this.#S=n,this.#k=a.fullpath,this.#q=a.relative,this.#v=a.relativePosix,this.parent=a.parent,this.parent?this.#o=this.parent.#o:this.#o=ml(a.fs)}depth(){return this.#z!==void 0?this.#z:this.parent?this.#z=this.parent.depth()+1:this.#z=0}childrenCache(){return this.#S}resolve(o){if(!o)return this;let e=this.getRootString(o),i=o.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#F(i):this.#F(i)}#F(o){let e=this;for(let s of o)e=e.child(s);return e}children(){let o=this.#S.get(this);if(o)return o;let e=Object.assign([],{provisional:0});return this.#S.set(this,e),this.#e&=~Kr,e}child(o,e){if(o===""||o===".")return this;if(o==="..")return this.parent||this;let s=this.children(),i=this.nocase?Ys(o):Fe(o);for(let c of s)if(c.#h===i)return c;let r=this.parent?this.sep:"",n=this.#k?this.#k+r+o:void 0,a=this.newChild(o,qo,{...e,parent:this,fullpath:n});return this.canReaddir()||(a.#e|=Vo),s.push(a),a}relative(){if(this.isCWD)return"";if(this.#q!==void 0)return this.#q;let o=this.name,e=this.parent;if(!e)return this.#q=this.name;let s=e.relative();return s+(!s||!e.parent?"":this.sep)+o}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#v!==void 0)return this.#v;let o=this.name,e=this.parent;if(!e)return this.#v=this.fullpathPosix();let s=e.relativePosix();return s+(!s||!e.parent?"":"/")+o}fullpath(){if(this.#k!==void 0)return this.#k;let o=this.name,e=this.parent;if(!e)return this.#k=this.name;let i=e.fullpath()+(e.parent?this.sep:"")+o;return this.#k=i}fullpathPosix(){if(this.#g!==void 0)return this.#g;if(this.sep==="/")return this.#g=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#g=`//?/${i}`:this.#g=i}let o=this.parent,e=o.fullpathPosix(),s=e+(!e||!o.parent?"":"/")+this.name;return this.#g=s}isUnknown(){return(this.#e&po)===qo}isType(o){return this[`is${o}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#e&po)===yl}isDirectory(){return(this.#e&po)===Lo}isCharacterDevice(){return(this.#e&po)===dl}isBlockDevice(){return(this.#e&po)===wl}isFIFO(){return(this.#e&po)===Ol}isSocket(){return(this.#e&po)===hl}isSymbolicLink(){return(this.#e&Kt)===Kt}lstatCached(){return this.#e&cl?this:void 0}readlinkCached(){return this.#y}realpathCached(){return this.#C}readdirCached(){let o=this.children();return o.slice(0,o.provisional)}canReadlink(){if(this.#y)return!0;if(!this.parent)return!1;let o=this.#e&po;return!(o!==qo&&o!==Kt||this.#e&Xs||this.#e&Vo)}calledReaddir(){return!!(this.#e&Kr)}isENOENT(){return!!(this.#e&Vo)}isNamed(o){return this.nocase?this.#h===Ys(o):this.#h===Fe(o)}async readlink(){let o=this.#y;if(o)return o;if(this.canReadlink()&&this.parent)try{let e=await this.#o.promises.readlink(this.fullpath()),s=(await this.parent.realpath())?.resolve(e);if(s)return this.#y=s}catch(e){this.#u(e.code);return}}readlinkSync(){let o=this.#y;if(o)return o;if(this.canReadlink()&&this.parent)try{let e=this.#o.readlinkSync(this.fullpath()),s=this.parent.realpathSync()?.resolve(e);if(s)return this.#y=s}catch(e){this.#u(e.code);return}}#M(o){this.#e|=Kr;for(let e=o.provisional;e<o.length;e++){let s=o[e];s&&s.#E()}}#E(){this.#e&Vo||(this.#e=(this.#e|Vo)&Ce,this.#W())}#W(){let o=this.children();o.provisional=0;for(let e of o)e.#E()}#p(){this.#e|=Is,this.#V()}#V(){if(this.#e&Se)return;let o=this.#e;(o&po)===Lo&&(o&=Ce),this.#e=o|Se,this.#W()}#X(o=""){o==="ENOTDIR"||o==="EPERM"?this.#V():o==="ENOENT"?this.#E():this.children().provisional=0}#Y(o=""){o==="ENOTDIR"?this.parent.#V():o==="ENOENT"&&this.#E()}#u(o=""){let e=this.#e;e|=Xs,o==="ENOENT"&&(e|=Vo),(o==="EINVAL"||o==="UNKNOWN")&&(e&=Ce),this.#e=e,o==="ENOTDIR"&&this.parent&&this.parent.#V()}#I(o,e){return this.#N(o,e)||this.#Z(o,e)}#Z(o,e){let s=Gr(o),i=this.newChild(o.name,s,{parent:this}),r=i.#e&po;return r!==Lo&&r!==Kt&&r!==qo&&(i.#e|=Se),e.unshift(i),e.provisional++,i}#N(o,e){for(let s=e.provisional;s<e.length;s++){let i=e[s];if((this.nocase?Ys(o.name):Fe(o.name))===i.#h)return this.#P(o,i,s,e)}}#P(o,e,s,i){let r=e.name;return e.#e=e.#e&Ce|Gr(o),r!==o.name&&(e.name=o.name),s!==i.provisional&&(s===i.length-1?i.pop():i.splice(s,1),i.unshift(e)),i.provisional++,e}async lstat(){if((this.#e&Vo)===0)try{return this.#A(await this.#o.promises.lstat(this.fullpath())),this}catch(o){this.#Y(o.code)}}lstatSync(){if((this.#e&Vo)===0)try{return this.#A(this.#o.lstatSync(this.fullpath())),this}catch(o){this.#Y(o.code)}}#A(o){let{atime:e,atimeMs:s,birthtime:i,birthtimeMs:r,blksize:n,blocks:a,ctime:c,ctimeMs:u,dev:d,gid:x,ino:m,mode:w,mtime:f,mtimeMs:k,nlink:W,rdev:p,size:q,uid:O}=o;this.#K=e,this.#d=s,this.#b=i,this.#x=r,this.#_=n,this.#i=a,this.#G=c,this.#m=u,this.#t=d,this.#f=x,this.#a=m,this.#r=w,this.#O=f,this.#w=k,this.#s=W,this.#l=p,this.#c=q,this.#n=O;let l=Gr(o);this.#e=this.#e&Ce|l|cl,l!==qo&&l!==Lo&&l!==Kt&&(this.#e|=Se)}#T=[];#U=!1;#Q(o){this.#U=!1;let e=this.#T.slice();this.#T.length=0,e.forEach(s=>s(null,o))}readdirCB(o,e=!1){if(!this.canReaddir()){e?o(null,[]):queueMicrotask(()=>o(null,[]));return}let s=this.children();if(this.calledReaddir()){let r=s.slice(0,s.provisional);e?o(null,r):queueMicrotask(()=>o(null,r));return}if(this.#T.push(o),this.#U)return;this.#U=!0;let i=this.fullpath();this.#o.readdir(i,{withFileTypes:!0},(r,n)=>{if(r)this.#X(r.code),s.provisional=0;else{for(let a of n)this.#I(a,s);this.#M(s)}this.#Q(s.slice(0,s.provisional))})}#L;async readdir(){if(!this.canReaddir())return[];let o=this.children();if(this.calledReaddir())return o.slice(0,o.provisional);let e=this.fullpath();if(this.#L)await this.#L;else{let s=()=>{};this.#L=new Promise(i=>s=i);try{for(let i of await this.#o.promises.readdir(e,{withFileTypes:!0}))this.#I(i,o);this.#M(o)}catch(i){this.#X(i.code),o.provisional=0}this.#L=void 0,s()}return o.slice(0,o.provisional)}readdirSync(){if(!this.canReaddir())return[];let o=this.children();if(this.calledReaddir())return o.slice(0,o.provisional);let e=this.fullpath();try{for(let s of this.#o.readdirSync(e,{withFileTypes:!0}))this.#I(s,o);this.#M(o)}catch(s){this.#X(s.code),o.provisional=0}return o.slice(0,o.provisional)}canReaddir(){if(this.#e&ll)return!1;let o=po&this.#e;return o===qo||o===Lo||o===Kt}shouldWalk(o,e){return(this.#e&Lo)===Lo&&!(this.#e&ll)&&!o.has(this)&&(!e||e(this))}async realpath(){if(this.#C)return this.#C;if(!((Is|Xs|Vo)&this.#e))try{let o=await this.#o.promises.realpath(this.fullpath());return this.#C=this.resolve(o)}catch{this.#p()}}realpathSync(){if(this.#C)return this.#C;if(!((Is|Xs|Vo)&this.#e))try{let o=this.#o.realpathSync(this.fullpath());return this.#C=this.resolve(o)}catch{this.#p()}}[fl](o){if(o===this)return;o.isCWD=!1,this.isCWD=!0;let e=new Set([]),s=[],i=this;for(;i&&i.parent;)e.add(i),i.#q=s.join(this.sep),i.#v=s.join("/"),i=i.parent,s.push("..");for(i=o;i&&i.parent&&!e.has(i);)i.#q=void 0,i.#v=void 0,i=i.parent}},Ps=class t extends ao{sep="\\";splitSep=jO;constructor(o,e=qo,s,i,r,n,a){super(o,e,s,i,r,n,a)}newChild(o,e=qo,s={}){return new t(o,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}getRootString(o){return It.win32.parse(o).root}getRoot(o){if(o=QO(o.toUpperCase()),o===this.root.name)return this.root;for(let[e,s]of Object.entries(this.roots))if(this.sameRoot(o,e))return this.roots[o]=s;return this.roots[o]=new Zt(o,this).root}sameRoot(o,e=this.root.name){return o=o.toUpperCase().replace(/\//g,"\\").replace(gl,"$1\\"),o===e}},Ls=class t extends ao{splitSep="/";sep="/";constructor(o,e=qo,s,i,r,n,a){super(o,e,s,i,r,n,a)}getRootString(o){return o.startsWith("/")?"/":""}getRoot(o){return this.root}newChild(o,e=qo,s={}){return new t(o,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}},Ts=class{root;rootPath;roots;cwd;#o;#t;#r;nocase;#s;constructor(o=process.cwd(),e,s,{nocase:i,childrenCacheSize:r=16*1024,fs:n=Ne}={}){this.#s=ml(n),(o instanceof URL||o.startsWith("file://"))&&(o=(0,xl.fileURLToPath)(o));let a=e.resolve(o);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#o=new Zs,this.#t=new Zs,this.#r=new br(r);let c=a.substring(this.rootPath.length).split(s);if(c.length===1&&!c[0]&&c.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let u=this.root,d=c.length-1,x=e.sep,m=this.rootPath,w=!1;for(let f of c){let k=d--;u=u.child(f,{relative:new Array(k).fill("..").join(x),relativePosix:new Array(k).fill("..").join("/"),fullpath:m+=(w?"":x)+f}),w=!0}this.cwd=u}depth(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.depth()}childrenCache(){return this.#r}resolve(...o){let e="";for(let r=o.length-1;r>=0;r--){let n=o[r];if(!(!n||n===".")&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}let s=this.#o.get(e);if(s!==void 0)return s;let i=this.cwd.resolve(e).fullpath();return this.#o.set(e,i),i}resolvePosix(...o){let e="";for(let r=o.length-1;r>=0;r--){let n=o[r];if(!(!n||n===".")&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}let s=this.#t.get(e);if(s!==void 0)return s;let i=this.cwd.resolve(e).fullpathPosix();return this.#t.set(e,i),i}relative(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.relative()}relativePosix(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.relativePosix()}basename(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.name}dirname(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),(o.parent||o).fullpath()}async readdir(o=this.cwd,e={withFileTypes:!0}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o,o=this.cwd);let{withFileTypes:s}=e;if(o.canReaddir()){let i=await o.readdir();return s?i:i.map(r=>r.name)}else return[]}readdirSync(o=this.cwd,e={withFileTypes:!0}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o,o=this.cwd);let{withFileTypes:s=!0}=e;return o.canReaddir()?s?o.readdirSync():o.readdirSync().map(i=>i.name):[]}async lstat(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.lstat()}lstatSync(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.lstatSync()}async readlink(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o.withFileTypes,o=this.cwd);let s=await o.readlink();return e?s:s?.fullpath()}readlinkSync(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o.withFileTypes,o=this.cwd);let s=o.readlinkSync();return e?s:s?.fullpath()}async realpath(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o.withFileTypes,o=this.cwd);let s=await o.realpath();return e?s:s?.fullpath()}realpathSync(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o.withFileTypes,o=this.cwd);let s=o.realpathSync();return e?s:s?.fullpath()}async walk(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,a=[];(!r||r(o))&&a.push(s?o:o.fullpath());let c=new Set,u=(x,m)=>{c.add(x),x.readdirCB((w,f)=>{if(w)return m(w);let k=f.length;if(!k)return m();let W=()=>{--k===0&&m()};for(let p of f)(!r||r(p))&&a.push(s?p:p.fullpath()),i&&p.isSymbolicLink()?p.realpath().then(q=>q?.isUnknown()?q.lstat():q).then(q=>q?.shouldWalk(c,n)?u(q,W):W()):p.shouldWalk(c,n)?u(p,W):W()},!0)},d=o;return new Promise((x,m)=>{u(d,w=>{if(w)return m(w);x(a)})})}walkSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,a=[];(!r||r(o))&&a.push(s?o:o.fullpath());let c=new Set([o]);for(let u of c){let d=u.readdirSync();for(let x of d){(!r||r(x))&&a.push(s?x:x.fullpath());let m=x;if(x.isSymbolicLink()){if(!(i&&(m=x.realpathSync())))continue;m.isUnknown()&&m.lstatSync()}m.shouldWalk(c,n)&&c.add(m)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(o=this.cwd,e={}){return typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o,o=this.cwd),this.stream(o,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e;(!r||r(o))&&(yield s?o:o.fullpath());let a=new Set([o]);for(let c of a){let u=c.readdirSync();for(let d of u){(!r||r(d))&&(yield s?d:d.fullpath());let x=d;if(d.isSymbolicLink()){if(!(i&&(x=d.realpathSync())))continue;x.isUnknown()&&x.lstatSync()}x.shouldWalk(a,n)&&a.add(x)}}}stream(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,a=new _t({objectMode:!0});(!r||r(o))&&a.write(s?o:o.fullpath());let c=new Set,u=[o],d=0,x=()=>{let m=!1;for(;!m;){let w=u.shift();if(!w){d===0&&a.end();return}d++,c.add(w);let f=(W,p,q=!1)=>{if(W)return a.emit("error",W);if(i&&!q){let O=[];for(let l of p)l.isSymbolicLink()&&O.push(l.realpath().then(g=>g?.isUnknown()?g.lstat():g));if(O.length){Promise.all(O).then(()=>f(null,p,!0));return}}for(let O of p)O&&(!r||r(O))&&(a.write(s?O:O.fullpath())||(m=!0));d--;for(let O of p){let l=O.realpathCached()||O;l.shouldWalk(c,n)&&u.push(l)}m&&!a.flowing?a.once("drain",x):k||x()},k=!0;w.readdirCB(f,!0),k=!1}};return x(),a}streamSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof ao||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,a=new _t({objectMode:!0}),c=new Set;(!r||r(o))&&a.write(s?o:o.fullpath());let u=[o],d=0,x=()=>{let m=!1;for(;!m;){let w=u.shift();if(!w){d===0&&a.end();return}d++,c.add(w);let f=w.readdirSync();for(let k of f)(!r||r(k))&&(a.write(s?k:k.fullpath())||(m=!0));d--;for(let k of f){let W=k;if(k.isSymbolicLink()){if(!(i&&(W=k.realpathSync())))continue;W.isUnknown()&&W.lstatSync()}W.shouldWalk(c,n)&&u.push(W)}}m&&!a.flowing&&a.once("drain",x)};return x(),a}chdir(o=this.cwd){let e=this.cwd;this.cwd=typeof o=="string"?this.cwd.resolve(o):o,this.cwd[fl](e)}},Zt=class extends Ts{sep="\\";constructor(o=process.cwd(),e={}){let{nocase:s=!0}=e;super(o,It.win32,"\\",{...e,nocase:s}),this.nocase=s;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(o){return It.win32.parse(o).root.toUpperCase()}newRoot(o){return new Ps(this.rootPath,Lo,void 0,this.roots,this.nocase,this.childrenCache(),{fs:o})}isAbsolute(o){return o.startsWith("/")||o.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(o)}},Pt=class extends Ts{sep="/";constructor(o=process.cwd(),e={}){let{nocase:s=!1}=e;super(o,It.posix,"/",{...e,nocase:s}),this.nocase=s}parseRootPath(o){return"/"}newRoot(o){return new Ls(this.rootPath,Lo,void 0,this.roots,this.nocase,this.childrenCache(),{fs:o})}isAbsolute(o){return o.startsWith("/")}},Me=class extends Pt{constructor(o=process.cwd(),e={}){let{nocase:s=!0}=e;super(o,{...e,nocase:s})}},Yh=process.platform==="win32"?Ps:Ls,zl=process.platform==="win32"?Zt:process.platform==="darwin"?Me:Pt;var JO=t=>t.length>=1,BO=t=>t.length>=1,Lt=class t{#o;#t;#r;length;#s;#n;#f;#l;#_;#a;#c=!0;constructor(o,e,s,i){if(!JO(o))throw new TypeError("empty pattern list");if(!BO(e))throw new TypeError("empty glob list");if(e.length!==o.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=o.length,s<0||s>=this.length)throw new TypeError("index out of range");if(this.#o=o,this.#t=e,this.#r=s,this.#s=i,this.#r===0){if(this.isUNC()){let[r,n,a,c,...u]=this.#o,[d,x,m,w,...f]=this.#t;u[0]===""&&(u.shift(),f.shift());let k=[r,n,a,c,""].join("/"),W=[d,x,m,w,""].join("/");this.#o=[k,...u],this.#t=[W,...f],this.length=this.#o.length}else if(this.isDrive()||this.isAbsolute()){let[r,...n]=this.#o,[a,...c]=this.#t;n[0]===""&&(n.shift(),c.shift());let u=r+"/",d=a+"/";this.#o=[u,...n],this.#t=[d,...c],this.length=this.#o.length}}}pattern(){return this.#o[this.#r]}isString(){return typeof this.#o[this.#r]=="string"}isGlobstar(){return this.#o[this.#r]===io}isRegExp(){return this.#o[this.#r]instanceof RegExp}globString(){return this.#f=this.#f||(this.#r===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return this.#n!==void 0?this.#n:this.hasMore()?(this.#n=new t(this.#o,this.#t,this.#r+1,this.#s),this.#n.#a=this.#a,this.#n.#_=this.#_,this.#n.#l=this.#l,this.#n):this.#n=null}isUNC(){let o=this.#o;return this.#_!==void 0?this.#_:this.#_=this.#s==="win32"&&this.#r===0&&o[0]===""&&o[1]===""&&typeof o[2]=="string"&&!!o[2]&&typeof o[3]=="string"&&!!o[3]}isDrive(){let o=this.#o;return this.#l!==void 0?this.#l:this.#l=this.#s==="win32"&&this.#r===0&&this.length>1&&typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0])}isAbsolute(){let o=this.#o;return this.#a!==void 0?this.#a:this.#a=o[0]===""&&o.length>1||this.isDrive()||this.isUNC()}root(){let o=this.#o[0];return typeof o=="string"&&this.isAbsolute()&&this.#r===0?o:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#c)}markFollowGlobstar(){return this.#r===0||!this.isGlobstar()||!this.#c?!1:(this.#c=!1,!0)}};var DO=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Tt=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(o,{nobrace:e,nocase:s,noext:i,noglobstar:r,platform:n=DO}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=n,this.mmopts={dot:!0,nobrace:e,nocase:s,noext:i,noglobstar:r,optimizationLevel:2,platform:n,nocomment:!0,nonegate:!0};for(let a of o)this.add(a)}add(o){let e=new fo(o,this.mmopts);for(let s=0;s<e.set.length;s++){let i=e.set[s],r=e.globParts[s];if(!i||!r)throw new Error("invalid pattern object");for(;i[0]==="."&&r[0]===".";)i.shift(),r.shift();let n=new Lt(i,r,0,this.platform),a=new fo(n.globString(),this.mmopts),c=r[r.length-1]==="**",u=n.isAbsolute();u?this.absolute.push(a):this.relative.push(a),c&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(o){let e=o.fullpath(),s=`${e}/`,i=o.relative()||".",r=`${i}/`;for(let n of this.relative)if(n.match(i)||n.match(r))return!0;for(let n of this.absolute)if(n.match(e)||n.match(s))return!0;return!1}childrenIgnored(o){let e=o.fullpath()+"/",s=(o.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(s))return!0;for(let i of this.absoluteChildren)if(i.match(e))return!0;return!1}};var vr=class t{store;constructor(o=new Map){this.store=o}copy(){return new t(new Map(this.store))}hasWalked(o,e){return this.store.get(o.fullpath())?.has(e.globString())}storeWalked(o,e){let s=o.fullpath(),i=this.store.get(s);i?i.add(e.globString()):this.store.set(s,new Set([e.globString()]))}},Wr=class{store=new Map;add(o,e,s){let i=(e?2:0)|(s?1:0),r=this.store.get(o);this.store.set(o,r===void 0?i:i&r)}entries(){return[...this.store.entries()].map(([o,e])=>[o,!!(e&2),!!(e&1)])}},pr=class{store=new Map;add(o,e){if(!o.canReaddir())return;let s=this.store.get(o);s?s.find(i=>i.globString()===e.globString())||s.push(e):this.store.set(o,[e])}get(o){let e=this.store.get(o);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map(o=>[o,this.store.get(o)])}keys(){return[...this.store.keys()].filter(o=>o.canReaddir())}},Ee=class t{hasWalkedCache;matches=new Wr;subwalks=new pr;patterns;follow;dot;opts;constructor(o,e){this.opts=o,this.follow=!!o.follow,this.dot=!!o.dot,this.hasWalkedCache=e?e.copy():new vr}processPatterns(o,e){this.patterns=e;let s=e.map(i=>[o,i]);for(let[i,r]of s){this.hasWalkedCache.storeWalked(i,r);let n=r.root(),a=r.isAbsolute()&&this.opts.absolute!==!1;if(n){i=i.resolve(n==="/"&&this.opts.root!==void 0?this.opts.root:n);let x=r.rest();if(x)r=x;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let c,u,d=!1;for(;typeof(c=r.pattern())=="string"&&(u=r.rest());)i=i.resolve(c),r=u,d=!0;if(c=r.pattern(),u=r.rest(),d){if(this.hasWalkedCache.hasWalked(i,r))continue;this.hasWalkedCache.storeWalked(i,r)}if(typeof c=="string"){let x=c===".."||c===""||c===".";this.matches.add(i.resolve(c),a,x);continue}else if(c===io){(!i.isSymbolicLink()||this.follow||r.checkFollowGlobstar())&&this.subwalks.add(i,r);let x=u?.pattern(),m=u?.rest();if(!u||(x===""||x===".")&&!m)this.matches.add(i,a,x===""||x===".");else if(x===".."){let w=i.parent||i;m?this.hasWalkedCache.hasWalked(w,m)||this.subwalks.add(w,m):this.matches.add(w,a,!0)}}else c instanceof RegExp&&this.subwalks.add(i,r)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(o,e){let s=this.subwalks.get(o),i=this.child();for(let r of e)for(let n of s){let a=n.isAbsolute(),c=n.pattern(),u=n.rest();c===io?i.testGlobstar(r,n,u,a):c instanceof RegExp?i.testRegExp(r,c,u,a):i.testString(r,c,u,a)}return i}testGlobstar(o,e,s,i){if((this.dot||!o.name.startsWith("."))&&(e.hasMore()||this.matches.add(o,i,!1),o.canReaddir()&&(this.follow||!o.isSymbolicLink()?this.subwalks.add(o,e):o.isSymbolicLink()&&(s&&e.checkFollowGlobstar()?this.subwalks.add(o,s):e.markFollowGlobstar()&&this.subwalks.add(o,e)))),s){let r=s.pattern();if(typeof r=="string"&&r!==".."&&r!==""&&r!==".")this.testString(o,r,s.rest(),i);else if(r===".."){let n=o.parent||o;this.subwalks.add(n,s)}else r instanceof RegExp&&this.testRegExp(o,r,s.rest(),i)}}testRegExp(o,e,s,i){e.test(o.name)&&(s?this.subwalks.add(o,s):this.matches.add(o,i,!1))}testString(o,e,s,i){o.isNamed(e)&&(s?this.subwalks.add(o,s):this.matches.add(o,i,!1))}};var $O=(t,o)=>typeof t=="string"?new Tt([t],o):Array.isArray(t)?new Tt(t,o):t,Us=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#o=[];#t;#r;signal;maxDepth;includeChildMatches;constructor(o,e,s){if(this.patterns=o,this.path=e,this.opts=s,this.#r=!s.posix&&s.platform==="win32"?"\\":"/",this.includeChildMatches=s.includeChildMatches!==!1,(s.ignore||!this.includeChildMatches)&&(this.#t=$O(s.ignore??[],s),!this.includeChildMatches&&typeof this.#t.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=s.maxDepth||1/0,s.signal&&(this.signal=s.signal,this.signal.addEventListener("abort",()=>{this.#o.length=0}))}#s(o){return this.seen.has(o)||!!this.#t?.ignored?.(o)}#n(o){return!!this.#t?.childrenIgnored?.(o)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let o;for(;!this.paused&&(o=this.#o.shift());)o()}onResume(o){this.signal?.aborted||(this.paused?this.#o.push(o):o())}async matchCheck(o,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=o.realpathCached()||await o.realpath(),!s)return;o=s}let r=o.isUnknown()||this.opts.stat?await o.lstat():o;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let n=await r.realpath();n&&(n.isUnknown()||this.opts.stat)&&await n.lstat()}return this.matchCheckTest(r,e)}matchCheckTest(o,e){return o&&(this.maxDepth===1/0||o.depth()<=this.maxDepth)&&(!e||o.canReaddir())&&(!this.opts.nodir||!o.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!o.isSymbolicLink()||!o.realpathCached()?.isDirectory())&&!this.#s(o)?o:void 0}matchCheckSync(o,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=o.realpathCached()||o.realpathSync(),!s)return;o=s}let r=o.isUnknown()||this.opts.stat?o.lstatSync():o;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let n=r.realpathSync();n&&(n?.isUnknown()||this.opts.stat)&&n.lstatSync()}return this.matchCheckTest(r,e)}matchFinish(o,e){if(this.#s(o))return;if(!this.includeChildMatches&&this.#t?.add){let r=`${o.relativePosix()}/**`;this.#t.add(r)}let s=this.opts.absolute===void 0?e:this.opts.absolute;this.seen.add(o);let i=this.opts.mark&&o.isDirectory()?this.#r:"";if(this.opts.withFileTypes)this.matchEmit(o);else if(s){let r=this.opts.posix?o.fullpathPosix():o.fullpath();this.matchEmit(r+i)}else{let r=this.opts.posix?o.relativePosix():o.relative(),n=this.opts.dotRelative&&!r.startsWith(".."+this.#r)?"."+this.#r:"";this.matchEmit(r?n+r+i:"."+i)}}async match(o,e,s){let i=await this.matchCheck(o,s);i&&this.matchFinish(i,e)}matchSync(o,e,s){let i=this.matchCheckSync(o,s);i&&this.matchFinish(i,e)}walkCB(o,e,s){this.signal?.aborted&&s(),this.walkCB2(o,e,new Ee(this.opts),s)}walkCB2(o,e,s,i){if(this.#n(o))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(o,e,s,i));return}s.processPatterns(o,e);let r=1,n=()=>{--r===0&&i()};for(let[a,c,u]of s.matches.entries())this.#s(a)||(r++,this.match(a,c,u).then(()=>n()));for(let a of s.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;r++;let c=a.readdirCached();a.calledReaddir()?this.walkCB3(a,c,s,n):a.readdirCB((u,d)=>this.walkCB3(a,d,s,n),!0)}n()}walkCB3(o,e,s,i){s=s.filterEntries(o,e);let r=1,n=()=>{--r===0&&i()};for(let[a,c,u]of s.matches.entries())this.#s(a)||(r++,this.match(a,c,u).then(()=>n()));for(let[a,c]of s.subwalks.entries())r++,this.walkCB2(a,c,s.child(),n);n()}walkCBSync(o,e,s){this.signal?.aborted&&s(),this.walkCB2Sync(o,e,new Ee(this.opts),s)}walkCB2Sync(o,e,s,i){if(this.#n(o))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(o,e,s,i));return}s.processPatterns(o,e);let r=1,n=()=>{--r===0&&i()};for(let[a,c,u]of s.matches.entries())this.#s(a)||this.matchSync(a,c,u);for(let a of s.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;r++;let c=a.readdirSync();this.walkCB3Sync(a,c,s,n)}n()}walkCB3Sync(o,e,s,i){s=s.filterEntries(o,e);let r=1,n=()=>{--r===0&&i()};for(let[a,c,u]of s.matches.entries())this.#s(a)||this.matchSync(a,c,u);for(let[a,c]of s.subwalks.entries())r++,this.walkCB2Sync(a,c,s.child(),n);n()}},Ve=class extends Us{matches=new Set;constructor(o,e,s){super(o,e,s)}matchEmit(o){this.matches.add(o)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((o,e)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?e(this.signal.reason):o(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},Xe=class extends Us{results;constructor(o,e,s){super(o,e,s),this.results=new _t({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(o){this.results.write(o),this.results.flowing||this.pause()}stream(){let o=this.path;return o.isUnknown()?o.lstat().then(()=>{this.walkCB(o,this.patterns,()=>this.results.end())}):this.walkCB(o,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var HO=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Xo=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(o,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,kl.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=e.includeChildMatches!==!1,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth=typeof e.maxDepth=="number"?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof o=="string"&&(o=[o]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(o=o.map(c=>c.replace(/\\/g,"/"))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");o=o.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=o,this.platform=e.platform||HO,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,e.nocase!==void 0&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let c=e.platform==="win32"?Zt:e.platform==="darwin"?Me:e.platform?Pt:zl;this.scurry=new c(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;let s=this.platform==="darwin"||this.platform==="win32",i={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:s,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},r=this.pattern.map(c=>new fo(c,i)),[n,a]=r.reduce((c,u)=>(c[0].push(...u.set),c[1].push(...u.globParts),c),[[],[]]);this.patterns=n.map((c,u)=>{let d=a[u];if(!d)throw new Error("invalid pattern object");return new Lt(c,d,0,this.platform)})}async walk(){return[...await new Ve(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Ve(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Xe(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Xe(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var qr=(t,o={})=>{Array.isArray(t)||(t=[t]);for(let e of t)if(new fo(e,o).hasMagic())return!0;return!1};function As(t,o={}){return new Xo(t,o).streamSync()}function Gl(t,o={}){return new Xo(t,o).stream()}function bl(t,o={}){return new Xo(t,o).walkSync()}async function Kl(t,o={}){return new Xo(t,o).walk()}function Qs(t,o={}){return new Xo(t,o).iterateSync()}function vl(t,o={}){return new Xo(t,o).iterate()}var od=As,td=Object.assign(Gl,{sync:As}),ed=Qs,sd=Object.assign(vl,{sync:Qs}),id=Object.assign(bl,{stream:As,iterate:Qs}),Ut=Object.assign(Kl,{glob:Kl,globSync:bl,sync:id,globStream:Gl,stream:td,globStreamSync:As,streamSync:od,globIterate:vl,iterate:sd,globIterateSync:Qs,iterateSync:ed,Glob:Xo,hasMagic:qr,escape:Mt,unescape:Mo});Ut.glob=Ut;var Nr=P(require("node:assert")),Sr=P(require("node:fs/promises")),Gt=P(require("node:path")),Cr=null;async function Wl(t){if(Cr==null){let o=t?.androidBuildToolsDir??await rd(t);(0,Nr.default)(o!=null,"Unable to find the Android build-tools directory."),Cr={aapt2Path:Gt.default.join(o,"aapt2"),apksignerPath:Gt.default.join(o,"apksigner"),dexdumpPath:Gt.default.join(o,"dexdump")}}return Cr}async function pl(t,o,e){let{spawnAsync:s,workingDirectory:i}=o,{apksignerPath:r}=await Wl(o),n=Gt.default.join(i,"resigned.apk");await Sr.default.copyFile(t,n);let a=["sign","--ks",e.keyStorePath,"--ks-pass",e.keyStorePassword];return e.keyAlias&&a.push("--ks-key-alias",e.keyAlias),e.keyPassword&&a.push("--key-pass",e.keyPassword),a.push(n),await s(r,a),n}async function rd(t){let{logger:o}=t,e=process.env.ANDROID_SDK_ROOT;(0,Nr.default)(e!=null,"ANDROID_SDK_ROOT environment variable is not set");let s=Gt.default.join(e,"build-tools");try{let r=(await Sr.default.readdir(s,{withFileTypes:!0})).filter(n=>n.isDirectory()).map(n=>n.name).sort((n,a)=>{let c=n.split(".").map(Number),u=a.split(".").map(Number);for(let d=0;d<Math.min(c.length,u.length);d++)if(c[d]!==u[d])return u[d]-c[d];return u.length-c.length});return r.length>0?Gt.default.join(s,r[0]):(o.error("No build-tools directories found."),null)}catch(i){return o.error(`Failed to read the build-tools directory: ${i}`),null}}async function ql(t,o,e){let{spawnAsync:s}=e,{dexdumpPath:i}=await Wl(e),r=o.replace(/\./g,"/"),n=new RegExp(`^ Class descriptor : 'L(${r}\\/.*);`,"gm"),a=new Set,c=await Ut("classes*.dex",{cwd:t}),u=s(i,c,{cwd:t});return u.child.stdout?.on("data",d=>{let x=String(d).split(`
34
+ `);for(let m of x){let w=n.exec(m);w&&a.add(w[1].replace(/\//g,"."))}}),await u,a}var Jt=P(require("node:assert")),Pe=P(require("node:fs/promises")),bu=P(require("node:path")),Bs=P(ur());var ku=P(hu()),Ku=P(require("node:assert")),bt=P(require("node:fs/promises")),jt=P(require("node:path"));async function Gu(t){return(await bt.default.stat(t).catch(()=>null))?.isFile()??!1}async function Js(t){return(await bt.default.stat(t).catch(()=>null))?.isDirectory()??!1}function Ie(t){return(0,Ku.default)(t!=null,"Expected value to be non-null"),t}async function Ze(t){let o=t.platform==="android"?".apk":".ipa";return{...t,projectRoot:jt.default.resolve(t.projectRoot),workingDirectory:t.workingDirectory??await bt.default.mkdtemp(jt.default.join(zu(),"repack-app-")),outputPath:t.outputPath??jt.default.join(t.projectRoot,`repacked${o}`),logger:Xd(t.logger),spawnAsync:t.spawnAsync??Yd(!!t.verbose)}}function Xd(t){return t!=null?Rs.isBunyanLikeLogger(t)?new Rs(t):t:new Ye}var Ye=class{debug(...o){console.debug(...o)}info(...o){console.log(...o)}warn(...o){console.warn(...o)}error(...o){console.error(...o)}time(o){console.time(o)}timeEnd(o){console.timeEnd(o)}},Rs=class{constructor(o){this.logger=o}timerMap={};static isBunyanLikeLogger(o){return o.info&&o.time===void 0}debug(...o){this.logger.debug(o.join(""))}info(...o){this.logger.info(o.join(""))}warn(...o){this.logger.warn(o.join(""))}error(...o){this.logger.error(o.join(""))}time(o){this.timerMap[o]=Date.now()}timeEnd(o){if(this.timerMap[o]==null){this.logger.warn(`Timer '${o}' does not exist`);return}let e=Date.now()-this.timerMap[o];this.logger.info(`${o}: ${e} ms`),delete this.timerMap[o]}};function Yd(t){return function(e,s,i){return(0,ku.default)(e,s,{stdio:t?"inherit":"pipe",...i})}}async function Rt(t,o){await bt.default.mkdir(o,{recursive:!0});let e=await bt.default.readdir(t,{withFileTypes:!0});for(let s of e){let i=jt.default.join(t,s.name),r=jt.default.join(o,s.name);s.isDirectory()?await Rt(i,r):s.isFile()&&await bt.default.copyFile(i,r)}}async function vu({config:t,decodedApkRoot:o}){let e=bu.default.join(o,"res","values","strings.xml"),s=await Pe.default.readFile(e,"utf8");s=s.replace(/(<string name="app_name">)(.+)(<\/string>)/,`$1${t.name}$3`),await Pe.default.writeFile(e,s)}async function Wu({config:t,androidManiestXml:o,dexClasses:e,originalAppIdSet:s,updatesRuntimeVersion:i}){let r=Ie(t.android?.package),n=o.manifest.$.package!==r;Ar(o,m=>{for(let w of s)if(m.startsWith(w)&&!e.has(m))return m.replace(new RegExp(`^${w}`),r);return m});let a=Ur("manifest",o.manifest,(m,w)=>m==="intent-filter"&&Ur(m,w,(f,k)=>f==="action"&&k[0].$?.["android:name"]==="android.intent.action.VIEW").length>0),c=Array.isArray(t.scheme)?t.scheme[0]:t.scheme;for(let m of a)Ar(m,w=>{let f=w;for(let k of s)f=f.replace(new RegExp(`^${k}`),r);return f=f.replace(/^exp\+.+$/g,`exp+${Ie(t.slug)}`),c&&(f=f.replace(/^myapp$/g,c)),f});let u=o.manifest.application[0];(0,Jt.default)(u.$?.["android:name"]?.endsWith(".MainApplication"),"Expected application node to be named as MainApplication"),Id(u,t,i),o.manifest.$.package=r;let d=t.android?.version||t.version||"1.0.0",x=Number(t.android?.versionCode||1);return o.manifest.$["android:versionName"]=d,o.manifest.$["android:versionCode"]=x,{isPackageNameChanged:n}}async function pu(t){let o=await Pe.default.readFile(t,"utf8");return await new Bs.Parser().parseStringPromise(o)}async function qu(t,o){let s=new Bs.Builder().buildObject(t);await Pe.default.writeFile(o,s)}function Cu(t){let o=t.manifest.$.package;return(0,Jt.default)(o!=null,"Expected package attribute to be present in AndroidManifest.xml"),o}function Nu(t,o){let e=t.manifest.application?.[0]?.$?.["android:name"];if(e){let s=e.replace(/\.[^.]+$/,"");if(s!==e&&s!==o)return s}return null}function Id(t,o,e){let s=t["meta-data"]??[],i=o.updates?.enabled??!0,r=s.find(u=>u.$?.["android:name"]==="expo.modules.updates.ENABLED");r!=null?((0,Jt.default)(r.$!=null),r.$["android:value"]=i?"true":"false"):s.push({$:{"android:name":"expo.modules.updates.ENABLED","android:value":i?"true":"false"}});let n=s.find(u=>u.$?.["android:name"]==="expo.modules.updates.EXPO_RUNTIME_VERSION");e!=null&&(n!=null?((0,Jt.default)(n.$!=null),n.$["android:value"]=e):s.push({$:{"android:name":"expo.modules.updates.EXPO_RUNTIME_VERSION","android:value":e}}));let a=s.find(u=>u.$?.["android:name"]==="expo.modules.updates.EXPO_UPDATE_URL"),c=o.updates?.url;c&&(a!=null?((0,Jt.default)(a.$!=null),a.$["android:value"]=c):s.push({$:{"android:name":"expo.modules.updates.EXPO_UPDATE_URL","android:value":c}}))}function Ur(t,o,e){return o==null?[]:e(t,o)?[o]:Object.keys(o).filter(s=>s!=="$"&&s!=="_").flatMap(s=>{let i=o[s];return Ur(s,i,e)})}function Ar(t,o){if(t==null)return;let e=t.$??{};for(let[s,i]of Object.entries(e))e[s]=o(i);for(let[s,i]of Object.entries(t))s==="$"||s==="_"||Ar(i,o)}var Su="./debug.keystore";var I_=P(Y_());function _i(t,o){let e=process.env;for(let[s,i]of Object.entries(o??{})){if(e[s]!==void 0)continue;let r;i==null?r="":typeof i=="string"?r=i:r=JSON.stringify(i),e[s]=r}sy("development"),(0,I_.loadProjectEnv)(t)}function sy(t){process.env.NODE_ENV=process.env.NODE_ENV||t,process.env.BABEL_ENV=process.env.BABEL_ENV||process.env.NODE_ENV,globalThis.__DEV__=process.env.NODE_ENV!=="production"}var mi=P(require("node:assert")),xi=P(require("node:fs/promises")),Yo=P(require("node:path")),re=P(T_());async function gi(t,o){let{workingDirectory:e}=t,s=Yo.default.join(e,"app.config");return await xi.default.writeFile(s,JSON.stringify(o)),s}async function Oi(t){let{platform:o,projectRoot:e,spawnAsync:s,workingDirectory:i}=t,{stdout:r}=await s("node",["-e","require('expo/scripts/resolveAppEntry')",e,o,"absolute"],{cwd:e,stdio:"pipe"}),n=re.default.silent(t.projectRoot,"expo-updates/utils/build/createUpdatesResources.js");return(0,mi.default)(n,"Failed to resolve `createUpdatesResources.js` within expo-updates package"),await s("node",[n,o,e,i,"all",r.trim()],{cwd:e}),Yo.default.join(i,"app.manifest")}function di(t){let o=U_(t);(0,mi.default)(o,"Failed to resolve '@expo/config' package in the project");let{getPackageJson:e}=require(o),s=e(t);return!!(s.dependencies&&"expo-updates"in s.dependencies)}async function wi(t,o){let{projectRoot:e,spawnAsync:s}=t,i=re.default.silent(e,"expo-updates/bin/cli")??(0,re.default)(e,"expo-updates/bin/cli.js"),{stdout:r}=await s(i,["runtimeversion:resolve","--platform","android","--workflow","managed"],{cwd:e,stdio:"pipe"});return JSON.parse(r).runtimeVersion??null}function U_(t){let o=re.default.silent(t,"expo/package.json");return o?re.default.silent(Yo.default.dirname(o),"@expo/config")??null:null}function yi(t,o){let e=U_(t);(0,mi.default)(e,"Failed to resolve '@expo/config' package in the project");let{getConfig:s}=require(e);return s(t,o)}async function hi(t,o){let{projectRoot:e,platform:s,spawnAsync:i,workingDirectory:r}=o,n=Yo.default.resolve(r,"bundles");await xi.default.mkdir(n,{recursive:!0});let a=Yo.default.join(n,"assets");await xi.default.mkdir(a,{recursive:!0});let{stdout:c}=await i("node",["-e","require('expo/scripts/resolveAppEntry')",e,s,"absolute"],{cwd:e,stdio:"pipe"}),u=ry(t,s),d=s==="android"?"index.android.bundle":"main.bundle",x=Yo.default.join(n,d),m=["expo","export:embed","--platform",s,"--entry-file",c.trim(),"--bundle-output",Yo.default.join(n,d),"--assets-dest",Yo.default.join(n,"assets"),"--dev","false","--reset-cache"];return u?(m.push("--minify","false"),m.push("--bytecode","true"),m.push("--unstable-transform-profile","hermes")):m.push("--minify","true"),o.exportEmbedOptions?.sourcemapOutput&&m.push("--sourcemap-output",o.exportEmbedOptions.sourcemapOutput),await i("npx",m,{cwd:e}),{bundleOutputPath:x,assetRoot:a}}async function fi({appWorkingDirectory:t,options:o}){if(o.exportEmbedOptions!=null)return!0;let e;return o.platform==="android"?e=Yo.default.join(t,"assets","index.android.bundle"):e=Yo.default.join(t,"main.jsbundle"),await Gu(e)}function ry(t,o){switch(o){case"android":return(t.android?.jsEngine??t.jsEngine)!=="jsc";case"ios":return(t.ios?.jsEngine??t.jsEngine)!=="jsc";default:return!1}}var ny=gt.default.resolve(__dirname,Su);async function Q_(t){let o=await Ze(t),{logger:e,workingDirectory:s}=o;await ne.default.mkdir(s,{recursive:!0}),_i(o.projectRoot,o.env);let{exp:i}=yi(o.projectRoot,{isPublicConfig:!0,skipSDKVersionRequirement:!0}),r=await Kc(gt.default.resolve(o.sourceAppPath),o);(0,dn.default)(i.android?.package,"Expected app ID (`android.package`) to be defined in app.json");let n=di(o.projectRoot),a=n?await wi(o,i):null;if(e.info(A_.default.dim(`Resolved runtime version: ${a}`)),await fi({appWorkingDirectory:r,options:o})){e.time("Generating bundle");let{assetRoot:O,bundleOutputPath:l}=await hi(i,o);if(e.timeEnd("Generating bundle"),e.time("Adding bundled resources"),await bc({decodedApkRoot:r,assetRoot:O,bundleOutputPath:l}),e.timeEnd("Adding bundled resources"),n){e.time("Generating 'app.manifest' for expo-updates");let g=await Oi(o),_=gt.default.join(r,"assets");await ne.default.copyFile(g,gt.default.join(_,gt.default.basename(g))),e.timeEnd("Generating 'app.manifest' for expo-updates")}}e.time("Updating AndroidManifest.xml");let u=gt.default.join(r,"AndroidManifest.xml"),d=await pu(u),x=Cu(d),m=new Set([x]),w=Nu(d,x);w!=null&&m.add(w);let f=new Set;for(let O of m){let l=await ql(r,O,o);for(let g of l)f.add(g)}(0,dn.default)(f!=null,"Failed to search for dex classes with appId in the APK");let{isPackageNameChanged:k}=await Wu({config:i,androidManiestXml:d,dexClasses:f,originalAppIdSet:m,options:o,updatesRuntimeVersion:a});k&&await vc(r,i.android?.package),await qu(d,u),e.timeEnd("Updating AndroidManifest.xml"),e.time("Updating resources"),await vu({config:i,decodedApkRoot:r}),e.timeEnd("Updating resources"),e.time("Generating app config");let W=await gi(o,i);await ne.default.copyFile(W,gt.default.join(r,"assets","app.config")),e.timeEnd("Generating app config"),e.time("Creating updated apk");let p=await Gc(r,o),q=await pl(p,o,{keyStorePath:o.androidSigningOptions?.keyStorePath??ny,keyStorePassword:o.androidSigningOptions?.keyStorePassword??"pass:android",keyAlias:o.androidSigningOptions?.keyAlias,keyPassword:o.androidSigningOptions?.keyPassword});if(e.timeEnd("Creating updated apk"),await ne.default.rename(q,o.outputPath),!o.skipWorkingDirCleanup)try{await ne.default.rm(s,{recursive:!0})}catch{}return o.outputPath}var Bi=P(require("node:assert")),ht=P(require("node:fs/promises")),Ro=P(require("node:path")),pg=P(Hi());var B_=P(require("node:assert")),ae=P(require("node:fs/promises")),mo=P(require("node:path"));var J_=P(j_());function zi(t){return R_(t)||R_((0,J_.default)(t))||"app"}function R_(t){return t.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}async function D_(t){let{spawnAsync:o,sourceAppPath:e}=t,s=mo.default.join(t.workingDirectory,"extracted");if(await ae.default.mkdir(s,{recursive:!0}),e.endsWith(".zip")||e.endsWith(".ipa"))await o("unzip",[e,"-d",s]);else if(e.endsWith(".tar.gz"))await o("tar",["-xzf",e,"-C",s]);else if(e.endsWith(".app")){let n=mo.default.basename(e);await Rt(e,mo.default.join(s,n))}else throw new Error("Unsupported file type. Please provide a .zip, .tar.gz, or .app file.");let r=(await Ut("{Payload/*.app,*.app}",{cwd:s,absolute:!0}))[0];return(0,B_.default)(r,`Failed to find the .app directory in the extracted artifact: ${s}`),r}async function $_({config:t,appWorkingDirectory:o,executableName:e}){let{dir:s,name:i}=mo.default.parse(o),r=zi(t.name),n=mo.default.join(s,`${r}.app`);return await ae.default.rename(mo.default.join(s,`${i}.app`),n),await ae.default.rename(mo.default.join(n,e),mo.default.join(n,r)),n}async function H_(t,o){let e=mo.default.resolve(t.workingDirectory,mo.default.basename(o));return await Rt(o,e),e}async function ox(t,o){let{spawnAsync:e,workingDirectory:s}=t;await ae.default.mkdir(mo.default.join(s,"Payload"),{recursive:!0}),await ae.default.rename(o,mo.default.join(s,"Payload",mo.default.basename(o)));let i=mo.default.resolve(s,"repacked.ipa");return await e("zip",["-r",i,"Payload"],{cwd:s}),i}function tx(t,o,e){let s=e.keychainPath?`keychain_path: "${e.keychainPath}",`:"",i;if(typeof e.provisioningProfile=="string")i=`provisioning_profile: "${e.provisioningProfile}",`;else if(typeof e.provisioningProfile=="object"&&!Array.isArray(e.provisioningProfile)){let n="";for(let[a,c]of Object.entries(e.provisioningProfile))n+=` "${a}" => "${c}",
33
35
  `;i=`provisioning_profile: {
34
36
  ${n}
35
37
  },`}else i="";return`lane :${t} do
@@ -40,7 +42,7 @@ ${n}
40
42
  ${i}
41
43
  )
42
44
  end
43
- `.replace(/^\s*[\r\n]/gm,"")}var Tn=P(Kg()),Ji=P(require("node:assert")),ye=P(require("node:fs/promises")),Ri=P(require("node:path"));async function Gg({config:t,infoPlistPath:o,originalAppId:e,options:s}){let i=t.ios?.bundleIdentifier;(0,Ji.default)(i,"The `bundleIdentifier` must be specified in the `ios` config.");let r=Array.isArray(t.scheme)?t.scheme[0]:t.scheme;await Un(o,s,n=>{let a=n.CFBundleURLTypes.slice();for(let d of a)if(Array.isArray(d.CFBundleURLSchemes)){let x=d.CFBundleURLSchemes.map(m=>{let w=m.replace(e,i).replace(/^exp\+.+$/g,`exp+${ke(t.slug)}`);return r&&(w=m.replace(/^myapp$/g,r)),w});d.CFBundleURLSchemes=x}let c={...n,CFBundleDisplayName:t.name,CFBundleName:t.name,CFBundleExecutable:zi(t.name),CFBundleIdentifier:i},u=n.NSUserActivityTypes?.map(d=>d.replace(e,i));return u&&(c.NSUserActivityTypes=u),c})}async function bg(t,o,e,s){await Un(o,s,i=>{let r=t.updates?.enabled??!0,n={...i,EXUpdatesEnabled:r};e&&(n.EXUpdatesRuntimeVersion=e);let a=t.updates?.url;return a&&(n.EXUpdatesURL=a),n})}async function vg(t,o){let e,s;return await Un(t,o,i=>(e=i.CFBundleIdentifier,s=i.CFBundleExecutable,i)),(0,Ji.default)(e,"Expected `CFBundleIdentifier` to be present in Info.plist"),(0,Ji.default)(s,"Expected `CFBundleExecutable` to be present in Info.plist"),{appId:e,executableName:s}}async function pg({appWorkingDirectory:t,assetRoot:o,bundleOutputPath:e}){await Promise.all([ye.default.rm(Ri.default.join(t,"main.jsbundle"),{force:!0}),ye.default.rm(Ri.default.join(t,"assets"),{recursive:!0,force:!0})]),await ye.default.copyFile(e,Ri.default.join(t,"main.jsbundle")),await qs(o)&&await Xt(o,t)}async function Un(t,o,e){let{spawnAsync:s}=o;await s("plutil",["-convert","xml1",t]);let i=await ye.default.readFile(t,"utf8"),r=await Tn.default.parse(i),n=e(r),a=Tn.default.build(n);await ye.default.writeFile(t,a),await s("plutil",["-convert","binary1",t])}async function qg(t){let o=await Ke(t),{workingDirectory:e,logger:s}=o;await ft.default.mkdir(e,{recursive:!0}),As(o.projectRoot,o.env);let{exp:i}=$s(o.projectRoot,{isPublicConfig:!0,skipSDKVersionRequirement:!0});(0,Bi.default)(i.ios?.bundleIdentifier,"Expected app ID (`ios.bundleIdentifier`) to be defined in app.json");let r=Bs(o.projectRoot),n=r?await Ds(o,i):null;r&&s.info(Wg.default.dim(`Resolved runtime version: ${n}`)),s.time(`Extracting artifact from ${o.sourceAppPath}`);let a=await D_(o),c=Ro.default.join(a,"Info.plist"),{appId:u,executableName:d}=await vg(c,o);a=await $_({config:i,appWorkingDirectory:a,executableName:d});let x=Ro.default.join(a,"Info.plist");if(s.timeEnd(`Extracting artifact from ${o.sourceAppPath}`),await oi({appWorkingDirectory:a,options:o})){s.time("Generating bundle");let{assetRoot:k,bundleOutputPath:p}=await Hs(i,o);if(s.timeEnd("Generating bundle"),s.time("Adding bundled resources"),await pg({appWorkingDirectory:a,assetRoot:k,bundleOutputPath:p}),s.timeEnd("Adding bundled resources"),r){s.time("Generating 'app.manifest' for expo-updates");let W=await Js(o),q=Ro.default.join(a,"EXUpdates.bundle");(0,Bi.default)(await qs(q),"Expected EXUpdates.bundle directory to exist"),await ft.default.copyFile(W,Ro.default.join(q,Ro.default.basename(W))),s.timeEnd("Generating 'app.manifest' for expo-updates")}}s.time("Updating Info.plist"),await Gg({config:i,infoPlistPath:x,originalAppId:u,options:o}),s.timeEnd("Updating Info.plist"),s.time("Updating Expo.plist"),await bg(i,Ro.default.join(a,"Expo.plist"),n,o),s.timeEnd("Updating Expo.plist"),s.time("Generating app.config");let w=await Rs(o,i);await ft.default.copyFile(w,Ro.default.join(a,"EXConstants.bundle","app.config")),s.timeEnd("Generating app.config"),s.time("Creating updated artifact");let z;if(o.outputPath.endsWith(".app")?z=await H_(o,a):z=await ox(o,a),s.timeEnd("Creating updated artifact"),o.iosSigningOptions&&((0,Bi.default)(z.endsWith(".ipa"),"Signing is only supported for .ipa files"),s.time(`Resigning the IPA at ${z}`),await $y(z,o.iosSigningOptions,o),s.timeEnd(`Resigning the IPA at ${z}`)),await ft.default.rename(z,o.outputPath),!o.skipWorkingDirCleanup)try{await ft.default.rm(e,{recursive:!0})}catch{}return o.outputPath}async function $y(t,o,e){let s=await Ke(e),{spawnAsync:i}=s,r=Ro.default.join(s.workingDirectory,"fastlane");await ft.default.mkdir(r,{recursive:!0});let n=tx("resign_ipa",t,o);await ft.default.writeFile(Ro.default.join(r,"Fastfile"),n),await i("fastlane",["resign_ipa"],{cwd:r,env:s.env})}0&&(module.exports={ConsoleLogger,repackAppAndroidAsync,repackAppIosAsync});
45
+ `.replace(/^\s*[\r\n]/gm,"")}var Un=P(Kg()),Ji=P(require("node:assert")),he=P(require("node:fs/promises")),Ri=P(require("node:path"));async function Gg({config:t,infoPlistPath:o,originalAppId:e,options:s}){let i=t.ios?.bundleIdentifier;(0,Ji.default)(i,"The `bundleIdentifier` must be specified in the `ios` config.");let r=Array.isArray(t.scheme)?t.scheme[0]:t.scheme;await An(o,s,n=>{let a=n.CFBundleURLTypes.slice();for(let m of a)if(Array.isArray(m.CFBundleURLSchemes)){let w=m.CFBundleURLSchemes.map(f=>{let k=f.replace(e,i).replace(/^exp\+.+$/g,`exp+${Ie(t.slug)}`);return r&&(k=f.replace(/^myapp$/g,r)),k});m.CFBundleURLSchemes=w}let c=t.ios?.version||t.version||"1.0.0",u=t.ios?.buildNumber||"1",d={...n,CFBundleDisplayName:t.name,CFBundleName:t.name,CFBundleExecutable:zi(t.name),CFBundleIdentifier:i,CFBundleVersion:c,CFBundleShortVersionString:u},x=n.NSUserActivityTypes?.map(m=>m.replace(e,i));return x&&(d.NSUserActivityTypes=x),d})}async function bg(t,o,e,s){await An(o,s,i=>{let r=t.updates?.enabled??!0,n={...i,EXUpdatesEnabled:r};e&&(n.EXUpdatesRuntimeVersion=e);let a=t.updates?.url;return a&&(n.EXUpdatesURL=a),n})}async function vg(t,o){let e,s;return await An(t,o,i=>(e=i.CFBundleIdentifier,s=i.CFBundleExecutable,i)),(0,Ji.default)(e,"Expected `CFBundleIdentifier` to be present in Info.plist"),(0,Ji.default)(s,"Expected `CFBundleExecutable` to be present in Info.plist"),{appId:e,executableName:s}}async function Wg({appWorkingDirectory:t,assetRoot:o,bundleOutputPath:e}){await Promise.all([he.default.rm(Ri.default.join(t,"main.jsbundle"),{force:!0}),he.default.rm(Ri.default.join(t,"assets"),{recursive:!0,force:!0})]),await he.default.copyFile(e,Ri.default.join(t,"main.jsbundle")),await Js(o)&&await Rt(o,t)}async function An(t,o,e){let{spawnAsync:s}=o;await s("plutil",["-convert","xml1",t]);let i=await he.default.readFile(t,"utf8"),r=await Un.default.parse(i),n=e(r),a=Un.default.build(n);await he.default.writeFile(t,a),await s("plutil",["-convert","binary1",t])}async function qg(t){let o=await Ze(t),{workingDirectory:e,logger:s}=o;await ht.default.mkdir(e,{recursive:!0}),_i(o.projectRoot,o.env);let{exp:i}=yi(o.projectRoot,{isPublicConfig:!0,skipSDKVersionRequirement:!0});(0,Bi.default)(i.ios?.bundleIdentifier,"Expected app ID (`ios.bundleIdentifier`) to be defined in app.json");let r=di(o.projectRoot),n=r?await wi(o,i):null;r&&s.info(pg.default.dim(`Resolved runtime version: ${n}`)),s.time(`Extracting artifact from ${o.sourceAppPath}`);let a=await D_(o),c=Ro.default.join(a,"Info.plist"),{appId:u,executableName:d}=await vg(c,o);a=await $_({config:i,appWorkingDirectory:a,executableName:d});let x=Ro.default.join(a,"Info.plist");if(s.timeEnd(`Extracting artifact from ${o.sourceAppPath}`),await fi({appWorkingDirectory:a,options:o})){s.time("Generating bundle");let{assetRoot:k,bundleOutputPath:W}=await hi(i,o);if(s.timeEnd("Generating bundle"),s.time("Adding bundled resources"),await Wg({appWorkingDirectory:a,assetRoot:k,bundleOutputPath:W}),s.timeEnd("Adding bundled resources"),r){s.time("Generating 'app.manifest' for expo-updates");let p=await Oi(o),q=Ro.default.join(a,"EXUpdates.bundle");(0,Bi.default)(await Js(q),"Expected EXUpdates.bundle directory to exist"),await ht.default.copyFile(p,Ro.default.join(q,Ro.default.basename(p))),s.timeEnd("Generating 'app.manifest' for expo-updates")}}s.time("Updating Info.plist"),await Gg({config:i,infoPlistPath:x,originalAppId:u,options:o}),s.timeEnd("Updating Info.plist"),s.time("Updating Expo.plist"),await bg(i,Ro.default.join(a,"Expo.plist"),n,o),s.timeEnd("Updating Expo.plist"),s.time("Generating app.config");let w=await gi(o,i);await ht.default.copyFile(w,Ro.default.join(a,"EXConstants.bundle","app.config")),s.timeEnd("Generating app.config"),s.time("Creating updated artifact");let f;if(o.outputPath.endsWith(".app")?f=await H_(o,a):f=await ox(o,a),s.timeEnd("Creating updated artifact"),o.iosSigningOptions&&((0,Bi.default)(f.endsWith(".ipa"),"Signing is only supported for .ipa files"),s.time(`Resigning the IPA at ${f}`),await $y(f,o.iosSigningOptions,o),s.timeEnd(`Resigning the IPA at ${f}`)),await ht.default.rename(f,o.outputPath),!o.skipWorkingDirCleanup)try{await ht.default.rm(e,{recursive:!0})}catch{}return o.outputPath}async function $y(t,o,e){let s=await Ze(e),{spawnAsync:i}=s,r=Ro.default.join(s.workingDirectory,"fastlane");await ht.default.mkdir(r,{recursive:!0});let n=tx("resign_ipa",t,o);await ht.default.writeFile(Ro.default.join(r,"Fastfile"),n),await i("fastlane",["resign_ipa"],{cwd:r,env:s.env})}0&&(module.exports={ConsoleLogger,repackAppAndroidAsync,repackAppIosAsync});
44
46
  /*! Bundled license information:
45
47
 
46
48
  sax/lib/sax.js: