@uibot/design-md 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,207 @@
1
+ // @bun
2
+ var bl=Object.create;var{getPrototypeOf:wl,defineProperty:zr,getOwnPropertyNames:El}=Object;var Zr=Object.prototype.hasOwnProperty;function vl(e){return this[e]}var Nl,Al,Ll=(e,t,s)=>{var r=e!=null&&typeof e==="object";if(r){var i=t?Nl??=new WeakMap:Al??=new WeakMap,n=i.get(e);if(n)return n}s=e!=null?bl(wl(e)):{};let o=t||!e||!e.__esModule||!Zr.call(e,"default")?zr(s,"default",{value:e,enumerable:!0}):s;if(e&&typeof e==="object"||typeof e==="function"){for(let a of El(e))if(!Zr.call(o,a))zr(o,a,{get:vl.bind(e,a),enumerable:!0})}if(r)i.set(e,o);return o};var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ut=import.meta.require;var we=m(function(i0,ei){var Ol=Number.MAX_SAFE_INTEGER||9007199254740991,kl=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ei.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Ol,RELEASE_TYPES:kl,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var De=m(function(n0,ti){var Il=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};ti.exports=Il});var Ee=m(function(X,si){var{MAX_SAFE_COMPONENT_LENGTH:ms,MAX_SAFE_BUILD_LENGTH:Tl,MAX_LENGTH:$l}=we(),ql=De();X=si.exports={};var Rl=X.re=[],Cl=X.safeRe=[],S=X.src=[],Dl=X.safeSrc=[],b=X.t={},Ml=0,gs="[a-zA-Z0-9-]",Pl=[["\\s",1],["\\d",$l],[gs,Tl]],xl=(e)=>{for(let[t,s]of Pl)e=e.split(`${t}*`).join(`${t}{0,${s}}`).split(`${t}+`).join(`${t}{1,${s}}`);return e},O=(e,t,s)=>{let r=xl(t),i=Ml++;ql(e,i,t),b[e]=i,S[i]=t,Dl[i]=r,Rl[i]=new RegExp(t,s?"g":void 0),Cl[i]=new RegExp(r,s?"g":void 0)};O("NUMERICIDENTIFIER","0|[1-9]\\d*");O("NUMERICIDENTIFIERLOOSE","\\d+");O("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${gs}*`);O("MAINVERSION",`(${S[b.NUMERICIDENTIFIER]})\\.(${S[b.NUMERICIDENTIFIER]})\\.(${S[b.NUMERICIDENTIFIER]})`);O("MAINVERSIONLOOSE",`(${S[b.NUMERICIDENTIFIERLOOSE]})\\.(${S[b.NUMERICIDENTIFIERLOOSE]})\\.(${S[b.NUMERICIDENTIFIERLOOSE]})`);O("PRERELEASEIDENTIFIER",`(?:${S[b.NONNUMERICIDENTIFIER]}|${S[b.NUMERICIDENTIFIER]})`);O("PRERELEASEIDENTIFIERLOOSE",`(?:${S[b.NONNUMERICIDENTIFIER]}|${S[b.NUMERICIDENTIFIERLOOSE]})`);O("PRERELEASE",`(?:-(${S[b.PRERELEASEIDENTIFIER]}(?:\\.${S[b.PRERELEASEIDENTIFIER]})*))`);O("PRERELEASELOOSE",`(?:-?(${S[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${S[b.PRERELEASEIDENTIFIERLOOSE]})*))`);O("BUILDIDENTIFIER",`${gs}+`);O("BUILD",`(?:\\+(${S[b.BUILDIDENTIFIER]}(?:\\.${S[b.BUILDIDENTIFIER]})*))`);O("FULLPLAIN",`v?${S[b.MAINVERSION]}${S[b.PRERELEASE]}?${S[b.BUILD]}?`);O("FULL",`^${S[b.FULLPLAIN]}$`);O("LOOSEPLAIN",`[v=\\s]*${S[b.MAINVERSIONLOOSE]}${S[b.PRERELEASELOOSE]}?${S[b.BUILD]}?`);O("LOOSE",`^${S[b.LOOSEPLAIN]}$`);O("GTLT","((?:<|>)?=?)");O("XRANGEIDENTIFIERLOOSE",`${S[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);O("XRANGEIDENTIFIER",`${S[b.NUMERICIDENTIFIER]}|x|X|\\*`);O("XRANGEPLAIN",`[v=\\s]*(${S[b.XRANGEIDENTIFIER]})(?:\\.(${S[b.XRANGEIDENTIFIER]})(?:\\.(${S[b.XRANGEIDENTIFIER]})(?:${S[b.PRERELEASE]})?${S[b.BUILD]}?)?)?`);O("XRANGEPLAINLOOSE",`[v=\\s]*(${S[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${S[b.XRANGEIDENTIFIERLOOSE]})(?:${S[b.PRERELEASELOOSE]})?${S[b.BUILD]}?)?)?`);O("XRANGE",`^${S[b.GTLT]}\\s*${S[b.XRANGEPLAIN]}$`);O("XRANGELOOSE",`^${S[b.GTLT]}\\s*${S[b.XRANGEPLAINLOOSE]}$`);O("COERCEPLAIN",`(^|[^\\d])(\\d{1,${ms}})(?:\\.(\\d{1,${ms}}))?(?:\\.(\\d{1,${ms}}))?`);O("COERCE",`${S[b.COERCEPLAIN]}(?:$|[^\\d])`);O("COERCEFULL",S[b.COERCEPLAIN]+`(?:${S[b.PRERELEASE]})?(?:${S[b.BUILD]})?(?:$|[^\\d])`);O("COERCERTL",S[b.COERCE],!0);O("COERCERTLFULL",S[b.COERCEFULL],!0);O("LONETILDE","(?:~>?)");O("TILDETRIM",`(\\s*)${S[b.LONETILDE]}\\s+`,!0);X.tildeTrimReplace="$1~";O("TILDE",`^${S[b.LONETILDE]}${S[b.XRANGEPLAIN]}$`);O("TILDELOOSE",`^${S[b.LONETILDE]}${S[b.XRANGEPLAINLOOSE]}$`);O("LONECARET","(?:\\^)");O("CARETTRIM",`(\\s*)${S[b.LONECARET]}\\s+`,!0);X.caretTrimReplace="$1^";O("CARET",`^${S[b.LONECARET]}${S[b.XRANGEPLAIN]}$`);O("CARETLOOSE",`^${S[b.LONECARET]}${S[b.XRANGEPLAINLOOSE]}$`);O("COMPARATORLOOSE",`^${S[b.GTLT]}\\s*(${S[b.LOOSEPLAIN]})$|^$`);O("COMPARATOR",`^${S[b.GTLT]}\\s*(${S[b.FULLPLAIN]})$|^$`);O("COMPARATORTRIM",`(\\s*)${S[b.GTLT]}\\s*(${S[b.LOOSEPLAIN]}|${S[b.XRANGEPLAIN]})`,!0);X.comparatorTrimReplace="$1$2$3";O("HYPHENRANGE",`^\\s*(${S[b.XRANGEPLAIN]})\\s+-\\s+(${S[b.XRANGEPLAIN]})\\s*$`);O("HYPHENRANGELOOSE",`^\\s*(${S[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${S[b.XRANGEPLAINLOOSE]})\\s*$`);O("STAR","(<|>)?=?\\s*\\*");O("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");O("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ft=m(function(o0,ri){var _l=Object.freeze({loose:!0}),Fl=Object.freeze({}),Bl=(e)=>{if(!e)return Fl;if(typeof e!=="object")return _l;return e};ri.exports=Bl});var ys=m(function(a0,oi){var ii=/^[0-9]+$/,ni=(e,t)=>{if(typeof e==="number"&&typeof t==="number")return e===t?0:e<t?-1:1;let s=ii.test(e),r=ii.test(t);if(s&&r)e=+e,t=+t;return e===t?0:s&&!r?-1:r&&!s?1:e<t?-1:1},jl=(e,t)=>ni(t,e);oi.exports={compareIdentifiers:ni,rcompareIdentifiers:jl}});var x=m(function(l0,li){var ht=De(),{MAX_LENGTH:ai,MAX_SAFE_INTEGER:pt}=we(),{safeRe:dt,t:mt}=Ee(),Ul=ft(),{compareIdentifiers:Ss}=ys(),Kl=(e,t)=>{let s=t.split(".");if(s.length>e.length)return!1;for(let r=0;r<s.length;r++)if(Ss(e[r],s[r])!==0)return!1;return!0};class G{constructor(e,t){if(t=Ul(t),e instanceof G)if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;else e=e.version;else if(typeof e!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ai)throw TypeError(`version is longer than ${ai} characters`);ht("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let s=e.trim().match(t.loose?dt[mt.LOOSE]:dt[mt.FULL]);if(!s)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>pt||this.major<0)throw TypeError("Invalid major version");if(this.minor>pt||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>pt||this.patch<0)throw TypeError("Invalid patch version");if(!s[4])this.prerelease=[];else this.prerelease=s[4].split(".").map((r)=>{if(/^[0-9]+$/.test(r)){let i=+r;if(i>=0&&i<pt)return i}return r});this.build=s[5]?s[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(e){if(ht("SemVer.compare",this.version,this.options,e),!(e instanceof G)){if(typeof e==="string"&&e===this.version)return 0;e=new G(e,this.options)}if(e.version===this.version)return 0;return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof G))e=new G(e,this.options);if(this.major<e.major)return-1;if(this.major>e.major)return 1;if(this.minor<e.minor)return-1;if(this.minor>e.minor)return 1;if(this.patch<e.patch)return-1;if(this.patch>e.patch)return 1;return 0}comparePre(e){if(!(e instanceof G))e=new G(e,this.options);if(this.prerelease.length&&!e.prerelease.length)return-1;else if(!this.prerelease.length&&e.prerelease.length)return 1;else if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let s=this.prerelease[t],r=e.prerelease[t];if(ht("prerelease compare",t,s,r),s===void 0&&r===void 0)return 0;else if(r===void 0)return 1;else if(s===void 0)return-1;else if(s===r)continue;else return Ss(s,r)}while(++t)}compareBuild(e){if(!(e instanceof G))e=new G(e,this.options);let t=0;do{let s=this.build[t],r=e.build[t];if(ht("build compare",t,s,r),s===void 0&&r===void 0)return 0;else if(r===void 0)return 1;else if(s===void 0)return-1;else if(s===r)continue;else return Ss(s,r)}while(++t)}inc(e,t,s){if(e.startsWith("pre")){if(!t&&s===!1)throw Error("invalid increment argument: identifier is empty");if(t){let r=`-${t}`.match(this.options.loose?dt[mt.PRERELEASELOOSE]:dt[mt.PRERELEASE]);if(!r||r[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,s),this.inc("pre",t,s);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",t,s);this.inc("pre",t,s);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let r=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let i=this.prerelease.length;while(--i>=0)if(typeof this.prerelease[i]==="number")this.prerelease[i]++,i=-2;if(i===-1){if(t===this.prerelease.join(".")&&s===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(t){let i=[t,r];if(s===!1)i=[t];if(Kl(this.prerelease,t)){let n=this.prerelease[t.split(".").length];if(isNaN(n))this.prerelease=i}else this.prerelease=i}break}default:throw Error(`invalid increment argument: ${e}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}li.exports=G});var ee=m(function(c0,ui){var ci=x(),Vl=(e,t,s=!1)=>{if(e instanceof ci)return e;try{return new ci(e,t)}catch(r){if(!s)return null;throw r}};ui.exports=Vl});var hi=m(function(u0,fi){var Gl=ee(),Yl=(e,t)=>{let s=Gl(e,t);return s?s.version:null};fi.exports=Yl});var di=m(function(f0,pi){var Jl=ee(),Xl=(e,t)=>{let s=Jl(e.trim().replace(/^[=v]+/,""),t);return s?s.version:null};pi.exports=Xl});var yi=m(function(h0,gi){var mi=x(),Hl=(e,t,s,r,i)=>{if(typeof s==="string")i=r,r=s,s=void 0;try{return new mi(e instanceof mi?e.version:e,s).inc(t,r,i).version}catch(n){return null}};gi.exports=Hl});var wi=m(function(p0,bi){var Si=ee(),Wl=(e,t)=>{let s=Si(e,null,!0),r=Si(t,null,!0),i=s.compare(r);if(i===0)return null;let n=i>0,o=n?s:r,a=n?r:s,l=!!o.prerelease.length;if(!!a.prerelease.length&&!l){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0){if(a.minor&&!a.patch)return"minor";return"patch"}}let h=l?"pre":"";if(s.major!==r.major)return h+"major";if(s.minor!==r.minor)return h+"minor";if(s.patch!==r.patch)return h+"patch";return"prerelease"};bi.exports=Wl});var vi=m(function(d0,Ei){var Ql=x(),zl=(e,t)=>new Ql(e,t).major;Ei.exports=zl});var Ai=m(function(m0,Ni){var Zl=x(),ec=(e,t)=>new Zl(e,t).minor;Ni.exports=ec});var Oi=m(function(g0,Li){var tc=x(),sc=(e,t)=>new tc(e,t).patch;Li.exports=sc});var Ii=m(function(y0,ki){var rc=ee(),ic=(e,t)=>{let s=rc(e,t);return s&&s.prerelease.length?s.prerelease:null};ki.exports=ic});var j=m(function(S0,$i){var Ti=x(),nc=(e,t,s)=>new Ti(e,s).compare(new Ti(t,s));$i.exports=nc});var Ri=m(function(b0,qi){var oc=j(),ac=(e,t,s)=>oc(t,e,s);qi.exports=ac});var Di=m(function(w0,Ci){var lc=j(),cc=(e,t)=>lc(e,t,!0);Ci.exports=cc});var gt=m(function(E0,Pi){var Mi=x(),uc=(e,t,s)=>{let r=new Mi(e,s),i=new Mi(t,s);return r.compare(i)||r.compareBuild(i)};Pi.exports=uc});var _i=m(function(v0,xi){var fc=gt(),hc=(e,t)=>e.sort((s,r)=>fc(s,r,t));xi.exports=hc});var Bi=m(function(N0,Fi){var pc=gt(),dc=(e,t)=>e.sort((s,r)=>pc(r,s,t));Fi.exports=dc});var Me=m(function(A0,ji){var mc=j(),gc=(e,t,s)=>mc(e,t,s)>0;ji.exports=gc});var yt=m(function(L0,Ui){var yc=j(),Sc=(e,t,s)=>yc(e,t,s)<0;Ui.exports=Sc});var bs=m(function(O0,Ki){var bc=j(),wc=(e,t,s)=>bc(e,t,s)===0;Ki.exports=wc});var ws=m(function(k0,Vi){var Ec=j(),vc=(e,t,s)=>Ec(e,t,s)!==0;Vi.exports=vc});var St=m(function(I0,Gi){var Nc=j(),Ac=(e,t,s)=>Nc(e,t,s)>=0;Gi.exports=Ac});var bt=m(function(T0,Yi){var Lc=j(),Oc=(e,t,s)=>Lc(e,t,s)<=0;Yi.exports=Oc});var Es=m(function($0,Ji){var kc=bs(),Ic=ws(),Tc=Me(),$c=St(),qc=yt(),Rc=bt(),Cc=(e,t,s,r)=>{switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof s==="object")s=s.version;return e===s;case"!==":if(typeof e==="object")e=e.version;if(typeof s==="object")s=s.version;return e!==s;case"":case"=":case"==":return kc(e,s,r);case"!=":return Ic(e,s,r);case">":return Tc(e,s,r);case">=":return $c(e,s,r);case"<":return qc(e,s,r);case"<=":return Rc(e,s,r);default:throw TypeError(`Invalid operator: ${t}`)}};Ji.exports=Cc});var Hi=m(function(q0,Xi){var Dc=x(),Mc=ee(),{safeRe:wt,t:Et}=Ee(),Pc=(e,t)=>{if(e instanceof Dc)return e;if(typeof e==="number")e=String(e);if(typeof e!=="string")return null;t=t||{};let s=null;if(!t.rtl)s=e.match(t.includePrerelease?wt[Et.COERCEFULL]:wt[Et.COERCE]);else{let l=t.includePrerelease?wt[Et.COERCERTLFULL]:wt[Et.COERCERTL],c;while((c=l.exec(e))&&(!s||s.index+s[0].length!==e.length)){if(!s||c.index+c[0].length!==s.index+s[0].length)s=c;l.lastIndex=c.index+c[1].length+c[2].length}l.lastIndex=-1}if(s===null)return null;let r=s[2],i=s[3]||"0",n=s[4]||"0",o=t.includePrerelease&&s[5]?`-${s[5]}`:"",a=t.includePrerelease&&s[6]?`+${s[6]}`:"";return Mc(`${r}.${i}.${n}${o}${a}`,t)};Xi.exports=Pc});var Qi=m(function(R0,Wi){var xc=ee(),_c=we(),Fc=x(),Bc=(e,t,s)=>{if(!_c.RELEASE_TYPES.includes(t))return null;let r=jc(e,s);return r&&Uc(r,t)},jc=(e,t)=>{let s=e instanceof Fc?e.version:e;return xc(s,t)},Uc=(e,t)=>{if(Kc(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},Kc=(e)=>e.startsWith("pre");Wi.exports=Bc});var en=m(function(C0,Zi){class zi{constructor(){this.max=1000,this.map=new Map}get(e){let t=this.map.get(e);if(t===void 0)return;else return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let r=this.map.keys().next().value;this.delete(r)}this.map.set(e,t)}return this}}Zi.exports=zi});var U=m(function(D0,nn){var Vc=/\s+/g;class Pe{constructor(e,t){if(t=Yc(t),e instanceof Pe)if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;else return new Pe(e.raw,t);if(e instanceof vs)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Vc," "),this.set=this.raw.split("||").map((s)=>this.parseRange(s.trim())).filter((s)=>s.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter((r)=>!sn(r[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&tu(r[0])){this.set=[r];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0)this.formatted+="||";let t=this.set[e];for(let s=0;s<t.length;s++){if(s>0)this.formatted+=" ";this.formatted+=t[s].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(eu,"");let s=((this.options.includePrerelease&&zc)|(this.options.loose&&Zc))+":"+e,r=tn.get(s);if(r)return r;let i=this.options.loose,n=i?F[_.HYPHENRANGELOOSE]:F[_.HYPHENRANGE];e=e.replace(n,hu(this.options.includePrerelease)),q("hyphen replace",e),e=e.replace(F[_.COMPARATORTRIM],Hc),q("comparator trim",e),e=e.replace(F[_.TILDETRIM],Wc),q("tilde trim",e),e=e.replace(F[_.CARETTRIM],Qc),q("caret trim",e);let o=e.split(" ").map((h)=>su(h,this.options)).join(" ").split(/\s+/).map((h)=>fu(h,this.options));if(i)o=o.filter((h)=>(q("loose invalid filter",h,this.options),!!h.match(F[_.COMPARATORLOOSE])));q("range list",o);let a=new Map,l=o.map((h)=>new vs(h,this.options));for(let h of l){if(sn(h))return[h];a.set(h.value,h)}if(a.size>1&&a.has(""))a.delete("");let c=[...a.values()];return tn.set(s,c),c}intersects(e,t){if(!(e instanceof Pe))throw TypeError("a Range is required");return this.set.some((s)=>rn(s,t)&&e.set.some((r)=>rn(r,t)&&s.every((i)=>r.every((n)=>i.intersects(n,t)))))}test(e){if(!e)return!1;if(typeof e==="string")try{e=new Jc(e,this.options)}catch(t){return!1}for(let t=0;t<this.set.length;t++)if(pu(this.set[t],e,this.options))return!0;return!1}}nn.exports=Pe;var Gc=en(),tn=new Gc,Yc=ft(),vs=xe(),q=De(),Jc=x(),{safeRe:F,src:Xc,t:_,comparatorTrimReplace:Hc,tildeTrimReplace:Wc,caretTrimReplace:Qc}=Ee(),{FLAG_INCLUDE_PRERELEASE:zc,FLAG_LOOSE:Zc}=we(),eu=new RegExp(Xc[_.BUILD],"g"),sn=(e)=>e.value==="<0.0.0-0",tu=(e)=>e.value==="",rn=(e,t)=>{let s=!0,r=e.slice(),i=r.pop();while(s&&r.length)s=r.every((n)=>i.intersects(n,t)),i=r.pop();return s},su=(e,t)=>(e=e.replace(F[_.BUILD],""),q("comp",e,t),e=ou(e,t),q("caret",e),e=iu(e,t),q("tildes",e),e=lu(e,t),q("xrange",e),e=uu(e,t),q("stars",e),e),M=(e)=>!e||e.toLowerCase()==="x"||e==="*",ru=(e,t,s)=>M(e)&&!M(t)||M(t)&&s&&!M(s),iu=(e,t)=>e.trim().split(/\s+/).map((s)=>nu(s,t)).join(" "),nu=(e,t)=>{let s=t.loose?F[_.TILDELOOSE]:F[_.TILDE],r=t.includePrerelease?"-0":"";return e.replace(s,(i,n,o,a,l)=>{q("tilde",e,i,n,o,a,l);let c;if(M(n))c="";else if(M(o))c=`>=${n}.0.0${r} <${+n+1}.0.0-0`;else if(M(a))c=`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`;else if(l)q("replaceTilde pr",l),c=`>=${n}.${o}.${a}-${l} <${n}.${+o+1}.0-0`;else c=`>=${n}.${o}.${a} <${n}.${+o+1}.0-0`;return q("tilde return",c),c})},ou=(e,t)=>e.trim().split(/\s+/).map((s)=>au(s,t)).join(" "),au=(e,t)=>{q("caret",e,t);let s=t.loose?F[_.CARETLOOSE]:F[_.CARET],r=t.includePrerelease?"-0":"";return e.replace(s,(i,n,o,a,l)=>{q("caret",e,i,n,o,a,l);let c;if(M(n))c="";else if(M(o))c=`>=${n}.0.0${r} <${+n+1}.0.0-0`;else if(M(a))if(n==="0")c=`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`;else c=`>=${n}.${o}.0${r} <${+n+1}.0.0-0`;else if(l)if(q("replaceCaret pr",l),n==="0")if(o==="0")c=`>=${n}.${o}.${a}-${l} <${n}.${o}.${+a+1}-0`;else c=`>=${n}.${o}.${a}-${l} <${n}.${+o+1}.0-0`;else c=`>=${n}.${o}.${a}-${l} <${+n+1}.0.0-0`;else if(q("no pr"),n==="0")if(o==="0")c=`>=${n}.${o}.${a} <${n}.${o}.${+a+1}-0`;else c=`>=${n}.${o}.${a} <${n}.${+o+1}.0-0`;else c=`>=${n}.${o}.${a} <${+n+1}.0.0-0`;return q("caret return",c),c})},lu=(e,t)=>(q("replaceXRanges",e,t),e.split(/\s+/).map((s)=>cu(s,t)).join(" ")),cu=(e,t)=>{e=e.trim();let s=t.loose?F[_.XRANGELOOSE]:F[_.XRANGE];return e.replace(s,(r,i,n,o,a,l)=>{if(q("xRange",e,r,i,n,o,a,l),ru(n,o,a))return e;let c=M(n),h=c||M(o),u=h||M(a),f=u;if(i==="="&&f)i="";if(l=t.includePrerelease?"-0":"",c)if(i===">"||i==="<")r="<0.0.0-0";else r="*";else if(i&&f){if(h)o=0;if(a=0,i===">")if(i=">=",h)n=+n+1,o=0,a=0;else o=+o+1,a=0;else if(i==="<=")if(i="<",h)n=+n+1;else o=+o+1;if(i==="<")l="-0";r=`${i+n}.${o}.${a}${l}`}else if(h)r=`>=${n}.0.0${l} <${+n+1}.0.0-0`;else if(u)r=`>=${n}.${o}.0${l} <${n}.${+o+1}.0-0`;return q("xRange return",r),r})},uu=(e,t)=>(q("replaceStars",e,t),e.trim().replace(F[_.STAR],"")),fu=(e,t)=>(q("replaceGTE0",e,t),e.trim().replace(F[t.includePrerelease?_.GTE0PRE:_.GTE0],"")),hu=(e)=>(t,s,r,i,n,o,a,l,c,h,u,f)=>{if(M(r))s="";else if(M(i))s=`>=${r}.0.0${e?"-0":""}`;else if(M(n))s=`>=${r}.${i}.0${e?"-0":""}`;else if(o)s=`>=${s}`;else s=`>=${s}${e?"-0":""}`;if(M(c))l="";else if(M(h))l=`<${+c+1}.0.0-0`;else if(M(u))l=`<${c}.${+h+1}.0-0`;else if(f)l=`<=${c}.${h}.${u}-${f}`;else if(e)l=`<${c}.${h}.${+u+1}-0`;else l=`<=${l}`;return`${s} ${l}`.trim()},pu=(e,t,s)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!s.includePrerelease){for(let r=0;r<e.length;r++){if(q(e[r].semver),e[r].semver===vs.ANY)continue;if(e[r].semver.prerelease.length>0){let i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}}return!1}return!0}});var xe=m(function(M0,fn){var _e=Symbol("SemVer ANY");class vt{static get ANY(){return _e}constructor(e,t){if(t=on(t),e instanceof vt)if(e.loose===!!t.loose)return e;else e=e.value;if(e=e.trim().split(/\s+/).join(" "),As("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===_e)this.value="";else this.value=this.operator+this.semver.version;As("comp",this)}parse(e){let t=this.options.loose?an[ln.COMPARATORLOOSE]:an[ln.COMPARATOR],s=e.match(t);if(!s)throw TypeError(`Invalid comparator: ${e}`);if(this.operator=s[1]!==void 0?s[1]:"",this.operator==="=")this.operator="";if(!s[2])this.semver=_e;else this.semver=new cn(s[2],this.options.loose)}toString(){return this.value}test(e){if(As("Comparator.test",e,this.options.loose),this.semver===_e||e===_e)return!0;if(typeof e==="string")try{e=new cn(e,this.options)}catch(t){return!1}return Ns(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof vt))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new un(e.value,t).test(this.value)}else if(e.operator===""){if(e.value==="")return!0;return new un(this.value,t).test(e.semver)}if(t=on(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0"))return!1;if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&e.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&e.operator.startsWith("<"))return!0;if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("="))return!0;if(Ns(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))return!0;if(Ns(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))return!0;return!1}}fn.exports=vt;var on=ft(),{safeRe:an,t:ln}=Ee(),Ns=Es(),As=De(),cn=x(),un=U()});var Fe=m(function(P0,hn){var du=U(),mu=(e,t,s)=>{try{t=new du(t,s)}catch(r){return!1}return t.test(e)};hn.exports=mu});var dn=m(function(x0,pn){var gu=U(),yu=(e,t)=>new gu(e,t).set.map((s)=>s.map((r)=>r.value).join(" ").trim().split(" "));pn.exports=yu});var gn=m(function(_0,mn){var Su=x(),bu=U(),wu=(e,t,s)=>{let r=null,i=null,n=null;try{n=new bu(t,s)}catch(o){return null}return e.forEach((o)=>{if(n.test(o)){if(!r||i.compare(o)===-1)r=o,i=new Su(r,s)}}),r};mn.exports=wu});var Sn=m(function(F0,yn){var Eu=x(),vu=U(),Nu=(e,t,s)=>{let r=null,i=null,n=null;try{n=new vu(t,s)}catch(o){return null}return e.forEach((o)=>{if(n.test(o)){if(!r||i.compare(o)===1)r=o,i=new Eu(r,s)}}),r};yn.exports=Nu});var En=m(function(B0,wn){var Ls=x(),Au=U(),bn=Me(),Lu=(e,t)=>{e=new Au(e,t);let s=new Ls("0.0.0");if(e.test(s))return s;if(s=new Ls("0.0.0-0"),e.test(s))return s;s=null;for(let r=0;r<e.set.length;++r){let i=e.set[r],n=null;if(i.forEach((o)=>{let a=new Ls(o.semver.version);switch(o.operator){case">":if(a.prerelease.length===0)a.patch++;else a.prerelease.push(0);a.raw=a.format();case"":case">=":if(!n||bn(a,n))n=a;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${o.operator}`)}}),n&&(!s||bn(s,n)))s=n}if(s&&e.test(s))return s;return null};wn.exports=Lu});var Nn=m(function(j0,vn){var Ou=U(),ku=(e,t)=>{try{return new Ou(e,t).range||"*"}catch(s){return null}};vn.exports=ku});var Nt=m(function(U0,kn){var Iu=x(),On=xe(),{ANY:Tu}=On,$u=U(),qu=Fe(),An=Me(),Ln=yt(),Ru=bt(),Cu=St(),Du=(e,t,s,r)=>{e=new Iu(e,r),t=new $u(t,r);let i,n,o,a,l;switch(s){case">":i=An,n=Ru,o=Ln,a=">",l=">=";break;case"<":i=Ln,n=Cu,o=An,a="<",l="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(qu(e,t,r))return!1;for(let c=0;c<t.set.length;++c){let h=t.set[c],u=null,f=null;if(h.forEach((p)=>{if(p.semver===Tu)p=new On(">=0.0.0");if(u=u||p,f=f||p,i(p.semver,u.semver,r))u=p;else if(o(p.semver,f.semver,r))f=p}),u.operator===a||u.operator===l)return!1;if((!f.operator||f.operator===a)&&n(e,f.semver))return!1;else if(f.operator===l&&o(e,f.semver))return!1}return!0};kn.exports=Du});var Tn=m(function(K0,In){var Mu=Nt(),Pu=(e,t,s)=>Mu(e,t,">",s);In.exports=Pu});var qn=m(function(V0,$n){var xu=Nt(),_u=(e,t,s)=>xu(e,t,"<",s);$n.exports=_u});var Dn=m(function(G0,Cn){var Rn=U(),Fu=(e,t,s)=>(e=new Rn(e,s),t=new Rn(t,s),e.intersects(t,s));Cn.exports=Fu});var Pn=m(function(Y0,Mn){var Bu=Fe(),ju=j();Mn.exports=(e,t,s)=>{let r=[],i=null,n=null,o=e.sort((h,u)=>ju(h,u,s));for(let h of o)if(Bu(h,t,s)){if(n=h,!i)i=h}else{if(n)r.push([i,n]);n=null,i=null}if(i)r.push([i,null]);let a=[];for(let[h,u]of r)if(h===u)a.push(h);else if(!u&&h===o[0])a.push("*");else if(!u)a.push(`>=${h}`);else if(h===o[0])a.push(`<=${u}`);else a.push(`${h} - ${u}`);let l=a.join(" || "),c=typeof t.raw==="string"?t.raw:String(t);return l.length<c.length?l:t}});var Un=m(function(J0,jn){var xn=U(),Is=xe(),{ANY:Os}=Is,ks=Fe(),Ts=j(),Uu=(e,t,s={})=>{if(e===t)return!0;e=new xn(e,s),t=new xn(t,s);let r=!1;e:for(let i of e.set){for(let n of t.set){let o=Vu(i,n,s);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},Ku=[new Is(">=0.0.0-0")],_n=[new Is(">=0.0.0")],Vu=(e,t,s)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Os)if(t.length===1&&t[0].semver===Os)return!0;else if(s.includePrerelease)e=Ku;else e=_n;if(t.length===1&&t[0].semver===Os)if(s.includePrerelease)return!0;else t=_n;let r=new Set,i,n;for(let p of e)if(p.operator===">"||p.operator===">=")i=Fn(i,p,s);else if(p.operator==="<"||p.operator==="<=")n=Bn(n,p,s);else r.add(p.semver);if(r.size>1)return null;let o;if(i&&n){if(o=Ts(i.semver,n.semver,s),o>0)return null;else if(o===0&&(i.operator!==">="||n.operator!=="<="))return null}for(let p of r){if(i&&!ks(p,String(i),s))return null;if(n&&!ks(p,String(n),s))return null;for(let y of t)if(!ks(p,String(y),s))return!1;return!0}let a,l,c,h,u=n&&!s.includePrerelease&&n.semver.prerelease.length?n.semver:!1,f=i&&!s.includePrerelease&&i.semver.prerelease.length?i.semver:!1;if(u&&u.prerelease.length===1&&n.operator==="<"&&u.prerelease[0]===0)u=!1;for(let p of t){if(h=h||p.operator===">"||p.operator===">=",c=c||p.operator==="<"||p.operator==="<=",i){if(f){if(p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch)f=!1}if(p.operator===">"||p.operator===">="){if(a=Fn(i,p,s),a===p&&a!==i)return!1}else if(i.operator===">="&&!p.test(i.semver))return!1}if(n){if(u){if(p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===u.major&&p.semver.minor===u.minor&&p.semver.patch===u.patch)u=!1}if(p.operator==="<"||p.operator==="<="){if(l=Bn(n,p,s),l===p&&l!==n)return!1}else if(n.operator==="<="&&!p.test(n.semver))return!1}if(!p.operator&&(n||i)&&o!==0)return!1}if(i&&c&&!n&&o!==0)return!1;if(n&&h&&!i&&o!==0)return!1;if(f||u)return!1;return!0},Fn=(e,t,s)=>{if(!e)return t;let r=Ts(e.semver,t.semver,s);return r>0?e:r<0?t:t.operator===">"&&e.operator===">="?t:e},Bn=(e,t,s)=>{if(!e)return t;let r=Ts(e.semver,t.semver,s);return r<0?e:r>0?t:t.operator==="<"&&e.operator==="<="?t:e};jn.exports=Uu});var Yn=m(function(X0,Gn){var $s=Ee(),Kn=we(),Gu=x(),Vn=ys(),Yu=ee(),Ju=hi(),Xu=di(),Hu=yi(),Wu=wi(),Qu=vi(),zu=Ai(),Zu=Oi(),ef=Ii(),tf=j(),sf=Ri(),rf=Di(),nf=gt(),of=_i(),af=Bi(),lf=Me(),cf=yt(),uf=bs(),ff=ws(),hf=St(),pf=bt(),df=Es(),mf=Hi(),gf=Qi(),yf=xe(),Sf=U(),bf=Fe(),wf=dn(),Ef=gn(),vf=Sn(),Nf=En(),Af=Nn(),Lf=Nt(),Of=Tn(),kf=qn(),If=Dn(),Tf=Pn(),$f=Un();Gn.exports={parse:Yu,valid:Ju,clean:Xu,inc:Hu,diff:Wu,major:Qu,minor:zu,patch:Zu,prerelease:ef,compare:tf,rcompare:sf,compareLoose:rf,compareBuild:nf,sort:of,rsort:af,gt:lf,lt:cf,eq:uf,neq:ff,gte:hf,lte:pf,cmp:df,coerce:mf,truncate:gf,Comparator:yf,Range:Sf,satisfies:bf,toComparators:wf,maxSatisfying:Ef,minSatisfying:vf,minVersion:Nf,validRange:Af,outside:Lf,gtr:Of,ltr:kf,intersects:If,simplifyRange:Tf,subset:$f,SemVer:Gu,re:$s.re,src:$s.src,tokens:$s.t,SEMVER_SPEC_VERSION:Kn.SEMVER_SPEC_VERSION,RELEASE_TYPES:Kn.RELEASE_TYPES,compareIdentifiers:Vn.compareIdentifiers,rcompareIdentifiers:Vn.rcompareIdentifiers}});var I=m(function(Bf){var qs=Symbol.for("yaml.alias"),Wn=Symbol.for("yaml.document"),At=Symbol.for("yaml.map"),Qn=Symbol.for("yaml.pair"),Rs=Symbol.for("yaml.scalar"),Lt=Symbol.for("yaml.seq"),Q=Symbol.for("yaml.node.type"),Cf=(e)=>!!e&&typeof e==="object"&&e[Q]===qs,Df=(e)=>!!e&&typeof e==="object"&&e[Q]===Wn,Mf=(e)=>!!e&&typeof e==="object"&&e[Q]===At,Pf=(e)=>!!e&&typeof e==="object"&&e[Q]===Qn,zn=(e)=>!!e&&typeof e==="object"&&e[Q]===Rs,xf=(e)=>!!e&&typeof e==="object"&&e[Q]===Lt;function Zn(e){if(e&&typeof e==="object")switch(e[Q]){case At:case Lt:return!0}return!1}function _f(e){if(e&&typeof e==="object")switch(e[Q]){case qs:case At:case Rs:case Lt:return!0}return!1}var Ff=(e)=>(zn(e)||Zn(e))&&!!e.anchor;Bf.ALIAS=qs;Bf.DOC=Wn;Bf.MAP=At;Bf.NODE_TYPE=Q;Bf.PAIR=Qn;Bf.SCALAR=Rs;Bf.SEQ=Lt;Bf.hasAnchor=Ff;Bf.isAlias=Cf;Bf.isCollection=Zn;Bf.isDocument=Df;Bf.isMap=Mf;Bf.isNode=_f;Bf.isPair=Pf;Bf.isScalar=zn;Bf.isSeq=xf});var Be=m(function(rh){var P=I(),B=Symbol("break visit"),eo=Symbol("skip children"),H=Symbol("remove node");function Ot(e,t){let s=to(t);if(P.isDocument(e)){if(ve(null,e.contents,s,Object.freeze([e]))===H)e.contents=null}else ve(null,e,s,Object.freeze([]))}Ot.BREAK=B;Ot.SKIP=eo;Ot.REMOVE=H;function ve(e,t,s,r){let i=so(e,t,s,r);if(P.isNode(i)||P.isPair(i))return ro(e,r,i),ve(e,i,s,r);if(typeof i!=="symbol"){if(P.isCollection(t)){r=Object.freeze(r.concat(t));for(let n=0;n<t.items.length;++n){let o=ve(n,t.items[n],s,r);if(typeof o==="number")n=o-1;else if(o===B)return B;else if(o===H)t.items.splice(n,1),n-=1}}else if(P.isPair(t)){r=Object.freeze(r.concat(t));let n=ve("key",t.key,s,r);if(n===B)return B;else if(n===H)t.key=null;let o=ve("value",t.value,s,r);if(o===B)return B;else if(o===H)t.value=null}}return i}async function kt(e,t){let s=to(t);if(P.isDocument(e)){if(await Ne(null,e.contents,s,Object.freeze([e]))===H)e.contents=null}else await Ne(null,e,s,Object.freeze([]))}kt.BREAK=B;kt.SKIP=eo;kt.REMOVE=H;async function Ne(e,t,s,r){let i=await so(e,t,s,r);if(P.isNode(i)||P.isPair(i))return ro(e,r,i),Ne(e,i,s,r);if(typeof i!=="symbol"){if(P.isCollection(t)){r=Object.freeze(r.concat(t));for(let n=0;n<t.items.length;++n){let o=await Ne(n,t.items[n],s,r);if(typeof o==="number")n=o-1;else if(o===B)return B;else if(o===H)t.items.splice(n,1),n-=1}}else if(P.isPair(t)){r=Object.freeze(r.concat(t));let n=await Ne("key",t.key,s,r);if(n===B)return B;else if(n===H)t.key=null;let o=await Ne("value",t.value,s,r);if(o===B)return B;else if(o===H)t.value=null}}return i}function to(e){if(typeof e==="object"&&(e.Collection||e.Node||e.Value))return Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e);return e}function so(e,t,s,r){if(typeof s==="function")return s(e,t,r);if(P.isMap(t))return s.Map?.(e,t,r);if(P.isSeq(t))return s.Seq?.(e,t,r);if(P.isPair(t))return s.Pair?.(e,t,r);if(P.isScalar(t))return s.Scalar?.(e,t,r);if(P.isAlias(t))return s.Alias?.(e,t,r);return}function ro(e,t,s){let r=t[t.length-1];if(P.isCollection(r))r.items[e]=s;else if(P.isPair(r))if(e==="key")r.key=s;else r.value=s;else if(P.isDocument(r))r.contents=s;else{let i=P.isAlias(r)?"alias":"scalar";throw Error(`Cannot replace node with ${i} parent`)}}rh.visit=Ot;rh.visitAsync=kt});var Cs=m(function(ch){var io=I(),oh=Be(),ah={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},lh=(e)=>e.replace(/[!,[\]{}]/g,(t)=>ah[t]);class K{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},K.defaultYaml,e),this.tags=Object.assign({},K.defaultTags,t)}clone(){let e=new K(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new K(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:K.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},K.defaultTags);break}return e}add(e,t){if(this.atNextDocument)this.yaml={explicit:K.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},K.defaultTags),this.atNextDocument=!1;let s=e.trim().split(/[ \t]+/),r=s.shift();switch(r){case"%TAG":{if(s.length!==2){if(t(0,"%TAG directive should contain exactly two parts"),s.length<2)return!1}let[i,n]=s;return this.tags[i]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[i]=s;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;else{let n=/^\d+\.\d+$/.test(i);return t(6,`Unsupported YAML version ${i}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let n=e.slice(2,-1);if(n==="!"||n==="!!")return t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null;if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return n}let[,s,r]=e.match(/^(.*!)([^!]*)$/s);if(!r)t(`The ${e} tag has no suffix`);let i=this.tags[s];if(i)try{return i+decodeURIComponent(r)}catch(n){return t(String(n)),null}if(s==="!")return e;return t(`Could not resolve tag: ${e}`),null}tagString(e){for(let[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+lh(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags),r;if(e&&s.length>0&&io.isNode(e.contents)){let i={};oh.visit(e.contents,(n,o)=>{if(io.isNode(o)&&o.tag)i[o.tag]=!0}),r=Object.keys(i)}else r=[];for(let[i,n]of s){if(i==="!!"&&n==="tag:yaml.org,2002:")continue;if(!e||r.some((o)=>o.startsWith(n)))t.push(`%TAG ${i} ${n}`)}return t.join(`
3
+ `)}}K.defaultYaml={explicit:!1,version:"1.2"};K.defaultTags={"!!":"tag:yaml.org,2002:"};ch.Directives=K});var It=m(function(dh){var no=I(),fh=Be();function hh(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let s=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(s)}return!0}function oo(e){let t=new Set;return fh.visit(e,{Value(s,r){if(r.anchor)t.add(r.anchor)}}),t}function ao(e,t){for(let s=1;;++s){let r=`${e}${s}`;if(!t.has(r))return r}}function ph(e,t){let s=[],r=new Map,i=null;return{onAnchor:(n)=>{s.push(n),i??(i=oo(e));let o=ao(t,i);return i.add(o),o},setAnchors:()=>{for(let n of s){let o=r.get(n);if(typeof o==="object"&&o.anchor&&(no.isScalar(o.node)||no.isCollection(o.node)))o.node.anchor=o.anchor;else{let a=Error("Failed to resolve repeated object (this should not happen)");throw a.source=n,a}}},sourceObjects:r}}dh.anchorIsValid=hh;dh.anchorNames=oo;dh.createNodeAnchors=ph;dh.findNewAnchor=ao});var Ds=m(function(bh){function je(e,t,s,r){if(r&&typeof r==="object")if(Array.isArray(r))for(let i=0,n=r.length;i<n;++i){let o=r[i],a=je(e,r,String(i),o);if(a===void 0)delete r[i];else if(a!==o)r[i]=a}else if(r instanceof Map)for(let i of Array.from(r.keys())){let n=r.get(i),o=je(e,r,i,n);if(o===void 0)r.delete(i);else if(o!==n)r.set(i,o)}else if(r instanceof Set)for(let i of Array.from(r)){let n=je(e,r,i,i);if(n===void 0)r.delete(i);else if(n!==i)r.delete(i),r.add(n)}else for(let[i,n]of Object.entries(r)){let o=je(e,r,i,n);if(o===void 0)delete r[i];else if(o!==n)r[i]=o}return e.call(t,s,r)}bh.applyReviver=je});var te=m(function(vh){var Eh=I();function lo(e,t,s){if(Array.isArray(e))return e.map((r,i)=>lo(r,String(i),s));if(e&&typeof e.toJSON==="function"){if(!s||!Eh.hasAnchor(e))return e.toJSON(t,s);let r={aliasCount:0,count:1,res:void 0};s.anchors.set(e,r),s.onCreate=(n)=>{r.res=n,delete s.onCreate};let i=e.toJSON(t,s);if(s.onCreate)s.onCreate(i);return i}if(typeof e==="bigint"&&!s?.keep)return Number(e);return e}vh.toJS=lo});var Tt=m(function(Oh){var Ah=Ds(),co=I(),Lh=te();class uo{constructor(e){Object.defineProperty(this,co.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:r,reviver:i}={}){if(!co.isDocument(e))throw TypeError("A document argument is required");let n={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s==="number"?s:100},o=Lh.toJS(this,"",n);if(typeof r==="function")for(let{count:a,res:l}of n.anchors.values())r(l,a);return typeof i==="function"?Ah.applyReviver(i,{"":o},"",o):o}}Oh.NodeBase=uo});var Ue=m(function(Rh){var Ih=It(),Th=Be(),Ae=I(),$h=Tt(),qh=te();class fo extends $h.NodeBase{constructor(e){super(Ae.ALIAS);this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");let s;if(t?.aliasResolveCache)s=t.aliasResolveCache;else if(s=[],Th.visit(e,{Node:(i,n)=>{if(Ae.isAlias(n)||Ae.hasAnchor(n))s.push(n)}}),t)t.aliasResolveCache=s;let r=void 0;for(let i of s){if(i===this)break;if(i.anchor===this.source)r=i}if(r&&t){let{anchors:i,doc:n,maxAliasCount:o}=t,a=i.get(r);if(!a)qh.toJS(r,null,t),a=i.get(r);if(a?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(o>=0){if(a.count+=1,a.aliasCount===0)a.aliasCount=$t(n,r,i);if(a.count*a.aliasCount>o)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}}return r}toJSON(e,t){if(!t)return{source:this.source};let s=this.resolve(t.doc,t);if(!s){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(r)}return t.anchors.get(s).res}toString(e,t,s){let r=`*${this.source}`;if(e){if(Ih.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(i)}if(e.implicitKey)return`${r} `}return r}}function $t(e,t,s){if(Ae.isAlias(t)){let r=t.resolve(e),i=s&&r&&s.get(r);return i?i.count*i.aliasCount:0}else if(Ae.isCollection(t)){let r=0;for(let i of t.items){let n=$t(e,i,s);if(n>r)r=n}return r}else if(Ae.isPair(t)){let r=$t(e,t.key,s),i=$t(e,t.value,s);return Math.max(r,i)}return 1}Rh.Alias=fo});var R=m(function(_h){var Dh=I(),Mh=Tt(),Ph=te(),xh=(e)=>!e||typeof e!=="function"&&typeof e!=="object";class fe extends Mh.NodeBase{constructor(e){super(Dh.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:Ph.toJS(this.value,e,t)}toString(){return String(this.value)}}fe.BLOCK_FOLDED="BLOCK_FOLDED";fe.BLOCK_LITERAL="BLOCK_LITERAL";fe.PLAIN="PLAIN";fe.QUOTE_DOUBLE="QUOTE_DOUBLE";fe.QUOTE_SINGLE="QUOTE_SINGLE";_h.Scalar=fe;_h.isScalarValue=xh});var Ke=m(function(Gh){var jh=Ue(),he=I(),ho=R(),Uh="tag:yaml.org,2002:";function Kh(e,t,s){if(t){let r=s.filter((n)=>n.tag===t),i=r.find((n)=>!n.format)??r[0];if(!i)throw Error(`Tag ${t} not found`);return i}return s.find((r)=>r.identify?.(e)&&!r.format)}function Vh(e,t,s){if(he.isDocument(e))e=e.contents;if(he.isNode(e))return e;if(he.isPair(e)){let u=s.schema[he.MAP].createNode?.(s.schema,null,s);return u.items.push(e),u}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)e=e.valueOf();let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:n,schema:o,sourceObjects:a}=s,l=void 0;if(r&&e&&typeof e==="object")if(l=a.get(e),l)return l.anchor??(l.anchor=i(e)),new jh.Alias(l.anchor);else l={anchor:null,node:null},a.set(e,l);if(t?.startsWith("!!"))t=Uh+t.slice(2);let c=Kh(e,t,o.tags);if(!c){if(e&&typeof e.toJSON==="function")e=e.toJSON();if(!e||typeof e!=="object"){let u=new ho.Scalar(e);if(l)l.node=u;return u}c=e instanceof Map?o[he.MAP]:(Symbol.iterator in Object(e))?o[he.SEQ]:o[he.MAP]}if(n)n(c),delete s.onTagObj;let h=c?.createNode?c.createNode(s.schema,e,s):typeof c?.nodeClass?.from==="function"?c.nodeClass.from(s.schema,e,s):new ho.Scalar(e);if(t)h.tag=t;else if(!c.default)h.tag=c.tag;if(l)l.node=h;return h}Gh.createNode=Vh});var qt=m(function(Hh){var Jh=Ke(),W=I(),Xh=Tt();function Ms(e,t,s){let r=s;for(let i=t.length-1;i>=0;--i){let n=t[i];if(typeof n==="number"&&Number.isInteger(n)&&n>=0){let o=[];o[n]=r,r=o}else r=new Map([[n,r]])}return Jh.createNode(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var po=(e)=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class mo extends Xh.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;if(t.items=t.items.map((s)=>W.isNode(s)||W.isPair(s)?s.clone(e):s),this.range)t.range=this.range.slice();return t}addIn(e,t){if(po(e))this.add(t);else{let[s,...r]=e,i=this.get(s,!0);if(W.isCollection(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(s,Ms(this.schema,r,t));else throw Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}}deleteIn(e){let[t,...s]=e;if(s.length===0)return this.delete(t);let r=this.get(t,!0);if(W.isCollection(r))return r.deleteIn(s);else throw Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){let[s,...r]=e,i=this.get(s,!0);if(r.length===0)return!t&&W.isScalar(i)?i.value:i;else return W.isCollection(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t)=>{if(!W.isPair(t))return!1;let s=t.value;return s==null||e&&W.isScalar(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){let[t,...s]=e;if(s.length===0)return this.has(t);let r=this.get(t,!0);return W.isCollection(r)?r.hasIn(s):!1}setIn(e,t){let[s,...r]=e;if(r.length===0)this.set(s,t);else{let i=this.get(s,!0);if(W.isCollection(i))i.setIn(r,t);else if(i===void 0&&this.schema)this.set(s,Ms(this.schema,r,t));else throw Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}}}Hh.Collection=mo;Hh.collectionFromPath=Ms;Hh.isEmptyPath=po});var Ve=m(function(tp){var Zh=(e)=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ps(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}var ep=(e,t,s)=>e.endsWith(`
4
+ `)?Ps(s,t):s.includes(`
5
+ `)?`
6
+ `+Ps(s,t):(e.endsWith(" ")?"":" ")+s;tp.indentComment=Ps;tp.lineComment=ep;tp.stringifyComment=Zh});var yo=m(function(op){function np(e,t,s="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:n=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return e;if(i<n)n=0;let l=Math.max(1+n,1+i-t.length);if(e.length<=l)return e;let c=[],h={},u=i-t.length;if(typeof r==="number")if(r>i-Math.max(2,n))c.push(0);else u=i-r;let f=void 0,p=void 0,y=!1,d=-1,g=-1,E=-1;if(s==="block"){if(d=go(e,d,t.length),d!==-1)u=d+l}for(let N;N=e[d+=1];){if(s==="quoted"&&N==="\\"){switch(g=d,e[d+1]){case"x":d+=3;break;case"u":d+=5;break;case"U":d+=9;break;default:d+=1}E=d}if(N===`
7
+ `){if(s==="block")d=go(e,d,t.length);u=d+t.length+l,f=void 0}else{if(N===" "&&p&&p!==" "&&p!==`
8
+ `&&p!=="\t"){let A=e[d+1];if(A&&A!==" "&&A!==`
9
+ `&&A!=="\t")f=d}if(d>=u)if(f)c.push(f),u=f+l,f=void 0;else if(s==="quoted"){while(p===" "||p==="\t")p=N,N=e[d+=1],y=!0;let A=d>E+1?d-2:g-1;if(h[A])return e;c.push(A),h[A]=!0,u=A+l,f=void 0}else y=!0}p=N}if(y&&a)a();if(c.length===0)return e;if(o)o();let v=e.slice(0,c[0]);for(let N=0;N<c.length;++N){let A=c[N],L=c[N+1]||e.length;if(A===0)v=`
10
+ ${t}${e.slice(0,L)}`;else{if(s==="quoted"&&h[A])v+=`${e[A]}\\`;v+=`
11
+ ${t}${e.slice(A+1,L)}`}}return v}function go(e,t,s){let r=t,i=t+1,n=e[i];while(n===" "||n==="\t")if(t<i+s)n=e[++t];else{do n=e[++t];while(n&&n!==`
12
+ `);r=t,i=t+1,n=e[i]}return r}op.FOLD_BLOCK="block";op.FOLD_FLOW="flow";op.FOLD_QUOTED="quoted";op.foldFlowLines=np});var Ye=m(function(dp){var Y=R(),se=yo(),Ct=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Dt=(e)=>/^(%|---|\.\.\.)/m.test(e);function fp(e,t,s){if(!t||t<0)return!1;let r=t-s,i=e.length;if(i<=r)return!1;for(let n=0,o=0;n<i;++n)if(e[n]===`
13
+ `){if(n-o>r)return!0;if(o=n+1,i-o<=r)return!1}return!0}function Ge(e,t){let s=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return s;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,n=t.indent||(Dt(e)?" ":""),o="",a=0;for(let l=0,c=s[l];c;c=s[++l]){if(c===" "&&s[l+1]==="\\"&&s[l+2]==="n")o+=s.slice(a,l)+"\\ ",l+=1,a=l,c="\\";if(c==="\\")switch(s[l+1]){case"u":{o+=s.slice(a,l);let h=s.substr(l+2,4);switch(h){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(h.substr(0,2)==="00")o+="\\x"+h.substr(2);else o+=s.substr(l,6)}l+=5,a=l+1}break;case"n":if(r||s[l+2]==='"'||s.length<i)l+=1;else{o+=s.slice(a,l)+`
14
+
15
+ `;while(s[l+2]==="\\"&&s[l+3]==="n"&&s[l+4]!=='"')o+=`
16
+ `,l+=2;if(o+=n,s[l+2]===" ")o+="\\";l+=1,a=l+1}break;default:l+=1}}return o=a?o+s.slice(a):s,r?o:se.foldFlowLines(o,n,se.FOLD_QUOTED,Ct(t,!1))}function xs(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
17
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Ge(e,t);let s=t.indent||(Dt(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
18
+ ${s}`)+"'";return t.implicitKey?r:se.foldFlowLines(r,s,se.FOLD_FLOW,Ct(t,!1))}function Le(e,t){let{singleQuote:s}=t.options,r;if(s===!1)r=Ge;else{let i=e.includes('"'),n=e.includes("'");if(i&&!n)r=xs;else if(n&&!i)r=Ge;else r=s?xs:Ge}return r(e,t)}var _s;try{_s=new RegExp(`(^|(?<!
19
+ ))
20
+ +(?!
21
+ |$)`,"g")}catch{_s=/\n+(?!\n|$)/g}function Rt({comment:e,type:t,value:s},r,i,n){let{blockQuote:o,commentString:a,lineWidth:l}=r.options;if(!o||/\n[\t ]+$/.test(s))return Le(s,r);let c=r.indent||(r.forceBlockIndent||Dt(s)?" ":""),h=o==="literal"?!0:o==="folded"||t===Y.Scalar.BLOCK_FOLDED?!1:t===Y.Scalar.BLOCK_LITERAL?!0:!fp(s,l,c.length);if(!s)return h?`|
22
+ `:`>
23
+ `;let u,f;for(f=s.length;f>0;--f){let L=s[f-1];if(L!==`
24
+ `&&L!=="\t"&&L!==" ")break}let p=s.substring(f),y=p.indexOf(`
25
+ `);if(y===-1)u="-";else if(s===p||y!==p.length-1){if(u="+",n)n()}else u="";if(p){if(s=s.slice(0,-p.length),p[p.length-1]===`
26
+ `)p=p.slice(0,-1);p=p.replace(_s,`$&${c}`)}let d=!1,g,E=-1;for(g=0;g<s.length;++g){let L=s[g];if(L===" ")d=!0;else if(L===`
27
+ `)E=g;else break}let v=s.substring(0,E<g?E+1:g);if(v)s=s.substring(v.length),v=v.replace(/\n+/g,`$&${c}`);let A=(d?c?"2":"1":"")+u;if(e){if(A+=" "+a(e.replace(/ ?[\r\n]+/g," ")),i)i()}if(!h){let L=s.replace(/\n+/g,`
28
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`),k=!1,T=Ct(r,!0);if(o!=="folded"&&t!==Y.Scalar.BLOCK_FOLDED)T.onOverflow=()=>{k=!0};let w=se.foldFlowLines(`${v}${L}${p}`,c,se.FOLD_BLOCK,T);if(!k)return`>${A}
29
+ ${c}${w}`}return s=s.replace(/\n+/g,`$&${c}`),`|${A}
30
+ ${c}${v}${s}${p}`}function hp(e,t,s,r){let{type:i,value:n}=e,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:h}=t;if(a&&n.includes(`
31
+ `)||h&&/[[\]{},]/.test(n))return Le(n,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(n))return a||h||!n.includes(`
32
+ `)?Le(n,t):Rt(e,t,s,r);if(!a&&!h&&i!==Y.Scalar.PLAIN&&n.includes(`
33
+ `))return Rt(e,t,s,r);if(Dt(n)){if(l==="")return t.forceBlockIndent=!0,Rt(e,t,s,r);else if(a&&l===c)return Le(n,t)}let u=n.replace(/\n+/g,`$&
34
+ ${l}`);if(o){let f=(d)=>d.default&&d.tag!=="tag:yaml.org,2002:str"&&d.test?.test(u),{compat:p,tags:y}=t.doc.schema;if(y.some(f)||p?.some(f))return Le(n,t)}return a?u:se.foldFlowLines(u,l,se.FOLD_FLOW,Ct(t,!1))}function pp(e,t,s,r){let{implicitKey:i,inFlow:n}=t,o=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;if(a!==Y.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value))a=Y.Scalar.QUOTE_DOUBLE}let l=(h)=>{switch(h){case Y.Scalar.BLOCK_FOLDED:case Y.Scalar.BLOCK_LITERAL:return i||n?Le(o.value,t):Rt(o,t,s,r);case Y.Scalar.QUOTE_DOUBLE:return Ge(o.value,t);case Y.Scalar.QUOTE_SINGLE:return xs(o.value,t);case Y.Scalar.PLAIN:return hp(o,t,s,r);default:return null}},c=l(a);if(c===null){let{defaultKeyType:h,defaultStringType:u}=t.options,f=i&&h||u;if(c=l(f),c===null)throw Error(`Unsupported default string type ${f}`)}return c}dp.stringifyString=pp});var Je=m(function(Np){var gp=It(),re=I(),yp=Ve(),Sp=Ye();function bp(e,t){let s=Object.assign({blockQuote:!0,commentString:yp.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(s.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent==="number"?" ".repeat(s.indent):" ",inFlow:r,options:s}}function wp(e,t){if(t.tag){let i=e.filter((n)=>n.tag===t.tag);if(i.length>0)return i.find((n)=>n.format===t.format)??i[0]}let s=void 0,r;if(re.isScalar(t)){r=t.value;let i=e.filter((n)=>n.identify?.(r));if(i.length>1){let n=i.filter((o)=>o.test);if(n.length>0)i=n}s=i.find((n)=>n.format===t.format)??i.find((n)=>!n.format)}else r=t,s=e.find((i)=>i.nodeClass&&r instanceof i.nodeClass);if(!s){let i=r?.constructor?.name??(r===null?"null":typeof r);throw Error(`Tag not resolved for ${i} value`)}return s}function Ep(e,t,{anchors:s,doc:r}){if(!r.directives)return"";let i=[],n=(re.isScalar(e)||re.isCollection(e))&&e.anchor;if(n&&gp.anchorIsValid(n))s.add(n),i.push(`&${n}`);let o=e.tag??(t.default?null:t.tag);if(o)i.push(r.directives.tagString(o));return i.join(" ")}function vp(e,t,s,r){if(re.isPair(e))return e.toString(t,s,r);if(re.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let i=void 0,n=re.isNode(e)?e:t.doc.createNode(e,{onTagObj:(l)=>i=l});i??(i=wp(t.doc.schema.tags,n));let o=Ep(n,i,t);if(o.length>0)t.indentAtStart=(t.indentAtStart??0)+o.length+1;let a=typeof i.stringify==="function"?i.stringify(n,t,s,r):re.isScalar(n)?Sp.stringifyString(n,t,s,r):n.toString(t,s,r);if(!o)return a;return re.isScalar(n)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
35
+ ${t.indent}${a}`}Np.createStringifyContext=bp;Np.stringify=vp});var wo=m(function(kp){var z=I(),So=R(),bo=Je(),Xe=Ve();function Op({key:e,value:t},s,r,i){let{allNullValues:n,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:h,simpleKeys:u}}=s,f=z.isNode(e)&&e.comment||null;if(u){if(f)throw Error("With simple keys, key nodes cannot have comments");if(z.isCollection(e)||!z.isNode(e)&&typeof e==="object")throw Error("With simple keys, collection cannot be used as a key value")}let p=!u&&(!e||f&&t==null&&!s.inFlow||z.isCollection(e)||(z.isScalar(e)?e.type===So.Scalar.BLOCK_FOLDED||e.type===So.Scalar.BLOCK_LITERAL:typeof e==="object"));s=Object.assign({},s,{allNullValues:!1,implicitKey:!p&&(u||!n),indent:a+l});let y=!1,d=!1,g=bo.stringify(e,s,()=>y=!0,()=>d=!0);if(!p&&!s.inFlow&&g.length>1024){if(u)throw Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(s.inFlow){if(n||t==null){if(y&&r)r();return g===""?"?":p?`? ${g}`:g}}else if(n&&!u||t==null&&p){if(g=`? ${g}`,f&&!y)g+=Xe.lineComment(g,s.indent,c(f));else if(d&&i)i();return g}if(y)f=null;if(p){if(f)g+=Xe.lineComment(g,s.indent,c(f));g=`? ${g}
36
+ ${a}:`}else if(g=`${g}:`,f)g+=Xe.lineComment(g,s.indent,c(f));let E,v,N;if(z.isNode(t))E=!!t.spaceBefore,v=t.commentBefore,N=t.comment;else if(E=!1,v=null,N=null,t&&typeof t==="object")t=o.createNode(t);if(s.implicitKey=!1,!p&&!f&&z.isScalar(t))s.indentAtStart=g.length+1;if(d=!1,!h&&l.length>=2&&!s.inFlow&&!p&&z.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor)s.indent=s.indent.substring(2);let A=!1,L=bo.stringify(t,s,()=>A=!0,()=>d=!0),k=" ";if(f||E||v){if(k=E?`
37
+ `:"",v){let T=c(v);k+=`
38
+ ${Xe.indentComment(T,s.indent)}`}if(L===""&&!s.inFlow){if(k===`
39
+ `&&N)k=`
40
+
41
+ `}else k+=`
42
+ ${s.indent}`}else if(!p&&z.isCollection(t)){let T=L[0],w=L.indexOf(`
43
+ `),C=w!==-1,Z=s.inFlow??t.flow??t.items.length===0;if(C||!Z){let be=!1;if(C&&(T==="&"||T==="!")){let D=L.indexOf(" ");if(T==="&"&&D!==-1&&D<w&&L[D+1]==="!")D=L.indexOf(" ",D+1);if(D===-1||w<D)be=!0}if(!be)k=`
44
+ ${s.indent}`}}else if(L===""||L[0]===`
45
+ `)k="";if(g+=k+L,s.inFlow){if(A&&r)r()}else if(N&&!A)g+=Xe.lineComment(g,s.indent,c(N));else if(d&&i)i();return g}kp.stringifyPair=Op});var Fs=m(function(qp){var Eo=ut("process");function Tp(e,...t){if(e==="debug")console.log(...t)}function $p(e,t){if(e==="debug"||e==="warn")if(typeof Eo.emitWarning==="function")Eo.emitWarning(t);else console.warn(t)}qp.debug=Tp;qp.warn=$p});var _t=m(function(Mp){var xt=I(),vo=R(),Mt="<<",Pt={identify:(e)=>e===Mt||typeof e==="symbol"&&e.description===Mt,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new vo.Scalar(Symbol(Mt)),{addToJSMap:No}),stringify:()=>Mt},Dp=(e,t)=>(Pt.identify(t)||xt.isScalar(t)&&(!t.type||t.type===vo.Scalar.PLAIN)&&Pt.identify(t.value))&&e?.doc.schema.tags.some((s)=>s.tag===Pt.tag&&s.default);function No(e,t,s){let r=Ao(e,s);if(xt.isSeq(r))for(let i of r.items)Bs(e,t,i);else if(Array.isArray(r))for(let i of r)Bs(e,t,i);else Bs(e,t,r)}function Bs(e,t,s){let r=Ao(e,s);if(!xt.isMap(r))throw Error("Merge sources must be maps or map aliases");let i=r.toJSON(null,e,Map);for(let[n,o]of i)if(t instanceof Map){if(!t.has(n))t.set(n,o)}else if(t instanceof Set)t.add(n);else if(!Object.prototype.hasOwnProperty.call(t,n))Object.defineProperty(t,n,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function Ao(e,t){return e&&xt.isAlias(t)?t.resolve(e.doc,e):t}Mp.addMergeToJSMap=No;Mp.isMergeKey=Dp;Mp.merge=Pt});var Us=m(function(Kp){var Fp=Fs(),Lo=_t(),Bp=Je(),Oo=I(),js=te();function jp(e,t,{key:s,value:r}){if(Oo.isNode(s)&&s.addToJSMap)s.addToJSMap(e,t,r);else if(Lo.isMergeKey(e,s))Lo.addMergeToJSMap(e,t,r);else{let i=js.toJS(s,"",e);if(t instanceof Map)t.set(i,js.toJS(r,i,e));else if(t instanceof Set)t.add(i);else{let n=Up(s,i,e),o=js.toJS(r,n,e);if(n in t)Object.defineProperty(t,n,{value:o,writable:!0,enumerable:!0,configurable:!0});else t[n]=o}}return t}function Up(e,t,s){if(t===null)return"";if(typeof t!=="object")return String(t);if(Oo.isNode(e)&&s?.doc){let r=Bp.createStringifyContext(s.doc,{});r.anchors=new Set;for(let n of s.anchors.keys())r.anchors.add(n.anchor);r.inFlow=!0,r.inStringifyKey=!0;let i=e.toString(r);if(!s.mapKeyWarned){let n=JSON.stringify(i);if(n.length>40)n=n.substring(0,36)+'..."';Fp.warn(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${n}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0}return i}return JSON.stringify(t)}Kp.addPairToJSMap=jp});var ie=m(function(Xp){var ko=Ke(),Gp=wo(),Yp=Us(),Ft=I();function Jp(e,t,s){let r=ko.createNode(e,void 0,s),i=ko.createNode(t,void 0,s);return new Bt(r,i)}class Bt{constructor(e,t=null){Object.defineProperty(this,Ft.NODE_TYPE,{value:Ft.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;if(Ft.isNode(t))t=t.clone(e);if(Ft.isNode(s))s=s.clone(e);return new Bt(t,s)}toJSON(e,t){let s=t?.mapAsMap?new Map:{};return Yp.addPairToJSMap(t,s,this)}toString(e,t,s){return e?.doc?Gp.stringifyPair(this,e,t,s):JSON.stringify(this)}}Xp.Pair=Bt;Xp.createPair=Jp});var Ks=m(function(ed){var pe=I(),Io=Je(),jt=Ve();function Qp(e,t,s){return(t.inFlow??e.flow?Zp:zp)(e,t,s)}function zp({comment:e,items:t},s,{blockItemPrefix:r,flowChars:i,itemIndent:n,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=s,h=Object.assign({},s,{indent:n,type:null}),u=!1,f=[];for(let y=0;y<t.length;++y){let d=t[y],g=null;if(pe.isNode(d)){if(!u&&d.spaceBefore)f.push("");if(Ut(s,f,d.commentBefore,u),d.comment)g=d.comment}else if(pe.isPair(d)){let v=pe.isNode(d.key)?d.key:null;if(v){if(!u&&v.spaceBefore)f.push("");Ut(s,f,v.commentBefore,u)}}u=!1;let E=Io.stringify(d,h,()=>g=null,()=>u=!0);if(g)E+=jt.lineComment(E,n,c(g));if(u&&g)u=!1;f.push(r+E)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let y=1;y<f.length;++y){let d=f[y];p+=d?`
46
+ ${l}${d}`:`
47
+ `}}if(e){if(p+=`
48
+ `+jt.indentComment(c(e),l),a)a()}else if(u&&o)o();return p}function Zp({items:e},t,{flowChars:s,itemIndent:r}){let{indent:i,indentStep:n,flowCollectionPadding:o,options:{commentString:a}}=t;r+=n;let l=Object.assign({},t,{indent:r,inFlow:!0,type:null}),c=!1,h=0,u=[];for(let y=0;y<e.length;++y){let d=e[y],g=null;if(pe.isNode(d)){if(d.spaceBefore)u.push("");if(Ut(t,u,d.commentBefore,!1),d.comment)g=d.comment}else if(pe.isPair(d)){let v=pe.isNode(d.key)?d.key:null;if(v){if(v.spaceBefore)u.push("");if(Ut(t,u,v.commentBefore,!1),v.comment)c=!0}let N=pe.isNode(d.value)?d.value:null;if(N){if(N.comment)g=N.comment;if(N.commentBefore)c=!0}else if(d.value==null&&v?.comment)g=v.comment}if(g)c=!0;let E=Io.stringify(d,l,()=>g=null);if(c||(c=u.length>h||E.includes(`
49
+ `)),y<e.length-1)E+=",";else if(t.options.trailingComma){if(t.options.lineWidth>0)c||(c=u.reduce((v,N)=>v+N.length+2,2)+(E.length+2)>t.options.lineWidth);if(c)E+=","}if(g)E+=jt.lineComment(E,r,a(g));u.push(E),h=u.length}let{start:f,end:p}=s;if(u.length===0)return f+p;else{if(!c){let y=u.reduce((d,g)=>d+g.length+2,2);c=t.options.lineWidth>0&&y>t.options.lineWidth}if(c){let y=f;for(let d of u)y+=d?`
50
+ ${n}${i}${d}`:`
51
+ `;return`${y}
52
+ ${i}${p}`}else return`${f}${o}${u.join(" ")}${o}${p}`}}function Ut({indent:e,options:{commentString:t}},s,r,i){if(r&&i)r=r.replace(/^\n+/,"");if(r){let n=jt.indentComment(t(r),e);s.push(n.trimStart())}}ed.stringifyCollection=Qp});var oe=m(function(od){var sd=Ks(),rd=Us(),id=qt(),ne=I(),Kt=ie(),nd=R();function He(e,t){let s=ne.isScalar(t)?t.value:t;for(let r of e)if(ne.isPair(r)){if(r.key===t||r.key===s)return r;if(ne.isScalar(r.key)&&r.key.value===s)return r}return}class To extends id.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(ne.MAP,e);this.items=[]}static from(e,t,s){let{keepUndefined:r,replacer:i}=s,n=new this(e),o=(a,l)=>{if(typeof i==="function")l=i.call(t,a,l);else if(Array.isArray(i)&&!i.includes(a))return;if(l!==void 0||r)n.items.push(Kt.createPair(a,l,s))};if(t instanceof Map)for(let[a,l]of t)o(a,l);else if(t&&typeof t==="object")for(let a of Object.keys(t))o(a,t[a]);if(typeof e.sortMapEntries==="function")n.items.sort(e.sortMapEntries);return n}add(e,t){let s;if(ne.isPair(e))s=e;else if(!e||typeof e!=="object"||!("key"in e))s=new Kt.Pair(e,e?.value);else s=new Kt.Pair(e.key,e.value);let r=He(this.items,s.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${s.key} already set`);if(ne.isScalar(r.value)&&nd.isScalarValue(s.value))r.value.value=s.value;else r.value=s.value}else if(i){let n=this.items.findIndex((o)=>i(s,o)<0);if(n===-1)this.items.push(s);else this.items.splice(n,0,s)}else this.items.push(s)}delete(e){let t=He(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let r=He(this.items,e)?.value;return(!t&&ne.isScalar(r)?r.value:r)??void 0}has(e){return!!He(this.items,e)}set(e,t){this.add(new Kt.Pair(e,t),!0)}toJSON(e,t,s){let r=s?new s:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(r);for(let i of this.items)rd.addPairToJSMap(t,r,i);return r}toString(e,t,s){if(!e)return JSON.stringify(this);for(let r of this.items)if(!ne.isPair(r))throw Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);if(!e.allNullValues&&this.hasAllNullValues(!1))e=Object.assign({},e,{allNullValues:!0});return sd.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}od.YAMLMap=To;od.findPair=He});var Oe=m(function(fd){var cd=I(),$o=oe(),ud={collection:"map",default:!0,nodeClass:$o.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!cd.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,s)=>$o.YAMLMap.from(e,t,s)};fd.map=ud});var ae=m(function(Sd){var pd=Ke(),dd=Ks(),md=qt(),Gt=I(),gd=R(),yd=te();class qo extends md.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Gt.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){let t=Vt(e);if(typeof t!=="number")return!1;return this.items.splice(t,1).length>0}get(e,t){let s=Vt(e);if(typeof s!=="number")return;let r=this.items[s];return!t&&Gt.isScalar(r)?r.value:r}has(e){let t=Vt(e);return typeof t==="number"&&t<this.items.length}set(e,t){let s=Vt(e);if(typeof s!=="number")throw Error(`Expected a valid index, not ${e}.`);let r=this.items[s];if(Gt.isScalar(r)&&gd.isScalarValue(t))r.value=t;else this.items[s]=t}toJSON(e,t){let s=[];if(t?.onCreate)t.onCreate(s);let r=0;for(let i of this.items)s.push(yd.toJS(i,String(r++),t));return s}toString(e,t,s){if(!e)return JSON.stringify(this);return dd.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t})}static from(e,t,s){let{replacer:r}=s,i=new this(e);if(t&&Symbol.iterator in Object(t)){let n=0;for(let o of t){if(typeof r==="function"){let a=t instanceof Set?o:String(n++);o=r.call(t,a,o)}i.items.push(pd.createNode(o,void 0,s))}}return i}}function Vt(e){let t=Gt.isScalar(e)?e.value:e;if(t&&typeof t==="string")t=Number(t);return typeof t==="number"&&Number.isInteger(t)&&t>=0?t:null}Sd.YAMLSeq=qo});var ke=m(function(vd){var wd=I(),Ro=ae(),Ed={collection:"seq",default:!0,nodeClass:Ro.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!wd.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,s)=>Ro.YAMLSeq.from(e,t,s)};vd.seq=Ed});var We=m(function(Od){var Ad=Ye(),Ld={identify:(e)=>typeof e==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(e)=>e,stringify(e,t,s,r){return t=Object.assign({actualString:!0},t),Ad.stringifyString(e,t,s,r)}};Od.string=Ld});var Yt=m(function(Id){var Co=R(),Do={identify:(e)=>e==null,createNode:()=>new Co.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Co.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&Do.test.test(e)?e:t.options.nullStr};Id.nullTag=Do});var Vs=m(function(qd){var $d=R(),Mo={identify:(e)=>typeof e==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(e)=>new $d.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},s){if(e&&Mo.test.test(e)){let r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?s.options.trueStr:s.options.falseStr}};qd.boolTag=Mo});var Ie=m(function(Dd){function Cd({format:e,minFractionDigits:t,tag:s,value:r}){if(typeof r==="bigint")return String(r);let i=typeof r==="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let n=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!s||s==="tag:yaml.org,2002:float")&&/^-?\d/.test(n)&&!n.includes("e")){let o=n.indexOf(".");if(o<0)o=n.length,n+=".";let a=t-(n.length-o-1);while(a-- >0)n+="0"}return n}Dd.stringifyNumber=Cd});var Ys=m(function(Bd){var Pd=R(),Gs=Ie(),xd={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(e)=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Gs.stringifyNumber},_d={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(e)=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Gs.stringifyNumber(e)}},Fd={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new Pd.Scalar(parseFloat(e)),s=e.indexOf(".");if(s!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-s-1;return t},stringify:Gs.stringifyNumber};Bd.float=Fd;Bd.floatExp=_d;Bd.floatNaN=xd});var Xs=m(function(Jd){var Po=Ie(),Jt=(e)=>typeof e==="bigint"||Number.isInteger(e),Js=(e,t,s,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),s);function xo(e,t,s){let{value:r}=e;if(Jt(r)&&r>=0)return s+r.toString(t);return Po.stringifyNumber(e)}var Vd={identify:(e)=>Jt(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,s)=>Js(e,2,8,s),stringify:(e)=>xo(e,8,"0o")},Gd={identify:Jt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,s)=>Js(e,0,10,s),stringify:Po.stringifyNumber},Yd={identify:(e)=>Jt(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,s)=>Js(e,2,16,s),stringify:(e)=>xo(e,16,"0x")};Jd.int=Gd;Jd.intHex=Yd;Jd.intOct=Vd});var _o=m(function(rm){var Qd=Oe(),zd=Yt(),Zd=ke(),em=We(),tm=Vs(),Hs=Ys(),Ws=Xs(),sm=[Qd.map,Zd.seq,em.string,zd.nullTag,tm.boolTag,Ws.intOct,Ws.int,Ws.intHex,Hs.floatNaN,Hs.floatExp,Hs.float];rm.schema=sm});var Bo=m(function(fm){var nm=R(),om=Oe(),am=ke();function Fo(e){return typeof e==="bigint"||Number.isInteger(e)}var Xt=({value:e})=>JSON.stringify(e),lm=[{identify:(e)=>typeof e==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(e)=>e,stringify:Xt},{identify:(e)=>e==null,createNode:()=>new nm.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Xt},{identify:(e)=>typeof e==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(e)=>e==="true",stringify:Xt},{identify:Fo,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:s})=>s?BigInt(e):parseInt(e,10),stringify:({value:e})=>Fo(e)?e.toString():JSON.stringify(e)},{identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(e)=>parseFloat(e),stringify:Xt}],cm={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},um=[om.map,am.seq].concat(lm,cm);fm.schema=um});var zs=m(function(mm){var Qe=ut("buffer"),Qs=R(),pm=Ye(),dm={identify:(e)=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Qe.Buffer==="function")return Qe.Buffer.from(e,"base64");else if(typeof atob==="function"){let s=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(s.length);for(let i=0;i<s.length;++i)r[i]=s.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:s},r,i,n){if(!s)return"";let o=s,a;if(typeof Qe.Buffer==="function")a=o instanceof Qe.Buffer?o.toString("base64"):Qe.Buffer.from(o.buffer).toString("base64");else if(typeof btoa==="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Qs.Scalar.BLOCK_LITERAL),t!==Qs.Scalar.QUOTE_DOUBLE){let l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(a.length/l),h=Array(c);for(let u=0,f=0;u<c;++u,f+=l)h[u]=a.substr(f,l);a=h.join(t===Qs.Scalar.BLOCK_LITERAL?`
53
+ `:" ")}return pm.stringifyString({comment:e,type:t,value:a},r,i,n)}};mm.binary=dm});var Wt=m(function(wm){var Ht=I(),Zs=ie(),ym=R(),Sm=ae();function jo(e,t){if(Ht.isSeq(e))for(let s=0;s<e.items.length;++s){let r=e.items[s];if(Ht.isPair(r))continue;else if(Ht.isMap(r)){if(r.items.length>1)t("Each pair must have its own sequence indicator");let i=r.items[0]||new Zs.Pair(new ym.Scalar(null));if(r.commentBefore)i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
54
+ ${i.key.commentBefore}`:r.commentBefore;if(r.comment){let n=i.value??i.key;n.comment=n.comment?`${r.comment}
55
+ ${n.comment}`:r.comment}r=i}e.items[s]=Ht.isPair(r)?r:new Zs.Pair(r)}else t("Expected a sequence for this tag");return e}function Uo(e,t,s){let{replacer:r}=s,i=new Sm.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let n=0;if(t&&Symbol.iterator in Object(t))for(let o of t){if(typeof r==="function")o=r.call(t,String(n++),o);let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;i.items.push(Zs.createPair(a,l,s))}return i}var bm={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:jo,createNode:Uo};wm.createPairs=Uo;wm.pairs=bm;wm.resolvePairs=jo});var tr=m(function(Om){var Ko=I(),er=te(),ze=oe(),Am=ae(),Vo=Wt();class de extends Am.YAMLSeq{constructor(){super();this.add=ze.YAMLMap.prototype.add.bind(this),this.delete=ze.YAMLMap.prototype.delete.bind(this),this.get=ze.YAMLMap.prototype.get.bind(this),this.has=ze.YAMLMap.prototype.has.bind(this),this.set=ze.YAMLMap.prototype.set.bind(this),this.tag=de.tag}toJSON(e,t){if(!t)return super.toJSON(e);let s=new Map;if(t?.onCreate)t.onCreate(s);for(let r of this.items){let i,n;if(Ko.isPair(r))i=er.toJS(r.key,"",t),n=er.toJS(r.value,i,t);else i=er.toJS(r,"",t);if(s.has(i))throw Error("Ordered maps must not include duplicate keys");s.set(i,n)}return s}static from(e,t,s){let r=Vo.createPairs(e,t,s),i=new this;return i.items=r.items,i}}de.tag="tag:yaml.org,2002:omap";var Lm={collection:"seq",identify:(e)=>e instanceof Map,nodeClass:de,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let s=Vo.resolvePairs(e,t),r=[];for(let{key:i}of s.items)if(Ko.isScalar(i))if(r.includes(i.value))t(`Ordered maps must not include duplicate keys: ${i.value}`);else r.push(i.value);return Object.assign(new de,s)},createNode:(e,t,s)=>de.from(e,t,s)};Om.YAMLOMap=de;Om.omap=Lm});var Ho=m(function(Tm){var Go=R();function Yo({value:e,source:t},s){if(t&&(e?Jo:Xo).test.test(t))return t;return e?s.options.trueStr:s.options.falseStr}var Jo={identify:(e)=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Go.Scalar(!0),stringify:Yo},Xo={identify:(e)=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Go.Scalar(!1),stringify:Yo};Tm.falseTag=Xo;Tm.trueTag=Jo});var Wo=m(function(Pm){var Rm=R(),sr=Ie(),Cm={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(e)=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:sr.stringifyNumber},Dm={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(e)=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():sr.stringifyNumber(e)}},Mm={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new Rm.Scalar(parseFloat(e.replace(/_/g,""))),s=e.indexOf(".");if(s!==-1){let r=e.substring(s+1).replace(/_/g,"");if(r[r.length-1]==="0")t.minFractionDigits=r.length}return t},stringify:sr.stringifyNumber};Pm.float=Mm;Pm.floatExp=Dm;Pm.floatNaN=Cm});var zo=m(function(Vm){var Qo=Ie(),Ze=(e)=>typeof e==="bigint"||Number.isInteger(e);function Qt(e,t,s,{intAsBigInt:r}){let i=e[0];if(i==="-"||i==="+")t+=1;if(e=e.substring(t).replace(/_/g,""),r){switch(s){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let o=BigInt(e);return i==="-"?BigInt(-1)*o:o}let n=parseInt(e,s);return i==="-"?-1*n:n}function rr(e,t,s){let{value:r}=e;if(Ze(r)){let i=r.toString(t);return r<0?"-"+s+i.substr(1):s+i}return Qo.stringifyNumber(e)}var Bm={identify:Ze,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,s)=>Qt(e,2,2,s),stringify:(e)=>rr(e,2,"0b")},jm={identify:Ze,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,s)=>Qt(e,1,8,s),stringify:(e)=>rr(e,8,"0")},Um={identify:Ze,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,s)=>Qt(e,0,10,s),stringify:Qo.stringifyNumber},Km={identify:Ze,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,s)=>Qt(e,2,16,s),stringify:(e)=>rr(e,16,"0x")};Vm.int=Um;Vm.intBin=Bm;Vm.intHex=Km;Vm.intOct=jm});var ir=m(function(Wm){var es=I(),zt=ie(),Zt=oe();class me extends Zt.YAMLMap{constructor(e){super(e);this.tag=me.tag}add(e){let t;if(es.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new zt.Pair(e.key,null);else t=new zt.Pair(e,null);if(!Zt.findPair(this.items,t.key))this.items.push(t)}get(e,t){let s=Zt.findPair(this.items,e);return!t&&es.isPair(s)?es.isScalar(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let s=Zt.findPair(this.items,e);if(s&&!t)this.items.splice(this.items.indexOf(s),1);else if(!s&&t)this.items.push(new zt.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);else throw Error("Set items must all have null values")}static from(e,t,s){let{replacer:r}=s,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let n of t){if(typeof r==="function")n=r.call(t,n,n);i.items.push(zt.createPair(n,null,s))}return i}}me.tag="tag:yaml.org,2002:set";var Hm={collection:"map",identify:(e)=>e instanceof Set,nodeClass:me,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,s)=>me.from(e,t,s),resolve(e,t){if(es.isMap(e))if(e.hasAllNullValues(!0))return Object.assign(new me,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};Wm.YAMLSet=me;Wm.set=Hm});var or=m(function(sg){var Zm=Ie();function nr(e,t){let s=e[0],r=s==="-"||s==="+"?e.substring(1):e,i=(o)=>t?BigInt(o):Number(o),n=r.replace(/_/g,"").split(":").reduce((o,a)=>o*i(60)+i(a),i(0));return s==="-"?i(-1)*n:n}function Zo(e){let{value:t}=e,s=(o)=>o;if(typeof t==="bigint")s=(o)=>BigInt(o);else if(isNaN(t)||!isFinite(t))return Zm.stringifyNumber(e);let r="";if(t<0)r="-",t*=s(-1);let i=s(60),n=[t%i];if(t<60)n.unshift(0);else if(t=(t-n[0])/i,n.unshift(t%i),t>=60)t=(t-n[0])/i,n.unshift(t);return r+n.map((o)=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var eg={identify:(e)=>typeof e==="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:s})=>nr(e,s),stringify:Zo},tg={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(e)=>nr(e,!1),stringify:Zo},ea={identify:(e)=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(ea.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,s,r,i,n,o,a]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0,c=Date.UTC(s,r-1,i,n||0,o||0,a||0,l),h=t[8];if(h&&h!=="Z"){let u=nr(h,!1);if(Math.abs(u)<30)u*=60;c-=60000*u}return new Date(c)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};sg.floatTime=tg;sg.intTime=eg;sg.timestamp=ea});var sa=m(function(gg){var og=Oe(),ag=Yt(),lg=ke(),cg=We(),ug=zs(),ta=Ho(),ar=Wo(),ts=zo(),fg=_t(),hg=tr(),pg=Wt(),dg=ir(),lr=or(),mg=[og.map,lg.seq,cg.string,ag.nullTag,ta.trueTag,ta.falseTag,ts.intBin,ts.intOct,ts.int,ts.intHex,ar.floatNaN,ar.floatExp,ar.float,ug.binary,fg.merge,hg.omap,pg.pairs,dg.set,lr.intTime,lr.floatTime,lr.timestamp];gg.schema=mg});var ha=m(function(Lg){var oa=Oe(),Sg=Yt(),aa=ke(),bg=We(),wg=Vs(),cr=Ys(),ur=Xs(),Eg=_o(),vg=Bo(),la=zs(),et=_t(),ca=tr(),ua=Wt(),ra=sa(),fa=ir(),ss=or(),ia=new Map([["core",Eg.schema],["failsafe",[oa.map,aa.seq,bg.string]],["json",vg.schema],["yaml11",ra.schema],["yaml-1.1",ra.schema]]),na={binary:la.binary,bool:wg.boolTag,float:cr.float,floatExp:cr.floatExp,floatNaN:cr.floatNaN,floatTime:ss.floatTime,int:ur.int,intHex:ur.intHex,intOct:ur.intOct,intTime:ss.intTime,map:oa.map,merge:et.merge,null:Sg.nullTag,omap:ca.omap,pairs:ua.pairs,seq:aa.seq,set:fa.set,timestamp:ss.timestamp},Ng={"tag:yaml.org,2002:binary":la.binary,"tag:yaml.org,2002:merge":et.merge,"tag:yaml.org,2002:omap":ca.omap,"tag:yaml.org,2002:pairs":ua.pairs,"tag:yaml.org,2002:set":fa.set,"tag:yaml.org,2002:timestamp":ss.timestamp};function Ag(e,t,s){let r=ia.get(t);if(r&&!e)return s&&!r.includes(et.merge)?r.concat(et.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let n=Array.from(ia.keys()).filter((o)=>o!=="yaml11").map((o)=>JSON.stringify(o)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${n} or define customTags array`)}if(Array.isArray(e))for(let n of e)i=i.concat(n);else if(typeof e==="function")i=e(i.slice());if(s)i=i.concat(et.merge);return i.reduce((n,o)=>{let a=typeof o==="string"?na[o]:o;if(!a){let l=JSON.stringify(o),c=Object.keys(na).map((h)=>JSON.stringify(h)).join(", ");throw Error(`Unknown custom tag ${l}; use one of ${c}`)}if(!n.includes(a))n.push(a);return n},[])}Lg.coreKnownTags=Ng;Lg.getTags=Ag});var pr=m(function(Rg){var fr=I(),Ig=Oe(),Tg=ke(),$g=We(),rs=ha(),qg=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class hr{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:r,schema:i,sortMapEntries:n,toStringDefaults:o}){this.compat=Array.isArray(e)?rs.getTags(e,"compat"):e?rs.getTags(null,e):null,this.name=typeof i==="string"&&i||"core",this.knownTags=r?rs.coreKnownTags:{},this.tags=rs.getTags(t,this.name,s),this.toStringOptions=o??null,Object.defineProperty(this,fr.MAP,{value:Ig.map}),Object.defineProperty(this,fr.SCALAR,{value:$g.string}),Object.defineProperty(this,fr.SEQ,{value:Tg.seq}),this.sortMapEntries=typeof n==="function"?n:n===!0?qg:null}clone(){let e=Object.create(hr.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}Rg.Schema=hr});var pa=m(function(Pg){var Dg=I(),dr=Je(),tt=Ve();function Mg(e,t){let s=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let l=e.directives.toString(e);if(l)s.push(l),r=!0;else if(e.directives.docStart)r=!0}if(r)s.push("---");let i=dr.createStringifyContext(e,t),{commentString:n}=i.options;if(e.commentBefore){if(s.length!==1)s.unshift("");let l=n(e.commentBefore);s.unshift(tt.indentComment(l,""))}let o=!1,a=null;if(e.contents){if(Dg.isNode(e.contents)){if(e.contents.spaceBefore&&r)s.push("");if(e.contents.commentBefore){let h=n(e.contents.commentBefore);s.push(tt.indentComment(h,""))}i.forceBlockIndent=!!e.comment,a=e.contents.comment}let l=a?void 0:()=>o=!0,c=dr.stringify(e.contents,i,()=>a=null,l);if(a)c+=tt.lineComment(c,"",n(a));if((c[0]==="|"||c[0]===">")&&s[s.length-1]==="---")s[s.length-1]=`--- ${c}`;else s.push(c)}else s.push(dr.stringify(e.contents,i));if(e.directives?.docEnd)if(e.comment){let l=n(e.comment);if(l.includes(`
56
+ `))s.push("..."),s.push(tt.indentComment(l,""));else s.push(`... ${l}`)}else s.push("...");else{let l=e.comment;if(l&&o)l=l.replace(/^\n+/,"");if(l){if((!o||a)&&s[s.length-1]!=="")s.push("");s.push(tt.indentComment(n(l),""))}}return s.join(`
57
+ `)+`
58
+ `}Pg.stringifyDocument=Mg});var st=m(function(Gg){var _g=Ue(),Te=qt(),V=I(),Fg=ie(),Bg=te(),jg=pr(),Ug=pa(),mr=It(),Kg=Ds(),Vg=Ke(),gr=Cs();class yr{constructor(e,t,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,V.NODE_TYPE,{value:V.DOC});let r=null;if(typeof t==="function"||Array.isArray(t))r=t;else if(s===void 0&&t)s=t,t=void 0;let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=i;let{version:n}=i;if(s?._directives){if(this.directives=s._directives.atDocument(),this.directives.yaml.explicit)n=this.directives.yaml.version}else this.directives=new gr.Directives({version:n});this.setSchema(n,s),this.contents=e===void 0?null:this.createNode(e,r,s)}clone(){let e=Object.create(yr.prototype,{[V.NODE_TYPE]:{value:V.DOC}});if(e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives)e.directives=this.directives.clone();if(e.schema=this.schema.clone(),e.contents=V.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range)e.range=this.range.slice();return e}add(e){if($e(this.contents))this.contents.add(e)}addIn(e,t){if($e(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let s=mr.anchorNames(this);e.anchor=!t||s.has(t)?mr.findNewAnchor(t||"a",s):t}return new _g.Alias(e.anchor)}createNode(e,t,s){let r=void 0;if(typeof t==="function")e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){let d=(E)=>typeof E==="number"||E instanceof String||E instanceof Number,g=t.filter(d).map(String);if(g.length>0)t=t.concat(g);r=t}else if(s===void 0&&t)s=t,t=void 0;let{aliasDuplicateObjects:i,anchorPrefix:n,flow:o,keepUndefined:a,onTagObj:l,tag:c}=s??{},{onAnchor:h,setAnchors:u,sourceObjects:f}=mr.createNodeAnchors(this,n||"a"),p={aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:h,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:f},y=Vg.createNode(e,c,p);if(o&&V.isCollection(y))y.flow=!0;return u(),y}createPair(e,t,s={}){let r=this.createNode(e,null,s),i=this.createNode(t,null,s);return new Fg.Pair(r,i)}delete(e){return $e(this.contents)?this.contents.delete(e):!1}deleteIn(e){if(Te.isEmptyPath(e)){if(this.contents==null)return!1;return this.contents=null,!0}return $e(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return V.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){if(Te.isEmptyPath(e))return!t&&V.isScalar(this.contents)?this.contents.value:this.contents;return V.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return V.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){if(Te.isEmptyPath(e))return this.contents!==void 0;return V.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){if(this.contents==null)this.contents=Te.collectionFromPath(this.schema,[e],t);else if($e(this.contents))this.contents.set(e,t)}setIn(e,t){if(Te.isEmptyPath(e))this.contents=t;else if(this.contents==null)this.contents=Te.collectionFromPath(this.schema,Array.from(e),t);else if($e(this.contents))this.contents.setIn(e,t)}setSchema(e,t={}){if(typeof e==="number")e=String(e);let s;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new gr.Directives({version:"1.1"});s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new gr.Directives({version:e});s={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;s=null;break;default:{let r=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new jg.Schema(Object.assign(s,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:r,onAnchor:i,reviver:n}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof r==="number"?r:100},a=Bg.toJS(this.contents,t??"",o);if(typeof i==="function")for(let{count:l,res:c}of o.anchors.values())i(c,l);return typeof n==="function"?Kg.applyReviver(n,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Ug.stringifyDocument(this,e)}}function $e(e){if(V.isCollection(e))return!0;throw Error("Expected a YAML collection as document contents")}Gg.Document=yr});var rt=m(function(Xg){class is extends Error{constructor(e,t,s,r){super();this.name=e,this.code=s,this.message=r,this.pos=t}}class da extends is{constructor(e,t,s){super("YAMLParseError",e,t,s)}}class ma extends is{constructor(e,t,s){super("YAMLWarning",e,t,s)}}var Jg=(e,t)=>(s)=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map((a)=>t.linePos(a));let{line:r,col:i}=s.linePos[0];s.message+=` at line ${r}, column ${i}`;let n=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(n>=60&&o.length>80){let a=Math.min(n-39,o.length-79);o="\u2026"+o.substring(a),n-=a-1}if(o.length>80)o=o.substring(0,79)+"\u2026";if(r>1&&/^ *$/.test(o.substring(0,n))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);if(a.length>80)a=a.substring(0,79)+`\u2026
59
+ `;o=a+o}if(/[^ ]/.test(o)){let a=1,l=s.linePos[1];if(l?.line===r&&l.col>i)a=Math.max(1,Math.min(l.col-i,80-n));let c=" ".repeat(n)+"^".repeat(a);s.message+=`:
60
+
61
+ ${o}
62
+ ${c}
63
+ `}};Xg.YAMLError=is;Xg.YAMLParseError=da;Xg.YAMLWarning=ma;Xg.prettifyError=Jg});var it=m(function(ey){function Zg(e,{flow:t,indicator:s,next:r,offset:i,onError:n,parentIndent:o,startOnNewline:a}){let l=!1,c=a,h=a,u="",f="",p=!1,y=!1,d=null,g=null,E=null,v=null,N=null,A=null,L=null;for(let w of e){if(y){if(w.type!=="space"&&w.type!=="newline"&&w.type!=="comma")n(w.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");y=!1}if(d){if(c&&w.type!=="comment"&&w.type!=="newline")n(d,"TAB_AS_INDENT","Tabs are not allowed as indentation");d=null}switch(w.type){case"space":if(!t&&(s!=="doc-start"||r?.type!=="flow-collection")&&w.source.includes("\t"))d=w;h=!0;break;case"comment":{if(!h)n(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let C=w.source.substring(1)||" ";if(!u)u=C;else u+=f+C;f="",c=!1;break}case"newline":if(c){if(u)u+=w.source;else if(!A||s!=="seq-item-ind")l=!0}else f+=w.source;if(c=!0,p=!0,g||E)v=w;h=!0;break;case"anchor":if(g)n(w,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(w.source.endsWith(":"))n(w.offset+w.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);g=w,L??(L=w.offset),c=!1,h=!1,y=!0;break;case"tag":{if(E)n(w,"MULTIPLE_TAGS","A node can have at most one tag");E=w,L??(L=w.offset),c=!1,h=!1,y=!0;break}case s:if(g||E)n(w,"BAD_PROP_ORDER",`Anchors and tags must be after the ${w.source} indicator`);if(A)n(w,"UNEXPECTED_TOKEN",`Unexpected ${w.source} in ${t??"collection"}`);A=w,c=s==="seq-item-ind"||s==="explicit-key-ind",h=!1;break;case"comma":if(t){if(N)n(w,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);N=w,c=!1,h=!1;break}default:n(w,"UNEXPECTED_TOKEN",`Unexpected ${w.type} token`),c=!1,h=!1}}let k=e[e.length-1],T=k?k.offset+k.source.length:i;if(y&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!==""))n(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(d&&(c&&d.indent<=o||r?.type==="block-map"||r?.type==="block-seq"))n(d,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:N,found:A,spaceBefore:l,comment:u,hasNewline:p,anchor:g,tag:E,newlineAfterProp:v,end:T,start:L??T}}ey.resolveProps=Zg});var ns=m(function(sy){function Sr(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
64
+ `))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let s of t.start)if(s.type==="newline")return!0;if(t.sep){for(let s of t.sep)if(s.type==="newline")return!0}if(Sr(t.key)||Sr(t.value))return!0}return!1;default:return!0}}sy.containsNewline=Sr});var br=m(function(oy){var iy=ns();function ny(e,t,s){if(t?.type==="flow-collection"){let r=t.end[0];if(r.indent===e&&(r.source==="]"||r.source==="}")&&iy.containsNewline(t))s(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}oy.flowIndentCheck=ny});var wr=m(function(cy){var ga=I();function ly(e,t,s){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==="function"?r:(n,o)=>n===o||ga.isScalar(n)&&ga.isScalar(o)&&n.value===o.value;return t.some((n)=>i(n.key,s))}cy.mapIncludes=ly});var Ea=m(function(my){var ya=ie(),fy=oe(),Sa=it(),hy=ns(),ba=br(),py=wr(),wa="All mapping items must start at the same column";function dy({composeNode:e,composeEmptyNode:t},s,r,i,n){let a=new(n?.nodeClass??fy.YAMLMap)(s.schema);if(s.atRoot)s.atRoot=!1;let l=r.offset,c=null;for(let h of r.items){let{start:u,key:f,sep:p,value:y}=h,d=Sa.resolveProps(u,{indicator:"explicit-key-ind",next:f??p?.[0],offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0}),g=!d.found;if(g){if(f){if(f.type==="block-seq")i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in f&&f.indent!==r.indent)i(l,"BAD_INDENT",wa)}if(!d.anchor&&!d.tag&&!p){if(c=d.end,d.comment)if(a.comment)a.comment+=`
65
+ `+d.comment;else a.comment=d.comment;continue}if(d.newlineAfterProp||hy.containsNewline(f))i(f??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(d.found?.indent!==r.indent)i(l,"BAD_INDENT",wa);s.atKey=!0;let E=d.end,v=f?e(s,f,d,i):t(s,E,u,null,d,i);if(s.schema.compat)ba.flowIndentCheck(r.indent,f,i);if(s.atKey=!1,py.mapIncludes(s,a.items,v))i(E,"DUPLICATE_KEY","Map keys must be unique");let N=Sa.resolveProps(p??[],{indicator:"map-value-ind",next:y,offset:v.range[2],onError:i,parentIndent:r.indent,startOnNewline:!f||f.type==="block-scalar"});if(l=N.end,N.found){if(g){if(y?.type==="block-map"&&!N.hasNewline)i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(s.options.strict&&d.start<N.found.offset-1024)i(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let A=y?e(s,y,N,i):t(s,l,p,null,N,i);if(s.schema.compat)ba.flowIndentCheck(r.indent,y,i);l=A.range[2];let L=new ya.Pair(v,A);if(s.options.keepSourceTokens)L.srcToken=h;a.items.push(L)}else{if(g)i(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(N.comment)if(v.comment)v.comment+=`
66
+ `+N.comment;else v.comment=N.comment;let A=new ya.Pair(v);if(s.options.keepSourceTokens)A.srcToken=h;a.items.push(A)}}if(c&&c<l)i(c,"IMPOSSIBLE","Map comment with trailing content");return a.range=[r.offset,l,c??l],a}my.resolveBlockMap=dy});var va=m(function(Ey){var yy=ae(),Sy=it(),by=br();function wy({composeNode:e,composeEmptyNode:t},s,r,i,n){let a=new(n?.nodeClass??yy.YAMLSeq)(s.schema);if(s.atRoot)s.atRoot=!1;if(s.atKey)s.atKey=!1;let l=r.offset,c=null;for(let{start:h,value:u}of r.items){let f=Sy.resolveProps(h,{indicator:"seq-item-ind",next:u,offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||u)if(u?.type==="block-seq")i(f.end,"BAD_INDENT","All sequence items must start at the same column");else i(l,"MISSING_CHAR","Sequence item without - indicator");else{if(c=f.end,f.comment)a.comment=f.comment;continue}let p=u?e(s,u,f,i):t(s,f.end,h,null,f,i);if(s.schema.compat)by.flowIndentCheck(r.indent,u,i);l=p.range[2],a.items.push(p)}return a.range=[r.offset,l,c??l],a}Ey.resolveBlockSeq=wy});var qe=m(function(Ay){function Ny(e,t,s,r){let i="";if(e){let n=!1,o="";for(let a of e){let{source:l,type:c}=a;switch(c){case"space":n=!0;break;case"comment":{if(s&&!n)r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let h=l.substring(1)||" ";if(!i)i=h;else i+=o+h;o="";break}case"newline":if(i)o+=l;n=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=l.length}}return{comment:i,offset:t}}Ay.resolveEnd=Ny});var La=m(function(Cy){var Oy=I(),ky=ie(),Na=oe(),Iy=ae(),Ty=qe(),Aa=it(),$y=ns(),qy=wr(),Er="Block collections are not allowed within flow collections",vr=(e)=>e&&(e.type==="block-map"||e.type==="block-seq");function Ry({composeNode:e,composeEmptyNode:t},s,r,i,n){let o=r.start.source==="{",a=o?"flow map":"flow sequence",c=new(n?.nodeClass??(o?Na.YAMLMap:Iy.YAMLSeq))(s.schema);c.flow=!0;let h=s.atRoot;if(h)s.atRoot=!1;if(s.atKey)s.atKey=!1;let u=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){let E=r.items[g],{start:v,key:N,sep:A,value:L}=E,k=Aa.resolveProps(v,{flow:a,indicator:"explicit-key-ind",next:N??A?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!A&&!L){if(g===0&&k.comma)i(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(g<r.items.length-1)i(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`);if(k.comment)if(c.comment)c.comment+=`
67
+ `+k.comment;else c.comment=k.comment;u=k.end;continue}if(!o&&s.options.strict&&$y.containsNewline(N))i(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0){if(k.comma)i(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`)}else{if(!k.comma)i(k.start,"MISSING_CHAR",`Missing , between ${a} items`);if(k.comment){let T="";e:for(let w of v)switch(w.type){case"comma":case"space":break;case"comment":T=w.source.substring(1);break e;default:break e}if(T){let w=c.items[c.items.length-1];if(Oy.isPair(w))w=w.value??w.key;if(w.comment)w.comment+=`
68
+ `+T;else w.comment=T;k.comment=k.comment.substring(T.length+1)}}}if(!o&&!A&&!k.found){let T=L?e(s,L,k,i):t(s,k.end,A,null,k,i);if(c.items.push(T),u=T.range[2],vr(L))i(T.range,"BLOCK_IN_FLOW",Er)}else{s.atKey=!0;let T=k.end,w=N?e(s,N,k,i):t(s,T,v,null,k,i);if(vr(N))i(w.range,"BLOCK_IN_FLOW",Er);s.atKey=!1;let C=Aa.resolveProps(A??[],{flow:a,indicator:"map-value-ind",next:L,offset:w.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(C.found){if(!o&&!k.found&&s.options.strict){if(A)for(let D of A){if(D===C.found)break;if(D.type==="newline"){i(D,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(k.start<C.found.offset-1024)i(C.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(L)if("source"in L&&L.source?.[0]===":")i(L,"MISSING_CHAR",`Missing space after : in ${a}`);else i(C.start,"MISSING_CHAR",`Missing , or : between ${a} items`);let Z=L?e(s,L,C,i):C.found?t(s,C.end,A,null,C,i):null;if(Z){if(vr(L))i(Z.range,"BLOCK_IN_FLOW",Er)}else if(C.comment)if(w.comment)w.comment+=`
69
+ `+C.comment;else w.comment=C.comment;let be=new ky.Pair(w,Z);if(s.options.keepSourceTokens)be.srcToken=E;if(o){let D=c;if(qy.mapIncludes(s,D.items,w))i(T,"DUPLICATE_KEY","Map keys must be unique");D.items.push(be)}else{let D=new Na.YAMLMap(s.schema);D.flow=!0,D.items.push(be);let Qr=(Z??w).range;D.range=[w.range[0],Qr[1],Qr[2]],c.items.push(D)}u=Z?Z.range[2]:C.end}}let f=o?"}":"]",[p,...y]=r.end,d=u;if(p?.source===f)d=p.offset+p.source.length;else{let g=a[0].toUpperCase()+a.substring(1),E=h?`${g} must end with a ${f}`:`${g} in block collection must be sufficiently indented and end with a ${f}`;if(i(u,h?"MISSING_CHAR":"BAD_INDENT",E),p&&p.source.length!==1)y.unshift(p)}if(y.length>0){let g=Ty.resolveEnd(y,d,s.options.strict,i);if(g.comment)if(c.comment)c.comment+=`
70
+ `+g.comment;else c.comment=g.comment;c.range=[r.offset,d,g.offset]}else c.range=[r.offset,d,d];return c}Cy.resolveFlowCollection=Ry});var Oa=m(function(Ky){var My=I(),Py=R(),xy=oe(),_y=ae(),Fy=Ea(),By=va(),jy=La();function Nr(e,t,s,r,i,n){let o=s.type==="block-map"?Fy.resolveBlockMap(e,t,s,r,n):s.type==="block-seq"?By.resolveBlockSeq(e,t,s,r,n):jy.resolveFlowCollection(e,t,s,r,n),a=o.constructor;if(i==="!"||i===a.tagName)return o.tag=a.tagName,o;if(i)o.tag=i;return o}function Uy(e,t,s,r,i){let n=r.tag,o=!n?null:t.directives.tagName(n.source,(f)=>i(n,"TAG_RESOLVE_FAILED",f));if(s.type==="block-seq"){let{anchor:f,newlineAfterProp:p}=r,y=f&&n?f.offset>n.offset?f:n:f??n;if(y&&(!p||p.offset<y.offset))i(y,"MISSING_CHAR","Missing newline after block sequence props")}let a=s.type==="block-map"?"map":s.type==="block-seq"?"seq":s.start.source==="{"?"map":"seq";if(!n||!o||o==="!"||o===xy.YAMLMap.tagName&&a==="map"||o===_y.YAMLSeq.tagName&&a==="seq")return Nr(e,t,s,i,o);let l=t.schema.tags.find((f)=>f.tag===o&&f.collection===a);if(!l){let f=t.schema.knownTags[o];if(f?.collection===a)t.schema.tags.push(Object.assign({},f,{default:!1})),l=f;else{if(f)i(n,"BAD_COLLECTION_TYPE",`${f.tag} used for ${a} collection, but expects ${f.collection??"scalar"}`,!0);else i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0);return Nr(e,t,s,i,o)}}let c=Nr(e,t,s,i,o,l),h=l.resolve?.(c,(f)=>i(n,"TAG_RESOLVE_FAILED",f),t.options)??c,u=My.isNode(h)?h:new Py.Scalar(h);if(u.range=c.range,u.tag=o,l?.format)u.format=l.format;return u}Ky.composeCollection=Uy});var Lr=m(function(Xy){var Ar=R();function Gy(e,t,s){let r=t.offset,i=Yy(t,e.options.strict,s);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};let n=i.mode===">"?Ar.Scalar.BLOCK_FOLDED:Ar.Scalar.BLOCK_LITERAL,o=t.source?Jy(t.source):[],a=o.length;for(let d=o.length-1;d>=0;--d){let g=o[d][1];if(g===""||g==="\r")a=d;else break}if(a===0){let d=i.chomp==="+"&&o.length>0?`
71
+ `.repeat(Math.max(1,o.length-1)):"",g=r+i.length;if(t.source)g+=t.source.length;return{value:d,type:n,comment:i.comment,range:[r,g,g]}}let l=t.indent+i.indent,c=t.offset+i.length,h=0;for(let d=0;d<a;++d){let[g,E]=o[d];if(E===""||E==="\r"){if(i.indent===0&&g.length>l)l=g.length}else{if(g.length<l)s(c+g.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(i.indent===0)l=g.length;if(h=d,l===0&&!e.atRoot)s(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=g.length+E.length+1}for(let d=o.length-1;d>=a;--d)if(o[d][0].length>l)a=d+1;let u="",f="",p=!1;for(let d=0;d<h;++d)u+=o[d][0].slice(l)+`
72
+ `;for(let d=h;d<a;++d){let[g,E]=o[d];c+=g.length+E.length+1;let v=E[E.length-1]==="\r";if(v)E=E.slice(0,-1);if(E&&g.length<l){let A=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;s(c-E.length-(v?2:1),"BAD_INDENT",A),g=""}if(n===Ar.Scalar.BLOCK_LITERAL)u+=f+g.slice(l)+E,f=`
73
+ `;else if(g.length>l||E[0]==="\t"){if(f===" ")f=`
74
+ `;else if(!p&&f===`
75
+ `)f=`
76
+
77
+ `;u+=f+g.slice(l)+E,f=`
78
+ `,p=!0}else if(E==="")if(f===`
79
+ `)u+=`
80
+ `;else f=`
81
+ `;else u+=f+E,f=" ",p=!1}switch(i.chomp){case"-":break;case"+":for(let d=a;d<o.length;++d)u+=`
82
+ `+o[d][0].slice(l);if(u[u.length-1]!==`
83
+ `)u+=`
84
+ `;break;default:u+=`
85
+ `}let y=r+i.length+t.source.length;return{value:u,type:n,comment:i.comment,range:[r,y,y]}}function Yy({offset:e,props:t},s,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],n=i[0],o=0,a="",l=-1;for(let f=1;f<i.length;++f){let p=i[f];if(!a&&(p==="-"||p==="+"))a=p;else{let y=Number(p);if(!o&&y)o=y;else if(l===-1)l=e+f}}if(l!==-1)r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,h="",u=i.length;for(let f=1;f<t.length;++f){let p=t[f];switch(p.type){case"space":c=!0;case"newline":u+=p.source.length;break;case"comment":if(s&&!c)r(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");u+=p.source.length,h=p.source.substring(1);break;case"error":r(p,"UNEXPECTED_TOKEN",p.message),u+=p.source.length;break;default:{let y=`Unexpected token in block scalar header: ${p.type}`;r(p,"UNEXPECTED_TOKEN",y);let d=p.source;if(d&&typeof d==="string")u+=d.length}}}return{mode:n,indent:o,chomp:a,comment:h,length:u}}function Jy(e){let t=e.split(/\n( *)/),s=t[0],r=s.match(/^( *)/),n=[r?.[1]?[r[1],s.slice(r[1].length)]:["",s]];for(let o=1;o<t.length;o+=2)n.push([t[o],t[o+1]]);return n}Xy.resolveBlockScalar=Gy});var kr=m(function(iS){var Or=R(),Wy=qe();function Qy(e,t,s){let{offset:r,type:i,source:n,end:o}=e,a,l,c=(f,p,y)=>s(r+f,p,y);switch(i){case"scalar":a=Or.Scalar.PLAIN,l=zy(n,c);break;case"single-quoted-scalar":a=Or.Scalar.QUOTE_SINGLE,l=Zy(n,c);break;case"double-quoted-scalar":a=Or.Scalar.QUOTE_DOUBLE,l=eS(n,c);break;default:return s(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+n.length,r+n.length]}}let h=r+n.length,u=Wy.resolveEnd(o,h,t,s);return{value:l,type:a,comment:u.comment,range:[r,h,u.offset]}}function zy(e,t){let s="";switch(e[0]){case"\t":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${e[0]}`;break}case"@":case"`":{s=`reserved character ${e[0]}`;break}}if(s)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`);return ka(e)}function Zy(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return ka(e.slice(1,-1)).replace(/''/g,"'")}function ka(e){let t=/(.*?)\r?\n/sy,s=t.exec(e);if(!s)return e;let r,i;try{r=new RegExp("(?<![ \t])[ \t]+$"),i=new RegExp("^[ \t]+|(?<![ \t])[ \t]+$","g")}catch{r=/[ \t]+$/,i=/^[ \t]+|[ \t]+$/g}let n=s[1].replace(r,""),o=" ",a=t.lastIndex;while(s=t.exec(e)){let c=s[1].replace(i,"");if(c==="")if(o===`
86
+ `)n+=o;else o=`
87
+ `;else n+=o+c,o=" ";a=t.lastIndex}let l=/[ \t]*(.*)/sy;return l.lastIndex=a,s=l.exec(e),n+o+(s?.[1]??"")}function eS(e,t){let s="";for(let r=1;r<e.length-1;++r){let i=e[r];if(i==="\r"&&e[r+1]===`
88
+ `)continue;if(i===`
89
+ `){let{fold:n,offset:o}=tS(e,r);s+=n,r=o}else if(i==="\\"){let n=e[++r],o=sS[n];if(o)s+=o;else if(n===`
90
+ `){n=e[r+1];while(n===" "||n==="\t")n=e[++r+1]}else if(n==="\r"&&e[r+1]===`
91
+ `){n=e[++r+1];while(n===" "||n==="\t")n=e[++r+1]}else if(n==="x"||n==="u"||n==="U"){let a=n==="x"?2:n==="u"?4:8;s+=rS(e,r+1,a,t),r+=a}else{let a=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),s+=a}}else if(i===" "||i==="\t"){let n=r,o=e[r+1];while(o===" "||o==="\t")o=e[++r+1];if(o!==`
92
+ `&&!(o==="\r"&&e[r+2]===`
93
+ `))s+=r>n?e.slice(n,r+1):i}else s+=i}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return s}function tS(e,t){let s="",r=e[t+1];while(r===" "||r==="\t"||r===`
94
+ `||r==="\r"){if(r==="\r"&&e[t+2]!==`
95
+ `)break;if(r===`
96
+ `)s+=`
97
+ `;t+=1,r=e[t+1]}if(!s)s=" ";return{fold:s,offset:t}}var sS={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
98
+ `,r:"\r",t:"\t",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function rS(e,t,s,r){let i=e.substr(t,s),o=i.length===s&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(o)}catch{let a=e.substr(t-2,s+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}}iS.resolveFlowScalar=Qy});var Ta=m(function(fS){var ge=I(),Ia=R(),oS=Lr(),aS=kr();function lS(e,t,s,r){let{value:i,type:n,comment:o,range:a}=t.type==="block-scalar"?oS.resolveBlockScalar(e,t,r):aS.resolveFlowScalar(t,e.options.strict,r),l=s?e.directives.tagName(s.source,(u)=>r(s,"TAG_RESOLVE_FAILED",u)):null,c;if(e.options.stringKeys&&e.atKey)c=e.schema[ge.SCALAR];else if(l)c=cS(e.schema,i,l,s,r);else if(t.type==="scalar")c=uS(e,i,t,r);else c=e.schema[ge.SCALAR];let h;try{let u=c.resolve(i,(f)=>r(s??t,"TAG_RESOLVE_FAILED",f),e.options);h=ge.isScalar(u)?u:new Ia.Scalar(u)}catch(u){let f=u instanceof Error?u.message:String(u);r(s??t,"TAG_RESOLVE_FAILED",f),h=new Ia.Scalar(i)}if(h.range=a,h.source=i,n)h.type=n;if(l)h.tag=l;if(c.format)h.format=c.format;if(o)h.comment=o;return h}function cS(e,t,s,r,i){if(s==="!")return e[ge.SCALAR];let n=[];for(let a of e.tags)if(!a.collection&&a.tag===s)if(a.default&&a.test)n.push(a);else return a;for(let a of n)if(a.test?.test(t))return a;let o=e.knownTags[s];if(o&&!o.collection)return e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o;return i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str"),e[ge.SCALAR]}function uS({atKey:e,directives:t,schema:s},r,i,n){let o=s.tags.find((a)=>(a.default===!0||e&&a.default==="key")&&a.test?.test(r))||s[ge.SCALAR];if(s.compat){let a=s.compat.find((l)=>l.default&&l.test?.test(r))??s[ge.SCALAR];if(o.tag!==a.tag){let l=t.tagString(o.tag),c=t.tagString(a.tag),h=`Value may be parsed as either ${l} or ${c}`;n(i,"TAG_RESOLVE_FAILED",h,!0)}}return o}fS.composeScalar=lS});var $a=m(function(dS){function pS(e,t,s){if(t){s??(s=t.length);for(let r=s-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}i=t[++r];while(i?.type==="space")e+=i.source.length,i=t[++r];break}}return e}dS.emptyScalarPosition=pS});var Ca=m(function(NS){var gS=Ue(),yS=I(),SS=Oa(),qa=Ta(),bS=qe(),wS=$a(),ES={composeNode:Ra,composeEmptyNode:Ir};function Ra(e,t,s,r){let i=e.atKey,{spaceBefore:n,comment:o,anchor:a,tag:l}=s,c,h=!0;switch(t.type){case"alias":if(c=vS(e,t,r),a||l)r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(c=qa.composeScalar(e,t,l,r),a)c.anchor=a.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{if(c=SS.composeCollection(ES,e,t,s,r),a)c.anchor=a.source.substring(1)}catch(u){let f=u instanceof Error?u.message:String(u);r(t,"RESOURCE_EXHAUSTION",f)}break;default:{let u=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",u),h=!1}}if(c??(c=Ir(e,t.offset,void 0,null,s,r)),a&&c.anchor==="")r(a,"BAD_ALIAS","Anchor cannot be an empty string");if(i&&e.options.stringKeys&&(!yS.isScalar(c)||typeof c.value!=="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str"))r(l??t,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(n)c.spaceBefore=!0;if(o)if(t.type==="scalar"&&t.source==="")c.comment=o;else c.commentBefore=o;if(e.options.keepSourceTokens&&h)c.srcToken=t;return c}function Ir(e,t,s,r,{spaceBefore:i,comment:n,anchor:o,tag:a,end:l},c){let h={type:"scalar",offset:wS.emptyScalarPosition(t,s,r),indent:-1,source:""},u=qa.composeScalar(e,h,a,c);if(o){if(u.anchor=o.source.substring(1),u.anchor==="")c(o,"BAD_ALIAS","Anchor cannot be an empty string")}if(i)u.spaceBefore=!0;if(n)u.comment=n,u.range[2]=l;return u}function vS({options:e},{offset:t,source:s,end:r},i){let n=new gS.Alias(s.substring(1));if(n.source==="")i(t,"BAD_ALIAS","Alias cannot be an empty string");if(n.source.endsWith(":"))i(t+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=t+s.length,a=bS.resolveEnd(r,o,e.strict,i);if(n.range=[t,o,a.offset],a.comment)n.comment=a.comment;return n}NS.composeEmptyNode=Ir;NS.composeNode=Ra});var Ma=m(function($S){var OS=st(),Da=Ca(),kS=qe(),IS=it();function TS(e,t,{offset:s,start:r,value:i,end:n},o){let a=Object.assign({_directives:t},e),l=new OS.Document(void 0,a),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},h=IS.resolveProps(r,{indicator:"doc-start",next:i??n?.[0],offset:s,onError:o,parentIndent:0,startOnNewline:!0});if(h.found){if(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!h.hasNewline)o(h.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}l.contents=i?Da.composeNode(c,i,h,o):Da.composeEmptyNode(c,h.end,r,null,h,o);let u=l.contents.range[2],f=kS.resolveEnd(n,u,!1,o);if(f.comment)l.comment=f.comment;return l.range=[s,u,f.offset],l}$S.composeDoc=TS});var Tr=m(function(xS){var RS=ut("process"),CS=Cs(),DS=st(),nt=rt(),Pa=I(),MS=Ma(),PS=qe();function ot(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:s}=e;return[t,t+(typeof s==="string"?s.length:1)]}function xa(e){let t="",s=!1,r=!1;for(let i=0;i<e.length;++i){let n=e[i];switch(n[0]){case"#":t+=(t===""?"":r?`
99
+
100
+ `:`
101
+ `)+(n.substring(1)||" "),s=!0,r=!1;break;case"%":if(e[i+1]?.[0]!=="#")i+=1;s=!1;break;default:if(!s)r=!0;s=!1}}return{comment:t,afterEmptyLine:r}}class _a{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,s,r,i)=>{let n=ot(t);if(i)this.warnings.push(new nt.YAMLWarning(n,s,r));else this.errors.push(new nt.YAMLParseError(n,s,r))},this.directives=new CS.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:s,afterEmptyLine:r}=xa(this.prelude);if(s){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}
102
+ ${s}`:s;else if(r||e.directives.docStart||!i)e.commentBefore=s;else if(Pa.isCollection(i)&&!i.flow&&i.items.length>0){let n=i.items[0];if(Pa.isPair(n))n=n.key;let o=n.commentBefore;n.commentBefore=o?`${s}
103
+ ${o}`:s}else{let n=i.commentBefore;i.commentBefore=n?`${s}
104
+ ${n}`:s}}if(t){for(let i=0;i<this.errors.length;++i)e.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)e.warnings.push(this.warnings[i])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:xa(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(let r of e)yield*this.next(r);yield*this.end(t,s)}*next(e){if(RS.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,(t,s,r)=>{let i=ot(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",s,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=MS.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(t,!1),this.doc)yield this.doc;this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new nt.YAMLParseError(ot(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(s);else this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){this.errors.push(new nt.YAMLParseError(ot(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=PS.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let s=this.doc.comment;this.doc.comment=s?`${s}
105
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new nt.YAMLParseError(ot(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let s=Object.assign({_directives:this.directives},this.options),r=new DS.Document(void 0,s);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");r.range=[0,t,t],this.decorate(r,!1),yield r}}}xS.Composer=_a});var ja=m(function(YS){var FS=Lr(),BS=kr(),jS=rt(),Fa=Ye();function US(e,t=!0,s){if(e){let r=(i,n,o)=>{let a=typeof i==="number"?i:Array.isArray(i)?i[0]:i.offset;if(s)s(a,n,o);else throw new jS.YAMLParseError([a,a+1],n,o)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return BS.resolveFlowScalar(e,t,r);case"block-scalar":return FS.resolveBlockScalar({options:{strict:t}},e,r)}}return null}function KS(e,t){let{implicitKey:s=!1,indent:r,inFlow:i=!1,offset:n=-1,type:o="PLAIN"}=t,a=Fa.stringifyString({type:o,value:e},{implicitKey:s,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:`
106
+ `}];switch(a[0]){case"|":case">":{let c=a.indexOf(`
107
+ `),h=a.substring(0,c),u=a.substring(c+1)+`
108
+ `,f=[{type:"block-scalar-header",offset:n,indent:r,source:h}];if(!Ba(f,l))f.push({type:"newline",offset:-1,indent:r,source:`
109
+ `});return{type:"block-scalar",offset:n,indent:r,props:f,source:u}}case'"':return{type:"double-quoted-scalar",offset:n,indent:r,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:n,indent:r,source:a,end:l};default:return{type:"scalar",offset:n,indent:r,source:a,end:l}}}function VS(e,t,s={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:n=!1,type:o}=s,a="indent"in e?e.indent:null;if(r&&typeof a==="number")a+=2;if(!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=e.props[0];if(c.type!=="block-scalar-header")throw Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=Fa.stringifyString({type:o,value:t},{implicitKey:i||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":GS(e,l);break;case'"':$r(e,l,"double-quoted-scalar");break;case"'":$r(e,l,"single-quoted-scalar");break;default:$r(e,l,"scalar")}}function GS(e,t){let s=t.indexOf(`
110
+ `),r=t.substring(0,s),i=t.substring(s+1)+`
111
+ `;if(e.type==="block-scalar"){let n=e.props[0];if(n.type!=="block-scalar-header")throw Error("Invalid block scalar header");n.source=r,e.source=i}else{let{offset:n}=e,o="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:n,indent:o,source:r}];if(!Ba(a,"end"in e?e.end:void 0))a.push({type:"newline",offset:-1,indent:o,source:`
112
+ `});for(let l of Object.keys(e))if(l!=="type"&&l!=="offset")delete e[l];Object.assign(e,{type:"block-scalar",indent:o,props:a,source:i})}}function Ba(e,t){if(t)for(let s of t)switch(s.type){case"space":case"comment":e.push(s);break;case"newline":return e.push(s),!0}return!1}function $r(e,t,s){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=s,e.source=t;break;case"block-scalar":{let r=e.props.slice(1),i=t.length;if(e.props[0].type==="block-scalar-header")i-=e.props[0].source.length;for(let n of r)n.offset+=i;delete e.props,Object.assign(e,{type:s,source:t,end:r});break}case"block-map":case"block-seq":{let i={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
113
+ `};delete e.items,Object.assign(e,{type:s,source:t,end:[i]});break}default:{let r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter((n)=>n.type==="space"||n.type==="comment"||n.type==="newline"):[];for(let n of Object.keys(e))if(n!=="type"&&n!=="offset")delete e[n];Object.assign(e,{type:s,indent:r,source:t,end:i})}}}YS.createScalarToken=KS;YS.resolveAsScalar=US;YS.setScalarValue=VS});var Ua=m(function(QS){var WS=(e)=>("type"in e)?as(e):os(e);function as(e){switch(e.type){case"block-scalar":{let t="";for(let s of e.props)t+=as(s);return t+e.source}case"block-map":case"block-seq":{let t="";for(let s of e.items)t+=os(s);return t}case"flow-collection":{let t=e.start.source;for(let s of e.items)t+=os(s);for(let s of e.end)t+=s.source;return t}case"document":{let t=os(e);if(e.end)for(let s of e.end)t+=s.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let s of e.end)t+=s.source;return t}}}function os({start:e,key:t,sep:s,value:r}){let i="";for(let n of e)i+=n.source;if(t)i+=as(t);if(s)for(let n of s)i+=n.source;if(r)i+=as(r);return i}QS.stringify=WS});var Ga=m(function(eb){var qr=Symbol("break visit"),ZS=Symbol("skip children"),Ka=Symbol("remove item");function ye(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};Va(Object.freeze([]),e,t)}ye.BREAK=qr;ye.SKIP=ZS;ye.REMOVE=Ka;ye.itemAtPath=(e,t)=>{let s=e;for(let[r,i]of t){let n=s?.[r];if(n&&"items"in n)s=n.items[i];else return}return s};ye.parentCollection=(e,t)=>{let s=ye.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=s?.[r];if(i&&"items"in i)return i;throw Error("Parent collection not found")};function Va(e,t,s){let r=s(t,e);if(typeof r==="symbol")return r;for(let i of["key","value"]){let n=t[i];if(n&&"items"in n){for(let o=0;o<n.items.length;++o){let a=Va(Object.freeze(e.concat([[i,o]])),n.items[o],s);if(typeof a==="number")o=a-1;else if(a===qr)return qr;else if(a===Ka)n.items.splice(o,1),o-=1}if(typeof r==="function"&&i==="key")r=r(t,e)}}return typeof r==="function"?r(t,e):r}eb.visit=ye});var ls=m(function(lb){var Rr=ja(),sb=Ua(),rb=Ga(),Cr="\uFEFF",Dr="\x02",Mr="\x18",Pr="\x1F",ib=(e)=>!!e&&("items"in e),nb=(e)=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function ob(e){switch(e){case Cr:return"<BOM>";case Dr:return"<DOC>";case Mr:return"<FLOW_END>";case Pr:return"<SCALAR>";default:return JSON.stringify(e)}}function ab(e){switch(e){case Cr:return"byte-order-mark";case Dr:return"doc-mode";case Mr:return"flow-error-end";case Pr:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
114
+ `:case`\r
115
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}lb.createScalarToken=Rr.createScalarToken;lb.resolveAsScalar=Rr.resolveAsScalar;lb.setScalarValue=Rr.setScalarValue;lb.stringify=sb.stringify;lb.visit=rb.visit;lb.BOM=Cr;lb.DOCUMENT=Dr;lb.FLOW_END=Mr;lb.SCALAR=Pr;lb.isCollection=ib;lb.isScalar=nb;lb.prettyToken=ob;lb.tokenType=ab});var _r=m(function(Ab){var at=ls();function J(e){switch(e){case void 0:case" ":case`
116
+ `:case"\r":case"\t":return!0;default:return!1}}var Ya=new Set("0123456789ABCDEFabcdef"),vb=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),cs=new Set(",[]{}"),Nb=new Set(` ,[]{}
117
+ \r `),xr=(e)=>!e||Nb.has(e);class Ja{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";while(s&&(t||this.hasChars(1)))s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t===`
118
+ `)return!0;if(t==="\r")return this.buffer[e+1]===`
119
+ `;return!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;while(t===" ")t=this.buffer[++s+e];if(t==="\r"){let r=this.buffer[s+e+1];if(r===`
120
+ `||!r&&!this.atEnd)return e+s+1}return t===`
121
+ `||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if(t==="-"||t==="."){let s=this.buffer.substr(e,3);if((s==="---"||s==="...")&&J(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&e<this.pos)e=this.buffer.indexOf(`
122
+ `,this.pos),this.lineEndPos=e;if(e===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[e-1]==="\r")e-=1;return this.buffer.substring(this.pos,e)}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===at.BOM)yield*this.pushCount(1),e=e.substring(1);if(e[0]==="%"){let t=e.length,s=e.indexOf("#");while(s!==-1){let i=e[s-1];if(i===" "||i==="\t"){t=s-1;break}else s=e.indexOf("#",s+1)}while(!0){let i=e[t-1];if(i===" "||i==="\t")t-=1;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield at.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if((t==="---"||t==="...")&&J(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!J(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&J(t)){let s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(xr),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,s=-1;do{if(e=yield*this.pushNewline(),e>0)t=yield*this.pushSpaces(!1),this.indentValue=s=t;else t=0;t+=yield*this.pushSpaces(!0)}while(e+t>0);let r=this.getLine();if(r===null)return this.setNext("flow");if(s!==-1&&s<this.indentNext&&r[0]!=="#"||s===0&&(r.startsWith("---")||r.startsWith("..."))&&J(r[3])){if(!(s===this.indentNext-1&&this.flowLevel===1&&(r[0]==="]"||r[0]==="}")))return this.flowLevel=0,yield at.FLOW_END,yield*this.parseLineStart()}let i=0;while(r[i]===",")i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(xr),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let n=this.charAt(1);if(this.flowKey||J(n)||n===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e==="'")while(t!==-1&&this.buffer[t+1]==="'")t=this.buffer.indexOf("'",t+2);else while(t!==-1){let i=0;while(this.buffer[t-1-i]==="\\")i+=1;if(i%2===0)break;t=this.buffer.indexOf('"',t+1)}let s=this.buffer.substring(0,t),r=s.indexOf(`
123
+ `,this.pos);if(r!==-1){while(r!==-1){let i=this.continueScalar(r+1);if(i===-1)break;r=s.indexOf(`
124
+ `,i)}if(r!==-1)t=r-(s[r-1]==="\r"?2:1)}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;while(!0){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((t)=>J(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,s;e:for(let i=this.pos;s=this.buffer[i];++i)switch(s){case" ":t+=1;break;case`
125
+ `:e=i,t=0;break;case"\r":{let n=this.buffer[i+1];if(!n&&!this.atEnd)return this.setNext("block-scalar");if(n===`
126
+ `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
127
+ `,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let r=e+1;s=this.buffer[r];while(s===" ")s=this.buffer[++r];if(s==="\t"){while(s==="\t"||s===" "||s==="\r"||s===`
128
+ `)s=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let i=e-1,n=this.buffer[i];if(n==="\r")n=this.buffer[--i];let o=i;while(n===" ")n=this.buffer[--i];if(n===`
129
+ `&&i>=this.pos&&i+1+t>o)e=i;else break}while(!0);return yield at.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,s=this.pos-1,r;while(r=this.buffer[++s])if(r===":"){let i=this.buffer[s+1];if(J(i)||e&&cs.has(i))break;t=s}else if(J(r)){let i=this.buffer[s+1];if(r==="\r")if(i===`
130
+ `)s+=1,r=`
131
+ `,i=this.buffer[s+1];else t=s;if(i==="#"||e&&cs.has(i))break;if(r===`
132
+ `){let n=this.continueScalar(s+1);if(n===-1)break;s=Math.max(s,n-2)}}else{if(e&&cs.has(r))break;t=s}if(!r&&!this.atEnd)return this.setNext("plain-scalar");return yield at.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc"}*pushCount(e){if(e>0)return yield this.buffer.substr(this.pos,e),this.pos+=e,e;return 0}*pushToIndex(e,t){let s=this.buffer.slice(this.pos,e);if(s)return yield s,this.pos+=s.length,s.length;else if(t)yield"";return 0}*pushIndicators(){let e=0;e:while(!0){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(xr),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let t=this.flowLevel>0,s=this.charAt(1);if(J(s)||t&&cs.has(s)){if(!t)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];while(!J(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];while(t)if(vb.has(t))t=this.buffer[++e];else if(t==="%"&&Ya.has(this.buffer[e+1])&&Ya.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];if(e===`
133
+ `)return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)===`
134
+ `)return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1,s;do s=this.buffer[++t];while(s===" "||e&&s==="\t");let r=t-this.pos;if(r>0)yield this.buffer.substr(this.pos,r),this.pos=t;return r}*pushUntil(e){let t=this.pos,s=this.buffer[t];while(!e(s))s=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}Ab.Lexer=Ja});var Fr=m(function(Ob){class Xa{constructor(){this.lineStarts=[],this.addNewLine=(e)=>this.lineStarts.push(e),this.linePos=(e)=>{let t=0,s=this.lineStarts.length;while(t<s){let i=t+s>>1;if(this.lineStarts[i]<e)t=i+1;else s=i}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}Ob.LineCounter=Xa});var Br=m(function($b){var Ib=ut("process"),Ha=ls(),Tb=_r();function le(e,t){for(let s=0;s<e.length;++s)if(e[s].type===t)return!0;return!1}function Wa(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function za(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function us(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Re(e){if(e.length===0)return[];let t=e.length;e:while(--t>=0)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}while(e[++t]?.type==="space");return e.splice(t,e.length)}function fs(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let s=0;s<t.length;++s)e.push(t[s])}function Qa(e){if(e.start.type==="flow-seq-start"){for(let t of e.items)if(t.sep&&!t.value&&!le(t.start,"explicit-key-ind")&&!le(t.sep,"map-value-ind")){if(t.key)t.value=t.key;if(delete t.key,za(t.value))if(t.value.end)fs(t.value.end,t.sep);else t.value.end=t.sep;else fs(t.start,t.sep);delete t.sep}}}class Za{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Tb.Lexer,this.onNewLine=e}*parse(e,t=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let s of this.lexer.lex(e,t))yield*this.next(s);if(!t)yield*this.end()}*next(e){if(this.source=e,Ib.env.LOG_TOKENS)console.log("|",Ha.prettyToken(e));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Ha.tokenType(e);if(!t){let s=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:e}),this.offset+=e.length}else if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{let s=this.peek(1);if(t.type==="block-scalar")t.indent="indent"in s?s.indent:0;else if(t.type==="flow-collection"&&s.type==="document")t.indent=0;if(t.type==="flow-collection")Qa(t);switch(s.type){case"document":s.value=t;break;case"block-scalar":s.props.push(t);break;case"block-map":{let r=s.items[s.items.length-1];if(r.value){s.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(r.sep)r.value=t;else{Object.assign(r,{key:t,sep:[]}),this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{let r=s.items[s.items.length-1];if(r.value)s.items.push({start:[],value:t});else r.value=t;break}case"flow-collection":{let r=s.items[s.items.length-1];if(!r||r.value)s.items.push({start:[],key:t,sep:[]});else if(r.sep)r.value=t;else Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let r=t.items[t.items.length-1];if(r&&!r.sep&&!r.value&&r.start.length>0&&Wa(r.start)===-1&&(t.indent===0||r.start.every((i)=>i.type!=="comment"||i.indent<t.indent))){if(s.type==="document")s.end=r.start;else s.items.push({start:r.start});t.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")e.start.push(this.sourceToken);this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{if(Wa(e.start)!==-1)yield*this.pop(),yield*this.step();else e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);if(t)this.stack.push(t);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){let t=us(this.peek(2)),s=Re(t),r;if(e.end)r=e.end,r.push(this.sourceToken),delete e.end;else r=[this.sourceToken];let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
135
+ `)+1;while(t!==0)this.onNewLine(this.offset+t),t=this.source.indexOf(`
136
+ `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let s="end"in t.value?t.value.end:void 0;if((Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment")s?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let r=e.items[e.items.length-2]?.value?.end;if(Array.isArray(r)){fs(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let s=!this.onKeyLine&&this.indent===e.indent,r=s&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",i=[];if(r&&t.sep&&!t.value){let n=[];for(let o=0;o<t.sep.length;++o){let a=t.sep[o];switch(a.type){case"newline":n.push(o);break;case"space":break;case"comment":if(a.indent>e.indent)n.length=0;break;default:n.length=0}}if(n.length>=2)i=t.sep.splice(n[1])}switch(this.type){case"anchor":case"tag":if(r||t.value)i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0;else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey)t.start.push(this.sourceToken),t.explicitKey=!0;else if(r||t.value)i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(!t.sep)if(le(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let n=Re(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(le(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(za(t.key)&&!le(t.sep,"newline")){let n=Re(t.start),{key:o,sep:a}=t;a.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:o,sep:a}]})}else if(i.length>0)t.sep=t.sep.concat(i,this.sourceToken);else t.sep.push(this.sourceToken);else if(!t.sep)Object.assign(t,{key:null,sep:[this.sourceToken]});else if(t.value||r)e.items.push({start:i,key:null,sep:[this.sourceToken]});else if(le(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else t.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);if(r||t.value)e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0;else if(t.sep)this.stack.push(n);else Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0;return}default:{let n=this.startBlockValue(e);if(n){if(n.type==="block-seq"){if(!t.explicitKey&&t.sep&&!le(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(s)e.items.push({start:i});this.stack.push(n);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let s="end"in t.value?t.value.end:void 0;if((Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment")s?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let r=e.items[e.items.length-2]?.value?.end;if(Array.isArray(r)){fs(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||le(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){let s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:r,sep:[]});else if(t.sep)this.stack.push(r);else Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let s=this.startBlockValue(e);if(s)this.stack.push(s);else yield*this.pop(),yield*this.step()}else{let s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){let r=us(s),i=Re(r);Qa(e);let n=e.end.splice(1,e.end.length);n.push(this.sourceToken);let o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
137
+ `)+1;while(t!==0)this.onNewLine(this.offset+t),t=this.source.indexOf(`
138
+ `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=us(e),s=Re(t);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=us(e),s=Re(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return!1;if(this.indent<=t)return!1;return e.every((s)=>s.type==="newline"||s.type==="space")}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}$b.Parser=Za});var il=m(function(Fb){var el=Tr(),Rb=st(),lt=rt(),Cb=Fs(),Db=I(),Mb=Fr(),tl=Br();function sl(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Mb.LineCounter||null,prettyErrors:t}}function Pb(e,t={}){let{lineCounter:s,prettyErrors:r}=sl(t),i=new tl.Parser(s?.addNewLine),n=new el.Composer(t),o=Array.from(n.compose(i.parse(e)));if(r&&s)for(let a of o)a.errors.forEach(lt.prettifyError(e,s)),a.warnings.forEach(lt.prettifyError(e,s));if(o.length>0)return o;return Object.assign([],{empty:!0},n.streamInfo())}function rl(e,t={}){let{lineCounter:s,prettyErrors:r}=sl(t),i=new tl.Parser(s?.addNewLine),n=new el.Composer(t),o=null;for(let a of n.compose(i.parse(e),!0,e.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new lt.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(r&&s)o.errors.forEach(lt.prettifyError(e,s)),o.warnings.forEach(lt.prettifyError(e,s));return o}function xb(e,t,s){let r=void 0;if(typeof t==="function")r=t;else if(s===void 0&&t&&typeof t==="object")s=t;let i=rl(e,s);if(!i)return null;if(i.warnings.forEach((n)=>Cb.warn(i.options.logLevel,n)),i.errors.length>0)if(i.options.logLevel!=="silent")throw i.errors[0];else i.errors=[];return i.toJS(Object.assign({reviver:r},s))}function _b(e,t,s){let r=null;if(typeof t==="function"||Array.isArray(t))r=t;else if(s===void 0&&t)s=t;if(typeof s==="string")s=s.length;if(typeof s==="number"){let i=Math.round(s);s=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){let{keepUndefined:i}=s??t??{};if(!i)return}if(Db.isDocument(e)&&!r)return e.toString(s);return new Rb.Document(e,r,s).toString(s)}Fb.parse=xb;Fb.parseAllDocuments=Pb;Fb.parseDocument=rl;Fb.stringify=_b});var qf=Ll(Yn(),1);function Jn(e){return e}function Xn(e){return e}function Rf(e){return e}function Hn(e){return Rf({id:`designMd:source:${e.id}`,type:"designMd:source",description:`Design-md: ${e.title}`,contribution:e})}import{existsSync as $w,readdirSync as qw}from"fs";import{join as Rw}from"path";import{readFileSync as Tw}from"fs";var Vb=Tr(),Gb=st(),Yb=pr(),jr=rt(),Jb=Ue(),ce=I(),Xb=ie(),Hb=R(),Wb=oe(),Qb=ae(),pv=ls(),zb=_r(),Zb=Fr(),ew=Br(),hs=il(),nl=Be();var tw=Vb.Composer,sw=Gb.Document,rw=Yb.Schema,{YAMLError:iw,YAMLParseError:nw,YAMLWarning:ow}=jr,aw=Jb.Alias,{isAlias:lw,isCollection:cw,isDocument:uw,isMap:fw,isNode:hw,isPair:pw,isScalar:dw,isSeq:mw}=ce,gw=Xb.Pair,yw=Hb.Scalar,Sw=Wb.YAMLMap,bw=Qb.YAMLSeq;var ww=zb.Lexer,Ew=Zb.LineCounter,vw=ew.Parser,{parse:Ur,parseAllDocuments:Nw,parseDocument:Aw,stringify:Lw}=hs,{visit:Ow,visitAsync:kw}=nl;var ol=["auto","user","override"];function ct(e){let t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);if(!t)return{meta:"",body:e.trim()};return{meta:(t[1]??"").trim(),body:(t[2]??"").trim()}}function Ce(e){let{meta:t}=ct(e);if(!t)throw Error("design-md file is missing YAML frontmatter");let s=Ur(t);if(!s||typeof s!=="object")throw Error("design-md frontmatter must be a YAML object");if(typeof s.id!=="string"||!s.id)throw Error("design-md frontmatter must include a non-empty 'id' field");let r=typeof s.title==="string"?s.title.trim():"",i=typeof s.name==="string"?s.name.trim():"",n=r||i;if(!n)throw Error("design-md frontmatter must include a non-empty 'title' or 'name' field");if(typeof s.category!=="string"||!s.category)throw Error("design-md frontmatter must include a non-empty 'category' field");let o={id:s.id,title:n,category:s.category,tags:Array.isArray(s.tags)?s.tags:[],origin:typeof s.origin==="string"?s.origin:"local"};if(i)o.name=i;if(typeof s.version==="string"&&s.version.trim())o.version=s.version.trim();if(typeof s.sourceUrl==="string")o.sourceUrl=s.sourceUrl;if(Array.isArray(s.exemptRules)){let a=s.exemptRules.filter((l)=>typeof l==="string"&&l.trim().length>0);if(a.length>0)o.exemptRules=a.map((l)=>l.trim())}if(Array.isArray(s.extractedTokens))o.extractedTokens=s.extractedTokens;if(typeof s.layer==="string")if(ol.includes(s.layer))o.layer=s.layer;else console.warn(`[design-md] ignoring invalid layer "${s.layer}" on id="${o.id}"; expected one of ${ol.join("|")}`);return o}var Iw=[{pattern:/`?(--[\w-]+)`?\s*:\s*([#\w()%., ]+)/g,group:"css-var"},{pattern:/`?([\w-]+(?:Color|Bg|Text|Border|Shadow|Radius|Font|Size|Space))`?\s*[=:]\s*["']?([^"'\n,]+)["']?/gi,group:"token"}];function Kr(e){let t=new Set,s=[];for(let{pattern:r,group:i}of Iw){let n=new RegExp(r.source,r.flags),o;while((o=n.exec(e))!==null){let a=(o[1]??"").trim(),l=(o[2]??"").trim(),c=`${a}:${l}`;if(!t.has(c))t.add(c),s.push({name:a,value:l,group:i})}}return s}function Se(e){let t=Tw(e,"utf-8"),{body:s}=ct(t),r=Ce(t),i=r.extractedTokens??Kr(s),n={id:r.id,title:r.title,category:r.category,tags:r.tags??[],origin:r.origin??"local",body:s,filePath:e};if(r.sourceUrl)n.sourceUrl=r.sourceUrl;if(r.exemptRules)n.exemptRules=r.exemptRules;if(r.layer)n.layer=r.layer;if(i.length>0)n.extractedTokens=i;return n}function Vr(e){if(!$w(e))return[];let t=[];function s(r){for(let i of qw(r,{withFileTypes:!0})){let n=Rw(r,i.name);if(i.isDirectory())s(n);else if(i.isFile()&&i.name.endsWith(".md"))try{t.push(Se(n))}catch(o){console.warn(`[design-md] skipping ${n}: ${o.message}`)}}}return s(e),t}var al={auto:1,user:2,override:3};class ps{entries=new Map;add(e,t){let s=t?.layer??"user",r=this.entries.get(e.id);if(r){let i=r.layer??"user";if(al[s]<al[i])return}this.entries.set(e.id,{...e,layer:s})}addAll(e,t){for(let s of e)this.add(s,t)}get(e){return this.entries.get(e)}list(){return[...this.entries.values()]}size(){return this.entries.size}remove(e){return this.entries.delete(e)}}function Cw(e){return Math.ceil(e.length/4)}var Dw=/[\u3400-\u9FFF\uF900-\uFAFF]+/g;function ll(e){let t=e.toLowerCase(),s=new Set(t.split(/[\s,;/|+_\-\uFF0C\uFF1B\u3001\u3002\uFF1A:()\uFF08\uFF09]+/).filter(Boolean));for(let r of t.match(Dw)??[]){if(r.length===1)s.add(r);for(let i=0;i+2<=r.length;i+=1)s.add(r.slice(i,i+2))}return s}var Mw=/[\u3400-\u9FFF\uF900-\uFAFF]/;function Pw(e){return e.length>=3||e.length===2&&Mw.test(e)}function xw(e,t){let s=0;if(t.ids&&t.ids.includes(e.id))s+=100;if(t.category&&e.category===t.category)s+=10;if(t.tags&&t.tags.length>0){let r=new Set(e.tags.map((i)=>i.toLowerCase()));for(let i of t.tags)if(r.has(i.toLowerCase()))s+=3}if(t.intent){let r=ll(t.intent),i=ll([e.title,e.category,...e.tags].join(" "));for(let n of r)if(Pw(n)&&i.has(n))s+=2}return s}function _w(e){return!e.category&&(!e.tags||e.tags.length===0)&&(!e.ids||e.ids.length===0)&&!e.intent}class ds{registry;constructor(e){this.registry=e}select(e){let t=e.maxEntries??3,s=e.maxTokens??1/0,r=this.registry.list(),i=_w(e)?r:r.map((a)=>({entry:a,score:xw(a,e)})).filter(({score:a})=>a>0).sort((a,l)=>l.score-a.score).map(({entry:a})=>a),n=[],o=0;for(let a of i){if(n.length>=t)break;let l=Cw(a.body);if(o+l>s)continue;n.push(a),o+=l}return n}}import{existsSync as cl,readFileSync as ul}from"fs";import{join as fl,resolve as hl}from"path";var Gr="project";function Yr(e){return fl(e,"DESIGN.md")}function Fw(e){return`# ${e.trim()||"project"} DESIGN
139
+
140
+ Per-project visual contract. Owned by this consumer. UIBot house seeds
141
+ (\`frontend-principles\`, \`control-console\`) are generation defaults only;
142
+ this file wins on tokens, type, and chrome for this product.
143
+
144
+ ## Visual Theme
145
+
146
+ Quiet product chrome. Status first. Sidebar is shell, page is canvas, cards
147
+ are surface. Color is for state, not for the current-nav paint. Sentence case.
148
+
149
+ ## Color Palette
150
+
151
+ | Token | Light | Dark | Role |
152
+ | --- | --- | --- | --- |
153
+ | shell | #F1F3F6 | #0E1014 | sider / app chrome |
154
+ | background | #F7F8FA | #111318 | page canvas |
155
+ | surface | #FFFFFF | #191D24 | tables / popovers |
156
+ | text | #18212F | #EDF1F7 | body |
157
+ | muted | #566174 | #A5B0C1 | helper |
158
+ | border | #E2E6EC | #2C3440 | hairline |
159
+ | accent | #1D4ED8 | #93B4FF | focus / one primary action |
160
+ | success | #166534 | #86EFAC | verified |
161
+ | warning | #92400E | #FCD34D | needs attention |
162
+ | danger | #B91C1C | #FCA5A5 | failure |
163
+
164
+ Do not paint selected nav with accent wash. Use a 4\u20137% mix of text on surface.
165
+
166
+ ## Typographic
167
+
168
+ System sans. Tabular numbers for counts. Ladder: 11 / 12 / 13 / 14 / 16 / 20.
169
+ Page title 20px. Body 14px. Helper \u2265 12px. No marketing display serif.
170
+
171
+ ## Component
172
+
173
+ - Nav: grouped labels, selected = surface mix, hover = lighter mix.
174
+ - Usage: quota / tasks / hourly as hairline layers. Unknown stays \u672A\u77E5 / n/a.
175
+ Percent windows may use a 4px meter; omitted layers get no zero chart.
176
+ - Empty / loading / error are three states. Do not nest a dashed empty card
177
+ inside a layer card.
178
+ - One primary button per region. No nested buttons.
179
+
180
+ ## Layout
181
+
182
+ 4px grid. Radius 3 / 4 / 6 / 8 / 12. Sider ~224px on shell. Content on canvas.
183
+ 375 / 768 / 1440. Touch targets \u2265 44px on 375.
184
+
185
+ ## Motion
186
+
187
+ \u2264 150ms on color and transform. Honor prefers-reduced-motion. No card fades.
188
+
189
+ ## Anti-Pattern
190
+
191
+ - No fake metrics, zero-filled unknown usage, or invented install state.
192
+ - No purple-gradient SaaS, ALL-CAPS chrome eyebrows, or emoji as icons.
193
+ - No unscoped \`html, body, *\` CSS. Scope tokens to the product root.
194
+ - No second design system beside this file.
195
+ `}function pl(e){let t=Yr(e);if(!cl(t))return;let s=ul(t,"utf8");if(!s.trim())return;if(/^---\r?\n/.test(s))try{let r=Se(t);return{...r,id:Gr,layer:"user",tags:r.tags.includes("project")?r.tags:[...r.tags,"project"]}}catch{}return{id:Gr,title:"Project Design",category:"general",tags:["project"],origin:"local",layer:"user",body:s.trim(),filePath:t}}function Bw(e){let t=[],s=new Set;for(let r of e){let i=r.trim();if(!i)continue;let n=hl(i);if(s.has(n))continue;s.add(n),t.push(n);let o=pl(n);if(o)return{entry:o,path:o.filePath??Yr(n),tried:t}}return{path:null,tried:t}}function jw(e){let t=[];if(e.projectRoot)t.push(e.projectRoot);if(e.linkedConsumerRoot)t.push(e.linkedConsumerRoot);if(e.cwd)t.push(e.cwd);if(e.agentRootDir)t.push(e.agentRootDir);return t}function Uw(e){let t=fl(e,".uibot","link.json");if(!cl(t))return;try{let s=JSON.parse(ul(t,"utf8"));if(typeof s.consumerRoot!=="string"||!s.consumerRoot.trim())return;return hl(s.consumerRoot.trim())}catch{return}}import{fileURLToPath as Kw}from"url";import{existsSync as Vw,readdirSync as Gw}from"fs";import{join as Yw}from"path";var Jr=Kw(new URL("../content",import.meta.url));function dl(e=Jr){if(!Vw(e))return[];let t=[];for(let s of Gw(e).sort()){if(s.startsWith("_")||!s.endsWith(".design.md"))continue;try{t.push(Se(Yw(e,s)))}catch(r){console.warn(`[design-md] skipping seed ${s}: ${r.message}`)}}return t}function Jw(e,t=Jr){let s=dl(t);for(let r of s)e.add(r,{layer:r.layer??"auto"});return s}import{mkdirSync as ml,writeFileSync as Xw}from"fs";import{dirname as Hw,join as Ww}from"path";var Xr=65536,Qw=/^github:([^/]+)\/([^/@]+)(?:\/(.+))?$/i;async function gl(e,t=globalThis.fetch){let s=e.trim(),r=Qw.exec(s);if(r){let i=r[1],n=r[2],o=(r[3]??"").replace(/^\/+|\/+$/g,""),a=`https://api.github.com/repos/${i}/${n}/contents`+(o?`/${o}`:""),l=await t(a,{headers:{accept:"application/vnd.github+json","user-agent":"uibot-design-md-sync"}});if(!l.ok)throw Error(`Failed to list github:${i}/${n}${o?"/"+o:""} (HTTP ${l.status})`);let c=await l.json(),h=Array.isArray(c)?c:[c],u=[];for(let f of h){if(!f||typeof f!=="object")continue;let p=f;if(p.type==="file"&&p.name&&yl(p.name)&&p.download_url)u.push(p.download_url)}if(u.length===0)throw Error(`No *.design.md / design markdown files found at github:${i}/${n}`+(o?`/${o}`:""));return{kind:"github",label:`github:${i}/${n}${o?"/"+o:""}`,fileUrls:u}}if(/^https?:\/\//i.test(s))return{kind:"url",label:s,fileUrls:[s]};throw Error(`Unsupported --from value "${e}". Use github:owner/repo[/path] or an https:// URL.`)}function yl(e){let t=e.toLowerCase();return t.endsWith(".design.md")||t.endsWith(".md")&&!t.startsWith("readme")}function Sl(e,t){let{meta:s,body:r}=ct(e);if(!s)return`---
196
+ sourceUrl: ${JSON.stringify(t.sourceUrl)}
197
+ license: ${JSON.stringify(t.license)}
198
+ ---
199
+ ${r}`;let i=s.split(/\r?\n/).filter((n)=>{let o=n.split(":")[0]?.trim().toLowerCase();return o!=="sourceurl"&&o!=="license"&&o!=="origin"});return i.push(`sourceUrl: ${JSON.stringify(t.sourceUrl)}`),i.push(`license: ${JSON.stringify(t.license)}`),i.push("origin: remote"),`---
200
+ ${i.join(`
201
+ `)}
202
+ ---
203
+ ${r?r+(r.endsWith(`
204
+ `)?"":`
205
+ `):""}`}async function zw(e){let t=e.fetchImpl??globalThis.fetch,s=e.defaultLicense??"UNKNOWN",r=[],i=0,n=0,o;try{o=await gl(e.from,t)}catch(a){return{ok:!1,written:0,skipped:0,files:[],error:a instanceof Error?a.message:String(a)}}if(!e.dryRun)ml(e.outDir,{recursive:!0});for(let a of o.fileUrls){let l;try{let y=await t(a,{headers:{"user-agent":"uibot-design-md-sync"}});if(!y.ok){n+=1,r.push({id:a,path:"",sourceUrl:a,status:"skipped",reason:`HTTP ${y.status}`});continue}l=await y.text()}catch(y){return{ok:!1,written:i,skipped:n,files:r,error:`Network failure fetching ${a}: ${y instanceof Error?y.message:String(y)}`}}let c=new TextEncoder().encode(l).byteLength;if(c>Xr){n+=1,r.push({id:a,path:"",sourceUrl:a,status:"skipped",reason:`exceeds ${Xr} bytes (${c})`});continue}let h=Sl(l,{sourceUrl:a,license:s}),u;try{u=Ce(h).id}catch(y){n+=1,r.push({id:a,path:"",sourceUrl:a,status:"skipped",reason:y instanceof Error?y.message:"invalid frontmatter"});continue}let f=`${u}.design.md`,p=Ww(e.outDir,f);if(e.dryRun){r.push({id:u,path:p,sourceUrl:a,status:"dry-run"}),i+=1;continue}ml(Hw(p),{recursive:!0}),Xw(p,h,"utf8"),i+=1,r.push({id:u,path:p,sourceUrl:a,status:"written"})}return{ok:!0,written:i,skipped:n,files:r}}function Hr(e){let t=["---"];if(t.push(`id: ${ue(e.id)}`),t.push(`title: ${ue(e.title)}`),t.push(`category: ${ue(e.category)}`),e.tags?.length)t.push(`tags: [${e.tags.map((s)=>ue(s)).join(", ")}]`);if(e.origin)t.push(`origin: ${ue(e.origin)}`);if(e.sourceUrl)t.push(`sourceUrl: ${ue(e.sourceUrl)}`);if(e.exemptRules?.length)t.push(`exemptRules: [${e.exemptRules.map((s)=>ue(s)).join(", ")}]`);if(e.layer)t.push(`layer: ${ue(e.layer)}`);return t.push("---"),t.push(""),t.push(e.body?.trimEnd()??""),t.push(""),t.join(`
206
+ `)}function Zw(e){let t={};for(let s of e.list())t[s.id]=Hr(s);return t}function e0(e){let t=Hr(e),s=Ce(t);if(s.id!==e.id)throw Error(`round-trip id mismatch: ${s.id} \u2260 ${e.id}`);if(s.title!==e.title)throw Error("round-trip title mismatch");if(s.category!==e.category)throw Error("round-trip category mismatch");if(e.layer&&s.layer!==e.layer)throw Error(`round-trip layer mismatch: ${s.layer} \u2260 ${e.layer}`)}function ue(e){if(/^[\w.-]+$/.test(e))return e;return JSON.stringify(e)}class Wr{options;constructor(e){this.options=e}recordFailure(e){let t=this.options.now?.()??new Date().toISOString();this.options.reflectionStore.append({skillId:this.options.designMdId,trigger:e.trigger,timestamp:t,reflection:e.reflection,...e.context?{context:e.context}:{}})}async proposeRewrite(){let e=this.options.registry.get(this.options.designMdId);if(!e)return null;let t=this.options.reflectionLimit??10,s=this.options.reflectionStore.recent(this.options.designMdId,t),r=s0(s),i=await this.options.generateImprovedBody({designMdId:this.options.designMdId,currentBody:e.body,failureContext:r});return{designMdId:this.options.designMdId,baseVersion:e.layer??"user",proposedBody:i,reflectionCount:s.length,generatedAt:this.options.now?.()??new Date().toISOString()}}applyOverride(e){let t=this.options.registry.get(this.options.designMdId);if(!t)return null;let s={...t,body:e.proposedBody};return this.options.registry.add(s,{layer:"override"}),this.options.registry.get(this.options.designMdId)??null}}function t0(e){return new Wr(e)}function s0(e){if(e.length===0)return"(no prior reflections)";return e.map((t,s)=>`${s+1}. [${t.trigger} \xB7 ${t.timestamp}] ${t.reflection}`).join(`
207
+ `)}function Xv(e={}){let t=e.dir??`${process.cwd()}/.uibot/design-md`,s=new ps;s.addAll(Vr(t));let r=Xn({manifest:Jn({pluginId:"uibot.design-md",version:"0.1.0",displayName:"UIBot Design-MD",description:"Loads `.md` design system style guides from the filesystem and registers them as designMd:source capabilities.",sdkRange:"^0.1.0",engineRange:"^0.1.0",capabilities:s.list().map((i)=>({id:`designMd:source:${i.id}`,type:"designMd:source",description:`Design-md: ${i.title} (${i.category})`})),permissions:[]}),register(i){for(let n of s.list())i.addCapability(Hn(n))}});return Object.assign(r,{registry:s,createSelector(){return new ds(s)}})}export{Jr as DESIGN_MD_CONTENT_DIR,Wr as DesignMdEvolutionAdapter,ps as DesignMdRegistry,ds as DesignMdSelectorImpl,Xr as MAX_DESIGN_MD_BYTES,Gr as PROJECT_DESIGN_MD_ID,e0 as assertSerializeRoundTrip,t0 as createDesignMdEvolutionAdapter,Xv as createUIBotDesignMdPlugin,jw as defaultProjectDesignRoots,Zw as exportDesignMdRegistry,Kr as extractTokensFromBody,Sl as injectAttribution,yl as isDesignMdName,dl as loadBundledDesignMdContent,Se as loadDesignMdFile,pl as loadProjectDesignMd,Bw as loadProjectDesignMdFromRoots,Yr as projectDesignMdPath,Fw as projectDesignMdTemplate,Uw as readLinkedConsumerRoot,gl as resolveRemoteSource,Vr as scanDesignMdDir,Jw as seedDesignMdRegistry,Hr as serializeDesignMdFile,zw as syncDesignMdFromRemote};
@@ -0,0 +1,6 @@
1
+ import type { DesignMd } from "@uibot/contracts";
2
+ /**
3
+ * Load and parse a single design-md `.md` file.
4
+ * Throws if the file is missing frontmatter or required fields.
5
+ */
6
+ export declare function loadDesignMdFile(filePath: string): DesignMd;