@microsoft/cmr-cli 0.33.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -14
- package/THIRD-PARTY-NOTICES.txt +287 -30
- package/dist/Add-4RULNL6A.js +11 -0
- package/dist/AddConfig-D2DCR3JH.js +12 -0
- package/dist/AddConnector-5ZR5AF6H.js +19 -0
- package/dist/AddDeployment-7U4I5IC4.js +11 -0
- package/dist/AddDeploymentBinding-BZVRRZ7H.js +18 -0
- package/dist/AddRayfin-45ASHNIX.js +87 -0
- package/dist/Alter-36TSNZ4M.js +11 -0
- package/dist/{AuthStatus-XA6RGYYZ.js → AuthStatus-W5ZHOAVD.js} +2 -2
- package/dist/AuthSwitch-7HRPTGEG.js +13 -0
- package/dist/Bin.js +1 -1
- package/dist/BuildMaafApp-TLQXOVQC.js +11 -0
- package/dist/Clear-X55BZKYF.js +11 -0
- package/dist/Cli-EEO7V3MZ.js +47 -0
- package/dist/CloneMaafApp-4EHW3HE2.js +12 -0
- package/dist/CreateMaafApp-VNXWCAP4.js +23 -0
- package/dist/CreateMaafProject-WVBNZPVL.js +11 -0
- package/dist/DeleteMaafApp-UGUKARMO.js +11 -0
- package/dist/DeployMaafApp-GJO567TK.js +8 -0
- package/dist/DeployMaafProject-4TSW2SFJ.js +11 -0
- package/dist/DeploymentApprovals-SZKNJT76.js +11 -0
- package/dist/Dev-ZD3L6WYY.js +15 -0
- package/dist/{EnvironmentVariableAuthenticationProvider-EBRBQ5I2.js → EnvironmentVariableAuthenticationProvider-EURTERVX.js} +2 -2
- package/dist/FeatureSettings-GG7JGFIY.js +11 -0
- package/dist/{GenerateCode-Z2OY3SZR.js → GenerateCode-PNYC45SK.js} +2 -2
- package/dist/GetMaafBuildStatus-UTPVWF5L.js +11 -0
- package/dist/GetMaafProjectDeployStatus-PLK52YC4.js +12 -0
- package/dist/{GetSettings-64N4P6L7.js → GetSettings-RLRDJEC7.js} +2 -2
- package/dist/InfoMaafApp-CTB6IPRU.js +13 -0
- package/dist/InfoMaafProject-TULH566X.js +11 -0
- package/dist/Init-TYWP2E6U.js +11 -0
- package/dist/ListConnectorActions-UQS6D4UN.js +11 -0
- package/dist/ListConnectors-OCDO64AT.js +11 -0
- package/dist/ListDeployments-PDLJ3IEI.js +11 -0
- package/dist/ListMaafApps-UAWTTCGB.js +11 -0
- package/dist/ListMaafProjects-T3Q2GEDX.js +11 -0
- package/dist/{ListSchema-IR7FTBRR.js → ListSchema-G673LK5Q.js} +2 -2
- package/dist/{ListSettings-3M7UOOLI.js → ListSettings-EXCK5ZS6.js} +2 -2
- package/dist/{Login-G7TNQISG.js → Login-XZATPT4L.js} +2 -2
- package/dist/{Logout-AOOISVWK.js → Logout-2XM4IMZF.js} +2 -2
- package/dist/{MockFetch-GKQMNDW3.js → MockFetch-LW3KYEGC.js} +2 -2
- package/dist/NodeMsalAuthenticationProvider-ALMFNUEV.js +17 -0
- package/dist/Pack-RH4D4C7W.js +8 -0
- package/dist/PackProject-5DUWSBFA.js +14 -0
- package/dist/PlayMaafApp-5BXGXE6O.js +8 -0
- package/dist/ProjectApprovals-K3JF6D72.js +13 -0
- package/dist/ProjectRoleAssignments-7IUDEVBN.js +11 -0
- package/dist/RefreshDataSource-CMHDF2GP.js +11 -0
- package/dist/RefreshGitAuth-4TRO5IOQ.js +11 -0
- package/dist/Remove-KZD3SDDC.js +11 -0
- package/dist/{RemoveDataSource-T2AG7ZWC.js → RemoveDataSource-C7UXOUNH.js} +3 -3
- package/dist/RemoveDeployment-ZQJWQPD6.js +11 -0
- package/dist/ServicePrincipalAuthenticationProvider-3NPJTLF5.js +11 -0
- package/dist/SetSetting-3XO6HPG7.js +11 -0
- package/dist/{SetSetting-KOWAPJWX.js → SetSetting-ZW7F43GC.js} +2 -2
- package/dist/ShareLinkCreate-JXPW5H7A.js +11 -0
- package/dist/ShareLinkList-ICYPRIQV.js +11 -0
- package/dist/ShareLinkRevoke-JVMQZF7K.js +11 -0
- package/dist/ShareList-YGSTFMVE.js +11 -0
- package/dist/ShareMaafApp-ZCY72WHK.js +11 -0
- package/dist/{TelemetrySettings-FVJUK5MR.js → TelemetrySettings-P6WYWGW4.js} +2 -2
- package/dist/UnshareMaafApp-N4UR6Q4A.js +11 -0
- package/dist/{chunk-JWSX7DVU.js → chunk-2SRFM7D6.js} +2 -2
- package/dist/chunk-3YCPXSCO.js +11 -0
- package/dist/chunk-45EZLDPE.js +147 -0
- package/dist/{chunk-EFTF4FA7.js → chunk-4PI5THLA.js} +2 -2
- package/dist/{chunk-4C6DWU2Y.js → chunk-6KOL66SF.js} +2 -2
- package/dist/{chunk-2VJIWD7V.js → chunk-74RNALDY.js} +2 -2
- package/dist/{chunk-4JTUAUHI.js → chunk-7AEULMP2.js} +2 -2
- package/dist/{chunk-MWN7R4VR.js → chunk-7LAMG4KK.js} +2 -2
- package/dist/chunk-A5INC5TY.js +11 -0
- package/dist/chunk-AICYZHWK.js +11 -0
- package/dist/chunk-B4NTYKGH.js +12 -0
- package/dist/chunk-BAQPANON.js +11 -0
- package/dist/{chunk-BREK3DVB.js → chunk-BMOTNINY.js} +6 -6
- package/dist/{chunk-OUKOEUZA.js → chunk-C7UWPNC3.js} +1 -1
- package/dist/{chunk-2UMD5IAQ.js → chunk-CLY3OASM.js} +2 -2
- package/dist/chunk-DLUQVMUE.js +11 -0
- package/dist/{chunk-JDRULLI3.js → chunk-ENDUKF4E.js} +2 -2
- package/dist/{chunk-DOCWK326.js → chunk-FESGOCAP.js} +7 -7
- package/dist/{chunk-IM7SC23O.js → chunk-GO22IDEN.js} +6 -6
- package/dist/{chunk-WV7KDGLS.js → chunk-HHW4SKVU.js} +2 -2
- package/dist/{chunk-CONEIY4I.js → chunk-HZGDQAKA.js} +2 -2
- package/dist/{chunk-O4G2KO7E.js → chunk-IMVZRBSQ.js} +2 -2
- package/dist/chunk-K77VBHFP.js +12 -0
- package/dist/{chunk-CER3QPDN.js → chunk-KD4NQIYX.js} +3 -3
- package/dist/{chunk-4WQT5P2M.js → chunk-KN66FSQK.js} +2 -2
- package/dist/{chunk-4UHMKZLH.js → chunk-KPKJZKWW.js} +2 -2
- package/dist/chunk-NMZFJESU.js +12 -0
- package/dist/{chunk-ZREDMBLO.js → chunk-NNYOT7IR.js} +2 -2
- package/dist/{chunk-JMF444BA.js → chunk-OH3TCDCC.js} +2 -2
- package/dist/{chunk-A57M2UGH.js → chunk-OHQNTYJG.js} +2 -2
- package/dist/{chunk-4AO24KKT.js → chunk-PYPCPMCR.js} +5 -5
- package/dist/{chunk-OTXBVG3E.js → chunk-R2IECDVU.js} +3 -3
- package/dist/{chunk-FGB6GFXI.js → chunk-RA74M3YD.js} +2 -2
- package/dist/{chunk-E2O4YZX2.js → chunk-RSHOMYG6.js} +228 -227
- package/dist/chunk-UHNOINTO.js +11 -0
- package/dist/{chunk-ELHOJBVT.js → chunk-XC7Y6E2C.js} +11 -11
- package/dist/chunk-XJXWNOJR.js +11 -0
- package/dist/chunk-Y2D37EFX.js +13 -0
- package/dist/{chunk-C7V6WEZM.js → chunk-YEWRCEPT.js} +2 -2
- package/dist/chunk-Z4UX3JOS.js +12 -0
- package/dist/chunk-ZBQT5XZJ.js +32 -0
- package/dist/chunk-ZGBTKTTU.js +11 -0
- package/dist/{chunk-5BE4TLDK.js → chunk-ZLK2CMMJ.js} +23 -23
- package/dist/chunk-ZWJ5T5VI.js +11 -0
- package/dist/node-PLZPXPD7.js +29 -0
- package/dist/typescript-6OTSQQEW.js +458 -0
- package/package.json +5 -4
- package/dist/Add-75RSJNM4.js +0 -11
- package/dist/AddConfig-4SAYYOBQ.js +0 -12
- package/dist/AddConnector-P4R4NJ5P.js +0 -16
- package/dist/AddDeployment-TBA3AAGD.js +0 -11
- package/dist/AddDeploymentBinding-6FZ7Y5JM.js +0 -18
- package/dist/AddRayfin-35GBGCWF.js +0 -38
- package/dist/Alter-U7WDVOMU.js +0 -11
- package/dist/AuthSwitch-2FXB7WFU.js +0 -13
- package/dist/BuildMaafApp-3EGRD23G.js +0 -11
- package/dist/Clear-MZGQZ2XK.js +0 -11
- package/dist/Cli-6A2HUP7R.js +0 -47
- package/dist/CloneMaafApp-YAEYSP23.js +0 -12
- package/dist/CreateMaafApp-2XYROOHB.js +0 -23
- package/dist/CreateMaafProject-Q7KIVAR2.js +0 -11
- package/dist/DeleteMaafApp-G3SL3GGP.js +0 -11
- package/dist/DeployMaafApp-DBJONCUH.js +0 -8
- package/dist/DeployMaafProject-SOMMKVJO.js +0 -11
- package/dist/DeploymentApprovals-Y67LSQQG.js +0 -11
- package/dist/Dev-TXJLPT7K.js +0 -15
- package/dist/FeatureSettings-LYV6QUZB.js +0 -11
- package/dist/GetMaafBuildStatus-ZR5GCREL.js +0 -11
- package/dist/GetMaafProjectDeployStatus-OJ56DPZ6.js +0 -12
- package/dist/InfoMaafApp-FJM7UI5H.js +0 -13
- package/dist/InfoMaafProject-EU6OQ7DX.js +0 -11
- package/dist/Init-MTONJT7V.js +0 -11
- package/dist/ListConnectorActions-PJTNNWLH.js +0 -11
- package/dist/ListConnectors-JYNVPB3O.js +0 -11
- package/dist/ListDeployments-UV6J6WA5.js +0 -11
- package/dist/ListMaafApps-QPEX7JA4.js +0 -11
- package/dist/ListMaafProjects-RDR2S3HD.js +0 -11
- package/dist/NodeMsalAuthenticationProvider-6ABSS6QK.js +0 -17
- package/dist/Pack-QJZCMVEM.js +0 -8
- package/dist/PackProject-Y3Q3KOTC.js +0 -14
- package/dist/PlayMaafApp-MH66OLOV.js +0 -8
- package/dist/ProjectApprovals-NTFYLH3W.js +0 -13
- package/dist/ProjectRoleAssignments-7IDK6SGJ.js +0 -11
- package/dist/RefreshDataSource-CISFHQNA.js +0 -11
- package/dist/RefreshGitAuth-NUQ7JNJA.js +0 -11
- package/dist/Remove-IYDTKDJE.js +0 -11
- package/dist/RemoveDeployment-K3GDRCXJ.js +0 -11
- package/dist/ServicePrincipalAuthenticationProvider-CEHIAANL.js +0 -11
- package/dist/SetSetting-PD76MA6O.js +0 -11
- package/dist/ShareLinkCreate-VCWVBQ4B.js +0 -11
- package/dist/ShareLinkList-5VG5CG34.js +0 -11
- package/dist/ShareLinkRevoke-KYUNMTG5.js +0 -11
- package/dist/ShareList-M25UE6LD.js +0 -11
- package/dist/ShareMaafApp-QMEJEXPZ.js +0 -11
- package/dist/UnshareMaafApp-RIUUYHIL.js +0 -11
- package/dist/chunk-36YYCVFC.js +0 -12
- package/dist/chunk-3UIUI5Q2.js +0 -11
- package/dist/chunk-B6REHI77.js +0 -11
- package/dist/chunk-GVLAG66W.js +0 -13
- package/dist/chunk-HWEMI6JI.js +0 -12
- package/dist/chunk-OB6WEE2V.js +0 -11
- package/dist/chunk-OBATM5M4.js +0 -11
- package/dist/chunk-PBXK6LJO.js +0 -11
- package/dist/chunk-VAKAW5BD.js +0 -12
- package/dist/chunk-WV7D7PTW.js +0 -12
- package/dist/chunk-YMRQPXY7.js +0 -32
- package/dist/chunk-YYXAAA2U.js +0 -11
- package/dist/rayfin-pack-HOUOLOHQ.js +0 -164
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __pathDirname(__filename);
|
|
7
|
+
import{a as ma}from"./chunk-TYRVM4PP.js";import{a as ze,b as g,d as Hn}from"./chunk-UT667QSU.js";var C=g(_=>{"use strict";var ss=Symbol.for("yaml.alias"),Xn=Symbol.for("yaml.document"),Ze=Symbol.for("yaml.map"),zn=Symbol.for("yaml.pair"),ns=Symbol.for("yaml.scalar"),et=Symbol.for("yaml.seq"),V=Symbol.for("yaml.node.type"),ya=s=>!!s&&typeof s=="object"&&s[V]===ss,ga=s=>!!s&&typeof s=="object"&&s[V]===Xn,ba=s=>!!s&&typeof s=="object"&&s[V]===Ze,Sa=s=>!!s&&typeof s=="object"&&s[V]===zn,Zn=s=>!!s&&typeof s=="object"&&s[V]===ns,wa=s=>!!s&&typeof s=="object"&&s[V]===et;function ei(s){if(s&&typeof s=="object")switch(s[V]){case Ze:case et:return!0}return!1}function Aa(s){if(s&&typeof s=="object")switch(s[V]){case ss:case Ze:case ns:case et:return!0}return!1}var va=s=>(Zn(s)||ei(s))&&!!s.anchor;_.ALIAS=ss;_.DOC=Xn;_.MAP=Ze;_.NODE_TYPE=V;_.PAIR=zn;_.SCALAR=ns;_.SEQ=et;_.hasAnchor=va;_.isAlias=ya;_.isCollection=ei;_.isDocument=ga;_.isMap=ba;_.isNode=Aa;_.isPair=Sa;_.isScalar=Zn;_.isSeq=wa});var ve=g(is=>{"use strict";var L=C(),M=Symbol("break visit"),ti=Symbol("skip children"),j=Symbol("remove node");function tt(s,e){let t=si(e);L.isDocument(s)?le(null,s.contents,t,Object.freeze([s]))===j&&(s.contents=null):le(null,s,t,Object.freeze([]))}tt.BREAK=M;tt.SKIP=ti;tt.REMOVE=j;function le(s,e,t,n){let i=ni(s,e,t,n);if(L.isNode(i)||L.isPair(i))return ii(s,n,i),le(s,i,t,n);if(typeof i!="symbol"){if(L.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=le(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===M)return M;o===j&&(e.items.splice(r,1),r-=1)}}}else if(L.isPair(e)){n=Object.freeze(n.concat(e));let r=le("key",e.key,t,n);if(r===M)return M;r===j&&(e.key=null);let o=le("value",e.value,t,n);if(o===M)return M;o===j&&(e.value=null)}}return i}async function st(s,e){let t=si(e);L.isDocument(s)?await ue(null,s.contents,t,Object.freeze([s]))===j&&(s.contents=null):await ue(null,s,t,Object.freeze([]))}st.BREAK=M;st.SKIP=ti;st.REMOVE=j;async function ue(s,e,t,n){let i=await ni(s,e,t,n);if(L.isNode(i)||L.isPair(i))return ii(s,n,i),ue(s,i,t,n);if(typeof i!="symbol"){if(L.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=await ue(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===M)return M;o===j&&(e.items.splice(r,1),r-=1)}}}else if(L.isPair(e)){n=Object.freeze(n.concat(e));let r=await ue("key",e.key,t,n);if(r===M)return M;r===j&&(e.key=null);let o=await ue("value",e.value,t,n);if(o===M)return M;o===j&&(e.value=null)}}return i}function si(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function ni(s,e,t,n){if(typeof t=="function")return t(s,e,n);if(L.isMap(e))return t.Map?.(s,e,n);if(L.isSeq(e))return t.Seq?.(s,e,n);if(L.isPair(e))return t.Pair?.(s,e,n);if(L.isScalar(e))return t.Scalar?.(s,e,n);if(L.isAlias(e))return t.Alias?.(s,e,n)}function ii(s,e,t){let n=e[e.length-1];if(L.isCollection(n))n.items[s]=t;else if(L.isPair(n))s==="key"?n.key=t:n.value=t;else if(L.isDocument(n))n.contents=t;else{let i=L.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}is.visit=tt;is.visitAsync=st});var rs=g(oi=>{"use strict";var ri=C(),Na=ve(),Oa={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ka=s=>s.replace(/[!,[\]{}]/g,e=>Oa[e]),Ne=class s{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t)}clone(){let e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,n,i]=e.match(/^(.*!)([^!]*)$/s);i||t(`The ${e} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+ka(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),i;if(e&&n.length>0&&ri.isNode(e.contents)){let r={};Na.visit(e.contents,(o,a)=>{ri.isNode(a)&&a.tag&&(r[a.tag]=!0)}),i=Object.keys(r)}else i=[];for(let[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
|
|
8
|
+
`)}};Ne.defaultYaml={explicit:!1,version:"1.2"};Ne.defaultTags={"!!":"tag:yaml.org,2002:"};oi.Directives=Ne});var nt=g(Oe=>{"use strict";var ai=C(),Ca=ve();function Ta(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function ci(s){let e=new Set;return Ca.visit(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function li(s,e){for(let t=1;;++t){let n=`${s}${t}`;if(!e.has(n))return n}}function Ea(s,e){let t=[],n=new Map,i=null;return{onAnchor:r=>{t.push(r),i??(i=ci(s));let o=li(e,i);return i.add(o),o},setAnchors:()=>{for(let r of t){let o=n.get(r);if(typeof o=="object"&&o.anchor&&(ai.isScalar(o.node)||ai.isCollection(o.node)))o.node.anchor=o.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:n}}Oe.anchorIsValid=Ta;Oe.anchorNames=ci;Oe.createNodeAnchors=Ea;Oe.findNewAnchor=li});var os=g(ui=>{"use strict";function ke(s,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){let o=n[i],a=ke(s,n,String(i),o);a===void 0?delete n[i]:a!==o&&(n[i]=a)}else if(n instanceof Map)for(let i of Array.from(n.keys())){let r=n.get(i),o=ke(s,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(let i of Array.from(n)){let r=ke(s,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(let[i,r]of Object.entries(n)){let o=ke(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}ui.applyReviver=ke});var J=g(di=>{"use strict";var qa=C();function fi(s,e,t){if(Array.isArray(s))return s.map((n,i)=>fi(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!qa.hasAnchor(s))return s.toJSON(e,t);let n={aliasCount:0,count:1,res:void 0};t.anchors.set(s,n),t.onCreate=r=>{n.res=r,delete t.onCreate};let i=s.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof s=="bigint"&&!t?.keep?Number(s):s}di.toJS=fi});var it=g(pi=>{"use strict";var Ia=os(),hi=C(),Pa=J(),as=class{constructor(e){Object.defineProperty(this,hi.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!hi.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=Pa.toJS(this,"",o);if(typeof i=="function")for(let{count:c,res:l}of o.anchors.values())i(l,c);return typeof r=="function"?Ia.applyReviver(r,{"":a},"",a):a}};pi.NodeBase=as});var Ce=g(mi=>{"use strict";var La=nt(),_a=ve(),fe=C(),Ma=it(),$a=J(),cs=class extends Ma.NodeBase{constructor(e){super(fe.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){if(t?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],_a.visit(e,{Node:(r,o)=>{(fe.isAlias(o)||fe.hasAnchor(o))&&n.push(o)}}),t&&(t.aliasResolveCache=n));let i;for(let r of n){if(r===this)break;r.anchor===this.source&&(i=r)}return i}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:i,maxAliasCount:r}=t,o=this.resolve(i,t);if(!o){let c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=n.get(o);if(a||($a.toJS(o,null,t),a=n.get(o)),a?.res===void 0){let c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=rt(i,o,n)),a.count*a.aliasCount>r)){let c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(e,t,n){let i=`*${this.source}`;if(e){if(La.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}};function rt(s,e,t){if(fe.isAlias(e)){let n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if(fe.isCollection(e)){let n=0;for(let i of e.items){let r=rt(s,i,t);r>n&&(n=r)}return n}else if(fe.isPair(e)){let n=rt(s,e.key,t),i=rt(s,e.value,t);return Math.max(n,i)}return 1}mi.Alias=cs});var q=g(ls=>{"use strict";var Da=C(),Ra=it(),Fa=J(),Ba=s=>!s||typeof s!="function"&&typeof s!="object",G=class extends Ra.NodeBase{constructor(e){super(Da.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:Fa.toJS(this.value,e,t)}toString(){return String(this.value)}};G.BLOCK_FOLDED="BLOCK_FOLDED";G.BLOCK_LITERAL="BLOCK_LITERAL";G.PLAIN="PLAIN";G.QUOTE_DOUBLE="QUOTE_DOUBLE";G.QUOTE_SINGLE="QUOTE_SINGLE";ls.Scalar=G;ls.isScalarValue=Ba});var Te=g(gi=>{"use strict";var ja=Ce(),se=C(),yi=q(),Ka="tag:yaml.org,2002:";function Ua(s,e,t){if(e){let n=t.filter(r=>r.tag===e),i=n.find(r=>!r.format)??n[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return t.find(n=>n.identify?.(s)&&!n.format)}function Va(s,e,t){if(se.isDocument(s)&&(s=s.contents),se.isNode(s))return s;if(se.isPair(s)){let u=t.schema[se.MAP].createNode?.(t.schema,null,t);return u.items.push(s),u}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt<"u"&&s instanceof BigInt)&&(s=s.valueOf());let{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:a}=t,c;if(n&&s&&typeof s=="object"){if(c=a.get(s),c)return c.anchor??(c.anchor=i(s)),new ja.Alias(c.anchor);c={anchor:null,node:null},a.set(s,c)}e?.startsWith("!!")&&(e=Ka+e.slice(2));let l=Ua(s,e,o.tags);if(!l){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let u=new yi.Scalar(s);return c&&(c.node=u),u}l=s instanceof Map?o[se.MAP]:Symbol.iterator in Object(s)?o[se.SEQ]:o[se.MAP]}r&&(r(l),delete t.onTagObj);let d=l?.createNode?l.createNode(t.schema,s,t):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(t.schema,s,t):new yi.Scalar(s);return e?d.tag=e:l.default||(d.tag=l.tag),c&&(c.node=d),d}gi.createNode=Va});var at=g(ot=>{"use strict";var xa=Te(),K=C(),Ya=it();function us(s,e,t){let n=t;for(let i=e.length-1;i>=0;--i){let r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return xa.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}var bi=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,fs=class extends Ya.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>K.isNode(n)||K.isPair(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(bi(e))this.add(t);else{let[n,...i]=e,r=this.get(n,!0);if(K.isCollection(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,us(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let i=this.get(t,!0);if(K.isCollection(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...i]=e,r=this.get(n,!0);return i.length===0?!t&&K.isScalar(r)?r.value:r:K.isCollection(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!K.isPair(t))return!1;let n=t.value;return n==null||e&&K.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let i=this.get(t,!0);return K.isCollection(i)?i.hasIn(n):!1}setIn(e,t){let[n,...i]=e;if(i.length===0)this.set(n,t);else{let r=this.get(n,!0);if(K.isCollection(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(n,us(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}};ot.Collection=fs;ot.collectionFromPath=us;ot.isEmptyPath=bi});var Ee=g(ct=>{"use strict";var Ja=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function ds(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}var Ga=(s,e,t)=>s.endsWith(`
|
|
9
|
+
`)?ds(t,e):t.includes(`
|
|
10
|
+
`)?`
|
|
11
|
+
`+ds(t,e):(s.endsWith(" ")?"":" ")+t;ct.indentComment=ds;ct.lineComment=Ga;ct.stringifyComment=Ja});var wi=g(qe=>{"use strict";var Wa="flow",hs="block",lt="quoted";function Qa(s,e,t="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return s;i<r&&(r=0);let c=Math.max(1+r,1+i-e.length);if(s.length<=c)return s;let l=[],d={},u=i-e.length;typeof n=="number"&&(n>i-Math.max(2,r)?l.push(0):u=i-n);let f,m,y=!1,h=-1,p=-1,b=-1;t===hs&&(h=Si(s,h,e.length),h!==-1&&(u=h+c));for(let A;A=s[h+=1];){if(t===lt&&A==="\\"){switch(p=h,s[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}b=h}if(A===`
|
|
12
|
+
`)t===hs&&(h=Si(s,h,e.length)),u=h+e.length+c,f=void 0;else{if(A===" "&&m&&m!==" "&&m!==`
|
|
13
|
+
`&&m!==" "){let v=s[h+1];v&&v!==" "&&v!==`
|
|
14
|
+
`&&v!==" "&&(f=h)}if(h>=u)if(f)l.push(f),u=f+c,f=void 0;else if(t===lt){for(;m===" "||m===" ";)m=A,A=s[h+=1],y=!0;let v=h>b+1?h-2:p-1;if(d[v])return s;l.push(v),d[v]=!0,u=v+c,f=void 0}else y=!0}m=A}if(y&&a&&a(),l.length===0)return s;o&&o();let w=s.slice(0,l[0]);for(let A=0;A<l.length;++A){let v=l[A],O=l[A+1]||s.length;v===0?w=`
|
|
15
|
+
${e}${s.slice(0,O)}`:(t===lt&&d[v]&&(w+=`${s[v]}\\`),w+=`
|
|
16
|
+
${e}${s.slice(v+1,O)}`)}return w}function Si(s,e,t){let n=e,i=e+1,r=s[i];for(;r===" "||r===" ";)if(e<i+t)r=s[++e];else{do r=s[++e];while(r&&r!==`
|
|
17
|
+
`);n=e,i=e+1,r=s[i]}return n}qe.FOLD_BLOCK=hs;qe.FOLD_FLOW=Wa;qe.FOLD_QUOTED=lt;qe.foldFlowLines=Qa});var Pe=g(Ai=>{"use strict";var F=q(),W=wi(),ft=(s,e)=>({indentAtStart:e?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),dt=s=>/^(%|---|\.\.\.)/m.test(s);function Ha(s,e,t){if(!e||e<0)return!1;let n=e-t,i=s.length;if(i<=n)return!1;for(let r=0,o=0;r<i;++r)if(s[r]===`
|
|
18
|
+
`){if(r-o>n)return!0;if(o=r+1,i-o<=n)return!1}return!0}function Ie(s,e){let t=JSON.stringify(s);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:n}=e,i=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(dt(s)?" ":""),o="",a=0;for(let c=0,l=t[c];l;l=t[++c])if(l===" "&&t[c+1]==="\\"&&t[c+2]==="n"&&(o+=t.slice(a,c)+"\\ ",c+=1,a=c,l="\\"),l==="\\")switch(t[c+1]){case"u":{o+=t.slice(a,c);let d=t.substr(c+2,4);switch(d){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:d.substr(0,2)==="00"?o+="\\x"+d.substr(2):o+=t.substr(c,6)}c+=5,a=c+1}break;case"n":if(n||t[c+2]==='"'||t.length<i)c+=1;else{for(o+=t.slice(a,c)+`
|
|
19
|
+
|
|
20
|
+
`;t[c+2]==="\\"&&t[c+3]==="n"&&t[c+4]!=='"';)o+=`
|
|
21
|
+
`,c+=2;o+=r,t[c+2]===" "&&(o+="\\"),c+=1,a=c+1}break;default:c+=1}return o=a?o+t.slice(a):t,n?o:W.foldFlowLines(o,r,W.FOLD_QUOTED,ft(e,!1))}function ps(s,e){if(e.options.singleQuote===!1||e.implicitKey&&s.includes(`
|
|
22
|
+
`)||/[ \t]\n|\n[ \t]/.test(s))return Ie(s,e);let t=e.indent||(dt(s)?" ":""),n="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
23
|
+
${t}`)+"'";return e.implicitKey?n:W.foldFlowLines(n,t,W.FOLD_FLOW,ft(e,!1))}function de(s,e){let{singleQuote:t}=e.options,n;if(t===!1)n=Ie;else{let i=s.includes('"'),r=s.includes("'");i&&!r?n=ps:r&&!i?n=Ie:n=t?ps:Ie}return n(s,e)}var ms;try{ms=new RegExp(`(^|(?<!
|
|
24
|
+
))
|
|
25
|
+
+(?!
|
|
26
|
+
|$)`,"g")}catch{ms=/\n+(?!\n|$)/g}function ut({comment:s,type:e,value:t},n,i,r){let{blockQuote:o,commentString:a,lineWidth:c}=n.options;if(!o||/\n[\t ]+$/.test(t))return de(t,n);let l=n.indent||(n.forceBlockIndent||dt(t)?" ":""),d=o==="literal"?!0:o==="folded"||e===F.Scalar.BLOCK_FOLDED?!1:e===F.Scalar.BLOCK_LITERAL?!0:!Ha(t,c,l.length);if(!t)return d?`|
|
|
27
|
+
`:`>
|
|
28
|
+
`;let u,f;for(f=t.length;f>0;--f){let O=t[f-1];if(O!==`
|
|
29
|
+
`&&O!==" "&&O!==" ")break}let m=t.substring(f),y=m.indexOf(`
|
|
30
|
+
`);y===-1?u="-":t===m||y!==m.length-1?(u="+",r&&r()):u="",m&&(t=t.slice(0,-m.length),m[m.length-1]===`
|
|
31
|
+
`&&(m=m.slice(0,-1)),m=m.replace(ms,`$&${l}`));let h=!1,p,b=-1;for(p=0;p<t.length;++p){let O=t[p];if(O===" ")h=!0;else if(O===`
|
|
32
|
+
`)b=p;else break}let w=t.substring(0,b<p?b+1:p);w&&(t=t.substring(w.length),w=w.replace(/\n+/g,`$&${l}`));let v=(h?l?"2":"1":"")+u;if(s&&(v+=" "+a(s.replace(/ ?[\r\n]+/g," ")),i&&i()),!d){let O=t.replace(/\n+/g,`
|
|
33
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`),k=!1,E=ft(n,!0);o!=="folded"&&e!==F.Scalar.BLOCK_FOLDED&&(E.onOverflow=()=>{k=!0});let S=W.foldFlowLines(`${w}${O}${m}`,l,W.FOLD_BLOCK,E);if(!k)return`>${v}
|
|
34
|
+
${l}${S}`}return t=t.replace(/\n+/g,`$&${l}`),`|${v}
|
|
35
|
+
${l}${w}${t}${m}`}function Xa(s,e,t,n){let{type:i,value:r}=s,{actualString:o,implicitKey:a,indent:c,indentStep:l,inFlow:d}=e;if(a&&r.includes(`
|
|
36
|
+
`)||d&&/[[\]{},]/.test(r))return de(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||d||!r.includes(`
|
|
37
|
+
`)?de(r,e):ut(s,e,t,n);if(!a&&!d&&i!==F.Scalar.PLAIN&&r.includes(`
|
|
38
|
+
`))return ut(s,e,t,n);if(dt(r)){if(c==="")return e.forceBlockIndent=!0,ut(s,e,t,n);if(a&&c===l)return de(r,e)}let u=r.replace(/\n+/g,`$&
|
|
39
|
+
${c}`);if(o){let f=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(u),{compat:m,tags:y}=e.doc.schema;if(y.some(f)||m?.some(f))return de(r,e)}return a?u:W.foldFlowLines(u,c,W.FOLD_FLOW,ft(e,!1))}function za(s,e,t,n){let{implicitKey:i,inFlow:r}=e,o=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)}),{type:a}=s;a!==F.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=F.Scalar.QUOTE_DOUBLE);let c=d=>{switch(d){case F.Scalar.BLOCK_FOLDED:case F.Scalar.BLOCK_LITERAL:return i||r?de(o.value,e):ut(o,e,t,n);case F.Scalar.QUOTE_DOUBLE:return Ie(o.value,e);case F.Scalar.QUOTE_SINGLE:return ps(o.value,e);case F.Scalar.PLAIN:return Xa(o,e,t,n);default:return null}},l=c(a);if(l===null){let{defaultKeyType:d,defaultStringType:u}=e.options,f=i&&d||u;if(l=c(f),l===null)throw new Error(`Unsupported default string type ${f}`)}return l}Ai.stringifyString=za});var Le=g(ys=>{"use strict";var Za=nt(),Q=C(),ec=Ee(),tc=Pe();function sc(s,e){let t=Object.assign({blockQuote:!0,commentString:ec.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},s.schema.toStringOptions,e),n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:s,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function nc(s,e){if(e.tag){let i=s.filter(r=>r.tag===e.tag);if(i.length>0)return i.find(r=>r.format===e.format)??i[0]}let t,n;if(Q.isScalar(e)){n=e.value;let i=s.filter(r=>r.identify?.(n));if(i.length>1){let r=i.filter(o=>o.test);r.length>0&&(i=r)}t=i.find(r=>r.format===e.format)??i.find(r=>!r.format)}else n=e,t=s.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!t){let i=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${i} value`)}return t}function ic(s,e,{anchors:t,doc:n}){if(!n.directives)return"";let i=[],r=(Q.isScalar(s)||Q.isCollection(s))&&s.anchor;r&&Za.anchorIsValid(r)&&(t.add(r),i.push(`&${r}`));let o=s.tag??(e.default?null:e.tag);return o&&i.push(n.directives.tagString(o)),i.join(" ")}function rc(s,e,t,n){if(Q.isPair(s))return s.toString(e,t,n);if(Q.isAlias(s)){if(e.doc.directives)return s.toString(e);if(e.resolvedAliases?.has(s))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(s):e.resolvedAliases=new Set([s]),s=s.resolve(e.doc)}let i,r=Q.isNode(s)?s:e.doc.createNode(s,{onTagObj:c=>i=c});i??(i=nc(e.doc.schema.tags,r));let o=ic(r,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof i.stringify=="function"?i.stringify(r,e,t,n):Q.isScalar(r)?tc.stringifyString(r,e,t,n):r.toString(e,t,n);return o?Q.isScalar(r)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
|
|
40
|
+
${e.indent}${a}`:a}ys.createStringifyContext=sc;ys.stringify=rc});var ki=g(Oi=>{"use strict";var x=C(),vi=q(),Ni=Le(),_e=Ee();function oc({key:s,value:e},t,n,i){let{allNullValues:r,doc:o,indent:a,indentStep:c,options:{commentString:l,indentSeq:d,simpleKeys:u}}=t,f=x.isNode(s)&&s.comment||null;if(u){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(x.isCollection(s)||!x.isNode(s)&&typeof s=="object"){let E="With simple keys, collection cannot be used as a key value";throw new Error(E)}}let m=!u&&(!s||f&&e==null&&!t.inFlow||x.isCollection(s)||(x.isScalar(s)?s.type===vi.Scalar.BLOCK_FOLDED||s.type===vi.Scalar.BLOCK_LITERAL:typeof s=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!m&&(u||!r),indent:a+c});let y=!1,h=!1,p=Ni.stringify(s,t,()=>y=!0,()=>h=!0);if(!m&&!t.inFlow&&p.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0}if(t.inFlow){if(r||e==null)return y&&n&&n(),p===""?"?":m?`? ${p}`:p}else if(r&&!u||e==null&&m)return p=`? ${p}`,f&&!y?p+=_e.lineComment(p,t.indent,l(f)):h&&i&&i(),p;y&&(f=null),m?(f&&(p+=_e.lineComment(p,t.indent,l(f))),p=`? ${p}
|
|
41
|
+
${a}:`):(p=`${p}:`,f&&(p+=_e.lineComment(p,t.indent,l(f))));let b,w,A;x.isNode(e)?(b=!!e.spaceBefore,w=e.commentBefore,A=e.comment):(b=!1,w=null,A=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!m&&!f&&x.isScalar(e)&&(t.indentAtStart=p.length+1),h=!1,!d&&c.length>=2&&!t.inFlow&&!m&&x.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let v=!1,O=Ni.stringify(e,t,()=>v=!0,()=>h=!0),k=" ";if(f||b||w){if(k=b?`
|
|
42
|
+
`:"",w){let E=l(w);k+=`
|
|
43
|
+
${_e.indentComment(E,t.indent)}`}O===""&&!t.inFlow?k===`
|
|
44
|
+
`&&A&&(k=`
|
|
45
|
+
|
|
46
|
+
`):k+=`
|
|
47
|
+
${t.indent}`}else if(!m&&x.isCollection(e)){let E=O[0],S=O.indexOf(`
|
|
48
|
+
`),I=S!==-1,Y=t.inFlow??e.flow??e.items.length===0;if(I||!Y){let ce=!1;if(I&&(E==="&"||E==="!")){let P=O.indexOf(" ");E==="&"&&P!==-1&&P<S&&O[P+1]==="!"&&(P=O.indexOf(" ",P+1)),(P===-1||S<P)&&(ce=!0)}ce||(k=`
|
|
49
|
+
${t.indent}`)}}else(O===""||O[0]===`
|
|
50
|
+
`)&&(k="");return p+=k+O,t.inFlow?v&&n&&n():A&&!v?p+=_e.lineComment(p,t.indent,l(A)):h&&i&&i(),p}Oi.stringifyPair=oc});var bs=g(gs=>{"use strict";var Ci=ze("process");function ac(s,...e){s==="debug"&&console.log(...e)}function cc(s,e){(s==="debug"||s==="warn")&&(typeof Ci.emitWarning=="function"?Ci.emitWarning(e):console.warn(e))}gs.debug=ac;gs.warn=cc});var gt=g(yt=>{"use strict";var mt=C(),Ti=q(),ht="<<",pt={identify:s=>s===ht||typeof s=="symbol"&&s.description===ht,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ti.Scalar(Symbol(ht)),{addToJSMap:Ei}),stringify:()=>ht},lc=(s,e)=>(pt.identify(e)||mt.isScalar(e)&&(!e.type||e.type===Ti.Scalar.PLAIN)&&pt.identify(e.value))&&s?.doc.schema.tags.some(t=>t.tag===pt.tag&&t.default);function Ei(s,e,t){let n=qi(s,t);if(mt.isSeq(n))for(let i of n.items)Ss(s,e,i);else if(Array.isArray(n))for(let i of n)Ss(s,e,i);else Ss(s,e,n)}function Ss(s,e,t){let n=qi(s,t);if(!mt.isMap(n))throw new Error("Merge sources must be maps or map aliases");let i=n.toJSON(null,s,Map);for(let[r,o]of i)e instanceof Map?e.has(r)||e.set(r,o):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function qi(s,e){return s&&mt.isAlias(e)?e.resolve(s.doc,s):e}yt.addMergeToJSMap=Ei;yt.isMergeKey=lc;yt.merge=pt});var As=g(Li=>{"use strict";var uc=bs(),Ii=gt(),fc=Le(),Pi=C(),ws=J();function dc(s,e,{key:t,value:n}){if(Pi.isNode(t)&&t.addToJSMap)t.addToJSMap(s,e,n);else if(Ii.isMergeKey(s,t))Ii.addMergeToJSMap(s,e,n);else{let i=ws.toJS(t,"",s);if(e instanceof Map)e.set(i,ws.toJS(n,i,s));else if(e instanceof Set)e.add(i);else{let r=hc(t,i,s),o=ws.toJS(n,r,s);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}function hc(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(Pi.isNode(s)&&t?.doc){let n=fc.createStringifyContext(t.doc,{});n.anchors=new Set;for(let r of t.anchors.keys())n.anchors.add(r.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=s.toString(n);if(!t.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),uc.warn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return i}return JSON.stringify(e)}Li.addPairToJSMap=dc});var H=g(vs=>{"use strict";var _i=Te(),pc=ki(),mc=As(),bt=C();function yc(s,e,t){let n=_i.createNode(s,void 0,t),i=_i.createNode(e,void 0,t);return new St(n,i)}var St=class s{constructor(e,t=null){Object.defineProperty(this,bt.NODE_TYPE,{value:bt.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return bt.isNode(t)&&(t=t.clone(e)),bt.isNode(n)&&(n=n.clone(e)),new s(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return mc.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?pc.stringifyPair(this,e,t,n):JSON.stringify(this)}};vs.Pair=St;vs.createPair=yc});var Ns=g($i=>{"use strict";var ne=C(),Mi=Le(),wt=Ee();function gc(s,e,t){return(e.inFlow??s.flow?Sc:bc)(s,e,t)}function bc({comment:s,items:e},t,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:a}){let{indent:c,options:{commentString:l}}=t,d=Object.assign({},t,{indent:r,type:null}),u=!1,f=[];for(let y=0;y<e.length;++y){let h=e[y],p=null;if(ne.isNode(h))!u&&h.spaceBefore&&f.push(""),At(t,f,h.commentBefore,u),h.comment&&(p=h.comment);else if(ne.isPair(h)){let w=ne.isNode(h.key)?h.key:null;w&&(!u&&w.spaceBefore&&f.push(""),At(t,f,w.commentBefore,u))}u=!1;let b=Mi.stringify(h,d,()=>p=null,()=>u=!0);p&&(b+=wt.lineComment(b,r,l(p))),u&&p&&(u=!1),f.push(n+b)}let m;if(f.length===0)m=i.start+i.end;else{m=f[0];for(let y=1;y<f.length;++y){let h=f[y];m+=h?`
|
|
51
|
+
${c}${h}`:`
|
|
52
|
+
`}}return s?(m+=`
|
|
53
|
+
`+wt.indentComment(l(s),c),a&&a()):u&&o&&o(),m}function Sc({items:s},e,{flowChars:t,itemIndent:n}){let{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:a}}=e;n+=r;let c=Object.assign({},e,{indent:n,inFlow:!0,type:null}),l=!1,d=0,u=[];for(let y=0;y<s.length;++y){let h=s[y],p=null;if(ne.isNode(h))h.spaceBefore&&u.push(""),At(e,u,h.commentBefore,!1),h.comment&&(p=h.comment);else if(ne.isPair(h)){let w=ne.isNode(h.key)?h.key:null;w&&(w.spaceBefore&&u.push(""),At(e,u,w.commentBefore,!1),w.comment&&(l=!0));let A=ne.isNode(h.value)?h.value:null;A?(A.comment&&(p=A.comment),A.commentBefore&&(l=!0)):h.value==null&&w?.comment&&(p=w.comment)}p&&(l=!0);let b=Mi.stringify(h,c,()=>p=null);l||(l=u.length>d||b.includes(`
|
|
54
|
+
`)),y<s.length-1?b+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(l||(l=u.reduce((w,A)=>w+A.length+2,2)+(b.length+2)>e.options.lineWidth)),l&&(b+=",")),p&&(b+=wt.lineComment(b,n,a(p))),u.push(b),d=u.length}let{start:f,end:m}=t;if(u.length===0)return f+m;if(!l){let y=u.reduce((h,p)=>h+p.length+2,2);l=e.options.lineWidth>0&&y>e.options.lineWidth}if(l){let y=f;for(let h of u)y+=h?`
|
|
55
|
+
${r}${i}${h}`:`
|
|
56
|
+
`;return`${y}
|
|
57
|
+
${i}${m}`}else return`${f}${o}${u.join(" ")}${o}${m}`}function At({indent:s,options:{commentString:e}},t,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let r=wt.indentComment(e(n),s);t.push(r.trimStart())}}$i.stringifyCollection=gc});var z=g(ks=>{"use strict";var wc=Ns(),Ac=As(),vc=at(),X=C(),vt=H(),Nc=q();function Me(s,e){let t=X.isScalar(e)?e.value:e;for(let n of s)if(X.isPair(n)&&(n.key===e||n.key===t||X.isScalar(n.key)&&n.key.value===t))return n}var Os=class extends vc.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(X.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:i,replacer:r}=n,o=new this(e),a=(c,l)=>{if(typeof r=="function")l=r.call(t,c,l);else if(Array.isArray(r)&&!r.includes(c))return;(l!==void 0||i)&&o.items.push(vt.createPair(c,l,n))};if(t instanceof Map)for(let[c,l]of t)a(c,l);else if(t&&typeof t=="object")for(let c of Object.keys(t))a(c,t[c]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;X.isPair(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new vt.Pair(e,e?.value):n=new vt.Pair(e.key,e.value);let i=Me(this.items,n.key),r=this.schema?.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);X.isScalar(i.value)&&Nc.isScalarValue(n.value)?i.value.value=n.value:i.value=n.value}else if(r){let o=this.items.findIndex(a=>r(n,a)<0);o===-1?this.items.push(n):this.items.splice(o,0,n)}else this.items.push(n)}delete(e){let t=Me(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let i=Me(this.items,e)?.value;return(!t&&X.isScalar(i)?i.value:i)??void 0}has(e){return!!Me(this.items,e)}set(e,t){this.add(new vt.Pair(e,t),!0)}toJSON(e,t,n){let i=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let r of this.items)Ac.addPairToJSMap(t,i,r);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(let i of this.items)if(!X.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),wc.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}};ks.YAMLMap=Os;ks.findPair=Me});var he=g(Ri=>{"use strict";var Oc=C(),Di=z(),kc={collection:"map",default:!0,nodeClass:Di.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(s,e){return Oc.isMap(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>Di.YAMLMap.from(s,e,t)};Ri.map=kc});var Z=g(Fi=>{"use strict";var Cc=Te(),Tc=Ns(),Ec=at(),Ot=C(),qc=q(),Ic=J(),Cs=class extends Ec.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ot.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Nt(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let n=Nt(e);if(typeof n!="number")return;let i=this.items[n];return!t&&Ot.isScalar(i)?i.value:i}has(e){let t=Nt(e);return typeof t=="number"&&t<this.items.length}set(e,t){let n=Nt(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);let i=this.items[n];Ot.isScalar(i)&&qc.isScalarValue(t)?i.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let i=0;for(let r of this.items)n.push(Ic.toJS(r,String(i++),t));return n}toString(e,t,n){return e?Tc.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof i=="function"){let c=t instanceof Set?a:String(o++);a=i.call(t,c,a)}r.items.push(Cc.createNode(a,void 0,n))}}return r}};function Nt(s){let e=Ot.isScalar(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}Fi.YAMLSeq=Cs});var pe=g(ji=>{"use strict";var Pc=C(),Bi=Z(),Lc={collection:"seq",default:!0,nodeClass:Bi.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(s,e){return Pc.isSeq(s)||e("Expected a sequence for this tag"),s},createNode:(s,e,t)=>Bi.YAMLSeq.from(s,e,t)};ji.seq=Lc});var $e=g(Ki=>{"use strict";var _c=Pe(),Mc={identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify(s,e,t,n){return e=Object.assign({actualString:!0},e),_c.stringifyString(s,e,t,n)}};Ki.string=Mc});var kt=g(xi=>{"use strict";var Ui=q(),Vi={identify:s=>s==null,createNode:()=>new Ui.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ui.Scalar(null),stringify:({source:s},e)=>typeof s=="string"&&Vi.test.test(s)?s:e.options.nullStr};xi.nullTag=Vi});var Ts=g(Ji=>{"use strict";var $c=q(),Yi={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new $c.Scalar(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&Yi.test.test(s)){let n=s[0]==="t"||s[0]==="T";if(e===n)return s}return e?t.options.trueStr:t.options.falseStr}};Ji.boolTag=Yi});var me=g(Gi=>{"use strict";function Dc({format:s,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);let i=typeof n=="number"?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=Object.is(n,-0)?"-0":JSON.stringify(n);if(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^-?\d/.test(r)&&!r.includes("e")){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let a=e-(r.length-o-1);for(;a-- >0;)r+="0"}return r}Gi.stringifyNumber=Dc});var qs=g(Ct=>{"use strict";var Rc=q(),Es=me(),Fc={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Es.stringifyNumber},Bc={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():Es.stringifyNumber(s)}},jc={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){let e=new Rc.Scalar(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:Es.stringifyNumber};Ct.float=jc;Ct.floatExp=Bc;Ct.floatNaN=Fc});var Ps=g(Et=>{"use strict";var Wi=me(),Tt=s=>typeof s=="bigint"||Number.isInteger(s),Is=(s,e,t,{intAsBigInt:n})=>n?BigInt(s):parseInt(s.substring(e),t);function Qi(s,e,t){let{value:n}=s;return Tt(n)&&n>=0?t+n.toString(e):Wi.stringifyNumber(s)}var Kc={identify:s=>Tt(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,e,t)=>Is(s,2,8,t),stringify:s=>Qi(s,8,"0o")},Uc={identify:Tt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,e,t)=>Is(s,0,10,t),stringify:Wi.stringifyNumber},Vc={identify:s=>Tt(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,e,t)=>Is(s,2,16,t),stringify:s=>Qi(s,16,"0x")};Et.int=Uc;Et.intHex=Vc;Et.intOct=Kc});var Xi=g(Hi=>{"use strict";var xc=he(),Yc=kt(),Jc=pe(),Gc=$e(),Wc=Ts(),Ls=qs(),_s=Ps(),Qc=[xc.map,Jc.seq,Gc.string,Yc.nullTag,Wc.boolTag,_s.intOct,_s.int,_s.intHex,Ls.floatNaN,Ls.floatExp,Ls.float];Hi.schema=Qc});var er=g(Zi=>{"use strict";var Hc=q(),Xc=he(),zc=pe();function zi(s){return typeof s=="bigint"||Number.isInteger(s)}var qt=({value:s})=>JSON.stringify(s),Zc=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:qt},{identify:s=>s==null,createNode:()=>new Hc.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:qt},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:s=>s==="true",stringify:qt},{identify:zi,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(s,e,{intAsBigInt:t})=>t?BigInt(s):parseInt(s,10),stringify:({value:s})=>zi(s)?s.toString():JSON.stringify(s)},{identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s=>parseFloat(s),stringify:qt}],el={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},tl=[Xc.map,zc.seq].concat(Zc,el);Zi.schema=tl});var $s=g(tr=>{"use strict";var De=ze("buffer"),Ms=q(),sl=Pe(),nl={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof De.Buffer=="function")return De.Buffer.from(s,"base64");if(typeof atob=="function"){let t=atob(s.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),s},stringify({comment:s,type:e,value:t},n,i,r){if(!t)return"";let o=t,a;if(typeof De.Buffer=="function")a=o instanceof De.Buffer?o.toString("base64"):De.Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let l=0;l<o.length;++l)c+=String.fromCharCode(o[l]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=Ms.Scalar.BLOCK_LITERAL),e!==Ms.Scalar.QUOTE_DOUBLE){let c=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),l=Math.ceil(a.length/c),d=new Array(l);for(let u=0,f=0;u<l;++u,f+=c)d[u]=a.substr(f,c);a=d.join(e===Ms.Scalar.BLOCK_LITERAL?`
|
|
58
|
+
`:" ")}return sl.stringifyString({comment:s,type:e,value:a},n,i,r)}};tr.binary=nl});var Lt=g(Pt=>{"use strict";var It=C(),Ds=H(),il=q(),rl=Z();function sr(s,e){if(It.isSeq(s))for(let t=0;t<s.items.length;++t){let n=s.items[t];if(!It.isPair(n)){if(It.isMap(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");let i=n.items[0]||new Ds.Pair(new il.Scalar(null));if(n.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${n.commentBefore}
|
|
59
|
+
${i.key.commentBefore}`:n.commentBefore),n.comment){let r=i.value??i.key;r.comment=r.comment?`${n.comment}
|
|
60
|
+
${r.comment}`:n.comment}n=i}s.items[t]=It.isPair(n)?n:new Ds.Pair(n)}}else e("Expected a sequence for this tag");return s}function nr(s,e,t){let{replacer:n}=t,i=new rl.YAMLSeq(s);i.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(r++),o));let a,c;if(Array.isArray(o))if(o.length===2)a=o[0],c=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let l=Object.keys(o);if(l.length===1)a=l[0],c=o[a];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else a=o;i.items.push(Ds.createPair(a,c,t))}return i}var ol={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:sr,createNode:nr};Pt.createPairs=nr;Pt.pairs=ol;Pt.resolvePairs=sr});var Bs=g(Fs=>{"use strict";var ir=C(),Rs=J(),Re=z(),al=Z(),rr=Lt(),ie=class s extends al.YAMLSeq{constructor(){super(),this.add=Re.YAMLMap.prototype.add.bind(this),this.delete=Re.YAMLMap.prototype.delete.bind(this),this.get=Re.YAMLMap.prototype.get.bind(this),this.has=Re.YAMLMap.prototype.has.bind(this),this.set=Re.YAMLMap.prototype.set.bind(this),this.tag=s.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let i of this.items){let r,o;if(ir.isPair(i)?(r=Rs.toJS(i.key,"",t),o=Rs.toJS(i.value,r,t)):r=Rs.toJS(i,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}static from(e,t,n){let i=rr.createPairs(e,t,n),r=new this;return r.items=i.items,r}};ie.tag="tag:yaml.org,2002:omap";var cl={collection:"seq",identify:s=>s instanceof Map,nodeClass:ie,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){let t=rr.resolvePairs(s,e),n=[];for(let{key:i}of t.items)ir.isScalar(i)&&(n.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new ie,t)},createNode:(s,e,t)=>ie.from(s,e,t)};Fs.YAMLOMap=ie;Fs.omap=cl});var ur=g(js=>{"use strict";var or=q();function ar({value:s,source:e},t){return e&&(s?cr:lr).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}var cr={identify:s=>s===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new or.Scalar(!0),stringify:ar},lr={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new or.Scalar(!1),stringify:ar};js.falseTag=lr;js.trueTag=cr});var fr=g(_t=>{"use strict";var ll=q(),Ks=me(),ul={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ks.stringifyNumber},fl={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s.replace(/_/g,"")),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():Ks.stringifyNumber(s)}},dl={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){let e=new ll.Scalar(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){let n=s.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:Ks.stringifyNumber};_t.float=dl;_t.floatExp=fl;_t.floatNaN=ul});var hr=g(Be=>{"use strict";var dr=me(),Fe=s=>typeof s=="bigint"||Number.isInteger(s);function Mt(s,e,t,{intAsBigInt:n}){let i=s[0];if((i==="-"||i==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),n){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}let o=BigInt(s);return i==="-"?BigInt(-1)*o:o}let r=parseInt(s,t);return i==="-"?-1*r:r}function Us(s,e,t){let{value:n}=s;if(Fe(n)){let i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return dr.stringifyNumber(s)}var hl={identify:Fe,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>Mt(s,2,2,t),stringify:s=>Us(s,2,"0b")},pl={identify:Fe,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>Mt(s,1,8,t),stringify:s=>Us(s,8,"0")},ml={identify:Fe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>Mt(s,0,10,t),stringify:dr.stringifyNumber},yl={identify:Fe,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>Mt(s,2,16,t),stringify:s=>Us(s,16,"0x")};Be.int=ml;Be.intBin=hl;Be.intHex=yl;Be.intOct=pl});var xs=g(Vs=>{"use strict";var Rt=C(),$t=H(),Dt=z(),re=class s extends Dt.YAMLMap{constructor(e){super(e),this.tag=s.tag}add(e){let t;Rt.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new $t.Pair(e.key,null):t=new $t.Pair(e,null),Dt.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let n=Dt.findPair(this.items,e);return!t&&Rt.isPair(n)?Rt.isScalar(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Dt.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new $t.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){let{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof i=="function"&&(o=i.call(t,o,o)),r.items.push($t.createPair(o,null,n));return r}};re.tag="tag:yaml.org,2002:set";var gl={collection:"map",identify:s=>s instanceof Set,nodeClass:re,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,e,t)=>re.from(s,e,t),resolve(s,e){if(Rt.isMap(s)){if(s.hasAllNullValues(!0))return Object.assign(new re,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};Vs.YAMLSet=re;Vs.set=gl});var Js=g(Ft=>{"use strict";var bl=me();function Ys(s,e){let t=s[0],n=t==="-"||t==="+"?s.substring(1):s,i=o=>e?BigInt(o):Number(o),r=n.replace(/_/g,"").split(":").reduce((o,a)=>o*i(60)+i(a),i(0));return t==="-"?i(-1)*r:r}function pr(s){let{value:e}=s,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return bl.stringifyNumber(s);let n="";e<0&&(n="-",e*=t(-1));let i=t(60),r=[e%i];return e<60?r.unshift(0):(e=(e-r[0])/i,r.unshift(e%i),e>=60&&(e=(e-r[0])/i,r.unshift(e))),n+r.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Sl={identify:s=>typeof s=="bigint"||Number.isInteger(s),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(s,e,{intAsBigInt:t})=>Ys(s,t),stringify:pr},wl={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s=>Ys(s,!1),stringify:pr},mr={identify:s=>s 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(s){let e=s.match(mr.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,n,i,r,o,a]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0,l=Date.UTC(t,n-1,i,r||0,o||0,a||0,c),d=e[8];if(d&&d!=="Z"){let u=Ys(d,!1);Math.abs(u)<30&&(u*=60),l-=6e4*u}return new Date(l)},stringify:({value:s})=>s?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Ft.floatTime=wl;Ft.intTime=Sl;Ft.timestamp=mr});var br=g(gr=>{"use strict";var Al=he(),vl=kt(),Nl=pe(),Ol=$e(),kl=$s(),yr=ur(),Gs=fr(),Bt=hr(),Cl=gt(),Tl=Bs(),El=Lt(),ql=xs(),Ws=Js(),Il=[Al.map,Nl.seq,Ol.string,vl.nullTag,yr.trueTag,yr.falseTag,Bt.intBin,Bt.intOct,Bt.int,Bt.intHex,Gs.floatNaN,Gs.floatExp,Gs.float,kl.binary,Cl.merge,Tl.omap,El.pairs,ql.set,Ws.intTime,Ws.floatTime,Ws.timestamp];gr.schema=Il});var Er=g(Xs=>{"use strict";var vr=he(),Pl=kt(),Nr=pe(),Ll=$e(),_l=Ts(),Qs=qs(),Hs=Ps(),Ml=Xi(),$l=er(),Or=$s(),je=gt(),kr=Bs(),Cr=Lt(),Sr=br(),Tr=xs(),jt=Js(),wr=new Map([["core",Ml.schema],["failsafe",[vr.map,Nr.seq,Ll.string]],["json",$l.schema],["yaml11",Sr.schema],["yaml-1.1",Sr.schema]]),Ar={binary:Or.binary,bool:_l.boolTag,float:Qs.float,floatExp:Qs.floatExp,floatNaN:Qs.floatNaN,floatTime:jt.floatTime,int:Hs.int,intHex:Hs.intHex,intOct:Hs.intOct,intTime:jt.intTime,map:vr.map,merge:je.merge,null:Pl.nullTag,omap:kr.omap,pairs:Cr.pairs,seq:Nr.seq,set:Tr.set,timestamp:jt.timestamp},Dl={"tag:yaml.org,2002:binary":Or.binary,"tag:yaml.org,2002:merge":je.merge,"tag:yaml.org,2002:omap":kr.omap,"tag:yaml.org,2002:pairs":Cr.pairs,"tag:yaml.org,2002:set":Tr.set,"tag:yaml.org,2002:timestamp":jt.timestamp};function Rl(s,e,t){let n=wr.get(e);if(n&&!s)return t&&!n.includes(je.merge)?n.concat(je.merge):n.slice();let i=n;if(!i)if(Array.isArray(s))i=[];else{let r=Array.from(wr.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(s))for(let r of s)i=i.concat(r);else typeof s=="function"&&(i=s(i.slice()));return t&&(i=i.concat(je.merge)),i.reduce((r,o)=>{let a=typeof o=="string"?Ar[o]:o;if(!a){let c=JSON.stringify(o),l=Object.keys(Ar).map(d=>JSON.stringify(d)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${l}`)}return r.includes(a)||r.push(a),r},[])}Xs.coreKnownTags=Dl;Xs.getTags=Rl});var en=g(qr=>{"use strict";var zs=C(),Fl=he(),Bl=pe(),jl=$e(),Kt=Er(),Kl=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0,Zs=class s{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?Kt.getTags(e,"compat"):e?Kt.getTags(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=i?Kt.coreKnownTags:{},this.tags=Kt.getTags(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,zs.MAP,{value:Fl.map}),Object.defineProperty(this,zs.SCALAR,{value:jl.string}),Object.defineProperty(this,zs.SEQ,{value:Bl.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?Kl:null}clone(){let e=Object.create(s.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};qr.Schema=Zs});var Pr=g(Ir=>{"use strict";var Ul=C(),tn=Le(),Ke=Ee();function Vl(s,e){let t=[],n=e.directives===!0;if(e.directives!==!1&&s.directives){let c=s.directives.toString(s);c?(t.push(c),n=!0):s.directives.docStart&&(n=!0)}n&&t.push("---");let i=tn.createStringifyContext(s,e),{commentString:r}=i.options;if(s.commentBefore){t.length!==1&&t.unshift("");let c=r(s.commentBefore);t.unshift(Ke.indentComment(c,""))}let o=!1,a=null;if(s.contents){if(Ul.isNode(s.contents)){if(s.contents.spaceBefore&&n&&t.push(""),s.contents.commentBefore){let d=r(s.contents.commentBefore);t.push(Ke.indentComment(d,""))}i.forceBlockIndent=!!s.comment,a=s.contents.comment}let c=a?void 0:()=>o=!0,l=tn.stringify(s.contents,i,()=>a=null,c);a&&(l+=Ke.lineComment(l,"",r(a))),(l[0]==="|"||l[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${l}`:t.push(l)}else t.push(tn.stringify(s.contents,i));if(s.directives?.docEnd)if(s.comment){let c=r(s.comment);c.includes(`
|
|
61
|
+
`)?(t.push("..."),t.push(Ke.indentComment(c,""))):t.push(`... ${c}`)}else t.push("...");else{let c=s.comment;c&&o&&(c=c.replace(/^\n+/,"")),c&&((!o||a)&&t[t.length-1]!==""&&t.push(""),t.push(Ke.indentComment(r(c),"")))}return t.join(`
|
|
62
|
+
`)+`
|
|
63
|
+
`}Ir.stringifyDocument=Vl});var Ue=g(Lr=>{"use strict";var xl=Ce(),ye=at(),D=C(),Yl=H(),Jl=J(),Gl=en(),Wl=Pr(),sn=nt(),Ql=os(),Hl=Te(),nn=rs(),rn=class s{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,D.NODE_TYPE,{value:D.DOC});let i=null;typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:o}=r;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new nn.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let e=Object.create(s.prototype,{[D.NODE_TYPE]:{value:D.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=D.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ge(this.contents)&&this.contents.add(e)}addIn(e,t){ge(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=sn.anchorNames(this);e.anchor=!t||n.has(t)?sn.findNewAnchor(t||"a",n):t}return new xl.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t=="function")e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){let p=w=>typeof w=="number"||w instanceof String||w instanceof Number,b=t.filter(p).map(String);b.length>0&&(t=t.concat(b)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:o,flow:a,keepUndefined:c,onTagObj:l,tag:d}=n??{},{onAnchor:u,setAnchors:f,sourceObjects:m}=sn.createNodeAnchors(this,o||"a"),y={aliasDuplicateObjects:r??!0,keepUndefined:c??!1,onAnchor:u,onTagObj:l,replacer:i,schema:this.schema,sourceObjects:m},h=Hl.createNode(e,d,y);return a&&D.isCollection(h)&&(h.flow=!0),f(),h}createPair(e,t,n={}){let i=this.createNode(e,null,n),r=this.createNode(t,null,n);return new Yl.Pair(i,r)}delete(e){return ge(this.contents)?this.contents.delete(e):!1}deleteIn(e){return ye.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):ge(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return D.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return ye.isEmptyPath(e)?!t&&D.isScalar(this.contents)?this.contents.value:this.contents:D.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return D.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return ye.isEmptyPath(e)?this.contents!==void 0:D.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=ye.collectionFromPath(this.schema,[e],t):ge(this.contents)&&this.contents.set(e,t)}setIn(e,t){ye.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=ye.collectionFromPath(this.schema,Array.from(e),t):ge(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new nn.Directives({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new nn.Directives({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Gl.Schema(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},c=Jl.toJS(this.contents,t??"",a);if(typeof r=="function")for(let{count:l,res:d}of a.anchors.values())r(d,l);return typeof o=="function"?Ql.applyReviver(o,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return Wl.stringifyDocument(this,e)}};function ge(s){if(D.isCollection(s))return!0;throw new Error("Expected a YAML collection as document contents")}Lr.Document=rn});var Ye=g(xe=>{"use strict";var Ve=class extends Error{constructor(e,t,n,i){super(),this.name=e,this.code=n,this.message=i,this.pos=t}},on=class extends Ve{constructor(e,t,n){super("YAMLParseError",e,t,n)}},an=class extends Ve{constructor(e,t,n){super("YAMLWarning",e,t,n)}},Xl=(s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(a=>e.linePos(a));let{line:n,col:i}=t.linePos[0];t.message+=` at line ${n}, column ${i}`;let r=i-1,o=s.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let a=Math.min(r-39,o.length-79);o="\u2026"+o.substring(a),r-=a-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(o.substring(0,r))){let a=s.substring(e.lineStarts[n-2],e.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
|
|
64
|
+
`),o=a+o}if(/[^ ]/.test(o)){let a=1,c=t.linePos[1];c?.line===n&&c.col>i&&(a=Math.max(1,Math.min(c.col-i,80-r)));let l=" ".repeat(r)+"^".repeat(a);t.message+=`:
|
|
65
|
+
|
|
66
|
+
${o}
|
|
67
|
+
${l}
|
|
68
|
+
`}};xe.YAMLError=Ve;xe.YAMLParseError=on;xe.YAMLWarning=an;xe.prettifyError=Xl});var Je=g(_r=>{"use strict";function zl(s,{flow:e,indicator:t,next:n,offset:i,onError:r,parentIndent:o,startOnNewline:a}){let c=!1,l=a,d=a,u="",f="",m=!1,y=!1,h=null,p=null,b=null,w=null,A=null,v=null,O=null;for(let S of s)switch(y&&(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma"&&r(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),h&&(l&&S.type!=="comment"&&S.type!=="newline"&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),h=null),S.type){case"space":!e&&(t!=="doc-start"||n?.type!=="flow-collection")&&S.source.includes(" ")&&(h=S),d=!0;break;case"comment":{d||r(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let I=S.source.substring(1)||" ";u?u+=f+I:u=I,f="",l=!1;break}case"newline":l?u?u+=S.source:(!v||t!=="seq-item-ind")&&(c=!0):f+=S.source,l=!0,m=!0,(p||b)&&(w=S),d=!0;break;case"anchor":p&&r(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&r(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),p=S,O??(O=S.offset),l=!1,d=!1,y=!0;break;case"tag":{b&&r(S,"MULTIPLE_TAGS","A node can have at most one tag"),b=S,O??(O=S.offset),l=!1,d=!1,y=!0;break}case t:(p||b)&&r(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),v&&r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${e??"collection"}`),v=S,l=t==="seq-item-ind"||t==="explicit-key-ind",d=!1;break;case"comma":if(e){A&&r(S,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),A=S,l=!1,d=!1;break}default:r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),l=!1,d=!1}let k=s[s.length-1],E=k?k.offset+k.source.length:i;return y&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&r(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h&&(l&&h.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:A,found:v,spaceBefore:c,comment:u,hasNewline:m,anchor:p,tag:b,newlineAfterProp:w,end:E,start:O??E}}_r.resolveProps=zl});var Ut=g(Mr=>{"use strict";function cn(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
|
|
69
|
+
`))return!0;if(s.end){for(let e of s.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of s.items){for(let t of e.start)if(t.type==="newline")return!0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return!0}if(cn(e.key)||cn(e.value))return!0}return!1;default:return!0}}Mr.containsNewline=cn});var ln=g($r=>{"use strict";var Zl=Ut();function eu(s,e,t){if(e?.type==="flow-collection"){let n=e.end[0];n.indent===s&&(n.source==="]"||n.source==="}")&&Zl.containsNewline(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}$r.flowIndentCheck=eu});var un=g(Rr=>{"use strict";var Dr=C();function tu(s,e,t){let{uniqueKeys:n}=s.options;if(n===!1)return!1;let i=typeof n=="function"?n:(r,o)=>r===o||Dr.isScalar(r)&&Dr.isScalar(o)&&r.value===o.value;return e.some(r=>i(r.key,t))}Rr.mapIncludes=tu});var Vr=g(Ur=>{"use strict";var Fr=H(),su=z(),Br=Je(),nu=Ut(),jr=ln(),iu=un(),Kr="All mapping items must start at the same column";function ru({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??su.YAMLMap,a=new o(t.schema);t.atRoot&&(t.atRoot=!1);let c=n.offset,l=null;for(let d of n.items){let{start:u,key:f,sep:m,value:y}=d,h=Br.resolveProps(u,{indicator:"explicit-key-ind",next:f??m?.[0],offset:c,onError:i,parentIndent:n.indent,startOnNewline:!0}),p=!h.found;if(p){if(f&&(f.type==="block-seq"?i(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==n.indent&&i(c,"BAD_INDENT",Kr)),!h.anchor&&!h.tag&&!m){l=h.end,h.comment&&(a.comment?a.comment+=`
|
|
70
|
+
`+h.comment:a.comment=h.comment);continue}(h.newlineAfterProp||nu.containsNewline(f))&&i(f??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==n.indent&&i(c,"BAD_INDENT",Kr);t.atKey=!0;let b=h.end,w=f?s(t,f,h,i):e(t,b,u,null,h,i);t.schema.compat&&jr.flowIndentCheck(n.indent,f,i),t.atKey=!1,iu.mapIncludes(t,a.items,w)&&i(b,"DUPLICATE_KEY","Map keys must be unique");let A=Br.resolveProps(m??[],{indicator:"map-value-ind",next:y,offset:w.range[2],onError:i,parentIndent:n.indent,startOnNewline:!f||f.type==="block-scalar"});if(c=A.end,A.found){p&&(y?.type==="block-map"&&!A.hasNewline&&i(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&h.start<A.found.offset-1024&&i(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let v=y?s(t,y,A,i):e(t,c,m,null,A,i);t.schema.compat&&jr.flowIndentCheck(n.indent,y,i),c=v.range[2];let O=new Fr.Pair(w,v);t.options.keepSourceTokens&&(O.srcToken=d),a.items.push(O)}else{p&&i(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),A.comment&&(w.comment?w.comment+=`
|
|
71
|
+
`+A.comment:w.comment=A.comment);let v=new Fr.Pair(w);t.options.keepSourceTokens&&(v.srcToken=d),a.items.push(v)}}return l&&l<c&&i(l,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,c,l??c],a}Ur.resolveBlockMap=ru});var Yr=g(xr=>{"use strict";var ou=Z(),au=Je(),cu=ln();function lu({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??ou.YAMLSeq,a=new o(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let c=n.offset,l=null;for(let{start:d,value:u}of n.items){let f=au.resolveProps(d,{indicator:"seq-item-ind",next:u,offset:c,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||u)u?.type==="block-seq"?i(f.end,"BAD_INDENT","All sequence items must start at the same column"):i(c,"MISSING_CHAR","Sequence item without - indicator");else{l=f.end,f.comment&&(a.comment=f.comment);continue}let m=u?s(t,u,f,i):e(t,f.end,d,null,f,i);t.schema.compat&&cu.flowIndentCheck(n.indent,u,i),c=m.range[2],a.items.push(m)}return a.range=[n.offset,c,l??c],a}xr.resolveBlockSeq=lu});var be=g(Jr=>{"use strict";function uu(s,e,t,n){let i="";if(s){let r=!1,o="";for(let a of s){let{source:c,type:l}=a;switch(l){case"space":r=!0;break;case"comment":{t&&!r&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let d=c.substring(1)||" ";i?i+=o+d:i=d,o="";break}case"newline":i&&(o+=c),r=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}e+=c.length}}return{comment:i,offset:e}}Jr.resolveEnd=uu});var Hr=g(Qr=>{"use strict";var fu=C(),du=H(),Gr=z(),hu=Z(),pu=be(),Wr=Je(),mu=Ut(),yu=un(),fn="Block collections are not allowed within flow collections",dn=s=>s&&(s.type==="block-map"||s.type==="block-seq");function gu({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=n.start.source==="{",a=o?"flow map":"flow sequence",c=r?.nodeClass??(o?Gr.YAMLMap:hu.YAMLSeq),l=new c(t.schema);l.flow=!0;let d=t.atRoot;d&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let u=n.offset+n.start.source.length;for(let p=0;p<n.items.length;++p){let b=n.items[p],{start:w,key:A,sep:v,value:O}=b,k=Wr.resolveProps(w,{flow:a,indicator:"explicit-key-ind",next:A??v?.[0],offset:u,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!v&&!O){p===0&&k.comma?i(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):p<n.items.length-1&&i(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),k.comment&&(l.comment?l.comment+=`
|
|
72
|
+
`+k.comment:l.comment=k.comment),u=k.end;continue}!o&&t.options.strict&&mu.containsNewline(A)&&i(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(p===0)k.comma&&i(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(k.comma||i(k.start,"MISSING_CHAR",`Missing , between ${a} items`),k.comment){let E="";e:for(let S of w)switch(S.type){case"comma":case"space":break;case"comment":E=S.source.substring(1);break e;default:break e}if(E){let S=l.items[l.items.length-1];fu.isPair(S)&&(S=S.value??S.key),S.comment?S.comment+=`
|
|
73
|
+
`+E:S.comment=E,k.comment=k.comment.substring(E.length+1)}}if(!o&&!v&&!k.found){let E=O?s(t,O,k,i):e(t,k.end,v,null,k,i);l.items.push(E),u=E.range[2],dn(O)&&i(E.range,"BLOCK_IN_FLOW",fn)}else{t.atKey=!0;let E=k.end,S=A?s(t,A,k,i):e(t,E,w,null,k,i);dn(A)&&i(S.range,"BLOCK_IN_FLOW",fn),t.atKey=!1;let I=Wr.resolveProps(v??[],{flow:a,indicator:"map-value-ind",next:O,offset:S.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(I.found){if(!o&&!k.found&&t.options.strict){if(v)for(let P of v){if(P===I.found)break;if(P.type==="newline"){i(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<I.found.offset-1024&&i(I.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else O&&("source"in O&&O.source?.[0]===":"?i(O,"MISSING_CHAR",`Missing space after : in ${a}`):i(I.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let Y=O?s(t,O,I,i):I.found?e(t,I.end,v,null,I,i):null;Y?dn(O)&&i(Y.range,"BLOCK_IN_FLOW",fn):I.comment&&(S.comment?S.comment+=`
|
|
74
|
+
`+I.comment:S.comment=I.comment);let ce=new du.Pair(S,Y);if(t.options.keepSourceTokens&&(ce.srcToken=b),o){let P=l;yu.mapIncludes(t,P.items,S)&&i(E,"DUPLICATE_KEY","Map keys must be unique"),P.items.push(ce)}else{let P=new Gr.YAMLMap(t.schema);P.flow=!0,P.items.push(ce);let Qn=(Y??S).range;P.range=[S.range[0],Qn[1],Qn[2]],l.items.push(P)}u=Y?Y.range[2]:I.end}}let f=o?"}":"]",[m,...y]=n.end,h=u;if(m?.source===f)h=m.offset+m.source.length;else{let p=a[0].toUpperCase()+a.substring(1),b=d?`${p} must end with a ${f}`:`${p} in block collection must be sufficiently indented and end with a ${f}`;i(u,d?"MISSING_CHAR":"BAD_INDENT",b),m&&m.source.length!==1&&y.unshift(m)}if(y.length>0){let p=pu.resolveEnd(y,h,t.options.strict,i);p.comment&&(l.comment?l.comment+=`
|
|
75
|
+
`+p.comment:l.comment=p.comment),l.range=[n.offset,h,p.offset]}else l.range=[n.offset,h,h];return l}Qr.resolveFlowCollection=gu});var zr=g(Xr=>{"use strict";var bu=C(),Su=q(),wu=z(),Au=Z(),vu=Vr(),Nu=Yr(),Ou=Hr();function hn(s,e,t,n,i,r){let o=t.type==="block-map"?vu.resolveBlockMap(s,e,t,n,r):t.type==="block-seq"?Nu.resolveBlockSeq(s,e,t,n,r):Ou.resolveFlowCollection(s,e,t,n,r),a=o.constructor;return i==="!"||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function ku(s,e,t,n,i){let r=n.tag,o=r?e.directives.tagName(r.source,f=>i(r,"TAG_RESOLVE_FAILED",f)):null;if(t.type==="block-seq"){let{anchor:f,newlineAfterProp:m}=n,y=f&&r?f.offset>r.offset?f:r:f??r;y&&(!m||m.offset<y.offset)&&i(y,"MISSING_CHAR","Missing newline after block sequence props")}let a=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===wu.YAMLMap.tagName&&a==="map"||o===Au.YAMLSeq.tagName&&a==="seq")return hn(s,e,t,i,o);let c=e.schema.tags.find(f=>f.tag===o&&f.collection===a);if(!c){let f=e.schema.knownTags[o];if(f?.collection===a)e.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f?i(r,"BAD_COLLECTION_TYPE",`${f.tag} used for ${a} collection, but expects ${f.collection??"scalar"}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),hn(s,e,t,i,o)}let l=hn(s,e,t,i,o,c),d=c.resolve?.(l,f=>i(r,"TAG_RESOLVE_FAILED",f),e.options)??l,u=bu.isNode(d)?d:new Su.Scalar(d);return u.range=l.range,u.tag=o,c?.format&&(u.format=c.format),u}Xr.composeCollection=ku});var mn=g(Zr=>{"use strict";var pn=q();function Cu(s,e,t){let n=e.offset,i=Tu(e,s.options.strict,t);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let r=i.mode===">"?pn.Scalar.BLOCK_FOLDED:pn.Scalar.BLOCK_LITERAL,o=e.source?Eu(e.source):[],a=o.length;for(let h=o.length-1;h>=0;--h){let p=o[h][1];if(p===""||p==="\r")a=h;else break}if(a===0){let h=i.chomp==="+"&&o.length>0?`
|
|
76
|
+
`.repeat(Math.max(1,o.length-1)):"",p=n+i.length;return e.source&&(p+=e.source.length),{value:h,type:r,comment:i.comment,range:[n,p,p]}}let c=e.indent+i.indent,l=e.offset+i.length,d=0;for(let h=0;h<a;++h){let[p,b]=o[h];if(b===""||b==="\r")i.indent===0&&p.length>c&&(c=p.length);else{p.length<c&&t(l+p.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(c=p.length),d=h,c===0&&!s.atRoot&&t(l,"BAD_INDENT","Block scalar values in collections must be indented");break}l+=p.length+b.length+1}for(let h=o.length-1;h>=a;--h)o[h][0].length>c&&(a=h+1);let u="",f="",m=!1;for(let h=0;h<d;++h)u+=o[h][0].slice(c)+`
|
|
77
|
+
`;for(let h=d;h<a;++h){let[p,b]=o[h];l+=p.length+b.length+1;let w=b[b.length-1]==="\r";if(w&&(b=b.slice(0,-1)),b&&p.length<c){let v=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;t(l-b.length-(w?2:1),"BAD_INDENT",v),p=""}r===pn.Scalar.BLOCK_LITERAL?(u+=f+p.slice(c)+b,f=`
|
|
78
|
+
`):p.length>c||b[0]===" "?(f===" "?f=`
|
|
79
|
+
`:!m&&f===`
|
|
80
|
+
`&&(f=`
|
|
81
|
+
|
|
82
|
+
`),u+=f+p.slice(c)+b,f=`
|
|
83
|
+
`,m=!0):b===""?f===`
|
|
84
|
+
`?u+=`
|
|
85
|
+
`:f=`
|
|
86
|
+
`:(u+=f+b,f=" ",m=!1)}switch(i.chomp){case"-":break;case"+":for(let h=a;h<o.length;++h)u+=`
|
|
87
|
+
`+o[h][0].slice(c);u[u.length-1]!==`
|
|
88
|
+
`&&(u+=`
|
|
89
|
+
`);break;default:u+=`
|
|
90
|
+
`}let y=n+i.length+e.source.length;return{value:u,type:r,comment:i.comment,range:[n,y,y]}}function Tu({offset:s,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=e[0],r=i[0],o=0,a="",c=-1;for(let f=1;f<i.length;++f){let m=i[f];if(!a&&(m==="-"||m==="+"))a=m;else{let y=Number(m);!o&&y?o=y:c===-1&&(c=s+f)}}c!==-1&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let l=!1,d="",u=i.length;for(let f=1;f<e.length;++f){let m=e[f];switch(m.type){case"space":l=!0;case"newline":u+=m.source.length;break;case"comment":t&&!l&&n(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=m.source.length,d=m.source.substring(1);break;case"error":n(m,"UNEXPECTED_TOKEN",m.message),u+=m.source.length;break;default:{let y=`Unexpected token in block scalar header: ${m.type}`;n(m,"UNEXPECTED_TOKEN",y);let h=m.source;h&&typeof h=="string"&&(u+=h.length)}}}return{mode:r,indent:o,chomp:a,comment:d,length:u}}function Eu(s){let e=s.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),r=[n?.[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let o=1;o<e.length;o+=2)r.push([e[o],e[o+1]]);return r}Zr.resolveBlockScalar=Cu});var gn=g(to=>{"use strict";var yn=q(),qu=be();function Iu(s,e,t){let{offset:n,type:i,source:r,end:o}=s,a,c,l=(f,m,y)=>t(n+f,m,y);switch(i){case"scalar":a=yn.Scalar.PLAIN,c=Pu(r,l);break;case"single-quoted-scalar":a=yn.Scalar.QUOTE_SINGLE,c=Lu(r,l);break;case"double-quoted-scalar":a=yn.Scalar.QUOTE_DOUBLE,c=_u(r,l);break;default:return t(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[n,n+r.length,n+r.length]}}let d=n+r.length,u=qu.resolveEnd(o,d,e,t);return{value:c,type:a,comment:u.comment,range:[n,d,u.offset]}}function Pu(s,e){let t="";switch(s[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${s[0]}`;break}case"@":case"`":{t=`reserved character ${s[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),eo(s)}function Lu(s,e){return(s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),eo(s.slice(1,-1)).replace(/''/g,"'")}function eo(s){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
91
|
+
`,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
92
|
+
`,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(s);if(!n)return s;let i=n[1],r=" ",o=e.lastIndex;for(t.lastIndex=o;n=t.exec(s);)n[1]===""?r===`
|
|
93
|
+
`?i+=r:r=`
|
|
94
|
+
`:(i+=r+n[1],r=" "),o=t.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,n=a.exec(s),i+r+(n?.[1]??"")}function _u(s,e){let t="";for(let n=1;n<s.length-1;++n){let i=s[n];if(!(i==="\r"&&s[n+1]===`
|
|
95
|
+
`))if(i===`
|
|
96
|
+
`){let{fold:r,offset:o}=Mu(s,n);t+=r,n=o}else if(i==="\\"){let r=s[++n],o=$u[r];if(o)t+=o;else if(r===`
|
|
97
|
+
`)for(r=s[n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="\r"&&s[n+1]===`
|
|
98
|
+
`)for(r=s[++n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="x"||r==="u"||r==="U"){let a=r==="x"?2:r==="u"?4:8;t+=Du(s,n+1,a,e),n+=a}else{let a=s.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),t+=a}}else if(i===" "||i===" "){let r=n,o=s[n+1];for(;o===" "||o===" ";)o=s[++n+1];o!==`
|
|
99
|
+
`&&!(o==="\r"&&s[n+2]===`
|
|
100
|
+
`)&&(t+=n>r?s.slice(r,n+1):i)}else t+=i}return(s[s.length-1]!=='"'||s.length===1)&&e(s.length,"MISSING_CHAR",'Missing closing "quote'),t}function Mu(s,e){let t="",n=s[e+1];for(;(n===" "||n===" "||n===`
|
|
101
|
+
`||n==="\r")&&!(n==="\r"&&s[e+2]!==`
|
|
102
|
+
`);)n===`
|
|
103
|
+
`&&(t+=`
|
|
104
|
+
`),e+=1,n=s[e+1];return t||(t=" "),{fold:t,offset:e}}var $u={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
105
|
+
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Du(s,e,t,n){let i=s.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(o)}catch{let a=s.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}}to.resolveFlowScalar=Iu});var io=g(no=>{"use strict";var oe=C(),so=q(),Ru=mn(),Fu=gn();function Bu(s,e,t,n){let{value:i,type:r,comment:o,range:a}=e.type==="block-scalar"?Ru.resolveBlockScalar(s,e,n):Fu.resolveFlowScalar(e,s.options.strict,n),c=t?s.directives.tagName(t.source,u=>n(t,"TAG_RESOLVE_FAILED",u)):null,l;s.options.stringKeys&&s.atKey?l=s.schema[oe.SCALAR]:c?l=ju(s.schema,i,c,t,n):e.type==="scalar"?l=Ku(s,i,e,n):l=s.schema[oe.SCALAR];let d;try{let u=l.resolve(i,f=>n(t??e,"TAG_RESOLVE_FAILED",f),s.options);d=oe.isScalar(u)?u:new so.Scalar(u)}catch(u){let f=u instanceof Error?u.message:String(u);n(t??e,"TAG_RESOLVE_FAILED",f),d=new so.Scalar(i)}return d.range=a,d.source=i,r&&(d.type=r),c&&(d.tag=c),l.format&&(d.format=l.format),o&&(d.comment=o),d}function ju(s,e,t,n,i){if(t==="!")return s[oe.SCALAR];let r=[];for(let a of s.tags)if(!a.collection&&a.tag===t)if(a.default&&a.test)r.push(a);else return a;for(let a of r)if(a.test?.test(e))return a;let o=s.knownTags[t];return o&&!o.collection?(s.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),s[oe.SCALAR])}function Ku({atKey:s,directives:e,schema:t},n,i,r){let o=t.tags.find(a=>(a.default===!0||s&&a.default==="key")&&a.test?.test(n))||t[oe.SCALAR];if(t.compat){let a=t.compat.find(c=>c.default&&c.test?.test(n))??t[oe.SCALAR];if(o.tag!==a.tag){let c=e.tagString(o.tag),l=e.tagString(a.tag),d=`Value may be parsed as either ${c} or ${l}`;r(i,"TAG_RESOLVE_FAILED",d,!0)}}return o}no.composeScalar=Bu});var oo=g(ro=>{"use strict";function Uu(s,e,t){if(e){t??(t=e.length);for(let n=t-1;n>=0;--n){let i=e[n];switch(i.type){case"space":case"comment":case"newline":s-=i.source.length;continue}for(i=e[++n];i?.type==="space";)s+=i.source.length,i=e[++n];break}}return s}ro.emptyScalarPosition=Uu});var lo=g(Sn=>{"use strict";var Vu=Ce(),xu=C(),Yu=zr(),ao=io(),Ju=be(),Gu=oo(),Wu={composeNode:co,composeEmptyNode:bn};function co(s,e,t,n){let i=s.atKey,{spaceBefore:r,comment:o,anchor:a,tag:c}=t,l,d=!0;switch(e.type){case"alias":l=Qu(s,e,n),(a||c)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=ao.composeScalar(s,e,c,n),a&&(l.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{l=Yu.composeCollection(Wu,s,e,t,n),a&&(l.anchor=a.source.substring(1))}catch(u){let f=u instanceof Error?u.message:String(u);n(e,"RESOURCE_EXHAUSTION",f)}break;default:{let u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",u),d=!1}}return l??(l=bn(s,e.offset,void 0,null,t,n)),a&&l.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&s.options.stringKeys&&(!xu.isScalar(l)||typeof l.value!="string"||l.tag&&l.tag!=="tag:yaml.org,2002:str")&&n(c??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),r&&(l.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?l.comment=o:l.commentBefore=o),s.options.keepSourceTokens&&d&&(l.srcToken=e),l}function bn(s,e,t,n,{spaceBefore:i,comment:r,anchor:o,tag:a,end:c},l){let d={type:"scalar",offset:Gu.emptyScalarPosition(e,t,n),indent:-1,source:""},u=ao.composeScalar(s,d,a,l);return o&&(u.anchor=o.source.substring(1),u.anchor===""&&l(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(u.spaceBefore=!0),r&&(u.comment=r,u.range[2]=c),u}function Qu({options:s},{offset:e,source:t,end:n},i){let r=new Vu.Alias(t.substring(1));r.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&i(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+t.length,a=Ju.resolveEnd(n,o,s.strict,i);return r.range=[e,o,a.offset],a.comment&&(r.comment=a.comment),r}Sn.composeEmptyNode=bn;Sn.composeNode=co});var ho=g(fo=>{"use strict";var Hu=Ue(),uo=lo(),Xu=be(),zu=Je();function Zu(s,e,{offset:t,start:n,value:i,end:r},o){let a=Object.assign({_directives:e},s),c=new Hu.Document(void 0,a),l={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},d=zu.resolveProps(n,{indicator:"doc-start",next:i??r?.[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});d.found&&(c.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!d.hasNewline&&o(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=i?uo.composeNode(l,i,d,o):uo.composeEmptyNode(l,d.end,n,null,d,o);let u=c.contents.range[2],f=Xu.resolveEnd(r,u,!1,o);return f.comment&&(c.comment=f.comment),c.range=[t,u,f.offset],c}fo.composeDoc=Zu});var An=g(yo=>{"use strict";var ef=ze("process"),tf=rs(),sf=Ue(),Ge=Ye(),po=C(),nf=ho(),rf=be();function We(s){if(typeof s=="number")return[s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];let{offset:e,source:t}=s;return[e,e+(typeof t=="string"?t.length:1)]}function mo(s){let e="",t=!1,n=!1;for(let i=0;i<s.length;++i){let r=s[i];switch(r[0]){case"#":e+=(e===""?"":n?`
|
|
106
|
+
|
|
107
|
+
`:`
|
|
108
|
+
`)+(r.substring(1)||" "),t=!0,n=!1;break;case"%":s[i+1]?.[0]!=="#"&&(i+=1),t=!1;break;default:t||(n=!0),t=!1}}return{comment:e,afterEmptyLine:n}}var wn=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,i,r)=>{let o=We(t);r?this.warnings.push(new Ge.YAMLWarning(o,n,i)):this.errors.push(new Ge.YAMLParseError(o,n,i))},this.directives=new tf.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:i}=mo(this.prelude);if(n){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
109
|
+
${n}`:n;else if(i||e.directives.docStart||!r)e.commentBefore=n;else if(po.isCollection(r)&&!r.flow&&r.items.length>0){let o=r.items[0];po.isPair(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${n}
|
|
110
|
+
${a}`:n}else{let o=r.commentBefore;r.commentBefore=o?`${n}
|
|
111
|
+
${o}`:n}}if(t){for(let r=0;r<this.errors.length;++r)e.errors.push(this.errors[r]);for(let r=0;r<this.warnings.length;++r)e.warnings.push(this.warnings[r])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:mo(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let i of e)yield*this.next(i);yield*this.end(t,n)}*next(e){switch(ef.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,n,i)=>{let r=We(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",n,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=nf.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Ge.YAMLParseError(We(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new Ge.YAMLParseError(We(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let t=rf.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let n=this.doc.comment;this.doc.comment=n?`${n}
|
|
112
|
+
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Ge.YAMLParseError(We(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let n=Object.assign({_directives:this.directives},this.options),i=new sf.Document(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,t,t],this.decorate(i,!1),yield i}}};yo.Composer=wn});var So=g(Vt=>{"use strict";var of=mn(),af=gn(),cf=Ye(),go=Pe();function lf(s,e=!0,t){if(s){let n=(i,r,o)=>{let a=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(t)t(a,r,o);else throw new cf.YAMLParseError([a,a+1],r,o)};switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return af.resolveFlowScalar(s,e,n);case"block-scalar":return of.resolveBlockScalar({options:{strict:e}},s,n)}}return null}function uf(s,e){let{implicitKey:t=!1,indent:n,inFlow:i=!1,offset:r=-1,type:o="PLAIN"}=e,a=go.stringifyString({type:o,value:s},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),c=e.end??[{type:"newline",offset:-1,indent:n,source:`
|
|
113
|
+
`}];switch(a[0]){case"|":case">":{let l=a.indexOf(`
|
|
114
|
+
`),d=a.substring(0,l),u=a.substring(l+1)+`
|
|
115
|
+
`,f=[{type:"block-scalar-header",offset:r,indent:n,source:d}];return bo(f,c)||f.push({type:"newline",offset:-1,indent:n,source:`
|
|
116
|
+
`}),{type:"block-scalar",offset:r,indent:n,props:f,source:u}}case'"':return{type:"double-quoted-scalar",offset:r,indent:n,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:r,indent:n,source:a,end:c};default:return{type:"scalar",offset:r,indent:n,source:a,end:c}}}function ff(s,e,t={}){let{afterKey:n=!1,implicitKey:i=!1,inFlow:r=!1,type:o}=t,a="indent"in s?s.indent:null;if(n&&typeof a=="number"&&(a+=2),!o)switch(s.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let l=s.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=l.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let c=go.stringifyString({type:o,value:e},{implicitKey:i||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":df(s,c);break;case'"':vn(s,c,"double-quoted-scalar");break;case"'":vn(s,c,"single-quoted-scalar");break;default:vn(s,c,"scalar")}}function df(s,e){let t=e.indexOf(`
|
|
117
|
+
`),n=e.substring(0,t),i=e.substring(t+1)+`
|
|
118
|
+
`;if(s.type==="block-scalar"){let r=s.props[0];if(r.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r.source=n,s.source=i}else{let{offset:r}=s,o="indent"in s?s.indent:-1,a=[{type:"block-scalar-header",offset:r,indent:o,source:n}];bo(a,"end"in s?s.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
|
|
119
|
+
`});for(let c of Object.keys(s))c!=="type"&&c!=="offset"&&delete s[c];Object.assign(s,{type:"block-scalar",indent:o,props:a,source:i})}}function bo(s,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":s.push(t);break;case"newline":return s.push(t),!0}return!1}function vn(s,e,t){switch(s.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":s.type=t,s.source=e;break;case"block-scalar":{let n=s.props.slice(1),i=e.length;s.props[0].type==="block-scalar-header"&&(i-=s.props[0].source.length);for(let r of n)r.offset+=i;delete s.props,Object.assign(s,{type:t,source:e,end:n});break}case"block-map":case"block-seq":{let i={type:"newline",offset:s.offset+e.length,indent:s.indent,source:`
|
|
120
|
+
`};delete s.items,Object.assign(s,{type:t,source:e,end:[i]});break}default:{let n="indent"in s?s.indent:-1,i="end"in s&&Array.isArray(s.end)?s.end.filter(r=>r.type==="space"||r.type==="comment"||r.type==="newline"):[];for(let r of Object.keys(s))r!=="type"&&r!=="offset"&&delete s[r];Object.assign(s,{type:t,indent:n,source:e,end:i})}}}Vt.createScalarToken=uf;Vt.resolveAsScalar=lf;Vt.setScalarValue=ff});var Ao=g(wo=>{"use strict";var hf=s=>"type"in s?Yt(s):xt(s);function Yt(s){switch(s.type){case"block-scalar":{let e="";for(let t of s.props)e+=Yt(t);return e+s.source}case"block-map":case"block-seq":{let e="";for(let t of s.items)e+=xt(t);return e}case"flow-collection":{let e=s.start.source;for(let t of s.items)e+=xt(t);for(let t of s.end)e+=t.source;return e}case"document":{let e=xt(s);if(s.end)for(let t of s.end)e+=t.source;return e}default:{let e=s.source;if("end"in s&&s.end)for(let t of s.end)e+=t.source;return e}}}function xt({start:s,key:e,sep:t,value:n}){let i="";for(let r of s)i+=r.source;if(e&&(i+=Yt(e)),t)for(let r of t)i+=r.source;return n&&(i+=Yt(n)),i}wo.stringify=hf});var ko=g(Oo=>{"use strict";var Nn=Symbol("break visit"),pf=Symbol("skip children"),vo=Symbol("remove item");function ae(s,e){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),No(Object.freeze([]),s,e)}ae.BREAK=Nn;ae.SKIP=pf;ae.REMOVE=vo;ae.itemAtPath=(s,e)=>{let t=s;for(let[n,i]of e){let r=t?.[n];if(r&&"items"in r)t=r.items[i];else return}return t};ae.parentCollection=(s,e)=>{let t=ae.itemAtPath(s,e.slice(0,-1)),n=e[e.length-1][0],i=t?.[n];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function No(s,e,t){let n=t(e,s);if(typeof n=="symbol")return n;for(let i of["key","value"]){let r=e[i];if(r&&"items"in r){for(let o=0;o<r.items.length;++o){let a=No(Object.freeze(s.concat([[i,o]])),r.items[o],t);if(typeof a=="number")o=a-1;else{if(a===Nn)return Nn;a===vo&&(r.items.splice(o,1),o-=1)}}typeof n=="function"&&i==="key"&&(n=n(e,s))}}return typeof n=="function"?n(e,s):n}Oo.visit=ae});var Jt=g($=>{"use strict";var On=So(),mf=Ao(),yf=ko(),kn="\uFEFF",Cn="",Tn="",En="",gf=s=>!!s&&"items"in s,bf=s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar");function Sf(s){switch(s){case kn:return"<BOM>";case Cn:return"<DOC>";case Tn:return"<FLOW_END>";case En:return"<SCALAR>";default:return JSON.stringify(s)}}function wf(s){switch(s){case kn:return"byte-order-mark";case Cn:return"doc-mode";case Tn:return"flow-error-end";case En:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
121
|
+
`:case`\r
|
|
122
|
+
`: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(s[0]){case" ":case" ":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}$.createScalarToken=On.createScalarToken;$.resolveAsScalar=On.resolveAsScalar;$.setScalarValue=On.setScalarValue;$.stringify=mf.stringify;$.visit=yf.visit;$.BOM=kn;$.DOCUMENT=Cn;$.FLOW_END=Tn;$.SCALAR=En;$.isCollection=gf;$.isScalar=bf;$.prettyToken=Sf;$.tokenType=wf});var Pn=g(To=>{"use strict";var Qe=Jt();function B(s){switch(s){case void 0:case" ":case`
|
|
123
|
+
`:case"\r":case" ":return!0;default:return!1}}var Co=new Set("0123456789ABCDEFabcdef"),Af=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Gt=new Set(",[]{}"),vf=new Set(` ,[]{}
|
|
124
|
+
\r `),qn=s=>!s||vf.has(s),In=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
|
|
125
|
+
`?!0:t==="\r"?this.buffer[e+1]===`
|
|
126
|
+
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===" ";)t=this.buffer[++n+e];if(t==="\r"){let i=this.buffer[n+e+1];if(i===`
|
|
127
|
+
`||!i&&!this.atEnd)return e+n+1}return t===`
|
|
128
|
+
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){let n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&B(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
129
|
+
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Qe.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,n=e.indexOf("#");for(;n!==-1;){let r=e[n-1];if(r===" "||r===" "){t=n-1;break}else n=e.indexOf("#",n+1)}for(;;){let r=e[t-1];if(r===" "||r===" ")t-=1;else break}let i=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Qe.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if((t==="---"||t==="...")&&B(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!B(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&B(t)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(qn),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let i=this.getLine();if(i===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&i[0]!=="#"||n===0&&(i.startsWith("---")||i.startsWith("..."))&&B(i[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Qe.FLOW_END,yield*this.parseLineStart();let r=0;for(;i[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),i[r]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-r),"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(qn),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||B(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),i=n.indexOf(`
|
|
130
|
+
`,this.pos);if(i!==-1){for(;i!==-1;){let r=this.continueScalar(i+1);if(r===-1)break;i=n.indexOf(`
|
|
131
|
+
`,r)}i!==-1&&(t=i-(n[i-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>B(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,n;e:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case" ":t+=1;break;case`
|
|
132
|
+
`:e=r,t=0;break;case"\r":{let o=this.buffer[r+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
|
|
133
|
+
`)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
|
|
134
|
+
`,r)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let i=e+1;for(n=this.buffer[i];n===" ";)n=this.buffer[++i];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
|
|
135
|
+
`;)n=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)do{let r=e-1,o=this.buffer[r];o==="\r"&&(o=this.buffer[--r]);let a=r;for(;o===" ";)o=this.buffer[--r];if(o===`
|
|
136
|
+
`&&r>=this.pos&&r+1+t>a)e=r;else break}while(!0);return yield Qe.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,i;for(;i=this.buffer[++n];)if(i===":"){let r=this.buffer[n+1];if(B(r)||e&&Gt.has(r))break;t=n}else if(B(i)){let r=this.buffer[n+1];if(i==="\r"&&(r===`
|
|
137
|
+
`?(n+=1,i=`
|
|
138
|
+
`,r=this.buffer[n+1]):t=n),r==="#"||e&&Gt.has(r))break;if(i===`
|
|
139
|
+
`){let o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&Gt.has(i))break;t=n}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Qe.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(qn),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let t=this.flowLevel>0,n=this.charAt(1);if(B(n)||t&&Gt.has(n)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!B(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Af.has(t))t=this.buffer[++e];else if(t==="%"&&Co.has(this.buffer[e+1])&&Co.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
|
|
140
|
+
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
141
|
+
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===" "||e&&n===" ");let i=t-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=t),i}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};To.Lexer=In});var _n=g(Eo=>{"use strict";var Ln=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let i=this.lineStarts[t-1];return{line:t,col:e-i+1}}}};Eo.LineCounter=Ln});var $n=g(_o=>{"use strict";var Nf=ze("process"),qo=Jt(),Of=Pn();function ee(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return!0;return!1}function Io(s){for(let e=0;e<s.length;++e)switch(s[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function Lo(s){switch(s?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Wt(s){switch(s.type){case"document":return s.start;case"block-map":{let e=s.items[s.items.length-1];return e.sep??e.start}case"block-seq":return s.items[s.items.length-1].start;default:return[]}}function Se(s){if(s.length===0)return[];let e=s.length;e:for(;--e>=0;)switch(s[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;s[++e]?.type==="space";);return s.splice(e,s.length)}function Qt(s,e){if(e.length<1e5)Array.prototype.push.apply(s,e);else for(let t=0;t<e.length;++t)s.push(e[t])}function Po(s){if(s.start.type==="flow-seq-start")for(let e of s.items)e.sep&&!e.value&&!ee(e.start,"explicit-key-ind")&&!ee(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Lo(e.value)?e.value.end?Qt(e.value.end,e.sep):e.value.end=e.sep:Qt(e.start,e.sep),delete e.sep)}var Mn=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Of.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,Nf.env.LOG_TOKENS&&console.log("|",qo.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=qo.tokenType(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{let n=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in n?n.indent:0:t.type==="flow-collection"&&n.type==="document"&&(t.indent=0),t.type==="flow-collection"&&Po(t),n.type){case"document":n.value=t;break;case"block-scalar":n.props.push(t);break;case"block-map":{let i=n.items[n.items.length-1];if(i.value){n.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=t;else{Object.assign(i,{key:t,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{let i=n.items[n.items.length-1];i.value?n.items.push({start:[],value:t}):i.value=t;break}case"flow-collection":{let i=n.items[n.items.length-1];!i||i.value?n.items.push({start:[],key:t,sep:[]}):i.sep?i.value=t:Object.assign(i,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let i=t.items[t.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&Io(i.start)===-1&&(t.indent===0||i.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(n.type==="document"?n.end=i.start:n.items.push({start:i.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{Io(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){let t=Wt(this.peek(2)),n=Se(t),i;e.end?(i=e.end,i.push(this.sourceToken),delete e.end):i=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
|
|
142
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
143
|
+
`,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Qt(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,i=n&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",r=[];if(i&&t.sep&&!t.value){let o=[];for(let a=0;a<t.sep.length;++a){let c=t.sep[a];switch(c.type){case"newline":o.push(a);break;case"space":break;case"comment":c.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(r=t.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):i||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ee(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(Lo(t.key)&&!ee(t.sep,"newline")){let o=Se(t.start),a=t.key,c=t.sep;c.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:c}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(ee(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let o=Se(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||i?e.items.push({start:r,key:null,sep:[this.sourceToken]}):ee(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);i||t.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{let o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!t.explicitKey&&t.sep&&!ee(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&e.items.push({start:r});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Qt(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||ee(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let i=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:i,sep:[]}):t.sep?this.stack.push(i):Object.assign(t,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let i=Wt(n),r=Se(i);Po(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
|
|
144
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
145
|
+
`,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=Wt(e),n=Se(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Wt(e),n=Se(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};_o.Parser=Mn});var Fo=g(Xe=>{"use strict";var Mo=An(),kf=Ue(),He=Ye(),Cf=bs(),Tf=C(),Ef=_n(),$o=$n();function Do(s){let e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new Ef.LineCounter||null,prettyErrors:e}}function qf(s,e={}){let{lineCounter:t,prettyErrors:n}=Do(e),i=new $o.Parser(t?.addNewLine),r=new Mo.Composer(e),o=Array.from(r.compose(i.parse(s)));if(n&&t)for(let a of o)a.errors.forEach(He.prettifyError(s,t)),a.warnings.forEach(He.prettifyError(s,t));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function Ro(s,e={}){let{lineCounter:t,prettyErrors:n}=Do(e),i=new $o.Parser(t?.addNewLine),r=new Mo.Composer(e),o=null;for(let a of r.compose(i.parse(s),!0,s.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new He.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(o.errors.forEach(He.prettifyError(s,t)),o.warnings.forEach(He.prettifyError(s,t))),o}function If(s,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);let i=Ro(s,t);if(!i)return null;if(i.warnings.forEach(r=>Cf.warn(i.options.logLevel,r)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},t))}function Pf(s,e,t){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let i=Math.round(t);t=i<1?void 0:i>8?{indent:8}:{indent:i}}if(s===void 0){let{keepUndefined:i}=t??e??{};if(!i)return}return Tf.isDocument(s)&&!n?s.toString(t):new kf.Document(s,n,t).toString(t)}Xe.parse=If;Xe.parseAllDocuments=qf;Xe.parseDocument=Ro;Xe.stringify=Pf});var jo=g(T=>{"use strict";var Lf=An(),_f=Ue(),Mf=en(),Dn=Ye(),$f=Ce(),te=C(),Df=H(),Rf=q(),Ff=z(),Bf=Z(),jf=Jt(),Kf=Pn(),Uf=_n(),Vf=$n(),Ht=Fo(),Bo=ve();T.Composer=Lf.Composer;T.Document=_f.Document;T.Schema=Mf.Schema;T.YAMLError=Dn.YAMLError;T.YAMLParseError=Dn.YAMLParseError;T.YAMLWarning=Dn.YAMLWarning;T.Alias=$f.Alias;T.isAlias=te.isAlias;T.isCollection=te.isCollection;T.isDocument=te.isDocument;T.isMap=te.isMap;T.isNode=te.isNode;T.isPair=te.isPair;T.isScalar=te.isScalar;T.isSeq=te.isSeq;T.Pair=Df.Pair;T.Scalar=Rf.Scalar;T.YAMLMap=Ff.YAMLMap;T.YAMLSeq=Bf.YAMLSeq;T.CST=jf;T.Lexer=Kf.Lexer;T.LineCounter=Uf.LineCounter;T.Parser=Vf.Parser;T.parse=Ht.parse;T.parseAllDocuments=Ht.parseAllDocuments;T.parseDocument=Ht.parseDocument;T.stringify=Ht.stringify;T.visit=Bo.visit;T.visitAsync=Bo.visitAsync});var Rn=Hn(jo(),1);var xf=/\$\{(\w+)(?::-((?:[^}\\]*(?:\\.[^}\\]*)*)))?\}/g;function Yf(s,e,t,n="rayfin/.env"){return s.replace(xf,(i,r,o)=>{let a=e.get(r);if(a!==void 0&&a!=="")return a;if(o!==void 0)return o.replace(/\\}/g,"}");throw new Error(`Environment variable '${r}' referenced in rayfin.yml (${t}) is not defined.
|
|
146
|
+
Set it in ${n} or shell environment.`)})}function Jf(s){if(s==="")return s;let e=s.toLowerCase();if(e==="true")return!0;if(e==="false")return!1;if(e==="null"||e==="~")return null;let t=Number(s);return!isNaN(t)&&s.trim()===String(t)?t:s}function Xt(s,e,t="root",n="rayfin/.env"){if(s==null)return s;if(Array.isArray(s))return s.map((i,r)=>Xt(i,e,`${t}[${r}]`,n));if(typeof s=="object"){let i={};for(let[r,o]of Object.entries(s)){let a=t==="root"?r:`${t}.${r}`;i[r]=Xt(o,e,a,n)}return i}if(typeof s=="string"){let i=Yf(s,e,t,n);return s.startsWith("${")&&s.endsWith("}")&&!s.includes("$",2)?Jf(i):i}return s}function Rh(s){let e=(0,Rn.parse)(s);return Uo(e)}function Fh(s,e,t="rayfin/.env"){let n=(0,Rn.parse)(s),i=Xt(n,e,"root",t);return Uo(i)}function Gf(s){if(s!=null)return Array.isArray(s)?s.map(e=>Ko(e)):typeof s=="object"?Object.entries(s).map(([e,t])=>Ko({name:e,...t})):[]}function Ko(s){let e=s??{},{connector:t,type:n,...i}=e,r=n??t;return(typeof i.version=="number"||typeof i.version=="boolean")&&(i.version=String(i.version)),{...i,type:r}}function Uo(s){return s.services??={},s.services.auth??={enabled:!1},s.services.data??={enabled:!1},s.services.storage??={enabled:!1},s.services.staticHosting??={enabled:!1,folder:"dist"},s.frontend&&(s.frontend.outputDir??="."),s.services.functions??={enabled:!1},s.connectors=Gf(s.connectors),s}function Wf(s,e){let t=s.length,n=e.length,i=Array.from({length:t+1},()=>Array(n+1).fill(0));for(let r=0;r<=t;r++)i[r][0]=r;for(let r=0;r<=n;r++)i[0][r]=r;for(let r=1;r<=t;r++)for(let o=1;o<=n;o++)i[r][o]=s[r-1]===e[o-1]?i[r-1][o-1]:1+Math.min(i[r-1][o],i[r][o-1],i[r-1][o-1]);return i[t][n]}function Fn(s,e,t=3){let n=s.toLowerCase(),i,r=1/0;for(let o of e){let a=Wf(n,o.toLowerCase());a<r&&a<=t&&(r=a,i=o)}return i}var Vo={MsSql:"mssql",PostgreSql:"postgresql"},Bn={FabricWarehouse:"fabric-warehouse",FabricSqlAnalytics:"fabric-sqlanalytics"},Kh=["protected","public"],Uh={FabricSqlAnalytics:"fabric-sqlanalytics",FabricWarehouse:"fabric-warehouse",FabricSql:"fabric-sqldatabase",FabricSemanticModel:"fabric-semanticmodel",FabricIqMcp:"fabriciqmcp",Kusto:"kusto",FabricDataAgent:"fabric-dataagent",Office365Users:"office365users",SharePointOnline:"sharepointonline",Office365Outlook:"office365",ExcelOnlineBusiness:"excelonlinebusiness",Teams:"teams",OneDriveForBusiness:"onedriveforbusiness",Office365Groups:"office365groups",MicrosoftForms:"microsoftforms",Planner:"planner",AzureAd:"azuread"},xo=["read"],jn=["read","create","update","delete"],Yo=["executeQuery"],Jo=["executeQuery"],Go=["executeQuery","executeCommand"],Wo=["getInfo","startTask","getTask","getTaskResult","cancelTask"],Qo=["managerAsync","userProfileAsync","directReportsAsync","relevantPeopleAsync","myProfileAsync","searchUserAsync"],Ho=["getTablesAsync","getItemsAsync","getItemAsync","listFolderAsync","getFileMetadataByPathAsync","postItemAsync","patchItemAsync","listRootFolderAsync","getDataSetsAsync","getTableAsync","deleteItemAsync","getAllTablesAsync","getFileItemsAsync","getItemAttachmentsAsync"],Xo=["getEventsCalendarViewAsync","findMeetingTimesAsync","getEmailsAsync","getEmailAsync","calendarGetTablesAsync","sendEmailAsync","replyToAsync","calendarPostItemAsync","getMailTipsAsync","getRoomListsAsync","getRoomsAsync","sharedMailboxSendEmailAsync"],zo=["getTablesAsync","getItemsAsync","getItemAsync","addRowAsync","patchItemAsync"],Zo=["getAllChannelsForTeamAsync","getMessagesFromChannelAsync","getAllTeamsAsync","getMessagesFromChatAsync","postMessageToConversationAsync","getTeamAsync","getChannelsForGroupAsync","listTeamMembersAsync","listRepliesToMessageAsync","postCardToConversationAsync","replyWithMessageToConversationAsync","updateCardInConversationAsync","createTeamsMeetingAsync","listMeetingTranscriptsAsync","getMeetingTranscriptContentAsync"],ea=["listFolderAsync","getFileMetadataAsync","listRootFolderAsync","getFileMetadataByPathAsync","createFileAsync","findFilesByPathAsync","getFileThumbnailAsync","createShareLinkAsync","copyDriveFileAsync","moveFileAsync"],ta=["listGroupsAsync","listOwnedGroupsAsync","listGroupMembersAsync","createCalendarEventAsync","updateCalendarEventAsync","calendarDeleteItemAsync"],sa=["listFormsAsync","getFormDetailsByIdAsync","getFormResponseByIdAsync"],na=["listMyTasksAsync","listGroupPlansAsync","listBucketsAsync","listTasksAsync","getTaskAsync","getTaskDetailsAsync","createTaskAsync","updateTaskAsync","listGroupsAsync","updateTaskDetailsAsync","assignUsersAsync","unassignUsersAsync","deleteTaskAsync"],ia=["getUserAsync","getGroupAsync","getGroupMembersAsync","checkMemberGroupsAsync","getMemberGroupsAsync"];var R={WorkspaceId:"workspaceId",ItemId:"itemId"},N={Delegated:"delegated",Application:"application"},Kn=[{name:"@microsoft/rayfin-connector-fabric-graphql",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],we={"fabric-sqlanalytics":{description:"Fabric SQL Analytics endpoint",category:"graphql-entities",requiredConfigArgs:[R.WorkspaceId,R.ItemId],defaultAuth:N.Application,allowedAuthTypes:[N.Delegated,N.Application],dialect:Bn.FabricSqlAnalytics,allowedOperations:xo,requiresVersion:!1,runtimeFactory:null,fabricItemType:"Lakehouse",clientPackages:Kn,discoverable:!0,bindable:!1,authoring:"released"},"fabric-warehouse":{description:"Fabric Warehouse",category:"graphql-entities",requiredConfigArgs:[R.WorkspaceId,R.ItemId],defaultAuth:N.Application,allowedAuthTypes:[N.Delegated,N.Application],dialect:Bn.FabricWarehouse,allowedOperations:jn,requiresVersion:!1,runtimeFactory:null,fabricItemType:"Warehouse",clientPackages:Kn,discoverable:!0,bindable:!1,authoring:"released"},"fabric-sqldatabase":{description:"Fabric SQL Database",category:"graphql-entities",requiredConfigArgs:[R.WorkspaceId,R.ItemId],defaultAuth:N.Application,allowedAuthTypes:[N.Delegated,N.Application],dialect:Vo.MsSql,allowedOperations:jn,requiresVersion:!1,runtimeFactory:null,fabricItemType:"SQLDatabase",clientPackages:Kn,discoverable:!0,bindable:!1,authoring:"released"},"fabric-semanticmodel":{description:"Fabric semantic model",category:"function-bridge",requiredConfigArgs:[R.WorkspaceId,R.ItemId],defaultAuth:N.Delegated,allowedAuthTypes:[N.Delegated],dialect:null,allowedOperations:Jo,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"FabricSemanticModel",package:"@microsoft/rayfin-connector-fabric-semanticmodel"},runtimeFactory:{name:"fabricSemanticModel",package:"@microsoft/rayfin-connector-fabric-semanticmodel"},fabricItemType:"SemanticModel",clientPackages:[{name:"@microsoft/rayfin-connector-fabric-semanticmodel",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!0,bindable:!1,authoring:"released"},fabriciqmcp:{description:"Fabric IQ MCP managed adapter",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Delegated,allowedAuthTypes:[N.Delegated],dialect:null,allowedOperations:Yo,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"FabricIqMcp",package:"@microsoft/rayfin-connector-fabric-iq-mcp"},runtimeFactory:{name:"fabricIqMcp",package:"@microsoft/rayfin-connector-fabric-iq-mcp"},fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-fabric-iq-mcp",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!1,authoring:"held"},kusto:{description:"Fabric Eventhouse (KQL Database)",category:"function-bridge",requiredConfigArgs:[R.WorkspaceId,R.ItemId],defaultAuth:N.Application,allowedAuthTypes:[N.Application],dialect:null,allowedOperations:Go,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"Kusto",package:"@microsoft/rayfin-connector-kusto"},runtimeFactory:{name:"kusto",package:"@microsoft/rayfin-connector-kusto"},fabricItemType:"KQLDatabase",clientPackages:[{name:"@microsoft/rayfin-connector-kusto",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!0,bindable:!1,authoring:"held"},"fabric-dataagent":{description:"Fabric Data Agent (experimental)",category:"function-bridge",requiredConfigArgs:[R.WorkspaceId,R.ItemId],defaultAuth:N.Delegated,allowedAuthTypes:[N.Delegated],dialect:null,allowedOperations:Wo,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"FabricDataAgent",package:"@microsoft/rayfin-connector-fabric-dataagent"},runtimeFactory:{name:"fabricDataAgent",package:"@microsoft/rayfin-connector-fabric-dataagent"},fabricItemType:"DataAgent",clientPackages:[{name:"@microsoft/rayfin-connector-fabric-dataagent",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!0,bindable:!1,authoring:"held"},office365users:{description:"Microsoft 365 Users (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application,N.Delegated],dialect:null,allowedOperations:Qo,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"Users",package:"@microsoft/rayfin-connector-m365/users"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-m365",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held",aliases:["users"]},sharepointonline:{description:"SharePoint (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application,N.Delegated],dialect:null,allowedOperations:Ho,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"SharePoint",package:"@microsoft/rayfin-connector-m365/sharepoint"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-m365",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held",aliases:["sharepoint"]},office365:{description:"Outlook (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application],dialect:null,allowedOperations:Xo,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"Outlook",package:"@microsoft/rayfin-connector-m365/outlook"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-m365",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held",aliases:["outlook"]},excelonlinebusiness:{description:"Excel (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application,N.Delegated],dialect:null,allowedOperations:zo,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"Excel",package:"@microsoft/rayfin-connector-m365/excel"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-m365",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held",aliases:["excel"]},teams:{description:"Microsoft Teams (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application],dialect:null,allowedOperations:Zo,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"Teams",package:"@microsoft/rayfin-connector-m365/teams"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-m365",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held"},onedriveforbusiness:{description:"OneDrive (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application],dialect:null,allowedOperations:ea,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"OneDrive",package:"@microsoft/rayfin-connector-m365/onedrive"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-m365",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held",aliases:["onedrive"]},office365groups:{description:"Microsoft 365 Groups (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application,N.Delegated],dialect:null,allowedOperations:ta,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"Groups",package:"@microsoft/rayfin-connector-m365/groups"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-m365",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held",aliases:["groups"]},microsoftforms:{description:"Microsoft Forms (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application,N.Delegated],dialect:null,allowedOperations:sa,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"Forms",package:"@microsoft/rayfin-connector-m365/forms"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-m365",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held",aliases:["forms"]},planner:{description:"Planner (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application,N.Delegated],dialect:null,allowedOperations:na,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"Planner",package:"@microsoft/rayfin-connector-m365/planner"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-m365",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held"},azuread:{description:"Microsoft Entra ID (experimental)",category:"function-bridge",requiredConfigArgs:[],defaultAuth:N.Application,allowedAuthTypes:[N.Application,N.Delegated],dialect:null,allowedOperations:ia,requiresVersion:!0,defaultVersion:"1",schemaMarker:{type:"Entra",package:"@microsoft/rayfin-connector-entra"},runtimeFactory:null,fabricItemType:"",clientPackages:[{name:"@microsoft/rayfin-connector-entra",role:"marker"},{name:"@microsoft/rayfin-connectors",role:"runtime"}],discoverable:!1,bindable:!0,authoring:"held",aliases:["entra"]}};var ra=Object.keys(we),oa=["delegated","application"],Qf=/^[a-zA-Z0-9\-_]+$/,aa=256;var Hf=new Set(Object.entries(we).filter(([,s])=>s.requiredConfigArgs.includes("workspaceId")).map(([s])=>s)),Un=new Set(Object.entries(we).filter(([,s])=>s.requiresVersion).map(([s])=>s));function Qh(s){if(!s||s.length===0)return[];let e=[],t=new Set,n=new Map;for(let i of s){let r=i.name??"<unnamed>";if(!i.name||!i.name.trim()){e.push({sourceName:r,message:'Connector entry is missing required field "name".'});continue}i.name.length>aa?e.push({sourceName:r,message:`Connector name "${i.name}" exceeds maximum length of ${aa} characters.`}):Qf.test(i.name)||e.push({sourceName:r,message:`Connector name "${i.name}" contains invalid characters. Only alphanumeric characters, hyphens, and underscores are allowed.`});let o=i.name.toLowerCase(),a=n.get(o);if(t.has(i.name)?e.push({sourceName:r,message:`Duplicate connector name "${i.name}". Each entry under "connectors:" must have a unique name.`}):a!==void 0?(t.add(i.name),e.push({sourceName:r,message:`Connector names "${a}" and "${i.name}" differ only by case. Connector names are case-insensitive, so rename or remove one of these entries under "connectors:".`})):(t.add(i.name),n.set(o,i.name)),!i.type){e.push({sourceName:r,message:`Connector "${r}" is missing required field "type".`});continue}if(!ra.includes(i.type)){e.push({sourceName:r,message:`Connector "${r}" has unsupported type "${i.type}". Supported types: ${ra.join(", ")}.`});continue}Hf.has(i.type)&&(i.config?.workspaceId||e.push({sourceName:r,message:`Connector "${r}" (${i.type}) requires "config.workspaceId".`}),i.config?.itemId||e.push({sourceName:r,message:`Connector "${r}" (${i.type}) requires "config.itemId".`}));let c=i.version,l=typeof c=="string",d=l?c.trim():"";if(Un.has(i.type)&&c!=null&&!l?e.push({sourceName:r,message:`Connector "${r}" (${i.type}) has invalid "version": must be a string containing a positive integer (e.g. "1", "2").`}):Un.has(i.type)&&!d&&e.push({sourceName:r,message:`Connector "${r}" (${i.type}) requires "version".`}),Un.has(i.type)&&d&&(/^[1-9][0-9]*$/.test(d)||e.push({sourceName:r,message:`Connector "${r}" (${i.type}) has invalid "version" "${i.version}": must be a positive integer (e.g. "1", "2").`})),!i.auth||!i.auth.type?e.push({sourceName:r,message:`Connector "${r}" is missing required field "auth.type".`}):oa.includes(i.auth.type)?we[i.type].allowedAuthTypes.includes(i.auth.type)||e.push({sourceName:r,message:`Connector "${r}" (${i.type}) does not support auth type "${i.auth.type}".`}):e.push({sourceName:r,message:`Connector "${r}" has unsupported "auth.type" "${i.auth.type}". Supported: ${oa.join(", ")}.`}),i.operations&&i.operations.length>0){let u=new Set(we[i.type].allowedOperations),f=new Set;for(let m of i.operations){let y=m?.name;if(!y){e.push({sourceName:r,message:`Connector "${r}" has an operation entry missing required field "name".`});continue}if(f.has(y)){e.push({sourceName:r,message:`Connector "${r}" has duplicate operation "${y}".`});continue}if(f.add(y),!u.has(y)){let h=Fn(y,[...u]),p=h?` Did you mean "${h}"?`:"";e.push({sourceName:r,message:`Connector "${r}" (${i.type}) does not support operation "${y}".${p}`})}}}}return e}var Vn='Set services.functions.auth.type to "application".';function xn(s){return Array.isArray(s)?"a list":typeof s=="object"&&s!==null?"a mapping":`"${String(s)}"`}function Xh(s){if(s==null)return[];if(typeof s!="object"||Array.isArray(s))return[{field:"services.functions",message:`Invalid services.functions: expected a mapping, but found ${xn(s)}. Set services.functions to a mapping, for example: { enabled: false }.`}];let{enabled:e,auth:t}=s;if(t===void 0)return e?[{field:"services.functions.auth",message:`Invalid services.functions.auth: authentication is required when Functions are enabled. ${Vn}`}]:[];if(typeof t!="object"||t===null||Array.isArray(t))return[{field:"services.functions.auth",message:`Invalid services.functions.auth: expected a mapping with a "type" field, but found ${xn(t)}. ${Vn}`}];let n=t.type;return n==="application"?[]:[{field:"services.functions.auth.type",message:(n===void 0?"Invalid services.functions.auth.type: a type is required. ":`Invalid services.functions.auth.type: found ${xn(n)}. Only application authentication is supported. `)+Vn}]}import{spawn as td}from"node:child_process";import{existsSync as Ae,readFileSync as sd}from"node:fs";import{readdir as nd,rm as Wn}from"node:fs/promises";import{createRequire as ha}from"node:module";import{dirname as es,isAbsolute as id,join as U,relative as rd,resolve as Zt}from"node:path";var la=Hn(ma(),1);import{existsSync as Xf,readFileSync as zf}from"node:fs";import{createRequire as Zf}from"node:module";import{dirname as ca,join as Yn}from"node:path";import{stripVTControlCharacters as ed}from"node:util";var Jn="^5.7.2 || ^6.0.2";function zt(s,e=import.meta.url){let t=s?[Yn(s,"package.json"),e]:[e];for(let n of t){let i=Zf(n),r;try{r=i.resolve("typescript/package.json")}catch(d){if(d instanceof Error&&"code"in d&&d.code==="MODULE_NOT_FOUND")continue;throw d}let o=JSON.parse(zf(r,"utf8")),a=typeof o=="object"&&o!==null&&"version"in o&&typeof o.version=="string"?o.version:"(missing version)";if(!(0,la.satisfies)(a,Jn))throw new Error(`Unsupported TypeScript ${a} at ${r}. Rayfin tooling supports ${Jn}. Install a supported TypeScript version in the schema package.`);let c=Yn(ca(r),"lib","tsc.js"),l=Yn(ca(r),"lib","typescript.js");for(let d of[c,l])if(!Xf(d))throw new Error(`Incomplete TypeScript ${a} installation: ${d} not found. Reinstall TypeScript ${Jn} in the schema package.`);return{version:a,packagePath:r,tscPath:c,modulePath:l}}}function ua(s,e){let t=ed(s).replaceAll("\\","/").split(/\r?\n/).filter(r=>r.includes("@microsoft/rayfin-core/")&&/\.d\.[cm]?ts\b/.test(r)&&/error TS\d+/.test(r)),n=e.tsconfigPath?`schema config "${e.tsconfigPath}"`:`compiler config selected by build command "${e.buildCommand}" in schema package "${e.projectRoot}"`,i=[];return t.some(r=>/(?:Symbol\.metadata|Property ['"]metadata['"].*SymbolConstructor)/.test(r))&&i.push(`TypeScript migration hint: add "ESNext.Decorators" to compilerOptions.lib in the ${n}, preserving its other lib entries.`),t.some(r=>/Cannot find name ['"]Buffer['"]/.test(r))&&i.push(`TypeScript migration hint: install @types/node in "${e.projectRoot}" and add "node" to compilerOptions.types in the ${n}, preserving its other types entries.`),i}var fa=".temp/compiled";function pa(s){let e=U(s,"rayfin","tsconfig.json");if(Ae(e))return e;let t=U(s,"tsconfig.json");return Ae(t)?t:void 0}async function da(s){if(!Ae(s))return;let e=await nd(s,{withFileTypes:!0});await Promise.all(e.filter(t=>t.isFile()&&t.name.endsWith(".tsbuildinfo")).map(t=>Wn(U(s,t.name),{force:!0})))}function od(s){let e=zt(s);return e?ha(import.meta.url)(e.modulePath):void 0}async function ad(s,e){let t=od(s);if(!t)return;let n=t.getParsedCommandLineOfConfigFile(e,{},{...t.sys,onUnRecoverableConfigFileDiagnostic:()=>{}});if(!n)return;let i=t.getTsBuildInfoEmitOutputFilePath(n.options);i&&await Wn(i,{force:!0})}async function cd(s){zt(s);let e=U(s,"rayfin"),[t]=fa.split("/"),n=U(e,t),i=U(e,...fa.split("/")),r=pa(s);Ae(i)&&await Wn(i,{recursive:!0,force:!0}),await Promise.all([da(n),da(e),...r?[ad(s,r)]:[]])}function ld(s){let e=Zt(s);for(;;){let t=U(e,"package.json");if(Ae(t))try{let i=JSON.parse(sd(t,"utf8").replace(/^\uFEFF/,""));return{manifestPath:t,isModule:typeof i=="object"&&i!==null&&"type"in i&&i.type==="module"}}catch{return{manifestPath:t}}let n=es(e);if(n===e)return{};e=n}}var ts="@microsoft/rayfin-core";function ud(s,e){let{importedFiles:t}=s.preProcessFile(s.sys.readFile(e)??"",!0,!0);return t.some(({fileName:n})=>n===ts||n.startsWith(`${ts}/`))}function fd(s,e,t){let n={...s.sys,onUnRecoverableConfigFileDiagnostic:()=>{}},i=!s.sys.useCaseSensitiveFileNames,r=[],o=new Set,a=(c,l)=>{let d=Zt(c),u=i?d.toLowerCase():d;if(o.has(u))return;o.add(u);let f=s.getParsedCommandLineOfConfigFile(d,{},n);if(!f)return;for(let y of f.projectReferences??[])a(s.resolveProjectReferencePath(y),!0);let m=f.options.module;if(!(m===void 0||m<s.ModuleKind.Node16||m>s.ModuleKind.NodeNext))for(let y of f.fileNames){if(/\.d\.[cm]?ts$|\.[cm][tj]s$|\.json$/i.test(y))continue;let h=Zt(y),p=l&&!Gn(t,h)?h:void 0;r.push({path:h,kind:"source",tsconfigPath:d,dependencySource:p});for(let b of s.getOutputFileNames(f,y,i))/\.jsx?$/i.test(b)&&r.push({path:Zt(b),kind:"output",tsconfigPath:d,dependencySource:p})}};return a(e,!1),r}function dd(s){return s.dependencySource===void 0?s.kind==="source"?`schema source "${s.path}" compiles`:`compiled schema "${s.path}" loads`:s.kind==="source"?`file "${s.path}" in a referenced project imports ${ts} and compiles`:`compiled file "${s.path}" from a referenced project imports ${ts} and loads`}function Gn(s,e){let t=rd(s,e);return t===""||!t.startsWith("..")&&!id(t)}function hd(s,e,t){let n=U(s,"package.json"),i=Gn(s,e)&&(!t.manifestPath||!Gn(s,es(t.manifestPath)));return t.manifestPath?i?`Create "${n}" containing {"type": "module"}, or set "type": "module" in "${t.manifestPath}".`:`Set "type": "module" in "${t.manifestPath}".`:i?`Create "${n}" containing {"type": "module"}.`:`Create a package.json containing {"type": "module"} in "${es(e)}" or a parent directory.`}function pd(s,e,t){let n=U(s,"rayfin"),i,r;try{i=ha(import.meta.url)(t.modulePath),r=fd(i,e,n)}catch{return}let o=new Map,a=new Map;for(let c of r){let l=es(c.path),d=o.get(l);if(d||(d=ld(l),o.set(l,d)),d.isModule||d.manifestPath&&d.isModule===void 0)continue;if(c.dependencySource){let f=a.get(c.dependencySource);if(f===void 0&&(f=ud(i,c.dependencySource),a.set(c.dependencySource,f)),!f)continue}let u=d.manifestPath?`"${d.manifestPath}" does not set "type": "module"`:`no package.json above "${l}" sets "type": "module"`;return`With NodeNext module settings in "${c.tsconfigPath}", ${dd(c)} as CommonJS because ${u}, but @microsoft/rayfin-core is ESM-only. ${hd(n,c.path,d)}`}}async function up(s,e={}){let t=U(s,"rayfin");if(!Ae(t))return{success:!1,errors:[`Rayfin directory not found: ${t}`]};let n=pa(s);if(!n)return{success:!1,errors:["tsconfig.json not found in rayfin directory or project root."]};let i;try{i=zt(s)}catch(a){return{success:!1,errors:[a instanceof Error?a.message:String(a)]}}if(!i)return{success:!1,errors:["TypeScript compiler (typescript/lib/tsc.js) not found. Install TypeScript in the project to compile Rayfin schemas."]};let{tscPath:r}=i,o=pd(s,n,i);return o?{success:!1,errors:[o]}:(await cd(s),new Promise(a=>{let c=[],l=td(yd(),[r,"--build",n,"--force"],{cwd:s,env:md(e.env),stdio:["ignore","pipe","pipe"],windowsHide:!0});l.stdout?.on("data",d=>{let u=d.toString();u.trim()&&c.push(u)}),l.stderr?.on("data",d=>{let u=d.toString();u.trim()&&c.push(u)}),l.on("error",d=>{a({success:!1,errors:[`Failed to run TypeScript compiler: ${d.message}`]})}),l.on("close",d=>{a(d===0?{success:!0,errors:[]}:{success:!1,errors:[...c,...ua(c.join(""),{projectRoot:s,tsconfigPath:n})]})})}))}function md(s){let e={};for(let[t,n]of Object.entries(s??{}))n!==void 0&&(e[t]=n);return e}function yd(){return globalThis.process.execPath}function dp(s,e){return e&&e.length>0?{status:"ok",data:s,warnings:e}:{status:"ok",data:s}}function hp(s,e,t,n,i){let r={status:"failed",error:{code:s,message:e,cause:t}};return n&&n.length>0&&(r.notices=n),i&&i.length>0&&(r.warnings=i),r}export{jo as a,Rh as b,Fh as c,Kh as d,Uh as e,Qh as f,Xh as g,ua as h,fa as i,ld as j,pd as k,up as l,md as m,dp as n,hp as o};
|
|
147
|
+
//# sourceMappingURL=chunk-45EZLDPE.js.map
|
|
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{l as o,v as n,w as t,x as i,y as c}from"./chunk-
|
|
7
|
+
import{l as o,v as n,w as t,x as i,y as c}from"./chunk-RSHOMYG6.js";var l={ConnectorPolicyBlocked:"ConnectorPolicyBlocked",ConnectorActionsPolicyBlocked:"ConnectorActionsPolicyBlocked",ConnectorHasNoPublicActions:"ConnectorHasNoPublicActions",ProjectApprovalPermissionDenied:"ProjectApprovalPermissionDenied",ShareLinkPermissionDenied:"ShareLinkPermissionDenied"};function a(e,r={}){return{policyStage:e,...r}}function y(e,r,s){return new c(e,void 0,{errorCode:r,telemetryDetails:a(s)})}function u(e){return!(e instanceof o)||e.status!==403||e.code!=="AppShareLinkForbiddenForUser"?null:new i(e.message,n.GeneralError,void 0,{errorCode:l.ShareLinkPermissionDenied,errorCategory:t.User,telemetryDetails:a("share_link_management",{httpStatus:e.status})})}export{l as a,a as b,y as c,u as d};
|
|
8
8
|
/*!
|
|
9
9
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
10
|
*/
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-4PI5THLA.js.map
|
|
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as E}from"./chunk-TYRVM4PP.js";import{c as m,d as c}from"./chunk-
|
|
7
|
+
import{a as E}from"./chunk-TYRVM4PP.js";import{c as m,d as c}from"./chunk-R2IECDVU.js";import{A as s}from"./chunk-RSHOMYG6.js";import{a as p}from"./chunk-DLUQVMUE.js";import{d as w}from"./chunk-UT667QSU.js";var l=w(E(),1);import{execFileSync as G}from"child_process";import{dirname as u,join as a}from"path";function x(){let e=c(["--version"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});if(!e.success){if(e.error.code!=="ENOENT"){let i=m("",{action:"checking the Git version"},e.error);throw i||new s("Git could not be started while checking its version. Check the Git executable and your endpoint security policy, then retry.",{prerequisite:"git"},{errorCode:"GitProcessLaunchFailed",retryable:!1,telemetryDetails:{prerequisite:"git"}})}throw new s("'git' is required but was not found on PATH.",{prerequisite:"git"},{errorCode:"GitNotInstalled",telemetryDetails:{prerequisite:"git"}})}let r=e.stdout,t=p.engines.git;if(!l.default.validRange(t))return;let n=l.default.coerce(r);if(n&&!l.default.satisfies(n,t))throw new s(`Git ${t} is required (found ${n.version}). Please upgrade git.`,{prerequisite:"git",requiredVersion:t,foundVersion:n.version},{errorCode:"GitVersionUnsupported",telemetryDetails:{prerequisite:"git",requiredVersion:t,foundVersion:n.version}})}function B(){let e=b(),r=h("git-credential-manager",e),t=r.success?r:h("git-credential-manager-core",e);if(!t.success){let i=!r.success&&d(r.error),y=d(t.error);if(i&&y)throw new s("Git Credential Manager is required for the native app flow but was not found. Install Git Credential Manager, then run `git-credential-manager configure` and retry.",{prerequisite:"git-credential-manager"},{errorCode:"GitCredentialManagerNotInstalled",telemetryDetails:{prerequisite:"git-credential-manager"}});let f=[r,t].filter(o=>!o.success).map(o=>o.error).find(o=>o.code!=="ENOENT");throw f?M(f):new s("Git Credential Manager is required for the native app flow but was not found. Install Git Credential Manager, then run `git-credential-manager configure` and retry.",{prerequisite:"git-credential-manager"},{errorCode:"GitCredentialManagerNotInstalled",telemetryDetails:{prerequisite:"git-credential-manager"}})}let n=c(["config","--get-all","credential.helper"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});if(!(n.success?n.stdout.split(/\r?\n/).some(i=>/(?:^|[\\/])git-credential-manager(?:-core)?(?:\.exe)?(?:["']|\s|$)/i.test(i.trim())||/^(?:manager|manager-core)$/i.test(i.trim())):!1))throw new s("Git Credential Manager is installed but not configured as a Git credential helper. Run `git-credential-manager configure` and retry.",{prerequisite:"git-credential-manager"},{errorCode:"GitCredentialManagerNotConfigured",telemetryDetails:{prerequisite:"git-credential-manager"}})}function b(){let e=c(["--exec-path"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});return e.success&&e.stdout.trim()?e.stdout.trim():void 0}function h(e,r){let t=C(e);if(t.success||!d(t.error)||!r)return t;let n=process.platform==="win32"?[a(r,`${e}.exe`),a(r,e),a(u(u(r)),"bin",`${e}.exe`),a(u(u(r)),"bin",e)]:[a(r,e)];for(let g of n){let i=C(g);if(i.success||!d(i.error))return i}return t}function C(e){try{return G(e,["--version"],{stdio:["ignore","ignore","ignore"]}),{success:!0}}catch(r){return{success:!1,error:r instanceof Error?r:new Error(String(r))}}}function d(e){return e.code==="ENOENT"}function M(e){let r="git-credential-manager";return e.code==="EACCES"?new s("Git Credential Manager is installed but is not permitted to run. Check its executable permissions and your endpoint security policy, then retry.",{prerequisite:r,classifierBucket:"process-access-denied"},{errorCode:"GitCredentialManagerProcessAccessDenied",retryable:!1,telemetryDetails:{prerequisite:r,classifierBucket:"process-access-denied"}}):e.code==="EBADARCH"||e.errno===86||e.errno===-86?new s("Git Credential Manager is installed but is incompatible with this Mac. Install a build for this Mac's architecture, then retry.",{prerequisite:r,classifierBucket:"process-bad-architecture"},{errorCode:"GitCredentialManagerProcessBadArchitecture",retryable:!1,telemetryDetails:{prerequisite:r,classifierBucket:"process-bad-architecture"}}):new s("Git Credential Manager was found but could not be started. Check its installation and your endpoint security policy, then retry.",{prerequisite:r,classifierBucket:"process-launch-failed"},{errorCode:"GitCredentialManagerProcessLaunchFailed",retryable:!1,telemetryDetails:{prerequisite:r,classifierBucket:"process-launch-failed"}})}export{x as a,B as b};
|
|
8
8
|
/*!
|
|
9
9
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
10
|
*/
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-6KOL66SF.js.map
|
|
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
function
|
|
7
|
+
function n(t){let e=new Date(t);return Number.isNaN(e.getTime())?t:e.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}export{n as a};
|
|
8
8
|
/*!
|
|
9
9
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
10
|
*/
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-74RNALDY.js.map
|
|
@@ -4,9 +4,9 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as p,d}from"./chunk-
|
|
7
|
+
import{a as p,d}from"./chunk-RA74M3YD.js";import{Gb as o}from"./chunk-RSHOMYG6.js";import{a as s}from"./chunk-AICYZHWK.js";import{F as c,I as m,N as r,P as a}from"./chunk-PYPCPMCR.js";var f="*";async function C(e){D(e),await e.runVerb();let t=await d(async()=>await o(p()));if(e.isJsonMode()){m(u(t));return}b(t)}function u(e){let{tables:t,...n}=e;return{...n,collections:t.map(({columns:i,...h})=>({...h,properties:i}))}}function b(e){if(r(`Schema: ${e.schemaPath}`),!e.exists){r("No state schema found. Create the file to start defining collections.");return}if(r(`Locale: ${e.locale}`),e.validationEnabled||a("Write validation is disabled ('x-ms-validation' is false). Declared indexes remain active."),e.tables.length===0){r("No collections defined.");return}let t=!1;for(let n of e.tables)t||=n.columns.some(i=>i.automatic),c({title:n.name,columns:[{header:"Property",maxWidth:32},{header:"Type"},{header:"Required"},{header:"Index"},{header:"Constraints",maxWidth:40}],rows:n.columns.map(i=>[i.automatic?`${i.name}${f}`:i.name,i.type,i.required?"Yes":"No",g(i),x(i)]),emptyMessage:"No properties defined.",totalLabel:"properties"}),n.representable||a(`Collection '${n.name}' also uses schema constructs not shown in the scalar-property view (${n.unrepresentableAt}).`);t&&r(`
|
|
8
8
|
${f} set by the platform on every collection.`),r(s.project.state["list-schema"].hint),r(`Run "${"ms"} project state list-schema --json" for the full definition.`)}function g(e){if(!e.indexed)return"No";let t=[];return e.index?.ignoreCase&&t.push("ignore case"),e.index?.ignoreAccents&&t.push("ignore accents"),t.length===0?"Yes":`Yes (${t.join(", ")})`}function x(e){let t=[];return e.format!==void 0&&t.push(`format=${e.format}`),e.minLength!==void 0&&t.push(`minLength=${e.minLength}`),e.maxLength!==void 0&&t.push(`maxLength=${e.maxLength}`),e.minValue!==void 0&&t.push(`min=${e.minValue}`),e.maxValue!==void 0&&t.push(`max=${e.maxValue}`),e.resourceKind!==void 0&&t.push(`kind=${e.resourceKind}`),t.join(", ")}function D(e){e.setDescription(s.project.state["list-schema"].description),e.addExamples(s.project.state["list-schema"].examples)}export{C as a,u as b};
|
|
9
9
|
/*!
|
|
10
10
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
11
11
|
*/
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-7AEULMP2.js.map
|