@cline/core 0.0.95 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/ClineCore.d.ts +6 -1
  2. package/dist/account/rpc.d.ts +3 -1
  3. package/dist/cline-core/runtime-services.d.ts +4 -2
  4. package/dist/cloud/controller.d.ts +5 -2
  5. package/dist/cloud/hub-client.d.ts +51 -0
  6. package/dist/cloud/hub-protocol.d.ts +18 -0
  7. package/dist/cloud/index.d.ts +2 -0
  8. package/dist/cloud/index.js +16 -16
  9. package/dist/cloud/types.d.ts +4 -1
  10. package/dist/extensions/context/compaction-shared.d.ts +1 -0
  11. package/dist/extensions/context/compaction.d.ts +7 -0
  12. package/dist/extensions/context/summarize-conversation.d.ts +7 -0
  13. package/dist/extensions/context/summary-generation.d.ts +14 -0
  14. package/dist/extensions/mcp/apps.d.ts +16 -0
  15. package/dist/extensions/mcp/client.d.ts +1 -0
  16. package/dist/extensions/mcp/index.d.ts +5 -1
  17. package/dist/extensions/mcp/manager.d.ts +2 -1
  18. package/dist/extensions/mcp/session-apps.d.ts +28 -0
  19. package/dist/extensions/mcp/types.d.ts +22 -0
  20. package/dist/extensions/plugin/plugin-command-origin.d.ts +8 -0
  21. package/dist/extensions/plugin/plugin-registry.d.ts +1 -0
  22. package/dist/extensions/plugin/plugin-runtime.d.ts +7 -0
  23. package/dist/hub/client/index.d.ts +6 -0
  24. package/dist/hub/client/managed-hub-build-watcher.d.ts +2 -0
  25. package/dist/hub/client/plugin-commands.d.ts +4 -0
  26. package/dist/hub/client/session-client.d.ts +2 -0
  27. package/dist/hub/daemon/entry.js +241 -228
  28. package/dist/hub/index.d.ts +1 -0
  29. package/dist/hub/index.js +231 -218
  30. package/dist/hub/runtime-host/hub-runtime-host.d.ts +6 -0
  31. package/dist/hub/server/cloud-session-service.d.ts +50 -0
  32. package/dist/hub/server/handlers/capability-handlers.d.ts +18 -1
  33. package/dist/hub/server/handlers/context.d.ts +13 -2
  34. package/dist/hub/server/handlers/mcp-apps-handlers.d.ts +5 -0
  35. package/dist/hub/server/hub-server-options.d.ts +3 -0
  36. package/dist/hub/server/hub-server-transport.d.ts +2 -0
  37. package/dist/index.d.ts +8 -4
  38. package/dist/index.js +278 -258
  39. package/dist/plugin-runtime/node_modules/@cline/agents/dist/index.js +76 -0
  40. package/dist/plugin-runtime/node_modules/@cline/agents/package.json +1 -0
  41. package/dist/plugin-runtime/node_modules/@cline/core/dist/ai-sdk-b1d8eb67.js +1 -0
  42. package/dist/plugin-runtime/node_modules/@cline/core/dist/anthropic-33qvrctr.js +1 -0
  43. package/dist/plugin-runtime/node_modules/@cline/core/dist/bedrock-paabhz8w.js +1 -0
  44. package/dist/plugin-runtime/node_modules/@cline/core/dist/cline-yhsfqcy1.js +1 -0
  45. package/dist/plugin-runtime/node_modules/@cline/core/dist/cloud/index.js +21 -0
  46. package/dist/plugin-runtime/node_modules/@cline/core/dist/community-gqgs7446.js +1 -0
  47. package/dist/plugin-runtime/node_modules/@cline/core/dist/foundation-models-embedding-model-strategy-SAVQFBF4-822304b0.js +1 -0
  48. package/dist/plugin-runtime/node_modules/@cline/core/dist/foundation-models-language-model-strategy-BPQO66W7-hky2m2yx.js +1 -0
  49. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-bsd-sqf1kd37.js +1 -0
  50. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-bsd-tx1kp6xn.js +1 -0
  51. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-darwin-6cpgjxme.js +2 -0
  52. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-darwin-fxchqbze.js +2 -0
  53. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-linux-m3bzwmzc.js +1 -0
  54. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-linux-pr9sb5fr.js +1 -0
  55. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-unsupported-nckraycx.js +1 -0
  56. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-unsupported-w91yq3tm.js +1 -0
  57. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-win-xdyxc2tf.js +1 -0
  58. package/dist/plugin-runtime/node_modules/@cline/core/dist/getMachineId-win-yxsvs11a.js +1 -0
  59. package/dist/plugin-runtime/node_modules/@cline/core/dist/google-pgdk2dm9.js +1 -0
  60. package/dist/plugin-runtime/node_modules/@cline/core/dist/hub/daemon/entry.js +1160 -0
  61. package/dist/plugin-runtime/node_modules/@cline/core/dist/hub/index.js +1147 -0
  62. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-02jpyn9y.js +85 -0
  63. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-0cb4390m.js +137 -0
  64. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-0f8xrhgt.js +209 -0
  65. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-1f8vb421.js +2 -0
  66. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-28c7m0fv.js +16 -0
  67. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-2em3jg4q.js +1 -0
  68. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-4n1zpzbe.js +2 -0
  69. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-54eea0ex.js +2 -0
  70. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-5j92dtg5.js +16 -0
  71. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-6akf3a5d.js +2 -0
  72. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-6k6ep10s.js +136 -0
  73. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-71ym4q6s.js +2 -0
  74. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-91p1ghfk.js +14 -0
  75. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-9qkpjy7x.js +2 -0
  76. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-9swk4nej.js +3 -0
  77. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-aa2s5myc.js +1 -0
  78. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-ae0ajw38.js +13 -0
  79. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-bxvyzjhc.js +1 -0
  80. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-bzy863k0.js +6 -0
  81. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-d96n0s70.js +20 -0
  82. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-dsd6vt8c.js +1 -0
  83. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-e2q4azd9.js +119 -0
  84. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-egd18jj2.js +4 -0
  85. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-eh83hr16.js +2 -0
  86. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-ev9r2dy3.js +1204 -0
  87. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-f2mvvryf.js +190 -0
  88. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-h7gn5v3f.js +2 -0
  89. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-h7s1a560.js +12 -0
  90. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-hkhq3jtz.js +21 -0
  91. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-j8r18nfg.js +15 -0
  92. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-jhny555h.js +6 -0
  93. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-m1gpa2eg.js +146 -0
  94. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-m2ad6tgj.js +1 -0
  95. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-m7mks2jq.js +4 -0
  96. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-mcnngj50.js +62 -0
  97. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-n2srkkh0.js +39 -0
  98. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-nbs1tsny.js +142 -0
  99. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-nqjnz7m4.js +9 -0
  100. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-rmhzyxr8.js +3 -0
  101. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-rtzf3vvk.js +6 -0
  102. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-sw74pcm3.js +2 -0
  103. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-t3eanyjj.js +3 -0
  104. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-tseksj1v.js +1 -0
  105. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-v0ctpcdr.js +12 -0
  106. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-v4-dx8bd4wq.js +1 -0
  107. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-v695918t.js +14 -0
  108. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-v96yy1pw.js +1 -0
  109. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-vfm7r9wk.js +65 -0
  110. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-xecthgrg.js +9 -0
  111. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-xn1xhp06.js +9 -0
  112. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-yfdscfdx.js +1 -0
  113. package/dist/plugin-runtime/node_modules/@cline/core/dist/index-yrnwqsdt.js +2 -0
  114. package/dist/plugin-runtime/node_modules/@cline/core/dist/index.js +1 -0
  115. package/dist/plugin-runtime/node_modules/@cline/core/dist/jiti-static-3mgy2y9y.js +473 -0
  116. package/dist/plugin-runtime/node_modules/@cline/core/dist/jiti-w1xrs0vd.js +1 -0
  117. package/dist/plugin-runtime/node_modules/@cline/core/dist/langfuse-stream-telemetry-9tppg77c.js +1 -0
  118. package/dist/plugin-runtime/node_modules/@cline/core/dist/langfuse-telemetry-y658kpzy.js +1 -0
  119. package/dist/plugin-runtime/node_modules/@cline/core/dist/mistral-cmhqd91b.js +1 -0
  120. package/dist/plugin-runtime/node_modules/@cline/core/dist/multipart-parser-qkjjf8mm.js +2 -0
  121. package/dist/plugin-runtime/node_modules/@cline/core/dist/ollama-8z6y9d1h.js +1 -0
  122. package/dist/plugin-runtime/node_modules/@cline/core/dist/openai-cfmja1ez.js +1 -0
  123. package/dist/plugin-runtime/node_modules/@cline/core/dist/openai-compatible-1t7n5sxj.js +1 -0
  124. package/dist/plugin-runtime/node_modules/@cline/core/dist/orchestration-embedding-model-strategy-GT27AFII-k6yqgnyd.js +1 -0
  125. package/dist/plugin-runtime/node_modules/@cline/core/dist/orchestration-language-model-strategy-YEQPUCOT-6rdyebbq.js +1 -0
  126. package/dist/plugin-runtime/node_modules/@cline/core/dist/services/feature-flags/posthog.js +2 -0
  127. package/dist/plugin-runtime/node_modules/@cline/core/dist/services/telemetry/index.js +1 -0
  128. package/dist/plugin-runtime/node_modules/@cline/core/dist/token-1h068py9.js +1 -0
  129. package/dist/plugin-runtime/node_modules/@cline/core/dist/token-util-7jchft51.js +1 -0
  130. package/dist/plugin-runtime/node_modules/@cline/core/dist/vertex-qfxfsrn4.js +1 -0
  131. package/dist/plugin-runtime/node_modules/@cline/core/package.json +1 -0
  132. package/dist/plugin-runtime/node_modules/@cline/llms/dist/index.browser.js +16 -0
  133. package/dist/plugin-runtime/node_modules/@cline/llms/dist/index.js +1 -0
  134. package/dist/plugin-runtime/node_modules/@cline/llms/package.json +1 -0
  135. package/dist/plugin-runtime/node_modules/@cline/sdk/dist/index.js +1 -0
  136. package/dist/plugin-runtime/node_modules/@cline/sdk/package.json +1 -0
  137. package/dist/plugin-runtime/node_modules/@cline/shared/dist/automation/index.js +57 -0
  138. package/dist/plugin-runtime/node_modules/@cline/shared/dist/db/index.js +127 -0
  139. package/dist/plugin-runtime/node_modules/@cline/shared/dist/index.browser.js +110 -0
  140. package/dist/plugin-runtime/node_modules/@cline/shared/dist/index.js +1 -0
  141. package/dist/plugin-runtime/node_modules/@cline/shared/dist/node.js +1 -0
  142. package/dist/plugin-runtime/node_modules/@cline/shared/dist/remote-config/index.js +68 -0
  143. package/dist/plugin-runtime/node_modules/@cline/shared/dist/storage/index.js +1 -0
  144. package/dist/plugin-runtime/node_modules/@cline/shared/dist/types/index.js +1 -0
  145. package/dist/plugin-runtime/node_modules/@cline/shared/package.json +1 -0
  146. package/dist/plugin-runtime/package.json +1 -0
  147. package/dist/{extensions → plugin-runtime}/plugin-sandbox-bootstrap.js +129 -129
  148. package/dist/remote/remote-environments.d.ts +1 -0
  149. package/dist/runtime/config/agent-runtime-config-builder.d.ts +2 -0
  150. package/dist/runtime/host/local-runtime-host.d.ts +10 -0
  151. package/dist/runtime/host/runtime-host.d.ts +6 -0
  152. package/dist/runtime/orchestration/runtime-oauth-token-manager.d.ts +3 -0
  153. package/dist/runtime/orchestration/session-runtime-orchestrator.d.ts +10 -1
  154. package/dist/runtime/orchestration/session-runtime.d.ts +2 -0
  155. package/dist/runtime/tools/subprocess-sandbox.d.ts +22 -0
  156. package/dist/services/llms/cline-recommended-models.d.ts +2 -0
  157. package/dist/services/local-runtime-bootstrap.d.ts +1 -0
  158. package/dist/services/plugin-command-api.d.ts +47 -0
  159. package/dist/services/plugin-commands.d.ts +25 -27
  160. package/dist/services/skills-cli.d.ts +2 -0
  161. package/dist/services/telemetry/core-events.d.ts +26 -0
  162. package/dist/services/telemetry/index.js +1 -1
  163. package/dist/services/telemetry/run-health.d.ts +40 -0
  164. package/dist/services/telemetry/stall-signals.d.ts +12 -0
  165. package/dist/types/config.d.ts +1 -0
  166. package/dist/types/session.d.ts +7 -0
  167. package/package.json +6 -5
@@ -0,0 +1,137 @@
1
+ import{i,AS,c}from"./index-mcnngj50.js";var O=i(function(Mr){var Tt=Symbol.for("yaml.alias"),Rs=Symbol.for("yaml.document"),Fe=Symbol.for("yaml.map"),Us=Symbol.for("yaml.pair"),It=Symbol.for("yaml.scalar"),Re=Symbol.for("yaml.seq"),j=Symbol.for("yaml.node.type"),Lr=(e)=>!!e&&typeof e==="object"&&e[j]===Tt,Er=(e)=>!!e&&typeof e==="object"&&e[j]===Rs,Cr=(e)=>!!e&&typeof e==="object"&&e[j]===Fe,Tr=(e)=>!!e&&typeof e==="object"&&e[j]===Us,Ys=(e)=>!!e&&typeof e==="object"&&e[j]===It,Ir=(e)=>!!e&&typeof e==="object"&&e[j]===Re;function Vs(e){if(e&&typeof e==="object")switch(e[j]){case Fe:case Re:return!0}return!1}function Pr(e){if(e&&typeof e==="object")switch(e[j]){case Tt:case Fe:case It:case Re:return!0}return!1}var _r=(e)=>(Ys(e)||Vs(e))&&!!e.anchor;Mr.ALIAS=Tt;Mr.DOC=Rs;Mr.MAP=Fe;Mr.NODE_TYPE=j;Mr.PAIR=Us;Mr.SCALAR=It;Mr.SEQ=Re;Mr.hasAnchor=_r;Mr.isAlias=Lr;Mr.isCollection=Vs;Mr.isDocument=Er;Mr.isMap=Cr;Mr.isNode=Pr;Mr.isPair=Tr;Mr.isScalar=Ys;Mr.isSeq=Ir});var be=i(function(Xr){var I=O(),P=Symbol("break visit"),Js=Symbol("skip children"),B=Symbol("remove node");function Ue(e,t){let s=Qs(t);if(I.isDocument(e)){if(ae(null,e.contents,s,Object.freeze([e]))===B)e.contents=null}else ae(null,e,s,Object.freeze([]))}Ue.BREAK=P;Ue.SKIP=Js;Ue.REMOVE=B;function ae(e,t,s,n){let r=Ws(e,t,s,n);if(I.isNode(r)||I.isPair(r))return Gs(e,n,r),ae(e,r,s,n);if(typeof r!=="symbol"){if(I.isCollection(t)){n=Object.freeze(n.concat(t));for(let o=0;o<t.items.length;++o){let a=ae(o,t.items[o],s,n);if(typeof a==="number")o=a-1;else if(a===P)return P;else if(a===B)t.items.splice(o,1),o-=1}}else if(I.isPair(t)){n=Object.freeze(n.concat(t));let o=ae("key",t.key,s,n);if(o===P)return P;else if(o===B)t.key=null;let a=ae("value",t.value,s,n);if(a===P)return P;else if(a===B)t.value=null}}return r}async function Ye(e,t){let s=Qs(t);if(I.isDocument(e)){if(await le(null,e.contents,s,Object.freeze([e]))===B)e.contents=null}else await le(null,e,s,Object.freeze([]))}Ye.BREAK=P;Ye.SKIP=Js;Ye.REMOVE=B;async function le(e,t,s,n){let r=await Ws(e,t,s,n);if(I.isNode(r)||I.isPair(r))return Gs(e,n,r),le(e,r,s,n);if(typeof r!=="symbol"){if(I.isCollection(t)){n=Object.freeze(n.concat(t));for(let o=0;o<t.items.length;++o){let a=await le(o,t.items[o],s,n);if(typeof a==="number")o=a-1;else if(a===P)return P;else if(a===B)t.items.splice(o,1),o-=1}}else if(I.isPair(t)){n=Object.freeze(n.concat(t));let o=await le("key",t.key,s,n);if(o===P)return P;else if(o===B)t.key=null;let a=await le("value",t.value,s,n);if(a===P)return P;else if(a===B)t.value=null}}return r}function Qs(e){if(typeof e==="object"&&(e.Collection||e.Node||e.Value))return Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e);return e}function Ws(e,t,s,n){if(typeof s==="function")return s(e,t,n);if(I.isMap(t))return s.Map?.(e,t,n);if(I.isSeq(t))return s.Seq?.(e,t,n);if(I.isPair(t))return s.Pair?.(e,t,n);if(I.isScalar(t))return s.Scalar?.(e,t,n);if(I.isAlias(t))return s.Alias?.(e,t,n);return}function Gs(e,t,s){let n=t[t.length-1];if(I.isCollection(n))n.items[e]=s;else if(I.isPair(n))if(e==="key")n.key=s;else n.value=s;else if(I.isDocument(n))n.contents=s;else{let r=I.isAlias(n)?"alias":"scalar";throw Error(`Cannot replace node with ${r} parent`)}}Xr.visit=Ue;Xr.visitAsync=Ye});var Pt=i(function(io){var Hs=O(),eo=be(),to={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},so=(e)=>e.replace(/[!,[\]{}]/g,(t)=>to[t]);class _{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},_.defaultYaml,e),this.tags=Object.assign({},_.defaultTags,t)}clone(){let e=new _(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new _(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:_.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},_.defaultTags);break}return e}add(e,t){if(this.atNextDocument)this.yaml={explicit:_.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},_.defaultTags),this.atNextDocument=!1;let s=e.trim().split(/[ \t]+/),n=s.shift();switch(n){case"%TAG":{if(s.length!==2){if(t(0,"%TAG directive should contain exactly two parts"),s.length<2)return!1}let[r,o]=s;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=s;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;else{let o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${n}`,!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);if(o==="!"||o==="!!")return t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null;if(e[e.length-1]!==">")t("Verbatim tags must end with a >");return o}let[,s,n]=e.match(/^(.*!)([^!]*)$/s);if(!n)t(`The ${e} tag has no suffix`);let r=this.tags[s];if(r)try{return r+decodeURIComponent(n)}catch(o){return t(String(o)),null}if(s==="!")return e;return t(`Could not resolve tag: ${e}`),null}tagString(e){for(let[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+so(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags),n;if(e&&s.length>0&&Hs.isNode(e.contents)){let r={};eo.visit(e.contents,(o,a)=>{if(Hs.isNode(a)&&a.tag)r[a.tag]=!0}),n=Object.keys(r)}else n=[];for(let[r,o]of s){if(r==="!!"&&o==="tag:yaml.org,2002:")continue;if(!e||n.some((a)=>a.startsWith(o)))t.push(`%TAG ${r} ${o}`)}return t.join(`
2
+ `)}}_.defaultYaml={explicit:!1,version:"1.2"};_.defaultTags={"!!":"tag:yaml.org,2002:"};io.Directives=_});var Ve=i(function(lo){var Xs=O(),ro=be();function oo(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let s=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(s)}return!0}function zs(e){let t=new Set;return ro.visit(e,{Value(s,n){if(n.anchor)t.add(n.anchor)}}),t}function Zs(e,t){for(let s=1;;++s){let n=`${e}${s}`;if(!t.has(n))return n}}function ao(e,t){let s=[],n=new Map,r=null;return{onAnchor:(o)=>{s.push(o),r??(r=zs(e));let a=Zs(t,r);return r.add(a),a},setAnchors:()=>{for(let o of s){let a=n.get(o);if(typeof a==="object"&&a.anchor&&(Xs.isScalar(a.node)||Xs.isCollection(a.node)))a.node.anchor=a.anchor;else{let l=Error("Failed to resolve repeated object (this should not happen)");throw l.source=o,l}}},sourceObjects:n}}lo.anchorIsValid=oo;lo.anchorNames=zs;lo.createNodeAnchors=ao;lo.findNewAnchor=Zs});var _t=i(function(po){function Se(e,t,s,n){if(n&&typeof n==="object")if(Array.isArray(n))for(let r=0,o=n.length;r<o;++r){let a=n[r],l=Se(e,n,String(r),a);if(l===void 0)delete n[r];else if(l!==a)n[r]=l}else if(n instanceof Map)for(let r of Array.from(n.keys())){let o=n.get(r),a=Se(e,n,r,o);if(a===void 0)n.delete(r);else if(a!==o)n.set(r,a)}else if(n instanceof Set)for(let r of Array.from(n)){let o=Se(e,n,r,r);if(o===void 0)n.delete(r);else if(o!==r)n.delete(r),n.add(o)}else for(let[r,o]of Object.entries(n)){let a=Se(e,n,r,o);if(a===void 0)delete n[r];else if(a!==o)n[r]=a}return e.call(t,s,n)}po.applyReviver=Se});var U=i(function(yo){var go=O();function ei(e,t,s){if(Array.isArray(e))return e.map((n,r)=>ei(n,String(r),s));if(e&&typeof e.toJSON==="function"){if(!s||!go.hasAnchor(e))return e.toJSON(t,s);let n={aliasCount:0,count:1,res:void 0};s.anchors.set(e,n),s.onCreate=(o)=>{n.res=o,delete s.onCreate};let r=e.toJSON(t,s);if(s.onCreate)s.onCreate(r);return r}if(typeof e==="bigint"&&!s?.keep)return Number(e);return e}yo.toJS=ei});var Je=i(function(vo){var So=_t(),ti=O(),wo=U();class si{constructor(e){Object.defineProperty(this,ti.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)e.range=this.range.slice();return e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:n,reviver:r}={}){if(!ti.isDocument(e))throw TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s==="number"?s:100},a=wo.toJS(this,"",o);if(typeof n==="function")for(let{count:l,res:f}of o.anchors.values())n(f,l);return typeof r==="function"?So.applyReviver(r,{"":a},"",a):a}}vo.NodeBase=si});var we=i(function(Lo){var No=Ve(),Ao=be(),ce=O(),qo=Je(),Oo=U();class ii extends qo.NodeBase{constructor(e){super(ce.ALIAS);this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");let s;if(t?.aliasResolveCache)s=t.aliasResolveCache;else if(s=[],Ao.visit(e,{Node:(r,o)=>{if(ce.isAlias(o)||ce.hasAnchor(o))s.push(o)}}),t)t.aliasResolveCache=s;let n=void 0;for(let r of s){if(r===this)break;if(r.anchor===this.source)n=r}if(n&&t){let{anchors:r,doc:o,maxAliasCount:a}=t,l=r.get(n);if(!l)Oo.toJS(n,null,t),l=r.get(n);if(l?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(a>=0){if(l.count+=1,l.aliasCount===0)l.aliasCount=Qe(o,n,r);if(l.count*l.aliasCount>a)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}}return n}toJSON(e,t){if(!t)return{source:this.source};let s=this.resolve(t.doc,t);if(!s){let n=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(n)}return t.anchors.get(s).res}toString(e,t,s){let n=`*${this.source}`;if(e){if(No.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 Error(r)}if(e.implicitKey)return`${n} `}return n}}function Qe(e,t,s){if(ce.isAlias(t)){let n=t.resolve(e),r=s&&n&&s.get(n);return r?r.count*r.aliasCount:0}else if(ce.isCollection(t)){let n=0;for(let r of t.items){let o=Qe(e,r,s);if(o>n)n=o}return n}else if(ce.isPair(t)){let n=Qe(e,t.key,s),r=Qe(e,t.value,s);return Math.max(n,r)}return 1}Lo.Alias=ii});var E=i(function(_o){var Co=O(),To=Je(),Io=U(),Po=(e)=>!e||typeof e!=="function"&&typeof e!=="object";class Z extends To.NodeBase{constructor(e){super(Co.SCALAR);this.value=e}toJSON(e,t){return t?.keep?this.value:Io.toJS(this.value,e,t)}toString(){return String(this.value)}}Z.BLOCK_FOLDED="BLOCK_FOLDED";Z.BLOCK_LITERAL="BLOCK_LITERAL";Z.PLAIN="PLAIN";Z.QUOTE_DOUBLE="QUOTE_DOUBLE";Z.QUOTE_SINGLE="QUOTE_SINGLE";_o.Scalar=Z;_o.isScalarValue=Po});var ve=i(function(jo){var Do=we(),ee=O(),ni=E(),xo="tag:yaml.org,2002:";function Bo(e,t,s){if(t){let n=s.filter((o)=>o.tag===t),r=n.find((o)=>!o.format)??n[0];if(!r)throw Error(`Tag ${t} not found`);return r}return s.find((n)=>n.identify?.(e)&&!n.format)}function Ko(e,t,s){if(ee.isDocument(e))e=e.contents;if(ee.isNode(e))return e;if(ee.isPair(e)){let h=s.schema[ee.MAP].createNode?.(s.schema,null,s);return h.items.push(e),h}if(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)e=e.valueOf();let{aliasDuplicateObjects:n,onAnchor:r,onTagObj:o,schema:a,sourceObjects:l}=s,f=void 0;if(n&&e&&typeof e==="object")if(f=l.get(e),f)return f.anchor??(f.anchor=r(e)),new Do.Alias(f.anchor);else f={anchor:null,node:null},l.set(e,f);if(t?.startsWith("!!"))t=xo+t.slice(2);let u=Bo(e,t,a.tags);if(!u){if(e&&typeof e.toJSON==="function")e=e.toJSON();if(!e||typeof e!=="object"){let h=new ni.Scalar(e);if(f)f.node=h;return h}u=e instanceof Map?a[ee.MAP]:(Symbol.iterator in Object(e))?a[ee.SEQ]:a[ee.MAP]}if(o)o(u),delete s.onTagObj;let m=u?.createNode?u.createNode(s.schema,e,s):typeof u?.nodeClass?.from==="function"?u.nodeClass.from(s.schema,e,s):new ni.Scalar(e);if(t)m.tag=t;else if(!u.default)m.tag=u.tag;if(f)f.node=m;return m}jo.createNode=Ko});var We=i(function(Yo){var Ro=ve(),K=O(),Uo=Je();function Mt(e,t,s){let n=s;for(let r=t.length-1;r>=0;--r){let o=t[r];if(typeof o==="number"&&Number.isInteger(o)&&o>=0){let a=[];a[o]=n,n=a}else n=new Map([[o,n]])}return Ro.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var ri=(e)=>e==null||typeof e==="object"&&!!e[Symbol.iterator]().next().done;class oi extends Uo.NodeBase{constructor(e,t){super(e);Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(e)t.schema=e;if(t.items=t.items.map((s)=>K.isNode(s)||K.isPair(s)?s.clone(e):s),this.range)t.range=this.range.slice();return t}addIn(e,t){if(ri(e))this.add(t);else{let[s,...n]=e,r=this.get(s,!0);if(K.isCollection(r))r.addIn(n,t);else if(r===void 0&&this.schema)this.set(s,Mt(this.schema,n,t));else throw Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}deleteIn(e){let[t,...s]=e;if(s.length===0)return this.delete(t);let n=this.get(t,!0);if(K.isCollection(n))return n.deleteIn(s);else throw Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){let[s,...n]=e,r=this.get(s,!0);if(n.length===0)return!t&&K.isScalar(r)?r.value:r;else return K.isCollection(r)?r.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every((t)=>{if(!K.isPair(t))return!1;let s=t.value;return s==null||e&&K.isScalar(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){let[t,...s]=e;if(s.length===0)return this.has(t);let n=this.get(t,!0);return K.isCollection(n)?n.hasIn(s):!1}setIn(e,t){let[s,...n]=e;if(n.length===0)this.set(s,t);else{let r=this.get(s,!0);if(K.isCollection(r))r.setIn(n,t);else if(r===void 0&&this.schema)this.set(s,Mt(this.schema,n,t));else throw Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}}Yo.Collection=oi;Yo.collectionFromPath=Mt;Yo.isEmptyPath=ri});var ke=i(function(Ho){var Wo=(e)=>e.replace(/^(?!$)(?: $)?/gm,"#");function $t(e,t){if(/^\n+$/.test(e))return e.substring(1);return t?e.replace(/^(?! *$)/gm,t):e}var Go=(e,t,s)=>e.endsWith(`
3
+ `)?$t(s,t):s.includes(`
4
+ `)?`
5
+ `+$t(s,t):(e.endsWith(" ")?"":" ")+s;Ho.indentComment=$t;Ho.lineComment=Go;Ho.stringifyComment=Wo});var li=i(function(ta){function ea(e,t,s="flow",{indentAtStart:n,lineWidth:r=80,minContentWidth:o=20,onFold:a,onOverflow:l}={}){if(!r||r<0)return e;if(r<o)o=0;let f=Math.max(1+o,1+r-t.length);if(e.length<=f)return e;let u=[],m={},h=r-t.length;if(typeof n==="number")if(n>r-Math.max(2,o))u.push(0);else h=r-n;let d=void 0,y=void 0,b=!1,p=-1,g=-1,w=-1;if(s==="block"){if(p=ai(e,p,t.length),p!==-1)h=p+f}for(let k;k=e[p+=1];){if(s==="quoted"&&k==="\\"){switch(g=p,e[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}w=p}if(k===`
6
+ `){if(s==="block")p=ai(e,p,t.length);h=p+t.length+f,d=void 0}else{if(k===" "&&y&&y!==" "&&y!==`
7
+ `&&y!=="\t"){let N=e[p+1];if(N&&N!==" "&&N!==`
8
+ `&&N!=="\t")d=p}if(p>=h)if(d)u.push(d),h=d+f,d=void 0;else if(s==="quoted"){while(y===" "||y==="\t")y=k,k=e[p+=1],b=!0;let N=p>w+1?p-2:g-1;if(m[N])return e;u.push(N),m[N]=!0,h=N+f,d=void 0}else b=!0}y=k}if(b&&l)l();if(u.length===0)return e;if(a)a();let v=e.slice(0,u[0]);for(let k=0;k<u.length;++k){let N=u[k],A=u[k+1]||e.length;if(N===0)v=`
9
+ ${t}${e.slice(0,A)}`;else{if(s==="quoted"&&m[N])v+=`${e[N]}\\`;v+=`
10
+ ${t}${e.slice(N+1,A)}`}}return v}function ai(e,t,s){let n=t,r=t+1,o=e[r];while(o===" "||o==="\t")if(t<r+s)o=e[++t];else{do o=e[++t];while(o&&o!==`
11
+ `);n=t,r=t+1,o=e[r]}return n}ta.FOLD_BLOCK="block";ta.FOLD_FLOW="flow";ta.FOLD_QUOTED="quoted";ta.foldFlowLines=ea});var Ae=i(function(ca){var D=E(),Y=li(),He=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Xe=(e)=>/^(%|---|\.\.\.)/m.test(e);function oa(e,t,s){if(!t||t<0)return!1;let n=t-s,r=e.length;if(r<=n)return!1;for(let o=0,a=0;o<r;++o)if(e[o]===`
12
+ `){if(o-a>n)return!0;if(a=o+1,r-a<=n)return!1}return!0}function Ne(e,t){let s=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return s;let{implicitKey:n}=t,r=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Xe(e)?" ":""),a="",l=0;for(let f=0,u=s[f];u;u=s[++f]){if(u===" "&&s[f+1]==="\\"&&s[f+2]==="n")a+=s.slice(l,f)+"\\ ",f+=1,l=f,u="\\";if(u==="\\")switch(s[f+1]){case"u":{a+=s.slice(l,f);let m=s.substr(f+2,4);switch(m){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:if(m.substr(0,2)==="00")a+="\\x"+m.substr(2);else a+=s.substr(f,6)}f+=5,l=f+1}break;case"n":if(n||s[f+2]==='"'||s.length<r)f+=1;else{a+=s.slice(l,f)+`
13
+
14
+ `;while(s[f+2]==="\\"&&s[f+3]==="n"&&s[f+4]!=='"')a+=`
15
+ `,f+=2;if(a+=o,s[f+2]===" ")a+="\\";f+=1,l=f+1}break;default:f+=1}}return a=l?a+s.slice(l):s,n?a:Y.foldFlowLines(a,o,Y.FOLD_QUOTED,He(t,!1))}function Dt(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
16
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Ne(e,t);let s=t.indent||(Xe(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
17
+ ${s}`)+"'";return t.implicitKey?n:Y.foldFlowLines(n,s,Y.FOLD_FLOW,He(t,!1))}function fe(e,t){let{singleQuote:s}=t.options,n;if(s===!1)n=Ne;else{let r=e.includes('"'),o=e.includes("'");if(r&&!o)n=Dt;else if(o&&!r)n=Ne;else n=s?Dt:Ne}return n(e,t)}var xt;try{xt=new RegExp(`(^|(?<!
18
+ ))
19
+ +(?!
20
+ |$)`,"g")}catch{xt=/\n+(?!\n|$)/g}function Ge({comment:e,type:t,value:s},n,r,o){let{blockQuote:a,commentString:l,lineWidth:f}=n.options;if(!a||/\n[\t ]+$/.test(s))return fe(s,n);let u=n.indent||(n.forceBlockIndent||Xe(s)?" ":""),m=a==="literal"?!0:a==="folded"||t===D.Scalar.BLOCK_FOLDED?!1:t===D.Scalar.BLOCK_LITERAL?!0:!oa(s,f,u.length);if(!s)return m?`|
21
+ `:`>
22
+ `;let h,d;for(d=s.length;d>0;--d){let A=s[d-1];if(A!==`
23
+ `&&A!=="\t"&&A!==" ")break}let y=s.substring(d),b=y.indexOf(`
24
+ `);if(b===-1)h="-";else if(s===y||b!==y.length-1){if(h="+",o)o()}else h="";if(y){if(s=s.slice(0,-y.length),y[y.length-1]===`
25
+ `)y=y.slice(0,-1);y=y.replace(xt,`$&${u}`)}let p=!1,g,w=-1;for(g=0;g<s.length;++g){let A=s[g];if(A===" ")p=!0;else if(A===`
26
+ `)w=g;else break}let v=s.substring(0,w<g?w+1:g);if(v)s=s.substring(v.length),v=v.replace(/\n+/g,`$&${u}`);let N=(p?u?"2":"1":"")+h;if(e){if(N+=" "+l(e.replace(/ ?[\r\n]+/g," ")),r)r()}if(!m){let A=s.replace(/\n+/g,`
27
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`),q=!1,L=He(n,!0);if(a!=="folded"&&t!==D.Scalar.BLOCK_FOLDED)L.onOverflow=()=>{q=!0};let S=Y.foldFlowLines(`${v}${A}${y}`,u,Y.FOLD_BLOCK,L);if(!q)return`>${N}
28
+ ${u}${S}`}return s=s.replace(/\n+/g,`$&${u}`),`|${N}
29
+ ${u}${v}${s}${y}`}function aa(e,t,s,n){let{type:r,value:o}=e,{actualString:a,implicitKey:l,indent:f,indentStep:u,inFlow:m}=t;if(l&&o.includes(`
30
+ `)||m&&/[[\]{},]/.test(o))return fe(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return l||m||!o.includes(`
31
+ `)?fe(o,t):Ge(e,t,s,n);if(!l&&!m&&r!==D.Scalar.PLAIN&&o.includes(`
32
+ `))return Ge(e,t,s,n);if(Xe(o)){if(f==="")return t.forceBlockIndent=!0,Ge(e,t,s,n);else if(l&&f===u)return fe(o,t)}let h=o.replace(/\n+/g,`$&
33
+ ${f}`);if(a){let d=(p)=>p.default&&p.tag!=="tag:yaml.org,2002:str"&&p.test?.test(h),{compat:y,tags:b}=t.doc.schema;if(b.some(d)||y?.some(d))return fe(o,t)}return l?h:Y.foldFlowLines(h,f,Y.FOLD_FLOW,He(t,!1))}function la(e,t,s,n){let{implicitKey:r,inFlow:o}=t,a=typeof e.value==="string"?e:Object.assign({},e,{value:String(e.value)}),{type:l}=e;if(l!==D.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value))l=D.Scalar.QUOTE_DOUBLE}let f=(m)=>{switch(m){case D.Scalar.BLOCK_FOLDED:case D.Scalar.BLOCK_LITERAL:return r||o?fe(a.value,t):Ge(a,t,s,n);case D.Scalar.QUOTE_DOUBLE:return Ne(a.value,t);case D.Scalar.QUOTE_SINGLE:return Dt(a.value,t);case D.Scalar.PLAIN:return aa(a,t,s,n);default:return null}},u=f(l);if(u===null){let{defaultKeyType:m,defaultStringType:h}=t.options,d=r&&m||h;if(u=f(d),u===null)throw Error(`Unsupported default string type ${d}`)}return u}ca.stringifyString=la});var qe=i(function(ba){var ua=Ve(),V=O(),ha=ke(),da=Ae();function pa(e,t){let s=Object.assign({blockQuote:!0,commentString:ha.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),n;switch(s.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent==="number"?" ".repeat(s.indent):" ",inFlow:n,options:s}}function ma(e,t){if(t.tag){let r=e.filter((o)=>o.tag===t.tag);if(r.length>0)return r.find((o)=>o.format===t.format)??r[0]}let s=void 0,n;if(V.isScalar(t)){n=t.value;let r=e.filter((o)=>o.identify?.(n));if(r.length>1){let o=r.filter((a)=>a.test);if(o.length>0)r=o}s=r.find((o)=>o.format===t.format)??r.find((o)=>!o.format)}else n=t,s=e.find((r)=>r.nodeClass&&n instanceof r.nodeClass);if(!s){let r=n?.constructor?.name??(n===null?"null":typeof n);throw Error(`Tag not resolved for ${r} value`)}return s}function ga(e,t,{anchors:s,doc:n}){if(!n.directives)return"";let r=[],o=(V.isScalar(e)||V.isCollection(e))&&e.anchor;if(o&&ua.anchorIsValid(o))s.add(o),r.push(`&${o}`);let a=e.tag??(t.default?null:t.tag);if(a)r.push(n.directives.tagString(a));return r.join(" ")}function ya(e,t,s,n){if(V.isPair(e))return e.toString(t,s,n);if(V.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(t.resolvedAliases)t.resolvedAliases.add(e);else t.resolvedAliases=new Set([e]);e=e.resolve(t.doc)}}let r=void 0,o=V.isNode(e)?e:t.doc.createNode(e,{onTagObj:(f)=>r=f});r??(r=ma(t.doc.schema.tags,o));let a=ga(o,r,t);if(a.length>0)t.indentAtStart=(t.indentAtStart??0)+a.length+1;let l=typeof r.stringify==="function"?r.stringify(o,t,s,n):V.isScalar(o)?da.stringifyString(o,t,s,n):o.toString(t,s,n);if(!a)return l;return V.isScalar(o)||l[0]==="{"||l[0]==="["?`${a} ${l}`:`${a}
34
+ ${t.indent}${l}`}ba.createStringifyContext=pa;ba.stringify=ya});var ui=i(function(ka){var F=O(),ci=E(),fi=qe(),Oe=ke();function va({key:e,value:t},s,n,r){let{allNullValues:o,doc:a,indent:l,indentStep:f,options:{commentString:u,indentSeq:m,simpleKeys:h}}=s,d=F.isNode(e)&&e.comment||null;if(h){if(d)throw Error("With simple keys, key nodes cannot have comments");if(F.isCollection(e)||!F.isNode(e)&&typeof e==="object")throw Error("With simple keys, collection cannot be used as a key value")}let y=!h&&(!e||d&&t==null&&!s.inFlow||F.isCollection(e)||(F.isScalar(e)?e.type===ci.Scalar.BLOCK_FOLDED||e.type===ci.Scalar.BLOCK_LITERAL:typeof e==="object"));s=Object.assign({},s,{allNullValues:!1,implicitKey:!y&&(h||!o),indent:l+f});let b=!1,p=!1,g=fi.stringify(e,s,()=>b=!0,()=>p=!0);if(!y&&!s.inFlow&&g.length>1024){if(h)throw Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(s.inFlow){if(o||t==null){if(b&&n)n();return g===""?"?":y?`? ${g}`:g}}else if(o&&!h||t==null&&y){if(g=`? ${g}`,d&&!b)g+=Oe.lineComment(g,s.indent,u(d));else if(p&&r)r();return g}if(b)d=null;if(y){if(d)g+=Oe.lineComment(g,s.indent,u(d));g=`? ${g}
35
+ ${l}:`}else if(g=`${g}:`,d)g+=Oe.lineComment(g,s.indent,u(d));let w,v,k;if(F.isNode(t))w=!!t.spaceBefore,v=t.commentBefore,k=t.comment;else if(w=!1,v=null,k=null,t&&typeof t==="object")t=a.createNode(t);if(s.implicitKey=!1,!y&&!d&&F.isScalar(t))s.indentAtStart=g.length+1;if(p=!1,!m&&f.length>=2&&!s.inFlow&&!y&&F.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor)s.indent=s.indent.substring(2);let N=!1,A=fi.stringify(t,s,()=>N=!0,()=>p=!0),q=" ";if(d||w||v){if(q=w?`
36
+ `:"",v){let L=u(v);q+=`
37
+ ${Oe.indentComment(L,s.indent)}`}if(A===""&&!s.inFlow){if(q===`
38
+ `&&k)q=`
39
+
40
+ `}else q+=`
41
+ ${s.indent}`}else if(!y&&F.isCollection(t)){let L=A[0],S=A.indexOf(`
42
+ `),C=S!==-1,R=s.inFlow??t.flow??t.items.length===0;if(C||!R){let oe=!1;if(C&&(L==="&"||L==="!")){let T=A.indexOf(" ");if(L==="&"&&T!==-1&&T<S&&A[T+1]==="!")T=A.indexOf(" ",T+1);if(T===-1||S<T)oe=!0}if(!oe)q=`
43
+ ${s.indent}`}}else if(A===""||A[0]===`
44
+ `)q="";if(g+=q+A,s.inFlow){if(N&&n)n()}else if(k&&!N)g+=Oe.lineComment(g,s.indent,u(k));else if(p&&r)r();return g}ka.stringifyPair=va});var Bt=i(function(Oa){var hi=c("process");function Aa(e,...t){if(e==="debug")console.log(...t)}function qa(e,t){if(e==="debug"||e==="warn")if(typeof hi.emitWarning==="function")hi.emitWarning(t);else console.warn(t)}Oa.debug=Aa;Oa.warn=qa});var tt=i(function(Ta){var et=O(),di=E(),ze="<<",Ze={identify:(e)=>e===ze||typeof e==="symbol"&&e.description===ze,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new di.Scalar(Symbol(ze)),{addToJSMap:pi}),stringify:()=>ze},Ca=(e,t)=>(Ze.identify(t)||et.isScalar(t)&&(!t.type||t.type===di.Scalar.PLAIN)&&Ze.identify(t.value))&&e?.doc.schema.tags.some((s)=>s.tag===Ze.tag&&s.default);function pi(e,t,s){let n=mi(e,s);if(et.isSeq(n))for(let r of n.items)Kt(e,t,r);else if(Array.isArray(n))for(let r of n)Kt(e,t,r);else Kt(e,t,n)}function Kt(e,t,s){let n=mi(e,s);if(!et.isMap(n))throw Error("Merge sources must be maps or map aliases");let r=n.toJSON(null,e,Map);for(let[o,a]of r)if(t instanceof Map){if(!t.has(o))t.set(o,a)}else if(t instanceof Set)t.add(o);else if(!Object.prototype.hasOwnProperty.call(t,o))Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function mi(e,t){return e&&et.isAlias(t)?t.resolve(e.doc,e):t}Ta.addMergeToJSMap=pi;Ta.isMergeKey=Ca;Ta.merge=Ze});var Ft=i(function(Ba){var Ma=Bt(),gi=tt(),$a=qe(),yi=O(),jt=U();function Da(e,t,{key:s,value:n}){if(yi.isNode(s)&&s.addToJSMap)s.addToJSMap(e,t,n);else if(gi.isMergeKey(e,s))gi.addMergeToJSMap(e,t,n);else{let r=jt.toJS(s,"",e);if(t instanceof Map)t.set(r,jt.toJS(n,r,e));else if(t instanceof Set)t.add(r);else{let o=xa(s,r,e),a=jt.toJS(n,o,e);if(o in t)Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0});else t[o]=a}}return t}function xa(e,t,s){if(t===null)return"";if(typeof t!=="object")return String(t);if(yi.isNode(e)&&s?.doc){let n=$a.createStringifyContext(s.doc,{});n.anchors=new Set;for(let o of s.anchors.keys())n.anchors.add(o.anchor);n.inFlow=!0,n.inStringifyKey=!0;let r=e.toString(n);if(!s.mapKeyWarned){let o=JSON.stringify(r);if(o.length>40)o=o.substring(0,36)+'..."';Ma.warn(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0}return r}return JSON.stringify(t)}Ba.addPairToJSMap=Da});var J=i(function(Ua){var bi=ve(),ja=ui(),Fa=Ft(),st=O();function Ra(e,t,s){let n=bi.createNode(e,void 0,s),r=bi.createNode(t,void 0,s);return new it(n,r)}class it{constructor(e,t=null){Object.defineProperty(this,st.NODE_TYPE,{value:st.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;if(st.isNode(t))t=t.clone(e);if(st.isNode(s))s=s.clone(e);return new it(t,s)}toJSON(e,t){let s=t?.mapAsMap?new Map:{};return Fa.addPairToJSMap(t,s,this)}toString(e,t,s){return e?.doc?ja.stringifyPair(this,e,t,s):JSON.stringify(this)}}Ua.Pair=it;Ua.createPair=Ra});var Rt=i(function(Ga){var te=O(),Si=qe(),nt=ke();function Ja(e,t,s){return(t.inFlow??e.flow?Wa:Qa)(e,t,s)}function Qa({comment:e,items:t},s,{blockItemPrefix:n,flowChars:r,itemIndent:o,onChompKeep:a,onComment:l}){let{indent:f,options:{commentString:u}}=s,m=Object.assign({},s,{indent:o,type:null}),h=!1,d=[];for(let b=0;b<t.length;++b){let p=t[b],g=null;if(te.isNode(p)){if(!h&&p.spaceBefore)d.push("");if(rt(s,d,p.commentBefore,h),p.comment)g=p.comment}else if(te.isPair(p)){let v=te.isNode(p.key)?p.key:null;if(v){if(!h&&v.spaceBefore)d.push("");rt(s,d,v.commentBefore,h)}}h=!1;let w=Si.stringify(p,m,()=>g=null,()=>h=!0);if(g)w+=nt.lineComment(w,o,u(g));if(h&&g)h=!1;d.push(n+w)}let y;if(d.length===0)y=r.start+r.end;else{y=d[0];for(let b=1;b<d.length;++b){let p=d[b];y+=p?`
45
+ ${f}${p}`:`
46
+ `}}if(e){if(y+=`
47
+ `+nt.indentComment(u(e),f),l)l()}else if(h&&a)a();return y}function Wa({items:e},t,{flowChars:s,itemIndent:n}){let{indent:r,indentStep:o,flowCollectionPadding:a,options:{commentString:l}}=t;n+=o;let f=Object.assign({},t,{indent:n,inFlow:!0,type:null}),u=!1,m=0,h=[];for(let b=0;b<e.length;++b){let p=e[b],g=null;if(te.isNode(p)){if(p.spaceBefore)h.push("");if(rt(t,h,p.commentBefore,!1),p.comment)g=p.comment}else if(te.isPair(p)){let v=te.isNode(p.key)?p.key:null;if(v){if(v.spaceBefore)h.push("");if(rt(t,h,v.commentBefore,!1),v.comment)u=!0}let k=te.isNode(p.value)?p.value:null;if(k){if(k.comment)g=k.comment;if(k.commentBefore)u=!0}else if(p.value==null&&v?.comment)g=v.comment}if(g)u=!0;let w=Si.stringify(p,f,()=>g=null);if(u||(u=h.length>m||w.includes(`
48
+ `)),b<e.length-1)w+=",";else if(t.options.trailingComma){if(t.options.lineWidth>0)u||(u=h.reduce((v,k)=>v+k.length+2,2)+(w.length+2)>t.options.lineWidth);if(u)w+=","}if(g)w+=nt.lineComment(w,n,l(g));h.push(w),m=h.length}let{start:d,end:y}=s;if(h.length===0)return d+y;else{if(!u){let b=h.reduce((p,g)=>p+g.length+2,2);u=t.options.lineWidth>0&&b>t.options.lineWidth}if(u){let b=d;for(let p of h)b+=p?`
49
+ ${o}${r}${p}`:`
50
+ `;return`${b}
51
+ ${r}${y}`}else return`${d}${a}${h.join(" ")}${a}${y}`}}function rt({indent:e,options:{commentString:t}},s,n,r){if(n&&r)n=n.replace(/^\n+/,"");if(n){let o=nt.indentComment(t(n),e);s.push(o.trimStart())}}Ga.stringifyCollection=Ja});var W=i(function(tl){var Xa=Rt(),za=Ft(),Za=We(),Q=O(),ot=J(),el=E();function Le(e,t){let s=Q.isScalar(t)?t.value:t;for(let n of e)if(Q.isPair(n)){if(n.key===t||n.key===s)return n;if(Q.isScalar(n.key)&&n.key.value===s)return n}return}class wi extends Za.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Q.MAP,e);this.items=[]}static from(e,t,s){let{keepUndefined:n,replacer:r}=s,o=new this(e),a=(l,f)=>{if(typeof r==="function")f=r.call(t,l,f);else if(Array.isArray(r)&&!r.includes(l))return;if(f!==void 0||n)o.items.push(ot.createPair(l,f,s))};if(t instanceof Map)for(let[l,f]of t)a(l,f);else if(t&&typeof t==="object")for(let l of Object.keys(t))a(l,t[l]);if(typeof e.sortMapEntries==="function")o.items.sort(e.sortMapEntries);return o}add(e,t){let s;if(Q.isPair(e))s=e;else if(!e||typeof e!=="object"||!("key"in e))s=new ot.Pair(e,e?.value);else s=new ot.Pair(e.key,e.value);let n=Le(this.items,s.key),r=this.schema?.sortMapEntries;if(n){if(!t)throw Error(`Key ${s.key} already set`);if(Q.isScalar(n.value)&&el.isScalarValue(s.value))n.value.value=s.value;else n.value=s.value}else if(r){let o=this.items.findIndex((a)=>r(s,a)<0);if(o===-1)this.items.push(s);else this.items.splice(o,0,s)}else this.items.push(s)}delete(e){let t=Le(this.items,e);if(!t)return!1;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=Le(this.items,e)?.value;return(!t&&Q.isScalar(n)?n.value:n)??void 0}has(e){return!!Le(this.items,e)}set(e,t){this.add(new ot.Pair(e,t),!0)}toJSON(e,t,s){let n=s?new s:t?.mapAsMap?new Map:{};if(t?.onCreate)t.onCreate(n);for(let r of this.items)za.addPairToJSMap(t,n,r);return n}toString(e,t,s){if(!e)return JSON.stringify(this);for(let n of this.items)if(!Q.isPair(n))throw Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);if(!e.allNullValues&&this.hasAllNullValues(!1))e=Object.assign({},e,{allNullValues:!0});return Xa.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}tl.YAMLMap=wi;tl.findPair=Le});var ue=i(function(ol){var nl=O(),vi=W(),rl={collection:"map",default:!0,nodeClass:vi.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){if(!nl.isMap(e))t("Expected a mapping for this tag");return e},createNode:(e,t,s)=>vi.YAMLMap.from(e,t,s)};ol.map=rl});var G=i(function(dl){var ll=ve(),cl=Rt(),fl=We(),lt=O(),ul=E(),hl=U();class ki extends fl.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(lt.SEQ,e);this.items=[]}add(e){this.items.push(e)}delete(e){let t=at(e);if(typeof t!=="number")return!1;return this.items.splice(t,1).length>0}get(e,t){let s=at(e);if(typeof s!=="number")return;let n=this.items[s];return!t&&lt.isScalar(n)?n.value:n}has(e){let t=at(e);return typeof t==="number"&&t<this.items.length}set(e,t){let s=at(e);if(typeof s!=="number")throw Error(`Expected a valid index, not ${e}.`);let n=this.items[s];if(lt.isScalar(n)&&ul.isScalarValue(t))n.value=t;else this.items[s]=t}toJSON(e,t){let s=[];if(t?.onCreate)t.onCreate(s);let n=0;for(let r of this.items)s.push(hl.toJS(r,String(n++),t));return s}toString(e,t,s){if(!e)return JSON.stringify(this);return cl.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t})}static from(e,t,s){let{replacer:n}=s,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof n==="function"){let l=t instanceof Set?a:String(o++);a=n.call(t,l,a)}r.items.push(ll.createNode(a,void 0,s))}}return r}}function at(e){let t=lt.isScalar(e)?e.value:e;if(t&&typeof t==="string")t=Number(t);return typeof t==="number"&&Number.isInteger(t)&&t>=0?t:null}dl.YAMLSeq=ki});var he=i(function(yl){var ml=O(),Ni=G(),gl={collection:"seq",default:!0,nodeClass:Ni.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){if(!ml.isSeq(e))t("Expected a sequence for this tag");return e},createNode:(e,t,s)=>Ni.YAMLSeq.from(e,t,s)};yl.seq=gl});var Ee=i(function(vl){var Sl=Ae(),wl={identify:(e)=>typeof e==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(e)=>e,stringify(e,t,s,n){return t=Object.assign({actualString:!0},t),Sl.stringifyString(e,t,s,n)}};vl.string=wl});var ct=i(function(Nl){var Ai=E(),qi={identify:(e)=>e==null,createNode:()=>new Ai.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ai.Scalar(null),stringify:({source:e},t)=>typeof e==="string"&&qi.test.test(e)?e:t.options.nullStr};Nl.nullTag=qi});var Ut=i(function(Ol){var ql=E(),Oi={identify:(e)=>typeof e==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(e)=>new ql.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},s){if(e&&Oi.test.test(e)){let n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?s.options.trueStr:s.options.falseStr}};Ol.boolTag=Oi});var de=i(function(Cl){function El({format:e,minFractionDigits:t,tag:s,value:n}){if(typeof n==="bigint")return String(n);let r=typeof n==="number"?n:Number(n);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=Object.is(n,-0)?"-0":JSON.stringify(n);if(!e&&t&&(!s||s==="tag:yaml.org,2002:float")&&/^-?\d/.test(o)&&!o.includes("e")){let a=o.indexOf(".");if(a<0)a=o.length,o+=".";let l=t-(o.length-a-1);while(l-- >0)o+="0"}return o}Cl.stringifyNumber=El});var Vt=i(function($l){var Il=E(),Yt=de(),Pl={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(e)=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Yt.stringifyNumber},_l={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(e)=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Yt.stringifyNumber(e)}},Ml={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new Il.Scalar(parseFloat(e)),s=e.indexOf(".");if(s!==-1&&e[e.length-1]==="0")t.minFractionDigits=e.length-s-1;return t},stringify:Yt.stringifyNumber};$l.float=Ml;$l.floatExp=_l;$l.floatNaN=Pl});var Qt=i(function(Rl){var Li=de(),ft=(e)=>typeof e==="bigint"||Number.isInteger(e),Jt=(e,t,s,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),s);function Ei(e,t,s){let{value:n}=e;if(ft(n)&&n>=0)return s+n.toString(t);return Li.stringifyNumber(e)}var Kl={identify:(e)=>ft(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,s)=>Jt(e,2,8,s),stringify:(e)=>Ei(e,8,"0o")},jl={identify:ft,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,s)=>Jt(e,0,10,s),stringify:Li.stringifyNumber},Fl={identify:(e)=>ft(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,s)=>Jt(e,2,16,s),stringify:(e)=>Ei(e,16,"0x")};Rl.int=jl;Rl.intHex=Fl;Rl.intOct=Kl});var Ci=i(function(zl){var Jl=ue(),Ql=ct(),Wl=he(),Gl=Ee(),Hl=Ut(),Wt=Vt(),Gt=Qt(),Xl=[Jl.map,Wl.seq,Gl.string,Ql.nullTag,Hl.boolTag,Gt.intOct,Gt.int,Gt.intHex,Wt.floatNaN,Wt.floatExp,Wt.float];zl.schema=Xl});var Ii=i(function(oc){var ec=E(),tc=ue(),sc=he();function Ti(e){return typeof e==="bigint"||Number.isInteger(e)}var ut=({value:e})=>JSON.stringify(e),ic=[{identify:(e)=>typeof e==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(e)=>e,stringify:ut},{identify:(e)=>e==null,createNode:()=>new ec.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ut},{identify:(e)=>typeof e==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(e)=>e==="true",stringify:ut},{identify:Ti,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:s})=>s?BigInt(e):parseInt(e,10),stringify:({value:e})=>Ti(e)?e.toString():JSON.stringify(e)},{identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(e)=>parseFloat(e),stringify:ut}],nc={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},rc=[tc.map,sc.seq].concat(ic,nc);oc.schema=rc});var Xt=i(function(fc){var Ce=c("buffer"),Ht=E(),lc=Ae(),cc={identify:(e)=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Ce.Buffer==="function")return Ce.Buffer.from(e,"base64");else if(typeof atob==="function"){let s=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(s.length);for(let r=0;r<s.length;++r)n[r]=s.charCodeAt(r);return n}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:s},n,r,o){if(!s)return"";let a=s,l;if(typeof Ce.Buffer==="function")l=a instanceof Ce.Buffer?a.toString("base64"):Ce.Buffer.from(a.buffer).toString("base64");else if(typeof btoa==="function"){let f="";for(let u=0;u<a.length;++u)f+=String.fromCharCode(a[u]);l=btoa(f)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Ht.Scalar.BLOCK_LITERAL),t!==Ht.Scalar.QUOTE_DOUBLE){let f=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),u=Math.ceil(l.length/f),m=Array(u);for(let h=0,d=0;h<u;++h,d+=f)m[h]=l.substr(d,f);l=m.join(t===Ht.Scalar.BLOCK_LITERAL?`
52
+ `:" ")}return lc.stringifyString({comment:e,type:t,value:l},n,r,o)}};fc.binary=cc});var dt=i(function(mc){var ht=O(),zt=J(),hc=E(),dc=G();function Pi(e,t){if(ht.isSeq(e))for(let s=0;s<e.items.length;++s){let n=e.items[s];if(ht.isPair(n))continue;else if(ht.isMap(n)){if(n.items.length>1)t("Each pair must have its own sequence indicator");let r=n.items[0]||new zt.Pair(new hc.Scalar(null));if(n.commentBefore)r.key.commentBefore=r.key.commentBefore?`${n.commentBefore}
53
+ ${r.key.commentBefore}`:n.commentBefore;if(n.comment){let o=r.value??r.key;o.comment=o.comment?`${n.comment}
54
+ ${o.comment}`:n.comment}n=r}e.items[s]=ht.isPair(n)?n:new zt.Pair(n)}else t("Expected a sequence for this tag");return e}function _i(e,t,s){let{replacer:n}=s,r=new dc.YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let a of t){if(typeof n==="function")a=n.call(t,String(o++),a);let l,f;if(Array.isArray(a))if(a.length===2)l=a[0],f=a[1];else throw TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let u=Object.keys(a);if(u.length===1)l=u[0],f=a[l];else throw TypeError(`Expected tuple with one key, not ${u.length} keys`)}else l=a;r.items.push(zt.createPair(l,f,s))}return r}var pc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Pi,createNode:_i};mc.createPairs=_i;mc.pairs=pc;mc.resolvePairs=Pi});var es=i(function(vc){var Mi=O(),Zt=U(),Te=W(),Sc=G(),$i=dt();class se extends Sc.YAMLSeq{constructor(){super();this.add=Te.YAMLMap.prototype.add.bind(this),this.delete=Te.YAMLMap.prototype.delete.bind(this),this.get=Te.YAMLMap.prototype.get.bind(this),this.has=Te.YAMLMap.prototype.has.bind(this),this.set=Te.YAMLMap.prototype.set.bind(this),this.tag=se.tag}toJSON(e,t){if(!t)return super.toJSON(e);let s=new Map;if(t?.onCreate)t.onCreate(s);for(let n of this.items){let r,o;if(Mi.isPair(n))r=Zt.toJS(n.key,"",t),o=Zt.toJS(n.value,r,t);else r=Zt.toJS(n,"",t);if(s.has(r))throw Error("Ordered maps must not include duplicate keys");s.set(r,o)}return s}static from(e,t,s){let n=$i.createPairs(e,t,s),r=new this;return r.items=n.items,r}}se.tag="tag:yaml.org,2002:omap";var wc={collection:"seq",identify:(e)=>e instanceof Map,nodeClass:se,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let s=$i.resolvePairs(e,t),n=[];for(let{key:r}of s.items)if(Mi.isScalar(r))if(n.includes(r.value))t(`Ordered maps must not include duplicate keys: ${r.value}`);else n.push(r.value);return Object.assign(new se,s)},createNode:(e,t,s)=>se.from(e,t,s)};vc.YAMLOMap=se;vc.omap=wc});var ji=i(function(Ac){var Di=E();function xi({value:e,source:t},s){if(t&&(e?Bi:Ki).test.test(t))return t;return e?s.options.trueStr:s.options.falseStr}var Bi={identify:(e)=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Di.Scalar(!0),stringify:xi},Ki={identify:(e)=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Di.Scalar(!1),stringify:xi};Ac.falseTag=Ki;Ac.trueTag=Bi});var Fi=i(function(Ic){var Lc=E(),ts=de(),Ec={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(e)=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ts.stringifyNumber},Cc={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(e)=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():ts.stringifyNumber(e)}},Tc={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new Lc.Scalar(parseFloat(e.replace(/_/g,""))),s=e.indexOf(".");if(s!==-1){let n=e.substring(s+1).replace(/_/g,"");if(n[n.length-1]==="0")t.minFractionDigits=n.length}return t},stringify:ts.stringifyNumber};Ic.float=Tc;Ic.floatExp=Cc;Ic.floatNaN=Ec});var Ui=i(function(Kc){var Ri=de(),Ie=(e)=>typeof e==="bigint"||Number.isInteger(e);function pt(e,t,s,{intAsBigInt:n}){let r=e[0];if(r==="-"||r==="+")t+=1;if(e=e.substring(t).replace(/_/g,""),n){switch(s){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let a=BigInt(e);return r==="-"?BigInt(-1)*a:a}let o=parseInt(e,s);return r==="-"?-1*o:o}function ss(e,t,s){let{value:n}=e;if(Ie(n)){let r=n.toString(t);return n<0?"-"+s+r.substr(1):s+r}return Ri.stringifyNumber(e)}var $c={identify:Ie,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,s)=>pt(e,2,2,s),stringify:(e)=>ss(e,2,"0b")},Dc={identify:Ie,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,s)=>pt(e,1,8,s),stringify:(e)=>ss(e,8,"0")},xc={identify:Ie,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,s)=>pt(e,0,10,s),stringify:Ri.stringifyNumber},Bc={identify:Ie,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,s)=>pt(e,2,16,s),stringify:(e)=>ss(e,16,"0x")};Kc.int=xc;Kc.intBin=$c;Kc.intHex=Bc;Kc.intOct=Dc});var is=i(function(Vc){var yt=O(),mt=J(),gt=W();class ie extends gt.YAMLMap{constructor(e){super(e);this.tag=ie.tag}add(e){let t;if(yt.isPair(e))t=e;else if(e&&typeof e==="object"&&"key"in e&&"value"in e&&e.value===null)t=new mt.Pair(e.key,null);else t=new mt.Pair(e,null);if(!gt.findPair(this.items,t.key))this.items.push(t)}get(e,t){let s=gt.findPair(this.items,e);return!t&&yt.isPair(s)?yt.isScalar(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let s=gt.findPair(this.items,e);if(s&&!t)this.items.splice(this.items.indexOf(s),1);else if(!s&&t)this.items.push(new mt.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);else throw Error("Set items must all have null values")}static from(e,t,s){let{replacer:n}=s,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t){if(typeof n==="function")o=n.call(t,o,o);r.items.push(mt.createPair(o,null,s))}return r}}ie.tag="tag:yaml.org,2002:set";var Yc={collection:"map",identify:(e)=>e instanceof Set,nodeClass:ie,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,s)=>ie.from(e,t,s),resolve(e,t){if(yt.isMap(e))if(e.hasAllNullValues(!0))return Object.assign(new ie,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};Vc.YAMLSet=ie;Vc.set=Yc});var rs=i(function(Xc){var Wc=de();function ns(e,t){let s=e[0],n=s==="-"||s==="+"?e.substring(1):e,r=(a)=>t?BigInt(a):Number(a),o=n.replace(/_/g,"").split(":").reduce((a,l)=>a*r(60)+r(l),r(0));return s==="-"?r(-1)*o:o}function Yi(e){let{value:t}=e,s=(a)=>a;if(typeof t==="bigint")s=(a)=>BigInt(a);else if(isNaN(t)||!isFinite(t))return Wc.stringifyNumber(e);let n="";if(t<0)n="-",t*=s(-1);let r=s(60),o=[t%r];if(t<60)o.unshift(0);else if(t=(t-o[0])/r,o.unshift(t%r),t>=60)t=(t-o[0])/r,o.unshift(t);return n+o.map((a)=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Gc={identify:(e)=>typeof e==="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:s})=>ns(e,s),stringify:Yi},Hc={identify:(e)=>typeof e==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(e)=>ns(e,!1),stringify:Yi},Vi={identify:(e)=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(Vi.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,s,n,r,o,a,l]=t.map(Number),f=t[7]?Number((t[7]+"00").substr(1,3)):0,u=Date.UTC(s,n-1,r,o||0,a||0,l||0,f),m=t[8];if(m&&m!=="Z"){let h=ns(m,!1);if(Math.abs(h)<30)h*=60;u-=60000*h}return new Date(u)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Xc.floatTime=Hc;Xc.intTime=Gc;Xc.timestamp=Vi});var Qi=i(function(hf){var tf=ue(),sf=ct(),nf=he(),rf=Ee(),of=Xt(),Ji=ji(),os=Fi(),bt=Ui(),af=tt(),lf=es(),cf=dt(),ff=is(),as=rs(),uf=[tf.map,nf.seq,rf.string,sf.nullTag,Ji.trueTag,Ji.falseTag,bt.intBin,bt.intOct,bt.int,bt.intHex,os.floatNaN,os.floatExp,os.float,of.binary,af.merge,lf.omap,cf.pairs,ff.set,as.intTime,as.floatTime,as.timestamp];hf.schema=uf});var nn=i(function(vf){var Xi=ue(),pf=ct(),zi=he(),mf=Ee(),gf=Ut(),ls=Vt(),cs=Qt(),yf=Ci(),bf=Ii(),Zi=Xt(),Pe=tt(),en=es(),tn=dt(),Wi=Qi(),sn=is(),St=rs(),Gi=new Map([["core",yf.schema],["failsafe",[Xi.map,zi.seq,mf.string]],["json",bf.schema],["yaml11",Wi.schema],["yaml-1.1",Wi.schema]]),Hi={binary:Zi.binary,bool:gf.boolTag,float:ls.float,floatExp:ls.floatExp,floatNaN:ls.floatNaN,floatTime:St.floatTime,int:cs.int,intHex:cs.intHex,intOct:cs.intOct,intTime:St.intTime,map:Xi.map,merge:Pe.merge,null:pf.nullTag,omap:en.omap,pairs:tn.pairs,seq:zi.seq,set:sn.set,timestamp:St.timestamp},Sf={"tag:yaml.org,2002:binary":Zi.binary,"tag:yaml.org,2002:merge":Pe.merge,"tag:yaml.org,2002:omap":en.omap,"tag:yaml.org,2002:pairs":tn.pairs,"tag:yaml.org,2002:set":sn.set,"tag:yaml.org,2002:timestamp":St.timestamp};function wf(e,t,s){let n=Gi.get(t);if(n&&!e)return s&&!n.includes(Pe.merge)?n.concat(Pe.merge):n.slice();let r=n;if(!r)if(Array.isArray(e))r=[];else{let o=Array.from(Gi.keys()).filter((a)=>a!=="yaml11").map((a)=>JSON.stringify(a)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${o} or define customTags array`)}if(Array.isArray(e))for(let o of e)r=r.concat(o);else if(typeof e==="function")r=e(r.slice());if(s)r=r.concat(Pe.merge);return r.reduce((o,a)=>{let l=typeof a==="string"?Hi[a]:a;if(!l){let f=JSON.stringify(a),u=Object.keys(Hi).map((m)=>JSON.stringify(m)).join(", ");throw Error(`Unknown custom tag ${f}; use one of ${u}`)}if(!o.includes(l))o.push(l);return o},[])}vf.coreKnownTags=Sf;vf.getTags=wf});var hs=i(function(Ef){var fs=O(),Af=ue(),qf=he(),Of=Ee(),wt=nn(),Lf=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class us{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:n,schema:r,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?wt.getTags(e,"compat"):e?wt.getTags(null,e):null,this.name=typeof r==="string"&&r||"core",this.knownTags=n?wt.coreKnownTags:{},this.tags=wt.getTags(t,this.name,s),this.toStringOptions=a??null,Object.defineProperty(this,fs.MAP,{value:Af.map}),Object.defineProperty(this,fs.SCALAR,{value:Of.string}),Object.defineProperty(this,fs.SEQ,{value:qf.seq}),this.sortMapEntries=typeof o==="function"?o:o===!0?Lf:null}clone(){let e=Object.create(us.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}Ef.Schema=us});var rn=i(function(Pf){var Tf=O(),ds=qe(),_e=ke();function If(e,t){let s=[],n=t.directives===!0;if(t.directives!==!1&&e.directives){let f=e.directives.toString(e);if(f)s.push(f),n=!0;else if(e.directives.docStart)n=!0}if(n)s.push("---");let r=ds.createStringifyContext(e,t),{commentString:o}=r.options;if(e.commentBefore){if(s.length!==1)s.unshift("");let f=o(e.commentBefore);s.unshift(_e.indentComment(f,""))}let a=!1,l=null;if(e.contents){if(Tf.isNode(e.contents)){if(e.contents.spaceBefore&&n)s.push("");if(e.contents.commentBefore){let m=o(e.contents.commentBefore);s.push(_e.indentComment(m,""))}r.forceBlockIndent=!!e.comment,l=e.contents.comment}let f=l?void 0:()=>a=!0,u=ds.stringify(e.contents,r,()=>l=null,f);if(l)u+=_e.lineComment(u,"",o(l));if((u[0]==="|"||u[0]===">")&&s[s.length-1]==="---")s[s.length-1]=`--- ${u}`;else s.push(u)}else s.push(ds.stringify(e.contents,r));if(e.directives?.docEnd)if(e.comment){let f=o(e.comment);if(f.includes(`
55
+ `))s.push("..."),s.push(_e.indentComment(f,""));else s.push(`... ${f}`)}else s.push("...");else{let f=e.comment;if(f&&a)f=f.replace(/^\n+/,"");if(f){if((!a||l)&&s[s.length-1]!=="")s.push("");s.push(_e.indentComment(o(f),""))}}return s.join(`
56
+ `)+`
57
+ `}Pf.stringifyDocument=If});var Me=i(function(Ff){var Mf=we(),pe=We(),M=O(),$f=J(),Df=U(),xf=hs(),Bf=rn(),ps=Ve(),Kf=_t(),jf=ve(),ms=Pt();class gs{constructor(e,t,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,M.NODE_TYPE,{value:M.DOC});let n=null;if(typeof t==="function"||Array.isArray(t))n=t;else if(s===void 0&&t)s=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"},s);this.options=r;let{version:o}=r;if(s?._directives){if(this.directives=s._directives.atDocument(),this.directives.yaml.explicit)o=this.directives.yaml.version}else this.directives=new ms.Directives({version:o});this.setSchema(o,s),this.contents=e===void 0?null:this.createNode(e,n,s)}clone(){let e=Object.create(gs.prototype,{[M.NODE_TYPE]:{value:M.DOC}});if(e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives)e.directives=this.directives.clone();if(e.schema=this.schema.clone(),e.contents=M.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range)e.range=this.range.slice();return e}add(e){if(me(this.contents))this.contents.add(e)}addIn(e,t){if(me(this.contents))this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let s=ps.anchorNames(this);e.anchor=!t||s.has(t)?ps.findNewAnchor(t||"a",s):t}return new Mf.Alias(e.anchor)}createNode(e,t,s){let n=void 0;if(typeof t==="function")e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let p=(w)=>typeof w==="number"||w instanceof String||w instanceof Number,g=t.filter(p).map(String);if(g.length>0)t=t.concat(g);n=t}else if(s===void 0&&t)s=t,t=void 0;let{aliasDuplicateObjects:r,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:f,tag:u}=s??{},{onAnchor:m,setAnchors:h,sourceObjects:d}=ps.createNodeAnchors(this,o||"a"),y={aliasDuplicateObjects:r??!0,keepUndefined:l??!1,onAnchor:m,onTagObj:f,replacer:n,schema:this.schema,sourceObjects:d},b=jf.createNode(e,u,y);if(a&&M.isCollection(b))b.flow=!0;return h(),b}createPair(e,t,s={}){let n=this.createNode(e,null,s),r=this.createNode(t,null,s);return new $f.Pair(n,r)}delete(e){return me(this.contents)?this.contents.delete(e):!1}deleteIn(e){if(pe.isEmptyPath(e)){if(this.contents==null)return!1;return this.contents=null,!0}return me(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return M.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){if(pe.isEmptyPath(e))return!t&&M.isScalar(this.contents)?this.contents.value:this.contents;return M.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return M.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){if(pe.isEmptyPath(e))return this.contents!==void 0;return M.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){if(this.contents==null)this.contents=pe.collectionFromPath(this.schema,[e],t);else if(me(this.contents))this.contents.set(e,t)}setIn(e,t){if(pe.isEmptyPath(e))this.contents=t;else if(this.contents==null)this.contents=pe.collectionFromPath(this.schema,Array.from(e),t);else if(me(this.contents))this.contents.setIn(e,t)}setSchema(e,t={}){if(typeof e==="number")e=String(e);let s;switch(e){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new ms.Directives({version:"1.1"});s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=e;else this.directives=new ms.Directives({version:e});s={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;s=null;break;default:{let n=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new xf.Schema(Object.assign(s,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:n,onAnchor:r,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof n==="number"?n:100},l=Df.toJS(this.contents,t??"",a);if(typeof r==="function")for(let{count:f,res:u}of a.anchors.values())r(u,f);return typeof o==="function"?Kf.applyReviver(o,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Bf.stringifyDocument(this,e)}}function me(e){if(M.isCollection(e))return!0;throw Error("Expected a YAML collection as document contents")}Ff.Document=gs});var $e=i(function(Yf){class vt extends Error{constructor(e,t,s,n){super();this.name=e,this.code=s,this.message=n,this.pos=t}}class on extends vt{constructor(e,t,s){super("YAMLParseError",e,t,s)}}class an extends vt{constructor(e,t,s){super("YAMLWarning",e,t,s)}}var Uf=(e,t)=>(s)=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map((l)=>t.linePos(l));let{line:n,col:r}=s.linePos[0];s.message+=` at line ${n}, column ${r}`;let o=r-1,a=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(o>=60&&a.length>80){let l=Math.min(o-39,a.length-79);a="…"+a.substring(l),o-=l-1}if(a.length>80)a=a.substring(0,79)+"…";if(n>1&&/^ *$/.test(a.substring(0,o))){let l=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);if(l.length>80)l=l.substring(0,79)+`…
58
+ `;a=l+a}if(/[^ ]/.test(a)){let l=1,f=s.linePos[1];if(f?.line===n&&f.col>r)l=Math.max(1,Math.min(f.col-r,80-o));let u=" ".repeat(o)+"^".repeat(l);s.message+=`:
59
+
60
+ ${a}
61
+ ${u}
62
+ `}};Yf.YAMLError=vt;Yf.YAMLParseError=on;Yf.YAMLWarning=an;Yf.prettifyError=Uf});var De=i(function(Hf){function Gf(e,{flow:t,indicator:s,next:n,offset:r,onError:o,parentIndent:a,startOnNewline:l}){let f=!1,u=l,m=l,h="",d="",y=!1,b=!1,p=null,g=null,w=null,v=null,k=null,N=null,A=null;for(let S of e){if(b){if(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma")o(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");b=!1}if(p){if(u&&S.type!=="comment"&&S.type!=="newline")o(p,"TAB_AS_INDENT","Tabs are not allowed as indentation");p=null}switch(S.type){case"space":if(!t&&(s!=="doc-start"||n?.type!=="flow-collection")&&S.source.includes("\t"))p=S;m=!0;break;case"comment":{if(!m)o(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let C=S.source.substring(1)||" ";if(!h)h=C;else h+=d+C;d="",u=!1;break}case"newline":if(u){if(h)h+=S.source;else if(!N||s!=="seq-item-ind")f=!0}else d+=S.source;if(u=!0,y=!0,g||w)v=S;m=!0;break;case"anchor":if(g)o(S,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(S.source.endsWith(":"))o(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);g=S,A??(A=S.offset),u=!1,m=!1,b=!0;break;case"tag":{if(w)o(S,"MULTIPLE_TAGS","A node can have at most one tag");w=S,A??(A=S.offset),u=!1,m=!1,b=!0;break}case s:if(g||w)o(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`);if(N)o(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${t??"collection"}`);N=S,u=s==="seq-item-ind"||s==="explicit-key-ind",m=!1;break;case"comma":if(t){if(k)o(S,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`);k=S,u=!1,m=!1;break}default:o(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),u=!1,m=!1}}let q=e[e.length-1],L=q?q.offset+q.source.length:r;if(b&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!==""))o(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(p&&(u&&p.indent<=a||n?.type==="block-map"||n?.type==="block-seq"))o(p,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:k,found:N,spaceBefore:f,comment:h,hasNewline:y,anchor:g,tag:w,newlineAfterProp:v,end:L,start:A??L}}Hf.resolveProps=Gf});var kt=i(function(zf){function ys(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
63
+ `))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let s of t.start)if(s.type==="newline")return!0;if(t.sep){for(let s of t.sep)if(s.type==="newline")return!0}if(ys(t.key)||ys(t.value))return!0}return!1;default:return!0}}zf.containsNewline=ys});var bs=i(function(su){var eu=kt();function tu(e,t,s){if(t?.type==="flow-collection"){let n=t.end[0];if(n.indent===e&&(n.source==="]"||n.source==="}")&&eu.containsNewline(t))s(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}su.flowIndentCheck=tu});var Ss=i(function(ru){var ln=O();function nu(e,t,s){let{uniqueKeys:n}=e.options;if(n===!1)return!1;let r=typeof n==="function"?n:(o,a)=>o===a||ln.isScalar(o)&&ln.isScalar(a)&&o.value===a.value;return t.some((o)=>r(o.key,s))}ru.mapIncludes=nu});var dn=i(function(uu){var cn=J(),au=W(),fn=De(),lu=kt(),un=bs(),cu=Ss(),hn="All mapping items must start at the same column";function fu({composeNode:e,composeEmptyNode:t},s,n,r,o){let l=new(o?.nodeClass??au.YAMLMap)(s.schema);if(s.atRoot)s.atRoot=!1;let f=n.offset,u=null;for(let m of n.items){let{start:h,key:d,sep:y,value:b}=m,p=fn.resolveProps(h,{indicator:"explicit-key-ind",next:d??y?.[0],offset:f,onError:r,parentIndent:n.indent,startOnNewline:!0}),g=!p.found;if(g){if(d){if(d.type==="block-seq")r(f,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in d&&d.indent!==n.indent)r(f,"BAD_INDENT",hn)}if(!p.anchor&&!p.tag&&!y){if(u=p.end,p.comment)if(l.comment)l.comment+=`
64
+ `+p.comment;else l.comment=p.comment;continue}if(p.newlineAfterProp||lu.containsNewline(d))r(d??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(p.found?.indent!==n.indent)r(f,"BAD_INDENT",hn);s.atKey=!0;let w=p.end,v=d?e(s,d,p,r):t(s,w,h,null,p,r);if(s.schema.compat)un.flowIndentCheck(n.indent,d,r);if(s.atKey=!1,cu.mapIncludes(s,l.items,v))r(w,"DUPLICATE_KEY","Map keys must be unique");let k=fn.resolveProps(y??[],{indicator:"map-value-ind",next:b,offset:v.range[2],onError:r,parentIndent:n.indent,startOnNewline:!d||d.type==="block-scalar"});if(f=k.end,k.found){if(g){if(b?.type==="block-map"&&!k.hasNewline)r(f,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(s.options.strict&&p.start<k.found.offset-1024)r(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let N=b?e(s,b,k,r):t(s,f,y,null,k,r);if(s.schema.compat)un.flowIndentCheck(n.indent,b,r);f=N.range[2];let A=new cn.Pair(v,N);if(s.options.keepSourceTokens)A.srcToken=m;l.items.push(A)}else{if(g)r(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(k.comment)if(v.comment)v.comment+=`
65
+ `+k.comment;else v.comment=k.comment;let N=new cn.Pair(v);if(s.options.keepSourceTokens)N.srcToken=m;l.items.push(N)}}if(u&&u<f)r(u,"IMPOSSIBLE","Map comment with trailing content");return l.range=[n.offset,f,u??f],l}uu.resolveBlockMap=fu});var pn=i(function(yu){var du=G(),pu=De(),mu=bs();function gu({composeNode:e,composeEmptyNode:t},s,n,r,o){let l=new(o?.nodeClass??du.YAMLSeq)(s.schema);if(s.atRoot)s.atRoot=!1;if(s.atKey)s.atKey=!1;let f=n.offset,u=null;for(let{start:m,value:h}of n.items){let d=pu.resolveProps(m,{indicator:"seq-item-ind",next:h,offset:f,onError:r,parentIndent:n.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||h)if(h?.type==="block-seq")r(d.end,"BAD_INDENT","All sequence items must start at the same column");else r(f,"MISSING_CHAR","Sequence item without - indicator");else{if(u=d.end,d.comment)l.comment=d.comment;continue}let y=h?e(s,h,d,r):t(s,d.end,m,null,d,r);if(s.schema.compat)mu.flowIndentCheck(n.indent,h,r);f=y.range[2],l.items.push(y)}return l.range=[n.offset,f,u??f],l}yu.resolveBlockSeq=gu});var ge=i(function(wu){function Su(e,t,s,n){let r="";if(e){let o=!1,a="";for(let l of e){let{source:f,type:u}=l;switch(u){case"space":o=!0;break;case"comment":{if(s&&!o)n(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let m=f.substring(1)||" ";if(!r)r=m;else r+=a+m;a="";break}case"newline":if(r)a+=f;o=!0;break;default:n(l,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=f.length}}return{comment:r,offset:t}}wu.resolveEnd=Su});var yn=i(function(Cu){var ku=O(),Nu=J(),mn=W(),Au=G(),qu=ge(),gn=De(),Ou=kt(),Lu=Ss(),ws="Block collections are not allowed within flow collections",vs=(e)=>e&&(e.type==="block-map"||e.type==="block-seq");function Eu({composeNode:e,composeEmptyNode:t},s,n,r,o){let a=n.start.source==="{",l=a?"flow map":"flow sequence",u=new(o?.nodeClass??(a?mn.YAMLMap:Au.YAMLSeq))(s.schema);u.flow=!0;let m=s.atRoot;if(m)s.atRoot=!1;if(s.atKey)s.atKey=!1;let h=n.offset+n.start.source.length;for(let g=0;g<n.items.length;++g){let w=n.items[g],{start:v,key:k,sep:N,value:A}=w,q=gn.resolveProps(v,{flow:l,indicator:"explicit-key-ind",next:k??N?.[0],offset:h,onError:r,parentIndent:n.indent,startOnNewline:!1});if(!q.found){if(!q.anchor&&!q.tag&&!N&&!A){if(g===0&&q.comma)r(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(g<n.items.length-1)r(q.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`);if(q.comment)if(u.comment)u.comment+=`
66
+ `+q.comment;else u.comment=q.comment;h=q.end;continue}if(!a&&s.options.strict&&Ou.containsNewline(k))r(k,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0){if(q.comma)r(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`)}else{if(!q.comma)r(q.start,"MISSING_CHAR",`Missing , between ${l} items`);if(q.comment){let L="";e:for(let S of v)switch(S.type){case"comma":case"space":break;case"comment":L=S.source.substring(1);break e;default:break e}if(L){let S=u.items[u.items.length-1];if(ku.isPair(S))S=S.value??S.key;if(S.comment)S.comment+=`
67
+ `+L;else S.comment=L;q.comment=q.comment.substring(L.length+1)}}}if(!a&&!N&&!q.found){let L=A?e(s,A,q,r):t(s,q.end,N,null,q,r);if(u.items.push(L),h=L.range[2],vs(A))r(L.range,"BLOCK_IN_FLOW",ws)}else{s.atKey=!0;let L=q.end,S=k?e(s,k,q,r):t(s,L,v,null,q,r);if(vs(k))r(S.range,"BLOCK_IN_FLOW",ws);s.atKey=!1;let C=gn.resolveProps(N??[],{flow:l,indicator:"map-value-ind",next:A,offset:S.range[2],onError:r,parentIndent:n.indent,startOnNewline:!1});if(C.found){if(!a&&!q.found&&s.options.strict){if(N)for(let T of N){if(T===C.found)break;if(T.type==="newline"){r(T,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(q.start<C.found.offset-1024)r(C.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(A)if("source"in A&&A.source?.[0]===":")r(A,"MISSING_CHAR",`Missing space after : in ${l}`);else r(C.start,"MISSING_CHAR",`Missing , or : between ${l} items`);let R=A?e(s,A,C,r):C.found?t(s,C.end,N,null,C,r):null;if(R){if(vs(A))r(R.range,"BLOCK_IN_FLOW",ws)}else if(C.comment)if(S.comment)S.comment+=`
68
+ `+C.comment;else S.comment=C.comment;let oe=new Nu.Pair(S,R);if(s.options.keepSourceTokens)oe.srcToken=w;if(a){let T=u;if(Lu.mapIncludes(s,T.items,S))r(L,"DUPLICATE_KEY","Map keys must be unique");T.items.push(oe)}else{let T=new mn.YAMLMap(s.schema);T.flow=!0,T.items.push(oe);let Fs=(R??S).range;T.range=[S.range[0],Fs[1],Fs[2]],u.items.push(T)}h=R?R.range[2]:C.end}}let d=a?"}":"]",[y,...b]=n.end,p=h;if(y?.source===d)p=y.offset+y.source.length;else{let g=l[0].toUpperCase()+l.substring(1),w=m?`${g} must end with a ${d}`:`${g} in block collection must be sufficiently indented and end with a ${d}`;if(r(h,m?"MISSING_CHAR":"BAD_INDENT",w),y&&y.source.length!==1)b.unshift(y)}if(b.length>0){let g=qu.resolveEnd(b,p,s.options.strict,r);if(g.comment)if(u.comment)u.comment+=`
69
+ `+g.comment;else u.comment=g.comment;u.range=[n.offset,p,g.offset]}else u.range=[n.offset,p,p];return u}Cu.resolveFlowCollection=Eu});var bn=i(function(Ku){var Iu=O(),Pu=E(),_u=W(),Mu=G(),$u=dn(),Du=pn(),xu=yn();function ks(e,t,s,n,r,o){let a=s.type==="block-map"?$u.resolveBlockMap(e,t,s,n,o):s.type==="block-seq"?Du.resolveBlockSeq(e,t,s,n,o):xu.resolveFlowCollection(e,t,s,n,o),l=a.constructor;if(r==="!"||r===l.tagName)return a.tag=l.tagName,a;if(r)a.tag=r;return a}function Bu(e,t,s,n,r){let o=n.tag,a=!o?null:t.directives.tagName(o.source,(d)=>r(o,"TAG_RESOLVE_FAILED",d));if(s.type==="block-seq"){let{anchor:d,newlineAfterProp:y}=n,b=d&&o?d.offset>o.offset?d:o:d??o;if(b&&(!y||y.offset<b.offset))r(b,"MISSING_CHAR","Missing newline after block sequence props")}let l=s.type==="block-map"?"map":s.type==="block-seq"?"seq":s.start.source==="{"?"map":"seq";if(!o||!a||a==="!"||a===_u.YAMLMap.tagName&&l==="map"||a===Mu.YAMLSeq.tagName&&l==="seq")return ks(e,t,s,r,a);let f=t.schema.tags.find((d)=>d.tag===a&&d.collection===l);if(!f){let d=t.schema.knownTags[a];if(d?.collection===l)t.schema.tags.push(Object.assign({},d,{default:!1})),f=d;else{if(d)r(o,"BAD_COLLECTION_TYPE",`${d.tag} used for ${l} collection, but expects ${d.collection??"scalar"}`,!0);else r(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0);return ks(e,t,s,r,a)}}let u=ks(e,t,s,r,a,f),m=f.resolve?.(u,(d)=>r(o,"TAG_RESOLVE_FAILED",d),t.options)??u,h=Iu.isNode(m)?m:new Pu.Scalar(m);if(h.range=u.range,h.tag=a,f?.format)h.format=f.format;return h}Ku.composeCollection=Bu});var As=i(function(Yu){var Ns=E();function Fu(e,t,s){let n=t.offset,r=Ru(t,e.options.strict,s);if(!r)return{value:"",type:null,comment:"",range:[n,n,n]};let o=r.mode===">"?Ns.Scalar.BLOCK_FOLDED:Ns.Scalar.BLOCK_LITERAL,a=t.source?Uu(t.source):[],l=a.length;for(let p=a.length-1;p>=0;--p){let g=a[p][1];if(g===""||g==="\r")l=p;else break}if(l===0){let p=r.chomp==="+"&&a.length>0?`
70
+ `.repeat(Math.max(1,a.length-1)):"",g=n+r.length;if(t.source)g+=t.source.length;return{value:p,type:o,comment:r.comment,range:[n,g,g]}}let f=t.indent+r.indent,u=t.offset+r.length,m=0;for(let p=0;p<l;++p){let[g,w]=a[p];if(w===""||w==="\r"){if(r.indent===0&&g.length>f)f=g.length}else{if(g.length<f)s(u+g.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(r.indent===0)f=g.length;if(m=p,f===0&&!e.atRoot)s(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=g.length+w.length+1}for(let p=a.length-1;p>=l;--p)if(a[p][0].length>f)l=p+1;let h="",d="",y=!1;for(let p=0;p<m;++p)h+=a[p][0].slice(f)+`
71
+ `;for(let p=m;p<l;++p){let[g,w]=a[p];u+=g.length+w.length+1;let v=w[w.length-1]==="\r";if(v)w=w.slice(0,-1);if(w&&g.length<f){let N=`Block scalar lines must not be less indented than their ${r.indent?"explicit indentation indicator":"first line"}`;s(u-w.length-(v?2:1),"BAD_INDENT",N),g=""}if(o===Ns.Scalar.BLOCK_LITERAL)h+=d+g.slice(f)+w,d=`
72
+ `;else if(g.length>f||w[0]==="\t"){if(d===" ")d=`
73
+ `;else if(!y&&d===`
74
+ `)d=`
75
+
76
+ `;h+=d+g.slice(f)+w,d=`
77
+ `,y=!0}else if(w==="")if(d===`
78
+ `)h+=`
79
+ `;else d=`
80
+ `;else h+=d+w,d=" ",y=!1}switch(r.chomp){case"-":break;case"+":for(let p=l;p<a.length;++p)h+=`
81
+ `+a[p][0].slice(f);if(h[h.length-1]!==`
82
+ `)h+=`
83
+ `;break;default:h+=`
84
+ `}let b=n+r.length+t.source.length;return{value:h,type:o,comment:r.comment,range:[n,b,b]}}function Ru({offset:e,props:t},s,n){if(t[0].type!=="block-scalar-header")return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:r}=t[0],o=r[0],a=0,l="",f=-1;for(let d=1;d<r.length;++d){let y=r[d];if(!l&&(y==="-"||y==="+"))l=y;else{let b=Number(y);if(!a&&b)a=b;else if(f===-1)f=e+d}}if(f!==-1)n(f,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let u=!1,m="",h=r.length;for(let d=1;d<t.length;++d){let y=t[d];switch(y.type){case"space":u=!0;case"newline":h+=y.source.length;break;case"comment":if(s&&!u)n(y,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");h+=y.source.length,m=y.source.substring(1);break;case"error":n(y,"UNEXPECTED_TOKEN",y.message),h+=y.source.length;break;default:{let b=`Unexpected token in block scalar header: ${y.type}`;n(y,"UNEXPECTED_TOKEN",b);let p=y.source;if(p&&typeof p==="string")h+=p.length}}}return{mode:o,indent:a,chomp:l,comment:m,length:h}}function Uu(e){let t=e.split(/\n( *)/),s=t[0],n=s.match(/^( *)/),o=[n?.[1]?[n[1],s.slice(n[1].length)]:["",s]];for(let a=1;a<t.length;a+=2)o.push([t[a],t[a+1]]);return o}Yu.resolveBlockScalar=Fu});var Os=i(function(eh){var qs=E(),Ju=ge();function Qu(e,t,s){let{offset:n,type:r,source:o,end:a}=e,l,f,u=(d,y,b)=>s(n+d,y,b);switch(r){case"scalar":l=qs.Scalar.PLAIN,f=Wu(o,u);break;case"single-quoted-scalar":l=qs.Scalar.QUOTE_SINGLE,f=Gu(o,u);break;case"double-quoted-scalar":l=qs.Scalar.QUOTE_DOUBLE,f=Hu(o,u);break;default:return s(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[n,n+o.length,n+o.length]}}let m=n+o.length,h=Ju.resolveEnd(a,m,t,s);return{value:f,type:l,comment:h.comment,range:[n,m,h.offset]}}function Wu(e,t){let s="";switch(e[0]){case"\t":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${e[0]}`;break}case"@":case"`":{s=`reserved character ${e[0]}`;break}}if(s)t(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`);return Sn(e)}function Gu(e,t){if(e[e.length-1]!=="'"||e.length===1)t(e.length,"MISSING_CHAR","Missing closing 'quote");return Sn(e.slice(1,-1)).replace(/''/g,"'")}function Sn(e){let t=/(.*?)\r?\n/sy,s=t.exec(e);if(!s)return e;let n,r;try{n=new RegExp("(?<![ \t])[ \t]+$"),r=new RegExp("^[ \t]+|(?<![ \t])[ \t]+$","g")}catch{n=/[ \t]+$/,r=/^[ \t]+|[ \t]+$/g}let o=s[1].replace(n,""),a=" ",l=t.lastIndex;while(s=t.exec(e)){let u=s[1].replace(r,"");if(u==="")if(a===`
85
+ `)o+=a;else a=`
86
+ `;else o+=a+u,a=" ";l=t.lastIndex}let f=/[ \t]*(.*)/sy;return f.lastIndex=l,s=f.exec(e),o+a+(s?.[1]??"")}function Hu(e,t){let s="";for(let n=1;n<e.length-1;++n){let r=e[n];if(r==="\r"&&e[n+1]===`
87
+ `)continue;if(r===`
88
+ `){let{fold:o,offset:a}=Xu(e,n);s+=o,n=a}else if(r==="\\"){let o=e[++n],a=zu[o];if(a)s+=a;else if(o===`
89
+ `){o=e[n+1];while(o===" "||o==="\t")o=e[++n+1]}else if(o==="\r"&&e[n+1]===`
90
+ `){o=e[++n+1];while(o===" "||o==="\t")o=e[++n+1]}else if(o==="x"||o==="u"||o==="U"){let l=o==="x"?2:o==="u"?4:8;s+=Zu(e,n+1,l,t),n+=l}else{let l=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),s+=l}}else if(r===" "||r==="\t"){let o=n,a=e[n+1];while(a===" "||a==="\t")a=e[++n+1];if(a!==`
91
+ `&&!(a==="\r"&&e[n+2]===`
92
+ `))s+=n>o?e.slice(o,n+1):r}else s+=r}if(e[e.length-1]!=='"'||e.length===1)t(e.length,"MISSING_CHAR",'Missing closing "quote');return s}function Xu(e,t){let s="",n=e[t+1];while(n===" "||n==="\t"||n===`
93
+ `||n==="\r"){if(n==="\r"&&e[t+2]!==`
94
+ `)break;if(n===`
95
+ `)s+=`
96
+ `;t+=1,n=e[t+1]}if(!s)s=" ";return{fold:s,offset:t}}var zu={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
97
+ `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function Zu(e,t,s,n){let r=e.substr(t,s),a=r.length===s&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;try{return String.fromCodePoint(a)}catch{let l=e.substr(t-2,s+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}}eh.resolveFlowScalar=Qu});var vn=i(function(ah){var ne=O(),wn=E(),sh=As(),ih=Os();function nh(e,t,s,n){let{value:r,type:o,comment:a,range:l}=t.type==="block-scalar"?sh.resolveBlockScalar(e,t,n):ih.resolveFlowScalar(t,e.options.strict,n),f=s?e.directives.tagName(s.source,(h)=>n(s,"TAG_RESOLVE_FAILED",h)):null,u;if(e.options.stringKeys&&e.atKey)u=e.schema[ne.SCALAR];else if(f)u=rh(e.schema,r,f,s,n);else if(t.type==="scalar")u=oh(e,r,t,n);else u=e.schema[ne.SCALAR];let m;try{let h=u.resolve(r,(d)=>n(s??t,"TAG_RESOLVE_FAILED",d),e.options);m=ne.isScalar(h)?h:new wn.Scalar(h)}catch(h){let d=h instanceof Error?h.message:String(h);n(s??t,"TAG_RESOLVE_FAILED",d),m=new wn.Scalar(r)}if(m.range=l,m.source=r,o)m.type=o;if(f)m.tag=f;if(u.format)m.format=u.format;if(a)m.comment=a;return m}function rh(e,t,s,n,r){if(s==="!")return e[ne.SCALAR];let o=[];for(let l of e.tags)if(!l.collection&&l.tag===s)if(l.default&&l.test)o.push(l);else return l;for(let l of o)if(l.test?.test(t))return l;let a=e.knownTags[s];if(a&&!a.collection)return e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a;return r(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str"),e[ne.SCALAR]}function oh({atKey:e,directives:t,schema:s},n,r,o){let a=s.tags.find((l)=>(l.default===!0||e&&l.default==="key")&&l.test?.test(n))||s[ne.SCALAR];if(s.compat){let l=s.compat.find((f)=>f.default&&f.test?.test(n))??s[ne.SCALAR];if(a.tag!==l.tag){let f=t.tagString(a.tag),u=t.tagString(l.tag),m=`Value may be parsed as either ${f} or ${u}`;o(r,"TAG_RESOLVE_FAILED",m,!0)}}return a}ah.composeScalar=nh});var kn=i(function(fh){function ch(e,t,s){if(t){s??(s=t.length);for(let n=s-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}r=t[++n];while(r?.type==="space")e+=r.source.length,r=t[++n];break}}return e}fh.emptyScalarPosition=ch});var qn=i(function(Sh){var hh=we(),dh=O(),ph=bn(),Nn=vn(),mh=ge(),gh=kn(),yh={composeNode:An,composeEmptyNode:Ls};function An(e,t,s,n){let r=e.atKey,{spaceBefore:o,comment:a,anchor:l,tag:f}=s,u,m=!0;switch(t.type){case"alias":if(u=bh(e,t,n),l||f)n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(u=Nn.composeScalar(e,t,f,n),l)u.anchor=l.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{if(u=ph.composeCollection(yh,e,t,s,n),l)u.anchor=l.source.substring(1)}catch(h){let d=h instanceof Error?h.message:String(h);n(t,"RESOURCE_EXHAUSTION",d)}break;default:{let h=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",h),m=!1}}if(u??(u=Ls(e,t.offset,void 0,null,s,n)),l&&u.anchor==="")n(l,"BAD_ALIAS","Anchor cannot be an empty string");if(r&&e.options.stringKeys&&(!dh.isScalar(u)||typeof u.value!=="string"||u.tag&&u.tag!=="tag:yaml.org,2002:str"))n(f??t,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(o)u.spaceBefore=!0;if(a)if(t.type==="scalar"&&t.source==="")u.comment=a;else u.commentBefore=a;if(e.options.keepSourceTokens&&m)u.srcToken=t;return u}function Ls(e,t,s,n,{spaceBefore:r,comment:o,anchor:a,tag:l,end:f},u){let m={type:"scalar",offset:gh.emptyScalarPosition(t,s,n),indent:-1,source:""},h=Nn.composeScalar(e,m,l,u);if(a){if(h.anchor=a.source.substring(1),h.anchor==="")u(a,"BAD_ALIAS","Anchor cannot be an empty string")}if(r)h.spaceBefore=!0;if(o)h.comment=o,h.range[2]=f;return h}function bh({options:e},{offset:t,source:s,end:n},r){let o=new hh.Alias(s.substring(1));if(o.source==="")r(t,"BAD_ALIAS","Alias cannot be an empty string");if(o.source.endsWith(":"))r(t+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+s.length,l=mh.resolveEnd(n,a,e.strict,r);if(o.range=[t,a,l.offset],l.comment)o.comment=l.comment;return o}Sh.composeEmptyNode=Ls;Sh.composeNode=An});var Ln=i(function(Oh){var kh=Me(),On=qn(),Nh=ge(),Ah=De();function qh(e,t,{offset:s,start:n,value:r,end:o},a){let l=Object.assign({_directives:t},e),f=new kh.Document(void 0,l),u={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=Ah.resolveProps(n,{indicator:"doc-start",next:r??o?.[0],offset:s,onError:a,parentIndent:0,startOnNewline:!0});if(m.found){if(f.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!m.hasNewline)a(m.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}f.contents=r?On.composeNode(u,r,m,a):On.composeEmptyNode(u,m.end,n,null,m,a);let h=f.contents.range[2],d=Nh.resolveEnd(o,h,!1,a);if(d.comment)f.comment=d.comment;return f.range=[s,h,d.offset],f}Oh.composeDoc=qh});var Es=i(function(_h){var Eh=c("process"),Ch=Pt(),Th=Me(),xe=$e(),En=O(),Ih=Ln(),Ph=ge();function Be(e){if(typeof e==="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:s}=e;return[t,t+(typeof s==="string"?s.length:1)]}function Cn(e){let t="",s=!1,n=!1;for(let r=0;r<e.length;++r){let o=e[r];switch(o[0]){case"#":t+=(t===""?"":n?`
98
+
99
+ `:`
100
+ `)+(o.substring(1)||" "),s=!0,n=!1;break;case"%":if(e[r+1]?.[0]!=="#")r+=1;s=!1;break;default:if(!s)n=!0;s=!1}}return{comment:t,afterEmptyLine:n}}class Tn{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,s,n,r)=>{let o=Be(t);if(r)this.warnings.push(new xe.YAMLWarning(o,s,n));else this.errors.push(new xe.YAMLParseError(o,s,n))},this.directives=new Ch.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:s,afterEmptyLine:n}=Cn(this.prelude);if(s){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
101
+ ${s}`:s;else if(n||e.directives.docStart||!r)e.commentBefore=s;else if(En.isCollection(r)&&!r.flow&&r.items.length>0){let o=r.items[0];if(En.isPair(o))o=o.key;let a=o.commentBefore;o.commentBefore=a?`${s}
102
+ ${a}`:s}else{let o=r.commentBefore;r.commentBefore=o?`${s}
103
+ ${o}`:s}}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:Cn(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(let n of e)yield*this.next(n);yield*this.end(t,s)}*next(e){if(Eh.env.LOG_STREAM)console.dir(e,{depth:null});switch(e.type){case"directive":this.directives.add(e.source,(t,s,n)=>{let r=Be(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",s,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=Ih.composeDoc(this.options,this.directives,e,this.onError);if(this.atDirectives&&!t.directives.docStart)this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(t,!1),this.doc)yield this.doc;this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new xe.YAMLParseError(Be(e),"UNEXPECTED_TOKEN",t);if(this.atDirectives||!this.doc)this.errors.push(s);else this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){this.errors.push(new xe.YAMLParseError(Be(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=Ph.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let s=this.doc.comment;this.doc.comment=s?`${s}
104
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new xe.YAMLParseError(Be(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let s=Object.assign({_directives:this.directives},this.options),n=new Th.Document(void 0,s);if(this.atDirectives)this.onError(t,"MISSING_CHAR","Missing directives-end indicator line");n.range=[0,t,t],this.decorate(n,!1),yield n}}}_h.Composer=Tn});var _n=i(function(Rh){var $h=As(),Dh=Os(),xh=$e(),In=Ae();function Bh(e,t=!0,s){if(e){let n=(r,o,a)=>{let l=typeof r==="number"?r:Array.isArray(r)?r[0]:r.offset;if(s)s(l,o,a);else throw new xh.YAMLParseError([l,l+1],o,a)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Dh.resolveFlowScalar(e,t,n);case"block-scalar":return $h.resolveBlockScalar({options:{strict:t}},e,n)}}return null}function Kh(e,t){let{implicitKey:s=!1,indent:n,inFlow:r=!1,offset:o=-1,type:a="PLAIN"}=t,l=In.stringifyString({type:a,value:e},{implicitKey:s,indent:n>0?" ".repeat(n):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),f=t.end??[{type:"newline",offset:-1,indent:n,source:`
105
+ `}];switch(l[0]){case"|":case">":{let u=l.indexOf(`
106
+ `),m=l.substring(0,u),h=l.substring(u+1)+`
107
+ `,d=[{type:"block-scalar-header",offset:o,indent:n,source:m}];if(!Pn(d,f))d.push({type:"newline",offset:-1,indent:n,source:`
108
+ `});return{type:"block-scalar",offset:o,indent:n,props:d,source:h}}case'"':return{type:"double-quoted-scalar",offset:o,indent:n,source:l,end:f};case"'":return{type:"single-quoted-scalar",offset:o,indent:n,source:l,end:f};default:return{type:"scalar",offset:o,indent:n,source:l,end:f}}}function jh(e,t,s={}){let{afterKey:n=!1,implicitKey:r=!1,inFlow:o=!1,type:a}=s,l="indent"in e?e.indent:null;if(n&&typeof l==="number")l+=2;if(!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let u=e.props[0];if(u.type!=="block-scalar-header")throw Error("Invalid block scalar header");a=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let f=In.stringifyString({type:a,value:t},{implicitKey:r||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(f[0]){case"|":case">":Fh(e,f);break;case'"':Cs(e,f,"double-quoted-scalar");break;case"'":Cs(e,f,"single-quoted-scalar");break;default:Cs(e,f,"scalar")}}function Fh(e,t){let s=t.indexOf(`
109
+ `),n=t.substring(0,s),r=t.substring(s+1)+`
110
+ `;if(e.type==="block-scalar"){let o=e.props[0];if(o.type!=="block-scalar-header")throw Error("Invalid block scalar header");o.source=n,e.source=r}else{let{offset:o}=e,a="indent"in e?e.indent:-1,l=[{type:"block-scalar-header",offset:o,indent:a,source:n}];if(!Pn(l,"end"in e?e.end:void 0))l.push({type:"newline",offset:-1,indent:a,source:`
111
+ `});for(let f of Object.keys(e))if(f!=="type"&&f!=="offset")delete e[f];Object.assign(e,{type:"block-scalar",indent:a,props:l,source:r})}}function Pn(e,t){if(t)for(let s of t)switch(s.type){case"space":case"comment":e.push(s);break;case"newline":return e.push(s),!0}return!1}function Cs(e,t,s){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=s,e.source=t;break;case"block-scalar":{let n=e.props.slice(1),r=t.length;if(e.props[0].type==="block-scalar-header")r-=e.props[0].source.length;for(let o of n)o.offset+=r;delete e.props,Object.assign(e,{type:s,source:t,end:n});break}case"block-map":case"block-seq":{let r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
112
+ `};delete e.items,Object.assign(e,{type:s,source:t,end:[r]});break}default:{let n="indent"in e?e.indent:-1,r="end"in e&&Array.isArray(e.end)?e.end.filter((o)=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(let o of Object.keys(e))if(o!=="type"&&o!=="offset")delete e[o];Object.assign(e,{type:s,indent:n,source:t,end:r})}}}Rh.createScalarToken=Kh;Rh.resolveAsScalar=Bh;Rh.setScalarValue=jh});var Mn=i(function(Qh){var Jh=(e)=>("type"in e)?At(e):Nt(e);function At(e){switch(e.type){case"block-scalar":{let t="";for(let s of e.props)t+=At(s);return t+e.source}case"block-map":case"block-seq":{let t="";for(let s of e.items)t+=Nt(s);return t}case"flow-collection":{let t=e.start.source;for(let s of e.items)t+=Nt(s);for(let s of e.end)t+=s.source;return t}case"document":{let t=Nt(e);if(e.end)for(let s of e.end)t+=s.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let s of e.end)t+=s.source;return t}}}function Nt({start:e,key:t,sep:s,value:n}){let r="";for(let o of e)r+=o.source;if(t)r+=At(t);if(s)for(let o of s)r+=o.source;if(n)r+=At(n);return r}Qh.stringify=Jh});var xn=i(function(Hh){var Ts=Symbol("break visit"),Gh=Symbol("skip children"),$n=Symbol("remove item");function re(e,t){if("type"in e&&e.type==="document")e={start:e.start,value:e.value};Dn(Object.freeze([]),e,t)}re.BREAK=Ts;re.SKIP=Gh;re.REMOVE=$n;re.itemAtPath=(e,t)=>{let s=e;for(let[n,r]of t){let o=s?.[n];if(o&&"items"in o)s=o.items[r];else return}return s};re.parentCollection=(e,t)=>{let s=re.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],r=s?.[n];if(r&&"items"in r)return r;throw Error("Parent collection not found")};function Dn(e,t,s){let n=s(t,e);if(typeof n==="symbol")return n;for(let r of["key","value"]){let o=t[r];if(o&&"items"in o){for(let a=0;a<o.items.length;++a){let l=Dn(Object.freeze(e.concat([[r,a]])),o.items[a],s);if(typeof l==="number")a=l-1;else if(l===Ts)return Ts;else if(l===$n)o.items.splice(a,1),a-=1}if(typeof n==="function"&&r==="key")n=n(t,e)}}return typeof n==="function"?n(t,e):n}Hh.visit=re});var qt=i(function(nd){var Is=_n(),zh=Mn(),Zh=xn(),Ps="\uFEFF",_s="\x02",Ms="\x18",$s="\x1F",ed=(e)=>!!e&&("items"in e),td=(e)=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function sd(e){switch(e){case Ps:return"<BOM>";case _s:return"<DOC>";case Ms:return"<FLOW_END>";case $s:return"<SCALAR>";default:return JSON.stringify(e)}}function id(e){switch(e){case Ps:return"byte-order-mark";case _s:return"doc-mode";case Ms:return"flow-error-end";case $s:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
113
+ `:case`\r
114
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}nd.createScalarToken=Is.createScalarToken;nd.resolveAsScalar=Is.resolveAsScalar;nd.setScalarValue=Is.setScalarValue;nd.stringify=zh.stringify;nd.visit=Zh.visit;nd.BOM=Ps;nd.DOCUMENT=_s;nd.FLOW_END=Ms;nd.SCALAR=$s;nd.isCollection=ed;nd.isScalar=td;nd.prettyToken=sd;nd.tokenType=id});var xs=i(function(wd){var Ke=qt();function x(e){switch(e){case void 0:case" ":case`
115
+ `:case"\r":case"\t":return!0;default:return!1}}var Bn=new Set("0123456789ABCDEFabcdef"),bd=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ot=new Set(",[]{}"),Sd=new Set(` ,[]{}
116
+ \r `),Ds=(e)=>!e||Sd.has(e);class Kn{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";while(s&&(t||this.hasChars(1)))s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,t=this.buffer[e];while(t===" "||t==="\t")t=this.buffer[++e];if(!t||t==="#"||t===`
117
+ `)return!0;if(t==="\r")return this.buffer[e+1]===`
118
+ `;return!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;while(t===" ")t=this.buffer[++s+e];if(t==="\r"){let n=this.buffer[s+e+1];if(n===`
119
+ `||!n&&!this.atEnd)return e+s+1}return t===`
120
+ `||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if(t==="-"||t==="."){let s=this.buffer.substr(e,3);if((s==="---"||s==="...")&&x(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;if(typeof e!=="number"||e!==-1&&e<this.pos)e=this.buffer.indexOf(`
121
+ `,this.pos),this.lineEndPos=e;if(e===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[e-1]==="\r")e-=1;return this.buffer.substring(this.pos,e)}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Ke.BOM)yield*this.pushCount(1),e=e.substring(1);if(e[0]==="%"){let t=e.length,s=e.indexOf("#");while(s!==-1){let r=e[s-1];if(r===" "||r==="\t"){t=s-1;break}else s=e.indexOf("#",s+1)}while(!0){let r=e[t-1];if(r===" "||r==="\t")t-=1;else break}let n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),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 Ke.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==="...")&&x(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!x(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&x(t)){let s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Ds),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,s=-1;do{if(e=yield*this.pushNewline(),e>0)t=yield*this.pushSpaces(!1),this.indentValue=s=t;else t=0;t+=yield*this.pushSpaces(!0)}while(e+t>0);let n=this.getLine();if(n===null)return this.setNext("flow");if(s!==-1&&s<this.indentNext&&n[0]!=="#"||s===0&&(n.startsWith("---")||n.startsWith("..."))&&x(n[3])){if(!(s===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield Ke.FLOW_END,yield*this.parseLineStart()}let r=0;while(n[r]===",")r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),n[r]){case void 0:return"flow";case"#":return yield*this.pushCount(n.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(Ds),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||x(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==="'")while(t!==-1&&this.buffer[t+1]==="'")t=this.buffer.indexOf("'",t+2);else while(t!==-1){let r=0;while(this.buffer[t-1-r]==="\\")r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}let s=this.buffer.substring(0,t),n=s.indexOf(`
122
+ `,this.pos);if(n!==-1){while(n!==-1){let r=this.continueScalar(n+1);if(r===-1)break;n=s.indexOf(`
123
+ `,r)}if(n!==-1)t=n-(s[n-1]==="\r"?2:1)}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;while(!0){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil((t)=>x(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,s;e:for(let r=this.pos;s=this.buffer[r];++r)switch(s){case" ":t+=1;break;case`
124
+ `:e=r,t=0;break;case"\r":{let o=this.buffer[r+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
125
+ `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=t;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
126
+ `,r)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let n=e+1;s=this.buffer[n];while(s===" ")s=this.buffer[++n];if(s==="\t"){while(s==="\t"||s===" "||s==="\r"||s===`
127
+ `)s=this.buffer[++n];e=n-1}else if(!this.blockScalarKeep)do{let r=e-1,o=this.buffer[r];if(o==="\r")o=this.buffer[--r];let a=r;while(o===" ")o=this.buffer[--r];if(o===`
128
+ `&&r>=this.pos&&r+1+t>a)e=r;else break}while(!0);return yield Ke.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,s=this.pos-1,n;while(n=this.buffer[++s])if(n===":"){let r=this.buffer[s+1];if(x(r)||e&&Ot.has(r))break;t=s}else if(x(n)){let r=this.buffer[s+1];if(n==="\r")if(r===`
129
+ `)s+=1,n=`
130
+ `,r=this.buffer[s+1];else t=s;if(r==="#"||e&&Ot.has(r))break;if(n===`
131
+ `){let o=this.continueScalar(s+1);if(o===-1)break;s=Math.max(s,o-2)}}else{if(e&&Ot.has(n))break;t=s}if(!n&&!this.atEnd)return this.setNext("plain-scalar");return yield Ke.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc"}*pushCount(e){if(e>0)return yield this.buffer.substr(this.pos,e),this.pos+=e,e;return 0}*pushToIndex(e,t){let s=this.buffer.slice(this.pos,e);if(s)return yield s,this.pos+=s.length,s.length;else if(t)yield"";return 0}*pushIndicators(){let e=0;e:while(!0){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(Ds),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let t=this.flowLevel>0,s=this.charAt(1);if(x(s)||t&&Ot.has(s)){if(!t)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];while(!x(t)&&t!==">")t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];while(t)if(bd.has(t))t=this.buffer[++e];else if(t==="%"&&Bn.has(this.buffer[e+1])&&Bn.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];if(e===`
132
+ `)return yield*this.pushCount(1);else if(e==="\r"&&this.charAt(1)===`
133
+ `)return yield*this.pushCount(2);else return 0}*pushSpaces(e){let t=this.pos-1,s;do s=this.buffer[++t];while(s===" "||e&&s==="\t");let n=t-this.pos;if(n>0)yield this.buffer.substr(this.pos,n),this.pos=t;return n}*pushUntil(e){let t=this.pos,s=this.buffer[t];while(!e(s))s=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}wd.Lexer=Kn});var Bs=i(function(kd){class jn{constructor(){this.lineStarts=[],this.addNewLine=(e)=>this.lineStarts.push(e),this.linePos=(e)=>{let t=0,s=this.lineStarts.length;while(t<s){let r=t+s>>1;if(this.lineStarts[r]<e)t=r+1;else s=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let n=this.lineStarts[t-1];return{line:t,col:e-n+1}}}}kd.LineCounter=jn});var Ks=i(function(Od){var Ad=c("process"),Fn=qt(),qd=xs();function H(e,t){for(let s=0;s<e.length;++s)if(e[s].type===t)return!0;return!1}function Rn(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Yn(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Lt(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function ye(e){if(e.length===0)return[];let t=e.length;e:while(--t>=0)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}while(e[++t]?.type==="space");return e.splice(t,e.length)}function Et(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let s=0;s<t.length;++s)e.push(t[s])}function Un(e){if(e.start.type==="flow-seq-start"){for(let t of e.items)if(t.sep&&!t.value&&!H(t.start,"explicit-key-ind")&&!H(t.sep,"map-value-ind")){if(t.key)t.value=t.key;if(delete t.key,Yn(t.value))if(t.value.end)Et(t.value.end,t.sep);else t.value.end=t.sep;else Et(t.start,t.sep);delete t.sep}}}class Vn{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 qd.Lexer,this.onNewLine=e}*parse(e,t=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let s of this.lexer.lex(e,t))yield*this.next(s);if(!t)yield*this.end()}*next(e){if(this.source=e,Ad.env.LOG_TOKENS)console.log("|",Fn.prettyToken(e));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Fn.tokenType(e);if(!t){let s=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:e}),this.offset+=e.length}else if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+e.length);break;case"space":if(this.atNewLine&&e[0]===" ")this.indent+=e.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=e.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{let s=this.peek(1);if(t.type==="block-scalar")t.indent="indent"in s?s.indent:0;else if(t.type==="flow-collection"&&s.type==="document")t.indent=0;if(t.type==="flow-collection")Un(t);switch(s.type){case"document":s.value=t;break;case"block-scalar":s.props.push(t);break;case"block-map":{let n=s.items[s.items.length-1];if(n.value){s.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=s.items[s.items.length-1];if(n.value)s.items.push({start:[],value:t});else n.value=t;break}case"flow-collection":{let n=s.items[s.items.length-1];if(!n||n.value)s.items.push({start:[],key:t,sep:[]});else if(n.sep)n.value=t;else Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let n=t.items[t.items.length-1];if(n&&!n.sep&&!n.value&&n.start.length>0&&Rn(n.start)===-1&&(t.indent===0||n.start.every((r)=>r.type!=="comment"||r.indent<t.indent))){if(s.type==="document")s.end=n.start;else s.items.push({start:n.start});t.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")e.start.push(this.sourceToken);this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{if(Rn(e.start)!==-1)yield*this.pop(),yield*this.step();else e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);if(t)this.stack.push(t);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){let t=Lt(this.peek(2)),s=ye(t),n;if(e.end)n=e.end,n.push(this.sourceToken),delete e.end;else n=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:n}]};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(`
134
+ `)+1;while(t!==0)this.onNewLine(this.offset+t),t=this.source.indexOf(`
135
+ `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let s="end"in t.value?t.value.end:void 0;if((Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment")s?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Et(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let s=!this.onKeyLine&&this.indent===e.indent,n=s&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",r=[];if(n&&t.sep&&!t.value){let o=[];for(let a=0;a<t.sep.length;++a){let l=t.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":if(l.indent>e.indent)o.length=0;break;default:o.length=0}}if(o.length>=2)r=t.sep.splice(o[1])}switch(this.type){case"anchor":case"tag":if(n||t.value)r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0;else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"explicit-key-ind":if(!t.sep&&!t.explicitKey)t.start.push(this.sourceToken),t.explicitKey=!0;else if(n||t.value)r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(!t.sep)if(H(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let o=ye(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(H(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(Yn(t.key)&&!H(t.sep,"newline")){let o=ye(t.start),{key:a,sep:l}=t;l.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:l}]})}else if(r.length>0)t.sep=t.sep.concat(r,this.sourceToken);else t.sep.push(this.sourceToken);else if(!t.sep)Object.assign(t,{key:null,sep:[this.sourceToken]});else if(t.value||n)e.items.push({start:r,key:null,sep:[this.sourceToken]});else if(H(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else t.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);if(n||t.value)e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0;else if(t.sep)this.stack.push(o);else 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&&!H(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(s)e.items.push({start: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 s="end"in t.value?t.value.end:void 0;if((Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment")s?.push(this.sourceToken);else e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Et(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;if(t.value||H(t.start,"seq-item-ind"))e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return}if(this.indent>e.indent){let s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!t||t.sep)e.items.push({start:[this.sourceToken]});else t.start.push(this.sourceToken);return;case"map-value-ind":if(!t||t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!t||t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);if(!t||t.value)e.items.push({start:[],key:n,sep:[]});else if(t.sep)this.stack.push(n);else Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let s=this.startBlockValue(e);if(s)this.stack.push(s);else yield*this.pop(),yield*this.step()}else{let s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){let n=Lt(s),r=ye(n);Un(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(`
136
+ `)+1;while(t!==0)this.onNewLine(this.offset+t),t=this.source.indexOf(`
137
+ `,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=Lt(e),s=ye(t);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Lt(e),s=ye(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){if(this.type!=="comment")return!1;if(this.indent<=t)return!1;return e.every((s)=>s.type==="newline"||s.type==="space")}*documentEnd(e){if(this.type!=="doc-mode"){if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(e.end)e.end.push(this.sourceToken);else e.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}Od.Parser=Vn});var Hn=i(function($d){var Jn=Es(),Ed=Me(),je=$e(),Cd=Bt(),Td=O(),Id=Bs(),Qn=Ks();function Wn(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Id.LineCounter||null,prettyErrors:t}}function Pd(e,t={}){let{lineCounter:s,prettyErrors:n}=Wn(t),r=new Qn.Parser(s?.addNewLine),o=new Jn.Composer(t),a=Array.from(o.compose(r.parse(e)));if(n&&s)for(let l of a)l.errors.forEach(je.prettifyError(e,s)),l.warnings.forEach(je.prettifyError(e,s));if(a.length>0)return a;return Object.assign([],{empty:!0},o.streamInfo())}function Gn(e,t={}){let{lineCounter:s,prettyErrors:n}=Wn(t),r=new Qn.Parser(s?.addNewLine),o=new Jn.Composer(t),a=null;for(let l of o.compose(r.parse(e),!0,e.length))if(!a)a=l;else if(a.options.logLevel!=="silent"){a.errors.push(new je.YAMLParseError(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(n&&s)a.errors.forEach(je.prettifyError(e,s)),a.warnings.forEach(je.prettifyError(e,s));return a}function _d(e,t,s){let n=void 0;if(typeof t==="function")n=t;else if(s===void 0&&t&&typeof t==="object")s=t;let r=Gn(e,s);if(!r)return null;if(r.warnings.forEach((o)=>Cd.warn(r.options.logLevel,o)),r.errors.length>0)if(r.options.logLevel!=="silent")throw r.errors[0];else r.errors=[];return r.toJS(Object.assign({reviver:n},s))}function Md(e,t,s){let n=null;if(typeof t==="function"||Array.isArray(t))n=t;else if(s===void 0&&t)s=t;if(typeof s==="string")s=s.length;if(typeof s==="number"){let r=Math.round(s);s=r<1?void 0:r>8?{indent:8}:{indent:r}}if(e===void 0){let{keepUndefined:r}=s??t??{};if(!r)return}if(Td.isDocument(e)&&!n)return e.toString(s);return new Ed.Document(e,n,s).toString(s)}$d.parse=_d;$d.parseAllDocuments=Pd;$d.parseDocument=Gn;$d.stringify=Md});var X={};AS(X,{Composer:()=>zn,Document:()=>Zn,Schema:()=>er,YAMLError:()=>tr,YAMLParseError:()=>sr,YAMLWarning:()=>ir,Alias:()=>nr,isAlias:()=>rr,isCollection:()=>or,isDocument:()=>ar,isMap:()=>lr,isNode:()=>cr,isPair:()=>fr,isScalar:()=>ur,isSeq:()=>hr,Pair:()=>dr,Scalar:()=>pr,YAMLMap:()=>mr,YAMLSeq:()=>gr,CST:()=>yr,Lexer:()=>br,LineCounter:()=>Sr,Parser:()=>wr,parse:()=>vr,parseAllDocuments:()=>kr,parseDocument:()=>Nr,stringify:()=>Ar,visit:()=>qr,visitAsync:()=>Or},{Composer:(mm)=>zn=mm,Document:(mm)=>Zn=mm,Schema:(mm)=>er=mm,YAMLError:(mm)=>tr=mm,YAMLParseError:(mm)=>sr=mm,YAMLWarning:(mm)=>ir=mm,Alias:(mm)=>nr=mm,isAlias:(mm)=>rr=mm,isCollection:(mm)=>or=mm,isDocument:(mm)=>ar=mm,isMap:(mm)=>lr=mm,isNode:(mm)=>cr=mm,isPair:(mm)=>fr=mm,isScalar:(mm)=>ur=mm,isSeq:(mm)=>hr=mm,Pair:(mm)=>dr=mm,Scalar:(mm)=>pr=mm,YAMLMap:(mm)=>mr=mm,YAMLSeq:(mm)=>gr=mm,CST:(mm)=>yr=mm,Lexer:(mm)=>br=mm,LineCounter:(mm)=>Sr=mm,Parser:(mm)=>wr=mm,parse:(mm)=>vr=mm,parseAllDocuments:(mm)=>kr=mm,parseDocument:(mm)=>Nr=mm,stringify:(mm)=>Ar=mm,visit:(mm)=>qr=mm,visitAsync:(mm)=>Or=mm});var jd=Es(),Fd=Me(),Rd=hs(),js=$e(),Ud=we(),z=O(),Yd=J(),Vd=E(),Jd=W(),Qd=G(),Wd=qt(),Gd=xs(),Hd=Bs(),Xd=Ks(),Ct=Hn(),Xn=be();var zn=jd.Composer,Zn=Fd.Document,er=Rd.Schema,{YAMLError:tr,YAMLParseError:sr,YAMLWarning:ir}=js,nr=Ud.Alias,{isAlias:rr,isCollection:or,isDocument:ar,isMap:lr,isNode:cr,isPair:fr,isScalar:ur,isSeq:hr}=z,dr=Yd.Pair,pr=Vd.Scalar,mr=Jd.YAMLMap,gr=Qd.YAMLSeq,yr=Wd,br=Gd.Lexer,Sr=Hd.LineCounter,wr=Xd.Parser,{parse:vr,parseAllDocuments:kr,parseDocument:Nr,stringify:Ar}=Ct,{visit:qr,visitAsync:Or}=Xn;export{X};