@techdocs/cli 1.4.7 → 1.5.0-next.2

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +23 -8
  2. package/dist/cjs/{generate-d9c4c0d9.cjs.js → generate-5fb2bc8c.cjs.js} +4 -2
  3. package/dist/cjs/generate-5fb2bc8c.cjs.js.map +1 -0
  4. package/dist/embedded-app/.config-schema.json +43 -0
  5. package/dist/embedded-app/index.html +1 -1
  6. package/dist/embedded-app/static/{1032.5be56bbf.chunk.js → 1032.f8378b05.chunk.js} +1 -1
  7. package/dist/embedded-app/static/{1032.5be56bbf.chunk.js.map → 1032.f8378b05.chunk.js.map} +1 -1
  8. package/dist/embedded-app/static/1093.317a4f39.chunk.js +7 -0
  9. package/dist/embedded-app/static/1093.317a4f39.chunk.js.map +1 -0
  10. package/dist/embedded-app/static/1105.a5f2c603.chunk.js +3 -0
  11. package/dist/embedded-app/static/1105.a5f2c603.chunk.js.map +1 -0
  12. package/dist/embedded-app/static/{184.78d680e0.chunk.js → 184.2d07d6cf.chunk.js} +1 -1
  13. package/dist/embedded-app/static/{184.78d680e0.chunk.js.map → 184.2d07d6cf.chunk.js.map} +1 -1
  14. package/dist/embedded-app/static/2440.c513a311.chunk.js +3 -0
  15. package/dist/embedded-app/static/2440.c513a311.chunk.js.map +1 -0
  16. package/dist/embedded-app/static/5458.f60ece35.chunk.js +3 -0
  17. package/dist/embedded-app/static/5458.f60ece35.chunk.js.map +1 -0
  18. package/dist/embedded-app/static/5837.d9697f2a.chunk.js +3 -0
  19. package/dist/embedded-app/static/{9323.61727faa.chunk.js.map → 5837.d9697f2a.chunk.js.map} +1 -1
  20. package/dist/embedded-app/static/6051.9a397327.chunk.js +4 -0
  21. package/dist/embedded-app/static/{6051.e6ab645f.chunk.js.map → 6051.9a397327.chunk.js.map} +1 -1
  22. package/dist/embedded-app/static/{732.fb0762a2.chunk.js → 732.b079cbc6.chunk.js} +1 -1
  23. package/dist/embedded-app/static/{732.fb0762a2.chunk.js.map → 732.b079cbc6.chunk.js.map} +1 -1
  24. package/dist/embedded-app/static/{7560.8ef9e30a.chunk.js → 7560.f82352d7.chunk.js} +2 -2
  25. package/dist/embedded-app/static/{7560.8ef9e30a.chunk.js.map → 7560.f82352d7.chunk.js.map} +1 -1
  26. package/dist/embedded-app/static/{7750.c1a4c4df.chunk.js → 7750.da1a67d5.chunk.js} +2 -2
  27. package/dist/embedded-app/static/{7750.c1a4c4df.chunk.js.map → 7750.da1a67d5.chunk.js.map} +1 -1
  28. package/dist/embedded-app/static/{8951.fea20091.chunk.js → 8951.d0edcfcb.chunk.js} +2 -2
  29. package/dist/embedded-app/static/{8951.fea20091.chunk.js.map → 8951.d0edcfcb.chunk.js.map} +1 -1
  30. package/dist/embedded-app/static/{9545.dea948d9.chunk.js → 9545.24f95d89.chunk.js} +1 -1
  31. package/dist/embedded-app/static/{9545.dea948d9.chunk.js.map → 9545.24f95d89.chunk.js.map} +1 -1
  32. package/dist/embedded-app/static/9770.2fa7c11e.chunk.js +3 -0
  33. package/dist/embedded-app/static/9770.2fa7c11e.chunk.js.map +1 -0
  34. package/dist/embedded-app/static/main.2d4c0606.js +522 -0
  35. package/dist/embedded-app/static/main.2d4c0606.js.map +1 -0
  36. package/dist/embedded-app/static/module-i18next.3eb80014.js +3 -0
  37. package/dist/embedded-app/static/module-i18next.3eb80014.js.map +1 -0
  38. package/dist/embedded-app/static/module-luxon.b1d74b2d.js +3 -0
  39. package/dist/embedded-app/static/module-luxon.b1d74b2d.js.map +1 -0
  40. package/dist/embedded-app/static/{module-yaml.aace0584.js → module-yaml.00a97896.js} +6 -5
  41. package/dist/embedded-app/static/module-yaml.00a97896.js.map +1 -0
  42. package/dist/embedded-app/static/{runtime.4b61d1bd.js → runtime.2d4c0606.js} +2 -2
  43. package/dist/embedded-app/static/{runtime.4b61d1bd.js.map → runtime.2d4c0606.js.map} +1 -1
  44. package/dist/embedded-app/static/vendor.2d4c0606.js +213 -0
  45. package/dist/embedded-app/static/vendor.2d4c0606.js.map +1 -0
  46. package/dist/index.cjs.js +6 -2
  47. package/dist/index.cjs.js.map +1 -1
  48. package/package.json +6 -6
  49. package/dist/cjs/generate-d9c4c0d9.cjs.js.map +0 -1
  50. package/dist/embedded-app/static/1049.e59b8f46.chunk.js +0 -7
  51. package/dist/embedded-app/static/1049.e59b8f46.chunk.js.map +0 -1
  52. package/dist/embedded-app/static/1105.cbd84f5c.chunk.js +0 -3
  53. package/dist/embedded-app/static/1105.cbd84f5c.chunk.js.map +0 -1
  54. package/dist/embedded-app/static/2440.8f7574d6.chunk.js +0 -3
  55. package/dist/embedded-app/static/2440.8f7574d6.chunk.js.map +0 -1
  56. package/dist/embedded-app/static/5458.4a158b26.chunk.js +0 -3
  57. package/dist/embedded-app/static/5458.4a158b26.chunk.js.map +0 -1
  58. package/dist/embedded-app/static/6051.e6ab645f.chunk.js +0 -4
  59. package/dist/embedded-app/static/9323.61727faa.chunk.js +0 -3
  60. package/dist/embedded-app/static/9770.1e5df227.chunk.js +0 -3
  61. package/dist/embedded-app/static/9770.1e5df227.chunk.js.map +0 -1
  62. package/dist/embedded-app/static/main.4b61d1bd.js +0 -522
  63. package/dist/embedded-app/static/main.4b61d1bd.js.map +0 -1
  64. package/dist/embedded-app/static/module-luxon.a1854eb9.js +0 -3
  65. package/dist/embedded-app/static/module-luxon.a1854eb9.js.map +0 -1
  66. package/dist/embedded-app/static/module-yaml.aace0584.js.map +0 -1
  67. package/dist/embedded-app/static/vendor.4b61d1bd.js +0 -213
  68. package/dist/embedded-app/static/vendor.4b61d1bd.js.map +0 -1
@@ -26,7 +26,8 @@ ${t}`)+"'";return e.implicitKey?n:je(n,t,Vt,De(e,!1))}function ce(s,e){const{sin
26
26
  `)w=m;else break}let b=t.substring(0,w<m?w+1:m);b&&(t=t.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let S=(h?"|":">")+(d?c?"2":"1":"")+u;if(s&&(S+=" "+l(s.replace(/ ?[\r\n]+/g," ")),i&&i()),h)return t=t.replace(/\n+/g,`$&${c}`),`${S}
27
27
  ${c}${b}${t}${f}`;t=t.replace(/\n+/g,`
28
28
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const N=je(`${b}${t}${f}`,c,lt,De(n,!0));return`${S}
29
- ${c}${N}`}function Js(s,e,t,n){const{type:i,value:r}=s,{actualString:o,implicitKey:l,indent:a,indentStep:c,inFlow:h}=e;if(l&&/[\n[\]{},]/.test(r)||h&&/[[\]{},]/.test(r))return ce(r,e);if(!r||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||h||!r.includes(`
29
+ ${c}${N}`}function Js(s,e,t,n){const{type:i,value:r}=s,{actualString:o,implicitKey:l,indent:a,indentStep:c,inFlow:h}=e;if(l&&r.includes(`
30
+ `)||h&&/[[\]{},]/.test(r))return ce(r,e);if(!r||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||h||!r.includes(`
30
31
  `)?ce(r,e):qe(s,e,t,n);if(!l&&!h&&i!==O.PLAIN&&r.includes(`
31
32
  `))return qe(s,e,t,n);if(Ke(r)){if(a==="")return e.forceBlockIndent=!0,qe(s,e,t,n);if(l&&a===c)return ce(r,e)}const u=r.replace(/\n+/g,`$&
32
33
  ${a}`);if(o){const p=d=>{var m;return d.default&&d.tag!=="tag:yaml.org,2002:str"&&((m=d.test)==null?void 0:m.test(u))},{compat:f,tags:y}=e.doc.schema;if(y.some(p)||f!=null&&f.some(p))return ce(r,e)}return l?u:je(u,a,Vt,De(e,!1))}function Oe(s,e,t,n){const{implicitKey:i,inFlow:r}=e,o=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)});let{type:l}=s;l!==O.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=O.QUOTE_DOUBLE);const a=h=>{switch(h){case O.BLOCK_FOLDED:case O.BLOCK_LITERAL:return i||r?ce(o.value,e):qe(o,e,t,n);case O.QUOTE_DOUBLE:return Ne(o.value,e);case O.QUOTE_SINGLE:return at(o.value,e);case O.PLAIN:return Js(o,e,t,n);default:return null}};let c=a(l);if(c===null){const{defaultKeyType:h,defaultStringType:u}=e.options,p=i&&h||u;if(c=a(p),c===null)throw new Error(`Unsupported default string type ${p}`)}return c}function Jt(s,e){const t=Object.assign({blockQuote:!0,commentString:Vs,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},s.schema.toStringOptions,e);let 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 Gs(s,e){var i,r,o,l;if(e.tag){const a=s.filter(c=>c.tag===e.tag);if(a.length>0)return(i=a.find(c=>c.format===e.format))!=null?i:a[0]}let t,n;if(E(e)){n=e.value;const a=s.filter(c=>{var h;return(h=c.identify)==null?void 0:h.call(c,n)});t=(r=a.find(c=>c.format===e.format))!=null?r:a.find(c=>!c.format)}else n=e,t=s.find(a=>a.nodeClass&&n instanceof a.nodeClass);if(!t){const a=(l=(o=n==null?void 0:n.constructor)==null?void 0:o.name)!=null?l:typeof n;throw new Error(`Tag not resolved for ${a} value`)}return t}function Qs(s,e,{anchors:t,doc:n}){if(!n.directives)return"";const i=[],r=(E(s)||I(s))&&s.anchor;r&&qt(r)&&(t.add(r),i.push(`&${r}`));const o=s.tag?s.tag:e.default?null:e.tag;return o&&i.push(n.directives.tagString(o)),i.join(" ")}function fe(s,e,t,n){var a,c;if(L(s))return s.toString(e,t,n);if(z(s)){if(e.doc.directives)return s.toString(e);if((a=e.resolvedAliases)!=null&&a.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;const r=$(s)?s:e.doc.createNode(s,{onTagObj:h=>i=h});i||(i=Gs(e.doc.schema.tags,r));const o=Qs(r,i,e);o.length>0&&(e.indentAtStart=((c=e.indentAtStart)!=null?c:0)+o.length+1);const l=typeof i.stringify=="function"?i.stringify(r,e,t,n):E(r)?Oe(r,e,t,n):r.toString(e,t,n);return o?E(r)||l[0]==="{"||l[0]==="["?`${o} ${l}`:`${o}
@@ -40,17 +41,17 @@ ${J(C,t.indent)}`}N===""&&!t.inFlow?g===`
40
41
  ${t.indent}`}else if(!f&&I(e)){const C=N[0],_=N.indexOf(`
41
42
  `),M=_!==-1,te=(A=(T=t.inFlow)!=null?T:e.flow)!=null?A:e.items.length===0;if(M||!te){let we=!1;if(M&&(C==="&"||C==="!")){let v=N.indexOf(" ");C==="&"&&v!==-1&&v<_&&N[v+1]==="!"&&(v=N.indexOf(" ",v+1)),(v===-1||_<v)&&(we=!0)}we||(g=`
42
43
  ${t.indent}`)}}else(N===""||N[0]===`
43
- `)&&(g="");return m+=g+N,t.inFlow?S&&n&&n():k&&!S?m+=W(m,t.indent,c(k)):d&&i&&i(),m}var ft=X(34406);function Wn(s,...e){s==="debug"&&console.log(...e)}function Gt(s,e){(s==="debug"||s==="warn")&&(typeof ft!="undefined"&&ft.emitWarning?ft.emitWarning(e):console.warn(e))}const Qt="<<";function Wt(s,e,{key:t,value:n}){if(s!=null&&s.doc.schema.merge&&Hs(t))if(n=z(n)?n.resolve(s.doc):n,re(n))for(const i of n.items)ut(s,e,i);else if(Array.isArray(n))for(const i of n)ut(s,e,i);else ut(s,e,n);else{const i=q(t,"",s);if(e instanceof Map)e.set(i,q(n,i,s));else if(e instanceof Set)e.add(i);else{const r=Xs(t,i,s),o=q(n,r,s);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}const Hs=s=>s===Qt||E(s)&&s.value===Qt&&(!s.type||s.type===O.PLAIN);function ut(s,e,t){const n=s&&z(t)?t.resolve(s.doc):t;if(!ie(n))throw new Error("Merge sources must be maps or map aliases");const i=n.toJSON(null,s,Map);for(const[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 Xs(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if($(s)&&t&&t.doc){const n=Jt(t.doc,{});n.anchors=new Set;for(const r of t.anchors.keys())n.anchors.add(r.anchor);n.inFlow=!0,n.inStringifyKey=!0;const i=s.toString(n);if(!t.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),Gt(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)}function ht(s,e,t){const n=Se(s,void 0,t),i=Se(e,void 0,t);return new B(n,i)}class B{constructor(e,t=null){Object.defineProperty(this,K,{value:Mt}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return $(t)&&(t=t.clone(e)),$(n)&&(n=n.clone(e)),new B(t,n)}toJSON(e,t){const n=t!=null&&t.mapAsMap?new Map:{};return Wt(t,n,this)}toString(e,t,n){return e!=null&&e.doc?Ws(this,e,t,n):JSON.stringify(this)}}function Ht(s,e,t){var r;return(((r=e.inFlow)!=null?r:s.flow)?Zs:zs)(s,e,t)}function zs({comment:s,items:e},t,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:l}){const{indent:a,options:{commentString:c}}=t,h=Object.assign({},t,{indent:r,type:null});let u=!1;const p=[];for(let y=0;y<e.length;++y){const d=e[y];let m=null;if($(d))!u&&d.spaceBefore&&p.push(""),Fe(t,p,d.commentBefore,u),d.comment&&(m=d.comment);else if(L(d)){const b=$(d.key)?d.key:null;b&&(!u&&b.spaceBefore&&p.push(""),Fe(t,p,b.commentBefore,u))}u=!1;let w=fe(d,h,()=>m=null,()=>u=!0);m&&(w+=W(w,r,c(m))),u&&m&&(u=!1),p.push(n+w)}let f;if(p.length===0)f=i.start+i.end;else{f=p[0];for(let y=1;y<p.length;++y){const d=p[y];f+=d?`
44
+ `)&&(g="");return m+=g+N,t.inFlow?S&&n&&n():k&&!S?m+=W(m,t.indent,c(k)):d&&i&&i(),m}var ft=X(34406);function Wn(s,...e){s==="debug"&&console.log(...e)}function Gt(s,e){(s==="debug"||s==="warn")&&(typeof ft!="undefined"&&ft.emitWarning?ft.emitWarning(e):console.warn(e))}const Qt="<<";function Wt(s,e,{key:t,value:n}){if(s!=null&&s.doc.schema.merge&&Hs(t))if(n=z(n)?n.resolve(s.doc):n,re(n))for(const i of n.items)ut(s,e,i);else if(Array.isArray(n))for(const i of n)ut(s,e,i);else ut(s,e,n);else{const i=q(t,"",s);if(e instanceof Map)e.set(i,q(n,i,s));else if(e instanceof Set)e.add(i);else{const r=Xs(t,i,s),o=q(n,r,s);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}const Hs=s=>s===Qt||E(s)&&s.value===Qt&&(!s.type||s.type===O.PLAIN);function ut(s,e,t){const n=s&&z(t)?t.resolve(s.doc):t;if(!ie(n))throw new Error("Merge sources must be maps or map aliases");const i=n.toJSON(null,s,Map);for(const[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 Xs(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if($(s)&&(t!=null&&t.doc)){const n=Jt(t.doc,{});n.anchors=new Set;for(const r of t.anchors.keys())n.anchors.add(r.anchor);n.inFlow=!0,n.inStringifyKey=!0;const i=s.toString(n);if(!t.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),Gt(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)}function ht(s,e,t){const n=Se(s,void 0,t),i=Se(e,void 0,t);return new B(n,i)}class B{constructor(e,t=null){Object.defineProperty(this,K,{value:Mt}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return $(t)&&(t=t.clone(e)),$(n)&&(n=n.clone(e)),new B(t,n)}toJSON(e,t){const n=t!=null&&t.mapAsMap?new Map:{};return Wt(t,n,this)}toString(e,t,n){return e!=null&&e.doc?Ws(this,e,t,n):JSON.stringify(this)}}function Ht(s,e,t){var r;return(((r=e.inFlow)!=null?r:s.flow)?Zs:zs)(s,e,t)}function zs({comment:s,items:e},t,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:l}){const{indent:a,options:{commentString:c}}=t,h=Object.assign({},t,{indent:r,type:null});let u=!1;const p=[];for(let y=0;y<e.length;++y){const d=e[y];let m=null;if($(d))!u&&d.spaceBefore&&p.push(""),Fe(t,p,d.commentBefore,u),d.comment&&(m=d.comment);else if(L(d)){const b=$(d.key)?d.key:null;b&&(!u&&b.spaceBefore&&p.push(""),Fe(t,p,b.commentBefore,u))}u=!1;let w=fe(d,h,()=>m=null,()=>u=!0);m&&(w+=W(w,r,c(m))),u&&m&&(u=!1),p.push(n+w)}let f;if(p.length===0)f=i.start+i.end;else{f=p[0];for(let y=1;y<p.length;++y){const d=p[y];f+=d?`
44
45
  ${a}${d}`:`
45
46
  `}}return s?(f+=`
46
- `+J(c(s),a),l&&l()):u&&o&&o(),f}function Zs({comment:s,items:e},t,{flowChars:n,itemIndent:i,onComment:r}){const{indent:o,indentStep:l,flowCollectionPadding:a,options:{commentString:c}}=t;i+=l;const h=Object.assign({},t,{indent:i,inFlow:!0,type:null});let u=!1,p=0;const f=[];for(let w=0;w<e.length;++w){const b=e[w];let k=null;if($(b))b.spaceBefore&&f.push(""),Fe(t,f,b.commentBefore,!1),b.comment&&(k=b.comment);else if(L(b)){const N=$(b.key)?b.key:null;N&&(N.spaceBefore&&f.push(""),Fe(t,f,N.commentBefore,!1),N.comment&&(u=!0));const g=$(b.value)?b.value:null;g?(g.comment&&(k=g.comment),g.commentBefore&&(u=!0)):b.value==null&&N&&N.comment&&(k=N.comment)}k&&(u=!0);let S=fe(b,h,()=>k=null);w<e.length-1&&(S+=","),k&&(S+=W(S,i,c(k))),!u&&(f.length>p||S.includes(`
47
+ `+J(c(s),a),l&&l()):u&&o&&o(),f}function Zs({comment:s,items:e},t,{flowChars:n,itemIndent:i,onComment:r}){const{indent:o,indentStep:l,flowCollectionPadding:a,options:{commentString:c}}=t;i+=l;const h=Object.assign({},t,{indent:i,inFlow:!0,type:null});let u=!1,p=0;const f=[];for(let w=0;w<e.length;++w){const b=e[w];let k=null;if($(b))b.spaceBefore&&f.push(""),Fe(t,f,b.commentBefore,!1),b.comment&&(k=b.comment);else if(L(b)){const N=$(b.key)?b.key:null;N&&(N.spaceBefore&&f.push(""),Fe(t,f,N.commentBefore,!1),N.comment&&(u=!0));const g=$(b.value)?b.value:null;g?(g.comment&&(k=g.comment),g.commentBefore&&(u=!0)):b.value==null&&(N!=null&&N.comment)&&(k=N.comment)}k&&(u=!0);let S=fe(b,h,()=>k=null);w<e.length-1&&(S+=","),k&&(S+=W(S,i,c(k))),!u&&(f.length>p||S.includes(`
47
48
  `))&&(u=!0),f.push(S),p=f.length}let y;const{start:d,end:m}=n;if(f.length===0)y=d+m;else if(u||(u=f.reduce((b,k)=>b+k.length+2,2)>Me.maxFlowStringSingleLineLength),u){y=d;for(const w of f)y+=w?`
48
49
  ${l}${o}${w}`:`
49
50
  `;y+=`
50
51
  ${o}${m}`}else y=`${d}${a}${f.join(" ")}${a}${m}`;return s&&(y+=W(y,o,c(s)),r&&r()),y}function Fe({indent:s,options:{commentString:e}},t,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){const r=J(e(n),s);t.push(r.trimStart())}}function Z(s,e){const t=E(e)?e.value:e;for(const n of s)if(L(n)&&(n.key===e||n.key===t||E(n.key)&&n.key.value===t))return n}class D extends Me{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(G,e),this.items=[]}static from(e,t,n){const{keepUndefined:i,replacer:r}=n,o=new this(e),l=(a,c)=>{if(typeof r=="function")c=r.call(t,a,c);else if(Array.isArray(r)&&!r.includes(a))return;(c!==void 0||i)&&o.items.push(ht(a,c,n))};if(t instanceof Map)for(const[a,c]of t)l(a,c);else if(t&&typeof t=="object")for(const a of Object.keys(t))l(a,t[a]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){var o;let n;L(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new B(e,e==null?void 0:e.value):n=new B(e.key,e.value);const i=Z(this.items,n.key),r=(o=this.schema)==null?void 0:o.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);E(i.value)&&Rt(n.value)?i.value.value=n.value:i.value=n.value}else if(r){const l=this.items.findIndex(a=>r(n,a)<0);l===-1?this.items.push(n):this.items.splice(l,0,n)}else this.items.push(n)}delete(e){const t=Z(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){var r;const n=Z(this.items,e),i=n==null?void 0:n.value;return(r=!t&&E(i)?i.value:i)!=null?r:void 0}has(e){return!!Z(this.items,e)}set(e,t){this.add(new B(e,t),!0)}toJSON(e,t,n){const i=n?new n:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(i);for(const r of this.items)Wt(t,i,r);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(const i of this.items)if(!L(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})),Ht(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const ue={collection:"map",default:!0,nodeClass:D,tag:"tag:yaml.org,2002:map",resolve(s,e){return ie(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>D.from(s,e,t)};class H extends Me{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(se,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=Ue(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const n=Ue(e);if(typeof n!="number")return;const i=this.items[n];return!t&&E(i)?i.value:i}has(e){const t=Ue(e);return typeof t=="number"&&t<this.items.length}set(e,t){const n=Ue(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const i=this.items[n];E(i)&&Rt(t)?i.value=t:this.items[n]=t}toJSON(e,t){const n=[];t!=null&&t.onCreate&&t.onCreate(n);let i=0;for(const r of this.items)n.push(q(r,String(i++),t));return n}toString(e,t,n){return e?Ht(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let l of t){if(typeof i=="function"){const a=t instanceof Set?l:String(o++);l=i.call(t,a,l)}r.items.push(Se(l,void 0,n))}}return r}}function Ue(s){let e=E(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const he={collection:"seq",default:!0,nodeClass:H,tag:"tag:yaml.org,2002:seq",resolve(s,e){return re(s)||e("Expected a sequence for this tag"),s},createNode:(s,e,t)=>H.from(s,e,t)},Re={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),Oe(s,e,t,n)}},Ve={identify:s=>s==null,createNode:()=>new O(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new O(null),stringify:({source:s},e)=>typeof s=="string"&&Ve.test.test(s)?s:e.options.nullStr},dt={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new O(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&dt.test.test(s)){const n=s[0]==="t"||s[0]==="T";if(e===n)return s}return e?t.options.trueStr:t.options.falseStr}};function U({format:s,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);const i=typeof n=="number"?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=JSON.stringify(n);if(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let l=e-(r.length-o-1);for(;l-- >0;)r+="0"}return r}const Xt={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:U},zt={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){const e=Number(s.value);return isFinite(e)?e.toExponential():U(s)}},Zt={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){const e=new O(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:U},Ye=s=>typeof s=="bigint"||Number.isInteger(s),pt=(s,e,t,{intAsBigInt:n})=>n?BigInt(s):parseInt(s.substring(e),t);function xt(s,e,t){const{value:n}=s;return Ye(n)&&n>=0?t+n.toString(e):U(s)}const es={identify:s=>Ye(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,e,t)=>pt(s,2,8,t),stringify:s=>xt(s,8,"0o")},ts={identify:Ye,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,e,t)=>pt(s,0,10,t),stringify:U},ss={identify:s=>Ye(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,e,t)=>pt(s,2,16,t),stringify:s=>xt(s,16,"0x")},xs=[ue,he,Re,Ve,dt,es,ts,ss,Xt,zt,Zt];function ns(s){return typeof s=="bigint"||Number.isInteger(s)}const Je=({value:s})=>JSON.stringify(s),en=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:Je},{identify:s=>s==null,createNode:()=>new O(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Je},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:s=>s==="true",stringify:Je},{identify:ns,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})=>ns(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:Je}],tn={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},sn=[ue,he].concat(en,tn);var Ae=X(48834).lW;const mt={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof Ae=="function")return Ae.from(s,"base64");if(typeof atob=="function"){const 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){const o=t;let l;if(typeof Ae=="function")l=o instanceof Ae?o.toString("base64"):Ae.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c<o.length;++c)a+=String.fromCharCode(o[c]);l=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=O.BLOCK_LITERAL),e!==O.QUOTE_DOUBLE){const a=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),c=Math.ceil(l.length/a),h=new Array(c);for(let u=0,p=0;u<c;++u,p+=a)h[u]=l.substr(p,a);l=h.join(e===O.BLOCK_LITERAL?`
51
52
  `:" ")}return Oe({comment:s,type:e,value:l},n,i,r)}};function is(s,e){var t;if(re(s))for(let n=0;n<s.items.length;++n){let i=s.items[n];if(!L(i)){if(ie(i)){i.items.length>1&&e("Each pair must have its own sequence indicator");const r=i.items[0]||new B(new O(null));if(i.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${i.commentBefore}
52
53
  ${r.key.commentBefore}`:i.commentBefore),i.comment){const o=(t=r.value)!=null?t:r.key;o.comment=o.comment?`${i.comment}
53
- ${o.comment}`:i.comment}i=r}s.items[n]=L(i)?i:new B(i)}}else e("Expected a sequence for this tag");return s}function rs(s,e,t){const{replacer:n}=t,i=new H(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 l,a;if(Array.isArray(o))if(o.length===2)l=o[0],a=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)l=c[0],a=o[l];else throw new TypeError(`Expected { key: value } tuple: ${o}`)}else l=o;i.items.push(ht(l,a,t))}return i}const yt={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:is,createNode:rs};class de extends H{constructor(){super(),this.add=D.prototype.add.bind(this),this.delete=D.prototype.delete.bind(this),this.get=D.prototype.get.bind(this),this.has=D.prototype.has.bind(this),this.set=D.prototype.set.bind(this),this.tag=de.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const i of this.items){let r,o;if(L(i)?(r=q(i.key,"",t),o=q(i.value,r,t)):r=q(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){const i=rs(e,t,n),r=new this;return r.items=i.items,r}}de.tag="tag:yaml.org,2002:omap";const gt={collection:"seq",identify:s=>s instanceof Map,nodeClass:de,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){const t=is(s,e),n=[];for(const{key:i}of t.items)E(i)&&(n.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new de,t)},createNode:(s,e,t)=>de.from(s,e,t)};function os({value:s,source:e},t){return e&&(s?ls:as).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}const ls={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 O(!0),stringify:os},as={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new O(!1),stringify:os},nn={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:U},rn={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){const e=Number(s.value);return isFinite(e)?e.toExponential():U(s)}},on={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){const e=new O(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){const n=s.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:U},Ee=s=>typeof s=="bigint"||Number.isInteger(s);function Ge(s,e,t,{intAsBigInt:n}){const 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}const o=BigInt(s);return i==="-"?BigInt(-1)*o:o}const r=parseInt(s,t);return i==="-"?-1*r:r}function bt(s,e,t){const{value:n}=s;if(Ee(n)){const i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return U(s)}const ln={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>Ge(s,2,2,t),stringify:s=>bt(s,2,"0b")},an={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>Ge(s,1,8,t),stringify:s=>bt(s,8,"0")},cn={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>Ge(s,0,10,t),stringify:U},fn={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>Ge(s,2,16,t),stringify:s=>bt(s,16,"0x")};class pe extends D{constructor(e){super(e),this.tag=pe.tag}add(e){let t;L(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new B(e.key,null):t=new B(e,null),Z(this.items,t.key)||this.items.push(t)}get(e,t){const n=Z(this.items,e);return!t&&L(n)?E(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}`);const n=Z(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new B(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){const{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(ht(o,null,n));return r}}pe.tag="tag:yaml.org,2002:set";const wt={collection:"map",identify:s=>s instanceof Set,nodeClass:pe,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,e,t)=>pe.from(s,e,t),resolve(s,e){if(ie(s)){if(s.hasAllNullValues(!0))return Object.assign(new pe,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};function St(s,e){const t=s[0],n=t==="-"||t==="+"?s.substring(1):s,i=o=>e?BigInt(o):Number(o),r=n.replace(/_/g,"").split(":").reduce((o,l)=>o*i(60)+i(l),i(0));return t==="-"?i(-1)*r:r}function cs(s){let{value:e}=s,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return U(s);let n="";e<0&&(n="-",e*=t(-1));const 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*$/,"")}const fs={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})=>St(s,t),stringify:cs},us={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=>St(s,!1),stringify:cs},Qe={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){const e=s.match(Qe.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,n,i,r,o,l]=e.map(Number),a=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(t,n-1,i,r||0,o||0,l||0,a);const h=e[8];if(h&&h!=="Z"){let u=St(h,!1);Math.abs(u)<30&&(u*=60),c-=6e4*u}return new Date(c)},stringify:({value:s})=>s.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},hs=[ue,he,Re,Ve,ls,as,ln,an,cn,fn,nn,rn,on,mt,gt,yt,wt,fs,us,Qe],ds=new Map([["core",xs],["failsafe",[ue,he,Re]],["json",sn],["yaml11",hs],["yaml-1.1",hs]]),ps={binary:mt,bool:dt,float:Zt,floatExp:zt,floatNaN:Xt,floatTime:us,int:ts,intHex:ss,intOct:es,intTime:fs,map:ue,null:Ve,omap:gt,pairs:yt,seq:he,set:wt,timestamp:Qe},un={"tag:yaml.org,2002:binary":mt,"tag:yaml.org,2002:omap":gt,"tag:yaml.org,2002:pairs":yt,"tag:yaml.org,2002:set":wt,"tag:yaml.org,2002:timestamp":Qe};function kt(s,e){let t=ds.get(e);if(!t)if(Array.isArray(s))t=[];else{const n=Array.from(ds.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`)}if(Array.isArray(s))for(const n of s)t=t.concat(n);else typeof s=="function"&&(t=s(t.slice()));return t.map(n=>{if(typeof n!="string")return n;const i=ps[n];if(i)return i;const r=Object.keys(ps).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${r}`)})}const hn=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0;class We{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:l}){this.compat=Array.isArray(e)?kt(e,"compat"):e?kt(null,e):null,this.merge=!!n,this.name=typeof r=="string"&&r||"core",this.knownTags=i?un:{},this.tags=kt(t,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,G,{value:ue}),Object.defineProperty(this,Y,{value:Re}),Object.defineProperty(this,se,{value:he}),this.sortMapEntries=typeof o=="function"?o:o===!0?hn:null}clone(){const e=Object.create(We.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function dn(s,e){var a;const t=[];let n=e.directives===!0;if(e.directives!==!1&&s.directives){const c=s.directives.toString(s);c?(t.push(c),n=!0):s.directives.docStart&&(n=!0)}n&&t.push("---");const i=Jt(s,e),{commentString:r}=i.options;if(s.commentBefore){t.length!==1&&t.unshift("");const c=r(s.commentBefore);t.unshift(J(c,""))}let o=!1,l=null;if(s.contents){if($(s.contents)){if(s.contents.spaceBefore&&n&&t.push(""),s.contents.commentBefore){const u=r(s.contents.commentBefore);t.push(J(u,""))}i.forceBlockIndent=!!s.comment,l=s.contents.comment}const c=l?void 0:()=>o=!0;let h=fe(s.contents,i,()=>l=null,c);l&&(h+=W(h,"",r(l))),(h[0]==="|"||h[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${h}`:t.push(h)}else t.push(fe(s.contents,i));if((a=s.directives)!=null&&a.docEnd)if(s.comment){const c=r(s.comment);c.includes(`
54
+ ${o.comment}`:i.comment}i=r}s.items[n]=L(i)?i:new B(i)}}else e("Expected a sequence for this tag");return s}function rs(s,e,t){const{replacer:n}=t,i=new H(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 l,a;if(Array.isArray(o))if(o.length===2)l=o[0],a=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)l=c[0],a=o[l];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else l=o;i.items.push(ht(l,a,t))}return i}const yt={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:is,createNode:rs};class de extends H{constructor(){super(),this.add=D.prototype.add.bind(this),this.delete=D.prototype.delete.bind(this),this.get=D.prototype.get.bind(this),this.has=D.prototype.has.bind(this),this.set=D.prototype.set.bind(this),this.tag=de.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const i of this.items){let r,o;if(L(i)?(r=q(i.key,"",t),o=q(i.value,r,t)):r=q(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){const i=rs(e,t,n),r=new this;return r.items=i.items,r}}de.tag="tag:yaml.org,2002:omap";const gt={collection:"seq",identify:s=>s instanceof Map,nodeClass:de,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){const t=is(s,e),n=[];for(const{key:i}of t.items)E(i)&&(n.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new de,t)},createNode:(s,e,t)=>de.from(s,e,t)};function os({value:s,source:e},t){return e&&(s?ls:as).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}const ls={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 O(!0),stringify:os},as={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new O(!1),stringify:os},nn={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:U},rn={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){const e=Number(s.value);return isFinite(e)?e.toExponential():U(s)}},on={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){const e=new O(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){const n=s.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:U},Ee=s=>typeof s=="bigint"||Number.isInteger(s);function Ge(s,e,t,{intAsBigInt:n}){const 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}const o=BigInt(s);return i==="-"?BigInt(-1)*o:o}const r=parseInt(s,t);return i==="-"?-1*r:r}function bt(s,e,t){const{value:n}=s;if(Ee(n)){const i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return U(s)}const ln={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>Ge(s,2,2,t),stringify:s=>bt(s,2,"0b")},an={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>Ge(s,1,8,t),stringify:s=>bt(s,8,"0")},cn={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>Ge(s,0,10,t),stringify:U},fn={identify:Ee,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>Ge(s,2,16,t),stringify:s=>bt(s,16,"0x")};class pe extends D{constructor(e){super(e),this.tag=pe.tag}add(e){let t;L(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new B(e.key,null):t=new B(e,null),Z(this.items,t.key)||this.items.push(t)}get(e,t){const n=Z(this.items,e);return!t&&L(n)?E(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}`);const n=Z(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new B(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){const{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(ht(o,null,n));return r}}pe.tag="tag:yaml.org,2002:set";const wt={collection:"map",identify:s=>s instanceof Set,nodeClass:pe,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,e,t)=>pe.from(s,e,t),resolve(s,e){if(ie(s)){if(s.hasAllNullValues(!0))return Object.assign(new pe,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};function St(s,e){const t=s[0],n=t==="-"||t==="+"?s.substring(1):s,i=o=>e?BigInt(o):Number(o),r=n.replace(/_/g,"").split(":").reduce((o,l)=>o*i(60)+i(l),i(0));return t==="-"?i(-1)*r:r}function cs(s){let{value:e}=s,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return U(s);let n="";e<0&&(n="-",e*=t(-1));const 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*$/,"")}const fs={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})=>St(s,t),stringify:cs},us={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=>St(s,!1),stringify:cs},Qe={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){const e=s.match(Qe.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,n,i,r,o,l]=e.map(Number),a=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(t,n-1,i,r||0,o||0,l||0,a);const h=e[8];if(h&&h!=="Z"){let u=St(h,!1);Math.abs(u)<30&&(u*=60),c-=6e4*u}return new Date(c)},stringify:({value:s})=>s.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},hs=[ue,he,Re,Ve,ls,as,ln,an,cn,fn,nn,rn,on,mt,gt,yt,wt,fs,us,Qe],ds=new Map([["core",xs],["failsafe",[ue,he,Re]],["json",sn],["yaml11",hs],["yaml-1.1",hs]]),ps={binary:mt,bool:dt,float:Zt,floatExp:zt,floatNaN:Xt,floatTime:us,int:ts,intHex:ss,intOct:es,intTime:fs,map:ue,null:Ve,omap:gt,pairs:yt,seq:he,set:wt,timestamp:Qe},un={"tag:yaml.org,2002:binary":mt,"tag:yaml.org,2002:omap":gt,"tag:yaml.org,2002:pairs":yt,"tag:yaml.org,2002:set":wt,"tag:yaml.org,2002:timestamp":Qe};function kt(s,e){let t=ds.get(e);if(!t)if(Array.isArray(s))t=[];else{const n=Array.from(ds.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`)}if(Array.isArray(s))for(const n of s)t=t.concat(n);else typeof s=="function"&&(t=s(t.slice()));return t.map(n=>{if(typeof n!="string")return n;const i=ps[n];if(i)return i;const r=Object.keys(ps).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${r}`)})}const hn=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0;class We{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:l}){this.compat=Array.isArray(e)?kt(e,"compat"):e?kt(null,e):null,this.merge=!!n,this.name=typeof r=="string"&&r||"core",this.knownTags=i?un:{},this.tags=kt(t,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,G,{value:ue}),Object.defineProperty(this,Y,{value:Re}),Object.defineProperty(this,se,{value:he}),this.sortMapEntries=typeof o=="function"?o:o===!0?hn:null}clone(){const e=Object.create(We.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function dn(s,e){var a;const t=[];let n=e.directives===!0;if(e.directives!==!1&&s.directives){const c=s.directives.toString(s);c?(t.push(c),n=!0):s.directives.docStart&&(n=!0)}n&&t.push("---");const i=Jt(s,e),{commentString:r}=i.options;if(s.commentBefore){t.length!==1&&t.unshift("");const c=r(s.commentBefore);t.unshift(J(c,""))}let o=!1,l=null;if(s.contents){if($(s.contents)){if(s.contents.spaceBefore&&n&&t.push(""),s.contents.commentBefore){const u=r(s.contents.commentBefore);t.push(J(u,""))}i.forceBlockIndent=!!s.comment,l=s.contents.comment}const c=l?void 0:()=>o=!0;let h=fe(s.contents,i,()=>l=null,c);l&&(h+=W(h,"",r(l))),(h[0]==="|"||h[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${h}`:t.push(h)}else t.push(fe(s.contents,i));if((a=s.directives)!=null&&a.docEnd)if(s.comment){const c=r(s.comment);c.includes(`
54
55
  `)?(t.push("..."),t.push(J(c,""))):t.push(`... ${c}`)}else t.push("...");else{let c=s.comment;c&&o&&(c=c.replace(/^\n+/,"")),c&&((!o||l)&&t[t.length-1]!==""&&t.push(""),t.push(J(r(c),"")))}return t.join(`
55
56
  `)+`
56
57
  `}class me{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,K,{value:rt});let i=null;typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);const r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:o}=r;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new P({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){const e=Object.create(me.prototype,{[K]:{value:rt}});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=$(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ye(this.contents)&&this.contents.add(e)}addIn(e,t){ye(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=Ft(this);e.anchor=!t||n.has(t)?Ut(t||"a",n):t}return new Ce(e.anchor)}createNode(e,t,n){let i;if(typeof t=="function")e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){const m=b=>typeof b=="number"||b instanceof String||b instanceof Number,w=t.filter(m).map(String);w.length>0&&(t=t.concat(w)),i=t}else n===void 0&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:r,anchorPrefix:o,flow:l,keepUndefined:a,onTagObj:c,tag:h}=n!=null?n:{},{onAnchor:u,setAnchors:p,sourceObjects:f}=Fs(this,o||"a"),y={aliasDuplicateObjects:r!=null?r:!0,keepUndefined:a!=null?a:!1,onAnchor:u,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:f},d=Se(e,h,y);return l&&I(d)&&(d.flow=!0),p(),d}createPair(e,t,n={}){const i=this.createNode(e,null,n),r=this.createNode(t,null,n);return new B(i,r)}delete(e){return ye(this.contents)?this.contents.delete(e):!1}deleteIn(e){return ke(e)?this.contents==null?!1:(this.contents=null,!0):ye(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return I(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return ke(e)?!t&&E(this.contents)?this.contents.value:this.contents:I(this.contents)?this.contents.getIn(e,t):void 0}has(e){return I(this.contents)?this.contents.has(e):!1}hasIn(e){return ke(e)?this.contents!==void 0:I(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Be(this.schema,[e],t):ye(this.contents)&&this.contents.set(e,t)}setIn(e,t){ke(e)?this.contents=t:this.contents==null?this.contents=Be(this.schema,Array.from(e),t):ye(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 P({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new P({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const 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 We(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}={}){const l={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=q(this.contents,t!=null?t:"",l);if(typeof r=="function")for(const{count:c,res:h}of l.anchors.values())r(h,c);return typeof o=="function"?ae(o,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return dn(this,e)}}function ye(s){if(I(s))return!0;throw new Error("Expected a YAML collection as document contents")}class Nt extends Error{constructor(e,t,n,i){super(),this.name=e,this.code=n,this.message=i,this.pos=t}}class x extends Nt{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class ms extends Nt{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const He=(s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(l=>e.linePos(l));const{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){const l=Math.min(r-39,o.length-79);o="\u2026"+o.substring(l),r-=l-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(o.substring(0,r))){let l=s.substring(e.lineStarts[n-2],e.lineStarts[n-1]);l.length>80&&(l=l.substring(0,79)+`\u2026
@@ -136,4 +137,4 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
136
137
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
137
138
  `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=tt(e),n=be(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=!0;const t=tt(e),n=be(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;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Ms(s){const e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new $s||null,prettyErrors:e}}function Vn(s,e={}){const{lineCounter:t,prettyErrors:n}=Ms(e),i=new Bt(t==null?void 0:t.addNewLine),r=new Tt(e),o=Array.from(r.compose(i.parse(s)));if(n&&t)for(const l of o)l.errors.forEach(He(s,t)),l.warnings.forEach(He(s,t));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function Ps(s,e={}){const{lineCounter:t,prettyErrors:n}=Ms(e),i=new Bt(t==null?void 0:t.addNewLine),r=new Tt(e);let o=null;for(const l of r.compose(i.parse(s),!0,s.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new x(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(o.errors.forEach(He(s,t)),o.warnings.forEach(He(s,t))),o}function Yn(s,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);const i=Ps(s,t);if(!i)return null;if(i.warnings.forEach(r=>Gt(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 Jn(s,e,t){var i;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"){const r=Math.round(t);t=r<1?void 0:r>8?{indent:8}:{indent:r}}if(s===void 0){const{keepUndefined:r}=(i=t!=null?t:e)!=null?i:{};if(!r)return}return new me(s,n,t).toString(t)}var Gn=nt}}]);})();
138
139
 
139
- //# sourceMappingURL=module-yaml.aace0584.js.map
140
+ //# sourceMappingURL=module-yaml.00a97896.js.map