/**
 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1.
 * Original file: /npm/xml2js@0.6.2/lib/xml2js.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import*as ze from"/npm/xmlbuilder@11.0.1/+esm";import*as Re from"/npm/sax@1.2.4/+esm";function K(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E={},X={},he;function ne(){return he||(he=1,(function(){X.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:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(X)),X}var Y={},Be=K(ze),de;function De(){return de||(de=1,(function(){var e,r,t,n,u,p={}.hasOwnProperty;e=Be,r=ne().defaults,n=function(o){return typeof o=="string"&&(o.indexOf("&")>=0||o.indexOf(">")>=0||o.indexOf("<")>=0)},u=function(o){return"<![CDATA["+t(o)+"]]>"},t=function(o){return o.replace("]]>","]]]]><![CDATA[>")},Y.Builder=(function(){function o(m){var v,x,T;this.options={},x=r["0.2"];for(v in x)p.call(x,v)&&(T=x[v],this.options[v]=T);for(v in m)p.call(m,v)&&(T=m[v],this.options[v]=T)}return o.prototype.buildObject=function(m){var v,x,T,L,k;return v=this.options.attrkey,x=this.options.charkey,Object.keys(m).length===1&&this.options.rootName===r["0.2"].rootName?(k=Object.keys(m)[0],m=m[k]):k=this.options.rootName,T=(function(y){return function(l,a){var s,c,h,i,d,P;if(typeof a!="object")y.options.cdata&&n(a)?l.raw(u(a)):l.txt(a);else if(Array.isArray(a)){for(i in a)if(p.call(a,i)){c=a[i];for(d in c)h=c[d],l=T(l.ele(d),h).up()}}else for(d in a)if(p.call(a,d))if(c=a[d],d===v){if(typeof c=="object")for(s in c)P=c[s],l=l.att(s,P)}else if(d===x)y.options.cdata&&n(c)?l=l.raw(u(c)):l=l.txt(c);else if(Array.isArray(c))for(i in c)p.call(c,i)&&(h=c[i],typeof h=="string"?y.options.cdata&&n(h)?l=l.ele(d).raw(u(h)).up():l=l.ele(d,h).up():l=T(l.ele(d),h).up());else typeof c=="object"?l=T(l.ele(d),c).up():typeof c=="string"&&y.options.cdata&&n(c)?l=l.ele(d).raw(u(c)).up():(c==null&&(c=""),l=l.ele(d,c.toString()).up());return l}})(this),L=e.create(k,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),T(L,m).end(this.options.renderOpts)},o})()}).call(Y)),Y}var Q={},Fe=K(Re),ie;function S(){}S.prototype=Object.create(null);function g(){g.init.call(this)}g.EventEmitter=g,g.usingDomains=!1,g.prototype.domain=void 0,g.prototype._events=void 0,g.prototype._maxListeners=void 0,g.defaultMaxListeners=10,g.init=function(){this.domain=null,g.usingDomains&&ie.active&&!(this instanceof ie.Domain)&&(this.domain=ie.active),(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new S,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},g.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||isNaN(r))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=r,this};function ve(e){return e._maxListeners===void 0?g.defaultMaxListeners:e._maxListeners}g.prototype.getMaxListeners=function(){return ve(this)};function Ve(e,r,t){if(r)e.call(t);else for(var n=e.length,u=V(e,n),p=0;p<n;++p)u[p].call(t)}function He(e,r,t,n){if(r)e.call(t,n);else for(var u=e.length,p=V(e,u),o=0;o<u;++o)p[o].call(t,n)}function Ue(e,r,t,n,u){if(r)e.call(t,n,u);else for(var p=e.length,o=V(e,p),m=0;m<p;++m)o[m].call(t,n,u)}function We(e,r,t,n,u,p){if(r)e.call(t,n,u,p);else for(var o=e.length,m=V(e,o),v=0;v<o;++v)m[v].call(t,n,u,p)}function Ke(e,r,t,n){if(r)e.apply(t,n);else for(var u=e.length,p=V(e,u),o=0;o<u;++o)p[o].apply(t,n)}g.prototype.emit=function(r){var t,n,u,p,o,m,v,x=r==="error";if(m=this._events,m)x=x&&m.error==null;else if(!x)return!1;if(v=this.domain,x){if(t=arguments[1],v)t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=v,t.domainThrown=!1,v.emit("error",t);else{if(t instanceof Error)throw t;var T=new Error('Uncaught, unspecified "error" event. ('+t+")");throw T.context=t,T}return!1}if(n=m[r],!n)return!1;var L=typeof n=="function";switch(u=arguments.length,u){case 1:Ve(n,L,this);break;case 2:He(n,L,this,arguments[1]);break;case 3:Ue(n,L,this,arguments[1],arguments[2]);break;case 4:We(n,L,this,arguments[1],arguments[2],arguments[3]);break;default:for(p=new Array(u-1),o=1;o<u;o++)p[o-1]=arguments[o];Ke(n,L,this,p)}return!0};function ge(e,r,t,n){var u,p,o;if(typeof t!="function")throw new TypeError('"listener" argument must be a function');if(p=e._events,p?(p.newListener&&(e.emit("newListener",r,t.listener?t.listener:t),p=e._events),o=p[r]):(p=e._events=new S,e._eventsCount=0),!o)o=p[r]=t,++e._eventsCount;else if(typeof o=="function"?o=p[r]=n?[t,o]:[o,t]:n?o.unshift(t):o.push(t),!o.warned&&(u=ve(e),u&&u>0&&o.length>u)){o.warned=!0;var m=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+r+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=e,m.type=r,m.count=o.length,Xe(m)}return e}function Xe(e){typeof console.warn=="function"?console.warn(e):console.log(e)}g.prototype.addListener=function(r,t){return ge(this,r,t,!1)},g.prototype.on=g.prototype.addListener,g.prototype.prependListener=function(r,t){return ge(this,r,t,!0)};function ye(e,r,t){var n=!1;function u(){e.removeListener(r,u),n||(n=!0,t.apply(e,arguments))}return u.listener=t,u}g.prototype.once=function(r,t){if(typeof t!="function")throw new TypeError('"listener" argument must be a function');return this.on(r,ye(this,r,t)),this},g.prototype.prependOnceListener=function(r,t){if(typeof t!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(r,ye(this,r,t)),this},g.prototype.removeListener=function(r,t){var n,u,p,o,m;if(typeof t!="function")throw new TypeError('"listener" argument must be a function');if(u=this._events,!u)return this;if(n=u[r],!n)return this;if(n===t||n.listener&&n.listener===t)--this._eventsCount===0?this._events=new S:(delete u[r],u.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(p=-1,o=n.length;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){m=n[o].listener,p=o;break}if(p<0)return this;if(n.length===1){if(n[0]=void 0,--this._eventsCount===0)return this._events=new S,this;delete u[r]}else Ye(n,p);u.removeListener&&this.emit("removeListener",r,m||t)}return this},g.prototype.off=function(e,r){return this.removeListener(e,r)},g.prototype.removeAllListeners=function(r){var t,n;if(n=this._events,!n)return this;if(!n.removeListener)return arguments.length===0?(this._events=new S,this._eventsCount=0):n[r]&&(--this._eventsCount===0?this._events=new S:delete n[r]),this;if(arguments.length===0){for(var u=Object.keys(n),p=0,o;p<u.length;++p)o=u[p],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=new S,this._eventsCount=0,this}if(t=n[r],typeof t=="function")this.removeListener(r,t);else if(t)do this.removeListener(r,t[t.length-1]);while(t[0]);return this},g.prototype.listeners=function(r){var t,n,u=this._events;return u?(t=u[r],t?typeof t=="function"?n=[t.listener||t]:n=Qe(t):n=[]):n=[],n},g.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):we.call(e,r)},g.prototype.listenerCount=we;function we(e){var r=this._events;if(r){var t=r[e];if(typeof t=="function")return 1;if(t)return t.length}return 0}g.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function Ye(e,r){for(var t=r,n=t+1,u=e.length;n<u;t+=1,n+=1)e[t]=e[n];e.pop()}function V(e,r){for(var t=new Array(r);r--;)t[r]=e[r];return t}function Qe(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}var Ge=Object.freeze({__proto__:null,EventEmitter:g,default:g}),Je=K(Ge),G={},Pe;function Ze(){return Pe||(Pe=1,(function(){G.stripBOM=function(e){return e[0]==="\uFEFF"?e.substring(1):e}}).call(G)),G}var N={},xe;function Te(){return xe||(xe=1,(function(){var e;e=new RegExp(/(?!xmlns)^.*:/),N.normalize=function(r){return r.toLowerCase()},N.firstCharLowerCase=function(r){return r.charAt(0).toLowerCase()+r.slice(1)},N.stripPrefix=function(r){return r.replace(e,"")},N.parseNumbers=function(r){return isNaN(r)||(r=r%1===0?parseInt(r,10):parseFloat(r)),r},N.parseBooleans=function(r){return/^(?:true|false)$/i.test(r)&&(r=r.toLowerCase()==="true"),r}}).call(N)),N}var w=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};function be(){throw new Error("setTimeout has not been defined")}function Ce(){throw new Error("clearTimeout has not been defined")}var M=be,$=Ce;typeof w.setTimeout=="function"&&(M=setTimeout),typeof w.clearTimeout=="function"&&($=clearTimeout);function Le(e){if(M===setTimeout)return setTimeout(e,0);if((M===be||!M)&&setTimeout)return M=setTimeout,setTimeout(e,0);try{return M(e,0)}catch{try{return M.call(null,e,0)}catch{return M.call(this,e,0)}}}function er(e){if($===clearTimeout)return clearTimeout(e);if(($===Ce||!$)&&clearTimeout)return $=clearTimeout,clearTimeout(e);try{return $(e)}catch{try{return $.call(null,e)}catch{return $.call(this,e)}}}var O=[],R=!1,j,J=-1;function rr(){!R||!j||(R=!1,j.length?O=j.concat(O):J=-1,O.length&&ke())}function ke(){if(!R){var e=Le(rr);R=!0;for(var r=O.length;r;){for(j=O,O=[];++J<r;)j&&j[J].run();J=-1,r=O.length}j=null,R=!1,er(e)}}function tr(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];O.push(new Ae(e,r)),O.length===1&&!R&&Le(ke)}function Ae(e,r){this.fun=e,this.array=r}Ae.prototype.run=function(){this.fun.apply(null,this.array)};var nr="browser",ir="browser",sr=!0,or={},ar=[],ur="",lr={},fr={},cr={};function z(){}var pr=z,mr=z,hr=z,dr=z,vr=z,gr=z,yr=z;function wr(e){throw new Error("process.binding is not supported")}function Pr(){return"/"}function xr(e){throw new Error("process.chdir is not supported")}function Tr(){return 0}var B=w.performance||{},br=B.now||B.mozNow||B.msNow||B.oNow||B.webkitNow||function(){return new Date().getTime()};function Cr(e){var r=br.call(B)*.001,t=Math.floor(r),n=Math.floor(r%1*1e9);return e&&(t=t-e[0],n=n-e[1],n<0&&(t--,n+=1e9)),[t,n]}var Lr=new Date;function kr(){var e=new Date,r=e-Lr;return r/1e3}var Ee={nextTick:tr,title:nr,browser:sr,env:or,argv:ar,version:ur,versions:lr,on:pr,addListener:mr,once:hr,off:dr,removeListener:vr,removeAllListeners:gr,emit:yr,binding:wr,cwd:Pr,chdir:xr,umask:Tr,hrtime:Cr,platform:ir,release:fr,config:cr,uptime:kr};typeof Symbol=="function"&&Symbol.toStringTag&&Object.defineProperty(Ee,Symbol.toStringTag,{value:"process",enumerable:!1,writable:!0,configurable:!1});var se=1,oe={},ae=!1,Z=w.document,D;function Oe(e){typeof e!="function"&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),t=0;t<r.length;t++)r[t]=arguments[t+1];var n={callback:e,args:r};return oe[se]=n,D(se),se++}function ue(e){delete oe[e]}function Ar(e){var r=e.callback,t=e.args;switch(t.length){case 0:r();break;case 1:r(t[0]);break;case 2:r(t[0],t[1]);break;case 3:r(t[0],t[1],t[2]);break;default:r.apply(void 0,t);break}}function F(e){if(ae)setTimeout(F,0,e);else{var r=oe[e];if(r){ae=!0;try{Ar(r)}finally{ue(e),ae=!1}}}}function Er(){D=function(e){Ee.nextTick(function(){F(e)})}}function Or(){if(w.postMessage&&!w.importScripts){var e=!0,r=w.onmessage;return w.onmessage=function(){e=!1},w.postMessage("","*"),w.onmessage=r,e}}function Ir(){var e="setImmediate$"+Math.random()+"$",r=function(t){t.source===w&&typeof t.data=="string"&&t.data.indexOf(e)===0&&F(+t.data.slice(e.length))};w.addEventListener?w.addEventListener("message",r,!1):w.attachEvent("onmessage",r),D=function(t){w.postMessage(e+t,"*")}}function Sr(){var e=new MessageChannel;e.port1.onmessage=function(r){var t=r.data;F(t)},D=function(r){e.port2.postMessage(r)}}function Nr(){var e=Z.documentElement;D=function(r){var t=Z.createElement("script");t.onreadystatechange=function(){F(r),t.onreadystatechange=null,e.removeChild(t),t=null},e.appendChild(t)}}function Mr(){D=function(e){setTimeout(F,0,e)}}var ee=Object.getPrototypeOf&&Object.getPrototypeOf(w);ee=ee&&ee.setTimeout?ee:w,{}.toString.call(w.process)==="[object process]"?Er():Or()?Ir():w.MessageChannel?Sr():Z&&"onreadystatechange"in Z.createElement("script")?Nr():Mr();var Ie=Function.prototype.apply;function Se(e){typeof e=="number"&&typeof w.clearInterval=="function"?w.clearInterval(e):le(e)}function H(e){typeof e=="number"&&typeof w.clearTimeout=="function"?w.clearTimeout(e):le(e)}function le(e){e&&typeof e.close=="function"&&e.close()}function fe(){return new U(Ie.call(w.setTimeout,window,arguments))}function Ne(){return new U(Ie.call(w.setInterval,window,arguments))}function U(e){this._id=e}U.prototype.unref=U.prototype.ref=function(){},U.prototype.close=function(){le(this._id)};function Me(e,r){H(e._idleTimeoutId),e._idleTimeout=r}function $e(e){H(e._idleTimeoutId),e._idleTimeout=-1}var _e=ce;function ce(e){H(e._idleTimeoutId);var r=e._idleTimeout;r>=0&&(e._idleTimeoutId=fe(function(){e._onTimeout&&e._onTimeout()},r))}var $r={setImmediate:Oe,clearImmediate:ue,setTimeout:fe,clearTimeout:H,setInterval:Ne,clearInterval:Se,active:ce,unenroll:$e,_unrefActive:_e,enroll:Me},_r=Object.freeze({__proto__:null,_unrefActive:_e,active:ce,clearImmediate:ue,clearInterval:Se,clearTimeout:H,default:$r,enroll:Me,setImmediate:Oe,setInterval:Ne,setTimeout:fe,unenroll:$e}),qr=K(_r),qe;function jr(){return qe||(qe=1,(function(e){(function(){var r,t,n,u,p,o,m,v,x,T=function(y,l){return function(){return y.apply(l,arguments)}},L=function(y,l){for(var a in l)k.call(l,a)&&(y[a]=l[a]);function s(){this.constructor=y}return s.prototype=l.prototype,y.prototype=new s,y.__super__=l.prototype,y},k={}.hasOwnProperty;v=Fe,u=Je,r=Ze(),m=Te(),x=qr.setImmediate,t=ne().defaults,p=function(y){return typeof y=="object"&&y!=null&&Object.keys(y).length===0},o=function(y,l,a){var s,c,h;for(s=0,c=y.length;s<c;s++)h=y[s],l=h(l,a);return l},n=function(y,l,a){var s;return s=Object.create(null),s.value=a,s.writable=!0,s.enumerable=!0,s.configurable=!0,Object.defineProperty(y,l,s)},e.Parser=(function(y){L(l,y);function l(a){this.parseStringPromise=T(this.parseStringPromise,this),this.parseString=T(this.parseString,this),this.reset=T(this.reset,this),this.assignOrPush=T(this.assignOrPush,this),this.processAsync=T(this.processAsync,this);var s,c,h;if(!(this instanceof e.Parser))return new e.Parser(a);this.options={},c=t["0.2"];for(s in c)k.call(c,s)&&(h=c[s],this.options[s]=h);for(s in a)k.call(a,s)&&(h=a[s],this.options[s]=h);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(m.normalize)),this.reset()}return l.prototype.processAsync=function(){var a,s;try{return this.remaining.length<=this.options.chunkSize?(a=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(a),this.saxParser.close()):(a=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(a),x(this.processAsync))}catch(c){if(s=c,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(s)}},l.prototype.assignOrPush=function(a,s,c){return s in a?(a[s]instanceof Array||n(a,s,[a[s]]),a[s].push(c)):this.options.explicitArray?n(a,s,[c]):n(a,s,c)},l.prototype.reset=function(){var a,s,c,h;return this.removeAllListeners(),this.saxParser=v.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(function(i){return function(d){if(i.saxParser.resume(),!i.saxParser.errThrown)return i.saxParser.errThrown=!0,i.emit("error",d)}})(this),this.saxParser.onend=(function(i){return function(){if(!i.saxParser.ended)return i.saxParser.ended=!0,i.emit("end",i.resultObject)}})(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,h=[],a=this.options.attrkey,s=this.options.charkey,this.saxParser.onopentag=(function(i){return function(d){var P,C,b,A,f;if(b={},b[s]="",!i.options.ignoreAttrs){f=d.attributes;for(P in f)k.call(f,P)&&(!(a in b)&&!i.options.mergeAttrs&&(b[a]={}),C=i.options.attrValueProcessors?o(i.options.attrValueProcessors,d.attributes[P],P):d.attributes[P],A=i.options.attrNameProcessors?o(i.options.attrNameProcessors,P):P,i.options.mergeAttrs?i.assignOrPush(b,A,C):n(b[a],A,C))}return b["#name"]=i.options.tagNameProcessors?o(i.options.tagNameProcessors,d.name):d.name,i.options.xmlns&&(b[i.options.xmlnskey]={uri:d.uri,local:d.local}),h.push(b)}})(this),this.saxParser.onclosetag=(function(i){return function(){var d,P,C,b,A,f,re,pe,I,me;if(f=h.pop(),A=f["#name"],(!i.options.explicitChildren||!i.options.preserveChildrenOrder)&&delete f["#name"],f.cdata===!0&&(d=f.cdata,delete f.cdata),I=h[h.length-1],f[s].match(/^\s*$/)&&!d?(P=f[s],delete f[s]):(i.options.trim&&(f[s]=f[s].trim()),i.options.normalize&&(f[s]=f[s].replace(/\s{2,}/g," ").trim()),f[s]=i.options.valueProcessors?o(i.options.valueProcessors,f[s],A):f[s],Object.keys(f).length===1&&s in f&&!i.EXPLICIT_CHARKEY&&(f=f[s])),p(f)&&(typeof i.options.emptyTag=="function"?f=i.options.emptyTag():f=i.options.emptyTag!==""?i.options.emptyTag:P),i.options.validator!=null&&(me="/"+(function(){var q,W,te;for(te=[],q=0,W=h.length;q<W;q++)b=h[q],te.push(b["#name"]);return te})().concat(A).join("/"),(function(){var q;try{return f=i.options.validator(me,I&&I[A],f)}catch(W){return q=W,i.emit("error",q)}})()),i.options.explicitChildren&&!i.options.mergeAttrs&&typeof f=="object"){if(!i.options.preserveChildrenOrder)b={},i.options.attrkey in f&&(b[i.options.attrkey]=f[i.options.attrkey],delete f[i.options.attrkey]),!i.options.charsAsChildren&&i.options.charkey in f&&(b[i.options.charkey]=f[i.options.charkey],delete f[i.options.charkey]),Object.getOwnPropertyNames(f).length>0&&(b[i.options.childkey]=f),f=b;else if(I){I[i.options.childkey]=I[i.options.childkey]||[],re={};for(C in f)k.call(f,C)&&n(re,C,f[C]);I[i.options.childkey].push(re),delete f["#name"],Object.keys(f).length===1&&s in f&&!i.EXPLICIT_CHARKEY&&(f=f[s])}}return h.length>0?i.assignOrPush(I,A,f):(i.options.explicitRoot&&(pe=f,f={},n(f,A,pe)),i.resultObject=f,i.saxParser.ended=!0,i.emit("end",i.resultObject))}})(this),c=(function(i){return function(d){var P,C;if(C=h[h.length-1],C)return C[s]+=d,i.options.explicitChildren&&i.options.preserveChildrenOrder&&i.options.charsAsChildren&&(i.options.includeWhiteChars||d.replace(/\\n/g,"").trim()!=="")&&(C[i.options.childkey]=C[i.options.childkey]||[],P={"#name":"__text__"},P[s]=d,i.options.normalize&&(P[s]=P[s].replace(/\s{2,}/g," ").trim()),C[i.options.childkey].push(P)),C}})(this),this.saxParser.ontext=c,this.saxParser.oncdata=(function(i){return function(d){var P;if(P=c(d),P)return P.cdata=!0}})()},l.prototype.parseString=function(a,s){var c;s!=null&&typeof s=="function"&&(this.on("end",function(h){return this.reset(),s(null,h)}),this.on("error",function(h){return this.reset(),s(h)}));try{return a=a.toString(),a.trim()===""?(this.emit("end",null),!0):(a=r.stripBOM(a),this.options.async?(this.remaining=a,x(this.processAsync),this.saxParser):this.saxParser.write(a).close())}catch(h){if(c=h,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw c}else return this.emit("error",c),this.saxParser.errThrown=!0}},l.prototype.parseStringPromise=function(a){return new Promise((function(s){return function(c,h){return s.parseString(a,function(i,d){return i?h(i):c(d)})}})(this))},l})(u),e.parseString=function(y,l,a){var s,c,h;return a!=null?(typeof a=="function"&&(s=a),typeof l=="object"&&(c=l)):(typeof l=="function"&&(s=l),c={}),h=new e.Parser(c),h.parseString(y,s)},e.parseStringPromise=function(y,l){var a,s;return typeof l=="object"&&(a=l),s=new e.Parser(a),s.parseStringPromise(y)}}).call(Q)})(Q)),Q}var je;function zr(){return je||(je=1,(function(){var e,r,t,n,u=function(o,m){for(var v in m)p.call(m,v)&&(o[v]=m[v]);function x(){this.constructor=o}return x.prototype=m.prototype,o.prototype=new x,o.__super__=m.prototype,o},p={}.hasOwnProperty;r=ne(),e=De(),t=jr(),n=Te(),E.defaults=r.defaults,E.processors=n,E.ValidationError=(function(o){u(m,o);function m(v){this.message=v}return m})(Error),E.Builder=e.Builder,E.Parser=t.Parser,E.parseString=t.parseString,E.parseStringPromise=t.parseStringPromise}).call(E)),E}var _=zr(),Rr=_.Builder,Br=_.Parser,Dr=_.ValidationError,Fr=_.defaults,Vr=_.parseString,Hr=_.parseStringPromise,Ur=_.processors;export{Rr as Builder,Br as Parser,Dr as ValidationError,_ as default,Fr as defaults,Vr as parseString,Hr as parseStringPromise,Ur as processors};
//# sourceMappingURL=/sm/8fd91d3a61d5c735f80dffc4b372249f88420c68fa7111d9037b1f242e1621ce.map