@reveldigital/gadgetizer 1.0.1 → 1.0.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/bin.js +3 -0
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/package.json +6 -5
- package/cli.js +0 -255
package/dist/cli.js
CHANGED
|
@@ -33,7 +33,7 @@ ${X(ea).cyan(eZ)}
|
|
|
33
33
|
`}}}).prompt()},e5=(e="")=>{process.stdout.write(`${X(ea).gray(eQ)}
|
|
34
34
|
${X(ea).gray(eZ)} ${e}
|
|
35
35
|
|
|
36
|
-
`)};X(ea).gray(eQ);var e6=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},e9=function(e){return 0===e&&-1/0==1/e};function e4(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 e7(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=e4(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function te(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 tt(e,t){return e6(" ",t-e.length)+e}e7.prototype=Object.create(Error.prototype),e7.prototype.constructor=e7,e7.prototype.toString=function(e){return this.name+": "+e4(this,e)};var tr=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=te(e.buffer,n[i-u],o[i-u],e.position-(n[i]-n[i-u]),p),l=e6(" ",t.indent)+tt((e.line-u+1).toString(),c)+" | "+s.str+"\n"+l;for(s=te(e.buffer,n[i],o[i],e.position,p),l+=e6(" ",t.indent)+tt((e.line+1).toString(),c)+" | "+s.str+"\n"+e6("-",t.indent+c+3+s.pos)+"^\n",u=1;u<=t.linesAfter&&!(i+u>=o.length);u++)s=te(e.buffer,n[i+u],o[i+u],e.position-(n[i]-n[i+u]),p),l+=e6(" ",t.indent)+tt((e.line+u+1).toString(),c)+" | "+s.str+"\n";return l.replace(/\n$/,"")},tn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],to=["scalar","sequence","mapping"],ti=function(e,t){var r,n;if(Object.keys(t=t||{}).forEach(function(t){if(-1===tn.indexOf(t))throw new e7('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===to.indexOf(this.kind))throw new e7('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function ta(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 tu(e){return this.extend(e)}tu.prototype.extend=function(e){var t=[],r=[];if(e instanceof ti)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 e7("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof ti))throw new e7("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new e7("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 e7("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 ti))throw new e7("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(tu.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=ta(n,"implicit"),n.compiledExplicit=ta(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 ts=new tu({explicit:[new ti("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new ti("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new ti("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]}),tl=new ti("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"}),tc=new ti("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"}),tp=new ti("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&&!e9(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"]}}),td=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),tf=/^[-+]?[0-9]+e/,th=new ti("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!td.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||e9(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(e9(e))return"-0.0";return r=e.toString(10),tf.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),tm=ts.extend({implicit:[tl,tc,tp,th]}),tD=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tg=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]))?))?$"),t_=new ti("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==tD.exec(e)||null!==tg.exec(e))},construct:function(e){var t,r,n,o,i,a,u,s,l=0,c=null;if(null===(t=tD.exec(e))&&(t=tg.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()}}),ty=new ti("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),tv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",tb=new ti("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=tv.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|tv.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+=tv[o>>18&63],n+=tv[o>>12&63],n+=tv[o>>6&63],n+=tv[63&o]),o=(o<<8)+e[t];return 0==(r=i%3)?(n+=tv[o>>18&63],n+=tv[o>>12&63],n+=tv[o>>6&63],n+=tv[63&o]):2===r?(n+=tv[o>>10&63],n+=tv[o>>4&63],n+=tv[o<<2&63],n+=tv[64]):1===r&&(n+=tv[o>>2&63],n+=tv[o<<4&63],n+=tv[64],n+=tv[64]),n}}),tx=Object.prototype.hasOwnProperty,tE=Object.prototype.toString,tw=new ti("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]"!==tE.call(n))return!1;for(o in n)if(tx.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:[]}}),tC=Object.prototype.toString,tA=new ti("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]"!==tC.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}}),tN=Object.prototype.hasOwnProperty,tT=new ti("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){var t;if(null===e)return!0;for(t in e)if(tN.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),tS=tm.extend({implicit:[t_,ty],explicit:[tb,tw,tA,tT]}),tF=Object.prototype.hasOwnProperty,tO=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tk=/[\x85\u2028\u2029]/,tP=/[,\[\]\{\}]/,tL=/^(?:!|!!|![a-z\-]+!)$/i,tI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tB(e){return Object.prototype.toString.call(e)}function tq(e){return 10===e||13===e}function tj(e){return 9===e||32===e}function tM(e){return 9===e||32===e||10===e||13===e}function tR(e){return 44===e||91===e||93===e||123===e||125===e}function tU(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 tG=Array(256),tz=Array(256),tV=0;tV<256;tV++)tG[tV]=+!!tU(tV),tz[tV]=tU(tV);function tH(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tS,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 tW(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=tr(r),new e7(t,r)}function t$(e,t){throw tW(e,t)}function tY(e,t){e.onWarning&&e.onWarning.call(null,tW(e,t))}var tX={YAML:function(e,t,r){var n,o,i;null!==e.version&&t$(e,"duplication of %YAML directive"),1!==r.length&&t$(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&t$(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&t$(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&tY(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;2!==r.length&&t$(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],tL.test(n)||t$(e,"ill-formed tag handle (first argument) of the TAG directive"),tF.call(e.tagMap,n)&&t$(e,'there is a previously declared suffix for "'+n+'" tag handle'),tI.test(o)||t$(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){t$(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function tJ(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||t$(e,"expected valid JSON character");else tO.test(u)&&t$(e,"the stream contains non-printable characters");e.result+=u}}function tK(e,t,r,n){var o,i,a,u,s;for("object"==typeof(s=r)&&null!==s||t$(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],tF.call(t,i)||(t[i]=r[i],n[i]=!0)}function tQ(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])&&t$(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===tB(o[l])&&(o[l]="[object Object]");if("object"==typeof o&&"[object Object]"===tB(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)tK(e,t,i[l],r);else tK(e,t,i,r);else!e.json&&!tF.call(r,o)&&tF.call(t,o)&&(e.line=a||e.line,e.lineStart=u||e.lineStart,e.position=s||e.position,t$(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 tZ(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):t$(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function t0(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);0!==o;){for(;tj(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(tq(o))for(tZ(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&&tY(e,"deficient indentation"),n}function t1(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))||tM(t)))||!1}function t2(e,t){1===t?e.result+=" ":t>1&&(e.result+=e6("\n",t-1))}function t3(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,t$(e,"tab characters must not be used in indentation")),45===n&&tM(e.input.charCodeAt(e.position+1)));){if(u=!0,e.position++,t0(e,!0,-1)&&e.lineIndent<=t){a.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,t8(e,t,3,!1,!0),a.push(e.result),t0(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)t$(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 t8(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&&t0(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&&t$(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)):t$(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!tM(o);)33===o&&(a?t$(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),tL.test(r)||t$(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),tP.test(n)&&t$(e,"tag suffix cannot contain flow indicator characters")}n&&!tI.test(n)&&t$(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){t$(e,"tag name is malformed: "+n)}return i?e.tag=n:tF.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:t$(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&&t$(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!tM(r)&&!tR(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&t$(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)t0(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&&(t3(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,_=!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,t$(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,(63===l||58===l)&&tM(n))63===l?(g&&(tQ(e,d,f,h,m,null,a,u,s),h=m=D=null),_=!0,g=!0,o=!0):g?(g=!1,o=!0):t$(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,!t8(e,r,2,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);tj(l);)l=e.input.charCodeAt(++e.position);if(58===l)tM(l=e.input.charCodeAt(++e.position))||t$(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(tQ(e,d,f,h,m,null,a,u,s),h=m=D=null),_=!0,g=!1,o=!1,h=e.tag,m=e.result;else{if(!_)return e.tag=c,e.anchor=p,!0;t$(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!_)return e.tag=c,e.anchor=p,!0;t$(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),t8(e,t,4,!0,o)&&(g?m=e.result:D=e.result),g||(tQ(e,d,f,h,m,D,a,u,s),h=m=D=null),t0(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)t$(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&tQ(e,d,f,h,m,null,a,u,s),_&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=d),_}(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(t0(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&&t$(e,"expected the node content, but found ','"):t$(e,"missed comma between flow collection entries"),p=c=d=null,u=s=!1,63===f&&tM(e.input.charCodeAt(e.position+1))&&(u=s=!0,e.position++,t0(e,!0,t)),r=e.line,n=e.lineStart,o=e.position,t8(e,t,1,!1,!0),p=e.tag,c=e.result,t0(e,!0,t),f=e.input.charCodeAt(e.position),(s||e.line===r)&&58===f&&(u=!0,f=e.input.charCodeAt(++e.position),t0(e,!0,t),t8(e,t,1,!1,!0),d=e.result),l?tQ(e,i,g,p,c,d,r,n,o):u?i.push(tQ(e,null,g,p,c,d,r,n,o)):i.push(c),t0(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}t$(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:t$(e,"repeat of a chomping mode identifier");else if((i=48<=(r=a)&&r<=57?r-48:-1)>=0)0===i?t$(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?t$(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0);else break;if(tj(a)){do a=e.input.charCodeAt(++e.position);while(tj(a))if(35===a)do a=e.input.charCodeAt(++e.position);while(!tq(a)&&0!==a)}for(;0!==a;){for(tZ(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),tq(a)){p++;continue}if(e.lineIndent<c){3===u?e.result+=e6("\n",s?1+p:p):1===u&&s&&(e.result+="\n");break}for(o?tj(a)?(d=!0,e.result+=e6("\n",s?1+p:p)):d?(d=!1,e.result+=e6("\n",p+1)):0===p?s&&(e.result+=" "):e.result+=e6("\n",p):e.result+=e6("\n",s?1+p:p),s=!0,l=!0,p=0,n=e.position;!tq(a)&&0!==a;)a=e.input.charCodeAt(++e.position);tJ(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(tJ(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,o=e.position}else tq(r)?(tJ(e,n,o,!0),t2(e,t0(e,!1,t)),n=o=e.position):e.position===e.lineStart&&t1(e)?t$(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);t$(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 tJ(e,r,e.position,!0),e.position++,!0;else if(92===u){if(tJ(e,r,e.position,!0),tq(u=e.input.charCodeAt(++e.position)))t0(e,!1,t);else if(u<256&&tG[u])e.result+=tz[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:t$(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 t$(e,"unknown escape sequence");r=n=e.position}else tq(u)?(tJ(e,r,n,!0),t2(e,t0(e,!1,t)),r=n=e.position):e.position===e.lineStart&&t1(e)?t$(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);t$(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&&!tM(n)&&!tR(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&t$(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),tF.call(e.anchorMap,r)||t$(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],t0(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(tM(c=e.input.charCodeAt(e.position))||tR(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)&&(tM(n=e.input.charCodeAt(e.position+1))||r&&tR(n)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(tM(n=e.input.charCodeAt(e.position+1))||r&&tR(n))break}else if(35===c){if(tM(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&t1(e)||r&&tR(c))break;else if(tq(c)){if(u=e.line,s=e.lineStart,l=e.lineIndent,t0(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&&(tJ(e,o,i,!1),t2(e,e.line-u),o=i=e.position,a=!1),tj(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return tJ(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)&&t$(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(D=u&&t3(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&&t$(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(tF.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||t$(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&t$(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)):t$(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 t5(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 tH(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,t$(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))&&(t0(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&&!tM(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&t$(e,"directive name must not be less than one character in length");0!==o;){for(;tj(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!tq(o))break}if(tq(o))break;for(t=e.position;0!==o&&!tM(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&tZ(e),tF.call(tX,r)?tX[r](e,r,n):tY(e,'unknown document directive "'+r+'"')}if(t0(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,t0(e,!0,-1)):a&&t$(e,"directives end mark is expected"),t8(e,e.lineIndent-1,4,!1,!0),t0(e,!0,-1),e.checkLineBreaks&&tk.test(e.input.slice(i,e.position))&&tY(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&t1(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,t0(e,!0,-1));return}e.position<e.length-1&&t$(e,"end of the stream or a document separator is expected")}(r);return r.documents}var t6=Object.prototype.toString,t9=Object.prototype.hasOwnProperty,t4={};t4[0]="\\0",t4[7]="\\a",t4[8]="\\b",t4[9]="\\t",t4[10]="\\n",t4[11]="\\v",t4[12]="\\f",t4[13]="\\r",t4[27]="\\e",t4[34]='\\"',t4[92]="\\\\",t4[133]="\\N",t4[160]="\\_",t4[8232]="\\L",t4[8233]="\\P";function t7(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.")}}t7("safeLoad","load"),t7("safeLoadAll","loadAll"),t7("safeDump","dump");var re=function(e,t){var r=t5(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new e7("expected a single document in the stream, but found more")}},rt={},rr=rt&&rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.NodeType=rt.TextNode=rt.Node=rt.valid=rt.CommentNode=rt.HTMLElement=rt.parse=void 0;let rn=rr(ee("9KN8L"));rt.CommentNode=rn.default;let ro=rr(ee("2ZZFK"));rt.HTMLElement=ro.default;let ri=rr(ee("9rIF8"));rt.Node=ri.default;let ra=rr(ee("h19Jg"));rt.TextNode=ra.default;let ru=rr(ee("gxROJ"));rt.NodeType=ru.default;let rs=rr(ee("oyh6k")),rl=rr(ee("biHCd"));function rc(e,t={}){return(0,rs.default)(e,t)}rt.valid=rl.default,rt.default=rc,rt.parse=rc,rc.parse=rs.default,rc.HTMLElement=ro.default,rc.CommentNode=rn.default,rc.valid=rl.default,rc.Node=ri.default,rc.TextNode=ra.default,rc.NodeType=ru.default;var rp={};Object.defineProperty(rp,"__esModule",{value:!0});var rd={};Object.defineProperty(rd,"__esModule",{value:!0});var rf={},rh=rf&&rf.__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},rm=rf&&rf.__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(rf,"__esModule",{value:!0});var rD={};Object.defineProperty(rD,"__esModule",{value:!0}),rD.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},rD.XMLBuilderOptionKeys=new Set(Object.keys(rD.DefaultBuilderOptions)),rD.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 rg=ee("jDPAV"),r_={};Object.defineProperty(r_,"__esModule",{value:!0});var ry={},rv=ry&&ry.__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)});Object.defineProperty(ry,"__esModule",{value:!0});var rg=ee("jDPAV"),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)}),rE=rb&&rb.__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(rb,"__esModule",{value:!0});var rg=ee("jDPAV"),rw=ee("bql4T"),rC={},rA=rC&&rC.__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.")},rN=rC&&rC.__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},rT=rC&&rC.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(rN(arguments[t]));return e};Object.defineProperty(rC,"__esModule",{value:!0});var rw=ee("bql4T"),rS={};Object.defineProperty(rS,"__esModule",{value:!0}),rS.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 rF={};Object.defineProperty(rF,"__esModule",{value:!0}),rF.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 rO=ee("b9DcM"),rk=ee("eOMTm"),rP={};Object.defineProperty(rP,"__esModule",{value:!0}),rP.nonEntityAmpersandRegex=/&(?![A-Za-z]+;|#\d+;)/g,rC.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=rA(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 rF.NamespacePrefixMap;n.set("xml",rO.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 rw.NodeType.Element:this._serializeElementNS(e,t,r,n,o);break;case rw.NodeType.Document:this._serializeDocumentNS(e,t,r,n,o);break;case rw.NodeType.Comment:this._serializeComment(e,o);break;case rw.NodeType.Text:this._serializeText(e,o);break;case rw.NodeType.DocumentFragment:this._serializeDocumentFragmentNS(e,t,r,n,o);break;case rw.NodeType.DocumentType:this._serializeDocumentType(e,o);break;case rw.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,o);break;case rw.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 rw.NodeType.Element:this._serializeElement(e,t);break;case rw.NodeType.Document:this._serializeDocument(e,t);break;case rw.NodeType.Comment:this._serializeComment(e,t);break;case rw.NodeType.Text:this._serializeText(e,t);break;case rw.NodeType.DocumentFragment:this._serializeDocumentFragment(e,t);break;case rw.NodeType.DocumentType:this._serializeDocumentType(e,t);break;case rw.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,t);break;case rw.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(":")||!rk.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===rO.namespace.XML?"xml:"+t.localName:t.localName,this.beginElement(l),this.openTagBegin(l);else{var g=t.prefix,_=null;if((null!==g||D!==h)&&(_=d.get(g,D)),"xmlns"===g){if(i)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");_=g}null!==_?(l=_+":"+t.localName,null!==h&&h!==rO.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,rT(this._serializeAttributesNS(t,d,o,f,p,i))),this.attributes(s);var y=D===rO.namespace.HTML;if(y&&0===t.childNodes.length&&e._VoidElementNames.has(t.localName)?(this.openTagEnd(l,!0,!0),this.endElement(l),c=!0):y||0!==t.childNodes.length?this.openTagEnd(l,!1,!1):(this.openTagEnd(l,!0,!1),this.endElement(l),c=!0),!c){if(y&&"template"===t.localName);else try{for(var v=rA(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(":")||!rk.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=rA(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=rA(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=rA(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&&(!rk.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&&!rk.xml_isLegalChar(e.data))throw Error("Text data contains invalid characters (well-formed required).");var r=e.data.replace(rP.nonEntityAmpersandRegex,"&").replace(/</g,"<").replace(/>/g,">");this.text(r)},e.prototype._serializeDocumentFragmentNS=function(e,t,r,n,o){var i,a;try{for(var u=rA(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=rA(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&&!rk.xml_isPubidChar(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!rk.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&&(!rk.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 rS.LocalNameSet:void 0;try{for(var c=rA(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===rO.namespace.XMLNS){if(d.value===rO.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===rO.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(":")||!rk.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=rA(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(":")||!rk.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=rA(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rO.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rO.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&&!rk.xml_isLegalChar(e))throw Error("Invalid characters in attribute value.");return null===e?"":e.replace(rP.nonEntityAmpersandRegex,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},e._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),e}(),rb.ObjectWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=rg.applyDefaults(r,{format:"object",wellFormed:!1,group:!1,verbose:!1}),n}return rx(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 _=this._getAttrKey(),y=this._getNodeKey(rw.NodeType.Text),v=this._getNodeKey(rw.NodeType.Comment),b=this._getNodeKey(rw.NodeType.ProcessingInstruction),x=this._getNodeKey(rw.NodeType.CData);if(1===p&&1===e.length&&rg.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[_+C[0]]=w[C[0]]:E[_]=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={})[y]=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&&rg.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[y]=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[_]=w;else for(var I in w)E[_+I]=w[I];break;case"#":O=this._processSpecItem(D["#"],E,t.group,y,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&&rg.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&&rg.isArray(e)&&o+e.length>2)try{for(var s=rE(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&&rg.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)?rg.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)?rg.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)?rg.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)?rg.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 rw.NodeType.Comment:return this._builderOptions.convert.comment;case rw.NodeType.Text:return this._builderOptions.convert.text;case rw.NodeType.ProcessingInstruction:return this._builderOptions.convert.ins;case rw.NodeType.CData:return this._builderOptions.convert.cdata;default:throw Error("Invalid node type.")}},t}(rC.BaseWriter),ry.MapWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=rg.applyDefaults(r,{format:"map",wellFormed:!1,group:!1,verbose:!1}),n}return rv(t,e),t.prototype.serialize=function(e){var t=rg.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1,verbose:!1}),r=new rb.ObjectWriter(this._builderOptions,t).serialize(e);return this._convertObject(r)},t.prototype._convertObject=function(e){if(rg.isArray(e)){for(var t=0;t<e.length;t++)e[t]=this._convertObject(e[t]);return e}if(!rg.isObject(e))return e;var r=new Map;for(var n in e)r.set(n,this._convertObject(e[n]));return r},t}(rC.BaseWriter),r_.MapWriter=ry.MapWriter;var rL={},rI=rL&&rL.__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)});Object.defineProperty(rL,"__esModule",{value:!0});var rg=ee("jDPAV"),rw=ee("bql4T"),rB=ee("cnpfV");rL.XMLWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._indentation={},n._lengthToLastNewline=0,n._writerOptions=rg.applyDefaults(r,{wellFormed:!1,headless:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,indentTextOnlyNodes:!1,spaceBeforeSlash:!1}),n}return rI(t,e),t.prototype.serialize=function(e){return this._refs={suppressPretty:!1,emptyNode:!1,markup:""},e.nodeType!==rw.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(rB.Guard.isExclusiveTextNode(i))u++;else if(rB.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}(rC.BaseWriter),r_.XMLWriter=rL.XMLWriter,r_.ObjectWriter=rb.ObjectWriter;var rq={},rj=rq&&rq.__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)}),rM=rq&&rq.__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(rq,"__esModule",{value:!0});var rg=ee("jDPAV");rq.JSONWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=rg.applyDefaults(r,{wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1}),n}return rj(t,e),t.prototype.serialize=function(e){var t=rg.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),r=new rb.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(rg.isArray(e)){a+="[";var s=e.length,l=0;try{for(var c=rM(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(rg.isObject(e)){a+="{";var f=rg.objectLength(e),h=0;rg.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),rg.isArray(e)?rg.forEachArray(e,function(e){return t+=r._descendantCount(e,t)},this):rg.isObject(e)?rg.forEachObject(e,function(e,n){return t+=r._descendantCount(n,t)},this):t++,t},t}(rC.BaseWriter),r_.JSONWriter=rq.JSONWriter;var rR={},rU=rR&&rR.__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)}),rG=rR&&rR.__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(rR,"__esModule",{value:!0});var rg=ee("jDPAV");rR.YAMLWriter=function(e){function t(t,r){var n=e.call(this,t)||this;if(n._writerOptions=rg.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 rU(t,e),t.prototype.serialize=function(e){var t=rg.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),r=new rb.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(rg.isArray(e))try{for(var s=rG(e),l=s.next();!l.done;l=s.next()){var c=l.value;u+=this._beginLine(t,r,!0),rg.isObject(c)?rg.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 rg.forEachObject(e,function(e,o){n?(u+=a._key(e),n=!1):u+=a._beginLine(t,r)+a._key(e),rg.isObject(o)?rg.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}(rC.BaseWriter),r_.YAMLWriter=rR.YAMLWriter;var rw=ee("bql4T"),rB=ee("cnpfV"),rk=ee("eOMTm"),rz={};Object.defineProperty(rz,"__esModule",{value:!0});var rV={};Object.defineProperty(rV,"__esModule",{value:!0});var rH={};Object.defineProperty(rH,"__esModule",{value:!0});var rg=ee("jDPAV");rH.AbortController=ee("84pNM").AbortControllerImpl,rH.AbortSignal=ee("2BzzY").AbortSignalImpl;var rW=ee("hUGgy");rH.AbstractRange=rW.AbstractRangeImpl,rH.Attr=ee("lrfke").AttrImpl,rH.CDATASection=ee("fpzS2").CDATASectionImpl;var r$=ee("48JgK");rH.CharacterData=r$.CharacterDataImpl;var rY={};Object.defineProperty(rY,"__esModule",{value:!0});var rB=ee("cnpfV"),rk=ee("eOMTm");rY.ChildNodeImpl=function(){function e(){}return e.prototype.before=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rB.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=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);o=null===o?n._firstChild:o._nextSibling,rk.mutation_preInsert(u,n,o)}},e.prototype.after=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rB.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=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);rk.mutation_preInsert(u,n,o)}},e.prototype.replaceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rB.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=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);r._parent===n?rk.mutation_replace(r,u,n):rk.mutation_preInsert(u,n,o)}},e.prototype.remove=function(){var e=rB.Cast.asNode(this),t=e._parent;t&&rk.mutation_remove(e,t)},e}(),rH.Comment=ee("7vMWy").CommentImpl,rH.CustomEvent=ee("aBgn9").CustomEventImpl;var rX=ee("ESCTi");rH.DocumentFragment=rX.DocumentFragmentImpl;var rJ=ee("arxVV");rH.Document=rJ.DocumentImpl;var rK={};Object.defineProperty(rK,"__esModule",{value:!0}),rK.DocumentOrShadowRootImpl=function(){};var rQ=ee("FrTv7");rH.DocumentType=rQ.DocumentTypeImpl;var rZ=ee("lrpO3");rH.dom=rZ.dom,rH.DOMImplementation=ee("85Z9s").DOMImplementationImpl,rH.DOMTokenList=ee("8Piwh").DOMTokenListImpl;var r0=ee("iW3sp");rH.Element=r0.ElementImpl,rH.Event=ee("df3k2").EventImpl,rH.EventTarget=ee("ezaCF").EventTargetImpl,rH.HTMLCollection=ee("egFCd").HTMLCollectionImpl;var r1={},r2=r1&&r1.__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(r1,"__esModule",{value:!0});var rZ=ee("lrpO3"),rB=ee("cnpfV"),rO=ee("b9DcM");r1.MutationObserverImpl=function(){function e(e){this._nodeList=[],this._recordQueue=[],this._callback=e;var t=rZ.dom.window;rO.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,r2(u._nodeList)),a=n.next();!a.done;a=n.next()){var s=a.value;rO.list.remove(s._registeredObserverList,function(t){return rB.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=r2(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=r2(this._nodeList),o=n.next();!o.done;o=n.next()){var i=o.value;rO.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}(),rH.MutationObserver=r1.MutationObserverImpl,rH.MutationRecord=ee("1qAZS").MutationRecordImpl,rH.NamedNodeMap=ee("kpMEY").NamedNodeMapImpl,rH.NodeFilter=ee("90TyW").NodeFilterImpl,rH.Node=ee("kuLmk").NodeImpl,rH.NodeIterator=ee("9Y4Fd").NodeIteratorImpl,rH.NodeList=ee("is6DP").NodeListImpl,rH.NodeListStatic=ee("fgilR").NodeListStaticImpl;var r3={};Object.defineProperty(r3,"__esModule",{value:!0});var rB=ee("cnpfV");r3.NonDocumentTypeChildNodeImpl=function(){function e(){}return Object.defineProperty(e.prototype,"previousElementSibling",{get:function(){for(var e=rB.Cast.asNode(this)._previousSibling;e;)if(rB.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=rB.Cast.asNode(this)._nextSibling;e;)if(rB.Guard.isElementNode(e))return e;else e=e._nextSibling;return null},enumerable:!0,configurable:!0}),e}();var r8={};Object.defineProperty(r8,"__esModule",{value:!0});var rB=ee("cnpfV"),rk=ee("eOMTm");r8.NonElementParentNodeImpl=function(){function e(){}return e.prototype.getElementById=function(e){for(var t=rk.tree_getFirstDescendantNode(rB.Cast.asNode(this),!1,!1,function(e){return rB.Guard.isElementNode(e)});null!==t;){if(t._uniqueIdentifier===e)return t;t=rk.tree_getNextDescendantNode(rB.Cast.asNode(this),t,!1,!1,function(e){return rB.Guard.isElementNode(e)})}return null},e}();var r5={},r6=r5&&r5.__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(r5,"__esModule",{value:!0});var rB=ee("cnpfV"),rk=ee("eOMTm");r5.ParentNodeImpl=function(){function e(){}return Object.defineProperty(e.prototype,"children",{get:function(){return rk.create_htmlCollection(rB.Cast.asNode(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){for(var e=rB.Cast.asNode(this)._firstChild;e;)if(rB.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=rB.Cast.asNode(this)._lastChild;e;)if(rB.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=r6(rB.Cast.asNode(this)._children),o=n.next();!o.done;o=n.next()){var i=o.value;rB.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=rB.Cast.asNode(this),n=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);rk.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=rB.Cast.asNode(this),n=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);rk.mutation_append(n,r)},e.prototype.querySelector=function(e){var t=rB.Cast.asNode(this),r=rk.selectors_scopeMatchASelectorsString(e,t);return 0===r.length?null:r[0]},e.prototype.querySelectorAll=function(e){var t=rB.Cast.asNode(this),r=rk.selectors_scopeMatchASelectorsString(e,t);return rk.create_nodeListStatic(t,r)},e}(),rH.ProcessingInstruction=ee("b9Cnk").ProcessingInstructionImpl,rH.Range=ee("15kuI").RangeImpl;var r9=ee("chTgy");rH.ShadowRoot=r9.ShadowRootImpl;var r4={};Object.defineProperty(r4,"__esModule",{value:!0});var rk=ee("eOMTm");r4.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 rk.shadowTree_findASlot(this,!0)},enumerable:!0,configurable:!0}),e}();var r7={},ne=r7&&r7.__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)});Object.defineProperty(r7,"__esModule",{value:!0});var rW=ee("hUGgy"),nt=ee("bnDGi"),rB=ee("cnpfV");r7.StaticRangeImpl=function(e){function t(t){var r=e.call(this)||this;if(rB.Guard.isDocumentTypeNode(t.startContainer)||rB.Guard.isAttrNode(t.startContainer)||rB.Guard.isDocumentTypeNode(t.endContainer)||rB.Guard.isAttrNode(t.endContainer))throw new nt.InvalidNodeTypeError;return r._start=[t.startContainer,t.startOffset],r._end=[t.endContainer,t.endOffset],r}return ne(t,e),t}(rW.AbstractRangeImpl),rH.StaticRange=r7.StaticRangeImpl;var nr=ee("6O4nx");rH.Text=nr.TextImpl,rH.Traverser=ee("bodkg").TraverserImpl,rH.TreeWalker=ee("8i5wm").TreeWalkerImpl,rH.Window=ee("aUIwt").WindowImpl,rH.XMLDocument=ee("lHHKe").XMLDocumentImpl,rg.applyMixin(r0.ElementImpl,rY.ChildNodeImpl),rg.applyMixin(r$.CharacterDataImpl,rY.ChildNodeImpl),rg.applyMixin(rQ.DocumentTypeImpl,rY.ChildNodeImpl),rg.applyMixin(rJ.DocumentImpl,rK.DocumentOrShadowRootImpl),rg.applyMixin(r9.ShadowRootImpl,rK.DocumentOrShadowRootImpl),rg.applyMixin(r0.ElementImpl,r3.NonDocumentTypeChildNodeImpl),rg.applyMixin(r$.CharacterDataImpl,r3.NonDocumentTypeChildNodeImpl),rg.applyMixin(rJ.DocumentImpl,r8.NonElementParentNodeImpl),rg.applyMixin(rX.DocumentFragmentImpl,r8.NonElementParentNodeImpl),rg.applyMixin(rJ.DocumentImpl,r5.ParentNodeImpl),rg.applyMixin(rX.DocumentFragmentImpl,r5.ParentNodeImpl),rg.applyMixin(r0.ElementImpl,r5.ParentNodeImpl),rg.applyMixin(nr.TextImpl,r4.SlotableImpl),rg.applyMixin(r0.ElementImpl,r4.SlotableImpl),rH.dom.setFeatures(!0),rV.DOMImplementation=rH.DOMImplementation;var nn={};Object.defineProperty(nn,"__esModule",{value:!0});var no={};Object.defineProperty(no,"__esModule",{value:!0});var rk=ee("eOMTm"),ni={},na=ni&&ni.__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},nu=ni&&ni.__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(ni,"__esModule",{value:!0});var ns={},nl=ns&&ns.__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(ns,"__esModule",{value:!0});var nc={};Object.defineProperty(nc,"__esModule",{value:!0}),(_=nc.TokenType||(nc.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",ns.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:nc.TokenType.EOF};var t=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&t.type===nc.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:nc.TokenType.Declaration,version:e,encoding:t,standalone:r};var n=nl(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:nc.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:nc.TokenType.PI,target:e,data:""};var t=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:nc.TokenType.PI,target:e,data:t}},e.prototype.text=function(){var e=this.takeUntil("<");return{type:nc.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:nc.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:nc.TokenType.CDATA,data:e}},e.prototype.openTag=function(){this.skipSpace();var e=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:nc.TokenType.Element,name:e,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:nc.TokenType.Element,name:e,attributes:[],selfClosing:!0};for(var t=[];!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:nc.TokenType.Element,name:e,attributes:t,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:nc.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:nc.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===nc.TokenType.EOF?{done:!0,value:null}:{done:!1,value:e}}).bind(this)}},e}();var rO=ee("b9DcM"),rk=ee("eOMTm");ni.XMLParserImpl=function(){function e(){}return e.prototype.parse=function(e){for(var t,r,n,o,i=new ns.XMLStringLexer(e,{skipWhitespaceOnlyText:!0}),a=rk.create_document(),u=a,s=i.nextToken();s.type!==nc.TokenType.EOF;){switch(s.type){case nc.TokenType.Declaration:var l=s;if("1.0"!==l.version)throw Error("Invalid xml version: "+l.version);break;case nc.TokenType.DocType:var c=s;if(!rk.xml_isPubidChar(c.pubId))throw Error("DocType public identifier does not match PubidChar construct.");if(!rk.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 nc.TokenType.CDATA:var p=s;if(!rk.xml_isLegalChar(p.data)||-1!==p.data.indexOf("]]>"))throw Error("CDATA contains invalid characters.");u.appendChild(a.createCDATASection(p.data));break;case nc.TokenType.Comment:var d=s;if(!rk.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 nc.TokenType.PI:var f=s;if(-1!==f.target.indexOf(":")||/^xml$/i.test(f.target))throw Error("Processing instruction target contains invalid characters.");if(!rk.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 nc.TokenType.Text:var h=s;if(!rk.xml_isLegalChar(h.data))throw Error("Text data contains invalid characters.");u.appendChild(a.createTextNode(this._decodeText(h.data)));break;case nc.TokenType.Element:var m=s,D=na(rk.namespace_extractQName(m.name),2),g=D[0],_=D[1];if(-1!==_.indexOf(":")||!rk.xml_isName(_))throw Error("Node local name contains invalid characters.");if("xmlns"===g)throw Error("An element cannot have the 'xmlns' prefix.");var y=u.lookupNamespaceURI(g),v={};try{for(var b=(t=void 0,nu(m.attributes)),x=b.next();!x.done;x=b.next()){var E=na(x.value,2),w=E[0],C=E[1];if("xmlns"===w)y=C;else{var A=na(rk.namespace_extractQName(w),2),N=A[0],T=A[1];"xmlns"===N&&(T===g&&(y=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!==y?a.createElementNS(y,m.name):a.createElement(m.name);u.appendChild(S);var F=new rS.LocalNameSet;try{for(var O=(n=void 0,nu(m.attributes)),k=O.next();!k.done;k=O.next()){var P=na(k.value,2),w=P[0],C=P[1],L=na(rk.namespace_extractQName(w),2),N=L[0],T=L[1],I=null;if("xmlns"===N||null===N&&"xmlns"===T?I=rO.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===rO.namespace.XMLNS&&C===rO.namespace.XMLNS)throw Error("XMLNS namespace is reserved.");if(-1!==T.indexOf(":")||!rk.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 nc.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(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},e.prototype._decodeAttributeValue=function(e){return null==e?e:e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},e}(),no.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 ni.XMLParserImpl().parse(e);return r._contentType=t,r}catch(e){var n="http://www.mozilla.org/newlayout/xml/parsererror.xml",r=rk.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}(),nn.DOMParser=no.DOMParserImpl,rV.DOMParser=nn.DOMParser;var np={};Object.defineProperty(np,"__esModule",{value:!0});var nd={},nf=nd&&nd.__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(nd,"__esModule",{value:!0});var rw=ee("bql4T"),nt=ee("bnDGi"),rO=ee("b9DcM"),rk=ee("eOMTm");nd.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 rF.NamespacePrefixMap;r.set("xml",rO.namespace.XML);try{return this._serializeNodeNS(e,null,r,{value:1},t)}catch(e){throw new nt.InvalidStateError}}try{return this._serializeNode(e,t)}catch(e){throw new nt.InvalidStateError}},e.prototype._serializeNodeNS=function(e,t,r,n,o){switch(e.nodeType){case rw.NodeType.Element:return this._serializeElementNS(e,t,r,n,o);case rw.NodeType.Document:return this._serializeDocumentNS(e,t,r,n,o);case rw.NodeType.Comment:return this._serializeComment(e,o);case rw.NodeType.Text:return this._serializeText(e,o);case rw.NodeType.DocumentFragment:return this._serializeDocumentFragmentNS(e,t,r,n,o);case rw.NodeType.DocumentType:return this._serializeDocumentType(e,o);case rw.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,o);case rw.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 rw.NodeType.Element:return this._serializeElement(e,t);case rw.NodeType.Document:return this._serializeDocument(e,t);case rw.NodeType.Comment:return this._serializeComment(e,t);case rw.NodeType.Text:return this._serializeText(e,t);case rw.NodeType.DocumentFragment:return this._serializeDocumentFragment(e,t);case rw.NodeType.DocumentType:return this._serializeDocumentType(e,t);case rw.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,t);case rw.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(":")||!rk.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===rO.namespace.XML?"xml:"+t.localName:t.localName;else{var g=t.prefix,_=null;if((null!==g||D!==h)&&(_=d.get(g,D)),"xmlns"===g){if(i)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");_=g}null!==_?(l=_+":"+t.localName,null!==h&&h!==rO.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 y=D===rO.namespace.HTML;if(y&&0===t.childNodes.length&&e._VoidElementNames.has(t.localName)?(s+=" /",c=!0):y||0!==t.childNodes.length||(s+="/",c=!0),s+=">",c)return s;if(y&&"template"===t.localName);else try{for(var v=nf(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=nf(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&&(!rk.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&&!rk.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+="&":"<"===o?r+="<":">"===o?r+=">":r+=o}return r},e.prototype._serializeDocumentFragmentNS=function(e,t,r,n,o){var i,a,u="";try{for(var s=nf(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&&!rk.xml_isPubidChar(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!rk.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&&(!rk.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 rS.LocalNameSet:void 0;try{for(var c=nf(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===rO.namespace.XMLNS){if(d.value===rO.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===rO.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(":")||!rk.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=nf(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rO.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rO.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&&!rk.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+=""":"&"===o?r+="&":"<"===o?r+="<":">"===o?r+=">":r+=o}return r},e.prototype._serializeElement=function(e,t){if(t&&(-1!==e.localName.indexOf(":")||!rk.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=nf(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=nf(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=nf(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=nf(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(":")||!rk.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}(),np.XMLSerializer=nd.XMLSerializerImpl,rV.XMLSerializer=np.XMLSerializer;var rg=ee("jDPAV");rH.dom.setFeatures(!1),rz.createDocument=function(){var e=new rV.DOMImplementation().createDocument(null,"root",null);return e.documentElement&&e.removeChild(e.documentElement),e},rz.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+=rg.isString(t)?t:t(e.charAt(n),n,e)}else r+=rg.isString(t)?t:t(e.charAt(n),n,e)}return r};var rO=ee("b9DcM"),nh={};Object.defineProperty(nh,"__esModule",{value:!0});var nm={},nD=nm&&nm.__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)}),ng=nm&&nm.__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},n_=nm&&nm.__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(nm,"__esModule",{value:!0});var rw=ee("bql4T"),rO=ee("b9DcM"),rk=ee("eOMTm"),ny={};Object.defineProperty(ny,"__esModule",{value:!0}),ny.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 rz.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}(),nm.XMLReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nD(t,e),t.prototype._parse=function(e,t){for(var r,n,o,i,a=new ns.XMLStringLexer(t,{skipWhitespaceOnlyText:this._builderOptions.skipWhitespaceOnlyText}),u=e,s=e,l=a.nextToken();l.type!==nc.TokenType.EOF;){switch(l.type){case nc.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 nc.TokenType.DocType:var f=l;s=this.docType(s,this.sanitize(f.name),this.sanitize(f.pubId),this.sanitize(f.sysId))||s;break;case nc.TokenType.CDATA:var h=l;s=this.cdata(s,this.sanitize(h.data))||s;break;case nc.TokenType.Comment:var m=l;s=this.comment(s,this.sanitize(m.data))||s;break;case nc.TokenType.PI:var D=l;s=this.instruction(s,this.sanitize(D.target),this.sanitize(D.data))||s;break;case nc.TokenType.Text:if(s.node.nodeType===rw.NodeType.Document)break;var g=l;s=this.text(s,this._decodeText(this.sanitize(g.data)))||s;break;case nc.TokenType.Element:var _=l,y=this.sanitize(_.name),v=ng(rk.namespace_extractQName(y),1)[0],b=s.node.lookupNamespaceURI(v),x={};try{for(var E=(r=void 0,n_(_.attributes)),w=E.next();!w.done;w=E.next()){var C=ng(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=ng(rk.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,y):this.element(s,void 0,y);if(void 0===O)break;s.node===e.node&&(u=O);try{for(var k=(o=void 0,n_(_.attributes)),P=k.next();!P.done;P=k.next()){var L=ng(P.value,2),A=L[0],N=L[1];A=this.sanitize(A),N=this.sanitize(N);var I=ng(rk.namespace_extractQName(A),2),S=I[0],F=I[1],B=null;"xmlns"===S||null===S&&"xmlns"===F?B=rO.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}}_.selfClosing||(s=O);break;case nc.TokenType.ClosingTag:s.node.parentNode&&(s=s.up())}l=a.nextToken()}return u},t}(ny.BaseReader),nh.XMLReader=nm.XMLReader;var nv={},nb=nv&&nv.__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)});Object.defineProperty(nv,"__esModule",{value:!0});var rg=ee("jDPAV");nv.ObjectReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nb(t,e),t.prototype._parse=function(e,t){var r=this,n=this._builderOptions,o=null;return rg.isFunction(t)?o=this.parse(e,t.apply(this)):rg.isArray(t)||rg.isSet(t)?rg.forEachArray(t,function(t){return o=r.parse(e,t)},this):rg.isMap(t)||rg.isObject(t)?rg.forEachObject(t,function(t,i){if(rg.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((rg.isArray(i)||rg.isSet(i))&&rg.isEmpty(i));else if((rg.isMap(i)||rg.isObject(i))&&rg.isEmpty(i))o=r.element(e,void 0,r.sanitize(t))||o;else if(n.keepNullNodes||null!=i)if(rg.isArray(i)||rg.isSet(i))rg.forEachArray(i,function(n){var i={};i[t]=n,o=r.parse(e,i)},r);else if(rg.isMap(i)||rg.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(rg.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 rg.isArray(i)||rg.isSet(i)?rg.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):rg.forEachObject(i,function(t,n){return o=r.instruction(e,r.sanitize(t),r.sanitize(n))||o},r);else rg.isArray(i)||rg.isSet(i)?rg.forEachArray(i,function(t){return o=r.comment(e,r.sanitize(t))||o},r):o=r.comment(e,r.sanitize(i))||o;else rg.isArray(i)||rg.isSet(i)?rg.forEachArray(i,function(t){return o=r.cdata(e,r.sanitize(t))||o},r):o=r.cdata(e,r.sanitize(i))||o;else o=rg.isMap(i)||rg.isObject(i)?r.parse(e,i):r.text(e,r._decodeText(r.sanitize(i)))||o;else if(t===n.convert.att)if(rg.isArray(i)||rg.isSet(i))throw Error("Invalid attribute: "+i.toString()+". "+e._debugInfo());else rg.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}(ny.BaseReader),nh.ObjectReader=nv.ObjectReader;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}),nx.JSONReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nE(t,e),t.prototype._parse=function(e,t){return new nv.ObjectReader(this._builderOptions).parse(e,JSON.parse(t))},t}(ny.BaseReader),nh.JSONReader=nx.JSONReader;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});var nA={},nN={};J(nN,"Type",()=>N,e=>N=e),J(nN,"Schema",()=>T,e=>T=e),J(nN,"FAILSAFE_SCHEMA",()=>S,e=>S=e),J(nN,"JSON_SCHEMA",()=>F,e=>F=e),J(nN,"CORE_SCHEMA",()=>O,e=>O=e),J(nN,"DEFAULT_SAFE_SCHEMA",()=>k,e=>k=e),J(nN,"DEFAULT_FULL_SCHEMA",()=>P,e=>P=e),J(nN,"load",()=>L,e=>L=e),J(nN,"loadAll",()=>I,e=>I=e),J(nN,"safeLoad",()=>B,e=>B=e),J(nN,"safeLoadAll",()=>q,e=>q=e),J(nN,"dump",()=>j,e=>j=e),J(nN,"safeDump",()=>M,e=>M=e),J(nN,"YAMLException",()=>R,e=>R=e),J(nN,"MINIMAL_SCHEMA",()=>U,e=>U=e),J(nN,"SAFE_SCHEMA",()=>G,e=>G=e),J(nN,"DEFAULT_SCHEMA",()=>z,e=>z=e),J(nN,"scan",()=>V,e=>V=e),J(nN,"parse",()=>H,e=>H=e),J(nN,"compose",()=>W,e=>W=e),J(nN,"addConstructor",()=>$,e=>$=e);var nT=ee("aeC7f"),nS=ee("d6Ezz"),nF={},nT=ee("aeC7f");function nO(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}nO.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),nT.repeat(" ",e)+r+a+o+"\n"+nT.repeat(" ",e+this.position-n+r.length)+"^"},nO.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},nF=nO;var nk=ee("7WEyj"),nP=ee("eqI2g"),nL=Object.prototype.hasOwnProperty,nI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nB=/[\x85\u2028\u2029]/,nq=/[,\[\]\{\}]/,nj=/^(?:!|!!|![a-z\-]+!)$/i,nM=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nR(e){return Object.prototype.toString.call(e)}function nU(e){return 10===e||13===e}function nG(e){return 9===e||32===e}function nz(e){return 9===e||32===e||10===e||13===e}function nV(e){return 44===e||91===e||93===e||123===e||125===e}function nH(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 nW=Array(256),n$=Array(256),nY=0;nY<256;nY++)nW[nY]=+!!nH(nY),n$[nY]=nH(nY);function nX(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||nP,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 nJ(e,t){return new nS(t,new nF(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function nK(e,t){throw nJ(e,t)}function nQ(e,t){e.onWarning&&e.onWarning.call(null,nJ(e,t))}var nZ={YAML:function(e,t,r){var n,o,i;null!==e.version&&nK(e,"duplication of %YAML directive"),1!==r.length&&nK(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&nK(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&nK(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&nQ(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;2!==r.length&&nK(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],nj.test(n)||nK(e,"ill-formed tag handle (first argument) of the TAG directive"),nL.call(e.tagMap,n)&&nK(e,'there is a previously declared suffix for "'+n+'" tag handle'),nM.test(o)||nK(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=o}};function n0(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||nK(e,"expected valid JSON character");else nI.test(u)&&nK(e,"the stream contains non-printable characters");e.result+=u}}function n1(e,t,r,n){var o,i,a,u;for(nT.isObject(r)||nK(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],nL.call(t,i)||(t[i]=r[i],n[i]=!0)}function n2(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])&&nK(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===nR(o[s])&&(o[s]="[object Object]");if("object"==typeof o&&"[object Object]"===nR(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)n1(e,t,i[s],r);else n1(e,t,i,r);else!e.json&&!nL.call(r,o)&&nL.call(t,o)&&(e.line=a||e.line,e.position=u||e.position,nK(e,"duplicated mapping key")),t[o]=i,delete r[o];return t}function n3(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):nK(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function n8(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);0!==o;){for(;nG(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(nU(o))for(n3(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&&nQ(e,"deficient indentation"),n}function n5(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))||nz(t)))||!1}function n6(e,t){1===t?e.result+=" ":t>1&&(e.result+=nT.repeat("\n",t-1))}function n9(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&&nz(e.input.charCodeAt(e.position+1));){if(u=!0,e.position++,n8(e,!0,-1)&&e.lineIndent<=t){a.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,n4(e,t,3,!1,!0),a.push(e.result),n8(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)nK(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 n4(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&&n8(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&&nK(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)):nK(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!nz(o);)33===o&&(a?nK(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),nj.test(r)||nK(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),nq.test(n)&&nK(e,"tag suffix cannot contain flow indicator characters")}return n&&!nM.test(n)&&nK(e,"tag name cannot contain such characters: "+n),i?e.tag=n:nL.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:nK(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&&nK(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!nz(r)&&!nV(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&nK(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)n8(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&&(n9(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)&&nz(n))63===u?(m&&(n2(e,c,p,d,f,null),d=f=h=null),D=!0,m=!0,o=!0):m?(m=!1,o=!0):nK(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(n4(e,r,2,!1,!0))if(e.line===i){for(u=e.input.charCodeAt(e.position);nG(u);)u=e.input.charCodeAt(++e.position);if(58===u)nz(u=e.input.charCodeAt(++e.position))||nK(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(n2(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;nK(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!D)return e.tag=s,e.anchor=l,!0;nK(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)&&(n4(e,t,4,!0,o)&&(m?f=e.result:h=e.result),m||(n2(e,c,p,d,f,h,i,a),d=f=h=null),n8(e,!0,-1),u=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==u)nK(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&n2(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(n8(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||nK(e,"missed comma between flow collection entries"),l=s=c=null,i=a=!1,63===p&&nz(e.input.charCodeAt(e.position+1))&&(i=a=!0,e.position++,n8(e,!0,t)),r=e.line,n4(e,t,1,!1,!0),l=e.tag,s=e.result,n8(e,!0,t),p=e.input.charCodeAt(e.position),(a||e.line===r)&&58===p&&(i=!0,p=e.input.charCodeAt(++e.position),n8(e,!0,t),n4(e,t,1,!1,!0),c=e.result),u?n2(e,n,m,l,s,c):i?n.push(n2(e,null,m,l,s,c)):n.push(s),n8(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(d=!0,p=e.input.charCodeAt(++e.position)):d=!1}nK(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:nK(e,"repeat of a chomping mode identifier");else if((i=48<=(r=a)&&r<=57?r-48:-1)>=0)0===i?nK(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?nK(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0);else break;if(nG(a)){do a=e.input.charCodeAt(++e.position);while(nG(a))if(35===a)do a=e.input.charCodeAt(++e.position);while(!nU(a)&&0!==a)}for(;0!==a;){for(n3(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),nU(a)){p++;continue}if(e.lineIndent<c){3===u?e.result+=nT.repeat("\n",s?1+p:p):1===u&&s&&(e.result+="\n");break}for(o?nG(a)?(d=!0,e.result+=nT.repeat("\n",s?1+p:p)):d?(d=!1,e.result+=nT.repeat("\n",p+1)):0===p?s&&(e.result+=" "):e.result+=nT.repeat("\n",p):e.result+=nT.repeat("\n",s?1+p:p),s=!0,l=!0,p=0,n=e.position;!nU(a)&&0!==a;)a=e.input.charCodeAt(++e.position);n0(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(n0(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,o=e.position}else nU(r)?(n0(e,n,o,!0),n6(e,n8(e,!1,t)),n=o=e.position):e.position===e.lineStart&&n5(e)?nK(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);nK(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 n0(e,r,e.position,!0),e.position++,!0;else if(92===u){if(n0(e,r,e.position,!0),nU(u=e.input.charCodeAt(++e.position)))n8(e,!1,t);else if(u<256&&nW[u])e.result+=n$[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:nK(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 nK(e,"unknown escape sequence");r=n=e.position}else nU(u)?(n0(e,r,n,!0),n6(e,n8(e,!1,t)),r=n=e.position):e.position===e.lineStart&&n5(e)?nK(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);nK(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&&!nz(n)&&!nV(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&nK(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),nL.call(e.anchorMap,r)||nK(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],n8(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(nz(c=e.input.charCodeAt(e.position))||nV(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)&&(nz(n=e.input.charCodeAt(e.position+1))||r&&nV(n)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(nz(n=e.input.charCodeAt(e.position+1))||r&&nV(n))break}else if(35===c){if(nz(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&n5(e)||r&&nV(c))break;else if(nU(c)){if(u=e.line,s=e.lineStart,l=e.lineIndent,n8(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&&(n0(e,o,i,!1),n6(e,e.line-u),o=i=e.position,a=!1),nG(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return n0(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)&&nK(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(m=u&&n9(e,d))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&nK(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 nL.call(e.typeMap[e.kind||"fallback"],e.tag)?(c=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&c.kind!==e.kind&&nK(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)):nK(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):nK(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function n7(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 nX(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,nK(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))&&(n8(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&&!nz(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&nK(e,"directive name must not be less than one character in length");0!==o;){for(;nG(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!nU(o))break}if(nU(o))break;for(t=e.position;0!==o&&!nz(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&n3(e),nL.call(nZ,r)?nZ[r](e,r,n):nQ(e,'unknown document directive "'+r+'"')}if(n8(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,n8(e,!0,-1)):a&&nK(e,"directives end mark is expected"),n4(e,e.lineIndent-1,4,!1,!0),n8(e,!0,-1),e.checkLineBreaks&&nB.test(e.input.slice(i,e.position))&&nQ(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&n5(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,n8(e,!0,-1));return}e.position<e.length-1&&nK(e,"end of the stream or a document separator is expected")}(r);return r.documents}function oe(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=n7(e,r);if("function"!=typeof t)return n;for(var o=0,i=n.length;o<i;o+=1)t(n[o])}function ot(e,t){var r=n7(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new nS("expected a single document in the stream, but found more")}}var nT=ee("aeC7f"),nS=ee("d6Ezz"),nP=ee("eqI2g"),nk=ee("7WEyj"),or=Object.prototype.toString,on=Object.prototype.hasOwnProperty,oo={};oo[0]="\\0",oo[7]="\\a",oo[8]="\\b",oo[9]="\\t",oo[10]="\\n",oo[11]="\\v",oo[12]="\\f",oo[13]="\\r",oo[27]="\\e",oo[34]='\\"',oo[92]="\\\\",oo[133]="\\N",oo[160]="\\_",oo[8232]="\\L",oo[8233]="\\P";var oi=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function oa(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 nS("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+nT.repeat("0",n-t.length)+t}function ou(e){this.schema=e.schema||nP,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=nT.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])&&on.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 os(e,t){for(var r,n=nT.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 ol(e,t){return"\n"+nT.repeat(" ",e.indent*t)}function oc(e){return 32===e||9===e}function op(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 od(e,t){var r;return op(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&op(r=t)&&!oc(r)&&65279!==r&&13!==r&&10!==r)}function of(e){return/^\n* /.test(e)}function oh(e,t){var r=of(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function om(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function oD(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 og(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]"===or.call(u.represent))n=u.represent(t,s);else if(on.call(u.represent,s))n=u.represent[s](t,s);else throw new nS("!<"+u.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function o_(e,t){var r=new ou(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,og(t,n,!1)||og(t,n,!0);var u=or.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 nS("sortKeys must be a boolean or a function");for(i=0,a=f.length;i<a;i+=1)c="",o&&0===i||(c+=ol(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+=ol(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+=ol(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!==oi.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=op(i=e.charCodeAt(0))&&65279!==i&&!oc(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&&!oc(e.charCodeAt(e.length-1));if(t)for(a=0;a<e.length;a++){if(!op(u=e.charCodeAt(a)))return 5;s=a>0?e.charCodeAt(a-1):null,f=f&&od(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(!op(u))return 5;s=a>0?e.charCodeAt(a-1):null,f=f&&od(u,s)}c=c||p&&a-d-1>n&&" "!==e[d+1]}return l||c?r>9&&of(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"|"+oh(p,t.indent)+om(os(p,e));case 4:return">"+oh(p,t.indent)+om(os(function(e,t){for(var r,n,o,i=/(\n+)([^\n]*)/g,a=(i.lastIndex=r=-1!==(r=e.indexOf("\n"))?r:e.length,oD(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")+oD(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+=oa((t-55296)*1024+r-56320+65536),i++;continue}o+=!(n=oo[t])&&op(t)?e[i]:n||oa(t)}return o}(p,n)+'"';default:throw new nS("impossible error: invalid scalar style")}}());else{if(t.skipInvalid)return!1;throw new nS("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 oy(e){return function(){throw Error("Function "+e+" is deprecated and cannot be used.")}}N=ee("k5aGh"),T=ee("bPRG3"),S=ee("hWFej"),F=ee("jON1e"),O=ee("hCN6d"),k=ee("7WEyj"),P=ee("eqI2g"),L=ot,I=oe,B=function(e,t){return ot(e,nT.extend({schema:nk},t))},q=function(e,t,r){return"object"==typeof t&&null!==t&&void 0===r&&(r=t,t=null),oe(e,t,nT.extend({schema:nk},r))},j=o_,M=function(e,t){return o_(e,nT.extend({schema:nk},t))},R=ee("d6Ezz"),U=ee("hWFej"),G=ee("7WEyj"),z=ee("eqI2g"),V=oy("scan"),H=oy("parse"),W=oy("compose"),$=oy("addConstructor"),nA=nN,nw.YAMLReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nC(t,e),t.prototype._parse=function(e,t){var r=nA.safeLoad(t);if(void 0===r)throw Error("Unable to parse YAML document.");return new nv.ObjectReader(this._builderOptions).parse(e,r)},t}(ny.BaseReader),nh.YAMLReader=nw.YAMLReader,rf.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=rg.applyDefaults(rg.applyDefaults(this._options,e,!0),rD.DefaultBuilderOptions),this},e.prototype.ele=function(t,r,n){if(rg.isObject(t))return new nh.ObjectReader(this._options).parse(this,t);if(null!==t&&/^\s*</.test(t))return new nh.XMLReader(this._options).parse(this,t);if(null!==t&&/^\s*[\{\[]/.test(t))return new nh.JSONReader(this._options).parse(this,t);if(null!==t&&/^(\s*|(#.*)|(%.*))*---/.test(t))return new nh.YAMLReader(this._options).parse(this,t);if((null===t||rg.isString(t))&&rg.isString(r))u=(o=rh([t,r,n],3))[0],s=o[1],l=o[2];else if(null!==t)u=(i=rh([void 0,t,rg.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=rg.getValue(l)),u=(a=rh(this._extractNamespace(rz.sanitizeInput(u,this._options.invalidCharReplacement),rz.sanitizeInput(s,this._options.invalidCharReplacement),!0),2))[0],s=a[1],void 0===u){var o,i,a,u,s,l,c=rh(rk.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&&!rg.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(rg.isMap(e)||rg.isObject(e))return rg.forEachObject(e,function(e,t){return l.att(e,t)},this),this;if(null!=e&&(e=rg.getValue(e+"")),null!=t&&(t=rg.getValue(t+"")),null!=r&&(r=rg.getValue(r+"")),(null===e||rg.isString(e))&&rg.isString(t)&&(null===r||rg.isString(r)))a=(n=rh([e,t,r],3))[0],u=n[1],s=n[2];else if(rg.isString(e)&&(null==t||rg.isString(t)))a=(o=rh([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(!rB.Guard.isElementNode(this.node))throw Error("An attribute can only be assigned to an element node.");var c=this.node;a=(i=rh(this._extractNamespace(a,u,!1),2))[0],u=i[1],u=rz.sanitizeInput(u,this._options.invalidCharReplacement),a=rz.sanitizeInput(a,this._options.invalidCharReplacement),s=rz.sanitizeInput(s,this._options.invalidCharReplacement);var p=rh(rk.namespace_extractQName(u),2),d=p[0],f=p[1],h=rh(rk.namespace_extractQName(c.prefix?c.prefix+":"+c.localName:c.localName),1)[0],m=null;return"xmlns"===d?(a=rO.namespace.XMLNS,null===c.namespaceURI&&h===f&&(m=s)):null===d&&"xmlns"===f&&null===h&&(a=rO.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(!rB.Guard.isElementNode(this.node))throw Error("An attribute can only be removed from an element node.");if(e=rg.getValue(e),void 0!==t&&(t=rg.getValue(t)),null!==e&&void 0===t)n=e;else if((null===e||rg.isString(e))&&void 0!==t)r=e,n=t;else throw Error("Attribute namespace must be a string. "+this._debugInfo());return rg.isArray(n)||rg.isSet(n)?rg.forEachArray(n,function(e){return void 0===r?o.removeAtt(e):o.removeAtt(r,e)},this):void 0!==r?(n=rz.sanitizeInput(n,this._options.invalidCharReplacement),r=rz.sanitizeInput(r,this._options.invalidCharReplacement),this.node.removeAttributeNS(r,n)):(n=rz.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(rz.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(rz.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(rz.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(rg.isArray(e)||rg.isSet(e))rg.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(rg.isMap(e)||rg.isObject(e))rg.forEachObject(e,function(e,t){return r.ins(e,t)},this);else{var n=this._doc.createProcessingInstruction(rz.sanitizeInput(e,this._options.invalidCharReplacement),rz.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=rz.sanitizeInput(e&&e.name||(this._doc.documentElement?this._doc.documentElement.tagName:"ROOT"),this._options.invalidCharReplacement),r=rz.sanitizeInput(e&&e.pubID||"",this._options.invalidCharReplacement),n=rz.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(rB.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=rh(rk.namespace_extractQName(s.prefix?s.prefix+":"+s.localName:s.localName),1)[0],c=o.lookupNamespaceURI(l);new e(s)._updateNamespace(c)}else if(rB.Guard.isDocumentFragmentNode(a))try{for(var p=rm(a.childNodes),d=p.next();!d.done;d=p.next()){var f=d.value,s=i.importNode(f,!0);if(o.appendChild(s),rB.Guard.isElementNode(s)){var l=rh(rk.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),rB.Guard.isElementNode(s)){var l=rh(rk.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!==rw.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,rk.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 r_.XMLWriter(this._options,e);return t.serialize(this.node)}if("map"===e.format){var t=new r_.MapWriter(this._options,e);return t.serialize(this.node)}if("object"===e.format){var t=new r_.ObjectWriter(this._options,e);return t.serialize(this.node)}if("json"===e.format){var t=new r_.JSONWriter(this._options,e);return t.serialize(this.node)}if("yaml"===e.format){var t=new r_.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(rB.Guard.isElementNode(a)&&null!==t&&a.namespaceURI!==t){var u=rh(rk.namespace_extractQName(a.prefix?a.prefix+":"+a.localName:a.localName),2),s=u[0],l=u[1],c=rk.create_element(this._doc,l,t,s);try{for(var p=rm(a.attributes),d=p.next();!d.done;d=p.next()){var f=d.value,h=f.prefix?f.prefix+":"+f.localName:f.localName,m=rh(rk.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 _=rm(a.childNodes),y=_.next();!y.done;y=_.next()){var v=y.value.cloneNode(!0);if(c.appendChild(v),rB.Guard.isElementNode(v)){var b=rh(rk.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{y&&!y.done&&(i=_.return)&&i.call(_)}finally{if(o)throw o.error}}}},Object.defineProperty(e.prototype,"_doc",{get:function(){var e=this.node;if(rB.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}(),rd.XMLBuilderImpl=rf.XMLBuilderImpl;var ov={},ob=ov&&ov.__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)}),ox=ov&&ov.__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.")},oE=ov&&ov.__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(ov,"__esModule",{value:!0});var rg=ee("jDPAV"),ow={};Object.defineProperty(ow,"__esModule",{value:!0});var rg=ee("jDPAV"),rB=ee("cnpfV");function oC(e,t){var r=oN(void 0===e||oA(e)?e:rD.DefaultBuilderOptions),n=oA(e)?t:e,o=rz.createDocument();oT(o,r);var i=new rd.XMLBuilderImpl(o);return void 0!==n&&i.ele(n),i}function oA(e){if(!rg.isPlainObject(e))return!1;for(var t in e)if(e.hasOwnProperty(t)&&!rD.XMLBuilderOptionKeys.has(t))return!1;return!0}function oN(e){void 0===e&&(e={});var t=rg.applyDefaults(e,rD.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 oT(e,t,r){e._xmlBuilderOptions=t,e._isFragment=r}ow.builder=function(e,t){var r=oN(oA(e)?e:rD.DefaultBuilderOptions),n=rB.Guard.isNode(e)||rg.isArray(e)?e:t;if(void 0===n)throw Error("Invalid arguments.");if(rg.isArray(n)){for(var o=[],i=0;i<n.length;i++){var a=new rd.XMLBuilderImpl(n[i]);a.set(r),o.push(a)}return o}var u=new rd.XMLBuilderImpl(n);return u.set(r),u},ow.create=oC,ow.fragment=function(e,t){var r=oN(void 0===e||oA(e)?e:rD.DefaultBuilderOptions),n=oA(e)?t:e,o=rz.createDocument();oT(o,r,!0);var i=new rd.XMLBuilderImpl(o.createDocumentFragment());return void 0!==n&&i.ele(n),i},ow.convert=function(e,t,r){var n,o,i;return oA(e)&&void 0!==t?(n=e,o=t,i=r):(n=rD.DefaultBuilderOptions,o=e,i=t||void 0),oC(n,o).end(i)};var rk=ee("eOMTm"),rO=ee("b9DcM"),rB=ee("cnpfV"),oS={},oF=oS&&oS.__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)});Object.defineProperty(oS,"__esModule",{value:!0});var oO={};Object.defineProperty(oO,"__esModule",{value:!0}),oO.BaseCBWriter=function(e){this.level=0,this._builderOptions=e,this._writerOptions=e},oS.XMLCBWriter=function(e){function t(t){var r=e.call(this,t)||this;return r._lineLength=0,r}return oF(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}(oO.BaseCBWriter);var ok={},oP=ok&&ok.__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(ok,"__esModule",{value:!0}),ok.JSONCBWriter=function(e){function t(t){var r=e.call(this,t)||this;return r._hasChildren=[],r._additionalLevel=0,r}return oP(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}(oO.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.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 oI(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}(oO.BaseCBWriter),ov.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=rg.applyDefaults(t||{},rD.DefaultXMLBuilderCBOptions),n._builderOptions={defaultNamespace:n._options.defaultNamespace,namespaceAlias:n._options.namespaceAlias},"json"===n._options.format?n._writer=new ok.JSONCBWriter(n._options):"yaml"===n._options.format?n._writer=new oL.YAMLCBWriter(n._options):n._writer=new oS.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 rF.NamespacePrefixMap,n._prefixMap.set("xml",rO.namespace.XML),n._prefixIndex={value:1},n._push(n._writer.frontMatter()),n}return ob(t,e),t.prototype.ele=function(e,t,r){var n,o;if(rg.isObject(e)||rg.isString(e)&&(/^\s*</.test(e)||/^\s*[\{\[]/.test(e)||/^(\s*|(#.*)|(%.*))*---/.test(e))){var i=ow.fragment().set(this._options);try{i.ele(e)}catch(e){return this.emit("error",e),this}try{for(var a=ox(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=ow.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=ow.fragment(this._builderOptions).com(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(!rk.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=ow.fragment(this._builderOptions).txt(e).first().node}catch(e){return this.emit("error",e),this}if(this._options.wellFormed&&!rk.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,"&").replace(/</g,"<").replace(/>/g,">");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=ow.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&&!rk.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=ow.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=ow.create().dtd(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&!rk.xml_isPubidChar(t.publicId)?this.emit("error",Error("DocType public identifier does not match PubidChar construct (well-formed required).")):this._options.wellFormed&&(!rk.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=ow.fragment().set(this._options);try{n.import(e)}catch(e){return this.emit("error",e),this}try{for(var o=ox(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(":")||!rk.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===rO.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!==rO.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===rO.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=oE(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(rB.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=ox(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=ox(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 rB.Guard.isExclusiveTextNode(e)&&e.data?this.txt(e.data):rB.Guard.isCommentNode(e)?this.com(e.data):rB.Guard.isCDATASectionNode(e)?this.dat(e.data):rB.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 rS.LocalNameSet:void 0;try{for(var l=ox(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===rO.namespace.XMLNS){if(p.value===rO.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===rO.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(":")||!rk.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&&!rk.xml_isLegalChar(e)?(this.emit("error",Error("Invalid characters in attribute value.")),""):null===e?"":e.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},t.prototype._recordNamespaceInformation=function(e,t,r){var n,o,i=null;try{for(var a=ox(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rO.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rO.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}(p),rd.XMLBuilderCBImpl=ov.XMLBuilderCBImpl,rd.builder=ow.builder,rd.create=ow.create,rd.fragment=ow.fragment,rd.convert=ow.convert;var oB={};if(Object.defineProperty(oB,"__esModule",{value:!0}),oB.createCB=function(e){return new rd.XMLBuilderCBImpl(e)},oB.fragmentCB=function(e){return new rd.XMLBuilderCBImpl(e,!0)},rd.createCB=oB.createCB,rd.fragmentCB=oB.fragmentCB,rp.builder=rd.builder,rp.create=rd.create,rp.fragment=rd.fragment,rp.convert=rd.convert,rp.createCB=rd.createCB,rp.fragmentCB=rd.fragmentCB,process.argv[1]===new URL("file:///utils/yml2xml.js").pathname)try{let e=re(n.readFileSync(process.argv[2],"utf8")),t=n.readFileSync(process.argv[3]);n.writeFileSync(`${process.argv[4]}`,oq(e,t,process.argv[5]),{encoding:"utf8",flag:"w"})}catch(e){console.log(e)}function oq(e,t,r="1.0"){let n=(0,rp.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=rt.parse.parse(t);return o.ele("Content",{type:"html"}).ele({$:(a.querySelector("style")?.toString()||"")+a.querySelectorAll("head > link[rel=stylesheet]").map(e=>e.toString()).join("")+a.querySelectorAll("head > script").map(e=>e.toString()).join("")+(a.querySelector("body")?.toString()||"")}),n.end({prettyPrint:!0})}let oj=i(process.argv[1]),oM=process.argv.slice(2),oR=oM.includes("help")||oM.includes("--help")||oM.includes("-h"),oU=oM.includes("build-only")||oM.includes("--build-only"),oG=process.cwd();((e="")=>{process.stdout.write(`${X(ea).gray(eK)} ${e}
|
|
36
|
+
`)};X(ea).gray(eQ);var e6=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},e9=function(e){return 0===e&&-1/0==1/e};function e4(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 e7(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=e4(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function te(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 tt(e,t){return e6(" ",t-e.length)+e}e7.prototype=Object.create(Error.prototype),e7.prototype.constructor=e7,e7.prototype.toString=function(e){return this.name+": "+e4(this,e)};var tr=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=te(e.buffer,n[i-u],o[i-u],e.position-(n[i]-n[i-u]),p),l=e6(" ",t.indent)+tt((e.line-u+1).toString(),c)+" | "+s.str+"\n"+l;for(s=te(e.buffer,n[i],o[i],e.position,p),l+=e6(" ",t.indent)+tt((e.line+1).toString(),c)+" | "+s.str+"\n"+e6("-",t.indent+c+3+s.pos)+"^\n",u=1;u<=t.linesAfter&&!(i+u>=o.length);u++)s=te(e.buffer,n[i+u],o[i+u],e.position-(n[i]-n[i+u]),p),l+=e6(" ",t.indent)+tt((e.line+u+1).toString(),c)+" | "+s.str+"\n";return l.replace(/\n$/,"")},tn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],to=["scalar","sequence","mapping"],ti=function(e,t){var r,n;if(Object.keys(t=t||{}).forEach(function(t){if(-1===tn.indexOf(t))throw new e7('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===to.indexOf(this.kind))throw new e7('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function ta(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 tu(e){return this.extend(e)}tu.prototype.extend=function(e){var t=[],r=[];if(e instanceof ti)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 e7("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof ti))throw new e7("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new e7("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 e7("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 ti))throw new e7("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(tu.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=ta(n,"implicit"),n.compiledExplicit=ta(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 ts=new tu({explicit:[new ti("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new ti("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new ti("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]}),tl=new ti("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"}),tc=new ti("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"}),tp=new ti("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&&!e9(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"]}}),td=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),tf=/^[-+]?[0-9]+e/,th=new ti("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!td.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||e9(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(e9(e))return"-0.0";return r=e.toString(10),tf.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),tm=ts.extend({implicit:[tl,tc,tp,th]}),tD=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tg=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]))?))?$"),t_=new ti("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==tD.exec(e)||null!==tg.exec(e))},construct:function(e){var t,r,n,o,i,a,u,s,l=0,c=null;if(null===(t=tD.exec(e))&&(t=tg.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()}}),ty=new ti("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),tv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",tb=new ti("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=tv.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|tv.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+=tv[o>>18&63],n+=tv[o>>12&63],n+=tv[o>>6&63],n+=tv[63&o]),o=(o<<8)+e[t];return 0==(r=i%3)?(n+=tv[o>>18&63],n+=tv[o>>12&63],n+=tv[o>>6&63],n+=tv[63&o]):2===r?(n+=tv[o>>10&63],n+=tv[o>>4&63],n+=tv[o<<2&63],n+=tv[64]):1===r&&(n+=tv[o>>2&63],n+=tv[o<<4&63],n+=tv[64],n+=tv[64]),n}}),tx=Object.prototype.hasOwnProperty,tE=Object.prototype.toString,tw=new ti("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]"!==tE.call(n))return!1;for(o in n)if(tx.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:[]}}),tC=Object.prototype.toString,tA=new ti("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]"!==tC.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}}),tN=Object.prototype.hasOwnProperty,tT=new ti("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){var t;if(null===e)return!0;for(t in e)if(tN.call(e,t)&&null!==e[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),tS=tm.extend({implicit:[t_,ty],explicit:[tb,tw,tA,tT]}),tF=Object.prototype.hasOwnProperty,tO=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tk=/[\x85\u2028\u2029]/,tP=/[,\[\]\{\}]/,tL=/^(?:!|!!|![a-z\-]+!)$/i,tI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tB(e){return Object.prototype.toString.call(e)}function tq(e){return 10===e||13===e}function tj(e){return 9===e||32===e}function tM(e){return 9===e||32===e||10===e||13===e}function tR(e){return 44===e||91===e||93===e||123===e||125===e}function tU(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 tG=Array(256),tz=Array(256),tV=0;tV<256;tV++)tG[tV]=+!!tU(tV),tz[tV]=tU(tV);function tH(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tS,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 tW(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=tr(r),new e7(t,r)}function t$(e,t){throw tW(e,t)}function tY(e,t){e.onWarning&&e.onWarning.call(null,tW(e,t))}var tX={YAML:function(e,t,r){var n,o,i;null!==e.version&&t$(e,"duplication of %YAML directive"),1!==r.length&&t$(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&t$(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&t$(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&tY(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;2!==r.length&&t$(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],tL.test(n)||t$(e,"ill-formed tag handle (first argument) of the TAG directive"),tF.call(e.tagMap,n)&&t$(e,'there is a previously declared suffix for "'+n+'" tag handle'),tI.test(o)||t$(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){t$(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function tJ(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||t$(e,"expected valid JSON character");else tO.test(u)&&t$(e,"the stream contains non-printable characters");e.result+=u}}function tK(e,t,r,n){var o,i,a,u,s;for("object"==typeof(s=r)&&null!==s||t$(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],tF.call(t,i)||(t[i]=r[i],n[i]=!0)}function tQ(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])&&t$(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===tB(o[l])&&(o[l]="[object Object]");if("object"==typeof o&&"[object Object]"===tB(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)tK(e,t,i[l],r);else tK(e,t,i,r);else!e.json&&!tF.call(r,o)&&tF.call(t,o)&&(e.line=a||e.line,e.lineStart=u||e.lineStart,e.position=s||e.position,t$(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 tZ(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):t$(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function t0(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);0!==o;){for(;tj(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(tq(o))for(tZ(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&&tY(e,"deficient indentation"),n}function t1(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))||tM(t)))||!1}function t2(e,t){1===t?e.result+=" ":t>1&&(e.result+=e6("\n",t-1))}function t3(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,t$(e,"tab characters must not be used in indentation")),45===n&&tM(e.input.charCodeAt(e.position+1)));){if(u=!0,e.position++,t0(e,!0,-1)&&e.lineIndent<=t){a.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,t8(e,t,3,!1,!0),a.push(e.result),t0(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)t$(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 t8(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&&t0(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&&t$(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)):t$(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!tM(o);)33===o&&(a?t$(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),tL.test(r)||t$(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),tP.test(n)&&t$(e,"tag suffix cannot contain flow indicator characters")}n&&!tI.test(n)&&t$(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){t$(e,"tag name is malformed: "+n)}return i?e.tag=n:tF.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:t$(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&&t$(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!tM(r)&&!tR(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&t$(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)t0(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&&(t3(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,_=!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,t$(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,(63===l||58===l)&&tM(n))63===l?(g&&(tQ(e,d,f,h,m,null,a,u,s),h=m=D=null),_=!0,g=!0,o=!0):g?(g=!1,o=!0):t$(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,!t8(e,r,2,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);tj(l);)l=e.input.charCodeAt(++e.position);if(58===l)tM(l=e.input.charCodeAt(++e.position))||t$(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(tQ(e,d,f,h,m,null,a,u,s),h=m=D=null),_=!0,g=!1,o=!1,h=e.tag,m=e.result;else{if(!_)return e.tag=c,e.anchor=p,!0;t$(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!_)return e.tag=c,e.anchor=p,!0;t$(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),t8(e,t,4,!0,o)&&(g?m=e.result:D=e.result),g||(tQ(e,d,f,h,m,D,a,u,s),h=m=D=null),t0(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)t$(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&tQ(e,d,f,h,m,null,a,u,s),_&&(e.tag=c,e.anchor=p,e.kind="mapping",e.result=d),_}(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(t0(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&&t$(e,"expected the node content, but found ','"):t$(e,"missed comma between flow collection entries"),p=c=d=null,u=s=!1,63===f&&tM(e.input.charCodeAt(e.position+1))&&(u=s=!0,e.position++,t0(e,!0,t)),r=e.line,n=e.lineStart,o=e.position,t8(e,t,1,!1,!0),p=e.tag,c=e.result,t0(e,!0,t),f=e.input.charCodeAt(e.position),(s||e.line===r)&&58===f&&(u=!0,f=e.input.charCodeAt(++e.position),t0(e,!0,t),t8(e,t,1,!1,!0),d=e.result),l?tQ(e,i,g,p,c,d,r,n,o):u?i.push(tQ(e,null,g,p,c,d,r,n,o)):i.push(c),t0(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}t$(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:t$(e,"repeat of a chomping mode identifier");else if((i=48<=(r=a)&&r<=57?r-48:-1)>=0)0===i?t$(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?t$(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0);else break;if(tj(a)){do a=e.input.charCodeAt(++e.position);while(tj(a))if(35===a)do a=e.input.charCodeAt(++e.position);while(!tq(a)&&0!==a)}for(;0!==a;){for(tZ(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),tq(a)){p++;continue}if(e.lineIndent<c){3===u?e.result+=e6("\n",s?1+p:p):1===u&&s&&(e.result+="\n");break}for(o?tj(a)?(d=!0,e.result+=e6("\n",s?1+p:p)):d?(d=!1,e.result+=e6("\n",p+1)):0===p?s&&(e.result+=" "):e.result+=e6("\n",p):e.result+=e6("\n",s?1+p:p),s=!0,l=!0,p=0,n=e.position;!tq(a)&&0!==a;)a=e.input.charCodeAt(++e.position);tJ(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(tJ(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,o=e.position}else tq(r)?(tJ(e,n,o,!0),t2(e,t0(e,!1,t)),n=o=e.position):e.position===e.lineStart&&t1(e)?t$(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);t$(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 tJ(e,r,e.position,!0),e.position++,!0;else if(92===u){if(tJ(e,r,e.position,!0),tq(u=e.input.charCodeAt(++e.position)))t0(e,!1,t);else if(u<256&&tG[u])e.result+=tz[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:t$(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 t$(e,"unknown escape sequence");r=n=e.position}else tq(u)?(tJ(e,r,n,!0),t2(e,t0(e,!1,t)),r=n=e.position):e.position===e.lineStart&&t1(e)?t$(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);t$(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&&!tM(n)&&!tR(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&t$(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),tF.call(e.anchorMap,r)||t$(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],t0(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(tM(c=e.input.charCodeAt(e.position))||tR(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)&&(tM(n=e.input.charCodeAt(e.position+1))||r&&tR(n)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(tM(n=e.input.charCodeAt(e.position+1))||r&&tR(n))break}else if(35===c){if(tM(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&t1(e)||r&&tR(c))break;else if(tq(c)){if(u=e.line,s=e.lineStart,l=e.lineIndent,t0(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&&(tJ(e,o,i,!1),t2(e,e.line-u),o=i=e.position,a=!1),tj(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return tJ(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)&&t$(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(D=u&&t3(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&&t$(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(tF.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||t$(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&t$(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)):t$(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 t5(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 tH(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,t$(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))&&(t0(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&&!tM(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&t$(e,"directive name must not be less than one character in length");0!==o;){for(;tj(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!tq(o))break}if(tq(o))break;for(t=e.position;0!==o&&!tM(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&tZ(e),tF.call(tX,r)?tX[r](e,r,n):tY(e,'unknown document directive "'+r+'"')}if(t0(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,t0(e,!0,-1)):a&&t$(e,"directives end mark is expected"),t8(e,e.lineIndent-1,4,!1,!0),t0(e,!0,-1),e.checkLineBreaks&&tk.test(e.input.slice(i,e.position))&&tY(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&t1(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,t0(e,!0,-1));return}e.position<e.length-1&&t$(e,"end of the stream or a document separator is expected")}(r);return r.documents}var t6=Object.prototype.toString,t9=Object.prototype.hasOwnProperty,t4={};t4[0]="\\0",t4[7]="\\a",t4[8]="\\b",t4[9]="\\t",t4[10]="\\n",t4[11]="\\v",t4[12]="\\f",t4[13]="\\r",t4[27]="\\e",t4[34]='\\"',t4[92]="\\\\",t4[133]="\\N",t4[160]="\\_",t4[8232]="\\L",t4[8233]="\\P";function t7(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.")}}t7("safeLoad","load"),t7("safeLoadAll","loadAll"),t7("safeDump","dump");var re=function(e,t){var r=t5(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new e7("expected a single document in the stream, but found more")}},rt={},rr=rt&&rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.NodeType=rt.TextNode=rt.Node=rt.valid=rt.CommentNode=rt.HTMLElement=rt.parse=void 0;let rn=rr(ee("9KN8L"));rt.CommentNode=rn.default;let ro=rr(ee("2ZZFK"));rt.HTMLElement=ro.default;let ri=rr(ee("9rIF8"));rt.Node=ri.default;let ra=rr(ee("h19Jg"));rt.TextNode=ra.default;let ru=rr(ee("gxROJ"));rt.NodeType=ru.default;let rs=rr(ee("oyh6k")),rl=rr(ee("biHCd"));function rc(e,t={}){return(0,rs.default)(e,t)}rt.valid=rl.default,rt.default=rc,rt.parse=rc,rc.parse=rs.default,rc.HTMLElement=ro.default,rc.CommentNode=rn.default,rc.valid=rl.default,rc.Node=ri.default,rc.TextNode=ra.default,rc.NodeType=ru.default;var rp={};Object.defineProperty(rp,"__esModule",{value:!0});var rd={};Object.defineProperty(rd,"__esModule",{value:!0});var rf={},rh=rf&&rf.__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},rm=rf&&rf.__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(rf,"__esModule",{value:!0});var rD={};Object.defineProperty(rD,"__esModule",{value:!0}),rD.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},rD.XMLBuilderOptionKeys=new Set(Object.keys(rD.DefaultBuilderOptions)),rD.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 rg=ee("jDPAV"),r_={};Object.defineProperty(r_,"__esModule",{value:!0});var ry={},rv=ry&&ry.__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)});Object.defineProperty(ry,"__esModule",{value:!0});var rg=ee("jDPAV"),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)}),rE=rb&&rb.__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(rb,"__esModule",{value:!0});var rg=ee("jDPAV"),rw=ee("bql4T"),rC={},rA=rC&&rC.__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.")},rN=rC&&rC.__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},rT=rC&&rC.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(rN(arguments[t]));return e};Object.defineProperty(rC,"__esModule",{value:!0});var rw=ee("bql4T"),rS={};Object.defineProperty(rS,"__esModule",{value:!0}),rS.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 rF={};Object.defineProperty(rF,"__esModule",{value:!0}),rF.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 rO=ee("b9DcM"),rk=ee("eOMTm"),rP={};Object.defineProperty(rP,"__esModule",{value:!0}),rP.nonEntityAmpersandRegex=/&(?![A-Za-z]+;|#\d+;)/g,rC.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=rA(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 rF.NamespacePrefixMap;n.set("xml",rO.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 rw.NodeType.Element:this._serializeElementNS(e,t,r,n,o);break;case rw.NodeType.Document:this._serializeDocumentNS(e,t,r,n,o);break;case rw.NodeType.Comment:this._serializeComment(e,o);break;case rw.NodeType.Text:this._serializeText(e,o);break;case rw.NodeType.DocumentFragment:this._serializeDocumentFragmentNS(e,t,r,n,o);break;case rw.NodeType.DocumentType:this._serializeDocumentType(e,o);break;case rw.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,o);break;case rw.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 rw.NodeType.Element:this._serializeElement(e,t);break;case rw.NodeType.Document:this._serializeDocument(e,t);break;case rw.NodeType.Comment:this._serializeComment(e,t);break;case rw.NodeType.Text:this._serializeText(e,t);break;case rw.NodeType.DocumentFragment:this._serializeDocumentFragment(e,t);break;case rw.NodeType.DocumentType:this._serializeDocumentType(e,t);break;case rw.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,t);break;case rw.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(":")||!rk.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===rO.namespace.XML?"xml:"+t.localName:t.localName,this.beginElement(l),this.openTagBegin(l);else{var g=t.prefix,_=null;if((null!==g||D!==h)&&(_=d.get(g,D)),"xmlns"===g){if(i)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");_=g}null!==_?(l=_+":"+t.localName,null!==h&&h!==rO.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,rT(this._serializeAttributesNS(t,d,o,f,p,i))),this.attributes(s);var y=D===rO.namespace.HTML;if(y&&0===t.childNodes.length&&e._VoidElementNames.has(t.localName)?(this.openTagEnd(l,!0,!0),this.endElement(l),c=!0):y||0!==t.childNodes.length?this.openTagEnd(l,!1,!1):(this.openTagEnd(l,!0,!1),this.endElement(l),c=!0),!c){if(y&&"template"===t.localName);else try{for(var v=rA(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(":")||!rk.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=rA(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=rA(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=rA(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&&(!rk.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&&!rk.xml_isLegalChar(e.data))throw Error("Text data contains invalid characters (well-formed required).");var r=e.data.replace(rP.nonEntityAmpersandRegex,"&").replace(/</g,"<").replace(/>/g,">");this.text(r)},e.prototype._serializeDocumentFragmentNS=function(e,t,r,n,o){var i,a;try{for(var u=rA(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=rA(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&&!rk.xml_isPubidChar(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!rk.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&&(!rk.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 rS.LocalNameSet:void 0;try{for(var c=rA(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===rO.namespace.XMLNS){if(d.value===rO.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===rO.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(":")||!rk.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=rA(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(":")||!rk.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=rA(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rO.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rO.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&&!rk.xml_isLegalChar(e))throw Error("Invalid characters in attribute value.");return null===e?"":e.replace(rP.nonEntityAmpersandRegex,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},e._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),e}(),rb.ObjectWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=rg.applyDefaults(r,{format:"object",wellFormed:!1,group:!1,verbose:!1}),n}return rx(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 _=this._getAttrKey(),y=this._getNodeKey(rw.NodeType.Text),v=this._getNodeKey(rw.NodeType.Comment),b=this._getNodeKey(rw.NodeType.ProcessingInstruction),x=this._getNodeKey(rw.NodeType.CData);if(1===p&&1===e.length&&rg.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[_+C[0]]=w[C[0]]:E[_]=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={})[y]=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&&rg.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[y]=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[_]=w;else for(var I in w)E[_+I]=w[I];break;case"#":O=this._processSpecItem(D["#"],E,t.group,y,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&&rg.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&&rg.isArray(e)&&o+e.length>2)try{for(var s=rE(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&&rg.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)?rg.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)?rg.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)?rg.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)?rg.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 rw.NodeType.Comment:return this._builderOptions.convert.comment;case rw.NodeType.Text:return this._builderOptions.convert.text;case rw.NodeType.ProcessingInstruction:return this._builderOptions.convert.ins;case rw.NodeType.CData:return this._builderOptions.convert.cdata;default:throw Error("Invalid node type.")}},t}(rC.BaseWriter),ry.MapWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=rg.applyDefaults(r,{format:"map",wellFormed:!1,group:!1,verbose:!1}),n}return rv(t,e),t.prototype.serialize=function(e){var t=rg.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1,verbose:!1}),r=new rb.ObjectWriter(this._builderOptions,t).serialize(e);return this._convertObject(r)},t.prototype._convertObject=function(e){if(rg.isArray(e)){for(var t=0;t<e.length;t++)e[t]=this._convertObject(e[t]);return e}if(!rg.isObject(e))return e;var r=new Map;for(var n in e)r.set(n,this._convertObject(e[n]));return r},t}(rC.BaseWriter),r_.MapWriter=ry.MapWriter;var rL={},rI=rL&&rL.__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)});Object.defineProperty(rL,"__esModule",{value:!0});var rg=ee("jDPAV"),rw=ee("bql4T"),rB=ee("cnpfV");rL.XMLWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._indentation={},n._lengthToLastNewline=0,n._writerOptions=rg.applyDefaults(r,{wellFormed:!1,headless:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,width:0,allowEmptyTags:!1,indentTextOnlyNodes:!1,spaceBeforeSlash:!1}),n}return rI(t,e),t.prototype.serialize=function(e){return this._refs={suppressPretty:!1,emptyNode:!1,markup:""},e.nodeType!==rw.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(rB.Guard.isExclusiveTextNode(i))u++;else if(rB.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}(rC.BaseWriter),r_.XMLWriter=rL.XMLWriter,r_.ObjectWriter=rb.ObjectWriter;var rq={},rj=rq&&rq.__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)}),rM=rq&&rq.__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(rq,"__esModule",{value:!0});var rg=ee("jDPAV");rq.JSONWriter=function(e){function t(t,r){var n=e.call(this,t)||this;return n._writerOptions=rg.applyDefaults(r,{wellFormed:!1,prettyPrint:!1,indent:" ",newline:"\n",offset:0,group:!1,verbose:!1}),n}return rj(t,e),t.prototype.serialize=function(e){var t=rg.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),r=new rb.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(rg.isArray(e)){a+="[";var s=e.length,l=0;try{for(var c=rM(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(rg.isObject(e)){a+="{";var f=rg.objectLength(e),h=0;rg.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),rg.isArray(e)?rg.forEachArray(e,function(e){return t+=r._descendantCount(e,t)},this):rg.isObject(e)?rg.forEachObject(e,function(e,n){return t+=r._descendantCount(n,t)},this):t++,t},t}(rC.BaseWriter),r_.JSONWriter=rq.JSONWriter;var rR={},rU=rR&&rR.__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)}),rG=rR&&rR.__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(rR,"__esModule",{value:!0});var rg=ee("jDPAV");rR.YAMLWriter=function(e){function t(t,r){var n=e.call(this,t)||this;if(n._writerOptions=rg.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 rU(t,e),t.prototype.serialize=function(e){var t=rg.applyDefaults(this._writerOptions,{format:"object",wellFormed:!1}),r=new rb.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(rg.isArray(e))try{for(var s=rG(e),l=s.next();!l.done;l=s.next()){var c=l.value;u+=this._beginLine(t,r,!0),rg.isObject(c)?rg.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 rg.forEachObject(e,function(e,o){n?(u+=a._key(e),n=!1):u+=a._beginLine(t,r)+a._key(e),rg.isObject(o)?rg.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}(rC.BaseWriter),r_.YAMLWriter=rR.YAMLWriter;var rw=ee("bql4T"),rB=ee("cnpfV"),rk=ee("eOMTm"),rz={};Object.defineProperty(rz,"__esModule",{value:!0});var rV={};Object.defineProperty(rV,"__esModule",{value:!0});var rH={};Object.defineProperty(rH,"__esModule",{value:!0});var rg=ee("jDPAV");rH.AbortController=ee("84pNM").AbortControllerImpl,rH.AbortSignal=ee("2BzzY").AbortSignalImpl;var rW=ee("hUGgy");rH.AbstractRange=rW.AbstractRangeImpl,rH.Attr=ee("lrfke").AttrImpl,rH.CDATASection=ee("fpzS2").CDATASectionImpl;var r$=ee("48JgK");rH.CharacterData=r$.CharacterDataImpl;var rY={};Object.defineProperty(rY,"__esModule",{value:!0});var rB=ee("cnpfV"),rk=ee("eOMTm");rY.ChildNodeImpl=function(){function e(){}return e.prototype.before=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rB.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=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);o=null===o?n._firstChild:o._nextSibling,rk.mutation_preInsert(u,n,o)}},e.prototype.after=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rB.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=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);rk.mutation_preInsert(u,n,o)}},e.prototype.replaceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rB.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=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);r._parent===n?rk.mutation_replace(r,u,n):rk.mutation_preInsert(u,n,o)}},e.prototype.remove=function(){var e=rB.Cast.asNode(this),t=e._parent;t&&rk.mutation_remove(e,t)},e}(),rH.Comment=ee("7vMWy").CommentImpl,rH.CustomEvent=ee("aBgn9").CustomEventImpl;var rX=ee("ESCTi");rH.DocumentFragment=rX.DocumentFragmentImpl;var rJ=ee("arxVV");rH.Document=rJ.DocumentImpl;var rK={};Object.defineProperty(rK,"__esModule",{value:!0}),rK.DocumentOrShadowRootImpl=function(){};var rQ=ee("FrTv7");rH.DocumentType=rQ.DocumentTypeImpl;var rZ=ee("lrpO3");rH.dom=rZ.dom,rH.DOMImplementation=ee("85Z9s").DOMImplementationImpl,rH.DOMTokenList=ee("8Piwh").DOMTokenListImpl;var r0=ee("iW3sp");rH.Element=r0.ElementImpl,rH.Event=ee("df3k2").EventImpl,rH.EventTarget=ee("ezaCF").EventTargetImpl,rH.HTMLCollection=ee("egFCd").HTMLCollectionImpl;var r1={},r2=r1&&r1.__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(r1,"__esModule",{value:!0});var rZ=ee("lrpO3"),rB=ee("cnpfV"),rO=ee("b9DcM");r1.MutationObserverImpl=function(){function e(e){this._nodeList=[],this._recordQueue=[],this._callback=e;var t=rZ.dom.window;rO.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,r2(u._nodeList)),a=n.next();!a.done;a=n.next()){var s=a.value;rO.list.remove(s._registeredObserverList,function(t){return rB.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=r2(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=r2(this._nodeList),o=n.next();!o.done;o=n.next()){var i=o.value;rO.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}(),rH.MutationObserver=r1.MutationObserverImpl,rH.MutationRecord=ee("1qAZS").MutationRecordImpl,rH.NamedNodeMap=ee("kpMEY").NamedNodeMapImpl,rH.NodeFilter=ee("90TyW").NodeFilterImpl,rH.Node=ee("kuLmk").NodeImpl,rH.NodeIterator=ee("9Y4Fd").NodeIteratorImpl,rH.NodeList=ee("is6DP").NodeListImpl,rH.NodeListStatic=ee("fgilR").NodeListStaticImpl;var r3={};Object.defineProperty(r3,"__esModule",{value:!0});var rB=ee("cnpfV");r3.NonDocumentTypeChildNodeImpl=function(){function e(){}return Object.defineProperty(e.prototype,"previousElementSibling",{get:function(){for(var e=rB.Cast.asNode(this)._previousSibling;e;)if(rB.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=rB.Cast.asNode(this)._nextSibling;e;)if(rB.Guard.isElementNode(e))return e;else e=e._nextSibling;return null},enumerable:!0,configurable:!0}),e}();var r8={};Object.defineProperty(r8,"__esModule",{value:!0});var rB=ee("cnpfV"),rk=ee("eOMTm");r8.NonElementParentNodeImpl=function(){function e(){}return e.prototype.getElementById=function(e){for(var t=rk.tree_getFirstDescendantNode(rB.Cast.asNode(this),!1,!1,function(e){return rB.Guard.isElementNode(e)});null!==t;){if(t._uniqueIdentifier===e)return t;t=rk.tree_getNextDescendantNode(rB.Cast.asNode(this),t,!1,!1,function(e){return rB.Guard.isElementNode(e)})}return null},e}();var r5={},r6=r5&&r5.__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(r5,"__esModule",{value:!0});var rB=ee("cnpfV"),rk=ee("eOMTm");r5.ParentNodeImpl=function(){function e(){}return Object.defineProperty(e.prototype,"children",{get:function(){return rk.create_htmlCollection(rB.Cast.asNode(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){for(var e=rB.Cast.asNode(this)._firstChild;e;)if(rB.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=rB.Cast.asNode(this)._lastChild;e;)if(rB.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=r6(rB.Cast.asNode(this)._children),o=n.next();!o.done;o=n.next()){var i=o.value;rB.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=rB.Cast.asNode(this),n=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);rk.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=rB.Cast.asNode(this),n=rk.parentNode_convertNodesIntoANode(e,r._nodeDocument);rk.mutation_append(n,r)},e.prototype.querySelector=function(e){var t=rB.Cast.asNode(this),r=rk.selectors_scopeMatchASelectorsString(e,t);return 0===r.length?null:r[0]},e.prototype.querySelectorAll=function(e){var t=rB.Cast.asNode(this),r=rk.selectors_scopeMatchASelectorsString(e,t);return rk.create_nodeListStatic(t,r)},e}(),rH.ProcessingInstruction=ee("b9Cnk").ProcessingInstructionImpl,rH.Range=ee("15kuI").RangeImpl;var r9=ee("chTgy");rH.ShadowRoot=r9.ShadowRootImpl;var r4={};Object.defineProperty(r4,"__esModule",{value:!0});var rk=ee("eOMTm");r4.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 rk.shadowTree_findASlot(this,!0)},enumerable:!0,configurable:!0}),e}();var r7={},ne=r7&&r7.__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)});Object.defineProperty(r7,"__esModule",{value:!0});var rW=ee("hUGgy"),nt=ee("bnDGi"),rB=ee("cnpfV");r7.StaticRangeImpl=function(e){function t(t){var r=e.call(this)||this;if(rB.Guard.isDocumentTypeNode(t.startContainer)||rB.Guard.isAttrNode(t.startContainer)||rB.Guard.isDocumentTypeNode(t.endContainer)||rB.Guard.isAttrNode(t.endContainer))throw new nt.InvalidNodeTypeError;return r._start=[t.startContainer,t.startOffset],r._end=[t.endContainer,t.endOffset],r}return ne(t,e),t}(rW.AbstractRangeImpl),rH.StaticRange=r7.StaticRangeImpl;var nr=ee("6O4nx");rH.Text=nr.TextImpl,rH.Traverser=ee("bodkg").TraverserImpl,rH.TreeWalker=ee("8i5wm").TreeWalkerImpl,rH.Window=ee("aUIwt").WindowImpl,rH.XMLDocument=ee("lHHKe").XMLDocumentImpl,rg.applyMixin(r0.ElementImpl,rY.ChildNodeImpl),rg.applyMixin(r$.CharacterDataImpl,rY.ChildNodeImpl),rg.applyMixin(rQ.DocumentTypeImpl,rY.ChildNodeImpl),rg.applyMixin(rJ.DocumentImpl,rK.DocumentOrShadowRootImpl),rg.applyMixin(r9.ShadowRootImpl,rK.DocumentOrShadowRootImpl),rg.applyMixin(r0.ElementImpl,r3.NonDocumentTypeChildNodeImpl),rg.applyMixin(r$.CharacterDataImpl,r3.NonDocumentTypeChildNodeImpl),rg.applyMixin(rJ.DocumentImpl,r8.NonElementParentNodeImpl),rg.applyMixin(rX.DocumentFragmentImpl,r8.NonElementParentNodeImpl),rg.applyMixin(rJ.DocumentImpl,r5.ParentNodeImpl),rg.applyMixin(rX.DocumentFragmentImpl,r5.ParentNodeImpl),rg.applyMixin(r0.ElementImpl,r5.ParentNodeImpl),rg.applyMixin(nr.TextImpl,r4.SlotableImpl),rg.applyMixin(r0.ElementImpl,r4.SlotableImpl),rH.dom.setFeatures(!0),rV.DOMImplementation=rH.DOMImplementation;var nn={};Object.defineProperty(nn,"__esModule",{value:!0});var no={};Object.defineProperty(no,"__esModule",{value:!0});var rk=ee("eOMTm"),ni={},na=ni&&ni.__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},nu=ni&&ni.__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(ni,"__esModule",{value:!0});var ns={},nl=ns&&ns.__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(ns,"__esModule",{value:!0});var nc={};Object.defineProperty(nc,"__esModule",{value:!0}),(_=nc.TokenType||(nc.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",ns.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:nc.TokenType.EOF};var t=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&t.type===nc.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:nc.TokenType.Declaration,version:e,encoding:t,standalone:r};var n=nl(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:nc.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:nc.TokenType.PI,target:e,data:""};var t=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:nc.TokenType.PI,target:e,data:t}},e.prototype.text=function(){var e=this.takeUntil("<");return{type:nc.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:nc.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:nc.TokenType.CDATA,data:e}},e.prototype.openTag=function(){this.skipSpace();var e=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:nc.TokenType.Element,name:e,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:nc.TokenType.Element,name:e,attributes:[],selfClosing:!0};for(var t=[];!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:nc.TokenType.Element,name:e,attributes:t,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:nc.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:nc.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===nc.TokenType.EOF?{done:!0,value:null}:{done:!1,value:e}}).bind(this)}},e}();var rO=ee("b9DcM"),rk=ee("eOMTm");ni.XMLParserImpl=function(){function e(){}return e.prototype.parse=function(e){for(var t,r,n,o,i=new ns.XMLStringLexer(e,{skipWhitespaceOnlyText:!0}),a=rk.create_document(),u=a,s=i.nextToken();s.type!==nc.TokenType.EOF;){switch(s.type){case nc.TokenType.Declaration:var l=s;if("1.0"!==l.version)throw Error("Invalid xml version: "+l.version);break;case nc.TokenType.DocType:var c=s;if(!rk.xml_isPubidChar(c.pubId))throw Error("DocType public identifier does not match PubidChar construct.");if(!rk.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 nc.TokenType.CDATA:var p=s;if(!rk.xml_isLegalChar(p.data)||-1!==p.data.indexOf("]]>"))throw Error("CDATA contains invalid characters.");u.appendChild(a.createCDATASection(p.data));break;case nc.TokenType.Comment:var d=s;if(!rk.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 nc.TokenType.PI:var f=s;if(-1!==f.target.indexOf(":")||/^xml$/i.test(f.target))throw Error("Processing instruction target contains invalid characters.");if(!rk.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 nc.TokenType.Text:var h=s;if(!rk.xml_isLegalChar(h.data))throw Error("Text data contains invalid characters.");u.appendChild(a.createTextNode(this._decodeText(h.data)));break;case nc.TokenType.Element:var m=s,D=na(rk.namespace_extractQName(m.name),2),g=D[0],_=D[1];if(-1!==_.indexOf(":")||!rk.xml_isName(_))throw Error("Node local name contains invalid characters.");if("xmlns"===g)throw Error("An element cannot have the 'xmlns' prefix.");var y=u.lookupNamespaceURI(g),v={};try{for(var b=(t=void 0,nu(m.attributes)),x=b.next();!x.done;x=b.next()){var E=na(x.value,2),w=E[0],C=E[1];if("xmlns"===w)y=C;else{var A=na(rk.namespace_extractQName(w),2),N=A[0],T=A[1];"xmlns"===N&&(T===g&&(y=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!==y?a.createElementNS(y,m.name):a.createElement(m.name);u.appendChild(S);var F=new rS.LocalNameSet;try{for(var O=(n=void 0,nu(m.attributes)),k=O.next();!k.done;k=O.next()){var P=na(k.value,2),w=P[0],C=P[1],L=na(rk.namespace_extractQName(w),2),N=L[0],T=L[1],I=null;if("xmlns"===N||null===N&&"xmlns"===T?I=rO.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===rO.namespace.XMLNS&&C===rO.namespace.XMLNS)throw Error("XMLNS namespace is reserved.");if(-1!==T.indexOf(":")||!rk.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 nc.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(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},e.prototype._decodeAttributeValue=function(e){return null==e?e:e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},e}(),no.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 ni.XMLParserImpl().parse(e);return r._contentType=t,r}catch(e){var n="http://www.mozilla.org/newlayout/xml/parsererror.xml",r=rk.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}(),nn.DOMParser=no.DOMParserImpl,rV.DOMParser=nn.DOMParser;var np={};Object.defineProperty(np,"__esModule",{value:!0});var nd={},nf=nd&&nd.__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(nd,"__esModule",{value:!0});var rw=ee("bql4T"),nt=ee("bnDGi"),rO=ee("b9DcM"),rk=ee("eOMTm");nd.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 rF.NamespacePrefixMap;r.set("xml",rO.namespace.XML);try{return this._serializeNodeNS(e,null,r,{value:1},t)}catch(e){throw new nt.InvalidStateError}}try{return this._serializeNode(e,t)}catch(e){throw new nt.InvalidStateError}},e.prototype._serializeNodeNS=function(e,t,r,n,o){switch(e.nodeType){case rw.NodeType.Element:return this._serializeElementNS(e,t,r,n,o);case rw.NodeType.Document:return this._serializeDocumentNS(e,t,r,n,o);case rw.NodeType.Comment:return this._serializeComment(e,o);case rw.NodeType.Text:return this._serializeText(e,o);case rw.NodeType.DocumentFragment:return this._serializeDocumentFragmentNS(e,t,r,n,o);case rw.NodeType.DocumentType:return this._serializeDocumentType(e,o);case rw.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,o);case rw.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 rw.NodeType.Element:return this._serializeElement(e,t);case rw.NodeType.Document:return this._serializeDocument(e,t);case rw.NodeType.Comment:return this._serializeComment(e,t);case rw.NodeType.Text:return this._serializeText(e,t);case rw.NodeType.DocumentFragment:return this._serializeDocumentFragment(e,t);case rw.NodeType.DocumentType:return this._serializeDocumentType(e,t);case rw.NodeType.ProcessingInstruction:return this._serializeProcessingInstruction(e,t);case rw.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(":")||!rk.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===rO.namespace.XML?"xml:"+t.localName:t.localName;else{var g=t.prefix,_=null;if((null!==g||D!==h)&&(_=d.get(g,D)),"xmlns"===g){if(i)throw Error("An element cannot have the 'xmlns' prefix (well-formed required).");_=g}null!==_?(l=_+":"+t.localName,null!==h&&h!==rO.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 y=D===rO.namespace.HTML;if(y&&0===t.childNodes.length&&e._VoidElementNames.has(t.localName)?(s+=" /",c=!0):y||0!==t.childNodes.length||(s+="/",c=!0),s+=">",c)return s;if(y&&"template"===t.localName);else try{for(var v=nf(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=nf(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&&(!rk.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&&!rk.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+="&":"<"===o?r+="<":">"===o?r+=">":r+=o}return r},e.prototype._serializeDocumentFragmentNS=function(e,t,r,n,o){var i,a,u="";try{for(var s=nf(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&&!rk.xml_isPubidChar(e.publicId))throw Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!rk.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&&(!rk.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 rS.LocalNameSet:void 0;try{for(var c=nf(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===rO.namespace.XMLNS){if(d.value===rO.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===rO.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(":")||!rk.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=nf(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rO.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rO.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&&!rk.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+=""":"&"===o?r+="&":"<"===o?r+="<":">"===o?r+=">":r+=o}return r},e.prototype._serializeElement=function(e,t){if(t&&(-1!==e.localName.indexOf(":")||!rk.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=nf(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=nf(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=nf(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=nf(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(":")||!rk.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}(),np.XMLSerializer=nd.XMLSerializerImpl,rV.XMLSerializer=np.XMLSerializer;var rg=ee("jDPAV");rH.dom.setFeatures(!1),rz.createDocument=function(){var e=new rV.DOMImplementation().createDocument(null,"root",null);return e.documentElement&&e.removeChild(e.documentElement),e},rz.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+=rg.isString(t)?t:t(e.charAt(n),n,e)}else r+=rg.isString(t)?t:t(e.charAt(n),n,e)}return r};var rO=ee("b9DcM"),nh={};Object.defineProperty(nh,"__esModule",{value:!0});var nm={},nD=nm&&nm.__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)}),ng=nm&&nm.__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},n_=nm&&nm.__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(nm,"__esModule",{value:!0});var rw=ee("bql4T"),rO=ee("b9DcM"),rk=ee("eOMTm"),ny={};Object.defineProperty(ny,"__esModule",{value:!0}),ny.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 rz.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}(),nm.XMLReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nD(t,e),t.prototype._parse=function(e,t){for(var r,n,o,i,a=new ns.XMLStringLexer(t,{skipWhitespaceOnlyText:this._builderOptions.skipWhitespaceOnlyText}),u=e,s=e,l=a.nextToken();l.type!==nc.TokenType.EOF;){switch(l.type){case nc.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 nc.TokenType.DocType:var f=l;s=this.docType(s,this.sanitize(f.name),this.sanitize(f.pubId),this.sanitize(f.sysId))||s;break;case nc.TokenType.CDATA:var h=l;s=this.cdata(s,this.sanitize(h.data))||s;break;case nc.TokenType.Comment:var m=l;s=this.comment(s,this.sanitize(m.data))||s;break;case nc.TokenType.PI:var D=l;s=this.instruction(s,this.sanitize(D.target),this.sanitize(D.data))||s;break;case nc.TokenType.Text:if(s.node.nodeType===rw.NodeType.Document)break;var g=l;s=this.text(s,this._decodeText(this.sanitize(g.data)))||s;break;case nc.TokenType.Element:var _=l,y=this.sanitize(_.name),v=ng(rk.namespace_extractQName(y),1)[0],b=s.node.lookupNamespaceURI(v),x={};try{for(var E=(r=void 0,n_(_.attributes)),w=E.next();!w.done;w=E.next()){var C=ng(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=ng(rk.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,y):this.element(s,void 0,y);if(void 0===O)break;s.node===e.node&&(u=O);try{for(var k=(o=void 0,n_(_.attributes)),P=k.next();!P.done;P=k.next()){var L=ng(P.value,2),A=L[0],N=L[1];A=this.sanitize(A),N=this.sanitize(N);var I=ng(rk.namespace_extractQName(A),2),S=I[0],F=I[1],B=null;"xmlns"===S||null===S&&"xmlns"===F?B=rO.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}}_.selfClosing||(s=O);break;case nc.TokenType.ClosingTag:s.node.parentNode&&(s=s.up())}l=a.nextToken()}return u},t}(ny.BaseReader),nh.XMLReader=nm.XMLReader;var nv={},nb=nv&&nv.__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)});Object.defineProperty(nv,"__esModule",{value:!0});var rg=ee("jDPAV");nv.ObjectReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nb(t,e),t.prototype._parse=function(e,t){var r=this,n=this._builderOptions,o=null;return rg.isFunction(t)?o=this.parse(e,t.apply(this)):rg.isArray(t)||rg.isSet(t)?rg.forEachArray(t,function(t){return o=r.parse(e,t)},this):rg.isMap(t)||rg.isObject(t)?rg.forEachObject(t,function(t,i){if(rg.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((rg.isArray(i)||rg.isSet(i))&&rg.isEmpty(i));else if((rg.isMap(i)||rg.isObject(i))&&rg.isEmpty(i))o=r.element(e,void 0,r.sanitize(t))||o;else if(n.keepNullNodes||null!=i)if(rg.isArray(i)||rg.isSet(i))rg.forEachArray(i,function(n){var i={};i[t]=n,o=r.parse(e,i)},r);else if(rg.isMap(i)||rg.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(rg.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 rg.isArray(i)||rg.isSet(i)?rg.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):rg.forEachObject(i,function(t,n){return o=r.instruction(e,r.sanitize(t),r.sanitize(n))||o},r);else rg.isArray(i)||rg.isSet(i)?rg.forEachArray(i,function(t){return o=r.comment(e,r.sanitize(t))||o},r):o=r.comment(e,r.sanitize(i))||o;else rg.isArray(i)||rg.isSet(i)?rg.forEachArray(i,function(t){return o=r.cdata(e,r.sanitize(t))||o},r):o=r.cdata(e,r.sanitize(i))||o;else o=rg.isMap(i)||rg.isObject(i)?r.parse(e,i):r.text(e,r._decodeText(r.sanitize(i)))||o;else if(t===n.convert.att)if(rg.isArray(i)||rg.isSet(i))throw Error("Invalid attribute: "+i.toString()+". "+e._debugInfo());else rg.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}(ny.BaseReader),nh.ObjectReader=nv.ObjectReader;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}),nx.JSONReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nE(t,e),t.prototype._parse=function(e,t){return new nv.ObjectReader(this._builderOptions).parse(e,JSON.parse(t))},t}(ny.BaseReader),nh.JSONReader=nx.JSONReader;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});var nA={},nN={};J(nN,"Type",()=>N,e=>N=e),J(nN,"Schema",()=>T,e=>T=e),J(nN,"FAILSAFE_SCHEMA",()=>S,e=>S=e),J(nN,"JSON_SCHEMA",()=>F,e=>F=e),J(nN,"CORE_SCHEMA",()=>O,e=>O=e),J(nN,"DEFAULT_SAFE_SCHEMA",()=>k,e=>k=e),J(nN,"DEFAULT_FULL_SCHEMA",()=>P,e=>P=e),J(nN,"load",()=>L,e=>L=e),J(nN,"loadAll",()=>I,e=>I=e),J(nN,"safeLoad",()=>B,e=>B=e),J(nN,"safeLoadAll",()=>q,e=>q=e),J(nN,"dump",()=>j,e=>j=e),J(nN,"safeDump",()=>M,e=>M=e),J(nN,"YAMLException",()=>R,e=>R=e),J(nN,"MINIMAL_SCHEMA",()=>U,e=>U=e),J(nN,"SAFE_SCHEMA",()=>G,e=>G=e),J(nN,"DEFAULT_SCHEMA",()=>z,e=>z=e),J(nN,"scan",()=>V,e=>V=e),J(nN,"parse",()=>H,e=>H=e),J(nN,"compose",()=>W,e=>W=e),J(nN,"addConstructor",()=>$,e=>$=e);var nT=ee("aeC7f"),nS=ee("d6Ezz"),nF={},nT=ee("aeC7f");function nO(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}nO.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),nT.repeat(" ",e)+r+a+o+"\n"+nT.repeat(" ",e+this.position-n+r.length)+"^"},nO.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},nF=nO;var nk=ee("7WEyj"),nP=ee("eqI2g"),nL=Object.prototype.hasOwnProperty,nI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nB=/[\x85\u2028\u2029]/,nq=/[,\[\]\{\}]/,nj=/^(?:!|!!|![a-z\-]+!)$/i,nM=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nR(e){return Object.prototype.toString.call(e)}function nU(e){return 10===e||13===e}function nG(e){return 9===e||32===e}function nz(e){return 9===e||32===e||10===e||13===e}function nV(e){return 44===e||91===e||93===e||123===e||125===e}function nH(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 nW=Array(256),n$=Array(256),nY=0;nY<256;nY++)nW[nY]=+!!nH(nY),n$[nY]=nH(nY);function nX(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||nP,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 nJ(e,t){return new nS(t,new nF(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function nK(e,t){throw nJ(e,t)}function nQ(e,t){e.onWarning&&e.onWarning.call(null,nJ(e,t))}var nZ={YAML:function(e,t,r){var n,o,i;null!==e.version&&nK(e,"duplication of %YAML directive"),1!==r.length&&nK(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&nK(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),i=parseInt(n[2],10),1!==o&&nK(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&nQ(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,o;2!==r.length&&nK(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],nj.test(n)||nK(e,"ill-formed tag handle (first argument) of the TAG directive"),nL.call(e.tagMap,n)&&nK(e,'there is a previously declared suffix for "'+n+'" tag handle'),nM.test(o)||nK(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=o}};function n0(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||nK(e,"expected valid JSON character");else nI.test(u)&&nK(e,"the stream contains non-printable characters");e.result+=u}}function n1(e,t,r,n){var o,i,a,u;for(nT.isObject(r)||nK(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],nL.call(t,i)||(t[i]=r[i],n[i]=!0)}function n2(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])&&nK(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===nR(o[s])&&(o[s]="[object Object]");if("object"==typeof o&&"[object Object]"===nR(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)n1(e,t,i[s],r);else n1(e,t,i,r);else!e.json&&!nL.call(r,o)&&nL.call(t,o)&&(e.line=a||e.line,e.position=u||e.position,nK(e,"duplicated mapping key")),t[o]=i,delete r[o];return t}function n3(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):nK(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function n8(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);0!==o;){for(;nG(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(nU(o))for(n3(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&&nQ(e,"deficient indentation"),n}function n5(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))||nz(t)))||!1}function n6(e,t){1===t?e.result+=" ":t>1&&(e.result+=nT.repeat("\n",t-1))}function n9(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&&nz(e.input.charCodeAt(e.position+1));){if(u=!0,e.position++,n8(e,!0,-1)&&e.lineIndent<=t){a.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,n4(e,t,3,!1,!0),a.push(e.result),n8(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)nK(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 n4(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&&n8(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&&nK(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)):nK(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!nz(o);)33===o&&(a?nK(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),nj.test(r)||nK(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),nq.test(n)&&nK(e,"tag suffix cannot contain flow indicator characters")}return n&&!nM.test(n)&&nK(e,"tag name cannot contain such characters: "+n),i?e.tag=n:nL.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:nK(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&&nK(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!nz(r)&&!nV(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&nK(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}(e);)n8(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&&(n9(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)&&nz(n))63===u?(m&&(n2(e,c,p,d,f,null),d=f=h=null),D=!0,m=!0,o=!0):m?(m=!1,o=!0):nK(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(n4(e,r,2,!1,!0))if(e.line===i){for(u=e.input.charCodeAt(e.position);nG(u);)u=e.input.charCodeAt(++e.position);if(58===u)nz(u=e.input.charCodeAt(++e.position))||nK(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(n2(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;nK(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!D)return e.tag=s,e.anchor=l,!0;nK(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)&&(n4(e,t,4,!0,o)&&(m?f=e.result:h=e.result),m||(n2(e,c,p,d,f,h,i,a),d=f=h=null),n8(e,!0,-1),u=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==u)nK(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&n2(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(n8(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||nK(e,"missed comma between flow collection entries"),l=s=c=null,i=a=!1,63===p&&nz(e.input.charCodeAt(e.position+1))&&(i=a=!0,e.position++,n8(e,!0,t)),r=e.line,n4(e,t,1,!1,!0),l=e.tag,s=e.result,n8(e,!0,t),p=e.input.charCodeAt(e.position),(a||e.line===r)&&58===p&&(i=!0,p=e.input.charCodeAt(++e.position),n8(e,!0,t),n4(e,t,1,!1,!0),c=e.result),u?n2(e,n,m,l,s,c):i?n.push(n2(e,null,m,l,s,c)):n.push(s),n8(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(d=!0,p=e.input.charCodeAt(++e.position)):d=!1}nK(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:nK(e,"repeat of a chomping mode identifier");else if((i=48<=(r=a)&&r<=57?r-48:-1)>=0)0===i?nK(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?nK(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0);else break;if(nG(a)){do a=e.input.charCodeAt(++e.position);while(nG(a))if(35===a)do a=e.input.charCodeAt(++e.position);while(!nU(a)&&0!==a)}for(;0!==a;){for(n3(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),nU(a)){p++;continue}if(e.lineIndent<c){3===u?e.result+=nT.repeat("\n",s?1+p:p):1===u&&s&&(e.result+="\n");break}for(o?nG(a)?(d=!0,e.result+=nT.repeat("\n",s?1+p:p)):d?(d=!1,e.result+=nT.repeat("\n",p+1)):0===p?s&&(e.result+=" "):e.result+=nT.repeat("\n",p):e.result+=nT.repeat("\n",s?1+p:p),s=!0,l=!0,p=0,n=e.position;!nU(a)&&0!==a;)a=e.input.charCodeAt(++e.position);n0(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(n0(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,o=e.position}else nU(r)?(n0(e,n,o,!0),n6(e,n8(e,!1,t)),n=o=e.position):e.position===e.lineStart&&n5(e)?nK(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);nK(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 n0(e,r,e.position,!0),e.position++,!0;else if(92===u){if(n0(e,r,e.position,!0),nU(u=e.input.charCodeAt(++e.position)))n8(e,!1,t);else if(u<256&&nW[u])e.result+=n$[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:nK(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 nK(e,"unknown escape sequence");r=n=e.position}else nU(u)?(n0(e,r,n,!0),n6(e,n8(e,!1,t)),r=n=e.position):e.position===e.lineStart&&n5(e)?nK(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position);nK(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&&!nz(n)&&!nV(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&nK(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),nL.call(e.anchorMap,r)||nK(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],n8(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(nz(c=e.input.charCodeAt(e.position))||nV(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)&&(nz(n=e.input.charCodeAt(e.position+1))||r&&nV(n)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==c;){if(58===c){if(nz(n=e.input.charCodeAt(e.position+1))||r&&nV(n))break}else if(35===c){if(nz(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&n5(e)||r&&nV(c))break;else if(nU(c)){if(u=e.line,s=e.lineStart,l=e.lineIndent,n8(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&&(n0(e,o,i,!1),n6(e,e.line-u),o=i=e.position,a=!1),nG(c)||(i=e.position+1),c=e.input.charCodeAt(++e.position)}return n0(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)&&nK(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(m=u&&n9(e,d))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&nK(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 nL.call(e.typeMap[e.kind||"fallback"],e.tag)?(c=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&c.kind!==e.kind&&nK(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)):nK(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):nK(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function n7(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 nX(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,nK(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))&&(n8(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&&!nz(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&nK(e,"directive name must not be less than one character in length");0!==o;){for(;nG(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!nU(o))break}if(nU(o))break;for(t=e.position;0!==o&&!nz(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&n3(e),nL.call(nZ,r)?nZ[r](e,r,n):nQ(e,'unknown document directive "'+r+'"')}if(n8(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,n8(e,!0,-1)):a&&nK(e,"directives end mark is expected"),n4(e,e.lineIndent-1,4,!1,!0),n8(e,!0,-1),e.checkLineBreaks&&nB.test(e.input.slice(i,e.position))&&nQ(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&n5(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,n8(e,!0,-1));return}e.position<e.length-1&&nK(e,"end of the stream or a document separator is expected")}(r);return r.documents}function oe(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=n7(e,r);if("function"!=typeof t)return n;for(var o=0,i=n.length;o<i;o+=1)t(n[o])}function ot(e,t){var r=n7(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new nS("expected a single document in the stream, but found more")}}var nT=ee("aeC7f"),nS=ee("d6Ezz"),nP=ee("eqI2g"),nk=ee("7WEyj"),or=Object.prototype.toString,on=Object.prototype.hasOwnProperty,oo={};oo[0]="\\0",oo[7]="\\a",oo[8]="\\b",oo[9]="\\t",oo[10]="\\n",oo[11]="\\v",oo[12]="\\f",oo[13]="\\r",oo[27]="\\e",oo[34]='\\"',oo[92]="\\\\",oo[133]="\\N",oo[160]="\\_",oo[8232]="\\L",oo[8233]="\\P";var oi=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function oa(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 nS("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+nT.repeat("0",n-t.length)+t}function ou(e){this.schema=e.schema||nP,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=nT.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])&&on.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 os(e,t){for(var r,n=nT.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 ol(e,t){return"\n"+nT.repeat(" ",e.indent*t)}function oc(e){return 32===e||9===e}function op(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 od(e,t){var r;return op(e)&&65279!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&58!==e&&(35!==e||t&&op(r=t)&&!oc(r)&&65279!==r&&13!==r&&10!==r)}function of(e){return/^\n* /.test(e)}function oh(e,t){var r=of(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function om(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function oD(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 og(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]"===or.call(u.represent))n=u.represent(t,s);else if(on.call(u.represent,s))n=u.represent[s](t,s);else throw new nS("!<"+u.tag+'> tag resolver accepts not "'+s+'" style');e.dump=n}return!0}return!1}function o_(e,t){var r=new ou(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,og(t,n,!1)||og(t,n,!0);var u=or.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 nS("sortKeys must be a boolean or a function");for(i=0,a=f.length;i<a;i+=1)c="",o&&0===i||(c+=ol(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+=ol(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+=ol(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!==oi.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=op(i=e.charCodeAt(0))&&65279!==i&&!oc(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&&!oc(e.charCodeAt(e.length-1));if(t)for(a=0;a<e.length;a++){if(!op(u=e.charCodeAt(a)))return 5;s=a>0?e.charCodeAt(a-1):null,f=f&&od(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(!op(u))return 5;s=a>0?e.charCodeAt(a-1):null,f=f&&od(u,s)}c=c||p&&a-d-1>n&&" "!==e[d+1]}return l||c?r>9&&of(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"|"+oh(p,t.indent)+om(os(p,e));case 4:return">"+oh(p,t.indent)+om(os(function(e,t){for(var r,n,o,i=/(\n+)([^\n]*)/g,a=(i.lastIndex=r=-1!==(r=e.indexOf("\n"))?r:e.length,oD(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")+oD(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+=oa((t-55296)*1024+r-56320+65536),i++;continue}o+=!(n=oo[t])&&op(t)?e[i]:n||oa(t)}return o}(p,n)+'"';default:throw new nS("impossible error: invalid scalar style")}}());else{if(t.skipInvalid)return!1;throw new nS("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 oy(e){return function(){throw Error("Function "+e+" is deprecated and cannot be used.")}}N=ee("k5aGh"),T=ee("bPRG3"),S=ee("hWFej"),F=ee("jON1e"),O=ee("hCN6d"),k=ee("7WEyj"),P=ee("eqI2g"),L=ot,I=oe,B=function(e,t){return ot(e,nT.extend({schema:nk},t))},q=function(e,t,r){return"object"==typeof t&&null!==t&&void 0===r&&(r=t,t=null),oe(e,t,nT.extend({schema:nk},r))},j=o_,M=function(e,t){return o_(e,nT.extend({schema:nk},t))},R=ee("d6Ezz"),U=ee("hWFej"),G=ee("7WEyj"),z=ee("eqI2g"),V=oy("scan"),H=oy("parse"),W=oy("compose"),$=oy("addConstructor"),nA=nN,nw.YAMLReader=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nC(t,e),t.prototype._parse=function(e,t){var r=nA.safeLoad(t);if(void 0===r)throw Error("Unable to parse YAML document.");return new nv.ObjectReader(this._builderOptions).parse(e,r)},t}(ny.BaseReader),nh.YAMLReader=nw.YAMLReader,rf.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=rg.applyDefaults(rg.applyDefaults(this._options,e,!0),rD.DefaultBuilderOptions),this},e.prototype.ele=function(t,r,n){if(rg.isObject(t))return new nh.ObjectReader(this._options).parse(this,t);if(null!==t&&/^\s*</.test(t))return new nh.XMLReader(this._options).parse(this,t);if(null!==t&&/^\s*[\{\[]/.test(t))return new nh.JSONReader(this._options).parse(this,t);if(null!==t&&/^(\s*|(#.*)|(%.*))*---/.test(t))return new nh.YAMLReader(this._options).parse(this,t);if((null===t||rg.isString(t))&&rg.isString(r))u=(o=rh([t,r,n],3))[0],s=o[1],l=o[2];else if(null!==t)u=(i=rh([void 0,t,rg.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=rg.getValue(l)),u=(a=rh(this._extractNamespace(rz.sanitizeInput(u,this._options.invalidCharReplacement),rz.sanitizeInput(s,this._options.invalidCharReplacement),!0),2))[0],s=a[1],void 0===u){var o,i,a,u,s,l,c=rh(rk.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&&!rg.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(rg.isMap(e)||rg.isObject(e))return rg.forEachObject(e,function(e,t){return l.att(e,t)},this),this;if(null!=e&&(e=rg.getValue(e+"")),null!=t&&(t=rg.getValue(t+"")),null!=r&&(r=rg.getValue(r+"")),(null===e||rg.isString(e))&&rg.isString(t)&&(null===r||rg.isString(r)))a=(n=rh([e,t,r],3))[0],u=n[1],s=n[2];else if(rg.isString(e)&&(null==t||rg.isString(t)))a=(o=rh([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(!rB.Guard.isElementNode(this.node))throw Error("An attribute can only be assigned to an element node.");var c=this.node;a=(i=rh(this._extractNamespace(a,u,!1),2))[0],u=i[1],u=rz.sanitizeInput(u,this._options.invalidCharReplacement),a=rz.sanitizeInput(a,this._options.invalidCharReplacement),s=rz.sanitizeInput(s,this._options.invalidCharReplacement);var p=rh(rk.namespace_extractQName(u),2),d=p[0],f=p[1],h=rh(rk.namespace_extractQName(c.prefix?c.prefix+":"+c.localName:c.localName),1)[0],m=null;return"xmlns"===d?(a=rO.namespace.XMLNS,null===c.namespaceURI&&h===f&&(m=s)):null===d&&"xmlns"===f&&null===h&&(a=rO.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(!rB.Guard.isElementNode(this.node))throw Error("An attribute can only be removed from an element node.");if(e=rg.getValue(e),void 0!==t&&(t=rg.getValue(t)),null!==e&&void 0===t)n=e;else if((null===e||rg.isString(e))&&void 0!==t)r=e,n=t;else throw Error("Attribute namespace must be a string. "+this._debugInfo());return rg.isArray(n)||rg.isSet(n)?rg.forEachArray(n,function(e){return void 0===r?o.removeAtt(e):o.removeAtt(r,e)},this):void 0!==r?(n=rz.sanitizeInput(n,this._options.invalidCharReplacement),r=rz.sanitizeInput(r,this._options.invalidCharReplacement),this.node.removeAttributeNS(r,n)):(n=rz.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(rz.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(rz.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(rz.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(rg.isArray(e)||rg.isSet(e))rg.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(rg.isMap(e)||rg.isObject(e))rg.forEachObject(e,function(e,t){return r.ins(e,t)},this);else{var n=this._doc.createProcessingInstruction(rz.sanitizeInput(e,this._options.invalidCharReplacement),rz.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=rz.sanitizeInput(e&&e.name||(this._doc.documentElement?this._doc.documentElement.tagName:"ROOT"),this._options.invalidCharReplacement),r=rz.sanitizeInput(e&&e.pubID||"",this._options.invalidCharReplacement),n=rz.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(rB.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=rh(rk.namespace_extractQName(s.prefix?s.prefix+":"+s.localName:s.localName),1)[0],c=o.lookupNamespaceURI(l);new e(s)._updateNamespace(c)}else if(rB.Guard.isDocumentFragmentNode(a))try{for(var p=rm(a.childNodes),d=p.next();!d.done;d=p.next()){var f=d.value,s=i.importNode(f,!0);if(o.appendChild(s),rB.Guard.isElementNode(s)){var l=rh(rk.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),rB.Guard.isElementNode(s)){var l=rh(rk.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!==rw.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,rk.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 r_.XMLWriter(this._options,e);return t.serialize(this.node)}if("map"===e.format){var t=new r_.MapWriter(this._options,e);return t.serialize(this.node)}if("object"===e.format){var t=new r_.ObjectWriter(this._options,e);return t.serialize(this.node)}if("json"===e.format){var t=new r_.JSONWriter(this._options,e);return t.serialize(this.node)}if("yaml"===e.format){var t=new r_.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(rB.Guard.isElementNode(a)&&null!==t&&a.namespaceURI!==t){var u=rh(rk.namespace_extractQName(a.prefix?a.prefix+":"+a.localName:a.localName),2),s=u[0],l=u[1],c=rk.create_element(this._doc,l,t,s);try{for(var p=rm(a.attributes),d=p.next();!d.done;d=p.next()){var f=d.value,h=f.prefix?f.prefix+":"+f.localName:f.localName,m=rh(rk.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 _=rm(a.childNodes),y=_.next();!y.done;y=_.next()){var v=y.value.cloneNode(!0);if(c.appendChild(v),rB.Guard.isElementNode(v)){var b=rh(rk.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{y&&!y.done&&(i=_.return)&&i.call(_)}finally{if(o)throw o.error}}}},Object.defineProperty(e.prototype,"_doc",{get:function(){var e=this.node;if(rB.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}(),rd.XMLBuilderImpl=rf.XMLBuilderImpl;var ov={},ob=ov&&ov.__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)}),ox=ov&&ov.__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.")},oE=ov&&ov.__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(ov,"__esModule",{value:!0});var rg=ee("jDPAV"),ow={};Object.defineProperty(ow,"__esModule",{value:!0});var rg=ee("jDPAV"),rB=ee("cnpfV");function oC(e,t){var r=oN(void 0===e||oA(e)?e:rD.DefaultBuilderOptions),n=oA(e)?t:e,o=rz.createDocument();oT(o,r);var i=new rd.XMLBuilderImpl(o);return void 0!==n&&i.ele(n),i}function oA(e){if(!rg.isPlainObject(e))return!1;for(var t in e)if(e.hasOwnProperty(t)&&!rD.XMLBuilderOptionKeys.has(t))return!1;return!0}function oN(e){void 0===e&&(e={});var t=rg.applyDefaults(e,rD.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 oT(e,t,r){e._xmlBuilderOptions=t,e._isFragment=r}ow.builder=function(e,t){var r=oN(oA(e)?e:rD.DefaultBuilderOptions),n=rB.Guard.isNode(e)||rg.isArray(e)?e:t;if(void 0===n)throw Error("Invalid arguments.");if(rg.isArray(n)){for(var o=[],i=0;i<n.length;i++){var a=new rd.XMLBuilderImpl(n[i]);a.set(r),o.push(a)}return o}var u=new rd.XMLBuilderImpl(n);return u.set(r),u},ow.create=oC,ow.fragment=function(e,t){var r=oN(void 0===e||oA(e)?e:rD.DefaultBuilderOptions),n=oA(e)?t:e,o=rz.createDocument();oT(o,r,!0);var i=new rd.XMLBuilderImpl(o.createDocumentFragment());return void 0!==n&&i.ele(n),i},ow.convert=function(e,t,r){var n,o,i;return oA(e)&&void 0!==t?(n=e,o=t,i=r):(n=rD.DefaultBuilderOptions,o=e,i=t||void 0),oC(n,o).end(i)};var rk=ee("eOMTm"),rO=ee("b9DcM"),rB=ee("cnpfV"),oS={},oF=oS&&oS.__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)});Object.defineProperty(oS,"__esModule",{value:!0});var oO={};Object.defineProperty(oO,"__esModule",{value:!0}),oO.BaseCBWriter=function(e){this.level=0,this._builderOptions=e,this._writerOptions=e},oS.XMLCBWriter=function(e){function t(t){var r=e.call(this,t)||this;return r._lineLength=0,r}return oF(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}(oO.BaseCBWriter);var ok={},oP=ok&&ok.__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(ok,"__esModule",{value:!0}),ok.JSONCBWriter=function(e){function t(t){var r=e.call(this,t)||this;return r._hasChildren=[],r._additionalLevel=0,r}return oP(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}(oO.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.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 oI(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}(oO.BaseCBWriter),ov.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=rg.applyDefaults(t||{},rD.DefaultXMLBuilderCBOptions),n._builderOptions={defaultNamespace:n._options.defaultNamespace,namespaceAlias:n._options.namespaceAlias},"json"===n._options.format?n._writer=new ok.JSONCBWriter(n._options):"yaml"===n._options.format?n._writer=new oL.YAMLCBWriter(n._options):n._writer=new oS.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 rF.NamespacePrefixMap,n._prefixMap.set("xml",rO.namespace.XML),n._prefixIndex={value:1},n._push(n._writer.frontMatter()),n}return ob(t,e),t.prototype.ele=function(e,t,r){var n,o;if(rg.isObject(e)||rg.isString(e)&&(/^\s*</.test(e)||/^\s*[\{\[]/.test(e)||/^(\s*|(#.*)|(%.*))*---/.test(e))){var i=ow.fragment().set(this._options);try{i.ele(e)}catch(e){return this.emit("error",e),this}try{for(var a=ox(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=ow.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=ow.fragment(this._builderOptions).com(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&(!rk.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=ow.fragment(this._builderOptions).txt(e).first().node}catch(e){return this.emit("error",e),this}if(this._options.wellFormed&&!rk.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,"&").replace(/</g,"<").replace(/>/g,">");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=ow.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&&!rk.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=ow.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=ow.create().dtd(e).first().node}catch(e){return this.emit("error",e),this}return this._options.wellFormed&&!rk.xml_isPubidChar(t.publicId)?this.emit("error",Error("DocType public identifier does not match PubidChar construct (well-formed required).")):this._options.wellFormed&&(!rk.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=ow.fragment().set(this._options);try{n.import(e)}catch(e){return this.emit("error",e),this}try{for(var o=ox(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(":")||!rk.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===rO.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!==rO.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===rO.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=oE(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(rB.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=ox(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=ox(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 rB.Guard.isExclusiveTextNode(e)&&e.data?this.txt(e.data):rB.Guard.isCommentNode(e)?this.com(e.data):rB.Guard.isCDATASectionNode(e)?this.dat(e.data):rB.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 rS.LocalNameSet:void 0;try{for(var l=ox(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===rO.namespace.XMLNS){if(p.value===rO.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===rO.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(":")||!rk.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&&!rk.xml_isLegalChar(e)?(this.emit("error",Error("Invalid characters in attribute value.")),""):null===e?"":e.replace(/(?!&(lt|gt|amp|apos|quot);)&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},t.prototype._recordNamespaceInformation=function(e,t,r){var n,o,i=null;try{for(var a=ox(e.attributes),u=a.next();!u.done;u=a.next()){var s=u.value,l=s.namespaceURI,c=s.prefix;if(l===rO.namespace.XMLNS)if(null===c){i=s.value;continue}else{var p=s.localName,d=s.value;if(d===rO.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}(p),rd.XMLBuilderCBImpl=ov.XMLBuilderCBImpl,rd.builder=ow.builder,rd.create=ow.create,rd.fragment=ow.fragment,rd.convert=ow.convert;var oB={};if(Object.defineProperty(oB,"__esModule",{value:!0}),oB.createCB=function(e){return new rd.XMLBuilderCBImpl(e)},oB.fragmentCB=function(e){return new rd.XMLBuilderCBImpl(e,!0)},rd.createCB=oB.createCB,rd.fragmentCB=oB.fragmentCB,rp.builder=rd.builder,rp.create=rd.create,rp.fragment=rd.fragment,rp.convert=rd.convert,rp.createCB=rd.createCB,rp.fragmentCB=rd.fragmentCB,process.argv[1]===new URL("file:///src/utils/yml2xml.js").pathname)try{let e=re(n.readFileSync(process.argv[2],"utf8")),t=n.readFileSync(process.argv[3]);n.writeFileSync(`${process.argv[4]}`,oq(e,t,process.argv[5]),{encoding:"utf8",flag:"w"})}catch(e){console.log(e)}function oq(e,t,r="1.0"){let n=(0,rp.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=rt.parse.parse(t);return o.ele("Content",{type:"html"}).ele({$:(a.querySelector("style")?.toString()||"")+a.querySelectorAll("head > link[rel=stylesheet]").map(e=>e.toString()).join("")+a.querySelectorAll("head > script").map(e=>e.toString()).join("")+(a.querySelector("body")?.toString()||"")}),n.end({prettyPrint:!0})}let oj=i(process.argv[1]),oM=process.argv.slice(2),oR=oM.includes("help")||oM.includes("--help")||oM.includes("-h"),oU=oM.includes("build-only")||oM.includes("--build-only"),oG=process.cwd();((e="")=>{process.stdout.write(`${X(ea).gray(eK)} ${e}
|
|
37
37
|
`)})(X(ea).cyan("\uD83D\uDE80 Revel Digital SDK Integrator")),oR&&(e5(X(ea).cyan(`
|
|
38
38
|
Usage: gadgetizer [options]
|
|
39
39
|
|