`;return o.replace(/\n$/,"")}p(oh,"makeSnippet");var Xx=oh,Zx=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Kx=["scalar","sequence","mapping"];function lh(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}p(lh,"compileStyleAliases");function ch(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Zx.indexOf(r)===-1)throw new Dt('Unknown option "'+r+'" 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(r){return r},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=lh(t.styleAliases||null),Kx.indexOf(this.kind)===-1)throw new Dt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}p(ch,"Type$1");var St=ch;function Ma(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}p(Ma,"compileList");function hh(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(p(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}p(hh,"compileMap");function on(e){return this.extend(e)}p(on,"Schema$1");on.prototype.extend=p(function(t){var r=[],i=[];if(t instanceof St)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Dt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof St))throw new Dt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Dt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Dt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof St))throw new Dt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(on.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Ma(n,"implicit"),n.compiledExplicit=Ma(n,"explicit"),n.compiledTypeMap=hh(n.compiledImplicit,n.compiledExplicit),n},"extend");var Qx=on,Jx=new St("tag:yaml.org,2002:str",{kind:"scalar",construct:p(function(e){return e!==null?e:""},"construct")}),tb=new St("tag:yaml.org,2002:seq",{kind:"sequence",construct:p(function(e){return e!==null?e:[]},"construct")}),eb=new St("tag:yaml.org,2002:map",{kind:"mapping",construct:p(function(e){return e!==null?e:{}},"construct")}),rb=new Qx({explicit:[Jx,tb,eb]});function uh(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}p(uh,"resolveYamlNull");function fh(){return null}p(fh,"constructYamlNull");function dh(e){return e===null}p(dh,"isNull");var ib=new St("tag:yaml.org,2002:null",{kind:"scalar",resolve:uh,construct:fh,predicate:dh,represent:{canonical:p(function(){return"~"},"canonical"),lowercase:p(function(){return"null"},"lowercase"),uppercase:p(function(){return"NULL"},"uppercase"),camelcase:p(function(){return"Null"},"camelcase"),empty:p(function(){return""},"empty")},defaultStyle:"lowercase"});function ph(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}p(ph,"resolveYamlBoolean");function gh(e){return e==="true"||e==="True"||e==="TRU
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"":e===95?"":e===76?"\u2028":e===80?"\u2029":""}p(Fa,"simpleEscapeSequence");function Qh(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}p(Qh,"charFromCodepoint");var Jh=new Array(256),tu=new Array(256);for(Le=0;Le<256;Le++)Jh[Le]=Fa(Le)?1:0,tu[Le]=Fa(Le);var Le;function eu(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jh,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=[]}p(eu,"State$1");function Os(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=Xx(r),new Dt(t,r)}p(Os,"generateError");function V(e,t){throw Os(e,t)}p(V,"throwError");function ti(e,t){e.onWarning&&e.onWarning.call(null,Os(e,t))}p(ti,"throwWarning");var Yo={YAML:p(function(t,r,i){var n,a,s;t.version!==null&&V(t,"duplication of %YAML directive"),i.length!==1&&V(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&V(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),s=parseInt(n[2],10),a!==1&&V(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&ti(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:p(function(t,r,i){var n,a;i.length!==2&&V(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],Vh.test(n)||V(t,"ill-formed tag handle (first argument) of the TAG directive"),Ce.call(t.tagMap,n)&&V(t,'there is a previously declared suffix for "'+n+'" tag handle'),Uh.test(a)||V(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{V(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function le(e,t,r,i){var n,a,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,a=o.length;n<a;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||V(e,"expected valid JSON character");else Cb.test(o)&&V(e,"the stream contains non-printable characters");e.result+=o}}p(le,"captureSegment");function Ea(e,t,r,i){var n,a,s,o;for(mt.isObject(r)||V(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)a=n[s],Ce.call(t,a)||(t[a]=r[a],i[a]=!0)}p(Ea,"mergeMappings");function Oe(e,t,r,i,n,a,s,o,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&V(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Aa(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Aa(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)Ea(e,t,a[c],r);else Ea(e,t,a,r);else!e.json&&!Ce.call(r,n)&&Ce.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,V(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[n]=a,delete r[n];return t}p(Oe,"storeMappingPair");function Rn(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):V(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}p(Rn,"readLineBreak");function ft(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;be(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(Yt(n))for(Rn(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&ti(e,"defic
`,t-1))}p(In,"writeFoldedLines");function ru(e,t,r){var i,n,a,s,o,l,c,h,u=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),$t(d)||De(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),$t(n)||r&&De(n)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),$t(n)||r&&De(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),$t(i))break}else{if(e.position===e.lineStart&&di(e)||r&&De(d))break;if(Yt(d))if(l=e.line,c=e.lineStart,h=e.lineIndent,ft(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=c,e.lineIndent=h;break}}o&&(le(e,a,s,!1),In(e,e.line-l),a=s=e.position,o=!1),be(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return le(e,a,s,!1),e.result?!0:(e.kind=u,e.result=f,!1)}p(ru,"readPlainScalar");function iu(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(le(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else Yt(r)?(le(e,i,n,!0),In(e,ft(e,!1,t)),i=n=e.position):e.position===e.lineStart&&di(e)?V(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);V(e,"unexpected end of the stream within a single quoted scalar")}p(iu,"readSingleQuotedScalar");function nu(e,t){var r,i,n,a,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return le(e,r,e.position,!0),e.position++,!0;if(o===92){if(le(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),Yt(o))ft(e,!1,t);else if(o<256&&Jh[o])e.result+=tu[o],e.position++;else if((s=Zh(o))>0){for(n=s,a=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=Xh(o))>=0?a=(a<<4)+s:V(e,"expected hexadecimal character");e.result+=Qh(a),e.position++}else V(e,"unknown escape sequence");r=i=e.position}else Yt(o)?(le(e,r,i,!0),In(e,ft(e,!1,t)),r=i=e.position):e.position===e.lineStart&&di(e)?V(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}V(e,"unexpected end of the stream within a double quoted scalar")}p(nu,"readDoubleQuotedScalar");function au(e,t){var r=!0,i,n,a,s=e.tag,o,l=e.anchor,c,h,u,f,d,g=Object.create(null),m,y,x,b;if(b=e.input.charCodeAt(e.position),b===91)h=93,d=!1,o=[];else if(b===123)h=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),b=e.input.charCodeAt(++e.position);b!==0;){if(ft(e,!0,t),b=e.input.charCodeAt(e.position),b===h)return e.position++,e.tag=s,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=o,!0;r?b===44&&V(e,"expected the node content, but found ','"):V(e,"missed comma between flow collection entries"),y=m=x=null,u=f=!1,b===63&&(c=e.input.charCodeAt(e.position+1),$t(c)&&(u=f=!0,e.position++,ft(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,We(e,t,ln,!1,!0),y=e.tag,m=e.result,ft(e,!0,t),b=e.input.charCodeAt(e.position),(f||e.line===i)&&b===58&&(u=!0,b=e.input.charCodeAt(++e.position),ft(e,!0,t),We(e,t,ln,!1,!0),x=e.result),d?Oe(e,o,g,y,m,x,i,n,a):u?o.push(Oe(e,null,g,y,m,x,i,n,a)):o.push(m),ft(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}V(e,"unexpected end of the stream within a flow collection")}p(au,"readFlowCollection");function su(e,t){var r,i,n=na,a=!1,s=!1,o=t,l=0,c=!1,h,u;if(u=e.input.charCodeAt(e.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)na===n?n=u===43?jo:_b:V(e,"repeat of a chomping mode identifier");else if((h=Kh(u))>=0)h===0?V(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?V(e,"repeat of an indentation width identifier"):(o=t+h-1,s=!0);else break;if(be(u)){do u=e.input.charCodeAt(++e.position);while(be(u));if(u===35)do u=
`,a?1+l:l),a=!0,s=!0,l=0,r=e.position;!Yt(u)&&u!==0;)u=e.input.charCodeAt(++e.position);le(e,r,e.position,!1)}return!0}p(su,"readBlockScalar");function Da(e,t){var r,i=e.tag,n=e.anchor,a=[],s,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,V(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!$t(s))));){if(o=!0,e.position++,ft(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,We(e,t,Gh,!1,!0),a.push(e.result),ft(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)V(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}p(Da,"readBlockSequence");function ou(e,t,r){var i,n,a,s,o,l,c=e.tag,h=e.anchor,u={},f=Object.create(null),d=null,g=null,m=null,y=!1,x=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,V(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(b===63||b===58)&&$t(i))b===63?(y&&(Oe(e,u,f,d,g,null,s,o,l),d=g=m=null),x=!0,y=!0,n=!0):y?(y=!1,n=!0):V(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=i;else{if(s=e.line,o=e.lineStart,l=e.position,!We(e,r,Yh,!1,!0))break;if(e.line===a){for(b=e.input.charCodeAt(e.position);be(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),$t(b)||V(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Oe(e,u,f,d,g,null,s,o,l),d=g=m=null),x=!0,y=!1,n=!1,d=e.tag,g=e.result;else if(x)V(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=h,!0}else if(x)V(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=h,!0}if((e.line===a||e.lineIndent>t)&&(y&&(s=e.line,o=e.lineStart,l=e.position),We(e,t,cn,!0,n)&&(y?g=e.result:m=e.result),y||(Oe(e,u,f,d,g,m,s,o,l),d=g=m=null),ft(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&b!==0)V(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Oe(e,u,f,d,g,null,s,o,l),x&&(e.tag=c,e.anchor=h,e.kind="mapping",e.result=u),x}p(ou,"readBlockMapping");function lu(e){var t,r=!1,i=!1,n,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&V(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):V(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!$t(s);)s===33&&(i?V(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Vh.test(n)||V(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),kb.test(a)&&V(e,"tag suffix cannot contain flow indicator characters")}a&&!Uh.test(a)&&V(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{V(e,"tag name is malformed: "+a)}return r?e.tag=a:Ce.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:V(e,'undeclared tag handle "'+n+'"'),!0}p(lu,"readTagProperty");function cu(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&V(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!$t(r)&&!De(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&V(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}p(cu,"r
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new eu(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,V(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)uu(r);return r.documents}p(Ps,"loadDocuments");function vb(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Ps(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}p(vb,"loadAll$1");function fu(e,t){var r=Ps(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Dt("expected a single document in the stream, but found more")}}p(fu,"load$1");var Sb=fu,Tb={load:Sb},du=Object.prototype.toString,pu=Object.prototype.hasOwnProperty,Rs=65279,Bb=9,ei=10,Lb=13,$b=32,Mb=33,Ab=34,Oa=35,Fb=37,Eb=38,Db=39,Ob=42,gu=44,Pb=45,hn=58,Rb=61,Ib=62,Nb=63,zb=64,mu=91,yu=93,qb=96,xu=123,Wb=124,bu=125,Bt={};Bt[0]="\\0";Bt[7]="\\a";Bt[8]="\\b";Bt[9]="\\t";Bt[10]="\\n";Bt[11]="\\v";Bt[12]="\\f";Bt[13]="\\r";Bt[27]="\\e";Bt[34]='\\"';Bt[92]="\\\\";Bt[133]="\\N";Bt[160]="\\_";Bt[8232]="\\L";Bt[8233]="\\P";var Hb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],jb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function _u(e,t){var r,i,n,a,s,o,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&pu.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}p(_u,"compileStyleMap");function Cu(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Dt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+mt.repeat("0",i-t.length)+t}p(Cu,"encodeHex");var Yb=1,ri=2;function wu(e){this.schema=e.schema||jh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=mt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=_u(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.quotingType=e.quotingType==='"'?ri:Yb,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}p(wu,"State");function Pa(e,t){for(var r=mt.repeat(" ",t),i=0,n=-1,a="",s,o=e.length;i<o;)n=e.indexOf(`
`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let o of n)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<i.length;o++)s.header.push({text:i[o],tokens:this.lexer.inline(i[o]),header:!0,align:s.align[o]});for(let o of a)s.rows.push(xl(o,s.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
`+this.renderer.text(o);r?i+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):i+=l;continue}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}parseInline(t,r=this.renderer){let i="";for(let n=0;n<t.length;n++){let a=t[n];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=o||"";continue}}let s=a;switch(s.type){case"escape":{i+=r.text(s);break}case"html":{i+=r.html(s);break}case"link":{i+=r.link(s);break}case"image":{i+=r.image(s);break}case"strong":{i+=r.strong(s);break}case"em":{i+=r.em(s);break}case"codespan":{i+=r.codespan(s);break}case"br":{i+=r.br(s);break}case"del":{i+=r.del(s);break}case"text":{i+=r.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}},zr=class{options;block;constructor(t){this.options=t||Ze}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?qt.lex:qt.lexInline}provideParser(){return this.block?Wt.parse:Wt.parseInline}},ZC=class{defaults=Zs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Wt;Renderer=_n;TextRenderer=no;Lexer=qt;Tokenizer=bn;Hooks=zr;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(let n of t)switch(i=i.concat(r.call(this,n)),n.type){case"table":{let a=n;for(let s of a.header)i=i.concat(this.walkTokens(s.tokens,r));for(let s of a.rows)for(let o of s)i=i.concat(this.walkTokens(o.tokens,r));break}case"list":{let a=n;i=i.concat(this.walkTokens(a.items,r));break}default:{let a=n;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(s=>{let o=a[s].flat(1/0);i=i.concat(this.walkTokens(o,r))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new _n(this.defaults);for(let s in i.renderer){if(!(s in a))throw new Error(`renderer'${s}'doesnotexist`);if(["options","parser"].includes(s))continue;let o=s,l=i.renderer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new bn(this.defaults);for(let s in i.tokenizer){if(!(s in a))throw new Error(`tokenizer'${s}'doesnotexist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=i.tokenizer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new zr;for(let s in i.hooks){if(!(s in a))throw new Error(`hook'${s}'doesnotexist`);if(["options","block"].includes(s))continue;let o=s,l=i.hooks[o],c=a[o];zr.passThroughHooks.has(s)?a[o]=h=>{if(this.
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Cn(e,t)}p(Lf,"splitLineToFitWidth");function Cn(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(a),t(s))return Cn(e,t,r,s);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[o,l]=Bf(t,a);r.push([o]),l.content&&e.unshift(l)}return Cn(e,t,r)}p(Cn,"splitLineToFitWidthRecursion");function Ka(e,t){t&&e.attr("style",t)}p(Ka,"applyStyle");async function $f(e,t,r,i,n=!1,a=vt()){const s=e.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);const o=s.append("xhtml:div"),l=gr(t.label)?await ps(t.label.replace(wr.lineBreakRegex,`
`),a):Nt(t.label,a),c=t.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(l),Ka(h,t.labelStyle),h.attr("class",`${c}${i}`),Ka(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",r+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&o.attr("class","labelBkg");let u=o.node().getBoundingClientRect();return u.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),u=o.node().getBoundingClientRect()),s.node()}p($f,"addHtmlSpan");function Vn(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}p(Vn,"createTspan");function Mf(e,t,r){const i=e.append("text"),n=Vn(i,1,t);Un(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}p(Mf,"computeWidthOfText");function tw(e,t,r){const i=e.append("text"),n=Vn(i,1,t);Un(n,[{content:r,type:"normal"}]);const a=n.node()?.getBoundingClientRect();return a&&i.remove(),a}p(tw,"computeDimensionOfText");function Af(e,t,r,i=!1){const a=t.append("g"),s=a.insert("rect").attr("class","background").attr("style","stroke: none"),o=a.append("text").attr("y","-10.1");let l=0;for(const c of r){const h=p(f=>Mf(a,1.1,f)<=e,"checkWidth"),u=h(c)?[c]:Lf(c,h);for(const f of u){const d=Vn(o,l,1.1);Un(d,f),l++}}if(i){const c=o.node().getBBox(),h=2;return s.attr("x",c.x-h).attr("y",c.y-h).attr("width",c.width+2*h).attr("height",c.height+2*h),a.node()}else return o.node()}p(Af,"createFormattedText");function Un(e,t){e.text(""),t.forEach((r,i)=>{const n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(r.content):n.text(" "+r.content)})}p(Un,"updateTextContentAndStyles");async function Ff(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,s)=>(r.push((async()=>{const o=`${a}:${s}`;return await JC(o)?await yi(o,void 0,{class:"label-icon"}):`<iclass='${Nt(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}p(Ff,"replaceIconSubstring");varSe=p(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={},c)=>{if(A.debug("XYZ createText",t,r,i,n,a,s,"addSvgBackground: ",l),a){consth=Sf(t,c),u=awaitFf(Xe(h),c),f=t.replace(/\\\\/g,"\\"),d={isNode:s,label:gr(t)?f:u,labelStyle:r.replace("fill:","color:")};returnawait$f(e,d,o,n,l,c)}else{consth=t.replace(/<br\s*\/?>/g,"<br/>"),u=vf(h.replace("<br>","<br/>"),c),f=Af(o,e,u,t?l:!1);if(s){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));constd=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");it(f).attr("style",d)}else{constd=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");it(f).select("rect").attr("style",d.replace(/background:/g,"fill:"));constg=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");it(f).select("text").attr("style",g)}returnf}},"createText");functionla(e,t,r){if(e&&e.length){const[i,n]=t,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(constlofe){const[c,h]=l;l[0]=(c-i)*s-(h-n)*o+i,l[1]=(c-i)*o+(h-n)*s+n}}}functionew(e,t){returne[0]===t[0]&&e[1]===t[1]}functionrw(e,t,r,i=1){constn=r,a=Math.max(t,.1),s=e[0]&&e[0][0]&&typeofe[0][0]=="number"?[e]:e,o=[0,0];if(n)for(constcofs)la(c,o,n);constl=(function(c,h,u){constf=[];for(constbofc){const_=[...b];ew(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&f.push(_)}constd=[];h=Math.max(h,.1);constg=[];for(constboff)for(let_=0;_<b.length-1;_++){constk=b[_],C=b[_+1];if(k[1]!==C[1]){constB=Math.min(k[1],C[1]);g.push({ymin:B,ymax:Math.max(k[1],C[1]),x:B===k[1]?k[0]:C[0],islope:(C[0]-k[0])/(C[1]-k[1])})}}if(g.sort(((b,_)=>b.ymin<_.ymin?-1:b.ymin>_.ymin?1:b.
`,f=n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),o.attr("transform",`translate(${-a.width/2},${-a.height/2})`),n.append(()=>o.node()),Y(t,f),t.calcIntersect=function(d,g){return N.rect(d,g)},t.intersect=function(d){return N.rect(t,d)},n}p(ip,"defaultMindmapNode");async function np(e,t){const r={padding:t.padding??0};return lo(e,t,r)}p(np,"mindmapCircle");var qw=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Od},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Fd},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Pd},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:zd},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ad},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:lo},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ep},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:rp},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:$d},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:fd},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:wd},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Cd},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Yd},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:bd},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:od},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Hd},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Kf},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Ed},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Nd},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Id},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:hd},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:dd},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],ha
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),tT=p(e=>{const{text:t,metadata:r}=Vp(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),eT=p(e=>{const t=jt.detectInit(e)??{},r=jt.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:O_(e),directive:t}},"processDirectives");function fo(e){const t=JS(e),r=tT(t),i=eT(r.text),n=Xs(r.config,i.directive);return e=QS(i.text),{code:e,title:r.title,config:n}}p(fo,"preprocessDiagram");function Up(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}p(Up,"toBase64");var rT=5e4,iT="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",nT="sandbox",aT="loose",sT="http://www.w3.org/2000/svg",oT="http://www.w3.org/1999/xlink",lT="http://www.w3.org/1999/xhtml",cT="100%",hT="100%",uT="border:0;margin:0;",fT="margin:0",dT="allow-top-navigation-by-user-activation allow-popups",pT='The "iframe" tag is not supported by your browser.',gT=["foreignobject"],mT=["dominant-baseline"];function po(e){const t=fo(e);return Vi(),Dg(t.config??{}),t}p(po,"processAndSetConfigs");async function Xp(e,t){ta();try{const{code:r,config:i}=po(e);return{diagramType:(await Kp(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}p(Xp,"parse");var ql=p((e,t,r=[])=>`