faf-cli 7.1.4 → 7.2.1

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,151 +1,151 @@
1
- import{createRequire as Q6}from"node:module";var Z6=Object.defineProperty;var R=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var U6=($)=>$;function X6($,Z){this[$]=U6.bind(null,Z)}var z6=($,Z)=>{for(var U in Z)Z6($,U,{get:Z[U],enumerable:!0,configurable:!0,set:X6.bind(Z,U)})};var h0=Q6(import.meta.url);var b=R((A6)=>{var D2=Symbol.for("yaml.alias"),a9=Symbol.for("yaml.document"),R$=Symbol.for("yaml.map"),i9=Symbol.for("yaml.pair"),I2=Symbol.for("yaml.scalar"),M$=Symbol.for("yaml.seq"),s=Symbol.for("yaml.node.type"),I6=($)=>!!$&&typeof $==="object"&&$[s]===D2,R6=($)=>!!$&&typeof $==="object"&&$[s]===a9,M6=($)=>!!$&&typeof $==="object"&&$[s]===R$,P6=($)=>!!$&&typeof $==="object"&&$[s]===i9,s9=($)=>!!$&&typeof $==="object"&&$[s]===I2,T6=($)=>!!$&&typeof $==="object"&&$[s]===M$;function r9($){if($&&typeof $==="object")switch($[s]){case R$:case M$:return!0}return!1}function F6($){if($&&typeof $==="object")switch($[s]){case D2:case R$:case I2:case M$:return!0}return!1}var K6=($)=>(s9($)||r9($))&&!!$.anchor;A6.ALIAS=D2;A6.DOC=a9;A6.MAP=R$;A6.NODE_TYPE=s;A6.PAIR=i9;A6.SCALAR=I2;A6.SEQ=M$;A6.hasAnchor=K6;A6.isAlias=I6;A6.isCollection=r9;A6.isDocument=R6;A6.isMap=M6;A6.isNode=F6;A6.isPair=P6;A6.isScalar=s9;A6.isSeq=T6});var p0=R((p6)=>{var f=b(),h=Symbol("break visit"),n9=Symbol("skip children"),c=Symbol("remove node");function P$($,Z){let U=o9(Z);if(f.isDocument($)){if(M0(null,$.contents,U,Object.freeze([$]))===c)$.contents=null}else M0(null,$,U,Object.freeze([]))}P$.BREAK=h;P$.SKIP=n9;P$.REMOVE=c;function M0($,Z,U,X){let z=t9($,Z,U,X);if(f.isNode(z)||f.isPair(z))return e9($,X,z),M0($,z,U,X);if(typeof z!=="symbol"){if(f.isCollection(Z)){X=Object.freeze(X.concat(Z));for(let Q=0;Q<Z.items.length;++Q){let J=M0(Q,Z.items[Q],U,X);if(typeof J==="number")Q=J-1;else if(J===h)return h;else if(J===c)Z.items.splice(Q,1),Q-=1}}else if(f.isPair(Z)){X=Object.freeze(X.concat(Z));let Q=M0("key",Z.key,U,X);if(Q===h)return h;else if(Q===c)Z.key=null;let J=M0("value",Z.value,U,X);if(J===h)return h;else if(J===c)Z.value=null}}return z}async function T$($,Z){let U=o9(Z);if(f.isDocument($)){if(await P0(null,$.contents,U,Object.freeze([$]))===c)$.contents=null}else await P0(null,$,U,Object.freeze([]))}T$.BREAK=h;T$.SKIP=n9;T$.REMOVE=c;async function P0($,Z,U,X){let z=await t9($,Z,U,X);if(f.isNode(z)||f.isPair(z))return e9($,X,z),P0($,z,U,X);if(typeof z!=="symbol"){if(f.isCollection(Z)){X=Object.freeze(X.concat(Z));for(let Q=0;Q<Z.items.length;++Q){let J=await P0(Q,Z.items[Q],U,X);if(typeof J==="number")Q=J-1;else if(J===h)return h;else if(J===c)Z.items.splice(Q,1),Q-=1}}else if(f.isPair(Z)){X=Object.freeze(X.concat(Z));let Q=await P0("key",Z.key,U,X);if(Q===h)return h;else if(Q===c)Z.key=null;let J=await P0("value",Z.value,U,X);if(J===h)return h;else if(J===c)Z.value=null}}return z}function o9($){if(typeof $==="object"&&($.Collection||$.Node||$.Value))return Object.assign({Alias:$.Node,Map:$.Node,Scalar:$.Node,Seq:$.Node},$.Value&&{Map:$.Value,Scalar:$.Value,Seq:$.Value},$.Collection&&{Map:$.Collection,Seq:$.Collection},$);return $}function t9($,Z,U,X){if(typeof U==="function")return U($,Z,X);if(f.isMap(Z))return U.Map?.($,Z,X);if(f.isSeq(Z))return U.Seq?.($,Z,X);if(f.isPair(Z))return U.Pair?.($,Z,X);if(f.isScalar(Z))return U.Scalar?.($,Z,X);if(f.isAlias(Z))return U.Alias?.($,Z,X);return}function e9($,Z,U){let X=Z[Z.length-1];if(f.isCollection(X))X.items[$]=U;else if(f.isPair(X))if($==="key")X.key=U;else X.value=U;else if(f.isDocument(X))X.contents=U;else{let z=f.isAlias(X)?"alias":"scalar";throw Error(`Cannot replace node with ${z} parent`)}}p6.visit=P$;p6.visitAsync=T$});var R2=R((s6)=>{var $3=b(),c6=p0(),a6={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},i6=($)=>$.replace(/[!,[\]{}]/g,(Z)=>a6[Z]);class u{constructor($,Z){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},u.defaultYaml,$),this.tags=Object.assign({},u.defaultTags,Z)}clone(){let $=new u(this.yaml,this.tags);return $.docStart=this.docStart,$}atDocument(){let $=new u(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:u.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},u.defaultTags);break}return $}add($,Z){if(this.atNextDocument)this.yaml={explicit:u.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},u.defaultTags),this.atNextDocument=!1;let U=$.trim().split(/[ \t]+/),X=U.shift();switch(X){case"%TAG":{if(U.length!==2){if(Z(0,"%TAG directive should contain exactly two parts"),U.length<2)return!1}let[z,Q]=U;return this.tags[z]=Q,!0}case"%YAML":{if(this.yaml.explicit=!0,U.length!==1)return Z(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 Q=/^\d+\.\d+$/.test(z);return Z(6,`Unsupported YAML version ${z}`,Q),!1}}default:return Z(0,`Unknown directive ${X}`,!0),!1}}tagName($,Z){if($==="!")return"!";if($[0]!=="!")return Z(`Not a valid tag: ${$}`),null;if($[1]==="<"){let Q=$.slice(2,-1);if(Q==="!"||Q==="!!")return Z(`Verbatim tags aren't resolved, so ${$} is invalid.`),null;if($[$.length-1]!==">")Z("Verbatim tags must end with a >");return Q}let[,U,X]=$.match(/^(.*!)([^!]*)$/s);if(!X)Z(`The ${$} tag has no suffix`);let z=this.tags[U];if(z)try{return z+decodeURIComponent(X)}catch(Q){return Z(String(Q)),null}if(U==="!")return $;return Z(`Could not resolve tag: ${$}`),null}tagString($){for(let[Z,U]of Object.entries(this.tags))if($.startsWith(U))return Z+i6($.substring(U.length));return $[0]==="!"?$:`!<${$}>`}toString($){let Z=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],U=Object.entries(this.tags),X;if($&&U.length>0&&$3.isNode($.contents)){let z={};c6.visit($.contents,(Q,J)=>{if($3.isNode(J)&&J.tag)z[J.tag]=!0}),X=Object.keys(z)}else X=[];for(let[z,Q]of U){if(z==="!!"&&Q==="tag:yaml.org,2002:")continue;if(!$||X.some((J)=>J.startsWith(Q)))Z.push(`%TAG ${z} ${Q}`)}return Z.join(`
2
- `)}}u.defaultYaml={explicit:!1,version:"1.2"};u.defaultTags={"!!":"tag:yaml.org,2002:"};s6.Directives=u});var F$=R((e6)=>{var Z3=b(),n6=p0();function o6($){if(/[\x00-\x19\s,[\]{}]/.test($)){let U=`Anchor must not contain whitespace or control characters: ${JSON.stringify($)}`;throw Error(U)}return!0}function U3($){let Z=new Set;return n6.visit($,{Value(U,X){if(X.anchor)Z.add(X.anchor)}}),Z}function X3($,Z){for(let U=1;;++U){let X=`${$}${U}`;if(!Z.has(X))return X}}function t6($,Z){let U=[],X=new Map,z=null;return{onAnchor:(Q)=>{U.push(Q),z??(z=U3($));let J=X3(Z,z);return z.add(J),J},setAnchors:()=>{for(let Q of U){let J=X.get(Q);if(typeof J==="object"&&J.anchor&&(Z3.isScalar(J.node)||Z3.isCollection(J.node)))J.node.anchor=J.anchor;else{let H=Error("Failed to resolve repeated object (this should not happen)");throw H.source=Q,H}}},sourceObjects:X}}e6.anchorIsValid=o6;e6.anchorNames=U3;e6.createNodeAnchors=t6;e6.findNewAnchor=X3});var M2=R((zZ)=>{function l0($,Z,U,X){if(X&&typeof X==="object")if(Array.isArray(X))for(let z=0,Q=X.length;z<Q;++z){let J=X[z],H=l0($,X,String(z),J);if(H===void 0)delete X[z];else if(H!==J)X[z]=H}else if(X instanceof Map)for(let z of Array.from(X.keys())){let Q=X.get(z),J=l0($,X,z,Q);if(J===void 0)X.delete(z);else if(J!==Q)X.set(z,J)}else if(X instanceof Set)for(let z of Array.from(X)){let Q=l0($,X,z,z);if(Q===void 0)X.delete(z);else if(Q!==z)X.delete(z),X.add(Q)}else for(let[z,Q]of Object.entries(X)){let J=l0($,X,z,Q);if(J===void 0)delete X[z];else if(J!==Q)X[z]=J}return $.call(Z,U,X)}zZ.applyReviver=l0});var t=R((HZ)=>{var JZ=b();function z3($,Z,U){if(Array.isArray($))return $.map((X,z)=>z3(X,String(z),U));if($&&typeof $.toJSON==="function"){if(!U||!JZ.hasAnchor($))return $.toJSON(Z,U);let X={aliasCount:0,count:1,res:void 0};U.anchors.set($,X),U.onCreate=(Q)=>{X.res=Q,delete U.onCreate};let z=$.toJSON(Z,U);if(U.onCreate)U.onCreate(z);return z}if(typeof $==="bigint"&&!U?.keep)return Number($);return $}HZ.toJS=z3});var K$=R((BZ)=>{var GZ=M2(),Q3=b(),YZ=t();class J3{constructor($){Object.defineProperty(this,Q3.NODE_TYPE,{value:$})}clone(){let $=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)$.range=this.range.slice();return $}toJS($,{mapAsMap:Z,maxAliasCount:U,onAnchor:X,reviver:z}={}){if(!Q3.isDocument($))throw TypeError("A document argument is required");let Q={anchors:new Map,doc:$,keep:!0,mapAsMap:Z===!0,mapKeyWarned:!1,maxAliasCount:typeof U==="number"?U:100},J=YZ.toJS(this,"",Q);if(typeof X==="function")for(let{count:H,res:q}of Q.anchors.values())X(q,H);return typeof z==="function"?GZ.applyReviver(z,{"":J},"",J):J}}BZ.NodeBase=J3});var d0=R((DZ)=>{var WZ=F$(),OZ=p0(),T0=b(),LZ=K$(),_Z=t();class H3 extends LZ.NodeBase{constructor($){super(T0.ALIAS);this.source=$,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve($,Z){let U;if(Z?.aliasResolveCache)U=Z.aliasResolveCache;else if(U=[],OZ.visit($,{Node:(z,Q)=>{if(T0.isAlias(Q)||T0.hasAnchor(Q))U.push(Q)}}),Z)Z.aliasResolveCache=U;let X=void 0;for(let z of U){if(z===this)break;if(z.anchor===this.source)X=z}return X}toJSON($,Z){if(!Z)return{source:this.source};let{anchors:U,doc:X,maxAliasCount:z}=Z,Q=this.resolve(X,Z);if(!Q){let H=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(H)}let J=U.get(Q);if(!J)_Z.toJS(Q,null,Z),J=U.get(Q);if(J?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(z>=0){if(J.count+=1,J.aliasCount===0)J.aliasCount=A$(X,Q,U);if(J.count*J.aliasCount>z)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return J.res}toString($,Z,U){let X=`*${this.source}`;if($){if(WZ.anchorIsValid(this.source),$.options.verifyAliasOrder&&!$.anchors.has(this.source)){let z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(z)}if($.implicitKey)return`${X} `}return X}}function A$($,Z,U){if(T0.isAlias(Z)){let X=Z.resolve($),z=U&&X&&U.get(X);return z?z.count*z.aliasCount:0}else if(T0.isCollection(Z)){let X=0;for(let z of Z.items){let Q=A$($,z,U);if(Q>X)X=Q}return X}else if(T0.isPair(Z)){let X=A$($,Z.key,U),z=A$($,Z.value,U);return Math.max(X,z)}return 1}DZ.Alias=H3});var g=R((FZ)=>{var RZ=b(),MZ=K$(),PZ=t(),TZ=($)=>!$||typeof $!=="function"&&typeof $!=="object";class q0 extends MZ.NodeBase{constructor($){super(RZ.SCALAR);this.value=$}toJSON($,Z){return Z?.keep?this.value:PZ.toJS(this.value,$,Z)}toString(){return String(this.value)}}q0.BLOCK_FOLDED="BLOCK_FOLDED";q0.BLOCK_LITERAL="BLOCK_LITERAL";q0.PLAIN="PLAIN";q0.QUOTE_DOUBLE="QUOTE_DOUBLE";q0.QUOTE_SINGLE="QUOTE_SINGLE";FZ.Scalar=q0;FZ.isScalarValue=TZ});var c0=R((jZ)=>{var NZ=d0(),G0=b(),q3=g(),wZ="tag:yaml.org,2002:";function bZ($,Z,U){if(Z){let X=U.filter((Q)=>Q.tag===Z),z=X.find((Q)=>!Q.format)??X[0];if(!z)throw Error(`Tag ${Z} not found`);return z}return U.find((X)=>X.identify?.($)&&!X.format)}function CZ($,Z,U){if(G0.isDocument($))$=$.contents;if(G0.isNode($))return $;if(G0.isPair($)){let Y=U.schema[G0.MAP].createNode?.(U.schema,null,U);return Y.items.push($),Y}if($ instanceof String||$ instanceof Number||$ instanceof Boolean||typeof BigInt<"u"&&$ instanceof BigInt)$=$.valueOf();let{aliasDuplicateObjects:X,onAnchor:z,onTagObj:Q,schema:J,sourceObjects:H}=U,q=void 0;if(X&&$&&typeof $==="object")if(q=H.get($),q)return q.anchor??(q.anchor=z($)),new NZ.Alias(q.anchor);else q={anchor:null,node:null},H.set($,q);if(Z?.startsWith("!!"))Z=wZ+Z.slice(2);let G=bZ($,Z,J.tags);if(!G){if($&&typeof $.toJSON==="function")$=$.toJSON();if(!$||typeof $!=="object"){let Y=new q3.Scalar($);if(q)q.node=Y;return Y}G=$ instanceof Map?J[G0.MAP]:(Symbol.iterator in Object($))?J[G0.SEQ]:J[G0.MAP]}if(Q)Q(G),delete U.onTagObj;let W=G?.createNode?G.createNode(U.schema,$,U):typeof G?.nodeClass?.from==="function"?G.nodeClass.from(U.schema,$,U):new q3.Scalar($);if(Z)W.tag=Z;else if(!G.default)W.tag=G.tag;if(q)q.node=W;return W}jZ.createNode=CZ});var N$=R((fZ)=>{var EZ=c0(),a=b(),gZ=K$();function P2($,Z,U){let X=U;for(let z=Z.length-1;z>=0;--z){let Q=Z[z];if(typeof Q==="number"&&Number.isInteger(Q)&&Q>=0){let J=[];J[Q]=X,X=J}else X=new Map([[Q,X]])}return EZ.createNode(X,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:$,sourceObjects:new Map})}var G3=($)=>$==null||typeof $==="object"&&!!$[Symbol.iterator]().next().done;class Y3 extends gZ.NodeBase{constructor($,Z){super($);Object.defineProperty(this,"schema",{value:Z,configurable:!0,enumerable:!1,writable:!0})}clone($){let Z=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if($)Z.schema=$;if(Z.items=Z.items.map((U)=>a.isNode(U)||a.isPair(U)?U.clone($):U),this.range)Z.range=this.range.slice();return Z}addIn($,Z){if(G3($))this.add(Z);else{let[U,...X]=$,z=this.get(U,!0);if(a.isCollection(z))z.addIn(X,Z);else if(z===void 0&&this.schema)this.set(U,P2(this.schema,X,Z));else throw Error(`Expected YAML collection at ${U}. Remaining path: ${X}`)}}deleteIn($){let[Z,...U]=$;if(U.length===0)return this.delete(Z);let X=this.get(Z,!0);if(a.isCollection(X))return X.deleteIn(U);else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${U}`)}getIn($,Z){let[U,...X]=$,z=this.get(U,!0);if(X.length===0)return!Z&&a.isScalar(z)?z.value:z;else return a.isCollection(z)?z.getIn(X,Z):void 0}hasAllNullValues($){return this.items.every((Z)=>{if(!a.isPair(Z))return!1;let U=Z.value;return U==null||$&&a.isScalar(U)&&U.value==null&&!U.commentBefore&&!U.comment&&!U.tag})}hasIn($){let[Z,...U]=$;if(U.length===0)return this.has(Z);let X=this.get(Z,!0);return a.isCollection(X)?X.hasIn(U):!1}setIn($,Z){let[U,...X]=$;if(X.length===0)this.set(U,Z);else{let z=this.get(U,!0);if(a.isCollection(z))z.setIn(X,Z);else if(z===void 0&&this.schema)this.set(U,P2(this.schema,X,Z));else throw Error(`Expected YAML collection at ${U}. Remaining path: ${X}`)}}}fZ.Collection=Y3;fZ.collectionFromPath=P2;fZ.isEmptyPath=G3});var a0=R((vZ)=>{var uZ=($)=>$.replace(/^(?!$)(?: $)?/gm,"#");function T2($,Z){if(/^\n+$/.test($))return $.substring(1);return Z?$.replace(/^(?! *$)/gm,Z):$}var kZ=($,Z,U)=>$.endsWith(`
3
- `)?T2(U,Z):U.includes(`
1
+ import{createRequire as M6}from"node:module";var R6=Object.defineProperty;var D=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var I6=($)=>$;function D6($,Z){this[$]=I6.bind(null,Z)}var F6=($,Z)=>{for(var X in Z)R6($,X,{get:Z[X],enumerable:!0,configurable:!0,set:D6.bind(Z,X)})};var p0=M6(import.meta.url);var b=D((m6)=>{var K1=Symbol.for("yaml.alias"),U8=Symbol.for("yaml.document"),K$=Symbol.for("yaml.map"),z8=Symbol.for("yaml.pair"),A1=Symbol.for("yaml.scalar"),A$=Symbol.for("yaml.seq"),r=Symbol.for("yaml.node.type"),y6=($)=>!!$&&typeof $==="object"&&$[r]===K1,f6=($)=>!!$&&typeof $==="object"&&$[r]===U8,x6=($)=>!!$&&typeof $==="object"&&$[r]===K$,h6=($)=>!!$&&typeof $==="object"&&$[r]===z8,Q8=($)=>!!$&&typeof $==="object"&&$[r]===A1,u6=($)=>!!$&&typeof $==="object"&&$[r]===A$;function J8($){if($&&typeof $==="object")switch($[r]){case K$:case A$:return!0}return!1}function k6($){if($&&typeof $==="object")switch($[r]){case K1:case K$:case A1:case A$:return!0}return!1}var v6=($)=>(Q8($)||J8($))&&!!$.anchor;m6.ALIAS=K1;m6.DOC=U8;m6.MAP=K$;m6.NODE_TYPE=r;m6.PAIR=z8;m6.SCALAR=A1;m6.SEQ=A$;m6.hasAnchor=v6;m6.isAlias=y6;m6.isCollection=J8;m6.isDocument=f6;m6.isMap=x6;m6.isNode=k6;m6.isPair=h6;m6.isScalar=Q8;m6.isSeq=u6});var s0=D((zZ)=>{var y=b(),u=Symbol("break visit"),H8=Symbol("skip children"),i=Symbol("remove node");function N$($,Z){let X=q8(Z);if(y.isDocument($)){if(K0(null,$.contents,X,Object.freeze([$]))===i)$.contents=null}else K0(null,$,X,Object.freeze([]))}N$.BREAK=u;N$.SKIP=H8;N$.REMOVE=i;function K0($,Z,X,U){let z=_8($,Z,X,U);if(y.isNode(z)||y.isPair(z))return G8($,U,z),K0($,z,X,U);if(typeof z!=="symbol"){if(y.isCollection(Z)){U=Object.freeze(U.concat(Z));for(let Q=0;Q<Z.items.length;++Q){let J=K0(Q,Z.items[Q],X,U);if(typeof J==="number")Q=J-1;else if(J===u)return u;else if(J===i)Z.items.splice(Q,1),Q-=1}}else if(y.isPair(Z)){U=Object.freeze(U.concat(Z));let Q=K0("key",Z.key,X,U);if(Q===u)return u;else if(Q===i)Z.key=null;let J=K0("value",Z.value,X,U);if(J===u)return u;else if(J===i)Z.value=null}}return z}async function w$($,Z){let X=q8(Z);if(y.isDocument($)){if(await A0(null,$.contents,X,Object.freeze([$]))===i)$.contents=null}else await A0(null,$,X,Object.freeze([]))}w$.BREAK=u;w$.SKIP=H8;w$.REMOVE=i;async function A0($,Z,X,U){let z=await _8($,Z,X,U);if(y.isNode(z)||y.isPair(z))return G8($,U,z),A0($,z,X,U);if(typeof z!=="symbol"){if(y.isCollection(Z)){U=Object.freeze(U.concat(Z));for(let Q=0;Q<Z.items.length;++Q){let J=await A0(Q,Z.items[Q],X,U);if(typeof J==="number")Q=J-1;else if(J===u)return u;else if(J===i)Z.items.splice(Q,1),Q-=1}}else if(y.isPair(Z)){U=Object.freeze(U.concat(Z));let Q=await A0("key",Z.key,X,U);if(Q===u)return u;else if(Q===i)Z.key=null;let J=await A0("value",Z.value,X,U);if(J===u)return u;else if(J===i)Z.value=null}}return z}function q8($){if(typeof $==="object"&&($.Collection||$.Node||$.Value))return Object.assign({Alias:$.Node,Map:$.Node,Scalar:$.Node,Seq:$.Node},$.Value&&{Map:$.Value,Scalar:$.Value,Seq:$.Value},$.Collection&&{Map:$.Collection,Seq:$.Collection},$);return $}function _8($,Z,X,U){if(typeof X==="function")return X($,Z,U);if(y.isMap(Z))return X.Map?.($,Z,U);if(y.isSeq(Z))return X.Seq?.($,Z,U);if(y.isPair(Z))return X.Pair?.($,Z,U);if(y.isScalar(Z))return X.Scalar?.($,Z,U);if(y.isAlias(Z))return X.Alias?.($,Z,U);return}function G8($,Z,X){let U=Z[Z.length-1];if(y.isCollection(U))U.items[$]=X;else if(y.isPair(U))if($==="key")U.key=X;else U.value=X;else if(y.isDocument(U))U.contents=X;else{let z=y.isAlias(U)?"alias":"scalar";throw Error(`Cannot replace node with ${z} parent`)}}zZ.visit=N$;zZ.visitAsync=w$});var N1=D((GZ)=>{var Y8=b(),HZ=s0(),qZ={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},_Z=($)=>$.replace(/[!,[\]{}]/g,(Z)=>qZ[Z]);class k{constructor($,Z){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},k.defaultYaml,$),this.tags=Object.assign({},k.defaultTags,Z)}clone(){let $=new k(this.yaml,this.tags);return $.docStart=this.docStart,$}atDocument(){let $=new k(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:k.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},k.defaultTags);break}return $}add($,Z){if(this.atNextDocument)this.yaml={explicit:k.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},k.defaultTags),this.atNextDocument=!1;let X=$.trim().split(/[ \t]+/),U=X.shift();switch(U){case"%TAG":{if(X.length!==2){if(Z(0,"%TAG directive should contain exactly two parts"),X.length<2)return!1}let[z,Q]=X;return this.tags[z]=Q,!0}case"%YAML":{if(this.yaml.explicit=!0,X.length!==1)return Z(0,"%YAML directive should contain exactly one part"),!1;let[z]=X;if(z==="1.1"||z==="1.2")return this.yaml.version=z,!0;else{let Q=/^\d+\.\d+$/.test(z);return Z(6,`Unsupported YAML version ${z}`,Q),!1}}default:return Z(0,`Unknown directive ${U}`,!0),!1}}tagName($,Z){if($==="!")return"!";if($[0]!=="!")return Z(`Not a valid tag: ${$}`),null;if($[1]==="<"){let Q=$.slice(2,-1);if(Q==="!"||Q==="!!")return Z(`Verbatim tags aren't resolved, so ${$} is invalid.`),null;if($[$.length-1]!==">")Z("Verbatim tags must end with a >");return Q}let[,X,U]=$.match(/^(.*!)([^!]*)$/s);if(!U)Z(`The ${$} tag has no suffix`);let z=this.tags[X];if(z)try{return z+decodeURIComponent(U)}catch(Q){return Z(String(Q)),null}if(X==="!")return $;return Z(`Could not resolve tag: ${$}`),null}tagString($){for(let[Z,X]of Object.entries(this.tags))if($.startsWith(X))return Z+_Z($.substring(X.length));return $[0]==="!"?$:`!<${$}>`}toString($){let Z=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],X=Object.entries(this.tags),U;if($&&X.length>0&&Y8.isNode($.contents)){let z={};HZ.visit($.contents,(Q,J)=>{if(Y8.isNode(J)&&J.tag)z[J.tag]=!0}),U=Object.keys(z)}else U=[];for(let[z,Q]of X){if(z==="!!"&&Q==="tag:yaml.org,2002:")continue;if(!$||U.some((J)=>J.startsWith(Q)))Z.push(`%TAG ${z} ${Q}`)}return Z.join(`
2
+ `)}}k.defaultYaml={explicit:!1,version:"1.2"};k.defaultTags={"!!":"tag:yaml.org,2002:"};GZ.Directives=k});var b$=D((WZ)=>{var B8=b(),BZ=s0();function VZ($){if(/[\x00-\x19\s,[\]{}]/.test($)){let X=`Anchor must not contain whitespace or control characters: ${JSON.stringify($)}`;throw Error(X)}return!0}function V8($){let Z=new Set;return BZ.visit($,{Value(X,U){if(U.anchor)Z.add(U.anchor)}}),Z}function O8($,Z){for(let X=1;;++X){let U=`${$}${X}`;if(!Z.has(U))return U}}function OZ($,Z){let X=[],U=new Map,z=null;return{onAnchor:(Q)=>{X.push(Q),z??(z=V8($));let J=O8(Z,z);return z.add(J),J},setAnchors:()=>{for(let Q of X){let J=U.get(Q);if(typeof J==="object"&&J.anchor&&(B8.isScalar(J.node)||B8.isCollection(J.node)))J.node.anchor=J.anchor;else{let H=Error("Failed to resolve repeated object (this should not happen)");throw H.source=Q,H}}},sourceObjects:U}}WZ.anchorIsValid=VZ;WZ.anchorNames=V8;WZ.createNodeAnchors=OZ;WZ.findNewAnchor=O8});var w1=D((FZ)=>{function a0($,Z,X,U){if(U&&typeof U==="object")if(Array.isArray(U))for(let z=0,Q=U.length;z<Q;++z){let J=U[z],H=a0($,U,String(z),J);if(H===void 0)delete U[z];else if(H!==J)U[z]=H}else if(U instanceof Map)for(let z of Array.from(U.keys())){let Q=U.get(z),J=a0($,U,z,Q);if(J===void 0)U.delete(z);else if(J!==Q)U.set(z,J)}else if(U instanceof Set)for(let z of Array.from(U)){let Q=a0($,U,z,z);if(Q===void 0)U.delete(z);else if(Q!==z)U.delete(z),U.add(Q)}else for(let[z,Q]of Object.entries(U)){let J=a0($,U,z,Q);if(J===void 0)delete U[z];else if(J!==Q)U[z]=J}return $.call(Z,X,U)}FZ.applyReviver=a0});var $0=D((TZ)=>{var PZ=b();function W8($,Z,X){if(Array.isArray($))return $.map((U,z)=>W8(U,String(z),X));if($&&typeof $.toJSON==="function"){if(!X||!PZ.hasAnchor($))return $.toJSON(Z,X);let U={aliasCount:0,count:1,res:void 0};X.anchors.set($,U),X.onCreate=(Q)=>{U.res=Q,delete X.onCreate};let z=$.toJSON(Z,X);if(X.onCreate)X.onCreate(z);return z}if(typeof $==="bigint"&&!X?.keep)return Number($);return $}TZ.toJS=W8});var C$=D((wZ)=>{var AZ=w1(),L8=b(),NZ=$0();class R8{constructor($){Object.defineProperty(this,L8.NODE_TYPE,{value:$})}clone(){let $=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)$.range=this.range.slice();return $}toJS($,{mapAsMap:Z,maxAliasCount:X,onAnchor:U,reviver:z}={}){if(!L8.isDocument($))throw TypeError("A document argument is required");let Q={anchors:new Map,doc:$,keep:!0,mapAsMap:Z===!0,mapKeyWarned:!1,maxAliasCount:typeof X==="number"?X:100},J=NZ.toJS(this,"",Q);if(typeof U==="function")for(let{count:H,res:q}of Q.anchors.values())U(q,H);return typeof z==="function"?AZ.applyReviver(z,{"":J},"",J):J}}wZ.NodeBase=R8});var r0=D((gZ)=>{var CZ=b$(),jZ=s0(),N0=b(),SZ=C$(),EZ=$0();class I8 extends SZ.NodeBase{constructor($){super(N0.ALIAS);this.source=$,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve($,Z){let X;if(Z?.aliasResolveCache)X=Z.aliasResolveCache;else if(X=[],jZ.visit($,{Node:(z,Q)=>{if(N0.isAlias(Q)||N0.hasAnchor(Q))X.push(Q)}}),Z)Z.aliasResolveCache=X;let U=void 0;for(let z of X){if(z===this)break;if(z.anchor===this.source)U=z}return U}toJSON($,Z){if(!Z)return{source:this.source};let{anchors:X,doc:U,maxAliasCount:z}=Z,Q=this.resolve(U,Z);if(!Q){let H=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(H)}let J=X.get(Q);if(!J)EZ.toJS(Q,null,Z),J=X.get(Q);if(J?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(z>=0){if(J.count+=1,J.aliasCount===0)J.aliasCount=j$(U,Q,X);if(J.count*J.aliasCount>z)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return J.res}toString($,Z,X){let U=`*${this.source}`;if($){if(CZ.anchorIsValid(this.source),$.options.verifyAliasOrder&&!$.anchors.has(this.source)){let z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(z)}if($.implicitKey)return`${U} `}return U}}function j$($,Z,X){if(N0.isAlias(Z)){let U=Z.resolve($),z=X&&U&&X.get(U);return z?z.count*z.aliasCount:0}else if(N0.isCollection(Z)){let U=0;for(let z of Z.items){let Q=j$($,z,X);if(Q>U)U=Q}return U}else if(N0.isPair(Z)){let U=j$($,Z.key,X),z=j$($,Z.value,X);return Math.max(U,z)}return 1}gZ.Alias=I8});var g=D((kZ)=>{var fZ=b(),xZ=C$(),hZ=$0(),uZ=($)=>!$||typeof $!=="function"&&typeof $!=="object";class Y0 extends xZ.NodeBase{constructor($){super(fZ.SCALAR);this.value=$}toJSON($,Z){return Z?.keep?this.value:hZ.toJS(this.value,$,Z)}toString(){return String(this.value)}}Y0.BLOCK_FOLDED="BLOCK_FOLDED";Y0.BLOCK_LITERAL="BLOCK_LITERAL";Y0.PLAIN="PLAIN";Y0.QUOTE_DOUBLE="QUOTE_DOUBLE";Y0.QUOTE_SINGLE="QUOTE_SINGLE";kZ.Scalar=Y0;kZ.isScalarValue=uZ});var n0=D((iZ)=>{var pZ=r0(),B0=b(),D8=g(),lZ="tag:yaml.org,2002:";function dZ($,Z,X){if(Z){let U=X.filter((Q)=>Q.tag===Z),z=U.find((Q)=>!Q.format)??U[0];if(!z)throw Error(`Tag ${Z} not found`);return z}return X.find((U)=>U.identify?.($)&&!U.format)}function cZ($,Z,X){if(B0.isDocument($))$=$.contents;if(B0.isNode($))return $;if(B0.isPair($)){let G=X.schema[B0.MAP].createNode?.(X.schema,null,X);return G.items.push($),G}if($ instanceof String||$ instanceof Number||$ instanceof Boolean||typeof BigInt<"u"&&$ instanceof BigInt)$=$.valueOf();let{aliasDuplicateObjects:U,onAnchor:z,onTagObj:Q,schema:J,sourceObjects:H}=X,q=void 0;if(U&&$&&typeof $==="object")if(q=H.get($),q)return q.anchor??(q.anchor=z($)),new pZ.Alias(q.anchor);else q={anchor:null,node:null},H.set($,q);if(Z?.startsWith("!!"))Z=lZ+Z.slice(2);let _=dZ($,Z,J.tags);if(!_){if($&&typeof $.toJSON==="function")$=$.toJSON();if(!$||typeof $!=="object"){let G=new D8.Scalar($);if(q)q.node=G;return G}_=$ instanceof Map?J[B0.MAP]:(Symbol.iterator in Object($))?J[B0.SEQ]:J[B0.MAP]}if(Q)Q(_),delete X.onTagObj;let B=_?.createNode?_.createNode(X.schema,$,X):typeof _?.nodeClass?.from==="function"?_.nodeClass.from(X.schema,$,X):new D8.Scalar($);if(Z)B.tag=Z;else if(!_.default)B.tag=_.tag;if(q)q.node=B;return B}iZ.createNode=cZ});var S$=D((nZ)=>{var aZ=n0(),s=b(),rZ=C$();function b1($,Z,X){let U=X;for(let z=Z.length-1;z>=0;--z){let Q=Z[z];if(typeof Q==="number"&&Number.isInteger(Q)&&Q>=0){let J=[];J[Q]=U,U=J}else U=new Map([[Q,U]])}return aZ.createNode(U,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:$,sourceObjects:new Map})}var F8=($)=>$==null||typeof $==="object"&&!!$[Symbol.iterator]().next().done;class M8 extends rZ.NodeBase{constructor($,Z){super($);Object.defineProperty(this,"schema",{value:Z,configurable:!0,enumerable:!1,writable:!0})}clone($){let Z=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if($)Z.schema=$;if(Z.items=Z.items.map((X)=>s.isNode(X)||s.isPair(X)?X.clone($):X),this.range)Z.range=this.range.slice();return Z}addIn($,Z){if(F8($))this.add(Z);else{let[X,...U]=$,z=this.get(X,!0);if(s.isCollection(z))z.addIn(U,Z);else if(z===void 0&&this.schema)this.set(X,b1(this.schema,U,Z));else throw Error(`Expected YAML collection at ${X}. Remaining path: ${U}`)}}deleteIn($){let[Z,...X]=$;if(X.length===0)return this.delete(Z);let U=this.get(Z,!0);if(s.isCollection(U))return U.deleteIn(X);else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${X}`)}getIn($,Z){let[X,...U]=$,z=this.get(X,!0);if(U.length===0)return!Z&&s.isScalar(z)?z.value:z;else return s.isCollection(z)?z.getIn(U,Z):void 0}hasAllNullValues($){return this.items.every((Z)=>{if(!s.isPair(Z))return!1;let X=Z.value;return X==null||$&&s.isScalar(X)&&X.value==null&&!X.commentBefore&&!X.comment&&!X.tag})}hasIn($){let[Z,...X]=$;if(X.length===0)return this.has(Z);let U=this.get(Z,!0);return s.isCollection(U)?U.hasIn(X):!1}setIn($,Z){let[X,...U]=$;if(U.length===0)this.set(X,Z);else{let z=this.get(X,!0);if(s.isCollection(z))z.setIn(U,Z);else if(z===void 0&&this.schema)this.set(X,b1(this.schema,U,Z));else throw Error(`Expected YAML collection at ${X}. Remaining path: ${U}`)}}}nZ.Collection=M8;nZ.collectionFromPath=b1;nZ.isEmptyPath=F8});var o0=D((X4)=>{var $4=($)=>$.replace(/^(?!$)(?: $)?/gm,"#");function C1($,Z){if(/^\n+$/.test($))return $.substring(1);return Z?$.replace(/^(?! *$)/gm,Z):$}var Z4=($,Z,X)=>$.endsWith(`
3
+ `)?C1(X,Z):X.includes(`
4
4
  `)?`
5
- `+T2(U,Z):($.endsWith(" ")?"":" ")+U;vZ.indentComment=T2;vZ.lineComment=kZ;vZ.stringifyComment=uZ});var V3=R((cZ)=>{function dZ($,Z,U="flow",{indentAtStart:X,lineWidth:z=80,minContentWidth:Q=20,onFold:J,onOverflow:H}={}){if(!z||z<0)return $;if(z<Q)Q=0;let q=Math.max(1+Q,1+z-Z.length);if($.length<=q)return $;let G=[],W={},Y=z-Z.length;if(typeof X==="number")if(X>z-Math.max(2,Q))G.push(0);else Y=z-X;let V=void 0,O=void 0,_=!1,B=-1,L=-1,I=-1;if(U==="block"){if(B=B3($,B,Z.length),B!==-1)Y=B+q}for(let F;F=$[B+=1];){if(U==="quoted"&&F==="\\"){switch(L=B,$[B+1]){case"x":B+=3;break;case"u":B+=5;break;case"U":B+=9;break;default:B+=1}I=B}if(F===`
6
- `){if(U==="block")B=B3($,B,Z.length);Y=B+Z.length+q,V=void 0}else{if(F===" "&&O&&O!==" "&&O!==`
7
- `&&O!=="\t"){let A=$[B+1];if(A&&A!==" "&&A!==`
8
- `&&A!=="\t")V=B}if(B>=Y)if(V)G.push(V),Y=V+q,V=void 0;else if(U==="quoted"){while(O===" "||O==="\t")O=F,F=$[B+=1],_=!0;let A=B>I+1?B-2:L-1;if(W[A])return $;G.push(A),W[A]=!0,Y=A+q,V=void 0}else _=!0}O=F}if(_&&H)H();if(G.length===0)return $;if(J)J();let M=$.slice(0,G[0]);for(let F=0;F<G.length;++F){let A=G[F],K=G[F+1]||$.length;if(A===0)M=`
9
- ${Z}${$.slice(0,K)}`;else{if(U==="quoted"&&W[A])M+=`${$[A]}\\`;M+=`
10
- ${Z}${$.slice(A+1,K)}`}}return M}function B3($,Z,U){let X=Z,z=Z+1,Q=$[z];while(Q===" "||Q==="\t")if(Z<z+U)Q=$[++Z];else{do Q=$[++Z];while(Q&&Q!==`
11
- `);X=Z,z=Z+1,Q=$[z]}return X}cZ.FOLD_BLOCK="block";cZ.FOLD_FLOW="flow";cZ.FOLD_QUOTED="quoted";cZ.foldFlowLines=dZ});var s0=R((eZ)=>{var v=g(),e=V3(),b$=($,Z)=>({indentAtStart:Z?$.indent.length:$.indentAtStart,lineWidth:$.options.lineWidth,minContentWidth:$.options.minContentWidth}),C$=($)=>/^(%|---|\.\.\.)/m.test($);function nZ($,Z,U){if(!Z||Z<0)return!1;let X=Z-U,z=$.length;if(z<=X)return!1;for(let Q=0,J=0;Q<z;++Q)if($[Q]===`
12
- `){if(Q-J>X)return!0;if(J=Q+1,z-J<=X)return!1}return!0}function i0($,Z){let U=JSON.stringify($);if(Z.options.doubleQuotedAsJSON)return U;let{implicitKey:X}=Z,z=Z.options.doubleQuotedMinMultiLineLength,Q=Z.indent||(C$($)?" ":""),J="",H=0;for(let q=0,G=U[q];G;G=U[++q]){if(G===" "&&U[q+1]==="\\"&&U[q+2]==="n")J+=U.slice(H,q)+"\\ ",q+=1,H=q,G="\\";if(G==="\\")switch(U[q+1]){case"u":{J+=U.slice(H,q);let W=U.substr(q+2,4);switch(W){case"0000":J+="\\0";break;case"0007":J+="\\a";break;case"000b":J+="\\v";break;case"001b":J+="\\e";break;case"0085":J+="\\N";break;case"00a0":J+="\\_";break;case"2028":J+="\\L";break;case"2029":J+="\\P";break;default:if(W.substr(0,2)==="00")J+="\\x"+W.substr(2);else J+=U.substr(q,6)}q+=5,H=q+1}break;case"n":if(X||U[q+2]==='"'||U.length<z)q+=1;else{J+=U.slice(H,q)+`
5
+ `+C1(X,Z):($.endsWith(" ")?"":" ")+X;X4.indentComment=C1;X4.lineComment=Z4;X4.stringifyComment=$4});var T8=D((H4)=>{function J4($,Z,X="flow",{indentAtStart:U,lineWidth:z=80,minContentWidth:Q=20,onFold:J,onOverflow:H}={}){if(!z||z<0)return $;if(z<Q)Q=0;let q=Math.max(1+Q,1+z-Z.length);if($.length<=q)return $;let _=[],B={},G=z-Z.length;if(typeof U==="number")if(U>z-Math.max(2,Q))_.push(0);else G=z-U;let Y=void 0,O=void 0,L=!1,V=-1,W=-1,I=-1;if(X==="block"){if(V=P8($,V,Z.length),V!==-1)G=V+q}for(let T;T=$[V+=1];){if(X==="quoted"&&T==="\\"){switch(W=V,$[V+1]){case"x":V+=3;break;case"u":V+=5;break;case"U":V+=9;break;default:V+=1}I=V}if(T===`
6
+ `){if(X==="block")V=P8($,V,Z.length);G=V+Z.length+q,Y=void 0}else{if(T===" "&&O&&O!==" "&&O!==`
7
+ `&&O!=="\t"){let A=$[V+1];if(A&&A!==" "&&A!==`
8
+ `&&A!=="\t")Y=V}if(V>=G)if(Y)_.push(Y),G=Y+q,Y=void 0;else if(X==="quoted"){while(O===" "||O==="\t")O=T,T=$[V+=1],L=!0;let A=V>I+1?V-2:W-1;if(B[A])return $;_.push(A),B[A]=!0,G=A+q,Y=void 0}else L=!0}O=T}if(L&&H)H();if(_.length===0)return $;if(J)J();let F=$.slice(0,_[0]);for(let T=0;T<_.length;++T){let A=_[T],K=_[T+1]||$.length;if(A===0)F=`
9
+ ${Z}${$.slice(0,K)}`;else{if(X==="quoted"&&B[A])F+=`${$[A]}\\`;F+=`
10
+ ${Z}${$.slice(A+1,K)}`}}return F}function P8($,Z,X){let U=Z,z=Z+1,Q=$[z];while(Q===" "||Q==="\t")if(Z<z+X)Q=$[++Z];else{do Q=$[++Z];while(Q&&Q!==`
11
+ `);U=Z,z=Z+1,Q=$[z]}return U}H4.FOLD_BLOCK="block";H4.FOLD_FLOW="flow";H4.FOLD_QUOTED="quoted";H4.foldFlowLines=J4});var e0=D((W4)=>{var m=g(),Z0=T8(),g$=($,Z)=>({indentAtStart:Z?$.indent.length:$.indentAtStart,lineWidth:$.options.lineWidth,minContentWidth:$.options.minContentWidth}),y$=($)=>/^(%|---|\.\.\.)/m.test($);function B4($,Z,X){if(!Z||Z<0)return!1;let U=Z-X,z=$.length;if(z<=U)return!1;for(let Q=0,J=0;Q<z;++Q)if($[Q]===`
12
+ `){if(Q-J>U)return!0;if(J=Q+1,z-J<=U)return!1}return!0}function t0($,Z){let X=JSON.stringify($);if(Z.options.doubleQuotedAsJSON)return X;let{implicitKey:U}=Z,z=Z.options.doubleQuotedMinMultiLineLength,Q=Z.indent||(y$($)?" ":""),J="",H=0;for(let q=0,_=X[q];_;_=X[++q]){if(_===" "&&X[q+1]==="\\"&&X[q+2]==="n")J+=X.slice(H,q)+"\\ ",q+=1,H=q,_="\\";if(_==="\\")switch(X[q+1]){case"u":{J+=X.slice(H,q);let B=X.substr(q+2,4);switch(B){case"0000":J+="\\0";break;case"0007":J+="\\a";break;case"000b":J+="\\v";break;case"001b":J+="\\e";break;case"0085":J+="\\N";break;case"00a0":J+="\\_";break;case"2028":J+="\\L";break;case"2029":J+="\\P";break;default:if(B.substr(0,2)==="00")J+="\\x"+B.substr(2);else J+=X.substr(q,6)}q+=5,H=q+1}break;case"n":if(U||X[q+2]==='"'||X.length<z)q+=1;else{J+=X.slice(H,q)+`
13
13
 
14
- `;while(U[q+2]==="\\"&&U[q+3]==="n"&&U[q+4]!=='"')J+=`
15
- `,q+=2;if(J+=Q,U[q+2]===" ")J+="\\";q+=1,H=q+1}break;default:q+=1}}return J=H?J+U.slice(H):U,X?J:e.foldFlowLines(J,Q,e.FOLD_QUOTED,b$(Z,!1))}function F2($,Z){if(Z.options.singleQuote===!1||Z.implicitKey&&$.includes(`
16
- `)||/[ \t]\n|\n[ \t]/.test($))return i0($,Z);let U=Z.indent||(C$($)?" ":""),X="'"+$.replace(/'/g,"''").replace(/\n+/g,`$&
17
- ${U}`)+"'";return Z.implicitKey?X:e.foldFlowLines(X,U,e.FOLD_FLOW,b$(Z,!1))}function F0($,Z){let{singleQuote:U}=Z.options,X;if(U===!1)X=i0;else{let z=$.includes('"'),Q=$.includes("'");if(z&&!Q)X=F2;else if(Q&&!z)X=i0;else X=U?F2:i0}return X($,Z)}var K2;try{K2=new RegExp(`(^|(?<!
14
+ `;while(X[q+2]==="\\"&&X[q+3]==="n"&&X[q+4]!=='"')J+=`
15
+ `,q+=2;if(J+=Q,X[q+2]===" ")J+="\\";q+=1,H=q+1}break;default:q+=1}}return J=H?J+X.slice(H):X,U?J:Z0.foldFlowLines(J,Q,Z0.FOLD_QUOTED,g$(Z,!1))}function j1($,Z){if(Z.options.singleQuote===!1||Z.implicitKey&&$.includes(`
16
+ `)||/[ \t]\n|\n[ \t]/.test($))return t0($,Z);let X=Z.indent||(y$($)?" ":""),U="'"+$.replace(/'/g,"''").replace(/\n+/g,`$&
17
+ ${X}`)+"'";return Z.implicitKey?U:Z0.foldFlowLines(U,X,Z0.FOLD_FLOW,g$(Z,!1))}function w0($,Z){let{singleQuote:X}=Z.options,U;if(X===!1)U=t0;else{let z=$.includes('"'),Q=$.includes("'");if(z&&!Q)U=j1;else if(Q&&!z)U=t0;else U=X?j1:t0}return U($,Z)}var S1;try{S1=new RegExp(`(^|(?<!
18
18
  ))
19
19
  +(?!
20
- |$)`,"g")}catch{K2=/\n+(?!\n|$)/g}function w$({comment:$,type:Z,value:U},X,z,Q){let{blockQuote:J,commentString:H,lineWidth:q}=X.options;if(!J||/\n[\t ]+$/.test(U))return F0(U,X);let G=X.indent||(X.forceBlockIndent||C$(U)?" ":""),W=J==="literal"?!0:J==="folded"||Z===v.Scalar.BLOCK_FOLDED?!1:Z===v.Scalar.BLOCK_LITERAL?!0:!nZ(U,q,G.length);if(!U)return W?`|
20
+ |$)`,"g")}catch{S1=/\n+(?!\n|$)/g}function E$({comment:$,type:Z,value:X},U,z,Q){let{blockQuote:J,commentString:H,lineWidth:q}=U.options;if(!J||/\n[\t ]+$/.test(X))return w0(X,U);let _=U.indent||(U.forceBlockIndent||y$(X)?" ":""),B=J==="literal"?!0:J==="folded"||Z===m.Scalar.BLOCK_FOLDED?!1:Z===m.Scalar.BLOCK_LITERAL?!0:!B4(X,q,_.length);if(!X)return B?`|
21
21
  `:`>
22
- `;let Y,V;for(V=U.length;V>0;--V){let K=U[V-1];if(K!==`
23
- `&&K!=="\t"&&K!==" ")break}let O=U.substring(V),_=O.indexOf(`
24
- `);if(_===-1)Y="-";else if(U===O||_!==O.length-1){if(Y="+",Q)Q()}else Y="";if(O){if(U=U.slice(0,-O.length),O[O.length-1]===`
25
- `)O=O.slice(0,-1);O=O.replace(K2,`$&${G}`)}let B=!1,L,I=-1;for(L=0;L<U.length;++L){let K=U[L];if(K===" ")B=!0;else if(K===`
26
- `)I=L;else break}let M=U.substring(0,I<L?I+1:L);if(M)U=U.substring(M.length),M=M.replace(/\n+/g,`$&${G}`);let A=(B?G?"2":"1":"")+Y;if($){if(A+=" "+H($.replace(/ ?[\r\n]+/g," ")),z)z()}if(!W){let K=U.replace(/\n+/g,`
27
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${G}`),N=!1,C=b$(X,!0);if(J!=="folded"&&Z!==v.Scalar.BLOCK_FOLDED)C.onOverflow=()=>{N=!0};let D=e.foldFlowLines(`${M}${K}${O}`,G,e.FOLD_BLOCK,C);if(!N)return`>${A}
28
- ${G}${D}`}return U=U.replace(/\n+/g,`$&${G}`),`|${A}
29
- ${G}${M}${U}${O}`}function oZ($,Z,U,X){let{type:z,value:Q}=$,{actualString:J,implicitKey:H,indent:q,indentStep:G,inFlow:W}=Z;if(H&&Q.includes(`
30
- `)||W&&/[[\]{},]/.test(Q))return F0(Q,Z);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(Q))return H||W||!Q.includes(`
31
- `)?F0(Q,Z):w$($,Z,U,X);if(!H&&!W&&z!==v.Scalar.PLAIN&&Q.includes(`
32
- `))return w$($,Z,U,X);if(C$(Q)){if(q==="")return Z.forceBlockIndent=!0,w$($,Z,U,X);else if(H&&q===G)return F0(Q,Z)}let Y=Q.replace(/\n+/g,`$&
33
- ${q}`);if(J){let V=(B)=>B.default&&B.tag!=="tag:yaml.org,2002:str"&&B.test?.test(Y),{compat:O,tags:_}=Z.doc.schema;if(_.some(V)||O?.some(V))return F0(Q,Z)}return H?Y:e.foldFlowLines(Y,q,e.FOLD_FLOW,b$(Z,!1))}function tZ($,Z,U,X){let{implicitKey:z,inFlow:Q}=Z,J=typeof $.value==="string"?$:Object.assign({},$,{value:String($.value)}),{type:H}=$;if(H!==v.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(J.value))H=v.Scalar.QUOTE_DOUBLE}let q=(W)=>{switch(W){case v.Scalar.BLOCK_FOLDED:case v.Scalar.BLOCK_LITERAL:return z||Q?F0(J.value,Z):w$(J,Z,U,X);case v.Scalar.QUOTE_DOUBLE:return i0(J.value,Z);case v.Scalar.QUOTE_SINGLE:return F2(J.value,Z);case v.Scalar.PLAIN:return oZ(J,Z,U,X);default:return null}},G=q(H);if(G===null){let{defaultKeyType:W,defaultStringType:Y}=Z.options,V=z&&W||Y;if(G=q(V),G===null)throw Error(`Unsupported default string type ${V}`)}return G}eZ.stringifyString=tZ});var r0=R((q5)=>{var Z5=F$(),$0=b(),U5=a0(),X5=s0();function z5($,Z){let U=Object.assign({blockQuote:!0,commentString:U5.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},$.schema.toStringOptions,Z),X;switch(U.collectionStyle){case"block":X=!1;break;case"flow":X=!0;break;default:X=null}return{anchors:new Set,doc:$,flowCollectionPadding:U.flowCollectionPadding?" ":"",indent:"",indentStep:typeof U.indent==="number"?" ".repeat(U.indent):" ",inFlow:X,options:U}}function Q5($,Z){if(Z.tag){let z=$.filter((Q)=>Q.tag===Z.tag);if(z.length>0)return z.find((Q)=>Q.format===Z.format)??z[0]}let U=void 0,X;if($0.isScalar(Z)){X=Z.value;let z=$.filter((Q)=>Q.identify?.(X));if(z.length>1){let Q=z.filter((J)=>J.test);if(Q.length>0)z=Q}U=z.find((Q)=>Q.format===Z.format)??z.find((Q)=>!Q.format)}else X=Z,U=$.find((z)=>z.nodeClass&&X instanceof z.nodeClass);if(!U){let z=X?.constructor?.name??(X===null?"null":typeof X);throw Error(`Tag not resolved for ${z} value`)}return U}function J5($,Z,{anchors:U,doc:X}){if(!X.directives)return"";let z=[],Q=($0.isScalar($)||$0.isCollection($))&&$.anchor;if(Q&&Z5.anchorIsValid(Q))U.add(Q),z.push(`&${Q}`);let J=$.tag??(Z.default?null:Z.tag);if(J)z.push(X.directives.tagString(J));return z.join(" ")}function H5($,Z,U,X){if($0.isPair($))return $.toString(Z,U,X);if($0.isAlias($)){if(Z.doc.directives)return $.toString(Z);if(Z.resolvedAliases?.has($))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(Z.resolvedAliases)Z.resolvedAliases.add($);else Z.resolvedAliases=new Set([$]);$=$.resolve(Z.doc)}}let z=void 0,Q=$0.isNode($)?$:Z.doc.createNode($,{onTagObj:(q)=>z=q});z??(z=Q5(Z.doc.schema.tags,Q));let J=J5(Q,z,Z);if(J.length>0)Z.indentAtStart=(Z.indentAtStart??0)+J.length+1;let H=typeof z.stringify==="function"?z.stringify(Q,Z,U,X):$0.isScalar(Q)?X5.stringifyString(Q,Z,U,X):Q.toString(Z,U,X);if(!J)return H;return $0.isScalar(Q)||H[0]==="{"||H[0]==="["?`${J} ${H}`:`${J}
34
- ${Z.indent}${H}`}q5.createStringifyContext=z5;q5.stringify=H5});var L3=R((V5)=>{var r=b(),W3=g(),O3=r0(),n0=a0();function B5({key:$,value:Z},U,X,z){let{allNullValues:Q,doc:J,indent:H,indentStep:q,options:{commentString:G,indentSeq:W,simpleKeys:Y}}=U,V=r.isNode($)&&$.comment||null;if(Y){if(V)throw Error("With simple keys, key nodes cannot have comments");if(r.isCollection($)||!r.isNode($)&&typeof $==="object")throw Error("With simple keys, collection cannot be used as a key value")}let O=!Y&&(!$||V&&Z==null&&!U.inFlow||r.isCollection($)||(r.isScalar($)?$.type===W3.Scalar.BLOCK_FOLDED||$.type===W3.Scalar.BLOCK_LITERAL:typeof $==="object"));U=Object.assign({},U,{allNullValues:!1,implicitKey:!O&&(Y||!Q),indent:H+q});let _=!1,B=!1,L=O3.stringify($,U,()=>_=!0,()=>B=!0);if(!O&&!U.inFlow&&L.length>1024){if(Y)throw Error("With simple keys, single line scalar must not span more than 1024 characters");O=!0}if(U.inFlow){if(Q||Z==null){if(_&&X)X();return L===""?"?":O?`? ${L}`:L}}else if(Q&&!Y||Z==null&&O){if(L=`? ${L}`,V&&!_)L+=n0.lineComment(L,U.indent,G(V));else if(B&&z)z();return L}if(_)V=null;if(O){if(V)L+=n0.lineComment(L,U.indent,G(V));L=`? ${L}
35
- ${H}:`}else if(L=`${L}:`,V)L+=n0.lineComment(L,U.indent,G(V));let I,M,F;if(r.isNode(Z))I=!!Z.spaceBefore,M=Z.commentBefore,F=Z.comment;else if(I=!1,M=null,F=null,Z&&typeof Z==="object")Z=J.createNode(Z);if(U.implicitKey=!1,!O&&!V&&r.isScalar(Z))U.indentAtStart=L.length+1;if(B=!1,!W&&q.length>=2&&!U.inFlow&&!O&&r.isSeq(Z)&&!Z.flow&&!Z.tag&&!Z.anchor)U.indent=U.indent.substring(2);let A=!1,K=O3.stringify(Z,U,()=>A=!0,()=>B=!0),N=" ";if(V||I||M){if(N=I?`
36
- `:"",M){let C=G(M);N+=`
37
- ${n0.indentComment(C,U.indent)}`}if(K===""&&!U.inFlow){if(N===`
38
- `&&F)N=`
22
+ `;let G,Y;for(Y=X.length;Y>0;--Y){let K=X[Y-1];if(K!==`
23
+ `&&K!=="\t"&&K!==" ")break}let O=X.substring(Y),L=O.indexOf(`
24
+ `);if(L===-1)G="-";else if(X===O||L!==O.length-1){if(G="+",Q)Q()}else G="";if(O){if(X=X.slice(0,-O.length),O[O.length-1]===`
25
+ `)O=O.slice(0,-1);O=O.replace(S1,`$&${_}`)}let V=!1,W,I=-1;for(W=0;W<X.length;++W){let K=X[W];if(K===" ")V=!0;else if(K===`
26
+ `)I=W;else break}let F=X.substring(0,I<W?I+1:W);if(F)X=X.substring(F.length),F=F.replace(/\n+/g,`$&${_}`);let A=(V?_?"2":"1":"")+G;if($){if(A+=" "+H($.replace(/ ?[\r\n]+/g," ")),z)z()}if(!B){let K=X.replace(/\n+/g,`
27
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${_}`),N=!1,C=g$(U,!0);if(J!=="folded"&&Z!==m.Scalar.BLOCK_FOLDED)C.onOverflow=()=>{N=!0};let R=Z0.foldFlowLines(`${F}${K}${O}`,_,Z0.FOLD_BLOCK,C);if(!N)return`>${A}
28
+ ${_}${R}`}return X=X.replace(/\n+/g,`$&${_}`),`|${A}
29
+ ${_}${F}${X}${O}`}function V4($,Z,X,U){let{type:z,value:Q}=$,{actualString:J,implicitKey:H,indent:q,indentStep:_,inFlow:B}=Z;if(H&&Q.includes(`
30
+ `)||B&&/[[\]{},]/.test(Q))return w0(Q,Z);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(Q))return H||B||!Q.includes(`
31
+ `)?w0(Q,Z):E$($,Z,X,U);if(!H&&!B&&z!==m.Scalar.PLAIN&&Q.includes(`
32
+ `))return E$($,Z,X,U);if(y$(Q)){if(q==="")return Z.forceBlockIndent=!0,E$($,Z,X,U);else if(H&&q===_)return w0(Q,Z)}let G=Q.replace(/\n+/g,`$&
33
+ ${q}`);if(J){let Y=(V)=>V.default&&V.tag!=="tag:yaml.org,2002:str"&&V.test?.test(G),{compat:O,tags:L}=Z.doc.schema;if(L.some(Y)||O?.some(Y))return w0(Q,Z)}return H?G:Z0.foldFlowLines(G,q,Z0.FOLD_FLOW,g$(Z,!1))}function O4($,Z,X,U){let{implicitKey:z,inFlow:Q}=Z,J=typeof $.value==="string"?$:Object.assign({},$,{value:String($.value)}),{type:H}=$;if(H!==m.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(J.value))H=m.Scalar.QUOTE_DOUBLE}let q=(B)=>{switch(B){case m.Scalar.BLOCK_FOLDED:case m.Scalar.BLOCK_LITERAL:return z||Q?w0(J.value,Z):E$(J,Z,X,U);case m.Scalar.QUOTE_DOUBLE:return t0(J.value,Z);case m.Scalar.QUOTE_SINGLE:return j1(J.value,Z);case m.Scalar.PLAIN:return V4(J,Z,X,U);default:return null}},_=q(H);if(_===null){let{defaultKeyType:B,defaultStringType:G}=Z.options,Y=z&&B||G;if(_=q(Y),_===null)throw Error(`Unsupported default string type ${Y}`)}return _}W4.stringifyString=O4});var $$=D((K4)=>{var R4=b$(),X0=b(),I4=o0(),D4=e0();function F4($,Z){let X=Object.assign({blockQuote:!0,commentString:I4.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},$.schema.toStringOptions,Z),U;switch(X.collectionStyle){case"block":U=!1;break;case"flow":U=!0;break;default:U=null}return{anchors:new Set,doc:$,flowCollectionPadding:X.flowCollectionPadding?" ":"",indent:"",indentStep:typeof X.indent==="number"?" ".repeat(X.indent):" ",inFlow:U,options:X}}function M4($,Z){if(Z.tag){let z=$.filter((Q)=>Q.tag===Z.tag);if(z.length>0)return z.find((Q)=>Q.format===Z.format)??z[0]}let X=void 0,U;if(X0.isScalar(Z)){U=Z.value;let z=$.filter((Q)=>Q.identify?.(U));if(z.length>1){let Q=z.filter((J)=>J.test);if(Q.length>0)z=Q}X=z.find((Q)=>Q.format===Z.format)??z.find((Q)=>!Q.format)}else U=Z,X=$.find((z)=>z.nodeClass&&U instanceof z.nodeClass);if(!X){let z=U?.constructor?.name??(U===null?"null":typeof U);throw Error(`Tag not resolved for ${z} value`)}return X}function P4($,Z,{anchors:X,doc:U}){if(!U.directives)return"";let z=[],Q=(X0.isScalar($)||X0.isCollection($))&&$.anchor;if(Q&&R4.anchorIsValid(Q))X.add(Q),z.push(`&${Q}`);let J=$.tag??(Z.default?null:Z.tag);if(J)z.push(U.directives.tagString(J));return z.join(" ")}function T4($,Z,X,U){if(X0.isPair($))return $.toString(Z,X,U);if(X0.isAlias($)){if(Z.doc.directives)return $.toString(Z);if(Z.resolvedAliases?.has($))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(Z.resolvedAliases)Z.resolvedAliases.add($);else Z.resolvedAliases=new Set([$]);$=$.resolve(Z.doc)}}let z=void 0,Q=X0.isNode($)?$:Z.doc.createNode($,{onTagObj:(q)=>z=q});z??(z=M4(Z.doc.schema.tags,Q));let J=P4(Q,z,Z);if(J.length>0)Z.indentAtStart=(Z.indentAtStart??0)+J.length+1;let H=typeof z.stringify==="function"?z.stringify(Q,Z,X,U):X0.isScalar(Q)?D4.stringifyString(Q,Z,X,U):Q.toString(Z,X,U);if(!J)return H;return X0.isScalar(Q)||H[0]==="{"||H[0]==="["?`${J} ${H}`:`${J}
34
+ ${Z.indent}${H}`}K4.createStringifyContext=F4;K4.stringify=T4});var N8=D((b4)=>{var n=b(),K8=g(),A8=$$(),Z$=o0();function w4({key:$,value:Z},X,U,z){let{allNullValues:Q,doc:J,indent:H,indentStep:q,options:{commentString:_,indentSeq:B,simpleKeys:G}}=X,Y=n.isNode($)&&$.comment||null;if(G){if(Y)throw Error("With simple keys, key nodes cannot have comments");if(n.isCollection($)||!n.isNode($)&&typeof $==="object")throw Error("With simple keys, collection cannot be used as a key value")}let O=!G&&(!$||Y&&Z==null&&!X.inFlow||n.isCollection($)||(n.isScalar($)?$.type===K8.Scalar.BLOCK_FOLDED||$.type===K8.Scalar.BLOCK_LITERAL:typeof $==="object"));X=Object.assign({},X,{allNullValues:!1,implicitKey:!O&&(G||!Q),indent:H+q});let L=!1,V=!1,W=A8.stringify($,X,()=>L=!0,()=>V=!0);if(!O&&!X.inFlow&&W.length>1024){if(G)throw Error("With simple keys, single line scalar must not span more than 1024 characters");O=!0}if(X.inFlow){if(Q||Z==null){if(L&&U)U();return W===""?"?":O?`? ${W}`:W}}else if(Q&&!G||Z==null&&O){if(W=`? ${W}`,Y&&!L)W+=Z$.lineComment(W,X.indent,_(Y));else if(V&&z)z();return W}if(L)Y=null;if(O){if(Y)W+=Z$.lineComment(W,X.indent,_(Y));W=`? ${W}
35
+ ${H}:`}else if(W=`${W}:`,Y)W+=Z$.lineComment(W,X.indent,_(Y));let I,F,T;if(n.isNode(Z))I=!!Z.spaceBefore,F=Z.commentBefore,T=Z.comment;else if(I=!1,F=null,T=null,Z&&typeof Z==="object")Z=J.createNode(Z);if(X.implicitKey=!1,!O&&!Y&&n.isScalar(Z))X.indentAtStart=W.length+1;if(V=!1,!B&&q.length>=2&&!X.inFlow&&!O&&n.isSeq(Z)&&!Z.flow&&!Z.tag&&!Z.anchor)X.indent=X.indent.substring(2);let A=!1,K=A8.stringify(Z,X,()=>A=!0,()=>V=!0),N=" ";if(Y||I||F){if(N=I?`
36
+ `:"",F){let C=_(F);N+=`
37
+ ${Z$.indentComment(C,X.indent)}`}if(K===""&&!X.inFlow){if(N===`
38
+ `&&T)N=`
39
39
 
40
40
  `}else N+=`
41
- ${U.indent}`}else if(!O&&r.isCollection(Z)){let C=K[0],D=K.indexOf(`
42
- `),w=D!==-1,l=U.inFlow??Z.flow??Z.items.length===0;if(w||!l){let d=!1;if(w&&(C==="&"||C==="!")){let E=K.indexOf(" ");if(C==="&"&&E!==-1&&E<D&&K[E+1]==="!")E=K.indexOf(" ",E+1);if(E===-1||D<E)d=!0}if(!d)N=`
43
- ${U.indent}`}}else if(K===""||K[0]===`
44
- `)N="";if(L+=N+K,U.inFlow){if(A&&X)X()}else if(F&&!A)L+=n0.lineComment(L,U.indent,G(F));else if(B&&z)z();return L}V5.stringifyPair=B5});var A2=R((_5)=>{var _3=h0("process");function O5($,...Z){if($==="debug")console.log(...Z)}function L5($,Z){if($==="debug"||$==="warn")if(typeof _3.emitWarning==="function")_3.emitWarning(Z);else console.warn(Z)}_5.debug=O5;_5.warn=L5});var E$=R((M5)=>{var o0=b(),D3=g(),j$="<<",S$={identify:($)=>$===j$||typeof $==="symbol"&&$.description===j$,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new D3.Scalar(Symbol(j$)),{addToJSMap:I3}),stringify:()=>j$},R5=($,Z)=>(S$.identify(Z)||o0.isScalar(Z)&&(!Z.type||Z.type===D3.Scalar.PLAIN)&&S$.identify(Z.value))&&$?.doc.schema.tags.some((U)=>U.tag===S$.tag&&U.default);function I3($,Z,U){if(U=$&&o0.isAlias(U)?U.resolve($.doc):U,o0.isSeq(U))for(let X of U.items)N2($,Z,X);else if(Array.isArray(U))for(let X of U)N2($,Z,X);else N2($,Z,U)}function N2($,Z,U){let X=$&&o0.isAlias(U)?U.resolve($.doc):U;if(!o0.isMap(X))throw Error("Merge sources must be maps or map aliases");let z=X.toJSON(null,$,Map);for(let[Q,J]of z)if(Z instanceof Map){if(!Z.has(Q))Z.set(Q,J)}else if(Z instanceof Set)Z.add(Q);else if(!Object.prototype.hasOwnProperty.call(Z,Q))Object.defineProperty(Z,Q,{value:J,writable:!0,enumerable:!0,configurable:!0});return Z}M5.addMergeToJSMap=I3;M5.isMergeKey=R5;M5.merge=S$});var b2=R((b5)=>{var K5=A2(),R3=E$(),A5=r0(),M3=b(),w2=t();function N5($,Z,{key:U,value:X}){if(M3.isNode(U)&&U.addToJSMap)U.addToJSMap($,Z,X);else if(R3.isMergeKey($,U))R3.addMergeToJSMap($,Z,X);else{let z=w2.toJS(U,"",$);if(Z instanceof Map)Z.set(z,w2.toJS(X,z,$));else if(Z instanceof Set)Z.add(z);else{let Q=w5(U,z,$),J=w2.toJS(X,Q,$);if(Q in Z)Object.defineProperty(Z,Q,{value:J,writable:!0,enumerable:!0,configurable:!0});else Z[Q]=J}}return Z}function w5($,Z,U){if(Z===null)return"";if(typeof Z!=="object")return String(Z);if(M3.isNode($)&&U?.doc){let X=A5.createStringifyContext(U.doc,{});X.anchors=new Set;for(let Q of U.anchors.keys())X.anchors.add(Q.anchor);X.inFlow=!0,X.inStringifyKey=!0;let z=$.toString(X);if(!U.mapKeyWarned){let Q=JSON.stringify(z);if(Q.length>40)Q=Q.substring(0,36)+'..."';K5.warn(U.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${Q}. Set mapAsMap: true to use object keys.`),U.mapKeyWarned=!0}return z}return JSON.stringify(Z)}b5.addPairToJSMap=N5});var Z0=R((g5)=>{var P3=c0(),j5=L3(),S5=b2(),g$=b();function E5($,Z,U){let X=P3.createNode($,void 0,U),z=P3.createNode(Z,void 0,U);return new f$(X,z)}class f${constructor($,Z=null){Object.defineProperty(this,g$.NODE_TYPE,{value:g$.PAIR}),this.key=$,this.value=Z}clone($){let{key:Z,value:U}=this;if(g$.isNode(Z))Z=Z.clone($);if(g$.isNode(U))U=U.clone($);return new f$(Z,U)}toJSON($,Z){let U=Z?.mapAsMap?new Map:{};return S5.addPairToJSMap(Z,U,this)}toString($,Z,U){return $?.doc?j5.stringifyPair(this,$,Z,U):JSON.stringify(this)}}g5.Pair=f$;g5.createPair=E5});var C2=R((k5)=>{var Y0=b(),T3=r0(),y$=a0();function x5($,Z,U){return(Z.inFlow??$.flow?u5:h5)($,Z,U)}function h5({comment:$,items:Z},U,{blockItemPrefix:X,flowChars:z,itemIndent:Q,onChompKeep:J,onComment:H}){let{indent:q,options:{commentString:G}}=U,W=Object.assign({},U,{indent:Q,type:null}),Y=!1,V=[];for(let _=0;_<Z.length;++_){let B=Z[_],L=null;if(Y0.isNode(B)){if(!Y&&B.spaceBefore)V.push("");if(x$(U,V,B.commentBefore,Y),B.comment)L=B.comment}else if(Y0.isPair(B)){let M=Y0.isNode(B.key)?B.key:null;if(M){if(!Y&&M.spaceBefore)V.push("");x$(U,V,M.commentBefore,Y)}}Y=!1;let I=T3.stringify(B,W,()=>L=null,()=>Y=!0);if(L)I+=y$.lineComment(I,Q,G(L));if(Y&&L)Y=!1;V.push(X+I)}let O;if(V.length===0)O=z.start+z.end;else{O=V[0];for(let _=1;_<V.length;++_){let B=V[_];O+=B?`
45
- ${q}${B}`:`
41
+ ${X.indent}`}else if(!O&&n.isCollection(Z)){let C=K[0],R=K.indexOf(`
42
+ `),w=R!==-1,d=X.inFlow??Z.flow??Z.items.length===0;if(w||!d){let c=!1;if(w&&(C==="&"||C==="!")){let E=K.indexOf(" ");if(C==="&"&&E!==-1&&E<R&&K[E+1]==="!")E=K.indexOf(" ",E+1);if(E===-1||R<E)c=!0}if(!c)N=`
43
+ ${X.indent}`}}else if(K===""||K[0]===`
44
+ `)N="";if(W+=N+K,X.inFlow){if(A&&U)U()}else if(T&&!A)W+=Z$.lineComment(W,X.indent,_(T));else if(V&&z)z();return W}b4.stringifyPair=w4});var E1=D((E4)=>{var w8=p0("process");function j4($,...Z){if($==="debug")console.log(...Z)}function S4($,Z){if($==="debug"||$==="warn")if(typeof w8.emitWarning==="function")w8.emitWarning(Z);else console.warn(Z)}E4.debug=j4;E4.warn=S4});var h$=D((x4)=>{var X$=b(),b8=g(),f$="<<",x$={identify:($)=>$===f$||typeof $==="symbol"&&$.description===f$,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new b8.Scalar(Symbol(f$)),{addToJSMap:C8}),stringify:()=>f$},f4=($,Z)=>(x$.identify(Z)||X$.isScalar(Z)&&(!Z.type||Z.type===b8.Scalar.PLAIN)&&x$.identify(Z.value))&&$?.doc.schema.tags.some((X)=>X.tag===x$.tag&&X.default);function C8($,Z,X){if(X=$&&X$.isAlias(X)?X.resolve($.doc):X,X$.isSeq(X))for(let U of X.items)g1($,Z,U);else if(Array.isArray(X))for(let U of X)g1($,Z,U);else g1($,Z,X)}function g1($,Z,X){let U=$&&X$.isAlias(X)?X.resolve($.doc):X;if(!X$.isMap(U))throw Error("Merge sources must be maps or map aliases");let z=U.toJSON(null,$,Map);for(let[Q,J]of z)if(Z instanceof Map){if(!Z.has(Q))Z.set(Q,J)}else if(Z instanceof Set)Z.add(Q);else if(!Object.prototype.hasOwnProperty.call(Z,Q))Object.defineProperty(Z,Q,{value:J,writable:!0,enumerable:!0,configurable:!0});return Z}x4.addMergeToJSMap=C8;x4.isMergeKey=f4;x4.merge=x$});var f1=D((d4)=>{var v4=E1(),j8=h$(),m4=$$(),S8=b(),y1=$0();function p4($,Z,{key:X,value:U}){if(S8.isNode(X)&&X.addToJSMap)X.addToJSMap($,Z,U);else if(j8.isMergeKey($,X))j8.addMergeToJSMap($,Z,U);else{let z=y1.toJS(X,"",$);if(Z instanceof Map)Z.set(z,y1.toJS(U,z,$));else if(Z instanceof Set)Z.add(z);else{let Q=l4(X,z,$),J=y1.toJS(U,Q,$);if(Q in Z)Object.defineProperty(Z,Q,{value:J,writable:!0,enumerable:!0,configurable:!0});else Z[Q]=J}}return Z}function l4($,Z,X){if(Z===null)return"";if(typeof Z!=="object")return String(Z);if(S8.isNode($)&&X?.doc){let U=m4.createStringifyContext(X.doc,{});U.anchors=new Set;for(let Q of X.anchors.keys())U.anchors.add(Q.anchor);U.inFlow=!0,U.inStringifyKey=!0;let z=$.toString(U);if(!X.mapKeyWarned){let Q=JSON.stringify(z);if(Q.length>40)Q=Q.substring(0,36)+'..."';v4.warn(X.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${Q}. Set mapAsMap: true to use object keys.`),X.mapKeyWarned=!0}return z}return JSON.stringify(Z)}d4.addPairToJSMap=p4});var U0=D((r4)=>{var E8=n0(),i4=N8(),s4=f1(),u$=b();function a4($,Z,X){let U=E8.createNode($,void 0,X),z=E8.createNode(Z,void 0,X);return new k$(U,z)}class k${constructor($,Z=null){Object.defineProperty(this,u$.NODE_TYPE,{value:u$.PAIR}),this.key=$,this.value=Z}clone($){let{key:Z,value:X}=this;if(u$.isNode(Z))Z=Z.clone($);if(u$.isNode(X))X=X.clone($);return new k$(Z,X)}toJSON($,Z){let X=Z?.mapAsMap?new Map:{};return s4.addPairToJSMap(Z,X,this)}toString($,Z,X){return $?.doc?i4.stringifyPair(this,$,Z,X):JSON.stringify(this)}}r4.Pair=k$;r4.createPair=a4});var x1=D((Z5)=>{var V0=b(),g8=$$(),v$=o0();function t4($,Z,X){return(Z.inFlow??$.flow?$5:e4)($,Z,X)}function e4({comment:$,items:Z},X,{blockItemPrefix:U,flowChars:z,itemIndent:Q,onChompKeep:J,onComment:H}){let{indent:q,options:{commentString:_}}=X,B=Object.assign({},X,{indent:Q,type:null}),G=!1,Y=[];for(let L=0;L<Z.length;++L){let V=Z[L],W=null;if(V0.isNode(V)){if(!G&&V.spaceBefore)Y.push("");if(m$(X,Y,V.commentBefore,G),V.comment)W=V.comment}else if(V0.isPair(V)){let F=V0.isNode(V.key)?V.key:null;if(F){if(!G&&F.spaceBefore)Y.push("");m$(X,Y,F.commentBefore,G)}}G=!1;let I=g8.stringify(V,B,()=>W=null,()=>G=!0);if(W)I+=v$.lineComment(I,Q,_(W));if(G&&W)G=!1;Y.push(U+I)}let O;if(Y.length===0)O=z.start+z.end;else{O=Y[0];for(let L=1;L<Y.length;++L){let V=Y[L];O+=V?`
45
+ ${q}${V}`:`
46
46
  `}}if($){if(O+=`
47
- `+y$.indentComment(G($),q),H)H()}else if(Y&&J)J();return O}function u5({items:$},Z,{flowChars:U,itemIndent:X}){let{indent:z,indentStep:Q,flowCollectionPadding:J,options:{commentString:H}}=Z;X+=Q;let q=Object.assign({},Z,{indent:X,inFlow:!0,type:null}),G=!1,W=0,Y=[];for(let _=0;_<$.length;++_){let B=$[_],L=null;if(Y0.isNode(B)){if(B.spaceBefore)Y.push("");if(x$(Z,Y,B.commentBefore,!1),B.comment)L=B.comment}else if(Y0.isPair(B)){let M=Y0.isNode(B.key)?B.key:null;if(M){if(M.spaceBefore)Y.push("");if(x$(Z,Y,M.commentBefore,!1),M.comment)G=!0}let F=Y0.isNode(B.value)?B.value:null;if(F){if(F.comment)L=F.comment;if(F.commentBefore)G=!0}else if(B.value==null&&M?.comment)L=M.comment}if(L)G=!0;let I=T3.stringify(B,q,()=>L=null);if(G||(G=Y.length>W||I.includes(`
48
- `)),_<$.length-1)I+=",";else if(Z.options.trailingComma){if(Z.options.lineWidth>0)G||(G=Y.reduce((M,F)=>M+F.length+2,2)+(I.length+2)>Z.options.lineWidth);if(G)I+=","}if(L)I+=y$.lineComment(I,X,H(L));Y.push(I),W=Y.length}let{start:V,end:O}=U;if(Y.length===0)return V+O;else{if(!G){let _=Y.reduce((B,L)=>B+L.length+2,2);G=Z.options.lineWidth>0&&_>Z.options.lineWidth}if(G){let _=V;for(let B of Y)_+=B?`
49
- ${Q}${z}${B}`:`
50
- `;return`${_}
51
- ${z}${O}`}else return`${V}${J}${Y.join(" ")}${J}${O}`}}function x$({indent:$,options:{commentString:Z}},U,X,z){if(X&&z)X=X.replace(/^\n+/,"");if(X){let Q=y$.indentComment(Z(X),$);U.push(Q.trimStart())}}k5.stringifyCollection=x5});var X0=R((c5)=>{var m5=C2(),p5=b2(),l5=N$(),U0=b(),h$=Z0(),d5=g();function t0($,Z){let U=U0.isScalar(Z)?Z.value:Z;for(let X of $)if(U0.isPair(X)){if(X.key===Z||X.key===U)return X;if(U0.isScalar(X.key)&&X.key.value===U)return X}return}class F3 extends l5.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor($){super(U0.MAP,$);this.items=[]}static from($,Z,U){let{keepUndefined:X,replacer:z}=U,Q=new this($),J=(H,q)=>{if(typeof z==="function")q=z.call(Z,H,q);else if(Array.isArray(z)&&!z.includes(H))return;if(q!==void 0||X)Q.items.push(h$.createPair(H,q,U))};if(Z instanceof Map)for(let[H,q]of Z)J(H,q);else if(Z&&typeof Z==="object")for(let H of Object.keys(Z))J(H,Z[H]);if(typeof $.sortMapEntries==="function")Q.items.sort($.sortMapEntries);return Q}add($,Z){let U;if(U0.isPair($))U=$;else if(!$||typeof $!=="object"||!("key"in $))U=new h$.Pair($,$?.value);else U=new h$.Pair($.key,$.value);let X=t0(this.items,U.key),z=this.schema?.sortMapEntries;if(X){if(!Z)throw Error(`Key ${U.key} already set`);if(U0.isScalar(X.value)&&d5.isScalarValue(U.value))X.value.value=U.value;else X.value=U.value}else if(z){let Q=this.items.findIndex((J)=>z(U,J)<0);if(Q===-1)this.items.push(U);else this.items.splice(Q,0,U)}else this.items.push(U)}delete($){let Z=t0(this.items,$);if(!Z)return!1;return this.items.splice(this.items.indexOf(Z),1).length>0}get($,Z){let X=t0(this.items,$)?.value;return(!Z&&U0.isScalar(X)?X.value:X)??void 0}has($){return!!t0(this.items,$)}set($,Z){this.add(new h$.Pair($,Z),!0)}toJSON($,Z,U){let X=U?new U:Z?.mapAsMap?new Map:{};if(Z?.onCreate)Z.onCreate(X);for(let z of this.items)p5.addPairToJSMap(Z,X,z);return X}toString($,Z,U){if(!$)return JSON.stringify(this);for(let X of this.items)if(!U0.isPair(X))throw Error(`Map items must all be pairs; found ${JSON.stringify(X)} instead`);if(!$.allNullValues&&this.hasAllNullValues(!1))$=Object.assign({},$,{allNullValues:!0});return m5.stringifyCollection(this,$,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:$.indent||"",onChompKeep:U,onComment:Z})}}c5.YAMLMap=F3;c5.findPair=t0});var K0=R((n5)=>{var s5=b(),K3=X0(),r5={collection:"map",default:!0,nodeClass:K3.YAMLMap,tag:"tag:yaml.org,2002:map",resolve($,Z){if(!s5.isMap($))Z("Expected a mapping for this tag");return $},createNode:($,Z,U)=>K3.YAMLMap.from($,Z,U)};n5.map=r5});var z0=R((X1)=>{var t5=c0(),e5=C2(),$1=N$(),k$=b(),Z1=g(),U1=t();class A3 extends $1.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor($){super(k$.SEQ,$);this.items=[]}add($){this.items.push($)}delete($){let Z=u$($);if(typeof Z!=="number")return!1;return this.items.splice(Z,1).length>0}get($,Z){let U=u$($);if(typeof U!=="number")return;let X=this.items[U];return!Z&&k$.isScalar(X)?X.value:X}has($){let Z=u$($);return typeof Z==="number"&&Z<this.items.length}set($,Z){let U=u$($);if(typeof U!=="number")throw Error(`Expected a valid index, not ${$}.`);let X=this.items[U];if(k$.isScalar(X)&&Z1.isScalarValue(Z))X.value=Z;else this.items[U]=Z}toJSON($,Z){let U=[];if(Z?.onCreate)Z.onCreate(U);let X=0;for(let z of this.items)U.push(U1.toJS(z,String(X++),Z));return U}toString($,Z,U){if(!$)return JSON.stringify(this);return e5.stringifyCollection(this,$,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:($.indent||"")+" ",onChompKeep:U,onComment:Z})}static from($,Z,U){let{replacer:X}=U,z=new this($);if(Z&&Symbol.iterator in Object(Z)){let Q=0;for(let J of Z){if(typeof X==="function"){let H=Z instanceof Set?J:String(Q++);J=X.call(Z,H,J)}z.items.push(t5.createNode(J,void 0,U))}}return z}}function u$($){let Z=k$.isScalar($)?$.value:$;if(Z&&typeof Z==="string")Z=Number(Z);return typeof Z==="number"&&Number.isInteger(Z)&&Z>=0?Z:null}X1.YAMLSeq=A3});var A0=R((H1)=>{var Q1=b(),N3=z0(),J1={collection:"seq",default:!0,nodeClass:N3.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve($,Z){if(!Q1.isSeq($))Z("Expected a sequence for this tag");return $},createNode:($,Z,U)=>N3.YAMLSeq.from($,Z,U)};H1.seq=J1});var e0=R((B1)=>{var G1=s0(),Y1={identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify($,Z,U,X){return Z=Object.assign({actualString:!0},Z),G1.stringifyString($,Z,U,X)}};B1.string=Y1});var v$=R((W1)=>{var w3=g(),b3={identify:($)=>$==null,createNode:()=>new w3.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new w3.Scalar(null),stringify:({source:$},Z)=>typeof $==="string"&&b3.test.test($)?$:Z.options.nullStr};W1.nullTag=b3});var j2=R((_1)=>{var L1=g(),C3={identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:($)=>new L1.Scalar($[0]==="t"||$[0]==="T"),stringify({source:$,value:Z},U){if($&&C3.test.test($)){let X=$[0]==="t"||$[0]==="T";if(Z===X)return $}return Z?U.options.trueStr:U.options.falseStr}};_1.boolTag=C3});var N0=R((R1)=>{function I1({format:$,minFractionDigits:Z,tag:U,value:X}){if(typeof X==="bigint")return String(X);let z=typeof X==="number"?X:Number(X);if(!isFinite(z))return isNaN(z)?".nan":z<0?"-.inf":".inf";let Q=Object.is(X,-0)?"-0":JSON.stringify(X);if(!$&&Z&&(!U||U==="tag:yaml.org,2002:float")&&/^\d/.test(Q)){let J=Q.indexOf(".");if(J<0)J=Q.length,Q+=".";let H=Z-(Q.length-J-1);while(H-- >0)Q+="0"}return Q}R1.stringifyNumber=I1});var E2=R((A1)=>{var P1=g(),S2=N0(),T1={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:S2.stringifyNumber},F1={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():S2.stringifyNumber($)}},K1={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve($){let Z=new P1.Scalar(parseFloat($)),U=$.indexOf(".");if(U!==-1&&$[$.length-1]==="0")Z.minFractionDigits=$.length-U-1;return Z},stringify:S2.stringifyNumber};A1.float=K1;A1.floatExp=F1;A1.floatNaN=T1});var f2=R((E1)=>{var j3=N0(),m$=($)=>typeof $==="bigint"||Number.isInteger($),g2=($,Z,U,{intAsBigInt:X})=>X?BigInt($):parseInt($.substring(Z),U);function S3($,Z,U){let{value:X}=$;if(m$(X)&&X>=0)return U+X.toString(Z);return j3.stringifyNumber($)}var C1={identify:($)=>m$($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:($,Z,U)=>g2($,2,8,U),stringify:($)=>S3($,8,"0o")},j1={identify:m$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:($,Z,U)=>g2($,0,10,U),stringify:j3.stringifyNumber},S1={identify:($)=>m$($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:($,Z,U)=>g2($,2,16,U),stringify:($)=>S3($,16,"0x")};E1.int=j1;E1.intHex=S1;E1.intOct=C1});var E3=R((p1)=>{var x1=K0(),h1=v$(),u1=A0(),k1=e0(),v1=j2(),y2=E2(),x2=f2(),m1=[x1.map,u1.seq,k1.string,h1.nullTag,v1.boolTag,x2.intOct,x2.int,x2.intHex,y2.floatNaN,y2.floatExp,y2.float];p1.schema=m1});var f3=R((n1)=>{var d1=g(),c1=K0(),a1=A0();function g3($){return typeof $==="bigint"||Number.isInteger($)}var p$=({value:$})=>JSON.stringify($),i1=[{identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify:p$},{identify:($)=>$==null,createNode:()=>new d1.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:p$},{identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:($)=>$==="true",stringify:p$},{identify:g3,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:($,Z,{intAsBigInt:U})=>U?BigInt($):parseInt($,10),stringify:({value:$})=>g3($)?$.toString():JSON.stringify($)},{identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:($)=>parseFloat($),stringify:p$}],s1={default:!0,tag:"",test:/^/,resolve($,Z){return Z(`Unresolved plain scalar ${JSON.stringify($)}`),$}},r1=[c1.map,a1.seq].concat(i1,s1);n1.schema=r1});var u2=R(($7)=>{var $$=h0("buffer"),h2=g(),t1=s0(),e1={identify:($)=>$ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve($,Z){if(typeof $$.Buffer==="function")return $$.Buffer.from($,"base64");else if(typeof atob==="function"){let U=atob($.replace(/[\n\r]/g,"")),X=new Uint8Array(U.length);for(let z=0;z<U.length;++z)X[z]=U.charCodeAt(z);return X}else return Z("This environment does not support reading binary tags; either Buffer or atob is required"),$},stringify({comment:$,type:Z,value:U},X,z,Q){if(!U)return"";let J=U,H;if(typeof $$.Buffer==="function")H=J instanceof $$.Buffer?J.toString("base64"):$$.Buffer.from(J.buffer).toString("base64");else if(typeof btoa==="function"){let q="";for(let G=0;G<J.length;++G)q+=String.fromCharCode(J[G]);H=btoa(q)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(Z??(Z=h2.Scalar.BLOCK_LITERAL),Z!==h2.Scalar.QUOTE_DOUBLE){let q=Math.max(X.options.lineWidth-X.indent.length,X.options.minContentWidth),G=Math.ceil(H.length/q),W=Array(G);for(let Y=0,V=0;Y<G;++Y,V+=q)W[Y]=H.substr(V,q);H=W.join(Z===h2.Scalar.BLOCK_LITERAL?`
52
- `:" ")}return t1.stringifyString({comment:$,type:Z,value:H},X,z,Q)}};$7.binary=e1});var d$=R((Q7)=>{var l$=b(),k2=Z0(),U7=g(),X7=z0();function y3($,Z){if(l$.isSeq($))for(let U=0;U<$.items.length;++U){let X=$.items[U];if(l$.isPair(X))continue;else if(l$.isMap(X)){if(X.items.length>1)Z("Each pair must have its own sequence indicator");let z=X.items[0]||new k2.Pair(new U7.Scalar(null));if(X.commentBefore)z.key.commentBefore=z.key.commentBefore?`${X.commentBefore}
53
- ${z.key.commentBefore}`:X.commentBefore;if(X.comment){let Q=z.value??z.key;Q.comment=Q.comment?`${X.comment}
54
- ${Q.comment}`:X.comment}X=z}$.items[U]=l$.isPair(X)?X:new k2.Pair(X)}else Z("Expected a sequence for this tag");return $}function x3($,Z,U){let{replacer:X}=U,z=new X7.YAMLSeq($);z.tag="tag:yaml.org,2002:pairs";let Q=0;if(Z&&Symbol.iterator in Object(Z))for(let J of Z){if(typeof X==="function")J=X.call(Z,String(Q++),J);let H,q;if(Array.isArray(J))if(J.length===2)H=J[0],q=J[1];else throw TypeError(`Expected [key, value] tuple: ${J}`);else if(J&&J instanceof Object){let G=Object.keys(J);if(G.length===1)H=G[0],q=J[H];else throw TypeError(`Expected tuple with one key, not ${G.length} keys`)}else H=J;z.items.push(k2.createPair(H,q,U))}return z}var z7={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:y3,createNode:x3};Q7.createPairs=x3;Q7.pairs=z7;Q7.resolvePairs=y3});var m2=R((B7)=>{var h3=b(),v2=t(),Z$=X0(),G7=z0(),u3=d$();class B0 extends G7.YAMLSeq{constructor(){super();this.add=Z$.YAMLMap.prototype.add.bind(this),this.delete=Z$.YAMLMap.prototype.delete.bind(this),this.get=Z$.YAMLMap.prototype.get.bind(this),this.has=Z$.YAMLMap.prototype.has.bind(this),this.set=Z$.YAMLMap.prototype.set.bind(this),this.tag=B0.tag}toJSON($,Z){if(!Z)return super.toJSON($);let U=new Map;if(Z?.onCreate)Z.onCreate(U);for(let X of this.items){let z,Q;if(h3.isPair(X))z=v2.toJS(X.key,"",Z),Q=v2.toJS(X.value,z,Z);else z=v2.toJS(X,"",Z);if(U.has(z))throw Error("Ordered maps must not include duplicate keys");U.set(z,Q)}return U}static from($,Z,U){let X=u3.createPairs($,Z,U),z=new this;return z.items=X.items,z}}B0.tag="tag:yaml.org,2002:omap";var Y7={collection:"seq",identify:($)=>$ instanceof Map,nodeClass:B0,default:!1,tag:"tag:yaml.org,2002:omap",resolve($,Z){let U=u3.resolvePairs($,Z),X=[];for(let{key:z}of U.items)if(h3.isScalar(z))if(X.includes(z.value))Z(`Ordered maps must not include duplicate keys: ${z.value}`);else X.push(z.value);return Object.assign(new B0,U)},createNode:($,Z,U)=>B0.from($,Z,U)};B7.YAMLOMap=B0;B7.omap=Y7});var l3=R((O7)=>{var k3=g();function v3({value:$,source:Z},U){if(Z&&($?m3:p3).test.test(Z))return Z;return $?U.options.trueStr:U.options.falseStr}var m3={identify:($)=>$===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new k3.Scalar(!0),stringify:v3},p3={identify:($)=>$===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new k3.Scalar(!1),stringify:v3};O7.falseTag=p3;O7.trueTag=m3});var d3=R((P7)=>{var D7=g(),p2=N0(),I7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:p2.stringifyNumber},R7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($.replace(/_/g,"")),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():p2.stringifyNumber($)}},M7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve($){let Z=new D7.Scalar(parseFloat($.replace(/_/g,""))),U=$.indexOf(".");if(U!==-1){let X=$.substring(U+1).replace(/_/g,"");if(X[X.length-1]==="0")Z.minFractionDigits=X.length}return Z},stringify:p2.stringifyNumber};P7.float=M7;P7.floatExp=R7;P7.floatNaN=I7});var a3=R((C7)=>{var c3=N0(),U$=($)=>typeof $==="bigint"||Number.isInteger($);function c$($,Z,U,{intAsBigInt:X}){let z=$[0];if(z==="-"||z==="+")Z+=1;if($=$.substring(Z).replace(/_/g,""),X){switch(U){case 2:$=`0b${$}`;break;case 8:$=`0o${$}`;break;case 16:$=`0x${$}`;break}let J=BigInt($);return z==="-"?BigInt(-1)*J:J}let Q=parseInt($,U);return z==="-"?-1*Q:Q}function l2($,Z,U){let{value:X}=$;if(U$(X)){let z=X.toString(Z);return X<0?"-"+U+z.substr(1):U+z}return c3.stringifyNumber($)}var A7={identify:U$,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:($,Z,U)=>c$($,2,2,U),stringify:($)=>l2($,2,"0b")},N7={identify:U$,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:($,Z,U)=>c$($,1,8,U),stringify:($)=>l2($,8,"0")},w7={identify:U$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:($,Z,U)=>c$($,0,10,U),stringify:c3.stringifyNumber},b7={identify:U$,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:($,Z,U)=>c$($,2,16,U),stringify:($)=>l2($,16,"0x")};C7.int=w7;C7.intBin=A7;C7.intHex=b7;C7.intOct=N7});var d2=R((y7)=>{var s$=b(),a$=Z0(),i$=X0();class V0 extends i$.YAMLMap{constructor($){super($);this.tag=V0.tag}add($){let Z;if(s$.isPair($))Z=$;else if($&&typeof $==="object"&&"key"in $&&"value"in $&&$.value===null)Z=new a$.Pair($.key,null);else Z=new a$.Pair($,null);if(!i$.findPair(this.items,Z.key))this.items.push(Z)}get($,Z){let U=i$.findPair(this.items,$);return!Z&&s$.isPair(U)?s$.isScalar(U.key)?U.key.value:U.key:U}set($,Z){if(typeof Z!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof Z}`);let U=i$.findPair(this.items,$);if(U&&!Z)this.items.splice(this.items.indexOf(U),1);else if(!U&&Z)this.items.push(new a$.Pair($))}toJSON($,Z){return super.toJSON($,Z,Set)}toString($,Z,U){if(!$)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},$,{allNullValues:!0}),Z,U);else throw Error("Set items must all have null values")}static from($,Z,U){let{replacer:X}=U,z=new this($);if(Z&&Symbol.iterator in Object(Z))for(let Q of Z){if(typeof X==="function")Q=X.call(Z,Q,Q);z.items.push(a$.createPair(Q,null,U))}return z}}V0.tag="tag:yaml.org,2002:set";var f7={collection:"map",identify:($)=>$ instanceof Set,nodeClass:V0,default:!1,tag:"tag:yaml.org,2002:set",createNode:($,Z,U)=>V0.from($,Z,U),resolve($,Z){if(s$.isMap($))if($.hasAllNullValues(!0))return Object.assign(new V0,$);else Z("Set items must all have null values");else Z("Expected a mapping for this tag");return $}};y7.YAMLSet=V0;y7.set=f7});var a2=R((m7)=>{var u7=N0();function c2($,Z){let U=$[0],X=U==="-"||U==="+"?$.substring(1):$,z=(J)=>Z?BigInt(J):Number(J),Q=X.replace(/_/g,"").split(":").reduce((J,H)=>J*z(60)+z(H),z(0));return U==="-"?z(-1)*Q:Q}function i3($){let{value:Z}=$,U=(J)=>J;if(typeof Z==="bigint")U=(J)=>BigInt(J);else if(isNaN(Z)||!isFinite(Z))return u7.stringifyNumber($);let X="";if(Z<0)X="-",Z*=U(-1);let z=U(60),Q=[Z%z];if(Z<60)Q.unshift(0);else if(Z=(Z-Q[0])/z,Q.unshift(Z%z),Z>=60)Z=(Z-Q[0])/z,Q.unshift(Z);return X+Q.map((J)=>String(J).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var k7={identify:($)=>typeof $==="bigint"||Number.isInteger($),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:($,Z,{intAsBigInt:U})=>c2($,U),stringify:i3},v7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:($)=>c2($,!1),stringify:i3},s3={identify:($)=>$ 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($){let Z=$.match(s3.test);if(!Z)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,U,X,z,Q,J,H]=Z.map(Number),q=Z[7]?Number((Z[7]+"00").substr(1,3)):0,G=Date.UTC(U,X-1,z,Q||0,J||0,H||0,q),W=Z[8];if(W&&W!=="Z"){let Y=c2(W,!1);if(Math.abs(Y)<30)Y*=60;G-=60000*Y}return new Date(G)},stringify:({value:$})=>$?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};m7.floatTime=v7;m7.intTime=k7;m7.timestamp=s3});var n3=R((ZU)=>{var c7=K0(),a7=v$(),i7=A0(),s7=e0(),r7=u2(),r3=l3(),i2=d3(),r$=a3(),n7=E$(),o7=m2(),t7=d$(),e7=d2(),s2=a2(),$U=[c7.map,i7.seq,s7.string,a7.nullTag,r3.trueTag,r3.falseTag,r$.intBin,r$.intOct,r$.int,r$.intHex,i2.floatNaN,i2.floatExp,i2.float,r7.binary,n7.merge,o7.omap,t7.pairs,e7.set,s2.intTime,s2.floatTime,s2.timestamp];ZU.schema=$U});var J8=R((YU)=>{var $8=K0(),XU=v$(),Z8=A0(),zU=e0(),QU=j2(),r2=E2(),n2=f2(),JU=E3(),HU=f3(),U8=u2(),X$=E$(),X8=m2(),z8=d$(),o3=n3(),Q8=d2(),n$=a2(),t3=new Map([["core",JU.schema],["failsafe",[$8.map,Z8.seq,zU.string]],["json",HU.schema],["yaml11",o3.schema],["yaml-1.1",o3.schema]]),e3={binary:U8.binary,bool:QU.boolTag,float:r2.float,floatExp:r2.floatExp,floatNaN:r2.floatNaN,floatTime:n$.floatTime,int:n2.int,intHex:n2.intHex,intOct:n2.intOct,intTime:n$.intTime,map:$8.map,merge:X$.merge,null:XU.nullTag,omap:X8.omap,pairs:z8.pairs,seq:Z8.seq,set:Q8.set,timestamp:n$.timestamp},qU={"tag:yaml.org,2002:binary":U8.binary,"tag:yaml.org,2002:merge":X$.merge,"tag:yaml.org,2002:omap":X8.omap,"tag:yaml.org,2002:pairs":z8.pairs,"tag:yaml.org,2002:set":Q8.set,"tag:yaml.org,2002:timestamp":n$.timestamp};function GU($,Z,U){let X=t3.get(Z);if(X&&!$)return U&&!X.includes(X$.merge)?X.concat(X$.merge):X.slice();let z=X;if(!z)if(Array.isArray($))z=[];else{let Q=Array.from(t3.keys()).filter((J)=>J!=="yaml11").map((J)=>JSON.stringify(J)).join(", ");throw Error(`Unknown schema "${Z}"; use one of ${Q} or define customTags array`)}if(Array.isArray($))for(let Q of $)z=z.concat(Q);else if(typeof $==="function")z=$(z.slice());if(U)z=z.concat(X$.merge);return z.reduce((Q,J)=>{let H=typeof J==="string"?e3[J]:J;if(!H){let q=JSON.stringify(J),G=Object.keys(e3).map((W)=>JSON.stringify(W)).join(", ");throw Error(`Unknown custom tag ${q}; use one of ${G}`)}if(!Q.includes(H))Q.push(H);return Q},[])}YU.coreKnownTags=qU;YU.getTags=GU});var e2=R((DU)=>{var o2=b(),WU=K0(),OU=A0(),LU=e0(),o$=J8(),_U=($,Z)=>$.key<Z.key?-1:$.key>Z.key?1:0;class t2{constructor({compat:$,customTags:Z,merge:U,resolveKnownTags:X,schema:z,sortMapEntries:Q,toStringDefaults:J}){this.compat=Array.isArray($)?o$.getTags($,"compat"):$?o$.getTags(null,$):null,this.name=typeof z==="string"&&z||"core",this.knownTags=X?o$.coreKnownTags:{},this.tags=o$.getTags(Z,this.name,U),this.toStringOptions=J??null,Object.defineProperty(this,o2.MAP,{value:WU.map}),Object.defineProperty(this,o2.SCALAR,{value:LU.string}),Object.defineProperty(this,o2.SEQ,{value:OU.seq}),this.sortMapEntries=typeof Q==="function"?Q:Q===!0?_U:null}clone(){let $=Object.create(t2.prototype,Object.getOwnPropertyDescriptors(this));return $.tags=this.tags.slice(),$}}DU.Schema=t2});var H8=R((PU)=>{var RU=b(),$9=r0(),z$=a0();function MU($,Z){let U=[],X=Z.directives===!0;if(Z.directives!==!1&&$.directives){let q=$.directives.toString($);if(q)U.push(q),X=!0;else if($.directives.docStart)X=!0}if(X)U.push("---");let z=$9.createStringifyContext($,Z),{commentString:Q}=z.options;if($.commentBefore){if(U.length!==1)U.unshift("");let q=Q($.commentBefore);U.unshift(z$.indentComment(q,""))}let J=!1,H=null;if($.contents){if(RU.isNode($.contents)){if($.contents.spaceBefore&&X)U.push("");if($.contents.commentBefore){let W=Q($.contents.commentBefore);U.push(z$.indentComment(W,""))}z.forceBlockIndent=!!$.comment,H=$.contents.comment}let q=H?void 0:()=>J=!0,G=$9.stringify($.contents,z,()=>H=null,q);if(H)G+=z$.lineComment(G,"",Q(H));if((G[0]==="|"||G[0]===">")&&U[U.length-1]==="---")U[U.length-1]=`--- ${G}`;else U.push(G)}else U.push($9.stringify($.contents,z));if($.directives?.docEnd)if($.comment){let q=Q($.comment);if(q.includes(`
55
- `))U.push("..."),U.push(z$.indentComment(q,""));else U.push(`... ${q}`)}else U.push("...");else{let q=$.comment;if(q&&J)q=q.replace(/^\n+/,"");if(q){if((!J||H)&&U[U.length-1]!=="")U.push("");U.push(z$.indentComment(Q(q),""))}}return U.join(`
47
+ `+v$.indentComment(_($),q),H)H()}else if(G&&J)J();return O}function $5({items:$},Z,{flowChars:X,itemIndent:U}){let{indent:z,indentStep:Q,flowCollectionPadding:J,options:{commentString:H}}=Z;U+=Q;let q=Object.assign({},Z,{indent:U,inFlow:!0,type:null}),_=!1,B=0,G=[];for(let L=0;L<$.length;++L){let V=$[L],W=null;if(V0.isNode(V)){if(V.spaceBefore)G.push("");if(m$(Z,G,V.commentBefore,!1),V.comment)W=V.comment}else if(V0.isPair(V)){let F=V0.isNode(V.key)?V.key:null;if(F){if(F.spaceBefore)G.push("");if(m$(Z,G,F.commentBefore,!1),F.comment)_=!0}let T=V0.isNode(V.value)?V.value:null;if(T){if(T.comment)W=T.comment;if(T.commentBefore)_=!0}else if(V.value==null&&F?.comment)W=F.comment}if(W)_=!0;let I=g8.stringify(V,q,()=>W=null);if(_||(_=G.length>B||I.includes(`
48
+ `)),L<$.length-1)I+=",";else if(Z.options.trailingComma){if(Z.options.lineWidth>0)_||(_=G.reduce((F,T)=>F+T.length+2,2)+(I.length+2)>Z.options.lineWidth);if(_)I+=","}if(W)I+=v$.lineComment(I,U,H(W));G.push(I),B=G.length}let{start:Y,end:O}=X;if(G.length===0)return Y+O;else{if(!_){let L=G.reduce((V,W)=>V+W.length+2,2);_=Z.options.lineWidth>0&&L>Z.options.lineWidth}if(_){let L=Y;for(let V of G)L+=V?`
49
+ ${Q}${z}${V}`:`
50
+ `;return`${L}
51
+ ${z}${O}`}else return`${Y}${J}${G.join(" ")}${J}${O}`}}function m$({indent:$,options:{commentString:Z}},X,U,z){if(U&&z)U=U.replace(/^\n+/,"");if(U){let Q=v$.indentComment(Z(U),$);X.push(Q.trimStart())}}Z5.stringifyCollection=t4});var Q0=D((H5)=>{var U5=x1(),z5=f1(),Q5=S$(),z0=b(),p$=U0(),J5=g();function U$($,Z){let X=z0.isScalar(Z)?Z.value:Z;for(let U of $)if(z0.isPair(U)){if(U.key===Z||U.key===X)return U;if(z0.isScalar(U.key)&&U.key.value===X)return U}return}class y8 extends Q5.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor($){super(z0.MAP,$);this.items=[]}static from($,Z,X){let{keepUndefined:U,replacer:z}=X,Q=new this($),J=(H,q)=>{if(typeof z==="function")q=z.call(Z,H,q);else if(Array.isArray(z)&&!z.includes(H))return;if(q!==void 0||U)Q.items.push(p$.createPair(H,q,X))};if(Z instanceof Map)for(let[H,q]of Z)J(H,q);else if(Z&&typeof Z==="object")for(let H of Object.keys(Z))J(H,Z[H]);if(typeof $.sortMapEntries==="function")Q.items.sort($.sortMapEntries);return Q}add($,Z){let X;if(z0.isPair($))X=$;else if(!$||typeof $!=="object"||!("key"in $))X=new p$.Pair($,$?.value);else X=new p$.Pair($.key,$.value);let U=U$(this.items,X.key),z=this.schema?.sortMapEntries;if(U){if(!Z)throw Error(`Key ${X.key} already set`);if(z0.isScalar(U.value)&&J5.isScalarValue(X.value))U.value.value=X.value;else U.value=X.value}else if(z){let Q=this.items.findIndex((J)=>z(X,J)<0);if(Q===-1)this.items.push(X);else this.items.splice(Q,0,X)}else this.items.push(X)}delete($){let Z=U$(this.items,$);if(!Z)return!1;return this.items.splice(this.items.indexOf(Z),1).length>0}get($,Z){let U=U$(this.items,$)?.value;return(!Z&&z0.isScalar(U)?U.value:U)??void 0}has($){return!!U$(this.items,$)}set($,Z){this.add(new p$.Pair($,Z),!0)}toJSON($,Z,X){let U=X?new X:Z?.mapAsMap?new Map:{};if(Z?.onCreate)Z.onCreate(U);for(let z of this.items)z5.addPairToJSMap(Z,U,z);return U}toString($,Z,X){if(!$)return JSON.stringify(this);for(let U of this.items)if(!z0.isPair(U))throw Error(`Map items must all be pairs; found ${JSON.stringify(U)} instead`);if(!$.allNullValues&&this.hasAllNullValues(!1))$=Object.assign({},$,{allNullValues:!0});return U5.stringifyCollection(this,$,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:$.indent||"",onChompKeep:X,onComment:Z})}}H5.YAMLMap=y8;H5.findPair=U$});var b0=D((B5)=>{var G5=b(),f8=Q0(),Y5={collection:"map",default:!0,nodeClass:f8.YAMLMap,tag:"tag:yaml.org,2002:map",resolve($,Z){if(!G5.isMap($))Z("Expected a mapping for this tag");return $},createNode:($,Z,X)=>f8.YAMLMap.from($,Z,X)};B5.map=Y5});var J0=D((D5)=>{var O5=n0(),W5=x1(),L5=S$(),d$=b(),R5=g(),I5=$0();class x8 extends L5.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor($){super(d$.SEQ,$);this.items=[]}add($){this.items.push($)}delete($){let Z=l$($);if(typeof Z!=="number")return!1;return this.items.splice(Z,1).length>0}get($,Z){let X=l$($);if(typeof X!=="number")return;let U=this.items[X];return!Z&&d$.isScalar(U)?U.value:U}has($){let Z=l$($);return typeof Z==="number"&&Z<this.items.length}set($,Z){let X=l$($);if(typeof X!=="number")throw Error(`Expected a valid index, not ${$}.`);let U=this.items[X];if(d$.isScalar(U)&&R5.isScalarValue(Z))U.value=Z;else this.items[X]=Z}toJSON($,Z){let X=[];if(Z?.onCreate)Z.onCreate(X);let U=0;for(let z of this.items)X.push(I5.toJS(z,String(U++),Z));return X}toString($,Z,X){if(!$)return JSON.stringify(this);return W5.stringifyCollection(this,$,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:($.indent||"")+" ",onChompKeep:X,onComment:Z})}static from($,Z,X){let{replacer:U}=X,z=new this($);if(Z&&Symbol.iterator in Object(Z)){let Q=0;for(let J of Z){if(typeof U==="function"){let H=Z instanceof Set?J:String(Q++);J=U.call(Z,H,J)}z.items.push(O5.createNode(J,void 0,X))}}return z}}function l$($){let Z=d$.isScalar($)?$.value:$;if(Z&&typeof Z==="string")Z=Number(Z);return typeof Z==="number"&&Number.isInteger(Z)&&Z>=0?Z:null}D5.YAMLSeq=x8});var C0=D((T5)=>{var M5=b(),h8=J0(),P5={collection:"seq",default:!0,nodeClass:h8.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve($,Z){if(!M5.isSeq($))Z("Expected a sequence for this tag");return $},createNode:($,Z,X)=>h8.YAMLSeq.from($,Z,X)};T5.seq=P5});var z$=D((w5)=>{var A5=e0(),N5={identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify($,Z,X,U){return Z=Object.assign({actualString:!0},Z),A5.stringifyString($,Z,X,U)}};w5.string=N5});var c$=D((C5)=>{var u8=g(),k8={identify:($)=>$==null,createNode:()=>new u8.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new u8.Scalar(null),stringify:({source:$},Z)=>typeof $==="string"&&k8.test.test($)?$:Z.options.nullStr};C5.nullTag=k8});var h1=D((E5)=>{var S5=g(),v8={identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:($)=>new S5.Scalar($[0]==="t"||$[0]==="T"),stringify({source:$,value:Z},X){if($&&v8.test.test($)){let U=$[0]==="t"||$[0]==="T";if(Z===U)return $}return Z?X.options.trueStr:X.options.falseStr}};E5.boolTag=v8});var j0=D((f5)=>{function y5({format:$,minFractionDigits:Z,tag:X,value:U}){if(typeof U==="bigint")return String(U);let z=typeof U==="number"?U:Number(U);if(!isFinite(z))return isNaN(z)?".nan":z<0?"-.inf":".inf";let Q=Object.is(U,-0)?"-0":JSON.stringify(U);if(!$&&Z&&(!X||X==="tag:yaml.org,2002:float")&&/^\d/.test(Q)){let J=Q.indexOf(".");if(J<0)J=Q.length,Q+=".";let H=Z-(Q.length-J-1);while(H-- >0)Q+="0"}return Q}f5.stringifyNumber=y5});var k1=D((m5)=>{var h5=g(),u1=j0(),u5={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:u1.stringifyNumber},k5={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():u1.stringifyNumber($)}},v5={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve($){let Z=new h5.Scalar(parseFloat($)),X=$.indexOf(".");if(X!==-1&&$[$.length-1]==="0")Z.minFractionDigits=$.length-X-1;return Z},stringify:u1.stringifyNumber};m5.float=v5;m5.floatExp=k5;m5.floatNaN=u5});var m1=D((a5)=>{var m8=j0(),i$=($)=>typeof $==="bigint"||Number.isInteger($),v1=($,Z,X,{intAsBigInt:U})=>U?BigInt($):parseInt($.substring(Z),X);function p8($,Z,X){let{value:U}=$;if(i$(U)&&U>=0)return X+U.toString(Z);return m8.stringifyNumber($)}var c5={identify:($)=>i$($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:($,Z,X)=>v1($,2,8,X),stringify:($)=>p8($,8,"0o")},i5={identify:i$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:($,Z,X)=>v1($,0,10,X),stringify:m8.stringifyNumber},s5={identify:($)=>i$($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:($,Z,X)=>v1($,2,16,X),stringify:($)=>p8($,16,"0x")};a5.int=i5;a5.intHex=s5;a5.intOct=c5});var l8=D((z7)=>{var t5=b0(),e5=c$(),$7=C0(),Z7=z$(),X7=h1(),p1=k1(),l1=m1(),U7=[t5.map,$7.seq,Z7.string,e5.nullTag,X7.boolTag,l1.intOct,l1.int,l1.intHex,p1.floatNaN,p1.floatExp,p1.float];z7.schema=U7});var c8=D((B7)=>{var J7=g(),H7=b0(),q7=C0();function d8($){return typeof $==="bigint"||Number.isInteger($)}var s$=({value:$})=>JSON.stringify($),_7=[{identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify:s$},{identify:($)=>$==null,createNode:()=>new J7.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:s$},{identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:($)=>$==="true",stringify:s$},{identify:d8,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:($,Z,{intAsBigInt:X})=>X?BigInt($):parseInt($,10),stringify:({value:$})=>d8($)?$.toString():JSON.stringify($)},{identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:($)=>parseFloat($),stringify:s$}],G7={default:!0,tag:"",test:/^/,resolve($,Z){return Z(`Unresolved plain scalar ${JSON.stringify($)}`),$}},Y7=[H7.map,q7.seq].concat(_7,G7);B7.schema=Y7});var c1=D((L7)=>{var Q$=p0("buffer"),d1=g(),O7=e0(),W7={identify:($)=>$ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve($,Z){if(typeof Q$.Buffer==="function")return Q$.Buffer.from($,"base64");else if(typeof atob==="function"){let X=atob($.replace(/[\n\r]/g,"")),U=new Uint8Array(X.length);for(let z=0;z<X.length;++z)U[z]=X.charCodeAt(z);return U}else return Z("This environment does not support reading binary tags; either Buffer or atob is required"),$},stringify({comment:$,type:Z,value:X},U,z,Q){if(!X)return"";let J=X,H;if(typeof Q$.Buffer==="function")H=J instanceof Q$.Buffer?J.toString("base64"):Q$.Buffer.from(J.buffer).toString("base64");else if(typeof btoa==="function"){let q="";for(let _=0;_<J.length;++_)q+=String.fromCharCode(J[_]);H=btoa(q)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(Z??(Z=d1.Scalar.BLOCK_LITERAL),Z!==d1.Scalar.QUOTE_DOUBLE){let q=Math.max(U.options.lineWidth-U.indent.length,U.options.minContentWidth),_=Math.ceil(H.length/q),B=Array(_);for(let G=0,Y=0;G<_;++G,Y+=q)B[G]=H.substr(Y,q);H=B.join(Z===d1.Scalar.BLOCK_LITERAL?`
52
+ `:" ")}return O7.stringifyString({comment:$,type:Z,value:H},U,z,Q)}};L7.binary=W7});var r$=D((M7)=>{var a$=b(),i1=U0(),I7=g(),D7=J0();function i8($,Z){if(a$.isSeq($))for(let X=0;X<$.items.length;++X){let U=$.items[X];if(a$.isPair(U))continue;else if(a$.isMap(U)){if(U.items.length>1)Z("Each pair must have its own sequence indicator");let z=U.items[0]||new i1.Pair(new I7.Scalar(null));if(U.commentBefore)z.key.commentBefore=z.key.commentBefore?`${U.commentBefore}
53
+ ${z.key.commentBefore}`:U.commentBefore;if(U.comment){let Q=z.value??z.key;Q.comment=Q.comment?`${U.comment}
54
+ ${Q.comment}`:U.comment}U=z}$.items[X]=a$.isPair(U)?U:new i1.Pair(U)}else Z("Expected a sequence for this tag");return $}function s8($,Z,X){let{replacer:U}=X,z=new D7.YAMLSeq($);z.tag="tag:yaml.org,2002:pairs";let Q=0;if(Z&&Symbol.iterator in Object(Z))for(let J of Z){if(typeof U==="function")J=U.call(Z,String(Q++),J);let H,q;if(Array.isArray(J))if(J.length===2)H=J[0],q=J[1];else throw TypeError(`Expected [key, value] tuple: ${J}`);else if(J&&J instanceof Object){let _=Object.keys(J);if(_.length===1)H=_[0],q=J[H];else throw TypeError(`Expected tuple with one key, not ${_.length} keys`)}else H=J;z.items.push(i1.createPair(H,q,X))}return z}var F7={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:i8,createNode:s8};M7.createPairs=s8;M7.pairs=F7;M7.resolvePairs=i8});var a1=D((w7)=>{var a8=b(),s1=$0(),J$=Q0(),A7=J0(),r8=r$();class O0 extends A7.YAMLSeq{constructor(){super();this.add=J$.YAMLMap.prototype.add.bind(this),this.delete=J$.YAMLMap.prototype.delete.bind(this),this.get=J$.YAMLMap.prototype.get.bind(this),this.has=J$.YAMLMap.prototype.has.bind(this),this.set=J$.YAMLMap.prototype.set.bind(this),this.tag=O0.tag}toJSON($,Z){if(!Z)return super.toJSON($);let X=new Map;if(Z?.onCreate)Z.onCreate(X);for(let U of this.items){let z,Q;if(a8.isPair(U))z=s1.toJS(U.key,"",Z),Q=s1.toJS(U.value,z,Z);else z=s1.toJS(U,"",Z);if(X.has(z))throw Error("Ordered maps must not include duplicate keys");X.set(z,Q)}return X}static from($,Z,X){let U=r8.createPairs($,Z,X),z=new this;return z.items=U.items,z}}O0.tag="tag:yaml.org,2002:omap";var N7={collection:"seq",identify:($)=>$ instanceof Map,nodeClass:O0,default:!1,tag:"tag:yaml.org,2002:omap",resolve($,Z){let X=r8.resolvePairs($,Z),U=[];for(let{key:z}of X.items)if(a8.isScalar(z))if(U.includes(z.value))Z(`Ordered maps must not include duplicate keys: ${z.value}`);else U.push(z.value);return Object.assign(new O0,X)},createNode:($,Z,X)=>O0.from($,Z,X)};w7.YAMLOMap=O0;w7.omap=N7});var $9=D((j7)=>{var n8=g();function o8({value:$,source:Z},X){if(Z&&($?t8:e8).test.test(Z))return Z;return $?X.options.trueStr:X.options.falseStr}var t8={identify:($)=>$===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new n8.Scalar(!0),stringify:o8},e8={identify:($)=>$===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new n8.Scalar(!1),stringify:o8};j7.falseTag=e8;j7.trueTag=t8});var Z9=D((h7)=>{var g7=g(),r1=j0(),y7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r1.stringifyNumber},f7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($.replace(/_/g,"")),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():r1.stringifyNumber($)}},x7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve($){let Z=new g7.Scalar(parseFloat($.replace(/_/g,""))),X=$.indexOf(".");if(X!==-1){let U=$.substring(X+1).replace(/_/g,"");if(U[U.length-1]==="0")Z.minFractionDigits=U.length}return Z},stringify:r1.stringifyNumber};h7.float=x7;h7.floatExp=f7;h7.floatNaN=y7});var U9=D((c7)=>{var X9=j0(),H$=($)=>typeof $==="bigint"||Number.isInteger($);function n$($,Z,X,{intAsBigInt:U}){let z=$[0];if(z==="-"||z==="+")Z+=1;if($=$.substring(Z).replace(/_/g,""),U){switch(X){case 2:$=`0b${$}`;break;case 8:$=`0o${$}`;break;case 16:$=`0x${$}`;break}let J=BigInt($);return z==="-"?BigInt(-1)*J:J}let Q=parseInt($,X);return z==="-"?-1*Q:Q}function n1($,Z,X){let{value:U}=$;if(H$(U)){let z=U.toString(Z);return U<0?"-"+X+z.substr(1):X+z}return X9.stringifyNumber($)}var m7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:($,Z,X)=>n$($,2,2,X),stringify:($)=>n1($,2,"0b")},p7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:($,Z,X)=>n$($,1,8,X),stringify:($)=>n1($,8,"0")},l7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:($,Z,X)=>n$($,0,10,X),stringify:X9.stringifyNumber},d7={identify:H$,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:($,Z,X)=>n$($,2,16,X),stringify:($)=>n1($,16,"0x")};c7.int=l7;c7.intBin=m7;c7.intHex=d7;c7.intOct=p7});var o1=D((o7)=>{var e$=b(),o$=U0(),t$=Q0();class W0 extends t$.YAMLMap{constructor($){super($);this.tag=W0.tag}add($){let Z;if(e$.isPair($))Z=$;else if($&&typeof $==="object"&&"key"in $&&"value"in $&&$.value===null)Z=new o$.Pair($.key,null);else Z=new o$.Pair($,null);if(!t$.findPair(this.items,Z.key))this.items.push(Z)}get($,Z){let X=t$.findPair(this.items,$);return!Z&&e$.isPair(X)?e$.isScalar(X.key)?X.key.value:X.key:X}set($,Z){if(typeof Z!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof Z}`);let X=t$.findPair(this.items,$);if(X&&!Z)this.items.splice(this.items.indexOf(X),1);else if(!X&&Z)this.items.push(new o$.Pair($))}toJSON($,Z){return super.toJSON($,Z,Set)}toString($,Z,X){if(!$)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},$,{allNullValues:!0}),Z,X);else throw Error("Set items must all have null values")}static from($,Z,X){let{replacer:U}=X,z=new this($);if(Z&&Symbol.iterator in Object(Z))for(let Q of Z){if(typeof U==="function")Q=U.call(Z,Q,Q);z.items.push(o$.createPair(Q,null,X))}return z}}W0.tag="tag:yaml.org,2002:set";var n7={collection:"map",identify:($)=>$ instanceof Set,nodeClass:W0,default:!1,tag:"tag:yaml.org,2002:set",createNode:($,Z,X)=>W0.from($,Z,X),resolve($,Z){if(e$.isMap($))if($.hasAllNullValues(!0))return Object.assign(new W0,$);else Z("Set items must all have null values");else Z("Expected a mapping for this tag");return $}};o7.YAMLSet=W0;o7.set=n7});var e1=D((UX)=>{var $X=j0();function t1($,Z){let X=$[0],U=X==="-"||X==="+"?$.substring(1):$,z=(J)=>Z?BigInt(J):Number(J),Q=U.replace(/_/g,"").split(":").reduce((J,H)=>J*z(60)+z(H),z(0));return X==="-"?z(-1)*Q:Q}function z9($){let{value:Z}=$,X=(J)=>J;if(typeof Z==="bigint")X=(J)=>BigInt(J);else if(isNaN(Z)||!isFinite(Z))return $X.stringifyNumber($);let U="";if(Z<0)U="-",Z*=X(-1);let z=X(60),Q=[Z%z];if(Z<60)Q.unshift(0);else if(Z=(Z-Q[0])/z,Q.unshift(Z%z),Z>=60)Z=(Z-Q[0])/z,Q.unshift(Z);return U+Q.map((J)=>String(J).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var ZX={identify:($)=>typeof $==="bigint"||Number.isInteger($),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:($,Z,{intAsBigInt:X})=>t1($,X),stringify:z9},XX={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:($)=>t1($,!1),stringify:z9},Q9={identify:($)=>$ 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($){let Z=$.match(Q9.test);if(!Z)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,X,U,z,Q,J,H]=Z.map(Number),q=Z[7]?Number((Z[7]+"00").substr(1,3)):0,_=Date.UTC(X,U-1,z,Q||0,J||0,H||0,q),B=Z[8];if(B&&B!=="Z"){let G=t1(B,!1);if(Math.abs(G)<30)G*=60;_-=60000*G}return new Date(_)},stringify:({value:$})=>$?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};UX.floatTime=XX;UX.intTime=ZX;UX.timestamp=Q9});var H9=D((RX)=>{var HX=b0(),qX=c$(),_X=C0(),GX=z$(),YX=c1(),J9=$9(),$2=Z9(),$1=U9(),BX=h$(),VX=a1(),OX=r$(),WX=o1(),Z2=e1(),LX=[HX.map,_X.seq,GX.string,qX.nullTag,J9.trueTag,J9.falseTag,$1.intBin,$1.intOct,$1.int,$1.intHex,$2.floatNaN,$2.floatExp,$2.float,YX.binary,BX.merge,VX.omap,OX.pairs,WX.set,Z2.intTime,Z2.floatTime,Z2.timestamp];RX.schema=LX});var R9=D((NX)=>{var Y9=b0(),DX=c$(),B9=C0(),FX=z$(),MX=h1(),X2=k1(),U2=m1(),PX=l8(),TX=c8(),V9=c1(),q$=h$(),O9=a1(),W9=r$(),q9=H9(),L9=o1(),Z1=e1(),_9=new Map([["core",PX.schema],["failsafe",[Y9.map,B9.seq,FX.string]],["json",TX.schema],["yaml11",q9.schema],["yaml-1.1",q9.schema]]),G9={binary:V9.binary,bool:MX.boolTag,float:X2.float,floatExp:X2.floatExp,floatNaN:X2.floatNaN,floatTime:Z1.floatTime,int:U2.int,intHex:U2.intHex,intOct:U2.intOct,intTime:Z1.intTime,map:Y9.map,merge:q$.merge,null:DX.nullTag,omap:O9.omap,pairs:W9.pairs,seq:B9.seq,set:L9.set,timestamp:Z1.timestamp},KX={"tag:yaml.org,2002:binary":V9.binary,"tag:yaml.org,2002:merge":q$.merge,"tag:yaml.org,2002:omap":O9.omap,"tag:yaml.org,2002:pairs":W9.pairs,"tag:yaml.org,2002:set":L9.set,"tag:yaml.org,2002:timestamp":Z1.timestamp};function AX($,Z,X){let U=_9.get(Z);if(U&&!$)return X&&!U.includes(q$.merge)?U.concat(q$.merge):U.slice();let z=U;if(!z)if(Array.isArray($))z=[];else{let Q=Array.from(_9.keys()).filter((J)=>J!=="yaml11").map((J)=>JSON.stringify(J)).join(", ");throw Error(`Unknown schema "${Z}"; use one of ${Q} or define customTags array`)}if(Array.isArray($))for(let Q of $)z=z.concat(Q);else if(typeof $==="function")z=$(z.slice());if(X)z=z.concat(q$.merge);return z.reduce((Q,J)=>{let H=typeof J==="string"?G9[J]:J;if(!H){let q=JSON.stringify(J),_=Object.keys(G9).map((B)=>JSON.stringify(B)).join(", ");throw Error(`Unknown custom tag ${q}; use one of ${_}`)}if(!Q.includes(H))Q.push(H);return Q},[])}NX.coreKnownTags=KX;NX.getTags=AX});var J2=D((gX)=>{var z2=b(),CX=b0(),jX=C0(),SX=z$(),X1=R9(),EX=($,Z)=>$.key<Z.key?-1:$.key>Z.key?1:0;class Q2{constructor({compat:$,customTags:Z,merge:X,resolveKnownTags:U,schema:z,sortMapEntries:Q,toStringDefaults:J}){this.compat=Array.isArray($)?X1.getTags($,"compat"):$?X1.getTags(null,$):null,this.name=typeof z==="string"&&z||"core",this.knownTags=U?X1.coreKnownTags:{},this.tags=X1.getTags(Z,this.name,X),this.toStringOptions=J??null,Object.defineProperty(this,z2.MAP,{value:CX.map}),Object.defineProperty(this,z2.SCALAR,{value:SX.string}),Object.defineProperty(this,z2.SEQ,{value:jX.seq}),this.sortMapEntries=typeof Q==="function"?Q:Q===!0?EX:null}clone(){let $=Object.create(Q2.prototype,Object.getOwnPropertyDescriptors(this));return $.tags=this.tags.slice(),$}}gX.Schema=Q2});var I9=D((hX)=>{var fX=b(),H2=$$(),_$=o0();function xX($,Z){let X=[],U=Z.directives===!0;if(Z.directives!==!1&&$.directives){let q=$.directives.toString($);if(q)X.push(q),U=!0;else if($.directives.docStart)U=!0}if(U)X.push("---");let z=H2.createStringifyContext($,Z),{commentString:Q}=z.options;if($.commentBefore){if(X.length!==1)X.unshift("");let q=Q($.commentBefore);X.unshift(_$.indentComment(q,""))}let J=!1,H=null;if($.contents){if(fX.isNode($.contents)){if($.contents.spaceBefore&&U)X.push("");if($.contents.commentBefore){let B=Q($.contents.commentBefore);X.push(_$.indentComment(B,""))}z.forceBlockIndent=!!$.comment,H=$.contents.comment}let q=H?void 0:()=>J=!0,_=H2.stringify($.contents,z,()=>H=null,q);if(H)_+=_$.lineComment(_,"",Q(H));if((_[0]==="|"||_[0]===">")&&X[X.length-1]==="---")X[X.length-1]=`--- ${_}`;else X.push(_)}else X.push(H2.stringify($.contents,z));if($.directives?.docEnd)if($.comment){let q=Q($.comment);if(q.includes(`
55
+ `))X.push("..."),X.push(_$.indentComment(q,""));else X.push(`... ${q}`)}else X.push("...");else{let q=$.comment;if(q&&J)q=q.replace(/^\n+/,"");if(q){if((!J||H)&&X[X.length-1]!=="")X.push("");X.push(_$.indentComment(Q(q),""))}}return X.join(`
56
56
  `)+`
57
- `}PU.stringifyDocument=MU});var Q$=R((jU)=>{var FU=d0(),w0=N$(),k=b(),KU=Z0(),AU=t(),NU=e2(),wU=H8(),Z9=F$(),bU=M2(),CU=c0(),U9=R2();class X9{constructor($,Z,U){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,k.NODE_TYPE,{value:k.DOC});let X=null;if(typeof Z==="function"||Array.isArray(Z))X=Z;else if(U===void 0&&Z)U=Z,Z=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:Q}=z;if(U?._directives){if(this.directives=U._directives.atDocument(),this.directives.yaml.explicit)Q=this.directives.yaml.version}else this.directives=new U9.Directives({version:Q});this.setSchema(Q,U),this.contents=$===void 0?null:this.createNode($,X,U)}clone(){let $=Object.create(X9.prototype,{[k.NODE_TYPE]:{value:k.DOC}});if($.commentBefore=this.commentBefore,$.comment=this.comment,$.errors=this.errors.slice(),$.warnings=this.warnings.slice(),$.options=Object.assign({},this.options),this.directives)$.directives=this.directives.clone();if($.schema=this.schema.clone(),$.contents=k.isNode(this.contents)?this.contents.clone($.schema):this.contents,this.range)$.range=this.range.slice();return $}add($){if(b0(this.contents))this.contents.add($)}addIn($,Z){if(b0(this.contents))this.contents.addIn($,Z)}createAlias($,Z){if(!$.anchor){let U=Z9.anchorNames(this);$.anchor=!Z||U.has(Z)?Z9.findNewAnchor(Z||"a",U):Z}return new FU.Alias($.anchor)}createNode($,Z,U){let X=void 0;if(typeof Z==="function")$=Z.call({"":$},"",$),X=Z;else if(Array.isArray(Z)){let B=(I)=>typeof I==="number"||I instanceof String||I instanceof Number,L=Z.filter(B).map(String);if(L.length>0)Z=Z.concat(L);X=Z}else if(U===void 0&&Z)U=Z,Z=void 0;let{aliasDuplicateObjects:z,anchorPrefix:Q,flow:J,keepUndefined:H,onTagObj:q,tag:G}=U??{},{onAnchor:W,setAnchors:Y,sourceObjects:V}=Z9.createNodeAnchors(this,Q||"a"),O={aliasDuplicateObjects:z??!0,keepUndefined:H??!1,onAnchor:W,onTagObj:q,replacer:X,schema:this.schema,sourceObjects:V},_=CU.createNode($,G,O);if(J&&k.isCollection(_))_.flow=!0;return Y(),_}createPair($,Z,U={}){let X=this.createNode($,null,U),z=this.createNode(Z,null,U);return new KU.Pair(X,z)}delete($){return b0(this.contents)?this.contents.delete($):!1}deleteIn($){if(w0.isEmptyPath($)){if(this.contents==null)return!1;return this.contents=null,!0}return b0(this.contents)?this.contents.deleteIn($):!1}get($,Z){return k.isCollection(this.contents)?this.contents.get($,Z):void 0}getIn($,Z){if(w0.isEmptyPath($))return!Z&&k.isScalar(this.contents)?this.contents.value:this.contents;return k.isCollection(this.contents)?this.contents.getIn($,Z):void 0}has($){return k.isCollection(this.contents)?this.contents.has($):!1}hasIn($){if(w0.isEmptyPath($))return this.contents!==void 0;return k.isCollection(this.contents)?this.contents.hasIn($):!1}set($,Z){if(this.contents==null)this.contents=w0.collectionFromPath(this.schema,[$],Z);else if(b0(this.contents))this.contents.set($,Z)}setIn($,Z){if(w0.isEmptyPath($))this.contents=Z;else if(this.contents==null)this.contents=w0.collectionFromPath(this.schema,Array.from($),Z);else if(b0(this.contents))this.contents.setIn($,Z)}setSchema($,Z={}){if(typeof $==="number")$=String($);let U;switch($){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new U9.Directives({version:"1.1"});U={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=$;else this.directives=new U9.Directives({version:$});U={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;U=null;break;default:{let X=JSON.stringify($);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${X}`)}}if(Z.schema instanceof Object)this.schema=Z.schema;else if(U)this.schema=new NU.Schema(Object.assign(U,Z));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:$,jsonArg:Z,mapAsMap:U,maxAliasCount:X,onAnchor:z,reviver:Q}={}){let J={anchors:new Map,doc:this,keep:!$,mapAsMap:U===!0,mapKeyWarned:!1,maxAliasCount:typeof X==="number"?X:100},H=AU.toJS(this.contents,Z??"",J);if(typeof z==="function")for(let{count:q,res:G}of J.anchors.values())z(G,q);return typeof Q==="function"?bU.applyReviver(Q,{"":H},"",H):H}toJSON($,Z){return this.toJS({json:!0,jsonArg:$,mapAsMap:!1,onAnchor:Z})}toString($={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in $&&(!Number.isInteger($.indent)||Number($.indent)<=0)){let Z=JSON.stringify($.indent);throw Error(`"indent" option must be a positive integer, not ${Z}`)}return wU.stringifyDocument(this,$)}}function b0($){if(k.isCollection($))return!0;throw Error("Expected a YAML collection as document contents")}jU.Document=X9});var J$=R((gU)=>{class t$ extends Error{constructor($,Z,U,X){super();this.name=$,this.code=U,this.message=X,this.pos=Z}}class q8 extends t${constructor($,Z,U){super("YAMLParseError",$,Z,U)}}class G8 extends t${constructor($,Z,U){super("YAMLWarning",$,Z,U)}}var EU=($,Z)=>(U)=>{if(U.pos[0]===-1)return;U.linePos=U.pos.map((H)=>Z.linePos(H));let{line:X,col:z}=U.linePos[0];U.message+=` at line ${X}, column ${z}`;let Q=z-1,J=$.substring(Z.lineStarts[X-1],Z.lineStarts[X]).replace(/[\n\r]+$/,"");if(Q>=60&&J.length>80){let H=Math.min(Q-39,J.length-79);J="…"+J.substring(H),Q-=H-1}if(J.length>80)J=J.substring(0,79)+"…";if(X>1&&/^ *$/.test(J.substring(0,Q))){let H=$.substring(Z.lineStarts[X-2],Z.lineStarts[X-1]);if(H.length>80)H=H.substring(0,79)+`…
58
- `;J=H+J}if(/[^ ]/.test(J)){let H=1,q=U.linePos[1];if(q?.line===X&&q.col>z)H=Math.max(1,Math.min(q.col-z,80-Q));let G=" ".repeat(Q)+"^".repeat(H);U.message+=`:
57
+ `}hX.stringifyDocument=xX});var G$=D((iX)=>{var kX=r0(),S0=S$(),v=b(),vX=U0(),mX=$0(),pX=J2(),lX=I9(),q2=b$(),dX=w1(),cX=n0(),_2=N1();class G2{constructor($,Z,X){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,v.NODE_TYPE,{value:v.DOC});let U=null;if(typeof Z==="function"||Array.isArray(Z))U=Z;else if(X===void 0&&Z)X=Z,Z=void 0;let z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},X);this.options=z;let{version:Q}=z;if(X?._directives){if(this.directives=X._directives.atDocument(),this.directives.yaml.explicit)Q=this.directives.yaml.version}else this.directives=new _2.Directives({version:Q});this.setSchema(Q,X),this.contents=$===void 0?null:this.createNode($,U,X)}clone(){let $=Object.create(G2.prototype,{[v.NODE_TYPE]:{value:v.DOC}});if($.commentBefore=this.commentBefore,$.comment=this.comment,$.errors=this.errors.slice(),$.warnings=this.warnings.slice(),$.options=Object.assign({},this.options),this.directives)$.directives=this.directives.clone();if($.schema=this.schema.clone(),$.contents=v.isNode(this.contents)?this.contents.clone($.schema):this.contents,this.range)$.range=this.range.slice();return $}add($){if(E0(this.contents))this.contents.add($)}addIn($,Z){if(E0(this.contents))this.contents.addIn($,Z)}createAlias($,Z){if(!$.anchor){let X=q2.anchorNames(this);$.anchor=!Z||X.has(Z)?q2.findNewAnchor(Z||"a",X):Z}return new kX.Alias($.anchor)}createNode($,Z,X){let U=void 0;if(typeof Z==="function")$=Z.call({"":$},"",$),U=Z;else if(Array.isArray(Z)){let V=(I)=>typeof I==="number"||I instanceof String||I instanceof Number,W=Z.filter(V).map(String);if(W.length>0)Z=Z.concat(W);U=Z}else if(X===void 0&&Z)X=Z,Z=void 0;let{aliasDuplicateObjects:z,anchorPrefix:Q,flow:J,keepUndefined:H,onTagObj:q,tag:_}=X??{},{onAnchor:B,setAnchors:G,sourceObjects:Y}=q2.createNodeAnchors(this,Q||"a"),O={aliasDuplicateObjects:z??!0,keepUndefined:H??!1,onAnchor:B,onTagObj:q,replacer:U,schema:this.schema,sourceObjects:Y},L=cX.createNode($,_,O);if(J&&v.isCollection(L))L.flow=!0;return G(),L}createPair($,Z,X={}){let U=this.createNode($,null,X),z=this.createNode(Z,null,X);return new vX.Pair(U,z)}delete($){return E0(this.contents)?this.contents.delete($):!1}deleteIn($){if(S0.isEmptyPath($)){if(this.contents==null)return!1;return this.contents=null,!0}return E0(this.contents)?this.contents.deleteIn($):!1}get($,Z){return v.isCollection(this.contents)?this.contents.get($,Z):void 0}getIn($,Z){if(S0.isEmptyPath($))return!Z&&v.isScalar(this.contents)?this.contents.value:this.contents;return v.isCollection(this.contents)?this.contents.getIn($,Z):void 0}has($){return v.isCollection(this.contents)?this.contents.has($):!1}hasIn($){if(S0.isEmptyPath($))return this.contents!==void 0;return v.isCollection(this.contents)?this.contents.hasIn($):!1}set($,Z){if(this.contents==null)this.contents=S0.collectionFromPath(this.schema,[$],Z);else if(E0(this.contents))this.contents.set($,Z)}setIn($,Z){if(S0.isEmptyPath($))this.contents=Z;else if(this.contents==null)this.contents=S0.collectionFromPath(this.schema,Array.from($),Z);else if(E0(this.contents))this.contents.setIn($,Z)}setSchema($,Z={}){if(typeof $==="number")$=String($);let X;switch($){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new _2.Directives({version:"1.1"});X={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=$;else this.directives=new _2.Directives({version:$});X={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;X=null;break;default:{let U=JSON.stringify($);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${U}`)}}if(Z.schema instanceof Object)this.schema=Z.schema;else if(X)this.schema=new pX.Schema(Object.assign(X,Z));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:$,jsonArg:Z,mapAsMap:X,maxAliasCount:U,onAnchor:z,reviver:Q}={}){let J={anchors:new Map,doc:this,keep:!$,mapAsMap:X===!0,mapKeyWarned:!1,maxAliasCount:typeof U==="number"?U:100},H=mX.toJS(this.contents,Z??"",J);if(typeof z==="function")for(let{count:q,res:_}of J.anchors.values())z(_,q);return typeof Q==="function"?dX.applyReviver(Q,{"":H},"",H):H}toJSON($,Z){return this.toJS({json:!0,jsonArg:$,mapAsMap:!1,onAnchor:Z})}toString($={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in $&&(!Number.isInteger($.indent)||Number($.indent)<=0)){let Z=JSON.stringify($.indent);throw Error(`"indent" option must be a positive integer, not ${Z}`)}return lX.stringifyDocument(this,$)}}function E0($){if(v.isCollection($))return!0;throw Error("Expected a YAML collection as document contents")}iX.Document=G2});var Y$=D((rX)=>{class U1 extends Error{constructor($,Z,X,U){super();this.name=$,this.code=X,this.message=U,this.pos=Z}}class D9 extends U1{constructor($,Z,X){super("YAMLParseError",$,Z,X)}}class F9 extends U1{constructor($,Z,X){super("YAMLWarning",$,Z,X)}}var aX=($,Z)=>(X)=>{if(X.pos[0]===-1)return;X.linePos=X.pos.map((H)=>Z.linePos(H));let{line:U,col:z}=X.linePos[0];X.message+=` at line ${U}, column ${z}`;let Q=z-1,J=$.substring(Z.lineStarts[U-1],Z.lineStarts[U]).replace(/[\n\r]+$/,"");if(Q>=60&&J.length>80){let H=Math.min(Q-39,J.length-79);J="…"+J.substring(H),Q-=H-1}if(J.length>80)J=J.substring(0,79)+"…";if(U>1&&/^ *$/.test(J.substring(0,Q))){let H=$.substring(Z.lineStarts[U-2],Z.lineStarts[U-1]);if(H.length>80)H=H.substring(0,79)+`…
58
+ `;J=H+J}if(/[^ ]/.test(J)){let H=1,q=X.linePos[1];if(q?.line===U&&q.col>z)H=Math.max(1,Math.min(q.col-z,80-Q));let _=" ".repeat(Q)+"^".repeat(H);X.message+=`:
59
59
 
60
60
  ${J}
61
- ${G}
62
- `}};gU.YAMLError=t$;gU.YAMLParseError=q8;gU.YAMLWarning=G8;gU.prettifyError=EU});var H$=R((kU)=>{function uU($,{flow:Z,indicator:U,next:X,offset:z,onError:Q,parentIndent:J,startOnNewline:H}){let q=!1,G=H,W=H,Y="",V="",O=!1,_=!1,B=null,L=null,I=null,M=null,F=null,A=null,K=null;for(let D of $){if(_){if(D.type!=="space"&&D.type!=="newline"&&D.type!=="comma")Q(D.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");_=!1}if(B){if(G&&D.type!=="comment"&&D.type!=="newline")Q(B,"TAB_AS_INDENT","Tabs are not allowed as indentation");B=null}switch(D.type){case"space":if(!Z&&(U!=="doc-start"||X?.type!=="flow-collection")&&D.source.includes("\t"))B=D;W=!0;break;case"comment":{if(!W)Q(D,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let w=D.source.substring(1)||" ";if(!Y)Y=w;else Y+=V+w;V="",G=!1;break}case"newline":if(G){if(Y)Y+=D.source;else if(!A||U!=="seq-item-ind")q=!0}else V+=D.source;if(G=!0,O=!0,L||I)M=D;W=!0;break;case"anchor":if(L)Q(D,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(D.source.endsWith(":"))Q(D.offset+D.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);L=D,K??(K=D.offset),G=!1,W=!1,_=!0;break;case"tag":{if(I)Q(D,"MULTIPLE_TAGS","A node can have at most one tag");I=D,K??(K=D.offset),G=!1,W=!1,_=!0;break}case U:if(L||I)Q(D,"BAD_PROP_ORDER",`Anchors and tags must be after the ${D.source} indicator`);if(A)Q(D,"UNEXPECTED_TOKEN",`Unexpected ${D.source} in ${Z??"collection"}`);A=D,G=U==="seq-item-ind"||U==="explicit-key-ind",W=!1;break;case"comma":if(Z){if(F)Q(D,"UNEXPECTED_TOKEN",`Unexpected , in ${Z}`);F=D,G=!1,W=!1;break}default:Q(D,"UNEXPECTED_TOKEN",`Unexpected ${D.type} token`),G=!1,W=!1}}let N=$[$.length-1],C=N?N.offset+N.source.length:z;if(_&&X&&X.type!=="space"&&X.type!=="newline"&&X.type!=="comma"&&(X.type!=="scalar"||X.source!==""))Q(X.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(B&&(G&&B.indent<=J||X?.type==="block-map"||X?.type==="block-seq"))Q(B,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:F,found:A,spaceBefore:q,comment:Y,hasNewline:O,anchor:L,tag:I,newlineAfterProp:M,end:C,start:K??C}}kU.resolveProps=uU});var e$=R((mU)=>{function z9($){if(!$)return null;switch($.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if($.source.includes(`
63
- `))return!0;if($.end){for(let Z of $.end)if(Z.type==="newline")return!0}return!1;case"flow-collection":for(let Z of $.items){for(let U of Z.start)if(U.type==="newline")return!0;if(Z.sep){for(let U of Z.sep)if(U.type==="newline")return!0}if(z9(Z.key)||z9(Z.value))return!0}return!1;default:return!0}}mU.containsNewline=z9});var Q9=R((cU)=>{var lU=e$();function dU($,Z,U){if(Z?.type==="flow-collection"){let X=Z.end[0];if(X.indent===$&&(X.source==="]"||X.source==="}")&&lU.containsNewline(Z))U(X,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}cU.flowIndentCheck=dU});var J9=R((sU)=>{var Y8=b();function iU($,Z,U){let{uniqueKeys:X}=$.options;if(X===!1)return!1;let z=typeof X==="function"?X:(Q,J)=>Q===J||Y8.isScalar(Q)&&Y8.isScalar(J)&&Q.value===J.value;return Z.some((Q)=>z(Q.key,U))}sU.mapIncludes=iU});var L8=R(($X)=>{var B8=Z0(),nU=X0(),V8=H$(),oU=e$(),W8=Q9(),tU=J9(),O8="All mapping items must start at the same column";function eU({composeNode:$,composeEmptyNode:Z},U,X,z,Q){let H=new(Q?.nodeClass??nU.YAMLMap)(U.schema);if(U.atRoot)U.atRoot=!1;let q=X.offset,G=null;for(let W of X.items){let{start:Y,key:V,sep:O,value:_}=W,B=V8.resolveProps(Y,{indicator:"explicit-key-ind",next:V??O?.[0],offset:q,onError:z,parentIndent:X.indent,startOnNewline:!0}),L=!B.found;if(L){if(V){if(V.type==="block-seq")z(q,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in V&&V.indent!==X.indent)z(q,"BAD_INDENT",O8)}if(!B.anchor&&!B.tag&&!O){if(G=B.end,B.comment)if(H.comment)H.comment+=`
64
- `+B.comment;else H.comment=B.comment;continue}if(B.newlineAfterProp||oU.containsNewline(V))z(V??Y[Y.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(B.found?.indent!==X.indent)z(q,"BAD_INDENT",O8);U.atKey=!0;let I=B.end,M=V?$(U,V,B,z):Z(U,I,Y,null,B,z);if(U.schema.compat)W8.flowIndentCheck(X.indent,V,z);if(U.atKey=!1,tU.mapIncludes(U,H.items,M))z(I,"DUPLICATE_KEY","Map keys must be unique");let F=V8.resolveProps(O??[],{indicator:"map-value-ind",next:_,offset:M.range[2],onError:z,parentIndent:X.indent,startOnNewline:!V||V.type==="block-scalar"});if(q=F.end,F.found){if(L){if(_?.type==="block-map"&&!F.hasNewline)z(q,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(U.options.strict&&B.start<F.found.offset-1024)z(M.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let A=_?$(U,_,F,z):Z(U,q,O,null,F,z);if(U.schema.compat)W8.flowIndentCheck(X.indent,_,z);q=A.range[2];let K=new B8.Pair(M,A);if(U.options.keepSourceTokens)K.srcToken=W;H.items.push(K)}else{if(L)z(M.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(F.comment)if(M.comment)M.comment+=`
65
- `+F.comment;else M.comment=F.comment;let A=new B8.Pair(M);if(U.options.keepSourceTokens)A.srcToken=W;H.items.push(A)}}if(G&&G<q)z(G,"IMPOSSIBLE","Map comment with trailing content");return H.range=[X.offset,q,G??q],H}$X.resolveBlockMap=eU});var _8=R((JX)=>{var UX=z0(),XX=H$(),zX=Q9();function QX({composeNode:$,composeEmptyNode:Z},U,X,z,Q){let H=new(Q?.nodeClass??UX.YAMLSeq)(U.schema);if(U.atRoot)U.atRoot=!1;if(U.atKey)U.atKey=!1;let q=X.offset,G=null;for(let{start:W,value:Y}of X.items){let V=XX.resolveProps(W,{indicator:"seq-item-ind",next:Y,offset:q,onError:z,parentIndent:X.indent,startOnNewline:!0});if(!V.found)if(V.anchor||V.tag||Y)if(Y?.type==="block-seq")z(V.end,"BAD_INDENT","All sequence items must start at the same column");else z(q,"MISSING_CHAR","Sequence item without - indicator");else{if(G=V.end,V.comment)H.comment=V.comment;continue}let O=Y?$(U,Y,V,z):Z(U,V.end,W,null,V,z);if(U.schema.compat)zX.flowIndentCheck(X.indent,Y,z);q=O.range[2],H.items.push(O)}return H.range=[X.offset,q,G??q],H}JX.resolveBlockSeq=QX});var C0=R((GX)=>{function qX($,Z,U,X){let z="";if($){let Q=!1,J="";for(let H of $){let{source:q,type:G}=H;switch(G){case"space":Q=!0;break;case"comment":{if(U&&!Q)X(H,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let W=q.substring(1)||" ";if(!z)z=W;else z+=J+W;J="";break}case"newline":if(z)J+=q;Q=!0;break;default:X(H,"UNEXPECTED_TOKEN",`Unexpected ${G} at node end`)}Z+=q.length}}return{comment:z,offset:Z}}GX.resolveEnd=qX});var R8=R((IX)=>{var BX=b(),VX=Z0(),D8=X0(),WX=z0(),OX=C0(),I8=H$(),LX=e$(),_X=J9(),H9="Block collections are not allowed within flow collections",q9=($)=>$&&($.type==="block-map"||$.type==="block-seq");function DX({composeNode:$,composeEmptyNode:Z},U,X,z,Q){let J=X.start.source==="{",H=J?"flow map":"flow sequence",G=new(Q?.nodeClass??(J?D8.YAMLMap:WX.YAMLSeq))(U.schema);G.flow=!0;let W=U.atRoot;if(W)U.atRoot=!1;if(U.atKey)U.atKey=!1;let Y=X.offset+X.start.source.length;for(let L=0;L<X.items.length;++L){let I=X.items[L],{start:M,key:F,sep:A,value:K}=I,N=I8.resolveProps(M,{flow:H,indicator:"explicit-key-ind",next:F??A?.[0],offset:Y,onError:z,parentIndent:X.indent,startOnNewline:!1});if(!N.found){if(!N.anchor&&!N.tag&&!A&&!K){if(L===0&&N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${H}`);else if(L<X.items.length-1)z(N.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${H}`);if(N.comment)if(G.comment)G.comment+=`
66
- `+N.comment;else G.comment=N.comment;Y=N.end;continue}if(!J&&U.options.strict&&LX.containsNewline(F))z(F,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(L===0){if(N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${H}`)}else{if(!N.comma)z(N.start,"MISSING_CHAR",`Missing , between ${H} items`);if(N.comment){let C="";$:for(let D of M)switch(D.type){case"comma":case"space":break;case"comment":C=D.source.substring(1);break $;default:break $}if(C){let D=G.items[G.items.length-1];if(BX.isPair(D))D=D.value??D.key;if(D.comment)D.comment+=`
67
- `+C;else D.comment=C;N.comment=N.comment.substring(C.length+1)}}}if(!J&&!A&&!N.found){let C=K?$(U,K,N,z):Z(U,N.end,A,null,N,z);if(G.items.push(C),Y=C.range[2],q9(K))z(C.range,"BLOCK_IN_FLOW",H9)}else{U.atKey=!0;let C=N.end,D=F?$(U,F,N,z):Z(U,C,M,null,N,z);if(q9(F))z(D.range,"BLOCK_IN_FLOW",H9);U.atKey=!1;let w=I8.resolveProps(A??[],{flow:H,indicator:"map-value-ind",next:K,offset:D.range[2],onError:z,parentIndent:X.indent,startOnNewline:!1});if(w.found){if(!J&&!N.found&&U.options.strict){if(A)for(let E of A){if(E===w.found)break;if(E.type==="newline"){z(E,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(N.start<w.found.offset-1024)z(w.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(K)if("source"in K&&K.source?.[0]===":")z(K,"MISSING_CHAR",`Missing space after : in ${H}`);else z(w.start,"MISSING_CHAR",`Missing , or : between ${H} items`);let l=K?$(U,K,w,z):w.found?Z(U,w.end,A,null,w,z):null;if(l){if(q9(K))z(l.range,"BLOCK_IN_FLOW",H9)}else if(w.comment)if(D.comment)D.comment+=`
68
- `+w.comment;else D.comment=w.comment;let d=new VX.Pair(D,l);if(U.options.keepSourceTokens)d.srcToken=I;if(J){let E=G;if(_X.mapIncludes(U,E.items,D))z(C,"DUPLICATE_KEY","Map keys must be unique");E.items.push(d)}else{let E=new D8.YAMLMap(U.schema);E.flow=!0,E.items.push(d);let x0=(l??D).range;E.range=[D.range[0],x0[1],x0[2]],G.items.push(E)}Y=l?l.range[2]:w.end}}let V=J?"}":"]",[O,..._]=X.end,B=Y;if(O?.source===V)B=O.offset+O.source.length;else{let L=H[0].toUpperCase()+H.substring(1),I=W?`${L} must end with a ${V}`:`${L} in block collection must be sufficiently indented and end with a ${V}`;if(z(Y,W?"MISSING_CHAR":"BAD_INDENT",I),O&&O.source.length!==1)_.unshift(O)}if(_.length>0){let L=OX.resolveEnd(_,B,U.options.strict,z);if(L.comment)if(G.comment)G.comment+=`
69
- `+L.comment;else G.comment=L.comment;G.range=[X.offset,B,L.offset]}else G.range=[X.offset,B,B];return G}IX.resolveFlowCollection=DX});var M8=R((bX)=>{var MX=b(),PX=g(),TX=X0(),FX=z0(),KX=L8(),AX=_8(),NX=R8();function G9($,Z,U,X,z,Q){let J=U.type==="block-map"?KX.resolveBlockMap($,Z,U,X,Q):U.type==="block-seq"?AX.resolveBlockSeq($,Z,U,X,Q):NX.resolveFlowCollection($,Z,U,X,Q),H=J.constructor;if(z==="!"||z===H.tagName)return J.tag=H.tagName,J;if(z)J.tag=z;return J}function wX($,Z,U,X,z){let Q=X.tag,J=!Q?null:Z.directives.tagName(Q.source,(V)=>z(Q,"TAG_RESOLVE_FAILED",V));if(U.type==="block-seq"){let{anchor:V,newlineAfterProp:O}=X,_=V&&Q?V.offset>Q.offset?V:Q:V??Q;if(_&&(!O||O.offset<_.offset))z(_,"MISSING_CHAR","Missing newline after block sequence props")}let H=U.type==="block-map"?"map":U.type==="block-seq"?"seq":U.start.source==="{"?"map":"seq";if(!Q||!J||J==="!"||J===TX.YAMLMap.tagName&&H==="map"||J===FX.YAMLSeq.tagName&&H==="seq")return G9($,Z,U,z,J);let q=Z.schema.tags.find((V)=>V.tag===J&&V.collection===H);if(!q){let V=Z.schema.knownTags[J];if(V?.collection===H)Z.schema.tags.push(Object.assign({},V,{default:!1})),q=V;else{if(V)z(Q,"BAD_COLLECTION_TYPE",`${V.tag} used for ${H} collection, but expects ${V.collection??"scalar"}`,!0);else z(Q,"TAG_RESOLVE_FAILED",`Unresolved tag: ${J}`,!0);return G9($,Z,U,z,J)}}let G=G9($,Z,U,z,J,q),W=q.resolve?.(G,(V)=>z(Q,"TAG_RESOLVE_FAILED",V),Z.options)??G,Y=MX.isNode(W)?W:new PX.Scalar(W);if(Y.range=G.range,Y.tag=J,q?.format)Y.format=q.format;return Y}bX.composeCollection=wX});var B9=R((gX)=>{var Y9=g();function jX($,Z,U){let X=Z.offset,z=SX(Z,$.options.strict,U);if(!z)return{value:"",type:null,comment:"",range:[X,X,X]};let Q=z.mode===">"?Y9.Scalar.BLOCK_FOLDED:Y9.Scalar.BLOCK_LITERAL,J=Z.source?EX(Z.source):[],H=J.length;for(let B=J.length-1;B>=0;--B){let L=J[B][1];if(L===""||L==="\r")H=B;else break}if(H===0){let B=z.chomp==="+"&&J.length>0?`
70
- `.repeat(Math.max(1,J.length-1)):"",L=X+z.length;if(Z.source)L+=Z.source.length;return{value:B,type:Q,comment:z.comment,range:[X,L,L]}}let q=Z.indent+z.indent,G=Z.offset+z.length,W=0;for(let B=0;B<H;++B){let[L,I]=J[B];if(I===""||I==="\r"){if(z.indent===0&&L.length>q)q=L.length}else{if(L.length<q)U(G+L.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(z.indent===0)q=L.length;if(W=B,q===0&&!$.atRoot)U(G,"BAD_INDENT","Block scalar values in collections must be indented");break}G+=L.length+I.length+1}for(let B=J.length-1;B>=H;--B)if(J[B][0].length>q)H=B+1;let Y="",V="",O=!1;for(let B=0;B<W;++B)Y+=J[B][0].slice(q)+`
71
- `;for(let B=W;B<H;++B){let[L,I]=J[B];G+=L.length+I.length+1;let M=I[I.length-1]==="\r";if(M)I=I.slice(0,-1);if(I&&L.length<q){let A=`Block scalar lines must not be less indented than their ${z.indent?"explicit indentation indicator":"first line"}`;U(G-I.length-(M?2:1),"BAD_INDENT",A),L=""}if(Q===Y9.Scalar.BLOCK_LITERAL)Y+=V+L.slice(q)+I,V=`
72
- `;else if(L.length>q||I[0]==="\t"){if(V===" ")V=`
73
- `;else if(!O&&V===`
74
- `)V=`
61
+ ${_}
62
+ `}};rX.YAMLError=U1;rX.YAMLParseError=D9;rX.YAMLWarning=F9;rX.prettifyError=aX});var B$=D((ZU)=>{function $U($,{flow:Z,indicator:X,next:U,offset:z,onError:Q,parentIndent:J,startOnNewline:H}){let q=!1,_=H,B=H,G="",Y="",O=!1,L=!1,V=null,W=null,I=null,F=null,T=null,A=null,K=null;for(let R of $){if(L){if(R.type!=="space"&&R.type!=="newline"&&R.type!=="comma")Q(R.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");L=!1}if(V){if(_&&R.type!=="comment"&&R.type!=="newline")Q(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");V=null}switch(R.type){case"space":if(!Z&&(X!=="doc-start"||U?.type!=="flow-collection")&&R.source.includes("\t"))V=R;B=!0;break;case"comment":{if(!B)Q(R,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let w=R.source.substring(1)||" ";if(!G)G=w;else G+=Y+w;Y="",_=!1;break}case"newline":if(_){if(G)G+=R.source;else if(!A||X!=="seq-item-ind")q=!0}else Y+=R.source;if(_=!0,O=!0,W||I)F=R;B=!0;break;case"anchor":if(W)Q(R,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(R.source.endsWith(":"))Q(R.offset+R.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);W=R,K??(K=R.offset),_=!1,B=!1,L=!0;break;case"tag":{if(I)Q(R,"MULTIPLE_TAGS","A node can have at most one tag");I=R,K??(K=R.offset),_=!1,B=!1,L=!0;break}case X:if(W||I)Q(R,"BAD_PROP_ORDER",`Anchors and tags must be after the ${R.source} indicator`);if(A)Q(R,"UNEXPECTED_TOKEN",`Unexpected ${R.source} in ${Z??"collection"}`);A=R,_=X==="seq-item-ind"||X==="explicit-key-ind",B=!1;break;case"comma":if(Z){if(T)Q(R,"UNEXPECTED_TOKEN",`Unexpected , in ${Z}`);T=R,_=!1,B=!1;break}default:Q(R,"UNEXPECTED_TOKEN",`Unexpected ${R.type} token`),_=!1,B=!1}}let N=$[$.length-1],C=N?N.offset+N.source.length:z;if(L&&U&&U.type!=="space"&&U.type!=="newline"&&U.type!=="comma"&&(U.type!=="scalar"||U.source!==""))Q(U.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(V&&(_&&V.indent<=J||U?.type==="block-map"||U?.type==="block-seq"))Q(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:T,found:A,spaceBefore:q,comment:G,hasNewline:O,anchor:W,tag:I,newlineAfterProp:F,end:C,start:K??C}}ZU.resolveProps=$U});var z1=D((UU)=>{function Y2($){if(!$)return null;switch($.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if($.source.includes(`
63
+ `))return!0;if($.end){for(let Z of $.end)if(Z.type==="newline")return!0}return!1;case"flow-collection":for(let Z of $.items){for(let X of Z.start)if(X.type==="newline")return!0;if(Z.sep){for(let X of Z.sep)if(X.type==="newline")return!0}if(Y2(Z.key)||Y2(Z.value))return!0}return!1;default:return!0}}UU.containsNewline=Y2});var B2=D((HU)=>{var QU=z1();function JU($,Z,X){if(Z?.type==="flow-collection"){let U=Z.end[0];if(U.indent===$&&(U.source==="]"||U.source==="}")&&QU.containsNewline(Z))X(U,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}HU.flowIndentCheck=JU});var V2=D((GU)=>{var M9=b();function _U($,Z,X){let{uniqueKeys:U}=$.options;if(U===!1)return!1;let z=typeof U==="function"?U:(Q,J)=>Q===J||M9.isScalar(Q)&&M9.isScalar(J)&&Q.value===J.value;return Z.some((Q)=>z(Q.key,X))}GU.mapIncludes=_U});var N9=D((LU)=>{var P9=U0(),BU=Q0(),T9=B$(),VU=z1(),K9=B2(),OU=V2(),A9="All mapping items must start at the same column";function WU({composeNode:$,composeEmptyNode:Z},X,U,z,Q){let H=new(Q?.nodeClass??BU.YAMLMap)(X.schema);if(X.atRoot)X.atRoot=!1;let q=U.offset,_=null;for(let B of U.items){let{start:G,key:Y,sep:O,value:L}=B,V=T9.resolveProps(G,{indicator:"explicit-key-ind",next:Y??O?.[0],offset:q,onError:z,parentIndent:U.indent,startOnNewline:!0}),W=!V.found;if(W){if(Y){if(Y.type==="block-seq")z(q,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in Y&&Y.indent!==U.indent)z(q,"BAD_INDENT",A9)}if(!V.anchor&&!V.tag&&!O){if(_=V.end,V.comment)if(H.comment)H.comment+=`
64
+ `+V.comment;else H.comment=V.comment;continue}if(V.newlineAfterProp||VU.containsNewline(Y))z(Y??G[G.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(V.found?.indent!==U.indent)z(q,"BAD_INDENT",A9);X.atKey=!0;let I=V.end,F=Y?$(X,Y,V,z):Z(X,I,G,null,V,z);if(X.schema.compat)K9.flowIndentCheck(U.indent,Y,z);if(X.atKey=!1,OU.mapIncludes(X,H.items,F))z(I,"DUPLICATE_KEY","Map keys must be unique");let T=T9.resolveProps(O??[],{indicator:"map-value-ind",next:L,offset:F.range[2],onError:z,parentIndent:U.indent,startOnNewline:!Y||Y.type==="block-scalar"});if(q=T.end,T.found){if(W){if(L?.type==="block-map"&&!T.hasNewline)z(q,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(X.options.strict&&V.start<T.found.offset-1024)z(F.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let A=L?$(X,L,T,z):Z(X,q,O,null,T,z);if(X.schema.compat)K9.flowIndentCheck(U.indent,L,z);q=A.range[2];let K=new P9.Pair(F,A);if(X.options.keepSourceTokens)K.srcToken=B;H.items.push(K)}else{if(W)z(F.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(T.comment)if(F.comment)F.comment+=`
65
+ `+T.comment;else F.comment=T.comment;let A=new P9.Pair(F);if(X.options.keepSourceTokens)A.srcToken=B;H.items.push(A)}}if(_&&_<q)z(_,"IMPOSSIBLE","Map comment with trailing content");return H.range=[U.offset,q,_??q],H}LU.resolveBlockMap=WU});var w9=D((PU)=>{var IU=J0(),DU=B$(),FU=B2();function MU({composeNode:$,composeEmptyNode:Z},X,U,z,Q){let H=new(Q?.nodeClass??IU.YAMLSeq)(X.schema);if(X.atRoot)X.atRoot=!1;if(X.atKey)X.atKey=!1;let q=U.offset,_=null;for(let{start:B,value:G}of U.items){let Y=DU.resolveProps(B,{indicator:"seq-item-ind",next:G,offset:q,onError:z,parentIndent:U.indent,startOnNewline:!0});if(!Y.found)if(Y.anchor||Y.tag||G)if(G?.type==="block-seq")z(Y.end,"BAD_INDENT","All sequence items must start at the same column");else z(q,"MISSING_CHAR","Sequence item without - indicator");else{if(_=Y.end,Y.comment)H.comment=Y.comment;continue}let O=G?$(X,G,Y,z):Z(X,Y.end,B,null,Y,z);if(X.schema.compat)FU.flowIndentCheck(U.indent,G,z);q=O.range[2],H.items.push(O)}return H.range=[U.offset,q,_??q],H}PU.resolveBlockSeq=MU});var g0=D((AU)=>{function KU($,Z,X,U){let z="";if($){let Q=!1,J="";for(let H of $){let{source:q,type:_}=H;switch(_){case"space":Q=!0;break;case"comment":{if(X&&!Q)U(H,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let B=q.substring(1)||" ";if(!z)z=B;else z+=J+B;J="";break}case"newline":if(z)J+=q;Q=!0;break;default:U(H,"UNEXPECTED_TOKEN",`Unexpected ${_} at node end`)}Z+=q.length}}return{comment:z,offset:Z}}AU.resolveEnd=KU});var j9=D((yU)=>{var wU=b(),bU=U0(),b9=Q0(),CU=J0(),jU=g0(),C9=B$(),SU=z1(),EU=V2(),O2="Block collections are not allowed within flow collections",W2=($)=>$&&($.type==="block-map"||$.type==="block-seq");function gU({composeNode:$,composeEmptyNode:Z},X,U,z,Q){let J=U.start.source==="{",H=J?"flow map":"flow sequence",_=new(Q?.nodeClass??(J?b9.YAMLMap:CU.YAMLSeq))(X.schema);_.flow=!0;let B=X.atRoot;if(B)X.atRoot=!1;if(X.atKey)X.atKey=!1;let G=U.offset+U.start.source.length;for(let W=0;W<U.items.length;++W){let I=U.items[W],{start:F,key:T,sep:A,value:K}=I,N=C9.resolveProps(F,{flow:H,indicator:"explicit-key-ind",next:T??A?.[0],offset:G,onError:z,parentIndent:U.indent,startOnNewline:!1});if(!N.found){if(!N.anchor&&!N.tag&&!A&&!K){if(W===0&&N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${H}`);else if(W<U.items.length-1)z(N.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${H}`);if(N.comment)if(_.comment)_.comment+=`
66
+ `+N.comment;else _.comment=N.comment;G=N.end;continue}if(!J&&X.options.strict&&SU.containsNewline(T))z(T,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(W===0){if(N.comma)z(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${H}`)}else{if(!N.comma)z(N.start,"MISSING_CHAR",`Missing , between ${H} items`);if(N.comment){let C="";$:for(let R of F)switch(R.type){case"comma":case"space":break;case"comment":C=R.source.substring(1);break $;default:break $}if(C){let R=_.items[_.items.length-1];if(wU.isPair(R))R=R.value??R.key;if(R.comment)R.comment+=`
67
+ `+C;else R.comment=C;N.comment=N.comment.substring(C.length+1)}}}if(!J&&!A&&!N.found){let C=K?$(X,K,N,z):Z(X,N.end,A,null,N,z);if(_.items.push(C),G=C.range[2],W2(K))z(C.range,"BLOCK_IN_FLOW",O2)}else{X.atKey=!0;let C=N.end,R=T?$(X,T,N,z):Z(X,C,F,null,N,z);if(W2(T))z(R.range,"BLOCK_IN_FLOW",O2);X.atKey=!1;let w=C9.resolveProps(A??[],{flow:H,indicator:"map-value-ind",next:K,offset:R.range[2],onError:z,parentIndent:U.indent,startOnNewline:!1});if(w.found){if(!J&&!N.found&&X.options.strict){if(A)for(let E of A){if(E===w.found)break;if(E.type==="newline"){z(E,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(N.start<w.found.offset-1024)z(w.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(K)if("source"in K&&K.source?.[0]===":")z(K,"MISSING_CHAR",`Missing space after : in ${H}`);else z(w.start,"MISSING_CHAR",`Missing , or : between ${H} items`);let d=K?$(X,K,w,z):w.found?Z(X,w.end,A,null,w,z):null;if(d){if(W2(K))z(d.range,"BLOCK_IN_FLOW",O2)}else if(w.comment)if(R.comment)R.comment+=`
68
+ `+w.comment;else R.comment=w.comment;let c=new bU.Pair(R,d);if(X.options.keepSourceTokens)c.srcToken=I;if(J){let E=_;if(EU.mapIncludes(X,E.items,R))z(C,"DUPLICATE_KEY","Map keys must be unique");E.items.push(c)}else{let E=new b9.YAMLMap(X.schema);E.flow=!0,E.items.push(c);let m0=(d??R).range;E.range=[R.range[0],m0[1],m0[2]],_.items.push(E)}G=d?d.range[2]:w.end}}let Y=J?"}":"]",[O,...L]=U.end,V=G;if(O?.source===Y)V=O.offset+O.source.length;else{let W=H[0].toUpperCase()+H.substring(1),I=B?`${W} must end with a ${Y}`:`${W} in block collection must be sufficiently indented and end with a ${Y}`;if(z(G,B?"MISSING_CHAR":"BAD_INDENT",I),O&&O.source.length!==1)L.unshift(O)}if(L.length>0){let W=jU.resolveEnd(L,V,X.options.strict,z);if(W.comment)if(_.comment)_.comment+=`
69
+ `+W.comment;else _.comment=W.comment;_.range=[U.offset,V,W.offset]}else _.range=[U.offset,V,V];return _}yU.resolveFlowCollection=gU});var S9=D((dU)=>{var xU=b(),hU=g(),uU=Q0(),kU=J0(),vU=N9(),mU=w9(),pU=j9();function L2($,Z,X,U,z,Q){let J=X.type==="block-map"?vU.resolveBlockMap($,Z,X,U,Q):X.type==="block-seq"?mU.resolveBlockSeq($,Z,X,U,Q):pU.resolveFlowCollection($,Z,X,U,Q),H=J.constructor;if(z==="!"||z===H.tagName)return J.tag=H.tagName,J;if(z)J.tag=z;return J}function lU($,Z,X,U,z){let Q=U.tag,J=!Q?null:Z.directives.tagName(Q.source,(Y)=>z(Q,"TAG_RESOLVE_FAILED",Y));if(X.type==="block-seq"){let{anchor:Y,newlineAfterProp:O}=U,L=Y&&Q?Y.offset>Q.offset?Y:Q:Y??Q;if(L&&(!O||O.offset<L.offset))z(L,"MISSING_CHAR","Missing newline after block sequence props")}let H=X.type==="block-map"?"map":X.type==="block-seq"?"seq":X.start.source==="{"?"map":"seq";if(!Q||!J||J==="!"||J===uU.YAMLMap.tagName&&H==="map"||J===kU.YAMLSeq.tagName&&H==="seq")return L2($,Z,X,z,J);let q=Z.schema.tags.find((Y)=>Y.tag===J&&Y.collection===H);if(!q){let Y=Z.schema.knownTags[J];if(Y?.collection===H)Z.schema.tags.push(Object.assign({},Y,{default:!1})),q=Y;else{if(Y)z(Q,"BAD_COLLECTION_TYPE",`${Y.tag} used for ${H} collection, but expects ${Y.collection??"scalar"}`,!0);else z(Q,"TAG_RESOLVE_FAILED",`Unresolved tag: ${J}`,!0);return L2($,Z,X,z,J)}}let _=L2($,Z,X,z,J,q),B=q.resolve?.(_,(Y)=>z(Q,"TAG_RESOLVE_FAILED",Y),Z.options)??_,G=xU.isNode(B)?B:new hU.Scalar(B);if(G.range=_.range,G.tag=J,q?.format)G.format=q.format;return G}dU.composeCollection=lU});var I2=D((rU)=>{var R2=g();function iU($,Z,X){let U=Z.offset,z=sU(Z,$.options.strict,X);if(!z)return{value:"",type:null,comment:"",range:[U,U,U]};let Q=z.mode===">"?R2.Scalar.BLOCK_FOLDED:R2.Scalar.BLOCK_LITERAL,J=Z.source?aU(Z.source):[],H=J.length;for(let V=J.length-1;V>=0;--V){let W=J[V][1];if(W===""||W==="\r")H=V;else break}if(H===0){let V=z.chomp==="+"&&J.length>0?`
70
+ `.repeat(Math.max(1,J.length-1)):"",W=U+z.length;if(Z.source)W+=Z.source.length;return{value:V,type:Q,comment:z.comment,range:[U,W,W]}}let q=Z.indent+z.indent,_=Z.offset+z.length,B=0;for(let V=0;V<H;++V){let[W,I]=J[V];if(I===""||I==="\r"){if(z.indent===0&&W.length>q)q=W.length}else{if(W.length<q)X(_+W.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(z.indent===0)q=W.length;if(B=V,q===0&&!$.atRoot)X(_,"BAD_INDENT","Block scalar values in collections must be indented");break}_+=W.length+I.length+1}for(let V=J.length-1;V>=H;--V)if(J[V][0].length>q)H=V+1;let G="",Y="",O=!1;for(let V=0;V<B;++V)G+=J[V][0].slice(q)+`
71
+ `;for(let V=B;V<H;++V){let[W,I]=J[V];_+=W.length+I.length+1;let F=I[I.length-1]==="\r";if(F)I=I.slice(0,-1);if(I&&W.length<q){let A=`Block scalar lines must not be less indented than their ${z.indent?"explicit indentation indicator":"first line"}`;X(_-I.length-(F?2:1),"BAD_INDENT",A),W=""}if(Q===R2.Scalar.BLOCK_LITERAL)G+=Y+W.slice(q)+I,Y=`
72
+ `;else if(W.length>q||I[0]==="\t"){if(Y===" ")Y=`
73
+ `;else if(!O&&Y===`
74
+ `)Y=`
75
75
 
76
- `;Y+=V+L.slice(q)+I,V=`
77
- `,O=!0}else if(I==="")if(V===`
78
- `)Y+=`
79
- `;else V=`
80
- `;else Y+=V+I,V=" ",O=!1}switch(z.chomp){case"-":break;case"+":for(let B=H;B<J.length;++B)Y+=`
81
- `+J[B][0].slice(q);if(Y[Y.length-1]!==`
82
- `)Y+=`
83
- `;break;default:Y+=`
84
- `}let _=X+z.length+Z.source.length;return{value:Y,type:Q,comment:z.comment,range:[X,_,_]}}function SX({offset:$,props:Z},U,X){if(Z[0].type!=="block-scalar-header")return X(Z[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:z}=Z[0],Q=z[0],J=0,H="",q=-1;for(let V=1;V<z.length;++V){let O=z[V];if(!H&&(O==="-"||O==="+"))H=O;else{let _=Number(O);if(!J&&_)J=_;else if(q===-1)q=$+V}}if(q!==-1)X(q,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${z}`);let G=!1,W="",Y=z.length;for(let V=1;V<Z.length;++V){let O=Z[V];switch(O.type){case"space":G=!0;case"newline":Y+=O.source.length;break;case"comment":if(U&&!G)X(O,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");Y+=O.source.length,W=O.source.substring(1);break;case"error":X(O,"UNEXPECTED_TOKEN",O.message),Y+=O.source.length;break;default:{let _=`Unexpected token in block scalar header: ${O.type}`;X(O,"UNEXPECTED_TOKEN",_);let B=O.source;if(B&&typeof B==="string")Y+=B.length}}}return{mode:Q,indent:J,chomp:H,comment:W,length:Y}}function EX($){let Z=$.split(/\n( *)/),U=Z[0],X=U.match(/^( *)/),Q=[X?.[1]?[X[1],U.slice(X[1].length)]:["",U]];for(let J=1;J<Z.length;J+=2)Q.push([Z[J],Z[J+1]]);return Q}gX.resolveBlockScalar=jX});var W9=R((lX)=>{var V9=g(),yX=C0();function xX($,Z,U){let{offset:X,type:z,source:Q,end:J}=$,H,q,G=(V,O,_)=>U(X+V,O,_);switch(z){case"scalar":H=V9.Scalar.PLAIN,q=hX(Q,G);break;case"single-quoted-scalar":H=V9.Scalar.QUOTE_SINGLE,q=uX(Q,G);break;case"double-quoted-scalar":H=V9.Scalar.QUOTE_DOUBLE,q=kX(Q,G);break;default:return U($,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${z}`),{value:"",type:null,comment:"",range:[X,X+Q.length,X+Q.length]}}let W=X+Q.length,Y=yX.resolveEnd(J,W,Z,U);return{value:q,type:H,comment:Y.comment,range:[X,W,Y.offset]}}function hX($,Z){let U="";switch($[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 ${$[0]}`;break}case"@":case"`":{U=`reserved character ${$[0]}`;break}}if(U)Z(0,"BAD_SCALAR_START",`Plain value cannot start with ${U}`);return P8($)}function uX($,Z){if($[$.length-1]!=="'"||$.length===1)Z($.length,"MISSING_CHAR","Missing closing 'quote");return P8($.slice(1,-1)).replace(/''/g,"'")}function P8($){let Z,U;try{Z=new RegExp(`(.*?)(?<![ ])[ ]*\r?
85
- `,"sy"),U=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
86
- `,"sy")}catch{Z=/(.*?)[ \t]*\r?\n/sy,U=/[ \t]*(.*?)[ \t]*\r?\n/sy}let X=Z.exec($);if(!X)return $;let z=X[1],Q=" ",J=Z.lastIndex;U.lastIndex=J;while(X=U.exec($)){if(X[1]==="")if(Q===`
76
+ `;G+=Y+W.slice(q)+I,Y=`
77
+ `,O=!0}else if(I==="")if(Y===`
78
+ `)G+=`
79
+ `;else Y=`
80
+ `;else G+=Y+I,Y=" ",O=!1}switch(z.chomp){case"-":break;case"+":for(let V=H;V<J.length;++V)G+=`
81
+ `+J[V][0].slice(q);if(G[G.length-1]!==`
82
+ `)G+=`
83
+ `;break;default:G+=`
84
+ `}let L=U+z.length+Z.source.length;return{value:G,type:Q,comment:z.comment,range:[U,L,L]}}function sU({offset:$,props:Z},X,U){if(Z[0].type!=="block-scalar-header")return U(Z[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:z}=Z[0],Q=z[0],J=0,H="",q=-1;for(let Y=1;Y<z.length;++Y){let O=z[Y];if(!H&&(O==="-"||O==="+"))H=O;else{let L=Number(O);if(!J&&L)J=L;else if(q===-1)q=$+Y}}if(q!==-1)U(q,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${z}`);let _=!1,B="",G=z.length;for(let Y=1;Y<Z.length;++Y){let O=Z[Y];switch(O.type){case"space":_=!0;case"newline":G+=O.source.length;break;case"comment":if(X&&!_)U(O,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");G+=O.source.length,B=O.source.substring(1);break;case"error":U(O,"UNEXPECTED_TOKEN",O.message),G+=O.source.length;break;default:{let L=`Unexpected token in block scalar header: ${O.type}`;U(O,"UNEXPECTED_TOKEN",L);let V=O.source;if(V&&typeof V==="string")G+=V.length}}}return{mode:Q,indent:J,chomp:H,comment:B,length:G}}function aU($){let Z=$.split(/\n( *)/),X=Z[0],U=X.match(/^( *)/),Q=[U?.[1]?[U[1],X.slice(U[1].length)]:["",X]];for(let J=1;J<Z.length;J+=2)Q.push([Z[J],Z[J+1]]);return Q}rU.resolveBlockScalar=iU});var F2=D((Qz)=>{var D2=g(),oU=g0();function tU($,Z,X){let{offset:U,type:z,source:Q,end:J}=$,H,q,_=(Y,O,L)=>X(U+Y,O,L);switch(z){case"scalar":H=D2.Scalar.PLAIN,q=eU(Q,_);break;case"single-quoted-scalar":H=D2.Scalar.QUOTE_SINGLE,q=$z(Q,_);break;case"double-quoted-scalar":H=D2.Scalar.QUOTE_DOUBLE,q=Zz(Q,_);break;default:return X($,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${z}`),{value:"",type:null,comment:"",range:[U,U+Q.length,U+Q.length]}}let B=U+Q.length,G=oU.resolveEnd(J,B,Z,X);return{value:q,type:H,comment:G.comment,range:[U,B,G.offset]}}function eU($,Z){let X="";switch($[0]){case"\t":X="a tab character";break;case",":X="flow indicator character ,";break;case"%":X="directive indicator character %";break;case"|":case">":{X=`block scalar indicator ${$[0]}`;break}case"@":case"`":{X=`reserved character ${$[0]}`;break}}if(X)Z(0,"BAD_SCALAR_START",`Plain value cannot start with ${X}`);return E9($)}function $z($,Z){if($[$.length-1]!=="'"||$.length===1)Z($.length,"MISSING_CHAR","Missing closing 'quote");return E9($.slice(1,-1)).replace(/''/g,"'")}function E9($){let Z,X;try{Z=new RegExp(`(.*?)(?<![ ])[ ]*\r?
85
+ `,"sy"),X=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
86
+ `,"sy")}catch{Z=/(.*?)[ \t]*\r?\n/sy,X=/[ \t]*(.*?)[ \t]*\r?\n/sy}let U=Z.exec($);if(!U)return $;let z=U[1],Q=" ",J=Z.lastIndex;X.lastIndex=J;while(U=X.exec($)){if(U[1]==="")if(Q===`
87
87
  `)z+=Q;else Q=`
88
- `;else z+=Q+X[1],Q=" ";J=U.lastIndex}let H=/[ \t]*(.*)/sy;return H.lastIndex=J,X=H.exec($),z+Q+(X?.[1]??"")}function kX($,Z){let U="";for(let X=1;X<$.length-1;++X){let z=$[X];if(z==="\r"&&$[X+1]===`
88
+ `;else z+=Q+U[1],Q=" ";J=X.lastIndex}let H=/[ \t]*(.*)/sy;return H.lastIndex=J,U=H.exec($),z+Q+(U?.[1]??"")}function Zz($,Z){let X="";for(let U=1;U<$.length-1;++U){let z=$[U];if(z==="\r"&&$[U+1]===`
89
89
  `)continue;if(z===`
90
- `){let{fold:Q,offset:J}=vX($,X);U+=Q,X=J}else if(z==="\\"){let Q=$[++X],J=mX[Q];if(J)U+=J;else if(Q===`
91
- `){Q=$[X+1];while(Q===" "||Q==="\t")Q=$[++X+1]}else if(Q==="\r"&&$[X+1]===`
92
- `){Q=$[++X+1];while(Q===" "||Q==="\t")Q=$[++X+1]}else if(Q==="x"||Q==="u"||Q==="U"){let H={x:2,u:4,U:8}[Q];U+=pX($,X+1,H,Z),X+=H}else{let H=$.substr(X-1,2);Z(X-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${H}`),U+=H}}else if(z===" "||z==="\t"){let Q=X,J=$[X+1];while(J===" "||J==="\t")J=$[++X+1];if(J!==`
93
- `&&!(J==="\r"&&$[X+2]===`
94
- `))U+=X>Q?$.slice(Q,X+1):z}else U+=z}if($[$.length-1]!=='"'||$.length===1)Z($.length,"MISSING_CHAR",'Missing closing "quote');return U}function vX($,Z){let U="",X=$[Z+1];while(X===" "||X==="\t"||X===`
95
- `||X==="\r"){if(X==="\r"&&$[Z+2]!==`
96
- `)break;if(X===`
97
- `)U+=`
98
- `;Z+=1,X=$[Z+1]}if(!U)U=" ";return{fold:U,offset:Z}}var mX={"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 pX($,Z,U,X){let z=$.substr(Z,U),J=z.length===U&&/^[0-9a-fA-F]+$/.test(z)?parseInt(z,16):NaN;if(isNaN(J)){let H=$.substr(Z-2,U+2);return X(Z-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${H}`),H}return String.fromCodePoint(J)}lX.resolveFlowScalar=xX});var F8=R((nX)=>{var W0=b(),T8=g(),cX=B9(),aX=W9();function iX($,Z,U,X){let{value:z,type:Q,comment:J,range:H}=Z.type==="block-scalar"?cX.resolveBlockScalar($,Z,X):aX.resolveFlowScalar(Z,$.options.strict,X),q=U?$.directives.tagName(U.source,(Y)=>X(U,"TAG_RESOLVE_FAILED",Y)):null,G;if($.options.stringKeys&&$.atKey)G=$.schema[W0.SCALAR];else if(q)G=sX($.schema,z,q,U,X);else if(Z.type==="scalar")G=rX($,z,Z,X);else G=$.schema[W0.SCALAR];let W;try{let Y=G.resolve(z,(V)=>X(U??Z,"TAG_RESOLVE_FAILED",V),$.options);W=W0.isScalar(Y)?Y:new T8.Scalar(Y)}catch(Y){let V=Y instanceof Error?Y.message:String(Y);X(U??Z,"TAG_RESOLVE_FAILED",V),W=new T8.Scalar(z)}if(W.range=H,W.source=z,Q)W.type=Q;if(q)W.tag=q;if(G.format)W.format=G.format;if(J)W.comment=J;return W}function sX($,Z,U,X,z){if(U==="!")return $[W0.SCALAR];let Q=[];for(let H of $.tags)if(!H.collection&&H.tag===U)if(H.default&&H.test)Q.push(H);else return H;for(let H of Q)if(H.test?.test(Z))return H;let J=$.knownTags[U];if(J&&!J.collection)return $.tags.push(Object.assign({},J,{default:!1,test:void 0})),J;return z(X,"TAG_RESOLVE_FAILED",`Unresolved tag: ${U}`,U!=="tag:yaml.org,2002:str"),$[W0.SCALAR]}function rX({atKey:$,directives:Z,schema:U},X,z,Q){let J=U.tags.find((H)=>(H.default===!0||$&&H.default==="key")&&H.test?.test(X))||U[W0.SCALAR];if(U.compat){let H=U.compat.find((q)=>q.default&&q.test?.test(X))??U[W0.SCALAR];if(J.tag!==H.tag){let q=Z.tagString(J.tag),G=Z.tagString(H.tag),W=`Value may be parsed as either ${q} or ${G}`;Q(z,"TAG_RESOLVE_FAILED",W,!0)}}return J}nX.composeScalar=iX});var K8=R((eX)=>{function tX($,Z,U){if(Z){U??(U=Z.length);for(let X=U-1;X>=0;--X){let z=Z[X];switch(z.type){case"space":case"comment":case"newline":$-=z.source.length;continue}z=Z[++X];while(z?.type==="space")$+=z.source.length,z=Z[++X];break}}return $}eX.emptyScalarPosition=tX});var w8=R((qz)=>{var Zz=d0(),Uz=b(),Xz=M8(),A8=F8(),zz=C0(),Qz=K8(),Jz={composeNode:N8,composeEmptyNode:O9};function N8($,Z,U,X){let z=$.atKey,{spaceBefore:Q,comment:J,anchor:H,tag:q}=U,G,W=!0;switch(Z.type){case"alias":if(G=Hz($,Z,X),H||q)X(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(G=A8.composeScalar($,Z,q,X),H)G.anchor=H.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{if(G=Xz.composeCollection(Jz,$,Z,U,X),H)G.anchor=H.source.substring(1)}catch(Y){let V=Y instanceof Error?Y.message:String(Y);X(Z,"RESOURCE_EXHAUSTION",V)}break;default:{let Y=Z.type==="error"?Z.message:`Unsupported token (type: ${Z.type})`;X(Z,"UNEXPECTED_TOKEN",Y),W=!1}}if(G??(G=O9($,Z.offset,void 0,null,U,X)),H&&G.anchor==="")X(H,"BAD_ALIAS","Anchor cannot be an empty string");if(z&&$.options.stringKeys&&(!Uz.isScalar(G)||typeof G.value!=="string"||G.tag&&G.tag!=="tag:yaml.org,2002:str"))X(q??Z,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(Q)G.spaceBefore=!0;if(J)if(Z.type==="scalar"&&Z.source==="")G.comment=J;else G.commentBefore=J;if($.options.keepSourceTokens&&W)G.srcToken=Z;return G}function O9($,Z,U,X,{spaceBefore:z,comment:Q,anchor:J,tag:H,end:q},G){let W={type:"scalar",offset:Qz.emptyScalarPosition(Z,U,X),indent:-1,source:""},Y=A8.composeScalar($,W,H,G);if(J){if(Y.anchor=J.source.substring(1),Y.anchor==="")G(J,"BAD_ALIAS","Anchor cannot be an empty string")}if(z)Y.spaceBefore=!0;if(Q)Y.comment=Q,Y.range[2]=q;return Y}function Hz({options:$},{offset:Z,source:U,end:X},z){let Q=new Zz.Alias(U.substring(1));if(Q.source==="")z(Z,"BAD_ALIAS","Alias cannot be an empty string");if(Q.source.endsWith(":"))z(Z+U.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let J=Z+U.length,H=zz.resolveEnd(X,J,$.strict,z);if(Q.range=[Z,J,H.offset],H.comment)Q.comment=H.comment;return Q}qz.composeEmptyNode=O9;qz.composeNode=N8});var C8=R((Lz)=>{var Bz=Q$(),b8=w8(),Vz=C0(),Wz=H$();function Oz($,Z,{offset:U,start:X,value:z,end:Q},J){let H=Object.assign({_directives:Z},$),q=new Bz.Document(void 0,H),G={atKey:!1,atRoot:!0,directives:q.directives,options:q.options,schema:q.schema},W=Wz.resolveProps(X,{indicator:"doc-start",next:z??Q?.[0],offset:U,onError:J,parentIndent:0,startOnNewline:!0});if(W.found){if(q.directives.docStart=!0,z&&(z.type==="block-map"||z.type==="block-seq")&&!W.hasNewline)J(W.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}q.contents=z?b8.composeNode(G,z,W,J):b8.composeEmptyNode(G,W.end,X,null,W,J);let Y=q.contents.range[2],V=Vz.resolveEnd(Q,Y,!1,J);if(V.comment)q.comment=V.comment;return q.range=[U,Y,V.offset],q}Lz.composeDoc=Oz});var L9=R((Tz)=>{var Dz=h0("process"),Iz=R2(),Rz=Q$(),q$=J$(),j8=b(),Mz=C8(),Pz=C0();function G$($){if(typeof $==="number")return[$,$+1];if(Array.isArray($))return $.length===2?$:[$[0],$[1]];let{offset:Z,source:U}=$;return[Z,Z+(typeof U==="string"?U.length:1)]}function S8($){let Z="",U=!1,X=!1;for(let z=0;z<$.length;++z){let Q=$[z];switch(Q[0]){case"#":Z+=(Z===""?"":X?`
90
+ `){let{fold:Q,offset:J}=Xz($,U);X+=Q,U=J}else if(z==="\\"){let Q=$[++U],J=Uz[Q];if(J)X+=J;else if(Q===`
91
+ `){Q=$[U+1];while(Q===" "||Q==="\t")Q=$[++U+1]}else if(Q==="\r"&&$[U+1]===`
92
+ `){Q=$[++U+1];while(Q===" "||Q==="\t")Q=$[++U+1]}else if(Q==="x"||Q==="u"||Q==="U"){let H={x:2,u:4,U:8}[Q];X+=zz($,U+1,H,Z),U+=H}else{let H=$.substr(U-1,2);Z(U-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${H}`),X+=H}}else if(z===" "||z==="\t"){let Q=U,J=$[U+1];while(J===" "||J==="\t")J=$[++U+1];if(J!==`
93
+ `&&!(J==="\r"&&$[U+2]===`
94
+ `))X+=U>Q?$.slice(Q,U+1):z}else X+=z}if($[$.length-1]!=='"'||$.length===1)Z($.length,"MISSING_CHAR",'Missing closing "quote');return X}function Xz($,Z){let X="",U=$[Z+1];while(U===" "||U==="\t"||U===`
95
+ `||U==="\r"){if(U==="\r"&&$[Z+2]!==`
96
+ `)break;if(U===`
97
+ `)X+=`
98
+ `;Z+=1,U=$[Z+1]}if(!X)X=" ";return{fold:X,offset:Z}}var Uz={"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 zz($,Z,X,U){let z=$.substr(Z,X),J=z.length===X&&/^[0-9a-fA-F]+$/.test(z)?parseInt(z,16):NaN;if(isNaN(J)){let H=$.substr(Z-2,X+2);return U(Z-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${H}`),H}return String.fromCodePoint(J)}Qz.resolveFlowScalar=tU});var y9=D((Bz)=>{var L0=b(),g9=g(),Hz=I2(),qz=F2();function _z($,Z,X,U){let{value:z,type:Q,comment:J,range:H}=Z.type==="block-scalar"?Hz.resolveBlockScalar($,Z,U):qz.resolveFlowScalar(Z,$.options.strict,U),q=X?$.directives.tagName(X.source,(G)=>U(X,"TAG_RESOLVE_FAILED",G)):null,_;if($.options.stringKeys&&$.atKey)_=$.schema[L0.SCALAR];else if(q)_=Gz($.schema,z,q,X,U);else if(Z.type==="scalar")_=Yz($,z,Z,U);else _=$.schema[L0.SCALAR];let B;try{let G=_.resolve(z,(Y)=>U(X??Z,"TAG_RESOLVE_FAILED",Y),$.options);B=L0.isScalar(G)?G:new g9.Scalar(G)}catch(G){let Y=G instanceof Error?G.message:String(G);U(X??Z,"TAG_RESOLVE_FAILED",Y),B=new g9.Scalar(z)}if(B.range=H,B.source=z,Q)B.type=Q;if(q)B.tag=q;if(_.format)B.format=_.format;if(J)B.comment=J;return B}function Gz($,Z,X,U,z){if(X==="!")return $[L0.SCALAR];let Q=[];for(let H of $.tags)if(!H.collection&&H.tag===X)if(H.default&&H.test)Q.push(H);else return H;for(let H of Q)if(H.test?.test(Z))return H;let J=$.knownTags[X];if(J&&!J.collection)return $.tags.push(Object.assign({},J,{default:!1,test:void 0})),J;return z(U,"TAG_RESOLVE_FAILED",`Unresolved tag: ${X}`,X!=="tag:yaml.org,2002:str"),$[L0.SCALAR]}function Yz({atKey:$,directives:Z,schema:X},U,z,Q){let J=X.tags.find((H)=>(H.default===!0||$&&H.default==="key")&&H.test?.test(U))||X[L0.SCALAR];if(X.compat){let H=X.compat.find((q)=>q.default&&q.test?.test(U))??X[L0.SCALAR];if(J.tag!==H.tag){let q=Z.tagString(J.tag),_=Z.tagString(H.tag),B=`Value may be parsed as either ${q} or ${_}`;Q(z,"TAG_RESOLVE_FAILED",B,!0)}}return J}Bz.composeScalar=_z});var f9=D((Wz)=>{function Oz($,Z,X){if(Z){X??(X=Z.length);for(let U=X-1;U>=0;--U){let z=Z[U];switch(z.type){case"space":case"comment":case"newline":$-=z.source.length;continue}z=Z[++U];while(z?.type==="space")$+=z.source.length,z=Z[++U];break}}return $}Wz.emptyScalarPosition=Oz});var u9=D((Kz)=>{var Rz=r0(),Iz=b(),Dz=S9(),x9=y9(),Fz=g0(),Mz=f9(),Pz={composeNode:h9,composeEmptyNode:M2};function h9($,Z,X,U){let z=$.atKey,{spaceBefore:Q,comment:J,anchor:H,tag:q}=X,_,B=!0;switch(Z.type){case"alias":if(_=Tz($,Z,U),H||q)U(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(_=x9.composeScalar($,Z,q,U),H)_.anchor=H.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{if(_=Dz.composeCollection(Pz,$,Z,X,U),H)_.anchor=H.source.substring(1)}catch(G){let Y=G instanceof Error?G.message:String(G);U(Z,"RESOURCE_EXHAUSTION",Y)}break;default:{let G=Z.type==="error"?Z.message:`Unsupported token (type: ${Z.type})`;U(Z,"UNEXPECTED_TOKEN",G),B=!1}}if(_??(_=M2($,Z.offset,void 0,null,X,U)),H&&_.anchor==="")U(H,"BAD_ALIAS","Anchor cannot be an empty string");if(z&&$.options.stringKeys&&(!Iz.isScalar(_)||typeof _.value!=="string"||_.tag&&_.tag!=="tag:yaml.org,2002:str"))U(q??Z,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(Q)_.spaceBefore=!0;if(J)if(Z.type==="scalar"&&Z.source==="")_.comment=J;else _.commentBefore=J;if($.options.keepSourceTokens&&B)_.srcToken=Z;return _}function M2($,Z,X,U,{spaceBefore:z,comment:Q,anchor:J,tag:H,end:q},_){let B={type:"scalar",offset:Mz.emptyScalarPosition(Z,X,U),indent:-1,source:""},G=x9.composeScalar($,B,H,_);if(J){if(G.anchor=J.source.substring(1),G.anchor==="")_(J,"BAD_ALIAS","Anchor cannot be an empty string")}if(z)G.spaceBefore=!0;if(Q)G.comment=Q,G.range[2]=q;return G}function Tz({options:$},{offset:Z,source:X,end:U},z){let Q=new Rz.Alias(X.substring(1));if(Q.source==="")z(Z,"BAD_ALIAS","Alias cannot be an empty string");if(Q.source.endsWith(":"))z(Z+X.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let J=Z+X.length,H=Fz.resolveEnd(U,J,$.strict,z);if(Q.range=[Z,J,H.offset],H.comment)Q.comment=H.comment;return Q}Kz.composeEmptyNode=M2;Kz.composeNode=h9});var v9=D((Sz)=>{var wz=G$(),k9=u9(),bz=g0(),Cz=B$();function jz($,Z,{offset:X,start:U,value:z,end:Q},J){let H=Object.assign({_directives:Z},$),q=new wz.Document(void 0,H),_={atKey:!1,atRoot:!0,directives:q.directives,options:q.options,schema:q.schema},B=Cz.resolveProps(U,{indicator:"doc-start",next:z??Q?.[0],offset:X,onError:J,parentIndent:0,startOnNewline:!0});if(B.found){if(q.directives.docStart=!0,z&&(z.type==="block-map"||z.type==="block-seq")&&!B.hasNewline)J(B.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}q.contents=z?k9.composeNode(_,z,B,J):k9.composeEmptyNode(_,B.end,U,null,B,J);let G=q.contents.range[2],Y=bz.resolveEnd(Q,G,!1,J);if(Y.comment)q.comment=Y.comment;return q.range=[X,G,Y.offset],q}Sz.composeDoc=jz});var P2=D((uz)=>{var gz=p0("process"),yz=N1(),fz=G$(),V$=Y$(),m9=b(),xz=v9(),hz=g0();function O$($){if(typeof $==="number")return[$,$+1];if(Array.isArray($))return $.length===2?$:[$[0],$[1]];let{offset:Z,source:X}=$;return[Z,Z+(typeof X==="string"?X.length:1)]}function p9($){let Z="",X=!1,U=!1;for(let z=0;z<$.length;++z){let Q=$[z];switch(Q[0]){case"#":Z+=(Z===""?"":U?`
100
100
 
101
101
  `:`
102
- `)+(Q.substring(1)||" "),U=!0,X=!1;break;case"%":if($[z+1]?.[0]!=="#")z+=1;U=!1;break;default:if(!U)X=!0;U=!1}}return{comment:Z,afterEmptyLine:X}}class E8{constructor($={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(Z,U,X,z)=>{let Q=G$(Z);if(z)this.warnings.push(new q$.YAMLWarning(Q,U,X));else this.errors.push(new q$.YAMLParseError(Q,U,X))},this.directives=new Iz.Directives({version:$.version||"1.2"}),this.options=$}decorate($,Z){let{comment:U,afterEmptyLine:X}=S8(this.prelude);if(U){let z=$.contents;if(Z)$.comment=$.comment?`${$.comment}
103
- ${U}`:U;else if(X||$.directives.docStart||!z)$.commentBefore=U;else if(j8.isCollection(z)&&!z.flow&&z.items.length>0){let Q=z.items[0];if(j8.isPair(Q))Q=Q.key;let J=Q.commentBefore;Q.commentBefore=J?`${U}
104
- ${J}`:U}else{let Q=z.commentBefore;z.commentBefore=Q?`${U}
105
- ${Q}`:U}}if(Z)Array.prototype.push.apply($.errors,this.errors),Array.prototype.push.apply($.warnings,this.warnings);else $.errors=this.errors,$.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:S8(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose($,Z=!1,U=-1){for(let X of $)yield*this.next(X);yield*this.end(Z,U)}*next($){if(Dz.env.LOG_STREAM)console.dir($,{depth:null});switch($.type){case"directive":this.directives.add($.source,(Z,U,X)=>{let z=G$($);z[0]+=Z,this.onError(z,"BAD_DIRECTIVE",U,X)}),this.prelude.push($.source),this.atDirectives=!0;break;case"document":{let Z=Mz.composeDoc(this.options,this.directives,$,this.onError);if(this.atDirectives&&!Z.directives.docStart)this.onError($,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(Z,!1),this.doc)yield this.doc;this.doc=Z,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push($.source);break;case"error":{let Z=$.source?`${$.message}: ${JSON.stringify($.source)}`:$.message,U=new q$.YAMLParseError(G$($),"UNEXPECTED_TOKEN",Z);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 q$.YAMLParseError(G$($),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let Z=Pz.resolveEnd($.end,$.offset+$.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),Z.comment){let U=this.doc.comment;this.doc.comment=U?`${U}
106
- ${Z.comment}`:Z.comment}this.doc.range[2]=Z.offset;break}default:this.errors.push(new q$.YAMLParseError(G$($),"UNEXPECTED_TOKEN",`Unsupported token ${$.type}`))}}*end($=!1,Z=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if($){let U=Object.assign({_directives:this.directives},this.options),X=new Rz.Document(void 0,U);if(this.atDirectives)this.onError(Z,"MISSING_CHAR","Missing directives-end indicator line");X.range=[0,Z,Z],this.decorate(X,!1),yield X}}}Tz.Composer=E8});var y8=R((Sz)=>{var Kz=B9(),Az=W9(),Nz=J$(),g8=s0();function wz($,Z=!0,U){if($){let X=(z,Q,J)=>{let H=typeof z==="number"?z:Array.isArray(z)?z[0]:z.offset;if(U)U(H,Q,J);else throw new Nz.YAMLParseError([H,H+1],Q,J)};switch($.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Az.resolveFlowScalar($,Z,X);case"block-scalar":return Kz.resolveBlockScalar({options:{strict:Z}},$,X)}}return null}function bz($,Z){let{implicitKey:U=!1,indent:X,inFlow:z=!1,offset:Q=-1,type:J="PLAIN"}=Z,H=g8.stringifyString({type:J,value:$},{implicitKey:U,indent:X>0?" ".repeat(X):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}}),q=Z.end??[{type:"newline",offset:-1,indent:X,source:`
107
- `}];switch(H[0]){case"|":case">":{let G=H.indexOf(`
108
- `),W=H.substring(0,G),Y=H.substring(G+1)+`
109
- `,V=[{type:"block-scalar-header",offset:Q,indent:X,source:W}];if(!f8(V,q))V.push({type:"newline",offset:-1,indent:X,source:`
110
- `});return{type:"block-scalar",offset:Q,indent:X,props:V,source:Y}}case'"':return{type:"double-quoted-scalar",offset:Q,indent:X,source:H,end:q};case"'":return{type:"single-quoted-scalar",offset:Q,indent:X,source:H,end:q};default:return{type:"scalar",offset:Q,indent:X,source:H,end:q}}}function Cz($,Z,U={}){let{afterKey:X=!1,implicitKey:z=!1,inFlow:Q=!1,type:J}=U,H="indent"in $?$.indent:null;if(X&&typeof H==="number")H+=2;if(!J)switch($.type){case"single-quoted-scalar":J="QUOTE_SINGLE";break;case"double-quoted-scalar":J="QUOTE_DOUBLE";break;case"block-scalar":{let G=$.props[0];if(G.type!=="block-scalar-header")throw Error("Invalid block scalar header");J=G.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:J="PLAIN"}let q=g8.stringifyString({type:J,value:Z},{implicitKey:z||H===null,indent:H!==null&&H>0?" ".repeat(H):"",inFlow:Q,options:{blockQuote:!0,lineWidth:-1}});switch(q[0]){case"|":case">":jz($,q);break;case'"':_9($,q,"double-quoted-scalar");break;case"'":_9($,q,"single-quoted-scalar");break;default:_9($,q,"scalar")}}function jz($,Z){let U=Z.indexOf(`
111
- `),X=Z.substring(0,U),z=Z.substring(U+1)+`
112
- `;if($.type==="block-scalar"){let Q=$.props[0];if(Q.type!=="block-scalar-header")throw Error("Invalid block scalar header");Q.source=X,$.source=z}else{let{offset:Q}=$,J="indent"in $?$.indent:-1,H=[{type:"block-scalar-header",offset:Q,indent:J,source:X}];if(!f8(H,"end"in $?$.end:void 0))H.push({type:"newline",offset:-1,indent:J,source:`
113
- `});for(let q of Object.keys($))if(q!=="type"&&q!=="offset")delete $[q];Object.assign($,{type:"block-scalar",indent:J,props:H,source:z})}}function f8($,Z){if(Z)for(let U of Z)switch(U.type){case"space":case"comment":$.push(U);break;case"newline":return $.push(U),!0}return!1}function _9($,Z,U){switch($.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":$.type=U,$.source=Z;break;case"block-scalar":{let X=$.props.slice(1),z=Z.length;if($.props[0].type==="block-scalar-header")z-=$.props[0].source.length;for(let Q of X)Q.offset+=z;delete $.props,Object.assign($,{type:U,source:Z,end:X});break}case"block-map":case"block-seq":{let z={type:"newline",offset:$.offset+Z.length,indent:$.indent,source:`
114
- `};delete $.items,Object.assign($,{type:U,source:Z,end:[z]});break}default:{let X="indent"in $?$.indent:-1,z="end"in $&&Array.isArray($.end)?$.end.filter((Q)=>Q.type==="space"||Q.type==="comment"||Q.type==="newline"):[];for(let Q of Object.keys($))if(Q!=="type"&&Q!=="offset")delete $[Q];Object.assign($,{type:U,indent:X,source:Z,end:z})}}}Sz.createScalarToken=bz;Sz.resolveAsScalar=wz;Sz.setScalarValue=Cz});var x8=R((xz)=>{var yz=($)=>("type"in $)?Z2($):$2($);function Z2($){switch($.type){case"block-scalar":{let Z="";for(let U of $.props)Z+=Z2(U);return Z+$.source}case"block-map":case"block-seq":{let Z="";for(let U of $.items)Z+=$2(U);return Z}case"flow-collection":{let Z=$.start.source;for(let U of $.items)Z+=$2(U);for(let U of $.end)Z+=U.source;return Z}case"document":{let Z=$2($);if($.end)for(let U of $.end)Z+=U.source;return Z}default:{let Z=$.source;if("end"in $&&$.end)for(let U of $.end)Z+=U.source;return Z}}}function $2({start:$,key:Z,sep:U,value:X}){let z="";for(let Q of $)z+=Q.source;if(Z)z+=Z2(Z);if(U)for(let Q of U)z+=Q.source;if(X)z+=Z2(X);return z}xz.stringify=yz});var k8=R((kz)=>{var D9=Symbol("break visit"),uz=Symbol("skip children"),h8=Symbol("remove item");function O0($,Z){if("type"in $&&$.type==="document")$={start:$.start,value:$.value};u8(Object.freeze([]),$,Z)}O0.BREAK=D9;O0.SKIP=uz;O0.REMOVE=h8;O0.itemAtPath=($,Z)=>{let U=$;for(let[X,z]of Z){let Q=U?.[X];if(Q&&"items"in Q)U=Q.items[z];else return}return U};O0.parentCollection=($,Z)=>{let U=O0.itemAtPath($,Z.slice(0,-1)),X=Z[Z.length-1][0],z=U?.[X];if(z&&"items"in z)return z;throw Error("Parent collection not found")};function u8($,Z,U){let X=U(Z,$);if(typeof X==="symbol")return X;for(let z of["key","value"]){let Q=Z[z];if(Q&&"items"in Q){for(let J=0;J<Q.items.length;++J){let H=u8(Object.freeze($.concat([[z,J]])),Q.items[J],U);if(typeof H==="number")J=H-1;else if(H===D9)return D9;else if(H===h8)Q.items.splice(J,1),J-=1}if(typeof X==="function"&&z==="key")X=X(Z,$)}}return typeof X==="function"?X(Z,$):X}kz.visit=O0});var U2=R((iz)=>{var I9=y8(),mz=x8(),pz=k8(),R9="\uFEFF",M9="\x02",P9="\x18",T9="\x1F",lz=($)=>!!$&&("items"in $),dz=($)=>!!$&&($.type==="scalar"||$.type==="single-quoted-scalar"||$.type==="double-quoted-scalar"||$.type==="block-scalar");function cz($){switch($){case R9:return"<BOM>";case M9:return"<DOC>";case P9:return"<FLOW_END>";case T9:return"<SCALAR>";default:return JSON.stringify($)}}function az($){switch($){case R9:return"byte-order-mark";case M9:return"doc-mode";case P9:return"flow-error-end";case T9:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
102
+ `)+(Q.substring(1)||" "),X=!0,U=!1;break;case"%":if($[z+1]?.[0]!=="#")z+=1;X=!1;break;default:if(!X)U=!0;X=!1}}return{comment:Z,afterEmptyLine:U}}class l9{constructor($={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(Z,X,U,z)=>{let Q=O$(Z);if(z)this.warnings.push(new V$.YAMLWarning(Q,X,U));else this.errors.push(new V$.YAMLParseError(Q,X,U))},this.directives=new yz.Directives({version:$.version||"1.2"}),this.options=$}decorate($,Z){let{comment:X,afterEmptyLine:U}=p9(this.prelude);if(X){let z=$.contents;if(Z)$.comment=$.comment?`${$.comment}
103
+ ${X}`:X;else if(U||$.directives.docStart||!z)$.commentBefore=X;else if(m9.isCollection(z)&&!z.flow&&z.items.length>0){let Q=z.items[0];if(m9.isPair(Q))Q=Q.key;let J=Q.commentBefore;Q.commentBefore=J?`${X}
104
+ ${J}`:X}else{let Q=z.commentBefore;z.commentBefore=Q?`${X}
105
+ ${Q}`:X}}if(Z)Array.prototype.push.apply($.errors,this.errors),Array.prototype.push.apply($.warnings,this.warnings);else $.errors=this.errors,$.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:p9(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose($,Z=!1,X=-1){for(let U of $)yield*this.next(U);yield*this.end(Z,X)}*next($){if(gz.env.LOG_STREAM)console.dir($,{depth:null});switch($.type){case"directive":this.directives.add($.source,(Z,X,U)=>{let z=O$($);z[0]+=Z,this.onError(z,"BAD_DIRECTIVE",X,U)}),this.prelude.push($.source),this.atDirectives=!0;break;case"document":{let Z=xz.composeDoc(this.options,this.directives,$,this.onError);if(this.atDirectives&&!Z.directives.docStart)this.onError($,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(Z,!1),this.doc)yield this.doc;this.doc=Z,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push($.source);break;case"error":{let Z=$.source?`${$.message}: ${JSON.stringify($.source)}`:$.message,X=new V$.YAMLParseError(O$($),"UNEXPECTED_TOKEN",Z);if(this.atDirectives||!this.doc)this.errors.push(X);else this.doc.errors.push(X);break}case"doc-end":{if(!this.doc){this.errors.push(new V$.YAMLParseError(O$($),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let Z=hz.resolveEnd($.end,$.offset+$.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),Z.comment){let X=this.doc.comment;this.doc.comment=X?`${X}
106
+ ${Z.comment}`:Z.comment}this.doc.range[2]=Z.offset;break}default:this.errors.push(new V$.YAMLParseError(O$($),"UNEXPECTED_TOKEN",`Unsupported token ${$.type}`))}}*end($=!1,Z=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if($){let X=Object.assign({_directives:this.directives},this.options),U=new fz.Document(void 0,X);if(this.atDirectives)this.onError(Z,"MISSING_CHAR","Missing directives-end indicator line");U.range=[0,Z,Z],this.decorate(U,!1),yield U}}}uz.Composer=l9});var i9=D((sz)=>{var vz=I2(),mz=F2(),pz=Y$(),d9=e0();function lz($,Z=!0,X){if($){let U=(z,Q,J)=>{let H=typeof z==="number"?z:Array.isArray(z)?z[0]:z.offset;if(X)X(H,Q,J);else throw new pz.YAMLParseError([H,H+1],Q,J)};switch($.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return mz.resolveFlowScalar($,Z,U);case"block-scalar":return vz.resolveBlockScalar({options:{strict:Z}},$,U)}}return null}function dz($,Z){let{implicitKey:X=!1,indent:U,inFlow:z=!1,offset:Q=-1,type:J="PLAIN"}=Z,H=d9.stringifyString({type:J,value:$},{implicitKey:X,indent:U>0?" ".repeat(U):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}}),q=Z.end??[{type:"newline",offset:-1,indent:U,source:`
107
+ `}];switch(H[0]){case"|":case">":{let _=H.indexOf(`
108
+ `),B=H.substring(0,_),G=H.substring(_+1)+`
109
+ `,Y=[{type:"block-scalar-header",offset:Q,indent:U,source:B}];if(!c9(Y,q))Y.push({type:"newline",offset:-1,indent:U,source:`
110
+ `});return{type:"block-scalar",offset:Q,indent:U,props:Y,source:G}}case'"':return{type:"double-quoted-scalar",offset:Q,indent:U,source:H,end:q};case"'":return{type:"single-quoted-scalar",offset:Q,indent:U,source:H,end:q};default:return{type:"scalar",offset:Q,indent:U,source:H,end:q}}}function cz($,Z,X={}){let{afterKey:U=!1,implicitKey:z=!1,inFlow:Q=!1,type:J}=X,H="indent"in $?$.indent:null;if(U&&typeof H==="number")H+=2;if(!J)switch($.type){case"single-quoted-scalar":J="QUOTE_SINGLE";break;case"double-quoted-scalar":J="QUOTE_DOUBLE";break;case"block-scalar":{let _=$.props[0];if(_.type!=="block-scalar-header")throw Error("Invalid block scalar header");J=_.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:J="PLAIN"}let q=d9.stringifyString({type:J,value:Z},{implicitKey:z||H===null,indent:H!==null&&H>0?" ".repeat(H):"",inFlow:Q,options:{blockQuote:!0,lineWidth:-1}});switch(q[0]){case"|":case">":iz($,q);break;case'"':T2($,q,"double-quoted-scalar");break;case"'":T2($,q,"single-quoted-scalar");break;default:T2($,q,"scalar")}}function iz($,Z){let X=Z.indexOf(`
111
+ `),U=Z.substring(0,X),z=Z.substring(X+1)+`
112
+ `;if($.type==="block-scalar"){let Q=$.props[0];if(Q.type!=="block-scalar-header")throw Error("Invalid block scalar header");Q.source=U,$.source=z}else{let{offset:Q}=$,J="indent"in $?$.indent:-1,H=[{type:"block-scalar-header",offset:Q,indent:J,source:U}];if(!c9(H,"end"in $?$.end:void 0))H.push({type:"newline",offset:-1,indent:J,source:`
113
+ `});for(let q of Object.keys($))if(q!=="type"&&q!=="offset")delete $[q];Object.assign($,{type:"block-scalar",indent:J,props:H,source:z})}}function c9($,Z){if(Z)for(let X of Z)switch(X.type){case"space":case"comment":$.push(X);break;case"newline":return $.push(X),!0}return!1}function T2($,Z,X){switch($.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":$.type=X,$.source=Z;break;case"block-scalar":{let U=$.props.slice(1),z=Z.length;if($.props[0].type==="block-scalar-header")z-=$.props[0].source.length;for(let Q of U)Q.offset+=z;delete $.props,Object.assign($,{type:X,source:Z,end:U});break}case"block-map":case"block-seq":{let z={type:"newline",offset:$.offset+Z.length,indent:$.indent,source:`
114
+ `};delete $.items,Object.assign($,{type:X,source:Z,end:[z]});break}default:{let U="indent"in $?$.indent:-1,z="end"in $&&Array.isArray($.end)?$.end.filter((Q)=>Q.type==="space"||Q.type==="comment"||Q.type==="newline"):[];for(let Q of Object.keys($))if(Q!=="type"&&Q!=="offset")delete $[Q];Object.assign($,{type:X,indent:U,source:Z,end:z})}}}sz.createScalarToken=dz;sz.resolveAsScalar=lz;sz.setScalarValue=cz});var s9=D((tz)=>{var oz=($)=>("type"in $)?J1($):Q1($);function J1($){switch($.type){case"block-scalar":{let Z="";for(let X of $.props)Z+=J1(X);return Z+$.source}case"block-map":case"block-seq":{let Z="";for(let X of $.items)Z+=Q1(X);return Z}case"flow-collection":{let Z=$.start.source;for(let X of $.items)Z+=Q1(X);for(let X of $.end)Z+=X.source;return Z}case"document":{let Z=Q1($);if($.end)for(let X of $.end)Z+=X.source;return Z}default:{let Z=$.source;if("end"in $&&$.end)for(let X of $.end)Z+=X.source;return Z}}}function Q1({start:$,key:Z,sep:X,value:U}){let z="";for(let Q of $)z+=Q.source;if(Z)z+=J1(Z);if(X)for(let Q of X)z+=Q.source;if(U)z+=J1(U);return z}tz.stringify=oz});var n9=D((ZQ)=>{var K2=Symbol("break visit"),$Q=Symbol("skip children"),a9=Symbol("remove item");function R0($,Z){if("type"in $&&$.type==="document")$={start:$.start,value:$.value};r9(Object.freeze([]),$,Z)}R0.BREAK=K2;R0.SKIP=$Q;R0.REMOVE=a9;R0.itemAtPath=($,Z)=>{let X=$;for(let[U,z]of Z){let Q=X?.[U];if(Q&&"items"in Q)X=Q.items[z];else return}return X};R0.parentCollection=($,Z)=>{let X=R0.itemAtPath($,Z.slice(0,-1)),U=Z[Z.length-1][0],z=X?.[U];if(z&&"items"in z)return z;throw Error("Parent collection not found")};function r9($,Z,X){let U=X(Z,$);if(typeof U==="symbol")return U;for(let z of["key","value"]){let Q=Z[z];if(Q&&"items"in Q){for(let J=0;J<Q.items.length;++J){let H=r9(Object.freeze($.concat([[z,J]])),Q.items[J],X);if(typeof H==="number")J=H-1;else if(H===K2)return K2;else if(H===a9)Q.items.splice(J,1),J-=1}if(typeof U==="function"&&z==="key")U=U(Z,$)}}return typeof U==="function"?U(Z,$):U}ZQ.visit=R0});var H1=D((_Q)=>{var A2=i9(),UQ=s9(),zQ=n9(),N2="\uFEFF",w2="\x02",b2="\x18",C2="\x1F",QQ=($)=>!!$&&("items"in $),JQ=($)=>!!$&&($.type==="scalar"||$.type==="single-quoted-scalar"||$.type==="double-quoted-scalar"||$.type==="block-scalar");function HQ($){switch($){case N2:return"<BOM>";case w2:return"<DOC>";case b2:return"<FLOW_END>";case C2:return"<SCALAR>";default:return JSON.stringify($)}}function qQ($){switch($){case N2:return"byte-order-mark";case w2:return"doc-mode";case b2:return"flow-error-end";case C2: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($[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}iz.createScalarToken=I9.createScalarToken;iz.resolveAsScalar=I9.resolveAsScalar;iz.setScalarValue=I9.setScalarValue;iz.stringify=mz.stringify;iz.visit=pz.visit;iz.BOM=R9;iz.DOCUMENT=M9;iz.FLOW_END=P9;iz.SCALAR=T9;iz.isCollection=lz;iz.isScalar=dz;iz.prettyToken=cz;iz.tokenType=az});var K9=R((GQ)=>{var Y$=U2();function m($){switch($){case void 0:case" ":case`
117
- `:case"\r":case"\t":return!0;default:return!1}}var v8=new Set("0123456789ABCDEFabcdef"),HQ=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),X2=new Set(",[]{}"),qQ=new Set(` ,[]{}
118
- \r `),F9=($)=>!$||qQ.has($);class m8{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($,Z=!1){if($){if(typeof $!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+$:$,this.lineEndPos=null}this.atEnd=!Z;let U=this.next??"stream";while(U&&(Z||this.hasChars(1)))U=yield*this.parseNext(U)}atLineEnd(){let $=this.pos,Z=this.buffer[$];while(Z===" "||Z==="\t")Z=this.buffer[++$];if(!Z||Z==="#"||Z===`
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($[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}_Q.createScalarToken=A2.createScalarToken;_Q.resolveAsScalar=A2.resolveAsScalar;_Q.setScalarValue=A2.setScalarValue;_Q.stringify=UQ.stringify;_Q.visit=zQ.visit;_Q.BOM=N2;_Q.DOCUMENT=w2;_Q.FLOW_END=b2;_Q.SCALAR=C2;_Q.isCollection=QQ;_Q.isScalar=JQ;_Q.prettyToken=HQ;_Q.tokenType=qQ});var S2=D((AQ)=>{var W$=H1();function p($){switch($){case void 0:case" ":case`
117
+ `:case"\r":case"\t":return!0;default:return!1}}var o9=new Set("0123456789ABCDEFabcdef"),TQ=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),q1=new Set(",[]{}"),KQ=new Set(` ,[]{}
118
+ \r `),j2=($)=>!$||KQ.has($);class t9{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($,Z=!1){if($){if(typeof $!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+$:$,this.lineEndPos=null}this.atEnd=!Z;let X=this.next??"stream";while(X&&(Z||this.hasChars(1)))X=yield*this.parseNext(X)}atLineEnd(){let $=this.pos,Z=this.buffer[$];while(Z===" "||Z==="\t")Z=this.buffer[++$];if(!Z||Z==="#"||Z===`
119
119
  `)return!0;if(Z==="\r")return this.buffer[$+1]===`
120
- `;return!1}charAt($){return this.buffer[this.pos+$]}continueScalar($){let Z=this.buffer[$];if(this.indentNext>0){let U=0;while(Z===" ")Z=this.buffer[++U+$];if(Z==="\r"){let X=this.buffer[U+$+1];if(X===`
121
- `||!X&&!this.atEnd)return $+U+1}return Z===`
122
- `||U>=this.indentNext||!Z&&!this.atEnd?$+U:-1}if(Z==="-"||Z==="."){let U=this.buffer.substr($,3);if((U==="---"||U==="...")&&m(this.buffer[$+3]))return-1}return $}getLine(){let $=this.lineEndPos;if(typeof $!=="number"||$!==-1&&$<this.pos)$=this.buffer.indexOf(`
123
- `,this.pos),this.lineEndPos=$;if($===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[$-1]==="\r")$-=1;return this.buffer.substring(this.pos,$)}hasChars($){return this.pos+$<=this.buffer.length}setNext($){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=$,null}peek($){return this.buffer.substr(this.pos,$)}*parseNext($){switch($){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 $=this.getLine();if($===null)return this.setNext("stream");if($[0]===Y$.BOM)yield*this.pushCount(1),$=$.substring(1);if($[0]==="%"){let Z=$.length,U=$.indexOf("#");while(U!==-1){let z=$[U-1];if(z===" "||z==="\t"){Z=U-1;break}else U=$.indexOf("#",U+1)}while(!0){let z=$[Z-1];if(z===" "||z==="\t")Z-=1;else break}let X=(yield*this.pushCount(Z))+(yield*this.pushSpaces(!0));return yield*this.pushCount($.length-X),this.pushNewline(),"stream"}if(this.atLineEnd()){let Z=yield*this.pushSpaces(!0);return yield*this.pushCount($.length-Z),yield*this.pushNewline(),"stream"}return yield Y$.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let $=this.charAt(0);if(!$&&!this.atEnd)return this.setNext("line-start");if($==="-"||$==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let Z=this.peek(3);if((Z==="---"||Z==="...")&&m(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,Z==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!m(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[$,Z]=this.peek(2);if(!Z&&!this.atEnd)return this.setNext("block-start");if(($==="-"||$==="?"||$===":")&&m(Z)){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 $=this.getLine();if($===null)return this.setNext("doc");let Z=yield*this.pushIndicators();switch($[Z]){case"#":yield*this.pushCount($.length-Z);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(F9),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return Z+=yield*this.parseBlockScalarHeader(),Z+=yield*this.pushSpaces(!0),yield*this.pushCount($.length-Z),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let $,Z,U=-1;do{if($=yield*this.pushNewline(),$>0)Z=yield*this.pushSpaces(!1),this.indentValue=U=Z;else Z=0;Z+=yield*this.pushSpaces(!0)}while($+Z>0);let X=this.getLine();if(X===null)return this.setNext("flow");if(U!==-1&&U<this.indentNext&&X[0]!=="#"||U===0&&(X.startsWith("---")||X.startsWith("..."))&&m(X[3])){if(!(U===this.indentNext-1&&this.flowLevel===1&&(X[0]==="]"||X[0]==="}")))return this.flowLevel=0,yield Y$.FLOW_END,yield*this.parseLineStart()}let z=0;while(X[z]===",")z+=yield*this.pushCount(1),z+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(z+=yield*this.pushIndicators(),X[z]){case void 0:return"flow";case"#":return yield*this.pushCount(X.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(F9),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let Q=this.charAt(1);if(this.flowKey||m(Q)||Q===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let $=this.charAt(0),Z=this.buffer.indexOf($,this.pos+1);if($==="'")while(Z!==-1&&this.buffer[Z+1]==="'")Z=this.buffer.indexOf("'",Z+2);else while(Z!==-1){let z=0;while(this.buffer[Z-1-z]==="\\")z+=1;if(z%2===0)break;Z=this.buffer.indexOf('"',Z+1)}let U=this.buffer.substring(0,Z),X=U.indexOf(`
124
- `,this.pos);if(X!==-1){while(X!==-1){let z=this.continueScalar(X+1);if(z===-1)break;X=U.indexOf(`
125
- `,z)}if(X!==-1)Z=X-(U[X-1]==="\r"?2:1)}if(Z===-1){if(!this.atEnd)return this.setNext("quoted-scalar");Z=this.buffer.length}return yield*this.pushToIndex(Z+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let $=this.pos;while(!0){let Z=this.buffer[++$];if(Z==="+")this.blockScalarKeep=!0;else if(Z>"0"&&Z<="9")this.blockScalarIndent=Number(Z)-1;else if(Z!=="-")break}return yield*this.pushUntil((Z)=>m(Z)||Z==="#")}*parseBlockScalar(){let $=this.pos-1,Z=0,U;$:for(let z=this.pos;U=this.buffer[z];++z)switch(U){case" ":Z+=1;break;case`
120
+ `;return!1}charAt($){return this.buffer[this.pos+$]}continueScalar($){let Z=this.buffer[$];if(this.indentNext>0){let X=0;while(Z===" ")Z=this.buffer[++X+$];if(Z==="\r"){let U=this.buffer[X+$+1];if(U===`
121
+ `||!U&&!this.atEnd)return $+X+1}return Z===`
122
+ `||X>=this.indentNext||!Z&&!this.atEnd?$+X:-1}if(Z==="-"||Z==="."){let X=this.buffer.substr($,3);if((X==="---"||X==="...")&&p(this.buffer[$+3]))return-1}return $}getLine(){let $=this.lineEndPos;if(typeof $!=="number"||$!==-1&&$<this.pos)$=this.buffer.indexOf(`
123
+ `,this.pos),this.lineEndPos=$;if($===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[$-1]==="\r")$-=1;return this.buffer.substring(this.pos,$)}hasChars($){return this.pos+$<=this.buffer.length}setNext($){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=$,null}peek($){return this.buffer.substr(this.pos,$)}*parseNext($){switch($){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 $=this.getLine();if($===null)return this.setNext("stream");if($[0]===W$.BOM)yield*this.pushCount(1),$=$.substring(1);if($[0]==="%"){let Z=$.length,X=$.indexOf("#");while(X!==-1){let z=$[X-1];if(z===" "||z==="\t"){Z=X-1;break}else X=$.indexOf("#",X+1)}while(!0){let z=$[Z-1];if(z===" "||z==="\t")Z-=1;else break}let U=(yield*this.pushCount(Z))+(yield*this.pushSpaces(!0));return yield*this.pushCount($.length-U),this.pushNewline(),"stream"}if(this.atLineEnd()){let Z=yield*this.pushSpaces(!0);return yield*this.pushCount($.length-Z),yield*this.pushNewline(),"stream"}return yield W$.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let $=this.charAt(0);if(!$&&!this.atEnd)return this.setNext("line-start");if($==="-"||$==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let Z=this.peek(3);if((Z==="---"||Z==="...")&&p(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,Z==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!p(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[$,Z]=this.peek(2);if(!Z&&!this.atEnd)return this.setNext("block-start");if(($==="-"||$==="?"||$===":")&&p(Z)){let X=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=X,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let $=this.getLine();if($===null)return this.setNext("doc");let Z=yield*this.pushIndicators();switch($[Z]){case"#":yield*this.pushCount($.length-Z);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(j2),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return Z+=yield*this.parseBlockScalarHeader(),Z+=yield*this.pushSpaces(!0),yield*this.pushCount($.length-Z),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let $,Z,X=-1;do{if($=yield*this.pushNewline(),$>0)Z=yield*this.pushSpaces(!1),this.indentValue=X=Z;else Z=0;Z+=yield*this.pushSpaces(!0)}while($+Z>0);let U=this.getLine();if(U===null)return this.setNext("flow");if(X!==-1&&X<this.indentNext&&U[0]!=="#"||X===0&&(U.startsWith("---")||U.startsWith("..."))&&p(U[3])){if(!(X===this.indentNext-1&&this.flowLevel===1&&(U[0]==="]"||U[0]==="}")))return this.flowLevel=0,yield W$.FLOW_END,yield*this.parseLineStart()}let z=0;while(U[z]===",")z+=yield*this.pushCount(1),z+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(z+=yield*this.pushIndicators(),U[z]){case void 0:return"flow";case"#":return yield*this.pushCount(U.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(j2),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let Q=this.charAt(1);if(this.flowKey||p(Q)||Q===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let $=this.charAt(0),Z=this.buffer.indexOf($,this.pos+1);if($==="'")while(Z!==-1&&this.buffer[Z+1]==="'")Z=this.buffer.indexOf("'",Z+2);else while(Z!==-1){let z=0;while(this.buffer[Z-1-z]==="\\")z+=1;if(z%2===0)break;Z=this.buffer.indexOf('"',Z+1)}let X=this.buffer.substring(0,Z),U=X.indexOf(`
124
+ `,this.pos);if(U!==-1){while(U!==-1){let z=this.continueScalar(U+1);if(z===-1)break;U=X.indexOf(`
125
+ `,z)}if(U!==-1)Z=U-(X[U-1]==="\r"?2:1)}if(Z===-1){if(!this.atEnd)return this.setNext("quoted-scalar");Z=this.buffer.length}return yield*this.pushToIndex(Z+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let $=this.pos;while(!0){let Z=this.buffer[++$];if(Z==="+")this.blockScalarKeep=!0;else if(Z>"0"&&Z<="9")this.blockScalarIndent=Number(Z)-1;else if(Z!=="-")break}return yield*this.pushUntil((Z)=>p(Z)||Z==="#")}*parseBlockScalar(){let $=this.pos-1,Z=0,X;$:for(let z=this.pos;X=this.buffer[z];++z)switch(X){case" ":Z+=1;break;case`
126
126
  `:$=z,Z=0;break;case"\r":{let Q=this.buffer[z+1];if(!Q&&!this.atEnd)return this.setNext("block-scalar");if(Q===`
127
- `)break}default:break $}if(!U&&!this.atEnd)return this.setNext("block-scalar");if(Z>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=Z;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let z=this.continueScalar($+1);if(z===-1)break;$=this.buffer.indexOf(`
128
- `,z)}while($!==-1);if($===-1){if(!this.atEnd)return this.setNext("block-scalar");$=this.buffer.length}}let X=$+1;U=this.buffer[X];while(U===" ")U=this.buffer[++X];if(U==="\t"){while(U==="\t"||U===" "||U==="\r"||U===`
129
- `)U=this.buffer[++X];$=X-1}else if(!this.blockScalarKeep)do{let z=$-1,Q=this.buffer[z];if(Q==="\r")Q=this.buffer[--z];let J=z;while(Q===" ")Q=this.buffer[--z];if(Q===`
130
- `&&z>=this.pos&&z+1+Z>J)$=z;else break}while(!0);return yield Y$.SCALAR,yield*this.pushToIndex($+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let $=this.flowLevel>0,Z=this.pos-1,U=this.pos-1,X;while(X=this.buffer[++U])if(X===":"){let z=this.buffer[U+1];if(m(z)||$&&X2.has(z))break;Z=U}else if(m(X)){let z=this.buffer[U+1];if(X==="\r")if(z===`
131
- `)U+=1,X=`
132
- `,z=this.buffer[U+1];else Z=U;if(z==="#"||$&&X2.has(z))break;if(X===`
133
- `){let Q=this.continueScalar(U+1);if(Q===-1)break;U=Math.max(U,Q-2)}}else{if($&&X2.has(X))break;Z=U}if(!X&&!this.atEnd)return this.setNext("plain-scalar");return yield Y$.SCALAR,yield*this.pushToIndex(Z+1,!0),$?"flow":"doc"}*pushCount($){if($>0)return yield this.buffer.substr(this.pos,$),this.pos+=$,$;return 0}*pushToIndex($,Z){let U=this.buffer.slice(this.pos,$);if(U)return yield U,this.pos+=U.length,U.length;else if(Z)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(F9))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let $=this.flowLevel>0,Z=this.charAt(1);if(m(Z)||$&&X2.has(Z)){if(!$)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 $=this.pos+2,Z=this.buffer[$];while(!m(Z)&&Z!==">")Z=this.buffer[++$];return yield*this.pushToIndex(Z===">"?$+1:$,!1)}else{let $=this.pos+1,Z=this.buffer[$];while(Z)if(HQ.has(Z))Z=this.buffer[++$];else if(Z==="%"&&v8.has(this.buffer[$+1])&&v8.has(this.buffer[$+2]))Z=this.buffer[$+=3];else break;return yield*this.pushToIndex($,!1)}}*pushNewline(){let $=this.buffer[this.pos];if($===`
127
+ `)break}default:break $}if(!X&&!this.atEnd)return this.setNext("block-scalar");if(Z>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=Z;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let z=this.continueScalar($+1);if(z===-1)break;$=this.buffer.indexOf(`
128
+ `,z)}while($!==-1);if($===-1){if(!this.atEnd)return this.setNext("block-scalar");$=this.buffer.length}}let U=$+1;X=this.buffer[U];while(X===" ")X=this.buffer[++U];if(X==="\t"){while(X==="\t"||X===" "||X==="\r"||X===`
129
+ `)X=this.buffer[++U];$=U-1}else if(!this.blockScalarKeep)do{let z=$-1,Q=this.buffer[z];if(Q==="\r")Q=this.buffer[--z];let J=z;while(Q===" ")Q=this.buffer[--z];if(Q===`
130
+ `&&z>=this.pos&&z+1+Z>J)$=z;else break}while(!0);return yield W$.SCALAR,yield*this.pushToIndex($+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let $=this.flowLevel>0,Z=this.pos-1,X=this.pos-1,U;while(U=this.buffer[++X])if(U===":"){let z=this.buffer[X+1];if(p(z)||$&&q1.has(z))break;Z=X}else if(p(U)){let z=this.buffer[X+1];if(U==="\r")if(z===`
131
+ `)X+=1,U=`
132
+ `,z=this.buffer[X+1];else Z=X;if(z==="#"||$&&q1.has(z))break;if(U===`
133
+ `){let Q=this.continueScalar(X+1);if(Q===-1)break;X=Math.max(X,Q-2)}}else{if($&&q1.has(U))break;Z=X}if(!U&&!this.atEnd)return this.setNext("plain-scalar");return yield W$.SCALAR,yield*this.pushToIndex(Z+1,!0),$?"flow":"doc"}*pushCount($){if($>0)return yield this.buffer.substr(this.pos,$),this.pos+=$,$;return 0}*pushToIndex($,Z){let X=this.buffer.slice(this.pos,$);if(X)return yield X,this.pos+=X.length,X.length;else if(Z)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(j2))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let $=this.flowLevel>0,Z=this.charAt(1);if(p(Z)||$&&q1.has(Z)){if(!$)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 $=this.pos+2,Z=this.buffer[$];while(!p(Z)&&Z!==">")Z=this.buffer[++$];return yield*this.pushToIndex(Z===">"?$+1:$,!1)}else{let $=this.pos+1,Z=this.buffer[$];while(Z)if(TQ.has(Z))Z=this.buffer[++$];else if(Z==="%"&&o9.has(this.buffer[$+1])&&o9.has(this.buffer[$+2]))Z=this.buffer[$+=3];else break;return yield*this.pushToIndex($,!1)}}*pushNewline(){let $=this.buffer[this.pos];if($===`
134
134
  `)return yield*this.pushCount(1);else if($==="\r"&&this.charAt(1)===`
135
- `)return yield*this.pushCount(2);else return 0}*pushSpaces($){let Z=this.pos-1,U;do U=this.buffer[++Z];while(U===" "||$&&U==="\t");let X=Z-this.pos;if(X>0)yield this.buffer.substr(this.pos,X),this.pos=Z;return X}*pushUntil($){let Z=this.pos,U=this.buffer[Z];while(!$(U))U=this.buffer[++Z];return yield*this.pushToIndex(Z,!1)}}GQ.Lexer=m8});var A9=R((BQ)=>{class p8{constructor(){this.lineStarts=[],this.addNewLine=($)=>this.lineStarts.push($),this.linePos=($)=>{let Z=0,U=this.lineStarts.length;while(Z<U){let z=Z+U>>1;if(this.lineStarts[z]<$)Z=z+1;else U=z}if(this.lineStarts[Z]===$)return{line:Z+1,col:1};if(Z===0)return{line:0,col:$};let X=this.lineStarts[Z-1];return{line:Z,col:$-X+1}}}}BQ.LineCounter=p8});var N9=R((LQ)=>{var WQ=h0("process"),l8=U2(),OQ=K9();function Q0($,Z){for(let U=0;U<$.length;++U)if($[U].type===Z)return!0;return!1}function d8($){for(let Z=0;Z<$.length;++Z)switch($[Z].type){case"space":case"comment":case"newline":break;default:return Z}return-1}function a8($){switch($?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function z2($){switch($.type){case"document":return $.start;case"block-map":{let Z=$.items[$.items.length-1];return Z.sep??Z.start}case"block-seq":return $.items[$.items.length-1].start;default:return[]}}function j0($){if($.length===0)return[];let Z=$.length;$:while(--Z>=0)switch($[Z].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break $}while($[++Z]?.type==="space");return $.splice(Z,$.length)}function c8($){if($.start.type==="flow-seq-start"){for(let Z of $.items)if(Z.sep&&!Z.value&&!Q0(Z.start,"explicit-key-ind")&&!Q0(Z.sep,"map-value-ind")){if(Z.key)Z.value=Z.key;if(delete Z.key,a8(Z.value))if(Z.value.end)Array.prototype.push.apply(Z.value.end,Z.sep);else Z.value.end=Z.sep;else Array.prototype.push.apply(Z.start,Z.sep);delete Z.sep}}}class i8{constructor($){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new OQ.Lexer,this.onNewLine=$}*parse($,Z=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let U of this.lexer.lex($,Z))yield*this.next(U);if(!Z)yield*this.end()}*next($){if(this.source=$,WQ.env.LOG_TOKENS)console.log("|",l8.prettyToken($));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=$.length;return}let Z=l8.tokenType($);if(!Z){let U=`Not a YAML token: ${$}`;yield*this.pop({type:"error",offset:this.offset,message:U,source:$}),this.offset+=$.length}else if(Z==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=Z,yield*this.step(),Z){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+$.length);break;case"space":if(this.atNewLine&&$[0]===" ")this.indent+=$.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=$.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=$.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 $=this.peek(1);if(this.type==="doc-end"&&$?.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(!$)return yield*this.stream();switch($.type){case"document":return yield*this.document($);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar($);case"block-scalar":return yield*this.blockScalar($);case"block-map":return yield*this.blockMap($);case"block-seq":return yield*this.blockSequence($);case"flow-collection":return yield*this.flowCollection($);case"doc-end":return yield*this.documentEnd($)}yield*this.pop()}peek($){return this.stack[this.stack.length-$]}*pop($){let Z=$??this.stack.pop();if(!Z)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield Z;else{let U=this.peek(1);if(Z.type==="block-scalar")Z.indent="indent"in U?U.indent:0;else if(Z.type==="flow-collection"&&U.type==="document")Z.indent=0;if(Z.type==="flow-collection")c8(Z);switch(U.type){case"document":U.value=Z;break;case"block-scalar":U.props.push(Z);break;case"block-map":{let X=U.items[U.items.length-1];if(X.value){U.items.push({start:[],key:Z,sep:[]}),this.onKeyLine=!0;return}else if(X.sep)X.value=Z;else{Object.assign(X,{key:Z,sep:[]}),this.onKeyLine=!X.explicitKey;return}break}case"block-seq":{let X=U.items[U.items.length-1];if(X.value)U.items.push({start:[],value:Z});else X.value=Z;break}case"flow-collection":{let X=U.items[U.items.length-1];if(!X||X.value)U.items.push({start:[],key:Z,sep:[]});else if(X.sep)X.value=Z;else Object.assign(X,{key:Z,sep:[]});return}default:yield*this.pop(),yield*this.pop(Z)}if((U.type==="document"||U.type==="block-map"||U.type==="block-seq")&&(Z.type==="block-map"||Z.type==="block-seq")){let X=Z.items[Z.items.length-1];if(X&&!X.sep&&!X.value&&X.start.length>0&&d8(X.start)===-1&&(Z.indent===0||X.start.every((z)=>z.type!=="comment"||z.indent<Z.indent))){if(U.type==="document")U.end=X.start;else U.items.push({start:X.start});Z.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 $={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")$.start.push(this.sourceToken);this.stack.push($);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document($){if($.value)return yield*this.lineEnd($);switch(this.type){case"doc-start":{if(d8($.start)!==-1)yield*this.pop(),yield*this.step();else $.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":$.start.push(this.sourceToken);return}let Z=this.startBlockValue($);if(Z)this.stack.push(Z);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar($){if(this.type==="map-value-ind"){let Z=z2(this.peek(2)),U=j0(Z),X;if($.end)X=$.end,X.push(this.sourceToken),delete $.end;else X=[this.sourceToken];let z={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:U,key:$,sep:X}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=z}else yield*this.lineEnd($)}*blockScalar($){switch(this.type){case"space":case"comment":case"newline":$.props.push(this.sourceToken);return;case"scalar":if($.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let Z=this.source.indexOf(`
135
+ `)return yield*this.pushCount(2);else return 0}*pushSpaces($){let Z=this.pos-1,X;do X=this.buffer[++Z];while(X===" "||$&&X==="\t");let U=Z-this.pos;if(U>0)yield this.buffer.substr(this.pos,U),this.pos=Z;return U}*pushUntil($){let Z=this.pos,X=this.buffer[Z];while(!$(X))X=this.buffer[++Z];return yield*this.pushToIndex(Z,!1)}}AQ.Lexer=t9});var E2=D((wQ)=>{class e9{constructor(){this.lineStarts=[],this.addNewLine=($)=>this.lineStarts.push($),this.linePos=($)=>{let Z=0,X=this.lineStarts.length;while(Z<X){let z=Z+X>>1;if(this.lineStarts[z]<$)Z=z+1;else X=z}if(this.lineStarts[Z]===$)return{line:Z+1,col:1};if(Z===0)return{line:0,col:$};let U=this.lineStarts[Z-1];return{line:Z,col:$-U+1}}}}wQ.LineCounter=e9});var g2=D((SQ)=>{var CQ=p0("process"),$3=H1(),jQ=S2();function H0($,Z){for(let X=0;X<$.length;++X)if($[X].type===Z)return!0;return!1}function Z3($){for(let Z=0;Z<$.length;++Z)switch($[Z].type){case"space":case"comment":case"newline":break;default:return Z}return-1}function U3($){switch($?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function _1($){switch($.type){case"document":return $.start;case"block-map":{let Z=$.items[$.items.length-1];return Z.sep??Z.start}case"block-seq":return $.items[$.items.length-1].start;default:return[]}}function y0($){if($.length===0)return[];let Z=$.length;$:while(--Z>=0)switch($[Z].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break $}while($[++Z]?.type==="space");return $.splice(Z,$.length)}function X3($){if($.start.type==="flow-seq-start"){for(let Z of $.items)if(Z.sep&&!Z.value&&!H0(Z.start,"explicit-key-ind")&&!H0(Z.sep,"map-value-ind")){if(Z.key)Z.value=Z.key;if(delete Z.key,U3(Z.value))if(Z.value.end)Array.prototype.push.apply(Z.value.end,Z.sep);else Z.value.end=Z.sep;else Array.prototype.push.apply(Z.start,Z.sep);delete Z.sep}}}class z3{constructor($){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new jQ.Lexer,this.onNewLine=$}*parse($,Z=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let X of this.lexer.lex($,Z))yield*this.next(X);if(!Z)yield*this.end()}*next($){if(this.source=$,CQ.env.LOG_TOKENS)console.log("|",$3.prettyToken($));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=$.length;return}let Z=$3.tokenType($);if(!Z){let X=`Not a YAML token: ${$}`;yield*this.pop({type:"error",offset:this.offset,message:X,source:$}),this.offset+=$.length}else if(Z==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=Z,yield*this.step(),Z){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+$.length);break;case"space":if(this.atNewLine&&$[0]===" ")this.indent+=$.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=$.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=$.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 $=this.peek(1);if(this.type==="doc-end"&&$?.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(!$)return yield*this.stream();switch($.type){case"document":return yield*this.document($);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar($);case"block-scalar":return yield*this.blockScalar($);case"block-map":return yield*this.blockMap($);case"block-seq":return yield*this.blockSequence($);case"flow-collection":return yield*this.flowCollection($);case"doc-end":return yield*this.documentEnd($)}yield*this.pop()}peek($){return this.stack[this.stack.length-$]}*pop($){let Z=$??this.stack.pop();if(!Z)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield Z;else{let X=this.peek(1);if(Z.type==="block-scalar")Z.indent="indent"in X?X.indent:0;else if(Z.type==="flow-collection"&&X.type==="document")Z.indent=0;if(Z.type==="flow-collection")X3(Z);switch(X.type){case"document":X.value=Z;break;case"block-scalar":X.props.push(Z);break;case"block-map":{let U=X.items[X.items.length-1];if(U.value){X.items.push({start:[],key:Z,sep:[]}),this.onKeyLine=!0;return}else if(U.sep)U.value=Z;else{Object.assign(U,{key:Z,sep:[]}),this.onKeyLine=!U.explicitKey;return}break}case"block-seq":{let U=X.items[X.items.length-1];if(U.value)X.items.push({start:[],value:Z});else U.value=Z;break}case"flow-collection":{let U=X.items[X.items.length-1];if(!U||U.value)X.items.push({start:[],key:Z,sep:[]});else if(U.sep)U.value=Z;else Object.assign(U,{key:Z,sep:[]});return}default:yield*this.pop(),yield*this.pop(Z)}if((X.type==="document"||X.type==="block-map"||X.type==="block-seq")&&(Z.type==="block-map"||Z.type==="block-seq")){let U=Z.items[Z.items.length-1];if(U&&!U.sep&&!U.value&&U.start.length>0&&Z3(U.start)===-1&&(Z.indent===0||U.start.every((z)=>z.type!=="comment"||z.indent<Z.indent))){if(X.type==="document")X.end=U.start;else X.items.push({start:U.start});Z.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 $={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")$.start.push(this.sourceToken);this.stack.push($);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document($){if($.value)return yield*this.lineEnd($);switch(this.type){case"doc-start":{if(Z3($.start)!==-1)yield*this.pop(),yield*this.step();else $.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":$.start.push(this.sourceToken);return}let Z=this.startBlockValue($);if(Z)this.stack.push(Z);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar($){if(this.type==="map-value-ind"){let Z=_1(this.peek(2)),X=y0(Z),U;if($.end)U=$.end,U.push(this.sourceToken),delete $.end;else U=[this.sourceToken];let z={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:X,key:$,sep:U}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=z}else yield*this.lineEnd($)}*blockScalar($){switch(this.type){case"space":case"comment":case"newline":$.props.push(this.sourceToken);return;case"scalar":if($.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let Z=this.source.indexOf(`
136
136
  `)+1;while(Z!==0)this.onNewLine(this.offset+Z),Z=this.source.indexOf(`
137
- `,Z)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,Z.value){let U="end"in Z.value?Z.value.end:void 0;if((Array.isArray(U)?U[U.length-1]:void 0)?.type==="comment")U?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else{if(this.atIndentedComment(Z.start,$.indent)){let X=$.items[$.items.length-2]?.value?.end;if(Array.isArray(X)){Array.prototype.push.apply(X,Z.start),X.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return}if(this.indent>=$.indent){let U=!this.onKeyLine&&this.indent===$.indent,X=U&&(Z.sep||Z.explicitKey)&&this.type!=="seq-item-ind",z=[];if(X&&Z.sep&&!Z.value){let Q=[];for(let J=0;J<Z.sep.length;++J){let H=Z.sep[J];switch(H.type){case"newline":Q.push(J);break;case"space":break;case"comment":if(H.indent>$.indent)Q.length=0;break;default:Q.length=0}}if(Q.length>=2)z=Z.sep.splice(Q[1])}switch(this.type){case"anchor":case"tag":if(X||Z.value)z.push(this.sourceToken),$.items.push({start:z}),this.onKeyLine=!0;else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"explicit-key-ind":if(!Z.sep&&!Z.explicitKey)Z.start.push(this.sourceToken),Z.explicitKey=!0;else if(X||Z.value)z.push(this.sourceToken),$.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(Z.explicitKey)if(!Z.sep)if(Q0(Z.start,"newline"))Object.assign(Z,{key:null,sep:[this.sourceToken]});else{let Q=j0(Z.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:null,sep:[this.sourceToken]}]})}else if(Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Q0(Z.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(a8(Z.key)&&!Q0(Z.sep,"newline")){let Q=j0(Z.start),J=Z.key,H=Z.sep;H.push(this.sourceToken),delete Z.key,delete Z.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:J,sep:H}]})}else if(z.length>0)Z.sep=Z.sep.concat(z,this.sourceToken);else Z.sep.push(this.sourceToken);else if(!Z.sep)Object.assign(Z,{key:null,sep:[this.sourceToken]});else if(Z.value||X)$.items.push({start:z,key:null,sep:[this.sourceToken]});else if(Q0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else Z.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Q=this.flowScalar(this.type);if(X||Z.value)$.items.push({start:z,key:Q,sep:[]}),this.onKeyLine=!0;else if(Z.sep)this.stack.push(Q);else Object.assign(Z,{key:Q,sep:[]}),this.onKeyLine=!0;return}default:{let Q=this.startBlockValue($);if(Q){if(Q.type==="block-seq"){if(!Z.explicitKey&&Z.sep&&!Q0(Z.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)$.items.push({start:z});this.stack.push(Q);return}}}}yield*this.pop(),yield*this.step()}*blockSequence($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(Z.value){let U="end"in Z.value?Z.value.end:void 0;if((Array.isArray(U)?U[U.length-1]:void 0)?.type==="comment")U?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(Z.start,$.indent)){let X=$.items[$.items.length-2]?.value?.end;if(Array.isArray(X)){Array.prototype.push.apply(X,Z.start),X.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return;case"anchor":case"tag":if(Z.value||this.indent<=$.indent)break;Z.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==$.indent)break;if(Z.value||Q0(Z.start,"seq-item-ind"))$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return}if(this.indent>$.indent){let U=this.startBlockValue($);if(U){this.stack.push(U);return}}yield*this.pop(),yield*this.step()}*flowCollection($){let Z=$.items[$.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($.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!Z||Z.sep)$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return;case"map-value-ind":if(!Z||Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Object.assign(Z,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!Z||Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let X=this.flowScalar(this.type);if(!Z||Z.value)$.items.push({start:[],key:X,sep:[]});else if(Z.sep)this.stack.push(X);else Object.assign(Z,{key:X,sep:[]});return}case"flow-map-end":case"flow-seq-end":$.end.push(this.sourceToken);return}let U=this.startBlockValue($);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===$.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 X=z2(U),z=j0(X);c8($);let Q=$.end.splice(1,$.end.length);Q.push(this.sourceToken);let J={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:z,key:$,sep:Q}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=J}else yield*this.lineEnd($)}}flowScalar($){if(this.onNewLine){let Z=this.source.indexOf(`
137
+ `,Z)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,Z.value){let X="end"in Z.value?Z.value.end:void 0;if((Array.isArray(X)?X[X.length-1]:void 0)?.type==="comment")X?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else{if(this.atIndentedComment(Z.start,$.indent)){let U=$.items[$.items.length-2]?.value?.end;if(Array.isArray(U)){Array.prototype.push.apply(U,Z.start),U.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return}if(this.indent>=$.indent){let X=!this.onKeyLine&&this.indent===$.indent,U=X&&(Z.sep||Z.explicitKey)&&this.type!=="seq-item-ind",z=[];if(U&&Z.sep&&!Z.value){let Q=[];for(let J=0;J<Z.sep.length;++J){let H=Z.sep[J];switch(H.type){case"newline":Q.push(J);break;case"space":break;case"comment":if(H.indent>$.indent)Q.length=0;break;default:Q.length=0}}if(Q.length>=2)z=Z.sep.splice(Q[1])}switch(this.type){case"anchor":case"tag":if(U||Z.value)z.push(this.sourceToken),$.items.push({start:z}),this.onKeyLine=!0;else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"explicit-key-ind":if(!Z.sep&&!Z.explicitKey)Z.start.push(this.sourceToken),Z.explicitKey=!0;else if(U||Z.value)z.push(this.sourceToken),$.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(Z.explicitKey)if(!Z.sep)if(H0(Z.start,"newline"))Object.assign(Z,{key:null,sep:[this.sourceToken]});else{let Q=y0(Z.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:null,sep:[this.sourceToken]}]})}else if(Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(H0(Z.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(U3(Z.key)&&!H0(Z.sep,"newline")){let Q=y0(Z.start),J=Z.key,H=Z.sep;H.push(this.sourceToken),delete Z.key,delete Z.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:J,sep:H}]})}else if(z.length>0)Z.sep=Z.sep.concat(z,this.sourceToken);else Z.sep.push(this.sourceToken);else if(!Z.sep)Object.assign(Z,{key:null,sep:[this.sourceToken]});else if(Z.value||U)$.items.push({start:z,key:null,sep:[this.sourceToken]});else if(H0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else Z.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Q=this.flowScalar(this.type);if(U||Z.value)$.items.push({start:z,key:Q,sep:[]}),this.onKeyLine=!0;else if(Z.sep)this.stack.push(Q);else Object.assign(Z,{key:Q,sep:[]}),this.onKeyLine=!0;return}default:{let Q=this.startBlockValue($);if(Q){if(Q.type==="block-seq"){if(!Z.explicitKey&&Z.sep&&!H0(Z.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(X)$.items.push({start:z});this.stack.push(Q);return}}}}yield*this.pop(),yield*this.step()}*blockSequence($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(Z.value){let X="end"in Z.value?Z.value.end:void 0;if((Array.isArray(X)?X[X.length-1]:void 0)?.type==="comment")X?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(Z.start,$.indent)){let U=$.items[$.items.length-2]?.value?.end;if(Array.isArray(U)){Array.prototype.push.apply(U,Z.start),U.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return;case"anchor":case"tag":if(Z.value||this.indent<=$.indent)break;Z.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==$.indent)break;if(Z.value||H0(Z.start,"seq-item-ind"))$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return}if(this.indent>$.indent){let X=this.startBlockValue($);if(X){this.stack.push(X);return}}yield*this.pop(),yield*this.step()}*flowCollection($){let Z=$.items[$.items.length-1];if(this.type==="flow-error-end"){let X;do yield*this.pop(),X=this.peek(1);while(X?.type==="flow-collection")}else if($.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!Z||Z.sep)$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return;case"map-value-ind":if(!Z||Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Object.assign(Z,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!Z||Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let U=this.flowScalar(this.type);if(!Z||Z.value)$.items.push({start:[],key:U,sep:[]});else if(Z.sep)this.stack.push(U);else Object.assign(Z,{key:U,sep:[]});return}case"flow-map-end":case"flow-seq-end":$.end.push(this.sourceToken);return}let X=this.startBlockValue($);if(X)this.stack.push(X);else yield*this.pop(),yield*this.step()}else{let X=this.peek(2);if(X.type==="block-map"&&(this.type==="map-value-ind"&&X.indent===$.indent||this.type==="newline"&&!X.items[X.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&X.type!=="flow-collection"){let U=_1(X),z=y0(U);X3($);let Q=$.end.splice(1,$.end.length);Q.push(this.sourceToken);let J={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:z,key:$,sep:Q}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=J}else yield*this.lineEnd($)}}flowScalar($){if(this.onNewLine){let Z=this.source.indexOf(`
138
138
  `)+1;while(Z!==0)this.onNewLine(this.offset+Z),Z=this.source.indexOf(`
139
- `,Z)+1}return{type:$,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue($){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 Z=z2($),U=j0(Z);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 Z=z2($),U=j0(Z);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:U,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment($,Z){if(this.type!=="comment")return!1;if(this.indent<=Z)return!1;return $.every((U)=>U.type==="newline"||U.type==="space")}*documentEnd($){if(this.type!=="doc-mode"){if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd($){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($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}LQ.Parser=i8});var t8=R((KQ)=>{var s8=L9(),DQ=Q$(),B$=J$(),IQ=A2(),RQ=b(),MQ=A9(),r8=N9();function n8($){let Z=$.prettyErrors!==!1;return{lineCounter:$.lineCounter||Z&&new MQ.LineCounter||null,prettyErrors:Z}}function PQ($,Z={}){let{lineCounter:U,prettyErrors:X}=n8(Z),z=new r8.Parser(U?.addNewLine),Q=new s8.Composer(Z),J=Array.from(Q.compose(z.parse($)));if(X&&U)for(let H of J)H.errors.forEach(B$.prettifyError($,U)),H.warnings.forEach(B$.prettifyError($,U));if(J.length>0)return J;return Object.assign([],{empty:!0},Q.streamInfo())}function o8($,Z={}){let{lineCounter:U,prettyErrors:X}=n8(Z),z=new r8.Parser(U?.addNewLine),Q=new s8.Composer(Z),J=null;for(let H of Q.compose(z.parse($),!0,$.length))if(!J)J=H;else if(J.options.logLevel!=="silent"){J.errors.push(new B$.YAMLParseError(H.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(X&&U)J.errors.forEach(B$.prettifyError($,U)),J.warnings.forEach(B$.prettifyError($,U));return J}function TQ($,Z,U){let X=void 0;if(typeof Z==="function")X=Z;else if(U===void 0&&Z&&typeof Z==="object")U=Z;let z=o8($,U);if(!z)return null;if(z.warnings.forEach((Q)=>IQ.warn(z.options.logLevel,Q)),z.errors.length>0)if(z.options.logLevel!=="silent")throw z.errors[0];else z.errors=[];return z.toJS(Object.assign({reviver:X},U))}function FQ($,Z,U){let X=null;if(typeof Z==="function"||Array.isArray(Z))X=Z;else if(U===void 0&&Z)U=Z;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($===void 0){let{keepUndefined:z}=U??Z??{};if(!z)return}if(RQ.isDocument($)&&!X)return $.toString(U);return new DQ.Document($,X,U).toString(U)}KQ.parse=TQ;KQ.parseAllDocuments=PQ;KQ.parseDocument=o8;KQ.stringify=FQ});var y=[{index:1,path:"project.name",label:"Name",description:"Project name",category:"project"},{index:2,path:"project.goal",label:"Goal",description:"Goal (use case)",category:"project"},{index:3,path:"project.main_language",label:"Language",description:"Primary language",category:"project"},{index:4,path:"human_context.who",label:"Who",description:"Who is this for?",category:"human"},{index:5,path:"human_context.what",label:"What",description:"What are they building",category:"human"},{index:6,path:"human_context.why",label:"Why",description:"Why does it exist",category:"human"},{index:7,path:"human_context.where",label:"Where",description:"Where does it run",category:"human"},{index:8,path:"human_context.when",label:"When",description:"When was it started / timeline",category:"human"},{index:9,path:"human_context.how",label:"How",description:"How is it built",category:"human"},{index:10,path:"stack.frontend",canonical:"stack.framework",label:"Framework",description:"Framework (React, Svelte, etc.)",category:"frontend"},{index:11,path:"stack.css_framework",canonical:"stack.css",label:"CSS",description:"CSS framework",category:"frontend"},{index:12,path:"stack.ui_library",label:"UI Library",description:"UI component library",category:"frontend"},{index:13,path:"stack.state_management",canonical:"stack.state",label:"State",description:"State management",category:"frontend"},{index:14,path:"stack.backend",label:"Backend",description:"Backend framework",category:"backend"},{index:15,path:"stack.api_type",canonical:"stack.api",label:"API",description:"API style (REST, GraphQL, etc.)",category:"backend"},{index:16,path:"stack.runtime",label:"Runtime",description:"Runtime (Node, Bun, Python, etc.)",category:"backend"},{index:17,path:"stack.database",canonical:"stack.db",label:"Database",description:"Database",category:"backend"},{index:18,path:"stack.connection",label:"Connection",description:"Connection method (Prisma, etc.)",category:"backend"},{index:19,path:"stack.hosting",label:"Hosting",description:"Hosting platform",category:"universal"},{index:20,path:"stack.build",label:"Build",description:"Build tool",category:"universal"},{index:21,path:"stack.cicd",label:"CI/CD",description:"CI/CD",category:"universal"},{index:22,path:"stack.monorepo_tool",label:"Monorepo",description:"Monorepo tool",category:"enterprise_infra"},{index:23,path:"stack.package_manager",canonical:"stack.pkg_manager",label:"Package Manager",description:"Package manager",category:"enterprise_infra"},{index:24,path:"stack.workspaces",label:"Workspaces",description:"Workspace configuration",category:"enterprise_infra"},{index:25,path:"monorepo.packages_count",label:"Packages",description:"Number of packages",category:"enterprise_infra"},{index:26,path:"monorepo.build_orchestrator",label:"Build Orchestrator",description:"Build orchestration tool",category:"enterprise_infra"},{index:27,path:"stack.admin",label:"Admin",description:"Admin panel",category:"enterprise_app"},{index:28,path:"stack.cache",label:"Cache",description:"Caching layer",category:"enterprise_app"},{index:29,path:"stack.search",label:"Search",description:"Search engine",category:"enterprise_app"},{index:30,path:"stack.storage",label:"Storage",description:"Object storage",category:"enterprise_app"},{index:31,path:"monorepo.versioning_strategy",label:"Versioning",description:"Version strategy",category:"enterprise_ops"},{index:32,path:"monorepo.shared_configs",label:"Shared Configs",description:"Shared configs",category:"enterprise_ops"},{index:33,path:"monorepo.remote_cache",label:"Remote Cache",description:"Remote build cache",category:"enterprise_ops"}],u0=new Map(y.flatMap(($)=>$.canonical?[[$.path,$],[$.canonical,$]]:[[$.path,$]])),Jq=new Map(y.filter(($)=>$.canonical).map(($)=>[$.canonical,$.path])),Hq=new Map(y.filter(($)=>$.canonical).map(($)=>[$.path,$.canonical]));function d9($,Z){let U=(z)=>{let Q=z.split("."),J=$;for(let H of Q)if(J&&typeof J==="object"&&H in J)J=J[H];else return;return J},X=U(Z.path);if(X!==void 0)return X;if(Z.canonical)return U(Z.canonical);return}function J6($){return y.filter((Z)=>Z.category===$)}var H6=y.filter(($)=>$.index<=21),q6=y,_$=new Set(["describe your project goal","development teams","cloud platform","null","none","unknown","n/a","not applicable"]);function H0($){if($===null||$===void 0||$==="")return!0;if(typeof $==="string")return _$.has($.toLowerCase().trim());if(Array.isArray($)&&$.length===0)return!0;if(typeof $==="object"&&Object.keys($).length===0)return!0;return!1}var I0={about:[],documentation:["project","human"],intent:["project","human"],encyclopedia:["project","human"],cli:["project","human","universal"],library:["project","human","universal"],sdk:["project","human","universal"],wasm:["project","human","universal"],html:["project","human","universal"],"server-card":["project","human","universal"],frontend:["project","frontend","human","universal"],website:["project","frontend","human","universal"],mobile:["project","frontend","human","universal"],extension:["project","frontend","human","universal"],mcp:["project","backend","human","universal"],backend:["project","backend","universal","human"],"data-science":["project","backend","human","universal"],fullstack:["project","frontend","backend","universal","human"],svelte:["project","frontend","backend","universal","human"],framework:["project","frontend","backend","universal","human"],"monorepo-root":["project","human","enterprise_infra","enterprise_app","enterprise_ops"],mcpaas:["project","backend","universal","human","enterprise_app","enterprise_ops"],saas:["project","frontend","backend","universal","human","enterprise_app"],enterprise:["project","frontend","backend","universal","human","enterprise_infra","enterprise_app","enterprise_ops"]};var B2=($)=>(Z)=>`\x1B[${$}m${Z}\x1B[0m`,D$=B2("1"),k0=B2("2"),Gq=B2("3"),v0={cyan:"#00D4D4",cyanDeep:"#0E8C8C",orange:"#FF6B35"},I$=($)=>`\x1B[38;2;0;212;212m${$}\x1B[0m`,V2=($)=>`\x1B[38;2;14;140;140m${$}\x1B[0m`,R0=($)=>`\x1B[38;5;208m${$}\x1B[0m`;var i=[{name:"TROPHY",indicator:`${R0("\uD83C\uDFC6")} ${R0("TROPHY")}`,threshold:100},{name:"GOLD",indicator:`${R0(D$("★"))} ${R0("GOLD")}`,threshold:99},{name:"SILVER",indicator:`${I$("◆")} ${I$("SILVER")}`,threshold:95},{name:"BRONZE",indicator:`${V2("◇")} ${V2("BRONZE")}`,threshold:85},{name:"GREEN",indicator:`${D$("●")} GREEN`,threshold:70},{name:"YELLOW",indicator:`${k0("●")} YELLOW`,threshold:55},{name:"RED",indicator:`${k0("○")} RED`,threshold:1},{name:"WHITE",indicator:`${k0("♡")}`,threshold:0}];function m0($){for(let Z of i)if($>=Z.threshold)return Z;return i[i.length-1]}function G6($){let Z=m0($),U=i.indexOf(Z);return U>0?i[U-1]:null}var L2={};z6(L2,{validate:()=>B6,sdkVersion:()=>_6,scoreFafb:()=>L6,scoreEnterprise:()=>Y6,score:()=>O2,fafbInfo:()=>O6,decompile:()=>W6,compile:()=>V6});var W2=null;function o(){if(W2)return W2;try{let $=h0("faf-scoring-kernel");return W2=$,$}catch{throw Error(`faf-scoring-kernel not installed.
139
+ `,Z)+1}return{type:$,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue($){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 Z=_1($),X=y0(Z);return X.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let Z=_1($),X=y0(Z);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment($,Z){if(this.type!=="comment")return!1;if(this.indent<=Z)return!1;return $.every((X)=>X.type==="newline"||X.type==="space")}*documentEnd($){if(this.type!=="doc-mode"){if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd($){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($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}SQ.Parser=z3});var _3=D((vQ)=>{var Q3=P2(),gQ=G$(),L$=Y$(),yQ=E1(),fQ=b(),xQ=E2(),J3=g2();function H3($){let Z=$.prettyErrors!==!1;return{lineCounter:$.lineCounter||Z&&new xQ.LineCounter||null,prettyErrors:Z}}function hQ($,Z={}){let{lineCounter:X,prettyErrors:U}=H3(Z),z=new J3.Parser(X?.addNewLine),Q=new Q3.Composer(Z),J=Array.from(Q.compose(z.parse($)));if(U&&X)for(let H of J)H.errors.forEach(L$.prettifyError($,X)),H.warnings.forEach(L$.prettifyError($,X));if(J.length>0)return J;return Object.assign([],{empty:!0},Q.streamInfo())}function q3($,Z={}){let{lineCounter:X,prettyErrors:U}=H3(Z),z=new J3.Parser(X?.addNewLine),Q=new Q3.Composer(Z),J=null;for(let H of Q.compose(z.parse($),!0,$.length))if(!J)J=H;else if(J.options.logLevel!=="silent"){J.errors.push(new L$.YAMLParseError(H.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(U&&X)J.errors.forEach(L$.prettifyError($,X)),J.warnings.forEach(L$.prettifyError($,X));return J}function uQ($,Z,X){let U=void 0;if(typeof Z==="function")U=Z;else if(X===void 0&&Z&&typeof Z==="object")X=Z;let z=q3($,X);if(!z)return null;if(z.warnings.forEach((Q)=>yQ.warn(z.options.logLevel,Q)),z.errors.length>0)if(z.options.logLevel!=="silent")throw z.errors[0];else z.errors=[];return z.toJS(Object.assign({reviver:U},X))}function kQ($,Z,X){let U=null;if(typeof Z==="function"||Array.isArray(Z))U=Z;else if(X===void 0&&Z)X=Z;if(typeof X==="string")X=X.length;if(typeof X==="number"){let z=Math.round(X);X=z<1?void 0:z>8?{indent:8}:{indent:z}}if($===void 0){let{keepUndefined:z}=X??Z??{};if(!z)return}if(fQ.isDocument($)&&!U)return $.toString(X);return new gQ.Document($,U,X).toString(X)}vQ.parse=uQ;vQ.parseAllDocuments=hQ;vQ.parseDocument=q3;vQ.stringify=kQ});var f=[{index:1,path:"project.name",label:"Name",description:"Project name",category:"project"},{index:2,path:"project.goal",label:"Goal",description:"Goal (use case)",category:"project"},{index:3,path:"project.main_language",label:"Language",description:"Primary language",category:"project"},{index:4,path:"human_context.who",label:"Who",description:"Who is this for?",category:"human"},{index:5,path:"human_context.what",label:"What",description:"What are they building",category:"human"},{index:6,path:"human_context.why",label:"Why",description:"Why does it exist",category:"human"},{index:7,path:"human_context.where",label:"Where",description:"Where does it run",category:"human"},{index:8,path:"human_context.when",label:"When",description:"When was it started / timeline",category:"human"},{index:9,path:"human_context.how",label:"How",description:"How is it built",category:"human"},{index:10,path:"stack.frontend",canonical:"stack.framework",label:"Framework",description:"Framework (React, Svelte, etc.)",category:"frontend"},{index:11,path:"stack.css_framework",canonical:"stack.css",label:"CSS",description:"CSS framework",category:"frontend"},{index:12,path:"stack.ui_library",label:"UI Library",description:"UI component library",category:"frontend"},{index:13,path:"stack.state_management",canonical:"stack.state",label:"State",description:"State management",category:"frontend"},{index:14,path:"stack.backend",label:"Backend",description:"Backend framework",category:"backend"},{index:15,path:"stack.api_type",canonical:"stack.api",label:"API",description:"API style (REST, GraphQL, etc.)",category:"backend"},{index:16,path:"stack.runtime",label:"Runtime",description:"Runtime (Node, Bun, Python, etc.)",category:"backend"},{index:17,path:"stack.database",canonical:"stack.db",label:"Database",description:"Database",category:"backend"},{index:18,path:"stack.connection",label:"Connection",description:"Connection method (Prisma, etc.)",category:"backend"},{index:19,path:"stack.hosting",label:"Hosting",description:"Hosting platform",category:"universal"},{index:20,path:"stack.build",label:"Build",description:"Build tool",category:"universal"},{index:21,path:"stack.cicd",label:"CI/CD",description:"CI/CD",category:"universal"},{index:22,path:"stack.monorepo_tool",label:"Monorepo",description:"Monorepo tool",category:"enterprise_infra"},{index:23,path:"stack.package_manager",canonical:"stack.pkg_manager",label:"Package Manager",description:"Package manager",category:"enterprise_infra"},{index:24,path:"stack.workspaces",label:"Workspaces",description:"Workspace configuration",category:"enterprise_infra"},{index:25,path:"monorepo.packages_count",label:"Packages",description:"Number of packages",category:"enterprise_infra"},{index:26,path:"monorepo.build_orchestrator",label:"Build Orchestrator",description:"Build orchestration tool",category:"enterprise_infra"},{index:27,path:"stack.admin",label:"Admin",description:"Admin panel",category:"enterprise_app"},{index:28,path:"stack.cache",label:"Cache",description:"Caching layer",category:"enterprise_app"},{index:29,path:"stack.search",label:"Search",description:"Search engine",category:"enterprise_app"},{index:30,path:"stack.storage",label:"Storage",description:"Object storage",category:"enterprise_app"},{index:31,path:"monorepo.versioning_strategy",label:"Versioning",description:"Version strategy",category:"enterprise_ops"},{index:32,path:"monorepo.shared_configs",label:"Shared Configs",description:"Shared configs",category:"enterprise_ops"},{index:33,path:"monorepo.remote_cache",label:"Remote Cache",description:"Remote build cache",category:"enterprise_ops"}],l0=new Map(f.flatMap(($)=>$.canonical?[[$.path,$],[$.canonical,$]]:[[$.path,$]])),fq=new Map(f.filter(($)=>$.canonical).map(($)=>[$.canonical,$.path])),xq=new Map(f.filter(($)=>$.canonical).map(($)=>[$.path,$.canonical]));function Z8($,Z){let X=(z)=>{let Q=z.split("."),J=$;for(let H of Q)if(J&&typeof J==="object"&&H in J)J=J[H];else return;return J},U=X(Z.path);if(U!==void 0)return U;if(Z.canonical)return X(Z.canonical);return}function P6($){return f.filter((Z)=>Z.category===$)}var T6=f.filter(($)=>$.index<=21),K6=f,M$=new Set(["describe your project goal","development teams","cloud platform","null","none","unknown","n/a","not applicable"]);function G0($){if($===null||$===void 0||$==="")return!0;if(typeof $==="string")return M$.has($.toLowerCase().trim());if(Array.isArray($)&&$.length===0)return!0;if(typeof $==="object"&&Object.keys($).length===0)return!0;return!1}var P0={about:[],documentation:["project","human"],intent:["project","human"],encyclopedia:["project","human"],cli:["project","human","universal"],library:["project","human","universal"],sdk:["project","human","universal"],wasm:["project","human","universal"],html:["project","human","universal"],"server-card":["project","human","universal"],frontend:["project","frontend","human","universal"],website:["project","frontend","human","universal"],mobile:["project","frontend","human","universal"],extension:["project","frontend","human","universal"],mcp:["project","backend","human","universal"],backend:["project","backend","universal","human"],"data-science":["project","backend","human","universal"],fullstack:["project","frontend","backend","universal","human"],svelte:["project","frontend","backend","universal","human"],framework:["project","frontend","backend","universal","human"],"monorepo-root":["project","human","enterprise_infra","enterprise_app","enterprise_ops"],mcpaas:["project","backend","universal","human","enterprise_app","enterprise_ops"],saas:["project","frontend","backend","universal","human","enterprise_app"],enterprise:["project","frontend","backend","universal","human","enterprise_infra","enterprise_app","enterprise_ops"]};var I1=($)=>(Z)=>`\x1B[${$}m${Z}\x1B[0m`,P$=I1("1"),d0=I1("2"),uq=I1("3"),c0={cyan:"#00D4D4",cyanDeep:"#0E8C8C",orange:"#FF6B35"},T$=($)=>`\x1B[38;2;0;212;212m${$}\x1B[0m`,D1=($)=>`\x1B[38;2;14;140;140m${$}\x1B[0m`,T0=($)=>`\x1B[38;5;208m${$}\x1B[0m`;var a=[{name:"TROPHY",indicator:`${T0("✪")} ${T0("TROPHY")}`,threshold:100},{name:"GOLD",indicator:`${T0(P$("★"))} ${T0("GOLD")}`,threshold:99},{name:"SILVER",indicator:`${T$("◆")} ${T$("SILVER")}`,threshold:95},{name:"BRONZE",indicator:`${D1("◇")} ${D1("BRONZE")}`,threshold:85},{name:"GREEN",indicator:`${P$("●")} GREEN`,threshold:70},{name:"YELLOW",indicator:`${d0("●")} YELLOW`,threshold:55},{name:"RED",indicator:`${d0("○")} RED`,threshold:1},{name:"WHITE",indicator:`${d0("♡")}`,threshold:0}];function i0($){for(let Z of a)if($>=Z.threshold)return Z;return a[a.length-1]}function A6($){let Z=i0($),X=a.indexOf(Z);return X>0?a[X-1]:null}var P1={};F6(P1,{validate:()=>w6,sdkVersion:()=>E6,scoreFafb:()=>S6,scoreEnterprise:()=>N6,score:()=>M1,fafbInfo:()=>j6,decompile:()=>C6,compile:()=>b6});var F1=null;function e(){if(F1)return F1;try{let $=p0("faf-scoring-kernel");return F1=$,$}catch{throw Error(`faf-scoring-kernel not installed.
140
140
 
141
141
  Run: npm install faf-scoring-kernel
142
- `)}}function O2($){return JSON.parse(o().score_faf($))}function Y6($){return JSON.parse(o().score_faf_enterprise($))}function B6($){return o().validate_faf($)}function V6($){return o().compile_fafb($)}function W6($){return JSON.parse(o().decompile_fafb($))}function O6($){return JSON.parse(o().fafb_info($))}function L6($){return JSON.parse(o().score_fafb($))}function _6(){return o().sdk_version()}function c9($){return{score:$.score,tier:m0($.score),populated:$.populated,empty:$.empty,ignored:$.ignored,active:$.active,total:$.total,slots:$.slots}}function _2($){if(/^\s*app_type:\s*about\s*$/m.test($)){let U=$.match(/^\s+source_score:\s*(\d+)\s*$/m),X=U?parseInt(U[1],10):-1,z=X>=0&&X<=100?X:-1,Q=$.match(/^\s+represents:\s*(\S+)\s*$/m),J=Q?Q[1]:void 0;return{score:z,tier:z>=0?m0(z):i[i.length-1],populated:0,empty:0,ignored:0,active:0,total:0,slots:{},inherited:!0,represents:J}}return c9(O2($))}function D6($){let Z=[];if(!$||typeof $!=="object")return Z.push("File is not a valid YAML mapping"),{valid:!1,errors:Z};let U=$;if(!U.faf_version)Z.push("Missing required field: faf_version");if(!U.project?.name)Z.push("Missing required field: project.name");if(U.app_type==="about"){if(!U.about?.represents)Z.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))Z.push(`about.represents must be "owner/repo" format (got: ${U.about.represents})`);if(U.about?.source_score!==void 0){let X=U.about.source_score;if(typeof X!=="number"||X<0||X>100)Z.push(`about.source_score must be a number 0-100 (got: ${X})`)}}return{valid:Z.length===0,errors:Z}}import{readFileSync as X4,writeFileSync as xG,existsSync as Z4}from"fs";import{join as U4,dirname as VJ,basename as uG}from"path";var CQ=L9(),jQ=Q$(),SQ=e2(),w9=J$(),EQ=d0(),J0=b(),gQ=Z0(),fQ=g(),yQ=X0(),xQ=z0(),gG=U2(),hQ=K9(),uQ=A9(),kQ=N9(),Q2=t8(),e8=p0();var vQ=CQ.Composer,mQ=jQ.Document,pQ=SQ.Schema,lQ=w9.YAMLError,dQ=w9.YAMLParseError,cQ=w9.YAMLWarning,aQ=EQ.Alias,iQ=J0.isAlias,sQ=J0.isCollection,rQ=J0.isDocument,nQ=J0.isMap,oQ=J0.isNode,tQ=J0.isPair,eQ=J0.isScalar,$J=J0.isSeq,ZJ=gQ.Pair,UJ=fQ.Scalar,XJ=yQ.YAMLMap,zJ=xQ.YAMLSeq;var QJ=hQ.Lexer,JJ=uQ.LineCounter,HJ=kQ.Parser,V$=Q2.parse,qJ=Q2.parseAllDocuments,GJ=Q2.parseDocument,$4=Q2.stringify,YJ=e8.visit,BJ=e8.visitAsync;function WJ($){let Z=X4($,"utf-8");return V$(Z)}function z4($){return X4($,"utf-8")}function Q4($=process.cwd()){let Z=["project.faf",".faf"];for(let X of Z){let z=U4($,X);if(Z4(z))return z}let U=VJ($);if(U!==$)for(let X of Z){let z=U4(U,X);if(Z4(z))return z}return null}import{writeFileSync as OJ}from"fs";import{join as LJ}from"path";var J4=v0.orange,_J=v0.cyan,DJ=v0.cyanDeep,IJ="#FF9500",RJ="#FF3B30",MJ="#E6EDF3",PJ="#6E7681",H4={TROPHY:{glyph:"\uD83C\uDFC6",color:J4},GOLD:{glyph:"★",color:J4},SILVER:{glyph:"◆",color:_J},BRONZE:{glyph:"◇",color:DJ},GREEN:{glyph:"●",color:MJ},YELLOW:{glyph:"●",color:IJ},RED:{glyph:"○",color:RJ},WHITE:{glyph:"♡",color:PJ}};function S0($){return String($??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var q4=["who","what","why","where","when","how"];function J2($){return $.filter(([,Z])=>Z!==void 0&&Z!==null&&String(Z).trim()!=="").map(([Z,U])=>`<div class="row"><div class="k">${S0(Z)}</div><div class="v">${S0(U)}</div></div>`).join(`
143
- `)}function G4($,Z,U="project.faf"){let X=S0($.project?.name??"Project"),z=Z.tier?.name??"WHITE",Q=H4[z]??H4.WHITE,J=Z.inherited?Z.represents?`inherited from ${S0(Z.represents)}`:"inherited":`${Z.score}%`,H=z==="TROPHY"&&!Z.inherited,q=$.human_context??{},G=q4.map((B)=>[B,q[B]]),W=Object.entries(q).filter(([B])=>!q4.includes(B)),Y=[["goal",$.project?.goal],["main_language",$.project?.main_language],["type",$.project?.type],["framework",$.project?.framework],["faf_version",$.faf_version]],V=Object.entries($.stack??{}),O=V.filter(([,B])=>B&&B!=="slotignored"&&String(B).trim()!==""),_=V.filter(([,B])=>B==="slotignored").length;return`<!DOCTYPE html>
142
+ `)}}function M1($){return JSON.parse(e().score_faf($))}function N6($){return JSON.parse(e().score_faf_enterprise($))}function w6($){return e().validate_faf($)}function b6($){return e().compile_fafb($)}function C6($){return JSON.parse(e().decompile_fafb($))}function j6($){return JSON.parse(e().fafb_info($))}function S6($){return JSON.parse(e().score_fafb($))}function E6(){return e().sdk_version()}function X8($){return{score:$.score,tier:i0($.score),populated:$.populated,empty:$.empty,ignored:$.ignored,active:$.active,total:$.total,slots:$.slots}}function T1($){if(/^\s*app_type:\s*about\s*$/m.test($)){let X=$.match(/^\s+source_score:\s*(\d+)\s*$/m),U=X?parseInt(X[1],10):-1,z=U>=0&&U<=100?U:-1,Q=$.match(/^\s+represents:\s*(\S+)\s*$/m),J=Q?Q[1]:void 0;return{score:z,tier:z>=0?i0(z):a[a.length-1],populated:0,empty:0,ignored:0,active:0,total:0,slots:{},inherited:!0,represents:J}}return X8(M1($))}function g6($){let Z=[];if(!$||typeof $!=="object")return Z.push("File is not a valid YAML mapping"),{valid:!1,errors:Z};let X=$;if(!X.faf_version)Z.push("Missing required field: faf_version");if(!X.project?.name)Z.push("Missing required field: project.name");if(X.app_type==="about"){if(!X.about?.represents)Z.push("app_type 'about' requires about.represents (owner/repo of the source codebase)");else if(!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(X.about.represents))Z.push(`about.represents must be "owner/repo" format (got: ${X.about.represents})`);if(X.about?.source_score!==void 0){let U=X.about.source_score;if(typeof U!=="number"||U<0||U>100)Z.push(`about.source_score must be a number 0-100 (got: ${U})`)}}return{valid:Z.length===0,errors:Z}}import{readFileSync as V3,writeFileSync as YG,existsSync as Y3}from"fs";import{join as B3,dirname as bJ,basename as VG}from"path";var cQ=P2(),iQ=G$(),sQ=J2(),y2=Y$(),aQ=r0(),q0=b(),rQ=U0(),nQ=g(),oQ=Q0(),tQ=J0(),qG=H1(),eQ=S2(),$J=E2(),ZJ=g2(),G1=_3(),G3=s0();var XJ=cQ.Composer,UJ=iQ.Document,zJ=sQ.Schema,QJ=y2.YAMLError,JJ=y2.YAMLParseError,HJ=y2.YAMLWarning,qJ=aQ.Alias,_J=q0.isAlias,GJ=q0.isCollection,YJ=q0.isDocument,BJ=q0.isMap,VJ=q0.isNode,OJ=q0.isPair,WJ=q0.isScalar,LJ=q0.isSeq,RJ=rQ.Pair,IJ=nQ.Scalar,DJ=oQ.YAMLMap,FJ=tQ.YAMLSeq;var MJ=eQ.Lexer,PJ=$J.LineCounter,TJ=ZJ.Parser,o=G1.parse,KJ=G1.parseAllDocuments,AJ=G1.parseDocument,Y1=G1.stringify,NJ=G3.visit,wJ=G3.visitAsync;function CJ($){let Z=V3($,"utf-8");return o(Z)}function O3($){return V3($,"utf-8")}function W3($=process.cwd()){let Z=["project.faf",".faf"];for(let U of Z){let z=B3($,U);if(Y3(z))return z}let X=bJ($);if(X!==$)for(let U of Z){let z=B3(X,U);if(Y3(z))return z}return null}import{writeFileSync as jJ}from"fs";import{join as SJ}from"path";var L3=c0.orange,EJ=c0.cyan,gJ=c0.cyanDeep,yJ="#FF9500",fJ="#FF3B30",xJ="#E6EDF3",hJ="#6E7681",R3={TROPHY:{glyph:"✪",color:L3},GOLD:{glyph:"★",color:L3},SILVER:{glyph:"◆",color:EJ},BRONZE:{glyph:"◇",color:gJ},GREEN:{glyph:"●",color:xJ},YELLOW:{glyph:"●",color:yJ},RED:{glyph:"○",color:fJ},WHITE:{glyph:"♡",color:hJ}};function f0($){return String($??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var I3=["who","what","why","where","when","how"];function B1($){return $.filter(([,Z])=>Z!==void 0&&Z!==null&&String(Z).trim()!=="").map(([Z,X])=>`<div class="row"><div class="k">${f0(Z)}</div><div class="v">${f0(X)}</div></div>`).join(`
143
+ `)}function D3($,Z,X="project.faf"){let U=f0($.project?.name??"Project"),z=Z.tier?.name??"WHITE",Q=R3[z]??R3.WHITE,J=Z.inherited?Z.represents?`inherited from ${f0(Z.represents)}`:"inherited":`${Z.score}%`,H=z==="TROPHY"&&!Z.inherited,q=$.human_context??{},_=I3.map((V)=>[V,q[V]]),B=Object.entries(q).filter(([V])=>!I3.includes(V)),G=[["goal",$.project?.goal],["main_language",$.project?.main_language],["type",$.project?.type],["framework",$.project?.framework],["faf_version",$.faf_version]],Y=Object.entries($.stack??{}),O=Y.filter(([,V])=>V&&V!=="slotignored"&&String(V).trim()!==""),L=Y.filter(([,V])=>V==="slotignored").length;return`<!DOCTYPE html>
144
144
  <html lang="en">
145
145
  <head>
146
146
  <meta charset="UTF-8">
147
147
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
148
- <title>${X} — project.faf</title>
148
+ <title>${U} — project.faf</title>
149
149
  <meta name="description" content="Visual render of project.faf. Authored by faf — humans like visuals, we gave them one.">
150
150
  <meta name="robots" content="index,follow">
151
151
  <style>
@@ -180,47 +180,47 @@ footer strong{color:#e6edf3}
180
180
  <div class="bar"></div>
181
181
  <div class="eyebrow">project.faf · visual render</div>
182
182
  <header>
183
- <h1>${X}</h1>
184
- <span class="badge">${Q.glyph} ${S0(z)}</span>
183
+ <h1>${U}</h1>
184
+ <span class="badge">${Q.glyph} ${f0(z)}</span>
185
185
  <span class="score">${J}</span>
186
186
  </header>
187
187
  <div class="meter"><span></span></div>
188
- ${H?'<p class="award statline"><span class="awd-pre">✅ All Required slots filled.</span> <span class="awd-win">100% Trophy \uD83C\uDFC6 Awarded</span></p>':`<p class="muted statline">${Z.populated}/${Z.active} slots populated · ${Z.total} total${_?` · ${_} N/A`:""}</p>`}
188
+ ${H?'<p class="award statline"><span class="awd-pre">✅ All Required slots filled.</span> <span class="awd-win">100% Trophy ✪ Awarded</span></p>':`<p class="muted statline">${Z.populated}/${Z.active} slots populated · ${Z.total} total${L?` · ${L} N/A`:""}</p>`}
189
189
 
190
190
  <section>
191
191
  <h2>The 6 W's</h2>
192
- ${J2(G)||'<p class="muted">No human_context yet.</p>'}
193
- ${W.length?J2(W):""}
192
+ ${B1(_)||'<p class="muted">No human_context yet.</p>'}
193
+ ${B.length?B1(B):""}
194
194
  </section>
195
195
 
196
196
  <section>
197
197
  <h2>Project</h2>
198
- ${J2(Y)||'<p class="muted">—</p>'}
198
+ ${B1(G)||'<p class="muted">—</p>'}
199
199
  </section>
200
200
 
201
201
  <section>
202
202
  <h2>Stack</h2>
203
- ${O.length?J2(O):'<p class="muted">No active stack slots.</p>'}
203
+ ${O.length?B1(O):'<p class="muted">No active stack slots.</p>'}
204
204
  </section>
205
205
 
206
206
  <footer>
207
- Rendered on-demand from your current <strong>${S0(U)}</strong><br>
207
+ Rendered on-demand from your current <strong>${f0(X)}</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 TJ($,Z,U,X="project.faf"){OJ(LJ($,"project.html"),G4(Z,U,X),"utf-8")}import{writeFileSync as FJ}from"fs";import{join as KJ}from"path";var Y4="application/vnd.faf+yaml",AJ="https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",NJ=/^[a-zA-Z0-9.-]+\/[a-zA-Z0-9._-]+$/;function V4($){let Z=String($.project?.name??"project").trim();if(Z.includes("/")&&NJ.test(Z))return Z;let U=$.project?.homepage??$.project?.website??$.project?.url,X="local";if(U)try{X=new URL(U).hostname.replace(/^www\./,"").split(".").reverse().join(".")}catch{}let z=Z.replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,"")||"project";return`${X}/${z}`}function wJ($){let Z=String($.project?.goal??$.context??$.project?.name??"MCP server").replace(/\s+/g," ").trim();if(!Z)return"MCP server";return Z.length<=100?Z:Z.slice(0,97).trimEnd()+"..."}function b9($,Z={}){return{faf:Z.fafPointer??"./project.faf",mediaType:Y4,iana:`https://www.iana.org/assignments/media-types/${Y4}`,deterministic:!0,...Z.scoreEndpoint?{scoreEndpoint:Z.scoreEndpoint}:{},generated:$.generated??Z.now??new Date().toISOString()}}function W4($,Z={}){let U={$schema:AJ,name:V4($),version:String($.project?.version??"0.1.0"),description:wJ($)},X=jJ($)??$.project?.name;if(X&&X.length<=100)U.title=X;let z=$.project?.homepage??$.project?.website??$.project?.url;if(z)U.websiteUrl=z;if(Z.remoteUrl)U.remotes=[{type:"streamable-http",url:Z.remoteUrl}];return U._meta={"one.faf/context":b9($,Z)},U}var O4="io.modelcontextprotocol.registry/publisher-provided",B4=4096;function bJ($,Z={}){let U={"one.faf/context":b9($,Z)},X=new TextEncoder().encode(JSON.stringify(U)).length;if(X>B4)throw Error(`publisher-provided _meta is ${X}B — exceeds the registry ${B4}B cap`);return{[O4]:U}}function CJ($){return V4($)}function jJ($){let Z=$.project?.title;if(typeof Z==="string"){let U=Z.trim();if(U&&U.length<=100)return U}return}function SJ($,Z,U={}){let X=W4(Z,U),z=KJ($,"server-card");return FJ(z,JSON.stringify(X,null,2)+`
214
- `,"utf-8"),z}var R4="faf-interview/1",E0="(terse — 3-4 words)",C9=[{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? ${E0}`,header:"Who",type:"text",required:!0},{path:"human_context.what",question:`What are they building? ${E0}`,header:"What",type:"text",required:!0},{path:"human_context.why",question:`Why does it exist? ${E0}`,header:"Why",type:"text",required:!0},{path:"human_context.where",question:`Where does it run or ship? ${E0}`,header:"Where",type:"text",required:!0},{path:"human_context.when",question:`When — timeline or stage? ${E0}`,header:"When",type:"text",required:!0},{path:"human_context.how",question:`How is it built or used? ${E0}`,header:"How",type:"text",required:!0}],M4=[{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}],g0=[...C9,...M4],P4=new Map(g0.map(($)=>[$.path,$])),EJ=Object.fromEntries(g0.map(($)=>[$.path,$]));function j9($){let Z=P4.get($);if(Z)return Z.question;let U=u0.get($)??y.find((X)=>X.canonical===$);return U?`${U.description}?`.replace(/\?\?$/,"?"):`${$}?`}function gJ($,Z){return g0.filter((U)=>{let X=U.path.split("."),z=$;for(let Q of X)if(z&&typeof z==="object"&&Q in z)z=z[Q];else{z=void 0;break}if(z==="slotignored")return!1;return Z(z)})}var fJ=new Set(["developers","development teams","development team","teams","development","cloud platform","web platform","platform","best practices","improve development efficiency","development efficiency","modern development practices","modern development","test-driven development","production/stable","production","stable","app","project","tool"]),yJ=[["npm",/\bnpm\b/i],["PyPI",/\bpypi\b/i],["crates.io",/\bcrates\.io\b/i],["Homebrew",/\bhomebrew\b/i],["Docker",/\bdocker\b/i],["Cloudflare",/\bcloudflare\b/i],["Vercel",/\bvercel\b/i],["Netlify",/\bnetlify\b/i],["AWS",/\baws\b/i],["Cloud Run",/\bcloud run\b/i],["edge",/\bedge\b/i],["browser",/\bbrowser\b/i],["WASM",/\bwasm\b/i],["GitHub",/\bgithub\b/i],["MCP Registry",/\bmcp registry\b/i],["Chrome Web Store",/\bchrome web store\b/i],["Smithery",/\bsmithery\b/i]],L4=($)=>fJ.has($.toLowerCase().trim()),xJ=/^(?:with|and|or|using|for|to|that|who|whom|whose|the|a|an|in|on|of|via|by|&)$/i;function _4($,Z=5){let U=$.trim().split(/\s+/).filter(Boolean).slice(0,Z);while(U.length&&xJ.test(U[U.length-1].replace(/[.,;:]+$/,"")))U.pop();return U.join(" ")}function T4($){let Z={};if(!$||typeof $!=="string")return Z;let U=$.trim(),X=U.replace(/^[^A-Za-z0-9]+/,"").split(/\s+(?:for|that|which|to)\s+|\s+[—–]\s+|\s-\s|:\s|\.\s|,\s/)[0].trim(),z=_4(X);if(z.split(/\s+/).filter(Boolean).length>=2&&!L4(z))Z.what=z;let Q=yJ.filter(([,q])=>q.test(U)).map(([q])=>q);if(Q.length)Z.where=Q.slice(0,4).join(", ");let J=U.match(/\bfor ((?:[A-Za-z][\w./+-]* )?(?:any |all )?(?:developers?|teams?|engineers?|builders?|users?|integrators?)\b[^.,;:—]*)/i),H=_4((J?.[1]||"").trim().replace(/\s+/g," "));if(H&&!L4(H))Z.who=H;return Z}function D4($,Z){let U=$;for(let X of Z.split("."))if(U&&typeof U==="object"&&X in U)U=U[X];else return;return U}function I4($){if(typeof $!=="string")return!1;let Z=$.trim();if(!Z||Z==="slotignored")return!1;return!H0(Z)}function hJ($,Z={}){let U=$&&typeof $==="object"?$:{},X=D4(U,"project.goal"),z=(I4(X)?String(X).trim():"")||(Z.goal??"").trim(),Q=T4(z),J=Z.detailed??{},H={"project.goal":z||void 0,"human_context.what":Q.what,"human_context.where":Q.where,"human_context.who":Q.who},q=(O)=>{let _=H[O];if(_)return{value:_,source:"project goal",confidence:0.9};let B=O.startsWith("human_context.")?O.slice(14):"",L=B?J[B]:void 0;return L?{value:L.value,source:L.source,confidence:L.confidence}:void 0},G=C9.map((O,_)=>{let B={n:_+1,path:O.path,header:O.header,question:O.question},L=D4(U,O.path);if(I4(L))return{...B,value:String(L).trim(),status:"filled",seeded:!1};let I=q(O.path);if(I)return{...B,value:I.value,status:"seeded",seeded:!0,source:I.source,confidence:I.confidence};return{...B,value:"",status:"empty",seeded:!1}}),W=G.filter((O)=>O.status==="filled").length,Y=G.filter((O)=>O.status==="seeded").length,V=G.filter((O)=>O.status==="empty").length;return{version:R4,rows:G,filledCount:W,seededCount:Y,emptyCount:V,complete:V===0}}function H2($){if($===null||$===void 0)return!0;if(typeof $==="string"){let Z=$.trim();return Z===""||H0(Z)}return!1}function uJ($,Z){let U=$;for(let X of Z.split("."))if(U&&typeof U==="object"&&X in U)U=U[X];else return;return U}function F4($){if($==="project.goal")return!0;return u0.get($)?.category==="human"}function K4($,Z=H2){let U=[],X=[];for(let z of g0){let Q=uJ($,z.path);if(Q==="slotignored")continue;if(!Z(Q))continue;(F4(z.path)?U:X).push(z.path)}return{human:U,sourceable:X}}function A4($,Z,U=H2){let X=K4(Z,U),z;if($>=100||X.human.length===0&&X.sourceable.length===0)z="done";else if(X.sourceable.length>0)z="can-source";else z="needs-human";let Q=z==="needs-human"?S9(X):[];return{status:z,score:$,gaps:X,ask:Q}}function S9($){return $.human.map((Z)=>({path:Z,question:j9(Z)}))}function kJ($,Z={}){let U=Math.max(1,Z.maxRounds??5),X=Z.isEmpty??H2,z=[],Q=0;for(let H=0;H<=U;H++){let q=$.read();if(!q)return{status:"no-faf",score:0,rounds:Q,history:z,ask:[]};let G=$.score(q.yaml);z.push(G);let W=A4(G,q.data,X);if(W.status==="done")return{status:"done",score:G,rounds:Q,history:z,ask:[]};if(W.status==="needs-human")return{status:"needs-human",score:G,rounds:Q,history:z,ask:W.ask};if(z.length>=2&&G<=z[z.length-2])return W.gaps.human.length?{status:"needs-human",score:G,rounds:Q,history:z,ask:S9(W.gaps)}:{status:"stuck",score:G,rounds:Q,history:z,ask:[]};if(Q>=U)return{status:"capped",score:G,rounds:Q,history:z,ask:S9(W.gaps)};$.runAuto(),Q++}return{status:"capped",score:z[z.length-1]??0,rounds:Q,history:z,ask:[]}}import{createHash as w4}from"crypto";var E9="faf-bench/1",vJ={"project.name":"What is the project's name?","project.goal":"What is the project's goal — what is it for?","project.main_language":"What is the primary programming language?","human_context.who":"Who is this project for?","human_context.what":"What are they building?","human_context.why":"Why does this project exist?","human_context.where":"Where does it run or get distributed?","human_context.when":"When — what is the project's timeline or stage?","human_context.how":"How is it built or used?"};function mJ($,Z){return vJ[$]??`What is the project's ${Z.replace(/\s*\(.*\)$/,"").toLowerCase()}?`}var b4=[["typescript","ts"],["javascript","js"],["python","py","python3"],["node","nodejs","node js","node.js"],["github actions","gh actions","actions"],["postgresql","postgres","pg"],["kubernetes","k8s"],["npm","npm registry"],["cloudflare workers","cf workers","workers"],["google cloud run","cloud run","gcp cloud run"]],W$=new Map;b4.forEach(($,Z)=>$.forEach((U)=>W$.set(U,Z)));var pJ=new Set(["a","an","the","and","or","of","for","to","in","on","with","is","it","its","their","your","via","by","using","use","used"]);function q2($){return $.toLowerCase().replace(/[^a-z0-9\s.+#-]/g," ").replace(/\.(?=\s|$)/g," ").replace(/\s+/g," ").trim()}function N4($){return q2($).split(" ").filter((Z)=>Z&&!pJ.has(Z))}function C4($,Z){let U=q2($),X=q2(Z);if(!U||!X)return!1;if(U===X)return!0;let z=W$.get(U);if(z!==void 0&&W$.get(X)===z)return!0;let Q=N4($);if(Q.length===0)return!1;let J=new Set(N4(Z));return Q.every((H)=>{if(J.has(H))return!0;let q=W$.get(H);return q!==void 0&&[...J].some((G)=>W$.get(G)===q)})}function lJ($){let Z=_2($),U=V$($),X=[],z={},Q=0;for(let q of y){if(Z.slots[q.path]!=="populated")continue;let G=d9(U,q);if(typeof G!=="string")continue;let W=G.trim();if(!W||_$.has(W.toLowerCase()))continue;Q+=1,X.push({n:Q,path:q.path,question:mJ(q.path,q.description)}),z[Q]=W}let J=JSON.stringify({v:E9,q:X.map((q)=>[q.path,q.question])}),H=w4("sha256").update(J).digest("hex").slice(0,12);return{version:E9,qsetHash:H,questions:X,answers:z}}function dJ($){return{version:$.version,qsetHash:$.qsetHash,questions:$.questions}}function cJ($,Z){let U=$.questions.map((z)=>{let Q=Z[String(z.n)]??Z[z.path]??"";return{n:z.n,path:z.path,ok:typeof Q==="string"&&Q.trim()!==""&&C4($.answers[z.n],Q)}}),X=$.questions.filter((z)=>!U[z.n-1].ok);return{correct:U.filter((z)=>z.ok).length,total:$.questions.length,misses:X,perQuestion:U}}function aJ($,Z){let U=JSON.stringify({v:$.version,repo:Z??null,qset:$.qsetHash,protocol:$.protocol,cold:$.cold??null,faf:$.faf??null});return{projection:U,hash:w4("sha256").update(U).digest("hex")}}import{existsSync as UH,readdirSync as S4,readFileSync as XH}from"fs";import{join as y9,dirname as zH,extname as QH,resolve as JH}from"path";var g9={"package.json":{frameworks:["Node.js","JavaScript","TypeScript"],slots:{packageManager:"npm/yarn/pnpm",mainLanguage:"JavaScript/TypeScript"},priority:35,intelligence:"ultra-high"},"README.md":{frameworks:[],slots:{targetUser:"developers",coreProblem:"understanding project",missionPurpose:"project documentation"},priority:25,intelligence:"high"},"requirements.txt":{frameworks:["Python"],slots:{packageManager:"pip",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},Pipfile:{frameworks:["Python"],slots:{packageManager:"pipenv",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},"pyproject.toml":{frameworks:["Python"],slots:{mainLanguage:"Python",runtime:"Python",backend:"Python"},priority:36,intelligence:"ultra-high"},Gemfile:{frameworks:["Ruby","Rails"],slots:{packageManager:"bundler",mainLanguage:"Ruby"},priority:35,intelligence:"ultra-high"},"composer.json":{frameworks:["PHP","Laravel","Symfony"],slots:{packageManager:"composer",mainLanguage:"PHP"},priority:35,intelligence:"ultra-high"},"Cargo.toml":{frameworks:["Rust"],slots:{packageManager:"cargo",mainLanguage:"Rust",buildTool:"cargo"},priority:36,intelligence:"ultra-high"},"go.mod":{frameworks:["Go"],slots:{packageManager:"go modules",mainLanguage:"Go",buildTool:"go build"},priority:36,intelligence:"ultra-high"},"pubspec.yaml":{frameworks:["Dart"],slots:{packageManager:"pub",mainLanguage:"Dart"},priority:35,intelligence:"ultra-high"},"pom.xml":{frameworks:["Java","Spring","Maven"],slots:{packageManager:"maven",mainLanguage:"Java",buildTool:"maven"},priority:35,intelligence:"ultra-high"},"build.gradle":{frameworks:["Java","Kotlin","Spring","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Java/Kotlin",buildTool:"gradle"},priority:35,intelligence:"ultra-high"},"next.config.js":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.mjs":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.ts":{frameworks:["Next.js 13+"],slots:{framework:"Next.js 13+",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.js":{frameworks:["Nuxt 2"],slots:{framework:"Nuxt 2",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.ts":{frameworks:["Nuxt 3"],slots:{framework:"Nuxt 3",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"svelte.config.js":{frameworks:["SvelteKit"],slots:{framework:"SvelteKit",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"angular.json":{frameworks:["Angular"],slots:{framework:"Angular",buildTool:"Angular CLI",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manifest.json":{frameworks:["Chrome Extension","Browser Extension"],slots:{framework:"Chrome Extension",runtime:"Chrome/Browser",mainLanguage:"JavaScript",hosting:"Chrome Web Store",apiType:"Chrome APIs"},priority:35,intelligence:"ultra-high",confirmWith:["popup.html","background.js","content.js"]},"vue.config.js":{frameworks:["Vue"],slots:{framework:"Vue",buildTool:"Vue CLI",mainLanguage:"JavaScript"},priority:30,intelligence:"high"},"remix.config.js":{frameworks:["Remix"],slots:{framework:"Remix",runtime:"Node.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.js":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.ts":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"astro.config.mjs":{frameworks:["Astro"],slots:{framework:"Astro",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"redwood.toml":{frameworks:["RedwoodJS"],slots:{framework:"RedwoodJS",buildTool:"Webpack",mainLanguage:"JavaScript/TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"blitz.config.ts":{frameworks:["Blitz.js"],slots:{framework:"Blitz.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"qwik.config.ts":{frameworks:["Qwik"],slots:{framework:"Qwik",buildTool:"Vite",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manage.py":{frameworks:["Django"],slots:{framework:"Django",backend:"Django",mainLanguage:"Python",server:"Django",apiType:"Django Views"},priority:30,intelligence:"high"},artisan:{frameworks:["Laravel"],slots:{framework:"Laravel",backend:"Laravel",mainLanguage:"PHP",server:"PHP",apiType:"Laravel Routes"},priority:30,intelligence:"high"},"mix.exs":{frameworks:["Phoenix","Elixir"],slots:{framework:"Phoenix",backend:"Phoenix",mainLanguage:"Elixir",server:"BEAM"},priority:30,intelligence:"high"},"nest-cli.json":{frameworks:["NestJS"],slots:{framework:"NestJS",backend:"NestJS",mainLanguage:"TypeScript",server:"Node.js",apiType:"REST API"},priority:30,intelligence:"high"},"strapi.config.js":{frameworks:["Strapi"],slots:{backend:"Strapi",apiType:"REST API",database:"Required",server:"Node.js"},priority:30,intelligence:"high"},Dockerfile:{frameworks:["Docker"],slots:{hosting:"Docker",connection:"Containerized"},priority:30,intelligence:"high"},"docker-compose.yml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"docker-compose.yaml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"kubernetes.yml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"k8s.yaml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"vercel.json":{frameworks:["Vercel"],slots:{hosting:"Vercel",cicd:"Vercel"},priority:30,intelligence:"high"},"netlify.toml":{frameworks:["Netlify"],slots:{hosting:"Netlify",cicd:"Netlify"},priority:30,intelligence:"high"},"render.yaml":{frameworks:["Render"],slots:{hosting:"Render",cicd:"Render"},priority:30,intelligence:"high"},"fly.toml":{frameworks:["Fly.io"],slots:{hosting:"Fly.io",cicd:"Fly.io"},priority:30,intelligence:"high"},"railway.json":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"railway.toml":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"app.yaml":{frameworks:["Google App Engine"],slots:{hosting:"Google Cloud",cicd:"Google Cloud"},priority:30,intelligence:"high"},Procfile:{frameworks:["Heroku"],slots:{hosting:"Heroku",cicd:"Heroku"},priority:30,intelligence:"high"},"vite.config.js":{frameworks:["Vite"],slots:{buildTool:"Vite"},priority:25,intelligence:"medium"},"vite.config.ts":{frameworks:["Vite"],slots:{buildTool:"Vite",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"webpack.config.js":{frameworks:["Webpack"],slots:{buildTool:"Webpack"},priority:25,intelligence:"medium"},"rollup.config.js":{frameworks:["Rollup"],slots:{buildTool:"Rollup"},priority:25,intelligence:"medium"},"esbuild.config.js":{frameworks:["esbuild"],slots:{buildTool:"esbuild"},priority:25,intelligence:"medium"},"parcel.config.js":{frameworks:["Parcel"],slots:{buildTool:"Parcel"},priority:25,intelligence:"medium"},"snowpack.config.js":{frameworks:["Snowpack"],slots:{buildTool:"Snowpack"},priority:25,intelligence:"medium"},"tsconfig.json":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"jsconfig.json":{frameworks:["JavaScript"],slots:{mainLanguage:"JavaScript"},priority:20,intelligence:"medium"},"babel.config.js":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},".babelrc":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},"jest.config.js":{frameworks:["Jest"],slots:{cicd:"Jest"},priority:25,intelligence:"medium"},"jest.config.ts":{frameworks:["Jest"],slots:{cicd:"Jest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"vitest.config.ts":{frameworks:["Vitest"],slots:{cicd:"Vitest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"cypress.config.js":{frameworks:["Cypress"],slots:{cicd:"Cypress"},priority:25,intelligence:"medium"},"playwright.config.ts":{frameworks:["Playwright"],slots:{cicd:"Playwright",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"karma.conf.js":{frameworks:["Karma"],slots:{cicd:"Karma"},priority:20,intelligence:"medium"},"mocha.opts":{frameworks:["Mocha"],slots:{cicd:"Mocha"},priority:20,intelligence:"medium"},".rspec":{frameworks:["RSpec"],slots:{cicd:"RSpec",mainLanguage:"Ruby"},priority:25,intelligence:"medium"},"pytest.ini":{frameworks:["Pytest"],slots:{cicd:"Pytest",mainLanguage:"Python"},priority:25,intelligence:"medium"},"phpunit.xml":{frameworks:["PHPUnit"],slots:{cicd:"PHPUnit",mainLanguage:"PHP"},priority:25,intelligence:"medium"},"schema.prisma":{frameworks:["Prisma"],slots:{database:"Prisma ORM",connection:"Prisma"},priority:25,intelligence:"medium"},"drizzle.config.ts":{frameworks:["Drizzle"],slots:{database:"Drizzle ORM",connection:"Drizzle",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ormconfig.js":{frameworks:["TypeORM"],slots:{database:"TypeORM",connection:"TypeORM"},priority:25,intelligence:"medium"},"knexfile.js":{frameworks:["Knex.js"],slots:{database:"Knex.js",connection:"Knex.js"},priority:25,intelligence:"medium"},"sequelize.config.js":{frameworks:["Sequelize"],slots:{database:"Sequelize",connection:"Sequelize"},priority:25,intelligence:"medium"},"alembic.ini":{frameworks:["Alembic"],slots:{database:"Alembic",mainLanguage:"Python"},priority:25,intelligence:"medium"},".github/workflows":{frameworks:["GitHub Actions"],slots:{cicd:"GitHub Actions"},priority:25,intelligence:"medium"},".gitlab-ci.yml":{frameworks:["GitLab CI"],slots:{cicd:"GitLab CI"},priority:25,intelligence:"medium"},Jenkinsfile:{frameworks:["Jenkins"],slots:{cicd:"Jenkins"},priority:25,intelligence:"medium"},".circleci/config.yml":{frameworks:["CircleCI"],slots:{cicd:"CircleCI"},priority:25,intelligence:"medium"},".travis.yml":{frameworks:["Travis CI"],slots:{cicd:"Travis CI"},priority:25,intelligence:"medium"},"azure-pipelines.yml":{frameworks:["Azure DevOps"],slots:{cicd:"Azure DevOps"},priority:25,intelligence:"medium"},"bitbucket-pipelines.yml":{frameworks:["Bitbucket Pipelines"],slots:{cicd:"Bitbucket Pipelines"},priority:25,intelligence:"medium"},"tailwind.config.js":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS"},priority:20,intelligence:"medium"},"tailwind.config.ts":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"postcss.config.js":{frameworks:["PostCSS"],slots:{cssFramework:"PostCSS"},priority:20,intelligence:"medium"},"uno.config.ts":{frameworks:["UnoCSS"],slots:{cssFramework:"UnoCSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"styled-components.config.js":{frameworks:["styled-components"],slots:{cssFramework:"styled-components",uiLibrary:"styled-components"},priority:20,intelligence:"medium"},"emotion.config.js":{frameworks:["Emotion"],slots:{cssFramework:"Emotion",uiLibrary:"Emotion"},priority:20,intelligence:"medium"},"metro.config.js":{frameworks:["React Native"],slots:{framework:"React Native",mainLanguage:"JavaScript"},priority:25,intelligence:"medium"},"expo.config.js":{frameworks:["Expo"],slots:{framework:"React Native",buildTool:"Expo"},priority:25,intelligence:"medium"},"app.json":{frameworks:["React Native","Expo"],slots:{framework:"React Native"},priority:20,intelligence:"medium",confirmWith:["expo"]},"capacitor.config.ts":{frameworks:["Capacitor"],slots:{framework:"Capacitor",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ionic.config.json":{frameworks:["Ionic"],slots:{framework:"Ionic",uiLibrary:"Ionic"},priority:25,intelligence:"medium"},"nx.json":{frameworks:["Nx"],slots:{buildTool:"Nx"},priority:25,intelligence:"medium"},"turbo.json":{frameworks:["Turborepo"],slots:{buildTool:"Turborepo"},priority:25,intelligence:"medium"},"lerna.json":{frameworks:["Lerna"],slots:{buildTool:"Lerna"},priority:25,intelligence:"medium"},"rush.json":{frameworks:["Rush"],slots:{buildTool:"Rush"},priority:25,intelligence:"medium"},"pnpm-workspace.yaml":{frameworks:["pnpm workspaces"],slots:{packageManager:"pnpm",buildTool:"pnpm workspaces"},priority:25,intelligence:"medium"},"*.svelte":{frameworks:["Svelte","SvelteKit"],slots:{framework:"Svelte"},priority:15,intelligence:"low"},"*.vue":{frameworks:["Vue"],slots:{framework:"Vue"},priority:15,intelligence:"low"},"*.jsx":{frameworks:["React"],slots:{framework:"React",mainLanguage:"JavaScript"},priority:15,intelligence:"low"},"*.ts":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.tsx":{frameworks:["React","TypeScript"],slots:{framework:"React",mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.py":{frameworks:["Python"],slots:{mainLanguage:"Python"},priority:15,intelligence:"low"},"*.rb":{frameworks:["Ruby"],slots:{mainLanguage:"Ruby"},priority:15,intelligence:"low"},"*.php":{frameworks:["PHP"],slots:{mainLanguage:"PHP"},priority:15,intelligence:"low"},"*.java":{frameworks:["Java"],slots:{mainLanguage:"Java"},priority:15,intelligence:"low"},"*.kt":{frameworks:["Kotlin"],slots:{mainLanguage:"Kotlin"},priority:15,intelligence:"low"},"*.swift":{frameworks:["Swift"],slots:{mainLanguage:"Swift"},priority:15,intelligence:"low"},"*.go":{frameworks:["Go"],slots:{mainLanguage:"Go"},priority:15,intelligence:"low"},"*.rs":{frameworks:["Rust"],slots:{mainLanguage:"Rust"},priority:15,intelligence:"low"},"*.dart":{frameworks:["Flutter","Dart"],slots:{mainLanguage:"Dart"},priority:15,intelligence:"low"},"*.ex":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.exs":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.scala":{frameworks:["Scala"],slots:{mainLanguage:"Scala"},priority:15,intelligence:"low"},"*.clj":{frameworks:["Clojure"],slots:{mainLanguage:"Clojure"},priority:15,intelligence:"low"},"*.lua":{frameworks:["Lua"],slots:{mainLanguage:"Lua"},priority:15,intelligence:"low"},"*.r":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.R":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.jl":{frameworks:["Julia"],slots:{mainLanguage:"Julia"},priority:15,intelligence:"low"},"*.nim":{frameworks:["Nim"],slots:{mainLanguage:"Nim"},priority:15,intelligence:"low"},"*.zig":{frameworks:["Zig"],slots:{mainLanguage:"Zig"},priority:15,intelligence:"low"},"build.zig":{frameworks:["Zig"],slots:{packageManager:"Zig Package Manager",mainLanguage:"Zig",buildTool:"zig build",framework:"Zig",build:"zig build"},priority:35,intelligence:"ultra-high"},"openapi.json":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"openapi.yaml":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"swagger.json":{frameworks:["Swagger"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"graphql.schema":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},"schema.graphql":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},".graphqlconfig":{frameworks:["GraphQL"],slots:{apiType:"GraphQL"},priority:25,intelligence:"medium"},"redux.config.js":{frameworks:["Redux"],slots:{stateManagement:"Redux"},priority:20,intelligence:"medium"},"mobx.config.js":{frameworks:["MobX"],slots:{stateManagement:"MobX"},priority:20,intelligence:"medium"},"vuex.config.js":{frameworks:["Vuex"],slots:{stateManagement:"Vuex",framework:"Vue"},priority:20,intelligence:"medium"},"pinia.config.js":{frameworks:["Pinia"],slots:{stateManagement:"Pinia",framework:"Vue"},priority:20,intelligence:"medium"},"zustand.config.js":{frameworks:["Zustand"],slots:{stateManagement:"Zustand"},priority:20,intelligence:"medium"},".eslintrc.js":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".eslintrc.json":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".prettierrc":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},".prettierrc.json":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},"biome.json":{frameworks:["Biome"],slots:{},priority:15,intelligence:"low"},".editorconfig":{frameworks:["EditorConfig"],slots:{},priority:10,intelligence:"low"},"serverless.yml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"serverless.yaml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"sam.yaml":{frameworks:["AWS SAM"],slots:{hosting:"AWS Lambda",backend:"AWS SAM",cicd:"AWS SAM CLI"},priority:30,intelligence:"high"},"template.yaml":{frameworks:["AWS SAM","CloudFormation"],slots:{hosting:"AWS",backend:"AWS SAM/CloudFormation",cicd:"AWS"},priority:25,intelligence:"medium",confirmWith:["samconfig.toml"]},"amplify.yml":{frameworks:["AWS Amplify"],slots:{hosting:"AWS Amplify",backend:"AWS Amplify",cicd:"AWS Amplify"},priority:30,intelligence:"high"},Podfile:{frameworks:["CocoaPods","iOS"],slots:{packageManager:"CocoaPods",mainLanguage:"Swift/Objective-C",framework:"iOS Native"},priority:30,intelligence:"high"},"build.gradle.kts":{frameworks:["Gradle Kotlin DSL","Android","Kotlin"],slots:{packageManager:"Gradle",mainLanguage:"Kotlin",buildTool:"Gradle Kotlin DSL",framework:"Android"},priority:30,intelligence:"high"},"*.ipynb":{frameworks:["Jupyter","Python"],slots:{mainLanguage:"Python",framework:"Jupyter Notebook"},priority:30,intelligence:"high"},MLproject:{frameworks:["MLflow"],slots:{mainLanguage:"Python",framework:"MLflow",backend:"MLflow",cicd:"MLflow"},priority:30,intelligence:"high"},"dvc.yaml":{frameworks:["DVC","Data Version Control"],slots:{mainLanguage:"Python",framework:"DVC",cicd:"DVC Pipelines"},priority:30,intelligence:"high"},"dvc.lock":{frameworks:["DVC"],slots:{framework:"DVC"},priority:20,intelligence:"medium"},"wrangler.toml":{frameworks:["Cloudflare Workers","Cloudflare"],slots:{hosting:"Cloudflare Workers",backend:"Cloudflare Workers",runtime:"V8 Isolates"},priority:30,intelligence:"high"},"deno.json":{frameworks:["Deno"],slots:{runtime:"Deno",mainLanguage:"TypeScript",packageManager:"Deno"},priority:30,intelligence:"high"},"bun.lockb":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",mainLanguage:"TypeScript/JavaScript"},priority:30,intelligence:"high"},"codecov.yml":{frameworks:["Codecov"],slots:{cicd:"Codecov"},priority:25,intelligence:"high"},"dependabot.yml":{frameworks:["Dependabot","GitHub"],slots:{cicd:"Dependabot"},priority:25,intelligence:"high"},"renovate.json":{frameworks:["Renovate"],slots:{cicd:"Renovate"},priority:25,intelligence:"high"},Makefile:{frameworks:["Make","GNU Make"],slots:{buildTool:"Make"},priority:30,intelligence:"high"},"CMakeLists.txt":{frameworks:["CMake","C","C++"],slots:{buildTool:"CMake",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"meson.build":{frameworks:["Meson","C","C++"],slots:{buildTool:"Meson",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"*.c":{frameworks:["C"],slots:{mainLanguage:"C"},priority:30,intelligence:"high"},"*.cpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cc":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.h":{frameworks:["C","C++"],slots:{mainLanguage:"C/C++"},priority:25,intelligence:"high"},"*.hpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.hxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:20,intelligence:"medium"},".env":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.example":{frameworks:[],slots:{},priority:25,intelligence:"high"},".env.local":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.development":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.production":{frameworks:[],slots:{},priority:20,intelligence:"medium"},"skaffold.yaml":{frameworks:["Skaffold","Kubernetes"],slots:{hosting:"Kubernetes",cicd:"Skaffold"},priority:30,intelligence:"high"},"Chart.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes",backend:"Helm"},priority:30,intelligence:"high"},"values.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes"},priority:25,intelligence:"high",confirmWith:["Chart.yaml"]},"pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"Pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"terragrunt.hcl":{frameworks:["Terragrunt","Terraform"],slots:{hosting:"Cloud",cicd:"Terragrunt"},priority:30,intelligence:"high"},"ansible.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:30,intelligence:"high"},"playbook.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:25,intelligence:"high"},"*.cs":{frameworks:["C#",".NET","Unity"],slots:{mainLanguage:"C#"},priority:30,intelligence:"high"},"*.m":{frameworks:["Objective-C","iOS"],slots:{mainLanguage:"Objective-C"},priority:25,intelligence:"high"},".nvmrc":{frameworks:["Node.js","nvm"],slots:{runtime:"Node.js"},priority:25,intelligence:"high"},".tool-versions":{frameworks:["asdf"],slots:{},priority:25,intelligence:"high"},".ruby-version":{frameworks:["Ruby","rbenv"],slots:{mainLanguage:"Ruby",runtime:"Ruby"},priority:25,intelligence:"high"},".python-version":{frameworks:["Python","pyenv"],slots:{mainLanguage:"Python",runtime:"Python"},priority:25,intelligence:"high"},".dockerignore":{frameworks:["Docker"],slots:{},priority:20,intelligence:"medium"},".gitattributes":{frameworks:["Git"],slots:{},priority:15,intelligence:"low"},".npmrc":{frameworks:["npm","Node.js"],slots:{packageManager:"npm"},priority:20,intelligence:"medium"},"sonar-project.properties":{frameworks:["SonarQube","SonarCloud"],slots:{cicd:"SonarQube"},priority:25,intelligence:"high"},"*.fs":{frameworks:["F#",".NET"],slots:{mainLanguage:"F#"},priority:25,intelligence:"high"},"*.mm":{frameworks:["Objective-C++","iOS","macOS"],slots:{mainLanguage:"Objective-C++"},priority:25,intelligence:"high"},"build.zig.zon":{frameworks:["Zig"],slots:{mainLanguage:"Zig",packageManager:"Zig Package Manager",buildTool:"zig build"},priority:35,intelligence:"ultra-high"},"gleam.toml":{frameworks:["Gleam","BEAM","Erlang"],slots:{mainLanguage:"Gleam",runtime:"BEAM",packageManager:"Gleam"},priority:30,intelligence:"high"},"bunfig.toml":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",buildTool:"Bun"},priority:30,intelligence:"high"},"mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},".mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},"manifest.toml":{frameworks:["Flox","Nix"],slots:{},priority:25,intelligence:"high",confirmWith:[".flox"]},justfile:{frameworks:["Just"],slots:{buildTool:"Just"},priority:25,intelligence:"high"},".pre-commit-config.yaml":{frameworks:["pre-commit"],slots:{cicd:"pre-commit"},priority:25,intelligence:"high"},"CLAUDE.md":{frameworks:["Claude Code"],slots:{},priority:30,intelligence:"high",confirmWith:[".claude"]}};import{existsSync as j4,readFileSync as sJ,readdirSync as rJ}from"fs";import{join as f9}from"path";var f0={version:1,_doc:"SINGLE SOURCE of Dart/Flutter detection KNOWLEDGE (A+B hybrid, the Truth-is-faf-cli spec). faf-cli imports this directly; faf-python-sdk vendors a synced copy (phase 2); MCPs consume the SDK (phase 3). To bolster Dart/Flutter support — a new state library, server framework, MCP dep — edit THIS file and every engine inherits it. The thin per-language LOGIC (pubspec parse, app-vs-package heuristic, priority branching) lives in code, not here.",flutterDeps:["flutter"],mcpDeps:["dart_mcp","mcp_server","mcp_dart","dart_mcp_server","mcp"],serverFrameworks:[["serverpod","Serverpod"],["dart_frog","Dart Frog"],["conduit","Conduit"],["angel3_framework","Angel3"],["alfred","Alfred"],["shelf","Shelf"]],stateManagement:[["flutter_riverpod","Riverpod"],["hooks_riverpod","Riverpod"],["riverpod","Riverpod"],["flutter_bloc","Bloc"],["bloc","Bloc"],["provider","Provider"],["get","GetX"],["flutter_mobx","MobX"],["mobx","MobX"],["signals","Signals"]],routing:[["go_router","go_router"],["auto_route","auto_route"]]};var nJ=f0.flutterDeps,oJ=f0.mcpDeps,tJ=f0.serverFrameworks,eJ=f0.stateManagement,$H=f0.routing;function ZH($){let Z=new Set,U=!1;for(let X of $.split(`
215
- `)){if(/^(dependencies|dev_dependencies|dependency_overrides):\s*$/.test(X)){U=!0;continue}if(/^\S/.test(X))U=!1;if(U){let z=X.match(/^\s{2}([a-zA-Z0-9_]+):/);if(z)Z.add(z[1].toLowerCase())}}return Z}function G2($){let Z=f9($,"pubspec.yaml");if(!j4(Z))return null;let U;try{U=sJ(Z,"utf-8")}catch{return null}let X=ZH(U),z=(F)=>X.has(F.toLowerCase()),Q=nJ.some(z)||/^flutter:\s*$/m.test(U)||/\bsdk:\s*flutter\b/.test(U),J=oJ.find(z),H=tJ.find(([F])=>z(F)),q=eJ.find(([F])=>z(F)),G=q?q[1]:"",W=$H.find(([F])=>z(F)),Y=W?W[1]:"",V=z("flutter_test")?"flutter_test":z("test")?"test":"",O=/^executables:\s*$/m.test(U),_=!1;try{_=rJ(f9($,"bin")).some((F)=>F.endsWith(".dart"))}catch{}let B=O||_,L,I="",M;if(Q)if(I="Flutter",j4(f9($,"lib","main.dart"))||/^publish_to:\s*['"]?none\b/m.test(U))L="mobile",M="pubspec.yaml (Flutter app)";else L="library",M="pubspec.yaml (Flutter package)";else if(J)L="mcp",M=`pubspec.yaml + ${J} (Dart MCP server)`;else if(H)L="backend",I=H[1],M=`pubspec.yaml + ${H[0]} (Dart backend)`;else if(B)L="cli",M=O?"pubspec.yaml executables: (Dart CLI)":"pubspec.yaml + bin/*.dart (Dart CLI)";else L="library",M="pubspec.yaml (Dart package)";return{appType:L,isFlutter:Q,framework:I,stateManagement:G,routing:Y,testing:V,found:M}}var HH=new Set(["node_modules",".git","dist","build","venv",".venv","__pycache__","target","coverage",".next",".svelte-kit","vendor"]),qH=new Set([".py",".ts",".tsx",".js",".jsx",".svelte",".vue",".rb",".go",".rs",".php",".java",".kt",".swift"]),GH={mainLanguage:["project","main_language"],main_language:["project","main_language"],framework:["stack","frontend"],cssFramework:["stack","css_framework"],css:["stack","css_framework"],uiLibrary:["stack","ui_library"],ui_library:["stack","ui_library"],stateManagement:["stack","state_management"],state:["stack","state_management"],backend:["stack","backend"],apiType:["stack","api_type"],api:["stack","api_type"],runtime:["stack","runtime"],database:["stack","database"],db:["stack","database"],connection:["stack","connection"],hosting:["stack","hosting"],buildTool:["stack","build"],build_tool:["stack","build"],build:["stack","build"],packageManager:["stack","package_manager"],pkg_manager:["stack","package_manager"],cicd:["stack","cicd"]},YH=[["packageManager","package-manager"],["pkg_manager","package-manager"],["mainLanguage","language"],["main_language","language"],["framework","framework"],["backend","backend"],["database","database"],["db","database"],["cicd","ci-cd"],["hosting","hosting"],["buildTool","build"],["build_tool","build"],["build","build"],["runtime","runtime"],["cssFramework","css"],["css","css"],["uiLibrary","ui-library"],["stateManagement","state-management"],["apiType","api"],["api","api"]];function BH($,Z){for(let[U,X]of YH)if(U in $)return X;return Z.length>0?"framework":"config"}function VH($){try{let Z=JSON.parse(XH($,"utf-8")),U=["background","content_scripts","action","browser_action","permissions"].some((X)=>(X in Z));if(typeof Z.manifest_version==="number"&&U)return"chrome";return"other"}catch{return"other"}}function WH($){let Z=[],U=JH($),X=UH(y9($,".git"));for(let z=0;z<10;z++){let Q;try{Q=S4(U)}catch{break}for(let H of Q){let q=g9[H];if(!q)continue;if(H==="manifest.json"&&VH(y9(U,H))!=="chrome")continue;if(H==="pubspec.yaml"){let G=G2(U);if(G){let W={mainLanguage:"Dart",packageManager:"pub"};if(G.isFlutter){if(W.framework="Flutter",G.stateManagement)W.stateManagement=G.stateManagement}else if(G.appType==="backend"&&G.framework)W.backend=G.framework;else if(G.appType==="mcp")W.apiType="MCP";Z.push({slots:W,priority:q.priority,frameworks:G.isFlutter?["Flutter","Dart"]:["Dart"],fileName:H});continue}}Z.push({slots:q.slots||{},priority:q.priority,frameworks:q.frameworks,fileName:H})}if(X&&z===0)break;let J=zH(U);if(J===U)break;U=J}return Z}function OH($){let Z=[];for(let U of g4($,2,{count:0})){let X=g9[`*${U}`],z=X?.slots?.mainLanguage;if(z)Z.push({slots:{mainLanguage:z},priority:X.priority,frameworks:X.frameworks})}return Z}function E4($){let Z=[...WH($),...OH($)],U={},X={},z=new Set;for(let G of Z){G.frameworks.forEach((W)=>z.add(W));for(let[W,Y]of Object.entries(G.slots))if(Y&&!Y.includes("/")&&(!(W in U)||G.priority>X[W]))U[W]=Y,X[W]=G.priority}let Q=new Map;for(let G of Z){if(!G.fileName)continue;if(!Q.has(G.fileName))Q.set(G.fileName,{fileName:G.fileName,category:BH(G.slots,G.frameworks),priority:G.priority})}let J=[...Q.values()].sort((G,W)=>W.priority-G.priority||G.fileName.localeCompare(W.fileName)),H=[];if(U.mainLanguage)H.push(U.mainLanguage.toLowerCase());if(U.framework)H.push(U.framework.toLowerCase());let q=H.length>0?H.join("-"):"unknown-stack";return{slotFills:U,frameworks:[...z],confirmedCount:Z.length,discoveredFormats:J,stackSignature:q}}function x9($){let{slotFills:Z}=E4($),U={};for(let[X,z]of Object.entries(Z)){let Q=GH[X];if(!Q||!z)continue;let[J,H]=Q;if(J==="project")(U.project??={})[H]=z;else(U.stack??={})[H]=z}return U}function g4($,Z,U){let X=new Set;if(Z<0||U.count>400)return X;let z;try{z=S4($,{withFileTypes:!0})}catch{return X}for(let Q of z){if(U.count++>400)break;if(!Q.isDirectory()){let J=QH(Q.name);if(qH.has(J))X.add(J);continue}if(HH.has(Q.name)||Q.name.startsWith("."))continue;for(let J of g4(y9($,Q.name),Z-1,U))X.add(J)}return X}import{existsSync as f4,readFileSync as y4}from"fs";import{join as x4}from"path";var x=($,Z,U)=>({value:$,source:Z,confidence:U});function h4($){let Z=LH($),U=_H($),X={},z=(Q,J)=>{if(J)X[Q]=J};return z("what",DH(Z,U)),z("who",IH(U)),z("why",RH(U)),z("where",MH(Z,U)),z("when",PH(U)),z("how",TH(Z,U)),X}function h9($){let Z=h4($),U={};return Object.keys(Z).forEach((X)=>{let z=Z[X];if(z)U[X]=z.value}),U}function LH($){let Z=x4($,"package.json");if(!f4(Z))return null;try{return JSON.parse(y4(Z,"utf-8"))}catch{return null}}function _H($){let Z=x4($,"README.md");if(!f4(Z))return"";let U;try{U=y4(Z,"utf-8")}catch{return""}return U.split(`
216
- `).filter((X)=>!/^\s*\[!\[/.test(X)&&!/^\s*!\[/.test(X)).join(`
217
- `).replace(/<[^>]+>/g,"").replace(/!\[[^\]]*\]\([^)]*\)/g,"").trim()}function L0($){return $.replace(/\s+/g," ").replace(/[#*`>]/g,"").trim().slice(0,280)}function y0($,Z){let U=new RegExp(`##?\\s+(${Z})\\s*\\n+([\\s\\S]+?)(?:\\n\\n|\\n##?|$)`,"i"),X=$.match(U);return X&&X[2]&&X[2].trim().length>20?{body:L0(X[2]),heading:X[1].trim()}:null}function O$($,Z,U=30){for(let X of Z){let z=$.match(X);if(z&&z[1]&&z[1].trim().length>=U)return L0(z[1])}return null}function DH($,Z){if($?.description&&$.description.length>20)return x(L0($.description),"package.json:description",0.95);let U=y0(Z,"Purpose|What|About|Overview|Description");if(U)return x(U.body,`README:## ${U.heading}`,0.8);let X=Z.split(/\n\s*\n/).map((Q)=>Q.trim()).find((Q)=>Q.length>30&&!Q.startsWith("#"));if(X)return x(L0(X),"README:first-paragraph",0.5);let z=O$(Z,[/(?:core|main|primary)\s+(?:problem|challenge)(?:\s+is)?\s*:?\s*([^.\n]{30,})/i,/solves?\s+(?:the\s+)?(?:problem\s+of\s+)?([^.\n]{30,})/i]);return z?x(z,"README:problem-heuristic",0.6):null}function IH($){let Z=y0($,"Audience|Who|Who is this for|Who it.s for");if(Z)return x(Z.body,`README:## ${Z.heading}`,0.8);let U=O$($,[/\b(?:designed|built|made)\s+for\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i,/\bfor\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i],8);return U?x(U,"README:audience-heuristic",0.6):null}function RH($){let Z=y0($,"Why|Mission|Motivation|Rationale|Vision");if(Z)return x(Z.body,`README:## ${Z.heading}`,0.8);let U=O$($,[/(?:our\s+|the\s+)?(?:mission|purpose|goal)\s+is\s+([^.\n]{30,})/i,/\b(?:mission|purpose|goal)\s*:\s*([^.\n]{30,})/i,/(?:built|created|designed)\s+(?:because|to)\s+([^.\n]{30,})/i]);return U?x(U,"README:mission-heuristic",0.6):null}function MH($,Z){let U=typeof $?.repository==="string"?$.repository:$?.repository?.url;if(U)return x(L0(U.replace(/^git\+/,"").replace(/\.git$/,"")),"package.json:repository",0.95);if($?.homepage)return x(L0($.homepage),"package.json:homepage",0.9);let X=O$(Z,[/\b(?:deployed|hosted|available|published)\s+(?:on|at|via)\s+([^.\n]{3,80})/i],3);return X?x(X,"README:deploy-heuristic",0.6):null}function PH($){let Z=y0($,"Timeline|Status|Release|Roadmap");if(Z)return x(Z.body,`README:## ${Z.heading}`,0.8);let U=O$($,[/\b(production\s+since\s+[^.\n]{4,60})/i,/\b((?:in\s+)?(?:production|beta|alpha|development)\s+since\s+[^.\n]{4,60})/i,/\bsince\s+((?:[A-Z][a-z]+\s+)?\d{4}[^.\n]{0,40})/],4);return U?x(U,"README:since-heuristic",0.6):null}function TH($,Z){let U=$?.scripts?Object.keys($.scripts):[],X=["start","dev","build"].filter((J)=>U.includes(J));if(X.length)return x(L0(X.map((J)=>`npm run ${J}`).join(", ")),"package.json:scripts",0.9);let z=y0(Z,"Usage|Getting Started|Install|Installation|Quick Start");if(z)return x(z.body,`README:## ${z.heading}`,0.8);let Q=y0(Z,"Architecture|Approach|How it works|Methodology|How");return Q?x(Q.body,`README:## ${Q.heading}`,0.7):null}var u4="3.0";import{existsSync as T,readFileSync as n,readdirSync as v4}from"fs";import{join as P}from"path";var k4=[{name:"Next.js",slug:"nextjs",category:"frontend",signals:[{type:"dependency",key:"next"},{type:"file",pattern:"next.config.*"}]},{name:"React",slug:"react",category:"frontend",signals:[{type:"dependency",key:"react"}]},{name:"SvelteKit",slug:"sveltekit",category:"frontend",signals:[{type:"dependency",key:"@sveltejs/kit"},{type:"file",pattern:"svelte.config.*"}]},{name:"Svelte",slug:"svelte",category:"frontend",signals:[{type:"dependency",key:"svelte"},{type:"devDependency",key:"svelte"}]},{name:"Vue.js",slug:"vue",category:"frontend",signals:[{type:"dependency",key:"vue"}]},{name:"Nuxt",slug:"nuxt",category:"frontend",signals:[{type:"dependency",key:"nuxt"},{type:"file",pattern:"nuxt.config.*"}]},{name:"Angular",slug:"angular",category:"frontend",signals:[{type:"dependency",key:"@angular/core"},{type:"file",pattern:"angular.json"}]},{name:"Astro",slug:"astro",category:"frontend",signals:[{type:"dependency",key:"astro"},{type:"file",pattern:"astro.config.*"}]},{name:"Solid",slug:"solid",category:"frontend",signals:[{type:"dependency",key:"solid-js"}]},{name:"Remix",slug:"remix",category:"frontend",signals:[{type:"dependency",key:"@remix-run/react"}]},{name:"Gatsby",slug:"gatsby",category:"frontend",signals:[{type:"dependency",key:"gatsby"},{type:"file",pattern:"gatsby-config.*"}]},{name:"Qwik",slug:"qwik",category:"frontend",signals:[{type:"dependency",key:"@builder.io/qwik"}]},{name:"Vercel (SvelteKit)",slug:"adapter-vercel",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-vercel"},{type:"devDependency",key:"@sveltejs/adapter-vercel"}]},{name:"Node (SvelteKit)",slug:"adapter-node",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-node"},{type:"devDependency",key:"@sveltejs/adapter-node"}]},{name:"Static (SvelteKit)",slug:"adapter-static",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-static"},{type:"devDependency",key:"@sveltejs/adapter-static"}]},{name:"Cloudflare (SvelteKit)",slug:"adapter-cloudflare",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-cloudflare"},{type:"devDependency",key:"@sveltejs/adapter-cloudflare"}]},{name:"Netlify (SvelteKit)",slug:"adapter-netlify",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-netlify"},{type:"devDependency",key:"@sveltejs/adapter-netlify"}]},{name:"Tailwind CSS",slug:"tailwind",category:"css",signals:[{type:"dependency",key:"tailwindcss"},{type:"devDependency",key:"tailwindcss"},{type:"file",pattern:"tailwind.config.*"}]},{name:"Bootstrap",slug:"bootstrap",category:"css",signals:[{type:"dependency",key:"bootstrap"}]},{name:"Styled Components",slug:"styled-components",category:"css",signals:[{type:"dependency",key:"styled-components"}]},{name:"shadcn/ui",slug:"shadcn",category:"ui",signals:[{type:"file",pattern:"components.json"},{type:"dependency",key:"@radix-ui/react-dialog"}]},{name:"Material UI",slug:"mui",category:"ui",signals:[{type:"dependency",key:"@mui/material"}]},{name:"Chakra UI",slug:"chakra",category:"ui",signals:[{type:"dependency",key:"@chakra-ui/react"}]},{name:"Ant Design",slug:"antd",category:"ui",signals:[{type:"dependency",key:"antd"}]},{name:"Redux",slug:"redux",category:"state",signals:[{type:"dependency",key:"@reduxjs/toolkit"}]},{name:"Zustand",slug:"zustand",category:"state",signals:[{type:"dependency",key:"zustand"}]},{name:"Jotai",slug:"jotai",category:"state",signals:[{type:"dependency",key:"jotai"}]},{name:"Pinia",slug:"pinia",category:"state",signals:[{type:"dependency",key:"pinia"}]},{name:"Express",slug:"express",category:"backend",signals:[{type:"dependency",key:"express"}]},{name:"Fastify",slug:"fastify",category:"backend",signals:[{type:"dependency",key:"fastify"}]},{name:"Hono",slug:"hono",category:"backend",signals:[{type:"dependency",key:"hono"}]},{name:"Elysia",slug:"elysia",category:"backend",signals:[{type:"dependency",key:"elysia"}]},{name:"NestJS",slug:"nestjs",category:"backend",signals:[{type:"dependency",key:"@nestjs/core"}]},{name:"Koa",slug:"koa",category:"backend",signals:[{type:"dependency",key:"koa"}]},{name:"Django",slug:"django",category:"backend",signals:[{type:"file",pattern:"manage.py"},{type:"file",pattern:"settings.py"}]},{name:"Flask",slug:"flask",category:"backend",signals:[{type:"file",pattern:"app.py"}]},{name:"FastAPI",slug:"fastapi",category:"backend",signals:[{type:"file",pattern:"main.py"}]},{name:"Rails",slug:"rails",category:"backend",signals:[{type:"file",pattern:"Gemfile"},{type:"file",pattern:"config/routes.rb"}]},{name:"Spring Boot",slug:"spring",category:"backend",signals:[{type:"file",pattern:"pom.xml"},{type:"file",pattern:"build.gradle"}]},{name:"Prisma",slug:"prisma",category:"database",signals:[{type:"dependency",key:"prisma"},{type:"devDependency",key:"prisma"},{type:"file",pattern:"prisma/schema.prisma"}]},{name:"Drizzle",slug:"drizzle",category:"database",signals:[{type:"dependency",key:"drizzle-orm"},{type:"file",pattern:"drizzle.config.*"}]},{name:"TypeORM",slug:"typeorm",category:"database",signals:[{type:"dependency",key:"typeorm"}]},{name:"Mongoose",slug:"mongoose",category:"database",signals:[{type:"dependency",key:"mongoose"}]},{name:"Vite",slug:"vite",category:"build",signals:[{type:"dependency",key:"vite"},{type:"devDependency",key:"vite"},{type:"file",pattern:"vite.config.*"}]},{name:"webpack",slug:"webpack",category:"build",signals:[{type:"dependency",key:"webpack"},{type:"devDependency",key:"webpack"},{type:"file",pattern:"webpack.config.*"}]},{name:"esbuild",slug:"esbuild",category:"build",signals:[{type:"dependency",key:"esbuild"},{type:"devDependency",key:"esbuild"}]},{name:"Turbopack",slug:"turbopack",category:"build",signals:[{type:"file",pattern:"turbo.json"}]},{name:"Jest",slug:"jest",category:"testing",signals:[{type:"devDependency",key:"jest"},{type:"file",pattern:"jest.config.*"}]},{name:"Vitest",slug:"vitest",category:"testing",signals:[{type:"devDependency",key:"vitest"}]},{name:"Playwright",slug:"playwright",category:"testing",signals:[{type:"devDependency",key:"@playwright/test"},{type:"file",pattern:"playwright.config.*"}]},{name:"Cypress",slug:"cypress",category:"testing",signals:[{type:"devDependency",key:"cypress"},{type:"file",pattern:"cypress.config.*"}]},{name:"Turborepo",slug:"turborepo",category:"monorepo",signals:[{type:"devDependency",key:"turbo"},{type:"file",pattern:"turbo.json"}]},{name:"Nx",slug:"nx",category:"monorepo",signals:[{type:"devDependency",key:"nx"},{type:"file",pattern:"nx.json"}]},{name:"Lerna",slug:"lerna",category:"monorepo",signals:[{type:"devDependency",key:"lerna"},{type:"file",pattern:"lerna.json"}]},{name:"MCP SDK",slug:"mcp",category:"ai",signals:[{type:"dependency",key:"@modelcontextprotocol/sdk"}]},{name:"Anthropic SDK",slug:"anthropic",category:"ai",signals:[{type:"dependency",key:"@anthropic-ai/sdk"}]},{name:"OpenAI SDK",slug:"openai",category:"ai",signals:[{type:"dependency",key:"openai"}]},{name:"LangChain",slug:"langchain",category:"ai",signals:[{type:"dependency",key:"langchain"}]},{name:"Vercel",slug:"vercel",category:"hosting",signals:[{type:"file",pattern:"vercel.json"}]},{name:"Netlify",slug:"netlify",category:"hosting",signals:[{type:"file",pattern:"netlify.toml"}]},{name:"Docker",slug:"docker",category:"hosting",signals:[{type:"file",pattern:"Dockerfile"},{type:"file",pattern:"docker-compose.yml"}]},{name:"Cloudflare Workers",slug:"cloudflare",category:"hosting",signals:[{type:"file",pattern:"wrangler.toml"},{type:"dependency",key:"wrangler"}]},{name:"GitHub Actions",slug:"github-actions",category:"cicd",signals:[{type:"file",pattern:".github/workflows/*.yml"}]},{name:"Commander.js",slug:"commander",category:"cli",signals:[{type:"dependency",key:"commander"}]}];function FH($){let Z=P($,"Cargo.toml");if(!T(Z))return null;try{let X=n(Z,"utf-8").match(/^\s*\[package\][\s\S]*?^\s*name\s*=\s*"([^"]+)"/m);return X?X[1]:null}catch{return null}}function KH($){let Z=P($,"Cargo.toml");if(!T(Z))return!1;try{let U=n(Z,"utf-8");return/^\s*\[\[bin\]\]/m.test(U)}catch{return!1}}function AH($,Z){if(Z?.keywords?.some((X)=>/^sdk(?:\s|-|$)|\-sdk$/i.test(X)))return'package.json keywords contains "sdk"';if(Z?.name&&/(?:^|[-_/])sdk(?:[-_/]|$)/i.test(Z.name))return`package.json name "${Z.name}" → sdk`;let U=FH($);if(U&&/(?:^|[-_])sdk(?:[-_]|$)/i.test(U))return`Cargo.toml name "${U}" → sdk`;return null}function NH($){let Z=["manifest.json","public/manifest.json","src/manifest.json","app/manifest.json","extension/manifest.json","dist/manifest.json"];for(let U of Z){let X=P($,U);if(!T(X))continue;try{let z=JSON.parse(n(X,"utf-8"));if(typeof z.manifest_version==="number")return`${U} manifest_version ${z.manifest_version} (browser extension)`}catch{}}return null}function wH($){let Z=/(numpy|pandas|jupyter|scikit-learn|sklearn|pytorch|tensorflow|matplotlib|scipy)/i,U=P($,"pyproject.toml");if(T(U))try{let Q=n(U,"utf-8").match(Z);if(Q)return`pyproject.toml depends on ${Q[1]}`}catch{}let X=P($,"requirements.txt");if(T(X))try{let Q=n(X,"utf-8").match(Z);if(Q)return`requirements.txt contains ${Q[1]}`}catch{}return null}function bH($,Z){let U=["react-native","expo","@capacitor/core","@ionic/core"];if(Z){for(let X of U)if(Z.dependencies?.[X]||Z.devDependencies?.[X])return`${X} dependency`}if(T(P($,"ios"))&&T(P($,"android")))return"ios/ + android/ dirs";return null}function CH($,Z){let U=P($,"Cargo.toml");if(T(U))try{let z=n(U,"utf-8");if(/crate-type\s*=\s*\[[^\]]*"cdylib"/.test(z))return'Cargo.toml crate-type = ["cdylib"]';if(/wasm-bindgen|wasm-pack/i.test(z))return"Cargo.toml wasm-bindgen/wasm-pack"}catch{}let X=P($,"build.zig");if(T(X))try{let z=n(X,"utf-8");if(/\.wasm\b|wasm32|setOutputFormat\(\.wasm/i.test(z))return"build.zig wasm target"}catch{}if(Z?.keywords?.some((z)=>/^wasm(?:-|$)|webassembly/i.test(z)))return'package.json keywords contains "wasm"';return null}function jH($,Z){if(!T(P($,"index.html")))return null;if(Z?.dependencies||Z?.devDependencies){let U={...Z.dependencies??{},...Z.devDependencies??{}};if(["react","vue","svelte","@sveltejs/kit","next","nuxt","astro","gatsby","solid-js","qwik"].some((z)=>U[z]))return null}return"index.html (vanilla, no frontend framework)"}function SH($,Z){if(Z?.name&&/specification|^@.*\/spec/i.test(Z.name))return`package name "${Z.name}" → documentation`;if(Z?.keywords?.some((U)=>/^(specification|format-spec|standard)$/i.test(U)))return'package keywords contains "specification"';if(Z?.files&&Z.files.length>0){let U=/^(dist|src|lib|build|bin)\/|\.(js|ts|tsx|jsx|mjs|cjs|py|rs|go)$/,X=Z.files.some((Q)=>U.test(Q)),z=Z.files.some((Q)=>/\.(md|MD)|examples?\//.test(Q));if(!X&&z)return"package.json files = docs/examples only (no source)"}return null}function EH($,Z,U){let X=U.find((z)=>z.slug==="astro"||z.slug==="gatsby");if(X)return`${X.name} (static-site framework)`;if(Z?.keywords?.some((z)=>/^(website|marketing|landing|brochure|portfolio)$/i.test(z)))return'package keywords contains "website"/"marketing"/"landing"';return null}function gH($,Z){if(!Z)return null;let U={...Z.dependencies??{},...Z.devDependencies??{}},X=["@clerk/nextjs","@clerk/clerk-react","next-auth","@auth/core","auth0","@auth0/nextjs-auth0"],z=["stripe","@stripe/stripe-js","lemonsqueezy"],Q=X.some((H)=>U[H]),J=z.some((H)=>U[H]);if(Q&&J)return"auth + payment dependencies";return null}function fH($,Z,U){if(Z?.keywords?.some((Q)=>/mcpaas/i.test(Q)))return'package keywords contains "mcpaas"';if(Z?.name&&/mcpaas/i.test(Z.name))return`package name "${Z.name}" → mcpaas`;let X=U.some((Q)=>Q.slug==="mcp"),z=U.some((Q)=>Q.category==="database");if(X&&z&&Z?.dependencies&&Object.keys(Z.dependencies).length>10)return"MCP + database + complex deps (platform shape)";return null}function yH($,Z){if(!Z?.private)return null;if(!(!!Z.workspaces||T(P($,"pnpm-workspace.yaml"))))return null;return"private workspace + multi-package"}function _0($){let Z=P($,"package.json");if(!T(Z))return null;try{return JSON.parse(n(Z,"utf-8"))}catch{return null}}function xH($,Z){if(!Z.includes("*"))return T(P($,Z));let U=Z.split("/");if(U.length===1){let H=Z.split("*")[0];try{return v4($).some((q)=>q.startsWith(H))}catch{return!1}}let X=P($,...U.slice(0,-1)),z=U[U.length-1],Q=z.split("*")[0],J=z.split("*")[1]||"";try{return v4(X).some((H)=>H.startsWith(Q)&&H.endsWith(J))}catch{return!1}}function hH($,Z,U){switch($.type){case"dependency":return!!Z?.dependencies?.[$.key];case"devDependency":return!!Z?.devDependencies?.[$.key];case"file":return xH(U,$.pattern);default:return!1}}function u9($){let Z=_0($);return k4.map((U)=>{let z=U.signals.filter((Q)=>hH(Q,Z,$)).length/U.signals.length;return{name:U.name,slug:U.slug,category:U.category,confidence:z}}).filter((U)=>U.confidence>0).sort((U,X)=>X.confidence-U.confidence)}function m4($){let Z=_0($);if(Z?.devDependencies?.typescript||Z?.dependencies?.typescript)return"TypeScript";if(T(P($,"tsconfig.json")))return"TypeScript";if(T(P($,"Cargo.toml")))return"Rust";if(T(P($,"go.mod")))return"Go";if(T(P($,"pyproject.toml"))||T(P($,"setup.py")))return"Python";if(T(P($,"Gemfile")))return"Ruby";if(T(P($,"pom.xml"))||T(P($,"build.gradle")))return"Java";if(T(P($,"Package.swift")))return"Swift";if(T(P($,"build.zig")))return"Zig";if(T(P($,"pubspec.yaml")))return"Dart";if(Z)return"JavaScript";return"Unknown"}function p4($){let Z=_0($),U=u9($),X=[],z=SH($,Z);if(z)return X.push(z),{type:"documentation",found:X};let Q=AH($,Z);if(Q)return X.push(Q),{type:"sdk",found:X};let J=NH($);if(J)return X.push(J),{type:"extension",found:X};let H=fH($,Z,U);if(H)return X.push(H),{type:"mcpaas",found:X};let q=gH($,Z);if(q)return X.push(q),{type:"saas",found:X};let G=CH($,Z);if(G)return X.push(G),{type:"wasm",found:X};let W=G2($);if(W)return X.push(W.found),{type:W.appType,found:X};let Y=bH($,Z);if(Y)return X.push(Y),{type:"mobile",found:X};if(U.some((D)=>D.slug==="mcp"))return X.push("MCP SDK signal"),{type:"mcp",found:X};if(Z?.bin)return X.push("package.json bin"),{type:"cli",found:X};if(KH($))return X.push("Cargo.toml [[bin]]"),{type:"cli",found:X};if(T(P($,"build.zig"))){if(X.push("build.zig"),T(P($,"src/main.zig")))return X.push("src/main.zig"),{type:"cli",found:X};if(T(P($,"src/root.zig")))return X.push("src/root.zig"),{type:"library",found:X}}let O=U.some((D)=>D.slug==="svelte"||D.slug==="sveltekit");if(Z?.private===!0&&(T(P($,"pnpm-workspace.yaml"))||Z?.workspaces!==void 0)&&O)return X.push("private workspace","Svelte"),{type:"framework",found:X};if(O)return X.push("Svelte/SvelteKit"),{type:"svelte",found:X};let B=U.some((D)=>D.category==="frontend"),L=U.some((D)=>D.category==="backend");if(Z?.private&&(Z.workspaces||T(P($,"pnpm-workspace.yaml")))&&B&&L)return X.push("private workspace + frontend + backend frameworks"),{type:"enterprise",found:X};let I=yH($,Z);if(I)return X.push(I),{type:"monorepo-root",found:X};let M=EH($,Z,U);if(M)return X.push(M),{type:"website",found:X};if(U.some((D)=>D.slug==="nextjs"||D.slug==="nuxt"))return X.push(U.find((D)=>D.slug==="nextjs")?"Next.js":"Nuxt"),{type:"fullstack",found:X};let A=U.some((D)=>D.category==="frontend"),K=U.some((D)=>D.category==="backend");if(A&&K)return X.push("frontend framework","backend framework"),{type:"fullstack",found:X};if(A)return X.push("frontend framework"),{type:"frontend",found:X};if(K)return X.push("backend framework"),{type:"backend",found:X};let N=wH($);if(N)return X.push(N),{type:"data-science",found:X};let C=jH($,Z);if(C)return X.push(C),{type:"html",found:X};if(Z?.main&&!Z?.bin)return X.push("package.json main (no bin)"),{type:"library",found:X};return X.push("no classifying signals — fallback"),{type:"library",found:X}}function l4($){if(T(P($,"bunfig.toml")))return"Bun";if(T(P($,"deno.json"))||T(P($,"deno.jsonc")))return"Deno";if(_0($))return"Node.js";if(T(P($,"Cargo.toml")))return"Rust";if(T(P($,"go.mod")))return"Go";if(T(P($,"pubspec.yaml")))return"Dart";return"Unknown"}function d4($){if(T(P($,"pubspec.yaml")))return"pub";if(T(P($,"bun.lockb"))||T(P($,"bun.lock")))return"bun";if(T(P($,"pnpm-lock.yaml")))return"pnpm";if(T(P($,"yarn.lock")))return"yarn";if(T(P($,"package-lock.json")))return"npm";return"npm"}function c4($){if(T(P($,".github/workflows")))return"GitHub Actions";if(T(P($,".gitlab-ci.yml")))return"GitLab CI";if(T(P($,".circleci")))return"CircleCI";if(T(P($,"Jenkinsfile")))return"Jenkins";return null}function a4($){if(T(P($,"vercel.json")))return"Vercel";if(T(P($,"netlify.toml")))return"Netlify";if(T(P($,"wrangler.toml")))return"Cloudflare";if(T(P($,"Dockerfile")))return"Docker";if(T(P($,"fly.toml")))return"Fly.io";if(T(P($,"render.yaml")))return"Render";return null}function i4($){let Z=P($,"svelte.config.js");if(!T(Z))return null;try{let X=n(Z,"utf-8").match(/@sveltejs\/adapter-(\w+)/);if(X){let z=X[1];switch(z){case"vercel":return"Vercel";case"node":return"Node";case"static":return"Static";case"cloudflare":return"Cloudflare";case"netlify":return"Netlify";case"auto":return"Auto";default:return z}}return null}catch{return null}}function s4($){let Z=_0($);if(Z?.devDependencies?.vite||Z?.dependencies?.vite)return"Vite";if(Z?.devDependencies?.webpack||Z?.dependencies?.webpack)return"webpack";if(Z?.devDependencies?.esbuild||Z?.dependencies?.esbuild)return"esbuild";if(T(P($,"tsconfig.json"))&&Z?.devDependencies?.typescript)return"TypeScript (tsc)";return null}function r4($){return["package.json","Cargo.toml","pyproject.toml","go.mod","build.zig","build.zig.zon","src/index.ts","src/index.js","src/main.ts","src/cli.ts","src/main.rs","src/lib.rs","src/main.zig","src/root.zig","src/__init__.py","main.py","__main__.py","main.go","cmd/main.go","README.md","SPECIFICATION.md","BINARY-FORMAT.md","tsconfig.json","wrangler.toml","vercel.json"].filter((U)=>T(P($,U)))}function n4($,Z){let U={};if(Z?.scripts){for(let X of["build","test","lint","dev","start"])if(Z.scripts[X]){let z=T(P($,"bun.lock"))||T(P($,"bun.lockb"))?"bun run":"npm run";U[X]=`${z} ${X}`}}if(T(P($,"Cargo.toml"))){if(!U.build)U.build="cargo build --release";if(!U.test)U.test="cargo test";if(!U.lint)U.lint="cargo clippy"}if(T(P($,"build.zig"))){if(!U.build)U.build="zig build";if(!U.test)U.test="zig build test"}if(T(P($,"go.mod"))){if(!U.build)U.build="go build ./...";if(!U.test)U.test="go test ./..."}if(T(P($,"pyproject.toml"))||T(P($,"pytest.ini"))){if(!U.test)U.test="pytest"}return U}function o4($,Z,U,X){let z=[];if(X&&X!=="Unknown")z.push(X);let Q=new Set(["frontend","backend","database","build","css","state","monorepo"]);for(let J of U)if(Q.has(J.category))z.push(J.name);if(T(P($,"bunfig.toml")))z.push("Bun");else if(T(P($,"deno.json"))||T(P($,"deno.jsonc")))z.push("Deno");if(z.length<3&&Z?.dependencies){let J=Object.keys(Z.dependencies).slice(0,5);for(let H of J)if(!z.some((q)=>q.toLowerCase().includes(H.toLowerCase())))z.push(H)}return z}function t4($){let Z=_0($),U=u9($),X=m4($),z=p4($),Q=z.type,J=l4($),H=d4($),q=c4($),G=a4($),W=s4($),Y=U.find((j)=>j.category==="frontend"),V=U.find((j)=>j.category==="css"),O=U.find((j)=>j.category==="ui"),_=U.find((j)=>j.category==="state"),B=U.find((j)=>j.category==="backend"),L=U.find((j)=>j.category==="database"),I=I0[Q]||I0.library,M=Q==="framework",F=U.some((j)=>j.slug==="svelte"||j.slug==="sveltekit"),A=M&&F?"svelte":M?null:null,K=Q==="svelte"||A==="svelte",N=K?i4($):null,C=K&&U.some((j)=>j.slug==="sveltekit"),D=new Set(["css_framework","ui_library","database","connection","hosting"]),w={},l=y.filter((j)=>j.path.startsWith("stack."));for(let j of l){let S=j.path.replace("stack.","");if(!I.includes(j.category)){w[S]="slotignored";continue}if(M&&D.has(S)){w[S]="slotignored";continue}switch(S){case"frontend":w[S]=Y?.name??(Q==="cli"?"CLI":"");break;case"css_framework":w[S]=V?.name??"";break;case"ui_library":w[S]=O?.name??"";break;case"state_management":w[S]=K?_?.name??"Runes":_?.name??"";break;case"backend":w[S]=K?C?"SvelteKit":B?.name??"":B?.name??"";break;case"api_type":w[S]=C?"Server Routes":"";break;case"runtime":w[S]=J!=="Unknown"?J:"";break;case"database":w[S]=L?.name??"";break;case"connection":w[S]=L?.name??"";break;case"hosting":if(K&&N)w[S]=N;else w[S]=G??"";break;case"build":w[S]=K?"Vite":W??"";break;case"cicd":w[S]=q??"";break;case"package_manager":w[S]=H;break;default:w[S]="";break}}let d={},E=y.filter((j)=>j.path.startsWith("monorepo."));for(let j of E){let S=j.path.replace("monorepo.","");if(!I.includes(j.category))d[S]="slotignored";else d[S]=""}let x0={name:Z?.name??$.split("/").pop()??"project",goal:Z?.description??"",main_language:X,type:Q};if(M&&A)x0.framework=A;let m9=o4($,Z,U,X),p9=r4($),l9=n4($,Z),L$={faf_version:u4,project:x0,stack:w,human_context:{who:"",what:Z?.description??"",why:"",where:"",when:"",how:""},monorepo:d,_meta:{found:z.found}};if(m9.length>0)L$.tech_stack=m9;if(p9.length>0)L$.key_files=p9;if(Object.keys(l9).length>0)L$.commands=l9;return L$}import{existsSync as kH,readFileSync as vH}from"fs";import{join as mH}from"path";var e4={MIN_LENGTH:8,MAX_LENGTH:280},uH=[/^(see|see\s+the?)\s+readme/i,/^(tbd|todo|fixme|coming\s+soon)\b/i,/^(software|application|app|project|tool|library|framework)\.?$/i,/^(for\s+users|for\s+developers)\.?$/i,/^(description|goal|name|title)\.?$/i,/^lorem\s+ipsum/i,/^example(\s+\w+)?\.?$/i];function p($){let Z=$.trim();if(Z.length<e4.MIN_LENGTH)return!1;if(Z.length>e4.MAX_LENGTH)return!1;if(uH.some((U)=>U.test(Z)))return!1;if(/^[\s|\-*+]/.test(Z))return!1;if(Z.split(`
218
- `).length>4)return!1;return!0}function pH($){let Z=$.split(`
219
- `),U=0;while(U<Z.length&&/^(#\s|$)/.test(Z[U].trim()))U++;while(U<Z.length){let X=Z[U].trim();if(/^\[!\[/.test(X)){U++;continue}if(/^!\[/.test(X)){U++;continue}if(/^<img\s/i.test(X)){U++;continue}if(X===""){U++;continue}break}return Z.slice(U).join(`
220
- `)}function lH($){let U=pH($).split(`
221
- `),X=[];for(let z of U){let Q=z.trim();if(Q===""){if(X.length>0)break;continue}if(/^(#|>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(Q))break;if(/^\*\*[^*]+\*\*\s*$/.test(Q)&&X.length===0)continue;X.push(Q)}if(X.length===0)return null;return X.join(" ").trim()}function D0($,Z){let U=$.split(`
222
- `),X=0;while(X<U.length){let Q=U[X].trim().match(/^(#{1,6})\s+(.+)$/);if(Q&&Z.test(Q[2])){let J=Q[1].length,H=[];X++;while(X<U.length){let q=U[X].trim(),G=q.match(/^(#{1,6})\s+/);if(G&&G[1].length<=J)break;if(q===""){if(H.length>0)break;X++;continue}if(/^(>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(q))break;H.push(q),X++}if(H.length===0)return null;return H.join(" ").trim()}X++}return null}function dH($){let Z=D0($,/^(use\s+cases?|goal)\b/i);if(Z&&p(Z))return Z;let U=lH($);if(U&&p(U))return U;return}function cH($){let Z=D0($,/^(about|description|overview|what(\s+is\s+this)?)\b/i);if(Z&&p(Z))return Z;return}function aH($){let Z=D0($,/^(audience|users?|for\s+whom|who(\s+is\s+this\s+for)?)\b/i);if(Z&&p(Z))return Z;return}function iH($){let Z=D0($,/^(why|motivation|problem|rationale)\b/i);if(Z&&p(Z))return Z;return}function sH($){let Z=D0($,/^(deployment|where(\s+it\s+runs)?|hosting)\b/i);if(Z&&p(Z))return Z;return}function rH($){let Z=D0($,/^(status|history|timeline|since|launched)\b/i);if(Z&&p(Z))return Z;return}function nH($){let Z=D0($,/^(architecture|how(\s+it\s+works)?|approach|design)\b/i);if(Z&&p(Z))return Z;return}function k9($){let Z=["README.md","README.MD","Readme.md","readme.md"],U=null;for(let O of Z){let _=mH($,O);if(kH(_)){U=_;break}}if(!U)return{};let X;try{X=vH(U,"utf-8")}catch{return{}}let z={},Q=dH(X);if(Q)z.project={goal:Q};let J={},H=cH(X);if(H)J.what=H;let q=aH(X);if(q)J.who=q;let G=iH(X);if(G)J.why=G;let W=sH(X);if(W)J.where=W;let Y=rH(X);if(Y)J.when=Y;let V=nH(X);if(V)J.how=V;if(Object.keys(J).length>0)z.human_context=J;return z}import{existsSync as oH,readFileSync as tH}from"fs";import{join as eH}from"path";function $q($,Z){let U=$.split(`
223
- `),X=!1;for(let z of U){let Q=z.trim();if(/^\[/.test(Q)){X=Q==="[package]";continue}if(!X)continue;let J=Q.match(new RegExp(`^${Z}\\s*=\\s*(.+)$`));if(J){let H=J[1].trim();H=H.replace(/\s*#.*$/,"").trim();let q=H.match(/^"((?:[^"\\]|\\.)*)"$/)||H.match(/^'((?:[^'\\]|\\.)*)'$/);if(q)return q[1];return H}}return null}function v9($){let Z=eH($,"Cargo.toml");if(!oH(Z))return{};let U;try{U=tH(Z,"utf-8")}catch{return{}}let X=$q(U,"description");if(X&&p(X))return{project:{goal:X}};return{}}function Zq($,Z){let U={project:{...Z.project??{},...$.project??{}},human_context:{...Z.human_context??{},...$.human_context??{}}};if(U.project&&Object.keys(U.project).length===0)delete U.project;if(U.human_context&&Object.keys(U.human_context).length===0)delete U.human_context;return U}function $6($){return Zq(k9($),v9($))}function Uq($){let Z=t4($),U=$6($),X=Y2(Z,U);Xq(X);let z=Y2(X,x9($));return Y2(z,{human_context:h9($)})}function Xq($){let Z=$.project?.type??"library",U=I0[Z]||I0.library;for(let X of y){if(U.includes(X.category))continue;let[z,Q]=X.path.split(".");if(z==="stack"&&$.stack)$.stack[Q]="slotignored";if(z==="monorepo"&&$.monorepo)$.monorepo[Q]="slotignored"}}function Y2($,Z){let U={...$};for(let[X,z]of Object.entries(Z)){let Q=U[X];if(H0(Q))U[X]=z;else if(typeof z==="object"&&z!==null&&!Array.isArray(z)&&typeof Q==="object"&&Q!==null&&!Array.isArray(Q))U[X]=Y2(Q,z)}return U}export{SJ as writeServerCard,TJ as writeProjectHtml,D6 as validateFaf,x9 as turboCatSlots,E4 as turboCatScan,J6 as slotsByCategory,T4 as seedSixWsFromGoal,_2 as scoreFafYaml,kJ as runLoop,h4 as relentlessContextDetailed,h9 as relentlessContext,CJ as registryName,bJ as registryMeta,z4 as readFafRaw,WJ as readFaf,j9 as questionForSlot,dJ as publicQuestions,q2 as normalizeAnswer,A4 as loopVerdict,L2 as kernel,H0 as isPlaceholder,F4 as isHumanSlot,H2 as isEmptyValue,gJ as interviewForMissing,cJ as gradeAnswers,m0 as getTier,G6 as getNextTier,W4 as generateServerCard,G4 as generateProjectHtml,Q4 as findFafFile,b9 as fafContextBlock,c9 as enrichScore,lJ as deriveQuestionSet,K4 as classifyGaps,hJ as buildTableOf8,aJ as buildReceipt,Uq as assembleFreshFaf,C4 as answersMatch,i as TIERS,M4 as STACK_INTERVIEW,u0 as SLOT_BY_PATH,y as SLOTS,C9 as SIX_WS_INTERVIEW,O4 as REGISTRY_PUBLISHER_KEY,_$ as PLACEHOLDERS,R4 as INTERVIEW_VERSION,EJ as INTERVIEW_PATHS,P4 as INTERVIEW_BY_PATH,g0 as INTERVIEW,v0 as FAF_HEX,q6 as ENTERPRISE_SLOTS,E9 as BENCH_VERSION,H6 as BASE_SLOTS,b4 as ALIAS_GROUPS};
213
+ `}function uJ($,Z,X,U="project.faf"){jJ(SJ($,"project.html"),D3(Z,X,U),"utf-8")}import{writeFileSync as kJ}from"fs";import{join as vJ}from"path";var F3="application/vnd.faf+yaml",mJ="https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",pJ=/^[a-zA-Z0-9.-]+\/[a-zA-Z0-9._-]+$/;function P3($){let Z=String($.project?.name??"project").trim();if(Z.includes("/")&&pJ.test(Z))return Z;let X=$.project?.homepage??$.project?.website??$.project?.url,U="local";if(X)try{U=new URL(X).hostname.replace(/^www\./,"").split(".").reverse().join(".")}catch{}let z=Z.replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,"")||"project";return`${U}/${z}`}function lJ($){let Z=String($.project?.goal??$.context??$.project?.name??"MCP server").replace(/\s+/g," ").trim();if(!Z)return"MCP server";return Z.length<=100?Z:`${Z.slice(0,97).trimEnd()}...`}function f2($,Z={}){return{faf:Z.fafPointer??"./project.faf",mediaType:F3,iana:`https://www.iana.org/assignments/media-types/${F3}`,deterministic:!0,...Z.scoreEndpoint?{scoreEndpoint:Z.scoreEndpoint}:{},generated:$.generated??Z.now??new Date().toISOString()}}function T3($,Z={}){let X={$schema:mJ,name:P3($),version:String($.project?.version??"0.1.0"),description:lJ($)},U=iJ($)??$.project?.name;if(U&&U.length<=100)X.title=U;let z=$.project?.homepage??$.project?.website??$.project?.url;if(z)X.websiteUrl=z;if(Z.remoteUrl)X.remotes=[{type:"streamable-http",url:Z.remoteUrl}];return X._meta={"one.faf/context":f2($,Z)},X}var K3="io.modelcontextprotocol.registry/publisher-provided",M3=4096;function dJ($,Z={}){let X={"one.faf/context":f2($,Z)},U=new TextEncoder().encode(JSON.stringify(X)).length;if(U>M3)throw Error(`publisher-provided _meta is ${U}B — exceeds the registry ${M3}B cap`);return{[K3]:X}}function cJ($){return P3($)}function iJ($){let Z=$.project?.title;if(typeof Z==="string"){let X=Z.trim();if(X&&X.length<=100)return X}return}function sJ($,Z,X={}){let U=T3(Z,X),z=vJ($,"server-card");return kJ(z,`${JSON.stringify(U,null,2)}
214
+ `,"utf-8"),z}var x2=["ephemeral","standard","high","critical"],_0=Object.fromEntries(x2.map(($,Z)=>[$,Z])),V1=new Set(["user","feedback","project","reference"]),h2=new Set(["version","profile","namepoint","created","last_etched","retention","index","memory"]),u2=new Set(["facts","sessions","preferences","custom"]),k2={low:"ephemeral",medium:"standard"};import{readFileSync as aJ,writeFileSync as rJ,existsSync as nJ}from"fs";function x0(){return new Date().toISOString().replace(/\.\d{3}Z$/,"Z")}function h($){return $===null||$===void 0}function R$($){if(h($))return"standard";if(k2[$])return k2[$];if($ in _0)return $;return"standard"}var oJ=new Set(["text","id","type","priority","tags","links","timestamp","source"]);function A3($){if(typeof $==="string")return{text:$,id:null,type:null,priority:"standard",tags:[],links:[],timestamp:null,source:null,extra:{}};if(!$||typeof $!=="object"||!("text"in $))throw Error(`fact must be a string or a mapping with 'text': ${JSON.stringify($)}`);let Z=$,X={};for(let[U,z]of Object.entries(Z))if(!oJ.has(U))X[U]=z;return{text:String(Z.text),id:Z.id??null,type:Z.type??null,priority:R$(Z.priority),tags:Array.isArray(Z.tags)?Z.tags.slice():[],links:Array.isArray(Z.links)?Z.links.slice():[],timestamp:Z.timestamp??null,source:Z.source??null,extra:X}}function N3($){if(h($.id)&&h($.type)&&$.tags.length===0&&$.links.length===0&&h($.timestamp)&&h($.source)&&Object.keys($.extra).length===0&&$.priority==="standard")return $.text;let X={text:$.text};if(!h($.id))X.id=$.id;if(!h($.type))X.type=$.type;if(X.priority=$.priority,$.tags.length)X.tags=$.tags;if($.links.length)X.links=$.links;if(!h($.timestamp))X.timestamp=$.timestamp;if(!h($.source))X.source=$.source;return Object.assign(X,$.extra),X}class I0{namepoint;profile;retention;created;last_etched;_facts;_byId;_index;_sessions;_preferences;_custom;_extra;_memoryExtra;constructor($,Z={}){this.namepoint=$,this.profile=Z.profile??"knowledge",this.retention=Z.retention??"forever",this.created=Z.created??x0(),this.last_etched=this.created,this._facts=Z.facts?Z.facts.slice():[],this._byId=new Map,this._facts.forEach((X,U)=>{if(!h(X.id))this._byId.set(X.id,U)}),this._index=Z.index?Z.index.slice():[],this._sessions=Z.sessions?structuredClone(Z.sessions):[],this._preferences=Z.preferences?{...Z.preferences}:{},this._custom=Z.custom?{...Z.custom}:{},this._extra=Z.extra?{...Z.extra}:{},this._memoryExtra=Z.memoryExtra?{...Z.memoryExtra}:{}}get facts(){return this._facts}get index(){return this._index}get sessions(){return this._sessions}get preferences(){return this._preferences}get custom(){return this._custom}get extra(){return this._extra}get memoryExtra(){return this._memoryExtra}static load($){if(!nJ($))throw Error(`soul file not found: ${$}`);let Z=aJ($,"utf-8"),X=o(Z);if(!X||typeof X!=="object")throw Error("soul is not a YAML mapping");let U=X.memory&&typeof X.memory==="object"?X.memory:{},z=Array.isArray(U.facts)?U.facts:[],Q={};for(let[q,_]of Object.entries(X))if(!h2.has(q))Q[q]=structuredClone(_);let J={};for(let[q,_]of Object.entries(U))if(!u2.has(q))J[q]=structuredClone(_);let H=new I0(String(X.namepoint??$.replace(/.*\//,"").replace(/\.fafm$/,"")),{profile:String(X.profile??"voice"),facts:z.map(A3),retention:String(X.retention??"forever"),created:X.created??null,index:Array.isArray(X.index)?X.index.slice():[],sessions:Array.isArray(U.sessions)?structuredClone(U.sessions):[],preferences:U.preferences&&typeof U.preferences==="object"?structuredClone(U.preferences):{},custom:U.custom&&typeof U.custom==="object"?structuredClone(U.custom):{},extra:Q,memoryExtra:J});return H.last_etched=String(X.last_etched??H.created),H}static fromFile($){return I0.load($)}toDoc(){let $={facts:this._facts.map(N3),sessions:structuredClone(this._sessions),preferences:structuredClone(this._preferences),custom:structuredClone(this._custom)};for(let[X,U]of Object.entries(this._memoryExtra))if(!u2.has(X))$[X]=structuredClone(U);let Z={version:"1.1",profile:this.profile,namepoint:this.namepoint,created:this.created,last_etched:this.last_etched,retention:this.retention,index:this._index.slice(),memory:$};for(let[X,U]of Object.entries(this._extra))if(!h2.has(X))Z[X]=structuredClone(U);return Z}toYaml(){return Y1(this.toDoc(),{lineWidth:100})}rebuildIndex($=80){return this._index=this._facts.map((Z)=>`${Z.id??"?"} — ${Z.text.slice(0,$)}`),this._index}save($,Z={}){if(Z.reindex!==!1)this.rebuildIndex();return rJ($,this.toYaml(),"utf-8"),$}toFile($,Z={}){return this.save($,Z)}add($){if(!h($.id)&&this._byId.has($.id)){let Z=this._byId.get($.id);if(Z!==void 0)this._facts[Z]=$}else if(this._facts.push($),!h($.id))this._byId.set($.id,this._facts.length-1);if($.timestamp&&$.timestamp>(this.last_etched||""))this.last_etched=$.timestamp;return $}etch($,Z={}){return this.add({text:$,id:Z.id??null,type:Z.type??null,priority:R$(Z.priority),tags:Z.tags?Z.tags.slice():[],links:Z.links?Z.links.slice():[],timestamp:x0(),source:Z.source??null,extra:{}})}recall($,Z={}){let X=_0[R$(Z.minPriority??"ephemeral")]??0,U=($??"").toLowerCase(),z=new Set(Z.tags??[]),Q=[];this._facts.forEach((H,q)=>{if(U&&!H.text.toLowerCase().includes(U))return;if(z.size>0&&![...z].some((_)=>H.tags.includes(_)))return;if(!h(Z.type)&&H.type!==Z.type)return;if((_0[H.priority]??1)<X)return;Q.push([q,H])}),Q.sort((H,q)=>{let _=_0[H[1].priority]??1,B=_0[q[1].priority]??1;if(B!==_)return B-_;let G=H[1].timestamp??"",Y=q[1].timestamp??"";if(Y!==G)return Y<G?-1:Y>G?1:0;return q[0]-H[0]});let J=Q.map(([,H])=>H);if(!h(Z.limit))return J.slice(0,Z.limit);return J}getFact($){let Z=this._byId.get($);return Z===void 0?null:this._facts[Z]}deleteFact($){let Z=this._byId.get($);if(Z===void 0)return!1;return this._facts.splice(Z,1),this._byId.clear(),this._facts.forEach((X,U)=>{if(!h(X.id))this._byId.set(X.id,U)}),!0}}import{readdirSync as tJ,readFileSync as eJ,statSync as w3,existsSync as $H}from"fs";import{join as ZH,basename as b3,resolve as XH}from"path";var C3=new Set(["MEMORY.md","MEMORY-FULL.md","README.md"]),UH=/\[\[([^\]]+)\]\]/g;function zH($){let Z=w3($).mtimeMs;return new Date(Z).toISOString().replace(/\.\d{3}Z$/,"Z")}function QH($){if(!$.startsWith("---"))return{fm:null,body:$};let Z=$.split("---");if(Z.length<3)return{fm:null,body:$};try{let X=o(Z[1]);if(!X||typeof X!=="object")return{fm:null,body:Z.slice(2).join("---").trim()};return{fm:X,body:Z.slice(2).join("---").trim()}}catch{return{fm:null,body:$}}}function JH($,Z,X){if(!X.name)return null;let U=X.metadata&&typeof X.metadata==="object"?X.metadata:{},z=U.type;if(typeof z!=="string"||!V1.has(z))return null;let Q=String(X.name).trim(),H=(X.description!==void 0&&X.description!==null&&String(X.description).trim()?String(X.description).trim():"")||Q,q={};if(U.originSessionId)q.provenance=[`session:${U.originSessionId}`];let _=[...new Set([...Z.matchAll(UH)].map((B)=>B[1]))].sort();return{text:H,id:Q,type:z,priority:"standard",tags:[],links:_,timestamp:zH($),source:`claude-code memory: ${b3($)}`,extra:q}}function j3($,Z={}){let X=XH($);if(!$H(X))throw Error(`Claude memory directory not found: ${X}`);if(!w3(X).isDirectory())throw Error(`Claude memory path is not a directory: ${X}`);let U=Z.skip??C3,z=Z.namepoint??`@claude-code:${b3(X)}`,Q=[],J=tJ(X).filter((G)=>G.endsWith(".md")).sort();for(let G of J){if(U.has(G))continue;let Y=ZH(X,G),O;try{O=eJ(Y,"utf-8")}catch{continue}let{fm:L,body:V}=QH(O);if(!L)continue;let W=JH(Y,V,L);if(W)Q.push(W)}let H=Q.map((G)=>G.timestamp).filter(Boolean),q=H.length?H.reduce((G,Y)=>G<Y?G:Y):x0(),_=H.length?H.reduce((G,Y)=>G>Y?G:Y):q,B=new I0(z,{profile:"knowledge",facts:Q,created:q});return B.last_etched=_,B.rebuildIndex(),B}var f3="faf-interview/1",h0="(terse — 3-4 words)",v2=[{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? ${h0}`,header:"Who",type:"text",required:!0},{path:"human_context.what",question:`What are they building? ${h0}`,header:"What",type:"text",required:!0},{path:"human_context.why",question:`Why does it exist? ${h0}`,header:"Why",type:"text",required:!0},{path:"human_context.where",question:`Where does it run or ship? ${h0}`,header:"Where",type:"text",required:!0},{path:"human_context.when",question:`When — timeline or stage? ${h0}`,header:"When",type:"text",required:!0},{path:"human_context.how",question:`How is it built or used? ${h0}`,header:"How",type:"text",required:!0}],x3=[{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}],u0=[...v2,...x3],h3=new Map(u0.map(($)=>[$.path,$])),HH=Object.fromEntries(u0.map(($)=>[$.path,$]));function m2($){let Z=h3.get($);if(Z)return Z.question;let X=l0.get($)??f.find((U)=>U.canonical===$);return X?`${X.description}?`.replace(/\?\?$/,"?"):`${$}?`}function qH($,Z){return u0.filter((X)=>{let U=X.path.split("."),z=$;for(let Q of U)if(z&&typeof z==="object"&&Q in z)z=z[Q];else{z=void 0;break}if(z==="slotignored")return!1;return Z(z)})}var _H=new Set(["developers","development teams","development team","teams","development","cloud platform","web platform","platform","best practices","improve development efficiency","development efficiency","modern development practices","modern development","test-driven development","production/stable","production","stable","app","project","tool"]),GH=[["npm",/\bnpm\b/i],["PyPI",/\bpypi\b/i],["crates.io",/\bcrates\.io\b/i],["Homebrew",/\bhomebrew\b/i],["Docker",/\bdocker\b/i],["Cloudflare",/\bcloudflare\b/i],["Vercel",/\bvercel\b/i],["Netlify",/\bnetlify\b/i],["AWS",/\baws\b/i],["Cloud Run",/\bcloud run\b/i],["edge",/\bedge\b/i],["browser",/\bbrowser\b/i],["WASM",/\bwasm\b/i],["GitHub",/\bgithub\b/i],["MCP Registry",/\bmcp registry\b/i],["Chrome Web Store",/\bchrome web store\b/i],["Smithery",/\bsmithery\b/i]],S3=($)=>_H.has($.toLowerCase().trim()),YH=/^(?:with|and|or|using|for|to|that|who|whom|whose|the|a|an|in|on|of|via|by|&)$/i;function E3($,Z=5){let X=$.trim().split(/\s+/).filter(Boolean).slice(0,Z);while(X.length&&YH.test(X[X.length-1].replace(/[.,;:]+$/,"")))X.pop();return X.join(" ")}function u3($){let Z={};if(!$||typeof $!=="string")return Z;let X=$.trim(),U=X.replace(/^[^A-Za-z0-9]+/,"").split(/\s+(?:for|that|which|to)\s+|\s+[—–]\s+|\s-\s|:\s|\.\s|,\s/)[0].trim(),z=E3(U);if(z.split(/\s+/).filter(Boolean).length>=2&&!S3(z))Z.what=z;let Q=GH.filter(([,q])=>q.test(X)).map(([q])=>q);if(Q.length)Z.where=Q.slice(0,4).join(", ");let J=X.match(/\bfor ((?:[A-Za-z][\w./+-]* )?(?:any |all )?(?:developers?|teams?|engineers?|builders?|users?|integrators?)\b[^.,;:—]*)/i),H=E3((J?.[1]||"").trim().replace(/\s+/g," "));if(H&&!S3(H))Z.who=H;return Z}function g3($,Z){let X=$;for(let U of Z.split("."))if(X&&typeof X==="object"&&U in X)X=X[U];else return;return X}function y3($){if(typeof $!=="string")return!1;let Z=$.trim();if(!Z||Z==="slotignored")return!1;return!G0(Z)}function BH($,Z={}){let X=$&&typeof $==="object"?$:{},U=g3(X,"project.goal"),z=(y3(U)?String(U).trim():"")||(Z.goal??"").trim(),Q=u3(z),J=Z.detailed??{},H={"project.goal":z||void 0,"human_context.what":Q.what,"human_context.where":Q.where,"human_context.who":Q.who},q=(O)=>{let L=H[O];if(L)return{value:L,source:"project goal",confidence:0.9};let V=O.startsWith("human_context.")?O.slice(14):"",W=V?J[V]:void 0;return W?{value:W.value,source:W.source,confidence:W.confidence}:void 0},_=v2.map((O,L)=>{let V={n:L+1,path:O.path,header:O.header,question:O.question},W=g3(X,O.path);if(y3(W))return{...V,value:String(W).trim(),status:"filled",seeded:!1};let I=q(O.path);if(I)return{...V,value:I.value,status:"seeded",seeded:!0,source:I.source,confidence:I.confidence};return{...V,value:"",status:"empty",seeded:!1}}),B=_.filter((O)=>O.status==="filled").length,G=_.filter((O)=>O.status==="seeded").length,Y=_.filter((O)=>O.status==="empty").length;return{version:f3,rows:_,filledCount:B,seededCount:G,emptyCount:Y,complete:Y===0}}function O1($){if($===null||$===void 0)return!0;if(typeof $==="string"){let Z=$.trim();return Z===""||G0(Z)}return!1}function VH($,Z){let X=$;for(let U of Z.split("."))if(X&&typeof X==="object"&&U in X)X=X[U];else return;return X}function k3($){if($==="project.goal")return!0;return l0.get($)?.category==="human"}function v3($,Z=O1){let X=[],U=[];for(let z of u0){let Q=VH($,z.path);if(Q==="slotignored")continue;if(!Z(Q))continue;(k3(z.path)?X:U).push(z.path)}return{human:X,sourceable:U}}function m3($,Z,X=O1){let U=v3(Z,X),z;if($>=100||U.human.length===0&&U.sourceable.length===0)z="done";else if(U.sourceable.length>0)z="can-source";else z="needs-human";let Q=z==="needs-human"?p2(U):[];return{status:z,score:$,gaps:U,ask:Q}}function p2($){return $.human.map((Z)=>({path:Z,question:m2(Z)}))}function OH($,Z={}){let X=Math.max(1,Z.maxRounds??5),U=Z.isEmpty??O1,z=[],Q=0;for(let H=0;H<=X;H++){let q=$.read();if(!q)return{status:"no-faf",score:0,rounds:Q,history:z,ask:[]};let _=$.score(q.yaml);z.push(_);let B=m3(_,q.data,U);if(B.status==="done")return{status:"done",score:_,rounds:Q,history:z,ask:[]};if(B.status==="needs-human")return{status:"needs-human",score:_,rounds:Q,history:z,ask:B.ask};if(z.length>=2&&_<=z[z.length-2])return B.gaps.human.length?{status:"needs-human",score:_,rounds:Q,history:z,ask:p2(B.gaps)}:{status:"stuck",score:_,rounds:Q,history:z,ask:[]};if(Q>=X)return{status:"capped",score:_,rounds:Q,history:z,ask:p2(B.gaps)};$.runAuto(),Q++}return{status:"capped",score:z[z.length-1]??0,rounds:Q,history:z,ask:[]}}import{createHash as l3}from"crypto";var l2="faf-bench/1",WH={"project.name":"What is the project's name?","project.goal":"What is the project's goal — what is it for?","project.main_language":"What is the primary programming language?","human_context.who":"Who is this project for?","human_context.what":"What are they building?","human_context.why":"Why does this project exist?","human_context.where":"Where does it run or get distributed?","human_context.when":"When — what is the project's timeline or stage?","human_context.how":"How is it built or used?"};function LH($,Z){return WH[$]??`What is the project's ${Z.replace(/\s*\(.*\)$/,"").toLowerCase()}?`}var d3=[["typescript","ts"],["javascript","js"],["python","py","python3"],["node","nodejs","node js","node.js"],["github actions","gh actions","actions"],["postgresql","postgres","pg"],["kubernetes","k8s"],["npm","npm registry"],["cloudflare workers","cf workers","workers"],["google cloud run","cloud run","gcp cloud run"]],I$=new Map;d3.forEach(($,Z)=>$.forEach((X)=>I$.set(X,Z)));var RH=new Set(["a","an","the","and","or","of","for","to","in","on","with","is","it","its","their","your","via","by","using","use","used"]);function W1($){return $.toLowerCase().replace(/[^a-z0-9\s.+#-]/g," ").replace(/\.(?=\s|$)/g," ").replace(/\s+/g," ").trim()}function p3($){return W1($).split(" ").filter((Z)=>Z&&!RH.has(Z))}function c3($,Z){let X=W1($),U=W1(Z);if(!X||!U)return!1;if(X===U)return!0;let z=I$.get(X);if(z!==void 0&&I$.get(U)===z)return!0;let Q=p3($);if(Q.length===0)return!1;let J=new Set(p3(Z));return Q.every((H)=>{if(J.has(H))return!0;let q=I$.get(H);return q!==void 0&&[...J].some((_)=>I$.get(_)===q)})}function IH($){let Z=T1($),X=o($),U=[],z={},Q=0;for(let q of f){if(Z.slots[q.path]!=="populated")continue;let _=Z8(X,q);if(typeof _!=="string")continue;let B=_.trim();if(!B||M$.has(B.toLowerCase()))continue;Q+=1,U.push({n:Q,path:q.path,question:LH(q.path,q.description)}),z[Q]=B}let J=JSON.stringify({v:l2,q:U.map((q)=>[q.path,q.question])}),H=l3("sha256").update(J).digest("hex").slice(0,12);return{version:l2,qsetHash:H,questions:U,answers:z}}function DH($){return{version:$.version,qsetHash:$.qsetHash,questions:$.questions}}function FH($,Z){let X=$.questions.map((z)=>{let Q=Z[String(z.n)]??Z[z.path]??"";return{n:z.n,path:z.path,ok:typeof Q==="string"&&Q.trim()!==""&&c3($.answers[z.n],Q)}}),U=$.questions.filter((z)=>!X[z.n-1].ok);return{correct:X.filter((z)=>z.ok).length,total:$.questions.length,misses:U,perQuestion:X}}function MH($,Z){let X=JSON.stringify({v:$.version,repo:Z??null,qset:$.qsetHash,protocol:$.protocol,cold:$.cold??null,faf:$.faf??null});return{projection:X,hash:l3("sha256").update(X).digest("hex")}}import{existsSync as SH,readdirSync as s3,readFileSync as EH}from"fs";import{join as i2,dirname as gH,extname as yH,resolve as fH}from"path";var d2={"package.json":{frameworks:["Node.js","JavaScript","TypeScript"],slots:{packageManager:"npm/yarn/pnpm",mainLanguage:"JavaScript/TypeScript"},priority:35,intelligence:"ultra-high"},"README.md":{frameworks:[],slots:{targetUser:"developers",coreProblem:"understanding project",missionPurpose:"project documentation"},priority:25,intelligence:"high"},"requirements.txt":{frameworks:["Python"],slots:{packageManager:"pip",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},Pipfile:{frameworks:["Python"],slots:{packageManager:"pipenv",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},"pyproject.toml":{frameworks:["Python"],slots:{mainLanguage:"Python",runtime:"Python",backend:"Python"},priority:36,intelligence:"ultra-high"},Gemfile:{frameworks:["Ruby","Rails"],slots:{packageManager:"bundler",mainLanguage:"Ruby"},priority:35,intelligence:"ultra-high"},"composer.json":{frameworks:["PHP","Laravel","Symfony"],slots:{packageManager:"composer",mainLanguage:"PHP"},priority:35,intelligence:"ultra-high"},"Cargo.toml":{frameworks:["Rust"],slots:{packageManager:"cargo",mainLanguage:"Rust",buildTool:"cargo"},priority:36,intelligence:"ultra-high"},"go.mod":{frameworks:["Go"],slots:{packageManager:"go modules",mainLanguage:"Go",buildTool:"go build"},priority:36,intelligence:"ultra-high"},"pubspec.yaml":{frameworks:["Dart"],slots:{packageManager:"pub",mainLanguage:"Dart"},priority:35,intelligence:"ultra-high"},"pom.xml":{frameworks:["Java","Spring","Maven"],slots:{packageManager:"maven",mainLanguage:"Java",buildTool:"maven"},priority:35,intelligence:"ultra-high"},"build.gradle":{frameworks:["Java","Kotlin","Spring","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Java/Kotlin",buildTool:"gradle"},priority:35,intelligence:"ultra-high"},"next.config.js":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.mjs":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.ts":{frameworks:["Next.js 13+"],slots:{framework:"Next.js 13+",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.js":{frameworks:["Nuxt 2"],slots:{framework:"Nuxt 2",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.ts":{frameworks:["Nuxt 3"],slots:{framework:"Nuxt 3",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"svelte.config.js":{frameworks:["SvelteKit"],slots:{framework:"SvelteKit",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"angular.json":{frameworks:["Angular"],slots:{framework:"Angular",buildTool:"Angular CLI",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manifest.json":{frameworks:["Chrome Extension","Browser Extension"],slots:{framework:"Chrome Extension",runtime:"Chrome/Browser",mainLanguage:"JavaScript",hosting:"Chrome Web Store",apiType:"Chrome APIs"},priority:35,intelligence:"ultra-high",confirmWith:["popup.html","background.js","content.js"]},"vue.config.js":{frameworks:["Vue"],slots:{framework:"Vue",buildTool:"Vue CLI",mainLanguage:"JavaScript"},priority:30,intelligence:"high"},"remix.config.js":{frameworks:["Remix"],slots:{framework:"Remix",runtime:"Node.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.js":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.ts":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"astro.config.mjs":{frameworks:["Astro"],slots:{framework:"Astro",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"redwood.toml":{frameworks:["RedwoodJS"],slots:{framework:"RedwoodJS",buildTool:"Webpack",mainLanguage:"JavaScript/TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"blitz.config.ts":{frameworks:["Blitz.js"],slots:{framework:"Blitz.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"qwik.config.ts":{frameworks:["Qwik"],slots:{framework:"Qwik",buildTool:"Vite",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manage.py":{frameworks:["Django"],slots:{framework:"Django",backend:"Django",mainLanguage:"Python",server:"Django",apiType:"Django Views"},priority:30,intelligence:"high"},artisan:{frameworks:["Laravel"],slots:{framework:"Laravel",backend:"Laravel",mainLanguage:"PHP",server:"PHP",apiType:"Laravel Routes"},priority:30,intelligence:"high"},"mix.exs":{frameworks:["Phoenix","Elixir"],slots:{framework:"Phoenix",backend:"Phoenix",mainLanguage:"Elixir",server:"BEAM"},priority:30,intelligence:"high"},"nest-cli.json":{frameworks:["NestJS"],slots:{framework:"NestJS",backend:"NestJS",mainLanguage:"TypeScript",server:"Node.js",apiType:"REST API"},priority:30,intelligence:"high"},"strapi.config.js":{frameworks:["Strapi"],slots:{backend:"Strapi",apiType:"REST API",database:"Required",server:"Node.js"},priority:30,intelligence:"high"},Dockerfile:{frameworks:["Docker"],slots:{hosting:"Docker",connection:"Containerized"},priority:30,intelligence:"high"},"docker-compose.yml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"docker-compose.yaml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"kubernetes.yml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"k8s.yaml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"vercel.json":{frameworks:["Vercel"],slots:{hosting:"Vercel",cicd:"Vercel"},priority:30,intelligence:"high"},"netlify.toml":{frameworks:["Netlify"],slots:{hosting:"Netlify",cicd:"Netlify"},priority:30,intelligence:"high"},"render.yaml":{frameworks:["Render"],slots:{hosting:"Render",cicd:"Render"},priority:30,intelligence:"high"},"fly.toml":{frameworks:["Fly.io"],slots:{hosting:"Fly.io",cicd:"Fly.io"},priority:30,intelligence:"high"},"railway.json":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"railway.toml":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"app.yaml":{frameworks:["Google App Engine"],slots:{hosting:"Google Cloud",cicd:"Google Cloud"},priority:30,intelligence:"high"},Procfile:{frameworks:["Heroku"],slots:{hosting:"Heroku",cicd:"Heroku"},priority:30,intelligence:"high"},"vite.config.js":{frameworks:["Vite"],slots:{buildTool:"Vite"},priority:25,intelligence:"medium"},"vite.config.ts":{frameworks:["Vite"],slots:{buildTool:"Vite",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"webpack.config.js":{frameworks:["Webpack"],slots:{buildTool:"Webpack"},priority:25,intelligence:"medium"},"rollup.config.js":{frameworks:["Rollup"],slots:{buildTool:"Rollup"},priority:25,intelligence:"medium"},"esbuild.config.js":{frameworks:["esbuild"],slots:{buildTool:"esbuild"},priority:25,intelligence:"medium"},"parcel.config.js":{frameworks:["Parcel"],slots:{buildTool:"Parcel"},priority:25,intelligence:"medium"},"snowpack.config.js":{frameworks:["Snowpack"],slots:{buildTool:"Snowpack"},priority:25,intelligence:"medium"},"tsconfig.json":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"jsconfig.json":{frameworks:["JavaScript"],slots:{mainLanguage:"JavaScript"},priority:20,intelligence:"medium"},"babel.config.js":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},".babelrc":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},"jest.config.js":{frameworks:["Jest"],slots:{cicd:"Jest"},priority:25,intelligence:"medium"},"jest.config.ts":{frameworks:["Jest"],slots:{cicd:"Jest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"vitest.config.ts":{frameworks:["Vitest"],slots:{cicd:"Vitest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"cypress.config.js":{frameworks:["Cypress"],slots:{cicd:"Cypress"},priority:25,intelligence:"medium"},"playwright.config.ts":{frameworks:["Playwright"],slots:{cicd:"Playwright",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"karma.conf.js":{frameworks:["Karma"],slots:{cicd:"Karma"},priority:20,intelligence:"medium"},"mocha.opts":{frameworks:["Mocha"],slots:{cicd:"Mocha"},priority:20,intelligence:"medium"},".rspec":{frameworks:["RSpec"],slots:{cicd:"RSpec",mainLanguage:"Ruby"},priority:25,intelligence:"medium"},"pytest.ini":{frameworks:["Pytest"],slots:{cicd:"Pytest",mainLanguage:"Python"},priority:25,intelligence:"medium"},"phpunit.xml":{frameworks:["PHPUnit"],slots:{cicd:"PHPUnit",mainLanguage:"PHP"},priority:25,intelligence:"medium"},"schema.prisma":{frameworks:["Prisma"],slots:{database:"Prisma ORM",connection:"Prisma"},priority:25,intelligence:"medium"},"drizzle.config.ts":{frameworks:["Drizzle"],slots:{database:"Drizzle ORM",connection:"Drizzle",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ormconfig.js":{frameworks:["TypeORM"],slots:{database:"TypeORM",connection:"TypeORM"},priority:25,intelligence:"medium"},"knexfile.js":{frameworks:["Knex.js"],slots:{database:"Knex.js",connection:"Knex.js"},priority:25,intelligence:"medium"},"sequelize.config.js":{frameworks:["Sequelize"],slots:{database:"Sequelize",connection:"Sequelize"},priority:25,intelligence:"medium"},"alembic.ini":{frameworks:["Alembic"],slots:{database:"Alembic",mainLanguage:"Python"},priority:25,intelligence:"medium"},".github/workflows":{frameworks:["GitHub Actions"],slots:{cicd:"GitHub Actions"},priority:25,intelligence:"medium"},".gitlab-ci.yml":{frameworks:["GitLab CI"],slots:{cicd:"GitLab CI"},priority:25,intelligence:"medium"},Jenkinsfile:{frameworks:["Jenkins"],slots:{cicd:"Jenkins"},priority:25,intelligence:"medium"},".circleci/config.yml":{frameworks:["CircleCI"],slots:{cicd:"CircleCI"},priority:25,intelligence:"medium"},".travis.yml":{frameworks:["Travis CI"],slots:{cicd:"Travis CI"},priority:25,intelligence:"medium"},"azure-pipelines.yml":{frameworks:["Azure DevOps"],slots:{cicd:"Azure DevOps"},priority:25,intelligence:"medium"},"bitbucket-pipelines.yml":{frameworks:["Bitbucket Pipelines"],slots:{cicd:"Bitbucket Pipelines"},priority:25,intelligence:"medium"},"tailwind.config.js":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS"},priority:20,intelligence:"medium"},"tailwind.config.ts":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"postcss.config.js":{frameworks:["PostCSS"],slots:{cssFramework:"PostCSS"},priority:20,intelligence:"medium"},"uno.config.ts":{frameworks:["UnoCSS"],slots:{cssFramework:"UnoCSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"styled-components.config.js":{frameworks:["styled-components"],slots:{cssFramework:"styled-components",uiLibrary:"styled-components"},priority:20,intelligence:"medium"},"emotion.config.js":{frameworks:["Emotion"],slots:{cssFramework:"Emotion",uiLibrary:"Emotion"},priority:20,intelligence:"medium"},"metro.config.js":{frameworks:["React Native"],slots:{framework:"React Native",mainLanguage:"JavaScript"},priority:25,intelligence:"medium"},"expo.config.js":{frameworks:["Expo"],slots:{framework:"React Native",buildTool:"Expo"},priority:25,intelligence:"medium"},"app.json":{frameworks:["React Native","Expo"],slots:{framework:"React Native"},priority:20,intelligence:"medium",confirmWith:["expo"]},"capacitor.config.ts":{frameworks:["Capacitor"],slots:{framework:"Capacitor",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ionic.config.json":{frameworks:["Ionic"],slots:{framework:"Ionic",uiLibrary:"Ionic"},priority:25,intelligence:"medium"},"nx.json":{frameworks:["Nx"],slots:{buildTool:"Nx"},priority:25,intelligence:"medium"},"turbo.json":{frameworks:["Turborepo"],slots:{buildTool:"Turborepo"},priority:25,intelligence:"medium"},"lerna.json":{frameworks:["Lerna"],slots:{buildTool:"Lerna"},priority:25,intelligence:"medium"},"rush.json":{frameworks:["Rush"],slots:{buildTool:"Rush"},priority:25,intelligence:"medium"},"pnpm-workspace.yaml":{frameworks:["pnpm workspaces"],slots:{packageManager:"pnpm",buildTool:"pnpm workspaces"},priority:25,intelligence:"medium"},"*.svelte":{frameworks:["Svelte","SvelteKit"],slots:{framework:"Svelte"},priority:15,intelligence:"low"},"*.vue":{frameworks:["Vue"],slots:{framework:"Vue"},priority:15,intelligence:"low"},"*.jsx":{frameworks:["React"],slots:{framework:"React",mainLanguage:"JavaScript"},priority:15,intelligence:"low"},"*.ts":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.tsx":{frameworks:["React","TypeScript"],slots:{framework:"React",mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.py":{frameworks:["Python"],slots:{mainLanguage:"Python"},priority:15,intelligence:"low"},"*.rb":{frameworks:["Ruby"],slots:{mainLanguage:"Ruby"},priority:15,intelligence:"low"},"*.php":{frameworks:["PHP"],slots:{mainLanguage:"PHP"},priority:15,intelligence:"low"},"*.java":{frameworks:["Java"],slots:{mainLanguage:"Java"},priority:15,intelligence:"low"},"*.kt":{frameworks:["Kotlin"],slots:{mainLanguage:"Kotlin"},priority:15,intelligence:"low"},"*.swift":{frameworks:["Swift"],slots:{mainLanguage:"Swift"},priority:15,intelligence:"low"},"*.go":{frameworks:["Go"],slots:{mainLanguage:"Go"},priority:15,intelligence:"low"},"*.rs":{frameworks:["Rust"],slots:{mainLanguage:"Rust"},priority:15,intelligence:"low"},"*.dart":{frameworks:["Flutter","Dart"],slots:{mainLanguage:"Dart"},priority:15,intelligence:"low"},"*.ex":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.exs":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.scala":{frameworks:["Scala"],slots:{mainLanguage:"Scala"},priority:15,intelligence:"low"},"*.clj":{frameworks:["Clojure"],slots:{mainLanguage:"Clojure"},priority:15,intelligence:"low"},"*.lua":{frameworks:["Lua"],slots:{mainLanguage:"Lua"},priority:15,intelligence:"low"},"*.r":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.R":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.jl":{frameworks:["Julia"],slots:{mainLanguage:"Julia"},priority:15,intelligence:"low"},"*.nim":{frameworks:["Nim"],slots:{mainLanguage:"Nim"},priority:15,intelligence:"low"},"*.zig":{frameworks:["Zig"],slots:{mainLanguage:"Zig"},priority:15,intelligence:"low"},"build.zig":{frameworks:["Zig"],slots:{packageManager:"Zig Package Manager",mainLanguage:"Zig",buildTool:"zig build",framework:"Zig",build:"zig build"},priority:35,intelligence:"ultra-high"},"openapi.json":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"openapi.yaml":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"swagger.json":{frameworks:["Swagger"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"graphql.schema":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},"schema.graphql":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},".graphqlconfig":{frameworks:["GraphQL"],slots:{apiType:"GraphQL"},priority:25,intelligence:"medium"},"redux.config.js":{frameworks:["Redux"],slots:{stateManagement:"Redux"},priority:20,intelligence:"medium"},"mobx.config.js":{frameworks:["MobX"],slots:{stateManagement:"MobX"},priority:20,intelligence:"medium"},"vuex.config.js":{frameworks:["Vuex"],slots:{stateManagement:"Vuex",framework:"Vue"},priority:20,intelligence:"medium"},"pinia.config.js":{frameworks:["Pinia"],slots:{stateManagement:"Pinia",framework:"Vue"},priority:20,intelligence:"medium"},"zustand.config.js":{frameworks:["Zustand"],slots:{stateManagement:"Zustand"},priority:20,intelligence:"medium"},".eslintrc.js":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".eslintrc.json":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".prettierrc":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},".prettierrc.json":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},"biome.json":{frameworks:["Biome"],slots:{},priority:15,intelligence:"low"},".editorconfig":{frameworks:["EditorConfig"],slots:{},priority:10,intelligence:"low"},"serverless.yml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"serverless.yaml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"sam.yaml":{frameworks:["AWS SAM"],slots:{hosting:"AWS Lambda",backend:"AWS SAM",cicd:"AWS SAM CLI"},priority:30,intelligence:"high"},"template.yaml":{frameworks:["AWS SAM","CloudFormation"],slots:{hosting:"AWS",backend:"AWS SAM/CloudFormation",cicd:"AWS"},priority:25,intelligence:"medium",confirmWith:["samconfig.toml"]},"amplify.yml":{frameworks:["AWS Amplify"],slots:{hosting:"AWS Amplify",backend:"AWS Amplify",cicd:"AWS Amplify"},priority:30,intelligence:"high"},Podfile:{frameworks:["CocoaPods","iOS"],slots:{packageManager:"CocoaPods",mainLanguage:"Swift/Objective-C",framework:"iOS Native"},priority:30,intelligence:"high"},"build.gradle.kts":{frameworks:["Gradle Kotlin DSL","Android","Kotlin"],slots:{packageManager:"Gradle",mainLanguage:"Kotlin",buildTool:"Gradle Kotlin DSL",framework:"Android"},priority:30,intelligence:"high"},"*.ipynb":{frameworks:["Jupyter","Python"],slots:{mainLanguage:"Python",framework:"Jupyter Notebook"},priority:30,intelligence:"high"},MLproject:{frameworks:["MLflow"],slots:{mainLanguage:"Python",framework:"MLflow",backend:"MLflow",cicd:"MLflow"},priority:30,intelligence:"high"},"dvc.yaml":{frameworks:["DVC","Data Version Control"],slots:{mainLanguage:"Python",framework:"DVC",cicd:"DVC Pipelines"},priority:30,intelligence:"high"},"dvc.lock":{frameworks:["DVC"],slots:{framework:"DVC"},priority:20,intelligence:"medium"},"wrangler.toml":{frameworks:["Cloudflare Workers","Cloudflare"],slots:{hosting:"Cloudflare Workers",backend:"Cloudflare Workers",runtime:"V8 Isolates"},priority:30,intelligence:"high"},"deno.json":{frameworks:["Deno"],slots:{runtime:"Deno",mainLanguage:"TypeScript",packageManager:"Deno"},priority:30,intelligence:"high"},"bun.lockb":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",mainLanguage:"TypeScript/JavaScript"},priority:30,intelligence:"high"},"codecov.yml":{frameworks:["Codecov"],slots:{cicd:"Codecov"},priority:25,intelligence:"high"},"dependabot.yml":{frameworks:["Dependabot","GitHub"],slots:{cicd:"Dependabot"},priority:25,intelligence:"high"},"renovate.json":{frameworks:["Renovate"],slots:{cicd:"Renovate"},priority:25,intelligence:"high"},Makefile:{frameworks:["Make","GNU Make"],slots:{buildTool:"Make"},priority:30,intelligence:"high"},"CMakeLists.txt":{frameworks:["CMake","C","C++"],slots:{buildTool:"CMake",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"meson.build":{frameworks:["Meson","C","C++"],slots:{buildTool:"Meson",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"*.c":{frameworks:["C"],slots:{mainLanguage:"C"},priority:30,intelligence:"high"},"*.cpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cc":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.h":{frameworks:["C","C++"],slots:{mainLanguage:"C/C++"},priority:25,intelligence:"high"},"*.hpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.hxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:20,intelligence:"medium"},".env":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.example":{frameworks:[],slots:{},priority:25,intelligence:"high"},".env.local":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.development":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.production":{frameworks:[],slots:{},priority:20,intelligence:"medium"},"skaffold.yaml":{frameworks:["Skaffold","Kubernetes"],slots:{hosting:"Kubernetes",cicd:"Skaffold"},priority:30,intelligence:"high"},"Chart.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes",backend:"Helm"},priority:30,intelligence:"high"},"values.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes"},priority:25,intelligence:"high",confirmWith:["Chart.yaml"]},"pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"Pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"terragrunt.hcl":{frameworks:["Terragrunt","Terraform"],slots:{hosting:"Cloud",cicd:"Terragrunt"},priority:30,intelligence:"high"},"ansible.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:30,intelligence:"high"},"playbook.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:25,intelligence:"high"},"*.cs":{frameworks:["C#",".NET","Unity"],slots:{mainLanguage:"C#"},priority:30,intelligence:"high"},"*.m":{frameworks:["Objective-C","iOS"],slots:{mainLanguage:"Objective-C"},priority:25,intelligence:"high"},".nvmrc":{frameworks:["Node.js","nvm"],slots:{runtime:"Node.js"},priority:25,intelligence:"high"},".tool-versions":{frameworks:["asdf"],slots:{},priority:25,intelligence:"high"},".ruby-version":{frameworks:["Ruby","rbenv"],slots:{mainLanguage:"Ruby",runtime:"Ruby"},priority:25,intelligence:"high"},".python-version":{frameworks:["Python","pyenv"],slots:{mainLanguage:"Python",runtime:"Python"},priority:25,intelligence:"high"},".dockerignore":{frameworks:["Docker"],slots:{},priority:20,intelligence:"medium"},".gitattributes":{frameworks:["Git"],slots:{},priority:15,intelligence:"low"},".npmrc":{frameworks:["npm","Node.js"],slots:{packageManager:"npm"},priority:20,intelligence:"medium"},"sonar-project.properties":{frameworks:["SonarQube","SonarCloud"],slots:{cicd:"SonarQube"},priority:25,intelligence:"high"},"*.fs":{frameworks:["F#",".NET"],slots:{mainLanguage:"F#"},priority:25,intelligence:"high"},"*.mm":{frameworks:["Objective-C++","iOS","macOS"],slots:{mainLanguage:"Objective-C++"},priority:25,intelligence:"high"},"build.zig.zon":{frameworks:["Zig"],slots:{mainLanguage:"Zig",packageManager:"Zig Package Manager",buildTool:"zig build"},priority:35,intelligence:"ultra-high"},"gleam.toml":{frameworks:["Gleam","BEAM","Erlang"],slots:{mainLanguage:"Gleam",runtime:"BEAM",packageManager:"Gleam"},priority:30,intelligence:"high"},"bunfig.toml":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",buildTool:"Bun"},priority:30,intelligence:"high"},"mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},".mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},"manifest.toml":{frameworks:["Flox","Nix"],slots:{},priority:25,intelligence:"high",confirmWith:[".flox"]},justfile:{frameworks:["Just"],slots:{buildTool:"Just"},priority:25,intelligence:"high"},".pre-commit-config.yaml":{frameworks:["pre-commit"],slots:{cicd:"pre-commit"},priority:25,intelligence:"high"},"CLAUDE.md":{frameworks:["Claude Code"],slots:{},priority:30,intelligence:"high",confirmWith:[".claude"]}};import{existsSync as i3,readFileSync as TH,readdirSync as KH}from"fs";import{join as c2}from"path";var k0={version:2,_doc:"SINGLE SOURCE of Dart/Flutter detection KNOWLEDGE (A+B hybrid, the Truth-is-faf-cli spec). faf-cli imports this directly; faf-python-sdk vendors a synced copy (phase 2); MCPs compose it. Bolster Dart/Flutter by editing THIS file. Logic stays in dart.ts. Refreshed 2026-08-01 (knowledge v2) — community receipt on top of 6.13.0 Dart Edition.",flutterDeps:["flutter"],mcpDeps:["dart_mcp","mcp_server","mcp_dart","dart_mcp_server","mcp","dart_mcpserver"],serverFrameworks:[["serverpod","Serverpod"],["dart_frog","Dart Frog"],["conduit","Conduit"],["angel3_framework","Angel3"],["alfred","Alfred"],["shelf","Shelf"],["jaspr","Jaspr"],["relic","Relic"]],stateManagement:[["flutter_riverpod","Riverpod"],["hooks_riverpod","Riverpod"],["riverpod_annotation","Riverpod"],["riverpod","Riverpod"],["flutter_bloc","Bloc"],["bloc","Bloc"],["provider","Provider"],["get","GetX"],["flutter_mobx","MobX"],["mobx","MobX"],["signals","Signals"],["flutter_hooks","Hooks"]],routing:[["go_router","go_router"],["auto_route","auto_route"],["beamer","Beamer"],["routemaster","Routemaster"]]};var AH=k0.flutterDeps,NH=k0.mcpDeps,wH=k0.serverFrameworks,bH=k0.stateManagement,CH=k0.routing;function jH($){let Z=new Set,X=!1;for(let U of $.split(`
215
+ `)){if(/^(dependencies|dev_dependencies|dependency_overrides):\s*$/.test(U)){X=!0;continue}if(/^\S/.test(U))X=!1;if(X){let z=U.match(/^\s{2}([a-zA-Z0-9_]+):/);if(z)Z.add(z[1].toLowerCase())}}return Z}function L1($){let Z=c2($,"pubspec.yaml");if(!i3(Z))return null;let X;try{X=TH(Z,"utf-8")}catch{return null}let U=jH(X),z=(T)=>U.has(T.toLowerCase()),Q=AH.some(z)||/^flutter:\s*$/m.test(X)||/\bsdk:\s*flutter\b/.test(X),J=NH.find(z),H=wH.find(([T])=>z(T)),q=bH.find(([T])=>z(T)),_=q?q[1]:"",B=CH.find(([T])=>z(T)),G=B?B[1]:"",Y=z("flutter_test")?"flutter_test":z("test")?"test":"",O=/^executables:\s*$/m.test(X),L=!1;try{L=KH(c2($,"bin")).some((T)=>T.endsWith(".dart"))}catch{}let V=O||L,W,I="",F;if(Q)if(I="Flutter",i3(c2($,"lib","main.dart"))||/^publish_to:\s*['"]?none\b/m.test(X))W="mobile",F="pubspec.yaml (Flutter app)";else W="library",F="pubspec.yaml (Flutter package)";else if(J)W="mcp",F=`pubspec.yaml + ${J} (Dart MCP server)`;else if(H)W="backend",I=H[1],F=`pubspec.yaml + ${H[0]} (Dart backend)`;else if(V)W="cli",F=O?"pubspec.yaml executables: (Dart CLI)":"pubspec.yaml + bin/*.dart (Dart CLI)";else W="library",F="pubspec.yaml (Dart package)";return{appType:W,isFlutter:Q,framework:I,stateManagement:_,routing:G,testing:Y,found:F}}var xH=new Set(["node_modules",".git","dist","build","venv",".venv","__pycache__","target","coverage",".next",".svelte-kit","vendor"]),hH=new Set([".py",".ts",".tsx",".js",".jsx",".svelte",".vue",".rb",".go",".rs",".php",".java",".kt",".swift"]),uH={mainLanguage:["project","main_language"],main_language:["project","main_language"],framework:["stack","frontend"],cssFramework:["stack","css_framework"],css:["stack","css_framework"],uiLibrary:["stack","ui_library"],ui_library:["stack","ui_library"],stateManagement:["stack","state_management"],state:["stack","state_management"],backend:["stack","backend"],apiType:["stack","api_type"],api:["stack","api_type"],runtime:["stack","runtime"],database:["stack","database"],db:["stack","database"],connection:["stack","connection"],hosting:["stack","hosting"],buildTool:["stack","build"],build_tool:["stack","build"],build:["stack","build"],packageManager:["stack","package_manager"],pkg_manager:["stack","package_manager"],cicd:["stack","cicd"]},kH=[["packageManager","package-manager"],["pkg_manager","package-manager"],["mainLanguage","language"],["main_language","language"],["framework","framework"],["backend","backend"],["database","database"],["db","database"],["cicd","ci-cd"],["hosting","hosting"],["buildTool","build"],["build_tool","build"],["build","build"],["runtime","runtime"],["cssFramework","css"],["css","css"],["uiLibrary","ui-library"],["stateManagement","state-management"],["apiType","api"],["api","api"]];function vH($,Z){for(let[X,U]of kH)if(X in $)return U;return Z.length>0?"framework":"config"}function mH($){try{let Z=JSON.parse(EH($,"utf-8")),X=["background","content_scripts","action","browser_action","permissions"].some((U)=>(U in Z));if(typeof Z.manifest_version==="number"&&X)return"chrome";return"other"}catch{return"other"}}function pH($){let Z=[],X=fH($),U=SH(i2($,".git"));for(let z=0;z<10;z++){let Q;try{Q=s3(X)}catch{break}for(let H of Q){let q=d2[H];if(!q)continue;if(H==="manifest.json"&&mH(i2(X,H))!=="chrome")continue;if(H==="pubspec.yaml"){let _=L1(X);if(_){let B={mainLanguage:"Dart",packageManager:"pub"};if(_.isFlutter){if(B.framework="Flutter",_.stateManagement)B.stateManagement=_.stateManagement}else if(_.appType==="backend"&&_.framework)B.backend=_.framework;else if(_.appType==="mcp")B.apiType="MCP";Z.push({slots:B,priority:q.priority,frameworks:_.isFlutter?["Flutter","Dart"]:["Dart"],fileName:H});continue}}Z.push({slots:q.slots||{},priority:q.priority,frameworks:q.frameworks,fileName:H})}if(U&&z===0)break;let J=gH(X);if(J===X)break;X=J}return Z}function lH($){let Z=[];for(let X of r3($,2,{count:0})){let U=d2[`*${X}`],z=U?.slots?.mainLanguage;if(z)Z.push({slots:{mainLanguage:z},priority:U.priority,frameworks:U.frameworks})}return Z}function a3($){let Z=[...pH($),...lH($)],X={},U={},z=new Set;for(let _ of Z){_.frameworks.forEach((B)=>z.add(B));for(let[B,G]of Object.entries(_.slots))if(G&&!G.includes("/")&&(!(B in X)||_.priority>U[B]))X[B]=G,U[B]=_.priority}let Q=new Map;for(let _ of Z){if(!_.fileName)continue;if(!Q.has(_.fileName))Q.set(_.fileName,{fileName:_.fileName,category:vH(_.slots,_.frameworks),priority:_.priority})}let J=[...Q.values()].sort((_,B)=>B.priority-_.priority||_.fileName.localeCompare(B.fileName)),H=[];if(X.mainLanguage)H.push(X.mainLanguage.toLowerCase());if(X.framework)H.push(X.framework.toLowerCase());let q=H.length>0?H.join("-"):"unknown-stack";return{slotFills:X,frameworks:[...z],confirmedCount:Z.length,discoveredFormats:J,stackSignature:q}}function s2($){let{slotFills:Z}=a3($),X={};for(let[U,z]of Object.entries(Z)){let Q=uH[U];if(!Q||!z)continue;let[J,H]=Q;if(J==="project")(X.project??={})[H]=z;else(X.stack??={})[H]=z}return X}function r3($,Z,X){let U=new Set;if(Z<0||X.count>400)return U;let z;try{z=s3($,{withFileTypes:!0})}catch{return U}for(let Q of z){if(X.count++>400)break;if(!Q.isDirectory()){let J=yH(Q.name);if(hH.has(J))U.add(J);continue}if(xH.has(Q.name)||Q.name.startsWith("."))continue;for(let J of r3(i2($,Q.name),Z-1,X))U.add(J)}return U}import{existsSync as n3,readFileSync as o3}from"fs";import{join as t3}from"path";var x=($,Z,X)=>({value:$,source:Z,confidence:X});function e3($){let Z=dH($),X=cH($),U={},z=(Q,J)=>{if(J)U[Q]=J};return z("what",iH(Z,X)),z("who",sH(X)),z("why",aH(X)),z("where",rH(Z,X)),z("when",nH(X)),z("how",oH(Z,X)),U}function a2($){let Z=e3($),X={};return Object.keys(Z).forEach((U)=>{let z=Z[U];if(z)X[U]=z.value}),X}function dH($){let Z=t3($,"package.json");if(!n3(Z))return null;try{return JSON.parse(o3(Z,"utf-8"))}catch{return null}}function cH($){let Z=t3($,"README.md");if(!n3(Z))return"";let X;try{X=o3(Z,"utf-8")}catch{return""}return X.split(`
216
+ `).filter((U)=>!/^\s*\[!\[/.test(U)&&!/^\s*!\[/.test(U)).join(`
217
+ `).replace(/<[^>]+>/g,"").replace(/!\[[^\]]*\]\([^)]*\)/g,"").trim()}function D0($){return $.replace(/\s+/g," ").replace(/[#*`>]/g,"").trim().slice(0,280)}function v0($,Z){let X=new RegExp(`##?\\s+(${Z})\\s*\\n+([\\s\\S]+?)(?:\\n\\n|\\n##?|$)`,"i"),U=$.match(X);return U&&U[2]&&U[2].trim().length>20?{body:D0(U[2]),heading:U[1].trim()}:null}function D$($,Z,X=30){for(let U of Z){let z=$.match(U);if(z&&z[1]&&z[1].trim().length>=X)return D0(z[1])}return null}function iH($,Z){if($?.description&&$.description.length>20)return x(D0($.description),"package.json:description",0.95);let X=v0(Z,"Purpose|What|About|Overview|Description");if(X)return x(X.body,`README:## ${X.heading}`,0.8);let U=Z.split(/\n\s*\n/).map((Q)=>Q.trim()).find((Q)=>Q.length>30&&!Q.startsWith("#"));if(U)return x(D0(U),"README:first-paragraph",0.5);let z=D$(Z,[/(?:core|main|primary)\s+(?:problem|challenge)(?:\s+is)?\s*:?\s*([^.\n]{30,})/i,/solves?\s+(?:the\s+)?(?:problem\s+of\s+)?([^.\n]{30,})/i]);return z?x(z,"README:problem-heuristic",0.6):null}function sH($){let Z=v0($,"Audience|Who|Who is this for|Who it.s for");if(Z)return x(Z.body,`README:## ${Z.heading}`,0.8);let X=D$($,[/\b(?:designed|built|made)\s+for\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i,/\bfor\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i],8);return X?x(X,"README:audience-heuristic",0.6):null}function aH($){let Z=v0($,"Why|Mission|Motivation|Rationale|Vision");if(Z)return x(Z.body,`README:## ${Z.heading}`,0.8);let X=D$($,[/(?:our\s+|the\s+)?(?:mission|purpose|goal)\s+is\s+([^.\n]{30,})/i,/\b(?:mission|purpose|goal)\s*:\s*([^.\n]{30,})/i,/(?:built|created|designed)\s+(?:because|to)\s+([^.\n]{30,})/i]);return X?x(X,"README:mission-heuristic",0.6):null}function rH($,Z){let X=typeof $?.repository==="string"?$.repository:$?.repository?.url;if(X)return x(D0(X.replace(/^git\+/,"").replace(/\.git$/,"")),"package.json:repository",0.95);if($?.homepage)return x(D0($.homepage),"package.json:homepage",0.9);let U=D$(Z,[/\b(?:deployed|hosted|available|published)\s+(?:on|at|via)\s+([^.\n]{3,80})/i],3);return U?x(U,"README:deploy-heuristic",0.6):null}function nH($){let Z=v0($,"Timeline|Status|Release|Roadmap");if(Z)return x(Z.body,`README:## ${Z.heading}`,0.8);let X=D$($,[/\b(production\s+since\s+[^.\n]{4,60})/i,/\b((?:in\s+)?(?:production|beta|alpha|development)\s+since\s+[^.\n]{4,60})/i,/\bsince\s+((?:[A-Z][a-z]+\s+)?\d{4}[^.\n]{0,40})/],4);return X?x(X,"README:since-heuristic",0.6):null}function oH($,Z){let X=$?.scripts?Object.keys($.scripts):[],U=["start","dev","build"].filter((J)=>X.includes(J));if(U.length)return x(D0(U.map((J)=>`npm run ${J}`).join(", ")),"package.json:scripts",0.9);let z=v0(Z,"Usage|Getting Started|Install|Installation|Quick Start");if(z)return x(z.body,`README:## ${z.heading}`,0.8);let Q=v0(Z,"Architecture|Approach|How it works|Methodology|How");return Q?x(Q.body,`README:## ${Q.heading}`,0.7):null}var $6="3.0";import{existsSync as P,readFileSync as t,readdirSync as X6}from"fs";import{join as M}from"path";var Z6=[{name:"Next.js",slug:"nextjs",category:"frontend",signals:[{type:"dependency",key:"next"},{type:"file",pattern:"next.config.*"}]},{name:"React",slug:"react",category:"frontend",signals:[{type:"dependency",key:"react"}]},{name:"SvelteKit",slug:"sveltekit",category:"frontend",signals:[{type:"dependency",key:"@sveltejs/kit"},{type:"file",pattern:"svelte.config.*"}]},{name:"Svelte",slug:"svelte",category:"frontend",signals:[{type:"dependency",key:"svelte"},{type:"devDependency",key:"svelte"}]},{name:"Vue.js",slug:"vue",category:"frontend",signals:[{type:"dependency",key:"vue"}]},{name:"Nuxt",slug:"nuxt",category:"frontend",signals:[{type:"dependency",key:"nuxt"},{type:"file",pattern:"nuxt.config.*"}]},{name:"Angular",slug:"angular",category:"frontend",signals:[{type:"dependency",key:"@angular/core"},{type:"file",pattern:"angular.json"}]},{name:"Astro",slug:"astro",category:"frontend",signals:[{type:"dependency",key:"astro"},{type:"file",pattern:"astro.config.*"}]},{name:"Solid",slug:"solid",category:"frontend",signals:[{type:"dependency",key:"solid-js"}]},{name:"Remix",slug:"remix",category:"frontend",signals:[{type:"dependency",key:"@remix-run/react"}]},{name:"Gatsby",slug:"gatsby",category:"frontend",signals:[{type:"dependency",key:"gatsby"},{type:"file",pattern:"gatsby-config.*"}]},{name:"Qwik",slug:"qwik",category:"frontend",signals:[{type:"dependency",key:"@builder.io/qwik"}]},{name:"Vercel (SvelteKit)",slug:"adapter-vercel",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-vercel"},{type:"devDependency",key:"@sveltejs/adapter-vercel"}]},{name:"Node (SvelteKit)",slug:"adapter-node",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-node"},{type:"devDependency",key:"@sveltejs/adapter-node"}]},{name:"Static (SvelteKit)",slug:"adapter-static",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-static"},{type:"devDependency",key:"@sveltejs/adapter-static"}]},{name:"Cloudflare (SvelteKit)",slug:"adapter-cloudflare",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-cloudflare"},{type:"devDependency",key:"@sveltejs/adapter-cloudflare"}]},{name:"Netlify (SvelteKit)",slug:"adapter-netlify",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-netlify"},{type:"devDependency",key:"@sveltejs/adapter-netlify"}]},{name:"Tailwind CSS",slug:"tailwind",category:"css",signals:[{type:"dependency",key:"tailwindcss"},{type:"devDependency",key:"tailwindcss"},{type:"file",pattern:"tailwind.config.*"}]},{name:"Bootstrap",slug:"bootstrap",category:"css",signals:[{type:"dependency",key:"bootstrap"}]},{name:"Styled Components",slug:"styled-components",category:"css",signals:[{type:"dependency",key:"styled-components"}]},{name:"shadcn/ui",slug:"shadcn",category:"ui",signals:[{type:"file",pattern:"components.json"},{type:"dependency",key:"@radix-ui/react-dialog"}]},{name:"Material UI",slug:"mui",category:"ui",signals:[{type:"dependency",key:"@mui/material"}]},{name:"Chakra UI",slug:"chakra",category:"ui",signals:[{type:"dependency",key:"@chakra-ui/react"}]},{name:"Ant Design",slug:"antd",category:"ui",signals:[{type:"dependency",key:"antd"}]},{name:"Redux",slug:"redux",category:"state",signals:[{type:"dependency",key:"@reduxjs/toolkit"}]},{name:"Zustand",slug:"zustand",category:"state",signals:[{type:"dependency",key:"zustand"}]},{name:"Jotai",slug:"jotai",category:"state",signals:[{type:"dependency",key:"jotai"}]},{name:"Pinia",slug:"pinia",category:"state",signals:[{type:"dependency",key:"pinia"}]},{name:"Express",slug:"express",category:"backend",signals:[{type:"dependency",key:"express"}]},{name:"Fastify",slug:"fastify",category:"backend",signals:[{type:"dependency",key:"fastify"}]},{name:"Hono",slug:"hono",category:"backend",signals:[{type:"dependency",key:"hono"}]},{name:"Elysia",slug:"elysia",category:"backend",signals:[{type:"dependency",key:"elysia"}]},{name:"NestJS",slug:"nestjs",category:"backend",signals:[{type:"dependency",key:"@nestjs/core"}]},{name:"Koa",slug:"koa",category:"backend",signals:[{type:"dependency",key:"koa"}]},{name:"Django",slug:"django",category:"backend",signals:[{type:"file",pattern:"manage.py"},{type:"file",pattern:"settings.py"}]},{name:"Flask",slug:"flask",category:"backend",signals:[{type:"file",pattern:"app.py"}]},{name:"FastAPI",slug:"fastapi",category:"backend",signals:[{type:"file",pattern:"main.py"}]},{name:"Rails",slug:"rails",category:"backend",signals:[{type:"file",pattern:"Gemfile"},{type:"file",pattern:"config/routes.rb"}]},{name:"Spring Boot",slug:"spring",category:"backend",signals:[{type:"file",pattern:"pom.xml"},{type:"file",pattern:"build.gradle"}]},{name:"Prisma",slug:"prisma",category:"database",signals:[{type:"dependency",key:"prisma"},{type:"devDependency",key:"prisma"},{type:"file",pattern:"prisma/schema.prisma"}]},{name:"Drizzle",slug:"drizzle",category:"database",signals:[{type:"dependency",key:"drizzle-orm"},{type:"file",pattern:"drizzle.config.*"}]},{name:"TypeORM",slug:"typeorm",category:"database",signals:[{type:"dependency",key:"typeorm"}]},{name:"Mongoose",slug:"mongoose",category:"database",signals:[{type:"dependency",key:"mongoose"}]},{name:"Vite",slug:"vite",category:"build",signals:[{type:"dependency",key:"vite"},{type:"devDependency",key:"vite"},{type:"file",pattern:"vite.config.*"}]},{name:"webpack",slug:"webpack",category:"build",signals:[{type:"dependency",key:"webpack"},{type:"devDependency",key:"webpack"},{type:"file",pattern:"webpack.config.*"}]},{name:"esbuild",slug:"esbuild",category:"build",signals:[{type:"dependency",key:"esbuild"},{type:"devDependency",key:"esbuild"}]},{name:"Turbopack",slug:"turbopack",category:"build",signals:[{type:"file",pattern:"turbo.json"}]},{name:"Jest",slug:"jest",category:"testing",signals:[{type:"devDependency",key:"jest"},{type:"file",pattern:"jest.config.*"}]},{name:"Vitest",slug:"vitest",category:"testing",signals:[{type:"devDependency",key:"vitest"}]},{name:"Playwright",slug:"playwright",category:"testing",signals:[{type:"devDependency",key:"@playwright/test"},{type:"file",pattern:"playwright.config.*"}]},{name:"Cypress",slug:"cypress",category:"testing",signals:[{type:"devDependency",key:"cypress"},{type:"file",pattern:"cypress.config.*"}]},{name:"Turborepo",slug:"turborepo",category:"monorepo",signals:[{type:"devDependency",key:"turbo"},{type:"file",pattern:"turbo.json"}]},{name:"Nx",slug:"nx",category:"monorepo",signals:[{type:"devDependency",key:"nx"},{type:"file",pattern:"nx.json"}]},{name:"Lerna",slug:"lerna",category:"monorepo",signals:[{type:"devDependency",key:"lerna"},{type:"file",pattern:"lerna.json"}]},{name:"MCP SDK",slug:"mcp",category:"ai",signals:[{type:"dependency",key:"@modelcontextprotocol/sdk"}]},{name:"Anthropic SDK",slug:"anthropic",category:"ai",signals:[{type:"dependency",key:"@anthropic-ai/sdk"}]},{name:"OpenAI SDK",slug:"openai",category:"ai",signals:[{type:"dependency",key:"openai"}]},{name:"LangChain",slug:"langchain",category:"ai",signals:[{type:"dependency",key:"langchain"}]},{name:"Vercel",slug:"vercel",category:"hosting",signals:[{type:"file",pattern:"vercel.json"}]},{name:"Netlify",slug:"netlify",category:"hosting",signals:[{type:"file",pattern:"netlify.toml"}]},{name:"Docker",slug:"docker",category:"hosting",signals:[{type:"file",pattern:"Dockerfile"},{type:"file",pattern:"docker-compose.yml"}]},{name:"Cloudflare Workers",slug:"cloudflare",category:"hosting",signals:[{type:"file",pattern:"wrangler.toml"},{type:"dependency",key:"wrangler"}]},{name:"GitHub Actions",slug:"github-actions",category:"cicd",signals:[{type:"file",pattern:".github/workflows/*.yml"}]},{name:"Commander.js",slug:"commander",category:"cli",signals:[{type:"dependency",key:"commander"}]}];function tH($){let Z=M($,"Cargo.toml");if(!P(Z))return null;try{let U=t(Z,"utf-8").match(/^\s*\[package\][\s\S]*?^\s*name\s*=\s*"([^"]+)"/m);return U?U[1]:null}catch{return null}}function eH($){let Z=M($,"Cargo.toml");if(!P(Z))return!1;try{let X=t(Z,"utf-8");return/^\s*\[\[bin\]\]/m.test(X)}catch{return!1}}function $q($,Z){if(Z?.keywords?.some((U)=>/^sdk(?:\s|-|$)|-sdk$/i.test(U)))return'package.json keywords contains "sdk"';if(Z?.name&&/(?:^|[-_/])sdk(?:[-_/]|$)/i.test(Z.name))return`package.json name "${Z.name}" → sdk`;let X=tH($);if(X&&/(?:^|[-_])sdk(?:[-_]|$)/i.test(X))return`Cargo.toml name "${X}" → sdk`;return null}function Zq($){let Z=["manifest.json","public/manifest.json","src/manifest.json","app/manifest.json","extension/manifest.json","dist/manifest.json"];for(let X of Z){let U=M($,X);if(!P(U))continue;try{let z=JSON.parse(t(U,"utf-8"));if(typeof z.manifest_version==="number")return`${X} manifest_version ${z.manifest_version} (browser extension)`}catch{}}return null}function Xq($){let Z=/(numpy|pandas|jupyter|scikit-learn|sklearn|pytorch|tensorflow|matplotlib|scipy)/i,X=M($,"pyproject.toml");if(P(X))try{let Q=t(X,"utf-8").match(Z);if(Q)return`pyproject.toml depends on ${Q[1]}`}catch{}let U=M($,"requirements.txt");if(P(U))try{let Q=t(U,"utf-8").match(Z);if(Q)return`requirements.txt contains ${Q[1]}`}catch{}return null}function Uq($,Z){let X=["react-native","expo","@capacitor/core","@ionic/core"];if(Z){for(let U of X)if(Z.dependencies?.[U]||Z.devDependencies?.[U])return`${U} dependency`}if(P(M($,"ios"))&&P(M($,"android")))return"ios/ + android/ dirs";return null}function zq($,Z){let X=M($,"Cargo.toml");if(P(X))try{let z=t(X,"utf-8");if(/crate-type\s*=\s*\[[^\]]*"cdylib"/.test(z))return'Cargo.toml crate-type = ["cdylib"]';if(/wasm-bindgen|wasm-pack/i.test(z))return"Cargo.toml wasm-bindgen/wasm-pack"}catch{}let U=M($,"build.zig");if(P(U))try{let z=t(U,"utf-8");if(/\.wasm\b|wasm32|setOutputFormat\(\.wasm/i.test(z))return"build.zig wasm target"}catch{}if(Z?.keywords?.some((z)=>/^wasm(?:-|$)|webassembly/i.test(z)))return'package.json keywords contains "wasm"';return null}function Qq($,Z){if(!P(M($,"index.html")))return null;if(Z?.dependencies||Z?.devDependencies){let X={...Z.dependencies??{},...Z.devDependencies??{}};if(["react","vue","svelte","@sveltejs/kit","next","nuxt","astro","gatsby","solid-js","qwik"].some((z)=>X[z]))return null}return"index.html (vanilla, no frontend framework)"}function Jq($,Z){if(Z?.name&&/specification|^@.*\/spec/i.test(Z.name))return`package name "${Z.name}" → documentation`;if(Z?.keywords?.some((X)=>/^(specification|format-spec|standard)$/i.test(X)))return'package keywords contains "specification"';if(Z?.bin)return null;if(Z?.files&&Z.files.length>0){let X=/^(dist|src|lib|build|bin)(\/|$)|\/(dist|src|lib|build|bin)(\/|$)|(\.|\/)(js|ts|tsx|jsx|mjs|cjs|py|rs|go)$/,U=Z.files.some((Q)=>X.test(Q)),z=Z.files.some((Q)=>/\.(md|MD)$|examples?\//.test(Q)||Q==="README.md"||Q==="docs"||Q==="docs/");if(!U&&z)return"package.json files = docs/examples only (no source)"}return null}function Hq($,Z,X){let U=X.find((z)=>z.slug==="astro"||z.slug==="gatsby");if(U)return`${U.name} (static-site framework)`;if(Z?.keywords?.some((z)=>/^(website|marketing|landing|brochure|portfolio)$/i.test(z)))return'package keywords contains "website"/"marketing"/"landing"';return null}function qq($,Z){if(!Z)return null;let X={...Z.dependencies??{},...Z.devDependencies??{}},U=["@clerk/nextjs","@clerk/clerk-react","next-auth","@auth/core","auth0","@auth0/nextjs-auth0"],z=["stripe","@stripe/stripe-js","lemonsqueezy"],Q=U.some((H)=>X[H]),J=z.some((H)=>X[H]);if(Q&&J)return"auth + payment dependencies";return null}function _q($,Z,X){if(Z?.keywords?.some((Q)=>/mcpaas/i.test(Q)))return'package keywords contains "mcpaas"';if(Z?.name&&/mcpaas/i.test(Z.name))return`package name "${Z.name}" → mcpaas`;let U=X.some((Q)=>Q.slug==="mcp"),z=X.some((Q)=>Q.category==="database");if(U&&z&&Z?.dependencies&&Object.keys(Z.dependencies).length>10)return"MCP + database + complex deps (platform shape)";return null}function Gq($,Z){if(!Z?.private)return null;if(!(!!Z.workspaces||P(M($,"pnpm-workspace.yaml"))))return null;return"private workspace + multi-package"}function F0($){let Z=M($,"package.json");if(!P(Z))return null;try{return JSON.parse(t(Z,"utf-8"))}catch{return null}}function Yq($,Z){if(!Z.includes("*"))return P(M($,Z));let X=Z.split("/");if(X.length===1){let H=Z.split("*")[0];try{return X6($).some((q)=>q.startsWith(H))}catch{return!1}}let U=M($,...X.slice(0,-1)),z=X[X.length-1],Q=z.split("*")[0],J=z.split("*")[1]||"";try{return X6(U).some((H)=>H.startsWith(Q)&&H.endsWith(J))}catch{return!1}}function Bq($,Z,X){switch($.type){case"dependency":return!!Z?.dependencies?.[$.key];case"devDependency":return!!Z?.devDependencies?.[$.key];case"file":return Yq(X,$.pattern);default:return!1}}function r2($){let Z=F0($);return Z6.map((X)=>{let z=X.signals.filter((Q)=>Bq(Q,Z,$)).length/X.signals.length;return{name:X.name,slug:X.slug,category:X.category,confidence:z}}).filter((X)=>X.confidence>0).sort((X,U)=>U.confidence-X.confidence)}function U6($){let Z=F0($);if(Z?.devDependencies?.typescript||Z?.dependencies?.typescript)return"TypeScript";if(P(M($,"tsconfig.json")))return"TypeScript";if(P(M($,"Cargo.toml")))return"Rust";if(P(M($,"go.mod")))return"Go";if(P(M($,"pyproject.toml"))||P(M($,"setup.py")))return"Python";if(P(M($,"Gemfile")))return"Ruby";if(P(M($,"pom.xml"))||P(M($,"build.gradle")))return"Java";if(P(M($,"Package.swift")))return"Swift";if(P(M($,"build.zig")))return"Zig";if(P(M($,"pubspec.yaml")))return"Dart";if(Z)return"JavaScript";return"Unknown"}function z6($){let Z=F0($),X=r2($),U=[],z=Jq($,Z);if(z)return U.push(z),{type:"documentation",found:U};let Q=$q($,Z);if(Q)return U.push(Q),{type:"sdk",found:U};let J=Zq($);if(J)return U.push(J),{type:"extension",found:U};let H=_q($,Z,X);if(H)return U.push(H),{type:"mcpaas",found:U};let q=qq($,Z);if(q)return U.push(q),{type:"saas",found:U};let _=zq($,Z);if(_)return U.push(_),{type:"wasm",found:U};let B=L1($);if(B)return U.push(B.found),{type:B.appType,found:U};let G=Uq($,Z);if(G)return U.push(G),{type:"mobile",found:U};if(X.some((R)=>R.slug==="mcp"))return U.push("MCP SDK signal"),{type:"mcp",found:U};if(Z?.bin)return U.push("package.json bin"),{type:"cli",found:U};if(eH($))return U.push("Cargo.toml [[bin]]"),{type:"cli",found:U};if(P(M($,"build.zig"))){if(U.push("build.zig"),P(M($,"src/main.zig")))return U.push("src/main.zig"),{type:"cli",found:U};if(P(M($,"src/root.zig")))return U.push("src/root.zig"),{type:"library",found:U}}let O=X.some((R)=>R.slug==="svelte"||R.slug==="sveltekit");if(Z?.private===!0&&(P(M($,"pnpm-workspace.yaml"))||Z?.workspaces!==void 0)&&O)return U.push("private workspace","Svelte"),{type:"framework",found:U};if(O)return U.push("Svelte/SvelteKit"),{type:"svelte",found:U};let V=X.some((R)=>R.category==="frontend"),W=X.some((R)=>R.category==="backend");if(Z?.private&&(Z.workspaces||P(M($,"pnpm-workspace.yaml")))&&V&&W)return U.push("private workspace + frontend + backend frameworks"),{type:"enterprise",found:U};let I=Gq($,Z);if(I)return U.push(I),{type:"monorepo-root",found:U};let F=Hq($,Z,X);if(F)return U.push(F),{type:"website",found:U};if(X.some((R)=>R.slug==="nextjs"||R.slug==="nuxt"))return U.push(X.find((R)=>R.slug==="nextjs")?"Next.js":"Nuxt"),{type:"fullstack",found:U};let A=X.some((R)=>R.category==="frontend"),K=X.some((R)=>R.category==="backend");if(A&&K)return U.push("frontend framework","backend framework"),{type:"fullstack",found:U};if(A)return U.push("frontend framework"),{type:"frontend",found:U};if(K)return U.push("backend framework"),{type:"backend",found:U};let N=Xq($);if(N)return U.push(N),{type:"data-science",found:U};let C=Qq($,Z);if(C)return U.push(C),{type:"html",found:U};if(Z?.main&&!Z?.bin)return U.push("package.json main (no bin)"),{type:"library",found:U};return U.push("no classifying signals — fallback"),{type:"library",found:U}}function Q6($){if(P(M($,"bunfig.toml")))return"Bun";if(P(M($,"deno.json"))||P(M($,"deno.jsonc")))return"Deno";if(F0($))return"Node.js";if(P(M($,"Cargo.toml")))return"Rust";if(P(M($,"go.mod")))return"Go";if(P(M($,"pubspec.yaml")))return"Dart";return"Unknown"}function J6($){if(P(M($,"pubspec.yaml")))return"pub";if(P(M($,"bun.lockb"))||P(M($,"bun.lock")))return"bun";if(P(M($,"pnpm-lock.yaml")))return"pnpm";if(P(M($,"yarn.lock")))return"yarn";if(P(M($,"package-lock.json")))return"npm";return"npm"}function H6($){if(P(M($,".github/workflows")))return"GitHub Actions";if(P(M($,".gitlab-ci.yml")))return"GitLab CI";if(P(M($,".circleci")))return"CircleCI";if(P(M($,"Jenkinsfile")))return"Jenkins";return null}function q6($){if(P(M($,"vercel.json")))return"Vercel";if(P(M($,"netlify.toml")))return"Netlify";if(P(M($,"wrangler.toml")))return"Cloudflare";if(P(M($,"Dockerfile")))return"Docker";if(P(M($,"fly.toml")))return"Fly.io";if(P(M($,"render.yaml")))return"Render";return null}function _6($){let Z=M($,"svelte.config.js");if(!P(Z))return null;try{let U=t(Z,"utf-8").match(/@sveltejs\/adapter-(\w+)/);if(U){let z=U[1];switch(z){case"vercel":return"Vercel";case"node":return"Node";case"static":return"Static";case"cloudflare":return"Cloudflare";case"netlify":return"Netlify";case"auto":return"Auto";default:return z}}return null}catch{return null}}function G6($){let Z=F0($);if(Z?.devDependencies?.vite||Z?.dependencies?.vite)return"Vite";if(Z?.devDependencies?.webpack||Z?.dependencies?.webpack)return"webpack";if(Z?.devDependencies?.esbuild||Z?.dependencies?.esbuild)return"esbuild";if(P(M($,"tsconfig.json"))&&Z?.devDependencies?.typescript)return"TypeScript (tsc)";return null}function Y6($){return["package.json","Cargo.toml","pyproject.toml","go.mod","build.zig","build.zig.zon","src/index.ts","src/index.js","src/main.ts","src/cli.ts","src/main.rs","src/lib.rs","src/main.zig","src/root.zig","src/__init__.py","main.py","__main__.py","main.go","cmd/main.go","README.md","SPECIFICATION.md","BINARY-FORMAT.md","tsconfig.json","wrangler.toml","vercel.json"].filter((X)=>P(M($,X)))}function B6($,Z){let X={};if(Z?.scripts){for(let U of["build","test","lint","dev","start"])if(Z.scripts[U]){let z=P(M($,"bun.lock"))||P(M($,"bun.lockb"))?"bun run":"npm run";X[U]=`${z} ${U}`}}if(P(M($,"Cargo.toml"))){if(!X.build)X.build="cargo build --release";if(!X.test)X.test="cargo test";if(!X.lint)X.lint="cargo clippy"}if(P(M($,"build.zig"))){if(!X.build)X.build="zig build";if(!X.test)X.test="zig build test"}if(P(M($,"go.mod"))){if(!X.build)X.build="go build ./...";if(!X.test)X.test="go test ./..."}if(P(M($,"pyproject.toml"))||P(M($,"pytest.ini"))){if(!X.test)X.test="pytest"}return X}function V6($,Z,X,U){let z=[];if(U&&U!=="Unknown")z.push(U);let Q=new Set(["frontend","backend","database","build","css","state","monorepo"]);for(let J of X)if(Q.has(J.category))z.push(J.name);if(P(M($,"bunfig.toml")))z.push("Bun");else if(P(M($,"deno.json"))||P(M($,"deno.jsonc")))z.push("Deno");if(z.length<3&&Z?.dependencies){let J=Object.keys(Z.dependencies).slice(0,5);for(let H of J)if(!z.some((q)=>q.toLowerCase().includes(H.toLowerCase())))z.push(H)}return z}function O6($){let Z=F0($),X=r2($),U=U6($),z=z6($),Q=z.type,J=Q6($),H=J6($),q=H6($),_=q6($),B=G6($),G=X.find((j)=>j.category==="frontend"),Y=X.find((j)=>j.category==="css"),O=X.find((j)=>j.category==="ui"),L=X.find((j)=>j.category==="state"),V=X.find((j)=>j.category==="backend"),W=X.find((j)=>j.category==="database"),I=P0[Q]||P0.library,F=Q==="framework",T=X.some((j)=>j.slug==="svelte"||j.slug==="sveltekit"),A=F&&T?"svelte":F?null:null,K=Q==="svelte"||A==="svelte",N=K?_6($):null,C=K&&X.some((j)=>j.slug==="sveltekit"),R=new Set(["css_framework","ui_library","database","connection","hosting"]),w={},d=f.filter((j)=>j.path.startsWith("stack."));for(let j of d){let S=j.path.replace("stack.","");if(!I.includes(j.category)){w[S]="slotignored";continue}if(F&&R.has(S)){w[S]="slotignored";continue}switch(S){case"frontend":w[S]=G?.name??(Q==="cli"?"CLI":"");break;case"css_framework":w[S]=Y?.name??"";break;case"ui_library":w[S]=O?.name??"";break;case"state_management":w[S]=K?L?.name??"Runes":L?.name??"";break;case"backend":w[S]=K?C?"SvelteKit":V?.name??"":V?.name??"";break;case"api_type":w[S]=C?"Server Routes":"";break;case"runtime":w[S]=J!=="Unknown"?J:"";break;case"database":w[S]=W?.name??"";break;case"connection":w[S]=W?.name??"";break;case"hosting":if(K&&N)w[S]=N;else w[S]=_??"";break;case"build":w[S]=K?"Vite":B??"";break;case"cicd":w[S]=q??"";break;case"package_manager":w[S]=H;break;default:w[S]="";break}}let c={},E=f.filter((j)=>j.path.startsWith("monorepo."));for(let j of E){let S=j.path.replace("monorepo.","");if(!I.includes(j.category))c[S]="slotignored";else c[S]=""}let m0={name:Z?.name??$.split("/").pop()??"project",goal:Z?.description??"",main_language:U,type:Q};if(F&&A)m0.framework=A;let t2=V6($,Z,X,U),e2=Y6($),$8=B6($,Z),F$={faf_version:$6,project:m0,stack:w,human_context:{who:"",what:Z?.description??"",why:"",where:"",when:"",how:""},monorepo:c,_meta:{found:z.found}};if(t2.length>0)F$.tech_stack=t2;if(e2.length>0)F$.key_files=e2;if(Object.keys($8).length>0)F$.commands=$8;return F$}import{existsSync as Oq,readFileSync as Wq}from"fs";import{join as Lq}from"path";var W6={MIN_LENGTH:8,MAX_LENGTH:280},Vq=[/^(see|see\s+the?)\s+readme/i,/^(tbd|todo|fixme|coming\s+soon)\b/i,/^(software|application|app|project|tool|library|framework)\.?$/i,/^(for\s+users|for\s+developers)\.?$/i,/^(description|goal|name|title)\.?$/i,/^lorem\s+ipsum/i,/^example(\s+\w+)?\.?$/i];function l($){let Z=$.trim();if(Z.length<W6.MIN_LENGTH)return!1;if(Z.length>W6.MAX_LENGTH)return!1;if(Vq.some((X)=>X.test(Z)))return!1;if(/^[\s|\-*+]/.test(Z))return!1;if(Z.split(`
218
+ `).length>4)return!1;return!0}function Rq($){let Z=$.split(`
219
+ `),X=0;while(X<Z.length&&/^(#\s|$)/.test(Z[X].trim()))X++;while(X<Z.length){let U=Z[X].trim();if(/^\[!\[/.test(U)){X++;continue}if(/^!\[/.test(U)){X++;continue}if(/^<img\s/i.test(U)){X++;continue}if(U===""){X++;continue}break}return Z.slice(X).join(`
220
+ `)}function Iq($){let X=Rq($).split(`
221
+ `),U=[];for(let z of X){let Q=z.trim();if(Q===""){if(U.length>0)break;continue}if(/^(#|>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(Q))break;if(/^\*\*[^*]+\*\*\s*$/.test(Q)&&U.length===0)continue;U.push(Q)}if(U.length===0)return null;return U.join(" ").trim()}function M0($,Z){let X=$.split(`
222
+ `),U=0;while(U<X.length){let Q=X[U].trim().match(/^(#{1,6})\s+(.+)$/);if(Q&&Z.test(Q[2])){let J=Q[1].length,H=[];U++;while(U<X.length){let q=X[U].trim(),_=q.match(/^(#{1,6})\s+/);if(_&&_[1].length<=J)break;if(q===""){if(H.length>0)break;U++;continue}if(/^(>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(q))break;H.push(q),U++}if(H.length===0)return null;return H.join(" ").trim()}U++}return null}function Dq($){let Z=M0($,/^(use\s+cases?|goal)\b/i);if(Z&&l(Z))return Z;let X=Iq($);if(X&&l(X))return X;return}function Fq($){let Z=M0($,/^(about|description|overview|what(\s+is\s+this)?)\b/i);if(Z&&l(Z))return Z;return}function Mq($){let Z=M0($,/^(audience|users?|for\s+whom|who(\s+is\s+this\s+for)?)\b/i);if(Z&&l(Z))return Z;return}function Pq($){let Z=M0($,/^(why|motivation|problem|rationale)\b/i);if(Z&&l(Z))return Z;return}function Tq($){let Z=M0($,/^(deployment|where(\s+it\s+runs)?|hosting)\b/i);if(Z&&l(Z))return Z;return}function Kq($){let Z=M0($,/^(status|history|timeline|since|launched)\b/i);if(Z&&l(Z))return Z;return}function Aq($){let Z=M0($,/^(architecture|how(\s+it\s+works)?|approach|design)\b/i);if(Z&&l(Z))return Z;return}function n2($){let Z=["README.md","README.MD","Readme.md","readme.md"],X=null;for(let O of Z){let L=Lq($,O);if(Oq(L)){X=L;break}}if(!X)return{};let U;try{U=Wq(X,"utf-8")}catch{return{}}let z={},Q=Dq(U);if(Q)z.project={goal:Q};let J={},H=Fq(U);if(H)J.what=H;let q=Mq(U);if(q)J.who=q;let _=Pq(U);if(_)J.why=_;let B=Tq(U);if(B)J.where=B;let G=Kq(U);if(G)J.when=G;let Y=Aq(U);if(Y)J.how=Y;if(Object.keys(J).length>0)z.human_context=J;return z}import{existsSync as Nq,readFileSync as wq}from"fs";import{join as bq}from"path";function Cq($,Z){let X=$.split(`
223
+ `),U=!1;for(let z of X){let Q=z.trim();if(/^\[/.test(Q)){U=Q==="[package]";continue}if(!U)continue;let J=Q.match(new RegExp(`^${Z}\\s*=\\s*(.+)$`));if(J){let H=J[1].trim();H=H.replace(/\s*#.*$/,"").trim();let q=H.match(/^"((?:[^"\\]|\\.)*)"$/)||H.match(/^'((?:[^'\\]|\\.)*)'$/);if(q)return q[1];return H}}return null}function o2($){let Z=bq($,"Cargo.toml");if(!Nq(Z))return{};let X;try{X=wq(Z,"utf-8")}catch{return{}}let U=Cq(X,"description");if(U&&l(U))return{project:{goal:U}};return{}}function jq($,Z){let X={project:{...Z.project??{},...$.project??{}},human_context:{...Z.human_context??{},...$.human_context??{}}};if(X.project&&Object.keys(X.project).length===0)delete X.project;if(X.human_context&&Object.keys(X.human_context).length===0)delete X.human_context;return X}function L6($){return jq(n2($),o2($))}function Sq($){let Z=O6($),X=L6($),U=R1(Z,X);Eq(U);let z=R1(U,s2($));return R1(z,{human_context:a2($)})}function Eq($){let Z=$.project?.type??"library",X=P0[Z]||P0.library;for(let U of f){if(X.includes(U.category))continue;let[z,Q]=U.path.split(".");if(z==="stack"&&$.stack)$.stack[Q]="slotignored";if(z==="monorepo"&&$.monorepo)$.monorepo[Q]="slotignored"}}function R1($,Z){let X={...$};for(let[U,z]of Object.entries(Z)){let Q=X[U];if(G0(Q))X[U]=z;else if(typeof z==="object"&&z!==null&&!Array.isArray(z)&&typeof Q==="object"&&Q!==null&&!Array.isArray(Q))X[U]=R1(Q,z)}return X}export{sJ as writeServerCard,uJ as writeProjectHtml,g6 as validateFaf,x0 as utcNow,s2 as turboCatSlots,a3 as turboCatScan,P6 as slotsByCategory,u3 as seedSixWsFromGoal,T1 as scoreFafYaml,OH as runLoop,e3 as relentlessContextDetailed,a2 as relentlessContext,cJ as registryName,dJ as registryMeta,O3 as readFafRaw,CJ as readFaf,m2 as questionForSlot,DH as publicQuestions,W1 as normalizeAnswer,m3 as loopVerdict,P1 as kernel,G0 as isPlaceholder,k3 as isHumanSlot,O1 as isEmptyValue,qH as interviewForMissing,FH as gradeAnswers,i0 as getTier,A6 as getNextTier,T3 as generateServerCard,D3 as generateProjectHtml,j3 as fromClaudeDir,W3 as findFafFile,f2 as fafContextBlock,X8 as enrichScore,IH as deriveQuestionSet,v3 as classifyGaps,R$ as canonicalPriority,BH as buildTableOf8,MH as buildReceipt,Sq as assembleFreshFaf,c3 as answersMatch,a as TIERS,x3 as STACK_INTERVIEW,l0 as SLOT_BY_PATH,f as SLOTS,v2 as SIX_WS_INTERVIEW,K3 as REGISTRY_PUBLISHER_KEY,_0 as PRIORITY_RANK,x2 as PRIORITY_ORDER,M$ as PLACEHOLDERS,V1 as KNOWLEDGE_TYPES,f3 as INTERVIEW_VERSION,HH as INTERVIEW_PATHS,h3 as INTERVIEW_BY_PATH,u0 as INTERVIEW,I0 as FafmSoul,c0 as FAF_HEX,K6 as ENTERPRISE_SLOTS,l2 as BENCH_VERSION,T6 as BASE_SLOTS,d3 as ALIAS_GROUPS};
224
224
 
225
- //# debugId=1575DADF27D56D1664756E2164756E21
225
+ //# debugId=063185567593FBAB64756E2164756E21
226
226
  //# sourceMappingURL=index.js.map