faf-cli 6.8.0 → 6.9.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 CHANGED
@@ -1,146 +1,146 @@
1
- import{createRequire as M9}from"node:module";var R9=Object.defineProperty;var T=(q,$)=>()=>($||q(($={exports:{}}).exports,$),$.exports);var P9=(q)=>q;function F9(q,$){this[q]=P9.bind(null,$)}var A9=(q,$)=>{for(var U in $)R9(q,U,{get:$[U],enumerable:!0,configurable:!0,set:F9.bind($,U)})};var I0=M9(import.meta.url);var w=T((s9)=>{var dq=Symbol.for("yaml.alias"),HU=Symbol.for("yaml.document"),i0=Symbol.for("yaml.map"),zU=Symbol.for("yaml.pair"),lq=Symbol.for("yaml.scalar"),r0=Symbol.for("yaml.seq"),k=Symbol.for("yaml.node.type"),v9=(q)=>!!q&&typeof q==="object"&&q[k]===dq,m9=(q)=>!!q&&typeof q==="object"&&q[k]===HU,p9=(q)=>!!q&&typeof q==="object"&&q[k]===i0,d9=(q)=>!!q&&typeof q==="object"&&q[k]===zU,XU=(q)=>!!q&&typeof q==="object"&&q[k]===lq,l9=(q)=>!!q&&typeof q==="object"&&q[k]===r0;function GU(q){if(q&&typeof q==="object")switch(q[k]){case i0:case r0:return!0}return!1}function c9(q){if(q&&typeof q==="object")switch(q[k]){case dq:case i0:case lq:case r0:return!0}return!1}var a9=(q)=>(XU(q)||GU(q))&&!!q.anchor;s9.ALIAS=dq;s9.DOC=HU;s9.MAP=i0;s9.NODE_TYPE=k;s9.PAIR=zU;s9.SCALAR=lq;s9.SEQ=r0;s9.hasAnchor=a9;s9.isAlias=v9;s9.isCollection=GU;s9.isDocument=m9;s9.isMap=p9;s9.isNode=c9;s9.isPair=d9;s9.isScalar=XU;s9.isSeq=l9});var A0=T((BZ)=>{var j=w(),C=Symbol("break visit"),JU=Symbol("skip children"),x=Symbol("remove node");function n0(q,$){let U=QU($);if(j.isDocument(q)){if(G0(null,q.contents,U,Object.freeze([q]))===x)q.contents=null}else G0(null,q,U,Object.freeze([]))}n0.BREAK=C;n0.SKIP=JU;n0.REMOVE=x;function G0(q,$,U,Z){let H=BU(q,$,U,Z);if(j.isNode(H)||j.isPair(H))return YU(q,Z,H),G0(q,H,U,Z);if(typeof H!=="symbol"){if(j.isCollection($)){Z=Object.freeze(Z.concat($));for(let z=0;z<$.items.length;++z){let X=G0(z,$.items[z],U,Z);if(typeof X==="number")z=X-1;else if(X===C)return C;else if(X===x)$.items.splice(z,1),z-=1}}else if(j.isPair($)){Z=Object.freeze(Z.concat($));let z=G0("key",$.key,U,Z);if(z===C)return C;else if(z===x)$.key=null;let X=G0("value",$.value,U,Z);if(X===C)return C;else if(X===x)$.value=null}}return H}async function o0(q,$){let U=QU($);if(j.isDocument(q)){if(await J0(null,q.contents,U,Object.freeze([q]))===x)q.contents=null}else await J0(null,q,U,Object.freeze([]))}o0.BREAK=C;o0.SKIP=JU;o0.REMOVE=x;async function J0(q,$,U,Z){let H=await BU(q,$,U,Z);if(j.isNode(H)||j.isPair(H))return YU(q,Z,H),J0(q,H,U,Z);if(typeof H!=="symbol"){if(j.isCollection($)){Z=Object.freeze(Z.concat($));for(let z=0;z<$.items.length;++z){let X=await J0(z,$.items[z],U,Z);if(typeof X==="number")z=X-1;else if(X===C)return C;else if(X===x)$.items.splice(z,1),z-=1}}else if(j.isPair($)){Z=Object.freeze(Z.concat($));let z=await J0("key",$.key,U,Z);if(z===C)return C;else if(z===x)$.key=null;let X=await J0("value",$.value,U,Z);if(X===C)return C;else if(X===x)$.value=null}}return H}function QU(q){if(typeof q==="object"&&(q.Collection||q.Node||q.Value))return Object.assign({Alias:q.Node,Map:q.Node,Scalar:q.Node,Seq:q.Node},q.Value&&{Map:q.Value,Scalar:q.Value,Seq:q.Value},q.Collection&&{Map:q.Collection,Seq:q.Collection},q);return q}function BU(q,$,U,Z){if(typeof U==="function")return U(q,$,Z);if(j.isMap($))return U.Map?.(q,$,Z);if(j.isSeq($))return U.Seq?.(q,$,Z);if(j.isPair($))return U.Pair?.(q,$,Z);if(j.isScalar($))return U.Scalar?.(q,$,Z);if(j.isAlias($))return U.Alias?.(q,$,Z);return}function YU(q,$,U){let Z=$[$.length-1];if(j.isCollection(Z))Z.items[q]=U;else if(j.isPair(Z))if(q==="key")Z.key=U;else Z.value=U;else if(j.isDocument(Z))Z.contents=U;else{let H=j.isAlias(Z)?"alias":"scalar";throw Error(`Cannot replace node with ${H} parent`)}}BZ.visit=n0;BZ.visitAsync=o0});var cq=T((TZ)=>{var VU=w(),WZ=A0(),OZ={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},LZ=(q)=>q.replace(/[!,[\]{}]/g,($)=>OZ[$]);class E{constructor(q,$){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},E.defaultYaml,q),this.tags=Object.assign({},E.defaultTags,$)}clone(){let q=new E(this.yaml,this.tags);return q.docStart=this.docStart,q}atDocument(){let q=new E(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:E.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},E.defaultTags);break}return q}add(q,$){if(this.atNextDocument)this.yaml={explicit:E.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},E.defaultTags),this.atNextDocument=!1;let U=q.trim().split(/[ \t]+/),Z=U.shift();switch(Z){case"%TAG":{if(U.length!==2){if($(0,"%TAG directive should contain exactly two parts"),U.length<2)return!1}let[H,z]=U;return this.tags[H]=z,!0}case"%YAML":{if(this.yaml.explicit=!0,U.length!==1)return $(0,"%YAML directive should contain exactly one part"),!1;let[H]=U;if(H==="1.1"||H==="1.2")return this.yaml.version=H,!0;else{let z=/^\d+\.\d+$/.test(H);return $(6,`Unsupported YAML version ${H}`,z),!1}}default:return $(0,`Unknown directive ${Z}`,!0),!1}}tagName(q,$){if(q==="!")return"!";if(q[0]!=="!")return $(`Not a valid tag: ${q}`),null;if(q[1]==="<"){let z=q.slice(2,-1);if(z==="!"||z==="!!")return $(`Verbatim tags aren't resolved, so ${q} is invalid.`),null;if(q[q.length-1]!==">")$("Verbatim tags must end with a >");return z}let[,U,Z]=q.match(/^(.*!)([^!]*)$/s);if(!Z)$(`The ${q} tag has no suffix`);let H=this.tags[U];if(H)try{return H+decodeURIComponent(Z)}catch(z){return $(String(z)),null}if(U==="!")return q;return $(`Could not resolve tag: ${q}`),null}tagString(q){for(let[$,U]of Object.entries(this.tags))if(q.startsWith(U))return $+LZ(q.substring(U.length));return q[0]==="!"?q:`!<${q}>`}toString(q){let $=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],U=Object.entries(this.tags),Z;if(q&&U.length>0&&VU.isNode(q.contents)){let H={};WZ.visit(q.contents,(z,X)=>{if(VU.isNode(X)&&X.tag)H[X.tag]=!0}),Z=Object.keys(H)}else Z=[];for(let[H,z]of U){if(H==="!!"&&z==="tag:yaml.org,2002:")continue;if(!q||Z.some((X)=>X.startsWith(z)))$.push(`%TAG ${H} ${z}`)}return $.join(`
2
- `)}}E.defaultYaml={explicit:!1,version:"1.2"};E.defaultTags={"!!":"tag:yaml.org,2002:"};TZ.Directives=E});var t0=T((PZ)=>{var WU=w(),DZ=A0();function IZ(q){if(/[\x00-\x19\s,[\]{}]/.test(q)){let U=`Anchor must not contain whitespace or control characters: ${JSON.stringify(q)}`;throw Error(U)}return!0}function OU(q){let $=new Set;return DZ.visit(q,{Value(U,Z){if(Z.anchor)$.add(Z.anchor)}}),$}function LU(q,$){for(let U=1;;++U){let Z=`${q}${U}`;if(!$.has(Z))return Z}}function RZ(q,$){let U=[],Z=new Map,H=null;return{onAnchor:(z)=>{U.push(z),H??(H=OU(q));let X=LU($,H);return H.add(X),X},setAnchors:()=>{for(let z of U){let X=Z.get(z);if(typeof X==="object"&&X.anchor&&(WU.isScalar(X.node)||WU.isCollection(X.node)))X.node.anchor=X.anchor;else{let G=Error("Failed to resolve repeated object (this should not happen)");throw G.source=z,G}}},sourceObjects:Z}}PZ.anchorIsValid=IZ;PZ.anchorNames=OU;PZ.createNodeAnchors=RZ;PZ.findNewAnchor=LU});var aq=T((KZ)=>{function M0(q,$,U,Z){if(Z&&typeof Z==="object")if(Array.isArray(Z))for(let H=0,z=Z.length;H<z;++H){let X=Z[H],G=M0(q,Z,String(H),X);if(G===void 0)delete Z[H];else if(G!==X)Z[H]=G}else if(Z instanceof Map)for(let H of Array.from(Z.keys())){let z=Z.get(H),X=M0(q,Z,H,z);if(X===void 0)Z.delete(H);else if(X!==z)Z.set(H,X)}else if(Z instanceof Set)for(let H of Array.from(Z)){let z=M0(q,Z,H,H);if(z===void 0)Z.delete(H);else if(z!==H)Z.delete(H),Z.add(z)}else for(let[H,z]of Object.entries(Z)){let X=M0(q,Z,H,z);if(X===void 0)delete Z[H];else if(X!==z)Z[H]=X}return q.call($,U,Z)}KZ.applyReviver=M0});var d=T((SZ)=>{var bZ=w();function TU(q,$,U){if(Array.isArray(q))return q.map((Z,H)=>TU(Z,String(H),U));if(q&&typeof q.toJSON==="function"){if(!U||!bZ.hasAnchor(q))return q.toJSON($,U);let Z={aliasCount:0,count:1,res:void 0};U.anchors.set(q,Z),U.onCreate=(z)=>{Z.res=z,delete U.onCreate};let H=q.toJSON($,U);if(U.onCreate)U.onCreate(H);return H}if(typeof q==="bigint"&&!U?.keep)return Number(q);return q}SZ.toJS=TU});var e0=T((gZ)=>{var CZ=aq(),_U=w(),EZ=d();class DU{constructor(q){Object.defineProperty(this,_U.NODE_TYPE,{value:q})}clone(){let q=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)q.range=this.range.slice();return q}toJS(q,{mapAsMap:$,maxAliasCount:U,onAnchor:Z,reviver:H}={}){if(!_U.isDocument(q))throw TypeError("A document argument is required");let z={anchors:new Map,doc:q,keep:!0,mapAsMap:$===!0,mapKeyWarned:!1,maxAliasCount:typeof U==="number"?U:100},X=EZ.toJS(this,"",z);if(typeof Z==="function")for(let{count:G,res:J}of z.anchors.values())Z(J,G);return typeof H==="function"?CZ.applyReviver(H,{"":X},"",X):X}}gZ.NodeBase=DU});var w0=T((kZ)=>{var yZ=t0(),xZ=A0(),Q0=w(),hZ=e0(),uZ=d();class IU extends hZ.NodeBase{constructor(q){super(Q0.ALIAS);this.source=q,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(q,$){let U;if($?.aliasResolveCache)U=$.aliasResolveCache;else if(U=[],xZ.visit(q,{Node:(H,z)=>{if(Q0.isAlias(z)||Q0.hasAnchor(z))U.push(z)}}),$)$.aliasResolveCache=U;let Z=void 0;for(let H of U){if(H===this)break;if(H.anchor===this.source)Z=H}return Z}toJSON(q,$){if(!$)return{source:this.source};let{anchors:U,doc:Z,maxAliasCount:H}=$,z=this.resolve(Z,$);if(!z){let G=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(G)}let X=U.get(z);if(!X)uZ.toJS(z,null,$),X=U.get(z);if(X?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(H>=0){if(X.count+=1,X.aliasCount===0)X.aliasCount=qq(Z,z,U);if(X.count*X.aliasCount>H)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return X.res}toString(q,$,U){let Z=`*${this.source}`;if(q){if(yZ.anchorIsValid(this.source),q.options.verifyAliasOrder&&!q.anchors.has(this.source)){let H=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(H)}if(q.implicitKey)return`${Z} `}return Z}}function qq(q,$,U){if(Q0.isAlias($)){let Z=$.resolve(q),H=U&&Z&&U.get(Z);return H?H.count*H.aliasCount:0}else if(Q0.isCollection($)){let Z=0;for(let H of $.items){let z=qq(q,H,U);if(z>Z)Z=z}return Z}else if(Q0.isPair($)){let Z=qq(q,$.key,U),H=qq(q,$.value,U);return Math.max(Z,H)}return 1}kZ.Alias=IU});var N=T((cZ)=>{var mZ=w(),pZ=e0(),dZ=d(),lZ=(q)=>!q||typeof q!=="function"&&typeof q!=="object";class e extends pZ.NodeBase{constructor(q){super(mZ.SCALAR);this.value=q}toJSON(q,$){return $?.keep?this.value:dZ.toJS(this.value,q,$)}toString(){return String(this.value)}}e.BLOCK_FOLDED="BLOCK_FOLDED";e.BLOCK_LITERAL="BLOCK_LITERAL";e.PLAIN="PLAIN";e.QUOTE_DOUBLE="QUOTE_DOUBLE";e.QUOTE_SINGLE="QUOTE_SINGLE";cZ.Scalar=e;cZ.isScalarValue=lZ});var K0=T((tZ)=>{var iZ=w0(),q0=w(),RU=N(),rZ="tag:yaml.org,2002:";function nZ(q,$,U){if($){let Z=U.filter((z)=>z.tag===$),H=Z.find((z)=>!z.format)??Z[0];if(!H)throw Error(`Tag ${$} not found`);return H}return U.find((Z)=>Z.identify?.(q)&&!Z.format)}function oZ(q,$,U){if(q0.isDocument(q))q=q.contents;if(q0.isNode(q))return q;if(q0.isPair(q)){let B=U.schema[q0.MAP].createNode?.(U.schema,null,U);return B.items.push(q),B}if(q instanceof String||q instanceof Number||q instanceof Boolean||typeof BigInt<"u"&&q instanceof BigInt)q=q.valueOf();let{aliasDuplicateObjects:Z,onAnchor:H,onTagObj:z,schema:X,sourceObjects:G}=U,J=void 0;if(Z&&q&&typeof q==="object")if(J=G.get(q),J)return J.anchor??(J.anchor=H(q)),new iZ.Alias(J.anchor);else J={anchor:null,node:null},G.set(q,J);if($?.startsWith("!!"))$=rZ+$.slice(2);let Q=nZ(q,$,X.tags);if(!Q){if(q&&typeof q.toJSON==="function")q=q.toJSON();if(!q||typeof q!=="object"){let B=new RU.Scalar(q);if(J)J.node=B;return B}Q=q instanceof Map?X[q0.MAP]:(Symbol.iterator in Object(q))?X[q0.SEQ]:X[q0.MAP]}if(z)z(Q),delete U.onTagObj;let W=Q?.createNode?Q.createNode(U.schema,q,U):typeof Q?.nodeClass?.from==="function"?Q.nodeClass.from(U.schema,q,U):new RU.Scalar(q);if($)W.tag=$;else if(!Q.default)W.tag=Q.tag;if(J)J.node=W;return W}tZ.createNode=oZ});var $q=T((U4)=>{var q4=K0(),h=w(),$4=e0();function sq(q,$,U){let Z=U;for(let H=$.length-1;H>=0;--H){let z=$[H];if(typeof z==="number"&&Number.isInteger(z)&&z>=0){let X=[];X[z]=Z,Z=X}else Z=new Map([[z,Z]])}return q4.createNode(Z,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:q,sourceObjects:new Map})}var PU=(q)=>q==null||typeof q==="object"&&!!q[Symbol.iterator]().next().done;class FU extends $4.NodeBase{constructor(q,$){super(q);Object.defineProperty(this,"schema",{value:$,configurable:!0,enumerable:!1,writable:!0})}clone(q){let $=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(q)$.schema=q;if($.items=$.items.map((U)=>h.isNode(U)||h.isPair(U)?U.clone(q):U),this.range)$.range=this.range.slice();return $}addIn(q,$){if(PU(q))this.add($);else{let[U,...Z]=q,H=this.get(U,!0);if(h.isCollection(H))H.addIn(Z,$);else if(H===void 0&&this.schema)this.set(U,sq(this.schema,Z,$));else throw Error(`Expected YAML collection at ${U}. Remaining path: ${Z}`)}}deleteIn(q){let[$,...U]=q;if(U.length===0)return this.delete($);let Z=this.get($,!0);if(h.isCollection(Z))return Z.deleteIn(U);else throw Error(`Expected YAML collection at ${$}. Remaining path: ${U}`)}getIn(q,$){let[U,...Z]=q,H=this.get(U,!0);if(Z.length===0)return!$&&h.isScalar(H)?H.value:H;else return h.isCollection(H)?H.getIn(Z,$):void 0}hasAllNullValues(q){return this.items.every(($)=>{if(!h.isPair($))return!1;let U=$.value;return U==null||q&&h.isScalar(U)&&U.value==null&&!U.commentBefore&&!U.comment&&!U.tag})}hasIn(q){let[$,...U]=q;if(U.length===0)return this.has($);let Z=this.get($,!0);return h.isCollection(Z)?Z.hasIn(U):!1}setIn(q,$){let[U,...Z]=q;if(Z.length===0)this.set(U,$);else{let H=this.get(U,!0);if(h.isCollection(H))H.setIn(Z,$);else if(H===void 0&&this.schema)this.set(U,sq(this.schema,Z,$));else throw Error(`Expected YAML collection at ${U}. Remaining path: ${Z}`)}}}U4.Collection=FU;U4.collectionFromPath=sq;U4.isEmptyPath=PU});var N0=T((J4)=>{var X4=(q)=>q.replace(/^(?!$)(?: $)?/gm,"#");function iq(q,$){if(/^\n+$/.test(q))return q.substring(1);return $?q.replace(/^(?! *$)/gm,$):q}var G4=(q,$,U)=>q.endsWith(`
3
- `)?iq(U,$):U.includes(`
1
+ import{createRequire as C9}from"node:module";var K9=Object.defineProperty;var D=(q,$)=>()=>($||q(($={exports:{}}).exports,$),$.exports);var N9=(q)=>q;function b9(q,$){this[q]=N9.bind(null,$)}var j9=(q,$)=>{for(var U in $)K9(q,U,{get:$[U],enumerable:!0,configurable:!0,set:b9.bind($,U)})};var I0=C9(import.meta.url);var w=D((t9)=>{var cq=Symbol.for("yaml.alias"),GU=Symbol.for("yaml.document"),r0=Symbol.for("yaml.map"),JU=Symbol.for("yaml.pair"),aq=Symbol.for("yaml.scalar"),n0=Symbol.for("yaml.seq"),v=Symbol.for("yaml.node.type"),c9=(q)=>!!q&&typeof q==="object"&&q[v]===cq,a9=(q)=>!!q&&typeof q==="object"&&q[v]===GU,i9=(q)=>!!q&&typeof q==="object"&&q[v]===r0,s9=(q)=>!!q&&typeof q==="object"&&q[v]===JU,QU=(q)=>!!q&&typeof q==="object"&&q[v]===aq,r9=(q)=>!!q&&typeof q==="object"&&q[v]===n0;function BU(q){if(q&&typeof q==="object")switch(q[v]){case r0:case n0:return!0}return!1}function n9(q){if(q&&typeof q==="object")switch(q[v]){case cq:case r0:case aq:case n0:return!0}return!1}var o9=(q)=>(QU(q)||BU(q))&&!!q.anchor;t9.ALIAS=cq;t9.DOC=GU;t9.MAP=r0;t9.NODE_TYPE=v;t9.PAIR=JU;t9.SCALAR=aq;t9.SEQ=n0;t9.hasAnchor=o9;t9.isAlias=c9;t9.isCollection=BU;t9.isDocument=a9;t9.isMap=i9;t9.isNode=n9;t9.isPair=s9;t9.isScalar=QU;t9.isSeq=r9});var M0=D((LZ)=>{var C=w(),S=Symbol("break visit"),YU=Symbol("skip children"),x=Symbol("remove node");function o0(q,$){let U=VU($);if(C.isDocument(q)){if(G0(null,q.contents,U,Object.freeze([q]))===x)q.contents=null}else G0(null,q,U,Object.freeze([]))}o0.BREAK=S;o0.SKIP=YU;o0.REMOVE=x;function G0(q,$,U,Z){let z=OU(q,$,U,Z);if(C.isNode(z)||C.isPair(z))return WU(q,Z,z),G0(q,z,U,Z);if(typeof z!=="symbol"){if(C.isCollection($)){Z=Object.freeze(Z.concat($));for(let H=0;H<$.items.length;++H){let X=G0(H,$.items[H],U,Z);if(typeof X==="number")H=X-1;else if(X===S)return S;else if(X===x)$.items.splice(H,1),H-=1}}else if(C.isPair($)){Z=Object.freeze(Z.concat($));let H=G0("key",$.key,U,Z);if(H===S)return S;else if(H===x)$.key=null;let X=G0("value",$.value,U,Z);if(X===S)return S;else if(X===x)$.value=null}}return z}async function t0(q,$){let U=VU($);if(C.isDocument(q)){if(await J0(null,q.contents,U,Object.freeze([q]))===x)q.contents=null}else await J0(null,q,U,Object.freeze([]))}t0.BREAK=S;t0.SKIP=YU;t0.REMOVE=x;async function J0(q,$,U,Z){let z=await OU(q,$,U,Z);if(C.isNode(z)||C.isPair(z))return WU(q,Z,z),J0(q,z,U,Z);if(typeof z!=="symbol"){if(C.isCollection($)){Z=Object.freeze(Z.concat($));for(let H=0;H<$.items.length;++H){let X=await J0(H,$.items[H],U,Z);if(typeof X==="number")H=X-1;else if(X===S)return S;else if(X===x)$.items.splice(H,1),H-=1}}else if(C.isPair($)){Z=Object.freeze(Z.concat($));let H=await J0("key",$.key,U,Z);if(H===S)return S;else if(H===x)$.key=null;let X=await J0("value",$.value,U,Z);if(X===S)return S;else if(X===x)$.value=null}}return z}function VU(q){if(typeof q==="object"&&(q.Collection||q.Node||q.Value))return Object.assign({Alias:q.Node,Map:q.Node,Scalar:q.Node,Seq:q.Node},q.Value&&{Map:q.Value,Scalar:q.Value,Seq:q.Value},q.Collection&&{Map:q.Collection,Seq:q.Collection},q);return q}function OU(q,$,U,Z){if(typeof U==="function")return U(q,$,Z);if(C.isMap($))return U.Map?.(q,$,Z);if(C.isSeq($))return U.Seq?.(q,$,Z);if(C.isPair($))return U.Pair?.(q,$,Z);if(C.isScalar($))return U.Scalar?.(q,$,Z);if(C.isAlias($))return U.Alias?.(q,$,Z);return}function WU(q,$,U){let Z=$[$.length-1];if(C.isCollection(Z))Z.items[q]=U;else if(C.isPair(Z))if(q==="key")Z.key=U;else Z.value=U;else if(C.isDocument(Z))Z.contents=U;else{let z=C.isAlias(Z)?"alias":"scalar";throw Error(`Cannot replace node with ${z} parent`)}}LZ.visit=o0;LZ.visitAsync=t0});var iq=D((RZ)=>{var LU=w(),PZ=M0(),FZ={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},IZ=(q)=>q.replace(/[!,[\]{}]/g,($)=>FZ[$]);class E{constructor(q,$){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},E.defaultYaml,q),this.tags=Object.assign({},E.defaultTags,$)}clone(){let q=new E(this.yaml,this.tags);return q.docStart=this.docStart,q}atDocument(){let q=new E(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:E.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},E.defaultTags);break}return q}add(q,$){if(this.atNextDocument)this.yaml={explicit:E.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},E.defaultTags),this.atNextDocument=!1;let U=q.trim().split(/[ \t]+/),Z=U.shift();switch(Z){case"%TAG":{if(U.length!==2){if($(0,"%TAG directive should contain exactly two parts"),U.length<2)return!1}let[z,H]=U;return this.tags[z]=H,!0}case"%YAML":{if(this.yaml.explicit=!0,U.length!==1)return $(0,"%YAML directive should contain exactly one part"),!1;let[z]=U;if(z==="1.1"||z==="1.2")return this.yaml.version=z,!0;else{let H=/^\d+\.\d+$/.test(z);return $(6,`Unsupported YAML version ${z}`,H),!1}}default:return $(0,`Unknown directive ${Z}`,!0),!1}}tagName(q,$){if(q==="!")return"!";if(q[0]!=="!")return $(`Not a valid tag: ${q}`),null;if(q[1]==="<"){let H=q.slice(2,-1);if(H==="!"||H==="!!")return $(`Verbatim tags aren't resolved, so ${q} is invalid.`),null;if(q[q.length-1]!==">")$("Verbatim tags must end with a >");return H}let[,U,Z]=q.match(/^(.*!)([^!]*)$/s);if(!Z)$(`The ${q} tag has no suffix`);let z=this.tags[U];if(z)try{return z+decodeURIComponent(Z)}catch(H){return $(String(H)),null}if(U==="!")return q;return $(`Could not resolve tag: ${q}`),null}tagString(q){for(let[$,U]of Object.entries(this.tags))if(q.startsWith(U))return $+IZ(q.substring(U.length));return q[0]==="!"?q:`!<${q}>`}toString(q){let $=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],U=Object.entries(this.tags),Z;if(q&&U.length>0&&LU.isNode(q.contents)){let z={};PZ.visit(q.contents,(H,X)=>{if(LU.isNode(X)&&X.tag)z[X.tag]=!0}),Z=Object.keys(z)}else Z=[];for(let[z,H]of U){if(z==="!!"&&H==="tag:yaml.org,2002:")continue;if(!q||Z.some((X)=>X.startsWith(H)))$.push(`%TAG ${z} ${H}`)}return $.join(`
2
+ `)}}E.defaultYaml={explicit:!1,version:"1.2"};E.defaultTags={"!!":"tag:yaml.org,2002:"};RZ.Directives=E});var e0=D((KZ)=>{var DU=w(),AZ=M0();function MZ(q){if(/[\x00-\x19\s,[\]{}]/.test(q)){let U=`Anchor must not contain whitespace or control characters: ${JSON.stringify(q)}`;throw Error(U)}return!0}function _U(q){let $=new Set;return AZ.visit(q,{Value(U,Z){if(Z.anchor)$.add(Z.anchor)}}),$}function PU(q,$){for(let U=1;;++U){let Z=`${q}${U}`;if(!$.has(Z))return Z}}function wZ(q,$){let U=[],Z=new Map,z=null;return{onAnchor:(H)=>{U.push(H),z??(z=_U(q));let X=PU($,z);return z.add(X),X},setAnchors:()=>{for(let H of U){let X=Z.get(H);if(typeof X==="object"&&X.anchor&&(DU.isScalar(X.node)||DU.isCollection(X.node)))X.node.anchor=X.anchor;else{let G=Error("Failed to resolve repeated object (this should not happen)");throw G.source=H,G}}},sourceObjects:Z}}KZ.anchorIsValid=MZ;KZ.anchorNames=_U;KZ.createNodeAnchors=wZ;KZ.findNewAnchor=PU});var sq=D((SZ)=>{function w0(q,$,U,Z){if(Z&&typeof Z==="object")if(Array.isArray(Z))for(let z=0,H=Z.length;z<H;++z){let X=Z[z],G=w0(q,Z,String(z),X);if(G===void 0)delete Z[z];else if(G!==X)Z[z]=G}else if(Z instanceof Map)for(let z of Array.from(Z.keys())){let H=Z.get(z),X=w0(q,Z,z,H);if(X===void 0)Z.delete(z);else if(X!==H)Z.set(z,X)}else if(Z instanceof Set)for(let z of Array.from(Z)){let H=w0(q,Z,z,z);if(H===void 0)Z.delete(z);else if(H!==z)Z.delete(z),Z.add(H)}else for(let[z,H]of Object.entries(Z)){let X=w0(q,Z,z,H);if(X===void 0)delete Z[z];else if(X!==H)Z[z]=X}return q.call($,U,Z)}SZ.applyReviver=w0});var l=D((fZ)=>{var gZ=w();function FU(q,$,U){if(Array.isArray(q))return q.map((Z,z)=>FU(Z,String(z),U));if(q&&typeof q.toJSON==="function"){if(!U||!gZ.hasAnchor(q))return q.toJSON($,U);let Z={aliasCount:0,count:1,res:void 0};U.anchors.set(q,Z),U.onCreate=(H)=>{Z.res=H,delete U.onCreate};let z=q.toJSON($,U);if(U.onCreate)U.onCreate(z);return z}if(typeof q==="bigint"&&!U?.keep)return Number(q);return q}fZ.toJS=FU});var qq=D((uZ)=>{var xZ=sq(),IU=w(),hZ=l();class RU{constructor(q){Object.defineProperty(this,IU.NODE_TYPE,{value:q})}clone(){let q=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)q.range=this.range.slice();return q}toJS(q,{mapAsMap:$,maxAliasCount:U,onAnchor:Z,reviver:z}={}){if(!IU.isDocument(q))throw TypeError("A document argument is required");let H={anchors:new Map,doc:q,keep:!0,mapAsMap:$===!0,mapKeyWarned:!1,maxAliasCount:typeof U==="number"?U:100},X=hZ.toJS(this,"",H);if(typeof Z==="function")for(let{count:G,res:J}of H.anchors.values())Z(J,G);return typeof z==="function"?xZ.applyReviver(z,{"":X},"",X):X}}uZ.NodeBase=RU});var K0=D((lZ)=>{var vZ=e0(),mZ=M0(),Q0=w(),pZ=qq(),dZ=l();class TU extends pZ.NodeBase{constructor(q){super(Q0.ALIAS);this.source=q,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(q,$){let U;if($?.aliasResolveCache)U=$.aliasResolveCache;else if(U=[],mZ.visit(q,{Node:(z,H)=>{if(Q0.isAlias(H)||Q0.hasAnchor(H))U.push(H)}}),$)$.aliasResolveCache=U;let Z=void 0;for(let z of U){if(z===this)break;if(z.anchor===this.source)Z=z}return Z}toJSON(q,$){if(!$)return{source:this.source};let{anchors:U,doc:Z,maxAliasCount:z}=$,H=this.resolve(Z,$);if(!H){let G=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(G)}let X=U.get(H);if(!X)dZ.toJS(H,null,$),X=U.get(H);if(X?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(z>=0){if(X.count+=1,X.aliasCount===0)X.aliasCount=$q(Z,H,U);if(X.count*X.aliasCount>z)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return X.res}toString(q,$,U){let Z=`*${this.source}`;if(q){if(vZ.anchorIsValid(this.source),q.options.verifyAliasOrder&&!q.anchors.has(this.source)){let z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(z)}if(q.implicitKey)return`${Z} `}return Z}}function $q(q,$,U){if(Q0.isAlias($)){let Z=$.resolve(q),z=U&&Z&&U.get(Z);return z?z.count*z.aliasCount:0}else if(Q0.isCollection($)){let Z=0;for(let z of $.items){let H=$q(q,z,U);if(H>Z)Z=H}return Z}else if(Q0.isPair($)){let Z=$q(q,$.key,U),z=$q(q,$.value,U);return Math.max(Z,z)}return 1}lZ.Alias=TU});var N=D((nZ)=>{var aZ=w(),iZ=qq(),sZ=l(),rZ=(q)=>!q||typeof q!=="function"&&typeof q!=="object";class e extends iZ.NodeBase{constructor(q){super(aZ.SCALAR);this.value=q}toJSON(q,$){return $?.keep?this.value:sZ.toJS(this.value,q,$)}toString(){return String(this.value)}}e.BLOCK_FOLDED="BLOCK_FOLDED";e.BLOCK_LITERAL="BLOCK_LITERAL";e.PLAIN="PLAIN";e.QUOTE_DOUBLE="QUOTE_DOUBLE";e.QUOTE_SINGLE="QUOTE_SINGLE";nZ.Scalar=e;nZ.isScalarValue=rZ});var N0=D((Z4)=>{var eZ=K0(),q0=w(),AU=N(),q4="tag:yaml.org,2002:";function $4(q,$,U){if($){let Z=U.filter((H)=>H.tag===$),z=Z.find((H)=>!H.format)??Z[0];if(!z)throw Error(`Tag ${$} not found`);return z}return U.find((Z)=>Z.identify?.(q)&&!Z.format)}function U4(q,$,U){if(q0.isDocument(q))q=q.contents;if(q0.isNode(q))return q;if(q0.isPair(q)){let B=U.schema[q0.MAP].createNode?.(U.schema,null,U);return B.items.push(q),B}if(q instanceof String||q instanceof Number||q instanceof Boolean||typeof BigInt<"u"&&q instanceof BigInt)q=q.valueOf();let{aliasDuplicateObjects:Z,onAnchor:z,onTagObj:H,schema:X,sourceObjects:G}=U,J=void 0;if(Z&&q&&typeof q==="object")if(J=G.get(q),J)return J.anchor??(J.anchor=z(q)),new eZ.Alias(J.anchor);else J={anchor:null,node:null},G.set(q,J);if($?.startsWith("!!"))$=q4+$.slice(2);let Q=$4(q,$,X.tags);if(!Q){if(q&&typeof q.toJSON==="function")q=q.toJSON();if(!q||typeof q!=="object"){let B=new AU.Scalar(q);if(J)J.node=B;return B}Q=q instanceof Map?X[q0.MAP]:(Symbol.iterator in Object(q))?X[q0.SEQ]:X[q0.MAP]}if(H)H(Q),delete U.onTagObj;let O=Q?.createNode?Q.createNode(U.schema,q,U):typeof Q?.nodeClass?.from==="function"?Q.nodeClass.from(U.schema,q,U):new AU.Scalar(q);if($)O.tag=$;else if(!Q.default)O.tag=Q.tag;if(J)J.node=O;return O}Z4.createNode=U4});var Uq=D((G4)=>{var H4=N0(),h=w(),X4=qq();function rq(q,$,U){let Z=U;for(let z=$.length-1;z>=0;--z){let H=$[z];if(typeof H==="number"&&Number.isInteger(H)&&H>=0){let X=[];X[H]=Z,Z=X}else Z=new Map([[H,Z]])}return H4.createNode(Z,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:q,sourceObjects:new Map})}var MU=(q)=>q==null||typeof q==="object"&&!!q[Symbol.iterator]().next().done;class wU extends X4.NodeBase{constructor(q,$){super(q);Object.defineProperty(this,"schema",{value:$,configurable:!0,enumerable:!1,writable:!0})}clone(q){let $=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(q)$.schema=q;if($.items=$.items.map((U)=>h.isNode(U)||h.isPair(U)?U.clone(q):U),this.range)$.range=this.range.slice();return $}addIn(q,$){if(MU(q))this.add($);else{let[U,...Z]=q,z=this.get(U,!0);if(h.isCollection(z))z.addIn(Z,$);else if(z===void 0&&this.schema)this.set(U,rq(this.schema,Z,$));else throw Error(`Expected YAML collection at ${U}. Remaining path: ${Z}`)}}deleteIn(q){let[$,...U]=q;if(U.length===0)return this.delete($);let Z=this.get($,!0);if(h.isCollection(Z))return Z.deleteIn(U);else throw Error(`Expected YAML collection at ${$}. Remaining path: ${U}`)}getIn(q,$){let[U,...Z]=q,z=this.get(U,!0);if(Z.length===0)return!$&&h.isScalar(z)?z.value:z;else return h.isCollection(z)?z.getIn(Z,$):void 0}hasAllNullValues(q){return this.items.every(($)=>{if(!h.isPair($))return!1;let U=$.value;return U==null||q&&h.isScalar(U)&&U.value==null&&!U.commentBefore&&!U.comment&&!U.tag})}hasIn(q){let[$,...U]=q;if(U.length===0)return this.has($);let Z=this.get($,!0);return h.isCollection(Z)?Z.hasIn(U):!1}setIn(q,$){let[U,...Z]=q;if(Z.length===0)this.set(U,$);else{let z=this.get(U,!0);if(h.isCollection(z))z.setIn(Z,$);else if(z===void 0&&this.schema)this.set(U,rq(this.schema,Z,$));else throw Error(`Expected YAML collection at ${U}. Remaining path: ${Z}`)}}}G4.Collection=wU;G4.collectionFromPath=rq;G4.isEmptyPath=MU});var b0=D((O4)=>{var Y4=(q)=>q.replace(/^(?!$)(?: $)?/gm,"#");function nq(q,$){if(/^\n+$/.test(q))return q.substring(1);return $?q.replace(/^(?! *$)/gm,$):q}var V4=(q,$,U)=>q.endsWith(`
3
+ `)?nq(U,$):U.includes(`
4
4
  `)?`
5
- `+iq(U,$):(q.endsWith(" ")?"":" ")+U;J4.indentComment=iq;J4.lineComment=G4;J4.stringifyComment=X4});var MU=T((W4)=>{function V4(q,$,U="flow",{indentAtStart:Z,lineWidth:H=80,minContentWidth:z=20,onFold:X,onOverflow:G}={}){if(!H||H<0)return q;if(H<z)z=0;let J=Math.max(1+z,1+H-$.length);if(q.length<=J)return q;let Q=[],W={},B=H-$.length;if(typeof Z==="number")if(Z>H-Math.max(2,z))Q.push(0);else B=H-Z;let Y=void 0,L=void 0,_=!1,V=-1,O=-1,I=-1;if(U==="block"){if(V=AU(q,V,$.length),V!==-1)B=V+J}for(let P;P=q[V+=1];){if(U==="quoted"&&P==="\\"){switch(O=V,q[V+1]){case"x":V+=3;break;case"u":V+=5;break;case"U":V+=9;break;default:V+=1}I=V}if(P===`
6
- `){if(U==="block")V=AU(q,V,$.length);B=V+$.length+J,Y=void 0}else{if(P===" "&&L&&L!==" "&&L!==`
7
- `&&L!=="\t"){let F=q[V+1];if(F&&F!==" "&&F!==`
8
- `&&F!=="\t")Y=V}if(V>=B)if(Y)Q.push(Y),B=Y+J,Y=void 0;else if(U==="quoted"){while(L===" "||L==="\t")L=P,P=q[V+=1],_=!0;let F=V>I+1?V-2:O-1;if(W[F])return q;Q.push(F),W[F]=!0,B=F+J,Y=void 0}else _=!0}L=P}if(_&&G)G();if(Q.length===0)return q;if(X)X();let R=q.slice(0,Q[0]);for(let P=0;P<Q.length;++P){let F=Q[P],A=Q[P+1]||q.length;if(F===0)R=`
9
- ${$}${q.slice(0,A)}`;else{if(U==="quoted"&&W[F])R+=`${q[F]}\\`;R+=`
10
- ${$}${q.slice(F+1,A)}`}}return R}function AU(q,$,U){let Z=$,H=$+1,z=q[H];while(z===" "||z==="\t")if($<H+U)z=q[++$];else{do z=q[++$];while(z&&z!==`
11
- `);Z=$,H=$+1,z=q[H]}return Z}W4.FOLD_BLOCK="block";W4.FOLD_FLOW="flow";W4.FOLD_QUOTED="quoted";W4.foldFlowLines=V4});var S0=T((P4)=>{var f=N(),l=MU(),Zq=(q,$)=>({indentAtStart:$?q.indent.length:q.indentAtStart,lineWidth:q.options.lineWidth,minContentWidth:q.options.minContentWidth}),Hq=(q)=>/^(%|---|\.\.\.)/m.test(q);function D4(q,$,U){if(!$||$<0)return!1;let Z=$-U,H=q.length;if(H<=Z)return!1;for(let z=0,X=0;z<H;++z)if(q[z]===`
12
- `){if(z-X>Z)return!0;if(X=z+1,H-X<=Z)return!1}return!0}function b0(q,$){let U=JSON.stringify(q);if($.options.doubleQuotedAsJSON)return U;let{implicitKey:Z}=$,H=$.options.doubleQuotedMinMultiLineLength,z=$.indent||(Hq(q)?" ":""),X="",G=0;for(let J=0,Q=U[J];Q;Q=U[++J]){if(Q===" "&&U[J+1]==="\\"&&U[J+2]==="n")X+=U.slice(G,J)+"\\ ",J+=1,G=J,Q="\\";if(Q==="\\")switch(U[J+1]){case"u":{X+=U.slice(G,J);let W=U.substr(J+2,4);switch(W){case"0000":X+="\\0";break;case"0007":X+="\\a";break;case"000b":X+="\\v";break;case"001b":X+="\\e";break;case"0085":X+="\\N";break;case"00a0":X+="\\_";break;case"2028":X+="\\L";break;case"2029":X+="\\P";break;default:if(W.substr(0,2)==="00")X+="\\x"+W.substr(2);else X+=U.substr(J,6)}J+=5,G=J+1}break;case"n":if(Z||U[J+2]==='"'||U.length<H)J+=1;else{X+=U.slice(G,J)+`
5
+ `+nq(U,$):(q.endsWith(" ")?"":" ")+U;O4.indentComment=nq;O4.lineComment=V4;O4.stringifyComment=Y4});var NU=D((P4)=>{function _4(q,$,U="flow",{indentAtStart:Z,lineWidth:z=80,minContentWidth:H=20,onFold:X,onOverflow:G}={}){if(!z||z<0)return q;if(z<H)H=0;let J=Math.max(1+H,1+z-$.length);if(q.length<=J)return q;let Q=[],O={},B=z-$.length;if(typeof Z==="number")if(Z>z-Math.max(2,H))Q.push(0);else B=z-Z;let Y=void 0,L=void 0,_=!1,V=-1,W=-1,F=-1;if(U==="block"){if(V=KU(q,V,$.length),V!==-1)B=V+J}for(let R;R=q[V+=1];){if(U==="quoted"&&R==="\\"){switch(W=V,q[V+1]){case"x":V+=3;break;case"u":V+=5;break;case"U":V+=9;break;default:V+=1}F=V}if(R===`
6
+ `){if(U==="block")V=KU(q,V,$.length);B=V+$.length+J,Y=void 0}else{if(R===" "&&L&&L!==" "&&L!==`
7
+ `&&L!=="\t"){let T=q[V+1];if(T&&T!==" "&&T!==`
8
+ `&&T!=="\t")Y=V}if(V>=B)if(Y)Q.push(Y),B=Y+J,Y=void 0;else if(U==="quoted"){while(L===" "||L==="\t")L=R,R=q[V+=1],_=!0;let T=V>F+1?V-2:W-1;if(O[T])return q;Q.push(T),O[T]=!0,B=T+J,Y=void 0}else _=!0}L=R}if(_&&G)G();if(Q.length===0)return q;if(X)X();let I=q.slice(0,Q[0]);for(let R=0;R<Q.length;++R){let T=Q[R],A=Q[R+1]||q.length;if(T===0)I=`
9
+ ${$}${q.slice(0,A)}`;else{if(U==="quoted"&&O[T])I+=`${q[T]}\\`;I+=`
10
+ ${$}${q.slice(T+1,A)}`}}return I}function KU(q,$,U){let Z=$,z=$+1,H=q[z];while(H===" "||H==="\t")if($<z+U)H=q[++$];else{do H=q[++$];while(H&&H!==`
11
+ `);Z=$,z=$+1,H=q[z]}return Z}P4.FOLD_BLOCK="block";P4.FOLD_FLOW="flow";P4.FOLD_QUOTED="quoted";P4.foldFlowLines=_4});var C0=D((K4)=>{var f=N(),c=NU(),zq=(q,$)=>({indentAtStart:$?q.indent.length:q.indentAtStart,lineWidth:q.options.lineWidth,minContentWidth:q.options.minContentWidth}),Hq=(q)=>/^(%|---|\.\.\.)/m.test(q);function A4(q,$,U){if(!$||$<0)return!1;let Z=$-U,z=q.length;if(z<=Z)return!1;for(let H=0,X=0;H<z;++H)if(q[H]===`
12
+ `){if(H-X>Z)return!0;if(X=H+1,z-X<=Z)return!1}return!0}function j0(q,$){let U=JSON.stringify(q);if($.options.doubleQuotedAsJSON)return U;let{implicitKey:Z}=$,z=$.options.doubleQuotedMinMultiLineLength,H=$.indent||(Hq(q)?" ":""),X="",G=0;for(let J=0,Q=U[J];Q;Q=U[++J]){if(Q===" "&&U[J+1]==="\\"&&U[J+2]==="n")X+=U.slice(G,J)+"\\ ",J+=1,G=J,Q="\\";if(Q==="\\")switch(U[J+1]){case"u":{X+=U.slice(G,J);let O=U.substr(J+2,4);switch(O){case"0000":X+="\\0";break;case"0007":X+="\\a";break;case"000b":X+="\\v";break;case"001b":X+="\\e";break;case"0085":X+="\\N";break;case"00a0":X+="\\_";break;case"2028":X+="\\L";break;case"2029":X+="\\P";break;default:if(O.substr(0,2)==="00")X+="\\x"+O.substr(2);else X+=U.substr(J,6)}J+=5,G=J+1}break;case"n":if(Z||U[J+2]==='"'||U.length<z)J+=1;else{X+=U.slice(G,J)+`
13
13
 
14
14
  `;while(U[J+2]==="\\"&&U[J+3]==="n"&&U[J+4]!=='"')X+=`
15
- `,J+=2;if(X+=z,U[J+2]===" ")X+="\\";J+=1,G=J+1}break;default:J+=1}}return X=G?X+U.slice(G):U,Z?X:l.foldFlowLines(X,z,l.FOLD_QUOTED,Zq($,!1))}function rq(q,$){if($.options.singleQuote===!1||$.implicitKey&&q.includes(`
16
- `)||/[ \t]\n|\n[ \t]/.test(q))return b0(q,$);let U=$.indent||(Hq(q)?" ":""),Z="'"+q.replace(/'/g,"''").replace(/\n+/g,`$&
17
- ${U}`)+"'";return $.implicitKey?Z:l.foldFlowLines(Z,U,l.FOLD_FLOW,Zq($,!1))}function B0(q,$){let{singleQuote:U}=$.options,Z;if(U===!1)Z=b0;else{let H=q.includes('"'),z=q.includes("'");if(H&&!z)Z=rq;else if(z&&!H)Z=b0;else Z=U?rq:b0}return Z(q,$)}var nq;try{nq=new RegExp(`(^|(?<!
15
+ `,J+=2;if(X+=H,U[J+2]===" ")X+="\\";J+=1,G=J+1}break;default:J+=1}}return X=G?X+U.slice(G):U,Z?X:c.foldFlowLines(X,H,c.FOLD_QUOTED,zq($,!1))}function oq(q,$){if($.options.singleQuote===!1||$.implicitKey&&q.includes(`
16
+ `)||/[ \t]\n|\n[ \t]/.test(q))return j0(q,$);let U=$.indent||(Hq(q)?" ":""),Z="'"+q.replace(/'/g,"''").replace(/\n+/g,`$&
17
+ ${U}`)+"'";return $.implicitKey?Z:c.foldFlowLines(Z,U,c.FOLD_FLOW,zq($,!1))}function B0(q,$){let{singleQuote:U}=$.options,Z;if(U===!1)Z=j0;else{let z=q.includes('"'),H=q.includes("'");if(z&&!H)Z=oq;else if(H&&!z)Z=j0;else Z=U?oq:j0}return Z(q,$)}var tq;try{tq=new RegExp(`(^|(?<!
18
18
  ))
19
19
  +(?!
20
- |$)`,"g")}catch{nq=/\n+(?!\n|$)/g}function Uq({comment:q,type:$,value:U},Z,H,z){let{blockQuote:X,commentString:G,lineWidth:J}=Z.options;if(!X||/\n[\t ]+$/.test(U))return B0(U,Z);let Q=Z.indent||(Z.forceBlockIndent||Hq(U)?" ":""),W=X==="literal"?!0:X==="folded"||$===f.Scalar.BLOCK_FOLDED?!1:$===f.Scalar.BLOCK_LITERAL?!0:!D4(U,J,Q.length);if(!U)return W?`|
20
+ |$)`,"g")}catch{tq=/\n+(?!\n|$)/g}function Zq({comment:q,type:$,value:U},Z,z,H){let{blockQuote:X,commentString:G,lineWidth:J}=Z.options;if(!X||/\n[\t ]+$/.test(U))return B0(U,Z);let Q=Z.indent||(Z.forceBlockIndent||Hq(U)?" ":""),O=X==="literal"?!0:X==="folded"||$===f.Scalar.BLOCK_FOLDED?!1:$===f.Scalar.BLOCK_LITERAL?!0:!A4(U,J,Q.length);if(!U)return O?`|
21
21
  `:`>
22
22
  `;let B,Y;for(Y=U.length;Y>0;--Y){let A=U[Y-1];if(A!==`
23
23
  `&&A!=="\t"&&A!==" ")break}let L=U.substring(Y),_=L.indexOf(`
24
- `);if(_===-1)B="-";else if(U===L||_!==L.length-1){if(B="+",z)z()}else B="";if(L){if(U=U.slice(0,-L.length),L[L.length-1]===`
25
- `)L=L.slice(0,-1);L=L.replace(nq,`$&${Q}`)}let V=!1,O,I=-1;for(O=0;O<U.length;++O){let A=U[O];if(A===" ")V=!0;else if(A===`
26
- `)I=O;else break}let R=U.substring(0,I<O?I+1:O);if(R)U=U.substring(R.length),R=R.replace(/\n+/g,`$&${Q}`);let F=(V?Q?"2":"1":"")+B;if(q){if(F+=" "+G(q.replace(/ ?[\r\n]+/g," ")),H)H()}if(!W){let A=U.replace(/\n+/g,`
27
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${Q}`),M=!1,K=Zq(Z,!0);if(X!=="folded"&&$!==f.Scalar.BLOCK_FOLDED)K.onOverflow=()=>{M=!0};let D=l.foldFlowLines(`${R}${A}${L}`,Q,l.FOLD_BLOCK,K);if(!M)return`>${F}
28
- ${Q}${D}`}return U=U.replace(/\n+/g,`$&${Q}`),`|${F}
29
- ${Q}${R}${U}${L}`}function I4(q,$,U,Z){let{type:H,value:z}=q,{actualString:X,implicitKey:G,indent:J,indentStep:Q,inFlow:W}=$;if(G&&z.includes(`
30
- `)||W&&/[[\]{},]/.test(z))return B0(z,$);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(z))return G||W||!z.includes(`
31
- `)?B0(z,$):Uq(q,$,U,Z);if(!G&&!W&&H!==f.Scalar.PLAIN&&z.includes(`
32
- `))return Uq(q,$,U,Z);if(Hq(z)){if(J==="")return $.forceBlockIndent=!0,Uq(q,$,U,Z);else if(G&&J===Q)return B0(z,$)}let B=z.replace(/\n+/g,`$&
33
- ${J}`);if(X){let Y=(V)=>V.default&&V.tag!=="tag:yaml.org,2002:str"&&V.test?.test(B),{compat:L,tags:_}=$.doc.schema;if(_.some(Y)||L?.some(Y))return B0(z,$)}return G?B:l.foldFlowLines(B,J,l.FOLD_FLOW,Zq($,!1))}function R4(q,$,U,Z){let{implicitKey:H,inFlow:z}=$,X=typeof q.value==="string"?q:Object.assign({},q,{value:String(q.value)}),{type:G}=q;if(G!==f.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(X.value))G=f.Scalar.QUOTE_DOUBLE}let J=(W)=>{switch(W){case f.Scalar.BLOCK_FOLDED:case f.Scalar.BLOCK_LITERAL:return H||z?B0(X.value,$):Uq(X,$,U,Z);case f.Scalar.QUOTE_DOUBLE:return b0(X.value,$);case f.Scalar.QUOTE_SINGLE:return rq(X.value,$);case f.Scalar.PLAIN:return I4(X,$,U,Z);default:return null}},Q=J(G);if(Q===null){let{defaultKeyType:W,defaultStringType:B}=$.options,Y=H&&W||B;if(Q=J(Y),Q===null)throw Error(`Unsupported default string type ${Y}`)}return Q}P4.stringifyString=R4});var j0=T((j4)=>{var A4=t0(),c=w(),M4=N0(),w4=S0();function K4(q,$){let U=Object.assign({blockQuote:!0,commentString:M4.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,trueStr:"true",verifyAliasOrder:!0},q.schema.toStringOptions,$),Z;switch(U.collectionStyle){case"block":Z=!1;break;case"flow":Z=!0;break;default:Z=null}return{anchors:new Set,doc:q,flowCollectionPadding:U.flowCollectionPadding?" ":"",indent:"",indentStep:typeof U.indent==="number"?" ".repeat(U.indent):" ",inFlow:Z,options:U}}function N4(q,$){if($.tag){let H=q.filter((z)=>z.tag===$.tag);if(H.length>0)return H.find((z)=>z.format===$.format)??H[0]}let U=void 0,Z;if(c.isScalar($)){Z=$.value;let H=q.filter((z)=>z.identify?.(Z));if(H.length>1){let z=H.filter((X)=>X.test);if(z.length>0)H=z}U=H.find((z)=>z.format===$.format)??H.find((z)=>!z.format)}else Z=$,U=q.find((H)=>H.nodeClass&&Z instanceof H.nodeClass);if(!U){let H=Z?.constructor?.name??(Z===null?"null":typeof Z);throw Error(`Tag not resolved for ${H} value`)}return U}function b4(q,$,{anchors:U,doc:Z}){if(!Z.directives)return"";let H=[],z=(c.isScalar(q)||c.isCollection(q))&&q.anchor;if(z&&A4.anchorIsValid(z))U.add(z),H.push(`&${z}`);let X=q.tag??($.default?null:$.tag);if(X)H.push(Z.directives.tagString(X));return H.join(" ")}function S4(q,$,U,Z){if(c.isPair(q))return q.toString($,U,Z);if(c.isAlias(q)){if($.doc.directives)return q.toString($);if($.resolvedAliases?.has(q))throw TypeError("Cannot stringify circular structure without alias nodes");else{if($.resolvedAliases)$.resolvedAliases.add(q);else $.resolvedAliases=new Set([q]);q=q.resolve($.doc)}}let H=void 0,z=c.isNode(q)?q:$.doc.createNode(q,{onTagObj:(J)=>H=J});H??(H=N4($.doc.schema.tags,z));let X=b4(z,H,$);if(X.length>0)$.indentAtStart=($.indentAtStart??0)+X.length+1;let G=typeof H.stringify==="function"?H.stringify(z,$,U,Z):c.isScalar(z)?w4.stringifyString(z,$,U,Z):z.toString($,U,Z);if(!X)return G;return c.isScalar(z)||G[0]==="{"||G[0]==="["?`${X} ${G}`:`${X}
34
- ${$.indent}${G}`}j4.createStringifyContext=K4;j4.stringify=S4});var NU=T((f4)=>{var v=w(),wU=N(),KU=j0(),C0=N0();function g4({key:q,value:$},U,Z,H){let{allNullValues:z,doc:X,indent:G,indentStep:J,options:{commentString:Q,indentSeq:W,simpleKeys:B}}=U,Y=v.isNode(q)&&q.comment||null;if(B){if(Y)throw Error("With simple keys, key nodes cannot have comments");if(v.isCollection(q)||!v.isNode(q)&&typeof q==="object")throw Error("With simple keys, collection cannot be used as a key value")}let L=!B&&(!q||Y&&$==null&&!U.inFlow||v.isCollection(q)||(v.isScalar(q)?q.type===wU.Scalar.BLOCK_FOLDED||q.type===wU.Scalar.BLOCK_LITERAL:typeof q==="object"));U=Object.assign({},U,{allNullValues:!1,implicitKey:!L&&(B||!z),indent:G+J});let _=!1,V=!1,O=KU.stringify(q,U,()=>_=!0,()=>V=!0);if(!L&&!U.inFlow&&O.length>1024){if(B)throw Error("With simple keys, single line scalar must not span more than 1024 characters");L=!0}if(U.inFlow){if(z||$==null){if(_&&Z)Z();return O===""?"?":L?`? ${O}`:O}}else if(z&&!B||$==null&&L){if(O=`? ${O}`,Y&&!_)O+=C0.lineComment(O,U.indent,Q(Y));else if(V&&H)H();return O}if(_)Y=null;if(L){if(Y)O+=C0.lineComment(O,U.indent,Q(Y));O=`? ${O}
35
- ${G}:`}else if(O=`${O}:`,Y)O+=C0.lineComment(O,U.indent,Q(Y));let I,R,P;if(v.isNode($))I=!!$.spaceBefore,R=$.commentBefore,P=$.comment;else if(I=!1,R=null,P=null,$&&typeof $==="object")$=X.createNode($);if(U.implicitKey=!1,!L&&!Y&&v.isScalar($))U.indentAtStart=O.length+1;if(V=!1,!W&&J.length>=2&&!U.inFlow&&!L&&v.isSeq($)&&!$.flow&&!$.tag&&!$.anchor)U.indent=U.indent.substring(2);let F=!1,A=KU.stringify($,U,()=>F=!0,()=>V=!0),M=" ";if(Y||I||R){if(M=I?`
36
- `:"",R){let K=Q(R);M+=`
37
- ${C0.indentComment(K,U.indent)}`}if(A===""&&!U.inFlow){if(M===`
38
- `&&P)M=`
24
+ `);if(_===-1)B="-";else if(U===L||_!==L.length-1){if(B="+",H)H()}else B="";if(L){if(U=U.slice(0,-L.length),L[L.length-1]===`
25
+ `)L=L.slice(0,-1);L=L.replace(tq,`$&${Q}`)}let V=!1,W,F=-1;for(W=0;W<U.length;++W){let A=U[W];if(A===" ")V=!0;else if(A===`
26
+ `)F=W;else break}let I=U.substring(0,F<W?F+1:W);if(I)U=U.substring(I.length),I=I.replace(/\n+/g,`$&${Q}`);let T=(V?Q?"2":"1":"")+B;if(q){if(T+=" "+G(q.replace(/ ?[\r\n]+/g," ")),z)z()}if(!O){let A=U.replace(/\n+/g,`
27
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${Q}`),M=!1,K=zq(Z,!0);if(X!=="folded"&&$!==f.Scalar.BLOCK_FOLDED)K.onOverflow=()=>{M=!0};let P=c.foldFlowLines(`${I}${A}${L}`,Q,c.FOLD_BLOCK,K);if(!M)return`>${T}
28
+ ${Q}${P}`}return U=U.replace(/\n+/g,`$&${Q}`),`|${T}
29
+ ${Q}${I}${U}${L}`}function M4(q,$,U,Z){let{type:z,value:H}=q,{actualString:X,implicitKey:G,indent:J,indentStep:Q,inFlow:O}=$;if(G&&H.includes(`
30
+ `)||O&&/[[\]{},]/.test(H))return B0(H,$);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(H))return G||O||!H.includes(`
31
+ `)?B0(H,$):Zq(q,$,U,Z);if(!G&&!O&&z!==f.Scalar.PLAIN&&H.includes(`
32
+ `))return Zq(q,$,U,Z);if(Hq(H)){if(J==="")return $.forceBlockIndent=!0,Zq(q,$,U,Z);else if(G&&J===Q)return B0(H,$)}let B=H.replace(/\n+/g,`$&
33
+ ${J}`);if(X){let Y=(V)=>V.default&&V.tag!=="tag:yaml.org,2002:str"&&V.test?.test(B),{compat:L,tags:_}=$.doc.schema;if(_.some(Y)||L?.some(Y))return B0(H,$)}return G?B:c.foldFlowLines(B,J,c.FOLD_FLOW,zq($,!1))}function w4(q,$,U,Z){let{implicitKey:z,inFlow:H}=$,X=typeof q.value==="string"?q:Object.assign({},q,{value:String(q.value)}),{type:G}=q;if(G!==f.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(X.value))G=f.Scalar.QUOTE_DOUBLE}let J=(O)=>{switch(O){case f.Scalar.BLOCK_FOLDED:case f.Scalar.BLOCK_LITERAL:return z||H?B0(X.value,$):Zq(X,$,U,Z);case f.Scalar.QUOTE_DOUBLE:return j0(X.value,$);case f.Scalar.QUOTE_SINGLE:return oq(X.value,$);case f.Scalar.PLAIN:return M4(X,$,U,Z);default:return null}},Q=J(G);if(Q===null){let{defaultKeyType:O,defaultStringType:B}=$.options,Y=z&&O||B;if(Q=J(Y),Q===null)throw Error(`Unsupported default string type ${Y}`)}return Q}K4.stringifyString=w4});var S0=D((y4)=>{var b4=e0(),a=w(),j4=b0(),C4=C0();function S4(q,$){let U=Object.assign({blockQuote:!0,commentString:j4.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,trueStr:"true",verifyAliasOrder:!0},q.schema.toStringOptions,$),Z;switch(U.collectionStyle){case"block":Z=!1;break;case"flow":Z=!0;break;default:Z=null}return{anchors:new Set,doc:q,flowCollectionPadding:U.flowCollectionPadding?" ":"",indent:"",indentStep:typeof U.indent==="number"?" ".repeat(U.indent):" ",inFlow:Z,options:U}}function E4(q,$){if($.tag){let z=q.filter((H)=>H.tag===$.tag);if(z.length>0)return z.find((H)=>H.format===$.format)??z[0]}let U=void 0,Z;if(a.isScalar($)){Z=$.value;let z=q.filter((H)=>H.identify?.(Z));if(z.length>1){let H=z.filter((X)=>X.test);if(H.length>0)z=H}U=z.find((H)=>H.format===$.format)??z.find((H)=>!H.format)}else Z=$,U=q.find((z)=>z.nodeClass&&Z instanceof z.nodeClass);if(!U){let z=Z?.constructor?.name??(Z===null?"null":typeof Z);throw Error(`Tag not resolved for ${z} value`)}return U}function g4(q,$,{anchors:U,doc:Z}){if(!Z.directives)return"";let z=[],H=(a.isScalar(q)||a.isCollection(q))&&q.anchor;if(H&&b4.anchorIsValid(H))U.add(H),z.push(`&${H}`);let X=q.tag??($.default?null:$.tag);if(X)z.push(Z.directives.tagString(X));return z.join(" ")}function f4(q,$,U,Z){if(a.isPair(q))return q.toString($,U,Z);if(a.isAlias(q)){if($.doc.directives)return q.toString($);if($.resolvedAliases?.has(q))throw TypeError("Cannot stringify circular structure without alias nodes");else{if($.resolvedAliases)$.resolvedAliases.add(q);else $.resolvedAliases=new Set([q]);q=q.resolve($.doc)}}let z=void 0,H=a.isNode(q)?q:$.doc.createNode(q,{onTagObj:(J)=>z=J});z??(z=E4($.doc.schema.tags,H));let X=g4(H,z,$);if(X.length>0)$.indentAtStart=($.indentAtStart??0)+X.length+1;let G=typeof z.stringify==="function"?z.stringify(H,$,U,Z):a.isScalar(H)?C4.stringifyString(H,$,U,Z):H.toString($,U,Z);if(!X)return G;return a.isScalar(H)||G[0]==="{"||G[0]==="["?`${X} ${G}`:`${X}
34
+ ${$.indent}${G}`}y4.createStringifyContext=S4;y4.stringify=f4});var CU=D((k4)=>{var m=w(),bU=N(),jU=S0(),E0=b0();function u4({key:q,value:$},U,Z,z){let{allNullValues:H,doc:X,indent:G,indentStep:J,options:{commentString:Q,indentSeq:O,simpleKeys:B}}=U,Y=m.isNode(q)&&q.comment||null;if(B){if(Y)throw Error("With simple keys, key nodes cannot have comments");if(m.isCollection(q)||!m.isNode(q)&&typeof q==="object")throw Error("With simple keys, collection cannot be used as a key value")}let L=!B&&(!q||Y&&$==null&&!U.inFlow||m.isCollection(q)||(m.isScalar(q)?q.type===bU.Scalar.BLOCK_FOLDED||q.type===bU.Scalar.BLOCK_LITERAL:typeof q==="object"));U=Object.assign({},U,{allNullValues:!1,implicitKey:!L&&(B||!H),indent:G+J});let _=!1,V=!1,W=jU.stringify(q,U,()=>_=!0,()=>V=!0);if(!L&&!U.inFlow&&W.length>1024){if(B)throw Error("With simple keys, single line scalar must not span more than 1024 characters");L=!0}if(U.inFlow){if(H||$==null){if(_&&Z)Z();return W===""?"?":L?`? ${W}`:W}}else if(H&&!B||$==null&&L){if(W=`? ${W}`,Y&&!_)W+=E0.lineComment(W,U.indent,Q(Y));else if(V&&z)z();return W}if(_)Y=null;if(L){if(Y)W+=E0.lineComment(W,U.indent,Q(Y));W=`? ${W}
35
+ ${G}:`}else if(W=`${W}:`,Y)W+=E0.lineComment(W,U.indent,Q(Y));let F,I,R;if(m.isNode($))F=!!$.spaceBefore,I=$.commentBefore,R=$.comment;else if(F=!1,I=null,R=null,$&&typeof $==="object")$=X.createNode($);if(U.implicitKey=!1,!L&&!Y&&m.isScalar($))U.indentAtStart=W.length+1;if(V=!1,!O&&J.length>=2&&!U.inFlow&&!L&&m.isSeq($)&&!$.flow&&!$.tag&&!$.anchor)U.indent=U.indent.substring(2);let T=!1,A=jU.stringify($,U,()=>T=!0,()=>V=!0),M=" ";if(Y||F||I){if(M=F?`
36
+ `:"",I){let K=Q(I);M+=`
37
+ ${E0.indentComment(K,U.indent)}`}if(A===""&&!U.inFlow){if(M===`
38
+ `&&R)M=`
39
39
 
40
40
  `}else M+=`
41
- ${U.indent}`}else if(!L&&v.isCollection($)){let K=A[0],D=A.indexOf(`
42
- `),b=D!==-1,m=U.inFlow??$.flow??$.items.length===0;if(b||!m){let X0=!1;if(b&&(K==="&"||K==="!")){let S=A.indexOf(" ");if(K==="&"&&S!==-1&&S<D&&A[S+1]==="!")S=A.indexOf(" ",S+1);if(S===-1||D<S)X0=!0}if(!X0)M=`
41
+ ${U.indent}`}else if(!L&&m.isCollection($)){let K=A[0],P=A.indexOf(`
42
+ `),b=P!==-1,p=U.inFlow??$.flow??$.items.length===0;if(b||!p){let X0=!1;if(b&&(K==="&"||K==="!")){let j=A.indexOf(" ");if(K==="&"&&j!==-1&&j<P&&A[j+1]==="!")j=A.indexOf(" ",j+1);if(j===-1||P<j)X0=!0}if(!X0)M=`
43
43
  ${U.indent}`}}else if(A===""||A[0]===`
44
- `)M="";if(O+=M+A,U.inFlow){if(F&&Z)Z()}else if(P&&!F)O+=C0.lineComment(O,U.indent,Q(P));else if(V&&H)H();return O}f4.stringifyPair=g4});var oq=T((u4)=>{var bU=I0("process");function x4(q,...$){if(q==="debug")console.log(...$)}function h4(q,$){if(q==="debug"||q==="warn")if(typeof bU.emitWarning==="function")bU.emitWarning($);else console.warn($)}u4.debug=x4;u4.warn=h4});var Gq=T((p4)=>{var E0=w(),SU=N(),zq="<<",Xq={identify:(q)=>q===zq||typeof q==="symbol"&&q.description===zq,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new SU.Scalar(Symbol(zq)),{addToJSMap:jU}),stringify:()=>zq},m4=(q,$)=>(Xq.identify($)||E0.isScalar($)&&(!$.type||$.type===SU.Scalar.PLAIN)&&Xq.identify($.value))&&q?.doc.schema.tags.some((U)=>U.tag===Xq.tag&&U.default);function jU(q,$,U){if(U=q&&E0.isAlias(U)?U.resolve(q.doc):U,E0.isSeq(U))for(let Z of U.items)tq(q,$,Z);else if(Array.isArray(U))for(let Z of U)tq(q,$,Z);else tq(q,$,U)}function tq(q,$,U){let Z=q&&E0.isAlias(U)?U.resolve(q.doc):U;if(!E0.isMap(Z))throw Error("Merge sources must be maps or map aliases");let H=Z.toJSON(null,q,Map);for(let[z,X]of H)if($ instanceof Map){if(!$.has(z))$.set(z,X)}else if($ instanceof Set)$.add(z);else if(!Object.prototype.hasOwnProperty.call($,z))Object.defineProperty($,z,{value:X,writable:!0,enumerable:!0,configurable:!0});return $}p4.addMergeToJSMap=jU;p4.isMergeKey=m4;p4.merge=Xq});var q$=T((n4)=>{var a4=oq(),CU=Gq(),s4=j0(),EU=w(),eq=d();function i4(q,$,{key:U,value:Z}){if(EU.isNode(U)&&U.addToJSMap)U.addToJSMap(q,$,Z);else if(CU.isMergeKey(q,U))CU.addMergeToJSMap(q,$,Z);else{let H=eq.toJS(U,"",q);if($ instanceof Map)$.set(H,eq.toJS(Z,H,q));else if($ instanceof Set)$.add(H);else{let z=r4(U,H,q),X=eq.toJS(Z,z,q);if(z in $)Object.defineProperty($,z,{value:X,writable:!0,enumerable:!0,configurable:!0});else $[z]=X}}return $}function r4(q,$,U){if($===null)return"";if(typeof $!=="object")return String($);if(EU.isNode(q)&&U?.doc){let Z=s4.createStringifyContext(U.doc,{});Z.anchors=new Set;for(let z of U.anchors.keys())Z.anchors.add(z.anchor);Z.inFlow=!0,Z.inStringifyKey=!0;let H=q.toString(Z);if(!U.mapKeyWarned){let z=JSON.stringify(H);if(z.length>40)z=z.substring(0,36)+'..."';a4.warn(U.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${z}. Set mapAsMap: true to use object keys.`),U.mapKeyWarned=!0}return H}return JSON.stringify($)}n4.addPairToJSMap=i4});var a=T(($6)=>{var gU=K0(),t4=NU(),e4=q$(),Jq=w();function q6(q,$,U){let Z=gU.createNode(q,void 0,U),H=gU.createNode($,void 0,U);return new Qq(Z,H)}class Qq{constructor(q,$=null){Object.defineProperty(this,Jq.NODE_TYPE,{value:Jq.PAIR}),this.key=q,this.value=$}clone(q){let{key:$,value:U}=this;if(Jq.isNode($))$=$.clone(q);if(Jq.isNode(U))U=U.clone(q);return new Qq($,U)}toJSON(q,$){let U=$?.mapAsMap?new Map:{};return e4.addPairToJSMap($,U,this)}toString(q,$,U){return q?.doc?t4.stringifyPair(this,q,$,U):JSON.stringify(this)}}$6.Pair=Qq;$6.createPair=q6});var $$=T((G6)=>{var $0=w(),fU=j0(),Bq=N0();function H6(q,$,U){return($.inFlow??q.flow?X6:z6)(q,$,U)}function z6({comment:q,items:$},U,{blockItemPrefix:Z,flowChars:H,itemIndent:z,onChompKeep:X,onComment:G}){let{indent:J,options:{commentString:Q}}=U,W=Object.assign({},U,{indent:z,type:null}),B=!1,Y=[];for(let _=0;_<$.length;++_){let V=$[_],O=null;if($0.isNode(V)){if(!B&&V.spaceBefore)Y.push("");if(Yq(U,Y,V.commentBefore,B),V.comment)O=V.comment}else if($0.isPair(V)){let R=$0.isNode(V.key)?V.key:null;if(R){if(!B&&R.spaceBefore)Y.push("");Yq(U,Y,R.commentBefore,B)}}B=!1;let I=fU.stringify(V,W,()=>O=null,()=>B=!0);if(O)I+=Bq.lineComment(I,z,Q(O));if(B&&O)B=!1;Y.push(Z+I)}let L;if(Y.length===0)L=H.start+H.end;else{L=Y[0];for(let _=1;_<Y.length;++_){let V=Y[_];L+=V?`
44
+ `)M="";if(W+=M+A,U.inFlow){if(T&&Z)Z()}else if(R&&!T)W+=E0.lineComment(W,U.indent,Q(R));else if(V&&z)z();return W}k4.stringifyPair=u4});var eq=D((d4)=>{var SU=I0("process");function m4(q,...$){if(q==="debug")console.log(...$)}function p4(q,$){if(q==="debug"||q==="warn")if(typeof SU.emitWarning==="function")SU.emitWarning($);else console.warn($)}d4.debug=m4;d4.warn=p4});var Jq=D((i4)=>{var g0=w(),EU=N(),Xq="<<",Gq={identify:(q)=>q===Xq||typeof q==="symbol"&&q.description===Xq,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new EU.Scalar(Symbol(Xq)),{addToJSMap:gU}),stringify:()=>Xq},a4=(q,$)=>(Gq.identify($)||g0.isScalar($)&&(!$.type||$.type===EU.Scalar.PLAIN)&&Gq.identify($.value))&&q?.doc.schema.tags.some((U)=>U.tag===Gq.tag&&U.default);function gU(q,$,U){if(U=q&&g0.isAlias(U)?U.resolve(q.doc):U,g0.isSeq(U))for(let Z of U.items)q$(q,$,Z);else if(Array.isArray(U))for(let Z of U)q$(q,$,Z);else q$(q,$,U)}function q$(q,$,U){let Z=q&&g0.isAlias(U)?U.resolve(q.doc):U;if(!g0.isMap(Z))throw Error("Merge sources must be maps or map aliases");let z=Z.toJSON(null,q,Map);for(let[H,X]of z)if($ instanceof Map){if(!$.has(H))$.set(H,X)}else if($ instanceof Set)$.add(H);else if(!Object.prototype.hasOwnProperty.call($,H))Object.defineProperty($,H,{value:X,writable:!0,enumerable:!0,configurable:!0});return $}i4.addMergeToJSMap=gU;i4.isMergeKey=a4;i4.merge=Gq});var U$=D(($6)=>{var o4=eq(),fU=Jq(),t4=S0(),yU=w(),$$=l();function e4(q,$,{key:U,value:Z}){if(yU.isNode(U)&&U.addToJSMap)U.addToJSMap(q,$,Z);else if(fU.isMergeKey(q,U))fU.addMergeToJSMap(q,$,Z);else{let z=$$.toJS(U,"",q);if($ instanceof Map)$.set(z,$$.toJS(Z,z,q));else if($ instanceof Set)$.add(z);else{let H=q6(U,z,q),X=$$.toJS(Z,H,q);if(H in $)Object.defineProperty($,H,{value:X,writable:!0,enumerable:!0,configurable:!0});else $[H]=X}}return $}function q6(q,$,U){if($===null)return"";if(typeof $!=="object")return String($);if(yU.isNode(q)&&U?.doc){let Z=t4.createStringifyContext(U.doc,{});Z.anchors=new Set;for(let H of U.anchors.keys())Z.anchors.add(H.anchor);Z.inFlow=!0,Z.inStringifyKey=!0;let z=q.toString(Z);if(!U.mapKeyWarned){let H=JSON.stringify(z);if(H.length>40)H=H.substring(0,36)+'..."';o4.warn(U.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${H}. Set mapAsMap: true to use object keys.`),U.mapKeyWarned=!0}return z}return JSON.stringify($)}$6.addPairToJSMap=e4});var i=D((X6)=>{var xU=N0(),Z6=CU(),z6=U$(),Qq=w();function H6(q,$,U){let Z=xU.createNode(q,void 0,U),z=xU.createNode($,void 0,U);return new Bq(Z,z)}class Bq{constructor(q,$=null){Object.defineProperty(this,Qq.NODE_TYPE,{value:Qq.PAIR}),this.key=q,this.value=$}clone(q){let{key:$,value:U}=this;if(Qq.isNode($))$=$.clone(q);if(Qq.isNode(U))U=U.clone(q);return new Bq($,U)}toJSON(q,$){let U=$?.mapAsMap?new Map:{};return z6.addPairToJSMap($,U,this)}toString(q,$,U){return q?.doc?Z6.stringifyPair(this,q,$,U):JSON.stringify(this)}}X6.Pair=Bq;X6.createPair=H6});var Z$=D((V6)=>{var $0=w(),hU=S0(),Yq=b0();function Q6(q,$,U){return($.inFlow??q.flow?Y6:B6)(q,$,U)}function B6({comment:q,items:$},U,{blockItemPrefix:Z,flowChars:z,itemIndent:H,onChompKeep:X,onComment:G}){let{indent:J,options:{commentString:Q}}=U,O=Object.assign({},U,{indent:H,type:null}),B=!1,Y=[];for(let _=0;_<$.length;++_){let V=$[_],W=null;if($0.isNode(V)){if(!B&&V.spaceBefore)Y.push("");if(Vq(U,Y,V.commentBefore,B),V.comment)W=V.comment}else if($0.isPair(V)){let I=$0.isNode(V.key)?V.key:null;if(I){if(!B&&I.spaceBefore)Y.push("");Vq(U,Y,I.commentBefore,B)}}B=!1;let F=hU.stringify(V,O,()=>W=null,()=>B=!0);if(W)F+=Yq.lineComment(F,H,Q(W));if(B&&W)B=!1;Y.push(Z+F)}let L;if(Y.length===0)L=z.start+z.end;else{L=Y[0];for(let _=1;_<Y.length;++_){let V=Y[_];L+=V?`
45
45
  ${J}${V}`:`
46
46
  `}}if(q){if(L+=`
47
- `+Bq.indentComment(Q(q),J),G)G()}else if(B&&X)X();return L}function X6({items:q},$,{flowChars:U,itemIndent:Z}){let{indent:H,indentStep:z,flowCollectionPadding:X,options:{commentString:G}}=$;Z+=z;let J=Object.assign({},$,{indent:Z,inFlow:!0,type:null}),Q=!1,W=0,B=[];for(let _=0;_<q.length;++_){let V=q[_],O=null;if($0.isNode(V)){if(V.spaceBefore)B.push("");if(Yq($,B,V.commentBefore,!1),V.comment)O=V.comment}else if($0.isPair(V)){let R=$0.isNode(V.key)?V.key:null;if(R){if(R.spaceBefore)B.push("");if(Yq($,B,R.commentBefore,!1),R.comment)Q=!0}let P=$0.isNode(V.value)?V.value:null;if(P){if(P.comment)O=P.comment;if(P.commentBefore)Q=!0}else if(V.value==null&&R?.comment)O=R.comment}if(O)Q=!0;let I=fU.stringify(V,J,()=>O=null);if(_<q.length-1)I+=",";if(O)I+=Bq.lineComment(I,Z,G(O));if(!Q&&(B.length>W||I.includes(`
48
- `)))Q=!0;B.push(I),W=B.length}let{start:Y,end:L}=U;if(B.length===0)return Y+L;else{if(!Q){let _=B.reduce((V,O)=>V+O.length+2,2);Q=$.options.lineWidth>0&&_>$.options.lineWidth}if(Q){let _=Y;for(let V of B)_+=V?`
49
- ${z}${H}${V}`:`
47
+ `+Yq.indentComment(Q(q),J),G)G()}else if(B&&X)X();return L}function Y6({items:q},$,{flowChars:U,itemIndent:Z}){let{indent:z,indentStep:H,flowCollectionPadding:X,options:{commentString:G}}=$;Z+=H;let J=Object.assign({},$,{indent:Z,inFlow:!0,type:null}),Q=!1,O=0,B=[];for(let _=0;_<q.length;++_){let V=q[_],W=null;if($0.isNode(V)){if(V.spaceBefore)B.push("");if(Vq($,B,V.commentBefore,!1),V.comment)W=V.comment}else if($0.isPair(V)){let I=$0.isNode(V.key)?V.key:null;if(I){if(I.spaceBefore)B.push("");if(Vq($,B,I.commentBefore,!1),I.comment)Q=!0}let R=$0.isNode(V.value)?V.value:null;if(R){if(R.comment)W=R.comment;if(R.commentBefore)Q=!0}else if(V.value==null&&I?.comment)W=I.comment}if(W)Q=!0;let F=hU.stringify(V,J,()=>W=null);if(_<q.length-1)F+=",";if(W)F+=Yq.lineComment(F,Z,G(W));if(!Q&&(B.length>O||F.includes(`
48
+ `)))Q=!0;B.push(F),O=B.length}let{start:Y,end:L}=U;if(B.length===0)return Y+L;else{if(!Q){let _=B.reduce((V,W)=>V+W.length+2,2);Q=$.options.lineWidth>0&&_>$.options.lineWidth}if(Q){let _=Y;for(let V of B)_+=V?`
49
+ ${H}${z}${V}`:`
50
50
  `;return`${_}
51
- ${H}${L}`}else return`${Y}${X}${B.join(" ")}${X}${L}`}}function Yq({indent:q,options:{commentString:$}},U,Z,H){if(Z&&H)Z=Z.replace(/^\n+/,"");if(Z){let z=Bq.indentComment($(Z),q);U.push(z.trimStart())}}G6.stringifyCollection=H6});var i=T((W6)=>{var Q6=$$(),B6=q$(),Y6=$q(),s=w(),Vq=a(),V6=N();function g0(q,$){let U=s.isScalar($)?$.value:$;for(let Z of q)if(s.isPair(Z)){if(Z.key===$||Z.key===U)return Z;if(s.isScalar(Z.key)&&Z.key.value===U)return Z}return}class yU extends Y6.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(q){super(s.MAP,q);this.items=[]}static from(q,$,U){let{keepUndefined:Z,replacer:H}=U,z=new this(q),X=(G,J)=>{if(typeof H==="function")J=H.call($,G,J);else if(Array.isArray(H)&&!H.includes(G))return;if(J!==void 0||Z)z.items.push(Vq.createPair(G,J,U))};if($ instanceof Map)for(let[G,J]of $)X(G,J);else if($&&typeof $==="object")for(let G of Object.keys($))X(G,$[G]);if(typeof q.sortMapEntries==="function")z.items.sort(q.sortMapEntries);return z}add(q,$){let U;if(s.isPair(q))U=q;else if(!q||typeof q!=="object"||!("key"in q))U=new Vq.Pair(q,q?.value);else U=new Vq.Pair(q.key,q.value);let Z=g0(this.items,U.key),H=this.schema?.sortMapEntries;if(Z){if(!$)throw Error(`Key ${U.key} already set`);if(s.isScalar(Z.value)&&V6.isScalarValue(U.value))Z.value.value=U.value;else Z.value=U.value}else if(H){let z=this.items.findIndex((X)=>H(U,X)<0);if(z===-1)this.items.push(U);else this.items.splice(z,0,U)}else this.items.push(U)}delete(q){let $=g0(this.items,q);if(!$)return!1;return this.items.splice(this.items.indexOf($),1).length>0}get(q,$){let Z=g0(this.items,q)?.value;return(!$&&s.isScalar(Z)?Z.value:Z)??void 0}has(q){return!!g0(this.items,q)}set(q,$){this.add(new Vq.Pair(q,$),!0)}toJSON(q,$,U){let Z=U?new U:$?.mapAsMap?new Map:{};if($?.onCreate)$.onCreate(Z);for(let H of this.items)B6.addPairToJSMap($,Z,H);return Z}toString(q,$,U){if(!q)return JSON.stringify(this);for(let Z of this.items)if(!s.isPair(Z))throw Error(`Map items must all be pairs; found ${JSON.stringify(Z)} instead`);if(!q.allNullValues&&this.hasAllNullValues(!1))q=Object.assign({},q,{allNullValues:!0});return Q6.stringifyCollection(this,q,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:q.indent||"",onChompKeep:U,onComment:$})}}W6.YAMLMap=yU;W6.findPair=g0});var Y0=T((D6)=>{var T6=w(),xU=i(),_6={collection:"map",default:!0,nodeClass:xU.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(q,$){if(!T6.isMap(q))$("Expected a mapping for this tag");return q},createNode:(q,$,U)=>xU.YAMLMap.from(q,$,U)};D6.map=_6});var r=T((w6)=>{var R6=K0(),P6=$$(),F6=$q(),Oq=w(),A6=N(),M6=d();class hU extends F6.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(q){super(Oq.SEQ,q);this.items=[]}add(q){this.items.push(q)}delete(q){let $=Wq(q);if(typeof $!=="number")return!1;return this.items.splice($,1).length>0}get(q,$){let U=Wq(q);if(typeof U!=="number")return;let Z=this.items[U];return!$&&Oq.isScalar(Z)?Z.value:Z}has(q){let $=Wq(q);return typeof $==="number"&&$<this.items.length}set(q,$){let U=Wq(q);if(typeof U!=="number")throw Error(`Expected a valid index, not ${q}.`);let Z=this.items[U];if(Oq.isScalar(Z)&&A6.isScalarValue($))Z.value=$;else this.items[U]=$}toJSON(q,$){let U=[];if($?.onCreate)$.onCreate(U);let Z=0;for(let H of this.items)U.push(M6.toJS(H,String(Z++),$));return U}toString(q,$,U){if(!q)return JSON.stringify(this);return P6.stringifyCollection(this,q,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(q.indent||"")+" ",onChompKeep:U,onComment:$})}static from(q,$,U){let{replacer:Z}=U,H=new this(q);if($&&Symbol.iterator in Object($)){let z=0;for(let X of $){if(typeof Z==="function"){let G=$ instanceof Set?X:String(z++);X=Z.call($,G,X)}H.items.push(R6.createNode(X,void 0,U))}}return H}}function Wq(q){let $=Oq.isScalar(q)?q.value:q;if($&&typeof $==="string")$=Number($);return typeof $==="number"&&Number.isInteger($)&&$>=0?$:null}w6.YAMLSeq=hU});var V0=T((S6)=>{var N6=w(),uU=r(),b6={collection:"seq",default:!0,nodeClass:uU.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(q,$){if(!N6.isSeq(q))$("Expected a sequence for this tag");return q},createNode:(q,$,U)=>uU.YAMLSeq.from(q,$,U)};S6.seq=b6});var f0=T((g6)=>{var C6=S0(),E6={identify:(q)=>typeof q==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(q)=>q,stringify(q,$,U,Z){return $=Object.assign({actualString:!0},$),C6.stringifyString(q,$,U,Z)}};g6.string=E6});var Lq=T((y6)=>{var kU=N(),vU={identify:(q)=>q==null,createNode:()=>new kU.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new kU.Scalar(null),stringify:({source:q},$)=>typeof q==="string"&&vU.test.test(q)?q:$.options.nullStr};y6.nullTag=vU});var U$=T((u6)=>{var h6=N(),mU={identify:(q)=>typeof q==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(q)=>new h6.Scalar(q[0]==="t"||q[0]==="T"),stringify({source:q,value:$},U){if(q&&mU.test.test(q)){let Z=q[0]==="t"||q[0]==="T";if($===Z)return q}return $?U.options.trueStr:U.options.falseStr}};u6.boolTag=mU});var W0=T((m6)=>{function v6({format:q,minFractionDigits:$,tag:U,value:Z}){if(typeof Z==="bigint")return String(Z);let H=typeof Z==="number"?Z:Number(Z);if(!isFinite(H))return isNaN(H)?".nan":H<0?"-.inf":".inf";let z=Object.is(Z,-0)?"-0":JSON.stringify(Z);if(!q&&$&&(!U||U==="tag:yaml.org,2002:float")&&/^\d/.test(z)){let X=z.indexOf(".");if(X<0)X=z.length,z+=".";let G=$-(z.length-X-1);while(G-- >0)z+="0"}return z}m6.stringifyNumber=v6});var H$=T((s6)=>{var d6=N(),Z$=W0(),l6={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(q)=>q.slice(-3).toLowerCase()==="nan"?NaN:q[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Z$.stringifyNumber},c6={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(q)=>parseFloat(q),stringify(q){let $=Number(q.value);return isFinite($)?$.toExponential():Z$.stringifyNumber(q)}},a6={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(q){let $=new d6.Scalar(parseFloat(q)),U=q.indexOf(".");if(U!==-1&&q[q.length-1]==="0")$.minFractionDigits=q.length-U-1;return $},stringify:Z$.stringifyNumber};s6.float=a6;s6.floatExp=c6;s6.floatNaN=l6});var X$=T((q8)=>{var pU=W0(),Tq=(q)=>typeof q==="bigint"||Number.isInteger(q),z$=(q,$,U,{intAsBigInt:Z})=>Z?BigInt(q):parseInt(q.substring($),U);function dU(q,$,U){let{value:Z}=q;if(Tq(Z)&&Z>=0)return U+Z.toString($);return pU.stringifyNumber(q)}var o6={identify:(q)=>Tq(q)&&q>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(q,$,U)=>z$(q,2,8,U),stringify:(q)=>dU(q,8,"0o")},t6={identify:Tq,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(q,$,U)=>z$(q,0,10,U),stringify:pU.stringifyNumber},e6={identify:(q)=>Tq(q)&&q>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(q,$,U)=>z$(q,2,16,U),stringify:(q)=>dU(q,16,"0x")};q8.int=t6;q8.intHex=e6;q8.intOct=o6});var lU=T((B8)=>{var H8=Y0(),z8=Lq(),X8=V0(),G8=f0(),J8=U$(),G$=H$(),J$=X$(),Q8=[H8.map,X8.seq,G8.string,z8.nullTag,J8.boolTag,J$.intOct,J$.int,J$.intHex,G$.floatNaN,G$.floatExp,G$.float];B8.schema=Q8});var aU=T((D8)=>{var V8=N(),W8=Y0(),O8=V0();function cU(q){return typeof q==="bigint"||Number.isInteger(q)}var _q=({value:q})=>JSON.stringify(q),L8=[{identify:(q)=>typeof q==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(q)=>q,stringify:_q},{identify:(q)=>q==null,createNode:()=>new V8.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:_q},{identify:(q)=>typeof q==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(q)=>q==="true",stringify:_q},{identify:cU,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(q,$,{intAsBigInt:U})=>U?BigInt(q):parseInt(q,10),stringify:({value:q})=>cU(q)?q.toString():JSON.stringify(q)},{identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(q)=>parseFloat(q),stringify:_q}],T8={default:!0,tag:"",test:/^/,resolve(q,$){return $(`Unresolved plain scalar ${JSON.stringify(q)}`),q}},_8=[W8.map,O8.seq].concat(L8,T8);D8.schema=_8});var B$=T((F8)=>{var y0=I0("buffer"),Q$=N(),R8=S0(),P8={identify:(q)=>q instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(q,$){if(typeof y0.Buffer==="function")return y0.Buffer.from(q,"base64");else if(typeof atob==="function"){let U=atob(q.replace(/[\n\r]/g,"")),Z=new Uint8Array(U.length);for(let H=0;H<U.length;++H)Z[H]=U.charCodeAt(H);return Z}else return $("This environment does not support reading binary tags; either Buffer or atob is required"),q},stringify({comment:q,type:$,value:U},Z,H,z){if(!U)return"";let X=U,G;if(typeof y0.Buffer==="function")G=X instanceof y0.Buffer?X.toString("base64"):y0.Buffer.from(X.buffer).toString("base64");else if(typeof btoa==="function"){let J="";for(let Q=0;Q<X.length;++Q)J+=String.fromCharCode(X[Q]);G=btoa(J)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if($??($=Q$.Scalar.BLOCK_LITERAL),$!==Q$.Scalar.QUOTE_DOUBLE){let J=Math.max(Z.options.lineWidth-Z.indent.length,Z.options.minContentWidth),Q=Math.ceil(G.length/J),W=Array(Q);for(let B=0,Y=0;B<Q;++B,Y+=J)W[B]=G.substr(Y,J);G=W.join($===Q$.Scalar.BLOCK_LITERAL?`
52
- `:" ")}return R8.stringifyString({comment:q,type:$,value:G},Z,H,z)}};F8.binary=P8});var Iq=T((N8)=>{var Dq=w(),Y$=a(),M8=N(),w8=r();function sU(q,$){if(Dq.isSeq(q))for(let U=0;U<q.items.length;++U){let Z=q.items[U];if(Dq.isPair(Z))continue;else if(Dq.isMap(Z)){if(Z.items.length>1)$("Each pair must have its own sequence indicator");let H=Z.items[0]||new Y$.Pair(new M8.Scalar(null));if(Z.commentBefore)H.key.commentBefore=H.key.commentBefore?`${Z.commentBefore}
53
- ${H.key.commentBefore}`:Z.commentBefore;if(Z.comment){let z=H.value??H.key;z.comment=z.comment?`${Z.comment}
54
- ${z.comment}`:Z.comment}Z=H}q.items[U]=Dq.isPair(Z)?Z:new Y$.Pair(Z)}else $("Expected a sequence for this tag");return q}function iU(q,$,U){let{replacer:Z}=U,H=new w8.YAMLSeq(q);H.tag="tag:yaml.org,2002:pairs";let z=0;if($&&Symbol.iterator in Object($))for(let X of $){if(typeof Z==="function")X=Z.call($,String(z++),X);let G,J;if(Array.isArray(X))if(X.length===2)G=X[0],J=X[1];else throw TypeError(`Expected [key, value] tuple: ${X}`);else if(X&&X instanceof Object){let Q=Object.keys(X);if(Q.length===1)G=Q[0],J=X[G];else throw TypeError(`Expected tuple with one key, not ${Q.length} keys`)}else G=X;H.items.push(Y$.createPair(G,J,U))}return H}var K8={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:sU,createNode:iU};N8.createPairs=iU;N8.pairs=K8;N8.resolvePairs=sU});var W$=T((g8)=>{var rU=w(),V$=d(),x0=i(),C8=r(),nU=Iq();class U0 extends C8.YAMLSeq{constructor(){super();this.add=x0.YAMLMap.prototype.add.bind(this),this.delete=x0.YAMLMap.prototype.delete.bind(this),this.get=x0.YAMLMap.prototype.get.bind(this),this.has=x0.YAMLMap.prototype.has.bind(this),this.set=x0.YAMLMap.prototype.set.bind(this),this.tag=U0.tag}toJSON(q,$){if(!$)return super.toJSON(q);let U=new Map;if($?.onCreate)$.onCreate(U);for(let Z of this.items){let H,z;if(rU.isPair(Z))H=V$.toJS(Z.key,"",$),z=V$.toJS(Z.value,H,$);else H=V$.toJS(Z,"",$);if(U.has(H))throw Error("Ordered maps must not include duplicate keys");U.set(H,z)}return U}static from(q,$,U){let Z=nU.createPairs(q,$,U),H=new this;return H.items=Z.items,H}}U0.tag="tag:yaml.org,2002:omap";var E8={collection:"seq",identify:(q)=>q instanceof Map,nodeClass:U0,default:!1,tag:"tag:yaml.org,2002:omap",resolve(q,$){let U=nU.resolvePairs(q,$),Z=[];for(let{key:H}of U.items)if(rU.isScalar(H))if(Z.includes(H.value))$(`Ordered maps must not include duplicate keys: ${H.value}`);else Z.push(H.value);return Object.assign(new U0,U)},createNode:(q,$,U)=>U0.from(q,$,U)};g8.YAMLOMap=U0;g8.omap=E8});var $2=T((x8)=>{var oU=N();function tU({value:q,source:$},U){if($&&(q?eU:q2).test.test($))return $;return q?U.options.trueStr:U.options.falseStr}var eU={identify:(q)=>q===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new oU.Scalar(!0),stringify:tU},q2={identify:(q)=>q===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new oU.Scalar(!1),stringify:tU};x8.falseTag=q2;x8.trueTag=eU});var U2=T((d8)=>{var k8=N(),O$=W0(),v8={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(q)=>q.slice(-3).toLowerCase()==="nan"?NaN:q[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:O$.stringifyNumber},m8={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(q)=>parseFloat(q.replace(/_/g,"")),stringify(q){let $=Number(q.value);return isFinite($)?$.toExponential():O$.stringifyNumber(q)}},p8={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(q){let $=new k8.Scalar(parseFloat(q.replace(/_/g,""))),U=q.indexOf(".");if(U!==-1){let Z=q.substring(U+1).replace(/_/g,"");if(Z[Z.length-1]==="0")$.minFractionDigits=Z.length}return $},stringify:O$.stringifyNumber};d8.float=p8;d8.floatExp=m8;d8.floatNaN=v8});var H2=T((o8)=>{var Z2=W0(),h0=(q)=>typeof q==="bigint"||Number.isInteger(q);function Rq(q,$,U,{intAsBigInt:Z}){let H=q[0];if(H==="-"||H==="+")$+=1;if(q=q.substring($).replace(/_/g,""),Z){switch(U){case 2:q=`0b${q}`;break;case 8:q=`0o${q}`;break;case 16:q=`0x${q}`;break}let X=BigInt(q);return H==="-"?BigInt(-1)*X:X}let z=parseInt(q,U);return H==="-"?-1*z:z}function L$(q,$,U){let{value:Z}=q;if(h0(Z)){let H=Z.toString($);return Z<0?"-"+U+H.substr(1):U+H}return Z2.stringifyNumber(q)}var s8={identify:h0,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(q,$,U)=>Rq(q,2,2,U),stringify:(q)=>L$(q,2,"0b")},i8={identify:h0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(q,$,U)=>Rq(q,1,8,U),stringify:(q)=>L$(q,8,"0")},r8={identify:h0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(q,$,U)=>Rq(q,0,10,U),stringify:Z2.stringifyNumber},n8={identify:h0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(q,$,U)=>Rq(q,2,16,U),stringify:(q)=>L$(q,16,"0x")};o8.int=r8;o8.intBin=s8;o8.intHex=n8;o8.intOct=i8});var T$=T((Z3)=>{var Aq=w(),Pq=a(),Fq=i();class Z0 extends Fq.YAMLMap{constructor(q){super(q);this.tag=Z0.tag}add(q){let $;if(Aq.isPair(q))$=q;else if(q&&typeof q==="object"&&"key"in q&&"value"in q&&q.value===null)$=new Pq.Pair(q.key,null);else $=new Pq.Pair(q,null);if(!Fq.findPair(this.items,$.key))this.items.push($)}get(q,$){let U=Fq.findPair(this.items,q);return!$&&Aq.isPair(U)?Aq.isScalar(U.key)?U.key.value:U.key:U}set(q,$){if(typeof $!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof $}`);let U=Fq.findPair(this.items,q);if(U&&!$)this.items.splice(this.items.indexOf(U),1);else if(!U&&$)this.items.push(new Pq.Pair(q))}toJSON(q,$){return super.toJSON(q,$,Set)}toString(q,$,U){if(!q)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},q,{allNullValues:!0}),$,U);else throw Error("Set items must all have null values")}static from(q,$,U){let{replacer:Z}=U,H=new this(q);if($&&Symbol.iterator in Object($))for(let z of $){if(typeof Z==="function")z=Z.call($,z,z);H.items.push(Pq.createPair(z,null,U))}return H}}Z0.tag="tag:yaml.org,2002:set";var U3={collection:"map",identify:(q)=>q instanceof Set,nodeClass:Z0,default:!1,tag:"tag:yaml.org,2002:set",createNode:(q,$,U)=>Z0.from(q,$,U),resolve(q,$){if(Aq.isMap(q))if(q.hasAllNullValues(!0))return Object.assign(new Z0,q);else $("Set items must all have null values");else $("Expected a mapping for this tag");return q}};Z3.YAMLSet=Z0;Z3.set=U3});var D$=T((Q3)=>{var X3=W0();function _$(q,$){let U=q[0],Z=U==="-"||U==="+"?q.substring(1):q,H=(X)=>$?BigInt(X):Number(X),z=Z.replace(/_/g,"").split(":").reduce((X,G)=>X*H(60)+H(G),H(0));return U==="-"?H(-1)*z:z}function z2(q){let{value:$}=q,U=(X)=>X;if(typeof $==="bigint")U=(X)=>BigInt(X);else if(isNaN($)||!isFinite($))return X3.stringifyNumber(q);let Z="";if($<0)Z="-",$*=U(-1);let H=U(60),z=[$%H];if($<60)z.unshift(0);else if($=($-z[0])/H,z.unshift($%H),$>=60)$=($-z[0])/H,z.unshift($);return Z+z.map((X)=>String(X).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var G3={identify:(q)=>typeof q==="bigint"||Number.isInteger(q),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(q,$,{intAsBigInt:U})=>_$(q,U),stringify:z2},J3={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(q)=>_$(q,!1),stringify:z2},X2={identify:(q)=>q 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(q){let $=q.match(X2.test);if(!$)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,U,Z,H,z,X,G]=$.map(Number),J=$[7]?Number(($[7]+"00").substr(1,3)):0,Q=Date.UTC(U,Z-1,H,z||0,X||0,G||0,J),W=$[8];if(W&&W!=="Z"){let B=_$(W,!1);if(Math.abs(B)<30)B*=60;Q-=60000*B}return new Date(Q)},stringify:({value:q})=>q?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Q3.floatTime=J3;Q3.intTime=G3;Q3.timestamp=X2});var J2=T((A3)=>{var W3=Y0(),O3=Lq(),L3=V0(),T3=f0(),_3=B$(),G2=$2(),I$=U2(),Mq=H2(),D3=Gq(),I3=W$(),R3=Iq(),P3=T$(),R$=D$(),F3=[W3.map,L3.seq,T3.string,O3.nullTag,G2.trueTag,G2.falseTag,Mq.intBin,Mq.intOct,Mq.int,Mq.intHex,I$.floatNaN,I$.floatExp,I$.float,_3.binary,D3.merge,I3.omap,R3.pairs,P3.set,R$.intTime,R$.floatTime,R$.timestamp];A3.schema=F3});var D2=T((E3)=>{var V2=Y0(),w3=Lq(),W2=V0(),K3=f0(),N3=U$(),P$=H$(),F$=X$(),b3=lU(),S3=aU(),O2=B$(),u0=Gq(),L2=W$(),T2=Iq(),Q2=J2(),_2=T$(),wq=D$(),B2=new Map([["core",b3.schema],["failsafe",[V2.map,W2.seq,K3.string]],["json",S3.schema],["yaml11",Q2.schema],["yaml-1.1",Q2.schema]]),Y2={binary:O2.binary,bool:N3.boolTag,float:P$.float,floatExp:P$.floatExp,floatNaN:P$.floatNaN,floatTime:wq.floatTime,int:F$.int,intHex:F$.intHex,intOct:F$.intOct,intTime:wq.intTime,map:V2.map,merge:u0.merge,null:w3.nullTag,omap:L2.omap,pairs:T2.pairs,seq:W2.seq,set:_2.set,timestamp:wq.timestamp},j3={"tag:yaml.org,2002:binary":O2.binary,"tag:yaml.org,2002:merge":u0.merge,"tag:yaml.org,2002:omap":L2.omap,"tag:yaml.org,2002:pairs":T2.pairs,"tag:yaml.org,2002:set":_2.set,"tag:yaml.org,2002:timestamp":wq.timestamp};function C3(q,$,U){let Z=B2.get($);if(Z&&!q)return U&&!Z.includes(u0.merge)?Z.concat(u0.merge):Z.slice();let H=Z;if(!H)if(Array.isArray(q))H=[];else{let z=Array.from(B2.keys()).filter((X)=>X!=="yaml11").map((X)=>JSON.stringify(X)).join(", ");throw Error(`Unknown schema "${$}"; use one of ${z} or define customTags array`)}if(Array.isArray(q))for(let z of q)H=H.concat(z);else if(typeof q==="function")H=q(H.slice());if(U)H=H.concat(u0.merge);return H.reduce((z,X)=>{let G=typeof X==="string"?Y2[X]:X;if(!G){let J=JSON.stringify(X),Q=Object.keys(Y2).map((W)=>JSON.stringify(W)).join(", ");throw Error(`Unknown custom tag ${J}; use one of ${Q}`)}if(!z.includes(G))z.push(G);return z},[])}E3.coreKnownTags=j3;E3.getTags=C3});var w$=T((k3)=>{var A$=w(),y3=Y0(),x3=V0(),h3=f0(),Kq=D2(),u3=(q,$)=>q.key<$.key?-1:q.key>$.key?1:0;class M${constructor({compat:q,customTags:$,merge:U,resolveKnownTags:Z,schema:H,sortMapEntries:z,toStringDefaults:X}){this.compat=Array.isArray(q)?Kq.getTags(q,"compat"):q?Kq.getTags(null,q):null,this.name=typeof H==="string"&&H||"core",this.knownTags=Z?Kq.coreKnownTags:{},this.tags=Kq.getTags($,this.name,U),this.toStringOptions=X??null,Object.defineProperty(this,A$.MAP,{value:y3.map}),Object.defineProperty(this,A$.SCALAR,{value:h3.string}),Object.defineProperty(this,A$.SEQ,{value:x3.seq}),this.sortMapEntries=typeof z==="function"?z:z===!0?u3:null}clone(){let q=Object.create(M$.prototype,Object.getOwnPropertyDescriptors(this));return q.tags=this.tags.slice(),q}}k3.Schema=M$});var I2=T((d3)=>{var m3=w(),K$=j0(),k0=N0();function p3(q,$){let U=[],Z=$.directives===!0;if($.directives!==!1&&q.directives){let J=q.directives.toString(q);if(J)U.push(J),Z=!0;else if(q.directives.docStart)Z=!0}if(Z)U.push("---");let H=K$.createStringifyContext(q,$),{commentString:z}=H.options;if(q.commentBefore){if(U.length!==1)U.unshift("");let J=z(q.commentBefore);U.unshift(k0.indentComment(J,""))}let X=!1,G=null;if(q.contents){if(m3.isNode(q.contents)){if(q.contents.spaceBefore&&Z)U.push("");if(q.contents.commentBefore){let W=z(q.contents.commentBefore);U.push(k0.indentComment(W,""))}H.forceBlockIndent=!!q.comment,G=q.contents.comment}let J=G?void 0:()=>X=!0,Q=K$.stringify(q.contents,H,()=>G=null,J);if(G)Q+=k0.lineComment(Q,"",z(G));if((Q[0]==="|"||Q[0]===">")&&U[U.length-1]==="---")U[U.length-1]=`--- ${Q}`;else U.push(Q)}else U.push(K$.stringify(q.contents,H));if(q.directives?.docEnd)if(q.comment){let J=z(q.comment);if(J.includes(`
55
- `))U.push("..."),U.push(k0.indentComment(J,""));else U.push(`... ${J}`)}else U.push("...");else{let J=q.comment;if(J&&X)J=J.replace(/^\n+/,"");if(J){if((!X||G)&&U[U.length-1]!=="")U.push("");U.push(k0.indentComment(z(J),""))}}return U.join(`
51
+ ${z}${L}`}else return`${Y}${X}${B.join(" ")}${X}${L}`}}function Vq({indent:q,options:{commentString:$}},U,Z,z){if(Z&&z)Z=Z.replace(/^\n+/,"");if(Z){let H=Yq.indentComment($(Z),q);U.push(H.trimStart())}}V6.stringifyCollection=Q6});var r=D((P6)=>{var W6=Z$(),L6=U$(),D6=Uq(),s=w(),Oq=i(),_6=N();function f0(q,$){let U=s.isScalar($)?$.value:$;for(let Z of q)if(s.isPair(Z)){if(Z.key===$||Z.key===U)return Z;if(s.isScalar(Z.key)&&Z.key.value===U)return Z}return}class uU extends D6.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(q){super(s.MAP,q);this.items=[]}static from(q,$,U){let{keepUndefined:Z,replacer:z}=U,H=new this(q),X=(G,J)=>{if(typeof z==="function")J=z.call($,G,J);else if(Array.isArray(z)&&!z.includes(G))return;if(J!==void 0||Z)H.items.push(Oq.createPair(G,J,U))};if($ instanceof Map)for(let[G,J]of $)X(G,J);else if($&&typeof $==="object")for(let G of Object.keys($))X(G,$[G]);if(typeof q.sortMapEntries==="function")H.items.sort(q.sortMapEntries);return H}add(q,$){let U;if(s.isPair(q))U=q;else if(!q||typeof q!=="object"||!("key"in q))U=new Oq.Pair(q,q?.value);else U=new Oq.Pair(q.key,q.value);let Z=f0(this.items,U.key),z=this.schema?.sortMapEntries;if(Z){if(!$)throw Error(`Key ${U.key} already set`);if(s.isScalar(Z.value)&&_6.isScalarValue(U.value))Z.value.value=U.value;else Z.value=U.value}else if(z){let H=this.items.findIndex((X)=>z(U,X)<0);if(H===-1)this.items.push(U);else this.items.splice(H,0,U)}else this.items.push(U)}delete(q){let $=f0(this.items,q);if(!$)return!1;return this.items.splice(this.items.indexOf($),1).length>0}get(q,$){let Z=f0(this.items,q)?.value;return(!$&&s.isScalar(Z)?Z.value:Z)??void 0}has(q){return!!f0(this.items,q)}set(q,$){this.add(new Oq.Pair(q,$),!0)}toJSON(q,$,U){let Z=U?new U:$?.mapAsMap?new Map:{};if($?.onCreate)$.onCreate(Z);for(let z of this.items)L6.addPairToJSMap($,Z,z);return Z}toString(q,$,U){if(!q)return JSON.stringify(this);for(let Z of this.items)if(!s.isPair(Z))throw Error(`Map items must all be pairs; found ${JSON.stringify(Z)} instead`);if(!q.allNullValues&&this.hasAllNullValues(!1))q=Object.assign({},q,{allNullValues:!0});return W6.stringifyCollection(this,q,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:q.indent||"",onChompKeep:U,onComment:$})}}P6.YAMLMap=uU;P6.findPair=f0});var Y0=D((A6)=>{var R6=w(),kU=r(),T6={collection:"map",default:!0,nodeClass:kU.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(q,$){if(!R6.isMap(q))$("Expected a mapping for this tag");return q},createNode:(q,$,U)=>kU.YAMLMap.from(q,$,U)};A6.map=T6});var n=D((C6)=>{var w6=N0(),K6=Z$(),N6=Uq(),Lq=w(),b6=N(),j6=l();class vU extends N6.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(q){super(Lq.SEQ,q);this.items=[]}add(q){this.items.push(q)}delete(q){let $=Wq(q);if(typeof $!=="number")return!1;return this.items.splice($,1).length>0}get(q,$){let U=Wq(q);if(typeof U!=="number")return;let Z=this.items[U];return!$&&Lq.isScalar(Z)?Z.value:Z}has(q){let $=Wq(q);return typeof $==="number"&&$<this.items.length}set(q,$){let U=Wq(q);if(typeof U!=="number")throw Error(`Expected a valid index, not ${q}.`);let Z=this.items[U];if(Lq.isScalar(Z)&&b6.isScalarValue($))Z.value=$;else this.items[U]=$}toJSON(q,$){let U=[];if($?.onCreate)$.onCreate(U);let Z=0;for(let z of this.items)U.push(j6.toJS(z,String(Z++),$));return U}toString(q,$,U){if(!q)return JSON.stringify(this);return K6.stringifyCollection(this,q,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(q.indent||"")+" ",onChompKeep:U,onComment:$})}static from(q,$,U){let{replacer:Z}=U,z=new this(q);if($&&Symbol.iterator in Object($)){let H=0;for(let X of $){if(typeof Z==="function"){let G=$ instanceof Set?X:String(H++);X=Z.call($,G,X)}z.items.push(w6.createNode(X,void 0,U))}}return z}}function Wq(q){let $=Lq.isScalar(q)?q.value:q;if($&&typeof $==="string")$=Number($);return typeof $==="number"&&Number.isInteger($)&&$>=0?$:null}C6.YAMLSeq=vU});var V0=D((f6)=>{var E6=w(),mU=n(),g6={collection:"seq",default:!0,nodeClass:mU.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(q,$){if(!E6.isSeq(q))$("Expected a sequence for this tag");return q},createNode:(q,$,U)=>mU.YAMLSeq.from(q,$,U)};f6.seq=g6});var y0=D((u6)=>{var x6=C0(),h6={identify:(q)=>typeof q==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(q)=>q,stringify(q,$,U,Z){return $=Object.assign({actualString:!0},$),x6.stringifyString(q,$,U,Z)}};u6.string=h6});var Dq=D((v6)=>{var pU=N(),dU={identify:(q)=>q==null,createNode:()=>new pU.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new pU.Scalar(null),stringify:({source:q},$)=>typeof q==="string"&&dU.test.test(q)?q:$.options.nullStr};v6.nullTag=dU});var z$=D((d6)=>{var p6=N(),lU={identify:(q)=>typeof q==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(q)=>new p6.Scalar(q[0]==="t"||q[0]==="T"),stringify({source:q,value:$},U){if(q&&lU.test.test(q)){let Z=q[0]==="t"||q[0]==="T";if($===Z)return q}return $?U.options.trueStr:U.options.falseStr}};d6.boolTag=lU});var O0=D((a6)=>{function c6({format:q,minFractionDigits:$,tag:U,value:Z}){if(typeof Z==="bigint")return String(Z);let z=typeof Z==="number"?Z:Number(Z);if(!isFinite(z))return isNaN(z)?".nan":z<0?"-.inf":".inf";let H=Object.is(Z,-0)?"-0":JSON.stringify(Z);if(!q&&$&&(!U||U==="tag:yaml.org,2002:float")&&/^\d/.test(H)){let X=H.indexOf(".");if(X<0)X=H.length,H+=".";let G=$-(H.length-X-1);while(G-- >0)H+="0"}return H}a6.stringifyNumber=c6});var X$=D((t6)=>{var s6=N(),H$=O0(),r6={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(q)=>q.slice(-3).toLowerCase()==="nan"?NaN:q[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:H$.stringifyNumber},n6={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(q)=>parseFloat(q),stringify(q){let $=Number(q.value);return isFinite($)?$.toExponential():H$.stringifyNumber(q)}},o6={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(q){let $=new s6.Scalar(parseFloat(q)),U=q.indexOf(".");if(U!==-1&&q[q.length-1]==="0")$.minFractionDigits=q.length-U-1;return $},stringify:H$.stringifyNumber};t6.float=o6;t6.floatExp=n6;t6.floatNaN=r6});var J$=D((H8)=>{var cU=O0(),_q=(q)=>typeof q==="bigint"||Number.isInteger(q),G$=(q,$,U,{intAsBigInt:Z})=>Z?BigInt(q):parseInt(q.substring($),U);function aU(q,$,U){let{value:Z}=q;if(_q(Z)&&Z>=0)return U+Z.toString($);return cU.stringifyNumber(q)}var U8={identify:(q)=>_q(q)&&q>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(q,$,U)=>G$(q,2,8,U),stringify:(q)=>aU(q,8,"0o")},Z8={identify:_q,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(q,$,U)=>G$(q,0,10,U),stringify:cU.stringifyNumber},z8={identify:(q)=>_q(q)&&q>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(q,$,U)=>G$(q,2,16,U),stringify:(q)=>aU(q,16,"0x")};H8.int=Z8;H8.intHex=z8;H8.intOct=U8});var iU=D((L8)=>{var Q8=Y0(),B8=Dq(),Y8=V0(),V8=y0(),O8=z$(),Q$=X$(),B$=J$(),W8=[Q8.map,Y8.seq,V8.string,B8.nullTag,O8.boolTag,B$.intOct,B$.int,B$.intHex,Q$.floatNaN,Q$.floatExp,Q$.float];L8.schema=W8});var rU=D((A8)=>{var _8=N(),P8=Y0(),F8=V0();function sU(q){return typeof q==="bigint"||Number.isInteger(q)}var Pq=({value:q})=>JSON.stringify(q),I8=[{identify:(q)=>typeof q==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(q)=>q,stringify:Pq},{identify:(q)=>q==null,createNode:()=>new _8.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Pq},{identify:(q)=>typeof q==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(q)=>q==="true",stringify:Pq},{identify:sU,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(q,$,{intAsBigInt:U})=>U?BigInt(q):parseInt(q,10),stringify:({value:q})=>sU(q)?q.toString():JSON.stringify(q)},{identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(q)=>parseFloat(q),stringify:Pq}],R8={default:!0,tag:"",test:/^/,resolve(q,$){return $(`Unresolved plain scalar ${JSON.stringify(q)}`),q}},T8=[P8.map,F8.seq].concat(I8,R8);A8.schema=T8});var V$=D((N8)=>{var x0=I0("buffer"),Y$=N(),w8=C0(),K8={identify:(q)=>q instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(q,$){if(typeof x0.Buffer==="function")return x0.Buffer.from(q,"base64");else if(typeof atob==="function"){let U=atob(q.replace(/[\n\r]/g,"")),Z=new Uint8Array(U.length);for(let z=0;z<U.length;++z)Z[z]=U.charCodeAt(z);return Z}else return $("This environment does not support reading binary tags; either Buffer or atob is required"),q},stringify({comment:q,type:$,value:U},Z,z,H){if(!U)return"";let X=U,G;if(typeof x0.Buffer==="function")G=X instanceof x0.Buffer?X.toString("base64"):x0.Buffer.from(X.buffer).toString("base64");else if(typeof btoa==="function"){let J="";for(let Q=0;Q<X.length;++Q)J+=String.fromCharCode(X[Q]);G=btoa(J)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if($??($=Y$.Scalar.BLOCK_LITERAL),$!==Y$.Scalar.QUOTE_DOUBLE){let J=Math.max(Z.options.lineWidth-Z.indent.length,Z.options.minContentWidth),Q=Math.ceil(G.length/J),O=Array(Q);for(let B=0,Y=0;B<Q;++B,Y+=J)O[B]=G.substr(Y,J);G=O.join($===Y$.Scalar.BLOCK_LITERAL?`
52
+ `:" ")}return w8.stringifyString({comment:q,type:$,value:G},Z,z,H)}};N8.binary=K8});var Iq=D((E8)=>{var Fq=w(),O$=i(),j8=N(),C8=n();function nU(q,$){if(Fq.isSeq(q))for(let U=0;U<q.items.length;++U){let Z=q.items[U];if(Fq.isPair(Z))continue;else if(Fq.isMap(Z)){if(Z.items.length>1)$("Each pair must have its own sequence indicator");let z=Z.items[0]||new O$.Pair(new j8.Scalar(null));if(Z.commentBefore)z.key.commentBefore=z.key.commentBefore?`${Z.commentBefore}
53
+ ${z.key.commentBefore}`:Z.commentBefore;if(Z.comment){let H=z.value??z.key;H.comment=H.comment?`${Z.comment}
54
+ ${H.comment}`:Z.comment}Z=z}q.items[U]=Fq.isPair(Z)?Z:new O$.Pair(Z)}else $("Expected a sequence for this tag");return q}function oU(q,$,U){let{replacer:Z}=U,z=new C8.YAMLSeq(q);z.tag="tag:yaml.org,2002:pairs";let H=0;if($&&Symbol.iterator in Object($))for(let X of $){if(typeof Z==="function")X=Z.call($,String(H++),X);let G,J;if(Array.isArray(X))if(X.length===2)G=X[0],J=X[1];else throw TypeError(`Expected [key, value] tuple: ${X}`);else if(X&&X instanceof Object){let Q=Object.keys(X);if(Q.length===1)G=Q[0],J=X[G];else throw TypeError(`Expected tuple with one key, not ${Q.length} keys`)}else G=X;z.items.push(O$.createPair(G,J,U))}return z}var S8={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:nU,createNode:oU};E8.createPairs=oU;E8.pairs=S8;E8.resolvePairs=nU});var L$=D((u8)=>{var tU=w(),W$=l(),h0=r(),x8=n(),eU=Iq();class U0 extends x8.YAMLSeq{constructor(){super();this.add=h0.YAMLMap.prototype.add.bind(this),this.delete=h0.YAMLMap.prototype.delete.bind(this),this.get=h0.YAMLMap.prototype.get.bind(this),this.has=h0.YAMLMap.prototype.has.bind(this),this.set=h0.YAMLMap.prototype.set.bind(this),this.tag=U0.tag}toJSON(q,$){if(!$)return super.toJSON(q);let U=new Map;if($?.onCreate)$.onCreate(U);for(let Z of this.items){let z,H;if(tU.isPair(Z))z=W$.toJS(Z.key,"",$),H=W$.toJS(Z.value,z,$);else z=W$.toJS(Z,"",$);if(U.has(z))throw Error("Ordered maps must not include duplicate keys");U.set(z,H)}return U}static from(q,$,U){let Z=eU.createPairs(q,$,U),z=new this;return z.items=Z.items,z}}U0.tag="tag:yaml.org,2002:omap";var h8={collection:"seq",identify:(q)=>q instanceof Map,nodeClass:U0,default:!1,tag:"tag:yaml.org,2002:omap",resolve(q,$){let U=eU.resolvePairs(q,$),Z=[];for(let{key:z}of U.items)if(tU.isScalar(z))if(Z.includes(z.value))$(`Ordered maps must not include duplicate keys: ${z.value}`);else Z.push(z.value);return Object.assign(new U0,U)},createNode:(q,$,U)=>U0.from(q,$,U)};u8.YAMLOMap=U0;u8.omap=h8});var z2=D((m8)=>{var q2=N();function $2({value:q,source:$},U){if($&&(q?U2:Z2).test.test($))return $;return q?U.options.trueStr:U.options.falseStr}var U2={identify:(q)=>q===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new q2.Scalar(!0),stringify:$2},Z2={identify:(q)=>q===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new q2.Scalar(!1),stringify:$2};m8.falseTag=Z2;m8.trueTag=U2});var H2=D((s8)=>{var l8=N(),D$=O0(),c8={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(q)=>q.slice(-3).toLowerCase()==="nan"?NaN:q[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:D$.stringifyNumber},a8={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(q)=>parseFloat(q.replace(/_/g,"")),stringify(q){let $=Number(q.value);return isFinite($)?$.toExponential():D$.stringifyNumber(q)}},i8={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(q){let $=new l8.Scalar(parseFloat(q.replace(/_/g,""))),U=q.indexOf(".");if(U!==-1){let Z=q.substring(U+1).replace(/_/g,"");if(Z[Z.length-1]==="0")$.minFractionDigits=Z.length}return $},stringify:D$.stringifyNumber};s8.float=i8;s8.floatExp=a8;s8.floatNaN=c8});var G2=D((U3)=>{var X2=O0(),u0=(q)=>typeof q==="bigint"||Number.isInteger(q);function Rq(q,$,U,{intAsBigInt:Z}){let z=q[0];if(z==="-"||z==="+")$+=1;if(q=q.substring($).replace(/_/g,""),Z){switch(U){case 2:q=`0b${q}`;break;case 8:q=`0o${q}`;break;case 16:q=`0x${q}`;break}let X=BigInt(q);return z==="-"?BigInt(-1)*X:X}let H=parseInt(q,U);return z==="-"?-1*H:H}function _$(q,$,U){let{value:Z}=q;if(u0(Z)){let z=Z.toString($);return Z<0?"-"+U+z.substr(1):U+z}return X2.stringifyNumber(q)}var t8={identify:u0,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(q,$,U)=>Rq(q,2,2,U),stringify:(q)=>_$(q,2,"0b")},e8={identify:u0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(q,$,U)=>Rq(q,1,8,U),stringify:(q)=>_$(q,8,"0")},q3={identify:u0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(q,$,U)=>Rq(q,0,10,U),stringify:X2.stringifyNumber},$3={identify:u0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(q,$,U)=>Rq(q,2,16,U),stringify:(q)=>_$(q,16,"0x")};U3.int=q3;U3.intBin=t8;U3.intHex=$3;U3.intOct=e8});var P$=D((J3)=>{var Mq=w(),Tq=i(),Aq=r();class Z0 extends Aq.YAMLMap{constructor(q){super(q);this.tag=Z0.tag}add(q){let $;if(Mq.isPair(q))$=q;else if(q&&typeof q==="object"&&"key"in q&&"value"in q&&q.value===null)$=new Tq.Pair(q.key,null);else $=new Tq.Pair(q,null);if(!Aq.findPair(this.items,$.key))this.items.push($)}get(q,$){let U=Aq.findPair(this.items,q);return!$&&Mq.isPair(U)?Mq.isScalar(U.key)?U.key.value:U.key:U}set(q,$){if(typeof $!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof $}`);let U=Aq.findPair(this.items,q);if(U&&!$)this.items.splice(this.items.indexOf(U),1);else if(!U&&$)this.items.push(new Tq.Pair(q))}toJSON(q,$){return super.toJSON(q,$,Set)}toString(q,$,U){if(!q)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},q,{allNullValues:!0}),$,U);else throw Error("Set items must all have null values")}static from(q,$,U){let{replacer:Z}=U,z=new this(q);if($&&Symbol.iterator in Object($))for(let H of $){if(typeof Z==="function")H=Z.call($,H,H);z.items.push(Tq.createPair(H,null,U))}return z}}Z0.tag="tag:yaml.org,2002:set";var G3={collection:"map",identify:(q)=>q instanceof Set,nodeClass:Z0,default:!1,tag:"tag:yaml.org,2002:set",createNode:(q,$,U)=>Z0.from(q,$,U),resolve(q,$){if(Mq.isMap(q))if(q.hasAllNullValues(!0))return Object.assign(new Z0,q);else $("Set items must all have null values");else $("Expected a mapping for this tag");return q}};J3.YAMLSet=Z0;J3.set=G3});var I$=D((W3)=>{var Y3=O0();function F$(q,$){let U=q[0],Z=U==="-"||U==="+"?q.substring(1):q,z=(X)=>$?BigInt(X):Number(X),H=Z.replace(/_/g,"").split(":").reduce((X,G)=>X*z(60)+z(G),z(0));return U==="-"?z(-1)*H:H}function J2(q){let{value:$}=q,U=(X)=>X;if(typeof $==="bigint")U=(X)=>BigInt(X);else if(isNaN($)||!isFinite($))return Y3.stringifyNumber(q);let Z="";if($<0)Z="-",$*=U(-1);let z=U(60),H=[$%z];if($<60)H.unshift(0);else if($=($-H[0])/z,H.unshift($%z),$>=60)$=($-H[0])/z,H.unshift($);return Z+H.map((X)=>String(X).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var V3={identify:(q)=>typeof q==="bigint"||Number.isInteger(q),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(q,$,{intAsBigInt:U})=>F$(q,U),stringify:J2},O3={identify:(q)=>typeof q==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(q)=>F$(q,!1),stringify:J2},Q2={identify:(q)=>q 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(q){let $=q.match(Q2.test);if(!$)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,U,Z,z,H,X,G]=$.map(Number),J=$[7]?Number(($[7]+"00").substr(1,3)):0,Q=Date.UTC(U,Z-1,z,H||0,X||0,G||0,J),O=$[8];if(O&&O!=="Z"){let B=F$(O,!1);if(Math.abs(B)<30)B*=60;Q-=60000*B}return new Date(Q)},stringify:({value:q})=>q?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};W3.floatTime=O3;W3.intTime=V3;W3.timestamp=Q2});var Y2=D((b3)=>{var P3=Y0(),F3=Dq(),I3=V0(),R3=y0(),T3=V$(),B2=z2(),R$=H2(),wq=G2(),A3=Jq(),M3=L$(),w3=Iq(),K3=P$(),T$=I$(),N3=[P3.map,I3.seq,R3.string,F3.nullTag,B2.trueTag,B2.falseTag,wq.intBin,wq.intOct,wq.int,wq.intHex,R$.floatNaN,R$.floatExp,R$.float,T3.binary,A3.merge,M3.omap,w3.pairs,K3.set,T$.intTime,T$.floatTime,T$.timestamp];b3.schema=N3});var R2=D((h3)=>{var L2=Y0(),C3=Dq(),D2=V0(),S3=y0(),E3=z$(),A$=X$(),M$=J$(),g3=iU(),f3=rU(),_2=V$(),k0=Jq(),P2=L$(),F2=Iq(),V2=Y2(),I2=P$(),Kq=I$(),O2=new Map([["core",g3.schema],["failsafe",[L2.map,D2.seq,S3.string]],["json",f3.schema],["yaml11",V2.schema],["yaml-1.1",V2.schema]]),W2={binary:_2.binary,bool:E3.boolTag,float:A$.float,floatExp:A$.floatExp,floatNaN:A$.floatNaN,floatTime:Kq.floatTime,int:M$.int,intHex:M$.intHex,intOct:M$.intOct,intTime:Kq.intTime,map:L2.map,merge:k0.merge,null:C3.nullTag,omap:P2.omap,pairs:F2.pairs,seq:D2.seq,set:I2.set,timestamp:Kq.timestamp},y3={"tag:yaml.org,2002:binary":_2.binary,"tag:yaml.org,2002:merge":k0.merge,"tag:yaml.org,2002:omap":P2.omap,"tag:yaml.org,2002:pairs":F2.pairs,"tag:yaml.org,2002:set":I2.set,"tag:yaml.org,2002:timestamp":Kq.timestamp};function x3(q,$,U){let Z=O2.get($);if(Z&&!q)return U&&!Z.includes(k0.merge)?Z.concat(k0.merge):Z.slice();let z=Z;if(!z)if(Array.isArray(q))z=[];else{let H=Array.from(O2.keys()).filter((X)=>X!=="yaml11").map((X)=>JSON.stringify(X)).join(", ");throw Error(`Unknown schema "${$}"; use one of ${H} or define customTags array`)}if(Array.isArray(q))for(let H of q)z=z.concat(H);else if(typeof q==="function")z=q(z.slice());if(U)z=z.concat(k0.merge);return z.reduce((H,X)=>{let G=typeof X==="string"?W2[X]:X;if(!G){let J=JSON.stringify(X),Q=Object.keys(W2).map((O)=>JSON.stringify(O)).join(", ");throw Error(`Unknown custom tag ${J}; use one of ${Q}`)}if(!H.includes(G))H.push(G);return H},[])}h3.coreKnownTags=y3;h3.getTags=x3});var N$=D((l3)=>{var w$=w(),v3=Y0(),m3=V0(),p3=y0(),Nq=R2(),d3=(q,$)=>q.key<$.key?-1:q.key>$.key?1:0;class K${constructor({compat:q,customTags:$,merge:U,resolveKnownTags:Z,schema:z,sortMapEntries:H,toStringDefaults:X}){this.compat=Array.isArray(q)?Nq.getTags(q,"compat"):q?Nq.getTags(null,q):null,this.name=typeof z==="string"&&z||"core",this.knownTags=Z?Nq.coreKnownTags:{},this.tags=Nq.getTags($,this.name,U),this.toStringOptions=X??null,Object.defineProperty(this,w$.MAP,{value:v3.map}),Object.defineProperty(this,w$.SCALAR,{value:p3.string}),Object.defineProperty(this,w$.SEQ,{value:m3.seq}),this.sortMapEntries=typeof H==="function"?H:H===!0?d3:null}clone(){let q=Object.create(K$.prototype,Object.getOwnPropertyDescriptors(this));return q.tags=this.tags.slice(),q}}l3.Schema=K$});var T2=D((s3)=>{var a3=w(),b$=S0(),v0=b0();function i3(q,$){let U=[],Z=$.directives===!0;if($.directives!==!1&&q.directives){let J=q.directives.toString(q);if(J)U.push(J),Z=!0;else if(q.directives.docStart)Z=!0}if(Z)U.push("---");let z=b$.createStringifyContext(q,$),{commentString:H}=z.options;if(q.commentBefore){if(U.length!==1)U.unshift("");let J=H(q.commentBefore);U.unshift(v0.indentComment(J,""))}let X=!1,G=null;if(q.contents){if(a3.isNode(q.contents)){if(q.contents.spaceBefore&&Z)U.push("");if(q.contents.commentBefore){let O=H(q.contents.commentBefore);U.push(v0.indentComment(O,""))}z.forceBlockIndent=!!q.comment,G=q.contents.comment}let J=G?void 0:()=>X=!0,Q=b$.stringify(q.contents,z,()=>G=null,J);if(G)Q+=v0.lineComment(Q,"",H(G));if((Q[0]==="|"||Q[0]===">")&&U[U.length-1]==="---")U[U.length-1]=`--- ${Q}`;else U.push(Q)}else U.push(b$.stringify(q.contents,z));if(q.directives?.docEnd)if(q.comment){let J=H(q.comment);if(J.includes(`
55
+ `))U.push("..."),U.push(v0.indentComment(J,""));else U.push(`... ${J}`)}else U.push("...");else{let J=q.comment;if(J&&X)J=J.replace(/^\n+/,"");if(J){if((!X||G)&&U[U.length-1]!=="")U.push("");U.push(v0.indentComment(H(J),""))}}return U.join(`
56
56
  `)+`
57
- `}d3.stringifyDocument=p3});var v0=T((t3)=>{var c3=w0(),O0=$q(),g=w(),a3=a(),s3=d(),i3=w$(),r3=I2(),N$=t0(),n3=aq(),o3=K0(),b$=cq();class S${constructor(q,$,U){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,g.NODE_TYPE,{value:g.DOC});let Z=null;if(typeof $==="function"||Array.isArray($))Z=$;else if(U===void 0&&$)U=$,$=void 0;let H=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},U);this.options=H;let{version:z}=H;if(U?._directives){if(this.directives=U._directives.atDocument(),this.directives.yaml.explicit)z=this.directives.yaml.version}else this.directives=new b$.Directives({version:z});this.setSchema(z,U),this.contents=q===void 0?null:this.createNode(q,Z,U)}clone(){let q=Object.create(S$.prototype,{[g.NODE_TYPE]:{value:g.DOC}});if(q.commentBefore=this.commentBefore,q.comment=this.comment,q.errors=this.errors.slice(),q.warnings=this.warnings.slice(),q.options=Object.assign({},this.options),this.directives)q.directives=this.directives.clone();if(q.schema=this.schema.clone(),q.contents=g.isNode(this.contents)?this.contents.clone(q.schema):this.contents,this.range)q.range=this.range.slice();return q}add(q){if(L0(this.contents))this.contents.add(q)}addIn(q,$){if(L0(this.contents))this.contents.addIn(q,$)}createAlias(q,$){if(!q.anchor){let U=N$.anchorNames(this);q.anchor=!$||U.has($)?N$.findNewAnchor($||"a",U):$}return new c3.Alias(q.anchor)}createNode(q,$,U){let Z=void 0;if(typeof $==="function")q=$.call({"":q},"",q),Z=$;else if(Array.isArray($)){let V=(I)=>typeof I==="number"||I instanceof String||I instanceof Number,O=$.filter(V).map(String);if(O.length>0)$=$.concat(O);Z=$}else if(U===void 0&&$)U=$,$=void 0;let{aliasDuplicateObjects:H,anchorPrefix:z,flow:X,keepUndefined:G,onTagObj:J,tag:Q}=U??{},{onAnchor:W,setAnchors:B,sourceObjects:Y}=N$.createNodeAnchors(this,z||"a"),L={aliasDuplicateObjects:H??!0,keepUndefined:G??!1,onAnchor:W,onTagObj:J,replacer:Z,schema:this.schema,sourceObjects:Y},_=o3.createNode(q,Q,L);if(X&&g.isCollection(_))_.flow=!0;return B(),_}createPair(q,$,U={}){let Z=this.createNode(q,null,U),H=this.createNode($,null,U);return new a3.Pair(Z,H)}delete(q){return L0(this.contents)?this.contents.delete(q):!1}deleteIn(q){if(O0.isEmptyPath(q)){if(this.contents==null)return!1;return this.contents=null,!0}return L0(this.contents)?this.contents.deleteIn(q):!1}get(q,$){return g.isCollection(this.contents)?this.contents.get(q,$):void 0}getIn(q,$){if(O0.isEmptyPath(q))return!$&&g.isScalar(this.contents)?this.contents.value:this.contents;return g.isCollection(this.contents)?this.contents.getIn(q,$):void 0}has(q){return g.isCollection(this.contents)?this.contents.has(q):!1}hasIn(q){if(O0.isEmptyPath(q))return this.contents!==void 0;return g.isCollection(this.contents)?this.contents.hasIn(q):!1}set(q,$){if(this.contents==null)this.contents=O0.collectionFromPath(this.schema,[q],$);else if(L0(this.contents))this.contents.set(q,$)}setIn(q,$){if(O0.isEmptyPath(q))this.contents=$;else if(this.contents==null)this.contents=O0.collectionFromPath(this.schema,Array.from(q),$);else if(L0(this.contents))this.contents.setIn(q,$)}setSchema(q,$={}){if(typeof q==="number")q=String(q);let U;switch(q){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new b$.Directives({version:"1.1"});U={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=q;else this.directives=new b$.Directives({version:q});U={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;U=null;break;default:{let Z=JSON.stringify(q);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${Z}`)}}if($.schema instanceof Object)this.schema=$.schema;else if(U)this.schema=new i3.Schema(Object.assign(U,$));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:q,jsonArg:$,mapAsMap:U,maxAliasCount:Z,onAnchor:H,reviver:z}={}){let X={anchors:new Map,doc:this,keep:!q,mapAsMap:U===!0,mapKeyWarned:!1,maxAliasCount:typeof Z==="number"?Z:100},G=s3.toJS(this.contents,$??"",X);if(typeof H==="function")for(let{count:J,res:Q}of X.anchors.values())H(Q,J);return typeof z==="function"?n3.applyReviver(z,{"":G},"",G):G}toJSON(q,$){return this.toJS({json:!0,jsonArg:q,mapAsMap:!1,onAnchor:$})}toString(q={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in q&&(!Number.isInteger(q.indent)||Number(q.indent)<=0)){let $=JSON.stringify(q.indent);throw Error(`"indent" option must be a positive integer, not ${$}`)}return r3.stringifyDocument(this,q)}}function L0(q){if(g.isCollection(q))return!0;throw Error("Expected a YAML collection as document contents")}t3.Document=S$});var m0=T(($5)=>{class Nq extends Error{constructor(q,$,U,Z){super();this.name=q,this.code=U,this.message=Z,this.pos=$}}class R2 extends Nq{constructor(q,$,U){super("YAMLParseError",q,$,U)}}class P2 extends Nq{constructor(q,$,U){super("YAMLWarning",q,$,U)}}var q5=(q,$)=>(U)=>{if(U.pos[0]===-1)return;U.linePos=U.pos.map((G)=>$.linePos(G));let{line:Z,col:H}=U.linePos[0];U.message+=` at line ${Z}, column ${H}`;let z=H-1,X=q.substring($.lineStarts[Z-1],$.lineStarts[Z]).replace(/[\n\r]+$/,"");if(z>=60&&X.length>80){let G=Math.min(z-39,X.length-79);X="…"+X.substring(G),z-=G-1}if(X.length>80)X=X.substring(0,79)+"…";if(Z>1&&/^ *$/.test(X.substring(0,z))){let G=q.substring($.lineStarts[Z-2],$.lineStarts[Z-1]);if(G.length>80)G=G.substring(0,79)+`…
58
- `;X=G+X}if(/[^ ]/.test(X)){let G=1,J=U.linePos[1];if(J?.line===Z&&J.col>H)G=Math.max(1,Math.min(J.col-H,80-z));let Q=" ".repeat(z)+"^".repeat(G);U.message+=`:
57
+ `}s3.stringifyDocument=i3});var m0=D((Z5)=>{var n3=K0(),W0=Uq(),g=w(),o3=i(),t3=l(),e3=N$(),q5=T2(),j$=e0(),$5=sq(),U5=N0(),C$=iq();class S${constructor(q,$,U){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,g.NODE_TYPE,{value:g.DOC});let Z=null;if(typeof $==="function"||Array.isArray($))Z=$;else if(U===void 0&&$)U=$,$=void 0;let z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},U);this.options=z;let{version:H}=z;if(U?._directives){if(this.directives=U._directives.atDocument(),this.directives.yaml.explicit)H=this.directives.yaml.version}else this.directives=new C$.Directives({version:H});this.setSchema(H,U),this.contents=q===void 0?null:this.createNode(q,Z,U)}clone(){let q=Object.create(S$.prototype,{[g.NODE_TYPE]:{value:g.DOC}});if(q.commentBefore=this.commentBefore,q.comment=this.comment,q.errors=this.errors.slice(),q.warnings=this.warnings.slice(),q.options=Object.assign({},this.options),this.directives)q.directives=this.directives.clone();if(q.schema=this.schema.clone(),q.contents=g.isNode(this.contents)?this.contents.clone(q.schema):this.contents,this.range)q.range=this.range.slice();return q}add(q){if(L0(this.contents))this.contents.add(q)}addIn(q,$){if(L0(this.contents))this.contents.addIn(q,$)}createAlias(q,$){if(!q.anchor){let U=j$.anchorNames(this);q.anchor=!$||U.has($)?j$.findNewAnchor($||"a",U):$}return new n3.Alias(q.anchor)}createNode(q,$,U){let Z=void 0;if(typeof $==="function")q=$.call({"":q},"",q),Z=$;else if(Array.isArray($)){let V=(F)=>typeof F==="number"||F instanceof String||F instanceof Number,W=$.filter(V).map(String);if(W.length>0)$=$.concat(W);Z=$}else if(U===void 0&&$)U=$,$=void 0;let{aliasDuplicateObjects:z,anchorPrefix:H,flow:X,keepUndefined:G,onTagObj:J,tag:Q}=U??{},{onAnchor:O,setAnchors:B,sourceObjects:Y}=j$.createNodeAnchors(this,H||"a"),L={aliasDuplicateObjects:z??!0,keepUndefined:G??!1,onAnchor:O,onTagObj:J,replacer:Z,schema:this.schema,sourceObjects:Y},_=U5.createNode(q,Q,L);if(X&&g.isCollection(_))_.flow=!0;return B(),_}createPair(q,$,U={}){let Z=this.createNode(q,null,U),z=this.createNode($,null,U);return new o3.Pair(Z,z)}delete(q){return L0(this.contents)?this.contents.delete(q):!1}deleteIn(q){if(W0.isEmptyPath(q)){if(this.contents==null)return!1;return this.contents=null,!0}return L0(this.contents)?this.contents.deleteIn(q):!1}get(q,$){return g.isCollection(this.contents)?this.contents.get(q,$):void 0}getIn(q,$){if(W0.isEmptyPath(q))return!$&&g.isScalar(this.contents)?this.contents.value:this.contents;return g.isCollection(this.contents)?this.contents.getIn(q,$):void 0}has(q){return g.isCollection(this.contents)?this.contents.has(q):!1}hasIn(q){if(W0.isEmptyPath(q))return this.contents!==void 0;return g.isCollection(this.contents)?this.contents.hasIn(q):!1}set(q,$){if(this.contents==null)this.contents=W0.collectionFromPath(this.schema,[q],$);else if(L0(this.contents))this.contents.set(q,$)}setIn(q,$){if(W0.isEmptyPath(q))this.contents=$;else if(this.contents==null)this.contents=W0.collectionFromPath(this.schema,Array.from(q),$);else if(L0(this.contents))this.contents.setIn(q,$)}setSchema(q,$={}){if(typeof q==="number")q=String(q);let U;switch(q){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new C$.Directives({version:"1.1"});U={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=q;else this.directives=new C$.Directives({version:q});U={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;U=null;break;default:{let Z=JSON.stringify(q);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${Z}`)}}if($.schema instanceof Object)this.schema=$.schema;else if(U)this.schema=new e3.Schema(Object.assign(U,$));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:q,jsonArg:$,mapAsMap:U,maxAliasCount:Z,onAnchor:z,reviver:H}={}){let X={anchors:new Map,doc:this,keep:!q,mapAsMap:U===!0,mapKeyWarned:!1,maxAliasCount:typeof Z==="number"?Z:100},G=t3.toJS(this.contents,$??"",X);if(typeof z==="function")for(let{count:J,res:Q}of X.anchors.values())z(Q,J);return typeof H==="function"?$5.applyReviver(H,{"":G},"",G):G}toJSON(q,$){return this.toJS({json:!0,jsonArg:q,mapAsMap:!1,onAnchor:$})}toString(q={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in q&&(!Number.isInteger(q.indent)||Number(q.indent)<=0)){let $=JSON.stringify(q.indent);throw Error(`"indent" option must be a positive integer, not ${$}`)}return q5.stringifyDocument(this,q)}}function L0(q){if(g.isCollection(q))return!0;throw Error("Expected a YAML collection as document contents")}Z5.Document=S$});var p0=D((X5)=>{class bq extends Error{constructor(q,$,U,Z){super();this.name=q,this.code=U,this.message=Z,this.pos=$}}class A2 extends bq{constructor(q,$,U){super("YAMLParseError",q,$,U)}}class M2 extends bq{constructor(q,$,U){super("YAMLWarning",q,$,U)}}var H5=(q,$)=>(U)=>{if(U.pos[0]===-1)return;U.linePos=U.pos.map((G)=>$.linePos(G));let{line:Z,col:z}=U.linePos[0];U.message+=` at line ${Z}, column ${z}`;let H=z-1,X=q.substring($.lineStarts[Z-1],$.lineStarts[Z]).replace(/[\n\r]+$/,"");if(H>=60&&X.length>80){let G=Math.min(H-39,X.length-79);X="…"+X.substring(G),H-=G-1}if(X.length>80)X=X.substring(0,79)+"…";if(Z>1&&/^ *$/.test(X.substring(0,H))){let G=q.substring($.lineStarts[Z-2],$.lineStarts[Z-1]);if(G.length>80)G=G.substring(0,79)+`…
58
+ `;X=G+X}if(/[^ ]/.test(X)){let G=1,J=U.linePos[1];if(J?.line===Z&&J.col>z)G=Math.max(1,Math.min(J.col-z,80-H));let Q=" ".repeat(H)+"^".repeat(G);U.message+=`:
59
59
 
60
60
  ${X}
61
61
  ${Q}
62
- `}};$5.YAMLError=Nq;$5.YAMLParseError=R2;$5.YAMLWarning=P2;$5.prettifyError=q5});var p0=T((G5)=>{function X5(q,{flow:$,indicator:U,next:Z,offset:H,onError:z,parentIndent:X,startOnNewline:G}){let J=!1,Q=G,W=G,B="",Y="",L=!1,_=!1,V=null,O=null,I=null,R=null,P=null,F=null,A=null;for(let D of q){if(_){if(D.type!=="space"&&D.type!=="newline"&&D.type!=="comma")z(D.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");_=!1}if(V){if(Q&&D.type!=="comment"&&D.type!=="newline")z(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");V=null}switch(D.type){case"space":if(!$&&(U!=="doc-start"||Z?.type!=="flow-collection")&&D.source.includes("\t"))V=D;W=!0;break;case"comment":{if(!W)z(D,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let b=D.source.substring(1)||" ";if(!B)B=b;else B+=Y+b;Y="",Q=!1;break}case"newline":if(Q){if(B)B+=D.source;else if(!F||U!=="seq-item-ind")J=!0}else Y+=D.source;if(Q=!0,L=!0,O||I)R=D;W=!0;break;case"anchor":if(O)z(D,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(D.source.endsWith(":"))z(D.offset+D.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);O=D,A??(A=D.offset),Q=!1,W=!1,_=!0;break;case"tag":{if(I)z(D,"MULTIPLE_TAGS","A node can have at most one tag");I=D,A??(A=D.offset),Q=!1,W=!1,_=!0;break}case U:if(O||I)z(D,"BAD_PROP_ORDER",`Anchors and tags must be after the ${D.source} indicator`);if(F)z(D,"UNEXPECTED_TOKEN",`Unexpected ${D.source} in ${$??"collection"}`);F=D,Q=U==="seq-item-ind"||U==="explicit-key-ind",W=!1;break;case"comma":if($){if(P)z(D,"UNEXPECTED_TOKEN",`Unexpected , in ${$}`);P=D,Q=!1,W=!1;break}default:z(D,"UNEXPECTED_TOKEN",`Unexpected ${D.type} token`),Q=!1,W=!1}}let M=q[q.length-1],K=M?M.offset+M.source.length:H;if(_&&Z&&Z.type!=="space"&&Z.type!=="newline"&&Z.type!=="comma"&&(Z.type!=="scalar"||Z.source!==""))z(Z.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(V&&(Q&&V.indent<=X||Z?.type==="block-map"||Z?.type==="block-seq"))z(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:P,found:F,spaceBefore:J,comment:B,hasNewline:L,anchor:O,tag:I,newlineAfterProp:R,end:K,start:A??K}}G5.resolveProps=X5});var bq=T((Q5)=>{function j$(q){if(!q)return null;switch(q.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(q.source.includes(`
63
- `))return!0;if(q.end){for(let $ of q.end)if($.type==="newline")return!0}return!1;case"flow-collection":for(let $ of q.items){for(let U of $.start)if(U.type==="newline")return!0;if($.sep){for(let U of $.sep)if(U.type==="newline")return!0}if(j$($.key)||j$($.value))return!0}return!1;default:return!0}}Q5.containsNewline=j$});var C$=T((W5)=>{var Y5=bq();function V5(q,$,U){if($?.type==="flow-collection"){let Z=$.end[0];if(Z.indent===q&&(Z.source==="]"||Z.source==="}")&&Y5.containsNewline($))U(Z,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}W5.flowIndentCheck=V5});var E$=T((T5)=>{var F2=w();function L5(q,$,U){let{uniqueKeys:Z}=q.options;if(Z===!1)return!1;let H=typeof Z==="function"?Z:(z,X)=>z===X||F2.isScalar(z)&&F2.isScalar(X)&&z.value===X.value;return $.some((z)=>H(z.key,U))}T5.mapIncludes=L5});var N2=T((F5)=>{var A2=a(),D5=i(),M2=p0(),I5=bq(),w2=C$(),R5=E$(),K2="All mapping items must start at the same column";function P5({composeNode:q,composeEmptyNode:$},U,Z,H,z){let G=new(z?.nodeClass??D5.YAMLMap)(U.schema);if(U.atRoot)U.atRoot=!1;let J=Z.offset,Q=null;for(let W of Z.items){let{start:B,key:Y,sep:L,value:_}=W,V=M2.resolveProps(B,{indicator:"explicit-key-ind",next:Y??L?.[0],offset:J,onError:H,parentIndent:Z.indent,startOnNewline:!0}),O=!V.found;if(O){if(Y){if(Y.type==="block-seq")H(J,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in Y&&Y.indent!==Z.indent)H(J,"BAD_INDENT",K2)}if(!V.anchor&&!V.tag&&!L){if(Q=V.end,V.comment)if(G.comment)G.comment+=`
64
- `+V.comment;else G.comment=V.comment;continue}if(V.newlineAfterProp||I5.containsNewline(Y))H(Y??B[B.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(V.found?.indent!==Z.indent)H(J,"BAD_INDENT",K2);U.atKey=!0;let I=V.end,R=Y?q(U,Y,V,H):$(U,I,B,null,V,H);if(U.schema.compat)w2.flowIndentCheck(Z.indent,Y,H);if(U.atKey=!1,R5.mapIncludes(U,G.items,R))H(I,"DUPLICATE_KEY","Map keys must be unique");let P=M2.resolveProps(L??[],{indicator:"map-value-ind",next:_,offset:R.range[2],onError:H,parentIndent:Z.indent,startOnNewline:!Y||Y.type==="block-scalar"});if(J=P.end,P.found){if(O){if(_?.type==="block-map"&&!P.hasNewline)H(J,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(U.options.strict&&V.start<P.found.offset-1024)H(R.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let F=_?q(U,_,P,H):$(U,J,L,null,P,H);if(U.schema.compat)w2.flowIndentCheck(Z.indent,_,H);J=F.range[2];let A=new A2.Pair(R,F);if(U.options.keepSourceTokens)A.srcToken=W;G.items.push(A)}else{if(O)H(R.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(P.comment)if(R.comment)R.comment+=`
65
- `+P.comment;else R.comment=P.comment;let F=new A2.Pair(R);if(U.options.keepSourceTokens)F.srcToken=W;G.items.push(F)}}if(Q&&Q<J)H(Q,"IMPOSSIBLE","Map comment with trailing content");return G.range=[Z.offset,J,Q??J],G}F5.resolveBlockMap=P5});var b2=T((b5)=>{var M5=r(),w5=p0(),K5=C$();function N5({composeNode:q,composeEmptyNode:$},U,Z,H,z){let G=new(z?.nodeClass??M5.YAMLSeq)(U.schema);if(U.atRoot)U.atRoot=!1;if(U.atKey)U.atKey=!1;let J=Z.offset,Q=null;for(let{start:W,value:B}of Z.items){let Y=w5.resolveProps(W,{indicator:"seq-item-ind",next:B,offset:J,onError:H,parentIndent:Z.indent,startOnNewline:!0});if(!Y.found)if(Y.anchor||Y.tag||B)if(B?.type==="block-seq")H(Y.end,"BAD_INDENT","All sequence items must start at the same column");else H(J,"MISSING_CHAR","Sequence item without - indicator");else{if(Q=Y.end,Y.comment)G.comment=Y.comment;continue}let L=B?q(U,B,Y,H):$(U,Y.end,W,null,Y,H);if(U.schema.compat)K5.flowIndentCheck(Z.indent,B,H);J=L.range[2],G.items.push(L)}return G.range=[Z.offset,J,Q??J],G}b5.resolveBlockSeq=N5});var T0=T((C5)=>{function j5(q,$,U,Z){let H="";if(q){let z=!1,X="";for(let G of q){let{source:J,type:Q}=G;switch(Q){case"space":z=!0;break;case"comment":{if(U&&!z)Z(G,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let W=J.substring(1)||" ";if(!H)H=W;else H+=X+W;X="";break}case"newline":if(H)X+=J;z=!0;break;default:Z(G,"UNEXPECTED_TOKEN",`Unexpected ${Q} at node end`)}$+=J.length}}return{comment:H,offset:$}}C5.resolveEnd=j5});var C2=T((v5)=>{var g5=w(),f5=a(),S2=i(),y5=r(),x5=T0(),j2=p0(),h5=bq(),u5=E$(),g$="Block collections are not allowed within flow collections",f$=(q)=>q&&(q.type==="block-map"||q.type==="block-seq");function k5({composeNode:q,composeEmptyNode:$},U,Z,H,z){let X=Z.start.source==="{",G=X?"flow map":"flow sequence",Q=new(z?.nodeClass??(X?S2.YAMLMap:y5.YAMLSeq))(U.schema);Q.flow=!0;let W=U.atRoot;if(W)U.atRoot=!1;if(U.atKey)U.atKey=!1;let B=Z.offset+Z.start.source.length;for(let O=0;O<Z.items.length;++O){let I=Z.items[O],{start:R,key:P,sep:F,value:A}=I,M=j2.resolveProps(R,{flow:G,indicator:"explicit-key-ind",next:P??F?.[0],offset:B,onError:H,parentIndent:Z.indent,startOnNewline:!1});if(!M.found){if(!M.anchor&&!M.tag&&!F&&!A){if(O===0&&M.comma)H(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${G}`);else if(O<Z.items.length-1)H(M.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${G}`);if(M.comment)if(Q.comment)Q.comment+=`
66
- `+M.comment;else Q.comment=M.comment;B=M.end;continue}if(!X&&U.options.strict&&h5.containsNewline(P))H(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(O===0){if(M.comma)H(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${G}`)}else{if(!M.comma)H(M.start,"MISSING_CHAR",`Missing , between ${G} items`);if(M.comment){let K="";q:for(let D of R)switch(D.type){case"comma":case"space":break;case"comment":K=D.source.substring(1);break q;default:break q}if(K){let D=Q.items[Q.items.length-1];if(g5.isPair(D))D=D.value??D.key;if(D.comment)D.comment+=`
67
- `+K;else D.comment=K;M.comment=M.comment.substring(K.length+1)}}}if(!X&&!F&&!M.found){let K=A?q(U,A,M,H):$(U,M.end,F,null,M,H);if(Q.items.push(K),B=K.range[2],f$(A))H(K.range,"BLOCK_IN_FLOW",g$)}else{U.atKey=!0;let K=M.end,D=P?q(U,P,M,H):$(U,K,R,null,M,H);if(f$(P))H(D.range,"BLOCK_IN_FLOW",g$);U.atKey=!1;let b=j2.resolveProps(F??[],{flow:G,indicator:"map-value-ind",next:A,offset:D.range[2],onError:H,parentIndent:Z.indent,startOnNewline:!1});if(b.found){if(!X&&!M.found&&U.options.strict){if(F)for(let S of F){if(S===b.found)break;if(S.type==="newline"){H(S,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(M.start<b.found.offset-1024)H(b.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(A)if("source"in A&&A.source?.[0]===":")H(A,"MISSING_CHAR",`Missing space after : in ${G}`);else H(b.start,"MISSING_CHAR",`Missing , or : between ${G} items`);let m=A?q(U,A,b,H):b.found?$(U,b.end,F,null,b,H):null;if(m){if(f$(A))H(m.range,"BLOCK_IN_FLOW",g$)}else if(b.comment)if(D.comment)D.comment+=`
68
- `+b.comment;else D.comment=b.comment;let X0=new f5.Pair(D,m);if(U.options.keepSourceTokens)X0.srcToken=I;if(X){let S=Q;if(u5.mapIncludes(U,S.items,D))H(K,"DUPLICATE_KEY","Map keys must be unique");S.items.push(X0)}else{let S=new S2.YAMLMap(U.schema);S.flow=!0,S.items.push(X0);let $U=(m??D).range;S.range=[D.range[0],$U[1],$U[2]],Q.items.push(S)}B=m?m.range[2]:b.end}}let Y=X?"}":"]",[L,..._]=Z.end,V=B;if(L?.source===Y)V=L.offset+L.source.length;else{let O=G[0].toUpperCase()+G.substring(1),I=W?`${O} must end with a ${Y}`:`${O} in block collection must be sufficiently indented and end with a ${Y}`;if(H(B,W?"MISSING_CHAR":"BAD_INDENT",I),L&&L.source.length!==1)_.unshift(L)}if(_.length>0){let O=x5.resolveEnd(_,V,U.options.strict,H);if(O.comment)if(Q.comment)Q.comment+=`
69
- `+O.comment;else Q.comment=O.comment;Q.range=[Z.offset,V,O.offset]}else Q.range=[Z.offset,V,V];return Q}v5.resolveFlowCollection=k5});var E2=T((n5)=>{var p5=w(),d5=N(),l5=i(),c5=r(),a5=N2(),s5=b2(),i5=C2();function y$(q,$,U,Z,H,z){let X=U.type==="block-map"?a5.resolveBlockMap(q,$,U,Z,z):U.type==="block-seq"?s5.resolveBlockSeq(q,$,U,Z,z):i5.resolveFlowCollection(q,$,U,Z,z),G=X.constructor;if(H==="!"||H===G.tagName)return X.tag=G.tagName,X;if(H)X.tag=H;return X}function r5(q,$,U,Z,H){let z=Z.tag,X=!z?null:$.directives.tagName(z.source,(Y)=>H(z,"TAG_RESOLVE_FAILED",Y));if(U.type==="block-seq"){let{anchor:Y,newlineAfterProp:L}=Z,_=Y&&z?Y.offset>z.offset?Y:z:Y??z;if(_&&(!L||L.offset<_.offset))H(_,"MISSING_CHAR","Missing newline after block sequence props")}let G=U.type==="block-map"?"map":U.type==="block-seq"?"seq":U.start.source==="{"?"map":"seq";if(!z||!X||X==="!"||X===l5.YAMLMap.tagName&&G==="map"||X===c5.YAMLSeq.tagName&&G==="seq")return y$(q,$,U,H,X);let J=$.schema.tags.find((Y)=>Y.tag===X&&Y.collection===G);if(!J){let Y=$.schema.knownTags[X];if(Y?.collection===G)$.schema.tags.push(Object.assign({},Y,{default:!1})),J=Y;else{if(Y)H(z,"BAD_COLLECTION_TYPE",`${Y.tag} used for ${G} collection, but expects ${Y.collection??"scalar"}`,!0);else H(z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${X}`,!0);return y$(q,$,U,H,X)}}let Q=y$(q,$,U,H,X,J),W=J.resolve?.(Q,(Y)=>H(z,"TAG_RESOLVE_FAILED",Y),$.options)??Q,B=p5.isNode(W)?W:new d5.Scalar(W);if(B.range=Q.range,B.tag=X,J?.format)B.format=J.format;return B}n5.composeCollection=r5});var h$=T(($H)=>{var x$=N();function t5(q,$,U){let Z=$.offset,H=e5($,q.options.strict,U);if(!H)return{value:"",type:null,comment:"",range:[Z,Z,Z]};let z=H.mode===">"?x$.Scalar.BLOCK_FOLDED:x$.Scalar.BLOCK_LITERAL,X=$.source?qH($.source):[],G=X.length;for(let V=X.length-1;V>=0;--V){let O=X[V][1];if(O===""||O==="\r")G=V;else break}if(G===0){let V=H.chomp==="+"&&X.length>0?`
70
- `.repeat(Math.max(1,X.length-1)):"",O=Z+H.length;if($.source)O+=$.source.length;return{value:V,type:z,comment:H.comment,range:[Z,O,O]}}let J=$.indent+H.indent,Q=$.offset+H.length,W=0;for(let V=0;V<G;++V){let[O,I]=X[V];if(I===""||I==="\r"){if(H.indent===0&&O.length>J)J=O.length}else{if(O.length<J)U(Q+O.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(H.indent===0)J=O.length;if(W=V,J===0&&!q.atRoot)U(Q,"BAD_INDENT","Block scalar values in collections must be indented");break}Q+=O.length+I.length+1}for(let V=X.length-1;V>=G;--V)if(X[V][0].length>J)G=V+1;let B="",Y="",L=!1;for(let V=0;V<W;++V)B+=X[V][0].slice(J)+`
71
- `;for(let V=W;V<G;++V){let[O,I]=X[V];Q+=O.length+I.length+1;let R=I[I.length-1]==="\r";if(R)I=I.slice(0,-1);if(I&&O.length<J){let F=`Block scalar lines must not be less indented than their ${H.indent?"explicit indentation indicator":"first line"}`;U(Q-I.length-(R?2:1),"BAD_INDENT",F),O=""}if(z===x$.Scalar.BLOCK_LITERAL)B+=Y+O.slice(J)+I,Y=`
72
- `;else if(O.length>J||I[0]==="\t"){if(Y===" ")Y=`
62
+ `}};X5.YAMLError=bq;X5.YAMLParseError=A2;X5.YAMLWarning=M2;X5.prettifyError=H5});var d0=D((V5)=>{function Y5(q,{flow:$,indicator:U,next:Z,offset:z,onError:H,parentIndent:X,startOnNewline:G}){let J=!1,Q=G,O=G,B="",Y="",L=!1,_=!1,V=null,W=null,F=null,I=null,R=null,T=null,A=null;for(let P of q){if(_){if(P.type!=="space"&&P.type!=="newline"&&P.type!=="comma")H(P.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");_=!1}if(V){if(Q&&P.type!=="comment"&&P.type!=="newline")H(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");V=null}switch(P.type){case"space":if(!$&&(U!=="doc-start"||Z?.type!=="flow-collection")&&P.source.includes("\t"))V=P;O=!0;break;case"comment":{if(!O)H(P,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let b=P.source.substring(1)||" ";if(!B)B=b;else B+=Y+b;Y="",Q=!1;break}case"newline":if(Q){if(B)B+=P.source;else if(!T||U!=="seq-item-ind")J=!0}else Y+=P.source;if(Q=!0,L=!0,W||F)I=P;O=!0;break;case"anchor":if(W)H(P,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(P.source.endsWith(":"))H(P.offset+P.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);W=P,A??(A=P.offset),Q=!1,O=!1,_=!0;break;case"tag":{if(F)H(P,"MULTIPLE_TAGS","A node can have at most one tag");F=P,A??(A=P.offset),Q=!1,O=!1,_=!0;break}case U:if(W||F)H(P,"BAD_PROP_ORDER",`Anchors and tags must be after the ${P.source} indicator`);if(T)H(P,"UNEXPECTED_TOKEN",`Unexpected ${P.source} in ${$??"collection"}`);T=P,Q=U==="seq-item-ind"||U==="explicit-key-ind",O=!1;break;case"comma":if($){if(R)H(P,"UNEXPECTED_TOKEN",`Unexpected , in ${$}`);R=P,Q=!1,O=!1;break}default:H(P,"UNEXPECTED_TOKEN",`Unexpected ${P.type} token`),Q=!1,O=!1}}let M=q[q.length-1],K=M?M.offset+M.source.length:z;if(_&&Z&&Z.type!=="space"&&Z.type!=="newline"&&Z.type!=="comma"&&(Z.type!=="scalar"||Z.source!==""))H(Z.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(V&&(Q&&V.indent<=X||Z?.type==="block-map"||Z?.type==="block-seq"))H(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:R,found:T,spaceBefore:J,comment:B,hasNewline:L,anchor:W,tag:F,newlineAfterProp:I,end:K,start:A??K}}V5.resolveProps=Y5});var jq=D((W5)=>{function E$(q){if(!q)return null;switch(q.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(q.source.includes(`
63
+ `))return!0;if(q.end){for(let $ of q.end)if($.type==="newline")return!0}return!1;case"flow-collection":for(let $ of q.items){for(let U of $.start)if(U.type==="newline")return!0;if($.sep){for(let U of $.sep)if(U.type==="newline")return!0}if(E$($.key)||E$($.value))return!0}return!1;default:return!0}}W5.containsNewline=E$});var g$=D((P5)=>{var D5=jq();function _5(q,$,U){if($?.type==="flow-collection"){let Z=$.end[0];if(Z.indent===q&&(Z.source==="]"||Z.source==="}")&&D5.containsNewline($))U(Z,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}P5.flowIndentCheck=_5});var f$=D((R5)=>{var w2=w();function I5(q,$,U){let{uniqueKeys:Z}=q.options;if(Z===!1)return!1;let z=typeof Z==="function"?Z:(H,X)=>H===X||w2.isScalar(H)&&w2.isScalar(X)&&H.value===X.value;return $.some((H)=>z(H.key,U))}R5.mapIncludes=I5});var C2=D((N5)=>{var K2=i(),A5=r(),N2=d0(),M5=jq(),b2=g$(),w5=f$(),j2="All mapping items must start at the same column";function K5({composeNode:q,composeEmptyNode:$},U,Z,z,H){let G=new(H?.nodeClass??A5.YAMLMap)(U.schema);if(U.atRoot)U.atRoot=!1;let J=Z.offset,Q=null;for(let O of Z.items){let{start:B,key:Y,sep:L,value:_}=O,V=N2.resolveProps(B,{indicator:"explicit-key-ind",next:Y??L?.[0],offset:J,onError:z,parentIndent:Z.indent,startOnNewline:!0}),W=!V.found;if(W){if(Y){if(Y.type==="block-seq")z(J,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in Y&&Y.indent!==Z.indent)z(J,"BAD_INDENT",j2)}if(!V.anchor&&!V.tag&&!L){if(Q=V.end,V.comment)if(G.comment)G.comment+=`
64
+ `+V.comment;else G.comment=V.comment;continue}if(V.newlineAfterProp||M5.containsNewline(Y))z(Y??B[B.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(V.found?.indent!==Z.indent)z(J,"BAD_INDENT",j2);U.atKey=!0;let F=V.end,I=Y?q(U,Y,V,z):$(U,F,B,null,V,z);if(U.schema.compat)b2.flowIndentCheck(Z.indent,Y,z);if(U.atKey=!1,w5.mapIncludes(U,G.items,I))z(F,"DUPLICATE_KEY","Map keys must be unique");let R=N2.resolveProps(L??[],{indicator:"map-value-ind",next:_,offset:I.range[2],onError:z,parentIndent:Z.indent,startOnNewline:!Y||Y.type==="block-scalar"});if(J=R.end,R.found){if(W){if(_?.type==="block-map"&&!R.hasNewline)z(J,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(U.options.strict&&V.start<R.found.offset-1024)z(I.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let T=_?q(U,_,R,z):$(U,J,L,null,R,z);if(U.schema.compat)b2.flowIndentCheck(Z.indent,_,z);J=T.range[2];let A=new K2.Pair(I,T);if(U.options.keepSourceTokens)A.srcToken=O;G.items.push(A)}else{if(W)z(I.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(R.comment)if(I.comment)I.comment+=`
65
+ `+R.comment;else I.comment=R.comment;let T=new K2.Pair(I);if(U.options.keepSourceTokens)T.srcToken=O;G.items.push(T)}}if(Q&&Q<J)z(Q,"IMPOSSIBLE","Map comment with trailing content");return G.range=[Z.offset,J,Q??J],G}N5.resolveBlockMap=K5});var S2=D((g5)=>{var j5=n(),C5=d0(),S5=g$();function E5({composeNode:q,composeEmptyNode:$},U,Z,z,H){let G=new(H?.nodeClass??j5.YAMLSeq)(U.schema);if(U.atRoot)U.atRoot=!1;if(U.atKey)U.atKey=!1;let J=Z.offset,Q=null;for(let{start:O,value:B}of Z.items){let Y=C5.resolveProps(O,{indicator:"seq-item-ind",next:B,offset:J,onError:z,parentIndent:Z.indent,startOnNewline:!0});if(!Y.found)if(Y.anchor||Y.tag||B)if(B?.type==="block-seq")z(Y.end,"BAD_INDENT","All sequence items must start at the same column");else z(J,"MISSING_CHAR","Sequence item without - indicator");else{if(Q=Y.end,Y.comment)G.comment=Y.comment;continue}let L=B?q(U,B,Y,z):$(U,Y.end,O,null,Y,z);if(U.schema.compat)S5.flowIndentCheck(Z.indent,B,z);J=L.range[2],G.items.push(L)}return G.range=[Z.offset,J,Q??J],G}g5.resolveBlockSeq=E5});var D0=D((x5)=>{function y5(q,$,U,Z){let z="";if(q){let H=!1,X="";for(let G of q){let{source:J,type:Q}=G;switch(Q){case"space":H=!0;break;case"comment":{if(U&&!H)Z(G,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let O=J.substring(1)||" ";if(!z)z=O;else z+=X+O;X="";break}case"newline":if(z)X+=J;H=!0;break;default:Z(G,"UNEXPECTED_TOKEN",`Unexpected ${Q} at node end`)}$+=J.length}}return{comment:z,offset:$}}x5.resolveEnd=y5});var f2=D((c5)=>{var u5=w(),k5=i(),E2=r(),v5=n(),m5=D0(),g2=d0(),p5=jq(),d5=f$(),y$="Block collections are not allowed within flow collections",x$=(q)=>q&&(q.type==="block-map"||q.type==="block-seq");function l5({composeNode:q,composeEmptyNode:$},U,Z,z,H){let X=Z.start.source==="{",G=X?"flow map":"flow sequence",Q=new(H?.nodeClass??(X?E2.YAMLMap:v5.YAMLSeq))(U.schema);Q.flow=!0;let O=U.atRoot;if(O)U.atRoot=!1;if(U.atKey)U.atKey=!1;let B=Z.offset+Z.start.source.length;for(let W=0;W<Z.items.length;++W){let F=Z.items[W],{start:I,key:R,sep:T,value:A}=F,M=g2.resolveProps(I,{flow:G,indicator:"explicit-key-ind",next:R??T?.[0],offset:B,onError:z,parentIndent:Z.indent,startOnNewline:!1});if(!M.found){if(!M.anchor&&!M.tag&&!T&&!A){if(W===0&&M.comma)z(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${G}`);else if(W<Z.items.length-1)z(M.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${G}`);if(M.comment)if(Q.comment)Q.comment+=`
66
+ `+M.comment;else Q.comment=M.comment;B=M.end;continue}if(!X&&U.options.strict&&p5.containsNewline(R))z(R,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(W===0){if(M.comma)z(M.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${G}`)}else{if(!M.comma)z(M.start,"MISSING_CHAR",`Missing , between ${G} items`);if(M.comment){let K="";q:for(let P of I)switch(P.type){case"comma":case"space":break;case"comment":K=P.source.substring(1);break q;default:break q}if(K){let P=Q.items[Q.items.length-1];if(u5.isPair(P))P=P.value??P.key;if(P.comment)P.comment+=`
67
+ `+K;else P.comment=K;M.comment=M.comment.substring(K.length+1)}}}if(!X&&!T&&!M.found){let K=A?q(U,A,M,z):$(U,M.end,T,null,M,z);if(Q.items.push(K),B=K.range[2],x$(A))z(K.range,"BLOCK_IN_FLOW",y$)}else{U.atKey=!0;let K=M.end,P=R?q(U,R,M,z):$(U,K,I,null,M,z);if(x$(R))z(P.range,"BLOCK_IN_FLOW",y$);U.atKey=!1;let b=g2.resolveProps(T??[],{flow:G,indicator:"map-value-ind",next:A,offset:P.range[2],onError:z,parentIndent:Z.indent,startOnNewline:!1});if(b.found){if(!X&&!M.found&&U.options.strict){if(T)for(let j of T){if(j===b.found)break;if(j.type==="newline"){z(j,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(M.start<b.found.offset-1024)z(b.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(A)if("source"in A&&A.source?.[0]===":")z(A,"MISSING_CHAR",`Missing space after : in ${G}`);else z(b.start,"MISSING_CHAR",`Missing , or : between ${G} items`);let p=A?q(U,A,b,z):b.found?$(U,b.end,T,null,b,z):null;if(p){if(x$(A))z(p.range,"BLOCK_IN_FLOW",y$)}else if(b.comment)if(P.comment)P.comment+=`
68
+ `+b.comment;else P.comment=b.comment;let X0=new k5.Pair(P,p);if(U.options.keepSourceTokens)X0.srcToken=F;if(X){let j=Q;if(d5.mapIncludes(U,j.items,P))z(K,"DUPLICATE_KEY","Map keys must be unique");j.items.push(X0)}else{let j=new E2.YAMLMap(U.schema);j.flow=!0,j.items.push(X0);let zU=(p??P).range;j.range=[P.range[0],zU[1],zU[2]],Q.items.push(j)}B=p?p.range[2]:b.end}}let Y=X?"}":"]",[L,..._]=Z.end,V=B;if(L?.source===Y)V=L.offset+L.source.length;else{let W=G[0].toUpperCase()+G.substring(1),F=O?`${W} must end with a ${Y}`:`${W} in block collection must be sufficiently indented and end with a ${Y}`;if(z(B,O?"MISSING_CHAR":"BAD_INDENT",F),L&&L.source.length!==1)_.unshift(L)}if(_.length>0){let W=m5.resolveEnd(_,V,U.options.strict,z);if(W.comment)if(Q.comment)Q.comment+=`
69
+ `+W.comment;else Q.comment=W.comment;Q.range=[Z.offset,V,W.offset]}else Q.range=[Z.offset,V,V];return Q}c5.resolveFlowCollection=l5});var y2=D(($1)=>{var i5=w(),s5=N(),r5=r(),n5=n(),o5=C2(),t5=S2(),e5=f2();function h$(q,$,U,Z,z,H){let X=U.type==="block-map"?o5.resolveBlockMap(q,$,U,Z,H):U.type==="block-seq"?t5.resolveBlockSeq(q,$,U,Z,H):e5.resolveFlowCollection(q,$,U,Z,H),G=X.constructor;if(z==="!"||z===G.tagName)return X.tag=G.tagName,X;if(z)X.tag=z;return X}function q1(q,$,U,Z,z){let H=Z.tag,X=!H?null:$.directives.tagName(H.source,(Y)=>z(H,"TAG_RESOLVE_FAILED",Y));if(U.type==="block-seq"){let{anchor:Y,newlineAfterProp:L}=Z,_=Y&&H?Y.offset>H.offset?Y:H:Y??H;if(_&&(!L||L.offset<_.offset))z(_,"MISSING_CHAR","Missing newline after block sequence props")}let G=U.type==="block-map"?"map":U.type==="block-seq"?"seq":U.start.source==="{"?"map":"seq";if(!H||!X||X==="!"||X===r5.YAMLMap.tagName&&G==="map"||X===n5.YAMLSeq.tagName&&G==="seq")return h$(q,$,U,z,X);let J=$.schema.tags.find((Y)=>Y.tag===X&&Y.collection===G);if(!J){let Y=$.schema.knownTags[X];if(Y?.collection===G)$.schema.tags.push(Object.assign({},Y,{default:!1})),J=Y;else{if(Y)z(H,"BAD_COLLECTION_TYPE",`${Y.tag} used for ${G} collection, but expects ${Y.collection??"scalar"}`,!0);else z(H,"TAG_RESOLVE_FAILED",`Unresolved tag: ${X}`,!0);return h$(q,$,U,z,X)}}let Q=h$(q,$,U,z,X,J),O=J.resolve?.(Q,(Y)=>z(H,"TAG_RESOLVE_FAILED",Y),$.options)??Q,B=i5.isNode(O)?O:new s5.Scalar(O);if(B.range=Q.range,B.tag=X,J?.format)B.format=J.format;return B}$1.composeCollection=q1});var k$=D((X1)=>{var u$=N();function Z1(q,$,U){let Z=$.offset,z=z1($,q.options.strict,U);if(!z)return{value:"",type:null,comment:"",range:[Z,Z,Z]};let H=z.mode===">"?u$.Scalar.BLOCK_FOLDED:u$.Scalar.BLOCK_LITERAL,X=$.source?H1($.source):[],G=X.length;for(let V=X.length-1;V>=0;--V){let W=X[V][1];if(W===""||W==="\r")G=V;else break}if(G===0){let V=z.chomp==="+"&&X.length>0?`
70
+ `.repeat(Math.max(1,X.length-1)):"",W=Z+z.length;if($.source)W+=$.source.length;return{value:V,type:H,comment:z.comment,range:[Z,W,W]}}let J=$.indent+z.indent,Q=$.offset+z.length,O=0;for(let V=0;V<G;++V){let[W,F]=X[V];if(F===""||F==="\r"){if(z.indent===0&&W.length>J)J=W.length}else{if(W.length<J)U(Q+W.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(z.indent===0)J=W.length;if(O=V,J===0&&!q.atRoot)U(Q,"BAD_INDENT","Block scalar values in collections must be indented");break}Q+=W.length+F.length+1}for(let V=X.length-1;V>=G;--V)if(X[V][0].length>J)G=V+1;let B="",Y="",L=!1;for(let V=0;V<O;++V)B+=X[V][0].slice(J)+`
71
+ `;for(let V=O;V<G;++V){let[W,F]=X[V];Q+=W.length+F.length+1;let I=F[F.length-1]==="\r";if(I)F=F.slice(0,-1);if(F&&W.length<J){let T=`Block scalar lines must not be less indented than their ${z.indent?"explicit indentation indicator":"first line"}`;U(Q-F.length-(I?2:1),"BAD_INDENT",T),W=""}if(H===u$.Scalar.BLOCK_LITERAL)B+=Y+W.slice(J)+F,Y=`
72
+ `;else if(W.length>J||F[0]==="\t"){if(Y===" ")Y=`
73
73
  `;else if(!L&&Y===`
74
74
  `)Y=`
75
75
 
76
- `;B+=Y+O.slice(J)+I,Y=`
77
- `,L=!0}else if(I==="")if(Y===`
76
+ `;B+=Y+W.slice(J)+F,Y=`
77
+ `,L=!0}else if(F==="")if(Y===`
78
78
  `)B+=`
79
79
  `;else Y=`
80
- `;else B+=Y+I,Y=" ",L=!1}switch(H.chomp){case"-":break;case"+":for(let V=G;V<X.length;++V)B+=`
80
+ `;else B+=Y+F,Y=" ",L=!1}switch(z.chomp){case"-":break;case"+":for(let V=G;V<X.length;++V)B+=`
81
81
  `+X[V][0].slice(J);if(B[B.length-1]!==`
82
82
  `)B+=`
83
83
  `;break;default:B+=`
84
- `}let _=Z+H.length+$.source.length;return{value:B,type:z,comment:H.comment,range:[Z,_,_]}}function e5({offset:q,props:$},U,Z){if($[0].type!=="block-scalar-header")return Z($[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:H}=$[0],z=H[0],X=0,G="",J=-1;for(let Y=1;Y<H.length;++Y){let L=H[Y];if(!G&&(L==="-"||L==="+"))G=L;else{let _=Number(L);if(!X&&_)X=_;else if(J===-1)J=q+Y}}if(J!==-1)Z(J,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${H}`);let Q=!1,W="",B=H.length;for(let Y=1;Y<$.length;++Y){let L=$[Y];switch(L.type){case"space":Q=!0;case"newline":B+=L.source.length;break;case"comment":if(U&&!Q)Z(L,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");B+=L.source.length,W=L.source.substring(1);break;case"error":Z(L,"UNEXPECTED_TOKEN",L.message),B+=L.source.length;break;default:{let _=`Unexpected token in block scalar header: ${L.type}`;Z(L,"UNEXPECTED_TOKEN",_);let V=L.source;if(V&&typeof V==="string")B+=V.length}}}return{mode:z,indent:X,chomp:G,comment:W,length:B}}function qH(q){let $=q.split(/\n( *)/),U=$[0],Z=U.match(/^( *)/),z=[Z?.[1]?[Z[1],U.slice(Z[1].length)]:["",U]];for(let X=1;X<$.length;X+=2)z.push([$[X],$[X+1]]);return z}$H.resolveBlockScalar=t5});var k$=T((YH)=>{var u$=N(),ZH=T0();function HH(q,$,U){let{offset:Z,type:H,source:z,end:X}=q,G,J,Q=(Y,L,_)=>U(Z+Y,L,_);switch(H){case"scalar":G=u$.Scalar.PLAIN,J=zH(z,Q);break;case"single-quoted-scalar":G=u$.Scalar.QUOTE_SINGLE,J=XH(z,Q);break;case"double-quoted-scalar":G=u$.Scalar.QUOTE_DOUBLE,J=GH(z,Q);break;default:return U(q,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${H}`),{value:"",type:null,comment:"",range:[Z,Z+z.length,Z+z.length]}}let W=Z+z.length,B=ZH.resolveEnd(X,W,$,U);return{value:J,type:G,comment:B.comment,range:[Z,W,B.offset]}}function zH(q,$){let U="";switch(q[0]){case"\t":U="a tab character";break;case",":U="flow indicator character ,";break;case"%":U="directive indicator character %";break;case"|":case">":{U=`block scalar indicator ${q[0]}`;break}case"@":case"`":{U=`reserved character ${q[0]}`;break}}if(U)$(0,"BAD_SCALAR_START",`Plain value cannot start with ${U}`);return g2(q)}function XH(q,$){if(q[q.length-1]!=="'"||q.length===1)$(q.length,"MISSING_CHAR","Missing closing 'quote");return g2(q.slice(1,-1)).replace(/''/g,"'")}function g2(q){let $,U;try{$=new RegExp(`(.*?)(?<![ ])[ ]*\r?
84
+ `}let _=Z+z.length+$.source.length;return{value:B,type:H,comment:z.comment,range:[Z,_,_]}}function z1({offset:q,props:$},U,Z){if($[0].type!=="block-scalar-header")return Z($[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:z}=$[0],H=z[0],X=0,G="",J=-1;for(let Y=1;Y<z.length;++Y){let L=z[Y];if(!G&&(L==="-"||L==="+"))G=L;else{let _=Number(L);if(!X&&_)X=_;else if(J===-1)J=q+Y}}if(J!==-1)Z(J,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${z}`);let Q=!1,O="",B=z.length;for(let Y=1;Y<$.length;++Y){let L=$[Y];switch(L.type){case"space":Q=!0;case"newline":B+=L.source.length;break;case"comment":if(U&&!Q)Z(L,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");B+=L.source.length,O=L.source.substring(1);break;case"error":Z(L,"UNEXPECTED_TOKEN",L.message),B+=L.source.length;break;default:{let _=`Unexpected token in block scalar header: ${L.type}`;Z(L,"UNEXPECTED_TOKEN",_);let V=L.source;if(V&&typeof V==="string")B+=V.length}}}return{mode:H,indent:X,chomp:G,comment:O,length:B}}function H1(q){let $=q.split(/\n( *)/),U=$[0],Z=U.match(/^( *)/),H=[Z?.[1]?[Z[1],U.slice(Z[1].length)]:["",U]];for(let X=1;X<$.length;X+=2)H.push([$[X],$[X+1]]);return H}X1.resolveBlockScalar=Z1});var m$=D((D1)=>{var v$=N(),J1=D0();function Q1(q,$,U){let{offset:Z,type:z,source:H,end:X}=q,G,J,Q=(Y,L,_)=>U(Z+Y,L,_);switch(z){case"scalar":G=v$.Scalar.PLAIN,J=B1(H,Q);break;case"single-quoted-scalar":G=v$.Scalar.QUOTE_SINGLE,J=Y1(H,Q);break;case"double-quoted-scalar":G=v$.Scalar.QUOTE_DOUBLE,J=V1(H,Q);break;default:return U(q,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${z}`),{value:"",type:null,comment:"",range:[Z,Z+H.length,Z+H.length]}}let O=Z+H.length,B=J1.resolveEnd(X,O,$,U);return{value:J,type:G,comment:B.comment,range:[Z,O,B.offset]}}function B1(q,$){let U="";switch(q[0]){case"\t":U="a tab character";break;case",":U="flow indicator character ,";break;case"%":U="directive indicator character %";break;case"|":case">":{U=`block scalar indicator ${q[0]}`;break}case"@":case"`":{U=`reserved character ${q[0]}`;break}}if(U)$(0,"BAD_SCALAR_START",`Plain value cannot start with ${U}`);return x2(q)}function Y1(q,$){if(q[q.length-1]!=="'"||q.length===1)$(q.length,"MISSING_CHAR","Missing closing 'quote");return x2(q.slice(1,-1)).replace(/''/g,"'")}function x2(q){let $,U;try{$=new RegExp(`(.*?)(?<![ ])[ ]*\r?
85
85
  `,"sy"),U=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
86
- `,"sy")}catch{$=/(.*?)[ \t]*\r?\n/sy,U=/[ \t]*(.*?)[ \t]*\r?\n/sy}let Z=$.exec(q);if(!Z)return q;let H=Z[1],z=" ",X=$.lastIndex;U.lastIndex=X;while(Z=U.exec(q)){if(Z[1]==="")if(z===`
87
- `)H+=z;else z=`
88
- `;else H+=z+Z[1],z=" ";X=U.lastIndex}let G=/[ \t]*(.*)/sy;return G.lastIndex=X,Z=G.exec(q),H+z+(Z?.[1]??"")}function GH(q,$){let U="";for(let Z=1;Z<q.length-1;++Z){let H=q[Z];if(H==="\r"&&q[Z+1]===`
89
- `)continue;if(H===`
90
- `){let{fold:z,offset:X}=JH(q,Z);U+=z,Z=X}else if(H==="\\"){let z=q[++Z],X=QH[z];if(X)U+=X;else if(z===`
91
- `){z=q[Z+1];while(z===" "||z==="\t")z=q[++Z+1]}else if(z==="\r"&&q[Z+1]===`
92
- `){z=q[++Z+1];while(z===" "||z==="\t")z=q[++Z+1]}else if(z==="x"||z==="u"||z==="U"){let G={x:2,u:4,U:8}[z];U+=BH(q,Z+1,G,$),Z+=G}else{let G=q.substr(Z-1,2);$(Z-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${G}`),U+=G}}else if(H===" "||H==="\t"){let z=Z,X=q[Z+1];while(X===" "||X==="\t")X=q[++Z+1];if(X!==`
86
+ `,"sy")}catch{$=/(.*?)[ \t]*\r?\n/sy,U=/[ \t]*(.*?)[ \t]*\r?\n/sy}let Z=$.exec(q);if(!Z)return q;let z=Z[1],H=" ",X=$.lastIndex;U.lastIndex=X;while(Z=U.exec(q)){if(Z[1]==="")if(H===`
87
+ `)z+=H;else H=`
88
+ `;else z+=H+Z[1],H=" ";X=U.lastIndex}let G=/[ \t]*(.*)/sy;return G.lastIndex=X,Z=G.exec(q),z+H+(Z?.[1]??"")}function V1(q,$){let U="";for(let Z=1;Z<q.length-1;++Z){let z=q[Z];if(z==="\r"&&q[Z+1]===`
89
+ `)continue;if(z===`
90
+ `){let{fold:H,offset:X}=O1(q,Z);U+=H,Z=X}else if(z==="\\"){let H=q[++Z],X=W1[H];if(X)U+=X;else if(H===`
91
+ `){H=q[Z+1];while(H===" "||H==="\t")H=q[++Z+1]}else if(H==="\r"&&q[Z+1]===`
92
+ `){H=q[++Z+1];while(H===" "||H==="\t")H=q[++Z+1]}else if(H==="x"||H==="u"||H==="U"){let G={x:2,u:4,U:8}[H];U+=L1(q,Z+1,G,$),Z+=G}else{let G=q.substr(Z-1,2);$(Z-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${G}`),U+=G}}else if(z===" "||z==="\t"){let H=Z,X=q[Z+1];while(X===" "||X==="\t")X=q[++Z+1];if(X!==`
93
93
  `&&!(X==="\r"&&q[Z+2]===`
94
- `))U+=Z>z?q.slice(z,Z+1):H}else U+=H}if(q[q.length-1]!=='"'||q.length===1)$(q.length,"MISSING_CHAR",'Missing closing "quote');return U}function JH(q,$){let U="",Z=q[$+1];while(Z===" "||Z==="\t"||Z===`
94
+ `))U+=Z>H?q.slice(H,Z+1):z}else U+=z}if(q[q.length-1]!=='"'||q.length===1)$(q.length,"MISSING_CHAR",'Missing closing "quote');return U}function O1(q,$){let U="",Z=q[$+1];while(Z===" "||Z==="\t"||Z===`
95
95
  `||Z==="\r"){if(Z==="\r"&&q[$+2]!==`
96
96
  `)break;if(Z===`
97
97
  `)U+=`
98
- `;$+=1,Z=q[$+1]}if(!U)U=" ";return{fold:U,offset:$}}var QH={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
99
- `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function BH(q,$,U,Z){let H=q.substr($,U),X=H.length===U&&/^[0-9a-fA-F]+$/.test(H)?parseInt(H,16):NaN;if(isNaN(X)){let G=q.substr($-2,U+2);return Z($-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${G}`),G}return String.fromCodePoint(X)}YH.resolveFlowScalar=HH});var y2=T((DH)=>{var H0=w(),f2=N(),WH=h$(),OH=k$();function LH(q,$,U,Z){let{value:H,type:z,comment:X,range:G}=$.type==="block-scalar"?WH.resolveBlockScalar(q,$,Z):OH.resolveFlowScalar($,q.options.strict,Z),J=U?q.directives.tagName(U.source,(B)=>Z(U,"TAG_RESOLVE_FAILED",B)):null,Q;if(q.options.stringKeys&&q.atKey)Q=q.schema[H0.SCALAR];else if(J)Q=TH(q.schema,H,J,U,Z);else if($.type==="scalar")Q=_H(q,H,$,Z);else Q=q.schema[H0.SCALAR];let W;try{let B=Q.resolve(H,(Y)=>Z(U??$,"TAG_RESOLVE_FAILED",Y),q.options);W=H0.isScalar(B)?B:new f2.Scalar(B)}catch(B){let Y=B instanceof Error?B.message:String(B);Z(U??$,"TAG_RESOLVE_FAILED",Y),W=new f2.Scalar(H)}if(W.range=G,W.source=H,z)W.type=z;if(J)W.tag=J;if(Q.format)W.format=Q.format;if(X)W.comment=X;return W}function TH(q,$,U,Z,H){if(U==="!")return q[H0.SCALAR];let z=[];for(let G of q.tags)if(!G.collection&&G.tag===U)if(G.default&&G.test)z.push(G);else return G;for(let G of z)if(G.test?.test($))return G;let X=q.knownTags[U];if(X&&!X.collection)return q.tags.push(Object.assign({},X,{default:!1,test:void 0})),X;return H(Z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${U}`,U!=="tag:yaml.org,2002:str"),q[H0.SCALAR]}function _H({atKey:q,directives:$,schema:U},Z,H,z){let X=U.tags.find((G)=>(G.default===!0||q&&G.default==="key")&&G.test?.test(Z))||U[H0.SCALAR];if(U.compat){let G=U.compat.find((J)=>J.default&&J.test?.test(Z))??U[H0.SCALAR];if(X.tag!==G.tag){let J=$.tagString(X.tag),Q=$.tagString(G.tag),W=`Value may be parsed as either ${J} or ${Q}`;z(H,"TAG_RESOLVE_FAILED",W,!0)}}return X}DH.composeScalar=LH});var x2=T((PH)=>{function RH(q,$,U){if($){U??(U=$.length);for(let Z=U-1;Z>=0;--Z){let H=$[Z];switch(H.type){case"space":case"comment":case"newline":q-=H.source.length;continue}H=$[++Z];while(H?.type==="space")q+=H.source.length,H=$[++Z];break}}return q}PH.emptyScalarPosition=RH});var k2=T((jH)=>{var AH=w0(),MH=w(),wH=E2(),h2=y2(),KH=T0(),NH=x2(),bH={composeNode:u2,composeEmptyNode:v$};function u2(q,$,U,Z){let H=q.atKey,{spaceBefore:z,comment:X,anchor:G,tag:J}=U,Q,W=!0;switch($.type){case"alias":if(Q=SH(q,$,Z),G||J)Z($,"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(Q=h2.composeScalar(q,$,J,Z),G)Q.anchor=G.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(Q=wH.composeCollection(bH,q,$,U,Z),G)Q.anchor=G.source.substring(1);break;default:{let B=$.type==="error"?$.message:`Unsupported token (type: ${$.type})`;Z($,"UNEXPECTED_TOKEN",B),Q=v$(q,$.offset,void 0,null,U,Z),W=!1}}if(G&&Q.anchor==="")Z(G,"BAD_ALIAS","Anchor cannot be an empty string");if(H&&q.options.stringKeys&&(!MH.isScalar(Q)||typeof Q.value!=="string"||Q.tag&&Q.tag!=="tag:yaml.org,2002:str"))Z(J??$,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(z)Q.spaceBefore=!0;if(X)if($.type==="scalar"&&$.source==="")Q.comment=X;else Q.commentBefore=X;if(q.options.keepSourceTokens&&W)Q.srcToken=$;return Q}function v$(q,$,U,Z,{spaceBefore:H,comment:z,anchor:X,tag:G,end:J},Q){let W={type:"scalar",offset:NH.emptyScalarPosition($,U,Z),indent:-1,source:""},B=h2.composeScalar(q,W,G,Q);if(X){if(B.anchor=X.source.substring(1),B.anchor==="")Q(X,"BAD_ALIAS","Anchor cannot be an empty string")}if(H)B.spaceBefore=!0;if(z)B.comment=z,B.range[2]=J;return B}function SH({options:q},{offset:$,source:U,end:Z},H){let z=new AH.Alias(U.substring(1));if(z.source==="")H($,"BAD_ALIAS","Alias cannot be an empty string");if(z.source.endsWith(":"))H($+U.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let X=$+U.length,G=KH.resolveEnd(Z,X,q.strict,H);if(z.range=[$,X,G.offset],G.comment)z.comment=G.comment;return z}jH.composeEmptyNode=v$;jH.composeNode=u2});var m2=T((hH)=>{var gH=v0(),v2=k2(),fH=T0(),yH=p0();function xH(q,$,{offset:U,start:Z,value:H,end:z},X){let G=Object.assign({_directives:$},q),J=new gH.Document(void 0,G),Q={atKey:!1,atRoot:!0,directives:J.directives,options:J.options,schema:J.schema},W=yH.resolveProps(Z,{indicator:"doc-start",next:H??z?.[0],offset:U,onError:X,parentIndent:0,startOnNewline:!0});if(W.found){if(J.directives.docStart=!0,H&&(H.type==="block-map"||H.type==="block-seq")&&!W.hasNewline)X(W.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}J.contents=H?v2.composeNode(Q,H,W,X):v2.composeEmptyNode(Q,W.end,Z,null,W,X);let B=J.contents.range[2],Y=fH.resolveEnd(z,B,!1,X);if(Y.comment)J.comment=Y.comment;return J.range=[U,B,Y.offset],J}hH.composeDoc=xH});var m$=T((lH)=>{var kH=I0("process"),vH=cq(),mH=v0(),d0=m0(),p2=w(),pH=m2(),dH=T0();function l0(q){if(typeof q==="number")return[q,q+1];if(Array.isArray(q))return q.length===2?q:[q[0],q[1]];let{offset:$,source:U}=q;return[$,$+(typeof U==="string"?U.length:1)]}function d2(q){let $="",U=!1,Z=!1;for(let H=0;H<q.length;++H){let z=q[H];switch(z[0]){case"#":$+=($===""?"":Z?`
98
+ `;$+=1,Z=q[$+1]}if(!U)U=" ";return{fold:U,offset:$}}var W1={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
99
+ `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function L1(q,$,U,Z){let z=q.substr($,U),X=z.length===U&&/^[0-9a-fA-F]+$/.test(z)?parseInt(z,16):NaN;if(isNaN(X)){let G=q.substr($-2,U+2);return Z($-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${G}`),G}return String.fromCodePoint(X)}D1.resolveFlowScalar=Q1});var u2=D((A1)=>{var z0=w(),h2=N(),P1=k$(),F1=m$();function I1(q,$,U,Z){let{value:z,type:H,comment:X,range:G}=$.type==="block-scalar"?P1.resolveBlockScalar(q,$,Z):F1.resolveFlowScalar($,q.options.strict,Z),J=U?q.directives.tagName(U.source,(B)=>Z(U,"TAG_RESOLVE_FAILED",B)):null,Q;if(q.options.stringKeys&&q.atKey)Q=q.schema[z0.SCALAR];else if(J)Q=R1(q.schema,z,J,U,Z);else if($.type==="scalar")Q=T1(q,z,$,Z);else Q=q.schema[z0.SCALAR];let O;try{let B=Q.resolve(z,(Y)=>Z(U??$,"TAG_RESOLVE_FAILED",Y),q.options);O=z0.isScalar(B)?B:new h2.Scalar(B)}catch(B){let Y=B instanceof Error?B.message:String(B);Z(U??$,"TAG_RESOLVE_FAILED",Y),O=new h2.Scalar(z)}if(O.range=G,O.source=z,H)O.type=H;if(J)O.tag=J;if(Q.format)O.format=Q.format;if(X)O.comment=X;return O}function R1(q,$,U,Z,z){if(U==="!")return q[z0.SCALAR];let H=[];for(let G of q.tags)if(!G.collection&&G.tag===U)if(G.default&&G.test)H.push(G);else return G;for(let G of H)if(G.test?.test($))return G;let X=q.knownTags[U];if(X&&!X.collection)return q.tags.push(Object.assign({},X,{default:!1,test:void 0})),X;return z(Z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${U}`,U!=="tag:yaml.org,2002:str"),q[z0.SCALAR]}function T1({atKey:q,directives:$,schema:U},Z,z,H){let X=U.tags.find((G)=>(G.default===!0||q&&G.default==="key")&&G.test?.test(Z))||U[z0.SCALAR];if(U.compat){let G=U.compat.find((J)=>J.default&&J.test?.test(Z))??U[z0.SCALAR];if(X.tag!==G.tag){let J=$.tagString(X.tag),Q=$.tagString(G.tag),O=`Value may be parsed as either ${J} or ${Q}`;H(z,"TAG_RESOLVE_FAILED",O,!0)}}return X}A1.composeScalar=I1});var k2=D((K1)=>{function w1(q,$,U){if($){U??(U=$.length);for(let Z=U-1;Z>=0;--Z){let z=$[Z];switch(z.type){case"space":case"comment":case"newline":q-=z.source.length;continue}z=$[++Z];while(z?.type==="space")q+=z.source.length,z=$[++Z];break}}return q}K1.emptyScalarPosition=w1});var p2=D((y1)=>{var b1=K0(),j1=w(),C1=y2(),v2=u2(),S1=D0(),E1=k2(),g1={composeNode:m2,composeEmptyNode:p$};function m2(q,$,U,Z){let z=q.atKey,{spaceBefore:H,comment:X,anchor:G,tag:J}=U,Q,O=!0;switch($.type){case"alias":if(Q=f1(q,$,Z),G||J)Z($,"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(Q=v2.composeScalar(q,$,J,Z),G)Q.anchor=G.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(Q=C1.composeCollection(g1,q,$,U,Z),G)Q.anchor=G.source.substring(1);break;default:{let B=$.type==="error"?$.message:`Unsupported token (type: ${$.type})`;Z($,"UNEXPECTED_TOKEN",B),Q=p$(q,$.offset,void 0,null,U,Z),O=!1}}if(G&&Q.anchor==="")Z(G,"BAD_ALIAS","Anchor cannot be an empty string");if(z&&q.options.stringKeys&&(!j1.isScalar(Q)||typeof Q.value!=="string"||Q.tag&&Q.tag!=="tag:yaml.org,2002:str"))Z(J??$,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(H)Q.spaceBefore=!0;if(X)if($.type==="scalar"&&$.source==="")Q.comment=X;else Q.commentBefore=X;if(q.options.keepSourceTokens&&O)Q.srcToken=$;return Q}function p$(q,$,U,Z,{spaceBefore:z,comment:H,anchor:X,tag:G,end:J},Q){let O={type:"scalar",offset:E1.emptyScalarPosition($,U,Z),indent:-1,source:""},B=v2.composeScalar(q,O,G,Q);if(X){if(B.anchor=X.source.substring(1),B.anchor==="")Q(X,"BAD_ALIAS","Anchor cannot be an empty string")}if(z)B.spaceBefore=!0;if(H)B.comment=H,B.range[2]=J;return B}function f1({options:q},{offset:$,source:U,end:Z},z){let H=new b1.Alias(U.substring(1));if(H.source==="")z($,"BAD_ALIAS","Alias cannot be an empty string");if(H.source.endsWith(":"))z($+U.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let X=$+U.length,G=S1.resolveEnd(Z,X,q.strict,z);if(H.range=[$,X,G.offset],G.comment)H.comment=G.comment;return H}y1.composeEmptyNode=p$;y1.composeNode=m2});var l2=D((p1)=>{var u1=m0(),d2=p2(),k1=D0(),v1=d0();function m1(q,$,{offset:U,start:Z,value:z,end:H},X){let G=Object.assign({_directives:$},q),J=new u1.Document(void 0,G),Q={atKey:!1,atRoot:!0,directives:J.directives,options:J.options,schema:J.schema},O=v1.resolveProps(Z,{indicator:"doc-start",next:z??H?.[0],offset:U,onError:X,parentIndent:0,startOnNewline:!0});if(O.found){if(J.directives.docStart=!0,z&&(z.type==="block-map"||z.type==="block-seq")&&!O.hasNewline)X(O.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}J.contents=z?d2.composeNode(Q,z,O,X):d2.composeEmptyNode(Q,O.end,Z,null,O,X);let B=J.contents.range[2],Y=k1.resolveEnd(H,B,!1,X);if(Y.comment)J.comment=Y.comment;return J.range=[U,B,Y.offset],J}p1.composeDoc=m1});var d$=D((r1)=>{var l1=I0("process"),c1=iq(),a1=m0(),l0=p0(),c2=w(),i1=l2(),s1=D0();function c0(q){if(typeof q==="number")return[q,q+1];if(Array.isArray(q))return q.length===2?q:[q[0],q[1]];let{offset:$,source:U}=q;return[$,$+(typeof U==="string"?U.length:1)]}function a2(q){let $="",U=!1,Z=!1;for(let z=0;z<q.length;++z){let H=q[z];switch(H[0]){case"#":$+=($===""?"":Z?`
100
100
 
101
101
  `:`
102
- `)+(z.substring(1)||" "),U=!0,Z=!1;break;case"%":if(q[H+1]?.[0]!=="#")H+=1;U=!1;break;default:if(!U)Z=!0;U=!1}}return{comment:$,afterEmptyLine:Z}}class l2{constructor(q={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=($,U,Z,H)=>{let z=l0($);if(H)this.warnings.push(new d0.YAMLWarning(z,U,Z));else this.errors.push(new d0.YAMLParseError(z,U,Z))},this.directives=new vH.Directives({version:q.version||"1.2"}),this.options=q}decorate(q,$){let{comment:U,afterEmptyLine:Z}=d2(this.prelude);if(U){let H=q.contents;if($)q.comment=q.comment?`${q.comment}
103
- ${U}`:U;else if(Z||q.directives.docStart||!H)q.commentBefore=U;else if(p2.isCollection(H)&&!H.flow&&H.items.length>0){let z=H.items[0];if(p2.isPair(z))z=z.key;let X=z.commentBefore;z.commentBefore=X?`${U}
104
- ${X}`:U}else{let z=H.commentBefore;H.commentBefore=z?`${U}
105
- ${z}`:U}}if($)Array.prototype.push.apply(q.errors,this.errors),Array.prototype.push.apply(q.warnings,this.warnings);else q.errors=this.errors,q.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:d2(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(q,$=!1,U=-1){for(let Z of q)yield*this.next(Z);yield*this.end($,U)}*next(q){if(kH.env.LOG_STREAM)console.dir(q,{depth:null});switch(q.type){case"directive":this.directives.add(q.source,($,U,Z)=>{let H=l0(q);H[0]+=$,this.onError(H,"BAD_DIRECTIVE",U,Z)}),this.prelude.push(q.source),this.atDirectives=!0;break;case"document":{let $=pH.composeDoc(this.options,this.directives,q,this.onError);if(this.atDirectives&&!$.directives.docStart)this.onError(q,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate($,!1),this.doc)yield this.doc;this.doc=$,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(q.source);break;case"error":{let $=q.source?`${q.message}: ${JSON.stringify(q.source)}`:q.message,U=new d0.YAMLParseError(l0(q),"UNEXPECTED_TOKEN",$);if(this.atDirectives||!this.doc)this.errors.push(U);else this.doc.errors.push(U);break}case"doc-end":{if(!this.doc){this.errors.push(new d0.YAMLParseError(l0(q),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let $=dH.resolveEnd(q.end,q.offset+q.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),$.comment){let U=this.doc.comment;this.doc.comment=U?`${U}
106
- ${$.comment}`:$.comment}this.doc.range[2]=$.offset;break}default:this.errors.push(new d0.YAMLParseError(l0(q),"UNEXPECTED_TOKEN",`Unsupported token ${q.type}`))}}*end(q=!1,$=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(q){let U=Object.assign({_directives:this.directives},this.options),Z=new mH.Document(void 0,U);if(this.atDirectives)this.onError($,"MISSING_CHAR","Missing directives-end indicator line");Z.range=[0,$,$],this.decorate(Z,!1),yield Z}}}lH.Composer=l2});var s2=T((eH)=>{var aH=h$(),sH=k$(),iH=m0(),c2=S0();function rH(q,$=!0,U){if(q){let Z=(H,z,X)=>{let G=typeof H==="number"?H:Array.isArray(H)?H[0]:H.offset;if(U)U(G,z,X);else throw new iH.YAMLParseError([G,G+1],z,X)};switch(q.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return sH.resolveFlowScalar(q,$,Z);case"block-scalar":return aH.resolveBlockScalar({options:{strict:$}},q,Z)}}return null}function nH(q,$){let{implicitKey:U=!1,indent:Z,inFlow:H=!1,offset:z=-1,type:X="PLAIN"}=$,G=c2.stringifyString({type:X,value:q},{implicitKey:U,indent:Z>0?" ".repeat(Z):"",inFlow:H,options:{blockQuote:!0,lineWidth:-1}}),J=$.end??[{type:"newline",offset:-1,indent:Z,source:`
102
+ `)+(H.substring(1)||" "),U=!0,Z=!1;break;case"%":if(q[z+1]?.[0]!=="#")z+=1;U=!1;break;default:if(!U)Z=!0;U=!1}}return{comment:$,afterEmptyLine:Z}}class i2{constructor(q={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=($,U,Z,z)=>{let H=c0($);if(z)this.warnings.push(new l0.YAMLWarning(H,U,Z));else this.errors.push(new l0.YAMLParseError(H,U,Z))},this.directives=new c1.Directives({version:q.version||"1.2"}),this.options=q}decorate(q,$){let{comment:U,afterEmptyLine:Z}=a2(this.prelude);if(U){let z=q.contents;if($)q.comment=q.comment?`${q.comment}
103
+ ${U}`:U;else if(Z||q.directives.docStart||!z)q.commentBefore=U;else if(c2.isCollection(z)&&!z.flow&&z.items.length>0){let H=z.items[0];if(c2.isPair(H))H=H.key;let X=H.commentBefore;H.commentBefore=X?`${U}
104
+ ${X}`:U}else{let H=z.commentBefore;z.commentBefore=H?`${U}
105
+ ${H}`:U}}if($)Array.prototype.push.apply(q.errors,this.errors),Array.prototype.push.apply(q.warnings,this.warnings);else q.errors=this.errors,q.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:a2(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(q,$=!1,U=-1){for(let Z of q)yield*this.next(Z);yield*this.end($,U)}*next(q){if(l1.env.LOG_STREAM)console.dir(q,{depth:null});switch(q.type){case"directive":this.directives.add(q.source,($,U,Z)=>{let z=c0(q);z[0]+=$,this.onError(z,"BAD_DIRECTIVE",U,Z)}),this.prelude.push(q.source),this.atDirectives=!0;break;case"document":{let $=i1.composeDoc(this.options,this.directives,q,this.onError);if(this.atDirectives&&!$.directives.docStart)this.onError(q,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate($,!1),this.doc)yield this.doc;this.doc=$,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(q.source);break;case"error":{let $=q.source?`${q.message}: ${JSON.stringify(q.source)}`:q.message,U=new l0.YAMLParseError(c0(q),"UNEXPECTED_TOKEN",$);if(this.atDirectives||!this.doc)this.errors.push(U);else this.doc.errors.push(U);break}case"doc-end":{if(!this.doc){this.errors.push(new l0.YAMLParseError(c0(q),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let $=s1.resolveEnd(q.end,q.offset+q.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),$.comment){let U=this.doc.comment;this.doc.comment=U?`${U}
106
+ ${$.comment}`:$.comment}this.doc.range[2]=$.offset;break}default:this.errors.push(new l0.YAMLParseError(c0(q),"UNEXPECTED_TOKEN",`Unsupported token ${q.type}`))}}*end(q=!1,$=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(q){let U=Object.assign({_directives:this.directives},this.options),Z=new a1.Document(void 0,U);if(this.atDirectives)this.onError($,"MISSING_CHAR","Missing directives-end indicator line");Z.range=[0,$,$],this.decorate(Z,!1),yield Z}}}r1.Composer=i2});var n2=D((z7)=>{var o1=k$(),t1=m$(),e1=p0(),s2=C0();function q7(q,$=!0,U){if(q){let Z=(z,H,X)=>{let G=typeof z==="number"?z:Array.isArray(z)?z[0]:z.offset;if(U)U(G,H,X);else throw new e1.YAMLParseError([G,G+1],H,X)};switch(q.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return t1.resolveFlowScalar(q,$,Z);case"block-scalar":return o1.resolveBlockScalar({options:{strict:$}},q,Z)}}return null}function $7(q,$){let{implicitKey:U=!1,indent:Z,inFlow:z=!1,offset:H=-1,type:X="PLAIN"}=$,G=s2.stringifyString({type:X,value:q},{implicitKey:U,indent:Z>0?" ".repeat(Z):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}}),J=$.end??[{type:"newline",offset:-1,indent:Z,source:`
107
107
  `}];switch(G[0]){case"|":case">":{let Q=G.indexOf(`
108
- `),W=G.substring(0,Q),B=G.substring(Q+1)+`
109
- `,Y=[{type:"block-scalar-header",offset:z,indent:Z,source:W}];if(!a2(Y,J))Y.push({type:"newline",offset:-1,indent:Z,source:`
110
- `});return{type:"block-scalar",offset:z,indent:Z,props:Y,source:B}}case'"':return{type:"double-quoted-scalar",offset:z,indent:Z,source:G,end:J};case"'":return{type:"single-quoted-scalar",offset:z,indent:Z,source:G,end:J};default:return{type:"scalar",offset:z,indent:Z,source:G,end:J}}}function oH(q,$,U={}){let{afterKey:Z=!1,implicitKey:H=!1,inFlow:z=!1,type:X}=U,G="indent"in q?q.indent:null;if(Z&&typeof G==="number")G+=2;if(!X)switch(q.type){case"single-quoted-scalar":X="QUOTE_SINGLE";break;case"double-quoted-scalar":X="QUOTE_DOUBLE";break;case"block-scalar":{let Q=q.props[0];if(Q.type!=="block-scalar-header")throw Error("Invalid block scalar header");X=Q.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:X="PLAIN"}let J=c2.stringifyString({type:X,value:$},{implicitKey:H||G===null,indent:G!==null&&G>0?" ".repeat(G):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}});switch(J[0]){case"|":case">":tH(q,J);break;case'"':p$(q,J,"double-quoted-scalar");break;case"'":p$(q,J,"single-quoted-scalar");break;default:p$(q,J,"scalar")}}function tH(q,$){let U=$.indexOf(`
111
- `),Z=$.substring(0,U),H=$.substring(U+1)+`
112
- `;if(q.type==="block-scalar"){let z=q.props[0];if(z.type!=="block-scalar-header")throw Error("Invalid block scalar header");z.source=Z,q.source=H}else{let{offset:z}=q,X="indent"in q?q.indent:-1,G=[{type:"block-scalar-header",offset:z,indent:X,source:Z}];if(!a2(G,"end"in q?q.end:void 0))G.push({type:"newline",offset:-1,indent:X,source:`
113
- `});for(let J of Object.keys(q))if(J!=="type"&&J!=="offset")delete q[J];Object.assign(q,{type:"block-scalar",indent:X,props:G,source:H})}}function a2(q,$){if($)for(let U of $)switch(U.type){case"space":case"comment":q.push(U);break;case"newline":return q.push(U),!0}return!1}function p$(q,$,U){switch(q.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":q.type=U,q.source=$;break;case"block-scalar":{let Z=q.props.slice(1),H=$.length;if(q.props[0].type==="block-scalar-header")H-=q.props[0].source.length;for(let z of Z)z.offset+=H;delete q.props,Object.assign(q,{type:U,source:$,end:Z});break}case"block-map":case"block-seq":{let H={type:"newline",offset:q.offset+$.length,indent:q.indent,source:`
114
- `};delete q.items,Object.assign(q,{type:U,source:$,end:[H]});break}default:{let Z="indent"in q?q.indent:-1,H="end"in q&&Array.isArray(q.end)?q.end.filter((z)=>z.type==="space"||z.type==="comment"||z.type==="newline"):[];for(let z of Object.keys(q))if(z!=="type"&&z!=="offset")delete q[z];Object.assign(q,{type:U,indent:Z,source:$,end:H})}}}eH.createScalarToken=nH;eH.resolveAsScalar=rH;eH.setScalarValue=oH});var i2=T((H1)=>{var Z1=(q)=>("type"in q)?jq(q):Sq(q);function jq(q){switch(q.type){case"block-scalar":{let $="";for(let U of q.props)$+=jq(U);return $+q.source}case"block-map":case"block-seq":{let $="";for(let U of q.items)$+=Sq(U);return $}case"flow-collection":{let $=q.start.source;for(let U of q.items)$+=Sq(U);for(let U of q.end)$+=U.source;return $}case"document":{let $=Sq(q);if(q.end)for(let U of q.end)$+=U.source;return $}default:{let $=q.source;if("end"in q&&q.end)for(let U of q.end)$+=U.source;return $}}}function Sq({start:q,key:$,sep:U,value:Z}){let H="";for(let z of q)H+=z.source;if($)H+=jq($);if(U)for(let z of U)H+=z.source;if(Z)H+=jq(Z);return H}H1.stringify=Z1});var o2=T((G1)=>{var d$=Symbol("break visit"),X1=Symbol("skip children"),r2=Symbol("remove item");function z0(q,$){if("type"in q&&q.type==="document")q={start:q.start,value:q.value};n2(Object.freeze([]),q,$)}z0.BREAK=d$;z0.SKIP=X1;z0.REMOVE=r2;z0.itemAtPath=(q,$)=>{let U=q;for(let[Z,H]of $){let z=U?.[Z];if(z&&"items"in z)U=z.items[H];else return}return U};z0.parentCollection=(q,$)=>{let U=z0.itemAtPath(q,$.slice(0,-1)),Z=$[$.length-1][0],H=U?.[Z];if(H&&"items"in H)return H;throw Error("Parent collection not found")};function n2(q,$,U){let Z=U($,q);if(typeof Z==="symbol")return Z;for(let H of["key","value"]){let z=$[H];if(z&&"items"in z){for(let X=0;X<z.items.length;++X){let G=n2(Object.freeze(q.concat([[H,X]])),z.items[X],U);if(typeof G==="number")X=G-1;else if(G===d$)return d$;else if(G===r2)z.items.splice(X,1),X-=1}if(typeof Z==="function"&&H==="key")Z=Z($,q)}}return typeof Z==="function"?Z($,q):Z}G1.visit=z0});var Cq=T((L1)=>{var l$=s2(),Q1=i2(),B1=o2(),c$="\uFEFF",a$="\x02",s$="\x18",i$="\x1F",Y1=(q)=>!!q&&("items"in q),V1=(q)=>!!q&&(q.type==="scalar"||q.type==="single-quoted-scalar"||q.type==="double-quoted-scalar"||q.type==="block-scalar");function W1(q){switch(q){case c$:return"<BOM>";case a$:return"<DOC>";case s$:return"<FLOW_END>";case i$:return"<SCALAR>";default:return JSON.stringify(q)}}function O1(q){switch(q){case c$:return"byte-order-mark";case a$:return"doc-mode";case s$:return"flow-error-end";case i$:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
108
+ `),O=G.substring(0,Q),B=G.substring(Q+1)+`
109
+ `,Y=[{type:"block-scalar-header",offset:H,indent:Z,source:O}];if(!r2(Y,J))Y.push({type:"newline",offset:-1,indent:Z,source:`
110
+ `});return{type:"block-scalar",offset:H,indent:Z,props:Y,source:B}}case'"':return{type:"double-quoted-scalar",offset:H,indent:Z,source:G,end:J};case"'":return{type:"single-quoted-scalar",offset:H,indent:Z,source:G,end:J};default:return{type:"scalar",offset:H,indent:Z,source:G,end:J}}}function U7(q,$,U={}){let{afterKey:Z=!1,implicitKey:z=!1,inFlow:H=!1,type:X}=U,G="indent"in q?q.indent:null;if(Z&&typeof G==="number")G+=2;if(!X)switch(q.type){case"single-quoted-scalar":X="QUOTE_SINGLE";break;case"double-quoted-scalar":X="QUOTE_DOUBLE";break;case"block-scalar":{let Q=q.props[0];if(Q.type!=="block-scalar-header")throw Error("Invalid block scalar header");X=Q.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:X="PLAIN"}let J=s2.stringifyString({type:X,value:$},{implicitKey:z||G===null,indent:G!==null&&G>0?" ".repeat(G):"",inFlow:H,options:{blockQuote:!0,lineWidth:-1}});switch(J[0]){case"|":case">":Z7(q,J);break;case'"':l$(q,J,"double-quoted-scalar");break;case"'":l$(q,J,"single-quoted-scalar");break;default:l$(q,J,"scalar")}}function Z7(q,$){let U=$.indexOf(`
111
+ `),Z=$.substring(0,U),z=$.substring(U+1)+`
112
+ `;if(q.type==="block-scalar"){let H=q.props[0];if(H.type!=="block-scalar-header")throw Error("Invalid block scalar header");H.source=Z,q.source=z}else{let{offset:H}=q,X="indent"in q?q.indent:-1,G=[{type:"block-scalar-header",offset:H,indent:X,source:Z}];if(!r2(G,"end"in q?q.end:void 0))G.push({type:"newline",offset:-1,indent:X,source:`
113
+ `});for(let J of Object.keys(q))if(J!=="type"&&J!=="offset")delete q[J];Object.assign(q,{type:"block-scalar",indent:X,props:G,source:z})}}function r2(q,$){if($)for(let U of $)switch(U.type){case"space":case"comment":q.push(U);break;case"newline":return q.push(U),!0}return!1}function l$(q,$,U){switch(q.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":q.type=U,q.source=$;break;case"block-scalar":{let Z=q.props.slice(1),z=$.length;if(q.props[0].type==="block-scalar-header")z-=q.props[0].source.length;for(let H of Z)H.offset+=z;delete q.props,Object.assign(q,{type:U,source:$,end:Z});break}case"block-map":case"block-seq":{let z={type:"newline",offset:q.offset+$.length,indent:q.indent,source:`
114
+ `};delete q.items,Object.assign(q,{type:U,source:$,end:[z]});break}default:{let Z="indent"in q?q.indent:-1,z="end"in q&&Array.isArray(q.end)?q.end.filter((H)=>H.type==="space"||H.type==="comment"||H.type==="newline"):[];for(let H of Object.keys(q))if(H!=="type"&&H!=="offset")delete q[H];Object.assign(q,{type:U,indent:Z,source:$,end:z})}}}z7.createScalarToken=$7;z7.resolveAsScalar=q7;z7.setScalarValue=U7});var o2=D((Q7)=>{var J7=(q)=>("type"in q)?Sq(q):Cq(q);function Sq(q){switch(q.type){case"block-scalar":{let $="";for(let U of q.props)$+=Sq(U);return $+q.source}case"block-map":case"block-seq":{let $="";for(let U of q.items)$+=Cq(U);return $}case"flow-collection":{let $=q.start.source;for(let U of q.items)$+=Cq(U);for(let U of q.end)$+=U.source;return $}case"document":{let $=Cq(q);if(q.end)for(let U of q.end)$+=U.source;return $}default:{let $=q.source;if("end"in q&&q.end)for(let U of q.end)$+=U.source;return $}}}function Cq({start:q,key:$,sep:U,value:Z}){let z="";for(let H of q)z+=H.source;if($)z+=Sq($);if(U)for(let H of U)z+=H.source;if(Z)z+=Sq(Z);return z}Q7.stringify=J7});var q9=D((V7)=>{var c$=Symbol("break visit"),Y7=Symbol("skip children"),t2=Symbol("remove item");function H0(q,$){if("type"in q&&q.type==="document")q={start:q.start,value:q.value};e2(Object.freeze([]),q,$)}H0.BREAK=c$;H0.SKIP=Y7;H0.REMOVE=t2;H0.itemAtPath=(q,$)=>{let U=q;for(let[Z,z]of $){let H=U?.[Z];if(H&&"items"in H)U=H.items[z];else return}return U};H0.parentCollection=(q,$)=>{let U=H0.itemAtPath(q,$.slice(0,-1)),Z=$[$.length-1][0],z=U?.[Z];if(z&&"items"in z)return z;throw Error("Parent collection not found")};function e2(q,$,U){let Z=U($,q);if(typeof Z==="symbol")return Z;for(let z of["key","value"]){let H=$[z];if(H&&"items"in H){for(let X=0;X<H.items.length;++X){let G=e2(Object.freeze(q.concat([[z,X]])),H.items[X],U);if(typeof G==="number")X=G-1;else if(G===c$)return c$;else if(G===t2)H.items.splice(X,1),X-=1}if(typeof Z==="function"&&z==="key")Z=Z($,q)}}return typeof Z==="function"?Z($,q):Z}V7.visit=H0});var Eq=D((I7)=>{var a$=n2(),W7=o2(),L7=q9(),i$="\uFEFF",s$="\x02",r$="\x18",n$="\x1F",D7=(q)=>!!q&&("items"in q),_7=(q)=>!!q&&(q.type==="scalar"||q.type==="single-quoted-scalar"||q.type==="double-quoted-scalar"||q.type==="block-scalar");function P7(q){switch(q){case i$:return"<BOM>";case s$:return"<DOC>";case r$:return"<FLOW_END>";case n$:return"<SCALAR>";default:return JSON.stringify(q)}}function F7(q){switch(q){case i$:return"byte-order-mark";case s$:return"doc-mode";case r$:return"flow-error-end";case n$:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
115
115
  `:case`\r
116
- `: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(q[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}L1.createScalarToken=l$.createScalarToken;L1.resolveAsScalar=l$.resolveAsScalar;L1.setScalarValue=l$.setScalarValue;L1.stringify=Q1.stringify;L1.visit=B1.visit;L1.BOM=c$;L1.DOCUMENT=a$;L1.FLOW_END=s$;L1.SCALAR=i$;L1.isCollection=Y1;L1.isScalar=V1;L1.prettyToken=W1;L1.tokenType=O1});var n$=T((C1)=>{var c0=Cq();function y(q){switch(q){case void 0:case" ":case`
117
- `:case"\r":case"\t":return!0;default:return!1}}var t2=new Set("0123456789ABCDEFabcdef"),S1=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Eq=new Set(",[]{}"),j1=new Set(` ,[]{}
118
- \r `),r$=(q)=>!q||j1.has(q);class e2{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(q,$=!1){if(q){if(typeof q!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+q:q,this.lineEndPos=null}this.atEnd=!$;let U=this.next??"stream";while(U&&($||this.hasChars(1)))U=yield*this.parseNext(U)}atLineEnd(){let q=this.pos,$=this.buffer[q];while($===" "||$==="\t")$=this.buffer[++q];if(!$||$==="#"||$===`
116
+ `: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(q[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}I7.createScalarToken=a$.createScalarToken;I7.resolveAsScalar=a$.resolveAsScalar;I7.setScalarValue=a$.setScalarValue;I7.stringify=W7.stringify;I7.visit=L7.visit;I7.BOM=i$;I7.DOCUMENT=s$;I7.FLOW_END=r$;I7.SCALAR=n$;I7.isCollection=D7;I7.isScalar=_7;I7.prettyToken=P7;I7.tokenType=F7});var t$=D((x7)=>{var a0=Eq();function y(q){switch(q){case void 0:case" ":case`
117
+ `:case"\r":case"\t":return!0;default:return!1}}var $9=new Set("0123456789ABCDEFabcdef"),f7=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),gq=new Set(",[]{}"),y7=new Set(` ,[]{}
118
+ \r `),o$=(q)=>!q||y7.has(q);class U9{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(q,$=!1){if(q){if(typeof q!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+q:q,this.lineEndPos=null}this.atEnd=!$;let U=this.next??"stream";while(U&&($||this.hasChars(1)))U=yield*this.parseNext(U)}atLineEnd(){let q=this.pos,$=this.buffer[q];while($===" "||$==="\t")$=this.buffer[++q];if(!$||$==="#"||$===`
119
119
  `)return!0;if($==="\r")return this.buffer[q+1]===`
120
120
  `;return!1}charAt(q){return this.buffer[this.pos+q]}continueScalar(q){let $=this.buffer[q];if(this.indentNext>0){let U=0;while($===" ")$=this.buffer[++U+q];if($==="\r"){let Z=this.buffer[U+q+1];if(Z===`
121
121
  `||!Z&&!this.atEnd)return q+U+1}return $===`
122
122
  `||U>=this.indentNext||!$&&!this.atEnd?q+U:-1}if($==="-"||$==="."){let U=this.buffer.substr(q,3);if((U==="---"||U==="...")&&y(this.buffer[q+3]))return-1}return q}getLine(){let q=this.lineEndPos;if(typeof q!=="number"||q!==-1&&q<this.pos)q=this.buffer.indexOf(`
123
- `,this.pos),this.lineEndPos=q;if(q===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[q-1]==="\r")q-=1;return this.buffer.substring(this.pos,q)}hasChars(q){return this.pos+q<=this.buffer.length}setNext(q){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=q,null}peek(q){return this.buffer.substr(this.pos,q)}*parseNext(q){switch(q){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 q=this.getLine();if(q===null)return this.setNext("stream");if(q[0]===c0.BOM)yield*this.pushCount(1),q=q.substring(1);if(q[0]==="%"){let $=q.length,U=q.indexOf("#");while(U!==-1){let H=q[U-1];if(H===" "||H==="\t"){$=U-1;break}else U=q.indexOf("#",U+1)}while(!0){let H=q[$-1];if(H===" "||H==="\t")$-=1;else break}let Z=(yield*this.pushCount($))+(yield*this.pushSpaces(!0));return yield*this.pushCount(q.length-Z),this.pushNewline(),"stream"}if(this.atLineEnd()){let $=yield*this.pushSpaces(!0);return yield*this.pushCount(q.length-$),yield*this.pushNewline(),"stream"}return yield c0.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let q=this.charAt(0);if(!q&&!this.atEnd)return this.setNext("line-start");if(q==="-"||q==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let $=this.peek(3);if(($==="---"||$==="...")&&y(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,$==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!y(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[q,$]=this.peek(2);if(!$&&!this.atEnd)return this.setNext("block-start");if((q==="-"||q==="?"||q===":")&&y($)){let U=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=U,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let q=this.getLine();if(q===null)return this.setNext("doc");let $=yield*this.pushIndicators();switch(q[$]){case"#":yield*this.pushCount(q.length-$);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(r$),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return $+=yield*this.parseBlockScalarHeader(),$+=yield*this.pushSpaces(!0),yield*this.pushCount(q.length-$),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let q,$,U=-1;do{if(q=yield*this.pushNewline(),q>0)$=yield*this.pushSpaces(!1),this.indentValue=U=$;else $=0;$+=yield*this.pushSpaces(!0)}while(q+$>0);let Z=this.getLine();if(Z===null)return this.setNext("flow");if(U!==-1&&U<this.indentNext&&Z[0]!=="#"||U===0&&(Z.startsWith("---")||Z.startsWith("..."))&&y(Z[3])){if(!(U===this.indentNext-1&&this.flowLevel===1&&(Z[0]==="]"||Z[0]==="}")))return this.flowLevel=0,yield c0.FLOW_END,yield*this.parseLineStart()}let H=0;while(Z[H]===",")H+=yield*this.pushCount(1),H+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(H+=yield*this.pushIndicators(),Z[H]){case void 0:return"flow";case"#":return yield*this.pushCount(Z.length-H),"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(r$),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let z=this.charAt(1);if(this.flowKey||y(z)||z===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let q=this.charAt(0),$=this.buffer.indexOf(q,this.pos+1);if(q==="'")while($!==-1&&this.buffer[$+1]==="'")$=this.buffer.indexOf("'",$+2);else while($!==-1){let H=0;while(this.buffer[$-1-H]==="\\")H+=1;if(H%2===0)break;$=this.buffer.indexOf('"',$+1)}let U=this.buffer.substring(0,$),Z=U.indexOf(`
124
- `,this.pos);if(Z!==-1){while(Z!==-1){let H=this.continueScalar(Z+1);if(H===-1)break;Z=U.indexOf(`
125
- `,H)}if(Z!==-1)$=Z-(U[Z-1]==="\r"?2:1)}if($===-1){if(!this.atEnd)return this.setNext("quoted-scalar");$=this.buffer.length}return yield*this.pushToIndex($+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let q=this.pos;while(!0){let $=this.buffer[++q];if($==="+")this.blockScalarKeep=!0;else if($>"0"&&$<="9")this.blockScalarIndent=Number($)-1;else if($!=="-")break}return yield*this.pushUntil(($)=>y($)||$==="#")}*parseBlockScalar(){let q=this.pos-1,$=0,U;q:for(let H=this.pos;U=this.buffer[H];++H)switch(U){case" ":$+=1;break;case`
126
- `:q=H,$=0;break;case"\r":{let z=this.buffer[H+1];if(!z&&!this.atEnd)return this.setNext("block-scalar");if(z===`
127
- `)break}default:break q}if(!U&&!this.atEnd)return this.setNext("block-scalar");if($>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=$;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let H=this.continueScalar(q+1);if(H===-1)break;q=this.buffer.indexOf(`
128
- `,H)}while(q!==-1);if(q===-1){if(!this.atEnd)return this.setNext("block-scalar");q=this.buffer.length}}let Z=q+1;U=this.buffer[Z];while(U===" ")U=this.buffer[++Z];if(U==="\t"){while(U==="\t"||U===" "||U==="\r"||U===`
129
- `)U=this.buffer[++Z];q=Z-1}else if(!this.blockScalarKeep)do{let H=q-1,z=this.buffer[H];if(z==="\r")z=this.buffer[--H];let X=H;while(z===" ")z=this.buffer[--H];if(z===`
130
- `&&H>=this.pos&&H+1+$>X)q=H;else break}while(!0);return yield c0.SCALAR,yield*this.pushToIndex(q+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let q=this.flowLevel>0,$=this.pos-1,U=this.pos-1,Z;while(Z=this.buffer[++U])if(Z===":"){let H=this.buffer[U+1];if(y(H)||q&&Eq.has(H))break;$=U}else if(y(Z)){let H=this.buffer[U+1];if(Z==="\r")if(H===`
123
+ `,this.pos),this.lineEndPos=q;if(q===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[q-1]==="\r")q-=1;return this.buffer.substring(this.pos,q)}hasChars(q){return this.pos+q<=this.buffer.length}setNext(q){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=q,null}peek(q){return this.buffer.substr(this.pos,q)}*parseNext(q){switch(q){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 q=this.getLine();if(q===null)return this.setNext("stream");if(q[0]===a0.BOM)yield*this.pushCount(1),q=q.substring(1);if(q[0]==="%"){let $=q.length,U=q.indexOf("#");while(U!==-1){let z=q[U-1];if(z===" "||z==="\t"){$=U-1;break}else U=q.indexOf("#",U+1)}while(!0){let z=q[$-1];if(z===" "||z==="\t")$-=1;else break}let Z=(yield*this.pushCount($))+(yield*this.pushSpaces(!0));return yield*this.pushCount(q.length-Z),this.pushNewline(),"stream"}if(this.atLineEnd()){let $=yield*this.pushSpaces(!0);return yield*this.pushCount(q.length-$),yield*this.pushNewline(),"stream"}return yield a0.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let q=this.charAt(0);if(!q&&!this.atEnd)return this.setNext("line-start");if(q==="-"||q==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let $=this.peek(3);if(($==="---"||$==="...")&&y(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,$==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!y(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[q,$]=this.peek(2);if(!$&&!this.atEnd)return this.setNext("block-start");if((q==="-"||q==="?"||q===":")&&y($)){let U=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=U,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let q=this.getLine();if(q===null)return this.setNext("doc");let $=yield*this.pushIndicators();switch(q[$]){case"#":yield*this.pushCount(q.length-$);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(o$),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return $+=yield*this.parseBlockScalarHeader(),$+=yield*this.pushSpaces(!0),yield*this.pushCount(q.length-$),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let q,$,U=-1;do{if(q=yield*this.pushNewline(),q>0)$=yield*this.pushSpaces(!1),this.indentValue=U=$;else $=0;$+=yield*this.pushSpaces(!0)}while(q+$>0);let Z=this.getLine();if(Z===null)return this.setNext("flow");if(U!==-1&&U<this.indentNext&&Z[0]!=="#"||U===0&&(Z.startsWith("---")||Z.startsWith("..."))&&y(Z[3])){if(!(U===this.indentNext-1&&this.flowLevel===1&&(Z[0]==="]"||Z[0]==="}")))return this.flowLevel=0,yield a0.FLOW_END,yield*this.parseLineStart()}let z=0;while(Z[z]===",")z+=yield*this.pushCount(1),z+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(z+=yield*this.pushIndicators(),Z[z]){case void 0:return"flow";case"#":return yield*this.pushCount(Z.length-z),"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(o$),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let H=this.charAt(1);if(this.flowKey||y(H)||H===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let q=this.charAt(0),$=this.buffer.indexOf(q,this.pos+1);if(q==="'")while($!==-1&&this.buffer[$+1]==="'")$=this.buffer.indexOf("'",$+2);else while($!==-1){let z=0;while(this.buffer[$-1-z]==="\\")z+=1;if(z%2===0)break;$=this.buffer.indexOf('"',$+1)}let U=this.buffer.substring(0,$),Z=U.indexOf(`
124
+ `,this.pos);if(Z!==-1){while(Z!==-1){let z=this.continueScalar(Z+1);if(z===-1)break;Z=U.indexOf(`
125
+ `,z)}if(Z!==-1)$=Z-(U[Z-1]==="\r"?2:1)}if($===-1){if(!this.atEnd)return this.setNext("quoted-scalar");$=this.buffer.length}return yield*this.pushToIndex($+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let q=this.pos;while(!0){let $=this.buffer[++q];if($==="+")this.blockScalarKeep=!0;else if($>"0"&&$<="9")this.blockScalarIndent=Number($)-1;else if($!=="-")break}return yield*this.pushUntil(($)=>y($)||$==="#")}*parseBlockScalar(){let q=this.pos-1,$=0,U;q:for(let z=this.pos;U=this.buffer[z];++z)switch(U){case" ":$+=1;break;case`
126
+ `:q=z,$=0;break;case"\r":{let H=this.buffer[z+1];if(!H&&!this.atEnd)return this.setNext("block-scalar");if(H===`
127
+ `)break}default:break q}if(!U&&!this.atEnd)return this.setNext("block-scalar");if($>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=$;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let z=this.continueScalar(q+1);if(z===-1)break;q=this.buffer.indexOf(`
128
+ `,z)}while(q!==-1);if(q===-1){if(!this.atEnd)return this.setNext("block-scalar");q=this.buffer.length}}let Z=q+1;U=this.buffer[Z];while(U===" ")U=this.buffer[++Z];if(U==="\t"){while(U==="\t"||U===" "||U==="\r"||U===`
129
+ `)U=this.buffer[++Z];q=Z-1}else if(!this.blockScalarKeep)do{let z=q-1,H=this.buffer[z];if(H==="\r")H=this.buffer[--z];let X=z;while(H===" ")H=this.buffer[--z];if(H===`
130
+ `&&z>=this.pos&&z+1+$>X)q=z;else break}while(!0);return yield a0.SCALAR,yield*this.pushToIndex(q+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let q=this.flowLevel>0,$=this.pos-1,U=this.pos-1,Z;while(Z=this.buffer[++U])if(Z===":"){let z=this.buffer[U+1];if(y(z)||q&&gq.has(z))break;$=U}else if(y(Z)){let z=this.buffer[U+1];if(Z==="\r")if(z===`
131
131
  `)U+=1,Z=`
132
- `,H=this.buffer[U+1];else $=U;if(H==="#"||q&&Eq.has(H))break;if(Z===`
133
- `){let z=this.continueScalar(U+1);if(z===-1)break;U=Math.max(U,z-2)}}else{if(q&&Eq.has(Z))break;$=U}if(!Z&&!this.atEnd)return this.setNext("plain-scalar");return yield c0.SCALAR,yield*this.pushToIndex($+1,!0),q?"flow":"doc"}*pushCount(q){if(q>0)return yield this.buffer.substr(this.pos,q),this.pos+=q,q;return 0}*pushToIndex(q,$){let U=this.buffer.slice(this.pos,q);if(U)return yield U,this.pos+=U.length,U.length;else if($)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(r$))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let q=this.flowLevel>0,$=this.charAt(1);if(y($)||q&&Eq.has($)){if(!q)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let q=this.pos+2,$=this.buffer[q];while(!y($)&&$!==">")$=this.buffer[++q];return yield*this.pushToIndex($===">"?q+1:q,!1)}else{let q=this.pos+1,$=this.buffer[q];while($)if(S1.has($))$=this.buffer[++q];else if($==="%"&&t2.has(this.buffer[q+1])&&t2.has(this.buffer[q+2]))$=this.buffer[q+=3];else break;return yield*this.pushToIndex(q,!1)}}*pushNewline(){let q=this.buffer[this.pos];if(q===`
132
+ `,z=this.buffer[U+1];else $=U;if(z==="#"||q&&gq.has(z))break;if(Z===`
133
+ `){let H=this.continueScalar(U+1);if(H===-1)break;U=Math.max(U,H-2)}}else{if(q&&gq.has(Z))break;$=U}if(!Z&&!this.atEnd)return this.setNext("plain-scalar");return yield a0.SCALAR,yield*this.pushToIndex($+1,!0),q?"flow":"doc"}*pushCount(q){if(q>0)return yield this.buffer.substr(this.pos,q),this.pos+=q,q;return 0}*pushToIndex(q,$){let U=this.buffer.slice(this.pos,q);if(U)return yield U,this.pos+=U.length,U.length;else if($)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(o$))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let q=this.flowLevel>0,$=this.charAt(1);if(y($)||q&&gq.has($)){if(!q)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let q=this.pos+2,$=this.buffer[q];while(!y($)&&$!==">")$=this.buffer[++q];return yield*this.pushToIndex($===">"?q+1:q,!1)}else{let q=this.pos+1,$=this.buffer[q];while($)if(f7.has($))$=this.buffer[++q];else if($==="%"&&$9.has(this.buffer[q+1])&&$9.has(this.buffer[q+2]))$=this.buffer[q+=3];else break;return yield*this.pushToIndex(q,!1)}}*pushNewline(){let q=this.buffer[this.pos];if(q===`
134
134
  `)return yield*this.pushCount(1);else if(q==="\r"&&this.charAt(1)===`
135
- `)return yield*this.pushCount(2);else return 0}*pushSpaces(q){let $=this.pos-1,U;do U=this.buffer[++$];while(U===" "||q&&U==="\t");let Z=$-this.pos;if(Z>0)yield this.buffer.substr(this.pos,Z),this.pos=$;return Z}*pushUntil(q){let $=this.pos,U=this.buffer[$];while(!q(U))U=this.buffer[++$];return yield*this.pushToIndex($,!1)}}C1.Lexer=e2});var o$=T((g1)=>{class q9{constructor(){this.lineStarts=[],this.addNewLine=(q)=>this.lineStarts.push(q),this.linePos=(q)=>{let $=0,U=this.lineStarts.length;while($<U){let H=$+U>>1;if(this.lineStarts[H]<q)$=H+1;else U=H}if(this.lineStarts[$]===q)return{line:$+1,col:1};if($===0)return{line:0,col:q};let Z=this.lineStarts[$-1];return{line:$,col:q-Z+1}}}}g1.LineCounter=q9});var t$=T((h1)=>{var y1=I0("process"),$9=Cq(),x1=n$();function n(q,$){for(let U=0;U<q.length;++U)if(q[U].type===$)return!0;return!1}function U9(q){for(let $=0;$<q.length;++$)switch(q[$].type){case"space":case"comment":case"newline":break;default:return $}return-1}function H9(q){switch(q?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function gq(q){switch(q.type){case"document":return q.start;case"block-map":{let $=q.items[q.items.length-1];return $.sep??$.start}case"block-seq":return q.items[q.items.length-1].start;default:return[]}}function _0(q){if(q.length===0)return[];let $=q.length;q:while(--$>=0)switch(q[$].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break q}while(q[++$]?.type==="space");return q.splice($,q.length)}function Z9(q){if(q.start.type==="flow-seq-start"){for(let $ of q.items)if($.sep&&!$.value&&!n($.start,"explicit-key-ind")&&!n($.sep,"map-value-ind")){if($.key)$.value=$.key;if(delete $.key,H9($.value))if($.value.end)Array.prototype.push.apply($.value.end,$.sep);else $.value.end=$.sep;else Array.prototype.push.apply($.start,$.sep);delete $.sep}}}class z9{constructor(q){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new x1.Lexer,this.onNewLine=q}*parse(q,$=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let U of this.lexer.lex(q,$))yield*this.next(U);if(!$)yield*this.end()}*next(q){if(this.source=q,y1.env.LOG_TOKENS)console.log("|",$9.prettyToken(q));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=q.length;return}let $=$9.tokenType(q);if(!$){let U=`Not a YAML token: ${q}`;yield*this.pop({type:"error",offset:this.offset,message:U,source:q}),this.offset+=q.length}else if($==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=$,yield*this.step(),$){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+q.length);break;case"space":if(this.atNewLine&&q[0]===" ")this.indent+=q.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=q.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=q.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 q=this.peek(1);if(this.type==="doc-end"&&q?.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(!q)return yield*this.stream();switch(q.type){case"document":return yield*this.document(q);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(q);case"block-scalar":return yield*this.blockScalar(q);case"block-map":return yield*this.blockMap(q);case"block-seq":return yield*this.blockSequence(q);case"flow-collection":return yield*this.flowCollection(q);case"doc-end":return yield*this.documentEnd(q)}yield*this.pop()}peek(q){return this.stack[this.stack.length-q]}*pop(q){let $=q??this.stack.pop();if(!$)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield $;else{let U=this.peek(1);if($.type==="block-scalar")$.indent="indent"in U?U.indent:0;else if($.type==="flow-collection"&&U.type==="document")$.indent=0;if($.type==="flow-collection")Z9($);switch(U.type){case"document":U.value=$;break;case"block-scalar":U.props.push($);break;case"block-map":{let Z=U.items[U.items.length-1];if(Z.value){U.items.push({start:[],key:$,sep:[]}),this.onKeyLine=!0;return}else if(Z.sep)Z.value=$;else{Object.assign(Z,{key:$,sep:[]}),this.onKeyLine=!Z.explicitKey;return}break}case"block-seq":{let Z=U.items[U.items.length-1];if(Z.value)U.items.push({start:[],value:$});else Z.value=$;break}case"flow-collection":{let Z=U.items[U.items.length-1];if(!Z||Z.value)U.items.push({start:[],key:$,sep:[]});else if(Z.sep)Z.value=$;else Object.assign(Z,{key:$,sep:[]});return}default:yield*this.pop(),yield*this.pop($)}if((U.type==="document"||U.type==="block-map"||U.type==="block-seq")&&($.type==="block-map"||$.type==="block-seq")){let Z=$.items[$.items.length-1];if(Z&&!Z.sep&&!Z.value&&Z.start.length>0&&U9(Z.start)===-1&&($.indent===0||Z.start.every((H)=>H.type!=="comment"||H.indent<$.indent))){if(U.type==="document")U.end=Z.start;else U.items.push({start:Z.start});$.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 q={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")q.start.push(this.sourceToken);this.stack.push(q);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(q){if(q.value)return yield*this.lineEnd(q);switch(this.type){case"doc-start":{if(U9(q.start)!==-1)yield*this.pop(),yield*this.step();else q.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":q.start.push(this.sourceToken);return}let $=this.startBlockValue(q);if($)this.stack.push($);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(q){if(this.type==="map-value-ind"){let $=gq(this.peek(2)),U=_0($),Z;if(q.end)Z=q.end,Z.push(this.sourceToken),delete q.end;else Z=[this.sourceToken];let H={type:"block-map",offset:q.offset,indent:q.indent,items:[{start:U,key:q,sep:Z}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=H}else yield*this.lineEnd(q)}*blockScalar(q){switch(this.type){case"space":case"comment":case"newline":q.props.push(this.sourceToken);return;case"scalar":if(q.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let $=this.source.indexOf(`
135
+ `)return yield*this.pushCount(2);else return 0}*pushSpaces(q){let $=this.pos-1,U;do U=this.buffer[++$];while(U===" "||q&&U==="\t");let Z=$-this.pos;if(Z>0)yield this.buffer.substr(this.pos,Z),this.pos=$;return Z}*pushUntil(q){let $=this.pos,U=this.buffer[$];while(!q(U))U=this.buffer[++$];return yield*this.pushToIndex($,!1)}}x7.Lexer=U9});var e$=D((u7)=>{class Z9{constructor(){this.lineStarts=[],this.addNewLine=(q)=>this.lineStarts.push(q),this.linePos=(q)=>{let $=0,U=this.lineStarts.length;while($<U){let z=$+U>>1;if(this.lineStarts[z]<q)$=z+1;else U=z}if(this.lineStarts[$]===q)return{line:$+1,col:1};if($===0)return{line:0,col:q};let Z=this.lineStarts[$-1];return{line:$,col:q-Z+1}}}}u7.LineCounter=Z9});var qU=D((p7)=>{var v7=I0("process"),z9=Eq(),m7=t$();function o(q,$){for(let U=0;U<q.length;++U)if(q[U].type===$)return!0;return!1}function H9(q){for(let $=0;$<q.length;++$)switch(q[$].type){case"space":case"comment":case"newline":break;default:return $}return-1}function G9(q){switch(q?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function fq(q){switch(q.type){case"document":return q.start;case"block-map":{let $=q.items[q.items.length-1];return $.sep??$.start}case"block-seq":return q.items[q.items.length-1].start;default:return[]}}function _0(q){if(q.length===0)return[];let $=q.length;q:while(--$>=0)switch(q[$].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break q}while(q[++$]?.type==="space");return q.splice($,q.length)}function X9(q){if(q.start.type==="flow-seq-start"){for(let $ of q.items)if($.sep&&!$.value&&!o($.start,"explicit-key-ind")&&!o($.sep,"map-value-ind")){if($.key)$.value=$.key;if(delete $.key,G9($.value))if($.value.end)Array.prototype.push.apply($.value.end,$.sep);else $.value.end=$.sep;else Array.prototype.push.apply($.start,$.sep);delete $.sep}}}class J9{constructor(q){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new m7.Lexer,this.onNewLine=q}*parse(q,$=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let U of this.lexer.lex(q,$))yield*this.next(U);if(!$)yield*this.end()}*next(q){if(this.source=q,v7.env.LOG_TOKENS)console.log("|",z9.prettyToken(q));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=q.length;return}let $=z9.tokenType(q);if(!$){let U=`Not a YAML token: ${q}`;yield*this.pop({type:"error",offset:this.offset,message:U,source:q}),this.offset+=q.length}else if($==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=$,yield*this.step(),$){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+q.length);break;case"space":if(this.atNewLine&&q[0]===" ")this.indent+=q.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=q.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=q.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 q=this.peek(1);if(this.type==="doc-end"&&q?.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(!q)return yield*this.stream();switch(q.type){case"document":return yield*this.document(q);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(q);case"block-scalar":return yield*this.blockScalar(q);case"block-map":return yield*this.blockMap(q);case"block-seq":return yield*this.blockSequence(q);case"flow-collection":return yield*this.flowCollection(q);case"doc-end":return yield*this.documentEnd(q)}yield*this.pop()}peek(q){return this.stack[this.stack.length-q]}*pop(q){let $=q??this.stack.pop();if(!$)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield $;else{let U=this.peek(1);if($.type==="block-scalar")$.indent="indent"in U?U.indent:0;else if($.type==="flow-collection"&&U.type==="document")$.indent=0;if($.type==="flow-collection")X9($);switch(U.type){case"document":U.value=$;break;case"block-scalar":U.props.push($);break;case"block-map":{let Z=U.items[U.items.length-1];if(Z.value){U.items.push({start:[],key:$,sep:[]}),this.onKeyLine=!0;return}else if(Z.sep)Z.value=$;else{Object.assign(Z,{key:$,sep:[]}),this.onKeyLine=!Z.explicitKey;return}break}case"block-seq":{let Z=U.items[U.items.length-1];if(Z.value)U.items.push({start:[],value:$});else Z.value=$;break}case"flow-collection":{let Z=U.items[U.items.length-1];if(!Z||Z.value)U.items.push({start:[],key:$,sep:[]});else if(Z.sep)Z.value=$;else Object.assign(Z,{key:$,sep:[]});return}default:yield*this.pop(),yield*this.pop($)}if((U.type==="document"||U.type==="block-map"||U.type==="block-seq")&&($.type==="block-map"||$.type==="block-seq")){let Z=$.items[$.items.length-1];if(Z&&!Z.sep&&!Z.value&&Z.start.length>0&&H9(Z.start)===-1&&($.indent===0||Z.start.every((z)=>z.type!=="comment"||z.indent<$.indent))){if(U.type==="document")U.end=Z.start;else U.items.push({start:Z.start});$.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 q={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")q.start.push(this.sourceToken);this.stack.push(q);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(q){if(q.value)return yield*this.lineEnd(q);switch(this.type){case"doc-start":{if(H9(q.start)!==-1)yield*this.pop(),yield*this.step();else q.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":q.start.push(this.sourceToken);return}let $=this.startBlockValue(q);if($)this.stack.push($);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(q){if(this.type==="map-value-ind"){let $=fq(this.peek(2)),U=_0($),Z;if(q.end)Z=q.end,Z.push(this.sourceToken),delete q.end;else Z=[this.sourceToken];let z={type:"block-map",offset:q.offset,indent:q.indent,items:[{start:U,key:q,sep:Z}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=z}else yield*this.lineEnd(q)}*blockScalar(q){switch(this.type){case"space":case"comment":case"newline":q.props.push(this.sourceToken);return;case"scalar":if(q.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let $=this.source.indexOf(`
136
136
  `)+1;while($!==0)this.onNewLine(this.offset+$),$=this.source.indexOf(`
137
- `,$)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(q){let $=q.items[q.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,$.value){let U="end"in $.value?$.value.end:void 0;if((Array.isArray(U)?U[U.length-1]:void 0)?.type==="comment")U?.push(this.sourceToken);else q.items.push({start:[this.sourceToken]})}else if($.sep)$.sep.push(this.sourceToken);else $.start.push(this.sourceToken);return;case"space":case"comment":if($.value)q.items.push({start:[this.sourceToken]});else if($.sep)$.sep.push(this.sourceToken);else{if(this.atIndentedComment($.start,q.indent)){let Z=q.items[q.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,$.start),Z.push(this.sourceToken),q.items.pop();return}}$.start.push(this.sourceToken)}return}if(this.indent>=q.indent){let U=!this.onKeyLine&&this.indent===q.indent,Z=U&&($.sep||$.explicitKey)&&this.type!=="seq-item-ind",H=[];if(Z&&$.sep&&!$.value){let z=[];for(let X=0;X<$.sep.length;++X){let G=$.sep[X];switch(G.type){case"newline":z.push(X);break;case"space":break;case"comment":if(G.indent>q.indent)z.length=0;break;default:z.length=0}}if(z.length>=2)H=$.sep.splice(z[1])}switch(this.type){case"anchor":case"tag":if(Z||$.value)H.push(this.sourceToken),q.items.push({start:H}),this.onKeyLine=!0;else if($.sep)$.sep.push(this.sourceToken);else $.start.push(this.sourceToken);return;case"explicit-key-ind":if(!$.sep&&!$.explicitKey)$.start.push(this.sourceToken),$.explicitKey=!0;else if(Z||$.value)H.push(this.sourceToken),q.items.push({start:H,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($.explicitKey)if(!$.sep)if(n($.start,"newline"))Object.assign($,{key:null,sep:[this.sourceToken]});else{let z=_0($.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]})}else if($.value)q.items.push({start:[],key:null,sep:[this.sourceToken]});else if(n($.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:H,key:null,sep:[this.sourceToken]}]});else if(H9($.key)&&!n($.sep,"newline")){let z=_0($.start),X=$.key,G=$.sep;G.push(this.sourceToken),delete $.key,delete $.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:X,sep:G}]})}else if(H.length>0)$.sep=$.sep.concat(H,this.sourceToken);else $.sep.push(this.sourceToken);else if(!$.sep)Object.assign($,{key:null,sep:[this.sourceToken]});else if($.value||Z)q.items.push({start:H,key:null,sep:[this.sourceToken]});else if(n($.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else $.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let z=this.flowScalar(this.type);if(Z||$.value)q.items.push({start:H,key:z,sep:[]}),this.onKeyLine=!0;else if($.sep)this.stack.push(z);else Object.assign($,{key:z,sep:[]}),this.onKeyLine=!0;return}default:{let z=this.startBlockValue(q);if(z){if(z.type==="block-seq"){if(!$.explicitKey&&$.sep&&!n($.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(U)q.items.push({start:H});this.stack.push(z);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(q){let $=q.items[q.items.length-1];switch(this.type){case"newline":if($.value){let U="end"in $.value?$.value.end:void 0;if((Array.isArray(U)?U[U.length-1]:void 0)?.type==="comment")U?.push(this.sourceToken);else q.items.push({start:[this.sourceToken]})}else $.start.push(this.sourceToken);return;case"space":case"comment":if($.value)q.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment($.start,q.indent)){let Z=q.items[q.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,$.start),Z.push(this.sourceToken),q.items.pop();return}}$.start.push(this.sourceToken)}return;case"anchor":case"tag":if($.value||this.indent<=q.indent)break;$.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==q.indent)break;if($.value||n($.start,"seq-item-ind"))q.items.push({start:[this.sourceToken]});else $.start.push(this.sourceToken);return}if(this.indent>q.indent){let U=this.startBlockValue(q);if(U){this.stack.push(U);return}}yield*this.pop(),yield*this.step()}*flowCollection(q){let $=q.items[q.items.length-1];if(this.type==="flow-error-end"){let U;do yield*this.pop(),U=this.peek(1);while(U?.type==="flow-collection")}else if(q.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!$||$.sep)q.items.push({start:[this.sourceToken]});else $.start.push(this.sourceToken);return;case"map-value-ind":if(!$||$.value)q.items.push({start:[],key:null,sep:[this.sourceToken]});else if($.sep)$.sep.push(this.sourceToken);else Object.assign($,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!$||$.value)q.items.push({start:[this.sourceToken]});else if($.sep)$.sep.push(this.sourceToken);else $.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Z=this.flowScalar(this.type);if(!$||$.value)q.items.push({start:[],key:Z,sep:[]});else if($.sep)this.stack.push(Z);else Object.assign($,{key:Z,sep:[]});return}case"flow-map-end":case"flow-seq-end":q.end.push(this.sourceToken);return}let U=this.startBlockValue(q);if(U)this.stack.push(U);else yield*this.pop(),yield*this.step()}else{let U=this.peek(2);if(U.type==="block-map"&&(this.type==="map-value-ind"&&U.indent===q.indent||this.type==="newline"&&!U.items[U.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&U.type!=="flow-collection"){let Z=gq(U),H=_0(Z);Z9(q);let z=q.end.splice(1,q.end.length);z.push(this.sourceToken);let X={type:"block-map",offset:q.offset,indent:q.indent,items:[{start:H,key:q,sep:z}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=X}else yield*this.lineEnd(q)}}flowScalar(q){if(this.onNewLine){let $=this.source.indexOf(`
137
+ `,$)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(q){let $=q.items[q.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,$.value){let U="end"in $.value?$.value.end:void 0;if((Array.isArray(U)?U[U.length-1]:void 0)?.type==="comment")U?.push(this.sourceToken);else q.items.push({start:[this.sourceToken]})}else if($.sep)$.sep.push(this.sourceToken);else $.start.push(this.sourceToken);return;case"space":case"comment":if($.value)q.items.push({start:[this.sourceToken]});else if($.sep)$.sep.push(this.sourceToken);else{if(this.atIndentedComment($.start,q.indent)){let Z=q.items[q.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,$.start),Z.push(this.sourceToken),q.items.pop();return}}$.start.push(this.sourceToken)}return}if(this.indent>=q.indent){let U=!this.onKeyLine&&this.indent===q.indent,Z=U&&($.sep||$.explicitKey)&&this.type!=="seq-item-ind",z=[];if(Z&&$.sep&&!$.value){let H=[];for(let X=0;X<$.sep.length;++X){let G=$.sep[X];switch(G.type){case"newline":H.push(X);break;case"space":break;case"comment":if(G.indent>q.indent)H.length=0;break;default:H.length=0}}if(H.length>=2)z=$.sep.splice(H[1])}switch(this.type){case"anchor":case"tag":if(Z||$.value)z.push(this.sourceToken),q.items.push({start:z}),this.onKeyLine=!0;else if($.sep)$.sep.push(this.sourceToken);else $.start.push(this.sourceToken);return;case"explicit-key-ind":if(!$.sep&&!$.explicitKey)$.start.push(this.sourceToken),$.explicitKey=!0;else if(Z||$.value)z.push(this.sourceToken),q.items.push({start:z,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($.explicitKey)if(!$.sep)if(o($.start,"newline"))Object.assign($,{key:null,sep:[this.sourceToken]});else{let H=_0($.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:H,key:null,sep:[this.sourceToken]}]})}else if($.value)q.items.push({start:[],key:null,sep:[this.sourceToken]});else if(o($.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]});else if(G9($.key)&&!o($.sep,"newline")){let H=_0($.start),X=$.key,G=$.sep;G.push(this.sourceToken),delete $.key,delete $.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:H,key:X,sep:G}]})}else if(z.length>0)$.sep=$.sep.concat(z,this.sourceToken);else $.sep.push(this.sourceToken);else if(!$.sep)Object.assign($,{key:null,sep:[this.sourceToken]});else if($.value||Z)q.items.push({start:z,key:null,sep:[this.sourceToken]});else if(o($.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else $.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let H=this.flowScalar(this.type);if(Z||$.value)q.items.push({start:z,key:H,sep:[]}),this.onKeyLine=!0;else if($.sep)this.stack.push(H);else Object.assign($,{key:H,sep:[]}),this.onKeyLine=!0;return}default:{let H=this.startBlockValue(q);if(H){if(H.type==="block-seq"){if(!$.explicitKey&&$.sep&&!o($.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(U)q.items.push({start:z});this.stack.push(H);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(q){let $=q.items[q.items.length-1];switch(this.type){case"newline":if($.value){let U="end"in $.value?$.value.end:void 0;if((Array.isArray(U)?U[U.length-1]:void 0)?.type==="comment")U?.push(this.sourceToken);else q.items.push({start:[this.sourceToken]})}else $.start.push(this.sourceToken);return;case"space":case"comment":if($.value)q.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment($.start,q.indent)){let Z=q.items[q.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,$.start),Z.push(this.sourceToken),q.items.pop();return}}$.start.push(this.sourceToken)}return;case"anchor":case"tag":if($.value||this.indent<=q.indent)break;$.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==q.indent)break;if($.value||o($.start,"seq-item-ind"))q.items.push({start:[this.sourceToken]});else $.start.push(this.sourceToken);return}if(this.indent>q.indent){let U=this.startBlockValue(q);if(U){this.stack.push(U);return}}yield*this.pop(),yield*this.step()}*flowCollection(q){let $=q.items[q.items.length-1];if(this.type==="flow-error-end"){let U;do yield*this.pop(),U=this.peek(1);while(U?.type==="flow-collection")}else if(q.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!$||$.sep)q.items.push({start:[this.sourceToken]});else $.start.push(this.sourceToken);return;case"map-value-ind":if(!$||$.value)q.items.push({start:[],key:null,sep:[this.sourceToken]});else if($.sep)$.sep.push(this.sourceToken);else Object.assign($,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!$||$.value)q.items.push({start:[this.sourceToken]});else if($.sep)$.sep.push(this.sourceToken);else $.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Z=this.flowScalar(this.type);if(!$||$.value)q.items.push({start:[],key:Z,sep:[]});else if($.sep)this.stack.push(Z);else Object.assign($,{key:Z,sep:[]});return}case"flow-map-end":case"flow-seq-end":q.end.push(this.sourceToken);return}let U=this.startBlockValue(q);if(U)this.stack.push(U);else yield*this.pop(),yield*this.step()}else{let U=this.peek(2);if(U.type==="block-map"&&(this.type==="map-value-ind"&&U.indent===q.indent||this.type==="newline"&&!U.items[U.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&U.type!=="flow-collection"){let Z=fq(U),z=_0(Z);X9(q);let H=q.end.splice(1,q.end.length);H.push(this.sourceToken);let X={type:"block-map",offset:q.offset,indent:q.indent,items:[{start:z,key:q,sep:H}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=X}else yield*this.lineEnd(q)}}flowScalar(q){if(this.onNewLine){let $=this.source.indexOf(`
138
138
  `)+1;while($!==0)this.onNewLine(this.offset+$),$=this.source.indexOf(`
139
- `,$)+1}return{type:q,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(q){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 $=gq(q),U=_0($);return U.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:U,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let $=gq(q),U=_0($);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:U,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(q,$){if(this.type!=="comment")return!1;if(this.indent<=$)return!1;return q.every((U)=>U.type==="newline"||U.type==="space")}*documentEnd(q){if(this.type!=="doc-mode"){if(q.end)q.end.push(this.sourceToken);else q.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(q){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(q.end)q.end.push(this.sourceToken);else q.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}h1.Parser=z9});var B9=T((a1)=>{var X9=m$(),k1=v0(),a0=m0(),v1=oq(),m1=w(),p1=o$(),G9=t$();function J9(q){let $=q.prettyErrors!==!1;return{lineCounter:q.lineCounter||$&&new p1.LineCounter||null,prettyErrors:$}}function d1(q,$={}){let{lineCounter:U,prettyErrors:Z}=J9($),H=new G9.Parser(U?.addNewLine),z=new X9.Composer($),X=Array.from(z.compose(H.parse(q)));if(Z&&U)for(let G of X)G.errors.forEach(a0.prettifyError(q,U)),G.warnings.forEach(a0.prettifyError(q,U));if(X.length>0)return X;return Object.assign([],{empty:!0},z.streamInfo())}function Q9(q,$={}){let{lineCounter:U,prettyErrors:Z}=J9($),H=new G9.Parser(U?.addNewLine),z=new X9.Composer($),X=null;for(let G of z.compose(H.parse(q),!0,q.length))if(!X)X=G;else if(X.options.logLevel!=="silent"){X.errors.push(new a0.YAMLParseError(G.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(Z&&U)X.errors.forEach(a0.prettifyError(q,U)),X.warnings.forEach(a0.prettifyError(q,U));return X}function l1(q,$,U){let Z=void 0;if(typeof $==="function")Z=$;else if(U===void 0&&$&&typeof $==="object")U=$;let H=Q9(q,U);if(!H)return null;if(H.warnings.forEach((z)=>v1.warn(H.options.logLevel,z)),H.errors.length>0)if(H.options.logLevel!=="silent")throw H.errors[0];else H.errors=[];return H.toJS(Object.assign({reviver:Z},U))}function c1(q,$,U){let Z=null;if(typeof $==="function"||Array.isArray($))Z=$;else if(U===void 0&&$)U=$;if(typeof U==="string")U=U.length;if(typeof U==="number"){let H=Math.round(U);U=H<1?void 0:H>8?{indent:8}:{indent:H}}if(q===void 0){let{keepUndefined:H}=U??$??{};if(!H)return}if(m1.isDocument(q)&&!Z)return q.toString(U);return new k1.Document(q,Z,U).toString(U)}a1.parse=l1;a1.parseAllDocuments=d1;a1.parseDocument=Q9;a1.stringify=c1});var t=[{index:1,path:"project.name",description:"Project name",category:"project"},{index:2,path:"project.goal",description:"Goal (use case)",category:"project"},{index:3,path:"project.main_language",description:"Primary language",category:"project"},{index:4,path:"human_context.who",description:"Who is this for?",category:"human"},{index:5,path:"human_context.what",description:"What are they building",category:"human"},{index:6,path:"human_context.why",description:"Why does it exist",category:"human"},{index:7,path:"human_context.where",description:"Where does it run",category:"human"},{index:8,path:"human_context.when",description:"When was it started / timeline",category:"human"},{index:9,path:"human_context.how",description:"How is it built",category:"human"},{index:10,path:"stack.frontend",canonical:"stack.framework",description:"Framework (React, Svelte, etc.)",category:"frontend"},{index:11,path:"stack.css_framework",canonical:"stack.css",description:"CSS framework",category:"frontend"},{index:12,path:"stack.ui_library",description:"UI component library",category:"frontend"},{index:13,path:"stack.state_management",canonical:"stack.state",description:"State management",category:"frontend"},{index:14,path:"stack.backend",description:"Backend framework",category:"backend"},{index:15,path:"stack.api_type",canonical:"stack.api",description:"API style (REST, GraphQL, etc.)",category:"backend"},{index:16,path:"stack.runtime",description:"Runtime (Node, Bun, Python, etc.)",category:"backend"},{index:17,path:"stack.database",canonical:"stack.db",description:"Database",category:"backend"},{index:18,path:"stack.connection",description:"Connection method (Prisma, etc.)",category:"backend"},{index:19,path:"stack.hosting",description:"Hosting platform",category:"universal"},{index:20,path:"stack.build",description:"Build tool",category:"universal"},{index:21,path:"stack.cicd",description:"CI/CD",category:"universal"},{index:22,path:"stack.monorepo_tool",description:"Monorepo tool",category:"enterprise_infra"},{index:23,path:"stack.package_manager",canonical:"stack.pkg_manager",description:"Package manager",category:"enterprise_infra"},{index:24,path:"stack.workspaces",description:"Workspace configuration",category:"enterprise_infra"},{index:25,path:"monorepo.packages_count",description:"Number of packages",category:"enterprise_infra"},{index:26,path:"monorepo.build_orchestrator",description:"Build orchestration tool",category:"enterprise_infra"},{index:27,path:"stack.admin",description:"Admin panel",category:"enterprise_app"},{index:28,path:"stack.cache",description:"Caching layer",category:"enterprise_app"},{index:29,path:"stack.search",description:"Search engine",category:"enterprise_app"},{index:30,path:"stack.storage",description:"Object storage",category:"enterprise_app"},{index:31,path:"monorepo.versioning_strategy",description:"Version strategy",category:"enterprise_ops"},{index:32,path:"monorepo.shared_configs",description:"Shared configs",category:"enterprise_ops"},{index:33,path:"monorepo.remote_cache",description:"Remote build cache",category:"enterprise_ops"}],w9=new Map(t.flatMap((q)=>q.canonical?[[q.path,q],[q.canonical,q]]:[[q.path,q]])),r7=new Map(t.filter((q)=>q.canonical).map((q)=>[q.canonical,q.path])),n7=new Map(t.filter((q)=>q.canonical).map((q)=>[q.path,q.canonical]));function K9(q){return t.filter(($)=>$.category===q)}var N9=t.filter((q)=>q.index<=21),b9=t,UU=new Set(["describe your project goal","development teams","cloud platform","null","none","unknown","n/a","not applicable"]);function S9(q){if(q===null||q===void 0||q==="")return!0;if(typeof q==="string")return UU.has(q.toLowerCase().trim());if(Array.isArray(q)&&q.length===0)return!0;if(typeof q==="object"&&Object.keys(q).length===0)return!0;return!1}var xq=(q)=>($)=>`\x1B[${q}m${$}\x1B[0m`,hq=xq("1"),s0=xq("2"),t7=xq("3"),R0={cyan:"#00D4D4",cyanDeep:"#0E8C8C",orange:"#FF6B35"},uq=(q)=>`\x1B[38;2;0;212;212m${q}\x1B[0m`,kq=(q)=>`\x1B[38;2;14;140;140m${q}\x1B[0m`,P0=(q)=>`\x1B[38;5;208m${q}\x1B[0m`;var u=[{name:"TROPHY",indicator:`${P0("\uD83C\uDFC6")} ${P0("TROPHY")}`,threshold:100},{name:"GOLD",indicator:`${P0(hq("★"))} ${P0("GOLD")}`,threshold:99},{name:"SILVER",indicator:`${uq("◆")} ${uq("SILVER")}`,threshold:95},{name:"BRONZE",indicator:`${kq("◇")} ${kq("BRONZE")}`,threshold:85},{name:"GREEN",indicator:`${hq("●")} GREEN`,threshold:70},{name:"YELLOW",indicator:`${s0("●")} YELLOW`,threshold:55},{name:"RED",indicator:`${s0("○")} RED`,threshold:1},{name:"WHITE",indicator:`${s0("♡")}`,threshold:0}];function F0(q){for(let $ of u)if(q>=$.threshold)return $;return u[u.length-1]}function j9(q){let $=F0(q),U=u.indexOf($);return U>0?u[U-1]:null}var pq={};A9(pq,{validate:()=>E9,sdkVersion:()=>h9,scoreFafb:()=>x9,scoreEnterprise:()=>C9,score:()=>mq,fafbInfo:()=>y9,decompile:()=>f9,compile:()=>g9});var vq=null;function p(){if(vq)return vq;try{let q=I0("faf-scoring-kernel");return vq=q,q}catch{throw Error(`faf-scoring-kernel not installed.
139
+ `,$)+1}return{type:q,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(q){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 $=fq(q),U=_0($);return U.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:U,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let $=fq(q),U=_0($);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:U,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(q,$){if(this.type!=="comment")return!1;if(this.indent<=$)return!1;return q.every((U)=>U.type==="newline"||U.type==="space")}*documentEnd(q){if(this.type!=="doc-mode"){if(q.end)q.end.push(this.sourceToken);else q.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(q){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(q.end)q.end.push(this.sourceToken);else q.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}p7.Parser=J9});var O9=D((o7)=>{var Q9=d$(),l7=m0(),i0=p0(),c7=eq(),a7=w(),i7=e$(),B9=qU();function Y9(q){let $=q.prettyErrors!==!1;return{lineCounter:q.lineCounter||$&&new i7.LineCounter||null,prettyErrors:$}}function s7(q,$={}){let{lineCounter:U,prettyErrors:Z}=Y9($),z=new B9.Parser(U?.addNewLine),H=new Q9.Composer($),X=Array.from(H.compose(z.parse(q)));if(Z&&U)for(let G of X)G.errors.forEach(i0.prettifyError(q,U)),G.warnings.forEach(i0.prettifyError(q,U));if(X.length>0)return X;return Object.assign([],{empty:!0},H.streamInfo())}function V9(q,$={}){let{lineCounter:U,prettyErrors:Z}=Y9($),z=new B9.Parser(U?.addNewLine),H=new Q9.Composer($),X=null;for(let G of H.compose(z.parse(q),!0,q.length))if(!X)X=G;else if(X.options.logLevel!=="silent"){X.errors.push(new i0.YAMLParseError(G.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(Z&&U)X.errors.forEach(i0.prettifyError(q,U)),X.warnings.forEach(i0.prettifyError(q,U));return X}function r7(q,$,U){let Z=void 0;if(typeof $==="function")Z=$;else if(U===void 0&&$&&typeof $==="object")U=$;let z=V9(q,U);if(!z)return null;if(z.warnings.forEach((H)=>c7.warn(z.options.logLevel,H)),z.errors.length>0)if(z.options.logLevel!=="silent")throw z.errors[0];else z.errors=[];return z.toJS(Object.assign({reviver:Z},U))}function n7(q,$,U){let Z=null;if(typeof $==="function"||Array.isArray($))Z=$;else if(U===void 0&&$)U=$;if(typeof U==="string")U=U.length;if(typeof U==="number"){let z=Math.round(U);U=z<1?void 0:z>8?{indent:8}:{indent:z}}if(q===void 0){let{keepUndefined:z}=U??$??{};if(!z)return}if(a7.isDocument(q)&&!Z)return q.toString(U);return new l7.Document(q,Z,U).toString(U)}o7.parse=r7;o7.parseAllDocuments=s7;o7.parseDocument=V9;o7.stringify=n7});var u=[{index:1,path:"project.name",description:"Project name",category:"project"},{index:2,path:"project.goal",description:"Goal (use case)",category:"project"},{index:3,path:"project.main_language",description:"Primary language",category:"project"},{index:4,path:"human_context.who",description:"Who is this for?",category:"human"},{index:5,path:"human_context.what",description:"What are they building",category:"human"},{index:6,path:"human_context.why",description:"Why does it exist",category:"human"},{index:7,path:"human_context.where",description:"Where does it run",category:"human"},{index:8,path:"human_context.when",description:"When was it started / timeline",category:"human"},{index:9,path:"human_context.how",description:"How is it built",category:"human"},{index:10,path:"stack.frontend",canonical:"stack.framework",description:"Framework (React, Svelte, etc.)",category:"frontend"},{index:11,path:"stack.css_framework",canonical:"stack.css",description:"CSS framework",category:"frontend"},{index:12,path:"stack.ui_library",description:"UI component library",category:"frontend"},{index:13,path:"stack.state_management",canonical:"stack.state",description:"State management",category:"frontend"},{index:14,path:"stack.backend",description:"Backend framework",category:"backend"},{index:15,path:"stack.api_type",canonical:"stack.api",description:"API style (REST, GraphQL, etc.)",category:"backend"},{index:16,path:"stack.runtime",description:"Runtime (Node, Bun, Python, etc.)",category:"backend"},{index:17,path:"stack.database",canonical:"stack.db",description:"Database",category:"backend"},{index:18,path:"stack.connection",description:"Connection method (Prisma, etc.)",category:"backend"},{index:19,path:"stack.hosting",description:"Hosting platform",category:"universal"},{index:20,path:"stack.build",description:"Build tool",category:"universal"},{index:21,path:"stack.cicd",description:"CI/CD",category:"universal"},{index:22,path:"stack.monorepo_tool",description:"Monorepo tool",category:"enterprise_infra"},{index:23,path:"stack.package_manager",canonical:"stack.pkg_manager",description:"Package manager",category:"enterprise_infra"},{index:24,path:"stack.workspaces",description:"Workspace configuration",category:"enterprise_infra"},{index:25,path:"monorepo.packages_count",description:"Number of packages",category:"enterprise_infra"},{index:26,path:"monorepo.build_orchestrator",description:"Build orchestration tool",category:"enterprise_infra"},{index:27,path:"stack.admin",description:"Admin panel",category:"enterprise_app"},{index:28,path:"stack.cache",description:"Caching layer",category:"enterprise_app"},{index:29,path:"stack.search",description:"Search engine",category:"enterprise_app"},{index:30,path:"stack.storage",description:"Object storage",category:"enterprise_app"},{index:31,path:"monorepo.versioning_strategy",description:"Version strategy",category:"enterprise_ops"},{index:32,path:"monorepo.shared_configs",description:"Shared configs",category:"enterprise_ops"},{index:33,path:"monorepo.remote_cache",description:"Remote build cache",category:"enterprise_ops"}],hq=new Map(u.flatMap((q)=>q.canonical?[[q.path,q],[q.canonical,q]]:[[q.path,q]])),ZH=new Map(u.filter((q)=>q.canonical).map((q)=>[q.canonical,q.path])),zH=new Map(u.filter((q)=>q.canonical).map((q)=>[q.path,q.canonical]));function S9(q){return u.filter(($)=>$.category===q)}var E9=u.filter((q)=>q.index<=21),g9=u,HU=new Set(["describe your project goal","development teams","cloud platform","null","none","unknown","n/a","not applicable"]);function f9(q){if(q===null||q===void 0||q==="")return!0;if(typeof q==="string")return HU.has(q.toLowerCase().trim());if(Array.isArray(q)&&q.length===0)return!0;if(typeof q==="object"&&Object.keys(q).length===0)return!0;return!1}var uq=(q)=>($)=>`\x1B[${q}m${$}\x1B[0m`,kq=uq("1"),s0=uq("2"),XH=uq("3"),R0={cyan:"#00D4D4",cyanDeep:"#0E8C8C",orange:"#FF6B35"},vq=(q)=>`\x1B[38;2;0;212;212m${q}\x1B[0m`,mq=(q)=>`\x1B[38;2;14;140;140m${q}\x1B[0m`,T0=(q)=>`\x1B[38;5;208m${q}\x1B[0m`;var k=[{name:"TROPHY",indicator:`${T0("\uD83C\uDFC6")} ${T0("TROPHY")}`,threshold:100},{name:"GOLD",indicator:`${T0(kq("★"))} ${T0("GOLD")}`,threshold:99},{name:"SILVER",indicator:`${vq("◆")} ${vq("SILVER")}`,threshold:95},{name:"BRONZE",indicator:`${mq("◇")} ${mq("BRONZE")}`,threshold:85},{name:"GREEN",indicator:`${kq("●")} GREEN`,threshold:70},{name:"YELLOW",indicator:`${s0("●")} YELLOW`,threshold:55},{name:"RED",indicator:`${s0("○")} RED`,threshold:1},{name:"WHITE",indicator:`${s0("♡")}`,threshold:0}];function A0(q){for(let $ of k)if(q>=$.threshold)return $;return k[k.length-1]}function y9(q){let $=A0(q),U=k.indexOf($);return U>0?k[U-1]:null}var lq={};j9(lq,{validate:()=>h9,sdkVersion:()=>p9,scoreFafb:()=>m9,scoreEnterprise:()=>x9,score:()=>dq,fafbInfo:()=>v9,decompile:()=>k9,compile:()=>u9});var pq=null;function d(){if(pq)return pq;try{let q=I0("faf-scoring-kernel");return pq=q,q}catch{throw Error(`faf-scoring-kernel not installed.
140
140
 
141
141
  Run: npm install faf-scoring-kernel
142
- `)}}function mq(q){return JSON.parse(p().score_faf(q))}function C9(q){return JSON.parse(p().score_faf_enterprise(q))}function E9(q){return p().validate_faf(q)}function g9(q){return p().compile_fafb(q)}function f9(q){return JSON.parse(p().decompile_fafb(q))}function y9(q){return JSON.parse(p().fafb_info(q))}function x9(q){return JSON.parse(p().score_fafb(q))}function h9(){return p().sdk_version()}function ZU(q){return{score:q.score,tier:F0(q.score),populated:q.populated,empty:q.empty,ignored:q.ignored,active:q.active,total:q.total,slots:q.slots}}function u9(q){if(/^\s*app_type:\s*about\s*$/m.test(q)){let U=q.match(/^\s+source_score:\s*(\d+)\s*$/m),Z=U?parseInt(U[1],10):-1,H=Z>=0&&Z<=100?Z:-1,z=q.match(/^\s+represents:\s*(\S+)\s*$/m),X=z?z[1]:void 0;return{score:H,tier:H>=0?F0(H):u[u.length-1],populated:0,empty:0,ignored:0,active:0,total:0,slots:{},inherited:!0,represents:X}}return ZU(mq(q))}function k9(q){let $=[];if(!q||typeof q!=="object")return $.push("File is not a valid YAML mapping"),{valid:!1,errors:$};let U=q;if(!U.faf_version)$.push("Missing required field: faf_version");if(!U.project?.name)$.push("Missing required field: project.name");if(U.app_type==="about"){if(!U.about?.represents)$.push("app_type 'about' requires about.represents (owner/repo of the source codebase)");else if(!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(U.about.represents))$.push(`about.represents must be "owner/repo" format (got: ${U.about.represents})`);if(U.about?.source_score!==void 0){let Z=U.about.source_score;if(typeof Z!=="number"||Z<0||Z>100)$.push(`about.source_score must be a number 0-100 (got: ${Z})`)}}return{valid:$.length===0,errors:$}}import{readFileSync as L9,writeFileSync as wX,existsSync as W9}from"fs";import{join as O9,dirname as f7}from"path";var o1=m$(),t1=v0(),e1=w$(),e$=m0(),q7=w0(),o=w(),$7=a(),U7=N(),Z7=i(),H7=r(),FX=Cq(),z7=n$(),X7=o$(),G7=t$(),fq=B9(),Y9=A0();var J7=o1.Composer,Q7=t1.Document,B7=e1.Schema,Y7=e$.YAMLError,V7=e$.YAMLParseError,W7=e$.YAMLWarning,O7=q7.Alias,L7=o.isAlias,T7=o.isCollection,_7=o.isDocument,D7=o.isMap,I7=o.isNode,R7=o.isPair,P7=o.isScalar,F7=o.isSeq,A7=$7.Pair,M7=U7.Scalar,w7=Z7.YAMLMap,K7=H7.YAMLSeq;var N7=z7.Lexer,b7=X7.LineCounter,S7=G7.Parser,qU=fq.parse,j7=fq.parseAllDocuments,C7=fq.parseDocument,V9=fq.stringify,E7=Y9.visit,g7=Y9.visitAsync;function y7(q){let $=L9(q,"utf-8");return qU($)}function x7(q){return L9(q,"utf-8")}function h7(q=process.cwd()){let $=["project.faf",".faf"];for(let Z of $){let H=O9(q,Z);if(W9(H))return H}let U=f7(q);if(U!==q)for(let Z of $){let H=O9(U,Z);if(W9(H))return H}return null}import{writeFileSync as u7}from"fs";import{join as k7}from"path";var T9=R0.orange,v7=R0.cyan,m7=R0.cyanDeep,p7="#FF9500",d7="#FF3B30",l7="#E6EDF3",c7="#6E7681",_9={TROPHY:{glyph:"\uD83C\uDFC6",color:T9},GOLD:{glyph:"★",color:T9},SILVER:{glyph:"◆",color:v7},BRONZE:{glyph:"◇",color:m7},GREEN:{glyph:"●",color:l7},YELLOW:{glyph:"●",color:p7},RED:{glyph:"○",color:d7},WHITE:{glyph:"♡",color:c7}};function D0(q){return String(q??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var D9=["who","what","why","where","when","how"];function yq(q){return q.filter(([,$])=>$!==void 0&&$!==null&&String($).trim()!=="").map(([$,U])=>`<div class="row"><div class="k">${D0($)}</div><div class="v">${D0(U)}</div></div>`).join(`
143
- `)}function I9(q,$,U="project.faf"){let Z=D0(q.project?.name??"Project"),H=$.tier?.name??"WHITE",z=_9[H]??_9.WHITE,X=$.inherited?$.represents?`inherited from ${D0($.represents)}`:"inherited":`${$.score}%`,G=H==="TROPHY"&&!$.inherited,J=q.human_context??{},Q=D9.map((V)=>[V,J[V]]),W=Object.entries(J).filter(([V])=>!D9.includes(V)),B=[["goal",q.project?.goal],["main_language",q.project?.main_language],["type",q.project?.type],["framework",q.project?.framework],["faf_version",q.faf_version]],Y=Object.entries(q.stack??{}),L=Y.filter(([,V])=>V&&V!=="slotignored"&&String(V).trim()!==""),_=Y.filter(([,V])=>V==="slotignored").length;return`<!DOCTYPE html>
142
+ `)}}function dq(q){return JSON.parse(d().score_faf(q))}function x9(q){return JSON.parse(d().score_faf_enterprise(q))}function h9(q){return d().validate_faf(q)}function u9(q){return d().compile_fafb(q)}function k9(q){return JSON.parse(d().decompile_fafb(q))}function v9(q){return JSON.parse(d().fafb_info(q))}function m9(q){return JSON.parse(d().score_fafb(q))}function p9(){return d().sdk_version()}function XU(q){return{score:q.score,tier:A0(q.score),populated:q.populated,empty:q.empty,ignored:q.ignored,active:q.active,total:q.total,slots:q.slots}}function d9(q){if(/^\s*app_type:\s*about\s*$/m.test(q)){let U=q.match(/^\s+source_score:\s*(\d+)\s*$/m),Z=U?parseInt(U[1],10):-1,z=Z>=0&&Z<=100?Z:-1,H=q.match(/^\s+represents:\s*(\S+)\s*$/m),X=H?H[1]:void 0;return{score:z,tier:z>=0?A0(z):k[k.length-1],populated:0,empty:0,ignored:0,active:0,total:0,slots:{},inherited:!0,represents:X}}return XU(dq(q))}function l9(q){let $=[];if(!q||typeof q!=="object")return $.push("File is not a valid YAML mapping"),{valid:!1,errors:$};let U=q;if(!U.faf_version)$.push("Missing required field: faf_version");if(!U.project?.name)$.push("Missing required field: project.name");if(U.app_type==="about"){if(!U.about?.represents)$.push("app_type 'about' requires about.represents (owner/repo of the source codebase)");else if(!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(U.about.represents))$.push(`about.represents must be "owner/repo" format (got: ${U.about.represents})`);if(U.about?.source_score!==void 0){let Z=U.about.source_score;if(typeof Z!=="number"||Z<0||Z>100)$.push(`about.source_score must be a number 0-100 (got: ${Z})`)}}return{valid:$.length===0,errors:$}}import{readFileSync as P9,writeFileSync as gX,existsSync as D9}from"fs";import{join as _9,dirname as kz}from"path";var Uz=d$(),Zz=m0(),zz=N$(),$U=p0(),Hz=K0(),t=w(),Xz=i(),Gz=N(),Jz=r(),Qz=n(),CX=Eq(),Bz=t$(),Yz=e$(),Vz=qU(),yq=O9(),W9=M0();var Oz=Uz.Composer,Wz=Zz.Document,Lz=zz.Schema,Dz=$U.YAMLError,_z=$U.YAMLParseError,Pz=$U.YAMLWarning,Fz=Hz.Alias,Iz=t.isAlias,Rz=t.isCollection,Tz=t.isDocument,Az=t.isMap,Mz=t.isNode,wz=t.isPair,Kz=t.isScalar,Nz=t.isSeq,bz=Xz.Pair,jz=Gz.Scalar,Cz=Jz.YAMLMap,Sz=Qz.YAMLSeq;var Ez=Bz.Lexer,gz=Yz.LineCounter,fz=Vz.Parser,UU=yq.parse,yz=yq.parseAllDocuments,xz=yq.parseDocument,L9=yq.stringify,hz=W9.visit,uz=W9.visitAsync;function vz(q){let $=P9(q,"utf-8");return UU($)}function mz(q){return P9(q,"utf-8")}function pz(q=process.cwd()){let $=["project.faf",".faf"];for(let Z of $){let z=_9(q,Z);if(D9(z))return z}let U=kz(q);if(U!==q)for(let Z of $){let z=_9(U,Z);if(D9(z))return z}return null}import{writeFileSync as dz}from"fs";import{join as lz}from"path";var F9=R0.orange,cz=R0.cyan,az=R0.cyanDeep,iz="#FF9500",sz="#FF3B30",rz="#E6EDF3",nz="#6E7681",I9={TROPHY:{glyph:"\uD83C\uDFC6",color:F9},GOLD:{glyph:"★",color:F9},SILVER:{glyph:"◆",color:cz},BRONZE:{glyph:"◇",color:az},GREEN:{glyph:"●",color:rz},YELLOW:{glyph:"●",color:iz},RED:{glyph:"○",color:sz},WHITE:{glyph:"♡",color:nz}};function P0(q){return String(q??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var R9=["who","what","why","where","when","how"];function xq(q){return q.filter(([,$])=>$!==void 0&&$!==null&&String($).trim()!=="").map(([$,U])=>`<div class="row"><div class="k">${P0($)}</div><div class="v">${P0(U)}</div></div>`).join(`
143
+ `)}function T9(q,$,U="project.faf"){let Z=P0(q.project?.name??"Project"),z=$.tier?.name??"WHITE",H=I9[z]??I9.WHITE,X=$.inherited?$.represents?`inherited from ${P0($.represents)}`:"inherited":`${$.score}%`,G=z==="TROPHY"&&!$.inherited,J=q.human_context??{},Q=R9.map((V)=>[V,J[V]]),O=Object.entries(J).filter(([V])=>!R9.includes(V)),B=[["goal",q.project?.goal],["main_language",q.project?.main_language],["type",q.project?.type],["framework",q.project?.framework],["faf_version",q.faf_version]],Y=Object.entries(q.stack??{}),L=Y.filter(([,V])=>V&&V!=="slotignored"&&String(V).trim()!==""),_=Y.filter(([,V])=>V==="slotignored").length;return`<!DOCTYPE html>
144
144
  <html lang="en">
145
145
  <head>
146
146
  <meta charset="UTF-8">
@@ -152,19 +152,19 @@ ${$.comment}`:$.comment}this.doc.range[2]=$.offset;break}default:this.errors.pus
152
152
  *{margin:0;padding:0;box-sizing:border-box}
153
153
  body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;background:#0a0a0a;color:#e6edf3;line-height:1.55;padding:48px 20px}
154
154
  .wrap{max-width:880px;margin:0 auto}
155
- .bar{height:3px;border-radius:2px;background:linear-gradient(90deg,transparent,${z.color},transparent);margin-bottom:40px}
155
+ .bar{height:3px;border-radius:2px;background:linear-gradient(90deg,transparent,${H.color},transparent);margin-bottom:40px}
156
156
  header{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:8px}
157
157
  h1{font-size:2.2rem;font-weight:800;letter-spacing:-1px}
158
- .badge{font-size:1.05rem;font-weight:800;color:${z.color};white-space:nowrap}
158
+ .badge{font-size:1.05rem;font-weight:800;color:${H.color};white-space:nowrap}
159
159
  .score{font-size:1.05rem;font-weight:700;color:#8b949e}
160
160
  .eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#6e7681;margin-bottom:36px}
161
161
  section{margin-bottom:34px}
162
- h2{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:${z.color};margin-bottom:14px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.07)}
162
+ h2{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:${H.color};margin-bottom:14px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.07)}
163
163
  .row{display:flex;gap:18px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.04)}
164
164
  .k{flex:0 0 150px;color:#8b949e;font-size:.9rem;text-transform:capitalize}
165
165
  .v{flex:1;color:#e6edf3;font-size:.95rem;word-break:break-word}
166
166
  .meter{height:8px;border-radius:4px;background:rgba(255,255,255,.06);overflow:hidden;margin:6px 0 10px}
167
- .meter span{display:block;height:100%;background:${z.color};width:${Math.max(0,Math.min(100,$.score))}%}
167
+ .meter span{display:block;height:100%;background:${H.color};width:${Math.max(0,Math.min(100,$.score))}%}
168
168
  .award{font-size:.95rem}
169
169
  .statline{margin-bottom:32px}
170
170
  .awd-pre{color:#6E7681}
@@ -181,7 +181,7 @@ footer strong{color:#e6edf3}
181
181
  <div class="eyebrow">project.faf · visual render</div>
182
182
  <header>
183
183
  <h1>${Z}</h1>
184
- <span class="badge">${z.glyph} ${D0(H)}</span>
184
+ <span class="badge">${H.glyph} ${P0(z)}</span>
185
185
  <span class="score">${X}</span>
186
186
  </header>
187
187
  <div class="meter"><span></span></div>
@@ -189,28 +189,28 @@ ${G?'<p class="award statline"><span class="awd-pre">✅ All Required slots fill
189
189
 
190
190
  <section>
191
191
  <h2>The 6 W's</h2>
192
- ${yq(Q)||'<p class="muted">No human_context yet.</p>'}
193
- ${W.length?yq(W):""}
192
+ ${xq(Q)||'<p class="muted">No human_context yet.</p>'}
193
+ ${O.length?xq(O):""}
194
194
  </section>
195
195
 
196
196
  <section>
197
197
  <h2>Project</h2>
198
- ${yq(B)||'<p class="muted">—</p>'}
198
+ ${xq(B)||'<p class="muted">—</p>'}
199
199
  </section>
200
200
 
201
201
  <section>
202
202
  <h2>Stack</h2>
203
- ${L.length?yq(L):'<p class="muted">No active stack slots.</p>'}
203
+ ${L.length?xq(L):'<p class="muted">No active stack slots.</p>'}
204
204
  </section>
205
205
 
206
206
  <footer>
207
- Rendered on-demand from your current <strong>${D0(U)}</strong><br>
207
+ Rendered on-demand from your current <strong>${P0(U)}</strong><br>
208
208
  <strong>Humans like visuals. <span style="color:#00D4D4">We gave them one.</span></strong>
209
209
  </footer>
210
210
  </div>
211
211
  </body>
212
212
  </html>
213
- `}function a7(q,$,U,Z="project.faf"){u7(k7(q,"project.html"),I9($,U,Z),"utf-8")}export{a7 as writeProjectHtml,k9 as validateFaf,K9 as slotsByCategory,u9 as scoreFafYaml,x7 as readFafRaw,y7 as readFaf,pq as kernel,S9 as isPlaceholder,F0 as getTier,j9 as getNextTier,I9 as generateProjectHtml,h7 as findFafFile,ZU as enrichScore,u as TIERS,w9 as SLOT_BY_PATH,t as SLOTS,UU as PLACEHOLDERS,R0 as FAF_HEX,b9 as ENTERPRISE_SLOTS,N9 as BASE_SLOTS};
213
+ `}function oz(q,$,U,Z="project.faf"){dz(lz(q,"project.html"),T9($,U,Z),"utf-8")}var tz="faf-interview/1",F0="(terse — 3-4 words)",A9=[{path:"project.name",question:"What is the name of this project?",header:"Name",type:"text",required:!0},{path:"project.goal",question:"What does this project do? (one sentence)",header:"Goal",type:"text",required:!0},{path:"human_context.who",question:`Who is this for? ${F0}`,header:"Who",type:"text",required:!0},{path:"human_context.what",question:`What are they building? ${F0}`,header:"What",type:"text",required:!0},{path:"human_context.why",question:`Why does it exist? ${F0}`,header:"Why",type:"text",required:!0},{path:"human_context.where",question:`Where does it run or ship? ${F0}`,header:"Where",type:"text",required:!0},{path:"human_context.when",question:`When — timeline or stage? ${F0}`,header:"When",type:"text",required:!0},{path:"human_context.how",question:`How is it built or used? ${F0}`,header:"How",type:"text",required:!0}],M9=[{path:"project.main_language",question:"What is the primary programming language?",header:"Language",type:"select",required:!0,options:[{label:"TypeScript",value:"TypeScript",description:"JavaScript with types"},{label:"JavaScript",value:"JavaScript",description:"Vanilla JS or Node.js"},{label:"Python",value:"Python",description:"Python 3.x"},{label:"Rust",value:"Rust",description:"Systems programming"},{label:"Go",value:"Go",description:"Golang"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.frontend",question:"What frontend framework does it use?",header:"Frontend",type:"select",required:!1,options:[{label:"React",value:"React",description:"React.js"},{label:"Vue",value:"Vue",description:"Vue.js"},{label:"Svelte",value:"Svelte",description:"Svelte/SvelteKit"},{label:"Next.js",value:"Next.js",description:"React framework"},{label:"None",value:"None",description:"No frontend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.backend",question:"What backend framework does it use?",header:"Backend",type:"select",required:!1,options:[{label:"Express",value:"Express",description:"Node.js Express"},{label:"Fastify",value:"Fastify",description:"Node.js Fastify"},{label:"Django",value:"Django",description:"Python Django"},{label:"FastAPI",value:"FastAPI",description:"Python FastAPI"},{label:"None",value:"None",description:"No backend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.database",question:"What database does it use?",header:"Database",type:"select",required:!1,options:[{label:"PostgreSQL",value:"PostgreSQL",description:"Postgres"},{label:"MySQL",value:"MySQL",description:"MySQL/MariaDB"},{label:"SQLite",value:"SQLite",description:"Embedded SQL"},{label:"MongoDB",value:"MongoDB",description:"Document store"},{label:"None",value:"None",description:"No database"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.runtime",question:"What runtime does it run on?",header:"Runtime",type:"text",required:!1},{path:"stack.hosting",question:"Where is it hosted or distributed?",header:"Hosting",type:"text",required:!1},{path:"stack.build",question:"What is the build tool?",header:"Build",type:"text",required:!1},{path:"stack.cicd",question:"What CI/CD does it use?",header:"CI/CD",type:"text",required:!1}],ZU=[...A9,...M9],w9=new Map(ZU.map((q)=>[q.path,q]));function ez(q){let $=w9.get(q);if($)return $.question;let U=hq.get(q)??u.find((Z)=>Z.canonical===q);return U?`${U.description}?`.replace(/\?\?$/,"?"):`${q}?`}function qH(q,$){return ZU.filter((U)=>{let Z=U.path.split("."),z=q;for(let H of Z)if(z&&typeof z==="object"&&H in z)z=z[H];else{z=void 0;break}if(z==="slotignored")return!1;return $(z)})}export{oz as writeProjectHtml,l9 as validateFaf,S9 as slotsByCategory,d9 as scoreFafYaml,mz as readFafRaw,vz as readFaf,ez as questionForSlot,lq as kernel,f9 as isPlaceholder,qH as interviewForMissing,A0 as getTier,y9 as getNextTier,T9 as generateProjectHtml,pz as findFafFile,XU as enrichScore,k as TIERS,M9 as STACK_INTERVIEW,hq as SLOT_BY_PATH,u as SLOTS,A9 as SIX_WS_INTERVIEW,HU as PLACEHOLDERS,tz as INTERVIEW_VERSION,w9 as INTERVIEW_BY_PATH,ZU as INTERVIEW,R0 as FAF_HEX,g9 as ENTERPRISE_SLOTS,E9 as BASE_SLOTS};
214
214
 
215
- //# debugId=1373A6DAC8B91EBA64756E2164756E21
215
+ //# debugId=9AAA9B628439A73B64756E2164756E21
216
216
  //# sourceMappingURL=index.js.map