@dendelion/paper-camp 0.13.2 → 0.15.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 (75) hide show
  1. package/dist/app/assets/index-2ahHj0hk.js +7 -0
  2. package/dist/app/assets/index-2ahHj0hk.js.map +1 -0
  3. package/dist/app/assets/{index-CPoqe3xq.js → index-BSp1FE97.js} +2 -2
  4. package/dist/app/assets/{index-CPoqe3xq.js.map → index-BSp1FE97.js.map} +1 -1
  5. package/dist/app/assets/{index-ChVvOU5G.js → index-BTyua-6D.js} +3 -3
  6. package/dist/app/assets/{index-ChVvOU5G.js.map → index-BTyua-6D.js.map} +1 -1
  7. package/dist/app/assets/{index-CvQKE4RC.js → index-Bi4fur5H.js} +2 -2
  8. package/dist/app/assets/{index-CvQKE4RC.js.map → index-Bi4fur5H.js.map} +1 -1
  9. package/dist/app/assets/index-Bo0V9-3F.js +2 -0
  10. package/dist/app/assets/index-Bo0V9-3F.js.map +1 -0
  11. package/dist/app/assets/index-Cz9HEIaO.js +2 -0
  12. package/dist/app/assets/index-Cz9HEIaO.js.map +1 -0
  13. package/dist/app/assets/{index-jTvzs7JN.js → index-DKjtMMrA.js} +2 -2
  14. package/dist/app/assets/{index-jTvzs7JN.js.map → index-DKjtMMrA.js.map} +1 -1
  15. package/dist/app/assets/main-BW24wv9K.js +207 -0
  16. package/dist/app/assets/main-BW24wv9K.js.map +1 -0
  17. package/dist/app/assets/main-C-ynmROL.css +1 -0
  18. package/dist/app/assets/{sidebar-section-X7KA8eUz.js → sidebar-section-BHLbvk_X.js} +2 -2
  19. package/dist/app/assets/{sidebar-section-X7KA8eUz.js.map → sidebar-section-BHLbvk_X.js.map} +1 -1
  20. package/dist/app/index.html +6 -6
  21. package/dist/app/toolbar.js +11684 -0
  22. package/dist/app/toolbar.js.map +1 -0
  23. package/dist/chunks/dev-port.CEt1H9LA.js +35 -0
  24. package/dist/chunks/dev-port.CEt1H9LA.js.map +1 -0
  25. package/dist/chunks/{scaffold.DTcLEZRV.js → parked-questions.BoAnCnQA.js} +827 -725
  26. package/dist/chunks/parked-questions.BoAnCnQA.js.map +1 -0
  27. package/dist/cli/index.js +9165 -8877
  28. package/dist/cli/index.js.map +1 -1
  29. package/dist/core/index.d.ts +2 -0
  30. package/dist/core/index.d.ts.map +1 -1
  31. package/dist/core/index.js +83 -75
  32. package/dist/core/parked-questions.d.ts +6 -0
  33. package/dist/core/parked-questions.d.ts.map +1 -0
  34. package/dist/core/parked-questions.test.d.ts +2 -0
  35. package/dist/core/parked-questions.test.d.ts.map +1 -0
  36. package/dist/core/parse/parser.d.ts.map +1 -1
  37. package/dist/core/parse/schemas.d.ts +9 -0
  38. package/dist/core/parse/schemas.d.ts.map +1 -1
  39. package/dist/core/readers.d.ts.map +1 -1
  40. package/dist/core/release-notes.d.ts +4 -0
  41. package/dist/core/release-notes.d.ts.map +1 -0
  42. package/dist/core/release-notes.test.d.ts +2 -0
  43. package/dist/core/release-notes.test.d.ts.map +1 -0
  44. package/dist/core/serialize/serializer.d.ts +1 -0
  45. package/dist/core/serialize/serializer.d.ts.map +1 -1
  46. package/dist/core/thread.d.ts +8 -0
  47. package/dist/core/thread.d.ts.map +1 -1
  48. package/dist/core/thread.test.d.ts +2 -0
  49. package/dist/core/thread.test.d.ts.map +1 -0
  50. package/dist/core/trail.d.ts +6 -0
  51. package/dist/core/trail.d.ts.map +1 -1
  52. package/dist/types/index.d.ts +54 -2
  53. package/dist/types/index.d.ts.map +1 -1
  54. package/dist/types/index.js +15 -13
  55. package/dist/types/index.js.map +1 -1
  56. package/dist/vite/index.d.ts +8 -0
  57. package/dist/vite/index.d.ts.map +1 -0
  58. package/dist/vite/index.js +49 -0
  59. package/dist/vite/index.js.map +1 -0
  60. package/dist/vite/index.test.d.ts +2 -0
  61. package/dist/vite/index.test.d.ts.map +1 -0
  62. package/dist/vite/proxy.d.ts +7 -0
  63. package/dist/vite/proxy.d.ts.map +1 -0
  64. package/dist/vite/proxy.test.d.ts +2 -0
  65. package/dist/vite/proxy.test.d.ts.map +1 -0
  66. package/dist/vite.d.ts +6 -0
  67. package/package.json +16 -4
  68. package/dist/app/assets/index-CSirjtoU.js +0 -2
  69. package/dist/app/assets/index-CSirjtoU.js.map +0 -1
  70. package/dist/app/assets/index-D7DjxVq7.js +0 -2
  71. package/dist/app/assets/index-D7DjxVq7.js.map +0 -1
  72. package/dist/app/assets/main-CZ1b3UwB.css +0 -1
  73. package/dist/app/assets/main-CezpONOg.js +0 -207
  74. package/dist/app/assets/main-CezpONOg.js.map +0 -1
  75. package/dist/chunks/scaffold.DTcLEZRV.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import { spawn as K } from "node:child_process";
2
- import { readdir as ws, readFile as pe, stat as Ln, writeFile as z, mkdir as le, rename as _n, access as Pn } from "node:fs/promises";
3
- import { join as A, dirname as Rn } from "node:path";
4
- import { AGENT_IDS as Ae, PLAN_KINDS as Dn } from "../types/index.js";
5
- import { createHash as Mn } from "node:crypto";
2
+ import { readdir as ws, readFile as pe, stat as _n, writeFile as x, mkdir as le, rename as Pn, access as Rn } from "node:fs/promises";
3
+ import { join as $, dirname as Dn } from "node:path";
4
+ import { AGENT_IDS as Oe, PLAN_KINDS as Mn } from "../types/index.js";
5
+ import { createHash as jn } from "node:crypto";
6
6
  import { z as b } from "zod";
7
- const jn = /^([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*)$/;
8
- function Bn(s) {
7
+ const Bn = /^([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*)$/;
8
+ function Kn(s) {
9
9
  return s.length >= 2 && (s.startsWith('"') && s.endsWith('"') || s.startsWith("'") && s.endsWith("'")) ? s.slice(1, -1) : s;
10
10
  }
11
11
  function es(s) {
@@ -14,10 +14,10 @@ function es(s) {
14
14
  function bs(s) {
15
15
  const e = s.trim();
16
16
  if (!e || e.startsWith("#")) return null;
17
- const t = e.match(jn);
18
- return t ? { key: t[1], value: Bn(t[2]) } : null;
17
+ const t = e.match(Bn);
18
+ return t ? { key: t[1], value: Kn(t[2]) } : null;
19
19
  }
20
- function Mo(s) {
20
+ function Vo(s) {
21
21
  const e = [];
22
22
  for (const t of s.split(`
23
23
  `)) {
@@ -26,7 +26,7 @@ function Mo(s) {
26
26
  }
27
27
  return e;
28
28
  }
29
- function jo(s, e) {
29
+ function Jo(s, e) {
30
30
  const t = new Map(e.map((r) => [r.key, r.value])), n = s.length > 0 ? s.split(`
31
31
  `) : [], i = [];
32
32
  for (const r of n) {
@@ -44,13 +44,13 @@ function jo(s, e) {
44
44
  `)}
45
45
  ` : "";
46
46
  }
47
- const gt = /* @__PURE__ */ new Map(), Kn = 5 * 60 * 1e3, Fn = {
47
+ const yt = /* @__PURE__ */ new Map(), Fn = 5 * 60 * 1e3, qn = {
48
48
  APPROVED: "approved",
49
49
  CHANGES_REQUESTED: "changes-requested",
50
50
  REVIEW_REQUIRED: "review-required"
51
51
  };
52
- function qn(s) {
53
- const e = s.state === "MERGED" ? "merged" : s.state === "CLOSED" ? "closed" : s.isDraft ? "draft" : "open", t = Fn[s.reviewDecision];
52
+ function Un(s) {
53
+ const e = s.state === "MERGED" ? "merged" : s.state === "CLOSED" ? "closed" : s.isDraft ? "draft" : "open", t = qn[s.reviewDecision];
54
54
  return { number: s.number, url: s.url, state: e, ...t && { reviewDecision: t } };
55
55
  }
56
56
  const ts = { merged: 4, open: 3, draft: 2, closed: 1 };
@@ -60,7 +60,7 @@ function ks(s, e) {
60
60
  const n = e == null ? void 0 : e.match(/^[a-z]+\/([a-z]+-\d+)-/);
61
61
  return n ? n[1].toUpperCase() : null;
62
62
  }
63
- const Un = `
63
+ const Yn = `
64
64
  query($owner: String!, $repo: String!, $number: Int!) {
65
65
  repository(owner: $owner, name: $repo) {
66
66
  pullRequest(number: $number) {
@@ -77,7 +77,7 @@ function $t(s) {
77
77
  const [, t, n, i] = e;
78
78
  return { owner: t, repo: n, number: i };
79
79
  }
80
- const Yn = 15e3;
80
+ const Hn = 15e3;
81
81
  function Ss(s, e) {
82
82
  return new Promise((t) => {
83
83
  var c, l;
@@ -87,7 +87,7 @@ function Ss(s, e) {
87
87
  i || (i = !0, clearTimeout(o), u());
88
88
  }, o = setTimeout(() => {
89
89
  n.kill(), r(() => t(void 0));
90
- }, Yn);
90
+ }, Hn);
91
91
  let a = "";
92
92
  (c = n.stdout) == null || c.on("data", (u) => {
93
93
  a += u.toString();
@@ -128,16 +128,16 @@ function Ns(s, e, t) {
128
128
  function Is(s, e) {
129
129
  return Ss(s, ["api", "graphql", ...e]);
130
130
  }
131
- async function Hn(s, e) {
131
+ async function Gn(s, e) {
132
132
  var l, u, f, h, p;
133
133
  const t = $t(e);
134
134
  if (!t) return;
135
- const n = await Es(s, Un, t.owner, t.repo, t.number), i = (u = (l = n == null ? void 0 : n.data) == null ? void 0 : l.repository) == null ? void 0 : u.pullRequest;
135
+ const n = await Es(s, Yn, t.owner, t.repo, t.number), i = (u = (l = n == null ? void 0 : n.data) == null ? void 0 : l.repository) == null ? void 0 : u.pullRequest;
136
136
  if (!i) return;
137
137
  const r = i.reviewThreads.nodes.filter((g) => !g.isResolved).length, o = (f = i.commits.nodes[0]) == null ? void 0 : f.commit.committedDate, a = [(h = i.comments.nodes[0]) == null ? void 0 : h.createdAt, (p = i.reviews.nodes[0]) == null ? void 0 : p.createdAt].filter((g) => !!g).sort().at(-1), c = !!(o && a && a > o);
138
138
  return { unresolvedThreadCount: r, hasNewCommentsSincePush: c };
139
139
  }
140
- const Gn = `
140
+ const Vn = `
141
141
  query($owner: String!, $repo: String!, $number: Int!) {
142
142
  repository(owner: $owner, name: $repo) {
143
143
  pullRequest(number: $number) {
@@ -151,11 +151,11 @@ query($owner: String!, $repo: String!, $number: Int!) {
151
151
  }
152
152
  }
153
153
  }`;
154
- async function Bo(s, e) {
154
+ async function Wo(s, e) {
155
155
  var r, o, a;
156
156
  const t = $t(e);
157
157
  if (!t) return [];
158
- const n = await Es(s, Gn, t.owner, t.repo, t.number);
158
+ const n = await Es(s, Vn, t.owner, t.repo, t.number);
159
159
  return (((a = (o = (r = n == null ? void 0 : n.data) == null ? void 0 : r.repository) == null ? void 0 : o.pullRequest) == null ? void 0 : a.reviewThreads.nodes) ?? []).filter((c) => !c.isResolved).map((c) => ({ id: c.id, comment: c.comments.nodes[0] })).filter((c) => !!c.comment).map(({ id: c, comment: l }) => {
160
160
  var u;
161
161
  return {
@@ -167,31 +167,31 @@ async function Bo(s, e) {
167
167
  };
168
168
  });
169
169
  }
170
- const Vn = `
170
+ const Jn = `
171
171
  mutation($threadId: ID!) {
172
172
  resolveReviewThread(input: { threadId: $threadId }) {
173
173
  thread { id isResolved }
174
174
  }
175
- }`, Jn = `
175
+ }`, Wn = `
176
176
  mutation($threadId: ID!, $body: String!) {
177
177
  addPullRequestReviewThreadReply(input: { pullRequestReviewThreadId: $threadId, body: $body }) {
178
178
  comment { id }
179
179
  }
180
180
  }`;
181
- async function Ko(s, e) {
181
+ async function xo(s, e) {
182
182
  var n, i, r;
183
- const t = await Ns(s, Vn, { threadId: e });
183
+ const t = await Ns(s, Jn, { threadId: e });
184
184
  return !!((r = (i = (n = t == null ? void 0 : t.data) == null ? void 0 : n.resolveReviewThread) == null ? void 0 : i.thread) != null && r.isResolved);
185
185
  }
186
- async function Fo(s, e, t) {
186
+ async function zo(s, e, t) {
187
187
  var i, r, o;
188
- const n = await Ns(s, Jn, { threadId: e, body: t });
188
+ const n = await Ns(s, Wn, { threadId: e, body: t });
189
189
  return !!((o = (r = (i = n == null ? void 0 : n.data) == null ? void 0 : i.addPullRequestReviewThreadReply) == null ? void 0 : r.comment) != null && o.id);
190
190
  }
191
- async function Wn(s, e) {
191
+ async function xn(s, e) {
192
192
  const t = [...e.entries()].filter(
193
193
  ([, i]) => i.state === "open" || i.state === "draft"
194
- ), n = await Promise.all(t.map(([, i]) => Hn(s, i.url)));
194
+ ), n = await Promise.all(t.map(([, i]) => Gn(s, i.url)));
195
195
  t.forEach(([i, r], o) => {
196
196
  const a = n[o];
197
197
  a && e.set(i, { ...r, ...a });
@@ -213,25 +213,25 @@ async function zn(s) {
213
213
  for (const n of e) {
214
214
  const i = ks(n.body, n.headRefName);
215
215
  if (!i) continue;
216
- const r = qn(n), o = t.get(i);
216
+ const r = Un(n), o = t.get(i);
217
217
  (!o || ts[r.state] > ts[o.state]) && t.set(i, r);
218
218
  }
219
- return await Wn(s, t), t;
219
+ return await xn(s, t), t;
220
220
  }
221
- async function Ts(s, e = Kn) {
222
- const t = gt.get(s);
221
+ async function Ts(s, e = Fn) {
222
+ const t = yt.get(s);
223
223
  if (t && Date.now() - t.fetchedAt < e) return t.prs;
224
224
  const n = await zn(s);
225
- return n !== void 0 && gt.set(s, { prs: n, fetchedAt: Date.now() }), n;
225
+ return n !== void 0 && yt.set(s, { prs: n, fetchedAt: Date.now() }), n;
226
226
  }
227
- function qo() {
228
- gt.clear();
227
+ function Qo() {
228
+ yt.clear();
229
229
  }
230
- const At = Symbol.for("yaml.alias"), yt = Symbol.for("yaml.document"), x = Symbol.for("yaml.map"), $s = Symbol.for("yaml.pair"), H = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), B = Symbol.for("yaml.node.type"), ge = (s) => !!s && typeof s == "object" && s[B] === At, ve = (s) => !!s && typeof s == "object" && s[B] === yt, Oe = (s) => !!s && typeof s == "object" && s[B] === x, _ = (s) => !!s && typeof s == "object" && s[B] === $s, O = (s) => !!s && typeof s == "object" && s[B] === H, Ce = (s) => !!s && typeof s == "object" && s[B] === me;
230
+ const At = Symbol.for("yaml.alias"), wt = Symbol.for("yaml.document"), z = Symbol.for("yaml.map"), $s = Symbol.for("yaml.pair"), H = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), B = Symbol.for("yaml.node.type"), ge = (s) => !!s && typeof s == "object" && s[B] === At, Ce = (s) => !!s && typeof s == "object" && s[B] === wt, Le = (s) => !!s && typeof s == "object" && s[B] === z, _ = (s) => !!s && typeof s == "object" && s[B] === $s, O = (s) => !!s && typeof s == "object" && s[B] === H, _e = (s) => !!s && typeof s == "object" && s[B] === me;
231
231
  function C(s) {
232
232
  if (s && typeof s == "object")
233
233
  switch (s[B]) {
234
- case x:
234
+ case z:
235
235
  case me:
236
236
  return !0;
237
237
  }
@@ -241,25 +241,25 @@ function L(s) {
241
241
  if (s && typeof s == "object")
242
242
  switch (s[B]) {
243
243
  case At:
244
- case x:
244
+ case z:
245
245
  case H:
246
246
  case me:
247
247
  return !0;
248
248
  }
249
249
  return !1;
250
250
  }
251
- const As = (s) => (O(s) || C(s)) && !!s.anchor, X = Symbol("break visit"), xn = Symbol("skip children"), Ne = Symbol("remove node");
251
+ const As = (s) => (O(s) || C(s)) && !!s.anchor, X = Symbol("break visit"), Qn = Symbol("skip children"), Te = Symbol("remove node");
252
252
  function ye(s, e) {
253
- const t = Qn(e);
254
- ve(s) ? re(null, s.contents, t, Object.freeze([s])) === Ne && (s.contents = null) : re(null, s, t, Object.freeze([]));
253
+ const t = Xn(e);
254
+ Ce(s) ? re(null, s.contents, t, Object.freeze([s])) === Te && (s.contents = null) : re(null, s, t, Object.freeze([]));
255
255
  }
256
256
  ye.BREAK = X;
257
- ye.SKIP = xn;
258
- ye.REMOVE = Ne;
257
+ ye.SKIP = Qn;
258
+ ye.REMOVE = Te;
259
259
  function re(s, e, t, n) {
260
- const i = Xn(s, e, t, n);
260
+ const i = Zn(s, e, t, n);
261
261
  if (L(i) || _(i))
262
- return Zn(s, n, i), re(s, i, t, n);
262
+ return ei(s, n, i), re(s, i, t, n);
263
263
  if (typeof i != "symbol") {
264
264
  if (C(e)) {
265
265
  n = Object.freeze(n.concat(e));
@@ -270,7 +270,7 @@ function re(s, e, t, n) {
270
270
  else {
271
271
  if (o === X)
272
272
  return X;
273
- o === Ne && (e.items.splice(r, 1), r -= 1);
273
+ o === Te && (e.items.splice(r, 1), r -= 1);
274
274
  }
275
275
  }
276
276
  } else if (_(e)) {
@@ -278,16 +278,16 @@ function re(s, e, t, n) {
278
278
  const r = re("key", e.key, t, n);
279
279
  if (r === X)
280
280
  return X;
281
- r === Ne && (e.key = null);
281
+ r === Te && (e.key = null);
282
282
  const o = re("value", e.value, t, n);
283
283
  if (o === X)
284
284
  return X;
285
- o === Ne && (e.value = null);
285
+ o === Te && (e.value = null);
286
286
  }
287
287
  }
288
288
  return i;
289
289
  }
290
- function Qn(s) {
290
+ function Xn(s) {
291
291
  return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
292
292
  Alias: s.Node,
293
293
  Map: s.Node,
@@ -302,13 +302,13 @@ function Qn(s) {
302
302
  Seq: s.Collection
303
303
  }, s) : s;
304
304
  }
305
- function Xn(s, e, t, n) {
305
+ function Zn(s, e, t, n) {
306
306
  var i, r, o, a, c;
307
307
  if (typeof t == "function")
308
308
  return t(s, e, n);
309
- if (Oe(e))
309
+ if (Le(e))
310
310
  return (i = t.Map) == null ? void 0 : i.call(t, s, e, n);
311
- if (Ce(e))
311
+ if (_e(e))
312
312
  return (r = t.Seq) == null ? void 0 : r.call(t, s, e, n);
313
313
  if (_(e))
314
314
  return (o = t.Pair) == null ? void 0 : o.call(t, s, e, n);
@@ -317,27 +317,27 @@ function Xn(s, e, t, n) {
317
317
  if (ge(e))
318
318
  return (c = t.Alias) == null ? void 0 : c.call(t, s, e, n);
319
319
  }
320
- function Zn(s, e, t) {
320
+ function ei(s, e, t) {
321
321
  const n = e[e.length - 1];
322
322
  if (C(n))
323
323
  n.items[s] = t;
324
324
  else if (_(n))
325
325
  s === "key" ? n.key = t : n.value = t;
326
- else if (ve(n))
326
+ else if (Ce(n))
327
327
  n.contents = t;
328
328
  else {
329
329
  const i = ge(n) ? "alias" : "scalar";
330
330
  throw new Error(`Cannot replace node with ${i} parent`);
331
331
  }
332
332
  }
333
- const ei = {
333
+ const ti = {
334
334
  "!": "%21",
335
335
  ",": "%2C",
336
336
  "[": "%5B",
337
337
  "]": "%5D",
338
338
  "{": "%7B",
339
339
  "}": "%7D"
340
- }, ti = (s) => s.replace(/[!,[\]{}]/g, (e) => ei[e]);
340
+ }, si = (s) => s.replace(/[!,[\]{}]/g, (e) => ti[e]);
341
341
  class R {
342
342
  constructor(e, t) {
343
343
  this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, R.defaultYaml, e), this.tags = Object.assign({}, R.defaultTags, t);
@@ -427,7 +427,7 @@ class R {
427
427
  tagString(e) {
428
428
  for (const [t, n] of Object.entries(this.tags))
429
429
  if (e.startsWith(n))
430
- return t + ti(e.substring(n.length));
430
+ return t + si(e.substring(n.length));
431
431
  return e[0] === "!" ? e : `!<${e}>`;
432
432
  }
433
433
  toString(e) {
@@ -470,7 +470,7 @@ function Cs(s, e) {
470
470
  return n;
471
471
  }
472
472
  }
473
- function si(s, e) {
473
+ function ni(s, e) {
474
474
  const t = [], n = /* @__PURE__ */ new Map();
475
475
  let i = null;
476
476
  return {
@@ -548,7 +548,7 @@ class vt {
548
548
  }
549
549
  /** A plain JavaScript representation of this node. */
550
550
  toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: i, reviver: r } = {}) {
551
- if (!ve(e))
551
+ if (!Ce(e))
552
552
  throw new TypeError("A document argument is required");
553
553
  const o = {
554
554
  anchors: /* @__PURE__ */ new Map(),
@@ -606,7 +606,7 @@ class Ot extends vt {
606
606
  const c = "This should not happen: Alias anchor was not resolved?";
607
607
  throw new ReferenceError(c);
608
608
  }
609
- if (r >= 0 && (a.count += 1, a.aliasCount === 0 && (a.aliasCount = qe(i, o, n)), a.count * a.aliasCount > r)) {
609
+ if (r >= 0 && (a.count += 1, a.aliasCount === 0 && (a.aliasCount = Ye(i, o, n)), a.count * a.aliasCount > r)) {
610
610
  const c = "Excessive alias count indicates a resource exhaustion attack";
611
611
  throw new ReferenceError(c);
612
612
  }
@@ -625,19 +625,19 @@ class Ot extends vt {
625
625
  return i;
626
626
  }
627
627
  }
628
- function qe(s, e, t) {
628
+ function Ye(s, e, t) {
629
629
  if (ge(e)) {
630
630
  const n = e.resolve(s), i = t && n && t.get(n);
631
631
  return i ? i.count * i.aliasCount : 0;
632
632
  } else if (C(e)) {
633
633
  let n = 0;
634
634
  for (const i of e.items) {
635
- const r = qe(s, i, t);
635
+ const r = Ye(s, i, t);
636
636
  r > n && (n = r);
637
637
  }
638
638
  return n;
639
639
  } else if (_(e)) {
640
- const n = qe(s, e.key, t), i = qe(s, e.value, t);
640
+ const n = Ye(s, e.key, t), i = Ye(s, e.value, t);
641
641
  return Math.max(n, i);
642
642
  }
643
643
  return 1;
@@ -659,8 +659,8 @@ I.BLOCK_LITERAL = "BLOCK_LITERAL";
659
659
  I.PLAIN = "PLAIN";
660
660
  I.QUOTE_DOUBLE = "QUOTE_DOUBLE";
661
661
  I.QUOTE_SINGLE = "QUOTE_SINGLE";
662
- const ni = "tag:yaml.org,2002:";
663
- function ii(s, e, t) {
662
+ const ii = "tag:yaml.org,2002:";
663
+ function ri(s, e, t) {
664
664
  if (e) {
665
665
  const n = t.filter((r) => r.tag === e), i = n.find((r) => !r.format) ?? n[0];
666
666
  if (!i)
@@ -672,12 +672,12 @@ function ii(s, e, t) {
672
672
  return ((i = n.identify) == null ? void 0 : i.call(n, s)) && !n.format;
673
673
  });
674
674
  }
675
- function Te(s, e, t) {
675
+ function Ae(s, e, t) {
676
676
  var f, h, p;
677
- if (ve(s) && (s = s.contents), L(s))
677
+ if (Ce(s) && (s = s.contents), L(s))
678
678
  return s;
679
679
  if (_(s)) {
680
- const g = (h = (f = t.schema[x]).createNode) == null ? void 0 : h.call(f, t.schema, null, t);
680
+ const g = (h = (f = t.schema[z]).createNode) == null ? void 0 : h.call(f, t.schema, null, t);
681
681
  return g.items.push(s), g;
682
682
  }
683
683
  (s instanceof String || s instanceof Number || s instanceof Boolean || typeof BigInt < "u" && s instanceof BigInt) && (s = s.valueOf());
@@ -688,20 +688,20 @@ function Te(s, e, t) {
688
688
  return c.anchor ?? (c.anchor = i(s)), new Ot(c.anchor);
689
689
  c = { anchor: null, node: null }, a.set(s, c);
690
690
  }
691
- e != null && e.startsWith("!!") && (e = ni + e.slice(2));
692
- let l = ii(s, e, o.tags);
691
+ e != null && e.startsWith("!!") && (e = ii + e.slice(2));
692
+ let l = ri(s, e, o.tags);
693
693
  if (!l) {
694
694
  if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
695
695
  const g = new I(s);
696
696
  return c && (c.node = g), g;
697
697
  }
698
- l = s instanceof Map ? o[x] : Symbol.iterator in Object(s) ? o[me] : o[x];
698
+ l = s instanceof Map ? o[z] : Symbol.iterator in Object(s) ? o[me] : o[z];
699
699
  }
700
700
  r && (r(l), delete t.onTagObj);
701
701
  const u = l != null && l.createNode ? l.createNode(t.schema, s, t) : typeof ((p = l == null ? void 0 : l.nodeClass) == null ? void 0 : p.from) == "function" ? l.nodeClass.from(t.schema, s, t) : new I(s);
702
702
  return e ? u.tag = e : l.default || (u.tag = l.tag), c && (c.node = u), u;
703
703
  }
704
- function Ge(s, e, t) {
704
+ function Je(s, e, t) {
705
705
  let n = t;
706
706
  for (let i = e.length - 1; i >= 0; --i) {
707
707
  const r = e[i];
@@ -711,7 +711,7 @@ function Ge(s, e, t) {
711
711
  } else
712
712
  n = /* @__PURE__ */ new Map([[r, n]]);
713
713
  }
714
- return Te(n, void 0, {
714
+ return Ae(n, void 0, {
715
715
  aliasDuplicateObjects: !1,
716
716
  keepUndefined: !1,
717
717
  onAnchor: () => {
@@ -721,7 +721,7 @@ function Ge(s, e, t) {
721
721
  sourceObjects: /* @__PURE__ */ new Map()
722
722
  });
723
723
  }
724
- const Se = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
724
+ const Ne = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
725
725
  class _s extends vt {
726
726
  constructor(e, t) {
727
727
  super(e), Object.defineProperty(this, "schema", {
@@ -746,14 +746,14 @@ class _s extends vt {
746
746
  * that already exists in the map.
747
747
  */
748
748
  addIn(e, t) {
749
- if (Se(e))
749
+ if (Ne(e))
750
750
  this.add(t);
751
751
  else {
752
752
  const [n, ...i] = e, r = this.get(n, !0);
753
753
  if (C(r))
754
754
  r.addIn(i, t);
755
755
  else if (r === void 0 && this.schema)
756
- this.set(n, Ge(this.schema, i, t));
756
+ this.set(n, Je(this.schema, i, t));
757
757
  else
758
758
  throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
759
759
  }
@@ -811,21 +811,21 @@ class _s extends vt {
811
811
  if (C(r))
812
812
  r.setIn(i, t);
813
813
  else if (r === void 0 && this.schema)
814
- this.set(n, Ge(this.schema, i, t));
814
+ this.set(n, Je(this.schema, i, t));
815
815
  else
816
816
  throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
817
817
  }
818
818
  }
819
819
  }
820
- const ri = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
820
+ const oi = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
821
821
  function V(s, e) {
822
822
  return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
823
823
  }
824
824
  const Z = (s, e, t) => s.endsWith(`
825
825
  `) ? V(t, e) : t.includes(`
826
826
  `) ? `
827
- ` + V(t, e) : (s.endsWith(" ") ? "" : " ") + t, Ps = "flow", wt = "block", Ue = "quoted";
828
- function Qe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: a } = {}) {
827
+ ` + V(t, e) : (s.endsWith(" ") ? "" : " ") + t, Ps = "flow", bt = "block", He = "quoted";
828
+ function et(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: a } = {}) {
829
829
  if (!i || i < 0)
830
830
  return s;
831
831
  i < r && (r = 0);
@@ -836,9 +836,9 @@ function Qe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
836
836
  let f = i - e.length;
837
837
  typeof n == "number" && (n > i - Math.max(2, r) ? l.push(0) : f = i - n);
838
838
  let h, p, g = !1, d = -1, m = -1, y = -1;
839
- t === wt && (d = ss(s, d, e.length), d !== -1 && (f = d + c));
839
+ t === bt && (d = ss(s, d, e.length), d !== -1 && (f = d + c));
840
840
  for (let E; E = s[d += 1]; ) {
841
- if (t === Ue && E === "\\") {
841
+ if (t === He && E === "\\") {
842
842
  switch (m = d, s[d + 1]) {
843
843
  case "x":
844
844
  d += 3;
@@ -856,7 +856,7 @@ function Qe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
856
856
  }
857
857
  if (E === `
858
858
  `)
859
- t === wt && (d = ss(s, d, e.length)), f = d + e.length + c, h = void 0;
859
+ t === bt && (d = ss(s, d, e.length)), f = d + e.length + c, h = void 0;
860
860
  else {
861
861
  if (E === " " && p && p !== " " && p !== `
862
862
  ` && p !== " ") {
@@ -867,7 +867,7 @@ function Qe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
867
867
  if (d >= f)
868
868
  if (h)
869
869
  l.push(h), f = h + c, h = void 0;
870
- else if (t === Ue) {
870
+ else if (t === He) {
871
871
  for (; p === " " || p === " "; )
872
872
  p = E, E = s[d += 1], g = !0;
873
873
  const S = d > y + 1 ? d - 2 : m - 1;
@@ -886,7 +886,7 @@ function Qe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
886
886
  for (let E = 0; E < l.length; ++E) {
887
887
  const S = l[E], N = l[E + 1] || s.length;
888
888
  S === 0 ? w = `
889
- ${e}${s.slice(0, N)}` : (t === Ue && u[S] && (w += `${s[S]}\\`), w += `
889
+ ${e}${s.slice(0, N)}` : (t === He && u[S] && (w += `${s[S]}\\`), w += `
890
890
  ${e}${s.slice(S + 1, N)}`);
891
891
  }
892
892
  return w;
@@ -905,12 +905,12 @@ function ss(s, e, t) {
905
905
  }
906
906
  return n;
907
907
  }
908
- const Xe = (s, e) => ({
908
+ const tt = (s, e) => ({
909
909
  indentAtStart: e ? s.indent.length : s.indentAtStart,
910
910
  lineWidth: s.options.lineWidth,
911
911
  minContentWidth: s.options.minContentWidth
912
- }), Ze = (s) => /^(%|---|\.\.\.)/m.test(s);
913
- function oi(s, e, t) {
912
+ }), st = (s) => /^(%|---|\.\.\.)/m.test(s);
913
+ function ai(s, e, t) {
914
914
  if (!e || e < 0)
915
915
  return !1;
916
916
  const n = e - t, i = s.length;
@@ -926,11 +926,11 @@ function oi(s, e, t) {
926
926
  }
927
927
  return !0;
928
928
  }
929
- function Ie(s, e) {
929
+ function $e(s, e) {
930
930
  const t = JSON.stringify(s);
931
931
  if (e.options.doubleQuotedAsJSON)
932
932
  return t;
933
- const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (Ze(s) ? " " : "");
933
+ const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (st(s) ? " " : "");
934
934
  let o = "", a = 0;
935
935
  for (let c = 0, l = t[c]; l; l = t[++c])
936
936
  if (l === " " && t[c + 1] === "\\" && t[c + 2] === "n" && (o += t.slice(a, c) + "\\ ", c += 1, a = c, l = "\\"), l === "\\")
@@ -985,41 +985,41 @@ function Ie(s, e) {
985
985
  default:
986
986
  c += 1;
987
987
  }
988
- return o = a ? o + t.slice(a) : t, n ? o : Qe(o, r, Ue, Xe(e, !1));
988
+ return o = a ? o + t.slice(a) : t, n ? o : et(o, r, He, tt(e, !1));
989
989
  }
990
- function bt(s, e) {
990
+ function kt(s, e) {
991
991
  if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
992
992
  `) || /[ \t]\n|\n[ \t]/.test(s))
993
- return Ie(s, e);
994
- const t = e.indent || (Ze(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
993
+ return $e(s, e);
994
+ const t = e.indent || (st(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
995
995
  ${t}`) + "'";
996
- return e.implicitKey ? n : Qe(n, t, Ps, Xe(e, !1));
996
+ return e.implicitKey ? n : et(n, t, Ps, tt(e, !1));
997
997
  }
998
998
  function ae(s, e) {
999
999
  const { singleQuote: t } = e.options;
1000
1000
  let n;
1001
1001
  if (t === !1)
1002
- n = Ie;
1002
+ n = $e;
1003
1003
  else {
1004
1004
  const i = s.includes('"'), r = s.includes("'");
1005
- i && !r ? n = bt : r && !i ? n = Ie : n = t ? bt : Ie;
1005
+ i && !r ? n = kt : r && !i ? n = $e : n = t ? kt : $e;
1006
1006
  }
1007
1007
  return n(s, e);
1008
1008
  }
1009
- let kt;
1009
+ let St;
1010
1010
  try {
1011
- kt = new RegExp(`(^|(?<!
1011
+ St = new RegExp(`(^|(?<!
1012
1012
  ))
1013
1013
  +(?!
1014
1014
  |$)`, "g");
1015
1015
  } catch {
1016
- kt = /\n+(?!\n|$)/g;
1016
+ St = /\n+(?!\n|$)/g;
1017
1017
  }
1018
- function Ye({ comment: s, type: e, value: t }, n, i, r) {
1018
+ function Ge({ comment: s, type: e, value: t }, n, i, r) {
1019
1019
  const { blockQuote: o, commentString: a, lineWidth: c } = n.options;
1020
1020
  if (!o || /\n[\t ]+$/.test(t))
1021
1021
  return ae(t, n);
1022
- const l = n.indent || (n.forceBlockIndent || Ze(t) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || e === I.BLOCK_FOLDED ? !1 : e === I.BLOCK_LITERAL ? !0 : !oi(t, c, l.length);
1022
+ const l = n.indent || (n.forceBlockIndent || st(t) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || e === I.BLOCK_FOLDED ? !1 : e === I.BLOCK_LITERAL ? !0 : !ai(t, c, l.length);
1023
1023
  if (!t)
1024
1024
  return u ? `|
1025
1025
  ` : `>
@@ -1035,7 +1035,7 @@ function Ye({ comment: s, type: e, value: t }, n, i, r) {
1035
1035
  const g = p.indexOf(`
1036
1036
  `);
1037
1037
  g === -1 ? f = "-" : t === p || g !== p.length - 1 ? (f = "+", r && r()) : f = "", p && (t = t.slice(0, -p.length), p[p.length - 1] === `
1038
- ` && (p = p.slice(0, -1)), p = p.replace(kt, `$&${l}`));
1038
+ ` && (p = p.slice(0, -1)), p = p.replace(St, `$&${l}`));
1039
1039
  let d = !1, m, y = -1;
1040
1040
  for (m = 0; m < t.length; ++m) {
1041
1041
  const N = t[m];
@@ -1053,33 +1053,33 @@ function Ye({ comment: s, type: e, value: t }, n, i, r) {
1053
1053
  if (s && (S += " " + a(s.replace(/ ?[\r\n]+/g, " ")), i && i()), !u) {
1054
1054
  const N = t.replace(/\n+/g, `
1055
1055
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${l}`);
1056
- let $ = !1;
1057
- const T = Xe(n, !0);
1056
+ let A = !1;
1057
+ const T = tt(n, !0);
1058
1058
  o !== "folded" && e !== I.BLOCK_FOLDED && (T.onOverflow = () => {
1059
- $ = !0;
1059
+ A = !0;
1060
1060
  });
1061
- const k = Qe(`${w}${N}${p}`, l, wt, T);
1062
- if (!$)
1061
+ const k = et(`${w}${N}${p}`, l, bt, T);
1062
+ if (!A)
1063
1063
  return `>${S}
1064
1064
  ${l}${k}`;
1065
1065
  }
1066
1066
  return t = t.replace(/\n+/g, `$&${l}`), `|${S}
1067
1067
  ${l}${w}${t}${p}`;
1068
1068
  }
1069
- function ai(s, e, t, n) {
1069
+ function ci(s, e, t, n) {
1070
1070
  const { type: i, value: r } = s, { actualString: o, implicitKey: a, indent: c, indentStep: l, inFlow: u } = e;
1071
1071
  if (a && r.includes(`
1072
1072
  `) || u && /[[\]{},]/.test(r))
1073
1073
  return ae(r, e);
1074
1074
  if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
1075
1075
  return a || u || !r.includes(`
1076
- `) ? ae(r, e) : Ye(s, e, t, n);
1076
+ `) ? ae(r, e) : Ge(s, e, t, n);
1077
1077
  if (!a && !u && i !== I.PLAIN && r.includes(`
1078
1078
  `))
1079
- return Ye(s, e, t, n);
1080
- if (Ze(r)) {
1079
+ return Ge(s, e, t, n);
1080
+ if (st(r)) {
1081
1081
  if (c === "")
1082
- return e.forceBlockIndent = !0, Ye(s, e, t, n);
1082
+ return e.forceBlockIndent = !0, Ge(s, e, t, n);
1083
1083
  if (a && c === l)
1084
1084
  return ae(r, e);
1085
1085
  }
@@ -1093,7 +1093,7 @@ ${c}`);
1093
1093
  if (g.some(h) || p != null && p.some(h))
1094
1094
  return ae(r, e);
1095
1095
  }
1096
- return a ? f : Qe(f, c, Ps, Xe(e, !1));
1096
+ return a ? f : et(f, c, Ps, tt(e, !1));
1097
1097
  }
1098
1098
  function Ct(s, e, t, n) {
1099
1099
  const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
@@ -1103,13 +1103,13 @@ function Ct(s, e, t, n) {
1103
1103
  switch (u) {
1104
1104
  case I.BLOCK_FOLDED:
1105
1105
  case I.BLOCK_LITERAL:
1106
- return i || r ? ae(o.value, e) : Ye(o, e, t, n);
1106
+ return i || r ? ae(o.value, e) : Ge(o, e, t, n);
1107
1107
  case I.QUOTE_DOUBLE:
1108
- return Ie(o.value, e);
1108
+ return $e(o.value, e);
1109
1109
  case I.QUOTE_SINGLE:
1110
- return bt(o.value, e);
1110
+ return kt(o.value, e);
1111
1111
  case I.PLAIN:
1112
- return ai(o, e, t, n);
1112
+ return ci(o, e, t, n);
1113
1113
  default:
1114
1114
  return null;
1115
1115
  }
@@ -1125,7 +1125,7 @@ function Ct(s, e, t, n) {
1125
1125
  function Rs(s, e) {
1126
1126
  const t = Object.assign({
1127
1127
  blockQuote: !0,
1128
- commentString: ri,
1128
+ commentString: oi,
1129
1129
  defaultKeyType: null,
1130
1130
  defaultStringType: "PLAIN",
1131
1131
  directives: null,
@@ -1164,7 +1164,7 @@ function Rs(s, e) {
1164
1164
  options: t
1165
1165
  };
1166
1166
  }
1167
- function ci(s, e) {
1167
+ function li(s, e) {
1168
1168
  var i;
1169
1169
  if (e.tag) {
1170
1170
  const r = s.filter((o) => o.tag === e.tag);
@@ -1191,7 +1191,7 @@ function ci(s, e) {
1191
1191
  }
1192
1192
  return t;
1193
1193
  }
1194
- function li(s, e, { anchors: t, doc: n }) {
1194
+ function fi(s, e, { anchors: t, doc: n }) {
1195
1195
  if (!n.directives)
1196
1196
  return "";
1197
1197
  const i = [], r = (O(s) || C(s)) && s.anchor;
@@ -1212,14 +1212,14 @@ function de(s, e, t, n) {
1212
1212
  }
1213
1213
  let i;
1214
1214
  const r = L(s) ? s : e.doc.createNode(s, { onTagObj: (l) => i = l });
1215
- i ?? (i = ci(e.doc.schema.tags, r));
1216
- const o = li(r, i, e);
1215
+ i ?? (i = li(e.doc.schema.tags, r));
1216
+ const o = fi(r, i, e);
1217
1217
  o.length > 0 && (e.indentAtStart = (e.indentAtStart ?? 0) + o.length + 1);
1218
1218
  const a = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : O(r) ? Ct(r, e, t, n) : r.toString(e, t, n);
1219
1219
  return o ? O(r) || a[0] === "{" || a[0] === "[" ? `${o} ${a}` : `${o}
1220
1220
  ${e.indent}${a}` : a;
1221
1221
  }
1222
- function fi({ key: s, value: e }, t, n, i) {
1222
+ function ui({ key: s, value: e }, t, n, i) {
1223
1223
  const { allNullValues: r, doc: o, indent: a, indentStep: c, options: { commentString: l, indentSeq: u, simpleKeys: f } } = t;
1224
1224
  let h = L(s) && s.comment || null;
1225
1225
  if (f) {
@@ -1250,21 +1250,21 @@ function fi({ key: s, value: e }, t, n, i) {
1250
1250
  g && (h = null), p ? (h && (m += Z(m, t.indent, l(h))), m = `? ${m}
1251
1251
  ${a}:`) : (m = `${m}:`, h && (m += Z(m, t.indent, l(h))));
1252
1252
  let y, w, E;
1253
- L(e) ? (y = !!e.spaceBefore, w = e.commentBefore, E = e.comment) : (y = !1, w = null, E = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !p && !h && O(e) && (t.indentAtStart = m.length + 1), d = !1, !u && c.length >= 2 && !t.inFlow && !p && Ce(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
1253
+ L(e) ? (y = !!e.spaceBefore, w = e.commentBefore, E = e.comment) : (y = !1, w = null, E = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !p && !h && O(e) && (t.indentAtStart = m.length + 1), d = !1, !u && c.length >= 2 && !t.inFlow && !p && _e(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
1254
1254
  let S = !1;
1255
1255
  const N = de(e, t, () => S = !0, () => d = !0);
1256
- let $ = " ";
1256
+ let A = " ";
1257
1257
  if (h || y || w) {
1258
- if ($ = y ? `
1258
+ if (A = y ? `
1259
1259
  ` : "", w) {
1260
1260
  const T = l(w);
1261
- $ += `
1261
+ A += `
1262
1262
  ${V(T, t.indent)}`;
1263
1263
  }
1264
- N === "" && !t.inFlow ? $ === `
1265
- ` && E && ($ = `
1264
+ N === "" && !t.inFlow ? A === `
1265
+ ` && E && (A = `
1266
1266
 
1267
- `) : $ += `
1267
+ `) : A += `
1268
1268
  ${t.indent}`;
1269
1269
  } else if (!p && C(e)) {
1270
1270
  const T = N[0], k = N.indexOf(`
@@ -1275,40 +1275,40 @@ ${t.indent}`;
1275
1275
  let F = N.indexOf(" ");
1276
1276
  T === "&" && F !== -1 && F < k && N[F + 1] === "!" && (F = N.indexOf(" ", F + 1)), (F === -1 || k < F) && (G = !0);
1277
1277
  }
1278
- G || ($ = `
1278
+ G || (A = `
1279
1279
  ${t.indent}`);
1280
1280
  }
1281
1281
  } else (N === "" || N[0] === `
1282
- `) && ($ = "");
1283
- return m += $ + N, t.inFlow ? S && n && n() : E && !S ? m += Z(m, t.indent, l(E)) : d && i && i(), m;
1282
+ `) && (A = "");
1283
+ return m += A + N, t.inFlow ? S && n && n() : E && !S ? m += Z(m, t.indent, l(E)) : d && i && i(), m;
1284
1284
  }
1285
1285
  function Ds(s, e) {
1286
1286
  (s === "debug" || s === "warn") && console.warn(e);
1287
1287
  }
1288
- const De = "<<", J = {
1289
- identify: (s) => s === De || typeof s == "symbol" && s.description === De,
1288
+ const Be = "<<", J = {
1289
+ identify: (s) => s === Be || typeof s == "symbol" && s.description === Be,
1290
1290
  default: "key",
1291
1291
  tag: "tag:yaml.org,2002:merge",
1292
1292
  test: /^<<$/,
1293
- resolve: () => Object.assign(new I(Symbol(De)), {
1293
+ resolve: () => Object.assign(new I(Symbol(Be)), {
1294
1294
  addToJSMap: Ms
1295
1295
  }),
1296
- stringify: () => De
1297
- }, ui = (s, e) => (J.identify(e) || O(e) && (!e.type || e.type === I.PLAIN) && J.identify(e.value)) && (s == null ? void 0 : s.doc.schema.tags.some((t) => t.tag === J.tag && t.default));
1296
+ stringify: () => Be
1297
+ }, di = (s, e) => (J.identify(e) || O(e) && (!e.type || e.type === I.PLAIN) && J.identify(e.value)) && (s == null ? void 0 : s.doc.schema.tags.some((t) => t.tag === J.tag && t.default));
1298
1298
  function Ms(s, e, t) {
1299
1299
  const n = js(s, t);
1300
- if (Ce(n))
1300
+ if (_e(n))
1301
1301
  for (const i of n.items)
1302
- ft(s, e, i);
1302
+ ut(s, e, i);
1303
1303
  else if (Array.isArray(n))
1304
1304
  for (const i of n)
1305
- ft(s, e, i);
1305
+ ut(s, e, i);
1306
1306
  else
1307
- ft(s, e, n);
1307
+ ut(s, e, n);
1308
1308
  }
1309
- function ft(s, e, t) {
1309
+ function ut(s, e, t) {
1310
1310
  const n = js(s, t);
1311
- if (!Oe(n))
1311
+ if (!Le(n))
1312
1312
  throw new Error("Merge sources must be maps or map aliases");
1313
1313
  const i = n.toJSON(null, s, Map);
1314
1314
  for (const [r, o] of i)
@@ -1326,7 +1326,7 @@ function js(s, e) {
1326
1326
  function Bs(s, e, { key: t, value: n }) {
1327
1327
  if (L(t) && t.addToJSMap)
1328
1328
  t.addToJSMap(s, e, n);
1329
- else if (ui(s, t))
1329
+ else if (di(s, t))
1330
1330
  Ms(s, e, n);
1331
1331
  else {
1332
1332
  const i = j(t, "", s);
@@ -1335,7 +1335,7 @@ function Bs(s, e, { key: t, value: n }) {
1335
1335
  else if (e instanceof Set)
1336
1336
  e.add(i);
1337
1337
  else {
1338
- const r = di(t, i, s), o = j(n, r, s);
1338
+ const r = hi(t, i, s), o = j(n, r, s);
1339
1339
  r in e ? Object.defineProperty(e, r, {
1340
1340
  value: o,
1341
1341
  writable: !0,
@@ -1346,7 +1346,7 @@ function Bs(s, e, { key: t, value: n }) {
1346
1346
  }
1347
1347
  return e;
1348
1348
  }
1349
- function di(s, e, t) {
1349
+ function hi(s, e, t) {
1350
1350
  if (e === null)
1351
1351
  return "";
1352
1352
  if (typeof e != "object")
@@ -1367,7 +1367,7 @@ function di(s, e, t) {
1367
1367
  return JSON.stringify(e);
1368
1368
  }
1369
1369
  function Lt(s, e, t) {
1370
- const n = Te(s, void 0, t), i = Te(e, void 0, t);
1370
+ const n = Ae(s, void 0, t), i = Ae(e, void 0, t);
1371
1371
  return new D(n, i);
1372
1372
  }
1373
1373
  class D {
@@ -1383,13 +1383,13 @@ class D {
1383
1383
  return Bs(t, n, this);
1384
1384
  }
1385
1385
  toString(e, t, n) {
1386
- return e != null && e.doc ? fi(this, e, t, n) : JSON.stringify(this);
1386
+ return e != null && e.doc ? ui(this, e, t, n) : JSON.stringify(this);
1387
1387
  }
1388
1388
  }
1389
1389
  function Ks(s, e, t) {
1390
- return (e.inFlow ?? s.flow ? pi : hi)(s, e, t);
1390
+ return (e.inFlow ?? s.flow ? mi : pi)(s, e, t);
1391
1391
  }
1392
- function hi({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: a }) {
1392
+ function pi({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: a }) {
1393
1393
  const { indent: c, options: { commentString: l } } = t, u = Object.assign({}, t, { indent: r, type: null });
1394
1394
  let f = !1;
1395
1395
  const h = [];
@@ -1397,10 +1397,10 @@ function hi({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, ite
1397
1397
  const d = e[g];
1398
1398
  let m = null;
1399
1399
  if (L(d))
1400
- !f && d.spaceBefore && h.push(""), Ve(t, h, d.commentBefore, f), d.comment && (m = d.comment);
1400
+ !f && d.spaceBefore && h.push(""), We(t, h, d.commentBefore, f), d.comment && (m = d.comment);
1401
1401
  else if (_(d)) {
1402
1402
  const w = L(d.key) ? d.key : null;
1403
- w && (!f && w.spaceBefore && h.push(""), Ve(t, h, w.commentBefore, f));
1403
+ w && (!f && w.spaceBefore && h.push(""), We(t, h, w.commentBefore, f));
1404
1404
  }
1405
1405
  f = !1;
1406
1406
  let y = de(d, u, () => m = null, () => f = !0);
@@ -1421,7 +1421,7 @@ ${c}${d}` : `
1421
1421
  return s ? (p += `
1422
1422
  ` + V(l(s), c), a && a()) : f && o && o(), p;
1423
1423
  }
1424
- function pi({ items: s }, e, { flowChars: t, itemIndent: n }) {
1424
+ function mi({ items: s }, e, { flowChars: t, itemIndent: n }) {
1425
1425
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: a } } = e;
1426
1426
  n += r;
1427
1427
  const c = Object.assign({}, e, {
@@ -1435,10 +1435,10 @@ function pi({ items: s }, e, { flowChars: t, itemIndent: n }) {
1435
1435
  const d = s[g];
1436
1436
  let m = null;
1437
1437
  if (L(d))
1438
- d.spaceBefore && f.push(""), Ve(e, f, d.commentBefore, !1), d.comment && (m = d.comment);
1438
+ d.spaceBefore && f.push(""), We(e, f, d.commentBefore, !1), d.comment && (m = d.comment);
1439
1439
  else if (_(d)) {
1440
1440
  const w = L(d.key) ? d.key : null;
1441
- w && (w.spaceBefore && f.push(""), Ve(e, f, w.commentBefore, !1), w.comment && (l = !0));
1441
+ w && (w.spaceBefore && f.push(""), We(e, f, w.commentBefore, !1), w.comment && (l = !0));
1442
1442
  const E = L(d.value) ? d.value : null;
1443
1443
  E ? (E.comment && (m = E.comment), E.commentBefore && (l = !0)) : d.value == null && (w != null && w.comment) && (m = w.comment);
1444
1444
  }
@@ -1465,7 +1465,7 @@ ${i}${p}`;
1465
1465
  } else
1466
1466
  return `${h}${o}${f.join(" ")}${o}${p}`;
1467
1467
  }
1468
- function Ve({ indent: s, options: { commentString: e } }, t, n, i) {
1468
+ function We({ indent: s, options: { commentString: e } }, t, n, i) {
1469
1469
  if (n && i && (n = n.replace(/^\n+/, "")), n) {
1470
1470
  const r = V(e(n), s);
1471
1471
  t.push(r.trimStart());
@@ -1482,7 +1482,7 @@ class M extends _s {
1482
1482
  return "tag:yaml.org,2002:map";
1483
1483
  }
1484
1484
  constructor(e) {
1485
- super(x, e), this.items = [];
1485
+ super(z, e), this.items = [];
1486
1486
  }
1487
1487
  /**
1488
1488
  * A generic collection parsing method that can be extended
@@ -1572,7 +1572,7 @@ const we = {
1572
1572
  nodeClass: M,
1573
1573
  tag: "tag:yaml.org,2002:map",
1574
1574
  resolve(s, e) {
1575
- return Oe(s) || e("Expected a mapping for this tag"), s;
1575
+ return Le(s) || e("Expected a mapping for this tag"), s;
1576
1576
  },
1577
1577
  createNode: (s, e, t) => M.from(s, e, t)
1578
1578
  };
@@ -1595,11 +1595,11 @@ class te extends _s {
1595
1595
  * @returns `true` if the item was found and removed.
1596
1596
  */
1597
1597
  delete(e) {
1598
- const t = Me(e);
1598
+ const t = Ke(e);
1599
1599
  return typeof t != "number" ? !1 : this.items.splice(t, 1).length > 0;
1600
1600
  }
1601
1601
  get(e, t) {
1602
- const n = Me(e);
1602
+ const n = Ke(e);
1603
1603
  if (typeof n != "number")
1604
1604
  return;
1605
1605
  const i = this.items[n];
@@ -1612,7 +1612,7 @@ class te extends _s {
1612
1612
  * It may be wrapped in a `Scalar`.
1613
1613
  */
1614
1614
  has(e) {
1615
- const t = Me(e);
1615
+ const t = Ke(e);
1616
1616
  return typeof t == "number" && t < this.items.length;
1617
1617
  }
1618
1618
  /**
@@ -1623,7 +1623,7 @@ class te extends _s {
1623
1623
  * It may be wrapped in a `Scalar`.
1624
1624
  */
1625
1625
  set(e, t) {
1626
- const n = Me(e);
1626
+ const n = Ke(e);
1627
1627
  if (typeof n != "number")
1628
1628
  throw new Error(`Expected a valid index, not ${e}.`);
1629
1629
  const i = this.items[n];
@@ -1655,13 +1655,13 @@ class te extends _s {
1655
1655
  const c = t instanceof Set ? a : String(o++);
1656
1656
  a = i.call(t, c, a);
1657
1657
  }
1658
- r.items.push(Te(a, void 0, n));
1658
+ r.items.push(Ae(a, void 0, n));
1659
1659
  }
1660
1660
  }
1661
1661
  return r;
1662
1662
  }
1663
1663
  }
1664
- function Me(s) {
1664
+ function Ke(s) {
1665
1665
  let e = O(s) ? s.value : s;
1666
1666
  return e && typeof e == "string" && (e = Number(e)), typeof e == "number" && Number.isInteger(e) && e >= 0 ? e : null;
1667
1667
  }
@@ -1671,10 +1671,10 @@ const be = {
1671
1671
  nodeClass: te,
1672
1672
  tag: "tag:yaml.org,2002:seq",
1673
1673
  resolve(s, e) {
1674
- return Ce(s) || e("Expected a sequence for this tag"), s;
1674
+ return _e(s) || e("Expected a sequence for this tag"), s;
1675
1675
  },
1676
1676
  createNode: (s, e, t) => te.from(s, e, t)
1677
- }, et = {
1677
+ }, nt = {
1678
1678
  identify: (s) => typeof s == "string",
1679
1679
  default: !0,
1680
1680
  tag: "tag:yaml.org,2002:str",
@@ -1682,14 +1682,14 @@ const be = {
1682
1682
  stringify(s, e, t, n) {
1683
1683
  return e = Object.assign({ actualString: !0 }, e), Ct(s, e, t, n);
1684
1684
  }
1685
- }, tt = {
1685
+ }, it = {
1686
1686
  identify: (s) => s == null,
1687
1687
  createNode: () => new I(null),
1688
1688
  default: !0,
1689
1689
  tag: "tag:yaml.org,2002:null",
1690
1690
  test: /^(?:~|[Nn]ull|NULL)?$/,
1691
1691
  resolve: () => new I(null),
1692
- stringify: ({ source: s }, e) => typeof s == "string" && tt.test.test(s) ? s : e.options.nullStr
1692
+ stringify: ({ source: s }, e) => typeof s == "string" && it.test.test(s) ? s : e.options.nullStr
1693
1693
  }, _t = {
1694
1694
  identify: (s) => typeof s == "boolean",
1695
1695
  default: !0,
@@ -1749,13 +1749,13 @@ const Fs = {
1749
1749
  return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1750
1750
  },
1751
1751
  stringify: Y
1752
- }, st = (s) => typeof s == "bigint" || Number.isInteger(s), Pt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1752
+ }, rt = (s) => typeof s == "bigint" || Number.isInteger(s), Pt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1753
1753
  function Ys(s, e, t) {
1754
1754
  const { value: n } = s;
1755
- return st(n) && n >= 0 ? t + n.toString(e) : Y(s);
1755
+ return rt(n) && n >= 0 ? t + n.toString(e) : Y(s);
1756
1756
  }
1757
1757
  const Hs = {
1758
- identify: (s) => st(s) && s >= 0,
1758
+ identify: (s) => rt(s) && s >= 0,
1759
1759
  default: !0,
1760
1760
  tag: "tag:yaml.org,2002:int",
1761
1761
  format: "OCT",
@@ -1763,25 +1763,25 @@ const Hs = {
1763
1763
  resolve: (s, e, t) => Pt(s, 2, 8, t),
1764
1764
  stringify: (s) => Ys(s, 8, "0o")
1765
1765
  }, Gs = {
1766
- identify: st,
1766
+ identify: rt,
1767
1767
  default: !0,
1768
1768
  tag: "tag:yaml.org,2002:int",
1769
1769
  test: /^[-+]?[0-9]+$/,
1770
1770
  resolve: (s, e, t) => Pt(s, 0, 10, t),
1771
1771
  stringify: Y
1772
1772
  }, Vs = {
1773
- identify: (s) => st(s) && s >= 0,
1773
+ identify: (s) => rt(s) && s >= 0,
1774
1774
  default: !0,
1775
1775
  tag: "tag:yaml.org,2002:int",
1776
1776
  format: "HEX",
1777
1777
  test: /^0x[0-9a-fA-F]+$/,
1778
1778
  resolve: (s, e, t) => Pt(s, 2, 16, t),
1779
1779
  stringify: (s) => Ys(s, 16, "0x")
1780
- }, mi = [
1780
+ }, gi = [
1781
1781
  we,
1782
1782
  be,
1783
- et,
1784
- tt,
1783
+ nt,
1784
+ it,
1785
1785
  _t,
1786
1786
  Hs,
1787
1787
  Gs,
@@ -1793,13 +1793,13 @@ const Hs = {
1793
1793
  function ns(s) {
1794
1794
  return typeof s == "bigint" || Number.isInteger(s);
1795
1795
  }
1796
- const je = ({ value: s }) => JSON.stringify(s), gi = [
1796
+ const Fe = ({ value: s }) => JSON.stringify(s), yi = [
1797
1797
  {
1798
1798
  identify: (s) => typeof s == "string",
1799
1799
  default: !0,
1800
1800
  tag: "tag:yaml.org,2002:str",
1801
1801
  resolve: (s) => s,
1802
- stringify: je
1802
+ stringify: Fe
1803
1803
  },
1804
1804
  {
1805
1805
  identify: (s) => s == null,
@@ -1808,7 +1808,7 @@ const je = ({ value: s }) => JSON.stringify(s), gi = [
1808
1808
  tag: "tag:yaml.org,2002:null",
1809
1809
  test: /^null$/,
1810
1810
  resolve: () => null,
1811
- stringify: je
1811
+ stringify: Fe
1812
1812
  },
1813
1813
  {
1814
1814
  identify: (s) => typeof s == "boolean",
@@ -1816,7 +1816,7 @@ const je = ({ value: s }) => JSON.stringify(s), gi = [
1816
1816
  tag: "tag:yaml.org,2002:bool",
1817
1817
  test: /^true$|^false$/,
1818
1818
  resolve: (s) => s === "true",
1819
- stringify: je
1819
+ stringify: Fe
1820
1820
  },
1821
1821
  {
1822
1822
  identify: ns,
@@ -1832,16 +1832,16 @@ const je = ({ value: s }) => JSON.stringify(s), gi = [
1832
1832
  tag: "tag:yaml.org,2002:float",
1833
1833
  test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
1834
1834
  resolve: (s) => parseFloat(s),
1835
- stringify: je
1835
+ stringify: Fe
1836
1836
  }
1837
- ], yi = {
1837
+ ], wi = {
1838
1838
  default: !0,
1839
1839
  tag: "",
1840
1840
  test: /^/,
1841
1841
  resolve(s, e) {
1842
1842
  return e(`Unresolved plain scalar ${JSON.stringify(s)}`), s;
1843
1843
  }
1844
- }, wi = [we, be].concat(gi, yi), Rt = {
1844
+ }, bi = [we, be].concat(yi, wi), Rt = {
1845
1845
  identify: (s) => s instanceof Uint8Array,
1846
1846
  // Buffer inherits from Uint8Array
1847
1847
  default: !1,
@@ -1886,11 +1886,11 @@ const je = ({ value: s }) => JSON.stringify(s), gi = [
1886
1886
  }
1887
1887
  };
1888
1888
  function Js(s, e) {
1889
- if (Ce(s))
1889
+ if (_e(s))
1890
1890
  for (let t = 0; t < s.items.length; ++t) {
1891
1891
  let n = s.items[t];
1892
1892
  if (!_(n)) {
1893
- if (Oe(n)) {
1893
+ if (Le(n)) {
1894
1894
  n.items.length > 1 && e("Each pair must have its own sequence indicator");
1895
1895
  const i = n.items[0] || new D(new I(null));
1896
1896
  if (n.commentBefore && (i.key.commentBefore = i.key.commentBefore ? `${n.commentBefore}
@@ -1981,31 +1981,31 @@ const Mt = {
1981
1981
  },
1982
1982
  createNode: (s, e, t) => fe.from(s, e, t)
1983
1983
  };
1984
- function zs({ value: s, source: e }, t) {
1985
- return e && (s ? xs : Qs).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1984
+ function xs({ value: s, source: e }, t) {
1985
+ return e && (s ? zs : Qs).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1986
1986
  }
1987
- const xs = {
1987
+ const zs = {
1988
1988
  identify: (s) => s === !0,
1989
1989
  default: !0,
1990
1990
  tag: "tag:yaml.org,2002:bool",
1991
1991
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1992
1992
  resolve: () => new I(!0),
1993
- stringify: zs
1993
+ stringify: xs
1994
1994
  }, Qs = {
1995
1995
  identify: (s) => s === !1,
1996
1996
  default: !0,
1997
1997
  tag: "tag:yaml.org,2002:bool",
1998
1998
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1999
1999
  resolve: () => new I(!1),
2000
- stringify: zs
2001
- }, bi = {
2000
+ stringify: xs
2001
+ }, ki = {
2002
2002
  identify: (s) => typeof s == "number",
2003
2003
  default: !0,
2004
2004
  tag: "tag:yaml.org,2002:float",
2005
2005
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
2006
2006
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
2007
2007
  stringify: Y
2008
- }, ki = {
2008
+ }, Si = {
2009
2009
  identify: (s) => typeof s == "number",
2010
2010
  default: !0,
2011
2011
  tag: "tag:yaml.org,2002:float",
@@ -2016,7 +2016,7 @@ const xs = {
2016
2016
  const e = Number(s.value);
2017
2017
  return isFinite(e) ? e.toExponential() : Y(s);
2018
2018
  }
2019
- }, Si = {
2019
+ }, Ei = {
2020
2020
  identify: (s) => typeof s == "number",
2021
2021
  default: !0,
2022
2022
  tag: "tag:yaml.org,2002:float",
@@ -2030,8 +2030,8 @@ const xs = {
2030
2030
  return e;
2031
2031
  },
2032
2032
  stringify: Y
2033
- }, Le = (s) => typeof s == "bigint" || Number.isInteger(s);
2034
- function nt(s, e, t, { intAsBigInt: n }) {
2033
+ }, Pe = (s) => typeof s == "bigint" || Number.isInteger(s);
2034
+ function ot(s, e, t, { intAsBigInt: n }) {
2035
2035
  const i = s[0];
2036
2036
  if ((i === "-" || i === "+") && (e += 1), s = s.substring(e).replace(/_/g, ""), n) {
2037
2037
  switch (t) {
@@ -2053,42 +2053,42 @@ function nt(s, e, t, { intAsBigInt: n }) {
2053
2053
  }
2054
2054
  function jt(s, e, t) {
2055
2055
  const { value: n } = s;
2056
- if (Le(n)) {
2056
+ if (Pe(n)) {
2057
2057
  const i = n.toString(e);
2058
2058
  return n < 0 ? "-" + t + i.substr(1) : t + i;
2059
2059
  }
2060
2060
  return Y(s);
2061
2061
  }
2062
- const Ei = {
2063
- identify: Le,
2062
+ const Ni = {
2063
+ identify: Pe,
2064
2064
  default: !0,
2065
2065
  tag: "tag:yaml.org,2002:int",
2066
2066
  format: "BIN",
2067
2067
  test: /^[-+]?0b[0-1_]+$/,
2068
- resolve: (s, e, t) => nt(s, 2, 2, t),
2068
+ resolve: (s, e, t) => ot(s, 2, 2, t),
2069
2069
  stringify: (s) => jt(s, 2, "0b")
2070
- }, Ni = {
2071
- identify: Le,
2070
+ }, Ii = {
2071
+ identify: Pe,
2072
2072
  default: !0,
2073
2073
  tag: "tag:yaml.org,2002:int",
2074
2074
  format: "OCT",
2075
2075
  test: /^[-+]?0[0-7_]+$/,
2076
- resolve: (s, e, t) => nt(s, 1, 8, t),
2076
+ resolve: (s, e, t) => ot(s, 1, 8, t),
2077
2077
  stringify: (s) => jt(s, 8, "0")
2078
- }, Ii = {
2079
- identify: Le,
2078
+ }, Ti = {
2079
+ identify: Pe,
2080
2080
  default: !0,
2081
2081
  tag: "tag:yaml.org,2002:int",
2082
2082
  test: /^[-+]?[0-9][0-9_]*$/,
2083
- resolve: (s, e, t) => nt(s, 0, 10, t),
2083
+ resolve: (s, e, t) => ot(s, 0, 10, t),
2084
2084
  stringify: Y
2085
- }, Ti = {
2086
- identify: Le,
2085
+ }, $i = {
2086
+ identify: Pe,
2087
2087
  default: !0,
2088
2088
  tag: "tag:yaml.org,2002:int",
2089
2089
  format: "HEX",
2090
2090
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
2091
- resolve: (s, e, t) => nt(s, 2, 16, t),
2091
+ resolve: (s, e, t) => ot(s, 2, 16, t),
2092
2092
  stringify: (s) => jt(s, 16, "0x")
2093
2093
  };
2094
2094
  class ue extends M {
@@ -2140,7 +2140,7 @@ const Bt = {
2140
2140
  tag: "tag:yaml.org,2002:set",
2141
2141
  createNode: (s, e, t) => ue.from(s, e, t),
2142
2142
  resolve(s, e) {
2143
- if (Oe(s)) {
2143
+ if (Le(s)) {
2144
2144
  if (s.hasAllNullValues(!0))
2145
2145
  return Object.assign(new ue(), s);
2146
2146
  e("Set items must all have null values");
@@ -2180,7 +2180,7 @@ const Zs = {
2180
2180
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
2181
2181
  resolve: (s) => Kt(s, !1),
2182
2182
  stringify: Xs
2183
- }, it = {
2183
+ }, at = {
2184
2184
  identify: (s) => s instanceof Date,
2185
2185
  default: !0,
2186
2186
  tag: "tag:yaml.org,2002:timestamp",
@@ -2189,7 +2189,7 @@ const Zs = {
2189
2189
  // assumed to be 00:00:00Z (start of day, UTC).
2190
2190
  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})?))?)?$"),
2191
2191
  resolve(s) {
2192
- const e = s.match(it.test);
2192
+ const e = s.match(at.test);
2193
2193
  if (!e)
2194
2194
  throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
2195
2195
  const [, t, n, i, r, o, a] = e.map(Number), c = e[7] ? Number((e[7] + "00").substr(1, 3)) : 0;
@@ -2205,17 +2205,17 @@ const Zs = {
2205
2205
  }, is = [
2206
2206
  we,
2207
2207
  be,
2208
- et,
2209
- tt,
2210
- xs,
2208
+ nt,
2209
+ it,
2210
+ zs,
2211
2211
  Qs,
2212
- Ei,
2213
2212
  Ni,
2214
2213
  Ii,
2215
2214
  Ti,
2216
- bi,
2215
+ $i,
2217
2216
  ki,
2218
2217
  Si,
2218
+ Ei,
2219
2219
  Rt,
2220
2220
  J,
2221
2221
  Mt,
@@ -2223,11 +2223,11 @@ const Zs = {
2223
2223
  Bt,
2224
2224
  Zs,
2225
2225
  en,
2226
- it
2226
+ at
2227
2227
  ], rs = /* @__PURE__ */ new Map([
2228
- ["core", mi],
2229
- ["failsafe", [we, be, et]],
2230
- ["json", wi],
2228
+ ["core", gi],
2229
+ ["failsafe", [we, be, nt]],
2230
+ ["json", bi],
2231
2231
  ["yaml11", is],
2232
2232
  ["yaml-1.1", is]
2233
2233
  ]), os = {
@@ -2243,21 +2243,21 @@ const Zs = {
2243
2243
  intTime: Zs,
2244
2244
  map: we,
2245
2245
  merge: J,
2246
- null: tt,
2246
+ null: it,
2247
2247
  omap: Mt,
2248
2248
  pairs: Dt,
2249
2249
  seq: be,
2250
2250
  set: Bt,
2251
- timestamp: it
2252
- }, $i = {
2251
+ timestamp: at
2252
+ }, Ai = {
2253
2253
  "tag:yaml.org,2002:binary": Rt,
2254
2254
  "tag:yaml.org,2002:merge": J,
2255
2255
  "tag:yaml.org,2002:omap": Mt,
2256
2256
  "tag:yaml.org,2002:pairs": Dt,
2257
2257
  "tag:yaml.org,2002:set": Bt,
2258
- "tag:yaml.org,2002:timestamp": it
2258
+ "tag:yaml.org,2002:timestamp": at
2259
2259
  };
2260
- function ut(s, e, t) {
2260
+ function dt(s, e, t) {
2261
2261
  const n = rs.get(e);
2262
2262
  if (n && !s)
2263
2263
  return t && !n.includes(J) ? n.concat(J) : n.slice();
@@ -2282,17 +2282,17 @@ function ut(s, e, t) {
2282
2282
  return r.includes(a) || r.push(a), r;
2283
2283
  }, []);
2284
2284
  }
2285
- const Ai = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2285
+ const vi = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2286
2286
  class Ft {
2287
2287
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: a }) {
2288
- this.compat = Array.isArray(e) ? ut(e, "compat") : e ? ut(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? $i : {}, this.tags = ut(t, this.name, n), this.toStringOptions = a ?? null, Object.defineProperty(this, x, { value: we }), Object.defineProperty(this, H, { value: et }), Object.defineProperty(this, me, { value: be }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Ai : null;
2288
+ this.compat = Array.isArray(e) ? dt(e, "compat") : e ? dt(null, e) : null, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Ai : {}, this.tags = dt(t, this.name, n), this.toStringOptions = a ?? null, Object.defineProperty(this, z, { value: we }), Object.defineProperty(this, H, { value: nt }), Object.defineProperty(this, me, { value: be }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? vi : null;
2289
2289
  }
2290
2290
  clone() {
2291
2291
  const e = Object.create(Ft.prototype, Object.getOwnPropertyDescriptors(this));
2292
2292
  return e.tags = this.tags.slice(), e;
2293
2293
  }
2294
2294
  }
2295
- function vi(s, e) {
2295
+ function Oi(s, e) {
2296
2296
  var c;
2297
2297
  const t = [];
2298
2298
  let n = e.directives === !0;
@@ -2336,9 +2336,9 @@ function vi(s, e) {
2336
2336
  `) + `
2337
2337
  `;
2338
2338
  }
2339
- class _e {
2339
+ class Re {
2340
2340
  constructor(e, t, n) {
2341
- this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, B, { value: yt });
2341
+ this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, B, { value: wt });
2342
2342
  let i = null;
2343
2343
  typeof t == "function" || Array.isArray(t) ? i = t : n === void 0 && t && (n = t, t = void 0);
2344
2344
  const r = Object.assign({
@@ -2361,8 +2361,8 @@ class _e {
2361
2361
  * Custom Node values that inherit from `Object` still refer to their original instances.
2362
2362
  */
2363
2363
  clone() {
2364
- const e = Object.create(_e.prototype, {
2365
- [B]: { value: yt }
2364
+ const e = Object.create(Re.prototype, {
2365
+ [B]: { value: wt }
2366
2366
  });
2367
2367
  return e.commentBefore = this.commentBefore, e.comment = this.comment, e.errors = this.errors.slice(), e.warnings = this.warnings.slice(), e.options = Object.assign({}, this.options), this.directives && (e.directives = this.directives.clone()), e.schema = this.schema.clone(), e.contents = L(this.contents) ? this.contents.clone(e.schema) : this.contents, this.range && (e.range = this.range.slice()), e;
2368
2368
  }
@@ -2399,7 +2399,7 @@ class _e {
2399
2399
  const m = (w) => typeof w == "number" || w instanceof String || w instanceof Number, y = t.filter(m).map(String);
2400
2400
  y.length > 0 && (t = t.concat(y)), i = t;
2401
2401
  } else n === void 0 && t && (n = t, t = void 0);
2402
- const { aliasDuplicateObjects: r, anchorPrefix: o, flow: a, keepUndefined: c, onTagObj: l, tag: u } = n ?? {}, { onAnchor: f, setAnchors: h, sourceObjects: p } = si(
2402
+ const { aliasDuplicateObjects: r, anchorPrefix: o, flow: a, keepUndefined: c, onTagObj: l, tag: u } = n ?? {}, { onAnchor: f, setAnchors: h, sourceObjects: p } = ni(
2403
2403
  this,
2404
2404
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2405
2405
  o || "a"
@@ -2411,7 +2411,7 @@ class _e {
2411
2411
  replacer: i,
2412
2412
  schema: this.schema,
2413
2413
  sourceObjects: p
2414
- }, d = Te(e, u, g);
2414
+ }, d = Ae(e, u, g);
2415
2415
  return a && C(d) && (d.flow = !0), h(), d;
2416
2416
  }
2417
2417
  /**
@@ -2434,7 +2434,7 @@ class _e {
2434
2434
  * @returns `true` if the item was found and removed.
2435
2435
  */
2436
2436
  deleteIn(e) {
2437
- return Se(e) ? this.contents == null ? !1 : (this.contents = null, !0) : ne(this.contents) ? this.contents.deleteIn(e) : !1;
2437
+ return Ne(e) ? this.contents == null ? !1 : (this.contents = null, !0) : ne(this.contents) ? this.contents.deleteIn(e) : !1;
2438
2438
  }
2439
2439
  /**
2440
2440
  * Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -2450,7 +2450,7 @@ class _e {
2450
2450
  * `true` (collections are always returned intact).
2451
2451
  */
2452
2452
  getIn(e, t) {
2453
- return Se(e) ? !t && O(this.contents) ? this.contents.value : this.contents : C(this.contents) ? this.contents.getIn(e, t) : void 0;
2453
+ return Ne(e) ? !t && O(this.contents) ? this.contents.value : this.contents : C(this.contents) ? this.contents.getIn(e, t) : void 0;
2454
2454
  }
2455
2455
  /**
2456
2456
  * Checks if the document includes a value with the key `key`.
@@ -2462,21 +2462,21 @@ class _e {
2462
2462
  * Checks if the document includes a value at `path`.
2463
2463
  */
2464
2464
  hasIn(e) {
2465
- return Se(e) ? this.contents !== void 0 : C(this.contents) ? this.contents.hasIn(e) : !1;
2465
+ return Ne(e) ? this.contents !== void 0 : C(this.contents) ? this.contents.hasIn(e) : !1;
2466
2466
  }
2467
2467
  /**
2468
2468
  * Sets a value in this document. For `!!set`, `value` needs to be a
2469
2469
  * boolean to add/remove the item from the set.
2470
2470
  */
2471
2471
  set(e, t) {
2472
- this.contents == null ? this.contents = Ge(this.schema, [e], t) : ne(this.contents) && this.contents.set(e, t);
2472
+ this.contents == null ? this.contents = Je(this.schema, [e], t) : ne(this.contents) && this.contents.set(e, t);
2473
2473
  }
2474
2474
  /**
2475
2475
  * Sets a value in this document. For `!!set`, `value` needs to be a
2476
2476
  * boolean to add/remove the item from the set.
2477
2477
  */
2478
2478
  setIn(e, t) {
2479
- Se(e) ? this.contents = t : this.contents == null ? this.contents = Ge(this.schema, Array.from(e), t) : ne(this.contents) && this.contents.setIn(e, t);
2479
+ Ne(e) ? this.contents = t : this.contents == null ? this.contents = Je(this.schema, Array.from(e), t) : ne(this.contents) && this.contents.setIn(e, t);
2480
2480
  }
2481
2481
  /**
2482
2482
  * Change the YAML version and schema used by the document.
@@ -2543,7 +2543,7 @@ class _e {
2543
2543
  const t = JSON.stringify(e.indent);
2544
2544
  throw new Error(`"indent" option must be a positive integer, not ${t}`);
2545
2545
  }
2546
- return vi(this, e);
2546
+ return Oi(this, e);
2547
2547
  }
2548
2548
  }
2549
2549
  function ne(s) {
@@ -2556,12 +2556,12 @@ class tn extends Error {
2556
2556
  super(), this.name = e, this.code = n, this.message = i, this.pos = t;
2557
2557
  }
2558
2558
  }
2559
- class Ee extends tn {
2559
+ class Ie extends tn {
2560
2560
  constructor(e, t, n) {
2561
2561
  super("YAMLParseError", e, t, n);
2562
2562
  }
2563
2563
  }
2564
- class Oi extends tn {
2564
+ class Ci extends tn {
2565
2565
  constructor(e, t, n) {
2566
2566
  super("YAMLWarning", e, t, n);
2567
2567
  }
@@ -2628,7 +2628,7 @@ function he(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
2628
2628
  default:
2629
2629
  r(k, "UNEXPECTED_TOKEN", `Unexpected ${k.type} token`), l = !1, u = !1;
2630
2630
  }
2631
- const $ = s[s.length - 1], T = $ ? $.offset + $.source.length : i;
2631
+ const A = s[s.length - 1], T = A ? A.offset + A.source.length : i;
2632
2632
  return g && n && n.type !== "space" && n.type !== "newline" && n.type !== "comma" && (n.type !== "scalar" || n.source !== "") && r(n.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), d && (l && d.indent <= o || (n == null ? void 0 : n.type) === "block-map" || (n == null ? void 0 : n.type) === "block-seq") && r(d, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
2633
2633
  comma: E,
2634
2634
  found: S,
@@ -2642,7 +2642,7 @@ function he(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
2642
2642
  start: N ?? T
2643
2643
  };
2644
2644
  }
2645
- function $e(s) {
2645
+ function ve(s) {
2646
2646
  if (!s)
2647
2647
  return null;
2648
2648
  switch (s.type) {
@@ -2669,7 +2669,7 @@ function $e(s) {
2669
2669
  if (t.type === "newline")
2670
2670
  return !0;
2671
2671
  }
2672
- if ($e(e.key) || $e(e.value))
2672
+ if (ve(e.key) || ve(e.value))
2673
2673
  return !0;
2674
2674
  }
2675
2675
  return !1;
@@ -2677,10 +2677,10 @@ function $e(s) {
2677
2677
  return !0;
2678
2678
  }
2679
2679
  }
2680
- function St(s, e, t) {
2680
+ function Et(s, e, t) {
2681
2681
  if ((e == null ? void 0 : e.type) === "flow-collection") {
2682
2682
  const n = e.end[0];
2683
- n.indent === s && (n.source === "]" || n.source === "}") && $e(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2683
+ n.indent === s && (n.source === "]" || n.source === "}") && ve(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2684
2684
  }
2685
2685
  }
2686
2686
  function sn(s, e, t) {
@@ -2691,7 +2691,7 @@ function sn(s, e, t) {
2691
2691
  return e.some((r) => i(r.key, t));
2692
2692
  }
2693
2693
  const cs = "All mapping items must start at the same column";
2694
- function Ci({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2694
+ function Li({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2695
2695
  var u;
2696
2696
  const o = (r == null ? void 0 : r.nodeClass) ?? M, a = new o(t.schema);
2697
2697
  t.atRoot && (t.atRoot = !1);
@@ -2711,11 +2711,11 @@ function Ci({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2711
2711
  ` + m.comment : a.comment = m.comment);
2712
2712
  continue;
2713
2713
  }
2714
- (m.newlineAfterProp || $e(p)) && i(p ?? h[h.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2714
+ (m.newlineAfterProp || ve(p)) && i(p ?? h[h.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2715
2715
  } else ((u = m.found) == null ? void 0 : u.indent) !== n.indent && i(c, "BAD_INDENT", cs);
2716
2716
  t.atKey = !0;
2717
2717
  const w = m.end, E = p ? s(t, p, m, i) : e(t, w, h, null, m, i);
2718
- t.schema.compat && St(n.indent, p, i), t.atKey = !1, sn(t, a.items, E) && i(w, "DUPLICATE_KEY", "Map keys must be unique");
2718
+ t.schema.compat && Et(n.indent, p, i), t.atKey = !1, sn(t, a.items, E) && i(w, "DUPLICATE_KEY", "Map keys must be unique");
2719
2719
  const S = he(g ?? [], {
2720
2720
  indicator: "map-value-ind",
2721
2721
  next: d,
@@ -2727,9 +2727,9 @@ function Ci({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2727
2727
  if (c = S.end, S.found) {
2728
2728
  y && ((d == null ? void 0 : d.type) === "block-map" && !S.hasNewline && i(c, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && m.start < S.found.offset - 1024 && i(E.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2729
2729
  const N = d ? s(t, d, S, i) : e(t, c, g, null, S, i);
2730
- t.schema.compat && St(n.indent, d, i), c = N.range[2];
2731
- const $ = new D(E, N);
2732
- t.options.keepSourceTokens && ($.srcToken = f), a.items.push($);
2730
+ t.schema.compat && Et(n.indent, d, i), c = N.range[2];
2731
+ const A = new D(E, N);
2732
+ t.options.keepSourceTokens && (A.srcToken = f), a.items.push(A);
2733
2733
  } else {
2734
2734
  y && i(E.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), S.comment && (E.comment ? E.comment += `
2735
2735
  ` + S.comment : E.comment = S.comment);
@@ -2739,7 +2739,7 @@ function Ci({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2739
2739
  }
2740
2740
  return l && l < c && i(l, "IMPOSSIBLE", "Map comment with trailing content"), a.range = [n.offset, c, l ?? c], a;
2741
2741
  }
2742
- function Li({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2742
+ function _i({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2743
2743
  const o = (r == null ? void 0 : r.nodeClass) ?? te, a = new o(t.schema);
2744
2744
  t.atRoot && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2745
2745
  let c = n.offset, l = null;
@@ -2760,11 +2760,11 @@ function Li({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2760
2760
  continue;
2761
2761
  }
2762
2762
  const p = f ? s(t, f, h, i) : e(t, h.end, u, null, h, i);
2763
- t.schema.compat && St(n.indent, f, i), c = p.range[2], a.items.push(p);
2763
+ t.schema.compat && Et(n.indent, f, i), c = p.range[2], a.items.push(p);
2764
2764
  }
2765
2765
  return a.range = [n.offset, c, l ?? c], a;
2766
2766
  }
2767
- function Pe(s, e, t, n) {
2767
+ function De(s, e, t, n) {
2768
2768
  let i = "";
2769
2769
  if (s) {
2770
2770
  let r = !1, o = "";
@@ -2791,8 +2791,8 @@ function Pe(s, e, t, n) {
2791
2791
  }
2792
2792
  return { comment: i, offset: e };
2793
2793
  }
2794
- const dt = "Block collections are not allowed within flow collections", ht = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2795
- function _i({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2794
+ const ht = "Block collections are not allowed within flow collections", pt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2795
+ function Pi({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2796
2796
  var m;
2797
2797
  const o = n.start.source === "{", a = o ? "flow map" : "flow sequence", c = (r == null ? void 0 : r.nodeClass) ?? (o ? M : te), l = new c(t.schema);
2798
2798
  l.flow = !0;
@@ -2800,7 +2800,7 @@ function _i({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2800
2800
  u && (t.atRoot = !1), t.atKey && (t.atKey = !1);
2801
2801
  let f = n.offset + n.start.source.length;
2802
2802
  for (let y = 0; y < n.items.length; ++y) {
2803
- const w = n.items[y], { start: E, key: S, sep: N, value: $ } = w, T = he(E, {
2803
+ const w = n.items[y], { start: E, key: S, sep: N, value: A } = w, T = he(E, {
2804
2804
  flow: a,
2805
2805
  indicator: "explicit-key-ind",
2806
2806
  next: S ?? (N == null ? void 0 : N[0]),
@@ -2810,12 +2810,12 @@ function _i({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2810
2810
  startOnNewline: !1
2811
2811
  });
2812
2812
  if (!T.found) {
2813
- if (!T.anchor && !T.tag && !N && !$) {
2813
+ if (!T.anchor && !T.tag && !N && !A) {
2814
2814
  y === 0 && T.comma ? i(T.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${a}`) : y < n.items.length - 1 && i(T.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${a}`), T.comment && (l.comment ? l.comment += `
2815
2815
  ` + T.comment : l.comment = T.comment), f = T.end;
2816
2816
  continue;
2817
2817
  }
2818
- !o && t.options.strict && $e(S) && i(
2818
+ !o && t.options.strict && ve(S) && i(
2819
2819
  S,
2820
2820
  // checked by containsNewline()
2821
2821
  "MULTILINE_IMPLICIT_KEY",
@@ -2844,16 +2844,16 @@ function _i({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2844
2844
  }
2845
2845
  }
2846
2846
  if (!o && !N && !T.found) {
2847
- const k = $ ? s(t, $, T, i) : e(t, T.end, N, null, T, i);
2848
- l.items.push(k), f = k.range[2], ht($) && i(k.range, "BLOCK_IN_FLOW", dt);
2847
+ const k = A ? s(t, A, T, i) : e(t, T.end, N, null, T, i);
2848
+ l.items.push(k), f = k.range[2], pt(A) && i(k.range, "BLOCK_IN_FLOW", ht);
2849
2849
  } else {
2850
2850
  t.atKey = !0;
2851
2851
  const k = T.end, v = S ? s(t, S, T, i) : e(t, k, E, null, T, i);
2852
- ht(S) && i(v.range, "BLOCK_IN_FLOW", dt), t.atKey = !1;
2852
+ pt(S) && i(v.range, "BLOCK_IN_FLOW", ht), t.atKey = !1;
2853
2853
  const P = he(N ?? [], {
2854
2854
  flow: a,
2855
2855
  indicator: "map-value-ind",
2856
- next: $,
2856
+ next: A,
2857
2857
  offset: v.range[2],
2858
2858
  onError: i,
2859
2859
  parentIndent: n.indent,
@@ -2872,9 +2872,9 @@ function _i({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2872
2872
  }
2873
2873
  T.start < P.found.offset - 1024 && i(P.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
2874
2874
  }
2875
- } else $ && ("source" in $ && ((m = $.source) == null ? void 0 : m[0]) === ":" ? i($, "MISSING_CHAR", `Missing space after : in ${a}`) : i(P.start, "MISSING_CHAR", `Missing , or : between ${a} items`));
2876
- const G = $ ? s(t, $, P, i) : P.found ? e(t, P.end, N, null, P, i) : null;
2877
- G ? ht($) && i(G.range, "BLOCK_IN_FLOW", dt) : P.comment && (v.comment ? v.comment += `
2875
+ } else A && ("source" in A && ((m = A.source) == null ? void 0 : m[0]) === ":" ? i(A, "MISSING_CHAR", `Missing space after : in ${a}`) : i(P.start, "MISSING_CHAR", `Missing , or : between ${a} items`));
2876
+ const G = A ? s(t, A, P, i) : P.found ? e(t, P.end, N, null, P, i) : null;
2877
+ G ? pt(A) && i(G.range, "BLOCK_IN_FLOW", ht) : P.comment && (v.comment ? v.comment += `
2878
2878
  ` + P.comment : v.comment = P.comment);
2879
2879
  const F = new D(v, G);
2880
2880
  if (t.options.keepSourceTokens && (F.srcToken = w), o) {
@@ -2898,18 +2898,18 @@ function _i({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2898
2898
  i(f, u ? "MISSING_CHAR" : "BAD_INDENT", w), p && p.source.length !== 1 && g.unshift(p);
2899
2899
  }
2900
2900
  if (g.length > 0) {
2901
- const y = Pe(g, d, t.options.strict, i);
2901
+ const y = De(g, d, t.options.strict, i);
2902
2902
  y.comment && (l.comment ? l.comment += `
2903
2903
  ` + y.comment : l.comment = y.comment), l.range = [n.offset, d, y.offset];
2904
2904
  } else
2905
2905
  l.range = [n.offset, d, d];
2906
2906
  return l;
2907
2907
  }
2908
- function pt(s, e, t, n, i, r) {
2909
- const o = t.type === "block-map" ? Ci(s, e, t, n, r) : t.type === "block-seq" ? Li(s, e, t, n, r) : _i(s, e, t, n, r), a = o.constructor;
2908
+ function mt(s, e, t, n, i, r) {
2909
+ const o = t.type === "block-map" ? Li(s, e, t, n, r) : t.type === "block-seq" ? _i(s, e, t, n, r) : Pi(s, e, t, n, r), a = o.constructor;
2910
2910
  return i === "!" || i === a.tagName ? (o.tag = a.tagName, o) : (i && (o.tag = i), o);
2911
2911
  }
2912
- function Pi(s, e, t, n, i) {
2912
+ function Ri(s, e, t, n, i) {
2913
2913
  var h;
2914
2914
  const r = n.tag, o = r ? e.directives.tagName(r.source, (p) => i(r, "TAG_RESOLVE_FAILED", p)) : null;
2915
2915
  if (t.type === "block-seq") {
@@ -2918,23 +2918,23 @@ function Pi(s, e, t, n, i) {
2918
2918
  }
2919
2919
  const a = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
2920
2920
  if (!r || !o || o === "!" || o === M.tagName && a === "map" || o === te.tagName && a === "seq")
2921
- return pt(s, e, t, i, o);
2921
+ return mt(s, e, t, i, o);
2922
2922
  let c = e.schema.tags.find((p) => p.tag === o && p.collection === a);
2923
2923
  if (!c) {
2924
2924
  const p = e.schema.knownTags[o];
2925
2925
  if ((p == null ? void 0 : p.collection) === a)
2926
2926
  e.schema.tags.push(Object.assign({}, p, { default: !1 })), c = p;
2927
2927
  else
2928
- return p ? i(r, "BAD_COLLECTION_TYPE", `${p.tag} used for ${a} collection, but expects ${p.collection ?? "scalar"}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), pt(s, e, t, i, o);
2928
+ return p ? i(r, "BAD_COLLECTION_TYPE", `${p.tag} used for ${a} collection, but expects ${p.collection ?? "scalar"}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), mt(s, e, t, i, o);
2929
2929
  }
2930
- const l = pt(s, e, t, i, o, c), u = ((h = c.resolve) == null ? void 0 : h.call(c, l, (p) => i(r, "TAG_RESOLVE_FAILED", p), e.options)) ?? l, f = L(u) ? u : new I(u);
2930
+ const l = mt(s, e, t, i, o, c), u = ((h = c.resolve) == null ? void 0 : h.call(c, l, (p) => i(r, "TAG_RESOLVE_FAILED", p), e.options)) ?? l, f = L(u) ? u : new I(u);
2931
2931
  return f.range = l.range, f.tag = o, c != null && c.format && (f.format = c.format), f;
2932
2932
  }
2933
- function Ri(s, e, t) {
2934
- const n = e.offset, i = Di(e, s.options.strict, t);
2933
+ function Di(s, e, t) {
2934
+ const n = e.offset, i = Mi(e, s.options.strict, t);
2935
2935
  if (!i)
2936
2936
  return { value: "", type: null, comment: "", range: [n, n, n] };
2937
- const r = i.mode === ">" ? I.BLOCK_FOLDED : I.BLOCK_LITERAL, o = e.source ? Mi(e.source) : [];
2937
+ const r = i.mode === ">" ? I.BLOCK_FOLDED : I.BLOCK_LITERAL, o = e.source ? ji(e.source) : [];
2938
2938
  let a = o.length;
2939
2939
  for (let d = o.length - 1; d >= 0; --d) {
2940
2940
  const m = o[d][1];
@@ -3003,7 +3003,7 @@ function Ri(s, e, t) {
3003
3003
  const g = n + i.length + e.source.length;
3004
3004
  return { value: f, type: r, comment: i.comment, range: [n, g, g] };
3005
3005
  }
3006
- function Di({ offset: s, props: e }, t, n) {
3006
+ function Mi({ offset: s, props: e }, t, n) {
3007
3007
  if (e[0].type !== "block-scalar-header")
3008
3008
  return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
3009
3009
  const { source: i } = e[0], r = i[0];
@@ -3043,25 +3043,25 @@ function Di({ offset: s, props: e }, t, n) {
3043
3043
  }
3044
3044
  return { mode: r, indent: o, chomp: a, comment: u, length: f };
3045
3045
  }
3046
- function Mi(s) {
3046
+ function ji(s) {
3047
3047
  const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n != null && n[1] ? [n[1], t.slice(n[1].length)] : ["", t]];
3048
3048
  for (let o = 1; o < e.length; o += 2)
3049
3049
  r.push([e[o], e[o + 1]]);
3050
3050
  return r;
3051
3051
  }
3052
- function ji(s, e, t) {
3052
+ function Bi(s, e, t) {
3053
3053
  const { offset: n, type: i, source: r, end: o } = s;
3054
3054
  let a, c;
3055
3055
  const l = (h, p, g) => t(n + h, p, g);
3056
3056
  switch (i) {
3057
3057
  case "scalar":
3058
- a = I.PLAIN, c = Bi(r, l);
3058
+ a = I.PLAIN, c = Ki(r, l);
3059
3059
  break;
3060
3060
  case "single-quoted-scalar":
3061
- a = I.QUOTE_SINGLE, c = Ki(r, l);
3061
+ a = I.QUOTE_SINGLE, c = Fi(r, l);
3062
3062
  break;
3063
3063
  case "double-quoted-scalar":
3064
- a = I.QUOTE_DOUBLE, c = Fi(r, l);
3064
+ a = I.QUOTE_DOUBLE, c = qi(r, l);
3065
3065
  break;
3066
3066
  default:
3067
3067
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
@@ -3071,7 +3071,7 @@ function ji(s, e, t) {
3071
3071
  range: [n, n + r.length, n + r.length]
3072
3072
  };
3073
3073
  }
3074
- const u = n + r.length, f = Pe(o, u, e, t);
3074
+ const u = n + r.length, f = De(o, u, e, t);
3075
3075
  return {
3076
3076
  value: c,
3077
3077
  type: a,
@@ -3079,7 +3079,7 @@ function ji(s, e, t) {
3079
3079
  range: [n, u, f.offset]
3080
3080
  };
3081
3081
  }
3082
- function Bi(s, e) {
3082
+ function Ki(s, e) {
3083
3083
  let t = "";
3084
3084
  switch (s[0]) {
3085
3085
  case " ":
@@ -3104,7 +3104,7 @@ function Bi(s, e) {
3104
3104
  }
3105
3105
  return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), nn(s);
3106
3106
  }
3107
- function Ki(s, e) {
3107
+ function Fi(s, e) {
3108
3108
  return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), nn(s.slice(1, -1)).replace(/''/g, "'");
3109
3109
  }
3110
3110
  function nn(s) {
@@ -3127,7 +3127,7 @@ function nn(s) {
3127
3127
  const a = /[ \t]*(.*)/sy;
3128
3128
  return a.lastIndex = o, n = a.exec(s), i + r + ((n == null ? void 0 : n[1]) ?? "");
3129
3129
  }
3130
- function Fi(s, e) {
3130
+ function qi(s, e) {
3131
3131
  let t = "";
3132
3132
  for (let n = 1; n < s.length - 1; ++n) {
3133
3133
  const i = s[n];
@@ -3135,11 +3135,11 @@ function Fi(s, e) {
3135
3135
  `))
3136
3136
  if (i === `
3137
3137
  `) {
3138
- const { fold: r, offset: o } = qi(s, n);
3138
+ const { fold: r, offset: o } = Ui(s, n);
3139
3139
  t += r, n = o;
3140
3140
  } else if (i === "\\") {
3141
3141
  let r = s[++n];
3142
- const o = Ui[r];
3142
+ const o = Yi[r];
3143
3143
  if (o)
3144
3144
  t += o;
3145
3145
  else if (r === `
@@ -3152,7 +3152,7 @@ function Fi(s, e) {
3152
3152
  r = s[++n + 1];
3153
3153
  else if (r === "x" || r === "u" || r === "U") {
3154
3154
  const a = r === "x" ? 2 : r === "u" ? 4 : 8;
3155
- t += Yi(s, n + 1, a, e), n += a;
3155
+ t += Hi(s, n + 1, a, e), n += a;
3156
3156
  } else {
3157
3157
  const a = s.substr(n - 1, 2);
3158
3158
  e(n - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${a}`), t += a;
@@ -3170,7 +3170,7 @@ function Fi(s, e) {
3170
3170
  }
3171
3171
  return (s[s.length - 1] !== '"' || s.length === 1) && e(s.length, "MISSING_CHAR", 'Missing closing "quote'), t;
3172
3172
  }
3173
- function qi(s, e) {
3173
+ function Ui(s, e) {
3174
3174
  let t = "", n = s[e + 1];
3175
3175
  for (; (n === " " || n === " " || n === `
3176
3176
  ` || n === "\r") && !(n === "\r" && s[e + 2] !== `
@@ -3180,7 +3180,7 @@ function qi(s, e) {
3180
3180
  `), e += 1, n = s[e + 1];
3181
3181
  return t || (t = " "), { fold: t, offset: e };
3182
3182
  }
3183
- const Ui = {
3183
+ const Yi = {
3184
3184
  0: "\0",
3185
3185
  // null character
3186
3186
  a: "\x07",
@@ -3214,7 +3214,7 @@ const Ui = {
3214
3214
  "\\": "\\",
3215
3215
  " ": " "
3216
3216
  };
3217
- function Yi(s, e, t, n) {
3217
+ function Hi(s, e, t, n) {
3218
3218
  const i = s.substr(e, t), o = i.length === t && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
3219
3219
  try {
3220
3220
  return String.fromCodePoint(o);
@@ -3224,9 +3224,9 @@ function Yi(s, e, t, n) {
3224
3224
  }
3225
3225
  }
3226
3226
  function rn(s, e, t, n) {
3227
- const { value: i, type: r, comment: o, range: a } = e.type === "block-scalar" ? Ri(s, e, n) : ji(e, s.options.strict, n), c = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null;
3227
+ const { value: i, type: r, comment: o, range: a } = e.type === "block-scalar" ? Di(s, e, n) : Bi(e, s.options.strict, n), c = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null;
3228
3228
  let l;
3229
- s.options.stringKeys && s.atKey ? l = s.schema[H] : c ? l = Hi(s.schema, i, c, t, n) : e.type === "scalar" ? l = Gi(s, i, e, n) : l = s.schema[H];
3229
+ s.options.stringKeys && s.atKey ? l = s.schema[H] : c ? l = Gi(s.schema, i, c, t, n) : e.type === "scalar" ? l = Vi(s, i, e, n) : l = s.schema[H];
3230
3230
  let u;
3231
3231
  try {
3232
3232
  const f = l.resolve(i, (h) => n(t ?? e, "TAG_RESOLVE_FAILED", h), s.options);
@@ -3237,7 +3237,7 @@ function rn(s, e, t, n) {
3237
3237
  }
3238
3238
  return u.range = a, u.source = i, r && (u.type = r), c && (u.tag = c), l.format && (u.format = l.format), o && (u.comment = o), u;
3239
3239
  }
3240
- function Hi(s, e, t, n, i) {
3240
+ function Gi(s, e, t, n, i) {
3241
3241
  var a;
3242
3242
  if (t === "!")
3243
3243
  return s[H];
@@ -3254,7 +3254,7 @@ function Hi(s, e, t, n, i) {
3254
3254
  const o = s.knownTags[t];
3255
3255
  return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[H]);
3256
3256
  }
3257
- function Gi({ atKey: s, directives: e, schema: t }, n, i, r) {
3257
+ function Vi({ atKey: s, directives: e, schema: t }, n, i, r) {
3258
3258
  const o = t.tags.find((a) => {
3259
3259
  var c;
3260
3260
  return (a.default === !0 || s && a.default === "key") && ((c = a.test) == null ? void 0 : c.test(n));
@@ -3271,7 +3271,7 @@ function Gi({ atKey: s, directives: e, schema: t }, n, i, r) {
3271
3271
  }
3272
3272
  return o;
3273
3273
  }
3274
- function Vi(s, e, t) {
3274
+ function Ji(s, e, t) {
3275
3275
  if (e) {
3276
3276
  t ?? (t = e.length);
3277
3277
  for (let n = t - 1; n >= 0; --n) {
@@ -3290,13 +3290,13 @@ function Vi(s, e, t) {
3290
3290
  }
3291
3291
  return s;
3292
3292
  }
3293
- const Ji = { composeNode: on, composeEmptyNode: qt };
3293
+ const Wi = { composeNode: on, composeEmptyNode: qt };
3294
3294
  function on(s, e, t, n) {
3295
3295
  const i = s.atKey, { spaceBefore: r, comment: o, anchor: a, tag: c } = t;
3296
3296
  let l, u = !0;
3297
3297
  switch (e.type) {
3298
3298
  case "alias":
3299
- l = Wi(s, e, n), (a || c) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3299
+ l = xi(s, e, n), (a || c) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3300
3300
  break;
3301
3301
  case "scalar":
3302
3302
  case "single-quoted-scalar":
@@ -3308,7 +3308,7 @@ function on(s, e, t, n) {
3308
3308
  case "block-seq":
3309
3309
  case "flow-collection":
3310
3310
  try {
3311
- l = Pi(Ji, s, e, t, n), a && (l.anchor = a.source.substring(1));
3311
+ l = Ri(Wi, s, e, t, n), a && (l.anchor = a.source.substring(1));
3312
3312
  } catch (f) {
3313
3313
  const h = f instanceof Error ? f.message : String(f);
3314
3314
  n(e, "RESOURCE_EXHAUSTION", h);
@@ -3324,20 +3324,20 @@ function on(s, e, t, n) {
3324
3324
  function qt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: a, end: c }, l) {
3325
3325
  const u = {
3326
3326
  type: "scalar",
3327
- offset: Vi(e, t, n),
3327
+ offset: Ji(e, t, n),
3328
3328
  indent: -1,
3329
3329
  source: ""
3330
3330
  }, f = rn(s, u, a, l);
3331
3331
  return o && (f.anchor = o.source.substring(1), f.anchor === "" && l(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = c), f;
3332
3332
  }
3333
- function Wi({ options: s }, { offset: e, source: t, end: n }, i) {
3333
+ function xi({ options: s }, { offset: e, source: t, end: n }, i) {
3334
3334
  const r = new Ot(t.substring(1));
3335
3335
  r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
3336
- const o = e + t.length, a = Pe(n, o, s.strict, i);
3336
+ const o = e + t.length, a = De(n, o, s.strict, i);
3337
3337
  return r.range = [e, o, a.offset], a.comment && (r.comment = a.comment), r;
3338
3338
  }
3339
3339
  function zi(s, e, { offset: t, start: n, value: i, end: r }, o) {
3340
- const a = Object.assign({ _directives: e }, s), c = new _e(void 0, a), l = {
3340
+ const a = Object.assign({ _directives: e }, s), c = new Re(void 0, a), l = {
3341
3341
  atKey: !1,
3342
3342
  atRoot: !0,
3343
3343
  directives: c.directives,
@@ -3352,10 +3352,10 @@ function zi(s, e, { offset: t, start: n, value: i, end: r }, o) {
3352
3352
  startOnNewline: !0
3353
3353
  });
3354
3354
  u.found && (c.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !u.hasNewline && o(u.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), c.contents = i ? on(l, i, u, o) : qt(l, u.end, n, null, u, o);
3355
- const f = c.contents.range[2], h = Pe(r, f, !1, o);
3355
+ const f = c.contents.range[2], h = De(r, f, !1, o);
3356
3356
  return h.comment && (c.comment = h.comment), c.range = [t, f, h.offset], c;
3357
3357
  }
3358
- function ke(s) {
3358
+ function Se(s) {
3359
3359
  if (typeof s == "number")
3360
3360
  return [s, s + 1];
3361
3361
  if (Array.isArray(s))
@@ -3384,11 +3384,11 @@ function ls(s) {
3384
3384
  }
3385
3385
  return { comment: e, afterEmptyLine: n };
3386
3386
  }
3387
- class xi {
3387
+ class Qi {
3388
3388
  constructor(e = {}) {
3389
3389
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3390
- const o = ke(t);
3391
- r ? this.warnings.push(new Oi(o, n, i)) : this.errors.push(new Ee(o, n, i));
3390
+ const o = Se(t);
3391
+ r ? this.warnings.push(new Ci(o, n, i)) : this.errors.push(new Ie(o, n, i));
3392
3392
  }, this.directives = new R({ version: e.version || "1.2" }), this.options = e;
3393
3393
  }
3394
3394
  decorate(e, t) {
@@ -3450,7 +3450,7 @@ ${o}` : n;
3450
3450
  switch (e.type) {
3451
3451
  case "directive":
3452
3452
  this.directives.add(e.source, (t, n, i) => {
3453
- const r = ke(e);
3453
+ const r = Se(e);
3454
3454
  r[0] += t, this.onError(r, "BAD_DIRECTIVE", n, i);
3455
3455
  }), this.prelude.push(e.source), this.atDirectives = !0;
3456
3456
  break;
@@ -3467,18 +3467,18 @@ ${o}` : n;
3467
3467
  this.prelude.push(e.source);
3468
3468
  break;
3469
3469
  case "error": {
3470
- const t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new Ee(ke(e), "UNEXPECTED_TOKEN", t);
3470
+ const t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new Ie(Se(e), "UNEXPECTED_TOKEN", t);
3471
3471
  this.atDirectives || !this.doc ? this.errors.push(n) : this.doc.errors.push(n);
3472
3472
  break;
3473
3473
  }
3474
3474
  case "doc-end": {
3475
3475
  if (!this.doc) {
3476
3476
  const n = "Unexpected doc-end without preceding document";
3477
- this.errors.push(new Ee(ke(e), "UNEXPECTED_TOKEN", n));
3477
+ this.errors.push(new Ie(Se(e), "UNEXPECTED_TOKEN", n));
3478
3478
  break;
3479
3479
  }
3480
3480
  this.doc.directives.docEnd = !0;
3481
- const t = Pe(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3481
+ const t = De(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3482
3482
  if (this.decorate(this.doc, !0), t.comment) {
3483
3483
  const n = this.doc.comment;
3484
3484
  this.doc.comment = n ? `${n}
@@ -3488,7 +3488,7 @@ ${t.comment}` : t.comment;
3488
3488
  break;
3489
3489
  }
3490
3490
  default:
3491
- this.errors.push(new Ee(ke(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
3491
+ this.errors.push(new Ie(Se(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
3492
3492
  }
3493
3493
  }
3494
3494
  /**
@@ -3501,13 +3501,13 @@ ${t.comment}` : t.comment;
3501
3501
  if (this.doc)
3502
3502
  this.decorate(this.doc, !0), yield this.doc, this.doc = null;
3503
3503
  else if (e) {
3504
- const n = Object.assign({ _directives: this.directives }, this.options), i = new _e(void 0, n);
3504
+ const n = Object.assign({ _directives: this.directives }, this.options), i = new Re(void 0, n);
3505
3505
  this.atDirectives && this.onError(t, "MISSING_CHAR", "Missing directives-end indicator line"), i.range = [0, t, t], this.decorate(i, !1), yield i;
3506
3506
  }
3507
3507
  }
3508
3508
  }
3509
- const an = "\uFEFF", cn = "", ln = "", Et = "";
3510
- function Qi(s) {
3509
+ const an = "\uFEFF", cn = "", ln = "", Nt = "";
3510
+ function Xi(s) {
3511
3511
  switch (s) {
3512
3512
  case an:
3513
3513
  return "byte-order-mark";
@@ -3515,7 +3515,7 @@ function Qi(s) {
3515
3515
  return "doc-mode";
3516
3516
  case ln:
3517
3517
  return "flow-error-end";
3518
- case Et:
3518
+ case Nt:
3519
3519
  return "scalar";
3520
3520
  case "---":
3521
3521
  return "doc-start";
@@ -3581,9 +3581,9 @@ function U(s) {
3581
3581
  return !1;
3582
3582
  }
3583
3583
  }
3584
- const fs = new Set("0123456789ABCDEFabcdef"), Xi = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Be = new Set(",[]{}"), Zi = new Set(` ,[]{}
3585
- \r `), mt = (s) => !s || Zi.has(s);
3586
- class er {
3584
+ const fs = new Set("0123456789ABCDEFabcdef"), Zi = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), qe = new Set(",[]{}"), er = new Set(` ,[]{}
3585
+ \r `), gt = (s) => !s || er.has(s);
3586
+ class tr {
3587
3587
  constructor() {
3588
3588
  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;
3589
3589
  }
@@ -3742,7 +3742,7 @@ class er {
3742
3742
  case "]":
3743
3743
  return yield* this.pushCount(1), "doc";
3744
3744
  case "*":
3745
- return yield* this.pushUntil(mt), "doc";
3745
+ return yield* this.pushUntil(gt), "doc";
3746
3746
  case '"':
3747
3747
  case "'":
3748
3748
  return yield* this.parseQuotedScalar();
@@ -3778,7 +3778,7 @@ class er {
3778
3778
  case "]":
3779
3779
  return yield* this.pushCount(1), this.flowKey = !0, this.flowLevel -= 1, this.flowLevel ? "flow" : "doc";
3780
3780
  case "*":
3781
- return yield* this.pushUntil(mt), "flow";
3781
+ return yield* this.pushUntil(gt), "flow";
3782
3782
  case '"':
3783
3783
  case "'":
3784
3784
  return this.flowKey = !0, yield* this.parseQuotedScalar();
@@ -3900,7 +3900,7 @@ class er {
3900
3900
  else
3901
3901
  break;
3902
3902
  } while (!0);
3903
- return yield Et, yield* this.pushToIndex(e + 1, !0), yield* this.parseLineStart();
3903
+ return yield Nt, yield* this.pushToIndex(e + 1, !0), yield* this.parseLineStart();
3904
3904
  }
3905
3905
  *parsePlainScalar() {
3906
3906
  const e = this.flowLevel > 0;
@@ -3908,14 +3908,14 @@ class er {
3908
3908
  for (; i = this.buffer[++n]; )
3909
3909
  if (i === ":") {
3910
3910
  const r = this.buffer[n + 1];
3911
- if (U(r) || e && Be.has(r))
3911
+ if (U(r) || e && qe.has(r))
3912
3912
  break;
3913
3913
  t = n;
3914
3914
  } else if (U(i)) {
3915
3915
  let r = this.buffer[n + 1];
3916
3916
  if (i === "\r" && (r === `
3917
3917
  ` ? (n += 1, i = `
3918
- `, r = this.buffer[n + 1]) : t = n), r === "#" || e && Be.has(r))
3918
+ `, r = this.buffer[n + 1]) : t = n), r === "#" || e && qe.has(r))
3919
3919
  break;
3920
3920
  if (i === `
3921
3921
  `) {
@@ -3925,11 +3925,11 @@ class er {
3925
3925
  n = Math.max(n, o - 2);
3926
3926
  }
3927
3927
  } else {
3928
- if (e && Be.has(i))
3928
+ if (e && qe.has(i))
3929
3929
  break;
3930
3930
  t = n;
3931
3931
  }
3932
- return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield Et, yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
3932
+ return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield Nt, yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
3933
3933
  }
3934
3934
  *pushCount(e) {
3935
3935
  return e > 0 ? (yield this.buffer.substr(this.pos, e), this.pos += e, e) : 0;
@@ -3946,13 +3946,13 @@ class er {
3946
3946
  e += yield* this.pushTag(), e += yield* this.pushSpaces(!0);
3947
3947
  continue e;
3948
3948
  case "&":
3949
- e += yield* this.pushUntil(mt), e += yield* this.pushSpaces(!0);
3949
+ e += yield* this.pushUntil(gt), e += yield* this.pushSpaces(!0);
3950
3950
  continue e;
3951
3951
  case "-":
3952
3952
  case "?":
3953
3953
  case ":": {
3954
3954
  const t = this.flowLevel > 0, n = this.charAt(1);
3955
- if (U(n) || t && Be.has(n)) {
3955
+ if (U(n) || t && qe.has(n)) {
3956
3956
  t ? this.flowKey && (this.flowKey = !1) : this.indentNext = this.indentValue + 1, e += yield* this.pushCount(1), e += yield* this.pushSpaces(!0);
3957
3957
  continue e;
3958
3958
  }
@@ -3971,7 +3971,7 @@ class er {
3971
3971
  } else {
3972
3972
  let e = this.pos + 1, t = this.buffer[e];
3973
3973
  for (; t; )
3974
- if (Xi.has(t))
3974
+ if (Zi.has(t))
3975
3975
  t = this.buffer[++e];
3976
3976
  else if (t === "%" && fs.has(this.buffer[e + 1]) && fs.has(this.buffer[e + 2]))
3977
3977
  t = this.buffer[e += 3];
@@ -4001,7 +4001,7 @@ class er {
4001
4001
  return yield* this.pushToIndex(t, !1);
4002
4002
  }
4003
4003
  }
4004
- class tr {
4004
+ class sr {
4005
4005
  constructor() {
4006
4006
  this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
4007
4007
  let t = 0, n = this.lineStarts.length;
@@ -4048,7 +4048,7 @@ function fn(s) {
4048
4048
  return !1;
4049
4049
  }
4050
4050
  }
4051
- function Ke(s) {
4051
+ function Ue(s) {
4052
4052
  switch (s.type) {
4053
4053
  case "document":
4054
4054
  return s.start;
@@ -4080,7 +4080,7 @@ function ie(s) {
4080
4080
  ;
4081
4081
  return s.splice(e, s.length);
4082
4082
  }
4083
- function Je(s, e) {
4083
+ function xe(s, e) {
4084
4084
  if (e.length < 1e5)
4085
4085
  Array.prototype.push.apply(s, e);
4086
4086
  else
@@ -4090,15 +4090,15 @@ function Je(s, e) {
4090
4090
  function ds(s) {
4091
4091
  if (s.start.type === "flow-seq-start")
4092
4092
  for (const e of s.items)
4093
- e.sep && !e.value && !W(e.start, "explicit-key-ind") && !W(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, fn(e.value) ? e.value.end ? Je(e.value.end, e.sep) : e.value.end = e.sep : Je(e.start, e.sep), delete e.sep);
4093
+ e.sep && !e.value && !W(e.start, "explicit-key-ind") && !W(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, fn(e.value) ? e.value.end ? xe(e.value.end, e.sep) : e.value.end = e.sep : xe(e.start, e.sep), delete e.sep);
4094
4094
  }
4095
- class sr {
4095
+ class nr {
4096
4096
  /**
4097
4097
  * @param onNewLine - If defined, called separately with the start position of
4098
4098
  * each new line (in `parse()`, including the start of input).
4099
4099
  */
4100
4100
  constructor(e) {
4101
- this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new er(), this.onNewLine = e;
4101
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new tr(), this.onNewLine = e;
4102
4102
  }
4103
4103
  /**
4104
4104
  * Parse `source` as a YAML stream.
@@ -4122,7 +4122,7 @@ class sr {
4122
4122
  this.atScalar = !1, yield* this.step(), this.offset += e.length;
4123
4123
  return;
4124
4124
  }
4125
- const t = Qi(e);
4125
+ const t = Xi(e);
4126
4126
  if (t)
4127
4127
  if (t === "scalar")
4128
4128
  this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
@@ -4305,7 +4305,7 @@ class sr {
4305
4305
  }
4306
4306
  *scalar(e) {
4307
4307
  if (this.type === "map-value-ind") {
4308
- const t = Ke(this.peek(2)), n = ie(t);
4308
+ const t = Ue(this.peek(2)), n = ie(t);
4309
4309
  let i;
4310
4310
  e.end ? (i = e.end, i.push(this.sourceToken), delete e.end) : i = [this.sourceToken];
4311
4311
  const r = {
@@ -4359,7 +4359,7 @@ class sr {
4359
4359
  if (this.atIndentedComment(t.start, e.indent)) {
4360
4360
  const i = e.items[e.items.length - 2], r = (n = i == null ? void 0 : i.value) == null ? void 0 : n.end;
4361
4361
  if (Array.isArray(r)) {
4362
- Je(r, t.start), r.push(this.sourceToken), e.items.pop();
4362
+ xe(r, t.start), r.push(this.sourceToken), e.items.pop();
4363
4363
  return;
4364
4364
  }
4365
4365
  }
@@ -4492,7 +4492,7 @@ class sr {
4492
4492
  if (this.atIndentedComment(t.start, e.indent)) {
4493
4493
  const i = e.items[e.items.length - 2], r = (n = i == null ? void 0 : i.value) == null ? void 0 : n.end;
4494
4494
  if (Array.isArray(r)) {
4495
- Je(r, t.start), r.push(this.sourceToken), e.items.pop();
4495
+ xe(r, t.start), r.push(this.sourceToken), e.items.pop();
4496
4496
  return;
4497
4497
  }
4498
4498
  }
@@ -4563,7 +4563,7 @@ class sr {
4563
4563
  if (n.type === "block-map" && (this.type === "map-value-ind" && n.indent === e.indent || this.type === "newline" && !n.items[n.items.length - 1].sep))
4564
4564
  yield* this.pop(), yield* this.step();
4565
4565
  else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
4566
- const i = Ke(n), r = ie(i);
4566
+ const i = Ue(n), r = ie(i);
4567
4567
  ds(e);
4568
4568
  const o = e.end.splice(1, e.end.length);
4569
4569
  o.push(this.sourceToken);
@@ -4627,7 +4627,7 @@ class sr {
4627
4627
  };
4628
4628
  case "explicit-key-ind": {
4629
4629
  this.onKeyLine = !0;
4630
- const t = Ke(e), n = ie(t);
4630
+ const t = Ue(e), n = ie(t);
4631
4631
  return n.push(this.sourceToken), {
4632
4632
  type: "block-map",
4633
4633
  offset: this.offset,
@@ -4637,7 +4637,7 @@ class sr {
4637
4637
  }
4638
4638
  case "map-value-ind": {
4639
4639
  this.onKeyLine = !0;
4640
- const t = Ke(e), n = ie(t);
4640
+ const t = Ue(e), n = ie(t);
4641
4641
  return {
4642
4642
  type: "block-map",
4643
4643
  offset: this.offset,
@@ -4673,25 +4673,25 @@ class sr {
4673
4673
  }
4674
4674
  }
4675
4675
  }
4676
- function nr(s) {
4676
+ function ir(s) {
4677
4677
  const e = s.prettyErrors !== !1;
4678
- return { lineCounter: s.lineCounter || e && new tr() || null, prettyErrors: e };
4678
+ return { lineCounter: s.lineCounter || e && new sr() || null, prettyErrors: e };
4679
4679
  }
4680
- function ir(s, e = {}) {
4681
- const { lineCounter: t, prettyErrors: n } = nr(e), i = new sr(t == null ? void 0 : t.addNewLine), r = new xi(e);
4680
+ function rr(s, e = {}) {
4681
+ const { lineCounter: t, prettyErrors: n } = ir(e), i = new nr(t == null ? void 0 : t.addNewLine), r = new Qi(e);
4682
4682
  let o = null;
4683
4683
  for (const a of r.compose(i.parse(s), !0, s.length))
4684
4684
  if (!o)
4685
4685
  o = a;
4686
4686
  else if (o.options.logLevel !== "silent") {
4687
- o.errors.push(new Ee(a.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
4687
+ o.errors.push(new Ie(a.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
4688
4688
  break;
4689
4689
  }
4690
4690
  return n && t && (o.errors.forEach(as(s, t)), o.warnings.forEach(as(s, t))), o;
4691
4691
  }
4692
- function rr(s, e, t) {
4692
+ function or(s, e, t) {
4693
4693
  let n;
4694
- const i = ir(s, t);
4694
+ const i = rr(s, t);
4695
4695
  if (!i)
4696
4696
  return null;
4697
4697
  if (i.warnings.forEach((r) => Ds(i.options.logLevel, r)), i.errors.length > 0) {
@@ -4701,26 +4701,26 @@ function rr(s, e, t) {
4701
4701
  }
4702
4702
  return i.toJS(Object.assign({ reviver: n }, t));
4703
4703
  }
4704
- function or(s, e, t) {
4704
+ function ar(s, e, t) {
4705
4705
  let n = null;
4706
4706
  if (Array.isArray(e) && (n = e), s === void 0) {
4707
4707
  const { keepUndefined: i } = {};
4708
4708
  if (!i)
4709
4709
  return;
4710
4710
  }
4711
- return ve(s) && !n ? s.toString(t) : new _e(s, n, t).toString(t);
4711
+ return Ce(s) && !n ? s.toString(t) : new Re(s, n, t).toString(t);
4712
4712
  }
4713
- const ar = /^#{2,3}\s+/, Nt = /^[-*]\s+\[([ xX])\]\s+(.*)$/, cr = /^\[review\]\s+(.*)$/, lr = /^-\s+(\d{4}-\d{2}-\d{2}):\s*(.*)$/, fr = /^\[(?:phase:(\d+)|body)\]\s+(?:\[(decision|question)\]\s+)?(.*)$/, ur = /^-\s+\[([ xX])\]\s+(?:(\d{4}-\d{2}-\d{2})\s+)?\[(log|clarification|review|note|decision|question)\]\s+(\[agent\]\s+)?(.*)$/, dr = ["note", "decision", "question"];
4713
+ const cr = /^#{2,3}\s+/, It = /^[-*]\s+\[([ xX])\]\s+(.*)$/, lr = /^\[review\]\s+(.*)$/, fr = /^-\s+(\d{4}-\d{2}-\d{2}):\s*(.*)$/, ur = /^\[(?:phase:(\d+)|body)\]\s+(?:\[(decision|question)\]\s+)?(.*)$/, dr = /^-\s+\[([ xX])\]\s+(?:(\d{4}-\d{2}-\d{2})\s+)?\[(log|clarification|review|note|decision|question|chat)\]\s+(\[agent\]\s+)?(.*)$/, hr = ["note", "decision", "question"];
4714
4714
  function un(s, e, t) {
4715
4715
  const n = [];
4716
4716
  let i = e;
4717
4717
  for (; i < t; ) {
4718
- const r = s[i].match(Nt);
4718
+ const r = s[i].match(It);
4719
4719
  if (r) {
4720
- const o = r[1].toLowerCase() === "x", a = r[2].trim(), c = a.match(cr), l = c ? c[1].trim() : a, u = c ? "review" : void 0, f = [];
4720
+ const o = r[1].toLowerCase() === "x", a = r[2].trim(), c = a.match(lr), l = c ? c[1].trim() : a, u = c ? "review" : void 0, f = [];
4721
4721
  for (i++; i < t; ) {
4722
4722
  const h = s[i];
4723
- if (h.trim() === "" || Nt.test(h) || ar.test(h)) break;
4723
+ if (h.trim() === "" || It.test(h) || cr.test(h)) break;
4724
4724
  if (/^\s/.test(h))
4725
4725
  f.push(h.trimStart()), i++;
4726
4726
  else
@@ -4741,7 +4741,7 @@ function un(s, e, t) {
4741
4741
  function Ut(s, e, t) {
4742
4742
  const n = [];
4743
4743
  for (let i = e; i < t; i++) {
4744
- const r = s[i].match(lr);
4744
+ const r = s[i].match(fr);
4745
4745
  r && n.push({ date: r[1], text: r[2].trim() });
4746
4746
  }
4747
4747
  return n;
@@ -4759,15 +4759,15 @@ function dn(s, e) {
4759
4759
  function Yt(s, e) {
4760
4760
  return [s, ...e.map((t) => `- ${t.date}: ${t.text}`)];
4761
4761
  }
4762
- function hr(s) {
4762
+ function pr(s) {
4763
4763
  return s.kind === "phase" ? `[phase:${s.index}]` : "[body]";
4764
4764
  }
4765
- function pr(s, e, t) {
4765
+ function mr(s, e, t) {
4766
4766
  const n = [];
4767
4767
  for (let i = e; i < t; i++) {
4768
- const r = s[i].match(Nt);
4768
+ const r = s[i].match(It);
4769
4769
  if (!r) continue;
4770
- const o = r[2].trim().match(fr);
4770
+ const o = r[2].trim().match(ur);
4771
4771
  if (!o) continue;
4772
4772
  const a = o[1] ? { kind: "phase", index: Number(o[1]) } : { kind: "body" }, c = o[2];
4773
4773
  n.push({
@@ -4779,17 +4779,17 @@ function pr(s, e, t) {
4779
4779
  }
4780
4780
  return n;
4781
4781
  }
4782
- function mr(s) {
4782
+ function gr(s) {
4783
4783
  const e = ["### Notes"];
4784
4784
  for (const t of s) {
4785
4785
  const n = t.kind && t.kind !== "note" ? `[${t.kind}] ` : "";
4786
4786
  e.push(
4787
- `- [${t.state === "resolved" ? "x" : " "}] ${hr(t.anchor)} ${n}${t.prose}`
4787
+ `- [${t.state === "resolved" ? "x" : " "}] ${pr(t.anchor)} ${n}${t.prose}`
4788
4788
  );
4789
4789
  }
4790
4790
  return e;
4791
4791
  }
4792
- const rt = {
4792
+ const ct = {
4793
4793
  headingRe: /^#{2,3}\s+Phases\s*$/i,
4794
4794
  parseEntries: un,
4795
4795
  formatLines: (s) => dn("### Phases", s)
@@ -4797,7 +4797,7 @@ const rt = {
4797
4797
  headingRe: /^#{2,3}\s+Fixes\s*$/i,
4798
4798
  parseEntries: un,
4799
4799
  formatLines: (s) => dn("### Fixes", s)
4800
- }, Re = {
4800
+ }, Me = {
4801
4801
  headingRe: /^#{2,3}\s+Log\s*$/i,
4802
4802
  parseEntries: Ut,
4803
4803
  formatLines: (s) => Yt("### Log", s)
@@ -4807,24 +4807,24 @@ const rt = {
4807
4807
  formatLines: (s) => Yt("### Clarifications", s)
4808
4808
  }, Gt = {
4809
4809
  headingRe: /^#{2,3}\s+Notes\s*$/i,
4810
- parseEntries: pr,
4811
- formatLines: mr
4812
- }, gr = {
4810
+ parseEntries: mr,
4811
+ formatLines: gr
4812
+ }, yr = {
4813
4813
  headingRe: /^#{2,3}\s+Review\s*$/i,
4814
4814
  parseEntries: Ut,
4815
4815
  formatLines: (s) => Yt("### Review", s)
4816
4816
  };
4817
- function yr(s, e, t) {
4817
+ function wr(s, e, t) {
4818
4818
  const n = [];
4819
4819
  for (let i = e; i < t; i++) {
4820
- const r = s[i].match(ur);
4820
+ const r = s[i].match(dr);
4821
4821
  if (!r) continue;
4822
4822
  const o = r[3], a = { kind: o, text: r[5].trim() };
4823
- r[2] && (a.date = r[2]), r[4] && (a.from = "agent"), dr.includes(o) && (a.state = r[1].toLowerCase() === "x" ? "resolved" : "open"), n.push(a);
4823
+ r[2] && (a.date = r[2]), r[4] && (a.from = "agent"), hr.includes(o) && (a.state = r[1].toLowerCase() === "x" ? "resolved" : "open"), n.push(a);
4824
4824
  }
4825
4825
  return n;
4826
4826
  }
4827
- function wr(s) {
4827
+ function br(s) {
4828
4828
  const e = ["### Thread"];
4829
4829
  for (const t of s) {
4830
4830
  const n = t.state ? t.state === "resolved" : !0, i = t.date ? `${t.date} ` : "", r = t.from === "agent" ? "[agent] " : "";
@@ -4834,10 +4834,10 @@ function wr(s) {
4834
4834
  }
4835
4835
  const pn = {
4836
4836
  headingRe: /^#{2,3}\s+Thread\s*$/i,
4837
- parseEntries: yr,
4838
- formatLines: wr
4837
+ parseEntries: wr,
4838
+ formatLines: br
4839
4839
  };
4840
- function br(s = [], e = [], t = [], n = []) {
4840
+ function kr(s = [], e = [], t = [], n = []) {
4841
4841
  const i = [
4842
4842
  ...s.map((o) => ({ kind: "log", date: o.date, text: o.text })),
4843
4843
  ...e.map((o) => ({ kind: "clarification", date: o.date, text: o.text })),
@@ -4855,13 +4855,13 @@ function Vt(s, e) {
4855
4855
  function mn(s = []) {
4856
4856
  return Vt(s, "log");
4857
4857
  }
4858
- function kr(s = []) {
4858
+ function Sr(s = []) {
4859
4859
  return Vt(s, "clarification");
4860
4860
  }
4861
- function Sr(s = []) {
4861
+ function Er(s = []) {
4862
4862
  return Vt(s, "review");
4863
4863
  }
4864
- function Er(s = []) {
4864
+ function Nr(s = []) {
4865
4865
  return s.filter(
4866
4866
  (e) => e.kind === "note" || e.kind === "decision" || e.kind === "question"
4867
4867
  ).map((e) => ({
@@ -4871,38 +4871,53 @@ function Er(s = []) {
4871
4871
  kind: e.kind
4872
4872
  }));
4873
4873
  }
4874
- function Uo(s, e, t) {
4874
+ function Xo(s, e, t) {
4875
4875
  return [...(s ?? []).filter((n) => !e.includes(n.kind)), ...t];
4876
4876
  }
4877
- const Fe = b.preprocess(
4877
+ function Zo(s, e, t, n) {
4878
+ return s.map((i, r) => {
4879
+ if (r !== e) return i;
4880
+ const o = n ? `${i.text}
4881
+
4882
+ ${n}` : i.text;
4883
+ if (t === "decision") return { ...i, kind: t, state: "open", text: o };
4884
+ const { state: a, ...c } = i;
4885
+ return { ...c, kind: t, text: o };
4886
+ });
4887
+ }
4888
+ function ea(s = []) {
4889
+ const e = s.reduce((t, n, i) => n.kind === "log" ? i : t, -1);
4890
+ return s.slice(e + 1).filter((t) => t.kind === "chat");
4891
+ }
4892
+ const Ee = b.preprocess(
4878
4893
  (s) => typeof s == "string" ? { agent: s } : s,
4879
4894
  b.object({
4880
- agent: b.enum(Ae),
4895
+ agent: b.enum(Oe),
4881
4896
  model: b.string().optional(),
4882
4897
  effort: b.string().optional()
4883
4898
  })
4884
- ), Q = b.string().regex(/^\d{4}-\d{2}-\d{2}$/, "expected YYYY-MM-DD"), Nr = b.object({
4899
+ ), Q = b.string().regex(/^\d{4}-\d{2}-\d{2}$/, "expected YYYY-MM-DD"), Ir = b.object({
4885
4900
  status: b.enum(["idea", "planned", "in-progress", "review", "done", "dropped"]),
4886
4901
  kind: b.enum(["feat", "fix", "chore", "docs", "refactor"]).optional(),
4887
4902
  id: b.string().optional(),
4888
4903
  idea: b.string().optional(),
4889
- agent: b.enum(Ae).optional(),
4904
+ agent: b.enum(Oe).optional(),
4890
4905
  created: Q,
4891
4906
  updated: Q.optional(),
4892
4907
  tags: b.string().optional()
4893
- }), Ir = b.object({
4908
+ }), Tr = b.object({
4894
4909
  id: b.string().describe("Permanent plan ID, e.g. FEAT-24"),
4895
4910
  title: b.string().describe('Human-readable plan name, e.g. "Plan storage architecture"'),
4896
4911
  kind: b.enum(["feat", "fix", "chore", "docs", "refactor"]).describe("Plan kind matching Conventional Commits types"),
4897
4912
  status: b.enum(["idea", "planned", "in-progress", "review", "done", "dropped"]).describe("Current lifecycle status"),
4898
4913
  idea: b.string().optional().describe("IDEA-N backlink if this plan grew out of an idea"),
4899
- agent: b.enum(Ae).optional().describe("Per-plan agent override"),
4914
+ agent: b.enum(Oe).optional().describe("Per-plan agent override"),
4900
4915
  created: Q.describe("Creation date (YYYY-MM-DD)"),
4901
4916
  updated: Q.optional().describe("Last significant update date (YYYY-MM-DD)"),
4902
4917
  audited: Q.optional().describe("Date of last successful convergence audit (YYYY-MM-DD)"),
4903
4918
  "audited-hash": b.string().optional().describe("Content hash of the plan at last audit, used to detect edits regardless of mtime"),
4904
4919
  tags: b.array(b.string()).optional().describe("Tagging categories")
4905
- }), Tr = b.object({
4920
+ }), $r = b.object({
4906
4921
  id: b.string().describe("Permanent idea ID, e.g. IDEA-20"),
4907
4922
  title: b.string().describe("Short idea headline (3-6 words)"),
4908
4923
  kind: b.enum(["idea", "note"]).optional().describe('"note" for ideas that never need a plan; omitted means a plan-bearing idea'),
@@ -4910,7 +4925,7 @@ const Fe = b.preprocess(
4910
4925
  }).refine((s) => s.status === void 0 || s.kind === "note", {
4911
4926
  message: "status is only valid on ideas with kind: note",
4912
4927
  path: ["status"]
4913
- }), $r = b.object({
4928
+ }), Ar = b.object({
4914
4929
  id: b.string().describe("Permanent lifetime entity ID, e.g. IDEA-45 — never changes"),
4915
4930
  title: b.string().describe("Human-readable entity name"),
4916
4931
  type: b.enum(["feat", "fix", "chore", "docs", "refactor"]).optional().describe(
@@ -4920,13 +4935,16 @@ const Fe = b.preprocess(
4920
4935
  status: b.enum(["idea", "planned", "in-progress", "review", "done", "dropped", "open"]).optional().describe(
4921
4936
  "Stored override, no longer the source of truth: most lifecycle states derive from phases/branch/PR. Only dropped, a planless idea/note being closed, or the offline fallback need this set."
4922
4937
  ),
4923
- agent: b.enum(Ae).optional().describe("Per-entity agent override"),
4938
+ agent: b.enum(Oe).optional().describe("Per-entity agent override"),
4924
4939
  created: Q.describe("Creation date (YYYY-MM-DD)"),
4925
4940
  updated: Q.optional().describe("Last significant update date (YYYY-MM-DD)"),
4926
4941
  audited: Q.optional().describe("Date of last successful convergence audit (YYYY-MM-DD)"),
4927
4942
  "audited-hash": b.string().optional().describe(
4928
4943
  "Content hash of the entity at last audit, used to detect edits regardless of mtime"
4929
4944
  ),
4945
+ released: b.string().optional().describe(
4946
+ "Version tag (e.g. v0.13.1) that first shipped this idea, stamped from the release train"
4947
+ ),
4930
4948
  tags: b.array(b.string()).optional().describe("Tagging categories"),
4931
4949
  subject: b.string().optional().describe('Subject group name; absent renders as the virtual "No subject" group'),
4932
4950
  order: b.number().int().optional().describe("Run order; absent means unordered, sorting after ordered entries")
@@ -4939,7 +4957,7 @@ const Fe = b.preprocess(
4939
4957
  ).refine((s) => s.kind === "note" || s.status !== "open", {
4940
4958
  message: "status open is only valid on entities with kind: note",
4941
4959
  path: ["status"]
4942
- }), Ar = b.object({
4960
+ }), vr = b.object({
4943
4961
  version: b.string(),
4944
4962
  projectName: b.string(),
4945
4963
  initializedAt: b.string(),
@@ -4953,21 +4971,22 @@ const Fe = b.preprocess(
4953
4971
  docs: b.number().optional(),
4954
4972
  refactor: b.number().optional()
4955
4973
  }).optional(),
4956
- defaultAgent: b.enum(Ae).optional(),
4974
+ defaultAgent: b.enum(Oe).optional(),
4957
4975
  defaultAgents: b.object({
4958
- phase: Fe,
4959
- planDraft: Fe,
4960
- ideaExtend: Fe,
4961
- commitSuggest: Fe
4976
+ phase: Ee,
4977
+ planDraft: Ee,
4978
+ ideaExtend: Ee,
4979
+ commitSuggest: Ee,
4980
+ feedback: Ee
4962
4981
  }).optional()
4963
- }), hs = /^##\s+(.+?)\s*$/, vr = /^\*\*([A-Za-z][A-Za-z-]*):\*\*\s*(.*)$/, Or = /^#{2,3}\s+/;
4964
- function We(s, e) {
4982
+ }), hs = /^##\s+(.+?)\s*$/, Or = /^\*\*([A-Za-z][A-Za-z-]*):\*\*\s*(.*)$/, Cr = /^#{2,3}\s+/;
4983
+ function ze(s, e) {
4965
4984
  const t = s.split(`
4966
4985
  `), n = t.findIndex((a) => e.headingRe.test(a));
4967
4986
  if (n === -1) return { body: s, entries: [] };
4968
4987
  let i = t.length;
4969
4988
  for (let a = n + 1; a < t.length; a++)
4970
- if (Or.test(t[a])) {
4989
+ if (Cr.test(t[a])) {
4971
4990
  i = a;
4972
4991
  break;
4973
4992
  }
@@ -4976,11 +4995,11 @@ function We(s, e) {
4976
4995
  `).trim(), entries: r };
4977
4996
  }
4978
4997
  const ps = {
4979
- phases: rt,
4980
- log: Re,
4998
+ phases: ct,
4999
+ log: Me,
4981
5000
  clarifications: Ht,
4982
5001
  notes: Gt,
4983
- review: gr
5002
+ review: yr
4984
5003
  };
4985
5004
  function Jt(s) {
4986
5005
  const e = {
@@ -4992,12 +5011,12 @@ function Jt(s) {
4992
5011
  };
4993
5012
  let t = s;
4994
5013
  for (const n of Object.keys(ps)) {
4995
- const i = We(t, ps[n]);
5014
+ const i = ze(t, ps[n]);
4996
5015
  t = i.body, e[n] = i.entries;
4997
5016
  }
4998
5017
  return { body: t, ...e };
4999
5018
  }
5000
- function Cr(s) {
5019
+ function Lr(s) {
5001
5020
  const e = s.split(`
5002
5021
  `), t = [];
5003
5022
  for (let i = 0; i < e.length; i++)
@@ -5009,7 +5028,7 @@ function Cr(s) {
5009
5028
  for (; l < c.length && c[l].trim() === ""; ) l++;
5010
5029
  const u = {};
5011
5030
  for (; l < c.length; ) {
5012
- const w = c[l].match(vr);
5031
+ const w = c[l].match(Or);
5013
5032
  if (!w) break;
5014
5033
  u[w[1].toLowerCase()] = w[2].trim(), l++;
5015
5034
  }
@@ -5020,10 +5039,10 @@ function Cr(s) {
5020
5039
  }
5021
5040
  return n;
5022
5041
  }
5023
- function Yo(s) {
5042
+ function ta(s) {
5024
5043
  const e = [], t = [];
5025
- for (const n of Cr(s)) {
5026
- const i = Nr.safeParse(n.fields);
5044
+ for (const n of Lr(s)) {
5045
+ const i = Ir.safeParse(n.fields);
5027
5046
  if (!i.success) {
5028
5047
  t.push({
5029
5048
  title: n.title,
@@ -5052,15 +5071,15 @@ function Yo(s) {
5052
5071
  }
5053
5072
  return { entries: e, warnings: t };
5054
5073
  }
5055
- const Lr = /^---\s*\r?\n([\s\S]*?)\r?\n---\s*(?:\r?\n)?/;
5074
+ const _r = /^---\s*\r?\n([\s\S]*?)\r?\n---\s*(?:\r?\n)?/;
5056
5075
  function Wt(s, e) {
5057
- const t = [], n = s.match(Lr);
5076
+ const t = [], n = s.match(_r);
5058
5077
  if (!n)
5059
5078
  return { data: null, body: s.trim(), warnings: t };
5060
5079
  const i = n[1], r = s.slice(n[0].length).trim();
5061
5080
  let o;
5062
5081
  try {
5063
- o = rr(i);
5082
+ o = or(i);
5064
5083
  } catch (c) {
5065
5084
  return t.push({
5066
5085
  title: "(frontmatter)",
@@ -5087,7 +5106,7 @@ function gn(s) {
5087
5106
  data: t,
5088
5107
  body: n,
5089
5108
  warnings: i
5090
- } = Wt(s, $r);
5109
+ } = Wt(s, Ar);
5091
5110
  if (e.push(...i), !t)
5092
5111
  return { entries: [], warnings: e };
5093
5112
  const {
@@ -5097,7 +5116,7 @@ function gn(s) {
5097
5116
  clarifications: c,
5098
5117
  notes: l,
5099
5118
  review: u
5100
- } = Jt(n), { body: f, entries: h } = We(r, hn), { body: p, entries: g } = We(f, pn), d = [...g, ...br(a, c, l, u)];
5119
+ } = Jt(n), { body: f, entries: h } = ze(r, hn), { body: p, entries: g } = ze(f, pn), d = [...g, ...kr(a, c, l, u)];
5101
5120
  return t.kind === "note" && o.length > 0 && e.push({
5102
5121
  title: t.title,
5103
5122
  message: "note entities must not carry a Phases section — kept, but fix the file"
@@ -5112,6 +5131,7 @@ function gn(s) {
5112
5131
  updated: t.updated,
5113
5132
  audited: t.audited,
5114
5133
  auditedHash: t["audited-hash"],
5134
+ released: t.released,
5115
5135
  tags: t.tags ?? [],
5116
5136
  subject: t.subject,
5117
5137
  order: t.order,
@@ -5121,12 +5141,12 @@ function gn(s) {
5121
5141
  ...d.length > 0 && { thread: d }
5122
5142
  }], warnings: e };
5123
5143
  }
5124
- function Ho(s) {
5144
+ function sa(s) {
5125
5145
  const e = [], {
5126
5146
  data: t,
5127
5147
  body: n,
5128
5148
  warnings: i
5129
- } = Wt(s, Ir);
5149
+ } = Wt(s, Tr);
5130
5150
  if (e.push(...i), !t)
5131
5151
  return { entries: [], warnings: e };
5132
5152
  const { body: r, phases: o, log: a, clarifications: c, notes: l, review: u } = Jt(n);
@@ -5150,15 +5170,15 @@ function Ho(s) {
5150
5170
  review: u
5151
5171
  }], warnings: e };
5152
5172
  }
5153
- function Go(s) {
5173
+ function na(s) {
5154
5174
  const {
5155
5175
  data: e,
5156
5176
  body: t,
5157
5177
  warnings: n
5158
- } = Wt(s, Tr);
5178
+ } = Wt(s, $r);
5159
5179
  if (!e)
5160
5180
  return { entries: [], warnings: n };
5161
- const { body: i, entries: r } = We(t, Re);
5181
+ const { body: i, entries: r } = ze(t, Me);
5162
5182
  return { entries: [{
5163
5183
  id: e.id,
5164
5184
  title: e.title,
@@ -5168,16 +5188,16 @@ function Go(s) {
5168
5188
  ...r.length > 0 && { log: r }
5169
5189
  }], warnings: n };
5170
5190
  }
5171
- const _r = /^(IDEA-\d+):\s*/, Pr = /\n---+\n/;
5172
- function Vo(s) {
5173
- return s.split(Pr).filter(Boolean).map((t) => {
5191
+ const Pr = /^(IDEA-\d+):\s*/, Rr = /\n---+\n/;
5192
+ function ia(s) {
5193
+ return s.split(Rr).filter(Boolean).map((t) => {
5174
5194
  var c;
5175
5195
  const n = t.match(/^#{1,3}\s+(.+)/m), i = n ? n[1].trim() : ((c = t.trim().split(`
5176
- `)[0]) == null ? void 0 : c.trim()) ?? "Untitled", r = i.match(_r), o = (r == null ? void 0 : r[1]) ?? null, a = o ? i.slice(r[0].length) : i;
5196
+ `)[0]) == null ? void 0 : c.trim()) ?? "Untitled", r = i.match(Pr), o = (r == null ? void 0 : r[1]) ?? null, a = o ? i.slice(r[0].length) : i;
5177
5197
  return { id: o, title: a, body: t.trim() };
5178
5198
  });
5179
5199
  }
5180
- function Rr(s, e = []) {
5200
+ function Dr(s, e = []) {
5181
5201
  const t = [];
5182
5202
  for (const n of s)
5183
5203
  n.archived || n.subject && !e.includes(n.subject) && t.push({
@@ -5189,7 +5209,7 @@ function Rr(s, e = []) {
5189
5209
  });
5190
5210
  return t;
5191
5211
  }
5192
- function Dr(s) {
5212
+ function Mr(s) {
5193
5213
  const e = [];
5194
5214
  for (const t of s.split(`
5195
5215
  `)) {
@@ -5203,7 +5223,7 @@ function Dr(s) {
5203
5223
  return e;
5204
5224
  }
5205
5225
  const yn = /^-\s+(\d{4}-\d{2}-\d{2}):\s+(.+?)\s+—\s+(.*)$/;
5206
- function Jo(s) {
5226
+ function ra(s) {
5207
5227
  const e = [];
5208
5228
  for (const t of s.split(`
5209
5229
  `)) {
@@ -5212,35 +5232,35 @@ function Jo(s) {
5212
5232
  }
5213
5233
  return e;
5214
5234
  }
5215
- const It = " — ";
5216
- function Mr(s) {
5235
+ const Tt = " — ";
5236
+ function jr(s) {
5217
5237
  return s.split(`
5218
5238
  `).map((e) => e.trim()).filter((e) => e.length > 0).map((e) => {
5219
- const t = e.indexOf(It);
5239
+ const t = e.indexOf(Tt);
5220
5240
  return t === -1 ? { id: e, title: "" } : {
5221
5241
  id: e.slice(0, t).trim(),
5222
- title: e.slice(t + It.length).trim()
5242
+ title: e.slice(t + Tt.length).trim()
5223
5243
  };
5224
5244
  });
5225
5245
  }
5226
- function Wo(s) {
5227
- return s.length === 0 ? "" : `${s.map((e) => `${e.id}${It}${e.title}`).join(`
5246
+ function oa(s) {
5247
+ return s.length === 0 ? "" : `${s.map((e) => `${e.id}${Tt}${e.title}`).join(`
5228
5248
  `)}
5229
5249
  `;
5230
5250
  }
5231
- function jr(s) {
5251
+ function Br(s) {
5232
5252
  const e = s.phases.length > 0 && s.phases.every((n) => n.done), t = (s.fixes ?? []).every((n) => n.done);
5233
5253
  return e && t;
5234
5254
  }
5235
- function ot(s, e, t) {
5236
- return s.kind === "note" || s.status === "dropped" ? s.status : e ? e.state === "merged" ? "done" : e.state === "closed" ? "dropped" : jr(s) ? "review" : "in-progress" : t ? s.status === "done" ? "done" : s.phases.length > 0 ? "planned" : "idea" : s.status ?? (s.phases.length > 0 ? "planned" : "idea");
5255
+ function lt(s, e, t) {
5256
+ return s.kind === "note" || s.status === "dropped" ? s.status : e ? e.state === "merged" ? "done" : e.state === "closed" ? "dropped" : Br(s) ? "review" : "in-progress" : t ? s.status === "done" ? "done" : s.phases.length > 0 ? "planned" : "idea" : s.status ?? (s.phases.length > 0 ? "planned" : "idea");
5237
5257
  }
5238
- function Br(s, e) {
5258
+ function Kr(s, e) {
5239
5259
  if (s.kind === "note" || s.archived || (e == null ? void 0 : e.state) !== "merged") return !1;
5240
- const t = ot(s, e, !0);
5260
+ const t = lt(s, e, !0);
5241
5261
  return t === "review" || t === "done";
5242
5262
  }
5243
- async function Kr(s) {
5263
+ async function Fr(s) {
5244
5264
  try {
5245
5265
  return await ws(s);
5246
5266
  } catch {
@@ -5254,20 +5274,20 @@ async function wn(s) {
5254
5274
  return "";
5255
5275
  }
5256
5276
  }
5257
- async function Fr(s) {
5258
- const e = await wn(A(s, "..", "run-order.md"));
5259
- return new Map(Mr(e).map((t, n) => [t.id, n + 1]));
5277
+ async function qr(s) {
5278
+ const e = await wn($(s, "..", "run-order.md"));
5279
+ return new Map(jr(e).map((t, n) => [t.id, n + 1]));
5260
5280
  }
5261
- async function at(s) {
5281
+ async function ke(s) {
5262
5282
  const e = [], t = [];
5263
5283
  let n = 0;
5264
- const i = await Fr(s);
5265
- for (const r of [s, A(s, "archive")]) {
5266
- const o = r !== s, a = (await Kr(r)).filter((l) => l.endsWith(".md") && l !== "index.md");
5284
+ const i = await qr(s);
5285
+ for (const r of [s, $(s, "archive")]) {
5286
+ const o = r !== s, a = (await Fr(r)).filter((l) => l.endsWith(".md") && l !== "index.md");
5267
5287
  n += a.length;
5268
5288
  const c = await Promise.all(
5269
5289
  a.map(async (l) => {
5270
- const u = await wn(A(r, l));
5290
+ const u = await wn($(r, l));
5271
5291
  return u ? gn(u) : { warnings: [{ title: l, message: "Could not read entity file" }] };
5272
5292
  })
5273
5293
  );
@@ -5282,7 +5302,7 @@ function bn(s, e, t = !1) {
5282
5302
  return {
5283
5303
  title: s.title,
5284
5304
  // Non-note entities can't carry the note-only 'open' (schema-enforced).
5285
- status: ot(s, e, t),
5305
+ status: lt(s, e, t),
5286
5306
  kind: s.type,
5287
5307
  id: s.id,
5288
5308
  agent: s.agent,
@@ -5290,6 +5310,7 @@ function bn(s, e, t = !1) {
5290
5310
  updated: s.updated,
5291
5311
  audited: s.audited,
5292
5312
  auditedHash: s.auditedHash,
5313
+ released: s.released,
5293
5314
  tags: s.tags,
5294
5315
  subject: s.subject,
5295
5316
  order: s.order,
@@ -5297,15 +5318,15 @@ function bn(s, e, t = !1) {
5297
5318
  phases: s.phases,
5298
5319
  fixes: s.fixes,
5299
5320
  log: mn(s.thread),
5300
- clarifications: kr(s.thread),
5301
- notes: Er(s.thread),
5302
- review: Sr(s.thread),
5321
+ clarifications: Sr(s.thread),
5322
+ notes: Nr(s.thread),
5323
+ review: Er(s.thread),
5303
5324
  thread: s.thread,
5304
5325
  archived: s.archived,
5305
5326
  pr: e
5306
5327
  };
5307
5328
  }
5308
- function qr(s) {
5329
+ function Ur(s) {
5309
5330
  return {
5310
5331
  id: s.id,
5311
5332
  title: s.title,
@@ -5318,39 +5339,39 @@ function qr(s) {
5318
5339
  log: mn(s.thread)
5319
5340
  };
5320
5341
  }
5321
- async function zt(s) {
5322
- const { entries: e, warnings: t } = await at(s), n = await Ts(A(s, "..", ".."));
5342
+ async function xt(s) {
5343
+ const { entries: e, warnings: t } = await ke(s), n = await Ts($(s, "..", ".."));
5323
5344
  return { entries: e, warnings: t, prs: n, resolved: n !== void 0 };
5324
5345
  }
5325
- async function zo(s) {
5326
- const { entries: e, warnings: t, prs: n, resolved: i } = await zt(s);
5346
+ async function aa(s) {
5347
+ const { entries: e, warnings: t, prs: n, resolved: i } = await xt(s);
5327
5348
  return { entries: e.map((o) => ({
5328
5349
  ...o,
5329
- status: ot(o, n == null ? void 0 : n.get(o.id), i)
5350
+ status: lt(o, n == null ? void 0 : n.get(o.id), i)
5330
5351
  })), warnings: t };
5331
5352
  }
5332
- async function xo(s) {
5333
- const { entries: e, warnings: t, prs: n, resolved: i } = await zt(s);
5353
+ async function ca(s) {
5354
+ const { entries: e, warnings: t, prs: n, resolved: i } = await xt(s);
5334
5355
  return {
5335
5356
  entries: e.filter((r) => r.kind !== "note").map((r) => bn(r, n == null ? void 0 : n.get(r.id), i)),
5336
5357
  warnings: t
5337
5358
  };
5338
5359
  }
5339
- async function Qo(s) {
5340
- const { entries: e, prs: t } = await zt(s);
5360
+ async function la(s) {
5361
+ const { entries: e, prs: t } = await xt(s);
5341
5362
  return e.flatMap((n) => {
5342
5363
  const i = t == null ? void 0 : t.get(n.id);
5343
- return i && Br(n, i) ? [{ id: n.id, title: n.title, pr: i }] : [];
5364
+ return i && Kr(n, i) ? [{ id: n.id, title: n.title, pr: i }] : [];
5344
5365
  });
5345
5366
  }
5346
- async function Xo(s) {
5347
- const { entries: e, warnings: t } = await at(s);
5367
+ async function fa(s) {
5368
+ const { entries: e, warnings: t } = await ke(s);
5348
5369
  return {
5349
- entries: e.filter((n) => n.kind === "note").map(qr),
5370
+ entries: e.filter((n) => n.kind === "note").map(Ur),
5350
5371
  warnings: t
5351
5372
  };
5352
5373
  }
5353
- async function Tt(s) {
5374
+ async function Qe(s) {
5354
5375
  try {
5355
5376
  return await pe(s, "utf-8");
5356
5377
  } catch {
@@ -5362,28 +5383,36 @@ function kn(s, e) {
5362
5383
  return (t = s.split(`
5363
5384
  `).find((n) => n.includes(`(${e})`))) == null ? void 0 : t.trim();
5364
5385
  }
5386
+ const Yr = /^Merge pull request #\d+ from \S+\/([a-z]+-\d+)-/i;
5365
5387
  function ms(s) {
5366
5388
  const e = s.match(/^Refs:\s*([A-Za-z]+-\d+)\s*$/m);
5367
5389
  if (e) return e[1].toUpperCase();
5368
- const n = s.split(`
5369
- `, 1)[0].match(/\(([A-Za-z]+-\d+)\)/);
5370
- return n ? n[1].toUpperCase() : null;
5390
+ const t = s.split(`
5391
+ `, 1)[0], n = t.match(/\(([A-Za-z]+-\d+)\)/);
5392
+ if (n) return n[1].toUpperCase();
5393
+ const i = t.match(Yr);
5394
+ return i ? i[1].toUpperCase() : null;
5395
+ }
5396
+ const Hr = /^## \[.+?\]\(.*\/compare\/(.+?)\.\.\.(.+?)\)/;
5397
+ function Gr(s) {
5398
+ return s.split(`
5399
+ `).map((e) => Hr.exec(e)).filter((e) => e !== null).map((e) => ({ version: e[2], range: `${e[1]}..${e[2]}` }));
5371
5400
  }
5372
- function Ur(s, e) {
5401
+ function Vr(s, e) {
5373
5402
  return s.split(`
5374
5403
  `).find((t) => {
5375
5404
  const n = t.match(/\/commit\/([0-9a-f]+)\)/i);
5376
5405
  return n ? n[1].startsWith(e) || e.startsWith(n[1]) : !1;
5377
5406
  });
5378
5407
  }
5379
- const Yr = /^[a-z]+\/([a-z]+-\d+)-/, Hr = /^[0-9a-f]{4,40}$/i;
5380
- async function Gr(s) {
5408
+ const Jr = /^[a-z]+\/([a-z]+-\d+)-/, Wr = /^[0-9a-f]{4,40}$/i;
5409
+ async function xr(s) {
5381
5410
  var t;
5382
- return ((t = (await ct(s, ["symbolic-ref", "refs/remotes/origin/HEAD"])).trim().match(/refs\/remotes\/origin\/(.+)/)) == null ? void 0 : t[1]) ?? "main";
5411
+ return ((t = (await je(s, ["symbolic-ref", "refs/remotes/origin/HEAD"])).trim().match(/refs\/remotes\/origin\/(.+)/)) == null ? void 0 : t[1]) ?? "main";
5383
5412
  }
5384
- async function Vr(s, e) {
5413
+ async function zr(s, e) {
5385
5414
  var i;
5386
- const t = await ct(s, [
5415
+ const t = await je(s, [
5387
5416
  "for-each-ref",
5388
5417
  "--format=%(refname)",
5389
5418
  "refs/heads",
@@ -5392,17 +5421,17 @@ async function Vr(s, e) {
5392
5421
  for (const r of t.split(`
5393
5422
  `)) {
5394
5423
  const o = r.replace(/^refs\/heads\//, "").replace(/^refs\/remotes\/[^/]+\//, "");
5395
- if (((i = Yr.exec(o)) == null ? void 0 : i[1]) === n) return o;
5424
+ if (((i = Jr.exec(o)) == null ? void 0 : i[1]) === n) return o;
5396
5425
  }
5397
5426
  }
5398
- async function Jr(s, e) {
5399
- const t = await Vr(s, e);
5427
+ async function Qr(s, e) {
5428
+ const t = await zr(s, e);
5400
5429
  if (!t) return [];
5401
- const n = await Gr(s);
5402
- return (await ct(s, ["log", "--format=%s", `${n}..${t}`])).split(`
5430
+ const n = await xr(s);
5431
+ return (await je(s, ["log", "--format=%s", `${n}..${t}`])).split(`
5403
5432
  `).map((r) => r.trim()).filter(Boolean);
5404
5433
  }
5405
- function ct(s, e) {
5434
+ function je(s, e) {
5406
5435
  return new Promise((t) => {
5407
5436
  var r;
5408
5437
  const n = K("git", e, { cwd: s, stdio: ["ignore", "pipe", "ignore"] });
@@ -5412,28 +5441,38 @@ function ct(s, e) {
5412
5441
  }), n.on("close", () => t(i)), n.on("error", () => t(""));
5413
5442
  });
5414
5443
  }
5415
- async function Zo(s, e) {
5416
- if (!Hr.test(e)) return null;
5417
- const t = await ct(s, ["log", "-1", "--format=%B", e]), n = t ? ms(t) : null;
5444
+ async function Xr(s, e) {
5445
+ if (!Wr.test(e)) return null;
5446
+ const t = await je(s, ["log", "-1", "--format=%B", e]), n = t ? ms(t) : null;
5418
5447
  if (n) return n;
5419
- const i = await Tt(A(s, "CHANGELOG.md")), r = Ur(i, e);
5448
+ const i = await Qe($(s, "CHANGELOG.md")), r = Vr(i, e);
5420
5449
  return r ? ms(r) : null;
5421
5450
  }
5422
- async function ea(s, e) {
5451
+ async function Zr(s, e) {
5452
+ const n = (await je(s, ["log", "--format=%H", "--reverse", e])).split(`
5453
+ `).map((o) => o.trim()).filter(Boolean), i = await Promise.all(n.map((o) => Xr(s, o))), r = /* @__PURE__ */ new Map();
5454
+ return n.forEach((o, a) => {
5455
+ const c = i[a];
5456
+ if (!c) return;
5457
+ const l = r.get(c);
5458
+ l ? l.push(o) : r.set(c, [o]);
5459
+ }), r;
5460
+ }
5461
+ async function ua(s, e) {
5423
5462
  const [{ entries: t }, n, i, r, o] = await Promise.all([
5424
- at(A(s, "papercamp", "ideas")),
5463
+ ke($(s, "papercamp", "ideas")),
5425
5464
  Ts(s),
5426
- Tt(A(s, "papercamp", "tasks.log")),
5427
- Tt(A(s, "CHANGELOG.md")),
5428
- Jr(s, e)
5429
- ]), a = t.find((f) => f.id === e), c = n == null ? void 0 : n.get(e), l = Dr(i).filter((f) => f.planId === e), u = kn(r, e);
5465
+ Qe($(s, "papercamp", "tasks.log")),
5466
+ Qe($(s, "CHANGELOG.md")),
5467
+ Qr(s, e)
5468
+ ]), a = t.find((f) => f.id === e), c = n == null ? void 0 : n.get(e), l = Mr(i).filter((f) => f.planId === e), u = kn(r, e);
5430
5469
  return {
5431
5470
  id: e,
5432
5471
  idea: a ? {
5433
5472
  reached: !0,
5434
5473
  data: {
5435
5474
  title: a.title,
5436
- status: ot(a, c, n !== void 0),
5475
+ status: lt(a, c, n !== void 0),
5437
5476
  type: a.type
5438
5477
  }
5439
5478
  } : { reached: !1 },
@@ -5444,19 +5483,19 @@ async function ea(s, e) {
5444
5483
  releaseLine: u ? { reached: !0, data: u } : { reached: !1 }
5445
5484
  };
5446
5485
  }
5447
- const He = /^##\s+/, Wr = /^##\s+The goal\s*$/i, Sn = /^##\s+(Horizon\s+\d+\s*[—-].*)\r?$/i, zr = /^##\s+Standing concerns\s*$/i, ze = /^-\s+\*\*(.+?)\*\*\s+[—-]\s+(.*)\r?$/, xr = /^\s+-\s+→\s+(.+?)\r?$/, En = /^\s+-\s+(.+?)\r?$/, Nn = /^\s+\S/;
5486
+ const Ve = /^##\s+/, eo = /^##\s+The goal\s*$/i, Sn = /^##\s+(Horizon\s+\d+\s*[—-].*)\r?$/i, to = /^##\s+Standing concerns\s*$/i, Xe = /^-\s+\*\*(.+?)\*\*\s+[—-]\s+(.*)\r?$/, so = /^\s+-\s+→\s+(.+?)\r?$/, En = /^\s+-\s+(.+?)\r?$/, Nn = /^\s+\S/;
5448
5487
  function gs(s, e, t) {
5449
5488
  const n = [];
5450
5489
  let i = e;
5451
5490
  for (; i < t; ) {
5452
- const r = s[i].match(ze);
5491
+ const r = s[i].match(Xe);
5453
5492
  if (!r) {
5454
5493
  i++;
5455
5494
  continue;
5456
5495
  }
5457
5496
  const o = [r[2].trim()], a = [], c = [];
5458
- for (i++; i < t && !ze.test(s[i]); ) {
5459
- const l = s[i].match(xr);
5497
+ for (i++; i < t && !Xe.test(s[i]); ) {
5498
+ const l = s[i].match(so);
5460
5499
  if (l) {
5461
5500
  c.push(l[1].trim()), i++;
5462
5501
  continue;
@@ -5473,16 +5512,16 @@ function gs(s, e, t) {
5473
5512
  }
5474
5513
  return n;
5475
5514
  }
5476
- function Qr(s) {
5515
+ function no(s) {
5477
5516
  const e = s.split(`
5478
5517
  `);
5479
5518
  let t = "";
5480
5519
  const n = [];
5481
5520
  let i = [];
5482
5521
  for (let r = 0; r < e.length; r++) {
5483
- if (Wr.test(e[r])) {
5522
+ if (eo.test(e[r])) {
5484
5523
  let a = r + 1;
5485
- for (; a < e.length && !He.test(e[a]); ) a++;
5524
+ for (; a < e.length && !Ve.test(e[a]); ) a++;
5486
5525
  t = e.slice(r + 1, a).join(`
5487
5526
  `).trim(), r = a - 1;
5488
5527
  continue;
@@ -5490,13 +5529,13 @@ function Qr(s) {
5490
5529
  const o = e[r].match(Sn);
5491
5530
  if (o) {
5492
5531
  let a = r + 1;
5493
- for (; a < e.length && !He.test(e[a]); ) a++;
5532
+ for (; a < e.length && !Ve.test(e[a]); ) a++;
5494
5533
  n.push({ title: o[1].trim(), items: gs(e, r + 1, a) }), r = a - 1;
5495
5534
  continue;
5496
5535
  }
5497
- if (zr.test(e[r])) {
5536
+ if (to.test(e[r])) {
5498
5537
  let a = r + 1;
5499
- for (; a < e.length && !He.test(e[a]); ) a++;
5538
+ for (; a < e.length && !Ve.test(e[a]); ) a++;
5500
5539
  i = gs(e, r + 1, a), r = a - 1;
5501
5540
  }
5502
5541
  }
@@ -5507,25 +5546,25 @@ function In(s, e) {
5507
5546
  const n = s[t].match(Sn);
5508
5547
  if (!n || n[1].trim() !== e) continue;
5509
5548
  let i = t + 1;
5510
- for (; i < s.length && !He.test(s[i]); ) i++;
5549
+ for (; i < s.length && !Ve.test(s[i]); ) i++;
5511
5550
  return { start: t + 1, end: i };
5512
5551
  }
5513
5552
  }
5514
- function xt(s, e, t) {
5553
+ function zt(s, e, t) {
5515
5554
  const n = In(s, e);
5516
5555
  if (n)
5517
5556
  for (let i = n.start; i < n.end; i++) {
5518
- const r = s[i].match(ze);
5557
+ const r = s[i].match(Xe);
5519
5558
  if (!r || r[1].trim() !== t) continue;
5520
5559
  let o = i + 1;
5521
- for (; o < n.end && !ze.test(s[o]) && Nn.test(s[o]); )
5560
+ for (; o < n.end && !Xe.test(s[o]) && Nn.test(s[o]); )
5522
5561
  o++;
5523
5562
  return { start: i, end: o };
5524
5563
  }
5525
5564
  }
5526
- function ta(s, e, t, n) {
5565
+ function da(s, e, t, n) {
5527
5566
  const i = s.split(`
5528
- `), r = xt(i, e, t);
5567
+ `), r = zt(i, e, t);
5529
5568
  if (!r) return s;
5530
5569
  if (n === void 0)
5531
5570
  return i.splice(r.start, r.end - r.start), i.join(`
@@ -5538,7 +5577,7 @@ function ta(s, e, t, n) {
5538
5577
  }
5539
5578
  return s;
5540
5579
  }
5541
- function sa(s, e, t, n) {
5580
+ function ha(s, e, t, n) {
5542
5581
  const i = s.split(`
5543
5582
  `), r = In(i, e);
5544
5583
  if (!r) return s;
@@ -5547,25 +5586,25 @@ function sa(s, e, t, n) {
5547
5586
  return i.splice(o, 0, `- **${t}** — ${n}`), i.join(`
5548
5587
  `);
5549
5588
  }
5550
- function na(s, e, t, n) {
5589
+ function pa(s, e, t, n) {
5551
5590
  const i = s.split(`
5552
- `), r = xt(i, e, t);
5591
+ `), r = zt(i, e, t);
5553
5592
  return r ? (i.splice(r.end, 0, ` - ${n}`), i.join(`
5554
5593
  `)) : s;
5555
5594
  }
5556
- function ia(s, e, t, n) {
5595
+ function ma(s, e, t, n) {
5557
5596
  const i = s.split(`
5558
- `), r = xt(i, e, t);
5597
+ `), r = zt(i, e, t);
5559
5598
  return r ? (i.splice(r.end, 0, ` - → ${n}`), i.join(`
5560
5599
  `)) : s;
5561
5600
  }
5562
- function Xr(s) {
5601
+ function io(s) {
5563
5602
  return [
5564
5603
  ...s.horizons.flatMap((e) => e.items.map((t) => t.name)),
5565
5604
  ...s.standingConcerns.map((e) => e.name)
5566
5605
  ];
5567
5606
  }
5568
- function ra(s, e, t = [], n = "") {
5607
+ function ga(s, e, t = [], n = "") {
5569
5608
  const i = new Map(e.filter((c) => c.id).map((c) => [c.id, c])), r = /* @__PURE__ */ new Map();
5570
5609
  for (const c of t)
5571
5610
  c.planId && r.set(c.planId, (r.get(c.planId) ?? 0) + 1);
@@ -5592,10 +5631,10 @@ function ra(s, e, t = [], n = "") {
5592
5631
  { total: 0, done: 0 }
5593
5632
  );
5594
5633
  return { title: c.title, items: l, rollup: u };
5595
- }), a = Zr(s, e, t);
5634
+ }), a = ro(s, e, t);
5596
5635
  return { goal: s.goal, horizons: o, events: a };
5597
5636
  }
5598
- function Zr(s, e, t) {
5637
+ function ro(s, e, t) {
5599
5638
  const n = /* @__PURE__ */ new Map();
5600
5639
  for (const r of s.horizons)
5601
5640
  for (const o of r.items)
@@ -5628,7 +5667,7 @@ function Zr(s, e, t) {
5628
5667
  }
5629
5668
  return i.sort((r, o) => Date.parse(r.date) - Date.parse(o.date));
5630
5669
  }
5631
- function eo(s) {
5670
+ function oo(s) {
5632
5671
  const e = JSON.stringify({
5633
5672
  body: s.body,
5634
5673
  phases: s.phases.map((t) => ({
@@ -5638,7 +5677,7 @@ function eo(s) {
5638
5677
  source: t.source ?? null
5639
5678
  }))
5640
5679
  });
5641
- return Mn("sha256").update(e).digest("hex");
5680
+ return jn("sha256").update(e).digest("hex");
5642
5681
  }
5643
5682
  const Qt = /* @__PURE__ */ new Set([
5644
5683
  "core",
@@ -5660,7 +5699,7 @@ const Qt = /* @__PURE__ */ new Set([
5660
5699
  "release",
5661
5700
  "main"
5662
5701
  ]);
5663
- function to(s, e) {
5702
+ function ao(s, e) {
5664
5703
  return (s == null ? void 0 : s.find((t) => Qt.has(t))) ?? e;
5665
5704
  }
5666
5705
  function Tn(s, e) {
@@ -5691,11 +5730,11 @@ function Tn(s, e) {
5691
5730
  }), n.on("error", () => t(void 0));
5692
5731
  });
5693
5732
  }
5694
- async function so(s, e) {
5695
- for (const t of ["ideas", A("ideas", "archive")]) {
5696
- const n = A(s, "papercamp", t, `${e}.md`);
5733
+ async function co(s, e) {
5734
+ for (const t of ["ideas", $("ideas", "archive")]) {
5735
+ const n = $(s, "papercamp", t, `${e}.md`);
5697
5736
  try {
5698
- return await Ln(n), n;
5737
+ return await _n(n), n;
5699
5738
  } catch {
5700
5739
  }
5701
5740
  }
@@ -5704,20 +5743,20 @@ async function so(s, e) {
5704
5743
  async function se(s, e) {
5705
5744
  const t = await Tn(s, e), n = ks(t == null ? void 0 : t.body, (t == null ? void 0 : t.headRefName) ?? e);
5706
5745
  if (!n) return;
5707
- const i = await so(s, n);
5746
+ const i = await co(s, n);
5708
5747
  if (!i) return;
5709
5748
  const { entries: r } = gn(await pe(i, "utf-8")), o = r[0];
5710
5749
  if (o)
5711
5750
  return { id: n, view: t, entry: o };
5712
5751
  }
5713
- async function oa(s, e) {
5752
+ async function ya(s, e) {
5714
5753
  const t = await se(s, e);
5715
5754
  if (!t) return;
5716
5755
  const { id: n, entry: i } = t;
5717
5756
  return { id: n, kind: i.type, tags: i.tags, phases: i.phases };
5718
5757
  }
5719
5758
  const $n = "<!-- papercamp:phases:start -->", An = "<!-- papercamp:phases:end -->", ys = new RegExp(`${$n}[\\s\\S]*?${An}`);
5720
- function no(s, e) {
5759
+ function lo(s, e) {
5721
5760
  const t = e.map((r) => `- [${r.done ? "x" : " "}] ${r.text}`).join(`
5722
5761
  `), n = `${$n}
5723
5762
  ### Phases
@@ -5729,7 +5768,7 @@ ${An}`;
5729
5768
 
5730
5769
  ${n}` : n;
5731
5770
  }
5732
- function io(s, e, t) {
5771
+ function fo(s, e, t) {
5733
5772
  return new Promise((n) => {
5734
5773
  var r, o;
5735
5774
  const i = K("gh", ["pr", "edit", e, "--body-file", "-"], {
@@ -5740,20 +5779,20 @@ function io(s, e, t) {
5740
5779
  }), i.on("close", (a) => n(a === 0)), i.on("error", () => n(!1)), (o = i.stdin) == null || o.end(t);
5741
5780
  });
5742
5781
  }
5743
- async function aa(s, e) {
5782
+ async function wa(s, e) {
5744
5783
  const t = await se(s, e);
5745
5784
  if (!(t != null && t.view)) return "unresolved";
5746
- const { view: n, entry: i } = t, r = no(n.body, i.phases);
5747
- return r === n.body ? "unchanged" : await io(s, e, r) ? "updated" : "unresolved";
5785
+ const { view: n, entry: i } = t, r = lo(n.body, i.phases);
5786
+ return r === n.body ? "unchanged" : await fo(s, e, r) ? "updated" : "unresolved";
5748
5787
  }
5749
- function ro(s) {
5788
+ function uo(s) {
5750
5789
  const e = /* @__PURE__ */ new Set();
5751
5790
  s.kind && e.add(s.kind);
5752
5791
  for (const t of s.tags)
5753
5792
  Qt.has(t) && e.add(t);
5754
5793
  return [...e];
5755
5794
  }
5756
- function oo(s) {
5795
+ function ho(s) {
5757
5796
  return new Promise((e) => {
5758
5797
  var i, r;
5759
5798
  const t = K("gh", ["label", "list", "--limit", "200", "--json", "name"], {
@@ -5778,7 +5817,7 @@ function oo(s) {
5778
5817
  }), t.on("error", () => e(void 0));
5779
5818
  });
5780
5819
  }
5781
- function ao(s, e) {
5820
+ function po(s, e) {
5782
5821
  return new Promise((t) => {
5783
5822
  var i;
5784
5823
  const n = K("gh", ["label", "create", e, "--color", "ededed"], {
@@ -5789,7 +5828,7 @@ function ao(s, e) {
5789
5828
  }), n.on("close", (r) => t(r === 0)), n.on("error", () => t(!1));
5790
5829
  });
5791
5830
  }
5792
- function co(s, e, t) {
5831
+ function mo(s, e, t) {
5793
5832
  return new Promise((n) => {
5794
5833
  var r;
5795
5834
  const i = K("gh", ["pr", "edit", e, "--add-label", t.join(",")], {
@@ -5800,29 +5839,29 @@ function co(s, e, t) {
5800
5839
  }), i.on("close", (o) => n(o === 0)), i.on("error", () => n(!1));
5801
5840
  });
5802
5841
  }
5803
- async function ca(s, e) {
5842
+ async function ba(s, e) {
5804
5843
  const t = await se(s, e);
5805
5844
  if (!(t != null && t.view)) return "unresolved";
5806
- const { view: n, entry: i } = t, r = ro({ kind: i.type, tags: i.tags }), o = new Set((n.labels ?? []).map((u) => u.name)), a = r.filter((u) => !o.has(u));
5845
+ const { view: n, entry: i } = t, r = uo({ kind: i.type, tags: i.tags }), o = new Set((n.labels ?? []).map((u) => u.name)), a = r.filter((u) => !o.has(u));
5807
5846
  if (a.length === 0) return "unchanged";
5808
- const c = await oo(s);
5847
+ const c = await ho(s);
5809
5848
  if (c) {
5810
5849
  const u = a.filter((f) => !c.has(f));
5811
5850
  for (const f of u)
5812
- await ao(s, f);
5851
+ await po(s, f);
5813
5852
  }
5814
- return await co(s, e, a) ? "updated" : "unresolved";
5853
+ return await mo(s, e, a) ? "updated" : "unresolved";
5815
5854
  }
5816
5855
  function vn(s, e) {
5817
- const t = e.type ?? "feat", n = to(e.tags, "repo");
5856
+ const t = e.type ?? "feat", n = ao(e.tags, "repo");
5818
5857
  return `${t}(${n}): ${e.title} (${s})`;
5819
5858
  }
5820
- const lo = new RegExp(`^(${Dn.join("|")})\\(([a-z-]+)\\): .+$`);
5821
- function fo(s) {
5822
- const e = s.match(lo);
5859
+ const go = new RegExp(`^(${Mn.join("|")})\\(([a-z-]+)\\): .+$`);
5860
+ function yo(s) {
5861
+ const e = s.match(go);
5823
5862
  return !!e && Qt.has(e[2]);
5824
5863
  }
5825
- function uo(s, e, t) {
5864
+ function wo(s, e, t) {
5826
5865
  return new Promise((n) => {
5827
5866
  var r;
5828
5867
  const i = K("gh", ["pr", "edit", e, "--title", t], {
@@ -5833,19 +5872,19 @@ function uo(s, e, t) {
5833
5872
  }), i.on("close", (o) => n(o === 0)), i.on("error", () => n(!1));
5834
5873
  });
5835
5874
  }
5836
- async function la(s, e) {
5875
+ async function ka(s, e) {
5837
5876
  const t = await se(s, e);
5838
5877
  if (!(t != null && t.view)) return "unresolved";
5839
5878
  const { id: n, view: i, entry: r } = t, o = vn(n, r);
5840
- return i.title === o ? "unchanged" : await uo(s, e, o) ? "updated" : "unresolved";
5879
+ return i.title === o ? "unchanged" : await wo(s, e, o) ? "updated" : "unresolved";
5841
5880
  }
5842
- async function fa(s, e) {
5881
+ async function Sa(s, e) {
5843
5882
  const t = await Tn(s, e);
5844
5883
  if (!t) return "no-pr";
5845
5884
  const n = await se(s, e);
5846
- return n ? t.title === vn(n.id, n.entry) ? "valid" : "invalid" : fo(t.title) ? "valid" : "invalid";
5885
+ return n ? t.title === vn(n.id, n.entry) ? "valid" : "invalid" : yo(t.title) ? "valid" : "invalid";
5847
5886
  }
5848
- function ho(s, e) {
5887
+ function bo(s, e) {
5849
5888
  return new Promise((t) => {
5850
5889
  var i;
5851
5890
  const n = K("gh", ["pr", "ready", e], {
@@ -5856,7 +5895,7 @@ function ho(s, e) {
5856
5895
  }), n.on("close", (r) => t(r === 0)), n.on("error", () => t(!1));
5857
5896
  });
5858
5897
  }
5859
- function po(s, e) {
5898
+ function ko(s, e) {
5860
5899
  return new Promise((t) => {
5861
5900
  var i;
5862
5901
  const n = K("gh", ["pr", "close", e], {
@@ -5867,14 +5906,14 @@ function po(s, e) {
5867
5906
  }), n.on("close", (r) => t(r === 0)), n.on("error", () => t(!1));
5868
5907
  });
5869
5908
  }
5870
- async function ua(s, e) {
5909
+ async function Ea(s, e) {
5871
5910
  const t = await se(s, e);
5872
5911
  if (!(t != null && t.view)) return "unresolved";
5873
5912
  const { view: n, entry: i } = t;
5874
- return i.status === "dropped" ? n.state !== "OPEN" ? "unchanged" : await po(s, e) ? "closed" : "unresolved" : !(i.phases.length > 0 && i.phases.every((a) => a.done)) || !n.isDraft ? "unchanged" : await ho(s, e) ? "ready" : "unresolved";
5913
+ return i.status === "dropped" ? n.state !== "OPEN" ? "unchanged" : await ko(s, e) ? "closed" : "unresolved" : !(i.phases.length > 0 && i.phases.every((a) => a.done)) || !n.isDraft ? "unchanged" : await bo(s, e) ? "ready" : "unresolved";
5875
5914
  }
5876
- const On = "<!-- papercamp:consistency:start -->", mo = "<!-- papercamp:consistency:end -->";
5877
- function go(s, e) {
5915
+ const On = "<!-- papercamp:consistency:start -->", So = "<!-- papercamp:consistency:end -->";
5916
+ function Eo(s, e) {
5878
5917
  const t = ["### Paper Camp checks", ""];
5879
5918
  if (s.length === 0)
5880
5919
  t.push("No consistency issues found.");
@@ -5886,9 +5925,9 @@ function go(s, e) {
5886
5925
  )), `${On}
5887
5926
  ${t.join(`
5888
5927
  `)}
5889
- ${mo}`;
5928
+ ${So}`;
5890
5929
  }
5891
- function yo(s, e, t) {
5930
+ function No(s, e, t) {
5892
5931
  return new Promise((n) => {
5893
5932
  var r, o;
5894
5933
  const i = K("gh", ["pr", "comment", e, "--body-file", "-"], {
@@ -5899,7 +5938,7 @@ function yo(s, e, t) {
5899
5938
  }), i.on("close", (a) => n(a === 0)), i.on("error", () => n(!1)), (o = i.stdin) == null || o.end(t);
5900
5939
  });
5901
5940
  }
5902
- function wo(s, e, t, n, i) {
5941
+ function Io(s, e, t, n, i) {
5903
5942
  return new Promise((r) => {
5904
5943
  var a, c;
5905
5944
  const o = K(
@@ -5918,30 +5957,30 @@ function wo(s, e, t, n, i) {
5918
5957
  }), o.on("close", (l) => r(l === 0)), o.on("error", () => r(!1)), (c = o.stdin) == null || c.end(i);
5919
5958
  });
5920
5959
  }
5921
- async function da(s, e) {
5960
+ async function Na(s, e) {
5922
5961
  var g, d;
5923
5962
  const t = await se(s, e);
5924
5963
  if (!((g = t == null ? void 0 : t.view) != null && g.url)) return "unresolved";
5925
5964
  const { view: n, entry: i } = t, [{ entries: r }, o] = await Promise.all([
5926
- at(A(s, "papercamp", "ideas")),
5927
- pe(A(s, "ROADMAP.md"), "utf-8").catch(() => "")
5928
- ]), a = r.filter((m) => m.kind !== "note").map((m) => bn(m)), c = o ? Xr(Qr(o)) : [], l = Rr(a, c), u = i.audited && i.auditedHash ? {
5965
+ ke($(s, "papercamp", "ideas")),
5966
+ pe($(s, "ROADMAP.md"), "utf-8").catch(() => "")
5967
+ ]), a = r.filter((m) => m.kind !== "note").map((m) => bn(m)), c = o ? io(no(o)) : [], l = Dr(a, c), u = i.audited && i.auditedHash ? {
5929
5968
  audited: i.audited,
5930
- stale: eo(i) !== i.auditedHash
5931
- } : void 0, f = go(l, u), h = (n.comments ?? []).find((m) => m.body.includes(On));
5969
+ stale: oo(i) !== i.auditedHash
5970
+ } : void 0, f = Eo(l, u), h = (n.comments ?? []).find((m) => m.body.includes(On));
5932
5971
  if (h) {
5933
5972
  if (h.body === f) return "unchanged";
5934
5973
  const m = $t(n.url), y = (d = h.url.match(/issuecomment-(\d+)/)) == null ? void 0 : d[1];
5935
- return !m || !y ? "unresolved" : await wo(s, m.owner, m.repo, y, f) ? "updated" : "unresolved";
5974
+ return !m || !y ? "unresolved" : await Io(s, m.owner, m.repo, y, f) ? "updated" : "unresolved";
5936
5975
  }
5937
- return await yo(s, e, f) ? "created" : "unresolved";
5976
+ return await No(s, e, f) ? "created" : "unresolved";
5938
5977
  }
5939
- function ha(s, e, t) {
5978
+ function Ia(s, e, t) {
5940
5979
  if (!s) return;
5941
5980
  const n = (e ?? "feat").toLowerCase(), i = t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
5942
5981
  return `${n}/${s.toLowerCase()}-${i}`;
5943
5982
  }
5944
- function lt(s, e) {
5983
+ function ft(s, e) {
5945
5984
  for (const { entries: t, section: n } of e)
5946
5985
  t && t.length > 0 && s.push(n.formatLines(t).join(`
5947
5986
  `));
@@ -5949,7 +5988,7 @@ function lt(s, e) {
5949
5988
  function Cn() {
5950
5989
  return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
5951
5990
  }
5952
- function pa(s, e = "log") {
5991
+ function Ta(s, e = "log") {
5953
5992
  return {
5954
5993
  kind: e,
5955
5994
  date: Cn(),
@@ -5958,13 +5997,13 @@ function pa(s, e = "log") {
5958
5997
  ...e === "question" ? { state: "open" } : {}
5959
5998
  };
5960
5999
  }
5961
- let xe = Promise.resolve();
5962
- async function bo(s, e) {
6000
+ let Ze = Promise.resolve();
6001
+ async function To(s, e) {
5963
6002
  const t = new RegExp(`^${e.toUpperCase()}-(\\d+)\\.md$`), n = [
5964
- A(s, "ideas"),
5965
- A(s, "ideas", "archive"),
5966
- A(s, "plans"),
5967
- A(s, "plans", "archive")
6003
+ $(s, "ideas"),
6004
+ $(s, "ideas", "archive"),
6005
+ $(s, "plans"),
6006
+ $(s, "plans", "archive")
5968
6007
  ];
5969
6008
  let i = 0;
5970
6009
  for (const r of n) {
@@ -5981,8 +6020,8 @@ async function bo(s, e) {
5981
6020
  }
5982
6021
  return i;
5983
6022
  }
5984
- async function ko(s, e) {
5985
- const t = xe.then(async () => {
6023
+ async function $o(s, e) {
6024
+ const t = Ze.then(async () => {
5986
6025
  let n = null;
5987
6026
  try {
5988
6027
  n = JSON.parse(await pe(s, "utf-8"));
@@ -5990,39 +6029,39 @@ async function ko(s, e) {
5990
6029
  return;
5991
6030
  }
5992
6031
  if (!(n != null && n.nextId)) return;
5993
- const i = n.nextId[e] ?? 1, r = await bo(Rn(s), e), o = Math.max(i, r + 1), a = `${e.toUpperCase()}-${o}`;
5994
- return n.nextId[e] = o + 1, await z(s, `${JSON.stringify(n, null, 2)}
6032
+ const i = n.nextId[e] ?? 1, r = await To(Dn(s), e), o = Math.max(i, r + 1), a = `${e.toUpperCase()}-${o}`;
6033
+ return n.nextId[e] = o + 1, await x(s, `${JSON.stringify(n, null, 2)}
5995
6034
  `), a;
5996
6035
  });
5997
- return xe = t.catch(() => {
6036
+ return Ze = t.catch(() => {
5998
6037
  }), t;
5999
6038
  }
6000
- function So(s) {
6039
+ function Ao(s) {
6001
6040
  const e = [`## ${s.title}`, "", `**Status:** ${s.status}`];
6002
6041
  s.kind && e.push(`**Kind:** ${s.kind}`), s.id && e.push(`**Id:** ${s.id}`), s.idea && e.push(`**Idea:** ${s.idea}`), s.agent && e.push(`**Agent:** ${s.agent}`), e.push(`**Created:** ${s.created}`), s.updated && e.push(`**Updated:** ${s.updated}`), s.tags && s.tags.length > 0 && e.push(`**Tags:** ${s.tags.join(", ")}`);
6003
6042
  const t = [e.join(`
6004
6043
  `)];
6005
- return s.body && t.push(s.body), lt(t, [
6044
+ return s.body && t.push(s.body), ft(t, [
6006
6045
  { entries: s.clarifications, section: Ht },
6007
- { entries: s.phases, section: rt },
6008
- { entries: s.log, section: Re },
6046
+ { entries: s.phases, section: ct },
6047
+ { entries: s.log, section: Me },
6009
6048
  { entries: s.notes, section: Gt }
6010
6049
  ]), t.join(`
6011
6050
 
6012
6051
  `).trimEnd();
6013
6052
  }
6014
- function ma(s) {
6015
- return s.length === 0 ? "" : `${s.map((e) => So(e)).join(`
6053
+ function $a(s) {
6054
+ return s.length === 0 ? "" : `${s.map((e) => Ao(e)).join(`
6016
6055
 
6017
6056
  `)}
6018
6057
  `;
6019
6058
  }
6020
6059
  function Xt(s) {
6021
6060
  return `---
6022
- ${or(s).trimEnd()}
6061
+ ${ar(s).trimEnd()}
6023
6062
  ---`;
6024
6063
  }
6025
- function ga(s) {
6064
+ function Aa(s) {
6026
6065
  const e = {
6027
6066
  id: s.id,
6028
6067
  title: s.title,
@@ -6032,35 +6071,35 @@ function ga(s) {
6032
6071
  };
6033
6072
  s.idea && (e.idea = s.idea), s.agent && (e.agent = s.agent), s.updated && (e.updated = s.updated), s.audited && (e.audited = s.audited), s.auditedHash && (e["audited-hash"] = s.auditedHash), s.tags && s.tags.length > 0 && (e.tags = s.tags);
6034
6073
  const t = [Xt(e)];
6035
- return s.body && t.push(s.body), lt(t, [
6074
+ return s.body && t.push(s.body), ft(t, [
6036
6075
  { entries: s.clarifications, section: Ht },
6037
- { entries: s.phases, section: rt },
6038
- { entries: s.log, section: Re },
6076
+ { entries: s.phases, section: ct },
6077
+ { entries: s.log, section: Me },
6039
6078
  { entries: s.notes, section: Gt }
6040
6079
  ]), t.join(`
6041
6080
 
6042
6081
  `).trimEnd();
6043
6082
  }
6044
- function Eo(s) {
6083
+ function vo(s) {
6045
6084
  const e = {
6046
6085
  id: s.id,
6047
6086
  title: s.title
6048
6087
  };
6049
- s.type && (e.type = s.type), s.kind && (e.kind = s.kind), s.status && (e.status = s.status), e.created = s.created, s.agent && (e.agent = s.agent), s.updated && (e.updated = s.updated), s.audited && (e.audited = s.audited), s.auditedHash && (e["audited-hash"] = s.auditedHash), s.tags && s.tags.length > 0 && (e.tags = s.tags), s.subject && (e.subject = s.subject), s.order !== void 0 && (e.order = s.order);
6088
+ s.type && (e.type = s.type), s.kind && (e.kind = s.kind), s.status && (e.status = s.status), e.created = s.created, s.agent && (e.agent = s.agent), s.updated && (e.updated = s.updated), s.audited && (e.audited = s.audited), s.auditedHash && (e["audited-hash"] = s.auditedHash), s.released && (e.released = s.released), s.tags && s.tags.length > 0 && (e.tags = s.tags), s.subject && (e.subject = s.subject), s.order !== void 0 && (e.order = s.order);
6050
6089
  const t = [Xt(e)];
6051
- return s.body && t.push(s.body), lt(t, [
6052
- { entries: s.phases, section: rt },
6090
+ return s.body && t.push(s.body), ft(t, [
6091
+ { entries: s.phases, section: ct },
6053
6092
  { entries: s.fixes, section: hn },
6054
6093
  { entries: s.thread, section: pn }
6055
6094
  ]), t.join(`
6056
6095
 
6057
6096
  `).trimEnd();
6058
6097
  }
6059
- async function ya(s) {
6060
- return ko(s, "idea");
6098
+ async function va(s) {
6099
+ return $o(s, "idea");
6061
6100
  }
6062
- async function wa(s, e) {
6063
- const t = xe.then(async () => {
6101
+ async function Oa(s, e) {
6102
+ const t = Ze.then(async () => {
6064
6103
  let n = null;
6065
6104
  try {
6066
6105
  n = JSON.parse(await pe(s, "utf-8"));
@@ -6068,13 +6107,13 @@ async function wa(s, e) {
6068
6107
  return;
6069
6108
  }
6070
6109
  const i = n.subjects ?? [];
6071
- i.includes(e) || (n.subjects = [...i, e], await z(s, `${JSON.stringify(n, null, 2)}
6110
+ i.includes(e) || (n.subjects = [...i, e], await x(s, `${JSON.stringify(n, null, 2)}
6072
6111
  `));
6073
6112
  });
6074
- return xe = t.catch(() => {
6113
+ return Ze = t.catch(() => {
6075
6114
  }), t;
6076
6115
  }
6077
- function ba(s) {
6116
+ function Ca(s) {
6078
6117
  const e = {
6079
6118
  id: s.id,
6080
6119
  title: s.title
@@ -6083,21 +6122,21 @@ function ba(s) {
6083
6122
  const t = [Xt(e)], n = `## ${s.id}: ${s.title}`;
6084
6123
  return t.push(s.body ? `${n}
6085
6124
 
6086
- ${s.body}` : n), lt(t, [{ entries: s.log, section: Re }]), t.join(`
6125
+ ${s.body}` : n), ft(t, [{ entries: s.log, section: Me }]), t.join(`
6087
6126
 
6088
6127
  `).trimEnd();
6089
6128
  }
6090
- async function ka(s, e) {
6091
- const t = A(s, "papercamp", "ideas"), n = A(t, "archive"), i = A(t, `${e}.md`), r = A(n, `${e}.md`);
6129
+ async function La(s, e) {
6130
+ const t = $(s, "papercamp", "ideas"), n = $(t, "archive"), i = $(t, `${e}.md`), r = $(n, `${e}.md`);
6092
6131
  await le(n, { recursive: !0 });
6093
6132
  try {
6094
- return await _n(i, r), !0;
6133
+ return await Pn(i, r), !0;
6095
6134
  } catch (o) {
6096
6135
  if (o.code === "ENOENT") return !1;
6097
6136
  throw o;
6098
6137
  }
6099
6138
  }
6100
- function Sa(s, e) {
6139
+ function _a(s, e) {
6101
6140
  let t = !1;
6102
6141
  const n = s.split(`
6103
6142
  `).filter((i) => {
@@ -6111,7 +6150,7 @@ function Sa(s, e) {
6111
6150
  return t ? n.join(`
6112
6151
  `) : s;
6113
6152
  }
6114
- function Ea(s) {
6153
+ function Pa(s) {
6115
6154
  return s.length === 0 ? `# Ideas
6116
6155
 
6117
6156
  No ideas yet.
@@ -6128,7 +6167,7 @@ ${[...s].sort((n, i) => {
6128
6167
  `)}
6129
6168
  `;
6130
6169
  }
6131
- const No = `---
6170
+ const Oo = `---
6132
6171
  name: paper-camp
6133
6172
  description: Work inside a project that has a papercamp/ folder — its unified idea entities (each holding its plan as a section), with decisions and open questions logged as notes on the idea they bind. Use this whenever the working directory contains papercamp/ (papercamp/ideas/), and especially before starting, continuing, or completing any plan phase, drafting an idea, logging a decision, or answering "what are we working on / what's next".
6134
6173
  ---
@@ -6197,13 +6236,13 @@ session start from live plan data, not hand-maintained here. It does
6197
6236
  not define the file formats in full; treat the existing files under
6198
6237
  \`papercamp/\` as the grammar reference (mirror their structure exactly rather
6199
6238
  than inventing a new shape).
6200
- `, Io = "$CLAUDE_PROJECT_DIR/node_modules/.bin/paper-camp", To = `${JSON.stringify(
6239
+ `, Co = "$CLAUDE_PROJECT_DIR/node_modules/.bin/paper-camp", Lo = `${JSON.stringify(
6201
6240
  {
6202
6241
  hooks: {
6203
6242
  SessionStart: [
6204
6243
  {
6205
6244
  matcher: "*",
6206
- hooks: [{ type: "command", command: `"${Io}" session-focus` }]
6245
+ hooks: [{ type: "command", command: `"${Co}" session-focus` }]
6207
6246
  }
6208
6247
  ]
6209
6248
  }
@@ -6211,36 +6250,36 @@ than inventing a new shape).
6211
6250
  null,
6212
6251
  2
6213
6252
  )}
6214
- `, $o = "0.1.0";
6215
- class Ao extends Error {
6253
+ `, _o = "0.1.0";
6254
+ class Po extends Error {
6216
6255
  constructor(e) {
6217
6256
  super(`Paper Camp is already initialized in ${e} (papercamp/config.json exists).`);
6218
6257
  }
6219
6258
  }
6220
6259
  async function ce(s) {
6221
6260
  try {
6222
- return await Pn(s), !0;
6261
+ return await Rn(s), !0;
6223
6262
  } catch {
6224
6263
  return !1;
6225
6264
  }
6226
6265
  }
6227
- const vo = ["suggestions.md"];
6228
- async function Na(s, e) {
6229
- const t = A(s, "papercamp"), n = A(t, "config.json");
6266
+ const Ro = ["suggestions.md"];
6267
+ async function Ra(s, e) {
6268
+ const t = $(s, "papercamp"), n = $(t, "config.json");
6230
6269
  if (await ce(n))
6231
- throw new Ao(s);
6270
+ throw new Po(s);
6232
6271
  const i = {
6233
- version: $o,
6272
+ version: _o,
6234
6273
  projectName: e.projectName,
6235
6274
  initializedAt: (/* @__PURE__ */ new Date()).toISOString(),
6236
6275
  nextId: { idea: 2 }
6237
6276
  };
6238
- Ar.parse(i), await le(t, { recursive: !0 });
6239
- const r = A(t, "ideas");
6277
+ vr.parse(i), await le(t, { recursive: !0 });
6278
+ const r = $(t, "ideas");
6240
6279
  await le(r, { recursive: !0 });
6241
- const o = A(r, "archive");
6280
+ const o = $(r, "archive");
6242
6281
  await le(o, { recursive: !0 });
6243
- const a = A(r, "index.md");
6282
+ const a = $(r, "index.md");
6244
6283
  if (!await ce(a)) {
6245
6284
  const l = e.intent ? `# ${e.projectName}
6246
6285
 
@@ -6249,11 +6288,11 @@ ${e.intent}
6249
6288
 
6250
6289
  What are you building, and why?
6251
6290
  `;
6252
- await z(a, l, "utf-8");
6291
+ await x(a, l, "utf-8");
6253
6292
  }
6254
- const c = A(r, "IDEA-1.md");
6293
+ const c = $(r, "IDEA-1.md");
6255
6294
  if (!await ce(c)) {
6256
- const l = Eo({
6295
+ const l = vo({
6257
6296
  id: "IDEA-1",
6258
6297
  title: "Capture your first idea",
6259
6298
  status: "idea",
@@ -6262,111 +6301,174 @@ What are you building, and why?
6262
6301
 
6263
6302
  Use the New idea button to capture what you're building next, or ask an agent for suggestions.`
6264
6303
  });
6265
- await z(c, `${l}
6304
+ await x(c, `${l}
6266
6305
  `, "utf-8");
6267
6306
  }
6268
- for (const l of vo) {
6269
- const u = A(t, l);
6270
- await ce(u) || await z(u, "", "utf-8");
6307
+ for (const l of Ro) {
6308
+ const u = $(t, l);
6309
+ await ce(u) || await x(u, "", "utf-8");
6271
6310
  }
6272
- await z(n, `${JSON.stringify(i, null, 2)}
6273
- `, "utf-8"), await Oo(s);
6311
+ await x(n, `${JSON.stringify(i, null, 2)}
6312
+ `, "utf-8"), await Do(s);
6274
6313
  }
6275
- async function Oo(s) {
6276
- const e = A(s, ".claude", "skills", "paper-camp");
6314
+ async function Do(s) {
6315
+ const e = $(s, ".claude", "skills", "paper-camp");
6277
6316
  await le(e, { recursive: !0 });
6278
- const t = A(e, "SKILL.md");
6279
- await ce(t) || await z(t, No, "utf-8");
6280
- const n = A(s, ".claude");
6317
+ const t = $(e, "SKILL.md");
6318
+ await ce(t) || await x(t, Oo, "utf-8");
6319
+ const n = $(s, ".claude");
6281
6320
  await le(n, { recursive: !0 });
6282
- const i = A(n, "settings.json");
6283
- await ce(i) || await z(i, To, "utf-8");
6321
+ const i = $(n, "settings.json");
6322
+ await ce(i) || await x(i, Lo, "utf-8");
6323
+ }
6324
+ const Ln = {
6325
+ feat: "Features",
6326
+ fix: "Bug Fixes",
6327
+ refactor: "Code Refactoring",
6328
+ docs: "Documentation",
6329
+ chore: "Miscellaneous"
6330
+ }, Mo = Array.from(new Set(Object.values(Ln)));
6331
+ async function Da(s, e) {
6332
+ const t = await Qe($(s, "CHANGELOG.md")), n = Gr(t).find((a) => a.version === e);
6333
+ if (!n) return null;
6334
+ const [{ entries: i }, r] = await Promise.all([
6335
+ ke($(s, "papercamp", "ideas")),
6336
+ Zr(s, n.range)
6337
+ ]), o = /* @__PURE__ */ new Map();
6338
+ for (const a of r.keys()) {
6339
+ const c = i.find((f) => f.id === a);
6340
+ if (!c) continue;
6341
+ const l = Ln[c.type ?? "chore"], u = o.get(l) ?? [];
6342
+ u.push({ id: c.id, title: c.title }), o.set(l, u);
6343
+ }
6344
+ return Mo.filter((a) => o.has(a)).map((a) => ({
6345
+ label: a,
6346
+ ideas: o.get(a)
6347
+ }));
6348
+ }
6349
+ function Ma(s, e) {
6350
+ const t = [`## ${s}`];
6351
+ for (const n of e) {
6352
+ t.push("", `### ${n.label}`, "");
6353
+ for (const i of n.ideas)
6354
+ t.push(`- ${i.title} (${i.id})`);
6355
+ }
6356
+ return t.join(`
6357
+ `);
6358
+ }
6359
+ function jo(s) {
6360
+ return Math.floor((Date.now() - Date.parse(s)) / 864e5);
6361
+ }
6362
+ const Bo = (s, e) => s === "question" && (e ?? "open") === "open";
6363
+ function Ko(s) {
6364
+ return s.flatMap(
6365
+ (e) => (e.thread ?? []).filter((t) => Bo(t.kind, t.state)).map((t) => ({
6366
+ entityId: e.id,
6367
+ entityTitle: e.title,
6368
+ text: t.text,
6369
+ date: t.date,
6370
+ ageDays: t.date ? jo(t.date) : Number.POSITIVE_INFINITY
6371
+ }))
6372
+ ).sort((e, t) => t.ageDays - e.ageDays);
6373
+ }
6374
+ async function ja(s) {
6375
+ const { entries: e } = await ke(s);
6376
+ return Ko(e);
6284
6377
  }
6285
6378
  export {
6286
- Nr as $,
6287
- Ao as A,
6288
- kn as B,
6289
- To as C,
6290
- Ea as D,
6291
- Eo as E,
6292
- ba as F,
6293
- So as G,
6294
- ga as H,
6295
- ma as I,
6296
- Tr as J,
6297
- Na as K,
6298
- fo as L,
6299
- ia as M,
6300
- Ar as N,
6301
- gn as O,
6302
- $o as P,
6303
- Mo as Q,
6304
- Wt as R,
6305
- No as S,
6306
- Go as T,
6307
- Vo as U,
6308
- Ho as V,
6309
- Yo as W,
6310
- Cr as X,
6311
- Qr as Y,
6312
- Jo as Z,
6313
- Dr as _,
6379
+ ra as $,
6380
+ Po as A,
6381
+ Dr as B,
6382
+ Lo as C,
6383
+ kn as D,
6384
+ Pa as E,
6385
+ vo as F,
6386
+ Ca as G,
6387
+ Ao as H,
6388
+ Aa as I,
6389
+ $a as J,
6390
+ Ma as K,
6391
+ $r as L,
6392
+ Ra as M,
6393
+ yo as N,
6394
+ ma as O,
6395
+ _o as P,
6396
+ vr as Q,
6397
+ gn as R,
6398
+ Oo as S,
6399
+ Vo as T,
6400
+ Wt as U,
6401
+ na as V,
6402
+ ia as W,
6403
+ sa as X,
6404
+ ta as Y,
6405
+ Lr as Z,
6406
+ no as _,
6314
6407
  Qt as a,
6315
- Ir as a0,
6316
- at as a1,
6317
- zo as a2,
6318
- Xo as a3,
6319
- xo as a4,
6320
- ta as a5,
6321
- Sa as a6,
6322
- go as a7,
6323
- no as a8,
6324
- Fo as a9,
6325
- Zo as aa,
6326
- ea as ab,
6327
- ms as ac,
6328
- oa as ad,
6329
- to as ae,
6330
- Ts as af,
6331
- Ko as ag,
6332
- ra as ah,
6333
- Xt as ai,
6334
- da as aj,
6335
- aa as ak,
6336
- ca as al,
6337
- ua as am,
6338
- la as an,
6339
- Cn as ao,
6340
- fa as ap,
6341
- Mr as aq,
6342
- Wo as ar,
6343
- mn as as,
6344
- Uo as at,
6345
- br as au,
6346
- Hr as b,
6408
+ Mr as a0,
6409
+ Ir as a1,
6410
+ Tr as a2,
6411
+ ke as a3,
6412
+ aa as a4,
6413
+ Qe as a5,
6414
+ fa as a6,
6415
+ ja as a7,
6416
+ ca as a8,
6417
+ da as a9,
6418
+ Zo as aA,
6419
+ ea as aB,
6420
+ Xo as aC,
6421
+ kr as aD,
6422
+ _a as aa,
6423
+ Eo as ab,
6424
+ lo as ac,
6425
+ zo as ad,
6426
+ Xr as ae,
6427
+ ua as af,
6428
+ ms as ag,
6429
+ Zr as ah,
6430
+ ya as ai,
6431
+ ao as aj,
6432
+ Ts as ak,
6433
+ Da as al,
6434
+ Gr as am,
6435
+ xo as an,
6436
+ ga as ao,
6437
+ Xt as ap,
6438
+ Na as aq,
6439
+ wa as ar,
6440
+ ba as as,
6441
+ Ea as at,
6442
+ ka as au,
6443
+ Cn as av,
6444
+ Sa as aw,
6445
+ jr as ax,
6446
+ oa as ay,
6447
+ mn as az,
6448
+ Wr as b,
6347
6449
  yn as c,
6348
- na as d,
6349
- sa as e,
6350
- Fe as f,
6351
- pa as g,
6352
- jo as h,
6353
- ka as i,
6354
- ya as j,
6355
- ko as k,
6356
- ha as l,
6357
- qo as m,
6358
- eo as n,
6359
- vn as o,
6360
- Q as p,
6361
- ro as q,
6362
- Zr as r,
6363
- Xr as s,
6364
- wa as t,
6365
- $r as u,
6366
- qr as v,
6367
- bn as w,
6368
- Bo as x,
6369
- Qo as y,
6370
- Rr as z
6450
+ pa as d,
6451
+ ha as e,
6452
+ Ee as f,
6453
+ Ta as g,
6454
+ Jo as h,
6455
+ La as i,
6456
+ va as j,
6457
+ $o as k,
6458
+ Ia as l,
6459
+ Qo as m,
6460
+ Ko as n,
6461
+ oo as o,
6462
+ vn as p,
6463
+ Q as q,
6464
+ uo as r,
6465
+ ro as s,
6466
+ io as t,
6467
+ Oa as u,
6468
+ Ar as v,
6469
+ Ur as w,
6470
+ bn as x,
6471
+ Wo as y,
6472
+ la as z
6371
6473
  };
6372
- //# sourceMappingURL=scaffold.DTcLEZRV.js.map
6474
+ //# sourceMappingURL=parked-questions.BoAnCnQA.js.map