@reveldigital/gadgetizer 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -37,7 +37,7 @@ ${J(eu).cyan(e0)}
37
37
  `}}}).prompt()},e9=(e="")=>{process.stdout.write(`${J(eu).gray(eZ)}
38
38
  ${J(eu).gray(e0)} ${e}
39
39
 
40
- `)};J(eu).gray(eZ);var e4=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},e7=function(e){return 0===e&&-1/0==1/e};function te(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function tt(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=te(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function tr(e,t,r,n,o){var i="",a="",u=Math.floor(o/2)-1;return n-t>u&&(t=n-u+(i=" ... ").length),r-n>u&&(r=n+u-(a=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+i.length}}function tn(e,t){return e4(" ",t-e.length)+e}tt.prototype=Object.create(Error.prototype),tt.prototype.constructor=tt,tt.prototype.toString=function(e){return this.name+": "+te(this,e)};var to=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],o=[],i=-1;a=r.exec(e.buffer);)o.push(a.index),n.push(a.index+a[0].length),e.position<=a.index&&i<0&&(i=n.length-2);i<0&&(i=n.length-1);var a,u,s,l="",c=Math.min(e.line+t.linesAfter,o.length).toString().length,p=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(i-u<0);u++)s=tr(e.buffer,n[i-u],o[i-u],e.position-(n[i]-n[i-u]),p),l=e4(" ",t.indent)+tn((e.line-u+1).toString(),c)+" | "+s.str+"\n"+l;for(s=tr(e.buffer,n[i],o[i],e.position,p),l+=e4(" ",t.indent)+tn((e.line+1).toString(),c)+" | "+s.str+"\n"+e4("-",t.indent+c+3+s.pos)+"^\n",u=1;u<=t.linesAfter&&!(i+u>=o.length);u++)s=tr(e.buffer,n[i+u],o[i+u],e.position-(n[i]-n[i+u]),p),l+=e4(" ",t.indent)+tn((e.line+u+1).toString(),c)+" | "+s.str+"\n";return l.replace(/\n$/,"")},ti=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ta=["scalar","sequence","mapping"],tu=function(e,t){var r,n;if(Object.keys(t=t||{}).forEach(function(t){if(-1===ti.indexOf(t))throw new tt('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,n={},null!==r&&Object.keys(r).forEach(function(e){r[e].forEach(function(t){n[String(t)]=e})}),n),-1===ta.indexOf(this.kind))throw new tt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function ts(e,t){var r=[];return e[t].forEach(function(e){var t=r.length;r.forEach(function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)}),r[t]=e}),r}function tl(e){return this.extend(e)}tl.prototype.extend=function(e){var t=[],r=[];if(e instanceof tu)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new tt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof tu))throw new tt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new tt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new tt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(e){if(!(e instanceof tu))throw new tt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(tl.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=ts(n,"implicit"),n.compiledExplicit=ts(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var tc=new tl({explicit:[new tu("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new tu("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new tu("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]}),tp=new tu("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),td=new tu("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),tf=new tu("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n,o,i=e.length,a=0,u=!1;if(!i)return!1;if(("-"===(o=e[a])||"+"===o)&&(o=e[++a]),"0"===o){if(a+1===i)return!0;if("b"===(o=e[++a])){for(a++;a<i;a++)if("_"!==(o=e[a])){if("0"!==o&&"1"!==o)return!1;u=!0}return u&&"_"!==o}if("x"===o){for(a++;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(t=e.charCodeAt(a))&&t<=57||65<=t&&t<=70||97<=t&&t<=102))return!1;u=!0}return u&&"_"!==o}if("o"===o){for(a++;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(r=e.charCodeAt(a))&&r<=55))return!1;u=!0}return u&&"_"!==o}}if("_"===o)return!1;for(;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(n=e.charCodeAt(a))&&n<=57))return!1;u=!0}return!!u&&"_"!==o},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(t=r[0])||"+"===t)&&("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!e7(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),th=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),tm=/^[-+]?[0-9]+e/,tD=new tu("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!th.test(e)&&"_"!==e[e.length-1]},construct:function(e){var t,r;return(r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===r?1/0:-1/0:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||e7(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e7(e))return"-0.0";return r=e.toString(10),tm.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),tg=tc.extend({implicit:[tp,td,tf,tD]}),ty=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),t_=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),tv=new tu("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==ty.exec(e)||null!==t_.exec(e))},construct:function(e){var t,r,n,o,i,a,u,s,l=0,c=null;if(null===(t=ty.exec(e))&&(t=t_.exec(e)),null===t)throw Error("Date resolve error");if(r=+t[1],n=t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+t[4],a=+t[5],u=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l*=1}return t[9]&&(c=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(c=-c)),s=new Date(Date.UTC(r,n,o,i,a,u,l)),c&&s.setTime(s.getTime()-c),s},instanceOf:Date,represent:function(e){return e.toISOString()}}),tb=new tu("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),tx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",tE=new tu("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,o=e.length;for(r=0;r<o;r++)if(!((t=tx.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=0,a=[];for(t=0;t<o;t++)t%4==0&&t&&(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|tx.indexOf(n.charAt(t));return 0==(r=o%4*6)?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18===r?(a.push(i>>10&255),a.push(i>>2&255)):12===r&&a.push(i>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",o=0,i=e.length;for(t=0;t<i;t++)t%3==0&&t&&(n+=tx[o>>18&63],n+=tx[o>>12&63],n+=tx[o>>6&63],n+=tx[63&o]),o=(o<<8)+e[t];return 0==(r=i%3)?(n+=tx[o>>18&63],n+=tx[o>>12&63],n+=tx[o>>6&63],n+=tx[63&o]):2===r?(n+=tx[o>>10&63],n+=tx[o>>4&63],n+=tx[o<<2&63],n+=tx[64]):1===r&&(n+=tx[o>>2&63],n+=tx[o<<4&63],n+=tx[64],n+=tx[64]),n}}),tw=Object.prototype.hasOwnProperty,tC=Object.prototype.toString,tA=new tu("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,o,i,a=[];for(t=0,r=e.length;t<r;t+=1){if(n=e[t],i=!1,"[object Object]"!==tC.call(n))return!1;for(o in n)if(tw.call(n,o))if(i)return!1;else i=!0;if(!i||-1!==a.indexOf(o))return!1;a.push(o)}return!0},construct:function(e){return null!==e?e:[]}}),tN=Object.prototype.toString,tT=new tu("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){var t,r,n,o,i;if(null===e)return!0;for(t=0,i=Array(e.length),r=e.length;t<r;t+=1){if(n=e[t],"[object Object]"!==tN.call(n)||1!==(o=Object.keys(n)).length)return!1;i[t]=[o[0],n[o[0]]]}return!0},construct:function(e){var t,r,n,o,i;if(null===e)return[];for(t=0,i=Array(e.length),r=e.length;t<r;t+=1)o=Object.keys(n=e[t]),i[t]=[o[0],n[o[0]]];return i}}),tS=Object.prototype.hasOwnProperty,tF=new tu("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){var t;if(null===e)return!0;for(t in e)if(tS.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),tO=tg.extend({implicit:[tv,tb],explicit:[tE,tA,tT,tF]}),tk=Object.prototype.hasOwnProperty,tP=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tL=/[\x85\u2028\u2029]/,tI=/[,\[\]\{\}]/,tB=/^(?:!|!!|![a-z\-]+!)$/i,tq=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tj(e){return Object.prototype.toString.call(e)}function tM(e){return 10===e||13===e}function tR(e){return 9===e||32===e}function tU(e){return 9===e||32===e||10===e||13===e}function tG(e){return 44===e||91===e||93===e||123===e||125===e}function tz(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}for(var tV=Array(256),tH=Array(256),tW=0;tW<256;tW++)tV[tW]=+!!tz(tW),tH[tW]=tz(tW);function t$(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tO,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function tY(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=to(r),new tt(t,r)}function tX(e,t){throw tY(e,t)}function tJ(e,t){e.onWarning&&e.onWarning.call(null,tY(e,t))}var tK={YAML:function(e,t,r){var n,o,i;null!==e.version&&tX(e,"duplication of %YAML directive"),1!==r.length&&tX(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&tX(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&tX(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&tJ(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;2!==r.length&&tX(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],tB.test(n)||tX(e,"ill-formed tag handle (first argument) of the TAG directive"),tk.call(e.tagMap,n)&&tX(e,'there is a previously declared suffix for "'+n+'" tag handle'),tq.test(o)||tX(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){tX(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function tQ(e,t,r,n){var o,i,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(o=0,i=u.length;o<i;o+=1)9===(a=u.charCodeAt(o))||32<=a&&a<=1114111||tX(e,"expected valid JSON character");else tP.test(u)&&tX(e,"the stream contains non-printable characters");e.result+=u}}function tZ(e,t,r,n){var o,i,a,u,s;for("object"==typeof(s=r)&&null!==s||tX(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,u=(o=Object.keys(r)).length;a<u;a+=1)i=o[a],tk.call(t,i)||(t[i]=r[i],n[i]=!0)}function t0(e,t,r,n,o,i,a,u,s){var l,c;if(Array.isArray(o))for(l=0,c=(o=Array.prototype.slice.call(o)).length;l<c;l+=1)Array.isArray(o[l])&&tX(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===tj(o[l])&&(o[l]="[object Object]");if("object"==typeof o&&"[object Object]"===tj(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(l=0,c=i.length;l<c;l+=1)tZ(e,t,i[l],r);else tZ(e,t,i,r);else!e.json&&!tk.call(r,o)&&tk.call(t,o)&&(e.line=a||e.line,e.lineStart=u||e.lineStart,e.position=s||e.position,tX(e,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[o]=i,delete r[o];return t}function t1(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):tX(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function t2(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);0!==o;){for(;tR(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o)if(tM(o))for(t1(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return -1!==r&&0!==n&&e.lineIndent<r&&tJ(e,"deficient indentation"),n}function t3(e){var t,r=e.position;return!!((45===(t=e.input.charCodeAt(r))||46===t)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,0===(t=e.input.charCodeAt(r))||tU(t)))||!1}function t8(e,t){1===t?e.result+=" ":t>1&&(e.result+=e4("\n",t-1))}function t5(e,t){var r,n,o=e.tag,i=e.anchor,a=[],u=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,tX(e,"tab characters must not be used in indentation")),45===n&&tU(e.input.charCodeAt(e.position+1)));){if(u=!0,e.position++,t2(e,!0,-1)&&e.lineIndent<=t){a.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,t6(e,t,3,!1,!0),a.push(e.result),t2(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)tX(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!u&&(e.tag=o,e.anchor=i,e.kind="sequence",e.result=a,!0)}function t6(e,t,r,n,o){var i,a,u,s,l,c,p,d,f,h=1,m=!1,D=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=a=u=4===r||3===r,n&&t2(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;function(e){var t,r,n,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&tX(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,r="!!",o=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do o=e.input.charCodeAt(++e.position);while(0!==o&&62!==o)e.position<e.length?(n=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):tX(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!tU(o);)33===o&&(a?tX(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),tB.test(r)||tX(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),tI.test(n)&&tX(e,"tag suffix cannot contain flow indicator characters")}n&&!tq.test(n)&&tX(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){tX(e,"tag name is malformed: "+n)}return i?e.tag=n:tk.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:tX(e,'undeclared tag handle "'+r+'"'),!0}(e)||function(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&tX(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!tU(r)&&!tG(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&tX(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)t2(e,!0,-1)?(m=!0,u=i,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):u=!1;if(u&&(u=m||o),(1===h||4===r)&&(d=1===r||2===r?t:t+1,f=e.position-e.lineStart,1===h?u&&(t5(e,f)||function(e,t,r){var n,o,i,a,u,s,l,c=e.tag,p=e.anchor,d={},f=Object.create(null),h=null,m=null,D=null,g=!1,y=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,tX(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,(63===l||58===l)&&tU(n))63===l?(g&&(t0(e,d,f,h,m,null,a,u,s),h=m=D=null),y=!0,g=!0,o=!0):g?(g=!1,o=!0):tX(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=n;else{if(a=e.line,u=e.lineStart,s=e.position,!t6(e,r,2,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);tR(l);)l=e.input.charCodeAt(++e.position);if(58===l)tU(l=e.input.charCodeAt(++e.position))||tX(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(t0(e,d,f,h,m,null,a,u,s),h=m=D=null),y=!0,g=!1,o=!1,h=e.tag,m=e.result;else{if(!y)return e.tag=c,e.anchor=p,!0;tX(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=c,e.anchor=p,!0;tX(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===i||e.lineIndent>t)&&(g&&(a=e.line,u=e.lineStart,s=e.position),t6(e,t,4,!0,o)&&(g?m=e.result:D=e.result),g||(t0(e,d,f,h,m,D,a,u,s),h=m=D=null),t2(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)tX(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&t0(e,d,f,h,m,null,a,u,s),y&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=d),y}(e,f,d))||function(e,t){var r,n,o,i,a,u,s,l,c,p,d,f,h=!0,m=e.tag,D=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))a=93,l=!1,i=[];else{if(123!==f)return!1;a=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(t2(e,!0,t),(f=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=m,e.anchor=D,e.kind=l?"mapping":"sequence",e.result=i,!0;h?44===f&&tX(e,"expected the node content, but found ','"):tX(e,"missed comma between flow collection entries"),p=c=d=null,u=s=!1,63===f&&tU(e.input.charCodeAt(e.position+1))&&(u=s=!0,e.position++,t2(e,!0,t)),r=e.line,n=e.lineStart,o=e.position,t6(e,t,1,!1,!0),p=e.tag,c=e.result,t2(e,!0,t),f=e.input.charCodeAt(e.position),(s||e.line===r)&&58===f&&(u=!0,f=e.input.charCodeAt(++e.position),t2(e,!0,t),t6(e,t,1,!1,!0),d=e.result),l?t0(e,i,g,p,c,d,r,n,o):u?i.push(t0(e,null,g,p,c,d,r,n,o)):i.push(c),t2(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}tX(e,"unexpected end of the stream within a flow collection")}(e,d)?D=!0:(a&&function(e,t){var r,n,o,i,a,u=1,s=!1,l=!1,c=t,p=0,d=!1;if(124===(a=e.input.charCodeAt(e.position)))o=!1;else{if(62!==a)return!1;o=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===u?u=43===a?3:2:tX(e,"repeat of a chomping mode identifier");else if((i=48<=(r=a)&&r<=57?r-48:-1)>=0)0===i?tX(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?tX(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0);else break;if(tR(a)){do a=e.input.charCodeAt(++e.position);while(tR(a))if(35===a)do a=e.input.charCodeAt(++e.position);while(!tM(a)&&0!==a)}for(;0!==a;){for(t1(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!l||e.lineIndent<c)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>c&&(c=e.lineIndent),tM(a)){p++;continue}if(e.lineIndent<c){3===u?e.result+=e4("\n",s?1+p:p):1===u&&s&&(e.result+="\n");break}for(o?tR(a)?(d=!0,e.result+=e4("\n",s?1+p:p)):d?(d=!1,e.result+=e4("\n",p+1)):0===p?s&&(e.result+=" "):e.result+=e4("\n",p):e.result+=e4("\n",s?1+p:p),s=!0,l=!0,p=0,n=e.position;!tM(a)&&0!==a;)a=e.input.charCodeAt(++e.position);tQ(e,n,e.position,!1)}return!0}(e,d)||function(e,t){var r,n,o;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(tQ(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,o=e.position}else tM(r)?(tQ(e,n,o,!0),t8(e,t2(e,!1,t)),n=o=e.position):e.position===e.lineStart&&t3(e)?tX(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);tX(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var r,n,o,i,a,u,s,l;if(34!==(u=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(u=e.input.charCodeAt(e.position));)if(34===u)return tQ(e,r,e.position,!0),e.position++,!0;else if(92===u){if(tQ(e,r,e.position,!0),tM(u=e.input.charCodeAt(++e.position)))t2(e,!1,t);else if(u<256&&tV[u])e.result+=tH[u],e.position++;else if((a=120===(s=u)?2:117===s?4:8*(85===s))>0){for(o=a,i=0;o>0;o--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(u=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:tX(e,"expected hexadecimal character");e.result+=(l=i)<=65535?String.fromCharCode(l):String.fromCharCode((l-65536>>10)+55296,(l-65536&1023)+56320),e.position++}else tX(e,"unknown escape sequence");r=n=e.position}else tM(u)?(tQ(e,r,n,!0),t8(e,t2(e,!1,t)),r=n=e.position):e.position===e.lineStart&&t3(e)?tX(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);tX(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?D=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!tU(n)&&!tG(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&tX(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),tk.call(e.anchorMap,r)||tX(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],t2(e,!0,-1),!0}(e)?function(e,t,r){var n,o,i,a,u,s,l,c,p=e.kind,d=e.result;if(tU(c=e.input.charCodeAt(e.position))||tG(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(tU(n=e.input.charCodeAt(e.position+1))||r&&tG(n)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(tU(n=e.input.charCodeAt(e.position+1))||r&&tG(n))break}else if(35===c){if(tU(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&t3(e)||r&&tG(c))break;else if(tM(c)){if(u=e.line,s=e.lineStart,l=e.lineIndent,t2(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=i,e.line=u,e.lineStart=s,e.lineIndent=l;break}a&&(tQ(e,o,i,!1),t8(e,e.line-u),o=i=e.position,a=!1),tR(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return tQ(e,o,i,!1),!!e.result||(e.kind=p,e.result=d,!1)}(e,d,1===r)&&(D=!0,null===e.tag&&(e.tag="?")):(D=!0,(null!==e.tag||null!==e.anchor)&&tX(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(D=u&&t5(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&tX(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,l=e.implicitTypes.length;s<l;s+=1)if((p=e.implicitTypes[s]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(tk.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(s=0,p=null,l=(c=e.typeMap.multi[e.kind||"fallback"]).length;s<l;s+=1)if(e.tag.slice(0,c[s].tag.length)===c[s].tag){p=c[s];break}p||tX(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&tX(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):tX(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||D}function t9(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new t$(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,tX(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)!function(e){var t,r,n,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(t2(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===o);){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!tU(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&tX(e,"directive name must not be less than one character in length");0!==o;){for(;tR(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!tM(o))break}if(tM(o))break;for(t=e.position;0!==o&&!tU(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&t1(e),tk.call(tK,r)?tK[r](e,r,n):tJ(e,'unknown document directive "'+r+'"')}if(t2(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,t2(e,!0,-1)):a&&tX(e,"directives end mark is expected"),t6(e,e.lineIndent-1,4,!1,!0),t2(e,!0,-1),e.checkLineBreaks&&tL.test(e.input.slice(i,e.position))&&tJ(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&t3(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,t2(e,!0,-1));return}e.position<e.length-1&&tX(e,"end of the stream or a document separator is expected")}(r);return r.documents}var t4=Object.prototype.toString,t7=Object.prototype.hasOwnProperty,re={};re[0]="\\0",re[7]="\\a",re[8]="\\b",re[9]="\\t",re[10]="\\n",re[11]="\\v",re[12]="\\f",re[13]="\\r",re[27]="\\e",re[34]='\\"',re[92]="\\\\",re[133]="\\N",re[160]="\\_",re[8232]="\\L",re[8233]="\\P";function rt(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}rt("safeLoad","load"),rt("safeLoadAll","loadAll"),rt("safeDump","dump");var rr=function(e,t){var r=t9(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new tt("expected a single document in the stream, but found more")}},rn={},ro=rn&&rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rn,"__esModule",{value:!0}),rn.NodeType=rn.TextNode=rn.Node=rn.valid=rn.CommentNode=rn.HTMLElement=rn.parse=void 0;let ri=ro(et("9KN8L"));rn.CommentNode=ri.default;let ra=ro(et("2ZZFK"));rn.HTMLElement=ra.default;let ru=ro(et("9rIF8"));rn.Node=ru.default;let rs=ro(et("h19Jg"));rn.TextNode=rs.default;let rl=ro(et("gxROJ"));rn.NodeType=rl.default;let rc=ro(et("oyh6k")),rp=ro(et("biHCd"));function rd(e,t={}){return(0,rc.default)(e,t)}rn.valid=rp.default,rn.default=rd,rn.parse=rd,rd.parse=rc.default,rd.HTMLElement=ra.default,rd.CommentNode=ri.default,rd.valid=rp.default,rd.Node=ru.default,rd.TextNode=rs.default,rd.NodeType=rl.default;var rf={};Object.defineProperty(rf,"__esModule",{value:!0});var rh={};Object.defineProperty(rh,"__esModule",{value:!0});var rm={},rD=rm&&rm.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},rg=rm&&rm.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rm,"__esModule",{value:!0});var ry={};Object.defineProperty(ry,"__esModule",{value:!0}),ry.DefaultBuilderOptions={version:"1.0",encoding:void 0,standalone:void 0,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,skipWhitespaceOnlyText:!0,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"},invalidCharReplacement:void 0,parser:void 0},ry.XMLBuilderOptionKeys=new Set(Object.keys(ry.DefaultBuilderOptions)),ry.DefaultXMLBuilderCBOptions={format:"xml",wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,spaceBeforeSlash:!1,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"}};var r_=et("jDPAV"),rv={};Object.defineProperty(rv,"__esModule",{value:!0});var rb={},rx=rb&&rb.__extends||(f=function(e,t){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(rb,"__esModule",{value:!0});var r_=et("jDPAV"),rE={},rw=rE&&rE.__extends||(h=function(e,t){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),rC=rE&&rE.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rE,"__esModule",{value:!0});var r_=et("jDPAV"),rA=et("bql4T"),rN={},rT=rN&&rN.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},rS=rN&&rN.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},rF=rN&&rN.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(rS(arguments[t]));return e};Object.defineProperty(rN,"__esModule",{value:!0});var rA=et("bql4T"),rO={};Object.defineProperty(rO,"__esModule",{value:!0}),rO.LocalNameSet=function(){function e(){this._items={},this._nullItems={}}return e.prototype.set=function(e,t){null===e?this._nullItems[t]=!0:(this._items[e]||(this._items[e]={}),this._items[e][t]=!0)},e.prototype.has=function(e,t){return null===e?!0===this._nullItems[t]:!!this._items[e]&&!0===this._items[e][t]},e}();var rk={};Object.defineProperty(rk,"__esModule",{value:!0}),rk.NamespacePrefixMap=function(){function e(){this._items={},this._nullItems=[]}return e.prototype.copy=function(){var t=new e;for(var r in this._items)t._items[r]=this._items[r].slice(0);return t._nullItems=this._nullItems.slice(0),t},e.prototype.get=function(e,t){var r=null===t?this._nullItems:this._items[t]||null;if(null===r)return null;for(var n=null,o=0;o<r.length&&(n=r[o])!==e;o++);return n},e.prototype.has=function(e,t){var r=null===t?this._nullItems:this._items[t]||null;return null!==r&&-1!==r.indexOf(e)},e.prototype.hasPrefix=function(e){if(-1!==this._nullItems.indexOf(e))return!0;for(var t in this._items)if(-1!==this._items[t].indexOf(e))return!0;return!1},e.prototype.set=function(e,t){var r=null===t?this._nullItems:this._items[t]||null;null!==t&&null===r?this._items[t]=[e]:r.push(e)},e}();var rP=et("b9DcM"),rL=et("eOMTm"),rI={};Object.defineProperty(rI,"__esModule",{value:!0}),rI.nonEntityAmpersandRegex=/&(?![A-Za-z]+;|#\d+;)/g,rN.BaseWriter=function(){function e(e){this.level=0,this._builderOptions=e}return e.prototype.declaration=function(e,t,r){},e.prototype.docType=function(e,t,r){},e.prototype.comment=function(e){},e.prototype.text=function(e){},e.prototype.instruction=function(e,t){},e.prototype.cdata=function(e){},e.prototype.openTagBegin=function(e){},e.prototype.openTagEnd=function(e,t,r){},e.prototype.closeTag=function(e){},e.prototype.attributes=function(e){var t,r;try{for(var n=rT(e),o=n.next();!o.done;o=n.next()){var i=o.value;this.attribute(null===i[1]?i[2]:i[1]+":"+i[2],i[3])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.attribute=function(e,t){},e.prototype.beginElement=function(e){},e.prototype.endElement=function(e){},e.prototype.serializeNode=function(e,t){var r=void 0!==e._nodeDocument&&e._nodeDocument._hasNamespaces;if(this.level=0,this.currentNode=e,r){var n=new rk.NamespacePrefixMap;n.set("xml",rP.namespace.XML),this._serializeNodeNS(e,null,n,{value:1},t)}else this._serializeNode(e,t)},e.prototype._serializeNodeNS=function(e,t,r,n,o){switch(this.currentNode=e,e.nodeType){case rA.NodeType.Element:this._serializeElementNS(e,t,r,n,o);break;case rA.NodeType.Document:this._serializeDocumentNS(e,t,r,n,o);break;case rA.NodeType.Comment:this._serializeComment(e,o);break;case rA.NodeType.Text:this._serializeText(e,o);break;case rA.NodeType.DocumentFragment:this._serializeDocumentFragmentNS(e,t,r,n,o);break;case rA.NodeType.DocumentType:this._serializeDocumentType(e,o);break;case rA.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,o);break;case rA.NodeType.CData:this._serializeCData(e,o);break;default:throw Error("Unknown node type: "+e.nodeType)}},e.prototype._serializeNode=function(e,t){switch(this.currentNode=e,e.nodeType){case rA.NodeType.Element:this._serializeElement(e,t);break;case rA.NodeType.Document:this._serializeDocument(e,t);break;case rA.NodeType.Comment:this._serializeComment(e,t);break;case rA.NodeType.Text:this._serializeText(e,t);break;case rA.NodeType.DocumentFragment:this._serializeDocumentFragment(e,t);break;case rA.NodeType.DocumentType:this._serializeDocumentType(e,t);break;case rA.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,t);break;case rA.NodeType.CData:this._serializeCData(e,t);break;default:throw Error("Unknown node type: "+e.nodeType)}},e.prototype._serializeElementNS=function(t,r,n,o,i){var a,u,s=[];if(i&&(-1!==t.localName.indexOf(":")||!rL.xml_isName(t.localName)))throw Error("Node local name contains invalid characters (well-formed required).");var l="",c=!1,p=!1,d=n.copy(),f={},h=this._recordNamespaceInformation(t,d,f),m=r,D=t.namespaceURI;if(m===D)null!==h&&(p=!0),l=D===rP.namespace.XML?"xml:"+t.localName:t.localName,this.beginElement(l),this.openTagBegin(l);else{var g=t.prefix,y=null;if((null!==g||D!==h)&&(y=d.get(g,D)),"xmlns"===g){if(i)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");y=g}null!==y?(l=y+":"+t.localName,null!==h&&h!==rP.namespace.XML&&(m=h||null),this.beginElement(l),this.openTagBegin(l)):null!==g?(g in f&&(g=this._generatePrefix(D,d,o)),d.set(g,D),l+=g+":"+t.localName,this.beginElement(l),this.openTagBegin(l),s.push([null,"xmlns",g,this._serializeAttributeValue(D,i)]),null!==h&&(m=h||null)):null===h||null!==h&&h!==D?(p=!0,l+=t.localName,m=D,this.beginElement(l),this.openTagBegin(l),s.push([null,null,"xmlns",this._serializeAttributeValue(D,i)])):(l+=t.localName,m=D,this.beginElement(l),this.openTagBegin(l))}s.push.apply(s,rF(this._serializeAttributesNS(t,d,o,f,p,i))),this.attributes(s);var _=D===rP.namespace.HTML;if(_&&0===t.childNodes.length&&e._VoidElementNames.has(t.localName)?(this.openTagEnd(l,!0,!0),this.endElement(l),c=!0):_||0!==t.childNodes.length?this.openTagEnd(l,!1,!1):(this.openTagEnd(l,!0,!1),this.endElement(l),c=!0),!c){if(_&&"template"===t.localName);else try{for(var v=rT(t.childNodes),b=v.next();!b.done;b=v.next()){var x=b.value;this.level++,this._serializeNodeNS(x,m,d,o,i),this.level--}}catch(e){a={error:e}}finally{try{b&&!b.done&&(u=v.return)&&u.call(v)}finally{if(a)throw a.error}}this.closeTag(l),this.endElement(l)}},e.prototype._serializeElement=function(e,t){if(t&&(-1!==e.localName.indexOf(":")||!rL.xml_isName(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");var r,n,o=!1,i=e.localName;this.beginElement(i),this.openTagBegin(i);var a=this._serializeAttributes(e,t);if(this.attributes(a),e.hasChildNodes()?this.openTagEnd(i,!1,!1):(this.openTagEnd(i,!0,!1),this.endElement(i),o=!0),!o){try{for(var u=rT(e._children),s=u.next();!s.done;s=u.next()){var l=s.value;this.level++,this._serializeNode(l,t),this.level--}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}this.closeTag(i),this.endElement(i)}},e.prototype._serializeDocumentNS=function(e,t,r,n,o){var i,a;if(o&&null===e.documentElement)throw Error("Missing document element (well-formed required).");try{for(var u=rT(e.childNodes),s=u.next();!s.done;s=u.next()){var l=s.value;this._serializeNodeNS(l,t,r,n,o)}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},e.prototype._serializeDocument=function(e,t){var r,n;if(t&&null===e.documentElement)throw Error("Missing document element (well-formed required).");try{for(var o=rT(e._children),i=o.next();!i.done;i=o.next()){var a=i.value;this._serializeNode(a,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype._serializeComment=function(e,t){if(t&&(!rL.xml_isLegalChar(e.data)||-1!==e.data.indexOf("--")||e.data.endsWith("-")))throw Error("Comment data contains invalid characters (well-formed required).");this.comment(e.data)},e.prototype._serializeText=function(e,t){if(t&&!rL.xml_isLegalChar(e.data))throw Error("Text data contains invalid characters (well-formed required).");var r=e.data.replace(rI.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");this.text(r)},e.prototype._serializeDocumentFragmentNS=function(e,t,r,n,o){var i,a;try{for(var u=rT(e.childNodes),s=u.next();!s.done;s=u.next()){var l=s.value;this._serializeNodeNS(l,t,r,n,o)}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},e.prototype._serializeDocumentFragment=function(e,t){var r,n;try{for(var o=rT(e._children),i=o.next();!i.done;i=o.next()){var a=i.value;this._serializeNode(a,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype._serializeDocumentType=function(e,t){if(t&&!rL.xml_isPubidChar(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!rL.xml_isLegalChar(e.systemId)||-1!==e.systemId.indexOf('"')&&-1!==e.systemId.indexOf("'")))throw Error("DocType system identifier contains invalid characters (well-formed required).");this.docType(e.name,e.publicId,e.systemId)},e.prototype._serializeProcessingInstruction=function(e,t){if(t&&(-1!==e.target.indexOf(":")||/^xml$/i.test(e.target)))throw Error("Processing instruction target contains invalid characters (well-formed required).");if(t&&(!rL.xml_isLegalChar(e.data)||-1!==e.data.indexOf("?>")))throw Error("Processing instruction data contains invalid characters (well-formed required).");this.instruction(e.target,e.data)},e.prototype._serializeCData=function(e,t){if(t&&-1!==e.data.indexOf("]]>"))throw Error("CDATA contains invalid characters (well-formed required).");this.cdata(e.data)},e.prototype._serializeAttributesNS=function(e,t,r,n,o,i){var a,u,s=[],l=i?new rO.LocalNameSet:void 0;try{for(var c=rT(e.attributes),p=c.next();!p.done;p=c.next()){var d=p.value;if(!i&&!o&&null===d.namespaceURI){s.push([null,null,d.localName,this._serializeAttributeValue(d.value,i)]);continue}if(i&&l&&l.has(d.namespaceURI,d.localName))throw Error("Element contains duplicate attributes (well-formed required).");i&&l&&l.set(d.namespaceURI,d.localName);var f=d.namespaceURI,h=null;if(null!==f)if(h=t.get(d.prefix,f),f===rP.namespace.XMLNS){if(d.value===rP.namespace.XML||null===d.prefix&&o||null!==d.prefix&&(!(d.localName in n)||n[d.localName]!==d.value)&&t.has(d.localName,d.value))continue;if(i&&d.value===rP.namespace.XMLNS)throw Error("XMLNS namespace is reserved (well-formed required).");if(i&&""===d.value)throw Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");"xmlns"===d.prefix&&(h="xmlns")}else null===h&&(h=null!==d.prefix&&(!t.hasPrefix(d.prefix)||t.has(d.prefix,f))?d.prefix:this._generatePrefix(f,t,r),s.push([null,"xmlns",h,this._serializeAttributeValue(f,i)]));if(i&&(-1!==d.localName.indexOf(":")||!rL.xml_isName(d.localName)||"xmlns"===d.localName&&null===f))throw Error("Attribute local name contains invalid characters (well-formed required).");s.push([f,h,d.localName,this._serializeAttributeValue(d.value,i)])}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}return s},e.prototype._serializeAttributes=function(e,t){var r,n,o=[],i=t?{}:void 0;try{for(var a=rT(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value;if(!t){o.push([null,null,s.localName,this._serializeAttributeValue(s.value,t)]);continue}if(t&&i&&s.localName in i)throw Error("Element contains duplicate attributes (well-formed required).");if(t&&i&&(i[s.localName]=!0),t&&(-1!==s.localName.indexOf(":")||!rL.xml_isName(s.localName)))throw Error("Attribute local name contains invalid characters (well-formed required).");o.push([null,null,s.localName,this._serializeAttributeValue(s.value,t)])}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},e.prototype._recordNamespaceInformation=function(e,t,r){var n,o,i=null;try{for(var a=rT(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rP.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rP.namespace.XML||(""===d&&(d=null),t.has(p,d)))continue;t.set(p,d),r[p]=d||""}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},e.prototype._generatePrefix=function(e,t,r){var n="ns"+r.value.toString();return r.value++,t.set(n,e),n},e.prototype._serializeAttributeValue=function(e,t){if(t&&null!==e&&!rL.xml_isLegalChar(e))throw Error("Invalid characters in attribute value.");return null===e?"":e.replace(rI.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},e._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),e}(),rE.ObjectWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=r_.applyDefaults(r,{format:"object",wellFormed:!1,group:!1,verbose:!1}),n}return rw(t,e),t.prototype.serialize=function(e){return this._currentList=[],this._currentIndex=0,this._listRegister=[this._currentList],this.serializeNode(e,this._writerOptions.wellFormed),this._process(this._currentList,this._writerOptions)},t.prototype._process=function(e,t){if(0===e.length)return{};for(var r,n,o,i,a,u,s,l={},c=!1,p=0,d=0,f=0,h=0,m=0;m<e.length;m++){var D=e[m],g=Object.keys(D)[0];switch(g){case"@":continue;case"#":p++;break;case"!":d++;break;case"?":f++;break;case"$":h++;break;default:l[g]?c=!0:l[g]=!0}}var y=this._getAttrKey(),_=this._getNodeKey(rA.NodeType.Text),v=this._getNodeKey(rA.NodeType.Comment),b=this._getNodeKey(rA.NodeType.ProcessingInstruction),x=this._getNodeKey(rA.NodeType.CData);if(1===p&&1===e.length&&r_.isString(e[0]["#"]))return e[0]["#"];if(c){for(var E={},m=0;m<e.length;m++){var D=e[m],g=Object.keys(D)[0];if("@"===g){var w=D["@"],C=Object.keys(w);1===C.length?E[y+C[0]]=w[C[0]]:E[y]=D["@"]}}for(var A=[],m=0;m<e.length;m++){var D=e[m],g=Object.keys(D)[0];switch(g){case"@":break;case"#":A.push(((r={})[_]=D["#"],r));break;case"!":A.push(((n={})[v]=D["!"],n));break;case"?":A.push(((o={})[b]=D["?"],o));break;case"$":A.push(((i={})[x]=D.$,i));break;default:var N=D;if(0!==N[g].length&&r_.isArray(N[g][0])){for(var T=[],S=N[g],F=0;F<S.length;F++)T.push(this._process(S[F],t));A.push(((a={})[g]=T,a))}else t.verbose?A.push(((u={})[g]=[this._process(N[g],t)],u)):A.push(((s={})[g]=this._process(N[g],t),s))}}return E[_]=A,E}for(var O=1,k=1,P=1,L=1,E={},m=0;m<e.length;m++){var D=e[m],g=Object.keys(D)[0];switch(g){case"@":var w=D["@"],C=Object.keys(w);if(t.group&&1!==C.length)E[y]=w;else for(var I in w)E[y+I]=w[I];break;case"#":O=this._processSpecItem(D["#"],E,t.group,_,p,O);break;case"!":k=this._processSpecItem(D["!"],E,t.group,v,d,k);break;case"?":P=this._processSpecItem(D["?"],E,t.group,b,f,P);break;case"$":L=this._processSpecItem(D.$,E,t.group,x,h,L);break;default:var N=D;if(0!==N[g].length&&r_.isArray(N[g][0])){for(var T=[],S=N[g],B=0;B<S.length;B++)T.push(this._process(S[B],t));E[g]=T}else t.verbose?E[g]=[this._process(N[g],t)]:E[g]=this._process(N[g],t)}}return E},t.prototype._processSpecItem=function(e,t,r,n,o,i){var a,u;if(!r&&r_.isArray(e)&&o+e.length>2)try{for(var s=rC(e),l=s.next();!l.done;l=s.next()){var c=l.value,p=n+(i++).toString();t[p]=c}}catch(e){a={error:e}}finally{try{l&&!l.done&&(u=s.return)&&u.call(s)}finally{if(a)throw a.error}}else{var p=o>1?n+(i++).toString():n;t[p]=e}return i},t.prototype.beginElement=function(e){var t,r,n=[];if(0===this._currentList.length)this._currentList.push(((t={})[e]=n,t));else{var o=this._currentList[this._currentList.length-1];this._isElementNode(o,e)?0!==o[e].length&&r_.isArray(o[e][0])?o[e].push(n):o[e]=[o[e],n]:this._currentList.push(((r={})[e]=n,r))}this._currentIndex++,this._listRegister.length>this._currentIndex?this._listRegister[this._currentIndex]=n:this._listRegister.push(n),this._currentList=n},t.prototype.endElement=function(){this._currentList=this._listRegister[--this._currentIndex]},t.prototype.attribute=function(e,t){var r,n;if(0===this._currentList.length)this._currentList.push({"@":((r={})[e]=t,r)});else{var o=this._currentList[this._currentList.length-1];this._isAttrNode(o)?o["@"][e]=t:this._currentList.push({"@":((n={})[e]=t,n)})}},t.prototype.comment=function(e){if(0===this._currentList.length)this._currentList.push({"!":e});else{var t=this._currentList[this._currentList.length-1];this._isCommentNode(t)?r_.isArray(t["!"])?t["!"].push(e):t["!"]=[t["!"],e]:this._currentList.push({"!":e})}},t.prototype.text=function(e){if(0===this._currentList.length)this._currentList.push({"#":e});else{var t=this._currentList[this._currentList.length-1];this._isTextNode(t)?r_.isArray(t["#"])?t["#"].push(e):t["#"]=[t["#"],e]:this._currentList.push({"#":e})}},t.prototype.instruction=function(e,t){var r=""===t?e:e+" "+t;if(0===this._currentList.length)this._currentList.push({"?":r});else{var n=this._currentList[this._currentList.length-1];this._isInstructionNode(n)?r_.isArray(n["?"])?n["?"].push(r):n["?"]=[n["?"],r]:this._currentList.push({"?":r})}},t.prototype.cdata=function(e){if(0===this._currentList.length)this._currentList.push({$:e});else{var t=this._currentList[this._currentList.length-1];this._isCDATANode(t)?r_.isArray(t.$)?t.$.push(e):t.$=[t.$,e]:this._currentList.push({$:e})}},t.prototype._isAttrNode=function(e){return"@"in e},t.prototype._isTextNode=function(e){return"#"in e},t.prototype._isCommentNode=function(e){return"!"in e},t.prototype._isInstructionNode=function(e){return"?"in e},t.prototype._isCDATANode=function(e){return"$"in e},t.prototype._isElementNode=function(e,t){return t in e},t.prototype._getAttrKey=function(){return this._builderOptions.convert.att},t.prototype._getNodeKey=function(e){switch(e){case rA.NodeType.Comment:return this._builderOptions.convert.comment;case rA.NodeType.Text:return this._builderOptions.convert.text;case rA.NodeType.ProcessingInstruction:return this._builderOptions.convert.ins;case rA.NodeType.CData:return this._builderOptions.convert.cdata;default:throw Error("Invalid node type.")}},t}(rN.BaseWriter),rb.MapWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=r_.applyDefaults(r,{format:"map",wellFormed:!1,group:!1,verbose:!1}),n}return rx(t,e),t.prototype.serialize=function(e){var t=r_.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1,verbose:!1}),r=new rE.ObjectWriter(this._builderOptions,t).serialize(e);return this._convertObject(r)},t.prototype._convertObject=function(e){if(r_.isArray(e)){for(var t=0;t<e.length;t++)e[t]=this._convertObject(e[t]);return e}if(!r_.isObject(e))return e;var r=new Map;for(var n in e)r.set(n,this._convertObject(e[n]));return r},t}(rN.BaseWriter),rv.MapWriter=rb.MapWriter;var rB={},rq=rB&&rB.__extends||(m=function(e,t){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(rB,"__esModule",{value:!0});var r_=et("jDPAV"),rA=et("bql4T"),rj=et("cnpfV");rB.XMLWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._indentation={},n._lengthToLastNewline=0,n._writerOptions=r_.applyDefaults(r,{wellFormed:!1,headless:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,indentTextOnlyNodes:!1,spaceBeforeSlash:!1}),n}return rq(t,e),t.prototype.serialize=function(e){return this._refs={suppressPretty:!1,emptyNode:!1,markup:""},e.nodeType!==rA.NodeType.Document||this._writerOptions.headless||this.declaration(this._builderOptions.version,this._builderOptions.encoding,this._builderOptions.standalone),this.serializeNode(e,this._writerOptions.wellFormed),this._writerOptions.prettyPrint&&this._refs.markup.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(this._refs.markup=this._refs.markup.slice(0,-this._writerOptions.newline.length)),this._refs.markup},t.prototype.declaration=function(e,t,r){this._beginLine(),this._refs.markup+='<?xml version="'+e+'"',void 0!==t&&(this._refs.markup+=' encoding="'+t+'"'),void 0!==r&&(this._refs.markup+=' standalone="'+(r?"yes":"no")+'"'),this._refs.markup+="?>",this._endLine()},t.prototype.docType=function(e,t,r){this._beginLine(),t&&r?this._refs.markup+="<!DOCTYPE "+e+' PUBLIC "'+t+'" "'+r+'">':t?this._refs.markup+="<!DOCTYPE "+e+' PUBLIC "'+t+'">':r?this._refs.markup+="<!DOCTYPE "+e+' SYSTEM "'+r+'">':this._refs.markup+="<!DOCTYPE "+e+">",this._endLine()},t.prototype.openTagBegin=function(e){this._beginLine(),this._refs.markup+="<"+e},t.prototype.openTagEnd=function(e,t,r){if(this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._writerOptions.prettyPrint&&!t&&!r){for(var n=!0,o=!0,i=this.currentNode.firstChild,a=0,u=0;i;){if(rj.Guard.isExclusiveTextNode(i))u++;else if(rj.Guard.isCDATASectionNode(i))a++;else{n=!1,o=!1;break}""!==i.data&&(o=!1),i=i.nextSibling}this._refs.suppressPretty=!this._writerOptions.indentTextOnlyNodes&&n&&(a<=1&&0===u||0===a),this._refs.emptyNode=o}(r||t||this._refs.emptyNode)&&this._writerOptions.allowEmptyTags?this._refs.markup+="></"+e+">":this._refs.markup+=r?" />":t||this._refs.emptyNode?this._writerOptions.spaceBeforeSlash?" />":"/>":">",this._endLine()},t.prototype.closeTag=function(e){this._refs.emptyNode||(this._beginLine(),this._refs.markup+="</"+e+">"),this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._endLine()},t.prototype.attribute=function(e,t){var r=e+'="'+t+'"';this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._refs.markup.length-this._lengthToLastNewline+1+r.length>this._writerOptions.width?(this._endLine(),this._beginLine(),this._refs.markup+=this._indent(1)+r):this._refs.markup+=" "+r},t.prototype.text=function(e){""!==e&&(this._beginLine(),this._refs.markup+=e,this._endLine())},t.prototype.cdata=function(e){""!==e&&(this._beginLine(),this._refs.markup+="<![CDATA["+e+"]]>",this._endLine())},t.prototype.comment=function(e){this._beginLine(),this._refs.markup+="\x3c!--"+e+"--\x3e",this._endLine()},t.prototype.instruction=function(e,t){this._beginLine(),this._refs.markup+="<?"+(""===t?e:e+" "+t)+"?>",this._endLine()},t.prototype._beginLine=function(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._indent(this._writerOptions.offset+this.level))},t.prototype._endLine=function(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._writerOptions.newline,this._lengthToLastNewline=this._refs.markup.length)},t.prototype._indent=function(e){if(e<=0)return"";if(void 0!==this._indentation[e])return this._indentation[e];var t=this._writerOptions.indent.repeat(e);return this._indentation[e]=t,t},t}(rN.BaseWriter),rv.XMLWriter=rB.XMLWriter,rv.ObjectWriter=rE.ObjectWriter;var rM={},rR=rM&&rM.__extends||(D=function(e,t){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),rU=rM&&rM.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rM,"__esModule",{value:!0});var r_=et("jDPAV");rM.JSONWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=r_.applyDefaults(r,{wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1}),n}return rR(t,e),t.prototype.serialize=function(e){var t=r_.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),r=new rE.ObjectWriter(this._builderOptions,t).serialize(e);return this._beginLine(this._writerOptions,0)+this._convertObject(r,this._writerOptions)},t.prototype._convertObject=function(e,t,r){var n,o,i=this;void 0===r&&(r=0);var a="",u=this._isLeafNode(e);if(r_.isArray(e)){a+="[";var s=e.length,l=0;try{for(var c=rU(e),p=c.next();!p.done;p=c.next()){var d=p.value;a+=this._endLine(t,r+1)+this._beginLine(t,r+1)+this._convertObject(d,t,r+1),l<s-1&&(a+=","),l++}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}a+=this._endLine(t,r)+this._beginLine(t,r),a+="]"}else if(r_.isObject(e)){a+="{";var f=r_.objectLength(e),h=0;r_.forEachObject(e,function(e,n){u&&t.prettyPrint?a+=" ":a+=i._endLine(t,r+1)+i._beginLine(t,r+1),a+=i._key(e),t.prettyPrint&&(a+=" "),a+=i._convertObject(n,t,r+1),h<f-1&&(a+=","),h++},this),u&&t.prettyPrint?a+=" ":a+=this._endLine(t,r)+this._beginLine(t,r),a+="}"}else a+=this._val(e);return a},t.prototype._beginLine=function(e,t){if(e.prettyPrint){var r=e.offset+t+1;if(r>0)return Array(r).join(e.indent)}return""},t.prototype._endLine=function(e,t){return e.prettyPrint?e.newline:""},t.prototype._key=function(e){return'"'+e+'":'},t.prototype._val=function(e){return JSON.stringify(e)},t.prototype._isLeafNode=function(e){return 1>=this._descendantCount(e)},t.prototype._descendantCount=function(e,t){var r=this;return void 0===t&&(t=0),r_.isArray(e)?r_.forEachArray(e,function(e){return t+=r._descendantCount(e,t)},this):r_.isObject(e)?r_.forEachObject(e,function(e,n){return t+=r._descendantCount(n,t)},this):t++,t},t}(rN.BaseWriter),rv.JSONWriter=rM.JSONWriter;var rG={},rz=rG&&rG.__extends||(g=function(e,t){return(g=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),rV=rG&&rG.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rG,"__esModule",{value:!0});var r_=et("jDPAV");rG.YAMLWriter=function(e){function t(t,r){var n=e.call(this,t)||this;if(n._writerOptions=r_.applyDefaults(r,{wellFormed:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1}),n._writerOptions.indent.length<2)throw Error("YAML indententation string must be at least two characters long.");if(n._writerOptions.offset<0)throw Error("YAML offset should be zero or a positive number.");return n}return rz(t,e),t.prototype.serialize=function(e){var t=r_.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),r=new rE.ObjectWriter(this._builderOptions,t).serialize(e),n=this._beginLine(this._writerOptions,0)+"---"+this._endLine(this._writerOptions)+this._convertObject(r,this._writerOptions,0);return n.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(n=n.slice(0,-this._writerOptions.newline.length)),n},t.prototype._convertObject=function(e,t,r,n){var o,i,a=this;void 0===n&&(n=!1);var u="";if(r_.isArray(e))try{for(var s=rV(e),l=s.next();!l.done;l=s.next()){var c=l.value;u+=this._beginLine(t,r,!0),r_.isObject(c)?r_.isEmpty(c)?u+='""'+this._endLine(t):u+=this._convertObject(c,t,r,!0):u+=this._val(c)+this._endLine(t)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}else r_.forEachObject(e,function(e,o){n?(u+=a._key(e),n=!1):u+=a._beginLine(t,r)+a._key(e),r_.isObject(o)?r_.isEmpty(o)?u+=' ""'+a._endLine(t):u+=a._endLine(t)+a._convertObject(o,t,r+1):u+=" "+a._val(o)+a._endLine(t)},this);return u},t.prototype._beginLine=function(e,t,r){void 0===r&&(r=!1);var n=Array(e.offset+t+1).join(e.indent);return r?n.substr(0,n.length-2)+"-"+n.substr(-1,1):n},t.prototype._endLine=function(e){return e.newline},t.prototype._key=function(e){return'"'+e+'":'},t.prototype._val=function(e){return JSON.stringify(e)},t}(rN.BaseWriter),rv.YAMLWriter=rG.YAMLWriter;var rA=et("bql4T"),rj=et("cnpfV"),rL=et("eOMTm"),rH={};Object.defineProperty(rH,"__esModule",{value:!0});var rW={};Object.defineProperty(rW,"__esModule",{value:!0});var r$={};Object.defineProperty(r$,"__esModule",{value:!0});var r_=et("jDPAV");r$.AbortController=et("84pNM").AbortControllerImpl,r$.AbortSignal=et("2BzzY").AbortSignalImpl;var rY=et("hUGgy");r$.AbstractRange=rY.AbstractRangeImpl,r$.Attr=et("lrfke").AttrImpl,r$.CDATASection=et("fpzS2").CDATASectionImpl;var rX=et("48JgK");r$.CharacterData=rX.CharacterDataImpl;var rJ={};Object.defineProperty(rJ,"__esModule",{value:!0});var rj=et("cnpfV"),rL=et("eOMTm");rJ.ChildNodeImpl=function(){function e(){}return e.prototype.before=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=r._parent;if(null!==n){for(var o=r._previousSibling,i=!0;i&&o;){i=!1;for(var a=0;a<e.length;a++)if(e[a]===o){o=o._previousSibling,i=!0;break}}var u=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);o=null===o?n._firstChild:o._nextSibling,rL.mutation_preInsert(u,n,o)}},e.prototype.after=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=r._parent;if(n){for(var o=r._nextSibling,i=!0;i&&o;){i=!1;for(var a=0;a<e.length;a++)if(e[a]===o){o=o._nextSibling,i=!0;break}}var u=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);rL.mutation_preInsert(u,n,o)}},e.prototype.replaceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=r._parent;if(n){for(var o=r._nextSibling,i=!0;i&&o;){i=!1;for(var a=0;a<e.length;a++)if(e[a]===o){o=o._nextSibling,i=!0;break}}var u=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);r._parent===n?rL.mutation_replace(r,u,n):rL.mutation_preInsert(u,n,o)}},e.prototype.remove=function(){var e=rj.Cast.asNode(this),t=e._parent;t&&rL.mutation_remove(e,t)},e}(),r$.Comment=et("7vMWy").CommentImpl,r$.CustomEvent=et("aBgn9").CustomEventImpl;var rK=et("ESCTi");r$.DocumentFragment=rK.DocumentFragmentImpl;var rQ=et("arxVV");r$.Document=rQ.DocumentImpl;var rZ={};Object.defineProperty(rZ,"__esModule",{value:!0}),rZ.DocumentOrShadowRootImpl=function(){};var r0=et("FrTv7");r$.DocumentType=r0.DocumentTypeImpl;var r1=et("lrpO3");r$.dom=r1.dom,r$.DOMImplementation=et("85Z9s").DOMImplementationImpl,r$.DOMTokenList=et("8Piwh").DOMTokenListImpl;var r2=et("iW3sp");r$.Element=r2.ElementImpl,r$.Event=et("df3k2").EventImpl,r$.EventTarget=et("ezaCF").EventTargetImpl,r$.HTMLCollection=et("egFCd").HTMLCollectionImpl;var r3={},r8=r3&&r3.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r3,"__esModule",{value:!0});var r1=et("lrpO3"),rj=et("cnpfV"),rP=et("b9DcM");r3.MutationObserverImpl=function(){function e(e){this._nodeList=[],this._recordQueue=[],this._callback=e;var t=r1.dom.window;rP.set.append(t._mutationObservers,this)}return e.prototype.observe=function(e,t){if((void 0!==(t=t||{childList:!1,subtree:!1}).attributeOldValue||void 0!==t.attributeFilter)&&void 0===t.attributes&&(t.attributes=!0),void 0!==t.characterDataOldValue&&void 0===t.characterData&&(t.characterData=!0),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||void 0!==t.attributeFilter&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw TypeError();var r,n,o=!1,i=t,a=function(e){var t,r;if(e.observer===u){o=!0;try{for(var n=(t=void 0,r8(u._nodeList)),a=n.next();!a.done;a=n.next()){var s=a.value;rP.list.remove(s._registeredObserverList,function(t){return rj.Guard.isTransientRegisteredObserver(t)&&t.source===e})}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.options=i}},u=this;try{for(var s=r8(e._registeredObserverList),l=s.next();!l.done;l=s.next()){var c=l.value;a(c)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}o||(e._registeredObserverList.push({observer:this,options:t}),this._nodeList.push(e))},e.prototype.disconnect=function(){var e,t,r=this;try{for(var n=r8(this._nodeList),o=n.next();!o.done;o=n.next()){var i=o.value;rP.list.remove(i._registeredObserverList,function(e){return e.observer===r})}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._recordQueue=[]},e.prototype.takeRecords=function(){var e=this._recordQueue;return this._recordQueue=[],e},e}(),r$.MutationObserver=r3.MutationObserverImpl,r$.MutationRecord=et("1qAZS").MutationRecordImpl,r$.NamedNodeMap=et("kpMEY").NamedNodeMapImpl,r$.NodeFilter=et("90TyW").NodeFilterImpl,r$.Node=et("kuLmk").NodeImpl,r$.NodeIterator=et("9Y4Fd").NodeIteratorImpl,r$.NodeList=et("is6DP").NodeListImpl,r$.NodeListStatic=et("fgilR").NodeListStaticImpl;var r5={};Object.defineProperty(r5,"__esModule",{value:!0});var rj=et("cnpfV");r5.NonDocumentTypeChildNodeImpl=function(){function e(){}return Object.defineProperty(e.prototype,"previousElementSibling",{get:function(){for(var e=rj.Cast.asNode(this)._previousSibling;e;)if(rj.Guard.isElementNode(e))return e;else e=e._previousSibling;return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextElementSibling",{get:function(){for(var e=rj.Cast.asNode(this)._nextSibling;e;)if(rj.Guard.isElementNode(e))return e;else e=e._nextSibling;return null},enumerable:!0,configurable:!0}),e}();var r6={};Object.defineProperty(r6,"__esModule",{value:!0});var rj=et("cnpfV"),rL=et("eOMTm");r6.NonElementParentNodeImpl=function(){function e(){}return e.prototype.getElementById=function(e){for(var t=rL.tree_getFirstDescendantNode(rj.Cast.asNode(this),!1,!1,function(e){return rj.Guard.isElementNode(e)});null!==t;){if(t._uniqueIdentifier===e)return t;t=rL.tree_getNextDescendantNode(rj.Cast.asNode(this),t,!1,!1,function(e){return rj.Guard.isElementNode(e)})}return null},e}();var r9={},r4=r9&&r9.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r9,"__esModule",{value:!0});var rj=et("cnpfV"),rL=et("eOMTm");r9.ParentNodeImpl=function(){function e(){}return Object.defineProperty(e.prototype,"children",{get:function(){return rL.create_htmlCollection(rj.Cast.asNode(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){for(var e=rj.Cast.asNode(this)._firstChild;e;)if(rj.Guard.isElementNode(e))return e;else e=e._nextSibling;return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){for(var e=rj.Cast.asNode(this)._lastChild;e;)if(rj.Guard.isElementNode(e))return e;else e=e._previousSibling;return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){var e,t,r=0;try{for(var n=r4(rj.Cast.asNode(this)._children),o=n.next();!o.done;o=n.next()){var i=o.value;rj.Guard.isElementNode(i)&&r++}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},enumerable:!0,configurable:!0}),e.prototype.prepend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);rL.mutation_preInsert(n,r,r._firstChild)},e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);rL.mutation_append(n,r)},e.prototype.querySelector=function(e){var t=rj.Cast.asNode(this),r=rL.selectors_scopeMatchASelectorsString(e,t);return 0===r.length?null:r[0]},e.prototype.querySelectorAll=function(e){var t=rj.Cast.asNode(this),r=rL.selectors_scopeMatchASelectorsString(e,t);return rL.create_nodeListStatic(t,r)},e}(),r$.ProcessingInstruction=et("b9Cnk").ProcessingInstructionImpl,r$.Range=et("15kuI").RangeImpl;var r7=et("chTgy");r$.ShadowRoot=r7.ShadowRootImpl;var ne={};Object.defineProperty(ne,"__esModule",{value:!0});var rL=et("eOMTm");ne.SlotableImpl=function(){function e(){}return Object.defineProperty(e.prototype,"_name",{get:function(){return this.__name||""},set:function(e){this.__name=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_assignedSlot",{get:function(){return this.__assignedSlot||null},set:function(e){this.__assignedSlot=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assignedSlot",{get:function(){return rL.shadowTree_findASlot(this,!0)},enumerable:!0,configurable:!0}),e}();var nt={},nr=nt&&nt.__extends||(y=function(e,t){return(y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(nt,"__esModule",{value:!0});var rY=et("hUGgy"),nn=et("bnDGi"),rj=et("cnpfV");nt.StaticRangeImpl=function(e){function t(t){var r=e.call(this)||this;if(rj.Guard.isDocumentTypeNode(t.startContainer)||rj.Guard.isAttrNode(t.startContainer)||rj.Guard.isDocumentTypeNode(t.endContainer)||rj.Guard.isAttrNode(t.endContainer))throw new nn.InvalidNodeTypeError;return r._start=[t.startContainer,t.startOffset],r._end=[t.endContainer,t.endOffset],r}return nr(t,e),t}(rY.AbstractRangeImpl),r$.StaticRange=nt.StaticRangeImpl;var no=et("6O4nx");r$.Text=no.TextImpl,r$.Traverser=et("bodkg").TraverserImpl,r$.TreeWalker=et("8i5wm").TreeWalkerImpl,r$.Window=et("aUIwt").WindowImpl,r$.XMLDocument=et("lHHKe").XMLDocumentImpl,r_.applyMixin(r2.ElementImpl,rJ.ChildNodeImpl),r_.applyMixin(rX.CharacterDataImpl,rJ.ChildNodeImpl),r_.applyMixin(r0.DocumentTypeImpl,rJ.ChildNodeImpl),r_.applyMixin(rQ.DocumentImpl,rZ.DocumentOrShadowRootImpl),r_.applyMixin(r7.ShadowRootImpl,rZ.DocumentOrShadowRootImpl),r_.applyMixin(r2.ElementImpl,r5.NonDocumentTypeChildNodeImpl),r_.applyMixin(rX.CharacterDataImpl,r5.NonDocumentTypeChildNodeImpl),r_.applyMixin(rQ.DocumentImpl,r6.NonElementParentNodeImpl),r_.applyMixin(rK.DocumentFragmentImpl,r6.NonElementParentNodeImpl),r_.applyMixin(rQ.DocumentImpl,r9.ParentNodeImpl),r_.applyMixin(rK.DocumentFragmentImpl,r9.ParentNodeImpl),r_.applyMixin(r2.ElementImpl,r9.ParentNodeImpl),r_.applyMixin(no.TextImpl,ne.SlotableImpl),r_.applyMixin(r2.ElementImpl,ne.SlotableImpl),r$.dom.setFeatures(!0),rW.DOMImplementation=r$.DOMImplementation;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});var na={};Object.defineProperty(na,"__esModule",{value:!0});var rL=et("eOMTm"),nu={},ns=nu&&nu.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},nl=nu&&nu.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(nu,"__esModule",{value:!0});var nc={},np=nc&&nc.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(nc,"__esModule",{value:!0});var nd={};Object.defineProperty(nd,"__esModule",{value:!0}),(_=nd.TokenType||(nd.TokenType={}))[_.EOF=0]="EOF",_[_.Declaration=1]="Declaration",_[_.DocType=2]="DocType",_[_.Element=3]="Element",_[_.Text=4]="Text",_[_.CDATA=5]="CDATA",_[_.PI=6]="PI",_[_.Comment=7]="Comment",_[_.ClosingTag=8]="ClosingTag",nc.XMLStringLexer=function(){function e(e,t){this._options={skipWhitespaceOnlyText:!1},this.err={line:-1,col:-1,index:-1,str:""},this._str=e,this._index=0,this._length=e.length,t&&(this._options.skipWhitespaceOnlyText=t.skipWhitespaceOnlyText||!1)}return e.prototype.nextToken=function(){if(this.eof())return{type:nd.TokenType.EOF};var t=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&t.type===nd.TokenType.Text&&e.isWhiteSpaceToken(t)&&(t=this.nextToken()),t},e.prototype.openBracket=function(){if(this.skipIfStartsWith("?"))if(!this.skipIfStartsWith("xml"))return this.pi();else if(e.isSpace(this._str[this._index]))return this.declaration();else return this.seek(-3),this.pi();if(this.skipIfStartsWith("!"))if(this.skipIfStartsWith("--"))return this.comment();else{if(this.skipIfStartsWith("[CDATA["))return this.cdata();if(this.skipIfStartsWith("DOCTYPE"))return this.doctype();this.throwError("Invalid '!' in opening tag.")}else if(this.skipIfStartsWith("/"))return this.closeTag();else return this.openTag()},e.prototype.declaration=function(){for(var e="",t="",r="";!this.eof();){if(this.skipSpace(),this.skipIfStartsWith("?>"))return{type:nd.TokenType.Declaration,version:e,encoding:t,standalone:r};var n=np(this.attribute(),2),o=n[0],i=n[1];"version"===o?e=i:"encoding"===o?t=i:"standalone"===o?r=i:this.throwError("Invalid attribute name: "+o)}this.throwError("Missing declaration end symbol `?>`")},e.prototype.doctype=function(){var e="",t="";this.skipSpace();var r=this.takeUntil2("[",">",!0);return this.skipSpace(),this.skipIfStartsWith("PUBLIC")?(e=this.quotedString(),t=this.quotedString()):this.skipIfStartsWith("SYSTEM")&&(t=this.quotedString()),this.skipSpace(),this.skipIfStartsWith("[")&&(this.skipUntil("]"),this.skipIfStartsWith("]")||this.throwError("Missing end bracket of DTD internal subset")),this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing doctype end symbol `>`"),{type:nd.TokenType.DocType,name:r,pubId:e,sysId:t}},e.prototype.pi=function(){var e=this.takeUntilStartsWith("?>",!0);if(this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.skipSpace(),this.skipIfStartsWith("?>"))return{type:nd.TokenType.PI,target:e,data:""};var t=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:nd.TokenType.PI,target:e,data:t}},e.prototype.text=function(){var e=this.takeUntil("<");return{type:nd.TokenType.Text,data:e}},e.prototype.comment=function(){var e=this.takeUntilStartsWith("--\x3e");return this.eof()&&this.throwError("Missing comment end symbol `--\x3e`"),this.seek(3),{type:nd.TokenType.Comment,data:e}},e.prototype.cdata=function(){var e=this.takeUntilStartsWith("]]>");return this.eof()&&this.throwError("Missing CDATA end symbol `]>`"),this.seek(3),{type:nd.TokenType.CDATA,data:e}},e.prototype.openTag=function(){this.skipSpace();var e=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:nd.TokenType.Element,name:e,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:nd.TokenType.Element,name:e,attributes:[],selfClosing:!0};for(var t=[];!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:nd.TokenType.Element,name:e,attributes:t,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:nd.TokenType.Element,name:e,attributes:t,selfClosing:!0};var r=this.attribute();t.push(r)}this.throwError("Missing opening element tag end symbol `>`")},e.prototype.closeTag=function(){this.skipSpace();var e=this.takeUntil(">",!0);return this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing closing element tag end symbol `>`"),{type:nd.TokenType.ClosingTag,name:e}},e.prototype.attribute=function(){this.skipSpace();var e=this.takeUntil("=",!0);return this.skipSpace(),this.skipIfStartsWith("=")||this.throwError("Missing equals sign before attribute value"),[e,this.quotedString()]},e.prototype.quotedString=function(){this.skipSpace();var t=this.take(1);e.isQuote(t)||this.throwError("Missing start quote character before quoted value");var r=this.takeUntil(t);return this.skipIfStartsWith(t)||this.throwError("Missing end quote character after quoted value"),r},e.prototype.eof=function(){return this._index>=this._length},e.prototype.skipIfStartsWith=function(e){var t=e.length;if(1===t)if(this._str[this._index]===e)return this._index++,!0;else return!1;for(var r=0;r<t;r++)if(this._str[this._index+r]!==e[r])return!1;return this._index+=t,!0},e.prototype.seek=function(e){this._index+=e,this._index<0&&(this._index=0),this._index>this._length&&(this._index=this._length)},e.prototype.skipSpace=function(){for(;!this.eof()&&e.isSpace(this._str[this._index]);)this._index++},e.prototype.take=function(e){if(1===e)return this._str[this._index++];var t=this._index;return this.seek(e),this._str.slice(t,this._index)},e.prototype.takeUntil=function(t,r){void 0===r&&(r=!1);for(var n=this._index;this._index<this._length;){var o=this._str[this._index];if(o===t||r&&e.isSpace(o))break;this._index++}return this._str.slice(n,this._index)},e.prototype.takeUntil2=function(t,r,n){void 0===n&&(n=!1);for(var o=this._index;this._index<this._length;){var i=this._str[this._index];if(i===t||i===r||n&&e.isSpace(i))break;this._index++}return this._str.slice(o,this._index)},e.prototype.takeUntilStartsWith=function(t,r){void 0===r&&(r=!1);for(var n=this._index,o=t.length;this._index<this._length;){for(var i=!0,a=0;a<o;a++){var u=this._str[this._index+a],s=t[a];if(r&&e.isSpace(u))return this._str.slice(n,this._index);if(u!==s){this._index++,i=!1;break}}if(i)return this._str.slice(n,this._index)}return this._index=this._length,this._str.slice(n)},e.prototype.skipUntil=function(e){for(;this._index<this._length;)if(this._str[this._index]!==e)this._index++;else break},e.isWhiteSpaceToken=function(e){for(var t=e.data,r=0;r<t.length;r++){var n=t[r];if(" "!==n&&"\n"!==n&&"\r"!==n&&" "!==n&&"\f"!==n)return!1}return!0},e.isSpace=function(e){return" "===e||"\n"===e||"\r"===e||" "===e},e.isQuote=function(e){return'"'===e||"'"===e},e.prototype.throwError=function(e){for(var t=/\r\n|\r|\n/g,r=null,n=0,o=0,i=this._str.length;null!==(r=t.exec(this._str))&&null!==r;)if(n++,r.index<this._index&&(o=t.lastIndex),r.index>this._index){i=r.index;break}throw this.err={line:n,col:this._index-o,index:this._index,str:this._str.substring(o,i)},Error(e+"\nIndex: "+this.err.index+"\nLn: "+this.err.line+", Col: "+this.err.col+"\nInput: "+this.err.str)},e.prototype[Symbol.iterator]=function(){return this._index=0,{next:(function(){var e=this.nextToken();return e.type===nd.TokenType.EOF?{done:!0,value:null}:{done:!1,value:e}}).bind(this)}},e}();var rP=et("b9DcM"),rL=et("eOMTm");nu.XMLParserImpl=function(){function e(){}return e.prototype.parse=function(e){for(var t,r,n,o,i=new nc.XMLStringLexer(e,{skipWhitespaceOnlyText:!0}),a=rL.create_document(),u=a,s=i.nextToken();s.type!==nd.TokenType.EOF;){switch(s.type){case nd.TokenType.Declaration:var l=s;if("1.0"!==l.version)throw Error("Invalid xml version: "+l.version);break;case nd.TokenType.DocType:var c=s;if(!rL.xml_isPubidChar(c.pubId))throw Error("DocType public identifier does not match PubidChar construct.");if(!rL.xml_isLegalChar(c.sysId)||-1!==c.sysId.indexOf('"')&&-1!==c.sysId.indexOf("'"))throw Error("DocType system identifier contains invalid characters.");u.appendChild(a.implementation.createDocumentType(c.name,c.pubId,c.sysId));break;case nd.TokenType.CDATA:var p=s;if(!rL.xml_isLegalChar(p.data)||-1!==p.data.indexOf("]]>"))throw Error("CDATA contains invalid characters.");u.appendChild(a.createCDATASection(p.data));break;case nd.TokenType.Comment:var d=s;if(!rL.xml_isLegalChar(d.data)||-1!==d.data.indexOf("--")||d.data.endsWith("-"))throw Error("Comment data contains invalid characters.");u.appendChild(a.createComment(d.data));break;case nd.TokenType.PI:var f=s;if(-1!==f.target.indexOf(":")||/^xml$/i.test(f.target))throw Error("Processing instruction target contains invalid characters.");if(!rL.xml_isLegalChar(f.data)||-1!==f.data.indexOf("?>"))throw Error("Processing instruction data contains invalid characters.");u.appendChild(a.createProcessingInstruction(f.target,f.data));break;case nd.TokenType.Text:var h=s;if(!rL.xml_isLegalChar(h.data))throw Error("Text data contains invalid characters.");u.appendChild(a.createTextNode(this._decodeText(h.data)));break;case nd.TokenType.Element:var m=s,D=ns(rL.namespace_extractQName(m.name),2),g=D[0],y=D[1];if(-1!==y.indexOf(":")||!rL.xml_isName(y))throw Error("Node local name contains invalid characters.");if("xmlns"===g)throw Error("An element cannot have the 'xmlns' prefix.");var _=u.lookupNamespaceURI(g),v={};try{for(var b=(t=void 0,nl(m.attributes)),x=b.next();!x.done;x=b.next()){var E=ns(x.value,2),w=E[0],C=E[1];if("xmlns"===w)_=C;else{var A=ns(rL.namespace_extractQName(w),2),N=A[0],T=A[1];"xmlns"===N&&(T===g&&(_=C),v[T]=C)}}}catch(e){t={error:e}}finally{try{x&&!x.done&&(r=b.return)&&r.call(b)}finally{if(t)throw t.error}}var S=null!==_?a.createElementNS(_,m.name):a.createElement(m.name);u.appendChild(S);var F=new rO.LocalNameSet;try{for(var O=(n=void 0,nl(m.attributes)),k=O.next();!k.done;k=O.next()){var P=ns(k.value,2),w=P[0],C=P[1],L=ns(rL.namespace_extractQName(w),2),N=L[0],T=L[1],I=null;if("xmlns"===N||null===N&&"xmlns"===T?I=rP.namespace.XMLNS:(I=S.lookupNamespaceURI(N),null!==I&&S.isDefaultNamespace(I)?I=null:null===I&&null!==N&&(I=v[N]||null)),F.has(I,T))throw Error("Element contains duplicate attributes.");if(F.set(I,T),I===rP.namespace.XMLNS&&C===rP.namespace.XMLNS)throw Error("XMLNS namespace is reserved.");if(-1!==T.indexOf(":")||!rL.xml_isName(T))throw Error("Attribute local name contains invalid characters.");if("xmlns"===N&&""===C)throw Error("Empty XML namespace is not allowed.");null!==I?S.setAttributeNS(I,w,this._decodeAttributeValue(C)):S.setAttribute(w,this._decodeAttributeValue(C))}}catch(e){n={error:e}}finally{try{k&&!k.done&&(o=O.return)&&o.call(O)}finally{if(n)throw n.error}}m.selfClosing||(u=S);break;case nd.TokenType.ClosingTag:if(s.name!==u.nodeName)throw Error("Closing tag name does not match opening tag name.");u._parent&&(u=u._parent)}s=i.nextToken()}return a},e.prototype._decodeText=function(e){return null==e?e:e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")},e.prototype._decodeAttributeValue=function(e){return null==e?e:e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")},e}(),na.DOMParserImpl=function(){function e(){}return e.prototype.parseFromString=function(e,t){if("text/html"===t)throw Error("HTML parser not implemented.");try{var r=new nu.XMLParserImpl().parse(e);return r._contentType=t,r}catch(e){var n="http://www.mozilla.org/newlayout/xml/parsererror.xml",r=rL.create_xmlDocument(),o=r.createElementNS(n,"parsererror"),i=r.createElementNS(n,"error");return i.setAttribute("message",e.message),o.appendChild(i),r.appendChild(o),r}},e}(),ni.DOMParser=na.DOMParserImpl,rW.DOMParser=ni.DOMParser;var nf={};Object.defineProperty(nf,"__esModule",{value:!0});var nh={},nm=nh&&nh.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(nh,"__esModule",{value:!0});var rA=et("bql4T"),nn=et("bnDGi"),rP=et("b9DcM"),rL=et("eOMTm");nh.XMLSerializerImpl=function(){function e(){}return e.prototype.serializeToString=function(e){return this._xmlSerialization(e,!1)},e.prototype._xmlSerialization=function(e,t){if(void 0===e._nodeDocument||e._nodeDocument._hasNamespaces){var r=new rk.NamespacePrefixMap;r.set("xml",rP.namespace.XML);try{return this._serializeNodeNS(e,null,r,{value:1},t)}catch(e){throw new nn.InvalidStateError}}try{return this._serializeNode(e,t)}catch(e){throw new nn.InvalidStateError}},e.prototype._serializeNodeNS=function(e,t,r,n,o){switch(e.nodeType){case rA.NodeType.Element:return this._serializeElementNS(e,t,r,n,o);case rA.NodeType.Document:return this._serializeDocumentNS(e,t,r,n,o);case rA.NodeType.Comment:return this._serializeComment(e,o);case rA.NodeType.Text:return this._serializeText(e,o);case rA.NodeType.DocumentFragment:return this._serializeDocumentFragmentNS(e,t,r,n,o);case rA.NodeType.DocumentType:return this._serializeDocumentType(e,o);case rA.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,o);case rA.NodeType.CData:return this._serializeCData(e,o);default:throw Error("Unknown node type: "+e.nodeType)}},e.prototype._serializeNode=function(e,t){switch(e.nodeType){case rA.NodeType.Element:return this._serializeElement(e,t);case rA.NodeType.Document:return this._serializeDocument(e,t);case rA.NodeType.Comment:return this._serializeComment(e,t);case rA.NodeType.Text:return this._serializeText(e,t);case rA.NodeType.DocumentFragment:return this._serializeDocumentFragment(e,t);case rA.NodeType.DocumentType:return this._serializeDocumentType(e,t);case rA.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,t);case rA.NodeType.CData:return this._serializeCData(e,t);default:throw Error("Unknown node type: "+e.nodeType)}},e.prototype._serializeElementNS=function(t,r,n,o,i){if(i&&(-1!==t.localName.indexOf(":")||!rL.xml_isName(t.localName)))throw Error("Node local name contains invalid characters (well-formed required).");var a,u,s="<",l="",c=!1,p=!1,d=n.copy(),f={},h=this._recordNamespaceInformation(t,d,f),m=r,D=t.namespaceURI;if(m===D)null!==h&&(p=!0),s+=l=D===rP.namespace.XML?"xml:"+t.localName:t.localName;else{var g=t.prefix,y=null;if((null!==g||D!==h)&&(y=d.get(g,D)),"xmlns"===g){if(i)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");y=g}null!==y?(l=y+":"+t.localName,null!==h&&h!==rP.namespace.XML&&(m=h||null),s+=l):null!==g?(g in f&&(g=this._generatePrefix(D,d,o)),d.set(g,D),l+=g+":"+t.localName,s+=l,s+=" xmlns:"+g+'="'+this._serializeAttributeValue(D,i)+'"',null!==h&&(m=h||null)):null===h||null!==h&&h!==D?(p=!0,l+=t.localName,m=D,s+=l,s+=' xmlns="'+this._serializeAttributeValue(D,i)+'"'):(l+=t.localName,m=D,s+=l)}s+=this._serializeAttributesNS(t,d,o,f,p,i);var _=D===rP.namespace.HTML;if(_&&0===t.childNodes.length&&e._VoidElementNames.has(t.localName)?(s+=" /",c=!0):_||0!==t.childNodes.length||(s+="/",c=!0),s+=">",c)return s;if(_&&"template"===t.localName);else try{for(var v=nm(t._children||t.childNodes),b=v.next();!b.done;b=v.next()){var x=b.value;s+=this._serializeNodeNS(x,m,d,o,i)}}catch(e){a={error:e}}finally{try{b&&!b.done&&(u=v.return)&&u.call(v)}finally{if(a)throw a.error}}return s+("</"+l+">")},e.prototype._serializeDocumentNS=function(e,t,r,n,o){if(o&&null===e.documentElement)throw Error("Missing document element (well-formed required).");var i,a,u="";try{for(var s=nm(e._children||e.childNodes),l=s.next();!l.done;l=s.next()){var c=l.value;u+=this._serializeNodeNS(c,t,r,n,o)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return u},e.prototype._serializeComment=function(e,t){if(t&&(!rL.xml_isLegalChar(e.data)||-1!==e.data.indexOf("--")||e.data.endsWith("-")))throw Error("Comment data contains invalid characters (well-formed required).");return"\x3c!--"+e.data+"--\x3e"},e.prototype._serializeText=function(e,t){if(t&&!rL.xml_isLegalChar(e.data))throw Error("Text data contains invalid characters (well-formed required).");for(var r="",n=0;n<e.data.length;n++){var o=e.data[n];"&"===o?r+="&amp;":"<"===o?r+="&lt;":">"===o?r+="&gt;":r+=o}return r},e.prototype._serializeDocumentFragmentNS=function(e,t,r,n,o){var i,a,u="";try{for(var s=nm(e._children||e.childNodes),l=s.next();!l.done;l=s.next()){var c=l.value;u+=this._serializeNodeNS(c,t,r,n,o)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return u},e.prototype._serializeDocumentType=function(e,t){if(t&&!rL.xml_isPubidChar(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!rL.xml_isLegalChar(e.systemId)||-1!==e.systemId.indexOf('"')&&-1!==e.systemId.indexOf("'")))throw Error("DocType system identifier contains invalid characters (well-formed required).");return e.publicId&&e.systemId?"<!DOCTYPE "+e.name+' PUBLIC "'+e.publicId+'" "'+e.systemId+'">':e.publicId?"<!DOCTYPE "+e.name+' PUBLIC "'+e.publicId+'">':e.systemId?"<!DOCTYPE "+e.name+' SYSTEM "'+e.systemId+'">':"<!DOCTYPE "+e.name+">"},e.prototype._serializeProcessingInstruction=function(e,t){if(t&&(-1!==e.target.indexOf(":")||/^xml$/i.test(e.target)))throw Error("Processing instruction target contains invalid characters (well-formed required).");if(t&&(!rL.xml_isLegalChar(e.data)||-1!==e.data.indexOf("?>")))throw Error("Processing instruction data contains invalid characters (well-formed required).");return"<?"+(""===e.data?e.target:e.target+" "+e.data)+"?>"},e.prototype._serializeCData=function(e,t){if(t&&-1!==e.data.indexOf("]]>"))throw Error("CDATA contains invalid characters (well-formed required).");return"<![CDATA["+e.data+"]]>"},e.prototype._serializeAttributesNS=function(e,t,r,n,o,i){var a,u,s="",l=i?new rO.LocalNameSet:void 0;try{for(var c=nm(e.attributes),p=c.next();!p.done;p=c.next()){var d=p.value;if(!o&&!i&&null===d.namespaceURI){s+=" "+d.localName+'="'+this._serializeAttributeValue(d.value,i)+'"';continue}if(i&&l&&l.has(d.namespaceURI,d.localName))throw Error("Element contains duplicate attributes (well-formed required).");i&&l&&l.set(d.namespaceURI,d.localName);var f=d.namespaceURI,h=null;if(null!==f)if(h=t.get(d.prefix,f),f===rP.namespace.XMLNS){if(d.value===rP.namespace.XML||null===d.prefix&&o||null!==d.prefix&&(!(d.localName in n)||n[d.localName]!==d.value)&&t.has(d.localName,d.value))continue;if(i&&d.value===rP.namespace.XMLNS)throw Error("XMLNS namespace is reserved (well-formed required).");if(i&&""===d.value)throw Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");"xmlns"===d.prefix&&(h="xmlns")}else null===h&&(h=null!==d.prefix&&(!t.hasPrefix(d.prefix)||t.has(d.prefix,f))?d.prefix:this._generatePrefix(f,t,r),s+=" xmlns:"+h+'="'+this._serializeAttributeValue(f,i)+'"');if(s+=" ",null!==h&&(s+=h+":"),i&&(-1!==d.localName.indexOf(":")||!rL.xml_isName(d.localName)||"xmlns"===d.localName&&null===f))throw Error("Attribute local name contains invalid characters (well-formed required).");s+=d.localName+'="'+this._serializeAttributeValue(d.value,i)+'"'}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}return s},e.prototype._recordNamespaceInformation=function(e,t,r){var n,o,i=null;try{for(var a=nm(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rP.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rP.namespace.XML||(""===d&&(d=null),t.has(p,d)))continue;t.set(p,d),r[p]=d||""}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},e.prototype._generatePrefix=function(e,t,r){var n="ns"+r.value;return r.value++,t.set(n,e),n},e.prototype._serializeAttributeValue=function(e,t){if(t&&null!==e&&!rL.xml_isLegalChar(e))throw Error("Invalid characters in attribute value.");if(null===e)return"";for(var r="",n=0;n<e.length;n++){var o=e[n];'"'===o?r+="&quot;":"&"===o?r+="&amp;":"<"===o?r+="&lt;":">"===o?r+="&gt;":r+=o}return r},e.prototype._serializeElement=function(e,t){if(t&&(-1!==e.localName.indexOf(":")||!rL.xml_isName(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");var r,n,o=!1,i=e.localName,a="<"+i;if(a+=this._serializeAttributes(e,t),0===e._children.size&&(a+="/",o=!0),a+=">",o)return a;try{for(var u=nm(e._children),s=u.next();!s.done;s=u.next()){var l=s.value;a+=this._serializeNode(l,t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return a+("</"+i+">")},e.prototype._serializeDocument=function(e,t){if(t&&null===e.documentElement)throw Error("Missing document element (well-formed required).");var r,n,o="";try{for(var i=nm(e._children),a=i.next();!a.done;a=i.next()){var u=a.value;o+=this._serializeNode(u,t)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},e.prototype._serializeDocumentFragment=function(e,t){var r,n,o="";try{for(var i=nm(e._children),a=i.next();!a.done;a=i.next()){var u=a.value;o+=this._serializeNode(u,t)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},e.prototype._serializeAttributes=function(e,t){var r,n,o="",i=t?{}:void 0;try{for(var a=nm(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value;if(t&&i&&s.localName in i)throw Error("Element contains duplicate attributes (well-formed required).");if(t&&i&&(i[s.localName]=!0),t&&(-1!==s.localName.indexOf(":")||!rL.xml_isName(s.localName)))throw Error("Attribute local name contains invalid characters (well-formed required).");o+=" "+s.localName+'="'+this._serializeAttributeValue(s.value,t)+'"'}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},e._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),e}(),nf.XMLSerializer=nh.XMLSerializerImpl,rW.XMLSerializer=nf.XMLSerializer;var r_=et("jDPAV");r$.dom.setFeatures(!1),rH.createDocument=function(){var e=new rW.DOMImplementation().createDocument(null,"root",null);return e.documentElement&&e.removeChild(e.documentElement),e},rH.sanitizeInput=function(e,t){if(null==e)return e;if(void 0===t)return e+"";var r="";e+="";for(var n=0;n<e.length;n++){var o=e.charCodeAt(n);if(9===o||10===o||13===o||o>=32&&o<=55295||o>=57344&&o<=65533)r+=e.charAt(n);else if(o>=55296&&o<=56319&&n<e.length-1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343?(r+=String.fromCodePoint(o=(o-55296)*1024+i-56320+65536),n++):r+=r_.isString(t)?t:t(e.charAt(n),n,e)}else r+=r_.isString(t)?t:t(e.charAt(n),n,e)}return r};var rP=et("b9DcM"),nD={};Object.defineProperty(nD,"__esModule",{value:!0});var ng={},ny=ng&&ng.__extends||(v=function(e,t){return(v=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n_=ng&&ng.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},nv=ng&&ng.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ng,"__esModule",{value:!0});var rA=et("bql4T"),rP=et("b9DcM"),rL=et("eOMTm"),nb={};Object.defineProperty(nb,"__esModule",{value:!0}),nb.BaseReader=function(){function e(e){this._builderOptions=e,e.parser&&Object.assign(this,e.parser)}return e.prototype._docType=function(e,t,r,n){return e.dtd({name:t,pubID:r,sysID:n})},e.prototype._comment=function(e,t){return e.com(t)},e.prototype._text=function(e,t){return e.txt(t)},e.prototype._instruction=function(e,t,r){return e.ins(t,r)},e.prototype._cdata=function(e,t){return e.dat(t)},e.prototype._element=function(e,t,r){return void 0===t?e.ele(r):e.ele(t,r)},e.prototype._attribute=function(e,t,r,n){return void 0===t?e.att(r,n):e.att(t,r,n)},e.prototype._sanitize=function(e){return rH.sanitizeInput(e,this._builderOptions.invalidCharReplacement)},e.prototype._decodeText=function(t){return null==t?t:t.replace(/&(quot|amp|apos|lt|gt);/g,function(t,r){return e._entityTable[r]}).replace(/&#(?:x([a-fA-F0-9]+)|([0-9]+));/g,function(e,t,r){return String.fromCodePoint(parseInt(t||r,t?16:10))})},e.prototype._decodeAttributeValue=function(e){return this._decodeText(e)},e.prototype.parse=function(e,t){return this._parse(e,t)},e.prototype.docType=function(e,t,r,n){return this._docType(e,t,r,n)},e.prototype.comment=function(e,t){return this._comment(e,t)},e.prototype.text=function(e,t){return this._text(e,t)},e.prototype.instruction=function(e,t,r){return this._instruction(e,t,r)},e.prototype.cdata=function(e,t){return this._cdata(e,t)},e.prototype.element=function(e,t,r){return this._element(e,t,r)},e.prototype.attribute=function(e,t,r,n){return this._attribute(e,t,r,n)},e.prototype.sanitize=function(e){return this._sanitize(e)},e._entityTable={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},e}(),ng.XMLReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ny(t,e),t.prototype._parse=function(e,t){for(var r,n,o,i,a=new nc.XMLStringLexer(t,{skipWhitespaceOnlyText:this._builderOptions.skipWhitespaceOnlyText}),u=e,s=e,l=a.nextToken();l.type!==nd.TokenType.EOF;){switch(l.type){case nd.TokenType.Declaration:var c=l,p=this.sanitize(c.version);if("1.0"!==p)throw Error("Invalid xml version: "+p);var d={version:p};c.encoding&&(d.encoding=this.sanitize(c.encoding)),c.standalone&&(d.standalone="yes"===this.sanitize(c.standalone)),s.set(d);break;case nd.TokenType.DocType:var f=l;s=this.docType(s,this.sanitize(f.name),this.sanitize(f.pubId),this.sanitize(f.sysId))||s;break;case nd.TokenType.CDATA:var h=l;s=this.cdata(s,this.sanitize(h.data))||s;break;case nd.TokenType.Comment:var m=l;s=this.comment(s,this.sanitize(m.data))||s;break;case nd.TokenType.PI:var D=l;s=this.instruction(s,this.sanitize(D.target),this.sanitize(D.data))||s;break;case nd.TokenType.Text:if(s.node.nodeType===rA.NodeType.Document)break;var g=l;s=this.text(s,this._decodeText(this.sanitize(g.data)))||s;break;case nd.TokenType.Element:var y=l,_=this.sanitize(y.name),v=n_(rL.namespace_extractQName(_),1)[0],b=s.node.lookupNamespaceURI(v),x={};try{for(var E=(r=void 0,nv(y.attributes)),w=E.next();!w.done;w=E.next()){var C=n_(w.value,2),A=C[0],N=C[1];if(A=this.sanitize(A),N=this.sanitize(N),"xmlns"===A)b=N;else{var T=n_(rL.namespace_extractQName(A),2),S=T[0],F=T[1];"xmlns"===S&&(F===v&&(b=N),x[F]=N)}}}catch(e){r={error:e}}finally{try{w&&!w.done&&(n=E.return)&&n.call(E)}finally{if(r)throw r.error}}var O=null!==b?this.element(s,b,_):this.element(s,void 0,_);if(void 0===O)break;s.node===e.node&&(u=O);try{for(var k=(o=void 0,nv(y.attributes)),P=k.next();!P.done;P=k.next()){var L=n_(P.value,2),A=L[0],N=L[1];A=this.sanitize(A),N=this.sanitize(N);var I=n_(rL.namespace_extractQName(A),2),S=I[0],F=I[1],B=null;"xmlns"===S||null===S&&"xmlns"===F?B=rP.namespace.XMLNS:(B=O.node.lookupNamespaceURI(S),null!==B&&O.node.isDefaultNamespace(B)?B=null:null===B&&null!==S&&(B=x[S]||null)),null!==B?this.attribute(O,B,A,this._decodeAttributeValue(N)):this.attribute(O,void 0,A,this._decodeAttributeValue(N))}}catch(e){o={error:e}}finally{try{P&&!P.done&&(i=k.return)&&i.call(k)}finally{if(o)throw o.error}}y.selfClosing||(s=O);break;case nd.TokenType.ClosingTag:s.node.parentNode&&(s=s.up())}l=a.nextToken()}return u},t}(nb.BaseReader),nD.XMLReader=ng.XMLReader;var nx={},nE=nx&&nx.__extends||(b=function(e,t){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(nx,"__esModule",{value:!0});var r_=et("jDPAV");nx.ObjectReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nE(t,e),t.prototype._parse=function(e,t){var r=this,n=this._builderOptions,o=null;return r_.isFunction(t)?o=this.parse(e,t.apply(this)):r_.isArray(t)||r_.isSet(t)?r_.forEachArray(t,function(t){return o=r.parse(e,t)},this):r_.isMap(t)||r_.isObject(t)?r_.forEachObject(t,function(t,i){if(r_.isFunction(i)&&(i=i.apply(r)),n.ignoreConverters||0!==t.indexOf(n.convert.att))if(n.ignoreConverters||0!==t.indexOf(n.convert.text))if(n.ignoreConverters||0!==t.indexOf(n.convert.cdata))if(n.ignoreConverters||0!==t.indexOf(n.convert.comment))if(n.ignoreConverters||0!==t.indexOf(n.convert.ins)){if((r_.isArray(i)||r_.isSet(i))&&r_.isEmpty(i));else if((r_.isMap(i)||r_.isObject(i))&&r_.isEmpty(i))o=r.element(e,void 0,r.sanitize(t))||o;else if(n.keepNullNodes||null!=i)if(r_.isArray(i)||r_.isSet(i))r_.forEachArray(i,function(n){var i={};i[t]=n,o=r.parse(e,i)},r);else if(r_.isMap(i)||r_.isObject(i)){var a=r.element(e,void 0,r.sanitize(t));a&&(o=a,r.parse(a,i))}else if(null!=i&&""!==i){var a=r.element(e,void 0,r.sanitize(t));a&&(o=a,r.text(a,r._decodeText(r.sanitize(i))))}else o=r.element(e,void 0,r.sanitize(t))||o}else if(r_.isString(i)){var u=i.indexOf(" "),s=-1===u?i:i.substr(0,u),l=-1===u?"":i.substr(u+1);o=r.instruction(e,r.sanitize(s),r.sanitize(l))||o}else r_.isArray(i)||r_.isSet(i)?r_.forEachArray(i,function(t){var n=t.indexOf(" "),i=-1===n?t:t.substr(0,n),a=-1===n?"":t.substr(n+1);o=r.instruction(e,r.sanitize(i),r.sanitize(a))||o},r):r_.forEachObject(i,function(t,n){return o=r.instruction(e,r.sanitize(t),r.sanitize(n))||o},r);else r_.isArray(i)||r_.isSet(i)?r_.forEachArray(i,function(t){return o=r.comment(e,r.sanitize(t))||o},r):o=r.comment(e,r.sanitize(i))||o;else r_.isArray(i)||r_.isSet(i)?r_.forEachArray(i,function(t){return o=r.cdata(e,r.sanitize(t))||o},r):o=r.cdata(e,r.sanitize(i))||o;else o=r_.isMap(i)||r_.isObject(i)?r.parse(e,i):r.text(e,r._decodeText(r.sanitize(i)))||o;else if(t===n.convert.att)if(r_.isArray(i)||r_.isSet(i))throw Error("Invalid attribute: "+i.toString()+". "+e._debugInfo());else r_.forEachObject(i,function(t,n){o=r.attribute(e,void 0,r.sanitize(t),r._decodeAttributeValue(r.sanitize(n)))||o});else o=r.attribute(e,void 0,r.sanitize(t.substr(n.convert.att.length)),r._decodeAttributeValue(r.sanitize(i)))||o},this):(n.keepNullNodes||null!=t)&&(o=this.text(e,this._decodeText(this.sanitize(t)))||o),o||e},t}(nb.BaseReader),nD.ObjectReader=nx.ObjectReader;var nw={},nC=nw&&nw.__extends||(x=function(e,t){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(nw,"__esModule",{value:!0}),nw.JSONReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nC(t,e),t.prototype._parse=function(e,t){return new nx.ObjectReader(this._builderOptions).parse(e,JSON.parse(t))},t}(nb.BaseReader),nD.JSONReader=nw.JSONReader;var nA={},nN=nA&&nA.__extends||(E=function(e,t){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(nA,"__esModule",{value:!0});var nT={},nS={};K(nS,"Type",()=>T,e=>T=e),K(nS,"Schema",()=>S,e=>S=e),K(nS,"FAILSAFE_SCHEMA",()=>F,e=>F=e),K(nS,"JSON_SCHEMA",()=>O,e=>O=e),K(nS,"CORE_SCHEMA",()=>k,e=>k=e),K(nS,"DEFAULT_SAFE_SCHEMA",()=>P,e=>P=e),K(nS,"DEFAULT_FULL_SCHEMA",()=>L,e=>L=e),K(nS,"load",()=>I,e=>I=e),K(nS,"loadAll",()=>B,e=>B=e),K(nS,"safeLoad",()=>q,e=>q=e),K(nS,"safeLoadAll",()=>j,e=>j=e),K(nS,"dump",()=>M,e=>M=e),K(nS,"safeDump",()=>R,e=>R=e),K(nS,"YAMLException",()=>U,e=>U=e),K(nS,"MINIMAL_SCHEMA",()=>G,e=>G=e),K(nS,"SAFE_SCHEMA",()=>z,e=>z=e),K(nS,"DEFAULT_SCHEMA",()=>V,e=>V=e),K(nS,"scan",()=>H,e=>H=e),K(nS,"parse",()=>W,e=>W=e),K(nS,"compose",()=>$,e=>$=e),K(nS,"addConstructor",()=>Y,e=>Y=e);var nF=et("aeC7f"),nO=et("d6Ezz"),nk={},nF=et("aeC7f");function nP(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}nP.prototype.getSnippet=function(e,t){var r,n,o,i,a;if(!this.buffer)return null;for(e=e||4,t=t||75,r="",n=this.position;n>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(n-1));)if(n-=1,this.position-n>t/2-1){r=" ... ",n+=5;break}for(o="",i=this.position;i<this.buffer.length&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i));)if((i+=1)-this.position>t/2-1){o=" ... ",i-=5;break}return a=this.buffer.slice(n,i),nF.repeat(" ",e)+r+a+o+"\n"+nF.repeat(" ",e+this.position-n+r.length)+"^"},nP.prototype.toString=function(e){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),!e&&(t=this.getSnippet())&&(r+=":\n"+t),r},nk=nP;var nL=et("7WEyj"),nI=et("eqI2g"),nB=Object.prototype.hasOwnProperty,nq=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nj=/[\x85\u2028\u2029]/,nM=/[,\[\]\{\}]/,nR=/^(?:!|!!|![a-z\-]+!)$/i,nU=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nG(e){return Object.prototype.toString.call(e)}function nz(e){return 10===e||13===e}function nV(e){return 9===e||32===e}function nH(e){return 9===e||32===e||10===e||13===e}function nW(e){return 44===e||91===e||93===e||123===e||125===e}function n$(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}for(var nY=Array(256),nX=Array(256),nJ=0;nJ<256;nJ++)nY[nJ]=+!!n$(nJ),nX[nJ]=n$(nJ);function nK(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||nI,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function nQ(e,t){return new nO(t,new nk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function nZ(e,t){throw nQ(e,t)}function n0(e,t){e.onWarning&&e.onWarning.call(null,nQ(e,t))}var n1={YAML:function(e,t,r){var n,o,i;null!==e.version&&nZ(e,"duplication of %YAML directive"),1!==r.length&&nZ(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&nZ(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&nZ(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&n0(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;2!==r.length&&nZ(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],nR.test(n)||nZ(e,"ill-formed tag handle (first argument) of the TAG directive"),nB.call(e.tagMap,n)&&nZ(e,'there is a previously declared suffix for "'+n+'" tag handle'),nU.test(o)||nZ(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=o}};function n2(e,t,r,n){var o,i,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(o=0,i=u.length;o<i;o+=1)9===(a=u.charCodeAt(o))||32<=a&&a<=1114111||nZ(e,"expected valid JSON character");else nq.test(u)&&nZ(e,"the stream contains non-printable characters");e.result+=u}}function n3(e,t,r,n){var o,i,a,u;for(nF.isObject(r)||nZ(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,u=(o=Object.keys(r)).length;a<u;a+=1)i=o[a],nB.call(t,i)||(t[i]=r[i],n[i]=!0)}function n8(e,t,r,n,o,i,a,u){var s,l;if(Array.isArray(o))for(s=0,l=(o=Array.prototype.slice.call(o)).length;s<l;s+=1)Array.isArray(o[s])&&nZ(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===nG(o[s])&&(o[s]="[object Object]");if("object"==typeof o&&"[object Object]"===nG(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(s=0,l=i.length;s<l;s+=1)n3(e,t,i[s],r);else n3(e,t,i,r);else!e.json&&!nB.call(r,o)&&nB.call(t,o)&&(e.line=a||e.line,e.position=u||e.position,nZ(e,"duplicated mapping key")),t[o]=i,delete r[o];return t}function n5(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):nZ(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function n6(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);0!==o;){for(;nV(o);)o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o)if(nz(o))for(n5(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return -1!==r&&0!==n&&e.lineIndent<r&&n0(e,"deficient indentation"),n}function n9(e){var t,r=e.position;return!!((45===(t=e.input.charCodeAt(r))||46===t)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,0===(t=e.input.charCodeAt(r))||nH(t)))||!1}function n4(e,t){1===t?e.result+=" ":t>1&&(e.result+=nF.repeat("\n",t-1))}function n7(e,t){var r,n,o=e.tag,i=e.anchor,a=[],u=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),n=e.input.charCodeAt(e.position);0!==n&&45===n&&nH(e.input.charCodeAt(e.position+1));){if(u=!0,e.position++,n6(e,!0,-1)&&e.lineIndent<=t){a.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,oe(e,t,3,!1,!0),a.push(e.result),n6(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)nZ(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!u&&(e.tag=o,e.anchor=i,e.kind="sequence",e.result=a,!0)}function oe(e,t,r,n,o){var i,a,u,s,l,c,p,d,f=1,h=!1,m=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=a=u=4===r||3===r,n&&n6(e,!0,-1)&&(h=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;function(e){var t,r,n,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&nZ(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,r="!!",o=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do o=e.input.charCodeAt(++e.position);while(0!==o&&62!==o)e.position<e.length?(n=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):nZ(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!nH(o);)33===o&&(a?nZ(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),nR.test(r)||nZ(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),nM.test(n)&&nZ(e,"tag suffix cannot contain flow indicator characters")}return n&&!nU.test(n)&&nZ(e,"tag name cannot contain such characters: "+n),i?e.tag=n:nB.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:nZ(e,'undeclared tag handle "'+r+'"'),!0}(e)||function(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&nZ(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!nH(r)&&!nW(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&nZ(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)n6(e,!0,-1)?(h=!0,u=i,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):u=!1;if(u&&(u=h||o),(1===f||4===r)&&(p=1===r||2===r?t:t+1,d=e.position-e.lineStart,1===f?u&&(n7(e,d)||function(e,t,r){var n,o,i,a,u,s=e.tag,l=e.anchor,c={},p={},d=null,f=null,h=null,m=!1,D=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),u=e.input.charCodeAt(e.position);0!==u;){if(n=e.input.charCodeAt(e.position+1),i=e.line,a=e.position,(63===u||58===u)&&nH(n))63===u?(m&&(n8(e,c,p,d,f,null),d=f=h=null),D=!0,m=!0,o=!0):m?(m=!1,o=!0):nZ(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=n;else if(oe(e,r,2,!1,!0))if(e.line===i){for(u=e.input.charCodeAt(e.position);nV(u);)u=e.input.charCodeAt(++e.position);if(58===u)nH(u=e.input.charCodeAt(++e.position))||nZ(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(n8(e,c,p,d,f,null),d=f=h=null),D=!0,m=!1,o=!1,d=e.tag,f=e.result;else{if(!D)return e.tag=s,e.anchor=l,!0;nZ(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!D)return e.tag=s,e.anchor=l,!0;nZ(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else break;if((e.line===i||e.lineIndent>t)&&(oe(e,t,4,!0,o)&&(m?f=e.result:h=e.result),m||(n8(e,c,p,d,f,h,i,a),d=f=h=null),n6(e,!0,-1),u=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==u)nZ(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&n8(e,c,p,d,f,null),D&&(e.tag=s,e.anchor=l,e.kind="mapping",e.result=c),D}(e,d,p))||function(e,t){var r,n,o,i,a,u,s,l,c,p,d=!0,f=e.tag,h=e.anchor,m={};if(91===(p=e.input.charCodeAt(e.position)))o=93,u=!1,n=[];else{if(123!==p)return!1;o=125,u=!0,n={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=n),p=e.input.charCodeAt(++e.position);0!==p;){if(n6(e,!0,t),(p=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=f,e.anchor=h,e.kind=u?"mapping":"sequence",e.result=n,!0;d||nZ(e,"missed comma between flow collection entries"),l=s=c=null,i=a=!1,63===p&&nH(e.input.charCodeAt(e.position+1))&&(i=a=!0,e.position++,n6(e,!0,t)),r=e.line,oe(e,t,1,!1,!0),l=e.tag,s=e.result,n6(e,!0,t),p=e.input.charCodeAt(e.position),(a||e.line===r)&&58===p&&(i=!0,p=e.input.charCodeAt(++e.position),n6(e,!0,t),oe(e,t,1,!1,!0),c=e.result),u?n8(e,n,m,l,s,c):i?n.push(n8(e,null,m,l,s,c)):n.push(s),n6(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(d=!0,p=e.input.charCodeAt(++e.position)):d=!1}nZ(e,"unexpected end of the stream within a flow collection")}(e,p)?m=!0:(a&&function(e,t){var r,n,o,i,a,u=1,s=!1,l=!1,c=t,p=0,d=!1;if(124===(a=e.input.charCodeAt(e.position)))o=!1;else{if(62!==a)return!1;o=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===u?u=43===a?3:2:nZ(e,"repeat of a chomping mode identifier");else if((i=48<=(r=a)&&r<=57?r-48:-1)>=0)0===i?nZ(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?nZ(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0);else break;if(nV(a)){do a=e.input.charCodeAt(++e.position);while(nV(a))if(35===a)do a=e.input.charCodeAt(++e.position);while(!nz(a)&&0!==a)}for(;0!==a;){for(n5(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!l||e.lineIndent<c)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>c&&(c=e.lineIndent),nz(a)){p++;continue}if(e.lineIndent<c){3===u?e.result+=nF.repeat("\n",s?1+p:p):1===u&&s&&(e.result+="\n");break}for(o?nV(a)?(d=!0,e.result+=nF.repeat("\n",s?1+p:p)):d?(d=!1,e.result+=nF.repeat("\n",p+1)):0===p?s&&(e.result+=" "):e.result+=nF.repeat("\n",p):e.result+=nF.repeat("\n",s?1+p:p),s=!0,l=!0,p=0,n=e.position;!nz(a)&&0!==a;)a=e.input.charCodeAt(++e.position);n2(e,n,e.position,!1)}return!0}(e,p)||function(e,t){var r,n,o;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(n2(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,o=e.position}else nz(r)?(n2(e,n,o,!0),n4(e,n6(e,!1,t)),n=o=e.position):e.position===e.lineStart&&n9(e)?nZ(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);nZ(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var r,n,o,i,a,u,s,l;if(34!==(u=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(u=e.input.charCodeAt(e.position));)if(34===u)return n2(e,r,e.position,!0),e.position++,!0;else if(92===u){if(n2(e,r,e.position,!0),nz(u=e.input.charCodeAt(++e.position)))n6(e,!1,t);else if(u<256&&nY[u])e.result+=nX[u],e.position++;else if((a=120===(s=u)?2:117===s?4:8*(85===s))>0){for(o=a,i=0;o>0;o--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(u=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:nZ(e,"expected hexadecimal character");e.result+=(l=i)<=65535?String.fromCharCode(l):String.fromCharCode((l-65536>>10)+55296,(l-65536&1023)+56320),e.position++}else nZ(e,"unknown escape sequence");r=n=e.position}else nz(u)?(n2(e,r,n,!0),n4(e,n6(e,!1,t)),r=n=e.position):e.position===e.lineStart&&n9(e)?nZ(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);nZ(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?m=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!nH(n)&&!nW(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&nZ(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),nB.call(e.anchorMap,r)||nZ(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],n6(e,!0,-1),!0}(e)?function(e,t,r){var n,o,i,a,u,s,l,c,p=e.kind,d=e.result;if(nH(c=e.input.charCodeAt(e.position))||nW(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(nH(n=e.input.charCodeAt(e.position+1))||r&&nW(n)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(nH(n=e.input.charCodeAt(e.position+1))||r&&nW(n))break}else if(35===c){if(nH(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&n9(e)||r&&nW(c))break;else if(nz(c)){if(u=e.line,s=e.lineStart,l=e.lineIndent,n6(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=i,e.line=u,e.lineStart=s,e.lineIndent=l;break}a&&(n2(e,o,i,!1),n4(e,e.line-u),o=i=e.position,a=!1),nV(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return n2(e,o,i,!1),!!e.result||(e.kind=p,e.result=d,!1)}(e,p,1===r)&&(m=!0,null===e.tag&&(e.tag="?")):(m=!0,(null!==e.tag||null!==e.anchor)&&nZ(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(m=u&&n7(e,d))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&nZ(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,l=e.implicitTypes.length;s<l;s+=1)if((c=e.implicitTypes[s]).resolve(e.result)){e.result=c.construct(e.result),e.tag=c.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else nB.call(e.typeMap[e.kind||"fallback"],e.tag)?(c=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&c.kind!==e.kind&&nZ(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+c.kind+'", not "'+e.kind+'"'),c.resolve(e.result)?(e.result=c.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):nZ(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):nZ(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function ot(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new nK(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,nZ(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)!function(e){var t,r,n,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(o=e.input.charCodeAt(e.position))&&(n6(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===o);){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!nH(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&nZ(e,"directive name must not be less than one character in length");0!==o;){for(;nV(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!nz(o))break}if(nz(o))break;for(t=e.position;0!==o&&!nH(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&n5(e),nB.call(n1,r)?n1[r](e,r,n):n0(e,'unknown document directive "'+r+'"')}if(n6(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,n6(e,!0,-1)):a&&nZ(e,"directives end mark is expected"),oe(e,e.lineIndent-1,4,!1,!0),n6(e,!0,-1),e.checkLineBreaks&&nj.test(e.input.slice(i,e.position))&&n0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&n9(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,n6(e,!0,-1));return}e.position<e.length-1&&nZ(e,"end of the stream or a document separator is expected")}(r);return r.documents}function or(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=ot(e,r);if("function"!=typeof t)return n;for(var o=0,i=n.length;o<i;o+=1)t(n[o])}function on(e,t){var r=ot(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new nO("expected a single document in the stream, but found more")}}var nF=et("aeC7f"),nO=et("d6Ezz"),nI=et("eqI2g"),nL=et("7WEyj"),oo=Object.prototype.toString,oi=Object.prototype.hasOwnProperty,oa={};oa[0]="\\0",oa[7]="\\a",oa[8]="\\b",oa[9]="\\t",oa[10]="\\n",oa[11]="\\v",oa[12]="\\f",oa[13]="\\r",oa[27]="\\e",oa[34]='\\"',oa[92]="\\\\",oa[133]="\\N",oa[160]="\\_",oa[8232]="\\L",oa[8233]="\\P";var ou=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function os(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=0xffffffff)r="U",n=8;else throw new nO("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+nF.repeat("0",n-t.length)+t}function ol(e){this.schema=e.schema||nI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=nF.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,o,i,a,u,s;if(null===t)return{};for(o=0,r={},i=(n=Object.keys(t)).length;o<i;o+=1)u=String(t[a=n[o]]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(s=e.compiledTypeMap.fallback[a])&&oi.call(s.styleAliases,u)&&(u=s.styleAliases[u]),r[a]=u;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function oc(e,t){for(var r,n=nF.repeat(" ",t),o=0,i=-1,a="",u=e.length;o<u;)-1===(i=e.indexOf("\n",o))?(r=e.slice(o),o=u):(r=e.slice(o,i+1),o=i+1),r.length&&"\n"!==r&&(a+=n),a+=r;return a}function op(e,t){return"\n"+nF.repeat(" ",e.indent*t)}function od(e){return 32===e||9===e}function of(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function oh(e,t){var r;return of(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&of(r=t)&&!od(r)&&65279!==r&&13!==r&&10!==r)}function om(e){return/^\n* /.test(e)}function oD(e,t){var r=om(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function og(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function oy(e,t){if(""===e||" "===e[0])return e;for(var r,n,o=/ [^ ]/g,i=0,a=0,u=0,s="";r=o.exec(e);)(u=r.index)-i>t&&(n=a>i?a:u,s+="\n"+e.slice(i,n),i=n+1),a=u;return s+="\n",e.length-i>t&&a>i?s+=e.slice(i,a)+"\n"+e.slice(a+1):s+=e.slice(i),s.slice(1)}function o_(e,t,r){var n,o,i,a,u,s;for(i=0,a=(o=r?e.explicitTypes:e.implicitTypes).length;i<a;i+=1)if(((u=o[i]).instanceOf||u.predicate)&&(!u.instanceOf||"object"==typeof t&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(s=e.styleMap[u.tag]||u.defaultStyle,"[object Function]"===oo.call(u.represent))n=u.represent(t,s);else if(oi.call(u.represent,s))n=u.represent[s](t,s);else throw new nO("!<"+u.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function ov(e,t){var r=new ol(t=t||{});return(r.noRefs||function(e,t){var r,n,o=[],i=[];for(function e(t,r,n){var o,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=r.indexOf(t)))-1===n.indexOf(i)&&n.push(i);else if(r.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)e(t[i],r,n);else for(i=0,a=(o=Object.keys(t)).length;i<a;i+=1)e(t[o[i]],r,n)}(e,o,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(o[i[r]]);t.usedDuplicates=Array(n)}(e,r),function e(t,r,n,o,i,a){t.tag=null,t.dump=n,o_(t,n,!1)||o_(t,n,!0);var u=oo.call(t.dump);o&&(o=t.flowLevel<0||t.flowLevel>r);var s,l,c="[object Object]"===u||"[object Array]"===u;if(c&&(l=-1!==(s=t.duplicates.indexOf(n))),(null!==t.tag&&"?"!==t.tag||l||2!==t.indent&&r>0)&&(i=!1),l&&t.usedDuplicates[s])t.dump="*ref_"+s;else{if(c&&l&&!t.usedDuplicates[s]&&(t.usedDuplicates[s]=!0),"[object Object]"===u)o&&0!==Object.keys(t.dump).length?(!function(t,r,n,o){var i,a,u,s,l,c,p="",d=t.tag,f=Object.keys(n);if(!0===t.sortKeys)f.sort();else if("function"==typeof t.sortKeys)f.sort(t.sortKeys);else if(t.sortKeys)throw new nO("sortKeys must be a boolean or a function");for(i=0,a=f.length;i<a;i+=1)c="",o&&0===i||(c+=op(t,r)),s=n[u=f[i]],e(t,r+1,u,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,l&&(c+=op(t,r)),e(t,r+1,s,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?c+=":":c+=": ",c+=t.dump,p+=c));t.tag=d,t.dump=p||"{}"}(t,r,t.dump,i),l&&(t.dump="&ref_"+s+t.dump)):(!function(t,r,n){var o,i,a,u,s,l="",c=t.tag,p=Object.keys(n);for(o=0,i=p.length;o<i;o+=1)s="",0!==o&&(s+=", "),t.condenseFlow&&(s+='"'),u=n[a=p[o]],e(t,r,a,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),e(t,r,u,!1,!1)&&(s+=t.dump,l+=s));t.tag=c,t.dump="{"+l+"}"}(t,r,t.dump),l&&(t.dump="&ref_"+s+" "+t.dump));else if("[object Array]"===u){var p,d=t.noArrayIndent&&r>0?r-1:r;o&&0!==t.dump.length?(!function(t,r,n,o){var i,a,u="",s=t.tag;for(i=0,a=n.length;i<a;i+=1)e(t,r+1,n[i],!0,!0)&&(o&&0===i||(u+=op(t,r)),t.dump&&10===t.dump.charCodeAt(0)?u+="-":u+="- ",u+=t.dump);t.tag=s,t.dump=u||"[]"}(t,d,t.dump,i),l&&(t.dump="&ref_"+s+t.dump)):(!function(t,r,n){var o,i,a="",u=t.tag;for(o=0,i=n.length;o<i;o+=1)e(t,r,n[o],!1,!1)&&(0!==o&&(a+=","+(t.condenseFlow?"":" ")),a+=t.dump);t.tag=u,t.dump="["+a+"]"}(t,d,t.dump),l&&(t.dump="&ref_"+s+" "+t.dump))}else if("[object String]"===u)"?"!==t.tag&&(p=t.dump,t.dump=function(){if(0===p.length)return"''";if(!t.noCompatMode&&-1!==ou.indexOf(p))return"'"+p+"'";var e=t.indent*Math.max(1,r),n=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-e);switch(function(e,t,r,n,o){var i,a,u,s,l=!1,c=!1,p=-1!==n,d=-1,f=of(i=e.charCodeAt(0))&&65279!==i&&!od(i)&&45!==i&&63!==i&&58!==i&&44!==i&&91!==i&&93!==i&&123!==i&&125!==i&&35!==i&&38!==i&&42!==i&&33!==i&&124!==i&&61!==i&&62!==i&&39!==i&&34!==i&&37!==i&&64!==i&&96!==i&&!od(e.charCodeAt(e.length-1));if(t)for(a=0;a<e.length;a++){if(!of(u=e.charCodeAt(a)))return 5;s=a>0?e.charCodeAt(a-1):null,f=f&&oh(u,s)}else{for(a=0;a<e.length;a++){if(10===(u=e.charCodeAt(a)))l=!0,p&&(c=c||a-d-1>n&&" "!==e[d+1],d=a);else if(!of(u))return 5;s=a>0?e.charCodeAt(a-1):null,f=f&&oh(u,s)}c=c||p&&a-d-1>n&&" "!==e[d+1]}return l||c?r>9&&om(e)?5:c?4:3:f&&!o(e)?1:2}(p,a||t.flowLevel>-1&&r>=t.flowLevel,t.indent,n,function(e){var r,n;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1})){case 1:return p;case 2:return"'"+p.replace(/'/g,"''")+"'";case 3:return"|"+oD(p,t.indent)+og(oc(p,e));case 4:return">"+oD(p,t.indent)+og(oc(function(e,t){for(var r,n,o,i=/(\n+)([^\n]*)/g,a=(i.lastIndex=r=-1!==(r=e.indexOf("\n"))?r:e.length,oy(e.slice(0,r),t)),u="\n"===e[0]||" "===e[0];o=i.exec(e);){var s=o[1],l=o[2];n=" "===l[0],a+=s+(u||n||""===l?"":"\n")+oy(l,t),u=n}return a}(p,n),e));case 5:return'"'+function(e){for(var t,r,n,o="",i=0;i<e.length;i++){if((t=e.charCodeAt(i))>=55296&&t<=56319&&(r=e.charCodeAt(i+1))>=56320&&r<=57343){o+=os((t-55296)*1024+r-56320+65536),i++;continue}o+=!(n=oa[t])&&of(t)?e[i]:n||os(t)}return o}(p,n)+'"';default:throw new nO("impossible error: invalid scalar style")}}());else{if(t.skipInvalid)return!1;throw new nO("unacceptable kind of an object to dump "+u)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}(r,0,e,!0,!0))?r.dump+"\n":""}function ob(e){return function(){throw Error("Function "+e+" is deprecated and cannot be used.")}}T=et("k5aGh"),S=et("bPRG3"),F=et("hWFej"),O=et("jON1e"),k=et("hCN6d"),P=et("7WEyj"),L=et("eqI2g"),I=on,B=or,q=function(e,t){return on(e,nF.extend({schema:nL},t))},j=function(e,t,r){return"object"==typeof t&&null!==t&&void 0===r&&(r=t,t=null),or(e,t,nF.extend({schema:nL},r))},M=ov,R=function(e,t){return ov(e,nF.extend({schema:nL},t))},U=et("d6Ezz"),G=et("hWFej"),z=et("7WEyj"),V=et("eqI2g"),H=ob("scan"),W=ob("parse"),$=ob("compose"),Y=ob("addConstructor"),nT=nS,nA.YAMLReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nN(t,e),t.prototype._parse=function(e,t){var r=nT.safeLoad(t);if(void 0===r)throw Error("Unable to parse YAML document.");return new nx.ObjectReader(this._builderOptions).parse(e,r)},t}(nb.BaseReader),nD.YAMLReader=nA.YAMLReader,rm.XMLBuilderImpl=function(){function e(e){this._domNode=e}return Object.defineProperty(e.prototype,"node",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.set=function(e){return this._options=r_.applyDefaults(r_.applyDefaults(this._options,e,!0),ry.DefaultBuilderOptions),this},e.prototype.ele=function(t,r,n){if(r_.isObject(t))return new nD.ObjectReader(this._options).parse(this,t);if(null!==t&&/^\s*</.test(t))return new nD.XMLReader(this._options).parse(this,t);if(null!==t&&/^\s*[\{\[]/.test(t))return new nD.JSONReader(this._options).parse(this,t);if(null!==t&&/^(\s*|(#.*)|(%.*))*---/.test(t))return new nD.YAMLReader(this._options).parse(this,t);if((null===t||r_.isString(t))&&r_.isString(r))u=(o=rD([t,r,n],3))[0],s=o[1],l=o[2];else if(null!==t)u=(i=rD([void 0,t,r_.isObject(r)?r:void 0],3))[0],s=i[1],l=i[2];else throw Error("Element name cannot be null. "+this._debugInfo());if(l&&(l=r_.getValue(l)),u=(a=rD(this._extractNamespace(rH.sanitizeInput(u,this._options.invalidCharReplacement),rH.sanitizeInput(s,this._options.invalidCharReplacement),!0),2))[0],s=a[1],void 0===u){var o,i,a,u,s,l,c=rD(rL.namespace_extractQName(s),1)[0];u=this.node.lookupNamespaceURI(c)}var p=null!=u?this._doc.createElementNS(u,s):this._doc.createElement(s);this.node.appendChild(p);var d=new e(p),f=this._doc.doctype;if(p===this._doc.documentElement&&null!==f){var h=this._doc.implementation.createDocumentType(this._doc.documentElement.tagName,f.publicId,f.systemId);this._doc.replaceChild(h,f)}return l&&!r_.isEmpty(l)&&d.att(l),d},e.prototype.remove=function(){var e=this.up();return e.node.removeChild(this.node),e},e.prototype.att=function(e,t,r){var n,o,i,a,u,s,l=this;if(r_.isMap(e)||r_.isObject(e))return r_.forEachObject(e,function(e,t){return l.att(e,t)},this),this;if(null!=e&&(e=r_.getValue(e+"")),null!=t&&(t=r_.getValue(t+"")),null!=r&&(r=r_.getValue(r+"")),(null===e||r_.isString(e))&&r_.isString(t)&&(null===r||r_.isString(r)))a=(n=rD([e,t,r],3))[0],u=n[1],s=n[2];else if(r_.isString(e)&&(null==t||r_.isString(t)))a=(o=rD([void 0,e,t],3))[0],u=o[1],s=o[2];else throw Error("Attribute name and value not specified. "+this._debugInfo());if(this._options.keepNullAttributes&&null==s)s="";else if(null==s)return this;if(!rj.Guard.isElementNode(this.node))throw Error("An attribute can only be assigned to an element node.");var c=this.node;a=(i=rD(this._extractNamespace(a,u,!1),2))[0],u=i[1],u=rH.sanitizeInput(u,this._options.invalidCharReplacement),a=rH.sanitizeInput(a,this._options.invalidCharReplacement),s=rH.sanitizeInput(s,this._options.invalidCharReplacement);var p=rD(rL.namespace_extractQName(u),2),d=p[0],f=p[1],h=rD(rL.namespace_extractQName(c.prefix?c.prefix+":"+c.localName:c.localName),1)[0],m=null;return"xmlns"===d?(a=rP.namespace.XMLNS,null===c.namespaceURI&&h===f&&(m=s)):null===d&&"xmlns"===f&&null===h&&(a=rP.namespace.XMLNS,m=s),null!==m&&(this._updateNamespace(m),c=this.node),void 0!==a?c.setAttributeNS(a,u,s):c.setAttribute(u,s),this},e.prototype.removeAtt=function(e,t){var r,n,o=this;if(!rj.Guard.isElementNode(this.node))throw Error("An attribute can only be removed from an element node.");if(e=r_.getValue(e),void 0!==t&&(t=r_.getValue(t)),null!==e&&void 0===t)n=e;else if((null===e||r_.isString(e))&&void 0!==t)r=e,n=t;else throw Error("Attribute namespace must be a string. "+this._debugInfo());return r_.isArray(n)||r_.isSet(n)?r_.forEachArray(n,function(e){return void 0===r?o.removeAtt(e):o.removeAtt(r,e)},this):void 0!==r?(n=rH.sanitizeInput(n,this._options.invalidCharReplacement),r=rH.sanitizeInput(r,this._options.invalidCharReplacement),this.node.removeAttributeNS(r,n)):(n=rH.sanitizeInput(n,this._options.invalidCharReplacement),this.node.removeAttribute(n)),this},e.prototype.txt=function(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";var t=this._doc.createTextNode(rH.sanitizeInput(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this},e.prototype.com=function(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";var t=this._doc.createComment(rH.sanitizeInput(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this},e.prototype.dat=function(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";var t=this._doc.createCDATASection(rH.sanitizeInput(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this},e.prototype.ins=function(e,t){var r=this;if(void 0===t&&(t=""),null==t)if(!this._options.keepNullNodes)return this;else t="";if(r_.isArray(e)||r_.isSet(e))r_.forEachArray(e,function(e){var t=(e+="").indexOf(" "),n=-1===t?e:e.substr(0,t),o=-1===t?"":e.substr(t+1);r.ins(n,o)},this);else if(r_.isMap(e)||r_.isObject(e))r_.forEachObject(e,function(e,t){return r.ins(e,t)},this);else{var n=this._doc.createProcessingInstruction(rH.sanitizeInput(e,this._options.invalidCharReplacement),rH.sanitizeInput(t,this._options.invalidCharReplacement));this.node.appendChild(n)}return this},e.prototype.dec=function(e){return this._options.version=e.version||"1.0",this._options.encoding=e.encoding,this._options.standalone=e.standalone,this},e.prototype.dtd=function(e){var t=rH.sanitizeInput(e&&e.name||(this._doc.documentElement?this._doc.documentElement.tagName:"ROOT"),this._options.invalidCharReplacement),r=rH.sanitizeInput(e&&e.pubID||"",this._options.invalidCharReplacement),n=rH.sanitizeInput(e&&e.sysID||"",this._options.invalidCharReplacement);if(null!==this._doc.documentElement&&t!==this._doc.documentElement.tagName)throw Error("DocType name does not match document element name.");var o=this._doc.implementation.createDocumentType(t,r,n);return null!==this._doc.doctype?this._doc.replaceChild(o,this._doc.doctype):this._doc.insertBefore(o,this._doc.documentElement),this},e.prototype.import=function(t){var r,n,o=this._domNode,i=this._doc,a=t.node;if(rj.Guard.isDocumentNode(a)){var u=a.documentElement;if(null===u)throw Error("Imported document has no document element node. "+this._debugInfo());var s=i.importNode(u,!0);o.appendChild(s);var l=rD(rL.namespace_extractQName(s.prefix?s.prefix+":"+s.localName:s.localName),1)[0],c=o.lookupNamespaceURI(l);new e(s)._updateNamespace(c)}else if(rj.Guard.isDocumentFragmentNode(a))try{for(var p=rg(a.childNodes),d=p.next();!d.done;d=p.next()){var f=d.value,s=i.importNode(f,!0);if(o.appendChild(s),rj.Guard.isElementNode(s)){var l=rD(rL.namespace_extractQName(s.prefix?s.prefix+":"+s.localName:s.localName),1)[0],c=o.lookupNamespaceURI(l);new e(s)._updateNamespace(c)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}else{var s=i.importNode(a,!0);if(o.appendChild(s),rj.Guard.isElementNode(s)){var l=rD(rL.namespace_extractQName(s.prefix?s.prefix+":"+s.localName:s.localName),1)[0],c=o.lookupNamespaceURI(l);new e(s)._updateNamespace(c)}}return this},e.prototype.doc=function(){if(!this._doc._isFragment)return new e(this._doc);for(var t=this.node;t&&t.nodeType!==rA.NodeType.DocumentFragment;)t=t.parentNode;if(null===t)throw Error("Node has no parent node while searching for document fragment ancestor. "+this._debugInfo());return new e(t)},e.prototype.root=function(){var t=this._doc.documentElement;if(!t)throw Error("Document root element is null. "+this._debugInfo());return new e(t)},e.prototype.up=function(){var t=this._domNode.parentNode;if(!t)throw Error("Parent node is null. "+this._debugInfo());return new e(t)},e.prototype.prev=function(){var t=this._domNode.previousSibling;if(!t)throw Error("Previous sibling node is null. "+this._debugInfo());return new e(t)},e.prototype.next=function(){var t=this._domNode.nextSibling;if(!t)throw Error("Next sibling node is null. "+this._debugInfo());return new e(t)},e.prototype.first=function(){var t=this._domNode.firstChild;if(!t)throw Error("First child node is null. "+this._debugInfo());return new e(t)},e.prototype.last=function(){var t=this._domNode.lastChild;if(!t)throw Error("Last child node is null. "+this._debugInfo());return new e(t)},e.prototype.each=function(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);for(var i=this._getFirstDescendantNode(this._domNode,r,n);i[0];){var a=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2]);t.call(o,new e(i[0]),i[1],i[2]),i=a}return this},e.prototype.map=function(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=[];return this.each(function(t,r,i){return o.push(e.call(n,t,r,i))},t,r),o},e.prototype.reduce=function(e,t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);var i=t;return this.each(function(t,r,n){return i=e.call(o,i,t,r,n)},r,n),i},e.prototype.find=function(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);for(var i=this._getFirstDescendantNode(this._domNode,r,n);i[0];){var a=new e(i[0]);if(t.call(o,a,i[1],i[2]))return a;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}},e.prototype.filter=function(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=[];return this.each(function(t,r,i){e.call(n,t,r,i)&&o.push(t)},t,r),o},e.prototype.every=function(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);for(var i=this._getFirstDescendantNode(this._domNode,r,n);i[0];){var a=new e(i[0]);if(!t.call(o,a,i[1],i[2]))return!1;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}return!0},e.prototype.some=function(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);for(var i=this._getFirstDescendantNode(this._domNode,r,n);i[0];){var a=new e(i[0]);if(t.call(o,a,i[1],i[2]))return!0;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}return!1},e.prototype.toArray=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=[];return this.each(function(e){return r.push(e)},e,t),r},e.prototype.toString=function(e){return void 0===(e=e||{}).format&&(e.format="xml"),this._serialize(e)},e.prototype.toObject=function(e){return void 0===(e=e||{}).format&&(e.format="object"),this._serialize(e)},e.prototype.end=function(e){return void 0===(e=e||{}).format&&(e.format="xml"),this.doc()._serialize(e)},e.prototype._getFirstDescendantNode=function(e,t,r){return t?[this._domNode,0,0]:r?this._getNextDescendantNode(e,e,r,0,0):[this._domNode.firstChild,0,1]},e.prototype._getNextDescendantNode=function(e,t,r,n,o){if(r){if(t.firstChild)return[t.firstChild,0,o+1];if(t===e)return[null,-1,-1];if(t.nextSibling)return[t.nextSibling,n+1,o];for(var i=t.parentNode;i&&i!==e;){if(i.nextSibling)return[i.nextSibling,rL.tree_index(i.nextSibling),o-1];i=i.parentNode,o--}}else if(e===t)return[t.firstChild,0,o+1];else return[t.nextSibling,n+1,o];return[null,-1,-1]},e.prototype._serialize=function(e){if("xml"===e.format){var t=new rv.XMLWriter(this._options,e);return t.serialize(this.node)}if("map"===e.format){var t=new rv.MapWriter(this._options,e);return t.serialize(this.node)}if("object"===e.format){var t=new rv.ObjectWriter(this._options,e);return t.serialize(this.node)}if("json"===e.format){var t=new rv.JSONWriter(this._options,e);return t.serialize(this.node)}if("yaml"===e.format){var t=new rv.YAMLWriter(this._options,e);return t.serialize(this.node)}else throw Error("Invalid writer format: "+e.format+". "+this._debugInfo())},e.prototype._extractNamespace=function(e,t,r){var n=t.indexOf("@");if(n>0&&(void 0===e&&(e=t.slice(n+1)),t=t.slice(0,n)),void 0===e)e=r?this._options.defaultNamespace.ele:this._options.defaultNamespace.att;else if(null!==e&&"@"===e[0]){var o=e.slice(1);if(void 0===(e=this._options.namespaceAlias[o]))throw Error("Namespace alias `"+o+"` is not defined. "+this._debugInfo())}return[e,t]},e.prototype._updateNamespace=function(t){var r,n,o,i,a=this._domNode;if(rj.Guard.isElementNode(a)&&null!==t&&a.namespaceURI!==t){var u=rD(rL.namespace_extractQName(a.prefix?a.prefix+":"+a.localName:a.localName),2),s=u[0],l=u[1],c=rL.create_element(this._doc,l,t,s);try{for(var p=rg(a.attributes),d=p.next();!d.done;d=p.next()){var f=d.value,h=f.prefix?f.prefix+":"+f.localName:f.localName,m=rD(rL.namespace_extractQName(h),1)[0],D=f.namespaceURI;null===D&&null!==m&&(D=a.lookupNamespaceURI(m)),null===D?c.setAttribute(h,f.value):c.setAttributeNS(D,h,f.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}var g=a.parentNode;if(null===g)throw Error("Parent node is null."+this._debugInfo());g.replaceChild(c,a),this._domNode=c;try{for(var y=rg(a.childNodes),_=y.next();!_.done;_=y.next()){var v=_.value.cloneNode(!0);if(c.appendChild(v),rj.Guard.isElementNode(v)){var b=rD(rL.namespace_extractQName(v.prefix?v.prefix+":"+v.localName:v.localName),1)[0],x=c.lookupNamespaceURI(b);new e(v)._updateNamespace(x)}}}catch(e){o={error:e}}finally{try{_&&!_.done&&(i=y.return)&&i.call(y)}finally{if(o)throw o.error}}}},Object.defineProperty(e.prototype,"_doc",{get:function(){var e=this.node;if(rj.Guard.isDocumentNode(e))return e;var t=e.ownerDocument;if(!t)throw Error("Owner document is null. "+this._debugInfo());return t},enumerable:!0,configurable:!0}),e.prototype._debugInfo=function(e){var t=this.node,r=t.parentNode;e=e||t.nodeName;var n=r?r.nodeName:"";return n?"node: <"+e+">, parent: <"+n+">":"node: <"+e+">"},Object.defineProperty(e.prototype,"_options",{get:function(){var e=this._doc;if(void 0===e._xmlBuilderOptions)throw Error("Builder options is not set.");return e._xmlBuilderOptions},set:function(e){this._doc._xmlBuilderOptions=e},enumerable:!0,configurable:!0}),e}(),rh.XMLBuilderImpl=rm.XMLBuilderImpl;var ox={},oE=ox&&ox.__extends||(w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ow=ox&&ox.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},oC=ox&&ox.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(ox,"__esModule",{value:!0});var r_=et("jDPAV"),oA={};Object.defineProperty(oA,"__esModule",{value:!0});var r_=et("jDPAV"),rj=et("cnpfV");function oN(e,t){var r=oS(void 0===e||oT(e)?e:ry.DefaultBuilderOptions),n=oT(e)?t:e,o=rH.createDocument();oF(o,r);var i=new rh.XMLBuilderImpl(o);return void 0!==n&&i.ele(n),i}function oT(e){if(!r_.isPlainObject(e))return!1;for(var t in e)if(e.hasOwnProperty(t)&&!ry.XMLBuilderOptionKeys.has(t))return!1;return!0}function oS(e){void 0===e&&(e={});var t=r_.applyDefaults(e,ry.DefaultBuilderOptions);if(0===t.convert.att.length||0===t.convert.ins.length||0===t.convert.text.length||0===t.convert.cdata.length||0===t.convert.comment.length)throw Error("JS object converter strings cannot be zero length.");return t}function oF(e,t,r){e._xmlBuilderOptions=t,e._isFragment=r}oA.builder=function(e,t){var r=oS(oT(e)?e:ry.DefaultBuilderOptions),n=rj.Guard.isNode(e)||r_.isArray(e)?e:t;if(void 0===n)throw Error("Invalid arguments.");if(r_.isArray(n)){for(var o=[],i=0;i<n.length;i++){var a=new rh.XMLBuilderImpl(n[i]);a.set(r),o.push(a)}return o}var u=new rh.XMLBuilderImpl(n);return u.set(r),u},oA.create=oN,oA.fragment=function(e,t){var r=oS(void 0===e||oT(e)?e:ry.DefaultBuilderOptions),n=oT(e)?t:e,o=rH.createDocument();oF(o,r,!0);var i=new rh.XMLBuilderImpl(o.createDocumentFragment());return void 0!==n&&i.ele(n),i},oA.convert=function(e,t,r){var n,o,i;return oT(e)&&void 0!==t?(n=e,o=t,i=r):(n=ry.DefaultBuilderOptions,o=e,i=t||void 0),oN(n,o).end(i)};var rL=et("eOMTm"),rP=et("b9DcM"),rj=et("cnpfV"),oO={},ok=oO&&oO.__extends||(C=function(e,t){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(oO,"__esModule",{value:!0});var oP={};Object.defineProperty(oP,"__esModule",{value:!0}),oP.BaseCBWriter=function(e){this.level=0,this._builderOptions=e,this._writerOptions=e},oO.XMLCBWriter=function(e){function t(t){var r=e.call(this,t)||this;return r._lineLength=0,r}return ok(t,e),t.prototype.frontMatter=function(){return""},t.prototype.declaration=function(e,t,r){var n=this._beginLine()+"<?xml";return n+=' version="'+e+'"',void 0!==t&&(n+=' encoding="'+t+'"'),void 0!==r&&(n+=' standalone="'+(r?"yes":"no")+'"'),n+="?>"},t.prototype.docType=function(e,t,r){var n=this._beginLine();return t&&r?n+="<!DOCTYPE "+e+' PUBLIC "'+t+'" "'+r+'">':t?n+="<!DOCTYPE "+e+' PUBLIC "'+t+'">':r?n+="<!DOCTYPE "+e+' SYSTEM "'+r+'">':n+="<!DOCTYPE "+e+">",n},t.prototype.comment=function(e){return this._beginLine()+"\x3c!--"+e+"--\x3e"},t.prototype.text=function(e){return this._beginLine()+e},t.prototype.instruction=function(e,t){return t?this._beginLine()+"<?"+e+" "+t+"?>":this._beginLine()+"<?"+e+"?>"},t.prototype.cdata=function(e){return this._beginLine()+"<![CDATA["+e+"]]>"},t.prototype.openTagBegin=function(e){return this._lineLength+=1+e.length,this._beginLine()+"<"+e},t.prototype.openTagEnd=function(e,t,r){return r?" />":t?this._writerOptions.allowEmptyTags?"></"+e+">":this._writerOptions.spaceBeforeSlash?" />":"/>":">"},t.prototype.closeTag=function(e){return this._beginLine()+"</"+e+">"},t.prototype.attribute=function(e,t){var r=e+'="'+t+'"';return this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._lineLength+1+r.length>this._writerOptions.width?(r=this._beginLine()+this._indent(1)+r,this._lineLength=r.length,r):(this._lineLength+=1+r.length," "+r)},t.prototype.beginElement=function(e){},t.prototype.endElement=function(e){},t.prototype._beginLine=function(){if(!this._writerOptions.prettyPrint)return"";var e=(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level);return this._lineLength=e.length,e},t.prototype._indent=function(e){return e<=0?"":this._writerOptions.indent.repeat(e)},t}(oP.BaseCBWriter);var oL={},oI=oL&&oL.__extends||(A=function(e,t){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(oL,"__esModule",{value:!0}),oL.JSONCBWriter=function(e){function t(t){var r=e.call(this,t)||this;return r._hasChildren=[],r._additionalLevel=0,r}return oI(t,e),t.prototype.frontMatter=function(){return""},t.prototype.declaration=function(e,t,r){return""},t.prototype.docType=function(e,t,r){return""},t.prototype.comment=function(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.comment)+this._sep()+this._val(e)+this._sep()+"}"},t.prototype.text=function(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.text)+this._sep()+this._val(e)+this._sep()+"}"},t.prototype.instruction=function(e,t){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.ins)+this._sep()+this._val(t?e+" "+t:e)+this._sep()+"}"},t.prototype.cdata=function(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.cdata)+this._sep()+this._val(e)+this._sep()+"}"},t.prototype.attribute=function(e,t){return this._comma()+this._beginLine(1)+"{"+this._sep()+this._key(this._builderOptions.convert.att+e)+this._sep()+this._val(t)+this._sep()+"}"},t.prototype.openTagBegin=function(e){var t=this._comma()+this._beginLine()+"{"+this._sep()+this._key(e)+this._sep()+"{";return this._additionalLevel++,this.hasData=!0,t+=this._beginLine()+this._key(this._builderOptions.convert.text)+this._sep()+"[",this._hasChildren.push(!1),t},t.prototype.openTagEnd=function(e,t,r){if(!t)return"";var n=this._sep()+"]";return this._additionalLevel--,n+=this._beginLine()+"}"+this._sep()+"}"},t.prototype.closeTag=function(e){var t=this._beginLine()+"]";return this._additionalLevel--,t+=this._beginLine()+"}"+this._sep()+"}"},t.prototype.beginElement=function(e){},t.prototype.endElement=function(e){this._hasChildren.pop()},t.prototype._beginLine=function(e){return(void 0===e&&(e=0),this._writerOptions.prettyPrint)?(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level+e):""},t.prototype._indent=function(e){return e+this._additionalLevel<=0?"":this._writerOptions.indent.repeat(e+this._additionalLevel)},t.prototype._comma=function(){var e=this._hasChildren[this._hasChildren.length-1]?",":"";return this._hasChildren.length>0&&(this._hasChildren[this._hasChildren.length-1]=!0),e},t.prototype._sep=function(){return this._writerOptions.prettyPrint?" ":""},t.prototype._key=function(e){return'"'+e+'":'},t.prototype._val=function(e){return JSON.stringify(e)},t}(oP.BaseCBWriter);var oB={},oq=oB&&oB.__extends||(N=function(e,t){return(N=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(oB,"__esModule",{value:!0}),oB.YAMLCBWriter=function(e){function t(t){var r=e.call(this,t)||this;if(r._rootWritten=!1,r._additionalLevel=0,t.indent.length<2)throw Error("YAML indententation string must be at least two characters long.");if(t.offset<0)throw Error("YAML offset should be zero or a positive number.");return r}return oq(t,e),t.prototype.frontMatter=function(){return this._beginLine()+"---"},t.prototype.declaration=function(e,t,r){return""},t.prototype.docType=function(e,t,r){return""},t.prototype.comment=function(e){return this._beginLine()+this._key(this._builderOptions.convert.comment)+" "+this._val(e)},t.prototype.text=function(e){return this._beginLine()+this._key(this._builderOptions.convert.text)+" "+this._val(e)},t.prototype.instruction=function(e,t){return this._beginLine()+this._key(this._builderOptions.convert.ins)+" "+this._val(t?e+" "+t:e)},t.prototype.cdata=function(e){return this._beginLine()+this._key(this._builderOptions.convert.cdata)+" "+this._val(e)},t.prototype.attribute=function(e,t){this._additionalLevel++;var r=this._beginLine()+this._key(this._builderOptions.convert.att+e)+" "+this._val(t);return this._additionalLevel--,r},t.prototype.openTagBegin=function(e){var t=this._beginLine()+this._key(e);return this._rootWritten||(this._rootWritten=!0),this.hasData=!0,this._additionalLevel++,t+=this._beginLine(!0)+this._key(this._builderOptions.convert.text)},t.prototype.openTagEnd=function(e,t,r){return t?" "+this._val(""):""},t.prototype.closeTag=function(e){return this._additionalLevel--,""},t.prototype.beginElement=function(e){},t.prototype.endElement=function(e){},t.prototype._beginLine=function(e){return void 0===e&&(e=!1),(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level,e)},t.prototype._indent=function(e,t){if(e+this._additionalLevel<=0)return"";var r=this._writerOptions.indent.repeat(e+this._additionalLevel);return!t&&this._rootWritten?r.substr(0,r.length-2)+"-"+r.substr(-1,1):r},t.prototype._key=function(e){return'"'+e+'":'},t.prototype._val=function(e){return JSON.stringify(e)},t}(oP.BaseCBWriter),ox.XMLBuilderCBImpl=function(e){function t(t,r){void 0===r&&(r=!1);var n=e.call(this)||this;return n._hasDeclaration=!1,n._docTypeName="",n._hasDocumentElement=!1,n._currentElementSerialized=!1,n._openTags=[],n._ended=!1,n._fragment=r,n._options=r_.applyDefaults(t||{},ry.DefaultXMLBuilderCBOptions),n._builderOptions={defaultNamespace:n._options.defaultNamespace,namespaceAlias:n._options.namespaceAlias},"json"===n._options.format?n._writer=new oL.JSONCBWriter(n._options):"yaml"===n._options.format?n._writer=new oB.YAMLCBWriter(n._options):n._writer=new oO.XMLCBWriter(n._options),void 0!==n._options.data&&n.on("data",n._options.data),void 0!==n._options.end&&n.on("end",n._options.end),void 0!==n._options.error&&n.on("error",n._options.error),n._prefixMap=new rk.NamespacePrefixMap,n._prefixMap.set("xml",rP.namespace.XML),n._prefixIndex={value:1},n._push(n._writer.frontMatter()),n}return oE(t,e),t.prototype.ele=function(e,t,r){var n,o;if(r_.isObject(e)||r_.isString(e)&&(/^\s*</.test(e)||/^\s*[\{\[]/.test(e)||/^(\s*|(#.*)|(%.*))*---/.test(e))){var i=oA.fragment().set(this._options);try{i.ele(e)}catch(e){return this.emit("error",e),this}try{for(var a=ow(i.node.childNodes),u=a.next();!u.done;u=a.next()){var s=u.value;this._fromNode(s)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return this}if(this._serializeOpenTag(!0),!this._fragment&&this._hasDocumentElement&&0===this._writer.level)return this.emit("error",Error("Document cannot have multiple document element nodes.")),this;try{this._currentElement=oA.fragment(this._builderOptions).ele(e,t,r)}catch(e){return this.emit("error",e),this}return this._fragment||this._hasDocumentElement||""===this._docTypeName||this._currentElement.node._qualifiedName===this._docTypeName?(this._currentElementSerialized=!1,this._fragment||(this._hasDocumentElement=!0)):this.emit("error",Error("Document element name does not match DocType declaration name.")),this},t.prototype.att=function(e,t,r){if(void 0===this._currentElement)return this.emit("error",Error("Cannot insert an attribute node as child of a document node.")),this;try{this._currentElement.att(e,t,r)}catch(e){this.emit("error",e)}return this},t.prototype.com=function(e){var t;this._serializeOpenTag(!0);try{t=oA.fragment(this._builderOptions).com(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(!rL.xml_isLegalChar(t.data)||-1!==t.data.indexOf("--")||t.data.endsWith("-"))?this.emit("error",Error("Comment data contains invalid characters (well-formed required).")):this._push(this._writer.comment(t.data)),this},t.prototype.txt=function(e){if(!this._fragment&&void 0===this._currentElement)return this.emit("error",Error("Cannot insert a text node as child of a document node.")),this;this._serializeOpenTag(!0);try{t=oA.fragment(this._builderOptions).txt(e).first().node}catch(e){return this.emit("error",e),this}if(this._options.wellFormed&&!rL.xml_isLegalChar(t.data))return this.emit("error",Error("Text data contains invalid characters (well-formed required).")),this;var t,r=t.data.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return this._push(this._writer.text(r)),this},t.prototype.ins=function(e,t){var r;void 0===t&&(t=""),this._serializeOpenTag(!0);try{r=oA.fragment(this._builderOptions).ins(e,t).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(-1!==r.target.indexOf(":")||/^xml$/i.test(r.target))?this.emit("error",Error("Processing instruction target contains invalid characters (well-formed required).")):this._options.wellFormed&&!rL.xml_isLegalChar(r.data)?this.emit("error",Error("Processing instruction data contains invalid characters (well-formed required).")):this._push(this._writer.instruction(r.target,r.data)),this},t.prototype.dat=function(e){var t;this._serializeOpenTag(!0);try{t=oA.fragment(this._builderOptions).dat(e).first().node}catch(e){return this.emit("error",e),this}return this._push(this._writer.cdata(t.data)),this},t.prototype.dec=function(e){return(void 0===e&&(e={version:"1.0"}),this._fragment)?this.emit("error",Error("Cannot insert an XML declaration into a document fragment.")):this._hasDeclaration?this.emit("error",Error("XML declaration is already inserted.")):(this._push(this._writer.declaration(e.version||"1.0",e.encoding,e.standalone)),this._hasDeclaration=!0),this},t.prototype.dtd=function(e){var t;if(this._fragment)return this.emit("error",Error("Cannot insert a DocType declaration into a document fragment.")),this;if(""!==this._docTypeName)return this.emit("error",Error("DocType declaration is already inserted.")),this;if(this._hasDocumentElement)return this.emit("error",Error("Cannot insert DocType declaration after document element.")),this;try{t=oA.create().dtd(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&!rL.xml_isPubidChar(t.publicId)?this.emit("error",Error("DocType public identifier does not match PubidChar construct (well-formed required).")):this._options.wellFormed&&(!rL.xml_isLegalChar(t.systemId)||-1!==t.systemId.indexOf('"')&&-1!==t.systemId.indexOf("'"))?this.emit("error",Error("DocType system identifier contains invalid characters (well-formed required).")):(this._docTypeName=e.name,this._push(this._writer.docType(e.name,t.publicId,t.systemId))),this},t.prototype.import=function(e){var t,r,n=oA.fragment().set(this._options);try{n.import(e)}catch(e){return this.emit("error",e),this}try{for(var o=ow(n.node.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;this._fromNode(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},t.prototype.up=function(){return this._serializeOpenTag(!1),this._serializeCloseTag(),this},t.prototype.end=function(){for(this._serializeOpenTag(!1);this._openTags.length>0;)this._serializeCloseTag();return this._push(null),this},t.prototype._serializeOpenTag=function(e){if(!this._currentElementSerialized&&void 0!==this._currentElement){var r=this._currentElement.node;if(this._options.wellFormed&&(-1!==r.localName.indexOf(":")||!rL.xml_isName(r.localName)))return void this.emit("error",Error("Node local name contains invalid characters (well-formed required)."));var n="",o=!1,i=this._prefixMap.copy(),a={},u=this._recordNamespaceInformation(r,i,a),s=0===this._openTags.length?null:this._openTags[this._openTags.length-1][1],l=r.namespaceURI;if(null===l&&(l=s),s===l)null!==u&&(o=!0),n=l===rP.namespace.XML?"xml:"+r.localName:r.localName,this._writer.beginElement(n),this._push(this._writer.openTagBegin(n));else{var c=r.prefix,p=null;if((null!==c||l!==u)&&(p=i.get(c,l)),"xmlns"===c){if(this._options.wellFormed)return void this.emit("error",Error("An element cannot have the 'xmlns' prefix (well-formed required)."));p=c}null!==p?(n=p+":"+r.localName,null!==u&&u!==rP.namespace.XML&&(s=u||null),this._writer.beginElement(n),this._push(this._writer.openTagBegin(n))):null!==c?(c in a&&(c=this._generatePrefix(l,i,this._prefixIndex)),i.set(c,l),n+=c+":"+r.localName,this._writer.beginElement(n),this._push(this._writer.openTagBegin(n)),this._push(this._writer.attribute("xmlns:"+c,this._serializeAttributeValue(l,this._options.wellFormed))),null!==u&&(s=u||null)):null===u||null!==u&&u!==l?(o=!0,n+=r.localName,s=l,this._writer.beginElement(n),this._push(this._writer.openTagBegin(n)),this._push(this._writer.attribute("xmlns",this._serializeAttributeValue(l,this._options.wellFormed)))):(n+=r.localName,s=l,this._writer.beginElement(n),this._push(this._writer.openTagBegin(n)))}this._serializeAttributes(r,i,this._prefixIndex,a,o,this._options.wellFormed);var d=l===rP.namespace.HTML;d&&!e&&t._VoidElementNames.has(r.localName)?(this._push(this._writer.openTagEnd(n,!0,!0)),this._writer.endElement(n)):d||e?this._push(this._writer.openTagEnd(n,!1,!1)):(this._push(this._writer.openTagEnd(n,!0,!1)),this._writer.endElement(n)),this._currentElementSerialized=!0,this._openTags.push([n,s,this._prefixMap,e]),this._isPrefixMapModified(this._prefixMap,i)&&(this._prefixMap=i),this._writer.level++}},t.prototype._serializeCloseTag=function(){this._writer.level--;var e=this._openTags.pop();if(void 0===e)return void this.emit("error",Error("Last element is undefined."));var t=oC(e,4),r=t[0],n=(t[1],t[2]),o=t[3];this._prefixMap=n,o&&(this._push(this._writer.closeTag(r)),this._writer.endElement(r))},t.prototype._push=function(e){null===e?(this._ended=!0,this.emit("end")):this._ended?this.emit("error",Error("Cannot push to ended stream.")):0!==e.length&&(this._writer.hasData=!0,this.emit("data",e,this._writer.level))},t.prototype._fromNode=function(e){var t,r,n,o;if(rj.Guard.isElementNode(e)){var i=e.prefix?e.prefix+":"+e.localName:e.localName;null!==e.namespaceURI?this.ele(e.namespaceURI,i):this.ele(i);try{for(var a=ow(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.prefix?s.prefix+":"+s.localName:s.localName;null!==s.namespaceURI?this.att(s.namespaceURI,l,s.value):this.att(l,s.value)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}try{for(var c=ow(e.childNodes),p=c.next();!p.done;p=c.next()){var d=p.value;this._fromNode(d)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}this.up()}else rj.Guard.isExclusiveTextNode(e)&&e.data?this.txt(e.data):rj.Guard.isCommentNode(e)?this.com(e.data):rj.Guard.isCDATASectionNode(e)?this.dat(e.data):rj.Guard.isProcessingInstructionNode(e)&&this.ins(e.target,e.data)},t.prototype._serializeAttributes=function(e,t,r,n,o,i){var a,u,s=i?new rO.LocalNameSet:void 0;try{for(var l=ow(e.attributes),c=l.next();!c.done;c=l.next()){var p=c.value;if(!i&&!o&&null===p.namespaceURI){this._push(this._writer.attribute(p.localName,this._serializeAttributeValue(p.value,this._options.wellFormed)));continue}if(i&&s&&s.has(p.namespaceURI,p.localName))return void this.emit("error",Error("Element contains duplicate attributes (well-formed required)."));i&&s&&s.set(p.namespaceURI,p.localName);var d=p.namespaceURI,f=null;if(null!==d)if(f=t.get(p.prefix,d),d===rP.namespace.XMLNS){if(p.value===rP.namespace.XML||null===p.prefix&&o||null!==p.prefix&&(!(p.localName in n)||n[p.localName]!==p.value)&&t.has(p.localName,p.value))continue;if(i&&p.value===rP.namespace.XMLNS)return void this.emit("error",Error("XMLNS namespace is reserved (well-formed required)."));if(i&&""===p.value)return void this.emit("error",Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required)."));"xmlns"===p.prefix&&(f="xmlns")}else null===f&&(f=null!==p.prefix&&(!t.hasPrefix(p.prefix)||t.has(p.prefix,d))?p.prefix:this._generatePrefix(d,t,r),this._push(this._writer.attribute("xmlns:"+f,this._serializeAttributeValue(d,this._options.wellFormed))));if(i&&(-1!==p.localName.indexOf(":")||!rL.xml_isName(p.localName)||"xmlns"===p.localName&&null===d))return void this.emit("error",Error("Attribute local name contains invalid characters (well-formed required)."));this._push(this._writer.attribute((null!==f?f+":":"")+p.localName,this._serializeAttributeValue(p.value,this._options.wellFormed)))}}catch(e){a={error:e}}finally{try{c&&!c.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}},t.prototype._serializeAttributeValue=function(e,t){return t&&null!==e&&!rL.xml_isLegalChar(e)?(this.emit("error",Error("Invalid characters in attribute value.")),""):null===e?"":e.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},t.prototype._recordNamespaceInformation=function(e,t,r){var n,o,i=null;try{for(var a=ow(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rP.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rP.namespace.XML||(""===d&&(d=null),t.has(p,d)))continue;t.set(p,d),r[p]=d||""}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},t.prototype._generatePrefix=function(e,t,r){var n="ns"+r.value;return r.value++,t.set(n,e),n},t.prototype._isPrefixMapModified=function(e,t){var r=e._items,n=t._items,o=e._nullItems,i=t._nullItems;for(var a in n){var u=r[a];if(void 0===u)return!0;var s=n[a];if(u.length!==s.length)return!0;for(var l=0;l<u.length;l++)if(u[l]!==s[l])return!0}if(o.length!==i.length)return!0;for(var l=0;l<o.length;l++)if(o[l]!==i[l])return!0;return!1},t._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),t}(d),rh.XMLBuilderCBImpl=ox.XMLBuilderCBImpl,rh.builder=oA.builder,rh.create=oA.create,rh.fragment=oA.fragment,rh.convert=oA.convert;var oj={};if(Object.defineProperty(oj,"__esModule",{value:!0}),oj.createCB=function(e){return new rh.XMLBuilderCBImpl(e)},oj.fragmentCB=function(e){return new rh.XMLBuilderCBImpl(e,!0)},rh.createCB=oj.createCB,rh.fragmentCB=oj.fragmentCB,rf.builder=rh.builder,rf.create=rh.create,rf.fragment=rh.fragment,rf.convert=rh.convert,rf.createCB=rh.createCB,rf.fragmentCB=rh.fragmentCB,process.argv[1]===new URL("file:///src/utils/yml2xml.js").pathname)try{let e=rr(o.readFileSync(process.argv[2],"utf8")),t=o.readFileSync(process.argv[3]);o.writeFileSync(`${process.argv[4]}`,oM(e,t,process.argv[5]),{encoding:"utf8",flag:"w"})}catch(e){console.log(e)}function oM(e,t,r="1.0"){let n=(0,rf.create)({version:"1.0",encoding:"UTF-8"}),o=n.ele("Module"),i=o.ele("ModulePrefs",{title:e.title,title_url:e.title_url,version:r,description:e.description,author:e.author,background:e.background});if(e.locales)for(let t of e.locales){let e=i.ele("Locale");t.lang&&e.att("lang",t.lang),e.att("messages",t.messages)}if(e.requirements)for(let t of e.requirements)i.ele("Require",{feature:t});if(e.prefs)for(let t of e.prefs){let e=i.ele("UserPref",{name:t.name,display_name:t.display_name,datatype:t.datatype,default_value:t.default_value,required:!!t.required,multiple:!!t.multiple,multiline:!!t.multiline});if("enum"===t.datatype)for(let r of t.options)e.ele("EnumValue",{value:r.value,display_value:r.display_value});t.depends&&function e(t,r){for(let n of t){let t=r.ele("DependsOn",{name:n.name,type:n.any_of?"any_of":n.all_of?"all_of":"none_of"});for(let r of[].concat(n.any_of,n.all_of,n.none_of).filter(e=>null!=e)){if(r.values)for(let e of r.values)t.ele("Value").txt(e);r.depends&&e(r.depends,t)}}}(t.depends,e)}i.ele("UserPref",{name:"rdW",display_name:"Width",datatype:"hidden",default_value:280,required:!0}),i.ele("UserPref",{name:"rdH",display_name:"Height",datatype:"hidden",default_value:190,required:!0}),i.ele("UserPref",{name:"rdKey",datatype:"hidden"}),i.ele("UserPref",{name:"ForeColor",datatype:"hidden"}),i.ele("UserPref",{name:"BackColor",datatype:"hidden"});var a=rn.parse.parse(t,{parseNoneClosedTags:!0});return o.ele("Content",{type:"html"}).ele({$:(a.querySelector("style")?.toString()||"")+a.querySelectorAll("script:not(body script)").map(e=>e.toString()).join("")+a.querySelectorAll("link[rel=stylesheet]:not(body link[rel=stylesheet])").map(e=>e.toString()).join("")+(a.querySelector("body")?.toString()||"")}),n.end({prettyPrint:!0})}let oR=i(process.argv[1]),oU=process.argv.slice(2),oG=oU.includes("help")||oU.includes("--help")||oU.includes("-h"),oz=oU.includes("build-only")||oU.includes("--build-only"),oV=process.cwd();((e="")=>{process.stdout.write(`${J(eu).gray(eQ)} ${e}
40
+ `)};J(eu).gray(eZ);var e4=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},e7=function(e){return 0===e&&-1/0==1/e};function te(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function tt(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=te(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function tr(e,t,r,n,o){var i="",a="",u=Math.floor(o/2)-1;return n-t>u&&(t=n-u+(i=" ... ").length),r-n>u&&(r=n+u-(a=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+i.length}}function tn(e,t){return e4(" ",t-e.length)+e}tt.prototype=Object.create(Error.prototype),tt.prototype.constructor=tt,tt.prototype.toString=function(e){return this.name+": "+te(this,e)};var to=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],o=[],i=-1;a=r.exec(e.buffer);)o.push(a.index),n.push(a.index+a[0].length),e.position<=a.index&&i<0&&(i=n.length-2);i<0&&(i=n.length-1);var a,u,s,l="",c=Math.min(e.line+t.linesAfter,o.length).toString().length,p=t.maxLength-(t.indent+c+3);for(u=1;u<=t.linesBefore&&!(i-u<0);u++)s=tr(e.buffer,n[i-u],o[i-u],e.position-(n[i]-n[i-u]),p),l=e4(" ",t.indent)+tn((e.line-u+1).toString(),c)+" | "+s.str+"\n"+l;for(s=tr(e.buffer,n[i],o[i],e.position,p),l+=e4(" ",t.indent)+tn((e.line+1).toString(),c)+" | "+s.str+"\n"+e4("-",t.indent+c+3+s.pos)+"^\n",u=1;u<=t.linesAfter&&!(i+u>=o.length);u++)s=tr(e.buffer,n[i+u],o[i+u],e.position-(n[i]-n[i+u]),p),l+=e4(" ",t.indent)+tn((e.line+u+1).toString(),c)+" | "+s.str+"\n";return l.replace(/\n$/,"")},ti=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ta=["scalar","sequence","mapping"],tu=function(e,t){var r,n;if(Object.keys(t=t||{}).forEach(function(t){if(-1===ti.indexOf(t))throw new tt('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,n={},null!==r&&Object.keys(r).forEach(function(e){r[e].forEach(function(t){n[String(t)]=e})}),n),-1===ta.indexOf(this.kind))throw new tt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function ts(e,t){var r=[];return e[t].forEach(function(e){var t=r.length;r.forEach(function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)}),r[t]=e}),r}function tl(e){return this.extend(e)}tl.prototype.extend=function(e){var t=[],r=[];if(e instanceof tu)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new tt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof tu))throw new tt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new tt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new tt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(e){if(!(e instanceof tu))throw new tt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(tl.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=ts(n,"implicit"),n.compiledExplicit=ts(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var tc=new tl({explicit:[new tu("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new tu("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new tu("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]}),tp=new tu("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),td=new tu("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"}),tf=new tu("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n,o,i=e.length,a=0,u=!1;if(!i)return!1;if(("-"===(o=e[a])||"+"===o)&&(o=e[++a]),"0"===o){if(a+1===i)return!0;if("b"===(o=e[++a])){for(a++;a<i;a++)if("_"!==(o=e[a])){if("0"!==o&&"1"!==o)return!1;u=!0}return u&&"_"!==o}if("x"===o){for(a++;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(t=e.charCodeAt(a))&&t<=57||65<=t&&t<=70||97<=t&&t<=102))return!1;u=!0}return u&&"_"!==o}if("o"===o){for(a++;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(r=e.charCodeAt(a))&&r<=55))return!1;u=!0}return u&&"_"!==o}}if("_"===o)return!1;for(;a<i;a++)if("_"!==(o=e[a])){if(!(48<=(n=e.charCodeAt(a))&&n<=57))return!1;u=!0}return!!u&&"_"!==o},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(t=r[0])||"+"===t)&&("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!e7(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),th=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),tm=/^[-+]?[0-9]+e/,tD=new tu("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!th.test(e)&&"_"!==e[e.length-1]},construct:function(e){var t,r;return(r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===r?1/0:-1/0:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||e7(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e7(e))return"-0.0";return r=e.toString(10),tm.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),tg=tc.extend({implicit:[tp,td,tf,tD]}),ty=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),t_=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),tv=new tu("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==ty.exec(e)||null!==t_.exec(e))},construct:function(e){var t,r,n,o,i,a,u,s,l=0,c=null;if(null===(t=ty.exec(e))&&(t=t_.exec(e)),null===t)throw Error("Date resolve error");if(r=+t[1],n=t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+t[4],a=+t[5],u=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l*=1}return t[9]&&(c=(60*t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(c=-c)),s=new Date(Date.UTC(r,n,o,i,a,u,l)),c&&s.setTime(s.getTime()-c),s},instanceOf:Date,represent:function(e){return e.toISOString()}}),tb=new tu("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),tx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",tE=new tu("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,o=e.length;for(r=0;r<o;r++)if(!((t=tx.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=0,a=[];for(t=0;t<o;t++)t%4==0&&t&&(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|tx.indexOf(n.charAt(t));return 0==(r=o%4*6)?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18===r?(a.push(i>>10&255),a.push(i>>2&255)):12===r&&a.push(i>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",o=0,i=e.length;for(t=0;t<i;t++)t%3==0&&t&&(n+=tx[o>>18&63],n+=tx[o>>12&63],n+=tx[o>>6&63],n+=tx[63&o]),o=(o<<8)+e[t];return 0==(r=i%3)?(n+=tx[o>>18&63],n+=tx[o>>12&63],n+=tx[o>>6&63],n+=tx[63&o]):2===r?(n+=tx[o>>10&63],n+=tx[o>>4&63],n+=tx[o<<2&63],n+=tx[64]):1===r&&(n+=tx[o>>2&63],n+=tx[o<<4&63],n+=tx[64],n+=tx[64]),n}}),tw=Object.prototype.hasOwnProperty,tC=Object.prototype.toString,tA=new tu("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,o,i,a=[];for(t=0,r=e.length;t<r;t+=1){if(n=e[t],i=!1,"[object Object]"!==tC.call(n))return!1;for(o in n)if(tw.call(n,o))if(i)return!1;else i=!0;if(!i||-1!==a.indexOf(o))return!1;a.push(o)}return!0},construct:function(e){return null!==e?e:[]}}),tN=Object.prototype.toString,tT=new tu("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){var t,r,n,o,i;if(null===e)return!0;for(t=0,i=Array(e.length),r=e.length;t<r;t+=1){if(n=e[t],"[object Object]"!==tN.call(n)||1!==(o=Object.keys(n)).length)return!1;i[t]=[o[0],n[o[0]]]}return!0},construct:function(e){var t,r,n,o,i;if(null===e)return[];for(t=0,i=Array(e.length),r=e.length;t<r;t+=1)o=Object.keys(n=e[t]),i[t]=[o[0],n[o[0]]];return i}}),tS=Object.prototype.hasOwnProperty,tF=new tu("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){var t;if(null===e)return!0;for(t in e)if(tS.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),tO=tg.extend({implicit:[tv,tb],explicit:[tE,tA,tT,tF]}),tk=Object.prototype.hasOwnProperty,tP=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tL=/[\x85\u2028\u2029]/,tI=/[,\[\]\{\}]/,tB=/^(?:!|!!|![a-z\-]+!)$/i,tq=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tj(e){return Object.prototype.toString.call(e)}function tM(e){return 10===e||13===e}function tR(e){return 9===e||32===e}function tU(e){return 9===e||32===e||10===e||13===e}function tG(e){return 44===e||91===e||93===e||123===e||125===e}function tz(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}for(var tV=Array(256),tH=Array(256),tW=0;tW<256;tW++)tV[tW]=+!!tz(tW),tH[tW]=tz(tW);function t$(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tO,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function tY(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=to(r),new tt(t,r)}function tX(e,t){throw tY(e,t)}function tJ(e,t){e.onWarning&&e.onWarning.call(null,tY(e,t))}var tK={YAML:function(e,t,r){var n,o,i;null!==e.version&&tX(e,"duplication of %YAML directive"),1!==r.length&&tX(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&tX(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&tX(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&tJ(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;2!==r.length&&tX(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],tB.test(n)||tX(e,"ill-formed tag handle (first argument) of the TAG directive"),tk.call(e.tagMap,n)&&tX(e,'there is a previously declared suffix for "'+n+'" tag handle'),tq.test(o)||tX(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){tX(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function tQ(e,t,r,n){var o,i,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(o=0,i=u.length;o<i;o+=1)9===(a=u.charCodeAt(o))||32<=a&&a<=1114111||tX(e,"expected valid JSON character");else tP.test(u)&&tX(e,"the stream contains non-printable characters");e.result+=u}}function tZ(e,t,r,n){var o,i,a,u,s;for("object"==typeof(s=r)&&null!==s||tX(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,u=(o=Object.keys(r)).length;a<u;a+=1)i=o[a],tk.call(t,i)||(t[i]=r[i],n[i]=!0)}function t0(e,t,r,n,o,i,a,u,s){var l,c;if(Array.isArray(o))for(l=0,c=(o=Array.prototype.slice.call(o)).length;l<c;l+=1)Array.isArray(o[l])&&tX(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===tj(o[l])&&(o[l]="[object Object]");if("object"==typeof o&&"[object Object]"===tj(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(l=0,c=i.length;l<c;l+=1)tZ(e,t,i[l],r);else tZ(e,t,i,r);else!e.json&&!tk.call(r,o)&&tk.call(t,o)&&(e.line=a||e.line,e.lineStart=u||e.lineStart,e.position=s||e.position,tX(e,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[o]=i,delete r[o];return t}function t1(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):tX(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function t2(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);0!==o;){for(;tR(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o)if(tM(o))for(t1(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return -1!==r&&0!==n&&e.lineIndent<r&&tJ(e,"deficient indentation"),n}function t3(e){var t,r=e.position;return!!((45===(t=e.input.charCodeAt(r))||46===t)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,0===(t=e.input.charCodeAt(r))||tU(t)))||!1}function t8(e,t){1===t?e.result+=" ":t>1&&(e.result+=e4("\n",t-1))}function t5(e,t){var r,n,o=e.tag,i=e.anchor,a=[],u=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,tX(e,"tab characters must not be used in indentation")),45===n&&tU(e.input.charCodeAt(e.position+1)));){if(u=!0,e.position++,t2(e,!0,-1)&&e.lineIndent<=t){a.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,t6(e,t,3,!1,!0),a.push(e.result),t2(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)tX(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!u&&(e.tag=o,e.anchor=i,e.kind="sequence",e.result=a,!0)}function t6(e,t,r,n,o){var i,a,u,s,l,c,p,d,f,h=1,m=!1,D=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=a=u=4===r||3===r,n&&t2(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;function(e){var t,r,n,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&tX(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,r="!!",o=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do o=e.input.charCodeAt(++e.position);while(0!==o&&62!==o)e.position<e.length?(n=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):tX(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!tU(o);)33===o&&(a?tX(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),tB.test(r)||tX(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),tI.test(n)&&tX(e,"tag suffix cannot contain flow indicator characters")}n&&!tq.test(n)&&tX(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){tX(e,"tag name is malformed: "+n)}return i?e.tag=n:tk.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:tX(e,'undeclared tag handle "'+r+'"'),!0}(e)||function(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&tX(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!tU(r)&&!tG(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&tX(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)t2(e,!0,-1)?(m=!0,u=i,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):u=!1;if(u&&(u=m||o),(1===h||4===r)&&(d=1===r||2===r?t:t+1,f=e.position-e.lineStart,1===h?u&&(t5(e,f)||function(e,t,r){var n,o,i,a,u,s,l,c=e.tag,p=e.anchor,d={},f=Object.create(null),h=null,m=null,D=null,g=!1,y=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,tX(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,(63===l||58===l)&&tU(n))63===l?(g&&(t0(e,d,f,h,m,null,a,u,s),h=m=D=null),y=!0,g=!0,o=!0):g?(g=!1,o=!0):tX(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=n;else{if(a=e.line,u=e.lineStart,s=e.position,!t6(e,r,2,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);tR(l);)l=e.input.charCodeAt(++e.position);if(58===l)tU(l=e.input.charCodeAt(++e.position))||tX(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(t0(e,d,f,h,m,null,a,u,s),h=m=D=null),y=!0,g=!1,o=!1,h=e.tag,m=e.result;else{if(!y)return e.tag=c,e.anchor=p,!0;tX(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=c,e.anchor=p,!0;tX(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((e.line===i||e.lineIndent>t)&&(g&&(a=e.line,u=e.lineStart,s=e.position),t6(e,t,4,!0,o)&&(g?m=e.result:D=e.result),g||(t0(e,d,f,h,m,D,a,u,s),h=m=D=null),t2(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)tX(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&t0(e,d,f,h,m,null,a,u,s),y&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=d),y}(e,f,d))||function(e,t){var r,n,o,i,a,u,s,l,c,p,d,f,h=!0,m=e.tag,D=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))a=93,l=!1,i=[];else{if(123!==f)return!1;a=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(t2(e,!0,t),(f=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=m,e.anchor=D,e.kind=l?"mapping":"sequence",e.result=i,!0;h?44===f&&tX(e,"expected the node content, but found ','"):tX(e,"missed comma between flow collection entries"),p=c=d=null,u=s=!1,63===f&&tU(e.input.charCodeAt(e.position+1))&&(u=s=!0,e.position++,t2(e,!0,t)),r=e.line,n=e.lineStart,o=e.position,t6(e,t,1,!1,!0),p=e.tag,c=e.result,t2(e,!0,t),f=e.input.charCodeAt(e.position),(s||e.line===r)&&58===f&&(u=!0,f=e.input.charCodeAt(++e.position),t2(e,!0,t),t6(e,t,1,!1,!0),d=e.result),l?t0(e,i,g,p,c,d,r,n,o):u?i.push(t0(e,null,g,p,c,d,r,n,o)):i.push(c),t2(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}tX(e,"unexpected end of the stream within a flow collection")}(e,d)?D=!0:(a&&function(e,t){var r,n,o,i,a,u=1,s=!1,l=!1,c=t,p=0,d=!1;if(124===(a=e.input.charCodeAt(e.position)))o=!1;else{if(62!==a)return!1;o=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===u?u=43===a?3:2:tX(e,"repeat of a chomping mode identifier");else if((i=48<=(r=a)&&r<=57?r-48:-1)>=0)0===i?tX(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?tX(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0);else break;if(tR(a)){do a=e.input.charCodeAt(++e.position);while(tR(a))if(35===a)do a=e.input.charCodeAt(++e.position);while(!tM(a)&&0!==a)}for(;0!==a;){for(t1(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!l||e.lineIndent<c)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>c&&(c=e.lineIndent),tM(a)){p++;continue}if(e.lineIndent<c){3===u?e.result+=e4("\n",s?1+p:p):1===u&&s&&(e.result+="\n");break}for(o?tR(a)?(d=!0,e.result+=e4("\n",s?1+p:p)):d?(d=!1,e.result+=e4("\n",p+1)):0===p?s&&(e.result+=" "):e.result+=e4("\n",p):e.result+=e4("\n",s?1+p:p),s=!0,l=!0,p=0,n=e.position;!tM(a)&&0!==a;)a=e.input.charCodeAt(++e.position);tQ(e,n,e.position,!1)}return!0}(e,d)||function(e,t){var r,n,o;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(tQ(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,o=e.position}else tM(r)?(tQ(e,n,o,!0),t8(e,t2(e,!1,t)),n=o=e.position):e.position===e.lineStart&&t3(e)?tX(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);tX(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var r,n,o,i,a,u,s,l;if(34!==(u=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(u=e.input.charCodeAt(e.position));)if(34===u)return tQ(e,r,e.position,!0),e.position++,!0;else if(92===u){if(tQ(e,r,e.position,!0),tM(u=e.input.charCodeAt(++e.position)))t2(e,!1,t);else if(u<256&&tV[u])e.result+=tH[u],e.position++;else if((a=120===(s=u)?2:117===s?4:8*(85===s))>0){for(o=a,i=0;o>0;o--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(u=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:tX(e,"expected hexadecimal character");e.result+=(l=i)<=65535?String.fromCharCode(l):String.fromCharCode((l-65536>>10)+55296,(l-65536&1023)+56320),e.position++}else tX(e,"unknown escape sequence");r=n=e.position}else tM(u)?(tQ(e,r,n,!0),t8(e,t2(e,!1,t)),r=n=e.position):e.position===e.lineStart&&t3(e)?tX(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);tX(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?D=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!tU(n)&&!tG(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&tX(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),tk.call(e.anchorMap,r)||tX(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],t2(e,!0,-1),!0}(e)?function(e,t,r){var n,o,i,a,u,s,l,c,p=e.kind,d=e.result;if(tU(c=e.input.charCodeAt(e.position))||tG(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(tU(n=e.input.charCodeAt(e.position+1))||r&&tG(n)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(tU(n=e.input.charCodeAt(e.position+1))||r&&tG(n))break}else if(35===c){if(tU(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&t3(e)||r&&tG(c))break;else if(tM(c)){if(u=e.line,s=e.lineStart,l=e.lineIndent,t2(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=i,e.line=u,e.lineStart=s,e.lineIndent=l;break}a&&(tQ(e,o,i,!1),t8(e,e.line-u),o=i=e.position,a=!1),tR(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return tQ(e,o,i,!1),!!e.result||(e.kind=p,e.result=d,!1)}(e,d,1===r)&&(D=!0,null===e.tag&&(e.tag="?")):(D=!0,(null!==e.tag||null!==e.anchor)&&tX(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(D=u&&t5(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&tX(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,l=e.implicitTypes.length;s<l;s+=1)if((p=e.implicitTypes[s]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(tk.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(s=0,p=null,l=(c=e.typeMap.multi[e.kind||"fallback"]).length;s<l;s+=1)if(e.tag.slice(0,c[s].tag.length)===c[s].tag){p=c[s];break}p||tX(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&tX(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):tX(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||D}function t9(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new t$(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,tX(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)!function(e){var t,r,n,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(t2(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===o);){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!tU(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&tX(e,"directive name must not be less than one character in length");0!==o;){for(;tR(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!tM(o))break}if(tM(o))break;for(t=e.position;0!==o&&!tU(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&t1(e),tk.call(tK,r)?tK[r](e,r,n):tJ(e,'unknown document directive "'+r+'"')}if(t2(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,t2(e,!0,-1)):a&&tX(e,"directives end mark is expected"),t6(e,e.lineIndent-1,4,!1,!0),t2(e,!0,-1),e.checkLineBreaks&&tL.test(e.input.slice(i,e.position))&&tJ(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&t3(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,t2(e,!0,-1));return}e.position<e.length-1&&tX(e,"end of the stream or a document separator is expected")}(r);return r.documents}var t4=Object.prototype.toString,t7=Object.prototype.hasOwnProperty,re={};re[0]="\\0",re[7]="\\a",re[8]="\\b",re[9]="\\t",re[10]="\\n",re[11]="\\v",re[12]="\\f",re[13]="\\r",re[27]="\\e",re[34]='\\"',re[92]="\\\\",re[133]="\\N",re[160]="\\_",re[8232]="\\L",re[8233]="\\P";function rt(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}rt("safeLoad","load"),rt("safeLoadAll","loadAll"),rt("safeDump","dump");var rr=function(e,t){var r=t9(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new tt("expected a single document in the stream, but found more")}},rn={},ro=rn&&rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rn,"__esModule",{value:!0}),rn.NodeType=rn.TextNode=rn.Node=rn.valid=rn.CommentNode=rn.HTMLElement=rn.parse=void 0;let ri=ro(et("9KN8L"));rn.CommentNode=ri.default;let ra=ro(et("2ZZFK"));rn.HTMLElement=ra.default;let ru=ro(et("9rIF8"));rn.Node=ru.default;let rs=ro(et("h19Jg"));rn.TextNode=rs.default;let rl=ro(et("gxROJ"));rn.NodeType=rl.default;let rc=ro(et("oyh6k")),rp=ro(et("biHCd"));function rd(e,t={}){return(0,rc.default)(e,t)}rn.valid=rp.default,rn.default=rd,rn.parse=rd,rd.parse=rc.default,rd.HTMLElement=ra.default,rd.CommentNode=ri.default,rd.valid=rp.default,rd.Node=ru.default,rd.TextNode=rs.default,rd.NodeType=rl.default;var rf={};Object.defineProperty(rf,"__esModule",{value:!0});var rh={};Object.defineProperty(rh,"__esModule",{value:!0});var rm={},rD=rm&&rm.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},rg=rm&&rm.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rm,"__esModule",{value:!0});var ry={};Object.defineProperty(ry,"__esModule",{value:!0}),ry.DefaultBuilderOptions={version:"1.0",encoding:void 0,standalone:void 0,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,skipWhitespaceOnlyText:!0,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"},invalidCharReplacement:void 0,parser:void 0},ry.XMLBuilderOptionKeys=new Set(Object.keys(ry.DefaultBuilderOptions)),ry.DefaultXMLBuilderCBOptions={format:"xml",wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,spaceBeforeSlash:!1,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"}};var r_=et("jDPAV"),rv={};Object.defineProperty(rv,"__esModule",{value:!0});var rb={},rx=rb&&rb.__extends||(f=function(e,t){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(rb,"__esModule",{value:!0});var r_=et("jDPAV"),rE={},rw=rE&&rE.__extends||(h=function(e,t){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),rC=rE&&rE.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rE,"__esModule",{value:!0});var r_=et("jDPAV"),rA=et("bql4T"),rN={},rT=rN&&rN.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},rS=rN&&rN.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},rF=rN&&rN.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(rS(arguments[t]));return e};Object.defineProperty(rN,"__esModule",{value:!0});var rA=et("bql4T"),rO={};Object.defineProperty(rO,"__esModule",{value:!0}),rO.LocalNameSet=function(){function e(){this._items={},this._nullItems={}}return e.prototype.set=function(e,t){null===e?this._nullItems[t]=!0:(this._items[e]||(this._items[e]={}),this._items[e][t]=!0)},e.prototype.has=function(e,t){return null===e?!0===this._nullItems[t]:!!this._items[e]&&!0===this._items[e][t]},e}();var rk={};Object.defineProperty(rk,"__esModule",{value:!0}),rk.NamespacePrefixMap=function(){function e(){this._items={},this._nullItems=[]}return e.prototype.copy=function(){var t=new e;for(var r in this._items)t._items[r]=this._items[r].slice(0);return t._nullItems=this._nullItems.slice(0),t},e.prototype.get=function(e,t){var r=null===t?this._nullItems:this._items[t]||null;if(null===r)return null;for(var n=null,o=0;o<r.length&&(n=r[o])!==e;o++);return n},e.prototype.has=function(e,t){var r=null===t?this._nullItems:this._items[t]||null;return null!==r&&-1!==r.indexOf(e)},e.prototype.hasPrefix=function(e){if(-1!==this._nullItems.indexOf(e))return!0;for(var t in this._items)if(-1!==this._items[t].indexOf(e))return!0;return!1},e.prototype.set=function(e,t){var r=null===t?this._nullItems:this._items[t]||null;null!==t&&null===r?this._items[t]=[e]:r.push(e)},e}();var rP=et("b9DcM"),rL=et("eOMTm"),rI={};Object.defineProperty(rI,"__esModule",{value:!0}),rI.nonEntityAmpersandRegex=/&(?![A-Za-z]+;|#\d+;)/g,rN.BaseWriter=function(){function e(e){this.level=0,this._builderOptions=e}return e.prototype.declaration=function(e,t,r){},e.prototype.docType=function(e,t,r){},e.prototype.comment=function(e){},e.prototype.text=function(e){},e.prototype.instruction=function(e,t){},e.prototype.cdata=function(e){},e.prototype.openTagBegin=function(e){},e.prototype.openTagEnd=function(e,t,r){},e.prototype.closeTag=function(e){},e.prototype.attributes=function(e){var t,r;try{for(var n=rT(e),o=n.next();!o.done;o=n.next()){var i=o.value;this.attribute(null===i[1]?i[2]:i[1]+":"+i[2],i[3])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.attribute=function(e,t){},e.prototype.beginElement=function(e){},e.prototype.endElement=function(e){},e.prototype.serializeNode=function(e,t){var r=void 0!==e._nodeDocument&&e._nodeDocument._hasNamespaces;if(this.level=0,this.currentNode=e,r){var n=new rk.NamespacePrefixMap;n.set("xml",rP.namespace.XML),this._serializeNodeNS(e,null,n,{value:1},t)}else this._serializeNode(e,t)},e.prototype._serializeNodeNS=function(e,t,r,n,o){switch(this.currentNode=e,e.nodeType){case rA.NodeType.Element:this._serializeElementNS(e,t,r,n,o);break;case rA.NodeType.Document:this._serializeDocumentNS(e,t,r,n,o);break;case rA.NodeType.Comment:this._serializeComment(e,o);break;case rA.NodeType.Text:this._serializeText(e,o);break;case rA.NodeType.DocumentFragment:this._serializeDocumentFragmentNS(e,t,r,n,o);break;case rA.NodeType.DocumentType:this._serializeDocumentType(e,o);break;case rA.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,o);break;case rA.NodeType.CData:this._serializeCData(e,o);break;default:throw Error("Unknown node type: "+e.nodeType)}},e.prototype._serializeNode=function(e,t){switch(this.currentNode=e,e.nodeType){case rA.NodeType.Element:this._serializeElement(e,t);break;case rA.NodeType.Document:this._serializeDocument(e,t);break;case rA.NodeType.Comment:this._serializeComment(e,t);break;case rA.NodeType.Text:this._serializeText(e,t);break;case rA.NodeType.DocumentFragment:this._serializeDocumentFragment(e,t);break;case rA.NodeType.DocumentType:this._serializeDocumentType(e,t);break;case rA.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,t);break;case rA.NodeType.CData:this._serializeCData(e,t);break;default:throw Error("Unknown node type: "+e.nodeType)}},e.prototype._serializeElementNS=function(t,r,n,o,i){var a,u,s=[];if(i&&(-1!==t.localName.indexOf(":")||!rL.xml_isName(t.localName)))throw Error("Node local name contains invalid characters (well-formed required).");var l="",c=!1,p=!1,d=n.copy(),f={},h=this._recordNamespaceInformation(t,d,f),m=r,D=t.namespaceURI;if(m===D)null!==h&&(p=!0),l=D===rP.namespace.XML?"xml:"+t.localName:t.localName,this.beginElement(l),this.openTagBegin(l);else{var g=t.prefix,y=null;if((null!==g||D!==h)&&(y=d.get(g,D)),"xmlns"===g){if(i)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");y=g}null!==y?(l=y+":"+t.localName,null!==h&&h!==rP.namespace.XML&&(m=h||null),this.beginElement(l),this.openTagBegin(l)):null!==g?(g in f&&(g=this._generatePrefix(D,d,o)),d.set(g,D),l+=g+":"+t.localName,this.beginElement(l),this.openTagBegin(l),s.push([null,"xmlns",g,this._serializeAttributeValue(D,i)]),null!==h&&(m=h||null)):null===h||null!==h&&h!==D?(p=!0,l+=t.localName,m=D,this.beginElement(l),this.openTagBegin(l),s.push([null,null,"xmlns",this._serializeAttributeValue(D,i)])):(l+=t.localName,m=D,this.beginElement(l),this.openTagBegin(l))}s.push.apply(s,rF(this._serializeAttributesNS(t,d,o,f,p,i))),this.attributes(s);var _=D===rP.namespace.HTML;if(_&&0===t.childNodes.length&&e._VoidElementNames.has(t.localName)?(this.openTagEnd(l,!0,!0),this.endElement(l),c=!0):_||0!==t.childNodes.length?this.openTagEnd(l,!1,!1):(this.openTagEnd(l,!0,!1),this.endElement(l),c=!0),!c){if(_&&"template"===t.localName);else try{for(var v=rT(t.childNodes),b=v.next();!b.done;b=v.next()){var x=b.value;this.level++,this._serializeNodeNS(x,m,d,o,i),this.level--}}catch(e){a={error:e}}finally{try{b&&!b.done&&(u=v.return)&&u.call(v)}finally{if(a)throw a.error}}this.closeTag(l),this.endElement(l)}},e.prototype._serializeElement=function(e,t){if(t&&(-1!==e.localName.indexOf(":")||!rL.xml_isName(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");var r,n,o=!1,i=e.localName;this.beginElement(i),this.openTagBegin(i);var a=this._serializeAttributes(e,t);if(this.attributes(a),e.hasChildNodes()?this.openTagEnd(i,!1,!1):(this.openTagEnd(i,!0,!1),this.endElement(i),o=!0),!o){try{for(var u=rT(e._children),s=u.next();!s.done;s=u.next()){var l=s.value;this.level++,this._serializeNode(l,t),this.level--}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}this.closeTag(i),this.endElement(i)}},e.prototype._serializeDocumentNS=function(e,t,r,n,o){var i,a;if(o&&null===e.documentElement)throw Error("Missing document element (well-formed required).");try{for(var u=rT(e.childNodes),s=u.next();!s.done;s=u.next()){var l=s.value;this._serializeNodeNS(l,t,r,n,o)}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},e.prototype._serializeDocument=function(e,t){var r,n;if(t&&null===e.documentElement)throw Error("Missing document element (well-formed required).");try{for(var o=rT(e._children),i=o.next();!i.done;i=o.next()){var a=i.value;this._serializeNode(a,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype._serializeComment=function(e,t){if(t&&(!rL.xml_isLegalChar(e.data)||-1!==e.data.indexOf("--")||e.data.endsWith("-")))throw Error("Comment data contains invalid characters (well-formed required).");this.comment(e.data)},e.prototype._serializeText=function(e,t){if(t&&!rL.xml_isLegalChar(e.data))throw Error("Text data contains invalid characters (well-formed required).");var r=e.data.replace(rI.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");this.text(r)},e.prototype._serializeDocumentFragmentNS=function(e,t,r,n,o){var i,a;try{for(var u=rT(e.childNodes),s=u.next();!s.done;s=u.next()){var l=s.value;this._serializeNodeNS(l,t,r,n,o)}}catch(e){i={error:e}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},e.prototype._serializeDocumentFragment=function(e,t){var r,n;try{for(var o=rT(e._children),i=o.next();!i.done;i=o.next()){var a=i.value;this._serializeNode(a,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype._serializeDocumentType=function(e,t){if(t&&!rL.xml_isPubidChar(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!rL.xml_isLegalChar(e.systemId)||-1!==e.systemId.indexOf('"')&&-1!==e.systemId.indexOf("'")))throw Error("DocType system identifier contains invalid characters (well-formed required).");this.docType(e.name,e.publicId,e.systemId)},e.prototype._serializeProcessingInstruction=function(e,t){if(t&&(-1!==e.target.indexOf(":")||/^xml$/i.test(e.target)))throw Error("Processing instruction target contains invalid characters (well-formed required).");if(t&&(!rL.xml_isLegalChar(e.data)||-1!==e.data.indexOf("?>")))throw Error("Processing instruction data contains invalid characters (well-formed required).");this.instruction(e.target,e.data)},e.prototype._serializeCData=function(e,t){if(t&&-1!==e.data.indexOf("]]>"))throw Error("CDATA contains invalid characters (well-formed required).");this.cdata(e.data)},e.prototype._serializeAttributesNS=function(e,t,r,n,o,i){var a,u,s=[],l=i?new rO.LocalNameSet:void 0;try{for(var c=rT(e.attributes),p=c.next();!p.done;p=c.next()){var d=p.value;if(!i&&!o&&null===d.namespaceURI){s.push([null,null,d.localName,this._serializeAttributeValue(d.value,i)]);continue}if(i&&l&&l.has(d.namespaceURI,d.localName))throw Error("Element contains duplicate attributes (well-formed required).");i&&l&&l.set(d.namespaceURI,d.localName);var f=d.namespaceURI,h=null;if(null!==f)if(h=t.get(d.prefix,f),f===rP.namespace.XMLNS){if(d.value===rP.namespace.XML||null===d.prefix&&o||null!==d.prefix&&(!(d.localName in n)||n[d.localName]!==d.value)&&t.has(d.localName,d.value))continue;if(i&&d.value===rP.namespace.XMLNS)throw Error("XMLNS namespace is reserved (well-formed required).");if(i&&""===d.value)throw Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");"xmlns"===d.prefix&&(h="xmlns")}else null===h&&(h=null!==d.prefix&&(!t.hasPrefix(d.prefix)||t.has(d.prefix,f))?d.prefix:this._generatePrefix(f,t,r),s.push([null,"xmlns",h,this._serializeAttributeValue(f,i)]));if(i&&(-1!==d.localName.indexOf(":")||!rL.xml_isName(d.localName)||"xmlns"===d.localName&&null===f))throw Error("Attribute local name contains invalid characters (well-formed required).");s.push([f,h,d.localName,this._serializeAttributeValue(d.value,i)])}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}return s},e.prototype._serializeAttributes=function(e,t){var r,n,o=[],i=t?{}:void 0;try{for(var a=rT(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value;if(!t){o.push([null,null,s.localName,this._serializeAttributeValue(s.value,t)]);continue}if(t&&i&&s.localName in i)throw Error("Element contains duplicate attributes (well-formed required).");if(t&&i&&(i[s.localName]=!0),t&&(-1!==s.localName.indexOf(":")||!rL.xml_isName(s.localName)))throw Error("Attribute local name contains invalid characters (well-formed required).");o.push([null,null,s.localName,this._serializeAttributeValue(s.value,t)])}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},e.prototype._recordNamespaceInformation=function(e,t,r){var n,o,i=null;try{for(var a=rT(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rP.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rP.namespace.XML||(""===d&&(d=null),t.has(p,d)))continue;t.set(p,d),r[p]=d||""}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},e.prototype._generatePrefix=function(e,t,r){var n="ns"+r.value.toString();return r.value++,t.set(n,e),n},e.prototype._serializeAttributeValue=function(e,t){if(t&&null!==e&&!rL.xml_isLegalChar(e))throw Error("Invalid characters in attribute value.");return null===e?"":e.replace(rI.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},e._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),e}(),rE.ObjectWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=r_.applyDefaults(r,{format:"object",wellFormed:!1,group:!1,verbose:!1}),n}return rw(t,e),t.prototype.serialize=function(e){return this._currentList=[],this._currentIndex=0,this._listRegister=[this._currentList],this.serializeNode(e,this._writerOptions.wellFormed),this._process(this._currentList,this._writerOptions)},t.prototype._process=function(e,t){if(0===e.length)return{};for(var r,n,o,i,a,u,s,l={},c=!1,p=0,d=0,f=0,h=0,m=0;m<e.length;m++){var D=e[m],g=Object.keys(D)[0];switch(g){case"@":continue;case"#":p++;break;case"!":d++;break;case"?":f++;break;case"$":h++;break;default:l[g]?c=!0:l[g]=!0}}var y=this._getAttrKey(),_=this._getNodeKey(rA.NodeType.Text),v=this._getNodeKey(rA.NodeType.Comment),b=this._getNodeKey(rA.NodeType.ProcessingInstruction),x=this._getNodeKey(rA.NodeType.CData);if(1===p&&1===e.length&&r_.isString(e[0]["#"]))return e[0]["#"];if(c){for(var E={},m=0;m<e.length;m++){var D=e[m],g=Object.keys(D)[0];if("@"===g){var w=D["@"],C=Object.keys(w);1===C.length?E[y+C[0]]=w[C[0]]:E[y]=D["@"]}}for(var A=[],m=0;m<e.length;m++){var D=e[m],g=Object.keys(D)[0];switch(g){case"@":break;case"#":A.push(((r={})[_]=D["#"],r));break;case"!":A.push(((n={})[v]=D["!"],n));break;case"?":A.push(((o={})[b]=D["?"],o));break;case"$":A.push(((i={})[x]=D.$,i));break;default:var N=D;if(0!==N[g].length&&r_.isArray(N[g][0])){for(var T=[],S=N[g],F=0;F<S.length;F++)T.push(this._process(S[F],t));A.push(((a={})[g]=T,a))}else t.verbose?A.push(((u={})[g]=[this._process(N[g],t)],u)):A.push(((s={})[g]=this._process(N[g],t),s))}}return E[_]=A,E}for(var O=1,k=1,P=1,L=1,E={},m=0;m<e.length;m++){var D=e[m],g=Object.keys(D)[0];switch(g){case"@":var w=D["@"],C=Object.keys(w);if(t.group&&1!==C.length)E[y]=w;else for(var I in w)E[y+I]=w[I];break;case"#":O=this._processSpecItem(D["#"],E,t.group,_,p,O);break;case"!":k=this._processSpecItem(D["!"],E,t.group,v,d,k);break;case"?":P=this._processSpecItem(D["?"],E,t.group,b,f,P);break;case"$":L=this._processSpecItem(D.$,E,t.group,x,h,L);break;default:var N=D;if(0!==N[g].length&&r_.isArray(N[g][0])){for(var T=[],S=N[g],B=0;B<S.length;B++)T.push(this._process(S[B],t));E[g]=T}else t.verbose?E[g]=[this._process(N[g],t)]:E[g]=this._process(N[g],t)}}return E},t.prototype._processSpecItem=function(e,t,r,n,o,i){var a,u;if(!r&&r_.isArray(e)&&o+e.length>2)try{for(var s=rC(e),l=s.next();!l.done;l=s.next()){var c=l.value,p=n+(i++).toString();t[p]=c}}catch(e){a={error:e}}finally{try{l&&!l.done&&(u=s.return)&&u.call(s)}finally{if(a)throw a.error}}else{var p=o>1?n+(i++).toString():n;t[p]=e}return i},t.prototype.beginElement=function(e){var t,r,n=[];if(0===this._currentList.length)this._currentList.push(((t={})[e]=n,t));else{var o=this._currentList[this._currentList.length-1];this._isElementNode(o,e)?0!==o[e].length&&r_.isArray(o[e][0])?o[e].push(n):o[e]=[o[e],n]:this._currentList.push(((r={})[e]=n,r))}this._currentIndex++,this._listRegister.length>this._currentIndex?this._listRegister[this._currentIndex]=n:this._listRegister.push(n),this._currentList=n},t.prototype.endElement=function(){this._currentList=this._listRegister[--this._currentIndex]},t.prototype.attribute=function(e,t){var r,n;if(0===this._currentList.length)this._currentList.push({"@":((r={})[e]=t,r)});else{var o=this._currentList[this._currentList.length-1];this._isAttrNode(o)?o["@"][e]=t:this._currentList.push({"@":((n={})[e]=t,n)})}},t.prototype.comment=function(e){if(0===this._currentList.length)this._currentList.push({"!":e});else{var t=this._currentList[this._currentList.length-1];this._isCommentNode(t)?r_.isArray(t["!"])?t["!"].push(e):t["!"]=[t["!"],e]:this._currentList.push({"!":e})}},t.prototype.text=function(e){if(0===this._currentList.length)this._currentList.push({"#":e});else{var t=this._currentList[this._currentList.length-1];this._isTextNode(t)?r_.isArray(t["#"])?t["#"].push(e):t["#"]=[t["#"],e]:this._currentList.push({"#":e})}},t.prototype.instruction=function(e,t){var r=""===t?e:e+" "+t;if(0===this._currentList.length)this._currentList.push({"?":r});else{var n=this._currentList[this._currentList.length-1];this._isInstructionNode(n)?r_.isArray(n["?"])?n["?"].push(r):n["?"]=[n["?"],r]:this._currentList.push({"?":r})}},t.prototype.cdata=function(e){if(0===this._currentList.length)this._currentList.push({$:e});else{var t=this._currentList[this._currentList.length-1];this._isCDATANode(t)?r_.isArray(t.$)?t.$.push(e):t.$=[t.$,e]:this._currentList.push({$:e})}},t.prototype._isAttrNode=function(e){return"@"in e},t.prototype._isTextNode=function(e){return"#"in e},t.prototype._isCommentNode=function(e){return"!"in e},t.prototype._isInstructionNode=function(e){return"?"in e},t.prototype._isCDATANode=function(e){return"$"in e},t.prototype._isElementNode=function(e,t){return t in e},t.prototype._getAttrKey=function(){return this._builderOptions.convert.att},t.prototype._getNodeKey=function(e){switch(e){case rA.NodeType.Comment:return this._builderOptions.convert.comment;case rA.NodeType.Text:return this._builderOptions.convert.text;case rA.NodeType.ProcessingInstruction:return this._builderOptions.convert.ins;case rA.NodeType.CData:return this._builderOptions.convert.cdata;default:throw Error("Invalid node type.")}},t}(rN.BaseWriter),rb.MapWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=r_.applyDefaults(r,{format:"map",wellFormed:!1,group:!1,verbose:!1}),n}return rx(t,e),t.prototype.serialize=function(e){var t=r_.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1,verbose:!1}),r=new rE.ObjectWriter(this._builderOptions,t).serialize(e);return this._convertObject(r)},t.prototype._convertObject=function(e){if(r_.isArray(e)){for(var t=0;t<e.length;t++)e[t]=this._convertObject(e[t]);return e}if(!r_.isObject(e))return e;var r=new Map;for(var n in e)r.set(n,this._convertObject(e[n]));return r},t}(rN.BaseWriter),rv.MapWriter=rb.MapWriter;var rB={},rq=rB&&rB.__extends||(m=function(e,t){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(rB,"__esModule",{value:!0});var r_=et("jDPAV"),rA=et("bql4T"),rj=et("cnpfV");rB.XMLWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._indentation={},n._lengthToLastNewline=0,n._writerOptions=r_.applyDefaults(r,{wellFormed:!1,headless:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,indentTextOnlyNodes:!1,spaceBeforeSlash:!1}),n}return rq(t,e),t.prototype.serialize=function(e){return this._refs={suppressPretty:!1,emptyNode:!1,markup:""},e.nodeType!==rA.NodeType.Document||this._writerOptions.headless||this.declaration(this._builderOptions.version,this._builderOptions.encoding,this._builderOptions.standalone),this.serializeNode(e,this._writerOptions.wellFormed),this._writerOptions.prettyPrint&&this._refs.markup.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(this._refs.markup=this._refs.markup.slice(0,-this._writerOptions.newline.length)),this._refs.markup},t.prototype.declaration=function(e,t,r){this._beginLine(),this._refs.markup+='<?xml version="'+e+'"',void 0!==t&&(this._refs.markup+=' encoding="'+t+'"'),void 0!==r&&(this._refs.markup+=' standalone="'+(r?"yes":"no")+'"'),this._refs.markup+="?>",this._endLine()},t.prototype.docType=function(e,t,r){this._beginLine(),t&&r?this._refs.markup+="<!DOCTYPE "+e+' PUBLIC "'+t+'" "'+r+'">':t?this._refs.markup+="<!DOCTYPE "+e+' PUBLIC "'+t+'">':r?this._refs.markup+="<!DOCTYPE "+e+' SYSTEM "'+r+'">':this._refs.markup+="<!DOCTYPE "+e+">",this._endLine()},t.prototype.openTagBegin=function(e){this._beginLine(),this._refs.markup+="<"+e},t.prototype.openTagEnd=function(e,t,r){if(this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._writerOptions.prettyPrint&&!t&&!r){for(var n=!0,o=!0,i=this.currentNode.firstChild,a=0,u=0;i;){if(rj.Guard.isExclusiveTextNode(i))u++;else if(rj.Guard.isCDATASectionNode(i))a++;else{n=!1,o=!1;break}""!==i.data&&(o=!1),i=i.nextSibling}this._refs.suppressPretty=!this._writerOptions.indentTextOnlyNodes&&n&&(a<=1&&0===u||0===a),this._refs.emptyNode=o}(r||t||this._refs.emptyNode)&&this._writerOptions.allowEmptyTags?this._refs.markup+="></"+e+">":this._refs.markup+=r?" />":t||this._refs.emptyNode?this._writerOptions.spaceBeforeSlash?" />":"/>":">",this._endLine()},t.prototype.closeTag=function(e){this._refs.emptyNode||(this._beginLine(),this._refs.markup+="</"+e+">"),this._refs.suppressPretty=!1,this._refs.emptyNode=!1,this._endLine()},t.prototype.attribute=function(e,t){var r=e+'="'+t+'"';this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._refs.markup.length-this._lengthToLastNewline+1+r.length>this._writerOptions.width?(this._endLine(),this._beginLine(),this._refs.markup+=this._indent(1)+r):this._refs.markup+=" "+r},t.prototype.text=function(e){""!==e&&(this._beginLine(),this._refs.markup+=e,this._endLine())},t.prototype.cdata=function(e){""!==e&&(this._beginLine(),this._refs.markup+="<![CDATA["+e+"]]>",this._endLine())},t.prototype.comment=function(e){this._beginLine(),this._refs.markup+="\x3c!--"+e+"--\x3e",this._endLine()},t.prototype.instruction=function(e,t){this._beginLine(),this._refs.markup+="<?"+(""===t?e:e+" "+t)+"?>",this._endLine()},t.prototype._beginLine=function(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._indent(this._writerOptions.offset+this.level))},t.prototype._endLine=function(){this._writerOptions.prettyPrint&&!this._refs.suppressPretty&&(this._refs.markup+=this._writerOptions.newline,this._lengthToLastNewline=this._refs.markup.length)},t.prototype._indent=function(e){if(e<=0)return"";if(void 0!==this._indentation[e])return this._indentation[e];var t=this._writerOptions.indent.repeat(e);return this._indentation[e]=t,t},t}(rN.BaseWriter),rv.XMLWriter=rB.XMLWriter,rv.ObjectWriter=rE.ObjectWriter;var rM={},rR=rM&&rM.__extends||(D=function(e,t){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),rU=rM&&rM.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rM,"__esModule",{value:!0});var r_=et("jDPAV");rM.JSONWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=r_.applyDefaults(r,{wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1}),n}return rR(t,e),t.prototype.serialize=function(e){var t=r_.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),r=new rE.ObjectWriter(this._builderOptions,t).serialize(e);return this._beginLine(this._writerOptions,0)+this._convertObject(r,this._writerOptions)},t.prototype._convertObject=function(e,t,r){var n,o,i=this;void 0===r&&(r=0);var a="",u=this._isLeafNode(e);if(r_.isArray(e)){a+="[";var s=e.length,l=0;try{for(var c=rU(e),p=c.next();!p.done;p=c.next()){var d=p.value;a+=this._endLine(t,r+1)+this._beginLine(t,r+1)+this._convertObject(d,t,r+1),l<s-1&&(a+=","),l++}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}a+=this._endLine(t,r)+this._beginLine(t,r),a+="]"}else if(r_.isObject(e)){a+="{";var f=r_.objectLength(e),h=0;r_.forEachObject(e,function(e,n){u&&t.prettyPrint?a+=" ":a+=i._endLine(t,r+1)+i._beginLine(t,r+1),a+=i._key(e),t.prettyPrint&&(a+=" "),a+=i._convertObject(n,t,r+1),h<f-1&&(a+=","),h++},this),u&&t.prettyPrint?a+=" ":a+=this._endLine(t,r)+this._beginLine(t,r),a+="}"}else a+=this._val(e);return a},t.prototype._beginLine=function(e,t){if(e.prettyPrint){var r=e.offset+t+1;if(r>0)return Array(r).join(e.indent)}return""},t.prototype._endLine=function(e,t){return e.prettyPrint?e.newline:""},t.prototype._key=function(e){return'"'+e+'":'},t.prototype._val=function(e){return JSON.stringify(e)},t.prototype._isLeafNode=function(e){return 1>=this._descendantCount(e)},t.prototype._descendantCount=function(e,t){var r=this;return void 0===t&&(t=0),r_.isArray(e)?r_.forEachArray(e,function(e){return t+=r._descendantCount(e,t)},this):r_.isObject(e)?r_.forEachObject(e,function(e,n){return t+=r._descendantCount(n,t)},this):t++,t},t}(rN.BaseWriter),rv.JSONWriter=rM.JSONWriter;var rG={},rz=rG&&rG.__extends||(g=function(e,t){return(g=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),rV=rG&&rG.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rG,"__esModule",{value:!0});var r_=et("jDPAV");rG.YAMLWriter=function(e){function t(t,r){var n=e.call(this,t)||this;if(n._writerOptions=r_.applyDefaults(r,{wellFormed:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1}),n._writerOptions.indent.length<2)throw Error("YAML indententation string must be at least two characters long.");if(n._writerOptions.offset<0)throw Error("YAML offset should be zero or a positive number.");return n}return rz(t,e),t.prototype.serialize=function(e){var t=r_.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),r=new rE.ObjectWriter(this._builderOptions,t).serialize(e),n=this._beginLine(this._writerOptions,0)+"---"+this._endLine(this._writerOptions)+this._convertObject(r,this._writerOptions,0);return n.slice(-this._writerOptions.newline.length)===this._writerOptions.newline&&(n=n.slice(0,-this._writerOptions.newline.length)),n},t.prototype._convertObject=function(e,t,r,n){var o,i,a=this;void 0===n&&(n=!1);var u="";if(r_.isArray(e))try{for(var s=rV(e),l=s.next();!l.done;l=s.next()){var c=l.value;u+=this._beginLine(t,r,!0),r_.isObject(c)?r_.isEmpty(c)?u+='""'+this._endLine(t):u+=this._convertObject(c,t,r,!0):u+=this._val(c)+this._endLine(t)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}else r_.forEachObject(e,function(e,o){n?(u+=a._key(e),n=!1):u+=a._beginLine(t,r)+a._key(e),r_.isObject(o)?r_.isEmpty(o)?u+=' ""'+a._endLine(t):u+=a._endLine(t)+a._convertObject(o,t,r+1):u+=" "+a._val(o)+a._endLine(t)},this);return u},t.prototype._beginLine=function(e,t,r){void 0===r&&(r=!1);var n=Array(e.offset+t+1).join(e.indent);return r?n.substr(0,n.length-2)+"-"+n.substr(-1,1):n},t.prototype._endLine=function(e){return e.newline},t.prototype._key=function(e){return'"'+e+'":'},t.prototype._val=function(e){return JSON.stringify(e)},t}(rN.BaseWriter),rv.YAMLWriter=rG.YAMLWriter;var rA=et("bql4T"),rj=et("cnpfV"),rL=et("eOMTm"),rH={};Object.defineProperty(rH,"__esModule",{value:!0});var rW={};Object.defineProperty(rW,"__esModule",{value:!0});var r$={};Object.defineProperty(r$,"__esModule",{value:!0});var r_=et("jDPAV");r$.AbortController=et("84pNM").AbortControllerImpl,r$.AbortSignal=et("2BzzY").AbortSignalImpl;var rY=et("hUGgy");r$.AbstractRange=rY.AbstractRangeImpl,r$.Attr=et("lrfke").AttrImpl,r$.CDATASection=et("fpzS2").CDATASectionImpl;var rX=et("48JgK");r$.CharacterData=rX.CharacterDataImpl;var rJ={};Object.defineProperty(rJ,"__esModule",{value:!0});var rj=et("cnpfV"),rL=et("eOMTm");rJ.ChildNodeImpl=function(){function e(){}return e.prototype.before=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=r._parent;if(null!==n){for(var o=r._previousSibling,i=!0;i&&o;){i=!1;for(var a=0;a<e.length;a++)if(e[a]===o){o=o._previousSibling,i=!0;break}}var u=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);o=null===o?n._firstChild:o._nextSibling,rL.mutation_preInsert(u,n,o)}},e.prototype.after=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=r._parent;if(n){for(var o=r._nextSibling,i=!0;i&&o;){i=!1;for(var a=0;a<e.length;a++)if(e[a]===o){o=o._nextSibling,i=!0;break}}var u=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);rL.mutation_preInsert(u,n,o)}},e.prototype.replaceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=r._parent;if(n){for(var o=r._nextSibling,i=!0;i&&o;){i=!1;for(var a=0;a<e.length;a++)if(e[a]===o){o=o._nextSibling,i=!0;break}}var u=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);r._parent===n?rL.mutation_replace(r,u,n):rL.mutation_preInsert(u,n,o)}},e.prototype.remove=function(){var e=rj.Cast.asNode(this),t=e._parent;t&&rL.mutation_remove(e,t)},e}(),r$.Comment=et("7vMWy").CommentImpl,r$.CustomEvent=et("aBgn9").CustomEventImpl;var rK=et("ESCTi");r$.DocumentFragment=rK.DocumentFragmentImpl;var rQ=et("arxVV");r$.Document=rQ.DocumentImpl;var rZ={};Object.defineProperty(rZ,"__esModule",{value:!0}),rZ.DocumentOrShadowRootImpl=function(){};var r0=et("FrTv7");r$.DocumentType=r0.DocumentTypeImpl;var r1=et("lrpO3");r$.dom=r1.dom,r$.DOMImplementation=et("85Z9s").DOMImplementationImpl,r$.DOMTokenList=et("8Piwh").DOMTokenListImpl;var r2=et("iW3sp");r$.Element=r2.ElementImpl,r$.Event=et("df3k2").EventImpl,r$.EventTarget=et("ezaCF").EventTargetImpl,r$.HTMLCollection=et("egFCd").HTMLCollectionImpl;var r3={},r8=r3&&r3.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r3,"__esModule",{value:!0});var r1=et("lrpO3"),rj=et("cnpfV"),rP=et("b9DcM");r3.MutationObserverImpl=function(){function e(e){this._nodeList=[],this._recordQueue=[],this._callback=e;var t=r1.dom.window;rP.set.append(t._mutationObservers,this)}return e.prototype.observe=function(e,t){if((void 0!==(t=t||{childList:!1,subtree:!1}).attributeOldValue||void 0!==t.attributeFilter)&&void 0===t.attributes&&(t.attributes=!0),void 0!==t.characterDataOldValue&&void 0===t.characterData&&(t.characterData=!0),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||void 0!==t.attributeFilter&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw TypeError();var r,n,o=!1,i=t,a=function(e){var t,r;if(e.observer===u){o=!0;try{for(var n=(t=void 0,r8(u._nodeList)),a=n.next();!a.done;a=n.next()){var s=a.value;rP.list.remove(s._registeredObserverList,function(t){return rj.Guard.isTransientRegisteredObserver(t)&&t.source===e})}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.options=i}},u=this;try{for(var s=r8(e._registeredObserverList),l=s.next();!l.done;l=s.next()){var c=l.value;a(c)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}o||(e._registeredObserverList.push({observer:this,options:t}),this._nodeList.push(e))},e.prototype.disconnect=function(){var e,t,r=this;try{for(var n=r8(this._nodeList),o=n.next();!o.done;o=n.next()){var i=o.value;rP.list.remove(i._registeredObserverList,function(e){return e.observer===r})}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._recordQueue=[]},e.prototype.takeRecords=function(){var e=this._recordQueue;return this._recordQueue=[],e},e}(),r$.MutationObserver=r3.MutationObserverImpl,r$.MutationRecord=et("1qAZS").MutationRecordImpl,r$.NamedNodeMap=et("kpMEY").NamedNodeMapImpl,r$.NodeFilter=et("90TyW").NodeFilterImpl,r$.Node=et("kuLmk").NodeImpl,r$.NodeIterator=et("9Y4Fd").NodeIteratorImpl,r$.NodeList=et("is6DP").NodeListImpl,r$.NodeListStatic=et("fgilR").NodeListStaticImpl;var r5={};Object.defineProperty(r5,"__esModule",{value:!0});var rj=et("cnpfV");r5.NonDocumentTypeChildNodeImpl=function(){function e(){}return Object.defineProperty(e.prototype,"previousElementSibling",{get:function(){for(var e=rj.Cast.asNode(this)._previousSibling;e;)if(rj.Guard.isElementNode(e))return e;else e=e._previousSibling;return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextElementSibling",{get:function(){for(var e=rj.Cast.asNode(this)._nextSibling;e;)if(rj.Guard.isElementNode(e))return e;else e=e._nextSibling;return null},enumerable:!0,configurable:!0}),e}();var r6={};Object.defineProperty(r6,"__esModule",{value:!0});var rj=et("cnpfV"),rL=et("eOMTm");r6.NonElementParentNodeImpl=function(){function e(){}return e.prototype.getElementById=function(e){for(var t=rL.tree_getFirstDescendantNode(rj.Cast.asNode(this),!1,!1,function(e){return rj.Guard.isElementNode(e)});null!==t;){if(t._uniqueIdentifier===e)return t;t=rL.tree_getNextDescendantNode(rj.Cast.asNode(this),t,!1,!1,function(e){return rj.Guard.isElementNode(e)})}return null},e}();var r9={},r4=r9&&r9.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r9,"__esModule",{value:!0});var rj=et("cnpfV"),rL=et("eOMTm");r9.ParentNodeImpl=function(){function e(){}return Object.defineProperty(e.prototype,"children",{get:function(){return rL.create_htmlCollection(rj.Cast.asNode(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){for(var e=rj.Cast.asNode(this)._firstChild;e;)if(rj.Guard.isElementNode(e))return e;else e=e._nextSibling;return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){for(var e=rj.Cast.asNode(this)._lastChild;e;)if(rj.Guard.isElementNode(e))return e;else e=e._previousSibling;return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){var e,t,r=0;try{for(var n=r4(rj.Cast.asNode(this)._children),o=n.next();!o.done;o=n.next()){var i=o.value;rj.Guard.isElementNode(i)&&r++}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},enumerable:!0,configurable:!0}),e.prototype.prepend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);rL.mutation_preInsert(n,r,r._firstChild)},e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rj.Cast.asNode(this),n=rL.parentNode_convertNodesIntoANode(e,r._nodeDocument);rL.mutation_append(n,r)},e.prototype.querySelector=function(e){var t=rj.Cast.asNode(this),r=rL.selectors_scopeMatchASelectorsString(e,t);return 0===r.length?null:r[0]},e.prototype.querySelectorAll=function(e){var t=rj.Cast.asNode(this),r=rL.selectors_scopeMatchASelectorsString(e,t);return rL.create_nodeListStatic(t,r)},e}(),r$.ProcessingInstruction=et("b9Cnk").ProcessingInstructionImpl,r$.Range=et("15kuI").RangeImpl;var r7=et("chTgy");r$.ShadowRoot=r7.ShadowRootImpl;var ne={};Object.defineProperty(ne,"__esModule",{value:!0});var rL=et("eOMTm");ne.SlotableImpl=function(){function e(){}return Object.defineProperty(e.prototype,"_name",{get:function(){return this.__name||""},set:function(e){this.__name=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_assignedSlot",{get:function(){return this.__assignedSlot||null},set:function(e){this.__assignedSlot=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assignedSlot",{get:function(){return rL.shadowTree_findASlot(this,!0)},enumerable:!0,configurable:!0}),e}();var nt={},nr=nt&&nt.__extends||(y=function(e,t){return(y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(nt,"__esModule",{value:!0});var rY=et("hUGgy"),nn=et("bnDGi"),rj=et("cnpfV");nt.StaticRangeImpl=function(e){function t(t){var r=e.call(this)||this;if(rj.Guard.isDocumentTypeNode(t.startContainer)||rj.Guard.isAttrNode(t.startContainer)||rj.Guard.isDocumentTypeNode(t.endContainer)||rj.Guard.isAttrNode(t.endContainer))throw new nn.InvalidNodeTypeError;return r._start=[t.startContainer,t.startOffset],r._end=[t.endContainer,t.endOffset],r}return nr(t,e),t}(rY.AbstractRangeImpl),r$.StaticRange=nt.StaticRangeImpl;var no=et("6O4nx");r$.Text=no.TextImpl,r$.Traverser=et("bodkg").TraverserImpl,r$.TreeWalker=et("8i5wm").TreeWalkerImpl,r$.Window=et("aUIwt").WindowImpl,r$.XMLDocument=et("lHHKe").XMLDocumentImpl,r_.applyMixin(r2.ElementImpl,rJ.ChildNodeImpl),r_.applyMixin(rX.CharacterDataImpl,rJ.ChildNodeImpl),r_.applyMixin(r0.DocumentTypeImpl,rJ.ChildNodeImpl),r_.applyMixin(rQ.DocumentImpl,rZ.DocumentOrShadowRootImpl),r_.applyMixin(r7.ShadowRootImpl,rZ.DocumentOrShadowRootImpl),r_.applyMixin(r2.ElementImpl,r5.NonDocumentTypeChildNodeImpl),r_.applyMixin(rX.CharacterDataImpl,r5.NonDocumentTypeChildNodeImpl),r_.applyMixin(rQ.DocumentImpl,r6.NonElementParentNodeImpl),r_.applyMixin(rK.DocumentFragmentImpl,r6.NonElementParentNodeImpl),r_.applyMixin(rQ.DocumentImpl,r9.ParentNodeImpl),r_.applyMixin(rK.DocumentFragmentImpl,r9.ParentNodeImpl),r_.applyMixin(r2.ElementImpl,r9.ParentNodeImpl),r_.applyMixin(no.TextImpl,ne.SlotableImpl),r_.applyMixin(r2.ElementImpl,ne.SlotableImpl),r$.dom.setFeatures(!0),rW.DOMImplementation=r$.DOMImplementation;var ni={};Object.defineProperty(ni,"__esModule",{value:!0});var na={};Object.defineProperty(na,"__esModule",{value:!0});var rL=et("eOMTm"),nu={},ns=nu&&nu.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},nl=nu&&nu.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(nu,"__esModule",{value:!0});var nc={},np=nc&&nc.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(nc,"__esModule",{value:!0});var nd={};Object.defineProperty(nd,"__esModule",{value:!0}),(_=nd.TokenType||(nd.TokenType={}))[_.EOF=0]="EOF",_[_.Declaration=1]="Declaration",_[_.DocType=2]="DocType",_[_.Element=3]="Element",_[_.Text=4]="Text",_[_.CDATA=5]="CDATA",_[_.PI=6]="PI",_[_.Comment=7]="Comment",_[_.ClosingTag=8]="ClosingTag",nc.XMLStringLexer=function(){function e(e,t){this._options={skipWhitespaceOnlyText:!1},this.err={line:-1,col:-1,index:-1,str:""},this._str=e,this._index=0,this._length=e.length,t&&(this._options.skipWhitespaceOnlyText=t.skipWhitespaceOnlyText||!1)}return e.prototype.nextToken=function(){if(this.eof())return{type:nd.TokenType.EOF};var t=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&t.type===nd.TokenType.Text&&e.isWhiteSpaceToken(t)&&(t=this.nextToken()),t},e.prototype.openBracket=function(){if(this.skipIfStartsWith("?"))if(!this.skipIfStartsWith("xml"))return this.pi();else if(e.isSpace(this._str[this._index]))return this.declaration();else return this.seek(-3),this.pi();if(this.skipIfStartsWith("!"))if(this.skipIfStartsWith("--"))return this.comment();else{if(this.skipIfStartsWith("[CDATA["))return this.cdata();if(this.skipIfStartsWith("DOCTYPE"))return this.doctype();this.throwError("Invalid '!' in opening tag.")}else if(this.skipIfStartsWith("/"))return this.closeTag();else return this.openTag()},e.prototype.declaration=function(){for(var e="",t="",r="";!this.eof();){if(this.skipSpace(),this.skipIfStartsWith("?>"))return{type:nd.TokenType.Declaration,version:e,encoding:t,standalone:r};var n=np(this.attribute(),2),o=n[0],i=n[1];"version"===o?e=i:"encoding"===o?t=i:"standalone"===o?r=i:this.throwError("Invalid attribute name: "+o)}this.throwError("Missing declaration end symbol `?>`")},e.prototype.doctype=function(){var e="",t="";this.skipSpace();var r=this.takeUntil2("[",">",!0);return this.skipSpace(),this.skipIfStartsWith("PUBLIC")?(e=this.quotedString(),t=this.quotedString()):this.skipIfStartsWith("SYSTEM")&&(t=this.quotedString()),this.skipSpace(),this.skipIfStartsWith("[")&&(this.skipUntil("]"),this.skipIfStartsWith("]")||this.throwError("Missing end bracket of DTD internal subset")),this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing doctype end symbol `>`"),{type:nd.TokenType.DocType,name:r,pubId:e,sysId:t}},e.prototype.pi=function(){var e=this.takeUntilStartsWith("?>",!0);if(this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.skipSpace(),this.skipIfStartsWith("?>"))return{type:nd.TokenType.PI,target:e,data:""};var t=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:nd.TokenType.PI,target:e,data:t}},e.prototype.text=function(){var e=this.takeUntil("<");return{type:nd.TokenType.Text,data:e}},e.prototype.comment=function(){var e=this.takeUntilStartsWith("--\x3e");return this.eof()&&this.throwError("Missing comment end symbol `--\x3e`"),this.seek(3),{type:nd.TokenType.Comment,data:e}},e.prototype.cdata=function(){var e=this.takeUntilStartsWith("]]>");return this.eof()&&this.throwError("Missing CDATA end symbol `]>`"),this.seek(3),{type:nd.TokenType.CDATA,data:e}},e.prototype.openTag=function(){this.skipSpace();var e=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:nd.TokenType.Element,name:e,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:nd.TokenType.Element,name:e,attributes:[],selfClosing:!0};for(var t=[];!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:nd.TokenType.Element,name:e,attributes:t,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:nd.TokenType.Element,name:e,attributes:t,selfClosing:!0};var r=this.attribute();t.push(r)}this.throwError("Missing opening element tag end symbol `>`")},e.prototype.closeTag=function(){this.skipSpace();var e=this.takeUntil(">",!0);return this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing closing element tag end symbol `>`"),{type:nd.TokenType.ClosingTag,name:e}},e.prototype.attribute=function(){this.skipSpace();var e=this.takeUntil("=",!0);return this.skipSpace(),this.skipIfStartsWith("=")||this.throwError("Missing equals sign before attribute value"),[e,this.quotedString()]},e.prototype.quotedString=function(){this.skipSpace();var t=this.take(1);e.isQuote(t)||this.throwError("Missing start quote character before quoted value");var r=this.takeUntil(t);return this.skipIfStartsWith(t)||this.throwError("Missing end quote character after quoted value"),r},e.prototype.eof=function(){return this._index>=this._length},e.prototype.skipIfStartsWith=function(e){var t=e.length;if(1===t)if(this._str[this._index]===e)return this._index++,!0;else return!1;for(var r=0;r<t;r++)if(this._str[this._index+r]!==e[r])return!1;return this._index+=t,!0},e.prototype.seek=function(e){this._index+=e,this._index<0&&(this._index=0),this._index>this._length&&(this._index=this._length)},e.prototype.skipSpace=function(){for(;!this.eof()&&e.isSpace(this._str[this._index]);)this._index++},e.prototype.take=function(e){if(1===e)return this._str[this._index++];var t=this._index;return this.seek(e),this._str.slice(t,this._index)},e.prototype.takeUntil=function(t,r){void 0===r&&(r=!1);for(var n=this._index;this._index<this._length;){var o=this._str[this._index];if(o===t||r&&e.isSpace(o))break;this._index++}return this._str.slice(n,this._index)},e.prototype.takeUntil2=function(t,r,n){void 0===n&&(n=!1);for(var o=this._index;this._index<this._length;){var i=this._str[this._index];if(i===t||i===r||n&&e.isSpace(i))break;this._index++}return this._str.slice(o,this._index)},e.prototype.takeUntilStartsWith=function(t,r){void 0===r&&(r=!1);for(var n=this._index,o=t.length;this._index<this._length;){for(var i=!0,a=0;a<o;a++){var u=this._str[this._index+a],s=t[a];if(r&&e.isSpace(u))return this._str.slice(n,this._index);if(u!==s){this._index++,i=!1;break}}if(i)return this._str.slice(n,this._index)}return this._index=this._length,this._str.slice(n)},e.prototype.skipUntil=function(e){for(;this._index<this._length;)if(this._str[this._index]!==e)this._index++;else break},e.isWhiteSpaceToken=function(e){for(var t=e.data,r=0;r<t.length;r++){var n=t[r];if(" "!==n&&"\n"!==n&&"\r"!==n&&" "!==n&&"\f"!==n)return!1}return!0},e.isSpace=function(e){return" "===e||"\n"===e||"\r"===e||" "===e},e.isQuote=function(e){return'"'===e||"'"===e},e.prototype.throwError=function(e){for(var t=/\r\n|\r|\n/g,r=null,n=0,o=0,i=this._str.length;null!==(r=t.exec(this._str))&&null!==r;)if(n++,r.index<this._index&&(o=t.lastIndex),r.index>this._index){i=r.index;break}throw this.err={line:n,col:this._index-o,index:this._index,str:this._str.substring(o,i)},Error(e+"\nIndex: "+this.err.index+"\nLn: "+this.err.line+", Col: "+this.err.col+"\nInput: "+this.err.str)},e.prototype[Symbol.iterator]=function(){return this._index=0,{next:(function(){var e=this.nextToken();return e.type===nd.TokenType.EOF?{done:!0,value:null}:{done:!1,value:e}}).bind(this)}},e}();var rP=et("b9DcM"),rL=et("eOMTm");nu.XMLParserImpl=function(){function e(){}return e.prototype.parse=function(e){for(var t,r,n,o,i=new nc.XMLStringLexer(e,{skipWhitespaceOnlyText:!0}),a=rL.create_document(),u=a,s=i.nextToken();s.type!==nd.TokenType.EOF;){switch(s.type){case nd.TokenType.Declaration:var l=s;if("1.0"!==l.version)throw Error("Invalid xml version: "+l.version);break;case nd.TokenType.DocType:var c=s;if(!rL.xml_isPubidChar(c.pubId))throw Error("DocType public identifier does not match PubidChar construct.");if(!rL.xml_isLegalChar(c.sysId)||-1!==c.sysId.indexOf('"')&&-1!==c.sysId.indexOf("'"))throw Error("DocType system identifier contains invalid characters.");u.appendChild(a.implementation.createDocumentType(c.name,c.pubId,c.sysId));break;case nd.TokenType.CDATA:var p=s;if(!rL.xml_isLegalChar(p.data)||-1!==p.data.indexOf("]]>"))throw Error("CDATA contains invalid characters.");u.appendChild(a.createCDATASection(p.data));break;case nd.TokenType.Comment:var d=s;if(!rL.xml_isLegalChar(d.data)||-1!==d.data.indexOf("--")||d.data.endsWith("-"))throw Error("Comment data contains invalid characters.");u.appendChild(a.createComment(d.data));break;case nd.TokenType.PI:var f=s;if(-1!==f.target.indexOf(":")||/^xml$/i.test(f.target))throw Error("Processing instruction target contains invalid characters.");if(!rL.xml_isLegalChar(f.data)||-1!==f.data.indexOf("?>"))throw Error("Processing instruction data contains invalid characters.");u.appendChild(a.createProcessingInstruction(f.target,f.data));break;case nd.TokenType.Text:var h=s;if(!rL.xml_isLegalChar(h.data))throw Error("Text data contains invalid characters.");u.appendChild(a.createTextNode(this._decodeText(h.data)));break;case nd.TokenType.Element:var m=s,D=ns(rL.namespace_extractQName(m.name),2),g=D[0],y=D[1];if(-1!==y.indexOf(":")||!rL.xml_isName(y))throw Error("Node local name contains invalid characters.");if("xmlns"===g)throw Error("An element cannot have the 'xmlns' prefix.");var _=u.lookupNamespaceURI(g),v={};try{for(var b=(t=void 0,nl(m.attributes)),x=b.next();!x.done;x=b.next()){var E=ns(x.value,2),w=E[0],C=E[1];if("xmlns"===w)_=C;else{var A=ns(rL.namespace_extractQName(w),2),N=A[0],T=A[1];"xmlns"===N&&(T===g&&(_=C),v[T]=C)}}}catch(e){t={error:e}}finally{try{x&&!x.done&&(r=b.return)&&r.call(b)}finally{if(t)throw t.error}}var S=null!==_?a.createElementNS(_,m.name):a.createElement(m.name);u.appendChild(S);var F=new rO.LocalNameSet;try{for(var O=(n=void 0,nl(m.attributes)),k=O.next();!k.done;k=O.next()){var P=ns(k.value,2),w=P[0],C=P[1],L=ns(rL.namespace_extractQName(w),2),N=L[0],T=L[1],I=null;if("xmlns"===N||null===N&&"xmlns"===T?I=rP.namespace.XMLNS:(I=S.lookupNamespaceURI(N),null!==I&&S.isDefaultNamespace(I)?I=null:null===I&&null!==N&&(I=v[N]||null)),F.has(I,T))throw Error("Element contains duplicate attributes.");if(F.set(I,T),I===rP.namespace.XMLNS&&C===rP.namespace.XMLNS)throw Error("XMLNS namespace is reserved.");if(-1!==T.indexOf(":")||!rL.xml_isName(T))throw Error("Attribute local name contains invalid characters.");if("xmlns"===N&&""===C)throw Error("Empty XML namespace is not allowed.");null!==I?S.setAttributeNS(I,w,this._decodeAttributeValue(C)):S.setAttribute(w,this._decodeAttributeValue(C))}}catch(e){n={error:e}}finally{try{k&&!k.done&&(o=O.return)&&o.call(O)}finally{if(n)throw n.error}}m.selfClosing||(u=S);break;case nd.TokenType.ClosingTag:if(s.name!==u.nodeName)throw Error("Closing tag name does not match opening tag name.");u._parent&&(u=u._parent)}s=i.nextToken()}return a},e.prototype._decodeText=function(e){return null==e?e:e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")},e.prototype._decodeAttributeValue=function(e){return null==e?e:e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")},e}(),na.DOMParserImpl=function(){function e(){}return e.prototype.parseFromString=function(e,t){if("text/html"===t)throw Error("HTML parser not implemented.");try{var r=new nu.XMLParserImpl().parse(e);return r._contentType=t,r}catch(e){var n="http://www.mozilla.org/newlayout/xml/parsererror.xml",r=rL.create_xmlDocument(),o=r.createElementNS(n,"parsererror"),i=r.createElementNS(n,"error");return i.setAttribute("message",e.message),o.appendChild(i),r.appendChild(o),r}},e}(),ni.DOMParser=na.DOMParserImpl,rW.DOMParser=ni.DOMParser;var nf={};Object.defineProperty(nf,"__esModule",{value:!0});var nh={},nm=nh&&nh.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(nh,"__esModule",{value:!0});var rA=et("bql4T"),nn=et("bnDGi"),rP=et("b9DcM"),rL=et("eOMTm");nh.XMLSerializerImpl=function(){function e(){}return e.prototype.serializeToString=function(e){return this._xmlSerialization(e,!1)},e.prototype._xmlSerialization=function(e,t){if(void 0===e._nodeDocument||e._nodeDocument._hasNamespaces){var r=new rk.NamespacePrefixMap;r.set("xml",rP.namespace.XML);try{return this._serializeNodeNS(e,null,r,{value:1},t)}catch(e){throw new nn.InvalidStateError}}try{return this._serializeNode(e,t)}catch(e){throw new nn.InvalidStateError}},e.prototype._serializeNodeNS=function(e,t,r,n,o){switch(e.nodeType){case rA.NodeType.Element:return this._serializeElementNS(e,t,r,n,o);case rA.NodeType.Document:return this._serializeDocumentNS(e,t,r,n,o);case rA.NodeType.Comment:return this._serializeComment(e,o);case rA.NodeType.Text:return this._serializeText(e,o);case rA.NodeType.DocumentFragment:return this._serializeDocumentFragmentNS(e,t,r,n,o);case rA.NodeType.DocumentType:return this._serializeDocumentType(e,o);case rA.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,o);case rA.NodeType.CData:return this._serializeCData(e,o);default:throw Error("Unknown node type: "+e.nodeType)}},e.prototype._serializeNode=function(e,t){switch(e.nodeType){case rA.NodeType.Element:return this._serializeElement(e,t);case rA.NodeType.Document:return this._serializeDocument(e,t);case rA.NodeType.Comment:return this._serializeComment(e,t);case rA.NodeType.Text:return this._serializeText(e,t);case rA.NodeType.DocumentFragment:return this._serializeDocumentFragment(e,t);case rA.NodeType.DocumentType:return this._serializeDocumentType(e,t);case rA.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,t);case rA.NodeType.CData:return this._serializeCData(e,t);default:throw Error("Unknown node type: "+e.nodeType)}},e.prototype._serializeElementNS=function(t,r,n,o,i){if(i&&(-1!==t.localName.indexOf(":")||!rL.xml_isName(t.localName)))throw Error("Node local name contains invalid characters (well-formed required).");var a,u,s="<",l="",c=!1,p=!1,d=n.copy(),f={},h=this._recordNamespaceInformation(t,d,f),m=r,D=t.namespaceURI;if(m===D)null!==h&&(p=!0),s+=l=D===rP.namespace.XML?"xml:"+t.localName:t.localName;else{var g=t.prefix,y=null;if((null!==g||D!==h)&&(y=d.get(g,D)),"xmlns"===g){if(i)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");y=g}null!==y?(l=y+":"+t.localName,null!==h&&h!==rP.namespace.XML&&(m=h||null),s+=l):null!==g?(g in f&&(g=this._generatePrefix(D,d,o)),d.set(g,D),l+=g+":"+t.localName,s+=l,s+=" xmlns:"+g+'="'+this._serializeAttributeValue(D,i)+'"',null!==h&&(m=h||null)):null===h||null!==h&&h!==D?(p=!0,l+=t.localName,m=D,s+=l,s+=' xmlns="'+this._serializeAttributeValue(D,i)+'"'):(l+=t.localName,m=D,s+=l)}s+=this._serializeAttributesNS(t,d,o,f,p,i);var _=D===rP.namespace.HTML;if(_&&0===t.childNodes.length&&e._VoidElementNames.has(t.localName)?(s+=" /",c=!0):_||0!==t.childNodes.length||(s+="/",c=!0),s+=">",c)return s;if(_&&"template"===t.localName);else try{for(var v=nm(t._children||t.childNodes),b=v.next();!b.done;b=v.next()){var x=b.value;s+=this._serializeNodeNS(x,m,d,o,i)}}catch(e){a={error:e}}finally{try{b&&!b.done&&(u=v.return)&&u.call(v)}finally{if(a)throw a.error}}return s+("</"+l+">")},e.prototype._serializeDocumentNS=function(e,t,r,n,o){if(o&&null===e.documentElement)throw Error("Missing document element (well-formed required).");var i,a,u="";try{for(var s=nm(e._children||e.childNodes),l=s.next();!l.done;l=s.next()){var c=l.value;u+=this._serializeNodeNS(c,t,r,n,o)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return u},e.prototype._serializeComment=function(e,t){if(t&&(!rL.xml_isLegalChar(e.data)||-1!==e.data.indexOf("--")||e.data.endsWith("-")))throw Error("Comment data contains invalid characters (well-formed required).");return"\x3c!--"+e.data+"--\x3e"},e.prototype._serializeText=function(e,t){if(t&&!rL.xml_isLegalChar(e.data))throw Error("Text data contains invalid characters (well-formed required).");for(var r="",n=0;n<e.data.length;n++){var o=e.data[n];"&"===o?r+="&amp;":"<"===o?r+="&lt;":">"===o?r+="&gt;":r+=o}return r},e.prototype._serializeDocumentFragmentNS=function(e,t,r,n,o){var i,a,u="";try{for(var s=nm(e._children||e.childNodes),l=s.next();!l.done;l=s.next()){var c=l.value;u+=this._serializeNodeNS(c,t,r,n,o)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return u},e.prototype._serializeDocumentType=function(e,t){if(t&&!rL.xml_isPubidChar(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!rL.xml_isLegalChar(e.systemId)||-1!==e.systemId.indexOf('"')&&-1!==e.systemId.indexOf("'")))throw Error("DocType system identifier contains invalid characters (well-formed required).");return e.publicId&&e.systemId?"<!DOCTYPE "+e.name+' PUBLIC "'+e.publicId+'" "'+e.systemId+'">':e.publicId?"<!DOCTYPE "+e.name+' PUBLIC "'+e.publicId+'">':e.systemId?"<!DOCTYPE "+e.name+' SYSTEM "'+e.systemId+'">':"<!DOCTYPE "+e.name+">"},e.prototype._serializeProcessingInstruction=function(e,t){if(t&&(-1!==e.target.indexOf(":")||/^xml$/i.test(e.target)))throw Error("Processing instruction target contains invalid characters (well-formed required).");if(t&&(!rL.xml_isLegalChar(e.data)||-1!==e.data.indexOf("?>")))throw Error("Processing instruction data contains invalid characters (well-formed required).");return"<?"+(""===e.data?e.target:e.target+" "+e.data)+"?>"},e.prototype._serializeCData=function(e,t){if(t&&-1!==e.data.indexOf("]]>"))throw Error("CDATA contains invalid characters (well-formed required).");return"<![CDATA["+e.data+"]]>"},e.prototype._serializeAttributesNS=function(e,t,r,n,o,i){var a,u,s="",l=i?new rO.LocalNameSet:void 0;try{for(var c=nm(e.attributes),p=c.next();!p.done;p=c.next()){var d=p.value;if(!o&&!i&&null===d.namespaceURI){s+=" "+d.localName+'="'+this._serializeAttributeValue(d.value,i)+'"';continue}if(i&&l&&l.has(d.namespaceURI,d.localName))throw Error("Element contains duplicate attributes (well-formed required).");i&&l&&l.set(d.namespaceURI,d.localName);var f=d.namespaceURI,h=null;if(null!==f)if(h=t.get(d.prefix,f),f===rP.namespace.XMLNS){if(d.value===rP.namespace.XML||null===d.prefix&&o||null!==d.prefix&&(!(d.localName in n)||n[d.localName]!==d.value)&&t.has(d.localName,d.value))continue;if(i&&d.value===rP.namespace.XMLNS)throw Error("XMLNS namespace is reserved (well-formed required).");if(i&&""===d.value)throw Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");"xmlns"===d.prefix&&(h="xmlns")}else null===h&&(h=null!==d.prefix&&(!t.hasPrefix(d.prefix)||t.has(d.prefix,f))?d.prefix:this._generatePrefix(f,t,r),s+=" xmlns:"+h+'="'+this._serializeAttributeValue(f,i)+'"');if(s+=" ",null!==h&&(s+=h+":"),i&&(-1!==d.localName.indexOf(":")||!rL.xml_isName(d.localName)||"xmlns"===d.localName&&null===f))throw Error("Attribute local name contains invalid characters (well-formed required).");s+=d.localName+'="'+this._serializeAttributeValue(d.value,i)+'"'}}catch(e){a={error:e}}finally{try{p&&!p.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}return s},e.prototype._recordNamespaceInformation=function(e,t,r){var n,o,i=null;try{for(var a=nm(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rP.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rP.namespace.XML||(""===d&&(d=null),t.has(p,d)))continue;t.set(p,d),r[p]=d||""}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},e.prototype._generatePrefix=function(e,t,r){var n="ns"+r.value;return r.value++,t.set(n,e),n},e.prototype._serializeAttributeValue=function(e,t){if(t&&null!==e&&!rL.xml_isLegalChar(e))throw Error("Invalid characters in attribute value.");if(null===e)return"";for(var r="",n=0;n<e.length;n++){var o=e[n];'"'===o?r+="&quot;":"&"===o?r+="&amp;":"<"===o?r+="&lt;":">"===o?r+="&gt;":r+=o}return r},e.prototype._serializeElement=function(e,t){if(t&&(-1!==e.localName.indexOf(":")||!rL.xml_isName(e.localName)))throw Error("Node local name contains invalid characters (well-formed required).");var r,n,o=!1,i=e.localName,a="<"+i;if(a+=this._serializeAttributes(e,t),0===e._children.size&&(a+="/",o=!0),a+=">",o)return a;try{for(var u=nm(e._children),s=u.next();!s.done;s=u.next()){var l=s.value;a+=this._serializeNode(l,t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return a+("</"+i+">")},e.prototype._serializeDocument=function(e,t){if(t&&null===e.documentElement)throw Error("Missing document element (well-formed required).");var r,n,o="";try{for(var i=nm(e._children),a=i.next();!a.done;a=i.next()){var u=a.value;o+=this._serializeNode(u,t)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},e.prototype._serializeDocumentFragment=function(e,t){var r,n,o="";try{for(var i=nm(e._children),a=i.next();!a.done;a=i.next()){var u=a.value;o+=this._serializeNode(u,t)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},e.prototype._serializeAttributes=function(e,t){var r,n,o="",i=t?{}:void 0;try{for(var a=nm(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value;if(t&&i&&s.localName in i)throw Error("Element contains duplicate attributes (well-formed required).");if(t&&i&&(i[s.localName]=!0),t&&(-1!==s.localName.indexOf(":")||!rL.xml_isName(s.localName)))throw Error("Attribute local name contains invalid characters (well-formed required).");o+=" "+s.localName+'="'+this._serializeAttributeValue(s.value,t)+'"'}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},e._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),e}(),nf.XMLSerializer=nh.XMLSerializerImpl,rW.XMLSerializer=nf.XMLSerializer;var r_=et("jDPAV");r$.dom.setFeatures(!1),rH.createDocument=function(){var e=new rW.DOMImplementation().createDocument(null,"root",null);return e.documentElement&&e.removeChild(e.documentElement),e},rH.sanitizeInput=function(e,t){if(null==e)return e;if(void 0===t)return e+"";var r="";e+="";for(var n=0;n<e.length;n++){var o=e.charCodeAt(n);if(9===o||10===o||13===o||o>=32&&o<=55295||o>=57344&&o<=65533)r+=e.charAt(n);else if(o>=55296&&o<=56319&&n<e.length-1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343?(r+=String.fromCodePoint(o=(o-55296)*1024+i-56320+65536),n++):r+=r_.isString(t)?t:t(e.charAt(n),n,e)}else r+=r_.isString(t)?t:t(e.charAt(n),n,e)}return r};var rP=et("b9DcM"),nD={};Object.defineProperty(nD,"__esModule",{value:!0});var ng={},ny=ng&&ng.__extends||(v=function(e,t){return(v=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n_=ng&&ng.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},nv=ng&&ng.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ng,"__esModule",{value:!0});var rA=et("bql4T"),rP=et("b9DcM"),rL=et("eOMTm"),nb={};Object.defineProperty(nb,"__esModule",{value:!0}),nb.BaseReader=function(){function e(e){this._builderOptions=e,e.parser&&Object.assign(this,e.parser)}return e.prototype._docType=function(e,t,r,n){return e.dtd({name:t,pubID:r,sysID:n})},e.prototype._comment=function(e,t){return e.com(t)},e.prototype._text=function(e,t){return e.txt(t)},e.prototype._instruction=function(e,t,r){return e.ins(t,r)},e.prototype._cdata=function(e,t){return e.dat(t)},e.prototype._element=function(e,t,r){return void 0===t?e.ele(r):e.ele(t,r)},e.prototype._attribute=function(e,t,r,n){return void 0===t?e.att(r,n):e.att(t,r,n)},e.prototype._sanitize=function(e){return rH.sanitizeInput(e,this._builderOptions.invalidCharReplacement)},e.prototype._decodeText=function(t){return null==t?t:t.replace(/&(quot|amp|apos|lt|gt);/g,function(t,r){return e._entityTable[r]}).replace(/&#(?:x([a-fA-F0-9]+)|([0-9]+));/g,function(e,t,r){return String.fromCodePoint(parseInt(t||r,t?16:10))})},e.prototype._decodeAttributeValue=function(e){return this._decodeText(e)},e.prototype.parse=function(e,t){return this._parse(e,t)},e.prototype.docType=function(e,t,r,n){return this._docType(e,t,r,n)},e.prototype.comment=function(e,t){return this._comment(e,t)},e.prototype.text=function(e,t){return this._text(e,t)},e.prototype.instruction=function(e,t,r){return this._instruction(e,t,r)},e.prototype.cdata=function(e,t){return this._cdata(e,t)},e.prototype.element=function(e,t,r){return this._element(e,t,r)},e.prototype.attribute=function(e,t,r,n){return this._attribute(e,t,r,n)},e.prototype.sanitize=function(e){return this._sanitize(e)},e._entityTable={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},e}(),ng.XMLReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ny(t,e),t.prototype._parse=function(e,t){for(var r,n,o,i,a=new nc.XMLStringLexer(t,{skipWhitespaceOnlyText:this._builderOptions.skipWhitespaceOnlyText}),u=e,s=e,l=a.nextToken();l.type!==nd.TokenType.EOF;){switch(l.type){case nd.TokenType.Declaration:var c=l,p=this.sanitize(c.version);if("1.0"!==p)throw Error("Invalid xml version: "+p);var d={version:p};c.encoding&&(d.encoding=this.sanitize(c.encoding)),c.standalone&&(d.standalone="yes"===this.sanitize(c.standalone)),s.set(d);break;case nd.TokenType.DocType:var f=l;s=this.docType(s,this.sanitize(f.name),this.sanitize(f.pubId),this.sanitize(f.sysId))||s;break;case nd.TokenType.CDATA:var h=l;s=this.cdata(s,this.sanitize(h.data))||s;break;case nd.TokenType.Comment:var m=l;s=this.comment(s,this.sanitize(m.data))||s;break;case nd.TokenType.PI:var D=l;s=this.instruction(s,this.sanitize(D.target),this.sanitize(D.data))||s;break;case nd.TokenType.Text:if(s.node.nodeType===rA.NodeType.Document)break;var g=l;s=this.text(s,this._decodeText(this.sanitize(g.data)))||s;break;case nd.TokenType.Element:var y=l,_=this.sanitize(y.name),v=n_(rL.namespace_extractQName(_),1)[0],b=s.node.lookupNamespaceURI(v),x={};try{for(var E=(r=void 0,nv(y.attributes)),w=E.next();!w.done;w=E.next()){var C=n_(w.value,2),A=C[0],N=C[1];if(A=this.sanitize(A),N=this.sanitize(N),"xmlns"===A)b=N;else{var T=n_(rL.namespace_extractQName(A),2),S=T[0],F=T[1];"xmlns"===S&&(F===v&&(b=N),x[F]=N)}}}catch(e){r={error:e}}finally{try{w&&!w.done&&(n=E.return)&&n.call(E)}finally{if(r)throw r.error}}var O=null!==b?this.element(s,b,_):this.element(s,void 0,_);if(void 0===O)break;s.node===e.node&&(u=O);try{for(var k=(o=void 0,nv(y.attributes)),P=k.next();!P.done;P=k.next()){var L=n_(P.value,2),A=L[0],N=L[1];A=this.sanitize(A),N=this.sanitize(N);var I=n_(rL.namespace_extractQName(A),2),S=I[0],F=I[1],B=null;"xmlns"===S||null===S&&"xmlns"===F?B=rP.namespace.XMLNS:(B=O.node.lookupNamespaceURI(S),null!==B&&O.node.isDefaultNamespace(B)?B=null:null===B&&null!==S&&(B=x[S]||null)),null!==B?this.attribute(O,B,A,this._decodeAttributeValue(N)):this.attribute(O,void 0,A,this._decodeAttributeValue(N))}}catch(e){o={error:e}}finally{try{P&&!P.done&&(i=k.return)&&i.call(k)}finally{if(o)throw o.error}}y.selfClosing||(s=O);break;case nd.TokenType.ClosingTag:s.node.parentNode&&(s=s.up())}l=a.nextToken()}return u},t}(nb.BaseReader),nD.XMLReader=ng.XMLReader;var nx={},nE=nx&&nx.__extends||(b=function(e,t){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(nx,"__esModule",{value:!0});var r_=et("jDPAV");nx.ObjectReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nE(t,e),t.prototype._parse=function(e,t){var r=this,n=this._builderOptions,o=null;return r_.isFunction(t)?o=this.parse(e,t.apply(this)):r_.isArray(t)||r_.isSet(t)?r_.forEachArray(t,function(t){return o=r.parse(e,t)},this):r_.isMap(t)||r_.isObject(t)?r_.forEachObject(t,function(t,i){if(r_.isFunction(i)&&(i=i.apply(r)),n.ignoreConverters||0!==t.indexOf(n.convert.att))if(n.ignoreConverters||0!==t.indexOf(n.convert.text))if(n.ignoreConverters||0!==t.indexOf(n.convert.cdata))if(n.ignoreConverters||0!==t.indexOf(n.convert.comment))if(n.ignoreConverters||0!==t.indexOf(n.convert.ins)){if((r_.isArray(i)||r_.isSet(i))&&r_.isEmpty(i));else if((r_.isMap(i)||r_.isObject(i))&&r_.isEmpty(i))o=r.element(e,void 0,r.sanitize(t))||o;else if(n.keepNullNodes||null!=i)if(r_.isArray(i)||r_.isSet(i))r_.forEachArray(i,function(n){var i={};i[t]=n,o=r.parse(e,i)},r);else if(r_.isMap(i)||r_.isObject(i)){var a=r.element(e,void 0,r.sanitize(t));a&&(o=a,r.parse(a,i))}else if(null!=i&&""!==i){var a=r.element(e,void 0,r.sanitize(t));a&&(o=a,r.text(a,r._decodeText(r.sanitize(i))))}else o=r.element(e,void 0,r.sanitize(t))||o}else if(r_.isString(i)){var u=i.indexOf(" "),s=-1===u?i:i.substr(0,u),l=-1===u?"":i.substr(u+1);o=r.instruction(e,r.sanitize(s),r.sanitize(l))||o}else r_.isArray(i)||r_.isSet(i)?r_.forEachArray(i,function(t){var n=t.indexOf(" "),i=-1===n?t:t.substr(0,n),a=-1===n?"":t.substr(n+1);o=r.instruction(e,r.sanitize(i),r.sanitize(a))||o},r):r_.forEachObject(i,function(t,n){return o=r.instruction(e,r.sanitize(t),r.sanitize(n))||o},r);else r_.isArray(i)||r_.isSet(i)?r_.forEachArray(i,function(t){return o=r.comment(e,r.sanitize(t))||o},r):o=r.comment(e,r.sanitize(i))||o;else r_.isArray(i)||r_.isSet(i)?r_.forEachArray(i,function(t){return o=r.cdata(e,r.sanitize(t))||o},r):o=r.cdata(e,r.sanitize(i))||o;else o=r_.isMap(i)||r_.isObject(i)?r.parse(e,i):r.text(e,r._decodeText(r.sanitize(i)))||o;else if(t===n.convert.att)if(r_.isArray(i)||r_.isSet(i))throw Error("Invalid attribute: "+i.toString()+". "+e._debugInfo());else r_.forEachObject(i,function(t,n){o=r.attribute(e,void 0,r.sanitize(t),r._decodeAttributeValue(r.sanitize(n)))||o});else o=r.attribute(e,void 0,r.sanitize(t.substr(n.convert.att.length)),r._decodeAttributeValue(r.sanitize(i)))||o},this):(n.keepNullNodes||null!=t)&&(o=this.text(e,this._decodeText(this.sanitize(t)))||o),o||e},t}(nb.BaseReader),nD.ObjectReader=nx.ObjectReader;var nw={},nC=nw&&nw.__extends||(x=function(e,t){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(nw,"__esModule",{value:!0}),nw.JSONReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nC(t,e),t.prototype._parse=function(e,t){return new nx.ObjectReader(this._builderOptions).parse(e,JSON.parse(t))},t}(nb.BaseReader),nD.JSONReader=nw.JSONReader;var nA={},nN=nA&&nA.__extends||(E=function(e,t){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(nA,"__esModule",{value:!0});var nT={},nS={};K(nS,"Type",()=>T,e=>T=e),K(nS,"Schema",()=>S,e=>S=e),K(nS,"FAILSAFE_SCHEMA",()=>F,e=>F=e),K(nS,"JSON_SCHEMA",()=>O,e=>O=e),K(nS,"CORE_SCHEMA",()=>k,e=>k=e),K(nS,"DEFAULT_SAFE_SCHEMA",()=>P,e=>P=e),K(nS,"DEFAULT_FULL_SCHEMA",()=>L,e=>L=e),K(nS,"load",()=>I,e=>I=e),K(nS,"loadAll",()=>B,e=>B=e),K(nS,"safeLoad",()=>q,e=>q=e),K(nS,"safeLoadAll",()=>j,e=>j=e),K(nS,"dump",()=>M,e=>M=e),K(nS,"safeDump",()=>R,e=>R=e),K(nS,"YAMLException",()=>U,e=>U=e),K(nS,"MINIMAL_SCHEMA",()=>G,e=>G=e),K(nS,"SAFE_SCHEMA",()=>z,e=>z=e),K(nS,"DEFAULT_SCHEMA",()=>V,e=>V=e),K(nS,"scan",()=>H,e=>H=e),K(nS,"parse",()=>W,e=>W=e),K(nS,"compose",()=>$,e=>$=e),K(nS,"addConstructor",()=>Y,e=>Y=e);var nF=et("aeC7f"),nO=et("d6Ezz"),nk={},nF=et("aeC7f");function nP(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}nP.prototype.getSnippet=function(e,t){var r,n,o,i,a;if(!this.buffer)return null;for(e=e||4,t=t||75,r="",n=this.position;n>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(n-1));)if(n-=1,this.position-n>t/2-1){r=" ... ",n+=5;break}for(o="",i=this.position;i<this.buffer.length&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i));)if((i+=1)-this.position>t/2-1){o=" ... ",i-=5;break}return a=this.buffer.slice(n,i),nF.repeat(" ",e)+r+a+o+"\n"+nF.repeat(" ",e+this.position-n+r.length)+"^"},nP.prototype.toString=function(e){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),!e&&(t=this.getSnippet())&&(r+=":\n"+t),r},nk=nP;var nL=et("7WEyj"),nI=et("eqI2g"),nB=Object.prototype.hasOwnProperty,nq=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nj=/[\x85\u2028\u2029]/,nM=/[,\[\]\{\}]/,nR=/^(?:!|!!|![a-z\-]+!)$/i,nU=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nG(e){return Object.prototype.toString.call(e)}function nz(e){return 10===e||13===e}function nV(e){return 9===e||32===e}function nH(e){return 9===e||32===e||10===e||13===e}function nW(e){return 44===e||91===e||93===e||123===e||125===e}function n$(e){return 48===e?"\0":97===e?"\x07":98===e?"\b":116===e||9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}for(var nY=Array(256),nX=Array(256),nJ=0;nJ<256;nJ++)nY[nJ]=+!!n$(nJ),nX[nJ]=n$(nJ);function nK(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||nI,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function nQ(e,t){return new nO(t,new nk(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function nZ(e,t){throw nQ(e,t)}function n0(e,t){e.onWarning&&e.onWarning.call(null,nQ(e,t))}var n1={YAML:function(e,t,r){var n,o,i;null!==e.version&&nZ(e,"duplication of %YAML directive"),1!==r.length&&nZ(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&nZ(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&nZ(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&n0(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;2!==r.length&&nZ(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],nR.test(n)||nZ(e,"ill-formed tag handle (first argument) of the TAG directive"),nB.call(e.tagMap,n)&&nZ(e,'there is a previously declared suffix for "'+n+'" tag handle'),nU.test(o)||nZ(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=o}};function n2(e,t,r,n){var o,i,a,u;if(t<r){if(u=e.input.slice(t,r),n)for(o=0,i=u.length;o<i;o+=1)9===(a=u.charCodeAt(o))||32<=a&&a<=1114111||nZ(e,"expected valid JSON character");else nq.test(u)&&nZ(e,"the stream contains non-printable characters");e.result+=u}}function n3(e,t,r,n){var o,i,a,u;for(nF.isObject(r)||nZ(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,u=(o=Object.keys(r)).length;a<u;a+=1)i=o[a],nB.call(t,i)||(t[i]=r[i],n[i]=!0)}function n8(e,t,r,n,o,i,a,u){var s,l;if(Array.isArray(o))for(s=0,l=(o=Array.prototype.slice.call(o)).length;s<l;s+=1)Array.isArray(o[s])&&nZ(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===nG(o[s])&&(o[s]="[object Object]");if("object"==typeof o&&"[object Object]"===nG(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(s=0,l=i.length;s<l;s+=1)n3(e,t,i[s],r);else n3(e,t,i,r);else!e.json&&!nB.call(r,o)&&nB.call(t,o)&&(e.line=a||e.line,e.position=u||e.position,nZ(e,"duplicated mapping key")),t[o]=i,delete r[o];return t}function n5(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):nZ(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function n6(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);0!==o;){for(;nV(o);)o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o)if(nz(o))for(n5(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return -1!==r&&0!==n&&e.lineIndent<r&&n0(e,"deficient indentation"),n}function n9(e){var t,r=e.position;return!!((45===(t=e.input.charCodeAt(r))||46===t)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,0===(t=e.input.charCodeAt(r))||nH(t)))||!1}function n4(e,t){1===t?e.result+=" ":t>1&&(e.result+=nF.repeat("\n",t-1))}function n7(e,t){var r,n,o=e.tag,i=e.anchor,a=[],u=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),n=e.input.charCodeAt(e.position);0!==n&&45===n&&nH(e.input.charCodeAt(e.position+1));){if(u=!0,e.position++,n6(e,!0,-1)&&e.lineIndent<=t){a.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,oe(e,t,3,!1,!0),a.push(e.result),n6(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)nZ(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!u&&(e.tag=o,e.anchor=i,e.kind="sequence",e.result=a,!0)}function oe(e,t,r,n,o){var i,a,u,s,l,c,p,d,f=1,h=!1,m=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=a=u=4===r||3===r,n&&n6(e,!0,-1)&&(h=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;function(e){var t,r,n,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&nZ(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,r="!!",o=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do o=e.input.charCodeAt(++e.position);while(0!==o&&62!==o)e.position<e.length?(n=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):nZ(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!nH(o);)33===o&&(a?nZ(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),nR.test(r)||nZ(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),nM.test(n)&&nZ(e,"tag suffix cannot contain flow indicator characters")}return n&&!nU.test(n)&&nZ(e,"tag name cannot contain such characters: "+n),i?e.tag=n:nB.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:nZ(e,'undeclared tag handle "'+r+'"'),!0}(e)||function(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&nZ(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!nH(r)&&!nW(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&nZ(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)n6(e,!0,-1)?(h=!0,u=i,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):u=!1;if(u&&(u=h||o),(1===f||4===r)&&(p=1===r||2===r?t:t+1,d=e.position-e.lineStart,1===f?u&&(n7(e,d)||function(e,t,r){var n,o,i,a,u,s=e.tag,l=e.anchor,c={},p={},d=null,f=null,h=null,m=!1,D=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),u=e.input.charCodeAt(e.position);0!==u;){if(n=e.input.charCodeAt(e.position+1),i=e.line,a=e.position,(63===u||58===u)&&nH(n))63===u?(m&&(n8(e,c,p,d,f,null),d=f=h=null),D=!0,m=!0,o=!0):m?(m=!1,o=!0):nZ(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=n;else if(oe(e,r,2,!1,!0))if(e.line===i){for(u=e.input.charCodeAt(e.position);nV(u);)u=e.input.charCodeAt(++e.position);if(58===u)nH(u=e.input.charCodeAt(++e.position))||nZ(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(n8(e,c,p,d,f,null),d=f=h=null),D=!0,m=!1,o=!1,d=e.tag,f=e.result;else{if(!D)return e.tag=s,e.anchor=l,!0;nZ(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!D)return e.tag=s,e.anchor=l,!0;nZ(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else break;if((e.line===i||e.lineIndent>t)&&(oe(e,t,4,!0,o)&&(m?f=e.result:h=e.result),m||(n8(e,c,p,d,f,h,i,a),d=f=h=null),n6(e,!0,-1),u=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==u)nZ(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&n8(e,c,p,d,f,null),D&&(e.tag=s,e.anchor=l,e.kind="mapping",e.result=c),D}(e,d,p))||function(e,t){var r,n,o,i,a,u,s,l,c,p,d=!0,f=e.tag,h=e.anchor,m={};if(91===(p=e.input.charCodeAt(e.position)))o=93,u=!1,n=[];else{if(123!==p)return!1;o=125,u=!0,n={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=n),p=e.input.charCodeAt(++e.position);0!==p;){if(n6(e,!0,t),(p=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=f,e.anchor=h,e.kind=u?"mapping":"sequence",e.result=n,!0;d||nZ(e,"missed comma between flow collection entries"),l=s=c=null,i=a=!1,63===p&&nH(e.input.charCodeAt(e.position+1))&&(i=a=!0,e.position++,n6(e,!0,t)),r=e.line,oe(e,t,1,!1,!0),l=e.tag,s=e.result,n6(e,!0,t),p=e.input.charCodeAt(e.position),(a||e.line===r)&&58===p&&(i=!0,p=e.input.charCodeAt(++e.position),n6(e,!0,t),oe(e,t,1,!1,!0),c=e.result),u?n8(e,n,m,l,s,c):i?n.push(n8(e,null,m,l,s,c)):n.push(s),n6(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(d=!0,p=e.input.charCodeAt(++e.position)):d=!1}nZ(e,"unexpected end of the stream within a flow collection")}(e,p)?m=!0:(a&&function(e,t){var r,n,o,i,a,u=1,s=!1,l=!1,c=t,p=0,d=!1;if(124===(a=e.input.charCodeAt(e.position)))o=!1;else{if(62!==a)return!1;o=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===u?u=43===a?3:2:nZ(e,"repeat of a chomping mode identifier");else if((i=48<=(r=a)&&r<=57?r-48:-1)>=0)0===i?nZ(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?nZ(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0);else break;if(nV(a)){do a=e.input.charCodeAt(++e.position);while(nV(a))if(35===a)do a=e.input.charCodeAt(++e.position);while(!nz(a)&&0!==a)}for(;0!==a;){for(n5(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!l||e.lineIndent<c)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>c&&(c=e.lineIndent),nz(a)){p++;continue}if(e.lineIndent<c){3===u?e.result+=nF.repeat("\n",s?1+p:p):1===u&&s&&(e.result+="\n");break}for(o?nV(a)?(d=!0,e.result+=nF.repeat("\n",s?1+p:p)):d?(d=!1,e.result+=nF.repeat("\n",p+1)):0===p?s&&(e.result+=" "):e.result+=nF.repeat("\n",p):e.result+=nF.repeat("\n",s?1+p:p),s=!0,l=!0,p=0,n=e.position;!nz(a)&&0!==a;)a=e.input.charCodeAt(++e.position);n2(e,n,e.position,!1)}return!0}(e,p)||function(e,t){var r,n,o;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(n2(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,o=e.position}else nz(r)?(n2(e,n,o,!0),n4(e,n6(e,!1,t)),n=o=e.position):e.position===e.lineStart&&n9(e)?nZ(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);nZ(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var r,n,o,i,a,u,s,l;if(34!==(u=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(u=e.input.charCodeAt(e.position));)if(34===u)return n2(e,r,e.position,!0),e.position++,!0;else if(92===u){if(n2(e,r,e.position,!0),nz(u=e.input.charCodeAt(++e.position)))n6(e,!1,t);else if(u<256&&nY[u])e.result+=nX[u],e.position++;else if((a=120===(s=u)?2:117===s?4:8*(85===s))>0){for(o=a,i=0;o>0;o--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(u=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:nZ(e,"expected hexadecimal character");e.result+=(l=i)<=65535?String.fromCharCode(l):String.fromCharCode((l-65536>>10)+55296,(l-65536&1023)+56320),e.position++}else nZ(e,"unknown escape sequence");r=n=e.position}else nz(u)?(n2(e,r,n,!0),n4(e,n6(e,!1,t)),r=n=e.position):e.position===e.lineStart&&n9(e)?nZ(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);nZ(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?m=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!nH(n)&&!nW(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&nZ(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),nB.call(e.anchorMap,r)||nZ(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],n6(e,!0,-1),!0}(e)?function(e,t,r){var n,o,i,a,u,s,l,c,p=e.kind,d=e.result;if(nH(c=e.input.charCodeAt(e.position))||nW(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(nH(n=e.input.charCodeAt(e.position+1))||r&&nW(n)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(nH(n=e.input.charCodeAt(e.position+1))||r&&nW(n))break}else if(35===c){if(nH(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&n9(e)||r&&nW(c))break;else if(nz(c)){if(u=e.line,s=e.lineStart,l=e.lineIndent,n6(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=i,e.line=u,e.lineStart=s,e.lineIndent=l;break}a&&(n2(e,o,i,!1),n4(e,e.line-u),o=i=e.position,a=!1),nV(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return n2(e,o,i,!1),!!e.result||(e.kind=p,e.result=d,!1)}(e,p,1===r)&&(m=!0,null===e.tag&&(e.tag="?")):(m=!0,(null!==e.tag||null!==e.anchor)&&nZ(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(m=u&&n7(e,d))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&nZ(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,l=e.implicitTypes.length;s<l;s+=1)if((c=e.implicitTypes[s]).resolve(e.result)){e.result=c.construct(e.result),e.tag=c.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else nB.call(e.typeMap[e.kind||"fallback"],e.tag)?(c=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&c.kind!==e.kind&&nZ(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+c.kind+'", not "'+e.kind+'"'),c.resolve(e.result)?(e.result=c.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):nZ(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):nZ(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function ot(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new nK(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,nZ(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)!function(e){var t,r,n,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(o=e.input.charCodeAt(e.position))&&(n6(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0)&&37===o);){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!nH(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&nZ(e,"directive name must not be less than one character in length");0!==o;){for(;nV(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!nz(o))break}if(nz(o))break;for(t=e.position;0!==o&&!nH(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&n5(e),nB.call(n1,r)?n1[r](e,r,n):n0(e,'unknown document directive "'+r+'"')}if(n6(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,n6(e,!0,-1)):a&&nZ(e,"directives end mark is expected"),oe(e,e.lineIndent-1,4,!1,!0),n6(e,!0,-1),e.checkLineBreaks&&nj.test(e.input.slice(i,e.position))&&n0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&n9(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,n6(e,!0,-1));return}e.position<e.length-1&&nZ(e,"end of the stream or a document separator is expected")}(r);return r.documents}function or(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=ot(e,r);if("function"!=typeof t)return n;for(var o=0,i=n.length;o<i;o+=1)t(n[o])}function on(e,t){var r=ot(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new nO("expected a single document in the stream, but found more")}}var nF=et("aeC7f"),nO=et("d6Ezz"),nI=et("eqI2g"),nL=et("7WEyj"),oo=Object.prototype.toString,oi=Object.prototype.hasOwnProperty,oa={};oa[0]="\\0",oa[7]="\\a",oa[8]="\\b",oa[9]="\\t",oa[10]="\\n",oa[11]="\\v",oa[12]="\\f",oa[13]="\\r",oa[27]="\\e",oa[34]='\\"',oa[92]="\\\\",oa[133]="\\N",oa[160]="\\_",oa[8232]="\\L",oa[8233]="\\P";var ou=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function os(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=0xffffffff)r="U",n=8;else throw new nO("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+nF.repeat("0",n-t.length)+t}function ol(e){this.schema=e.schema||nI,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=nF.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,o,i,a,u,s;if(null===t)return{};for(o=0,r={},i=(n=Object.keys(t)).length;o<i;o+=1)u=String(t[a=n[o]]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(s=e.compiledTypeMap.fallback[a])&&oi.call(s.styleAliases,u)&&(u=s.styleAliases[u]),r[a]=u;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function oc(e,t){for(var r,n=nF.repeat(" ",t),o=0,i=-1,a="",u=e.length;o<u;)-1===(i=e.indexOf("\n",o))?(r=e.slice(o),o=u):(r=e.slice(o,i+1),o=i+1),r.length&&"\n"!==r&&(a+=n),a+=r;return a}function op(e,t){return"\n"+nF.repeat(" ",e.indent*t)}function od(e){return 32===e||9===e}function of(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function oh(e,t){var r;return of(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&of(r=t)&&!od(r)&&65279!==r&&13!==r&&10!==r)}function om(e){return/^\n* /.test(e)}function oD(e,t){var r=om(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function og(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function oy(e,t){if(""===e||" "===e[0])return e;for(var r,n,o=/ [^ ]/g,i=0,a=0,u=0,s="";r=o.exec(e);)(u=r.index)-i>t&&(n=a>i?a:u,s+="\n"+e.slice(i,n),i=n+1),a=u;return s+="\n",e.length-i>t&&a>i?s+=e.slice(i,a)+"\n"+e.slice(a+1):s+=e.slice(i),s.slice(1)}function o_(e,t,r){var n,o,i,a,u,s;for(i=0,a=(o=r?e.explicitTypes:e.implicitTypes).length;i<a;i+=1)if(((u=o[i]).instanceOf||u.predicate)&&(!u.instanceOf||"object"==typeof t&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=r?u.tag:"?",u.represent){if(s=e.styleMap[u.tag]||u.defaultStyle,"[object Function]"===oo.call(u.represent))n=u.represent(t,s);else if(oi.call(u.represent,s))n=u.represent[s](t,s);else throw new nO("!<"+u.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function ov(e,t){var r=new ol(t=t||{});return(r.noRefs||function(e,t){var r,n,o=[],i=[];for(function e(t,r,n){var o,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=r.indexOf(t)))-1===n.indexOf(i)&&n.push(i);else if(r.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)e(t[i],r,n);else for(i=0,a=(o=Object.keys(t)).length;i<a;i+=1)e(t[o[i]],r,n)}(e,o,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(o[i[r]]);t.usedDuplicates=Array(n)}(e,r),function e(t,r,n,o,i,a){t.tag=null,t.dump=n,o_(t,n,!1)||o_(t,n,!0);var u=oo.call(t.dump);o&&(o=t.flowLevel<0||t.flowLevel>r);var s,l,c="[object Object]"===u||"[object Array]"===u;if(c&&(l=-1!==(s=t.duplicates.indexOf(n))),(null!==t.tag&&"?"!==t.tag||l||2!==t.indent&&r>0)&&(i=!1),l&&t.usedDuplicates[s])t.dump="*ref_"+s;else{if(c&&l&&!t.usedDuplicates[s]&&(t.usedDuplicates[s]=!0),"[object Object]"===u)o&&0!==Object.keys(t.dump).length?(!function(t,r,n,o){var i,a,u,s,l,c,p="",d=t.tag,f=Object.keys(n);if(!0===t.sortKeys)f.sort();else if("function"==typeof t.sortKeys)f.sort(t.sortKeys);else if(t.sortKeys)throw new nO("sortKeys must be a boolean or a function");for(i=0,a=f.length;i<a;i+=1)c="",o&&0===i||(c+=op(t,r)),s=n[u=f[i]],e(t,r+1,u,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,l&&(c+=op(t,r)),e(t,r+1,s,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?c+=":":c+=": ",c+=t.dump,p+=c));t.tag=d,t.dump=p||"{}"}(t,r,t.dump,i),l&&(t.dump="&ref_"+s+t.dump)):(!function(t,r,n){var o,i,a,u,s,l="",c=t.tag,p=Object.keys(n);for(o=0,i=p.length;o<i;o+=1)s="",0!==o&&(s+=", "),t.condenseFlow&&(s+='"'),u=n[a=p[o]],e(t,r,a,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),e(t,r,u,!1,!1)&&(s+=t.dump,l+=s));t.tag=c,t.dump="{"+l+"}"}(t,r,t.dump),l&&(t.dump="&ref_"+s+" "+t.dump));else if("[object Array]"===u){var p,d=t.noArrayIndent&&r>0?r-1:r;o&&0!==t.dump.length?(!function(t,r,n,o){var i,a,u="",s=t.tag;for(i=0,a=n.length;i<a;i+=1)e(t,r+1,n[i],!0,!0)&&(o&&0===i||(u+=op(t,r)),t.dump&&10===t.dump.charCodeAt(0)?u+="-":u+="- ",u+=t.dump);t.tag=s,t.dump=u||"[]"}(t,d,t.dump,i),l&&(t.dump="&ref_"+s+t.dump)):(!function(t,r,n){var o,i,a="",u=t.tag;for(o=0,i=n.length;o<i;o+=1)e(t,r,n[o],!1,!1)&&(0!==o&&(a+=","+(t.condenseFlow?"":" ")),a+=t.dump);t.tag=u,t.dump="["+a+"]"}(t,d,t.dump),l&&(t.dump="&ref_"+s+" "+t.dump))}else if("[object String]"===u)"?"!==t.tag&&(p=t.dump,t.dump=function(){if(0===p.length)return"''";if(!t.noCompatMode&&-1!==ou.indexOf(p))return"'"+p+"'";var e=t.indent*Math.max(1,r),n=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-e);switch(function(e,t,r,n,o){var i,a,u,s,l=!1,c=!1,p=-1!==n,d=-1,f=of(i=e.charCodeAt(0))&&65279!==i&&!od(i)&&45!==i&&63!==i&&58!==i&&44!==i&&91!==i&&93!==i&&123!==i&&125!==i&&35!==i&&38!==i&&42!==i&&33!==i&&124!==i&&61!==i&&62!==i&&39!==i&&34!==i&&37!==i&&64!==i&&96!==i&&!od(e.charCodeAt(e.length-1));if(t)for(a=0;a<e.length;a++){if(!of(u=e.charCodeAt(a)))return 5;s=a>0?e.charCodeAt(a-1):null,f=f&&oh(u,s)}else{for(a=0;a<e.length;a++){if(10===(u=e.charCodeAt(a)))l=!0,p&&(c=c||a-d-1>n&&" "!==e[d+1],d=a);else if(!of(u))return 5;s=a>0?e.charCodeAt(a-1):null,f=f&&oh(u,s)}c=c||p&&a-d-1>n&&" "!==e[d+1]}return l||c?r>9&&om(e)?5:c?4:3:f&&!o(e)?1:2}(p,a||t.flowLevel>-1&&r>=t.flowLevel,t.indent,n,function(e){var r,n;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1})){case 1:return p;case 2:return"'"+p.replace(/'/g,"''")+"'";case 3:return"|"+oD(p,t.indent)+og(oc(p,e));case 4:return">"+oD(p,t.indent)+og(oc(function(e,t){for(var r,n,o,i=/(\n+)([^\n]*)/g,a=(i.lastIndex=r=-1!==(r=e.indexOf("\n"))?r:e.length,oy(e.slice(0,r),t)),u="\n"===e[0]||" "===e[0];o=i.exec(e);){var s=o[1],l=o[2];n=" "===l[0],a+=s+(u||n||""===l?"":"\n")+oy(l,t),u=n}return a}(p,n),e));case 5:return'"'+function(e){for(var t,r,n,o="",i=0;i<e.length;i++){if((t=e.charCodeAt(i))>=55296&&t<=56319&&(r=e.charCodeAt(i+1))>=56320&&r<=57343){o+=os((t-55296)*1024+r-56320+65536),i++;continue}o+=!(n=oa[t])&&of(t)?e[i]:n||os(t)}return o}(p,n)+'"';default:throw new nO("impossible error: invalid scalar style")}}());else{if(t.skipInvalid)return!1;throw new nO("unacceptable kind of an object to dump "+u)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}(r,0,e,!0,!0))?r.dump+"\n":""}function ob(e){return function(){throw Error("Function "+e+" is deprecated and cannot be used.")}}T=et("k5aGh"),S=et("bPRG3"),F=et("hWFej"),O=et("jON1e"),k=et("hCN6d"),P=et("7WEyj"),L=et("eqI2g"),I=on,B=or,q=function(e,t){return on(e,nF.extend({schema:nL},t))},j=function(e,t,r){return"object"==typeof t&&null!==t&&void 0===r&&(r=t,t=null),or(e,t,nF.extend({schema:nL},r))},M=ov,R=function(e,t){return ov(e,nF.extend({schema:nL},t))},U=et("d6Ezz"),G=et("hWFej"),z=et("7WEyj"),V=et("eqI2g"),H=ob("scan"),W=ob("parse"),$=ob("compose"),Y=ob("addConstructor"),nT=nS,nA.YAMLReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nN(t,e),t.prototype._parse=function(e,t){var r=nT.safeLoad(t);if(void 0===r)throw Error("Unable to parse YAML document.");return new nx.ObjectReader(this._builderOptions).parse(e,r)},t}(nb.BaseReader),nD.YAMLReader=nA.YAMLReader,rm.XMLBuilderImpl=function(){function e(e){this._domNode=e}return Object.defineProperty(e.prototype,"node",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.set=function(e){return this._options=r_.applyDefaults(r_.applyDefaults(this._options,e,!0),ry.DefaultBuilderOptions),this},e.prototype.ele=function(t,r,n){if(r_.isObject(t))return new nD.ObjectReader(this._options).parse(this,t);if(null!==t&&/^\s*</.test(t))return new nD.XMLReader(this._options).parse(this,t);if(null!==t&&/^\s*[\{\[]/.test(t))return new nD.JSONReader(this._options).parse(this,t);if(null!==t&&/^(\s*|(#.*)|(%.*))*---/.test(t))return new nD.YAMLReader(this._options).parse(this,t);if((null===t||r_.isString(t))&&r_.isString(r))u=(o=rD([t,r,n],3))[0],s=o[1],l=o[2];else if(null!==t)u=(i=rD([void 0,t,r_.isObject(r)?r:void 0],3))[0],s=i[1],l=i[2];else throw Error("Element name cannot be null. "+this._debugInfo());if(l&&(l=r_.getValue(l)),u=(a=rD(this._extractNamespace(rH.sanitizeInput(u,this._options.invalidCharReplacement),rH.sanitizeInput(s,this._options.invalidCharReplacement),!0),2))[0],s=a[1],void 0===u){var o,i,a,u,s,l,c=rD(rL.namespace_extractQName(s),1)[0];u=this.node.lookupNamespaceURI(c)}var p=null!=u?this._doc.createElementNS(u,s):this._doc.createElement(s);this.node.appendChild(p);var d=new e(p),f=this._doc.doctype;if(p===this._doc.documentElement&&null!==f){var h=this._doc.implementation.createDocumentType(this._doc.documentElement.tagName,f.publicId,f.systemId);this._doc.replaceChild(h,f)}return l&&!r_.isEmpty(l)&&d.att(l),d},e.prototype.remove=function(){var e=this.up();return e.node.removeChild(this.node),e},e.prototype.att=function(e,t,r){var n,o,i,a,u,s,l=this;if(r_.isMap(e)||r_.isObject(e))return r_.forEachObject(e,function(e,t){return l.att(e,t)},this),this;if(null!=e&&(e=r_.getValue(e+"")),null!=t&&(t=r_.getValue(t+"")),null!=r&&(r=r_.getValue(r+"")),(null===e||r_.isString(e))&&r_.isString(t)&&(null===r||r_.isString(r)))a=(n=rD([e,t,r],3))[0],u=n[1],s=n[2];else if(r_.isString(e)&&(null==t||r_.isString(t)))a=(o=rD([void 0,e,t],3))[0],u=o[1],s=o[2];else throw Error("Attribute name and value not specified. "+this._debugInfo());if(this._options.keepNullAttributes&&null==s)s="";else if(null==s)return this;if(!rj.Guard.isElementNode(this.node))throw Error("An attribute can only be assigned to an element node.");var c=this.node;a=(i=rD(this._extractNamespace(a,u,!1),2))[0],u=i[1],u=rH.sanitizeInput(u,this._options.invalidCharReplacement),a=rH.sanitizeInput(a,this._options.invalidCharReplacement),s=rH.sanitizeInput(s,this._options.invalidCharReplacement);var p=rD(rL.namespace_extractQName(u),2),d=p[0],f=p[1],h=rD(rL.namespace_extractQName(c.prefix?c.prefix+":"+c.localName:c.localName),1)[0],m=null;return"xmlns"===d?(a=rP.namespace.XMLNS,null===c.namespaceURI&&h===f&&(m=s)):null===d&&"xmlns"===f&&null===h&&(a=rP.namespace.XMLNS,m=s),null!==m&&(this._updateNamespace(m),c=this.node),void 0!==a?c.setAttributeNS(a,u,s):c.setAttribute(u,s),this},e.prototype.removeAtt=function(e,t){var r,n,o=this;if(!rj.Guard.isElementNode(this.node))throw Error("An attribute can only be removed from an element node.");if(e=r_.getValue(e),void 0!==t&&(t=r_.getValue(t)),null!==e&&void 0===t)n=e;else if((null===e||r_.isString(e))&&void 0!==t)r=e,n=t;else throw Error("Attribute namespace must be a string. "+this._debugInfo());return r_.isArray(n)||r_.isSet(n)?r_.forEachArray(n,function(e){return void 0===r?o.removeAtt(e):o.removeAtt(r,e)},this):void 0!==r?(n=rH.sanitizeInput(n,this._options.invalidCharReplacement),r=rH.sanitizeInput(r,this._options.invalidCharReplacement),this.node.removeAttributeNS(r,n)):(n=rH.sanitizeInput(n,this._options.invalidCharReplacement),this.node.removeAttribute(n)),this},e.prototype.txt=function(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";var t=this._doc.createTextNode(rH.sanitizeInput(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this},e.prototype.com=function(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";var t=this._doc.createComment(rH.sanitizeInput(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this},e.prototype.dat=function(e){if(null==e)if(!this._options.keepNullNodes)return this;else e="";var t=this._doc.createCDATASection(rH.sanitizeInput(e,this._options.invalidCharReplacement));return this.node.appendChild(t),this},e.prototype.ins=function(e,t){var r=this;if(void 0===t&&(t=""),null==t)if(!this._options.keepNullNodes)return this;else t="";if(r_.isArray(e)||r_.isSet(e))r_.forEachArray(e,function(e){var t=(e+="").indexOf(" "),n=-1===t?e:e.substr(0,t),o=-1===t?"":e.substr(t+1);r.ins(n,o)},this);else if(r_.isMap(e)||r_.isObject(e))r_.forEachObject(e,function(e,t){return r.ins(e,t)},this);else{var n=this._doc.createProcessingInstruction(rH.sanitizeInput(e,this._options.invalidCharReplacement),rH.sanitizeInput(t,this._options.invalidCharReplacement));this.node.appendChild(n)}return this},e.prototype.dec=function(e){return this._options.version=e.version||"1.0",this._options.encoding=e.encoding,this._options.standalone=e.standalone,this},e.prototype.dtd=function(e){var t=rH.sanitizeInput(e&&e.name||(this._doc.documentElement?this._doc.documentElement.tagName:"ROOT"),this._options.invalidCharReplacement),r=rH.sanitizeInput(e&&e.pubID||"",this._options.invalidCharReplacement),n=rH.sanitizeInput(e&&e.sysID||"",this._options.invalidCharReplacement);if(null!==this._doc.documentElement&&t!==this._doc.documentElement.tagName)throw Error("DocType name does not match document element name.");var o=this._doc.implementation.createDocumentType(t,r,n);return null!==this._doc.doctype?this._doc.replaceChild(o,this._doc.doctype):this._doc.insertBefore(o,this._doc.documentElement),this},e.prototype.import=function(t){var r,n,o=this._domNode,i=this._doc,a=t.node;if(rj.Guard.isDocumentNode(a)){var u=a.documentElement;if(null===u)throw Error("Imported document has no document element node. "+this._debugInfo());var s=i.importNode(u,!0);o.appendChild(s);var l=rD(rL.namespace_extractQName(s.prefix?s.prefix+":"+s.localName:s.localName),1)[0],c=o.lookupNamespaceURI(l);new e(s)._updateNamespace(c)}else if(rj.Guard.isDocumentFragmentNode(a))try{for(var p=rg(a.childNodes),d=p.next();!d.done;d=p.next()){var f=d.value,s=i.importNode(f,!0);if(o.appendChild(s),rj.Guard.isElementNode(s)){var l=rD(rL.namespace_extractQName(s.prefix?s.prefix+":"+s.localName:s.localName),1)[0],c=o.lookupNamespaceURI(l);new e(s)._updateNamespace(c)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}else{var s=i.importNode(a,!0);if(o.appendChild(s),rj.Guard.isElementNode(s)){var l=rD(rL.namespace_extractQName(s.prefix?s.prefix+":"+s.localName:s.localName),1)[0],c=o.lookupNamespaceURI(l);new e(s)._updateNamespace(c)}}return this},e.prototype.doc=function(){if(!this._doc._isFragment)return new e(this._doc);for(var t=this.node;t&&t.nodeType!==rA.NodeType.DocumentFragment;)t=t.parentNode;if(null===t)throw Error("Node has no parent node while searching for document fragment ancestor. "+this._debugInfo());return new e(t)},e.prototype.root=function(){var t=this._doc.documentElement;if(!t)throw Error("Document root element is null. "+this._debugInfo());return new e(t)},e.prototype.up=function(){var t=this._domNode.parentNode;if(!t)throw Error("Parent node is null. "+this._debugInfo());return new e(t)},e.prototype.prev=function(){var t=this._domNode.previousSibling;if(!t)throw Error("Previous sibling node is null. "+this._debugInfo());return new e(t)},e.prototype.next=function(){var t=this._domNode.nextSibling;if(!t)throw Error("Next sibling node is null. "+this._debugInfo());return new e(t)},e.prototype.first=function(){var t=this._domNode.firstChild;if(!t)throw Error("First child node is null. "+this._debugInfo());return new e(t)},e.prototype.last=function(){var t=this._domNode.lastChild;if(!t)throw Error("Last child node is null. "+this._debugInfo());return new e(t)},e.prototype.each=function(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);for(var i=this._getFirstDescendantNode(this._domNode,r,n);i[0];){var a=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2]);t.call(o,new e(i[0]),i[1],i[2]),i=a}return this},e.prototype.map=function(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=[];return this.each(function(t,r,i){return o.push(e.call(n,t,r,i))},t,r),o},e.prototype.reduce=function(e,t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);var i=t;return this.each(function(t,r,n){return i=e.call(o,i,t,r,n)},r,n),i},e.prototype.find=function(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);for(var i=this._getFirstDescendantNode(this._domNode,r,n);i[0];){var a=new e(i[0]);if(t.call(o,a,i[1],i[2]))return a;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}},e.prototype.filter=function(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=[];return this.each(function(t,r,i){e.call(n,t,r,i)&&o.push(t)},t,r),o},e.prototype.every=function(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);for(var i=this._getFirstDescendantNode(this._domNode,r,n);i[0];){var a=new e(i[0]);if(!t.call(o,a,i[1],i[2]))return!1;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}return!0},e.prototype.some=function(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!1);for(var i=this._getFirstDescendantNode(this._domNode,r,n);i[0];){var a=new e(i[0]);if(t.call(o,a,i[1],i[2]))return!0;i=this._getNextDescendantNode(this._domNode,i[0],n,i[1],i[2])}return!1},e.prototype.toArray=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=[];return this.each(function(e){return r.push(e)},e,t),r},e.prototype.toString=function(e){return void 0===(e=e||{}).format&&(e.format="xml"),this._serialize(e)},e.prototype.toObject=function(e){return void 0===(e=e||{}).format&&(e.format="object"),this._serialize(e)},e.prototype.end=function(e){return void 0===(e=e||{}).format&&(e.format="xml"),this.doc()._serialize(e)},e.prototype._getFirstDescendantNode=function(e,t,r){return t?[this._domNode,0,0]:r?this._getNextDescendantNode(e,e,r,0,0):[this._domNode.firstChild,0,1]},e.prototype._getNextDescendantNode=function(e,t,r,n,o){if(r){if(t.firstChild)return[t.firstChild,0,o+1];if(t===e)return[null,-1,-1];if(t.nextSibling)return[t.nextSibling,n+1,o];for(var i=t.parentNode;i&&i!==e;){if(i.nextSibling)return[i.nextSibling,rL.tree_index(i.nextSibling),o-1];i=i.parentNode,o--}}else if(e===t)return[t.firstChild,0,o+1];else return[t.nextSibling,n+1,o];return[null,-1,-1]},e.prototype._serialize=function(e){if("xml"===e.format){var t=new rv.XMLWriter(this._options,e);return t.serialize(this.node)}if("map"===e.format){var t=new rv.MapWriter(this._options,e);return t.serialize(this.node)}if("object"===e.format){var t=new rv.ObjectWriter(this._options,e);return t.serialize(this.node)}if("json"===e.format){var t=new rv.JSONWriter(this._options,e);return t.serialize(this.node)}if("yaml"===e.format){var t=new rv.YAMLWriter(this._options,e);return t.serialize(this.node)}else throw Error("Invalid writer format: "+e.format+". "+this._debugInfo())},e.prototype._extractNamespace=function(e,t,r){var n=t.indexOf("@");if(n>0&&(void 0===e&&(e=t.slice(n+1)),t=t.slice(0,n)),void 0===e)e=r?this._options.defaultNamespace.ele:this._options.defaultNamespace.att;else if(null!==e&&"@"===e[0]){var o=e.slice(1);if(void 0===(e=this._options.namespaceAlias[o]))throw Error("Namespace alias `"+o+"` is not defined. "+this._debugInfo())}return[e,t]},e.prototype._updateNamespace=function(t){var r,n,o,i,a=this._domNode;if(rj.Guard.isElementNode(a)&&null!==t&&a.namespaceURI!==t){var u=rD(rL.namespace_extractQName(a.prefix?a.prefix+":"+a.localName:a.localName),2),s=u[0],l=u[1],c=rL.create_element(this._doc,l,t,s);try{for(var p=rg(a.attributes),d=p.next();!d.done;d=p.next()){var f=d.value,h=f.prefix?f.prefix+":"+f.localName:f.localName,m=rD(rL.namespace_extractQName(h),1)[0],D=f.namespaceURI;null===D&&null!==m&&(D=a.lookupNamespaceURI(m)),null===D?c.setAttribute(h,f.value):c.setAttributeNS(D,h,f.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}var g=a.parentNode;if(null===g)throw Error("Parent node is null."+this._debugInfo());g.replaceChild(c,a),this._domNode=c;try{for(var y=rg(a.childNodes),_=y.next();!_.done;_=y.next()){var v=_.value.cloneNode(!0);if(c.appendChild(v),rj.Guard.isElementNode(v)){var b=rD(rL.namespace_extractQName(v.prefix?v.prefix+":"+v.localName:v.localName),1)[0],x=c.lookupNamespaceURI(b);new e(v)._updateNamespace(x)}}}catch(e){o={error:e}}finally{try{_&&!_.done&&(i=y.return)&&i.call(y)}finally{if(o)throw o.error}}}},Object.defineProperty(e.prototype,"_doc",{get:function(){var e=this.node;if(rj.Guard.isDocumentNode(e))return e;var t=e.ownerDocument;if(!t)throw Error("Owner document is null. "+this._debugInfo());return t},enumerable:!0,configurable:!0}),e.prototype._debugInfo=function(e){var t=this.node,r=t.parentNode;e=e||t.nodeName;var n=r?r.nodeName:"";return n?"node: <"+e+">, parent: <"+n+">":"node: <"+e+">"},Object.defineProperty(e.prototype,"_options",{get:function(){var e=this._doc;if(void 0===e._xmlBuilderOptions)throw Error("Builder options is not set.");return e._xmlBuilderOptions},set:function(e){this._doc._xmlBuilderOptions=e},enumerable:!0,configurable:!0}),e}(),rh.XMLBuilderImpl=rm.XMLBuilderImpl;var ox={},oE=ox&&ox.__extends||(w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ow=ox&&ox.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},oC=ox&&ox.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(ox,"__esModule",{value:!0});var r_=et("jDPAV"),oA={};Object.defineProperty(oA,"__esModule",{value:!0});var r_=et("jDPAV"),rj=et("cnpfV");function oN(e,t){var r=oS(void 0===e||oT(e)?e:ry.DefaultBuilderOptions),n=oT(e)?t:e,o=rH.createDocument();oF(o,r);var i=new rh.XMLBuilderImpl(o);return void 0!==n&&i.ele(n),i}function oT(e){if(!r_.isPlainObject(e))return!1;for(var t in e)if(e.hasOwnProperty(t)&&!ry.XMLBuilderOptionKeys.has(t))return!1;return!0}function oS(e){void 0===e&&(e={});var t=r_.applyDefaults(e,ry.DefaultBuilderOptions);if(0===t.convert.att.length||0===t.convert.ins.length||0===t.convert.text.length||0===t.convert.cdata.length||0===t.convert.comment.length)throw Error("JS object converter strings cannot be zero length.");return t}function oF(e,t,r){e._xmlBuilderOptions=t,e._isFragment=r}oA.builder=function(e,t){var r=oS(oT(e)?e:ry.DefaultBuilderOptions),n=rj.Guard.isNode(e)||r_.isArray(e)?e:t;if(void 0===n)throw Error("Invalid arguments.");if(r_.isArray(n)){for(var o=[],i=0;i<n.length;i++){var a=new rh.XMLBuilderImpl(n[i]);a.set(r),o.push(a)}return o}var u=new rh.XMLBuilderImpl(n);return u.set(r),u},oA.create=oN,oA.fragment=function(e,t){var r=oS(void 0===e||oT(e)?e:ry.DefaultBuilderOptions),n=oT(e)?t:e,o=rH.createDocument();oF(o,r,!0);var i=new rh.XMLBuilderImpl(o.createDocumentFragment());return void 0!==n&&i.ele(n),i},oA.convert=function(e,t,r){var n,o,i;return oT(e)&&void 0!==t?(n=e,o=t,i=r):(n=ry.DefaultBuilderOptions,o=e,i=t||void 0),oN(n,o).end(i)};var rL=et("eOMTm"),rP=et("b9DcM"),rj=et("cnpfV"),oO={},ok=oO&&oO.__extends||(C=function(e,t){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(oO,"__esModule",{value:!0});var oP={};Object.defineProperty(oP,"__esModule",{value:!0}),oP.BaseCBWriter=function(e){this.level=0,this._builderOptions=e,this._writerOptions=e},oO.XMLCBWriter=function(e){function t(t){var r=e.call(this,t)||this;return r._lineLength=0,r}return ok(t,e),t.prototype.frontMatter=function(){return""},t.prototype.declaration=function(e,t,r){var n=this._beginLine()+"<?xml";return n+=' version="'+e+'"',void 0!==t&&(n+=' encoding="'+t+'"'),void 0!==r&&(n+=' standalone="'+(r?"yes":"no")+'"'),n+="?>"},t.prototype.docType=function(e,t,r){var n=this._beginLine();return t&&r?n+="<!DOCTYPE "+e+' PUBLIC "'+t+'" "'+r+'">':t?n+="<!DOCTYPE "+e+' PUBLIC "'+t+'">':r?n+="<!DOCTYPE "+e+' SYSTEM "'+r+'">':n+="<!DOCTYPE "+e+">",n},t.prototype.comment=function(e){return this._beginLine()+"\x3c!--"+e+"--\x3e"},t.prototype.text=function(e){return this._beginLine()+e},t.prototype.instruction=function(e,t){return t?this._beginLine()+"<?"+e+" "+t+"?>":this._beginLine()+"<?"+e+"?>"},t.prototype.cdata=function(e){return this._beginLine()+"<![CDATA["+e+"]]>"},t.prototype.openTagBegin=function(e){return this._lineLength+=1+e.length,this._beginLine()+"<"+e},t.prototype.openTagEnd=function(e,t,r){return r?" />":t?this._writerOptions.allowEmptyTags?"></"+e+">":this._writerOptions.spaceBeforeSlash?" />":"/>":">"},t.prototype.closeTag=function(e){return this._beginLine()+"</"+e+">"},t.prototype.attribute=function(e,t){var r=e+'="'+t+'"';return this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._lineLength+1+r.length>this._writerOptions.width?(r=this._beginLine()+this._indent(1)+r,this._lineLength=r.length,r):(this._lineLength+=1+r.length," "+r)},t.prototype.beginElement=function(e){},t.prototype.endElement=function(e){},t.prototype._beginLine=function(){if(!this._writerOptions.prettyPrint)return"";var e=(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level);return this._lineLength=e.length,e},t.prototype._indent=function(e){return e<=0?"":this._writerOptions.indent.repeat(e)},t}(oP.BaseCBWriter);var oL={},oI=oL&&oL.__extends||(A=function(e,t){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(oL,"__esModule",{value:!0}),oL.JSONCBWriter=function(e){function t(t){var r=e.call(this,t)||this;return r._hasChildren=[],r._additionalLevel=0,r}return oI(t,e),t.prototype.frontMatter=function(){return""},t.prototype.declaration=function(e,t,r){return""},t.prototype.docType=function(e,t,r){return""},t.prototype.comment=function(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.comment)+this._sep()+this._val(e)+this._sep()+"}"},t.prototype.text=function(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.text)+this._sep()+this._val(e)+this._sep()+"}"},t.prototype.instruction=function(e,t){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.ins)+this._sep()+this._val(t?e+" "+t:e)+this._sep()+"}"},t.prototype.cdata=function(e){return this._comma()+this._beginLine()+"{"+this._sep()+this._key(this._builderOptions.convert.cdata)+this._sep()+this._val(e)+this._sep()+"}"},t.prototype.attribute=function(e,t){return this._comma()+this._beginLine(1)+"{"+this._sep()+this._key(this._builderOptions.convert.att+e)+this._sep()+this._val(t)+this._sep()+"}"},t.prototype.openTagBegin=function(e){var t=this._comma()+this._beginLine()+"{"+this._sep()+this._key(e)+this._sep()+"{";return this._additionalLevel++,this.hasData=!0,t+=this._beginLine()+this._key(this._builderOptions.convert.text)+this._sep()+"[",this._hasChildren.push(!1),t},t.prototype.openTagEnd=function(e,t,r){if(!t)return"";var n=this._sep()+"]";return this._additionalLevel--,n+=this._beginLine()+"}"+this._sep()+"}"},t.prototype.closeTag=function(e){var t=this._beginLine()+"]";return this._additionalLevel--,t+=this._beginLine()+"}"+this._sep()+"}"},t.prototype.beginElement=function(e){},t.prototype.endElement=function(e){this._hasChildren.pop()},t.prototype._beginLine=function(e){return(void 0===e&&(e=0),this._writerOptions.prettyPrint)?(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level+e):""},t.prototype._indent=function(e){return e+this._additionalLevel<=0?"":this._writerOptions.indent.repeat(e+this._additionalLevel)},t.prototype._comma=function(){var e=this._hasChildren[this._hasChildren.length-1]?",":"";return this._hasChildren.length>0&&(this._hasChildren[this._hasChildren.length-1]=!0),e},t.prototype._sep=function(){return this._writerOptions.prettyPrint?" ":""},t.prototype._key=function(e){return'"'+e+'":'},t.prototype._val=function(e){return JSON.stringify(e)},t}(oP.BaseCBWriter);var oB={},oq=oB&&oB.__extends||(N=function(e,t){return(N=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(oB,"__esModule",{value:!0}),oB.YAMLCBWriter=function(e){function t(t){var r=e.call(this,t)||this;if(r._rootWritten=!1,r._additionalLevel=0,t.indent.length<2)throw Error("YAML indententation string must be at least two characters long.");if(t.offset<0)throw Error("YAML offset should be zero or a positive number.");return r}return oq(t,e),t.prototype.frontMatter=function(){return this._beginLine()+"---"},t.prototype.declaration=function(e,t,r){return""},t.prototype.docType=function(e,t,r){return""},t.prototype.comment=function(e){return this._beginLine()+this._key(this._builderOptions.convert.comment)+" "+this._val(e)},t.prototype.text=function(e){return this._beginLine()+this._key(this._builderOptions.convert.text)+" "+this._val(e)},t.prototype.instruction=function(e,t){return this._beginLine()+this._key(this._builderOptions.convert.ins)+" "+this._val(t?e+" "+t:e)},t.prototype.cdata=function(e){return this._beginLine()+this._key(this._builderOptions.convert.cdata)+" "+this._val(e)},t.prototype.attribute=function(e,t){this._additionalLevel++;var r=this._beginLine()+this._key(this._builderOptions.convert.att+e)+" "+this._val(t);return this._additionalLevel--,r},t.prototype.openTagBegin=function(e){var t=this._beginLine()+this._key(e);return this._rootWritten||(this._rootWritten=!0),this.hasData=!0,this._additionalLevel++,t+=this._beginLine(!0)+this._key(this._builderOptions.convert.text)},t.prototype.openTagEnd=function(e,t,r){return t?" "+this._val(""):""},t.prototype.closeTag=function(e){return this._additionalLevel--,""},t.prototype.beginElement=function(e){},t.prototype.endElement=function(e){},t.prototype._beginLine=function(e){return void 0===e&&(e=!1),(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level,e)},t.prototype._indent=function(e,t){if(e+this._additionalLevel<=0)return"";var r=this._writerOptions.indent.repeat(e+this._additionalLevel);return!t&&this._rootWritten?r.substr(0,r.length-2)+"-"+r.substr(-1,1):r},t.prototype._key=function(e){return'"'+e+'":'},t.prototype._val=function(e){return JSON.stringify(e)},t}(oP.BaseCBWriter),ox.XMLBuilderCBImpl=function(e){function t(t,r){void 0===r&&(r=!1);var n=e.call(this)||this;return n._hasDeclaration=!1,n._docTypeName="",n._hasDocumentElement=!1,n._currentElementSerialized=!1,n._openTags=[],n._ended=!1,n._fragment=r,n._options=r_.applyDefaults(t||{},ry.DefaultXMLBuilderCBOptions),n._builderOptions={defaultNamespace:n._options.defaultNamespace,namespaceAlias:n._options.namespaceAlias},"json"===n._options.format?n._writer=new oL.JSONCBWriter(n._options):"yaml"===n._options.format?n._writer=new oB.YAMLCBWriter(n._options):n._writer=new oO.XMLCBWriter(n._options),void 0!==n._options.data&&n.on("data",n._options.data),void 0!==n._options.end&&n.on("end",n._options.end),void 0!==n._options.error&&n.on("error",n._options.error),n._prefixMap=new rk.NamespacePrefixMap,n._prefixMap.set("xml",rP.namespace.XML),n._prefixIndex={value:1},n._push(n._writer.frontMatter()),n}return oE(t,e),t.prototype.ele=function(e,t,r){var n,o;if(r_.isObject(e)||r_.isString(e)&&(/^\s*</.test(e)||/^\s*[\{\[]/.test(e)||/^(\s*|(#.*)|(%.*))*---/.test(e))){var i=oA.fragment().set(this._options);try{i.ele(e)}catch(e){return this.emit("error",e),this}try{for(var a=ow(i.node.childNodes),u=a.next();!u.done;u=a.next()){var s=u.value;this._fromNode(s)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return this}if(this._serializeOpenTag(!0),!this._fragment&&this._hasDocumentElement&&0===this._writer.level)return this.emit("error",Error("Document cannot have multiple document element nodes.")),this;try{this._currentElement=oA.fragment(this._builderOptions).ele(e,t,r)}catch(e){return this.emit("error",e),this}return this._fragment||this._hasDocumentElement||""===this._docTypeName||this._currentElement.node._qualifiedName===this._docTypeName?(this._currentElementSerialized=!1,this._fragment||(this._hasDocumentElement=!0)):this.emit("error",Error("Document element name does not match DocType declaration name.")),this},t.prototype.att=function(e,t,r){if(void 0===this._currentElement)return this.emit("error",Error("Cannot insert an attribute node as child of a document node.")),this;try{this._currentElement.att(e,t,r)}catch(e){this.emit("error",e)}return this},t.prototype.com=function(e){var t;this._serializeOpenTag(!0);try{t=oA.fragment(this._builderOptions).com(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(!rL.xml_isLegalChar(t.data)||-1!==t.data.indexOf("--")||t.data.endsWith("-"))?this.emit("error",Error("Comment data contains invalid characters (well-formed required).")):this._push(this._writer.comment(t.data)),this},t.prototype.txt=function(e){if(!this._fragment&&void 0===this._currentElement)return this.emit("error",Error("Cannot insert a text node as child of a document node.")),this;this._serializeOpenTag(!0);try{t=oA.fragment(this._builderOptions).txt(e).first().node}catch(e){return this.emit("error",e),this}if(this._options.wellFormed&&!rL.xml_isLegalChar(t.data))return this.emit("error",Error("Text data contains invalid characters (well-formed required).")),this;var t,r=t.data.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");return this._push(this._writer.text(r)),this},t.prototype.ins=function(e,t){var r;void 0===t&&(t=""),this._serializeOpenTag(!0);try{r=oA.fragment(this._builderOptions).ins(e,t).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(-1!==r.target.indexOf(":")||/^xml$/i.test(r.target))?this.emit("error",Error("Processing instruction target contains invalid characters (well-formed required).")):this._options.wellFormed&&!rL.xml_isLegalChar(r.data)?this.emit("error",Error("Processing instruction data contains invalid characters (well-formed required).")):this._push(this._writer.instruction(r.target,r.data)),this},t.prototype.dat=function(e){var t;this._serializeOpenTag(!0);try{t=oA.fragment(this._builderOptions).dat(e).first().node}catch(e){return this.emit("error",e),this}return this._push(this._writer.cdata(t.data)),this},t.prototype.dec=function(e){return(void 0===e&&(e={version:"1.0"}),this._fragment)?this.emit("error",Error("Cannot insert an XML declaration into a document fragment.")):this._hasDeclaration?this.emit("error",Error("XML declaration is already inserted.")):(this._push(this._writer.declaration(e.version||"1.0",e.encoding,e.standalone)),this._hasDeclaration=!0),this},t.prototype.dtd=function(e){var t;if(this._fragment)return this.emit("error",Error("Cannot insert a DocType declaration into a document fragment.")),this;if(""!==this._docTypeName)return this.emit("error",Error("DocType declaration is already inserted.")),this;if(this._hasDocumentElement)return this.emit("error",Error("Cannot insert DocType declaration after document element.")),this;try{t=oA.create().dtd(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&!rL.xml_isPubidChar(t.publicId)?this.emit("error",Error("DocType public identifier does not match PubidChar construct (well-formed required).")):this._options.wellFormed&&(!rL.xml_isLegalChar(t.systemId)||-1!==t.systemId.indexOf('"')&&-1!==t.systemId.indexOf("'"))?this.emit("error",Error("DocType system identifier contains invalid characters (well-formed required).")):(this._docTypeName=e.name,this._push(this._writer.docType(e.name,t.publicId,t.systemId))),this},t.prototype.import=function(e){var t,r,n=oA.fragment().set(this._options);try{n.import(e)}catch(e){return this.emit("error",e),this}try{for(var o=ow(n.node.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;this._fromNode(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this},t.prototype.up=function(){return this._serializeOpenTag(!1),this._serializeCloseTag(),this},t.prototype.end=function(){for(this._serializeOpenTag(!1);this._openTags.length>0;)this._serializeCloseTag();return this._push(null),this},t.prototype._serializeOpenTag=function(e){if(!this._currentElementSerialized&&void 0!==this._currentElement){var r=this._currentElement.node;if(this._options.wellFormed&&(-1!==r.localName.indexOf(":")||!rL.xml_isName(r.localName)))return void this.emit("error",Error("Node local name contains invalid characters (well-formed required)."));var n="",o=!1,i=this._prefixMap.copy(),a={},u=this._recordNamespaceInformation(r,i,a),s=0===this._openTags.length?null:this._openTags[this._openTags.length-1][1],l=r.namespaceURI;if(null===l&&(l=s),s===l)null!==u&&(o=!0),n=l===rP.namespace.XML?"xml:"+r.localName:r.localName,this._writer.beginElement(n),this._push(this._writer.openTagBegin(n));else{var c=r.prefix,p=null;if((null!==c||l!==u)&&(p=i.get(c,l)),"xmlns"===c){if(this._options.wellFormed)return void this.emit("error",Error("An element cannot have the 'xmlns' prefix (well-formed required)."));p=c}null!==p?(n=p+":"+r.localName,null!==u&&u!==rP.namespace.XML&&(s=u||null),this._writer.beginElement(n),this._push(this._writer.openTagBegin(n))):null!==c?(c in a&&(c=this._generatePrefix(l,i,this._prefixIndex)),i.set(c,l),n+=c+":"+r.localName,this._writer.beginElement(n),this._push(this._writer.openTagBegin(n)),this._push(this._writer.attribute("xmlns:"+c,this._serializeAttributeValue(l,this._options.wellFormed))),null!==u&&(s=u||null)):null===u||null!==u&&u!==l?(o=!0,n+=r.localName,s=l,this._writer.beginElement(n),this._push(this._writer.openTagBegin(n)),this._push(this._writer.attribute("xmlns",this._serializeAttributeValue(l,this._options.wellFormed)))):(n+=r.localName,s=l,this._writer.beginElement(n),this._push(this._writer.openTagBegin(n)))}this._serializeAttributes(r,i,this._prefixIndex,a,o,this._options.wellFormed);var d=l===rP.namespace.HTML;d&&!e&&t._VoidElementNames.has(r.localName)?(this._push(this._writer.openTagEnd(n,!0,!0)),this._writer.endElement(n)):d||e?this._push(this._writer.openTagEnd(n,!1,!1)):(this._push(this._writer.openTagEnd(n,!0,!1)),this._writer.endElement(n)),this._currentElementSerialized=!0,this._openTags.push([n,s,this._prefixMap,e]),this._isPrefixMapModified(this._prefixMap,i)&&(this._prefixMap=i),this._writer.level++}},t.prototype._serializeCloseTag=function(){this._writer.level--;var e=this._openTags.pop();if(void 0===e)return void this.emit("error",Error("Last element is undefined."));var t=oC(e,4),r=t[0],n=(t[1],t[2]),o=t[3];this._prefixMap=n,o&&(this._push(this._writer.closeTag(r)),this._writer.endElement(r))},t.prototype._push=function(e){null===e?(this._ended=!0,this.emit("end")):this._ended?this.emit("error",Error("Cannot push to ended stream.")):0!==e.length&&(this._writer.hasData=!0,this.emit("data",e,this._writer.level))},t.prototype._fromNode=function(e){var t,r,n,o;if(rj.Guard.isElementNode(e)){var i=e.prefix?e.prefix+":"+e.localName:e.localName;null!==e.namespaceURI?this.ele(e.namespaceURI,i):this.ele(i);try{for(var a=ow(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.prefix?s.prefix+":"+s.localName:s.localName;null!==s.namespaceURI?this.att(s.namespaceURI,l,s.value):this.att(l,s.value)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}try{for(var c=ow(e.childNodes),p=c.next();!p.done;p=c.next()){var d=p.value;this._fromNode(d)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}this.up()}else rj.Guard.isExclusiveTextNode(e)&&e.data?this.txt(e.data):rj.Guard.isCommentNode(e)?this.com(e.data):rj.Guard.isCDATASectionNode(e)?this.dat(e.data):rj.Guard.isProcessingInstructionNode(e)&&this.ins(e.target,e.data)},t.prototype._serializeAttributes=function(e,t,r,n,o,i){var a,u,s=i?new rO.LocalNameSet:void 0;try{for(var l=ow(e.attributes),c=l.next();!c.done;c=l.next()){var p=c.value;if(!i&&!o&&null===p.namespaceURI){this._push(this._writer.attribute(p.localName,this._serializeAttributeValue(p.value,this._options.wellFormed)));continue}if(i&&s&&s.has(p.namespaceURI,p.localName))return void this.emit("error",Error("Element contains duplicate attributes (well-formed required)."));i&&s&&s.set(p.namespaceURI,p.localName);var d=p.namespaceURI,f=null;if(null!==d)if(f=t.get(p.prefix,d),d===rP.namespace.XMLNS){if(p.value===rP.namespace.XML||null===p.prefix&&o||null!==p.prefix&&(!(p.localName in n)||n[p.localName]!==p.value)&&t.has(p.localName,p.value))continue;if(i&&p.value===rP.namespace.XMLNS)return void this.emit("error",Error("XMLNS namespace is reserved (well-formed required)."));if(i&&""===p.value)return void this.emit("error",Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required)."));"xmlns"===p.prefix&&(f="xmlns")}else null===f&&(f=null!==p.prefix&&(!t.hasPrefix(p.prefix)||t.has(p.prefix,d))?p.prefix:this._generatePrefix(d,t,r),this._push(this._writer.attribute("xmlns:"+f,this._serializeAttributeValue(d,this._options.wellFormed))));if(i&&(-1!==p.localName.indexOf(":")||!rL.xml_isName(p.localName)||"xmlns"===p.localName&&null===d))return void this.emit("error",Error("Attribute local name contains invalid characters (well-formed required)."));this._push(this._writer.attribute((null!==f?f+":":"")+p.localName,this._serializeAttributeValue(p.value,this._options.wellFormed)))}}catch(e){a={error:e}}finally{try{c&&!c.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}},t.prototype._serializeAttributeValue=function(e,t){return t&&null!==e&&!rL.xml_isLegalChar(e)?(this.emit("error",Error("Invalid characters in attribute value.")),""):null===e?"":e.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},t.prototype._recordNamespaceInformation=function(e,t,r){var n,o,i=null;try{for(var a=ow(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rP.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rP.namespace.XML||(""===d&&(d=null),t.has(p,d)))continue;t.set(p,d),r[p]=d||""}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},t.prototype._generatePrefix=function(e,t,r){var n="ns"+r.value;return r.value++,t.set(n,e),n},t.prototype._isPrefixMapModified=function(e,t){var r=e._items,n=t._items,o=e._nullItems,i=t._nullItems;for(var a in n){var u=r[a];if(void 0===u)return!0;var s=n[a];if(u.length!==s.length)return!0;for(var l=0;l<u.length;l++)if(u[l]!==s[l])return!0}if(o.length!==i.length)return!0;for(var l=0;l<o.length;l++)if(o[l]!==i[l])return!0;return!1},t._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),t}(d),rh.XMLBuilderCBImpl=ox.XMLBuilderCBImpl,rh.builder=oA.builder,rh.create=oA.create,rh.fragment=oA.fragment,rh.convert=oA.convert;var oj={};if(Object.defineProperty(oj,"__esModule",{value:!0}),oj.createCB=function(e){return new rh.XMLBuilderCBImpl(e)},oj.fragmentCB=function(e){return new rh.XMLBuilderCBImpl(e,!0)},rh.createCB=oj.createCB,rh.fragmentCB=oj.fragmentCB,rf.builder=rh.builder,rf.create=rh.create,rf.fragment=rh.fragment,rf.convert=rh.convert,rf.createCB=rh.createCB,rf.fragmentCB=rh.fragmentCB,process.argv[1]===new URL("file:///src/utils/yml2xml.js").pathname)try{let e=rr(o.readFileSync(process.argv[2],"utf8")),t=o.readFileSync(process.argv[3]);o.writeFileSync(`${process.argv[4]}`,oM(e,t,process.argv[5]),{encoding:"utf8",flag:"w"})}catch(e){console.log(e)}function oM(e,t,r="1.0"){let n=(0,rf.create)({version:"1.0",encoding:"UTF-8"}),o=n.ele("Module"),i=o.ele("ModulePrefs",{title:e.title,title_url:e.title_url,version:r,description:e.description,author:e.author,background:e.background});if(e.locales)for(let t of e.locales){let e=i.ele("Locale");t.lang&&e.att("lang",t.lang),e.att("messages",t.messages)}if(e.requirements)for(let t of e.requirements)i.ele("Require",{feature:t});if(e.prefs)for(let t of e.prefs){let e=i.ele("UserPref",{name:t.name,display_name:t.display_name,datatype:t.datatype,default_value:t.default_value,required:!!t.required,multiple:!!t.multiple,multiline:!!t.multiline});if("enum"===t.datatype)for(let r of t.options)e.ele("EnumValue",{value:r.value,display_value:r.display_value});t.depends&&function e(t,r){for(let n of t){let t=r.ele("DependsOn",{name:n.name,type:n.any_of?"any_of":n.all_of?"all_of":"none_of"});for(let r of[].concat(n.any_of,n.all_of,n.none_of).filter(e=>null!=e)){if(r.values)for(let e of r.values)t.ele("Value").txt(e);r.depends&&e(r.depends,t)}}}(t.depends,e)}i.ele("UserPref",{name:"rdW",display_name:"Width",datatype:"hidden",default_value:280,required:!0}),i.ele("UserPref",{name:"rdH",display_name:"Height",datatype:"hidden",default_value:190,required:!0}),i.ele("UserPref",{name:"rdKey",datatype:"hidden"}),i.ele("UserPref",{name:"ForeColor",datatype:"hidden"}),i.ele("UserPref",{name:"BackColor",datatype:"hidden"});var a=rn.parse.parse(t,{parseNoneClosedTags:!0});return o.ele("Content",{type:"html"}).ele({$:(a.querySelector("style")?.toString()||"")+a.querySelectorAll("script:not(body script)").map(e=>e.toString()).join("")+a.querySelectorAll("link[rel=stylesheet]:not(body link[rel=stylesheet])").map(e=>e.toString()).join("")+(a.querySelector("body")?.toString()||"")}),n.end({prettyPrint:!0})}let oR=i(process.argv[1]),oU=process.argv.slice(2),oG=oU.includes("help")||oU.includes("--help")||oU.includes("-h"),oz=oU.includes("build-only")||oU.includes("--build-only"),oV=process.cwd();function oH(){let e=a.join(oV,"package.json");if(!o.existsSync(e))return null;let t=JSON.parse(o.readFileSync(e,"utf8")),r={...t.dependencies,...t.devDependencies};return r["@angular/core"]?"angular":r.react||r["react-dom"]?"react":r.vue?"vue":r.parcel||o.existsSync(a.join(oV,"src","main.js"))?"js":null}((e="")=>{process.stdout.write(`${J(eu).gray(eQ)} ${e}
41
41
  `)})(J(eu).cyan("\uD83D\uDE80 Revel Digital SDK Integrator")),oG&&(e9(J(eu).cyan(`
42
42
  Usage: gadgetizer [options]
43
43
 
@@ -48,7 +48,7 @@ Options:
48
48
  Description:
49
49
  Integrates the Revel Digital SDK into your project and generates gadget XML.
50
50
  Supports React, Vue, Angular, and vanilla JavaScript projects.
51
- `)),process.exit(0)),oz&&(o5({projectPath:process.cwd(),__dirname:oR}),process.exit(0));let oH=function(){let e=a.join(oV,"package.json");if(!o.existsSync(e))return null;let t=JSON.parse(o.readFileSync(e,"utf8")),r={...t.dependencies,...t.devDependencies};return r["@angular/core"]?"angular":r.react||r["react-dom"]?"react":r.vue?"vue":r.parcel||o.existsSync(a.join(oV,"src","main.js"))?"js":null}();oH?(e9(J(eu).green(`\u{1F50D} Detected framework: ${{react:"React",vue:"Vue",angular:"Angular",js:"Vanilla JavaScript"}[oH]}`)),e=oH):e=await e6({message:"Select your project framework:",options:[{value:"react",label:"React"},{value:"vue",label:"Vue"},{value:"angular",label:"Angular"},{value:"js",label:"Vanilla JavaScript"}]});let oW="";switch(e){case"react":oW=o.existsSync(a.join(oV,"src","App.tsx"))?a.join("src","App.tsx"):"";break;case"vue":oW=o.existsSync(a.join(oV,"src","App.vue"))?a.join("src","App.vue"):"";break;case"angular":oW=o.existsSync(a.join(oV,"src","main.ts"))?a.join("src","main.ts"):"";break;case"js":oW=o.existsSync(a.join(oV,"src","main.js"))?a.join("src","main.js"):""}oW||e9(J(eu).yellow(`\u{26A0}\u{FE0F} Could not automatically detect the main entry file for ${e}. Please manually instrument your app with the Revel Digital SDK.`));let o$=a.join(oV,"package.json");if(o.existsSync(o$)||(e9(J(eu).red("❌ No package.json found in this directory. Please run this tool from your project root.")),process.exit(1)),"angular"===e){e9(J(eu).cyan("\uD83D\uDCE6 Installing @reveldigital/player-client and running ng add schematic..."));try{n("npm install @reveldigital/player-client@latest",{stdio:"inherit"}),n("ng add @reveldigital/player-client@latest",{stdio:"inherit"}),e9(J(eu).green("✅ Angular project successfully instrumented with Revel Digital Player Client.")),process.exit(0)}catch(e){e9(J(eu).red("❌ Error instrumenting Angular project. Please check your Angular CLI and npm setup.")),process.exit(1)}}let oY=a.join(oR,"assets","gadget.yaml"),oX=a.join(oV,"gadget.yaml");if(o.existsSync(oX))e9(J(eu).yellow("⚠️ gadget.yaml already exists in project root. Skipping copy."));else try{o.copyFileSync(oY,oX),e9(J(eu).green("\uD83D\uDCC4 gadget.yaml copied to project root."))}catch(e){e9(J(eu).red("❌ Failed to copy gadget.yaml to project root. Please copy it manually."))}let oJ=a.join(oV,".github","workflows");if(o.existsSync(a.join(oJ,"deploy-to-pages.yml"))||o.existsSync(a.join(oJ,"deploy-to-pages.yaml"))||o.existsSync(a.join(oJ,"deploy.yml"))||o.existsSync(a.join(oJ,"deploy.yaml")))e9(J(eu).green("\uD83D\uDD0D Existing deployment workflow detected. Skipping workflow setup."));else if(await e5({message:"Add GitHub Actions workflow for automatic Pages deployment?"})){let e=a.join(oR,"assets","deploy-to-pages.yml"),t=a.join(oJ,"deploy-to-pages.yml");try{o.existsSync(oJ)||o.mkdirSync(oJ,{recursive:!0}),o.copyFileSync(e,t),e9(J(eu).green("\uD83D\uDCC4 GitHub Actions workflow copied to .github/workflows/deploy-to-pages.yml")),e9(J(eu).cyan("ℹ️ Don't forget to enable GitHub Pages in your repository settings!"))}catch(e){e9(J(eu).red("❌ Failed to copy GitHub Actions workflow. Please copy deploy-to-pages.yml manually."))}}let oK="";try{oK=await new Promise((e,t)=>{((...e)=>et("h0Fpa").then(({default:t})=>t(...e)))(o$).then(r=>{try{let t=r.split("/"),n=`https://${t[3]}.github.io/${t[4].split(".")[0]}/`;e(n)}catch(e){t(e)}}).catch(t)}),e9(J(eu).cyan(`\u{1F30E} Configuring gadget deployment URL based on Git: ${oK}`))}catch(e){oK="",e9(J(eu).yellow(`\u{26A0}\u{FE0F} Warning: Could not get deployment URL automatically.`))}let oQ=await e8({message:"Enter the deployment URL:",initialValue:oK}),oZ=JSON.parse(o.readFileSync(o$,"utf8")),o0={...oZ.dependencies,...oZ.devDependencies}["@reveldigital/client-sdk"];if(o0)e9(J(eu).green(`\u{1F50D} Revel Digital SDK already installed (${o0}). Skipping SDK setup.`));else{let e=await e6({message:"Select Revel Digital SDK version to install:",options:[{value:"latest",label:"Latest"},{value:"custom",label:"Custom version"}]}),t="";if("custom"===e&&(t=await e8({message:"Enter the custom SDK version:"})),await e5({message:`Install Revel Digital SDK (${"custom"===e?t:e})?`})){oZ.dependencies=oZ.dependencies||{},oZ.dependencies["@reveldigital/gadget-types"]="latest";let r="custom"===e?t:e;oZ.dependencies["@reveldigital/client-sdk"]="latest"===r?"latest":r,o.writeFileSync(o$,JSON.stringify(oZ,null,2)),e9(J(eu).cyan(`\u{1F389} Revel Digital SDK (${r}) added to dependencies.`));try{n("npm install",{stdio:"inherit"}),e9(J(eu).green("\uD83D\uDCE6 npm install completed successfully."))}catch(e){e9(J(eu).red("❌ npm install failed. Please run it manually."))}}}let o1=a.join(oV,"vite.config.js"),o2=a.join(oV,"vite.config.ts"),o3=a.join(oV,"vue.config.js"),o8="";if(o.existsSync(o1)?o8=o1:o.existsSync(o2)&&(o8=o2),o8)try{let e=o.readFileSync(o8,"utf8");/\bbase\s*:/.test(e)?(e=e.replace(/(\bbase\s*:\s*['"])[^'"]*(['"])/,`$1${oQ}$2`),e9(J(eu).yellow(`\u{1F527} Updated "base" in ${a.basename(o8)}.`))):e.includes("defineConfig({")&&(e=e.replace(/(defineConfig\({)/,`$1
52
- base: '${oQ}',`),e9(J(eu).green(`\u{1F527} Added "base" to ${a.basename(o8)}.`))),o.writeFileSync(o8,e)}catch(e){e9(J(eu).red(`\u{274C} Failed to update ${a.basename(o8)}. Please set the "base" property manually.`))}else if(o.existsSync(o3))try{let e=o.readFileSync(o3,"utf8");/\bpublicPath\s*:/.test(e)?(e=e.replace(/(\bpublicPath\s*:\s*['"])[^'"]*(['"])/,`$1${oQ}$2`),e9(J(eu).yellow('\uD83D\uDD27 Updated "publicPath" in vue.config.js.'))):e.includes("module.exports = {")&&(e=e.replace(/(module.exports = {)/,`$1
53
- publicPath: '${oQ}',`),e9(J(eu).green('\uD83D\uDD27 Added "publicPath" to vue.config.js.'))),o.writeFileSync(o3,e)}catch(e){e9(J(eu).red('❌ Failed to update vue.config.js. Please set the "publicPath" property manually.'))}if(oZ.scripts=oZ.scripts||{},(oZ.dependencies&&oZ.dependencies.parcel||oZ.devDependencies&&oZ.devDependencies.parcel)&&(oZ.targets=oZ.targets||{},oZ.targets.default=oZ.targets.default||{},oZ.targets.default.publicUrl=oQ,e9(J(eu).green('\uD83D\uDD27 Set "targets.default.publicUrl" in package.json for Parcel.')),oZ.scripts.start?oZ.scripts.start.includes("--public-url")?oZ.scripts.start=oZ.scripts.start.replace(/--public-url[=\s]+[^\s]*/,"--public-url=/"):oZ.scripts.start+=" --public-url=/":oZ.scripts.start="parcel serve --public-url=/",e9(J(eu).green('\uD83D\uDD27 Updated "start" script with --public-url=/ for Parcel.'))),oZ.scripts["build:gadget"]="npm run build && npx gadgetizer --build-only",o.writeFileSync(o$,JSON.stringify(oZ,null,2)),e9(J(eu).green('\uD83D\uDD27 Added "build:gadget" script to package.json.')),o5({projectPath:oV,__dirname:oR}),oQ){let e=`${oZ.name}.xml`,t=oQ.endsWith("/")?`${oQ}${e}`:`${oQ}/${e}`;e9(J(eu).cyan(`\u{1F389} Congratulations! Once built and published, your gadget will be available at: ${t}`))}else e9(J(eu).yellow("⚠️ Deployment URL not set. Please configure your hosting to access the generated XML file."));function o5({projectPath:e,__dirname:t}){let r=a.join(e,"package.json"),n=JSON.parse(o.readFileSync(r,"utf8")),i=a.join(e,"gadget.yaml"),u=[a.join(e,"dist","index.html"),a.join(e,"dist","browser","index.html"),a.join(e,"public","index.html")],s="";for(let e of u)if(o.existsSync(e)){s=e;break}s||(e9(J(eu).red("❌ index.html not found in dist/, dist/browser/, or public/. Please add it and re-run the tool.")),process.exit(1));let l=a.join(a.dirname(s));try{let e=`${n.name}.xml`;!function(e,t,r,n="1.0"){try{let i=rr(o.readFileSync(e,"utf8")),a=o.readFileSync(t),u=oM(i,a,n);o.writeFileSync(r,u)}catch(e){return console.error(e),!1}}(i,s,a.join(l,e),n.version),e9(J(eu).green(`\u{2705} Gadget XML file "${e}" generated in dist folder.`))}catch(e){e9(J(eu).red("❌ Failed to generate XML file. Please check yml2xml.js and your input files."))}}
51
+ `)),process.exit(0)),oz&&("angular"===oH()&&(e9(J(eu).yellow("⚠️ Angular projects should use their own npm scripts (build:gadget, deploy:gadget) for building and deployment.")),process.exit(0)),o6({projectPath:process.cwd(),__dirname:oR}),process.exit(0));let oW=oH();oW?(e9(J(eu).green(`\u{1F50D} Detected framework: ${{react:"React",vue:"Vue",angular:"Angular",js:"Vanilla JavaScript"}[oW]}`)),e=oW):e=await e6({message:"Select your project framework:",options:[{value:"react",label:"React"},{value:"vue",label:"Vue"},{value:"angular",label:"Angular"},{value:"js",label:"Vanilla JavaScript"}]});let o$="";switch(e){case"react":o$=o.existsSync(a.join(oV,"src","App.tsx"))?a.join("src","App.tsx"):"";break;case"vue":o$=o.existsSync(a.join(oV,"src","App.vue"))?a.join("src","App.vue"):"";break;case"angular":o$=o.existsSync(a.join(oV,"src","main.ts"))?a.join("src","main.ts"):"";break;case"js":o$=o.existsSync(a.join(oV,"src","main.js"))?a.join("src","main.js"):""}o$||e9(J(eu).yellow(`\u{26A0}\u{FE0F} Could not automatically detect the main entry file for ${e}. Please manually instrument your app with the Revel Digital SDK.`));let oY=a.join(oV,"package.json");if(o.existsSync(oY)||(e9(J(eu).red("❌ No package.json found in this directory. Please run this tool from your project root.")),process.exit(1)),"angular"===e){e9(J(eu).cyan("\uD83D\uDCE6 Installing @reveldigital/player-client and running ng add schematic..."));try{n("npm install @reveldigital/player-client@latest",{stdio:"inherit"}),n("ng add @reveldigital/player-client@latest",{stdio:"inherit"}),e9(J(eu).green("✅ Angular project successfully instrumented with Revel Digital Player Client.")),process.exit(0)}catch(e){e9(J(eu).red("❌ Error instrumenting Angular project. Please check your Angular CLI and npm setup.")),process.exit(1)}}let oX=a.join(oR,"assets","gadget.yaml"),oJ=a.join(oV,"gadget.yaml");if(o.existsSync(oJ))e9(J(eu).yellow("⚠️ gadget.yaml already exists in project root. Skipping copy."));else try{o.copyFileSync(oX,oJ),e9(J(eu).green("\uD83D\uDCC4 gadget.yaml copied to project root."))}catch(e){e9(J(eu).red("❌ Failed to copy gadget.yaml to project root. Please copy it manually."))}let oK=a.join(oV,".github","workflows");if(o.existsSync(a.join(oK,"deploy-to-pages.yml"))||o.existsSync(a.join(oK,"deploy-to-pages.yaml"))||o.existsSync(a.join(oK,"deploy.yml"))||o.existsSync(a.join(oK,"deploy.yaml")))e9(J(eu).green("\uD83D\uDD0D Existing deployment workflow detected. Skipping workflow setup."));else if(await e5({message:"Add GitHub Actions workflow for automatic Pages deployment?"})){let e=a.join(oR,"assets","deploy-to-pages.yml"),t=a.join(oK,"deploy-to-pages.yml");try{o.existsSync(oK)||o.mkdirSync(oK,{recursive:!0}),o.copyFileSync(e,t),e9(J(eu).green("\uD83D\uDCC4 GitHub Actions workflow copied to .github/workflows/deploy-to-pages.yml")),e9(J(eu).cyan("ℹ️ Don't forget to enable GitHub Pages in your repository settings!"))}catch(e){e9(J(eu).red("❌ Failed to copy GitHub Actions workflow. Please copy deploy-to-pages.yml manually."))}}let oQ="";try{oQ=await new Promise((e,t)=>{((...e)=>et("h0Fpa").then(({default:t})=>t(...e)))(oY).then(r=>{try{let t=r.split("/"),n=`https://${t[3]}.github.io/${t[4].split(".")[0]}/`;e(n)}catch(e){t(e)}}).catch(t)}),e9(J(eu).cyan(`\u{1F30E} Configuring gadget deployment URL based on Git: ${oQ}`))}catch(e){oQ="",e9(J(eu).yellow(`\u{26A0}\u{FE0F} Warning: Could not get deployment URL automatically.`))}let oZ=await e8({message:"Enter the deployment URL:",initialValue:oQ}),o0=JSON.parse(o.readFileSync(oY,"utf8")),o1={...o0.dependencies,...o0.devDependencies}["@reveldigital/client-sdk"];if(o1)e9(J(eu).green(`\u{1F50D} Revel Digital SDK already installed (${o1}). Skipping SDK setup.`));else{let e=await e6({message:"Select Revel Digital SDK version to install:",options:[{value:"latest",label:"Latest"},{value:"custom",label:"Custom version"}]}),t="";if("custom"===e&&(t=await e8({message:"Enter the custom SDK version:"})),await e5({message:`Install Revel Digital SDK (${"custom"===e?t:e})?`})){o0.dependencies=o0.dependencies||{},o0.dependencies["@reveldigital/gadget-types"]="latest";let r="custom"===e?t:e;o0.dependencies["@reveldigital/client-sdk"]="latest"===r?"latest":r,o.writeFileSync(oY,JSON.stringify(o0,null,2)),e9(J(eu).cyan(`\u{1F389} Revel Digital SDK (${r}) added to dependencies.`));try{n("npm install",{stdio:"inherit"}),e9(J(eu).green("\uD83D\uDCE6 npm install completed successfully."))}catch(e){e9(J(eu).red("❌ npm install failed. Please run it manually."))}}}let o2=a.join(oV,"vite.config.js"),o3=a.join(oV,"vite.config.ts"),o8=a.join(oV,"vue.config.js"),o5="";if(o.existsSync(o2)?o5=o2:o.existsSync(o3)&&(o5=o3),o5)try{let e=o.readFileSync(o5,"utf8");/\bbase\s*:/.test(e)?(e=e.replace(/(\bbase\s*:\s*['"])[^'"]*(['"])/,`$1${oZ}$2`),e9(J(eu).yellow(`\u{1F527} Updated "base" in ${a.basename(o5)}.`))):e.includes("defineConfig({")&&(e=e.replace(/(defineConfig\({)/,`$1
52
+ base: '${oZ}',`),e9(J(eu).green(`\u{1F527} Added "base" to ${a.basename(o5)}.`))),o.writeFileSync(o5,e)}catch(e){e9(J(eu).red(`\u{274C} Failed to update ${a.basename(o5)}. Please set the "base" property manually.`))}else if(o.existsSync(o8))try{let e=o.readFileSync(o8,"utf8");/\bpublicPath\s*:/.test(e)?(e=e.replace(/(\bpublicPath\s*:\s*['"])[^'"]*(['"])/,`$1${oZ}$2`),e9(J(eu).yellow('\uD83D\uDD27 Updated "publicPath" in vue.config.js.'))):e.includes("module.exports = {")&&(e=e.replace(/(module.exports = {)/,`$1
53
+ publicPath: '${oZ}',`),e9(J(eu).green('\uD83D\uDD27 Added "publicPath" to vue.config.js.'))),o.writeFileSync(o8,e)}catch(e){e9(J(eu).red('❌ Failed to update vue.config.js. Please set the "publicPath" property manually.'))}if(o0.scripts=o0.scripts||{},(o0.dependencies&&o0.dependencies.parcel||o0.devDependencies&&o0.devDependencies.parcel)&&(o0.targets=o0.targets||{},o0.targets.default=o0.targets.default||{},o0.targets.default.publicUrl=oZ,e9(J(eu).green('\uD83D\uDD27 Set "targets.default.publicUrl" in package.json for Parcel.')),o0.scripts.start?o0.scripts.start.includes("--public-url")?o0.scripts.start=o0.scripts.start.replace(/--public-url[=\s]+[^\s]*/,"--public-url=/"):o0.scripts.start+=" --public-url=/":o0.scripts.start="parcel serve --public-url=/",e9(J(eu).green('\uD83D\uDD27 Updated "start" script with --public-url=/ for Parcel.'))),o0.scripts["build:gadget"]="npm run build && npx gadgetizer --build-only",o.writeFileSync(oY,JSON.stringify(o0,null,2)),e9(J(eu).green('\uD83D\uDD27 Added "build:gadget" script to package.json.')),o6({projectPath:oV,__dirname:oR}),oZ){let e=`${o0.name}.xml`,t=oZ.endsWith("/")?`${oZ}${e}`:`${oZ}/${e}`;e9(J(eu).cyan(`\u{1F389} Congratulations! Once built and published, your gadget will be available at: ${t}`))}else e9(J(eu).yellow("⚠️ Deployment URL not set. Please configure your hosting to access the generated XML file."));function o6({projectPath:e,__dirname:t}){let r=a.join(e,"package.json"),n=JSON.parse(o.readFileSync(r,"utf8")),i=a.join(e,"gadget.yaml"),u=[a.join(e,"dist","index.html"),a.join(e,"dist","browser","index.html"),a.join(e,"public","index.html")],s="";for(let e of u)if(o.existsSync(e)){s=e;break}s||(e9(J(eu).red("❌ index.html not found in dist/, dist/browser/, or public/. Please add it and re-run the tool.")),process.exit(1));let l=a.join(a.dirname(s));try{let e=`${n.name}.xml`;!function(e,t,r,n="1.0"){try{let i=rr(o.readFileSync(e,"utf8")),a=o.readFileSync(t),u=oM(i,a,n);o.writeFileSync(r,u)}catch(e){return console.error(e),!1}}(i,s,a.join(l,e),n.version),e9(J(eu).green(`\u{2705} Gadget XML file "${e}" generated in dist folder.`))}catch(e){e9(J(eu).red("❌ Failed to generate XML file. Please check yml2xml.js and your input files."))}}
54
54
  //# sourceMappingURL=cli.js.map