@sisense/sdk-ui 2.15.0 → 2.16.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 (62) hide show
  1. package/dist/ai.cjs +418 -28
  2. package/dist/ai.js +2080 -2112
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +998 -1466
  5. package/dist/analytics-composer.cjs +51 -51
  6. package/dist/analytics-composer.js +556 -565
  7. package/dist/{derive-chart-family-DHOhho50.js → derive-chart-family-DLwnWblo.js} +7991 -7878
  8. package/dist/derive-chart-family-d7eaC45K.cjs +190 -0
  9. package/dist/{dimensions-CtINdhqK.cjs → dimensions-BUWtZxix.cjs} +1 -1
  10. package/dist/{dimensions-Biz7anQc.js → dimensions-DvDgZ8RW.js} +1 -1
  11. package/dist/{execute-query-k_ytd_Rf.cjs → execute-query-CB4XfUng.cjs} +1 -1
  12. package/dist/{execute-query-D1JOjJ8n.js → execute-query-CFK2R_1S.js} +681 -643
  13. package/dist/index.cjs +1549 -32
  14. package/dist/index.js +14125 -13178
  15. package/dist/index.umd.js +2724 -393
  16. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +9 -0
  17. package/dist/packages/sdk-ui/src/app/client-application.d.ts +9 -0
  18. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/get-legacy-cartesian-chart-options.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/chart-data.d.ts +8 -0
  20. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/helpers/design-options.d.ts +12 -0
  21. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/highchart-options/axes.d.ts +13 -0
  22. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/highchart-options/highcharts-options-builder.d.ts +8 -0
  23. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/highchart-options/plot-options.d.ts +19 -0
  24. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/streamgraph-chart-builder.d.ts +8 -0
  25. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/streamgraph-chart/types.d.ts +24 -0
  26. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/types.d.ts +1 -1
  27. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
  28. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +7 -7
  29. package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +27 -1
  30. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +1 -0
  31. package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +11 -1
  32. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +5 -4
  33. package/dist/packages/sdk-ui/src/charts/table/styles/style-constants.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +2 -2
  35. package/dist/packages/sdk-ui/src/filters/components/filters-panel/constants.d.ts +9 -0
  36. package/dist/packages/sdk-ui/src/index.d.ts +1 -0
  37. package/dist/packages/sdk-ui/src/no-results-overlay/images/index.d.ts +1 -1
  38. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +5 -1
  39. package/dist/packages/sdk-ui/src/pivot-table/pivot-table.d.ts +1 -0
  40. package/dist/packages/sdk-ui/src/props.d.ts +32 -1
  41. package/dist/packages/sdk-ui/src/streamgraph-chart.d.ts +42 -0
  42. package/dist/packages/sdk-ui/src/styled/index.d.ts +4 -0
  43. package/dist/packages/sdk-ui/src/styled/with-css-selector-prefix.d.ts +2 -0
  44. package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
  45. package/dist/packages/sdk-ui/src/theme-provider/theme-context.d.ts +3 -1
  46. package/dist/packages/sdk-ui/src/theme-provider/utils.d.ts +8 -0
  47. package/dist/packages/sdk-ui/src/types.d.ts +84 -4
  48. package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/translate-widget-style-options.d.ts +2 -2
  49. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +1 -0
  50. package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +17 -2
  51. package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +2 -3
  52. package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +1 -1
  53. package/dist/{types-B8jkBXCe.cjs → types-Clbnx4mQ.cjs} +1 -1
  54. package/dist/{types-DZhBEm3K.js → types-D1mqt0Mg.js} +2 -8
  55. package/dist/use-common-filters-CkQznSEt.cjs +1325 -0
  56. package/dist/{use-common-filters-8MsC7-0N.js → use-common-filters-CxoO7TzT.js} +44085 -33463
  57. package/dist/{widget-composer-DBwcb3ao.cjs → widget-composer-BaOTPn5w.cjs} +1 -1
  58. package/dist/{widget-composer-D-ktDgUE.js → widget-composer-Dhl_nmhq.js} +115 -111
  59. package/package.json +8 -9
  60. package/dist/derive-chart-family-0J_WPLDy.cjs +0 -190
  61. package/dist/packages/sdk-ui/src/common/icons/edit-pencil-icon.d.ts +0 -3
  62. package/dist/use-common-filters-DlP4xqST.cjs +0 -846
@@ -1,28 +1,29 @@
1
- var zs = Object.defineProperty, Xs = Object.defineProperties;
2
- var Zs = Object.getOwnPropertyDescriptors;
1
+ var Xs = Object.defineProperty, Zs = Object.defineProperties;
2
+ var en = Object.getOwnPropertyDescriptors;
3
3
  var Me = Object.getOwnPropertySymbols;
4
- var Ut = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable;
5
- var lt = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s), en = (s) => {
4
+ var Vt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable;
5
+ var lt = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s), tn = (s) => {
6
6
  throw TypeError(s);
7
7
  };
8
- var Rt = (s, e, t) => e in s ? zs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
8
+ var at = (s, e, t) => e in s ? Xs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
9
9
  for (var t in e || (e = {}))
10
- Ut.call(e, t) && Rt(s, t, e[t]);
10
+ Vt.call(e, t) && at(s, t, e[t]);
11
11
  if (Me)
12
12
  for (var t of Me(e))
13
- Vt.call(e, t) && Rt(s, t, e[t]);
13
+ Jt.call(e, t) && at(s, t, e[t]);
14
14
  return s;
15
- }, G = (s, e) => Xs(s, Zs(e));
16
- var Jt = (s, e) => {
15
+ }, G = (s, e) => Zs(s, en(e));
16
+ var Qt = (s, e) => {
17
17
  var t = {};
18
18
  for (var n in s)
19
- Ut.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
19
+ Vt.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
20
20
  if (s != null && Me)
21
21
  for (var n of Me(s))
22
- e.indexOf(n) < 0 && Vt.call(s, n) && (t[n] = s[n]);
22
+ e.indexOf(n) < 0 && Jt.call(s, n) && (t[n] = s[n]);
23
23
  return t;
24
24
  };
25
- var at = (s, e, t) => new Promise((n, i) => {
25
+ var ct = (s, e, t) => at(s, typeof e != "symbol" ? e + "" : e, t);
26
+ var ft = (s, e, t) => new Promise((n, i) => {
26
27
  var r = (a) => {
27
28
  try {
28
29
  l(t.next(a));
@@ -37,7 +38,7 @@ var at = (s, e, t) => new Promise((n, i) => {
37
38
  }
38
39
  }, l = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(r, o);
39
40
  l((t = t.apply(s, e)).next());
40
- }), tn = function(s, e) {
41
+ }), sn = function(s, e) {
41
42
  this[0] = s, this[1] = e;
42
43
  };
43
44
  var d = (s) => {
@@ -49,23 +50,23 @@ var d = (s) => {
49
50
  }
50
51
  return t = !0, {
51
52
  done: !1,
52
- value: new tn(new Promise((l) => {
53
+ value: new sn(new Promise((l) => {
53
54
  var a = e[r](o);
54
- a instanceof Object || en("Object expected"), l(a);
55
+ a instanceof Object || tn("Object expected"), l(a);
55
56
  }), 1)
56
57
  };
57
58
  }), i[lt("iterator")] = () => i, n("next"), "throw" in e ? n("throw") : i.throw = (r) => {
58
59
  throw r;
59
60
  }, "return" in e && n("return"), i;
60
61
  };
61
- import { E as Qt, a as sn } from "./types-DZhBEm3K.js";
62
- import { b as Hi, i as xi, e as zi, d as Xi } from "./types-DZhBEm3K.js";
63
- import { s as nn, c as rn, p as on, v as ln, g as an, a as Ye, b as Ot, d as Nt, e as Tt, f as It, h as Q, C as ve } from "./widget-composer-D-ktDgUE.js";
64
- import { k as er, m as tr, j as sr, l as nr, i as ir, w as rr } from "./widget-composer-D-ktDgUE.js";
65
- import { n as cn, d as fn, i as un, a as hn } from "./derive-chart-family-DHOhho50.js";
66
- import { CustomSuperJSON as lr, translateQueryJSON as ar, translateQueryToJaql as cr } from "./analytics-composer/node.js";
67
- import { l as dn, m as Yt, A as pn } from "./execute-query-D1JOjJ8n.js";
68
- const At = Symbol.for("yaml.alias"), yt = Symbol.for("yaml.document"), H = Symbol.for("yaml.map"), rs = Symbol.for("yaml.pair"), W = Symbol.for("yaml.scalar"), ye = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ie = (s) => !!s && typeof s == "object" && s[F] === At, ge = (s) => !!s && typeof s == "object" && s[F] === yt, be = (s) => !!s && typeof s == "object" && s[F] === H, E = (s) => !!s && typeof s == "object" && s[F] === rs, A = (s) => !!s && typeof s == "object" && s[F] === W, we = (s) => !!s && typeof s == "object" && s[F] === ye;
62
+ import { E as Yt, a as nn } from "./types-D1mqt0Mg.js";
63
+ import { b as xi, i as zi, e as Xi, d as Zi } from "./types-D1mqt0Mg.js";
64
+ import { s as rn, c as on, p as ln, v as an, g as cn, a as Ye, b as Tt, d as It, e as At, f as Et, h as Q, C as ve } from "./widget-composer-Dhl_nmhq.js";
65
+ import { k as tr, m as sr, j as nr, l as ir, i as rr, w as or } from "./widget-composer-Dhl_nmhq.js";
66
+ import { n as fn, d as un, i as hn, a as dn } from "./derive-chart-family-DLwnWblo.js";
67
+ import { CustomSuperJSON as ar, translateQueryJSON as cr, translateQueryToJaql as fr } from "./analytics-composer/node.js";
68
+ import { l as pn, m as Wt, A as mn } from "./execute-query-CFK2R_1S.js";
69
+ const Lt = Symbol.for("yaml.alias"), bt = Symbol.for("yaml.document"), H = Symbol.for("yaml.map"), os = Symbol.for("yaml.pair"), W = Symbol.for("yaml.scalar"), ye = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ie = (s) => !!s && typeof s == "object" && s[F] === Lt, ge = (s) => !!s && typeof s == "object" && s[F] === bt, be = (s) => !!s && typeof s == "object" && s[F] === H, E = (s) => !!s && typeof s == "object" && s[F] === os, A = (s) => !!s && typeof s == "object" && s[F] === W, we = (s) => !!s && typeof s == "object" && s[F] === ye;
69
70
  function C(s) {
70
71
  if (s && typeof s == "object")
71
72
  switch (s[F]) {
@@ -78,7 +79,7 @@ function C(s) {
78
79
  function M(s) {
79
80
  if (s && typeof s == "object")
80
81
  switch (s[F]) {
81
- case At:
82
+ case Lt:
82
83
  case H:
83
84
  case W:
84
85
  case ye:
@@ -86,18 +87,18 @@ function M(s) {
86
87
  }
87
88
  return !1;
88
89
  }
89
- const mn = (s) => (A(s) || C(s)) && !!s.anchor, P = Symbol("break visit"), os = Symbol("skip children"), J = Symbol("remove node");
90
+ const yn = (s) => (A(s) || C(s)) && !!s.anchor, P = Symbol("break visit"), ls = Symbol("skip children"), J = Symbol("remove node");
90
91
  function x(s, e) {
91
- const t = ls(e);
92
+ const t = as(e);
92
93
  ge(s) ? ae(null, s.contents, t, Object.freeze([s])) === J && (s.contents = null) : ae(null, s, t, Object.freeze([]));
93
94
  }
94
95
  x.BREAK = P;
95
- x.SKIP = os;
96
+ x.SKIP = ls;
96
97
  x.REMOVE = J;
97
98
  function ae(s, e, t, n) {
98
- const i = as(s, e, t, n);
99
+ const i = cs(s, e, t, n);
99
100
  if (M(i) || E(i))
100
- return cs(s, n, i), ae(s, i, t, n);
101
+ return fs(s, n, i), ae(s, i, t, n);
101
102
  if (typeof i != "symbol") {
102
103
  if (C(e)) {
103
104
  n = Object.freeze(n.concat(e));
@@ -126,19 +127,19 @@ function ae(s, e, t, n) {
126
127
  return i;
127
128
  }
128
129
  function We(s, e) {
129
- return at(this, null, function* () {
130
- const t = ls(e);
130
+ return ft(this, null, function* () {
131
+ const t = as(e);
131
132
  ge(s) ? (yield ce(null, s.contents, t, Object.freeze([s]))) === J && (s.contents = null) : yield ce(null, s, t, Object.freeze([]));
132
133
  });
133
134
  }
134
135
  We.BREAK = P;
135
- We.SKIP = os;
136
+ We.SKIP = ls;
136
137
  We.REMOVE = J;
137
138
  function ce(s, e, t, n) {
138
- return at(this, null, function* () {
139
- const i = yield as(s, e, t, n);
139
+ return ft(this, null, function* () {
140
+ const i = yield cs(s, e, t, n);
140
141
  if (M(i) || E(i))
141
- return cs(s, n, i), ce(s, i, t, n);
142
+ return fs(s, n, i), ce(s, i, t, n);
142
143
  if (typeof i != "symbol") {
143
144
  if (C(e)) {
144
145
  n = Object.freeze(n.concat(e));
@@ -167,7 +168,7 @@ function ce(s, e, t, n) {
167
168
  return i;
168
169
  });
169
170
  }
170
- function ls(s) {
171
+ function as(s) {
171
172
  return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
172
173
  Alias: s.Node,
173
174
  Map: s.Node,
@@ -182,7 +183,7 @@ function ls(s) {
182
183
  Seq: s.Collection
183
184
  }, s) : s;
184
185
  }
185
- function as(s, e, t, n) {
186
+ function cs(s, e, t, n) {
186
187
  var i, r, o, l, a;
187
188
  if (typeof t == "function")
188
189
  return t(s, e, n);
@@ -197,7 +198,7 @@ function as(s, e, t, n) {
197
198
  if (ie(e))
198
199
  return (a = t.Alias) == null ? void 0 : a.call(t, s, e, n);
199
200
  }
200
- function cs(s, e, t) {
201
+ function fs(s, e, t) {
201
202
  const n = e[e.length - 1];
202
203
  if (C(n))
203
204
  n.items[s] = t;
@@ -210,14 +211,14 @@ function cs(s, e, t) {
210
211
  throw new Error(`Cannot replace node with ${i} parent`);
211
212
  }
212
213
  }
213
- const yn = {
214
+ const gn = {
214
215
  "!": "%21",
215
216
  ",": "%2C",
216
217
  "[": "%5B",
217
218
  "]": "%5D",
218
219
  "{": "%7B",
219
220
  "}": "%7D"
220
- }, gn = (s) => s.replace(/[!,[\]{}]/g, (e) => yn[e]);
221
+ }, bn = (s) => s.replace(/[!,[\]{}]/g, (e) => gn[e]);
221
222
  class D {
222
223
  constructor(e, t) {
223
224
  this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, D.defaultYaml, e), this.tags = Object.assign({}, D.defaultTags, t);
@@ -307,7 +308,7 @@ class D {
307
308
  tagString(e) {
308
309
  for (const [t, n] of Object.entries(this.tags))
309
310
  if (e.startsWith(n))
310
- return t + gn(e.substring(n.length));
311
+ return t + bn(e.substring(n.length));
311
312
  return e[0] === "!" ? e : `!<${e}>`;
312
313
  }
313
314
  toString(e) {
@@ -328,14 +329,14 @@ class D {
328
329
  }
329
330
  D.defaultYaml = { explicit: !1, version: "1.2" };
330
331
  D.defaultTags = { "!!": "tag:yaml.org,2002:" };
331
- function fs(s) {
332
+ function us(s) {
332
333
  if (/[\x00-\x19\s,[\]{}]/.test(s)) {
333
334
  const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
334
335
  throw new Error(t);
335
336
  }
336
337
  return !0;
337
338
  }
338
- function us(s) {
339
+ function hs(s) {
339
340
  const e = /* @__PURE__ */ new Set();
340
341
  return x(s, {
341
342
  Value(t, n) {
@@ -343,20 +344,20 @@ function us(s) {
343
344
  }
344
345
  }), e;
345
346
  }
346
- function hs(s, e) {
347
+ function ds(s, e) {
347
348
  for (let t = 1; ; ++t) {
348
349
  const n = `${s}${t}`;
349
350
  if (!e.has(n))
350
351
  return n;
351
352
  }
352
353
  }
353
- function bn(s, e) {
354
+ function wn(s, e) {
354
355
  const t = [], n = /* @__PURE__ */ new Map();
355
356
  let i = null;
356
357
  return {
357
358
  onAnchor: (r) => {
358
- t.push(r), i || (i = us(s));
359
- const o = hs(e, i);
359
+ t.push(r), i || (i = hs(s));
360
+ const o = ds(e, i);
360
361
  return i.add(o), o;
361
362
  },
362
363
  /**
@@ -406,7 +407,7 @@ function q(s, e, t) {
406
407
  if (Array.isArray(s))
407
408
  return s.map((n, i) => q(n, String(i), t));
408
409
  if (s && typeof s.toJSON == "function") {
409
- if (!t || !mn(s))
410
+ if (!t || !yn(s))
410
411
  return s.toJSON(e, t);
411
412
  const n = { aliasCount: 0, count: 1, res: void 0 };
412
413
  t.anchors.set(s, n), t.onCreate = (r) => {
@@ -417,7 +418,7 @@ function q(s, e, t) {
417
418
  }
418
419
  return typeof s == "bigint" && !(t != null && t.keep) ? Number(s) : s;
419
420
  }
420
- class Et {
421
+ class Ct {
421
422
  constructor(e) {
422
423
  Object.defineProperty(this, F, { value: e });
423
424
  }
@@ -444,9 +445,9 @@ class Et {
444
445
  return typeof r == "function" ? fe(r, { "": l }, "", l) : l;
445
446
  }
446
447
  }
447
- class Ge extends Et {
448
+ class Ge extends Ct {
448
449
  constructor(e) {
449
- super(At), this.source = e, Object.defineProperty(this, "tag", {
450
+ super(Lt), this.source = e, Object.defineProperty(this, "tag", {
450
451
  set() {
451
452
  throw new Error("Alias nodes cannot have tags");
452
453
  }
@@ -488,7 +489,7 @@ class Ge extends Et {
488
489
  toString(e, t, n) {
489
490
  const i = `*${this.source}`;
490
491
  if (e) {
491
- if (fs(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
492
+ if (us(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
492
493
  const r = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
493
494
  throw new Error(r);
494
495
  }
@@ -515,8 +516,8 @@ function Ke(s, e, t) {
515
516
  }
516
517
  return 1;
517
518
  }
518
- const ds = (s) => !s || typeof s != "function" && typeof s != "object";
519
- class O extends Et {
519
+ const ps = (s) => !s || typeof s != "function" && typeof s != "object";
520
+ class O extends Ct {
520
521
  constructor(e) {
521
522
  super(W), this.value = e;
522
523
  }
@@ -532,8 +533,8 @@ O.BLOCK_LITERAL = "BLOCK_LITERAL";
532
533
  O.PLAIN = "PLAIN";
533
534
  O.QUOTE_DOUBLE = "QUOTE_DOUBLE";
534
535
  O.QUOTE_SINGLE = "QUOTE_SINGLE";
535
- const wn = "tag:yaml.org,2002:";
536
- function Sn(s, e, t) {
536
+ const Sn = "tag:yaml.org,2002:";
537
+ function kn(s, e, t) {
537
538
  var n;
538
539
  if (e) {
539
540
  const i = t.filter((o) => o.tag === e), r = (n = i.find((o) => !o.format)) != null ? n : i[0];
@@ -562,8 +563,8 @@ function Ae(s, e, t) {
562
563
  return a.anchor || (a.anchor = i(s)), new Ge(a.anchor);
563
564
  a = { anchor: null, node: null }, l.set(s, a);
564
565
  }
565
- e != null && e.startsWith("!!") && (e = wn + e.slice(2));
566
- let c = Sn(s, e, o.tags);
566
+ e != null && e.startsWith("!!") && (e = Sn + e.slice(2));
567
+ let c = kn(s, e, o.tags);
567
568
  if (!c) {
568
569
  if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
569
570
  const y = new O(s);
@@ -596,7 +597,7 @@ function Ue(s, e, t) {
596
597
  });
597
598
  }
598
599
  const Te = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
599
- class ps extends Et {
600
+ class ms extends Ct {
600
601
  constructor(e, t) {
601
602
  super(e), Object.defineProperty(this, "schema", {
602
603
  value: t,
@@ -691,14 +692,14 @@ class ps extends Et {
691
692
  }
692
693
  }
693
694
  }
694
- const kn = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
695
+ const On = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
695
696
  function Y(s, e) {
696
697
  return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
697
698
  }
698
699
  const ee = (s, e, t) => s.endsWith(`
699
700
  `) ? Y(t, e) : t.includes(`
700
701
  `) ? `
701
- ` + Y(t, e) : (s.endsWith(" ") ? "" : " ") + t, ms = "flow", gt = "block", qe = "quoted";
702
+ ` + Y(t, e) : (s.endsWith(" ") ? "" : " ") + t, ys = "flow", wt = "block", qe = "quoted";
702
703
  function He(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
703
704
  if (!i || i < 0)
704
705
  return s;
@@ -710,7 +711,7 @@ function He(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
710
711
  let f = i - e.length;
711
712
  typeof n == "number" && (n > i - Math.max(2, r) ? c.push(0) : f = i - n);
712
713
  let p, m, y = !1, u = -1, g = -1, b = -1;
713
- t === gt && (u = Wt(s, u, e.length), u !== -1 && (f = u + a));
714
+ t === wt && (u = Gt(s, u, e.length), u !== -1 && (f = u + a));
714
715
  for (let I; I = s[u += 1]; ) {
715
716
  if (t === qe && I === "\\") {
716
717
  switch (g = u, s[u + 1]) {
@@ -730,7 +731,7 @@ function He(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
730
731
  }
731
732
  if (I === `
732
733
  `)
733
- t === gt && (u = Wt(s, u, e.length)), f = u + e.length + a, p = void 0;
734
+ t === wt && (u = Gt(s, u, e.length)), f = u + e.length + a, p = void 0;
734
735
  else {
735
736
  if (I === " " && m && m !== " " && m !== `
736
737
  ` && m !== " ") {
@@ -765,7 +766,7 @@ ${e}${s.slice(k + 1, N)}`);
765
766
  }
766
767
  return S;
767
768
  }
768
- function Wt(s, e, t) {
769
+ function Gt(s, e, t) {
769
770
  let n = e, i = e + 1, r = s[i];
770
771
  for (; r === " " || r === " "; )
771
772
  if (e < i + t)
@@ -784,7 +785,7 @@ const xe = (s, e) => ({
784
785
  lineWidth: s.options.lineWidth,
785
786
  minContentWidth: s.options.minContentWidth
786
787
  }), ze = (s) => /^(%|---|\.\.\.)/m.test(s);
787
- function On(s, e, t) {
788
+ function Nn(s, e, t) {
788
789
  if (!e || e < 0)
789
790
  return !1;
790
791
  const n = e - t, i = s.length;
@@ -861,13 +862,13 @@ function Ie(s, e) {
861
862
  }
862
863
  return o = l ? o + t.slice(l) : t, n ? o : He(o, r, qe, xe(e, !1));
863
864
  }
864
- function bt(s, e) {
865
+ function St(s, e) {
865
866
  if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
866
867
  `) || /[ \t]\n|\n[ \t]/.test(s))
867
868
  return Ie(s, e);
868
869
  const t = e.indent || (ze(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
869
870
  ${t}`) + "'";
870
- return e.implicitKey ? n : He(n, t, ms, xe(e, !1));
871
+ return e.implicitKey ? n : He(n, t, ys, xe(e, !1));
871
872
  }
872
873
  function ue(s, e) {
873
874
  const { singleQuote: t } = e.options;
@@ -876,24 +877,24 @@ function ue(s, e) {
876
877
  n = Ie;
877
878
  else {
878
879
  const i = s.includes('"'), r = s.includes("'");
879
- i && !r ? n = bt : r && !i ? n = Ie : n = t ? bt : Ie;
880
+ i && !r ? n = St : r && !i ? n = Ie : n = t ? St : Ie;
880
881
  }
881
882
  return n(s, e);
882
883
  }
883
- let wt;
884
+ let kt;
884
885
  try {
885
- wt = new RegExp(`(^|(?<!
886
+ kt = new RegExp(`(^|(?<!
886
887
  ))
887
888
  +(?!
888
889
  |$)`, "g");
889
890
  } catch (s) {
890
- wt = /\n+(?!\n|$)/g;
891
+ kt = /\n+(?!\n|$)/g;
891
892
  }
892
893
  function Fe({ comment: s, type: e, value: t }, n, i, r) {
893
894
  const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
894
895
  if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
895
896
  return ue(t, n);
896
- const c = n.indent || (n.forceBlockIndent || ze(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !On(t, a, c.length);
897
+ const c = n.indent || (n.forceBlockIndent || ze(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !Nn(t, a, c.length);
897
898
  if (!t)
898
899
  return h ? `|
899
900
  ` : `>
@@ -909,7 +910,7 @@ function Fe({ comment: s, type: e, value: t }, n, i, r) {
909
910
  const y = m.indexOf(`
910
911
  `);
911
912
  y === -1 ? f = "-" : t === m || y !== m.length - 1 ? (f = "+", r && r()) : f = "", m && (t = t.slice(0, -m.length), m[m.length - 1] === `
912
- ` && (m = m.slice(0, -1)), m = m.replace(wt, `$&${c}`));
913
+ ` && (m = m.slice(0, -1)), m = m.replace(kt, `$&${c}`));
913
914
  let u = !1, g, b = -1;
914
915
  for (g = 0; g < t.length; ++g) {
915
916
  const T = t[g];
@@ -929,11 +930,11 @@ function Fe({ comment: s, type: e, value: t }, n, i, r) {
929
930
  ${c}${S}${t}${m}`;
930
931
  t = t.replace(/\n+/g, `
931
932
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
932
- const N = He(`${S}${t}${m}`, c, gt, xe(n, !0));
933
+ const N = He(`${S}${t}${m}`, c, wt, xe(n, !0));
933
934
  return `${k}
934
935
  ${c}${N}`;
935
936
  }
936
- function Nn(s, e, t, n) {
937
+ function Tn(s, e, t, n) {
937
938
  const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: h } = e;
938
939
  if (l && r.includes(`
939
940
  `) || h && /[[\]{},]/.test(r))
@@ -960,7 +961,7 @@ ${a}`);
960
961
  if (y.some(p) || m != null && m.some(p))
961
962
  return ue(r, e);
962
963
  }
963
- return l ? f : He(f, a, ms, xe(e, !1));
964
+ return l ? f : He(f, a, ys, xe(e, !1));
964
965
  }
965
966
  function Ce(s, e, t, n) {
966
967
  const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
@@ -974,9 +975,9 @@ function Ce(s, e, t, n) {
974
975
  case O.QUOTE_DOUBLE:
975
976
  return Ie(o.value, e);
976
977
  case O.QUOTE_SINGLE:
977
- return bt(o.value, e);
978
+ return St(o.value, e);
978
979
  case O.PLAIN:
979
- return Nn(o, e, t, n);
980
+ return Tn(o, e, t, n);
980
981
  default:
981
982
  return null;
982
983
  }
@@ -989,10 +990,10 @@ function Ce(s, e, t, n) {
989
990
  }
990
991
  return c;
991
992
  }
992
- function ys(s, e) {
993
+ function gs(s, e) {
993
994
  const t = Object.assign({
994
995
  blockQuote: !0,
995
- commentString: kn,
996
+ commentString: On,
996
997
  defaultKeyType: null,
997
998
  defaultStringType: "PLAIN",
998
999
  directives: null,
@@ -1030,7 +1031,7 @@ function ys(s, e) {
1030
1031
  options: t
1031
1032
  };
1032
1033
  }
1033
- function Tn(s, e) {
1034
+ function In(s, e) {
1034
1035
  var i, r, o, l;
1035
1036
  if (e.tag) {
1036
1037
  const a = s.filter((c) => c.tag === e.tag);
@@ -1053,11 +1054,11 @@ function Tn(s, e) {
1053
1054
  }
1054
1055
  return t;
1055
1056
  }
1056
- function In(s, e, { anchors: t, doc: n }) {
1057
+ function An(s, e, { anchors: t, doc: n }) {
1057
1058
  if (!n.directives)
1058
1059
  return "";
1059
1060
  const i = [], r = (A(s) || C(s)) && s.anchor;
1060
- r && fs(r) && (t.add(r), i.push(`&${r}`));
1061
+ r && us(r) && (t.add(r), i.push(`&${r}`));
1061
1062
  const o = s.tag ? s.tag : e.default ? null : e.tag;
1062
1063
  return o && i.push(n.directives.tagString(o)), i.join(" ");
1063
1064
  }
@@ -1074,14 +1075,14 @@ function pe(s, e, t, n) {
1074
1075
  }
1075
1076
  let i;
1076
1077
  const r = M(s) ? s : e.doc.createNode(s, { onTagObj: (h) => i = h });
1077
- i || (i = Tn(e.doc.schema.tags, r));
1078
- const o = In(r, i, e);
1078
+ i || (i = In(e.doc.schema.tags, r));
1079
+ const o = An(r, i, e);
1079
1080
  o.length > 0 && (e.indentAtStart = ((c = e.indentAtStart) != null ? c : 0) + o.length + 1);
1080
1081
  const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : A(r) ? Ce(r, e, t, n) : r.toString(e, t, n);
1081
1082
  return o ? A(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
1082
1083
  ${e.indent}${l}` : l;
1083
1084
  }
1084
- function An({ key: s, value: e }, t, n, i) {
1085
+ function En({ key: s, value: e }, t, n, i) {
1085
1086
  var $, w;
1086
1087
  const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq: h, simpleKeys: f } } = t;
1087
1088
  let p = M(s) && s.comment || null;
@@ -1145,20 +1146,20 @@ ${t.indent}`);
1145
1146
  `) && (T = "");
1146
1147
  return g += T + N, t.inFlow ? k && n && n() : I && !k ? g += ee(g, t.indent, c(I)) : u && i && i(), g;
1147
1148
  }
1148
- function gs(s, e) {
1149
+ function bs(s, e) {
1149
1150
  (s === "debug" || s === "warn") && (typeof process != "undefined" && process.emitWarning ? process.emitWarning(e) : console.warn(e));
1150
1151
  }
1151
- const Gt = "<<";
1152
- function bs(s, e, { key: t, value: n }) {
1153
- if (s != null && s.doc.schema.merge && En(t))
1152
+ const Ht = "<<";
1153
+ function ws(s, e, { key: t, value: n }) {
1154
+ if (s != null && s.doc.schema.merge && Ln(t))
1154
1155
  if (n = ie(n) ? n.resolve(s.doc) : n, we(n))
1155
1156
  for (const i of n.items)
1156
- ct(s, e, i);
1157
+ ut(s, e, i);
1157
1158
  else if (Array.isArray(n))
1158
1159
  for (const i of n)
1159
- ct(s, e, i);
1160
+ ut(s, e, i);
1160
1161
  else
1161
- ct(s, e, n);
1162
+ ut(s, e, n);
1162
1163
  else {
1163
1164
  const i = q(t, "", s);
1164
1165
  if (e instanceof Map)
@@ -1166,7 +1167,7 @@ function bs(s, e, { key: t, value: n }) {
1166
1167
  else if (e instanceof Set)
1167
1168
  e.add(i);
1168
1169
  else {
1169
- const r = Ln(t, i, s), o = q(n, r, s);
1170
+ const r = Cn(t, i, s), o = q(n, r, s);
1170
1171
  r in e ? Object.defineProperty(e, r, {
1171
1172
  value: o,
1172
1173
  writable: !0,
@@ -1177,8 +1178,8 @@ function bs(s, e, { key: t, value: n }) {
1177
1178
  }
1178
1179
  return e;
1179
1180
  }
1180
- const En = (s) => s === Gt || A(s) && s.value === Gt && (!s.type || s.type === O.PLAIN);
1181
- function ct(s, e, t) {
1181
+ const Ln = (s) => s === Ht || A(s) && s.value === Ht && (!s.type || s.type === O.PLAIN);
1182
+ function ut(s, e, t) {
1182
1183
  const n = s && ie(t) ? t.resolve(s.doc) : t;
1183
1184
  if (!be(n))
1184
1185
  throw new Error("Merge sources must be maps or map aliases");
@@ -1192,13 +1193,13 @@ function ct(s, e, t) {
1192
1193
  });
1193
1194
  return e;
1194
1195
  }
1195
- function Ln(s, e, t) {
1196
+ function Cn(s, e, t) {
1196
1197
  if (e === null)
1197
1198
  return "";
1198
1199
  if (typeof e != "object")
1199
1200
  return String(e);
1200
1201
  if (M(s) && (t != null && t.doc)) {
1201
- const n = ys(t.doc, {});
1202
+ const n = gs(t.doc, {});
1202
1203
  n.anchors = /* @__PURE__ */ new Set();
1203
1204
  for (const r of t.anchors.keys())
1204
1205
  n.anchors.add(r.anchor);
@@ -1206,19 +1207,19 @@ function Ln(s, e, t) {
1206
1207
  const i = s.toString(n);
1207
1208
  if (!t.mapKeyWarned) {
1208
1209
  let r = JSON.stringify(i);
1209
- r.length > 40 && (r = r.substring(0, 36) + '..."'), gs(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
1210
+ r.length > 40 && (r = r.substring(0, 36) + '..."'), bs(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
1210
1211
  }
1211
1212
  return i;
1212
1213
  }
1213
1214
  return JSON.stringify(e);
1214
1215
  }
1215
- function Lt(s, e, t) {
1216
+ function $t(s, e, t) {
1216
1217
  const n = Ae(s, void 0, t), i = Ae(e, void 0, t);
1217
1218
  return new j(n, i);
1218
1219
  }
1219
1220
  class j {
1220
1221
  constructor(e, t = null) {
1221
- Object.defineProperty(this, F, { value: rs }), this.key = e, this.value = t;
1222
+ Object.defineProperty(this, F, { value: os }), this.key = e, this.value = t;
1222
1223
  }
1223
1224
  clone(e) {
1224
1225
  let { key: t, value: n } = this;
@@ -1226,17 +1227,17 @@ class j {
1226
1227
  }
1227
1228
  toJSON(e, t) {
1228
1229
  const n = t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1229
- return bs(t, n, this);
1230
+ return ws(t, n, this);
1230
1231
  }
1231
1232
  toString(e, t, n) {
1232
- return e != null && e.doc ? An(this, e, t, n) : JSON.stringify(this);
1233
+ return e != null && e.doc ? En(this, e, t, n) : JSON.stringify(this);
1233
1234
  }
1234
1235
  }
1235
- function ws(s, e, t) {
1236
+ function Ss(s, e, t) {
1236
1237
  var r;
1237
- return (((r = e.inFlow) != null ? r : s.flow) ? $n : Cn)(s, e, t);
1238
+ return (((r = e.inFlow) != null ? r : s.flow) ? _n : $n)(s, e, t);
1238
1239
  }
1239
- function Cn({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1240
+ function $n({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1240
1241
  const { indent: a, options: { commentString: c } } = t, h = Object.assign({}, t, { indent: r, type: null });
1241
1242
  let f = !1;
1242
1243
  const p = [];
@@ -1268,7 +1269,7 @@ ${a}${u}` : `
1268
1269
  return s ? (m += `
1269
1270
  ` + Y(c(s), a), l && l()) : f && o && o(), m;
1270
1271
  }
1271
- function $n({ items: s }, e, { flowChars: t, itemIndent: n }) {
1272
+ function _n({ items: s }, e, { flowChars: t, itemIndent: n }) {
1272
1273
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
1273
1274
  n += r;
1274
1275
  const a = Object.assign({}, e, {
@@ -1324,7 +1325,7 @@ function te(s, e) {
1324
1325
  if (E(n) && (n.key === e || n.key === t || A(n.key) && n.key.value === t))
1325
1326
  return n;
1326
1327
  }
1327
- class K extends ps {
1328
+ class K extends ms {
1328
1329
  static get tagName() {
1329
1330
  return "tag:yaml.org,2002:map";
1330
1331
  }
@@ -1341,7 +1342,7 @@ class K extends ps {
1341
1342
  c = r.call(t, a, c);
1342
1343
  else if (Array.isArray(r) && !r.includes(a))
1343
1344
  return;
1344
- (c !== void 0 || i) && o.items.push(Lt(a, c, n));
1345
+ (c !== void 0 || i) && o.items.push($t(a, c, n));
1345
1346
  };
1346
1347
  if (t instanceof Map)
1347
1348
  for (const [a, c] of t)
@@ -1365,7 +1366,7 @@ class K extends ps {
1365
1366
  if (i) {
1366
1367
  if (!t)
1367
1368
  throw new Error(`Key ${n.key} already set`);
1368
- A(i.value) && ds(n.value) ? i.value.value = n.value : i.value = n.value;
1369
+ A(i.value) && ps(n.value) ? i.value.value = n.value : i.value = n.value;
1369
1370
  } else if (r) {
1370
1371
  const l = this.items.findIndex((a) => r(n, a) < 0);
1371
1372
  l === -1 ? this.items.push(n) : this.items.splice(l, 0, n);
@@ -1396,7 +1397,7 @@ class K extends ps {
1396
1397
  const i = n ? new n() : t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1397
1398
  t != null && t.onCreate && t.onCreate(i);
1398
1399
  for (const r of this.items)
1399
- bs(t, i, r);
1400
+ ws(t, i, r);
1400
1401
  return i;
1401
1402
  }
1402
1403
  toString(e, t, n) {
@@ -1405,7 +1406,7 @@ class K extends ps {
1405
1406
  for (const i of this.items)
1406
1407
  if (!E(i))
1407
1408
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
1408
- return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), ws(this, e, {
1409
+ return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), Ss(this, e, {
1409
1410
  blockItemPrefix: "",
1410
1411
  flowChars: { start: "{", end: "}" },
1411
1412
  itemIndent: e.indent || "",
@@ -1424,7 +1425,7 @@ const Se = {
1424
1425
  },
1425
1426
  createNode: (s, e, t) => K.from(s, e, t)
1426
1427
  };
1427
- class z extends ps {
1428
+ class z extends ms {
1428
1429
  static get tagName() {
1429
1430
  return "tag:yaml.org,2002:seq";
1430
1431
  }
@@ -1475,7 +1476,7 @@ class z extends ps {
1475
1476
  if (typeof n != "number")
1476
1477
  throw new Error(`Expected a valid index, not ${e}.`);
1477
1478
  const i = this.items[n];
1478
- A(i) && ds(t) ? i.value = t : this.items[n] = t;
1479
+ A(i) && ps(t) ? i.value = t : this.items[n] = t;
1479
1480
  }
1480
1481
  toJSON(e, t) {
1481
1482
  const n = [];
@@ -1486,7 +1487,7 @@ class z extends ps {
1486
1487
  return n;
1487
1488
  }
1488
1489
  toString(e, t, n) {
1489
- return e ? ws(this, e, {
1490
+ return e ? Ss(this, e, {
1490
1491
  blockItemPrefix: "- ",
1491
1492
  flowChars: { start: "[", end: "]" },
1492
1493
  itemIndent: (e.indent || "") + " ",
@@ -1538,14 +1539,14 @@ const ke = {
1538
1539
  test: /^(?:~|[Nn]ull|NULL)?$/,
1539
1540
  resolve: () => new O(null),
1540
1541
  stringify: ({ source: s }, e) => typeof s == "string" && Ze.test.test(s) ? s : e.options.nullStr
1541
- }, Ct = {
1542
+ }, _t = {
1542
1543
  identify: (s) => typeof s == "boolean",
1543
1544
  default: !0,
1544
1545
  tag: "tag:yaml.org,2002:bool",
1545
1546
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
1546
1547
  resolve: (s) => new O(s[0] === "t" || s[0] === "T"),
1547
1548
  stringify({ source: s, value: e }, t) {
1548
- if (s && Ct.test.test(s)) {
1549
+ if (s && _t.test.test(s)) {
1549
1550
  const n = s[0] === "t" || s[0] === "T";
1550
1551
  if (e === n)
1551
1552
  return s;
@@ -1569,14 +1570,14 @@ function V({ format: s, minFractionDigits: e, tag: t, value: n }) {
1569
1570
  }
1570
1571
  return r;
1571
1572
  }
1572
- const Ss = {
1573
+ const ks = {
1573
1574
  identify: (s) => typeof s == "number",
1574
1575
  default: !0,
1575
1576
  tag: "tag:yaml.org,2002:float",
1576
1577
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1577
1578
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1578
1579
  stringify: V
1579
- }, ks = {
1580
+ }, Os = {
1580
1581
  identify: (s) => typeof s == "number",
1581
1582
  default: !0,
1582
1583
  tag: "tag:yaml.org,2002:float",
@@ -1587,7 +1588,7 @@ const Ss = {
1587
1588
  const e = Number(s.value);
1588
1589
  return isFinite(e) ? e.toExponential() : V(s);
1589
1590
  }
1590
- }, Os = {
1591
+ }, Ns = {
1591
1592
  identify: (s) => typeof s == "number",
1592
1593
  default: !0,
1593
1594
  tag: "tag:yaml.org,2002:float",
@@ -1597,51 +1598,51 @@ const Ss = {
1597
1598
  return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1598
1599
  },
1599
1600
  stringify: V
1600
- }, et = (s) => typeof s == "bigint" || Number.isInteger(s), $t = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1601
- function Ns(s, e, t) {
1601
+ }, et = (s) => typeof s == "bigint" || Number.isInteger(s), Mt = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1602
+ function Ts(s, e, t) {
1602
1603
  const { value: n } = s;
1603
1604
  return et(n) && n >= 0 ? t + n.toString(e) : V(s);
1604
1605
  }
1605
- const Ts = {
1606
+ const Is = {
1606
1607
  identify: (s) => et(s) && s >= 0,
1607
1608
  default: !0,
1608
1609
  tag: "tag:yaml.org,2002:int",
1609
1610
  format: "OCT",
1610
1611
  test: /^0o[0-7]+$/,
1611
- resolve: (s, e, t) => $t(s, 2, 8, t),
1612
- stringify: (s) => Ns(s, 8, "0o")
1613
- }, Is = {
1612
+ resolve: (s, e, t) => Mt(s, 2, 8, t),
1613
+ stringify: (s) => Ts(s, 8, "0o")
1614
+ }, As = {
1614
1615
  identify: et,
1615
1616
  default: !0,
1616
1617
  tag: "tag:yaml.org,2002:int",
1617
1618
  test: /^[-+]?[0-9]+$/,
1618
- resolve: (s, e, t) => $t(s, 0, 10, t),
1619
+ resolve: (s, e, t) => Mt(s, 0, 10, t),
1619
1620
  stringify: V
1620
- }, As = {
1621
+ }, Es = {
1621
1622
  identify: (s) => et(s) && s >= 0,
1622
1623
  default: !0,
1623
1624
  tag: "tag:yaml.org,2002:int",
1624
1625
  format: "HEX",
1625
1626
  test: /^0x[0-9a-fA-F]+$/,
1626
- resolve: (s, e, t) => $t(s, 2, 16, t),
1627
- stringify: (s) => Ns(s, 16, "0x")
1628
- }, _n = [
1627
+ resolve: (s, e, t) => Mt(s, 2, 16, t),
1628
+ stringify: (s) => Ts(s, 16, "0x")
1629
+ }, Mn = [
1629
1630
  Se,
1630
1631
  ke,
1631
1632
  Xe,
1632
1633
  Ze,
1633
- Ct,
1634
- Ts,
1634
+ _t,
1635
1635
  Is,
1636
1636
  As,
1637
- Ss,
1637
+ Es,
1638
1638
  ks,
1639
- Os
1639
+ Os,
1640
+ Ns
1640
1641
  ];
1641
- function Ht(s) {
1642
+ function xt(s) {
1642
1643
  return typeof s == "bigint" || Number.isInteger(s);
1643
1644
  }
1644
- const je = ({ value: s }) => JSON.stringify(s), Mn = [
1645
+ const je = ({ value: s }) => JSON.stringify(s), vn = [
1645
1646
  {
1646
1647
  identify: (s) => typeof s == "string",
1647
1648
  default: !0,
@@ -1667,12 +1668,12 @@ const je = ({ value: s }) => JSON.stringify(s), Mn = [
1667
1668
  stringify: je
1668
1669
  },
1669
1670
  {
1670
- identify: Ht,
1671
+ identify: xt,
1671
1672
  default: !0,
1672
1673
  tag: "tag:yaml.org,2002:int",
1673
1674
  test: /^-?(?:0|[1-9][0-9]*)$/,
1674
1675
  resolve: (s, e, { intAsBigInt: t }) => t ? BigInt(s) : parseInt(s, 10),
1675
- stringify: ({ value: s }) => Ht(s) ? s.toString() : JSON.stringify(s)
1676
+ stringify: ({ value: s }) => xt(s) ? s.toString() : JSON.stringify(s)
1676
1677
  },
1677
1678
  {
1678
1679
  identify: (s) => typeof s == "number",
@@ -1682,14 +1683,14 @@ const je = ({ value: s }) => JSON.stringify(s), Mn = [
1682
1683
  resolve: (s) => parseFloat(s),
1683
1684
  stringify: je
1684
1685
  }
1685
- ], vn = {
1686
+ ], Bn = {
1686
1687
  default: !0,
1687
1688
  tag: "",
1688
1689
  test: /^/,
1689
1690
  resolve(s, e) {
1690
1691
  return e(`Unresolved plain scalar ${JSON.stringify(s)}`), s;
1691
1692
  }
1692
- }, Bn = [Se, ke].concat(Mn, vn), _t = {
1693
+ }, jn = [Se, ke].concat(vn, Bn), vt = {
1693
1694
  identify: (s) => s instanceof Uint8Array,
1694
1695
  // Buffer inherits from Uint8Array
1695
1696
  default: !1,
@@ -1735,7 +1736,7 @@ const je = ({ value: s }) => JSON.stringify(s), Mn = [
1735
1736
  return Ce({ comment: s, type: e, value: l }, n, i, r);
1736
1737
  }
1737
1738
  };
1738
- function Es(s, e) {
1739
+ function Ls(s, e) {
1739
1740
  var t;
1740
1741
  if (we(s))
1741
1742
  for (let n = 0; n < s.items.length; ++n) {
@@ -1759,7 +1760,7 @@ ${o.comment}` : i.comment;
1759
1760
  e("Expected a sequence for this tag");
1760
1761
  return s;
1761
1762
  }
1762
- function Ls(s, e, t) {
1763
+ function Cs(s, e, t) {
1763
1764
  const { replacer: n } = t, i = new z(s);
1764
1765
  i.tag = "tag:yaml.org,2002:pairs";
1765
1766
  let r = 0;
@@ -1780,16 +1781,16 @@ function Ls(s, e, t) {
1780
1781
  throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
1781
1782
  } else
1782
1783
  l = o;
1783
- i.items.push(Lt(l, a, t));
1784
+ i.items.push($t(l, a, t));
1784
1785
  }
1785
1786
  return i;
1786
1787
  }
1787
- const Mt = {
1788
+ const Bt = {
1788
1789
  collection: "seq",
1789
1790
  default: !1,
1790
1791
  tag: "tag:yaml.org,2002:pairs",
1791
- resolve: Es,
1792
- createNode: Ls
1792
+ resolve: Ls,
1793
+ createNode: Cs
1793
1794
  };
1794
1795
  class he extends z {
1795
1796
  constructor() {
@@ -1813,50 +1814,50 @@ class he extends z {
1813
1814
  return n;
1814
1815
  }
1815
1816
  static from(e, t, n) {
1816
- const i = Ls(e, t, n), r = new this();
1817
+ const i = Cs(e, t, n), r = new this();
1817
1818
  return r.items = i.items, r;
1818
1819
  }
1819
1820
  }
1820
1821
  he.tag = "tag:yaml.org,2002:omap";
1821
- const vt = {
1822
+ const jt = {
1822
1823
  collection: "seq",
1823
1824
  identify: (s) => s instanceof Map,
1824
1825
  nodeClass: he,
1825
1826
  default: !1,
1826
1827
  tag: "tag:yaml.org,2002:omap",
1827
1828
  resolve(s, e) {
1828
- const t = Es(s, e), n = [];
1829
+ const t = Ls(s, e), n = [];
1829
1830
  for (const { key: i } of t.items)
1830
1831
  A(i) && (n.includes(i.value) ? e(`Ordered maps must not include duplicate keys: ${i.value}`) : n.push(i.value));
1831
1832
  return Object.assign(new he(), t);
1832
1833
  },
1833
1834
  createNode: (s, e, t) => he.from(s, e, t)
1834
1835
  };
1835
- function Cs({ value: s, source: e }, t) {
1836
- return e && (s ? $s : _s).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1836
+ function $s({ value: s, source: e }, t) {
1837
+ return e && (s ? _s : Ms).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1837
1838
  }
1838
- const $s = {
1839
+ const _s = {
1839
1840
  identify: (s) => s === !0,
1840
1841
  default: !0,
1841
1842
  tag: "tag:yaml.org,2002:bool",
1842
1843
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1843
1844
  resolve: () => new O(!0),
1844
- stringify: Cs
1845
- }, _s = {
1845
+ stringify: $s
1846
+ }, Ms = {
1846
1847
  identify: (s) => s === !1,
1847
1848
  default: !0,
1848
1849
  tag: "tag:yaml.org,2002:bool",
1849
1850
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1850
1851
  resolve: () => new O(!1),
1851
- stringify: Cs
1852
- }, jn = {
1852
+ stringify: $s
1853
+ }, Dn = {
1853
1854
  identify: (s) => typeof s == "number",
1854
1855
  default: !0,
1855
1856
  tag: "tag:yaml.org,2002:float",
1856
1857
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1857
1858
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1858
1859
  stringify: V
1859
- }, Dn = {
1860
+ }, Pn = {
1860
1861
  identify: (s) => typeof s == "number",
1861
1862
  default: !0,
1862
1863
  tag: "tag:yaml.org,2002:float",
@@ -1867,7 +1868,7 @@ const $s = {
1867
1868
  const e = Number(s.value);
1868
1869
  return isFinite(e) ? e.toExponential() : V(s);
1869
1870
  }
1870
- }, Pn = {
1871
+ }, Kn = {
1871
1872
  identify: (s) => typeof s == "number",
1872
1873
  default: !0,
1873
1874
  tag: "tag:yaml.org,2002:float",
@@ -1902,7 +1903,7 @@ function tt(s, e, t, { intAsBigInt: n }) {
1902
1903
  const r = parseInt(s, t);
1903
1904
  return i === "-" ? -1 * r : r;
1904
1905
  }
1905
- function Bt(s, e, t) {
1906
+ function Dt(s, e, t) {
1906
1907
  const { value: n } = s;
1907
1908
  if ($e(n)) {
1908
1909
  const i = n.toString(e);
@@ -1910,37 +1911,37 @@ function Bt(s, e, t) {
1910
1911
  }
1911
1912
  return V(s);
1912
1913
  }
1913
- const Kn = {
1914
+ const qn = {
1914
1915
  identify: $e,
1915
1916
  default: !0,
1916
1917
  tag: "tag:yaml.org,2002:int",
1917
1918
  format: "BIN",
1918
1919
  test: /^[-+]?0b[0-1_]+$/,
1919
1920
  resolve: (s, e, t) => tt(s, 2, 2, t),
1920
- stringify: (s) => Bt(s, 2, "0b")
1921
- }, qn = {
1921
+ stringify: (s) => Dt(s, 2, "0b")
1922
+ }, Fn = {
1922
1923
  identify: $e,
1923
1924
  default: !0,
1924
1925
  tag: "tag:yaml.org,2002:int",
1925
1926
  format: "OCT",
1926
1927
  test: /^[-+]?0[0-7_]+$/,
1927
1928
  resolve: (s, e, t) => tt(s, 1, 8, t),
1928
- stringify: (s) => Bt(s, 8, "0")
1929
- }, Fn = {
1929
+ stringify: (s) => Dt(s, 8, "0")
1930
+ }, Rn = {
1930
1931
  identify: $e,
1931
1932
  default: !0,
1932
1933
  tag: "tag:yaml.org,2002:int",
1933
1934
  test: /^[-+]?[0-9][0-9_]*$/,
1934
1935
  resolve: (s, e, t) => tt(s, 0, 10, t),
1935
1936
  stringify: V
1936
- }, Rn = {
1937
+ }, Un = {
1937
1938
  identify: $e,
1938
1939
  default: !0,
1939
1940
  tag: "tag:yaml.org,2002:int",
1940
1941
  format: "HEX",
1941
1942
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
1942
1943
  resolve: (s, e, t) => tt(s, 2, 16, t),
1943
- stringify: (s) => Bt(s, 16, "0x")
1944
+ stringify: (s) => Dt(s, 16, "0x")
1944
1945
  };
1945
1946
  class de extends K {
1946
1947
  constructor(e) {
@@ -1978,12 +1979,12 @@ class de extends K {
1978
1979
  const { replacer: i } = n, r = new this(e);
1979
1980
  if (t && Symbol.iterator in Object(t))
1980
1981
  for (let o of t)
1981
- typeof i == "function" && (o = i.call(t, o, o)), r.items.push(Lt(o, null, n));
1982
+ typeof i == "function" && (o = i.call(t, o, o)), r.items.push($t(o, null, n));
1982
1983
  return r;
1983
1984
  }
1984
1985
  }
1985
1986
  de.tag = "tag:yaml.org,2002:set";
1986
- const jt = {
1987
+ const Pt = {
1987
1988
  collection: "map",
1988
1989
  identify: (s) => s instanceof Set,
1989
1990
  nodeClass: de,
@@ -2000,11 +2001,11 @@ const jt = {
2000
2001
  return s;
2001
2002
  }
2002
2003
  };
2003
- function Dt(s, e) {
2004
+ function Kt(s, e) {
2004
2005
  const t = s[0], n = t === "-" || t === "+" ? s.substring(1) : s, i = (o) => e ? BigInt(o) : Number(o), r = n.replace(/_/g, "").split(":").reduce((o, l) => o * i(60) + i(l), i(0));
2005
2006
  return t === "-" ? i(-1) * r : r;
2006
2007
  }
2007
- function Ms(s) {
2008
+ function vs(s) {
2008
2009
  let { value: e } = s, t = (o) => o;
2009
2010
  if (typeof e == "bigint")
2010
2011
  t = (o) => BigInt(o);
@@ -2015,22 +2016,22 @@ function Ms(s) {
2015
2016
  const i = t(60), r = [e % i];
2016
2017
  return e < 60 ? r.unshift(0) : (e = (e - r[0]) / i, r.unshift(e % i), e >= 60 && (e = (e - r[0]) / i, r.unshift(e))), n + r.map((o) => String(o).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
2017
2018
  }
2018
- const vs = {
2019
+ const Bs = {
2019
2020
  identify: (s) => typeof s == "bigint" || Number.isInteger(s),
2020
2021
  default: !0,
2021
2022
  tag: "tag:yaml.org,2002:int",
2022
2023
  format: "TIME",
2023
2024
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
2024
- resolve: (s, e, { intAsBigInt: t }) => Dt(s, t),
2025
- stringify: Ms
2026
- }, Bs = {
2025
+ resolve: (s, e, { intAsBigInt: t }) => Kt(s, t),
2026
+ stringify: vs
2027
+ }, js = {
2027
2028
  identify: (s) => typeof s == "number",
2028
2029
  default: !0,
2029
2030
  tag: "tag:yaml.org,2002:float",
2030
2031
  format: "TIME",
2031
2032
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
2032
- resolve: (s) => Dt(s, !1),
2033
- stringify: Ms
2033
+ resolve: (s) => Kt(s, !1),
2034
+ stringify: vs
2034
2035
  }, st = {
2035
2036
  identify: (s) => s instanceof Date,
2036
2037
  default: !0,
@@ -2047,71 +2048,71 @@ const vs = {
2047
2048
  let c = Date.UTC(t, n - 1, i, r || 0, o || 0, l || 0, a);
2048
2049
  const h = e[8];
2049
2050
  if (h && h !== "Z") {
2050
- let f = Dt(h, !1);
2051
+ let f = Kt(h, !1);
2051
2052
  Math.abs(f) < 30 && (f *= 60), c -= 6e4 * f;
2052
2053
  }
2053
2054
  return new Date(c);
2054
2055
  },
2055
2056
  stringify: ({ value: s }) => s.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "")
2056
- }, xt = [
2057
+ }, zt = [
2057
2058
  Se,
2058
2059
  ke,
2059
2060
  Xe,
2060
2061
  Ze,
2061
- $s,
2062
2062
  _s,
2063
- Kn,
2063
+ Ms,
2064
2064
  qn,
2065
2065
  Fn,
2066
2066
  Rn,
2067
- jn,
2067
+ Un,
2068
2068
  Dn,
2069
2069
  Pn,
2070
- _t,
2070
+ Kn,
2071
2071
  vt,
2072
- Mt,
2073
2072
  jt,
2074
- vs,
2073
+ Bt,
2074
+ Pt,
2075
2075
  Bs,
2076
+ js,
2076
2077
  st
2077
- ], zt = /* @__PURE__ */ new Map([
2078
- ["core", _n],
2078
+ ], Xt = /* @__PURE__ */ new Map([
2079
+ ["core", Mn],
2079
2080
  ["failsafe", [Se, ke, Xe]],
2080
- ["json", Bn],
2081
- ["yaml11", xt],
2082
- ["yaml-1.1", xt]
2083
- ]), Xt = {
2084
- binary: _t,
2085
- bool: Ct,
2086
- float: Os,
2087
- floatExp: ks,
2088
- floatNaN: Ss,
2089
- floatTime: Bs,
2090
- int: Is,
2091
- intHex: As,
2092
- intOct: Ts,
2093
- intTime: vs,
2081
+ ["json", jn],
2082
+ ["yaml11", zt],
2083
+ ["yaml-1.1", zt]
2084
+ ]), Zt = {
2085
+ binary: vt,
2086
+ bool: _t,
2087
+ float: Ns,
2088
+ floatExp: Os,
2089
+ floatNaN: ks,
2090
+ floatTime: js,
2091
+ int: As,
2092
+ intHex: Es,
2093
+ intOct: Is,
2094
+ intTime: Bs,
2094
2095
  map: Se,
2095
2096
  null: Ze,
2096
- omap: vt,
2097
- pairs: Mt,
2097
+ omap: jt,
2098
+ pairs: Bt,
2098
2099
  seq: ke,
2099
- set: jt,
2100
+ set: Pt,
2100
2101
  timestamp: st
2101
- }, Un = {
2102
- "tag:yaml.org,2002:binary": _t,
2103
- "tag:yaml.org,2002:omap": vt,
2104
- "tag:yaml.org,2002:pairs": Mt,
2105
- "tag:yaml.org,2002:set": jt,
2102
+ }, Vn = {
2103
+ "tag:yaml.org,2002:binary": vt,
2104
+ "tag:yaml.org,2002:omap": jt,
2105
+ "tag:yaml.org,2002:pairs": Bt,
2106
+ "tag:yaml.org,2002:set": Pt,
2106
2107
  "tag:yaml.org,2002:timestamp": st
2107
2108
  };
2108
- function ft(s, e) {
2109
- let t = zt.get(e);
2109
+ function ht(s, e) {
2110
+ let t = Xt.get(e);
2110
2111
  if (!t)
2111
2112
  if (Array.isArray(s))
2112
2113
  t = [];
2113
2114
  else {
2114
- const n = Array.from(zt.keys()).filter((i) => i !== "yaml11").map((i) => JSON.stringify(i)).join(", ");
2115
+ const n = Array.from(Xt.keys()).filter((i) => i !== "yaml11").map((i) => JSON.stringify(i)).join(", ");
2115
2116
  throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`);
2116
2117
  }
2117
2118
  if (Array.isArray(s))
@@ -2121,24 +2122,24 @@ function ft(s, e) {
2121
2122
  return t.map((n) => {
2122
2123
  if (typeof n != "string")
2123
2124
  return n;
2124
- const i = Xt[n];
2125
+ const i = Zt[n];
2125
2126
  if (i)
2126
2127
  return i;
2127
- const r = Object.keys(Xt).map((o) => JSON.stringify(o)).join(", ");
2128
+ const r = Object.keys(Zt).map((o) => JSON.stringify(o)).join(", ");
2128
2129
  throw new Error(`Unknown custom tag "${n}"; use one of ${r}`);
2129
2130
  });
2130
2131
  }
2131
- const Vn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2132
+ const Jn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2132
2133
  class nt {
2133
2134
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
2134
- this.compat = Array.isArray(e) ? ft(e, "compat") : e ? ft(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Un : {}, this.tags = ft(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, H, { value: Se }), Object.defineProperty(this, W, { value: Xe }), Object.defineProperty(this, ye, { value: ke }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Vn : null;
2135
+ this.compat = Array.isArray(e) ? ht(e, "compat") : e ? ht(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Vn : {}, this.tags = ht(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, H, { value: Se }), Object.defineProperty(this, W, { value: Xe }), Object.defineProperty(this, ye, { value: ke }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Jn : null;
2135
2136
  }
2136
2137
  clone() {
2137
2138
  const e = Object.create(nt.prototype, Object.getOwnPropertyDescriptors(this));
2138
2139
  return e.tags = this.tags.slice(), e;
2139
2140
  }
2140
2141
  }
2141
- function Jn(s, e) {
2142
+ function Qn(s, e) {
2142
2143
  var a;
2143
2144
  const t = [];
2144
2145
  let n = e.directives === !0;
@@ -2147,7 +2148,7 @@ function Jn(s, e) {
2147
2148
  c ? (t.push(c), n = !0) : s.directives.docStart && (n = !0);
2148
2149
  }
2149
2150
  n && t.push("---");
2150
- const i = ys(s, e), { commentString: r } = i.options;
2151
+ const i = gs(s, e), { commentString: r } = i.options;
2151
2152
  if (s.commentBefore) {
2152
2153
  t.length !== 1 && t.unshift("");
2153
2154
  const c = r(s.commentBefore);
@@ -2184,7 +2185,7 @@ function Jn(s, e) {
2184
2185
  }
2185
2186
  class Oe {
2186
2187
  constructor(e, t, n) {
2187
- this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, F, { value: yt });
2188
+ this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, F, { value: bt });
2188
2189
  let i = null;
2189
2190
  typeof t == "function" || Array.isArray(t) ? i = t : n === void 0 && t && (n = t, t = void 0);
2190
2191
  const r = Object.assign({
@@ -2207,7 +2208,7 @@ class Oe {
2207
2208
  */
2208
2209
  clone() {
2209
2210
  const e = Object.create(Oe.prototype, {
2210
- [F]: { value: yt }
2211
+ [F]: { value: bt }
2211
2212
  });
2212
2213
  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 = M(this.contents) ? this.contents.clone(e.schema) : this.contents, this.range && (e.range = this.range.slice()), e;
2213
2214
  }
@@ -2230,9 +2231,9 @@ class Oe {
2230
2231
  */
2231
2232
  createAlias(e, t) {
2232
2233
  if (!e.anchor) {
2233
- const n = us(this);
2234
+ const n = hs(this);
2234
2235
  e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2235
- !t || n.has(t) ? hs(t || "a", n) : t;
2236
+ !t || n.has(t) ? ds(t || "a", n) : t;
2236
2237
  }
2237
2238
  return new Ge(e.anchor);
2238
2239
  }
@@ -2244,7 +2245,7 @@ class Oe {
2244
2245
  const g = (S) => typeof S == "number" || S instanceof String || S instanceof Number, b = t.filter(g).map(String);
2245
2246
  b.length > 0 && (t = t.concat(b)), i = t;
2246
2247
  } else n === void 0 && t && (n = t, t = void 0);
2247
- const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = bn(
2248
+ const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = wn(
2248
2249
  this,
2249
2250
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2250
2251
  o || "a"
@@ -2388,7 +2389,7 @@ class Oe {
2388
2389
  const t = JSON.stringify(e.indent);
2389
2390
  throw new Error(`"indent" option must be a positive integer, not ${t}`);
2390
2391
  }
2391
- return Jn(this, e);
2392
+ return Qn(this, e);
2392
2393
  }
2393
2394
  }
2394
2395
  function oe(s) {
@@ -2396,17 +2397,17 @@ function oe(s) {
2396
2397
  return !0;
2397
2398
  throw new Error("Expected a YAML collection as document contents");
2398
2399
  }
2399
- class Pt extends Error {
2400
+ class qt extends Error {
2400
2401
  constructor(e, t, n, i) {
2401
2402
  super(), this.name = e, this.code = n, this.message = i, this.pos = t;
2402
2403
  }
2403
2404
  }
2404
- class se extends Pt {
2405
+ class se extends qt {
2405
2406
  constructor(e, t, n) {
2406
2407
  super("YAMLParseError", e, t, n);
2407
2408
  }
2408
2409
  }
2409
- class js extends Pt {
2410
+ class Ds extends qt {
2410
2411
  constructor(e, t, n) {
2411
2412
  super("YAMLWarning", e, t, n);
2412
2413
  }
@@ -2522,21 +2523,21 @@ function Ee(s) {
2522
2523
  return !0;
2523
2524
  }
2524
2525
  }
2525
- function St(s, e, t) {
2526
+ function Ot(s, e, t) {
2526
2527
  if ((e == null ? void 0 : e.type) === "flow-collection") {
2527
2528
  const n = e.end[0];
2528
2529
  n.indent === s && (n.source === "]" || n.source === "}") && Ee(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2529
2530
  }
2530
2531
  }
2531
- function Ds(s, e, t) {
2532
+ function Ps(s, e, t) {
2532
2533
  const { uniqueKeys: n } = s.options;
2533
2534
  if (n === !1)
2534
2535
  return !1;
2535
2536
  const i = typeof n == "function" ? n : (r, o) => r === o || A(r) && A(o) && r.value === o.value && !(r.value === "<<" && s.schema.merge);
2536
2537
  return e.some((r) => i(r.key, t));
2537
2538
  }
2538
- const Zt = "All mapping items must start at the same column";
2539
- function Qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2539
+ const es = "All mapping items must start at the same column";
2540
+ function Yn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2540
2541
  var h, f;
2541
2542
  const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : K, l = new o(t.schema);
2542
2543
  t.atRoot && (t.atRoot = !1);
@@ -2551,15 +2552,15 @@ function Qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2551
2552
  startOnNewline: !0
2552
2553
  }), S = !b.found;
2553
2554
  if (S) {
2554
- if (y && (y.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in y && y.indent !== n.indent && i(a, "BAD_INDENT", Zt)), !b.anchor && !b.tag && !u) {
2555
+ if (y && (y.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in y && y.indent !== n.indent && i(a, "BAD_INDENT", es)), !b.anchor && !b.tag && !u) {
2555
2556
  c = b.end, b.comment && (l.comment ? l.comment += `
2556
2557
  ` + b.comment : l.comment = b.comment);
2557
2558
  continue;
2558
2559
  }
2559
2560
  (b.newlineAfterProp || Ee(y)) && i(y != null ? y : m[m.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2560
- } else ((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(a, "BAD_INDENT", Zt);
2561
+ } else ((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(a, "BAD_INDENT", es);
2561
2562
  const I = b.end, k = y ? s(t, y, b, i) : e(t, I, m, null, b, i);
2562
- t.schema.compat && St(n.indent, y, i), Ds(t, l.items, k) && i(I, "DUPLICATE_KEY", "Map keys must be unique");
2563
+ t.schema.compat && Ot(n.indent, y, i), Ps(t, l.items, k) && i(I, "DUPLICATE_KEY", "Map keys must be unique");
2563
2564
  const N = me(u != null ? u : [], {
2564
2565
  indicator: "map-value-ind",
2565
2566
  next: g,
@@ -2571,7 +2572,7 @@ function Qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2571
2572
  if (a = N.end, N.found) {
2572
2573
  S && ((g == null ? void 0 : g.type) === "block-map" && !N.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && b.start < N.found.offset - 1024 && i(k.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2573
2574
  const T = g ? s(t, g, N, i) : e(t, a, u, null, N, i);
2574
- t.schema.compat && St(n.indent, g, i), a = T.range[2];
2575
+ t.schema.compat && Ot(n.indent, g, i), a = T.range[2];
2575
2576
  const $ = new j(k, T);
2576
2577
  t.options.keepSourceTokens && ($.srcToken = p), l.items.push($);
2577
2578
  } else {
@@ -2583,7 +2584,7 @@ function Qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2583
2584
  }
2584
2585
  return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c != null ? c : a], l;
2585
2586
  }
2586
- function Yn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2587
+ function Wn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2587
2588
  var h;
2588
2589
  const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : z, l = new o(t.schema);
2589
2590
  t.atRoot && (t.atRoot = !1);
@@ -2605,7 +2606,7 @@ function Yn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2605
2606
  continue;
2606
2607
  }
2607
2608
  const y = p ? s(t, p, m, i) : e(t, m.end, f, null, m, i);
2608
- t.schema.compat && St(n.indent, p, i), a = y.range[2], l.items.push(y);
2609
+ t.schema.compat && Ot(n.indent, p, i), a = y.range[2], l.items.push(y);
2609
2610
  }
2610
2611
  return l.range = [n.offset, a, c != null ? c : a], l;
2611
2612
  }
@@ -2636,8 +2637,8 @@ function _e(s, e, t, n) {
2636
2637
  }
2637
2638
  return { comment: i, offset: e };
2638
2639
  }
2639
- const ut = "Block collections are not allowed within flow collections", ht = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2640
- function Wn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2640
+ const dt = "Block collections are not allowed within flow collections", pt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2641
+ function Gn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2641
2642
  var g, b;
2642
2643
  const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (g = r == null ? void 0 : r.nodeClass) != null ? g : o ? K : z, c = new a(t.schema);
2643
2644
  c.flow = !0;
@@ -2690,10 +2691,10 @@ function Wn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2690
2691
  }
2691
2692
  if (!o && !T && !w.found) {
2692
2693
  const L = $ ? s(t, $, w, i) : e(t, w.end, T, null, w, i);
2693
- c.items.push(L), f = L.range[2], ht($) && i(L.range, "BLOCK_IN_FLOW", ut);
2694
+ c.items.push(L), f = L.range[2], pt($) && i(L.range, "BLOCK_IN_FLOW", dt);
2694
2695
  } else {
2695
2696
  const L = w.end, _ = N ? s(t, N, w, i) : e(t, L, k, null, w, i);
2696
- ht(N) && i(_.range, "BLOCK_IN_FLOW", ut);
2697
+ pt(N) && i(_.range, "BLOCK_IN_FLOW", dt);
2697
2698
  const B = me(T != null ? T : [], {
2698
2699
  flow: l,
2699
2700
  indicator: "map-value-ind",
@@ -2718,12 +2719,12 @@ function Wn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2718
2719
  }
2719
2720
  } else $ && ("source" in $ && $.source && $.source[0] === ":" ? i($, "MISSING_CHAR", `Missing space after : in ${l}`) : i(B.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2720
2721
  const X = $ ? s(t, $, B, i) : B.found ? e(t, B.end, T, null, B, i) : null;
2721
- X ? ht($) && i(X.range, "BLOCK_IN_FLOW", ut) : B.comment && (_.comment ? _.comment += `
2722
+ X ? pt($) && i(X.range, "BLOCK_IN_FLOW", dt) : B.comment && (_.comment ? _.comment += `
2722
2723
  ` + B.comment : _.comment = B.comment);
2723
2724
  const re = new j(_, X);
2724
2725
  if (t.options.keepSourceTokens && (re.srcToken = I), o) {
2725
2726
  const v = c;
2726
- Ds(t, v.items, _) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(re);
2727
+ Ps(t, v.items, _) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(re);
2727
2728
  } else {
2728
2729
  const v = new K(t.schema);
2729
2730
  v.flow = !0, v.items.push(re), c.items.push(v);
@@ -2747,11 +2748,11 @@ function Wn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2747
2748
  c.range = [n.offset, u, u];
2748
2749
  return c;
2749
2750
  }
2750
- function dt(s, e, t, n, i, r) {
2751
- const o = t.type === "block-map" ? Qn(s, e, t, n, r) : t.type === "block-seq" ? Yn(s, e, t, n, r) : Wn(s, e, t, n, r), l = o.constructor;
2751
+ function mt(s, e, t, n, i, r) {
2752
+ const o = t.type === "block-map" ? Yn(s, e, t, n, r) : t.type === "block-seq" ? Wn(s, e, t, n, r) : Gn(s, e, t, n, r), l = o.constructor;
2752
2753
  return i === "!" || i === l.tagName ? (o.tag = l.tagName, o) : (i && (o.tag = i), o);
2753
2754
  }
2754
- function Gn(s, e, t, n, i) {
2755
+ function Hn(s, e, t, n, i) {
2755
2756
  var p, m;
2756
2757
  const r = n.tag, o = r ? e.directives.tagName(r.source, (y) => i(r, "TAG_RESOLVE_FAILED", y)) : null;
2757
2758
  if (t.type === "block-seq") {
@@ -2760,23 +2761,23 @@ function Gn(s, e, t, n, i) {
2760
2761
  }
2761
2762
  const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
2762
2763
  if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === z.tagName && l === "seq")
2763
- return dt(s, e, t, i, o);
2764
+ return mt(s, e, t, i, o);
2764
2765
  let a = e.schema.tags.find((y) => y.tag === o && y.collection === l);
2765
2766
  if (!a) {
2766
2767
  const y = e.schema.knownTags[o];
2767
2768
  if (y && y.collection === l)
2768
2769
  e.schema.tags.push(Object.assign({}, y, { default: !1 })), a = y;
2769
2770
  else
2770
- return y != null && y.collection ? i(r, "BAD_COLLECTION_TYPE", `${y.tag} used for ${l} collection, but expects ${y.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), dt(s, e, t, i, o);
2771
+ return y != null && y.collection ? i(r, "BAD_COLLECTION_TYPE", `${y.tag} used for ${l} collection, but expects ${y.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), mt(s, e, t, i, o);
2771
2772
  }
2772
- const c = dt(s, e, t, i, o, a), h = (m = (p = a.resolve) == null ? void 0 : p.call(a, c, (y) => i(r, "TAG_RESOLVE_FAILED", y), e.options)) != null ? m : c, f = M(h) ? h : new O(h);
2773
+ const c = mt(s, e, t, i, o, a), h = (m = (p = a.resolve) == null ? void 0 : p.call(a, c, (y) => i(r, "TAG_RESOLVE_FAILED", y), e.options)) != null ? m : c, f = M(h) ? h : new O(h);
2773
2774
  return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
2774
2775
  }
2775
- function Ps(s, e, t) {
2776
- const n = e.offset, i = Hn(e, s.options.strict, t);
2776
+ function Ks(s, e, t) {
2777
+ const n = e.offset, i = xn(e, s.options.strict, t);
2777
2778
  if (!i)
2778
2779
  return { value: "", type: null, comment: "", range: [n, n, n] };
2779
- const r = i.mode === ">" ? O.BLOCK_FOLDED : O.BLOCK_LITERAL, o = e.source ? xn(e.source) : [];
2780
+ const r = i.mode === ">" ? O.BLOCK_FOLDED : O.BLOCK_LITERAL, o = e.source ? zn(e.source) : [];
2780
2781
  let l = o.length;
2781
2782
  for (let u = o.length - 1; u >= 0; --u) {
2782
2783
  const g = o[u][1];
@@ -2845,7 +2846,7 @@ function Ps(s, e, t) {
2845
2846
  const y = n + i.length + e.source.length;
2846
2847
  return { value: f, type: r, comment: i.comment, range: [n, y, y] };
2847
2848
  }
2848
- function Hn({ offset: s, props: e }, t, n) {
2849
+ function xn({ offset: s, props: e }, t, n) {
2849
2850
  if (e[0].type !== "block-scalar-header")
2850
2851
  return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
2851
2852
  const { source: i } = e[0], r = i[0];
@@ -2885,25 +2886,25 @@ function Hn({ offset: s, props: e }, t, n) {
2885
2886
  }
2886
2887
  return { mode: r, indent: o, chomp: l, comment: h, length: f };
2887
2888
  }
2888
- function xn(s) {
2889
+ function zn(s) {
2889
2890
  const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n != null && n[1] ? [n[1], t.slice(n[1].length)] : ["", t]];
2890
2891
  for (let o = 1; o < e.length; o += 2)
2891
2892
  r.push([e[o], e[o + 1]]);
2892
2893
  return r;
2893
2894
  }
2894
- function Ks(s, e, t) {
2895
+ function qs(s, e, t) {
2895
2896
  const { offset: n, type: i, source: r, end: o } = s;
2896
2897
  let l, a;
2897
2898
  const c = (p, m, y) => t(n + p, m, y);
2898
2899
  switch (i) {
2899
2900
  case "scalar":
2900
- l = O.PLAIN, a = zn(r, c);
2901
+ l = O.PLAIN, a = Xn(r, c);
2901
2902
  break;
2902
2903
  case "single-quoted-scalar":
2903
- l = O.QUOTE_SINGLE, a = Xn(r, c);
2904
+ l = O.QUOTE_SINGLE, a = Zn(r, c);
2904
2905
  break;
2905
2906
  case "double-quoted-scalar":
2906
- l = O.QUOTE_DOUBLE, a = Zn(r, c);
2907
+ l = O.QUOTE_DOUBLE, a = ei(r, c);
2907
2908
  break;
2908
2909
  default:
2909
2910
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
@@ -2921,7 +2922,7 @@ function Ks(s, e, t) {
2921
2922
  range: [n, h, f.offset]
2922
2923
  };
2923
2924
  }
2924
- function zn(s, e) {
2925
+ function Xn(s, e) {
2925
2926
  let t = "";
2926
2927
  switch (s[0]) {
2927
2928
  case " ":
@@ -2944,12 +2945,12 @@ function zn(s, e) {
2944
2945
  break;
2945
2946
  }
2946
2947
  }
2947
- return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), qs(s);
2948
+ return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), Fs(s);
2948
2949
  }
2949
- function Xn(s, e) {
2950
- return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), qs(s.slice(1, -1)).replace(/''/g, "'");
2950
+ function Zn(s, e) {
2951
+ return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), Fs(s.slice(1, -1)).replace(/''/g, "'");
2951
2952
  }
2952
- function qs(s) {
2953
+ function Fs(s) {
2953
2954
  var a;
2954
2955
  let e, t;
2955
2956
  try {
@@ -2970,7 +2971,7 @@ function qs(s) {
2970
2971
  const l = new RegExp("[ \\t]*(.*)", "sy");
2971
2972
  return l.lastIndex = o, n = l.exec(s), i + r + ((a = n == null ? void 0 : n[1]) != null ? a : "");
2972
2973
  }
2973
- function Zn(s, e) {
2974
+ function ei(s, e) {
2974
2975
  let t = "";
2975
2976
  for (let n = 1; n < s.length - 1; ++n) {
2976
2977
  const i = s[n];
@@ -2978,11 +2979,11 @@ function Zn(s, e) {
2978
2979
  `))
2979
2980
  if (i === `
2980
2981
  `) {
2981
- const { fold: r, offset: o } = ei(s, n);
2982
+ const { fold: r, offset: o } = ti(s, n);
2982
2983
  t += r, n = o;
2983
2984
  } else if (i === "\\") {
2984
2985
  let r = s[++n];
2985
- const o = ti[r];
2986
+ const o = si[r];
2986
2987
  if (o)
2987
2988
  t += o;
2988
2989
  else if (r === `
@@ -2995,7 +2996,7 @@ function Zn(s, e) {
2995
2996
  r = s[++n + 1];
2996
2997
  else if (r === "x" || r === "u" || r === "U") {
2997
2998
  const l = { x: 2, u: 4, U: 8 }[r];
2998
- t += si(s, n + 1, l, e), n += l;
2999
+ t += ni(s, n + 1, l, e), n += l;
2999
3000
  } else {
3000
3001
  const l = s.substr(n - 1, 2);
3001
3002
  e(n - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${l}`), t += l;
@@ -3013,7 +3014,7 @@ function Zn(s, e) {
3013
3014
  }
3014
3015
  return (s[s.length - 1] !== '"' || s.length === 1) && e(s.length, "MISSING_CHAR", 'Missing closing "quote'), t;
3015
3016
  }
3016
- function ei(s, e) {
3017
+ function ti(s, e) {
3017
3018
  let t = "", n = s[e + 1];
3018
3019
  for (; (n === " " || n === " " || n === `
3019
3020
  ` || n === "\r") && !(n === "\r" && s[e + 2] !== `
@@ -3023,7 +3024,7 @@ function ei(s, e) {
3023
3024
  `), e += 1, n = s[e + 1];
3024
3025
  return t || (t = " "), { fold: t, offset: e };
3025
3026
  }
3026
- const ti = {
3027
+ const si = {
3027
3028
  0: "\0",
3028
3029
  // null character
3029
3030
  a: "\x07",
@@ -3057,7 +3058,7 @@ const ti = {
3057
3058
  "\\": "\\",
3058
3059
  " ": " "
3059
3060
  };
3060
- function si(s, e, t, n) {
3061
+ function ni(s, e, t, n) {
3061
3062
  const i = s.substr(e, t), o = i.length === t && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
3062
3063
  if (isNaN(o)) {
3063
3064
  const l = s.substr(e - 2, t + 2);
@@ -3065,8 +3066,8 @@ function si(s, e, t, n) {
3065
3066
  }
3066
3067
  return String.fromCodePoint(o);
3067
3068
  }
3068
- function Fs(s, e, t, n) {
3069
- const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? Ps(s, e, n) : Ks(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? ni(s.schema, i, a, t, n) : e.type === "scalar" ? ii(s, i, e, n) : s.schema[W];
3069
+ function Rs(s, e, t, n) {
3070
+ const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? Ks(s, e, n) : qs(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? ii(s.schema, i, a, t, n) : e.type === "scalar" ? ri(s, i, e, n) : s.schema[W];
3070
3071
  let h;
3071
3072
  try {
3072
3073
  const f = c.resolve(i, (p) => n(t != null ? t : e, "TAG_RESOLVE_FAILED", p), s.options);
@@ -3077,7 +3078,7 @@ function Fs(s, e, t, n) {
3077
3078
  }
3078
3079
  return h.range = l, h.source = i, r && (h.type = r), a && (h.tag = a), c.format && (h.format = c.format), o && (h.comment = o), h;
3079
3080
  }
3080
- function ni(s, e, t, n, i) {
3081
+ function ii(s, e, t, n, i) {
3081
3082
  var l;
3082
3083
  if (t === "!")
3083
3084
  return s[W];
@@ -3094,7 +3095,7 @@ function ni(s, e, t, n, i) {
3094
3095
  const o = s.knownTags[t];
3095
3096
  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[W]);
3096
3097
  }
3097
- function ii({ directives: s, schema: e }, t, n, i) {
3098
+ function ri({ directives: s, schema: e }, t, n, i) {
3098
3099
  var o;
3099
3100
  const r = e.tags.find((l) => {
3100
3101
  var a;
@@ -3112,7 +3113,7 @@ function ii({ directives: s, schema: e }, t, n, i) {
3112
3113
  }
3113
3114
  return r;
3114
3115
  }
3115
- function ri(s, e, t) {
3116
+ function oi(s, e, t) {
3116
3117
  if (e) {
3117
3118
  t === null && (t = e.length);
3118
3119
  for (let n = t - 1; n >= 0; --n) {
@@ -3131,48 +3132,48 @@ function ri(s, e, t) {
3131
3132
  }
3132
3133
  return s;
3133
3134
  }
3134
- const oi = { composeNode: Rs, composeEmptyNode: Kt };
3135
- function Rs(s, e, t, n) {
3135
+ const li = { composeNode: Us, composeEmptyNode: Ft };
3136
+ function Us(s, e, t, n) {
3136
3137
  const { spaceBefore: i, comment: r, anchor: o, tag: l } = t;
3137
3138
  let a, c = !0;
3138
3139
  switch (e.type) {
3139
3140
  case "alias":
3140
- a = li(s, e, n), (o || l) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3141
+ a = ai(s, e, n), (o || l) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3141
3142
  break;
3142
3143
  case "scalar":
3143
3144
  case "single-quoted-scalar":
3144
3145
  case "double-quoted-scalar":
3145
3146
  case "block-scalar":
3146
- a = Fs(s, e, l, n), o && (a.anchor = o.source.substring(1));
3147
+ a = Rs(s, e, l, n), o && (a.anchor = o.source.substring(1));
3147
3148
  break;
3148
3149
  case "block-map":
3149
3150
  case "block-seq":
3150
3151
  case "flow-collection":
3151
- a = Gn(oi, s, e, t, n), o && (a.anchor = o.source.substring(1));
3152
+ a = Hn(li, s, e, t, n), o && (a.anchor = o.source.substring(1));
3152
3153
  break;
3153
3154
  default: {
3154
3155
  const h = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
3155
- n(e, "UNEXPECTED_TOKEN", h), a = Kt(s, e.offset, void 0, null, t, n), c = !1;
3156
+ n(e, "UNEXPECTED_TOKEN", h), a = Ft(s, e.offset, void 0, null, t, n), c = !1;
3156
3157
  }
3157
3158
  }
3158
3159
  return o && a.anchor === "" && n(o, "BAD_ALIAS", "Anchor cannot be an empty string"), i && (a.spaceBefore = !0), r && (e.type === "scalar" && e.source === "" ? a.comment = r : a.commentBefore = r), s.options.keepSourceTokens && c && (a.srcToken = e), a;
3159
3160
  }
3160
- function Kt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3161
+ function Ft(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3161
3162
  const h = {
3162
3163
  type: "scalar",
3163
- offset: ri(e, t, n),
3164
+ offset: oi(e, t, n),
3164
3165
  indent: -1,
3165
3166
  source: ""
3166
- }, f = Fs(s, h, l, c);
3167
+ }, f = Rs(s, h, l, c);
3167
3168
  return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
3168
3169
  }
3169
- function li({ options: s }, { offset: e, source: t, end: n }, i) {
3170
+ function ai({ options: s }, { offset: e, source: t, end: n }, i) {
3170
3171
  const r = new Ge(t.substring(1));
3171
3172
  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);
3172
3173
  const o = e + t.length, l = _e(n, o, s.strict, i);
3173
3174
  return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
3174
3175
  }
3175
- function ai(s, e, { offset: t, start: n, value: i, end: r }, o) {
3176
+ function ci(s, e, { offset: t, start: n, value: i, end: r }, o) {
3176
3177
  const l = Object.assign({ _directives: e }, s), a = new Oe(void 0, l), c = {
3177
3178
  atRoot: !0,
3178
3179
  directives: a.directives,
@@ -3186,7 +3187,7 @@ function ai(s, e, { offset: t, start: n, value: i, end: r }, o) {
3186
3187
  parentIndent: 0,
3187
3188
  startOnNewline: !0
3188
3189
  });
3189
- h.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !h.hasNewline && o(h.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Rs(c, i, h, o) : Kt(c, h.end, n, null, h, o);
3190
+ h.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !h.hasNewline && o(h.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Us(c, i, h, o) : Ft(c, h.end, n, null, h, o);
3190
3191
  const f = a.contents.range[2], p = _e(r, f, !1, o);
3191
3192
  return p.comment && (a.comment = p.comment), a.range = [t, f, p.offset], a;
3192
3193
  }
@@ -3198,7 +3199,7 @@ function Ne(s) {
3198
3199
  const { offset: e, source: t } = s;
3199
3200
  return [e, e + (typeof t == "string" ? t.length : 1)];
3200
3201
  }
3201
- function es(s) {
3202
+ function ts(s) {
3202
3203
  var i;
3203
3204
  let e = "", t = !1, n = !1;
3204
3205
  for (let r = 0; r < s.length; ++r) {
@@ -3219,15 +3220,15 @@ function es(s) {
3219
3220
  }
3220
3221
  return { comment: e, afterEmptyLine: n };
3221
3222
  }
3222
- class qt {
3223
+ class Rt {
3223
3224
  constructor(e = {}) {
3224
3225
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3225
3226
  const o = Ne(t);
3226
- r ? this.warnings.push(new js(o, n, i)) : this.errors.push(new se(o, n, i));
3227
+ r ? this.warnings.push(new Ds(o, n, i)) : this.errors.push(new se(o, n, i));
3227
3228
  }, this.directives = new D({ version: e.version || "1.2" }), this.options = e;
3228
3229
  }
3229
3230
  decorate(e, t) {
3230
- const { comment: n, afterEmptyLine: i } = es(this.prelude);
3231
+ const { comment: n, afterEmptyLine: i } = ts(this.prelude);
3231
3232
  if (n) {
3232
3233
  const r = e.contents;
3233
3234
  if (t)
@@ -3256,7 +3257,7 @@ ${o}` : n;
3256
3257
  */
3257
3258
  streamInfo() {
3258
3259
  return {
3259
- comment: es(this.prelude).comment,
3260
+ comment: ts(this.prelude).comment,
3260
3261
  directives: this.directives,
3261
3262
  errors: this.errors,
3262
3263
  warnings: this.warnings
@@ -3283,7 +3284,7 @@ ${o}` : n;
3283
3284
  }), this.prelude.push(e.source), this.atDirectives = !0;
3284
3285
  break;
3285
3286
  case "document": {
3286
- const t = ai(this.options, this.directives, e, this.onError);
3287
+ const t = ci(this.options, this.directives, e, this.onError);
3287
3288
  this.atDirectives && !t.directives.docStart && this.onError(e, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"), this.decorate(t, !1), this.doc && (yield this.doc), this.doc = t, this.atDirectives = !1;
3288
3289
  break;
3289
3290
  }
@@ -3334,7 +3335,7 @@ ${t.comment}` : t.comment;
3334
3335
  }
3335
3336
  }
3336
3337
  }
3337
- function ci(s, e = !0, t) {
3338
+ function fi(s, e = !0, t) {
3338
3339
  if (s) {
3339
3340
  const n = (i, r, o) => {
3340
3341
  const l = typeof i == "number" ? i : Array.isArray(i) ? i[0] : i.offset;
@@ -3347,14 +3348,14 @@ function ci(s, e = !0, t) {
3347
3348
  case "scalar":
3348
3349
  case "single-quoted-scalar":
3349
3350
  case "double-quoted-scalar":
3350
- return Ks(s, e, n);
3351
+ return qs(s, e, n);
3351
3352
  case "block-scalar":
3352
- return Ps({ options: { strict: e } }, s, n);
3353
+ return Ks({ options: { strict: e } }, s, n);
3353
3354
  }
3354
3355
  }
3355
3356
  return null;
3356
3357
  }
3357
- function fi(s, e) {
3358
+ function ui(s, e) {
3358
3359
  var c;
3359
3360
  const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l = Ce({ type: o, value: s }, {
3360
3361
  implicitKey: t,
@@ -3373,7 +3374,7 @@ function fi(s, e) {
3373
3374
  `, m = [
3374
3375
  { type: "block-scalar-header", offset: r, indent: n, source: f }
3375
3376
  ];
3376
- return Us(m, a) || m.push({ type: "newline", offset: -1, indent: n, source: `
3377
+ return Vs(m, a) || m.push({ type: "newline", offset: -1, indent: n, source: `
3377
3378
  ` }), { type: "block-scalar", offset: r, indent: n, props: m, source: p };
3378
3379
  }
3379
3380
  case '"':
@@ -3384,7 +3385,7 @@ function fi(s, e) {
3384
3385
  return { type: "scalar", offset: r, indent: n, source: l, end: a };
3385
3386
  }
3386
3387
  }
3387
- function ui(s, e, t = {}) {
3388
+ function hi(s, e, t = {}) {
3388
3389
  let { afterKey: n = !1, implicitKey: i = !1, inFlow: r = !1, type: o } = t, l = "indent" in s ? s.indent : null;
3389
3390
  if (n && typeof l == "number" && (l += 2), !o)
3390
3391
  switch (s.type) {
@@ -3413,19 +3414,19 @@ function ui(s, e, t = {}) {
3413
3414
  switch (a[0]) {
3414
3415
  case "|":
3415
3416
  case ">":
3416
- hi(s, a);
3417
+ di(s, a);
3417
3418
  break;
3418
3419
  case '"':
3419
- pt(s, a, "double-quoted-scalar");
3420
+ yt(s, a, "double-quoted-scalar");
3420
3421
  break;
3421
3422
  case "'":
3422
- pt(s, a, "single-quoted-scalar");
3423
+ yt(s, a, "single-quoted-scalar");
3423
3424
  break;
3424
3425
  default:
3425
- pt(s, a, "scalar");
3426
+ yt(s, a, "scalar");
3426
3427
  }
3427
3428
  }
3428
- function hi(s, e) {
3429
+ function di(s, e) {
3429
3430
  const t = e.indexOf(`
3430
3431
  `), n = e.substring(0, t), i = e.substring(t + 1) + `
3431
3432
  `;
@@ -3438,14 +3439,14 @@ function hi(s, e) {
3438
3439
  const { offset: r } = s, o = "indent" in s ? s.indent : -1, l = [
3439
3440
  { type: "block-scalar-header", offset: r, indent: o, source: n }
3440
3441
  ];
3441
- Us(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3442
+ Vs(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3442
3443
  ` });
3443
3444
  for (const a of Object.keys(s))
3444
3445
  a !== "type" && a !== "offset" && delete s[a];
3445
3446
  Object.assign(s, { type: "block-scalar", indent: o, props: l, source: i });
3446
3447
  }
3447
3448
  }
3448
- function Us(s, e) {
3449
+ function Vs(s, e) {
3449
3450
  if (e)
3450
3451
  for (const t of e)
3451
3452
  switch (t.type) {
@@ -3458,7 +3459,7 @@ function Us(s, e) {
3458
3459
  }
3459
3460
  return !1;
3460
3461
  }
3461
- function pt(s, e, t) {
3462
+ function yt(s, e, t) {
3462
3463
  switch (s.type) {
3463
3464
  case "scalar":
3464
3465
  case "double-quoted-scalar":
@@ -3489,7 +3490,7 @@ function pt(s, e, t) {
3489
3490
  }
3490
3491
  }
3491
3492
  }
3492
- const di = (s) => "type" in s ? Qe(s) : Re(s);
3493
+ const pi = (s) => "type" in s ? Qe(s) : Re(s);
3493
3494
  function Qe(s) {
3494
3495
  switch (s.type) {
3495
3496
  case "block-scalar": {
@@ -3538,13 +3539,13 @@ function Re({ start: s, key: e, sep: t, value: n }) {
3538
3539
  i += r.source;
3539
3540
  return n && (i += Qe(n)), i;
3540
3541
  }
3541
- const kt = Symbol("break visit"), pi = Symbol("skip children"), Vs = Symbol("remove item");
3542
+ const Nt = Symbol("break visit"), mi = Symbol("skip children"), Js = Symbol("remove item");
3542
3543
  function ne(s, e) {
3543
- "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Js(Object.freeze([]), s, e);
3544
+ "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Qs(Object.freeze([]), s, e);
3544
3545
  }
3545
- ne.BREAK = kt;
3546
- ne.SKIP = pi;
3547
- ne.REMOVE = Vs;
3546
+ ne.BREAK = Nt;
3547
+ ne.SKIP = mi;
3548
+ ne.REMOVE = Js;
3548
3549
  ne.itemAtPath = (s, e) => {
3549
3550
  let t = s;
3550
3551
  for (const [n, i] of e) {
@@ -3562,7 +3563,7 @@ ne.parentCollection = (s, e) => {
3562
3563
  return i;
3563
3564
  throw new Error("Parent collection not found");
3564
3565
  };
3565
- function Js(s, e, t) {
3566
+ function Qs(s, e, t) {
3566
3567
  let n = t(e, s);
3567
3568
  if (typeof n == "symbol")
3568
3569
  return n;
@@ -3570,13 +3571,13 @@ function Js(s, e, t) {
3570
3571
  const r = e[i];
3571
3572
  if (r && "items" in r) {
3572
3573
  for (let o = 0; o < r.items.length; ++o) {
3573
- const l = Js(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3574
+ const l = Qs(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3574
3575
  if (typeof l == "number")
3575
3576
  o = l - 1;
3576
3577
  else {
3577
- if (l === kt)
3578
- return kt;
3579
- l === Vs && (r.items.splice(o, 1), o -= 1);
3578
+ if (l === Nt)
3579
+ return Nt;
3580
+ l === Js && (r.items.splice(o, 1), o -= 1);
3580
3581
  }
3581
3582
  }
3582
3583
  typeof n == "function" && i === "key" && (n = n(e, s));
@@ -3584,8 +3585,8 @@ function Js(s, e, t) {
3584
3585
  }
3585
3586
  return typeof n == "function" ? n(e, s) : n;
3586
3587
  }
3587
- const it = "\uFEFF", rt = "", ot = "", Le = "", mi = (s) => !!s && "items" in s, yi = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3588
- function gi(s) {
3588
+ const it = "\uFEFF", rt = "", ot = "", Le = "", yi = (s) => !!s && "items" in s, gi = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3589
+ function bi(s) {
3589
3590
  switch (s) {
3590
3591
  case it:
3591
3592
  return "<BOM>";
@@ -3599,7 +3600,7 @@ function gi(s) {
3599
3600
  return JSON.stringify(s);
3600
3601
  }
3601
3602
  }
3602
- function Qs(s) {
3603
+ function Ys(s) {
3603
3604
  switch (s) {
3604
3605
  case it:
3605
3606
  return "byte-order-mark";
@@ -3660,20 +3661,20 @@ function Qs(s) {
3660
3661
  }
3661
3662
  return null;
3662
3663
  }
3663
- const bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3664
+ const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3664
3665
  __proto__: null,
3665
3666
  BOM: it,
3666
3667
  DOCUMENT: rt,
3667
3668
  FLOW_END: ot,
3668
3669
  SCALAR: Le,
3669
- createScalarToken: fi,
3670
- isCollection: mi,
3671
- isScalar: yi,
3672
- prettyToken: gi,
3673
- resolveAsScalar: ci,
3674
- setScalarValue: ui,
3675
- stringify: di,
3676
- tokenType: Qs,
3670
+ createScalarToken: ui,
3671
+ isCollection: yi,
3672
+ isScalar: gi,
3673
+ prettyToken: bi,
3674
+ resolveAsScalar: fi,
3675
+ setScalarValue: hi,
3676
+ stringify: pi,
3677
+ tokenType: Ys,
3677
3678
  visit: ne
3678
3679
  }, Symbol.toStringTag, { value: "Module" }));
3679
3680
  function U(s) {
@@ -3689,9 +3690,9 @@ function U(s) {
3689
3690
  return !1;
3690
3691
  }
3691
3692
  }
3692
- const ts = new Set("0123456789ABCDEFabcdef"), wi = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), De = new Set(",[]{}"), Si = new Set(` ,[]{}
3693
- \r `), mt = (s) => !s || Si.has(s);
3694
- class Ys {
3693
+ const ss = new Set("0123456789ABCDEFabcdef"), Si = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), De = new Set(",[]{}"), ki = new Set(` ,[]{}
3694
+ \r `), gt = (s) => !s || ki.has(s);
3695
+ class Ws {
3695
3696
  constructor() {
3696
3697
  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;
3697
3698
  }
@@ -3851,7 +3852,7 @@ class Ys {
3851
3852
  case "]":
3852
3853
  return yield* d(this.pushCount(1)), "doc";
3853
3854
  case "*":
3854
- return yield* d(this.pushUntil(mt)), "doc";
3855
+ return yield* d(this.pushUntil(gt)), "doc";
3855
3856
  case '"':
3856
3857
  case "'":
3857
3858
  return yield* d(this.parseQuotedScalar());
@@ -3887,7 +3888,7 @@ class Ys {
3887
3888
  case "]":
3888
3889
  return yield* d(this.pushCount(1)), this.flowKey = !0, this.flowLevel -= 1, this.flowLevel ? "flow" : "doc";
3889
3890
  case "*":
3890
- return yield* d(this.pushUntil(mt)), "flow";
3891
+ return yield* d(this.pushUntil(gt)), "flow";
3891
3892
  case '"':
3892
3893
  case "'":
3893
3894
  return this.flowKey = !0, yield* d(this.parseQuotedScalar());
@@ -4052,7 +4053,7 @@ class Ys {
4052
4053
  case "!":
4053
4054
  return (yield* d(this.pushTag())) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4054
4055
  case "&":
4055
- return (yield* d(this.pushUntil(mt))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4056
+ return (yield* d(this.pushUntil(gt))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4056
4057
  case "-":
4057
4058
  case "?":
4058
4059
  case ":": {
@@ -4072,9 +4073,9 @@ class Ys {
4072
4073
  } else {
4073
4074
  let e = this.pos + 1, t = this.buffer[e];
4074
4075
  for (; t; )
4075
- if (wi.has(t))
4076
+ if (Si.has(t))
4076
4077
  t = this.buffer[++e];
4077
- else if (t === "%" && ts.has(this.buffer[e + 1]) && ts.has(this.buffer[e + 2]))
4078
+ else if (t === "%" && ss.has(this.buffer[e + 1]) && ss.has(this.buffer[e + 2]))
4078
4079
  t = this.buffer[e += 3];
4079
4080
  else
4080
4081
  break;
@@ -4102,7 +4103,7 @@ class Ys {
4102
4103
  return yield* d(this.pushToIndex(t, !1));
4103
4104
  }
4104
4105
  }
4105
- class Ws {
4106
+ class Gs {
4106
4107
  constructor() {
4107
4108
  this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
4108
4109
  let t = 0, n = this.lineStarts.length;
@@ -4125,7 +4126,7 @@ function Z(s, e) {
4125
4126
  return !0;
4126
4127
  return !1;
4127
4128
  }
4128
- function ss(s) {
4129
+ function ns(s) {
4129
4130
  for (let e = 0; e < s.length; ++e)
4130
4131
  switch (s[e].type) {
4131
4132
  case "space":
@@ -4137,7 +4138,7 @@ function ss(s) {
4137
4138
  }
4138
4139
  return -1;
4139
4140
  }
4140
- function Gs(s) {
4141
+ function Hs(s) {
4141
4142
  switch (s == null ? void 0 : s.type) {
4142
4143
  case "alias":
4143
4144
  case "scalar":
@@ -4182,18 +4183,18 @@ function le(s) {
4182
4183
  ;
4183
4184
  return s.splice(e, s.length);
4184
4185
  }
4185
- function ns(s) {
4186
+ function is(s) {
4186
4187
  if (s.start.type === "flow-seq-start")
4187
4188
  for (const e of s.items)
4188
- e.sep && !e.value && !Z(e.start, "explicit-key-ind") && !Z(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Gs(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4189
+ e.sep && !e.value && !Z(e.start, "explicit-key-ind") && !Z(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Hs(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4189
4190
  }
4190
- class Ft {
4191
+ class Ut {
4191
4192
  /**
4192
4193
  * @param onNewLine - If defined, called separately with the start position of
4193
4194
  * each new line (in `parse()`, including the start of input).
4194
4195
  */
4195
4196
  constructor(e) {
4196
- this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Ys(), this.onNewLine = e;
4197
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Ws(), this.onNewLine = e;
4197
4198
  }
4198
4199
  /**
4199
4200
  * Parse `source` as a YAML stream.
@@ -4217,7 +4218,7 @@ class Ft {
4217
4218
  this.atScalar = !1, yield* d(this.step()), this.offset += e.length;
4218
4219
  return;
4219
4220
  }
4220
- const t = Qs(e);
4221
+ const t = Ys(e);
4221
4222
  if (t)
4222
4223
  if (t === "scalar")
4223
4224
  this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
@@ -4306,7 +4307,7 @@ class Ft {
4306
4307
  yield t;
4307
4308
  else {
4308
4309
  const n = this.peek(1);
4309
- switch (t.type === "block-scalar" ? t.indent = "indent" in n ? n.indent : 0 : t.type === "flow-collection" && n.type === "document" && (t.indent = 0), t.type === "flow-collection" && ns(t), n.type) {
4310
+ switch (t.type === "block-scalar" ? t.indent = "indent" in n ? n.indent : 0 : t.type === "flow-collection" && n.type === "document" && (t.indent = 0), t.type === "flow-collection" && is(t), n.type) {
4310
4311
  case "document":
4311
4312
  n.value = t;
4312
4313
  break;
@@ -4341,7 +4342,7 @@ class Ft {
4341
4342
  }
4342
4343
  if ((n.type === "document" || n.type === "block-map" || n.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
4343
4344
  const i = t.items[t.items.length - 1];
4344
- i && !i.sep && !i.value && i.start.length > 0 && ss(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4345
+ i && !i.sep && !i.value && i.start.length > 0 && ns(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4345
4346
  }
4346
4347
  }
4347
4348
  }
@@ -4379,7 +4380,7 @@ class Ft {
4379
4380
  return yield* d(this.lineEnd(e));
4380
4381
  switch (this.type) {
4381
4382
  case "doc-start": {
4382
- ss(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4383
+ ns(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4383
4384
  return;
4384
4385
  }
4385
4386
  case "anchor":
@@ -4509,7 +4510,7 @@ class Ft {
4509
4510
  indent: this.indent,
4510
4511
  items: [{ start: o, key: null, sep: [this.sourceToken] }]
4511
4512
  });
4512
- else if (Gs(t.key) && !Z(t.sep, "newline")) {
4513
+ else if (Hs(t.key) && !Z(t.sep, "newline")) {
4513
4514
  const l = le(t.start), a = t.key, c = t.sep;
4514
4515
  c.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
4515
4516
  type: "block-map",
@@ -4648,7 +4649,7 @@ class Ft {
4648
4649
  yield* d(this.pop()), yield* d(this.step());
4649
4650
  else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
4650
4651
  const i = Pe(n), r = le(i);
4651
- ns(e);
4652
+ is(e);
4652
4653
  const o = e.end.splice(1, e.end.length);
4653
4654
  o.push(this.sourceToken);
4654
4655
  const l = {
@@ -4757,19 +4758,19 @@ class Ft {
4757
4758
  }
4758
4759
  }
4759
4760
  }
4760
- function Hs(s) {
4761
+ function xs(s) {
4761
4762
  const e = s.prettyErrors !== !1;
4762
- return { lineCounter: s.lineCounter || e && new Ws() || null, prettyErrors: e };
4763
+ return { lineCounter: s.lineCounter || e && new Gs() || null, prettyErrors: e };
4763
4764
  }
4764
- function ki(s, e = {}) {
4765
- const { lineCounter: t, prettyErrors: n } = Hs(e), i = new Ft(t == null ? void 0 : t.addNewLine), r = new qt(e), o = Array.from(r.compose(i.parse(s)));
4765
+ function Oi(s, e = {}) {
4766
+ const { lineCounter: t, prettyErrors: n } = xs(e), i = new Ut(t == null ? void 0 : t.addNewLine), r = new Rt(e), o = Array.from(r.compose(i.parse(s)));
4766
4767
  if (n && t)
4767
4768
  for (const l of o)
4768
4769
  l.errors.forEach(Je(s, t)), l.warnings.forEach(Je(s, t));
4769
4770
  return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
4770
4771
  }
4771
- function xs(s, e = {}) {
4772
- const { lineCounter: t, prettyErrors: n } = Hs(e), i = new Ft(t == null ? void 0 : t.addNewLine), r = new qt(e);
4772
+ function zs(s, e = {}) {
4773
+ const { lineCounter: t, prettyErrors: n } = xs(e), i = new Ut(t == null ? void 0 : t.addNewLine), r = new Rt(e);
4773
4774
  let o = null;
4774
4775
  for (const l of r.compose(i.parse(s), !0, s.length))
4775
4776
  if (!o)
@@ -4780,20 +4781,20 @@ function xs(s, e = {}) {
4780
4781
  }
4781
4782
  return n && t && (o.errors.forEach(Je(s, t)), o.warnings.forEach(Je(s, t))), o;
4782
4783
  }
4783
- function Oi(s, e, t) {
4784
+ function Ni(s, e, t) {
4784
4785
  let n;
4785
4786
  typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
4786
- const i = xs(s, t);
4787
+ const i = zs(s, t);
4787
4788
  if (!i)
4788
4789
  return null;
4789
- if (i.warnings.forEach((r) => gs(i.options.logLevel, r)), i.errors.length > 0) {
4790
+ if (i.warnings.forEach((r) => bs(i.options.logLevel, r)), i.errors.length > 0) {
4790
4791
  if (i.options.logLevel !== "silent")
4791
4792
  throw i.errors[0];
4792
4793
  i.errors = [];
4793
4794
  }
4794
4795
  return i.toJS(Object.assign({ reviver: n }, t));
4795
4796
  }
4796
- function Ni(s, e, t) {
4797
+ function Ti(s, e, t) {
4797
4798
  var i;
4798
4799
  let n = null;
4799
4800
  if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
@@ -4807,23 +4808,23 @@ function Ni(s, e, t) {
4807
4808
  }
4808
4809
  return new Oe(s, n, t).toString(t);
4809
4810
  }
4810
- const is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4811
+ const rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4811
4812
  __proto__: null,
4812
4813
  Alias: Ge,
4813
- CST: bi,
4814
- Composer: qt,
4814
+ CST: wi,
4815
+ Composer: Rt,
4815
4816
  Document: Oe,
4816
- Lexer: Ys,
4817
- LineCounter: Ws,
4817
+ Lexer: Ws,
4818
+ LineCounter: Gs,
4818
4819
  Pair: j,
4819
- Parser: Ft,
4820
+ Parser: Ut,
4820
4821
  Scalar: O,
4821
4822
  Schema: nt,
4822
- YAMLError: Pt,
4823
+ YAMLError: qt,
4823
4824
  YAMLMap: K,
4824
4825
  YAMLParseError: se,
4825
4826
  YAMLSeq: z,
4826
- YAMLWarning: js,
4827
+ YAMLWarning: Ds,
4827
4828
  isAlias: ie,
4828
4829
  isCollection: C,
4829
4830
  isDocument: ge,
@@ -4832,13 +4833,13 @@ const is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4832
4833
  isPair: E,
4833
4834
  isScalar: A,
4834
4835
  isSeq: we,
4835
- parse: Oi,
4836
- parseAllDocuments: ki,
4837
- parseDocument: xs,
4838
- stringify: Ni,
4836
+ parse: Ni,
4837
+ parseAllDocuments: Oi,
4838
+ parseDocument: zs,
4839
+ stringify: Ti,
4839
4840
  visit: x,
4840
4841
  visitAsync: We
4841
- }, Symbol.toStringTag, { value: "Module" })), Ti = `# This is your query - you can modify it directly and click Run to see new results.
4842
+ }, Symbol.toStringTag, { value: "Module" })), Ii = `# This is your query - you can modify it directly and click Run to see new results.
4842
4843
  # Try uncommenting the elements below
4843
4844
  # To learn more about the query syntax, visit [Doc URL]
4844
4845
  ---
@@ -4880,40 +4881,40 @@ model: {{dataSourceTitle}}
4880
4881
  # - name: Dimension2
4881
4882
  # - name: Measure1
4882
4883
  # - name: Measure2`;
4883
- class Ji {
4884
+ class Qi {
4884
4885
  /**
4885
- * Constructor for QueryTranslator.
4886
- *
4887
- * @param contextTitle - The context title
4888
- * @param fields - The data source fields
4889
- */
4886
+ * Constructor for QueryTranslator.
4887
+ *
4888
+ * @param contextTitle - The context title
4889
+ * @param fields - The data source fields
4890
+ */
4890
4891
  constructor(e, t) {
4891
- this.indexedFields = {}, this.contextTitle = e, this.indexedFields = this.indexFields(t);
4892
+ ct(this, "contextTitle");
4893
+ ct(this, "indexedFields", {});
4894
+ this.contextTitle = e, this.indexedFields = this.indexFields(t);
4892
4895
  }
4893
4896
  indexFields(e) {
4894
4897
  return e.reduce((t, n) => {
4895
4898
  const i = n.id;
4896
4899
  t[i] = n;
4897
- const r = nn(i);
4898
- return i !== r && (t[r] = G(R({}, n), {
4899
- id: r
4900
- })), t;
4900
+ const r = rn(i);
4901
+ return i !== r && (t[r] = G(R({}, n), { id: r })), t;
4901
4902
  }, {});
4902
4903
  }
4903
4904
  /**
4904
- * Concatenates Aggregation Types.
4905
- */
4905
+ * Concatenates Aggregation Types.
4906
+ */
4906
4907
  concatAggTypes() {
4907
- return Object.values(pn).map((t) => dn.aggregationToJAQL(t)).join("|");
4908
+ return Object.values(mn).map((t) => pn.aggregationToJAQL(t)).join("|");
4908
4909
  }
4909
4910
  /**
4910
- * Simplifies Aggregation Formula defined in MetadataItemJaql returned from chat response.
4911
- *
4912
- * @param aggFormula - The Aggregation Formula to simplify
4913
- * @returns The equivalent measure
4914
- * @privateRemarks
4915
- * See unit tests for examples of aggregation formulas and their equivalent measures.
4916
- */
4911
+ * Simplifies Aggregation Formula defined in MetadataItemJaql returned from chat response.
4912
+ *
4913
+ * @param aggFormula - The Aggregation Formula to simplify
4914
+ * @returns The equivalent measure
4915
+ * @privateRemarks
4916
+ * See unit tests for examples of aggregation formulas and their equivalent measures.
4917
+ */
4917
4918
  simplifyAggFormula(e) {
4918
4919
  const { formula: t, context: n, filter: i } = e;
4919
4920
  if (!n || !t)
@@ -4934,11 +4935,11 @@ class Ji {
4934
4935
  return e;
4935
4936
  }
4936
4937
  /**
4937
- * Simplifies MetadataItemJaql.
4938
- *
4939
- * @param item - The MetadataItemJaql to simplify
4940
- * @returns The simplified MetadataItemJaql
4941
- */
4938
+ * Simplifies MetadataItemJaql.
4939
+ *
4940
+ * @param item - The MetadataItemJaql to simplify
4941
+ * @returns The simplified MetadataItemJaql
4942
+ */
4942
4943
  simplifyMetadataItemJaql(e) {
4943
4944
  let t = e;
4944
4945
  if ("formula" in e && (t = this.simplifyAggFormula(e)), delete t.table, delete t.column, delete t.datatype, "context" in t) {
@@ -4950,50 +4951,41 @@ class Ji {
4950
4951
  return t;
4951
4952
  }
4952
4953
  /**
4953
- * Simplify filter
4954
- *
4955
- * @param item - the MetadataItem
4956
- * @return the MetadataItem with simplified filter
4957
- */
4954
+ * Simplify filter
4955
+ *
4956
+ * @param item - the MetadataItem
4957
+ * @return the MetadataItem with simplified filter
4958
+ */
4958
4959
  simplifyMetadataItemFilter(e) {
4959
4960
  var i;
4960
4961
  const t = e;
4961
4962
  if (t.panel !== "scope") return t;
4962
4963
  delete t.format;
4963
4964
  const { jaql: n } = t;
4964
- return (i = n.filter) != null && i.by && (n.filter.by = this.simplifyAggFormula(n.filter.by)), G(R({}, t), {
4965
- jaql: n
4966
- });
4965
+ return (i = n.filter) != null && i.by && (n.filter.by = this.simplifyAggFormula(n.filter.by)), G(R({}, t), { jaql: n });
4967
4966
  }
4968
4967
  /**
4969
- * Simplify date and number format
4970
- *
4971
- * @param item - the MetadataItem
4972
- * @return the MetadataItem with simplified format
4973
- */
4968
+ * Simplify date and number format
4969
+ *
4970
+ * @param item - the MetadataItem
4971
+ * @return the MetadataItem with simplified format
4972
+ */
4974
4973
  simplifyMetadataItemFormat(e) {
4975
- const { jaql: { level: t }, format: { mask: n } = {} } = e;
4976
- return t && (n != null && n[t]) ? G(R({}, e), {
4977
- format: {
4978
- mask: {
4979
- [t]: n[t]
4980
- }
4981
- }
4982
- }) : e;
4974
+ const {
4975
+ jaql: { level: t },
4976
+ format: { mask: n } = {}
4977
+ } = e;
4978
+ return t && (n != null && n[t]) ? G(R({}, e), { format: { mask: { [t]: n[t] } } }) : e;
4983
4979
  }
4984
4980
  /**
4985
- * Simplifies MetadataItem.
4986
- *
4987
- * @param item - The MetadataItem to simplify
4988
- * @returns The simplified MetadataItem
4989
- */
4981
+ * Simplifies MetadataItem.
4982
+ *
4983
+ * @param item - The MetadataItem to simplify
4984
+ * @returns The simplified MetadataItem
4985
+ */
4990
4986
  simplifyMetadataItem(e) {
4991
4987
  let t = e;
4992
- t.panel && [
4993
- "rows",
4994
- "columns",
4995
- "measures"
4996
- ].includes(t.panel) && delete t.panel, t = this.simplifyMetadataItemFilter(t), t = this.simplifyMetadataItemFormat(t);
4988
+ t.panel && ["rows", "columns", "measures"].includes(t.panel) && delete t.panel, t = this.simplifyMetadataItemFilter(t), t = this.simplifyMetadataItemFormat(t);
4997
4989
  const { jaql: n, measure: i, by: r } = t;
4998
4990
  return G(R({}, t), {
4999
4991
  jaql: this.simplifyMetadataItemJaql(n),
@@ -5002,41 +4994,37 @@ class Ji {
5002
4994
  });
5003
4995
  }
5004
4996
  /**
5005
- * Simplifies Chart Recommendations.
5006
- *
5007
- * @param chartRecommendations - The Chart Recommendations to simplify
5008
- * @returns The simplified chart data options
5009
- */
4997
+ * Simplifies Chart Recommendations.
4998
+ *
4999
+ * @param chartRecommendations - The Chart Recommendations to simplify
5000
+ * @returns The simplified chart data options
5001
+ */
5010
5002
  simplifyChartRecommendations(e) {
5011
5003
  if (!("axesMapping" in e))
5012
5004
  return {};
5013
- const { chartType: t, axesMapping: n, styleOptions: i } = e, r = Object.entries(n).reduce((o, [l, a]) => (o[l] = a.map((c) => cn(c)), o), {});
5014
- return {
5015
- chartType: t,
5016
- dataOptions: r,
5017
- styleOptions: i
5018
- };
5005
+ const { chartType: t, axesMapping: n, styleOptions: i } = e, r = Object.entries(n).reduce((o, [l, a]) => (o[l] = a.map((c) => fn(c)), o), {});
5006
+ return { chartType: t, dataOptions: r, styleOptions: i };
5019
5007
  }
5020
5008
  /**
5021
- * Returns the query title with the chart type.
5022
- *
5023
- * @param queryTitle - The query title
5024
- * @param chartRecommendations - The chart recommendations
5025
- * @returns The query title with the chart type
5026
- */
5009
+ * Returns the query title with the chart type.
5010
+ *
5011
+ * @param queryTitle - The query title
5012
+ * @param chartRecommendations - The chart recommendations
5013
+ * @returns The query title with the chart type
5014
+ */
5027
5015
  getQueryTitleWithChartType(e, t) {
5028
5016
  let n = "chartType" in t ? t.chartType : "table";
5029
5017
  return n !== "table" && (n += " chart"), `${n} showing ${e.toLowerCase()}`;
5030
5018
  }
5031
5019
  /**
5032
- * Takes a ExpandedQueryModel (e.g., from chat response) and translates it to SimpleQueryModel.
5033
- *
5034
- * @param expandedQueryModel - The Expanded Query model to simplify
5035
- * @returns The simplified query model
5036
- */
5020
+ * Takes a ExpandedQueryModel (e.g., from chat response) and translates it to SimpleQueryModel.
5021
+ *
5022
+ * @param expandedQueryModel - The Expanded Query model to simplify
5023
+ * @returns The simplified query model
5024
+ */
5037
5025
  translateToSimple(e) {
5038
5026
  try {
5039
- const { jaql: t, chartRecommendations: n, queryTitle: i } = Yt(e);
5027
+ const { jaql: t, chartRecommendations: n, queryTitle: i } = Wt(e);
5040
5028
  return {
5041
5029
  model: t.datasource.title,
5042
5030
  metadata: t.metadata.map((r) => this.simplifyMetadataItem(r)),
@@ -5044,66 +5032,59 @@ class Ji {
5044
5032
  queryTitle: this.getQueryTitleWithChartType(i, n)
5045
5033
  };
5046
5034
  } catch (t) {
5047
- return console.error("Error running toSimpleQuery", t), Qt;
5035
+ return console.error("Error running toSimpleQuery", t), Yt;
5048
5036
  }
5049
5037
  }
5050
5038
  /**
5051
- * Stringifies a simple query model to YAML string.
5052
- *
5053
- * @param simpleQueryModel - The Simple Query model to convert
5054
- * @returns The YAML string representing the simple query model
5055
- */
5039
+ * Stringifies a simple query model to YAML string.
5040
+ *
5041
+ * @param simpleQueryModel - The Simple Query model to convert
5042
+ * @returns The YAML string representing the simple query model
5043
+ */
5056
5044
  stringifySimple(e) {
5057
- const r = e, { queryTitle: t } = r, n = Jt(r, ["queryTitle"]), i = new is.Document(n);
5058
- return i.commentBefore = ` ${rn(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5045
+ const r = e, { queryTitle: t } = r, n = Qt(r, ["queryTitle"]), i = new rs.Document(n);
5046
+ return i.commentBefore = ` ${on(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5059
5047
  }
5060
5048
  /**
5061
- * Returns the query template.
5062
- */
5049
+ * Returns the query template.
5050
+ */
5063
5051
  getQueryTemplate() {
5064
- return on(Ti, {
5065
- dataSourceTitle: this.contextTitle
5066
- });
5052
+ return ln(Ii, { dataSourceTitle: this.contextTitle });
5067
5053
  }
5068
5054
  /**
5069
- * Parses a YAML string to Simple Query Model.
5070
- *
5071
- * @param simpleQueryYaml - The YAML string to parse
5072
- * @returns The Simple Query Model
5073
- */
5055
+ * Parses a YAML string to Simple Query Model.
5056
+ *
5057
+ * @param simpleQueryYaml - The YAML string to parse
5058
+ * @returns The Simple Query Model
5059
+ */
5074
5060
  parseSimple(e) {
5075
5061
  try {
5076
- const t = is.parseDocument(e), { commentBefore: n } = t, i = ln(t.toJS());
5062
+ const t = rs.parseDocument(e), { commentBefore: n } = t, i = an(t.toJS());
5077
5063
  return i.queryTitle = (n == null ? void 0 : n.trim()) || "", i;
5078
5064
  } catch (t) {
5079
5065
  console.error("Error parsing the YAML string", t);
5080
5066
  }
5081
- return Qt;
5067
+ return Yt;
5082
5068
  }
5083
5069
  /**
5084
- * Expands Chart Recommendations.
5085
- *
5086
- * @param chartRecommendations - The Chart Recommendations to expand
5087
- * @returns The expanded chart recommendations
5088
- */
5070
+ * Expands Chart Recommendations.
5071
+ *
5072
+ * @param chartRecommendations - The Chart Recommendations to expand
5073
+ * @returns The expanded chart recommendations
5074
+ */
5089
5075
  expandChartRecommendations(e) {
5090
5076
  if (!e || !("dataOptions" in e))
5091
5077
  return {};
5092
5078
  const { chartType: t, dataOptions: n, styleOptions: i } = e;
5093
- return {
5094
- chartFamily: fn(t),
5095
- chartType: t,
5096
- axesMapping: n,
5097
- styleOptions: i
5098
- };
5079
+ return { chartFamily: un(t), chartType: t, axesMapping: n, styleOptions: i };
5099
5080
  }
5100
5081
  /**
5101
- * Expands MetadataItemJaql by adding table, column, datatype, and title
5102
- * if they are missing from the item.
5103
- *
5104
- * @param item - The MetadataItemJaql to expand
5105
- * @returns The expanded MetadataItemJaql
5106
- */
5082
+ * Expands MetadataItemJaql by adding table, column, datatype, and title
5083
+ * if they are missing from the item.
5084
+ *
5085
+ * @param item - The MetadataItemJaql to expand
5086
+ * @returns The expanded MetadataItemJaql
5087
+ */
5107
5088
  expandMetadataItemJaql(e) {
5108
5089
  const { dim: t = "", agg: n, context: i } = e;
5109
5090
  i && (Object.keys(i).forEach((l) => {
@@ -5113,9 +5094,7 @@ class Ji {
5113
5094
  if (!r)
5114
5095
  return e;
5115
5096
  let { filter: o } = e;
5116
- return o != null && o.by && (o = G(R({}, o), {
5117
- by: this.expandMetadataItemJaql(o.by)
5118
- }), e.filter = o), R({
5097
+ return o != null && o.by && (o = G(R({}, o), { by: this.expandMetadataItemJaql(o.by) }), e.filter = o), R({
5119
5098
  table: r.table,
5120
5099
  column: r.column,
5121
5100
  datatype: r.dimtype,
@@ -5123,11 +5102,11 @@ class Ji {
5123
5102
  }, e);
5124
5103
  }
5125
5104
  /**
5126
- * Expands MetadataItem
5127
- *
5128
- * @param item - The MetadataItem to expand
5129
- * @returns The expanded MetadataItem
5130
- */
5105
+ * Expands MetadataItem
5106
+ *
5107
+ * @param item - The MetadataItem to expand
5108
+ * @returns The expanded MetadataItem
5109
+ */
5131
5110
  expandMetadataItem(e) {
5132
5111
  const { jaql: t, measure: n } = e;
5133
5112
  return n ? G(R({}, e), {
@@ -5138,101 +5117,113 @@ class Ji {
5138
5117
  });
5139
5118
  }
5140
5119
  /**
5141
- * Translates a Simple Query Model to Expanded Query Model.
5142
- *
5143
- * @param simpleQueryModel - The Simple Query model to convert
5144
- * @returns The Expanded Query Model
5145
- */
5120
+ * Translates a Simple Query Model to Expanded Query Model.
5121
+ *
5122
+ * @param simpleQueryModel - The Simple Query model to convert
5123
+ * @returns The Expanded Query Model
5124
+ */
5146
5125
  translateToExpanded(e) {
5147
- const { model: t, metadata: n, chart: i, queryTitle: r } = Yt(e), o = {
5148
- datasource: {
5149
- title: t
5150
- },
5126
+ const { model: t, metadata: n, chart: i, queryTitle: r } = Wt(e), o = {
5127
+ datasource: { title: t },
5151
5128
  metadata: n.map((a) => this.expandMetadataItem(a))
5152
5129
  }, l = this.expandChartRecommendations(i);
5153
- return {
5154
- jaql: o,
5155
- chartRecommendations: l,
5156
- queryTitle: r
5157
- };
5130
+ return { jaql: o, chartRecommendations: l, queryTitle: r };
5158
5131
  }
5159
5132
  }
5160
- const Ii = (s, e) => {
5133
+ const Ai = (s, e) => {
5161
5134
  const t = {
5162
5135
  chart: "chartWidgetPropsTmpl",
5163
5136
  pivot: "pivotTableWidgetPropsTmpl"
5164
5137
  };
5165
- return `[${s.map((n) => an(n, e, t)).join(`,
5138
+ return `[${s.map((n) => cn(n, e, t)).join(`,
5166
5139
  `)}]`;
5167
- }, Ai = "dashboardByIdTmpl", Ei = "dashboardTmpl", Li = ({ dashboardOid: s, uiFramework: e = "react" }) => Ye(Ai, {
5168
- dashboardOid: s
5169
- }, e), Ci = ({ dashboardProps: s, uiFramework: e = "react" }) => {
5140
+ }, Ei = "dashboardByIdTmpl", Li = "dashboardTmpl", Ci = ({
5141
+ dashboardOid: s,
5142
+ uiFramework: e = "react"
5143
+ }) => Ye(Ei, { dashboardOid: s }, e), $i = ({
5144
+ dashboardProps: s,
5145
+ uiFramework: e = "react"
5146
+ }) => {
5170
5147
  var r;
5171
- const t = Ei, n = s.widgets.some((o) => (un(o) || hn(o)) && Ot(o)), i = {
5148
+ const t = Li, n = s.widgets.some(
5149
+ (o) => (hn(o) || dn(o)) && Tt(o)
5150
+ ), i = {
5172
5151
  titleString: s.title,
5173
- defaultDataSourceString: Nt(s.defaultDataSource),
5174
- widgetsString: Ii(s.widgets, e),
5175
- filtersString: Tt(s.filters),
5152
+ defaultDataSourceString: It(s.defaultDataSource),
5153
+ widgetsString: Ai(s.widgets, e),
5154
+ filtersString: At(s.filters),
5176
5155
  componentString: "Dashboard",
5177
- extraImportsString: It(s.filters || s.widgets.map((o) => "filters" in o ? o.filters : []).flat().filter((o) => o !== void 0) || [], n),
5178
- configString: Q({
5179
- toolbar: {
5180
- isVisible: !0
5181
- },
5182
- filtersPanel: {
5183
- isVisible: !0
5156
+ extraImportsString: Et(
5157
+ s.filters || s.widgets.map((o) => "filters" in o ? o.filters : []).flat().filter((o) => o !== void 0) || [],
5158
+ n
5159
+ ),
5160
+ configString: Q(
5161
+ {
5162
+ toolbar: { isVisible: !0 },
5163
+ filtersPanel: { isVisible: !0 },
5164
+ tabbers: ((r = s.config) == null ? void 0 : r.tabbers) || {}
5184
5165
  },
5185
- tabbers: ((r = s.config) == null ? void 0 : r.tabbers) || {}
5186
- }, ve),
5166
+ ve
5167
+ ),
5187
5168
  layoutOptionsString: Q(s.layoutOptions || {}, ve),
5188
- widgetsOptionsString: Q(s.widgetsOptions || {}, ve, !0),
5169
+ widgetsOptionsString: Q(
5170
+ s.widgetsOptions || {},
5171
+ ve,
5172
+ !0
5173
+ ),
5189
5174
  styleOptionsString: Q(s.styleOptions || {}, ve)
5190
5175
  };
5191
5176
  return Ye(t, i, e);
5192
- }, $i = (s) => sn(s) ? Li(s) : Ci(s), Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5177
+ }, _i = (s) => nn(s) ? Ci(s) : $i(s), Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5193
5178
  __proto__: null,
5194
- toDashboardCode: $i
5195
- }, Symbol.toStringTag, { value: "Module" })), _i = "executeQueryTmpl", Mi = "executePivotQueryTmpl", vi = (s, e, t) => {
5196
- const n = Ot(s), i = {
5197
- dataSourceString: Nt(s.dataSource),
5179
+ toDashboardCode: _i
5180
+ }, Symbol.toStringTag, { value: "Module" })), Mi = "executeQueryTmpl", vi = "executePivotQueryTmpl", Bi = (s, e, t) => {
5181
+ const n = Tt(s), i = {
5182
+ dataSourceString: It(s.dataSource),
5198
5183
  dimensionsString: Q(s.dimensions || []),
5199
5184
  measuresString: Q(s.measures || []),
5200
- filtersString: Tt(s.filters),
5185
+ filtersString: At(s.filters),
5201
5186
  highlightsString: Q(s.highlights || []),
5202
- extraImportsString: It(s.filters || [], n)
5187
+ extraImportsString: Et(s.filters || [], n)
5203
5188
  };
5204
5189
  return Ye(t, i, e);
5205
- }, Bi = (s, e, t) => {
5206
- const n = Ot(s), i = {
5207
- dataSourceString: Nt(s.dataSource),
5190
+ }, ji = (s, e, t) => {
5191
+ const n = Tt(s), i = {
5192
+ dataSourceString: It(s.dataSource),
5208
5193
  rowsString: Q(s.rows || []),
5209
5194
  valuesString: Q(s.values || []),
5210
- filtersString: Tt(s.filters),
5211
- extraImportsString: It(s.filters || [], n)
5195
+ filtersString: At(s.filters),
5196
+ extraImportsString: Et(s.filters || [], n)
5212
5197
  };
5213
5198
  return Ye(t, i, e);
5214
- }, ji = ({ queryParams: s, uiFramework: e = "react" }) => vi(s, e, _i), Di = ({ pivotQueryParams: s, uiFramework: e = "react" }) => Bi(s, e, Mi), Pi = (s) => ji(s), Ki = (s) => Di(s), Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5199
+ }, Di = ({
5200
+ queryParams: s,
5201
+ uiFramework: e = "react"
5202
+ }) => Bi(s, e, Mi), Pi = ({
5203
+ pivotQueryParams: s,
5204
+ uiFramework: e = "react"
5205
+ }) => ji(s, e, vi), Ki = (s) => Di(s), qi = (s) => Pi(s), Wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5215
5206
  __proto__: null,
5216
- toExecutePivotQueryCode: Ki,
5217
- toExecuteQueryCode: Pi
5207
+ toExecutePivotQueryCode: qi,
5208
+ toExecuteQueryCode: Ki
5218
5209
  }, Symbol.toStringTag, { value: "Module" }));
5219
5210
  export {
5220
- lr as CustomSuperJSON,
5221
- Hi as EMPTY_EXPANDED_QUERY_MODEL,
5222
- Qt as EMPTY_SIMPLE_QUERY_MODEL,
5223
- Ji as QueryTranslator,
5224
- Qi as dashboardComposer,
5225
- Yi as executeQueryComposer,
5226
- er as getChartDataOptions,
5227
- tr as getChartOptions,
5228
- sr as getChartRecommendationsOrDefault,
5229
- nr as getChartStyleOptions,
5230
- sn as isByIdDashboardCodeParams,
5231
- xi as isByIdWidgetCodeParams,
5232
- zi as isClientSideDashboardCodeParams,
5233
- Xi as isClientSideWidgetCodeParams,
5234
- ir as simplifyMetadataItem,
5235
- ar as translateQueryJSON,
5236
- cr as translateQueryToJaql,
5237
- rr as widgetComposer
5211
+ ar as CustomSuperJSON,
5212
+ xi as EMPTY_EXPANDED_QUERY_MODEL,
5213
+ Yt as EMPTY_SIMPLE_QUERY_MODEL,
5214
+ Qi as QueryTranslator,
5215
+ Yi as dashboardComposer,
5216
+ Wi as executeQueryComposer,
5217
+ tr as getChartDataOptions,
5218
+ sr as getChartOptions,
5219
+ nr as getChartRecommendationsOrDefault,
5220
+ ir as getChartStyleOptions,
5221
+ nn as isByIdDashboardCodeParams,
5222
+ zi as isByIdWidgetCodeParams,
5223
+ Xi as isClientSideDashboardCodeParams,
5224
+ Zi as isClientSideWidgetCodeParams,
5225
+ rr as simplifyMetadataItem,
5226
+ cr as translateQueryJSON,
5227
+ fr as translateQueryToJaql,
5228
+ or as widgetComposer
5238
5229
  };