@kong-ui-public/entities-vaults 2.1.17 → 2.1.18

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.
@@ -1,12 +1,12 @@
1
- import { defineComponent as iA, ref as M, computed as T, watch as kA, renderSlot as _, createCommentVNode as q, unref as r, useSlots as $A, onBeforeMount as Ie, resolveComponent as K, openBlock as c, createBlock as W, createSlots as SA, withCtx as p, createElementVNode as R, createTextVNode as $, toDisplayString as L, createVNode as v, createElementBlock as w, renderList as cA, Fragment as dA, normalizeClass as yA, withModifiers as PA, withDirectives as MA, vShow as KA, useCssVars as $e, resolveDynamicComponent as RA, normalizeProps as Aa, guardReactiveProps as ea, mergeProps as oe, onMounted as ta, onUnmounted as aa, normalizeStyle as At, inject as ia, pushScopeId as et, popScopeId as tt, Teleport as oa, reactive as WA, TransitionGroup as na } from "vue";
1
+ import { defineComponent as iA, ref as M, computed as T, watch as kA, renderSlot as _, createCommentVNode as q, unref as r, useSlots as $A, onBeforeMount as Ie, resolveComponent as K, openBlock as c, createBlock as W, createSlots as SA, withCtx as p, createElementVNode as R, createTextVNode as $, toDisplayString as L, createVNode as v, createElementBlock as w, renderList as cA, Fragment as dA, normalizeClass as yA, withModifiers as PA, withDirectives as MA, vShow as KA, useCssVars as $e, resolveDynamicComponent as RA, normalizeProps as Aa, guardReactiveProps as ea, mergeProps as oe, onMounted as ta, onUnmounted as aa, normalizeStyle as At, inject as ia, pushScopeId as et, popScopeId as tt, Teleport as oa, reactive as WA, TransitionGroup as ga } from "vue";
2
2
  import { useRouter as Qe } from "vue-router";
3
- import ga from "axios";
3
+ import na from "axios";
4
4
  import { createI18n as Ee, i18nTComponent as at } from "@kong-ui-public/i18n";
5
5
  import { BadgeMethodAppearances as la } from "@kong/kongponents";
6
6
  var it = /* @__PURE__ */ ((A) => (A.GatewayService = "service", A.Route = "route", A.Consumer = "consumer", A.ConsumerGroup = "consumer group", A.Plugin = "plugin", A.Upstream = "upstream", A.Certificate = "certificate", A.CACertificate = "ca certificate", A.SNI = "SNI", A.Key = "key", A.KeySet = "key set", A.Vault = "vault", A.Application = "application", A.Developer = "developer", A.acls = "ACL Credential", A["basic-auth"] = "Basic Auth Credential", A["key-auth"] = "Key Auth Credential", A["key-auth-enc"] = "Key Auth Encrypted Credential", A.oauth2 = "OAuth 2.0 Credential", A["hmac-auth"] = "HMAC Credential", A.jwt = "JWT Credential", A.Target = "target", A.Policy = "policy", A))(it || {}), qA = /* @__PURE__ */ ((A) => (A.Edit = "edit", A.Create = "create", A))(qA || {}), wA = /* @__PURE__ */ ((A) => (A[A.Loading = 0] = "Loading", A[A.Idle = 1] = "Idle", A[A.NoResults = 2] = "NoResults", A[A.Error = 3] = "Error", A))(wA || {}), eA = /* @__PURE__ */ ((A) => (A.ID = "id", A.IdArray = "id-array", A.Text = "plain-text", A.Date = "date", A.Redacted = "redacted", A.RedactedArray = "redacted-array", A.Json = "json", A.JsonArray = "json-array", A.BadgeTag = "badge-tag", A.BadgeStatus = "badge-status", A.BadgeMethod = "badge-method", A.LinkInternal = "link-internal", A.LinkExternal = "link-external", A))(eA || {}), EA = /* @__PURE__ */ ((A) => (A.Basic = "basic", A.Advanced = "advanced", A.Plugin = "plugin", A))(EA || {});
7
7
  function se(A = {}) {
8
8
  return {
9
- axiosInstance: ga.create({
9
+ axiosInstance: na.create({
10
10
  withCredentials: !0,
11
11
  timeout: 3e4,
12
12
  ...A
@@ -176,8 +176,8 @@ function ot() {
176
176
  return !1;
177
177
  const i = /* @__PURE__ */ new Set([...e, ...a]);
178
178
  for (const o of i) {
179
- const n = e.filter((l) => l === o).length, g = a.filter((l) => l === o).length;
180
- if (n !== g)
179
+ const g = e.filter((l) => l === o).length, n = a.filter((l) => l === o).length;
180
+ if (g !== n)
181
181
  return !1;
182
182
  }
183
183
  return !0;
@@ -208,8 +208,8 @@ function ot() {
208
208
  }
209
209
  },
210
210
  sortAlpha: (e) => (a, i) => {
211
- let o = a[e] === void 0 || a[e] === null ? "" : a[e], n = i[e] === void 0 || i[e] === null ? "" : i[e];
212
- return Array.isArray(a[e]) && (o = a[e][0]), Array.isArray(i[e]) && (n = i[e][0]), o.localeCompare(n);
211
+ let o = a[e] === void 0 || a[e] === null ? "" : a[e], g = i[e] === void 0 || i[e] === null ? "" : i[e];
212
+ return Array.isArray(a[e]) && (o = a[e][0]), Array.isArray(i[e]) && (g = i[e][0]), o.localeCompare(g);
213
213
  },
214
214
  isValidUuid: (e) => e ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(e) : !1
215
215
  };
@@ -221,7 +221,7 @@ function va(A, t, e, a = {
221
221
  e || (e = "100");
222
222
  const { axiosInstance: i } = se({
223
223
  headers: A.requestHeaders
224
- }), { i18n: { t: o } } = Be(), { debounce: n } = ra(), g = n(async (S) => {
224
+ }), { i18n: { t: o } } = Be(), { debounce: g } = ra(), n = g(async (S) => {
225
225
  await N(S);
226
226
  }, 200), l = M(!1), C = M(""), u = M(""), I = M([]), f = M([]), B = M(void 0), Q = r(t);
227
227
  let h = `${A.apiBaseUrl}${Q}`;
@@ -289,7 +289,7 @@ function va(A, t, e, a = {
289
289
  results: I,
290
290
  allRecords: B,
291
291
  loadItems: m,
292
- debouncedQueryChange: g
292
+ debouncedQueryChange: n
293
293
  };
294
294
  }
295
295
  function ha(A, t) {
@@ -310,8 +310,8 @@ function ya() {
310
310
  return t.response.data.detail;
311
311
  if ((a = t.response.data.details) != null && a.length)
312
312
  return t.response.data.details.map((o) => {
313
- let n = A("errors.unexpected");
314
- return o.messages && typeof o.messages == "object" && o.messages.length && (n = o.messages.join(", ")), o.field ? `${o.field} - ${n}` : n;
313
+ let g = A("errors.unexpected");
314
+ return o.messages && typeof o.messages == "object" && o.messages.length && (g = o.messages.join(", ")), o.field ? `${o.field} - ${g}` : g;
315
315
  }).join("; ");
316
316
  if (t.response.data.message) {
317
317
  const { message: o } = t.response.data;
@@ -329,7 +329,7 @@ function ya() {
329
329
  function ba(A) {
330
330
  const t = window.location.origin, e = t.endsWith("/") ? t : `${t}/`;
331
331
  try {
332
- const a = A.join("/"), i = `${e}${a}`, o = A.some((n) => n.trim() === "");
332
+ const a = A.join("/"), i = `${e}${a}`, o = A.some((g) => g.trim() === "");
333
333
  if (/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i) && !o && new URL(i))
334
334
  return `${e}${a}`;
335
335
  throw new Error("Invalid url");
@@ -337,19 +337,19 @@ function ba(A) {
337
337
  return console.warn("Failed to build valid URL:", a), "";
338
338
  }
339
339
  }
340
- function nt(A, t) {
340
+ function gt(A, t) {
341
341
  const e = M(r(A)), a = M(r(t)), i = T(
342
342
  () => !!(e.value.app === "konnect" || e.value.isExactMatch)
343
343
  ), o = T(
344
344
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
345
345
  );
346
- return (n) => {
347
- const { page: g, pageSize: l, offset: C, sortColumnKey: u, sortColumnOrder: I, query: f } = n;
346
+ return (g) => {
347
+ const { page: n, pageSize: l, offset: C, sortColumnKey: u, sortColumnOrder: I, query: f } = g;
348
348
  try {
349
349
  let B = new URL(o.value.href);
350
350
  return i.value && f ? (B.search = "", B = e.value.app === "konnect" ? new URL(`${B.href}?filter[name][contains]=${f}`) : new URL(`${B.href}/${f}/`)) : (i.value || new URLSearchParams(f).forEach((Q, h) => {
351
351
  B.searchParams.append(h, Q);
352
- }), u && B.searchParams.append("sort_by", u), I === "desc" && B.searchParams.append("sort_desc", "1"), B.searchParams.append("size", String(l))), C && g !== 1 && B.searchParams.append("offset", String(C)), B.href;
352
+ }), u && B.searchParams.append("sort_by", u), I === "desc" && B.searchParams.append("sort_desc", "1"), B.searchParams.append("size", String(l))), C && n !== 1 && B.searchParams.append("offset", String(C)), B.href;
353
353
  } catch (B) {
354
354
  return console.error("RouteList(fetcher)", B), a.value;
355
355
  }
@@ -358,13 +358,15 @@ function nt(A, t) {
358
358
  function ka(A, t, e = "data") {
359
359
  const a = r(t), { axiosInstance: i } = se({
360
360
  headers: A.requestHeaders
361
- }), o = nt(A, a), n = M({
361
+ }), o = gt(A, a), g = M({
362
362
  status: wA.Idle
363
363
  });
364
- return { fetcher: async (g) => {
364
+ return { fetcher: async (n) => {
365
365
  try {
366
- n.value = { status: wA.Loading };
367
- const l = o(g), { data: C } = await i.get(l), u = e && e.replace(/[^\w-_]/gi, "");
366
+ g.value = { status: wA.Loading };
367
+ let l = o(n);
368
+ l.includes("filter[name]") && (l = `${l}&page[size]=${n.pageSize}&page[number]=${n.page}`);
369
+ const { data: C } = await i.get(l), u = e && e.replace(/[^\w-_]/gi, "");
368
370
  let I;
369
371
  C[u] && Array.isArray(C[u]) ? I = C[u] : Array.isArray(C) ? I = C : I = Object.keys(C).length ? [C] : [];
370
372
  const f = {
@@ -376,7 +378,7 @@ function ka(A, t, e = "data") {
376
378
  }
377
379
  } : null
378
380
  };
379
- return n.value = {
381
+ return g.value = {
380
382
  status: wA.Idle,
381
383
  response: f
382
384
  }, f;
@@ -385,17 +387,17 @@ function ka(A, t, e = "data") {
385
387
  data: [],
386
388
  total: 0
387
389
  };
388
- return g.query && l.response.status === 404 ? (n.value = {
390
+ return n.query && l.response.status === 404 ? (g.value = {
389
391
  status: wA.NoResults,
390
392
  response: C,
391
393
  error: l
392
- }, C) : (n.value = {
394
+ }, C) : (g.value = {
393
395
  status: wA.Error,
394
396
  response: C,
395
397
  error: l
396
398
  }, C);
397
399
  }
398
- }, fetcherState: n };
400
+ }, fetcherState: g };
399
401
  }
400
402
  function wa() {
401
403
  const A = (e, a = "_") => e ? e.split(a).map((i) => i.toLowerCase() === "id" ? i.toUpperCase() : i.charAt(0).toUpperCase() + i.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
@@ -404,10 +406,10 @@ function wa() {
404
406
  convertKeyToTitle: A
405
407
  };
406
408
  }
407
- const gt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, we = (A) => {
409
+ const nt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, we = (A) => {
408
410
  if (typeof A != "string")
409
411
  throw new TypeError("Invalid argument expected string");
410
- const t = A.match(gt);
412
+ const t = A.match(nt);
411
413
  if (!t)
412
414
  throw new Error(`Invalid argument not valid semver ('${A}' received)`);
413
415
  return t.shift(), t;
@@ -427,8 +429,8 @@ const gt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
427
429
  }
428
430
  return 0;
429
431
  }, Ua = (A, t) => {
430
- const e = we(A), a = we(t), i = e.pop(), o = a.pop(), n = Ue(e, a);
431
- return n !== 0 ? n : i && o ? Ue(i.split("."), o.split(".")) : i || o ? i ? -1 : 1 : 0;
432
+ const e = we(A), a = we(t), i = e.pop(), o = a.pop(), g = Ue(e, a);
433
+ return g !== 0 ? g : i && o ? Ue(i.split("."), o.split(".")) : i || o ? i ? -1 : 1 : 0;
432
434
  }, Te = (A, t, e) => {
433
435
  Ta(e);
434
436
  const a = Ua(A, t);
@@ -445,7 +447,7 @@ const gt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
445
447
  throw new TypeError(`Invalid operator type, expected string but got ${typeof A}`);
446
448
  if (Ve.indexOf(A) === -1)
447
449
  throw new Error(`Invalid operator, expected one of ${Ve.join("|")}`);
448
- }, Va = (A) => typeof A == "string" && /^[v\d]/.test(A) && gt.test(A);
450
+ }, Va = (A) => typeof A == "string" && /^[v\d]/.test(A) && nt.test(A);
449
451
  function Fa(A) {
450
452
  const { gatewayInfo: t, supportedRange: e } = A;
451
453
  if (!t)
@@ -456,8 +458,8 @@ function Fa(A) {
456
458
  const o = e[a];
457
459
  if (!o)
458
460
  return !1;
459
- const [n, g] = o;
460
- return !(n && Te(i, n, "<") || g && Te(i, g, ">"));
461
+ const [g, n] = o;
462
+ return !(g && Te(i, g, "<") || n && Te(i, n, ">"));
461
463
  }
462
464
  function Ra(A) {
463
465
  const t = M(0), e = M(0), a = M(!1);
@@ -474,7 +476,7 @@ const rA = {
474
476
  useErrors: ya,
475
477
  useExternalLinkCreator: ba,
476
478
  useFetcher: ka,
477
- useFetchUrlBuilder: nt,
479
+ useFetchUrlBuilder: gt,
478
480
  useHelpers: ot,
479
481
  useStringHelpers: wa,
480
482
  useI18n: Be,
@@ -638,13 +640,13 @@ const rA = {
638
640
  emits: ["success", "error"],
639
641
  setup(A, { emit: t }) {
640
642
  const { t: e } = Ee("en-us", Ma), a = A, i = t, o = a.notify || ia(Ka, () => {
641
- }), n = T(() => a.idTooltip ? {
643
+ }), g = T(() => a.idTooltip ? {
642
644
  label: a.idTooltip,
643
645
  positionFixed: !0,
644
646
  placement: "bottomStart"
645
647
  } : {
646
648
  title: a.uuid
647
- }), g = T(() => !!(a.tooltip && a.successTooltip)), l = M(a.tooltip), C = T(() => a.tooltip ? {
649
+ }), n = T(() => !!(a.tooltip && a.successTooltip)), l = M(a.tooltip), C = T(() => a.tooltip ? {
648
650
  label: l.value,
649
651
  positionFixed: !0,
650
652
  maxWidth: "500px",
@@ -662,19 +664,19 @@ const rA = {
662
664
  typeof o == "function" && o({
663
665
  type: "error",
664
666
  message: e("message.fail")
665
- }), g.value ? I(e("message.fail")) : i("error", a.uuid);
667
+ }), n.value ? I(e("message.fail")) : i("error", a.uuid);
666
668
  return;
667
669
  }
668
670
  const J = ((Q = a.uuid) == null ? void 0 : Q.length) > Re, m = a.format === "hidden" || a.format === "redacted" ? e("message.success.prefix") : `"${((h = a.uuid) == null ? void 0 : h.substring(0, Re)) + (J ? "..." : "")}"`;
669
671
  typeof o == "function" && o({
670
672
  type: "success",
671
673
  message: `${m}${e("message.success.content")}`
672
- }), g.value ? I(a.successTooltip) : i("success", a.uuid);
674
+ }), n.value ? I(a.successTooltip) : i("success", a.uuid);
673
675
  };
674
676
  return (B, Q) => {
675
677
  const h = K("KClipboardProvider");
676
678
  return c(), w("div", za, [
677
- A.format !== "hidden" ? (c(), W(RA(A.idTooltip ? "KTooltip" : "div"), oe({ key: 0 }, n.value, { "data-testid": "copy-id" }), {
679
+ A.format !== "hidden" ? (c(), W(RA(A.idTooltip ? "KTooltip" : "div"), oe({ key: 0 }, g.value, { "data-testid": "copy-id" }), {
678
680
  default: p(() => [
679
681
  R("div", {
680
682
  class: yA([
@@ -738,10 +740,10 @@ const rA = {
738
740
  }
739
741
  },
740
742
  setup(A) {
741
- const t = A, { i18n: { t: e } } = rA.useI18n(), { convertKeyToTitle: a } = rA.useStringHelpers(), i = T(() => t.item.key ?? "json-array-item"), o = T(() => t.item.value ?? t.item), n = T(() => {
743
+ const t = A, { i18n: { t: e } } = rA.useI18n(), { convertKeyToTitle: a } = rA.useStringHelpers(), i = T(() => t.item.key ?? "json-array-item"), o = T(() => t.item.value ?? t.item), g = T(() => {
742
744
  const l = JSON.parse(JSON.stringify(o.value));
743
745
  return t.isArrayItem && delete l.name, l;
744
- }), g = T(() => {
746
+ }), n = T(() => {
745
747
  var l;
746
748
  return t.isArrayItem ? (l = o.value) != null && l.name ? a(o.value.name, "_") : e("baseConfigCard.general.entryTitle", { index: t.index }) : "";
747
749
  });
@@ -750,14 +752,14 @@ const rA = {
750
752
  }, {
751
753
  default: p(() => [
752
754
  A.isArrayItem ? (c(), w("legend", Xa, [
753
- R("b", null, L(g.value), 1)
755
+ R("b", null, L(n.value), 1)
754
756
  ])) : q("", !0),
755
- (c(!0), w(dA, null, cA(Object.keys(n.value), (u, I) => (c(), W(ue, {
757
+ (c(!0), w(dA, null, cA(Object.keys(g.value), (u, I) => (c(), W(ue, {
756
758
  key: `${i.value}-property-${I}`,
757
759
  item: {
758
760
  key: u,
759
761
  label: r(a)(u),
760
- value: n.value[u]
762
+ value: g.value[u]
761
763
  }
762
764
  }, null, 8, ["item"]))), 128))
763
765
  ]),
@@ -818,7 +820,7 @@ const rA = {
818
820
  }, 8, ["appearance"]);
819
821
  };
820
822
  }
821
- }), ti = "#0044f4", ai = "#e0e4ea", ii = "#3a3f51", oi = "1px", ni = "20px", gi = { class: "config-card-details-row" }, li = ["data-testid"], ri = ["data-testid"], Ci = ["data-testid"], Ii = ["data-testid"], Qi = { key: 1 }, Ei = ["data-testid"], si = ["data-testid"], Bi = ["data-testid"], ui = ["data-testid"], ci = {
823
+ }), ti = "#0044f4", ai = "#e0e4ea", ii = "#3a3f51", oi = "1px", gi = "20px", ni = { class: "config-card-details-row" }, li = ["data-testid"], ri = ["data-testid"], Ci = ["data-testid"], Ii = ["data-testid"], Qi = { key: 1 }, Ei = ["data-testid"], si = ["data-testid"], Bi = ["data-testid"], ui = ["data-testid"], ci = {
822
824
  name: "ConfigCardItem",
823
825
  components: { CopyUuid: rt, JsonCardItem: Ct, StatusBadge: ei, InternalLinkItem: Ai }
824
826
  }, di = /* @__PURE__ */ iA({
@@ -843,11 +845,11 @@ const rA = {
843
845
  setup(A, { emit: t }) {
844
846
  $e((Q) => ({
845
847
  "0da74440": u.value ? "none" : `solid ${r(oi)} ${r(ai)}`,
846
- "02a039da": C.value && g.value ? "block" : "flex",
847
- "690f3ced": C.value && g.value ? "100%" : e.slim ? "50%" : "25%",
848
- "691182c8": C.value && g.value ? "100%" : e.slim ? "50%" : "75%"
848
+ "02a039da": C.value && n.value ? "block" : "flex",
849
+ "690f3ced": C.value && n.value ? "100%" : e.slim ? "50%" : "25%",
850
+ "691182c8": C.value && n.value ? "100%" : e.slim ? "50%" : "75%"
849
851
  }));
850
- const e = A, a = t, i = $A(), { i18n: { t: o, formatUnixTimeStamp: n } } = rA.useI18n(), g = T(() => e.item.value !== void 0 && e.item.value !== null && e.item.value !== ""), l = T(() => !!(e.item.tooltip || i["label-tooltip"])), C = T(() => e.item.type === eA.Json || e.item.type === eA.JsonArray), u = T(() => e.item.type === eA.JsonArray), I = T(() => {
852
+ const e = A, a = t, i = $A(), { i18n: { t: o, formatUnixTimeStamp: g } } = rA.useI18n(), n = T(() => e.item.value !== void 0 && e.item.value !== null && e.item.value !== ""), l = T(() => !!(e.item.tooltip || i["label-tooltip"])), C = T(() => e.item.type === eA.Json || e.item.type === eA.JsonArray), u = T(() => e.item.type === eA.JsonArray), I = T(() => {
851
853
  switch (e.item.type) {
852
854
  case eA.ID:
853
855
  return {
@@ -907,7 +909,7 @@ const rA = {
907
909
  attrs: {
908
910
  "data-testid": `${e.item.key}-date`
909
911
  },
910
- text: n(e.item.value)
912
+ text: g(e.item.value)
911
913
  };
912
914
  case eA.BadgeStatus:
913
915
  return {
@@ -976,7 +978,7 @@ const rA = {
976
978
  }), f = M(), { isTruncated: B } = rA.useTruncationDetector(f);
977
979
  return (Q, h) => {
978
980
  const J = K("KLabel"), m = K("KBadge"), y = K("KTooltip");
979
- return c(), w("div", gi, [
981
+ return c(), w("div", ni, [
980
982
  R("div", {
981
983
  class: "config-card-details-label",
982
984
  "data-testid": `${A.item.key}-label`
@@ -1011,7 +1013,7 @@ const rA = {
1011
1013
  _(Q.$slots, A.item.key, {
1012
1014
  rowValue: A.item.value
1013
1015
  }, () => [
1014
- g.value ? (c(), w("div", Qi, [
1016
+ n.value ? (c(), w("div", Qi, [
1015
1017
  (c(), W(RA(I.value.tag), Aa(ea(I.value.attrs)), {
1016
1018
  default: p(() => [
1017
1019
  I.value.additionalComponent === "KBadge" ? (c(), w("div", {
@@ -1120,7 +1122,7 @@ function vi(A, t) {
1120
1122
  function hi(A) {
1121
1123
  return A === 0 && Number.NEGATIVE_INFINITY === 1 / A;
1122
1124
  }
1123
- var yi = It, bi = pi, ki = fi, wi = vi, Si = hi, Ji = mi, nA = {
1125
+ var yi = It, bi = pi, ki = fi, wi = vi, Si = hi, Ji = mi, gA = {
1124
1126
  isNothing: yi,
1125
1127
  isObject: bi,
1126
1128
  toArray: ki,
@@ -1144,45 +1146,45 @@ LA.prototype.toString = function(A) {
1144
1146
  };
1145
1147
  var QA = LA;
1146
1148
  function te(A, t, e, a, i) {
1147
- var o = "", n = "", g = Math.floor(i / 2) - 1;
1148
- return a - t > g && (o = " ... ", t = a - g + o.length), e - a > g && (n = " ...", e = a + g - n.length), {
1149
- str: o + A.slice(t, e).replace(/\t/g, "→") + n,
1149
+ var o = "", g = "", n = Math.floor(i / 2) - 1;
1150
+ return a - t > n && (o = " ... ", t = a - n + o.length), e - a > n && (g = " ...", e = a + n - g.length), {
1151
+ str: o + A.slice(t, e).replace(/\t/g, "→") + g,
1150
1152
  pos: a - t + o.length
1151
1153
  // relative position
1152
1154
  };
1153
1155
  }
1154
1156
  function ae(A, t) {
1155
- return nA.repeat(" ", t - A.length) + A;
1157
+ return gA.repeat(" ", t - A.length) + A;
1156
1158
  }
1157
1159
  function Ui(A, t) {
1158
1160
  if (t = Object.create(t || null), !A.buffer)
1159
1161
  return null;
1160
1162
  t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
1161
- for (var e = /\r?\n|\r|\0/g, a = [0], i = [], o, n = -1; o = e.exec(A.buffer); )
1162
- i.push(o.index), a.push(o.index + o[0].length), A.position <= o.index && n < 0 && (n = a.length - 2);
1163
- n < 0 && (n = a.length - 1);
1164
- var g = "", l, C, u = Math.min(A.line + t.linesAfter, i.length).toString().length, I = t.maxLength - (t.indent + u + 3);
1165
- for (l = 1; l <= t.linesBefore && !(n - l < 0); l++)
1163
+ for (var e = /\r?\n|\r|\0/g, a = [0], i = [], o, g = -1; o = e.exec(A.buffer); )
1164
+ i.push(o.index), a.push(o.index + o[0].length), A.position <= o.index && g < 0 && (g = a.length - 2);
1165
+ g < 0 && (g = a.length - 1);
1166
+ var n = "", l, C, u = Math.min(A.line + t.linesAfter, i.length).toString().length, I = t.maxLength - (t.indent + u + 3);
1167
+ for (l = 1; l <= t.linesBefore && !(g - l < 0); l++)
1166
1168
  C = te(
1167
1169
  A.buffer,
1168
- a[n - l],
1169
- i[n - l],
1170
- A.position - (a[n] - a[n - l]),
1170
+ a[g - l],
1171
+ i[g - l],
1172
+ A.position - (a[g] - a[g - l]),
1171
1173
  I
1172
- ), g = nA.repeat(" ", t.indent) + ae((A.line - l + 1).toString(), u) + " | " + C.str + `
1173
- ` + g;
1174
- for (C = te(A.buffer, a[n], i[n], A.position, I), g += nA.repeat(" ", t.indent) + ae((A.line + 1).toString(), u) + " | " + C.str + `
1175
- `, g += nA.repeat("-", t.indent + u + 3 + C.pos) + `^
1176
- `, l = 1; l <= t.linesAfter && !(n + l >= i.length); l++)
1174
+ ), n = gA.repeat(" ", t.indent) + ae((A.line - l + 1).toString(), u) + " | " + C.str + `
1175
+ ` + n;
1176
+ for (C = te(A.buffer, a[g], i[g], A.position, I), n += gA.repeat(" ", t.indent) + ae((A.line + 1).toString(), u) + " | " + C.str + `
1177
+ `, n += gA.repeat("-", t.indent + u + 3 + C.pos) + `^
1178
+ `, l = 1; l <= t.linesAfter && !(g + l >= i.length); l++)
1177
1179
  C = te(
1178
1180
  A.buffer,
1179
- a[n + l],
1180
- i[n + l],
1181
- A.position - (a[n] - a[n + l]),
1181
+ a[g + l],
1182
+ i[g + l],
1183
+ A.position - (a[g] - a[g + l]),
1182
1184
  I
1183
- ), g += nA.repeat(" ", t.indent) + ae((A.line + l + 1).toString(), u) + " | " + C.str + `
1185
+ ), n += gA.repeat(" ", t.indent) + ae((A.line + l + 1).toString(), u) + " | " + C.str + `
1184
1186
  `;
1185
- return g.replace(/\n$/, "");
1187
+ return n.replace(/\n$/, "");
1186
1188
  }
1187
1189
  var Ti = Ui, Vi = [
1188
1190
  "kind",
@@ -1224,8 +1226,8 @@ function Ne(A, t) {
1224
1226
  var e = [];
1225
1227
  return A[t].forEach(function(a) {
1226
1228
  var i = e.length;
1227
- e.forEach(function(o, n) {
1228
- o.tag === a.tag && o.kind === a.kind && o.multi === a.multi && (i = n);
1229
+ e.forEach(function(o, g) {
1230
+ o.tag === a.tag && o.kind === a.kind && o.multi === a.multi && (i = g);
1229
1231
  }), e[i] = a;
1230
1232
  }), e;
1231
1233
  }
@@ -1249,10 +1251,10 @@ function xi() {
1249
1251
  arguments[t].forEach(a);
1250
1252
  return A;
1251
1253
  }
1252
- function ne(A) {
1254
+ function ge(A) {
1253
1255
  return this.extend(A);
1254
1256
  }
1255
- ne.prototype.extend = function(A) {
1257
+ ge.prototype.extend = function(A) {
1256
1258
  var t = [], e = [];
1257
1259
  if (A instanceof CA)
1258
1260
  e.push(A);
@@ -1273,10 +1275,10 @@ ne.prototype.extend = function(A) {
1273
1275
  if (!(i instanceof CA))
1274
1276
  throw new QA("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1275
1277
  });
1276
- var a = Object.create(ne.prototype);
1278
+ var a = Object.create(ge.prototype);
1277
1279
  return a.implicit = (this.implicit || []).concat(t), a.explicit = (this.explicit || []).concat(e), a.compiledImplicit = Ne(a, "implicit"), a.compiledExplicit = Ne(a, "explicit"), a.compiledTypeMap = xi(a.compiledImplicit, a.compiledExplicit), a;
1278
1280
  };
1279
- var Et = ne, st = new CA("tag:yaml.org,2002:str", {
1281
+ var Et = ge, st = new CA("tag:yaml.org,2002:str", {
1280
1282
  kind: "scalar",
1281
1283
  construct: function(A) {
1282
1284
  return A !== null ? A : "";
@@ -1435,7 +1437,7 @@ function zi(A) {
1435
1437
  return e * parseInt(t, 10);
1436
1438
  }
1437
1439
  function Hi(A) {
1438
- return Object.prototype.toString.call(A) === "[object Number]" && A % 1 === 0 && !nA.isNegativeZero(A);
1440
+ return Object.prototype.toString.call(A) === "[object Number]" && A % 1 === 0 && !gA.isNegativeZero(A);
1439
1441
  }
1440
1442
  var ft = new CA("tag:yaml.org,2002:int", {
1441
1443
  kind: "scalar",
@@ -1507,12 +1509,12 @@ function $i(A, t) {
1507
1509
  case "camelcase":
1508
1510
  return "-.Inf";
1509
1511
  }
1510
- else if (nA.isNegativeZero(A))
1512
+ else if (gA.isNegativeZero(A))
1511
1513
  return "-0.0";
1512
1514
  return e = A.toString(10), _i.test(e) ? e.replace("e", ".e") : e;
1513
1515
  }
1514
1516
  function Ao(A) {
1515
- return Object.prototype.toString.call(A) === "[object Number]" && (A % 1 !== 0 || nA.isNegativeZero(A));
1517
+ return Object.prototype.toString.call(A) === "[object Number]" && (A % 1 !== 0 || gA.isNegativeZero(A));
1516
1518
  }
1517
1519
  var mt = new CA("tag:yaml.org,2002:float", {
1518
1520
  kind: "scalar",
@@ -1537,17 +1539,17 @@ function eo(A) {
1537
1539
  return A === null ? !1 : yt.exec(A) !== null || bt.exec(A) !== null;
1538
1540
  }
1539
1541
  function to(A) {
1540
- var t, e, a, i, o, n, g, l = 0, C = null, u, I, f;
1542
+ var t, e, a, i, o, g, n, l = 0, C = null, u, I, f;
1541
1543
  if (t = yt.exec(A), t === null && (t = bt.exec(A)), t === null)
1542
1544
  throw new Error("Date resolve error");
1543
1545
  if (e = +t[1], a = +t[2] - 1, i = +t[3], !t[4])
1544
1546
  return new Date(Date.UTC(e, a, i));
1545
- if (o = +t[4], n = +t[5], g = +t[6], t[7]) {
1547
+ if (o = +t[4], g = +t[5], n = +t[6], t[7]) {
1546
1548
  for (l = t[7].slice(0, 3); l.length < 3; )
1547
1549
  l += "0";
1548
1550
  l = +l;
1549
1551
  }
1550
- return t[9] && (u = +t[10], I = +(t[11] || 0), C = (u * 60 + I) * 6e4, t[9] === "-" && (C = -C)), f = new Date(Date.UTC(e, a, i, o, n, g, l)), C && f.setTime(f.getTime() - C), f;
1552
+ return t[9] && (u = +t[10], I = +(t[11] || 0), C = (u * 60 + I) * 6e4, t[9] === "-" && (C = -C)), f = new Date(Date.UTC(e, a, i, o, g, n, l)), C && f.setTime(f.getTime() - C), f;
1551
1553
  }
1552
1554
  function ao(A) {
1553
1555
  return A.toISOString();
@@ -1579,17 +1581,17 @@ function oo(A) {
1579
1581
  }
1580
1582
  return a % 8 === 0;
1581
1583
  }
1582
- function no(A) {
1583
- var t, e, a = A.replace(/[\r\n=]/g, ""), i = a.length, o = ce, n = 0, g = [];
1584
+ function go(A) {
1585
+ var t, e, a = A.replace(/[\r\n=]/g, ""), i = a.length, o = ce, g = 0, n = [];
1584
1586
  for (t = 0; t < i; t++)
1585
- t % 4 === 0 && t && (g.push(n >> 16 & 255), g.push(n >> 8 & 255), g.push(n & 255)), n = n << 6 | o.indexOf(a.charAt(t));
1586
- return e = i % 4 * 6, e === 0 ? (g.push(n >> 16 & 255), g.push(n >> 8 & 255), g.push(n & 255)) : e === 18 ? (g.push(n >> 10 & 255), g.push(n >> 2 & 255)) : e === 12 && g.push(n >> 4 & 255), new Uint8Array(g);
1587
+ t % 4 === 0 && t && (n.push(g >> 16 & 255), n.push(g >> 8 & 255), n.push(g & 255)), g = g << 6 | o.indexOf(a.charAt(t));
1588
+ return e = i % 4 * 6, e === 0 ? (n.push(g >> 16 & 255), n.push(g >> 8 & 255), n.push(g & 255)) : e === 18 ? (n.push(g >> 10 & 255), n.push(g >> 2 & 255)) : e === 12 && n.push(g >> 4 & 255), new Uint8Array(n);
1587
1589
  }
1588
- function go(A) {
1589
- var t = "", e = 0, a, i, o = A.length, n = ce;
1590
+ function no(A) {
1591
+ var t = "", e = 0, a, i, o = A.length, g = ce;
1590
1592
  for (a = 0; a < o; a++)
1591
- a % 3 === 0 && a && (t += n[e >> 18 & 63], t += n[e >> 12 & 63], t += n[e >> 6 & 63], t += n[e & 63]), e = (e << 8) + A[a];
1592
- return i = o % 3, i === 0 ? (t += n[e >> 18 & 63], t += n[e >> 12 & 63], t += n[e >> 6 & 63], t += n[e & 63]) : i === 2 ? (t += n[e >> 10 & 63], t += n[e >> 4 & 63], t += n[e << 2 & 63], t += n[64]) : i === 1 && (t += n[e >> 2 & 63], t += n[e << 4 & 63], t += n[64], t += n[64]), t;
1593
+ a % 3 === 0 && a && (t += g[e >> 18 & 63], t += g[e >> 12 & 63], t += g[e >> 6 & 63], t += g[e & 63]), e = (e << 8) + A[a];
1594
+ return i = o % 3, i === 0 ? (t += g[e >> 18 & 63], t += g[e >> 12 & 63], t += g[e >> 6 & 63], t += g[e & 63]) : i === 2 ? (t += g[e >> 10 & 63], t += g[e >> 4 & 63], t += g[e << 2 & 63], t += g[64]) : i === 1 && (t += g[e >> 2 & 63], t += g[e << 4 & 63], t += g[64], t += g[64]), t;
1593
1595
  }
1594
1596
  function lo(A) {
1595
1597
  return Object.prototype.toString.call(A) === "[object Uint8Array]";
@@ -1597,24 +1599,24 @@ function lo(A) {
1597
1599
  var St = new CA("tag:yaml.org,2002:binary", {
1598
1600
  kind: "scalar",
1599
1601
  resolve: oo,
1600
- construct: no,
1602
+ construct: go,
1601
1603
  predicate: lo,
1602
- represent: go
1604
+ represent: no
1603
1605
  }), ro = Object.prototype.hasOwnProperty, Co = Object.prototype.toString;
1604
1606
  function Io(A) {
1605
1607
  if (A === null)
1606
1608
  return !0;
1607
- var t = [], e, a, i, o, n, g = A;
1608
- for (e = 0, a = g.length; e < a; e += 1) {
1609
- if (i = g[e], n = !1, Co.call(i) !== "[object Object]")
1609
+ var t = [], e, a, i, o, g, n = A;
1610
+ for (e = 0, a = n.length; e < a; e += 1) {
1611
+ if (i = n[e], g = !1, Co.call(i) !== "[object Object]")
1610
1612
  return !1;
1611
1613
  for (o in i)
1612
1614
  if (ro.call(i, o))
1613
- if (!n)
1614
- n = !0;
1615
+ if (!g)
1616
+ g = !0;
1615
1617
  else
1616
1618
  return !1;
1617
- if (!n)
1619
+ if (!g)
1618
1620
  return !1;
1619
1621
  if (t.indexOf(o) === -1)
1620
1622
  t.push(o);
@@ -1634,9 +1636,9 @@ var Jt = new CA("tag:yaml.org,2002:omap", {
1634
1636
  function so(A) {
1635
1637
  if (A === null)
1636
1638
  return !0;
1637
- var t, e, a, i, o, n = A;
1638
- for (o = new Array(n.length), t = 0, e = n.length; t < e; t += 1) {
1639
- if (a = n[t], Eo.call(a) !== "[object Object]" || (i = Object.keys(a), i.length !== 1))
1639
+ var t, e, a, i, o, g = A;
1640
+ for (o = new Array(g.length), t = 0, e = g.length; t < e; t += 1) {
1641
+ if (a = g[t], Eo.call(a) !== "[object Object]" || (i = Object.keys(a), i.length !== 1))
1640
1642
  return !1;
1641
1643
  o[t] = [i[0], a[i[0]]];
1642
1644
  }
@@ -1645,9 +1647,9 @@ function so(A) {
1645
1647
  function Bo(A) {
1646
1648
  if (A === null)
1647
1649
  return [];
1648
- var t, e, a, i, o, n = A;
1649
- for (o = new Array(n.length), t = 0, e = n.length; t < e; t += 1)
1650
- a = n[t], i = Object.keys(a), o[t] = [i[0], a[i[0]]];
1650
+ var t, e, a, i, o, g = A;
1651
+ for (o = new Array(g.length), t = 0, e = g.length; t < e; t += 1)
1652
+ a = g[t], i = Object.keys(a), o[t] = [i[0], a[i[0]]];
1651
1653
  return o;
1652
1654
  }
1653
1655
  var Ut = new CA("tag:yaml.org,2002:pairs", {
@@ -1758,22 +1760,22 @@ var Le = {
1758
1760
  }
1759
1761
  };
1760
1762
  function hA(A, t, e, a) {
1761
- var i, o, n, g;
1763
+ var i, o, g, n;
1762
1764
  if (t < e) {
1763
- if (g = A.input.slice(t, e), a)
1764
- for (i = 0, o = g.length; i < o; i += 1)
1765
- n = g.charCodeAt(i), n === 9 || 32 <= n && n <= 1114111 || U(A, "expected valid JSON character");
1765
+ if (n = A.input.slice(t, e), a)
1766
+ for (i = 0, o = n.length; i < o; i += 1)
1767
+ g = n.charCodeAt(i), g === 9 || 32 <= g && g <= 1114111 || U(A, "expected valid JSON character");
1766
1768
  else
1767
- mo.test(g) && U(A, "the stream contains non-printable characters");
1768
- A.result += g;
1769
+ mo.test(n) && U(A, "the stream contains non-printable characters");
1770
+ A.result += n;
1769
1771
  }
1770
1772
  }
1771
1773
  function je(A, t, e, a) {
1772
- var i, o, n, g;
1773
- for (nA.isObject(e) || U(A, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(e), n = 0, g = i.length; n < g; n += 1)
1774
- o = i[n], bA.call(t, o) || (t[o] = e[o], a[o] = !0);
1774
+ var i, o, g, n;
1775
+ for (gA.isObject(e) || U(A, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(e), g = 0, n = i.length; g < n; g += 1)
1776
+ o = i[g], bA.call(t, o) || (t[o] = e[o], a[o] = !0);
1775
1777
  }
1776
- function FA(A, t, e, a, i, o, n, g, l) {
1778
+ function FA(A, t, e, a, i, o, g, n, l) {
1777
1779
  var C, u;
1778
1780
  if (Array.isArray(i))
1779
1781
  for (i = Array.prototype.slice.call(i), C = 0, u = i.length; C < u; C += 1)
@@ -1785,7 +1787,7 @@ function FA(A, t, e, a, i, o, n, g, l) {
1785
1787
  else
1786
1788
  je(A, t, o, e);
1787
1789
  else
1788
- !A.json && !bA.call(e, i) && bA.call(t, i) && (A.line = n || A.line, A.lineStart = g || A.lineStart, A.position = l || A.position, U(A, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
1790
+ !A.json && !bA.call(e, i) && bA.call(t, i) && (A.line = g || A.line, A.lineStart = n || A.lineStart, A.position = l || A.position, U(A, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
1789
1791
  configurable: !0,
1790
1792
  enumerable: !0,
1791
1793
  writable: !0,
@@ -1818,14 +1820,14 @@ function Ae(A) {
1818
1820
  return e = A.input.charCodeAt(t), !!((e === 45 || e === 46) && e === A.input.charCodeAt(t + 1) && e === A.input.charCodeAt(t + 2) && (t += 3, e = A.input.charCodeAt(t), e === 0 || sA(e)));
1819
1821
  }
1820
1822
  function fe(A, t) {
1821
- t === 1 ? A.result += " " : t > 1 && (A.result += nA.repeat(`
1823
+ t === 1 ? A.result += " " : t > 1 && (A.result += gA.repeat(`
1822
1824
  `, t - 1));
1823
1825
  }
1824
1826
  function Jo(A, t, e) {
1825
- var a, i, o, n, g, l, C, u, I = A.kind, f = A.result, B;
1827
+ var a, i, o, g, n, l, C, u, I = A.kind, f = A.result, B;
1826
1828
  if (B = A.input.charCodeAt(A.position), sA(B) || VA(B) || B === 35 || B === 38 || B === 42 || B === 33 || B === 124 || B === 62 || B === 39 || B === 34 || B === 37 || B === 64 || B === 96 || (B === 63 || B === 45) && (i = A.input.charCodeAt(A.position + 1), sA(i) || e && VA(i)))
1827
1829
  return !1;
1828
- for (A.kind = "scalar", A.result = "", o = n = A.position, g = !1; B !== 0; ) {
1830
+ for (A.kind = "scalar", A.result = "", o = g = A.position, n = !1; B !== 0; ) {
1829
1831
  if (B === 58) {
1830
1832
  if (i = A.input.charCodeAt(A.position + 1), sA(i) || e && VA(i))
1831
1833
  break;
@@ -1837,16 +1839,16 @@ function Jo(A, t, e) {
1837
1839
  break;
1838
1840
  if (mA(B))
1839
1841
  if (l = A.line, C = A.lineStart, u = A.lineIndent, aA(A, !1, -1), A.lineIndent >= t) {
1840
- g = !0, B = A.input.charCodeAt(A.position);
1842
+ n = !0, B = A.input.charCodeAt(A.position);
1841
1843
  continue;
1842
1844
  } else {
1843
- A.position = n, A.line = l, A.lineStart = C, A.lineIndent = u;
1845
+ A.position = g, A.line = l, A.lineStart = C, A.lineIndent = u;
1844
1846
  break;
1845
1847
  }
1846
1848
  }
1847
- g && (hA(A, o, n, !1), fe(A, A.line - l), o = n = A.position, g = !1), JA(B) || (n = A.position + 1), B = A.input.charCodeAt(++A.position);
1849
+ n && (hA(A, o, g, !1), fe(A, A.line - l), o = g = A.position, n = !1), JA(B) || (g = A.position + 1), B = A.input.charCodeAt(++A.position);
1848
1850
  }
1849
- return hA(A, o, n, !1), A.result ? !0 : (A.kind = I, A.result = f, !1);
1851
+ return hA(A, o, g, !1), A.result ? !0 : (A.kind = I, A.result = f, !1);
1850
1852
  }
1851
1853
  function Uo(A, t) {
1852
1854
  var e, a, i;
@@ -1863,46 +1865,46 @@ function Uo(A, t) {
1863
1865
  U(A, "unexpected end of the stream within a single quoted scalar");
1864
1866
  }
1865
1867
  function To(A, t) {
1866
- var e, a, i, o, n, g;
1867
- if (g = A.input.charCodeAt(A.position), g !== 34)
1868
+ var e, a, i, o, g, n;
1869
+ if (n = A.input.charCodeAt(A.position), n !== 34)
1868
1870
  return !1;
1869
- for (A.kind = "scalar", A.result = "", A.position++, e = a = A.position; (g = A.input.charCodeAt(A.position)) !== 0; ) {
1870
- if (g === 34)
1871
+ for (A.kind = "scalar", A.result = "", A.position++, e = a = A.position; (n = A.input.charCodeAt(A.position)) !== 0; ) {
1872
+ if (n === 34)
1871
1873
  return hA(A, e, A.position, !0), A.position++, !0;
1872
- if (g === 92) {
1873
- if (hA(A, e, A.position, !0), g = A.input.charCodeAt(++A.position), mA(g))
1874
+ if (n === 92) {
1875
+ if (hA(A, e, A.position, !0), n = A.input.charCodeAt(++A.position), mA(n))
1874
1876
  aA(A, !1, t);
1875
- else if (g < 256 && xt[g])
1876
- A.result += Mt[g], A.position++;
1877
- else if ((n = bo(g)) > 0) {
1878
- for (i = n, o = 0; i > 0; i--)
1879
- g = A.input.charCodeAt(++A.position), (n = yo(g)) >= 0 ? o = (o << 4) + n : U(A, "expected hexadecimal character");
1877
+ else if (n < 256 && xt[n])
1878
+ A.result += Mt[n], A.position++;
1879
+ else if ((g = bo(n)) > 0) {
1880
+ for (i = g, o = 0; i > 0; i--)
1881
+ n = A.input.charCodeAt(++A.position), (g = yo(n)) >= 0 ? o = (o << 4) + g : U(A, "expected hexadecimal character");
1880
1882
  A.result += wo(o), A.position++;
1881
1883
  } else
1882
1884
  U(A, "unknown escape sequence");
1883
1885
  e = a = A.position;
1884
1886
  } else
1885
- mA(g) ? (hA(A, e, a, !0), fe(A, aA(A, !1, t)), e = a = A.position) : A.position === A.lineStart && Ae(A) ? U(A, "unexpected end of the document within a double quoted scalar") : (A.position++, a = A.position);
1887
+ mA(n) ? (hA(A, e, a, !0), fe(A, aA(A, !1, t)), e = a = A.position) : A.position === A.lineStart && Ae(A) ? U(A, "unexpected end of the document within a double quoted scalar") : (A.position++, a = A.position);
1886
1888
  }
1887
1889
  U(A, "unexpected end of the stream within a double quoted scalar");
1888
1890
  }
1889
1891
  function Vo(A, t) {
1890
- var e = !0, a, i, o, n = A.tag, g, l = A.anchor, C, u, I, f, B, Q = /* @__PURE__ */ Object.create(null), h, J, m, y;
1892
+ var e = !0, a, i, o, g = A.tag, n, l = A.anchor, C, u, I, f, B, Q = /* @__PURE__ */ Object.create(null), h, J, m, y;
1891
1893
  if (y = A.input.charCodeAt(A.position), y === 91)
1892
- u = 93, B = !1, g = [];
1894
+ u = 93, B = !1, n = [];
1893
1895
  else if (y === 123)
1894
- u = 125, B = !0, g = {};
1896
+ u = 125, B = !0, n = {};
1895
1897
  else
1896
1898
  return !1;
1897
- for (A.anchor !== null && (A.anchorMap[A.anchor] = g), y = A.input.charCodeAt(++A.position); y !== 0; ) {
1899
+ for (A.anchor !== null && (A.anchorMap[A.anchor] = n), y = A.input.charCodeAt(++A.position); y !== 0; ) {
1898
1900
  if (aA(A, !0, t), y = A.input.charCodeAt(A.position), y === u)
1899
- return A.position++, A.tag = n, A.anchor = l, A.kind = B ? "mapping" : "sequence", A.result = g, !0;
1900
- e ? y === 44 && U(A, "expected the node content, but found ','") : U(A, "missed comma between flow collection entries"), J = h = m = null, I = f = !1, y === 63 && (C = A.input.charCodeAt(A.position + 1), sA(C) && (I = f = !0, A.position++, aA(A, !0, t))), a = A.line, i = A.lineStart, o = A.position, NA(A, t, zA, !1, !0), J = A.tag, h = A.result, aA(A, !0, t), y = A.input.charCodeAt(A.position), (f || A.line === a) && y === 58 && (I = !0, y = A.input.charCodeAt(++A.position), aA(A, !0, t), NA(A, t, zA, !1, !0), m = A.result), B ? FA(A, g, Q, J, h, m, a, i, o) : I ? g.push(FA(A, null, Q, J, h, m, a, i, o)) : g.push(h), aA(A, !0, t), y = A.input.charCodeAt(A.position), y === 44 ? (e = !0, y = A.input.charCodeAt(++A.position)) : e = !1;
1901
+ return A.position++, A.tag = g, A.anchor = l, A.kind = B ? "mapping" : "sequence", A.result = n, !0;
1902
+ e ? y === 44 && U(A, "expected the node content, but found ','") : U(A, "missed comma between flow collection entries"), J = h = m = null, I = f = !1, y === 63 && (C = A.input.charCodeAt(A.position + 1), sA(C) && (I = f = !0, A.position++, aA(A, !0, t))), a = A.line, i = A.lineStart, o = A.position, NA(A, t, zA, !1, !0), J = A.tag, h = A.result, aA(A, !0, t), y = A.input.charCodeAt(A.position), (f || A.line === a) && y === 58 && (I = !0, y = A.input.charCodeAt(++A.position), aA(A, !0, t), NA(A, t, zA, !1, !0), m = A.result), B ? FA(A, n, Q, J, h, m, a, i, o) : I ? n.push(FA(A, null, Q, J, h, m, a, i, o)) : n.push(h), aA(A, !0, t), y = A.input.charCodeAt(A.position), y === 44 ? (e = !0, y = A.input.charCodeAt(++A.position)) : e = !1;
1901
1903
  }
1902
1904
  U(A, "unexpected end of the stream within a flow collection");
1903
1905
  }
1904
1906
  function Fo(A, t) {
1905
- var e, a, i = ie, o = !1, n = !1, g = t, l = 0, C = !1, u, I;
1907
+ var e, a, i = ie, o = !1, g = !1, n = t, l = 0, C = !1, u, I;
1906
1908
  if (I = A.input.charCodeAt(A.position), I === 124)
1907
1909
  a = !1;
1908
1910
  else if (I === 62)
@@ -1913,7 +1915,7 @@ function Fo(A, t) {
1913
1915
  if (I = A.input.charCodeAt(++A.position), I === 43 || I === 45)
1914
1916
  ie === i ? i = I === 43 ? xe : fo : U(A, "repeat of a chomping mode identifier");
1915
1917
  else if ((u = ko(I)) >= 0)
1916
- u === 0 ? U(A, "bad explicit indentation width of a block scalar; it cannot be less than one") : n ? U(A, "repeat of an indentation width identifier") : (g = t + u - 1, n = !0);
1918
+ u === 0 ? U(A, "bad explicit indentation width of a block scalar; it cannot be less than one") : g ? U(A, "repeat of an indentation width identifier") : (n = t + u - 1, g = !0);
1917
1919
  else
1918
1920
  break;
1919
1921
  if (JA(I)) {
@@ -1926,34 +1928,34 @@ function Fo(A, t) {
1926
1928
  while (!mA(I) && I !== 0);
1927
1929
  }
1928
1930
  for (; I !== 0; ) {
1929
- for (pe(A), A.lineIndent = 0, I = A.input.charCodeAt(A.position); (!n || A.lineIndent < g) && I === 32; )
1931
+ for (pe(A), A.lineIndent = 0, I = A.input.charCodeAt(A.position); (!g || A.lineIndent < n) && I === 32; )
1930
1932
  A.lineIndent++, I = A.input.charCodeAt(++A.position);
1931
- if (!n && A.lineIndent > g && (g = A.lineIndent), mA(I)) {
1933
+ if (!g && A.lineIndent > n && (n = A.lineIndent), mA(I)) {
1932
1934
  l++;
1933
1935
  continue;
1934
1936
  }
1935
- if (A.lineIndent < g) {
1936
- i === xe ? A.result += nA.repeat(`
1937
+ if (A.lineIndent < n) {
1938
+ i === xe ? A.result += gA.repeat(`
1937
1939
  `, o ? 1 + l : l) : i === ie && o && (A.result += `
1938
1940
  `);
1939
1941
  break;
1940
1942
  }
1941
- for (a ? JA(I) ? (C = !0, A.result += nA.repeat(`
1942
- `, o ? 1 + l : l)) : C ? (C = !1, A.result += nA.repeat(`
1943
- `, l + 1)) : l === 0 ? o && (A.result += " ") : A.result += nA.repeat(`
1944
- `, l) : A.result += nA.repeat(`
1945
- `, o ? 1 + l : l), o = !0, n = !0, l = 0, e = A.position; !mA(I) && I !== 0; )
1943
+ for (a ? JA(I) ? (C = !0, A.result += gA.repeat(`
1944
+ `, o ? 1 + l : l)) : C ? (C = !1, A.result += gA.repeat(`
1945
+ `, l + 1)) : l === 0 ? o && (A.result += " ") : A.result += gA.repeat(`
1946
+ `, l) : A.result += gA.repeat(`
1947
+ `, o ? 1 + l : l), o = !0, g = !0, l = 0, e = A.position; !mA(I) && I !== 0; )
1946
1948
  I = A.input.charCodeAt(++A.position);
1947
1949
  hA(A, e, A.position, !1);
1948
1950
  }
1949
1951
  return !0;
1950
1952
  }
1951
1953
  function Ye(A, t) {
1952
- var e, a = A.tag, i = A.anchor, o = [], n, g = !1, l;
1954
+ var e, a = A.tag, i = A.anchor, o = [], g, n = !1, l;
1953
1955
  if (A.firstTabInLine !== -1)
1954
1956
  return !1;
1955
- for (A.anchor !== null && (A.anchorMap[A.anchor] = o), l = A.input.charCodeAt(A.position); l !== 0 && (A.firstTabInLine !== -1 && (A.position = A.firstTabInLine, U(A, "tab characters must not be used in indentation")), !(l !== 45 || (n = A.input.charCodeAt(A.position + 1), !sA(n)))); ) {
1956
- if (g = !0, A.position++, aA(A, !0, -1) && A.lineIndent <= t) {
1957
+ for (A.anchor !== null && (A.anchorMap[A.anchor] = o), l = A.input.charCodeAt(A.position); l !== 0 && (A.firstTabInLine !== -1 && (A.position = A.firstTabInLine, U(A, "tab characters must not be used in indentation")), !(l !== 45 || (g = A.input.charCodeAt(A.position + 1), !sA(g)))); ) {
1958
+ if (n = !0, A.position++, aA(A, !0, -1) && A.lineIndent <= t) {
1957
1959
  o.push(null), l = A.input.charCodeAt(A.position);
1958
1960
  continue;
1959
1961
  }
@@ -1962,23 +1964,23 @@ function Ye(A, t) {
1962
1964
  else if (A.lineIndent < t)
1963
1965
  break;
1964
1966
  }
1965
- return g ? (A.tag = a, A.anchor = i, A.kind = "sequence", A.result = o, !0) : !1;
1967
+ return n ? (A.tag = a, A.anchor = i, A.kind = "sequence", A.result = o, !0) : !1;
1966
1968
  }
1967
1969
  function Ro(A, t, e) {
1968
- var a, i, o, n, g, l, C = A.tag, u = A.anchor, I = {}, f = /* @__PURE__ */ Object.create(null), B = null, Q = null, h = null, J = !1, m = !1, y;
1970
+ var a, i, o, g, n, l, C = A.tag, u = A.anchor, I = {}, f = /* @__PURE__ */ Object.create(null), B = null, Q = null, h = null, J = !1, m = !1, y;
1969
1971
  if (A.firstTabInLine !== -1)
1970
1972
  return !1;
1971
1973
  for (A.anchor !== null && (A.anchorMap[A.anchor] = I), y = A.input.charCodeAt(A.position); y !== 0; ) {
1972
1974
  if (!J && A.firstTabInLine !== -1 && (A.position = A.firstTabInLine, U(A, "tab characters must not be used in indentation")), a = A.input.charCodeAt(A.position + 1), o = A.line, (y === 63 || y === 58) && sA(a))
1973
- y === 63 ? (J && (FA(A, I, f, B, Q, null, n, g, l), B = Q = h = null), m = !0, J = !0, i = !0) : J ? (J = !1, i = !0) : U(A, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), A.position += 1, y = a;
1975
+ y === 63 ? (J && (FA(A, I, f, B, Q, null, g, n, l), B = Q = h = null), m = !0, J = !0, i = !0) : J ? (J = !1, i = !0) : U(A, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), A.position += 1, y = a;
1974
1976
  else {
1975
- if (n = A.line, g = A.lineStart, l = A.position, !NA(A, e, Vt, !1, !0))
1977
+ if (g = A.line, n = A.lineStart, l = A.position, !NA(A, e, Vt, !1, !0))
1976
1978
  break;
1977
1979
  if (A.line === o) {
1978
1980
  for (y = A.input.charCodeAt(A.position); JA(y); )
1979
1981
  y = A.input.charCodeAt(++A.position);
1980
1982
  if (y === 58)
1981
- y = A.input.charCodeAt(++A.position), sA(y) || U(A, "a whitespace character is expected after the key-value separator within a block mapping"), J && (FA(A, I, f, B, Q, null, n, g, l), B = Q = h = null), m = !0, J = !1, i = !1, B = A.tag, Q = A.result;
1983
+ y = A.input.charCodeAt(++A.position), sA(y) || U(A, "a whitespace character is expected after the key-value separator within a block mapping"), J && (FA(A, I, f, B, Q, null, g, n, l), B = Q = h = null), m = !0, J = !1, i = !1, B = A.tag, Q = A.result;
1982
1984
  else if (m)
1983
1985
  U(A, "can not read an implicit mapping pair; a colon is missed");
1984
1986
  else
@@ -1988,25 +1990,25 @@ function Ro(A, t, e) {
1988
1990
  else
1989
1991
  return A.tag = C, A.anchor = u, !0;
1990
1992
  }
1991
- if ((A.line === o || A.lineIndent > t) && (J && (n = A.line, g = A.lineStart, l = A.position), NA(A, t, HA, !0, i) && (J ? Q = A.result : h = A.result), J || (FA(A, I, f, B, Q, h, n, g, l), B = Q = h = null), aA(A, !0, -1), y = A.input.charCodeAt(A.position)), (A.line === o || A.lineIndent > t) && y !== 0)
1993
+ if ((A.line === o || A.lineIndent > t) && (J && (g = A.line, n = A.lineStart, l = A.position), NA(A, t, HA, !0, i) && (J ? Q = A.result : h = A.result), J || (FA(A, I, f, B, Q, h, g, n, l), B = Q = h = null), aA(A, !0, -1), y = A.input.charCodeAt(A.position)), (A.line === o || A.lineIndent > t) && y !== 0)
1992
1994
  U(A, "bad indentation of a mapping entry");
1993
1995
  else if (A.lineIndent < t)
1994
1996
  break;
1995
1997
  }
1996
- return J && FA(A, I, f, B, Q, null, n, g, l), m && (A.tag = C, A.anchor = u, A.kind = "mapping", A.result = I), m;
1998
+ return J && FA(A, I, f, B, Q, null, g, n, l), m && (A.tag = C, A.anchor = u, A.kind = "mapping", A.result = I), m;
1997
1999
  }
1998
2000
  function No(A) {
1999
- var t, e = !1, a = !1, i, o, n;
2000
- if (n = A.input.charCodeAt(A.position), n !== 33)
2001
+ var t, e = !1, a = !1, i, o, g;
2002
+ if (g = A.input.charCodeAt(A.position), g !== 33)
2001
2003
  return !1;
2002
- if (A.tag !== null && U(A, "duplication of a tag property"), n = A.input.charCodeAt(++A.position), n === 60 ? (e = !0, n = A.input.charCodeAt(++A.position)) : n === 33 ? (a = !0, i = "!!", n = A.input.charCodeAt(++A.position)) : i = "!", t = A.position, e) {
2004
+ if (A.tag !== null && U(A, "duplication of a tag property"), g = A.input.charCodeAt(++A.position), g === 60 ? (e = !0, g = A.input.charCodeAt(++A.position)) : g === 33 ? (a = !0, i = "!!", g = A.input.charCodeAt(++A.position)) : i = "!", t = A.position, e) {
2003
2005
  do
2004
- n = A.input.charCodeAt(++A.position);
2005
- while (n !== 0 && n !== 62);
2006
- A.position < A.length ? (o = A.input.slice(t, A.position), n = A.input.charCodeAt(++A.position)) : U(A, "unexpected end of the stream within a verbatim tag");
2006
+ g = A.input.charCodeAt(++A.position);
2007
+ while (g !== 0 && g !== 62);
2008
+ A.position < A.length ? (o = A.input.slice(t, A.position), g = A.input.charCodeAt(++A.position)) : U(A, "unexpected end of the stream within a verbatim tag");
2007
2009
  } else {
2008
- for (; n !== 0 && !sA(n); )
2009
- n === 33 && (a ? U(A, "tag suffix cannot contain exclamation marks") : (i = A.input.slice(t - 1, A.position + 1), Rt.test(i) || U(A, "named tag handle cannot contain such characters"), a = !0, t = A.position + 1)), n = A.input.charCodeAt(++A.position);
2010
+ for (; g !== 0 && !sA(g); )
2011
+ g === 33 && (a ? U(A, "tag suffix cannot contain exclamation marks") : (i = A.input.slice(t - 1, A.position + 1), Rt.test(i) || U(A, "named tag handle cannot contain such characters"), a = !0, t = A.position + 1)), g = A.input.charCodeAt(++A.position);
2010
2012
  o = A.input.slice(t, A.position), ho.test(o) && U(A, "tag suffix cannot contain flow indicator characters");
2011
2013
  }
2012
2014
  o && !Nt.test(o) && U(A, "tag name cannot contain such characters: " + o);
@@ -2034,11 +2036,11 @@ function Mo(A) {
2034
2036
  return A.position === t && U(A, "name of an alias node must contain at least one character"), e = A.input.slice(t, A.position), bA.call(A.anchorMap, e) || U(A, 'unidentified alias "' + e + '"'), A.result = A.anchorMap[e], aA(A, !0, -1), !0;
2035
2037
  }
2036
2038
  function NA(A, t, e, a, i) {
2037
- var o, n, g, l = 1, C = !1, u = !1, I, f, B, Q, h, J;
2038
- if (A.listener !== null && A.listener("open", A), A.tag = null, A.anchor = null, A.kind = null, A.result = null, o = n = g = HA === e || Ft === e, a && aA(A, !0, -1) && (C = !0, A.lineIndent > t ? l = 1 : A.lineIndent === t ? l = 0 : A.lineIndent < t && (l = -1)), l === 1)
2039
+ var o, g, n, l = 1, C = !1, u = !1, I, f, B, Q, h, J;
2040
+ if (A.listener !== null && A.listener("open", A), A.tag = null, A.anchor = null, A.kind = null, A.result = null, o = g = n = HA === e || Ft === e, a && aA(A, !0, -1) && (C = !0, A.lineIndent > t ? l = 1 : A.lineIndent === t ? l = 0 : A.lineIndent < t && (l = -1)), l === 1)
2039
2041
  for (; No(A) || xo(A); )
2040
- aA(A, !0, -1) ? (C = !0, g = o, A.lineIndent > t ? l = 1 : A.lineIndent === t ? l = 0 : A.lineIndent < t && (l = -1)) : g = !1;
2041
- if (g && (g = C || i), (l === 1 || HA === e) && (zA === e || Vt === e ? h = t : h = t + 1, J = A.position - A.lineStart, l === 1 ? g && (Ye(A, J) || Ro(A, J, h)) || Vo(A, h) ? u = !0 : (n && Fo(A, h) || Uo(A, h) || To(A, h) ? u = !0 : Mo(A) ? (u = !0, (A.tag !== null || A.anchor !== null) && U(A, "alias node should not have any properties")) : Jo(A, h, zA === e) && (u = !0, A.tag === null && (A.tag = "?")), A.anchor !== null && (A.anchorMap[A.anchor] = A.result)) : l === 0 && (u = g && Ye(A, J))), A.tag === null)
2042
+ aA(A, !0, -1) ? (C = !0, n = o, A.lineIndent > t ? l = 1 : A.lineIndent === t ? l = 0 : A.lineIndent < t && (l = -1)) : n = !1;
2043
+ if (n && (n = C || i), (l === 1 || HA === e) && (zA === e || Vt === e ? h = t : h = t + 1, J = A.position - A.lineStart, l === 1 ? n && (Ye(A, J) || Ro(A, J, h)) || Vo(A, h) ? u = !0 : (g && Fo(A, h) || Uo(A, h) || To(A, h) ? u = !0 : Mo(A) ? (u = !0, (A.tag !== null || A.anchor !== null) && U(A, "alias node should not have any properties")) : Jo(A, h, zA === e) && (u = !0, A.tag === null && (A.tag = "?")), A.anchor !== null && (A.anchorMap[A.anchor] = A.result)) : l === 0 && (u = n && Ye(A, J))), A.tag === null)
2042
2044
  A.anchor !== null && (A.anchorMap[A.anchor] = A.result);
2043
2045
  else if (A.tag === "?") {
2044
2046
  for (A.result !== null && A.kind !== "scalar" && U(A, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + A.kind + '"'), I = 0, f = A.implicitTypes.length; I < f; I += 1)
@@ -2060,26 +2062,26 @@ function NA(A, t, e, a, i) {
2060
2062
  return A.listener !== null && A.listener("close", A), A.tag !== null || A.anchor !== null || u;
2061
2063
  }
2062
2064
  function Ko(A) {
2063
- var t = A.position, e, a, i, o = !1, n;
2064
- for (A.version = null, A.checkLineBreaks = A.legacy, A.tagMap = /* @__PURE__ */ Object.create(null), A.anchorMap = /* @__PURE__ */ Object.create(null); (n = A.input.charCodeAt(A.position)) !== 0 && (aA(A, !0, -1), n = A.input.charCodeAt(A.position), !(A.lineIndent > 0 || n !== 37)); ) {
2065
- for (o = !0, n = A.input.charCodeAt(++A.position), e = A.position; n !== 0 && !sA(n); )
2066
- n = A.input.charCodeAt(++A.position);
2067
- for (a = A.input.slice(e, A.position), i = [], a.length < 1 && U(A, "directive name must not be less than one character in length"); n !== 0; ) {
2068
- for (; JA(n); )
2069
- n = A.input.charCodeAt(++A.position);
2070
- if (n === 35) {
2065
+ var t = A.position, e, a, i, o = !1, g;
2066
+ for (A.version = null, A.checkLineBreaks = A.legacy, A.tagMap = /* @__PURE__ */ Object.create(null), A.anchorMap = /* @__PURE__ */ Object.create(null); (g = A.input.charCodeAt(A.position)) !== 0 && (aA(A, !0, -1), g = A.input.charCodeAt(A.position), !(A.lineIndent > 0 || g !== 37)); ) {
2067
+ for (o = !0, g = A.input.charCodeAt(++A.position), e = A.position; g !== 0 && !sA(g); )
2068
+ g = A.input.charCodeAt(++A.position);
2069
+ for (a = A.input.slice(e, A.position), i = [], a.length < 1 && U(A, "directive name must not be less than one character in length"); g !== 0; ) {
2070
+ for (; JA(g); )
2071
+ g = A.input.charCodeAt(++A.position);
2072
+ if (g === 35) {
2071
2073
  do
2072
- n = A.input.charCodeAt(++A.position);
2073
- while (n !== 0 && !mA(n));
2074
+ g = A.input.charCodeAt(++A.position);
2075
+ while (g !== 0 && !mA(g));
2074
2076
  break;
2075
2077
  }
2076
- if (mA(n))
2078
+ if (mA(g))
2077
2079
  break;
2078
- for (e = A.position; n !== 0 && !sA(n); )
2079
- n = A.input.charCodeAt(++A.position);
2080
+ for (e = A.position; g !== 0 && !sA(g); )
2081
+ g = A.input.charCodeAt(++A.position);
2080
2082
  i.push(A.input.slice(e, A.position));
2081
2083
  }
2082
- n !== 0 && pe(A), bA.call(Le, a) ? Le[a](A, a, i) : GA(A, 'unknown document directive "' + a + '"');
2084
+ g !== 0 && pe(A), bA.call(Le, a) ? Le[a](A, a, i) : GA(A, 'unknown document directive "' + a + '"');
2083
2085
  }
2084
2086
  if (aA(A, !0, -1), A.lineIndent === 0 && A.input.charCodeAt(A.position) === 45 && A.input.charCodeAt(A.position + 1) === 45 && A.input.charCodeAt(A.position + 2) === 45 ? (A.position += 3, aA(A, !0, -1)) : o && U(A, "directives end mark is expected"), NA(A, A.lineIndent - 1, HA, !1, !0), aA(A, !0, -1), A.checkLineBreaks && vo.test(A.input.slice(t, A.position)) && GA(A, "non-ASCII line breaks are interpreted as content"), A.documents.push(A.result), A.position === A.lineStart && Ae(A)) {
2085
2087
  A.input.charCodeAt(A.position) === 46 && (A.position += 3, aA(A, !0, -1));
@@ -2119,7 +2121,7 @@ function jo(A, t) {
2119
2121
  var Yo = Lo, Do = jo, jt = {
2120
2122
  loadAll: Yo,
2121
2123
  load: Do
2122
- }, Yt = Object.prototype.toString, Dt = Object.prototype.hasOwnProperty, me = 65279, Wo = 9, jA = 10, Oo = 13, qo = 32, Po = 33, zo = 34, ge = 35, Ho = 37, Go = 38, Zo = 39, Xo = 42, Wt = 44, _o = 45, ZA = 58, $o = 61, An = 62, en = 63, tn = 64, Ot = 91, qt = 93, an = 96, Pt = 123, on = 124, zt = 125, IA = {};
2124
+ }, Yt = Object.prototype.toString, Dt = Object.prototype.hasOwnProperty, me = 65279, Wo = 9, jA = 10, Oo = 13, qo = 32, Po = 33, zo = 34, ne = 35, Ho = 37, Go = 38, Zo = 39, Xo = 42, Wt = 44, _o = 45, ZA = 58, $o = 61, Ag = 62, eg = 63, tg = 64, Ot = 91, qt = 93, ag = 96, Pt = 123, ig = 124, zt = 125, IA = {};
2123
2125
  IA[0] = "\\0";
2124
2126
  IA[7] = "\\a";
2125
2127
  IA[8] = "\\b";
@@ -2135,7 +2137,7 @@ IA[133] = "\\N";
2135
2137
  IA[160] = "\\_";
2136
2138
  IA[8232] = "\\L";
2137
2139
  IA[8233] = "\\P";
2138
- var nn = [
2140
+ var og = [
2139
2141
  "y",
2140
2142
  "Y",
2141
2143
  "yes",
@@ -2152,16 +2154,16 @@ var nn = [
2152
2154
  "off",
2153
2155
  "Off",
2154
2156
  "OFF"
2155
- ], gn = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2156
- function ln(A, t) {
2157
- var e, a, i, o, n, g, l;
2157
+ ], gg = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2158
+ function ng(A, t) {
2159
+ var e, a, i, o, g, n, l;
2158
2160
  if (t === null)
2159
2161
  return {};
2160
2162
  for (e = {}, a = Object.keys(t), i = 0, o = a.length; i < o; i += 1)
2161
- n = a[i], g = String(t[n]), n.slice(0, 2) === "!!" && (n = "tag:yaml.org,2002:" + n.slice(2)), l = A.compiledTypeMap.fallback[n], l && Dt.call(l.styleAliases, g) && (g = l.styleAliases[g]), e[n] = g;
2163
+ g = a[i], n = String(t[g]), g.slice(0, 2) === "!!" && (g = "tag:yaml.org,2002:" + g.slice(2)), l = A.compiledTypeMap.fallback[g], l && Dt.call(l.styleAliases, n) && (n = l.styleAliases[n]), e[g] = n;
2162
2164
  return e;
2163
2165
  }
2164
- function rn(A) {
2166
+ function lg(A) {
2165
2167
  var t, e, a;
2166
2168
  if (t = A.toString(16).toUpperCase(), A <= 255)
2167
2169
  e = "x", a = 2;
@@ -2171,24 +2173,24 @@ function rn(A) {
2171
2173
  e = "U", a = 8;
2172
2174
  else
2173
2175
  throw new QA("code point within a string may not be greater than 0xFFFFFFFF");
2174
- return "\\" + e + nA.repeat("0", a - t.length) + t;
2176
+ return "\\" + e + gA.repeat("0", a - t.length) + t;
2175
2177
  }
2176
- var Cn = 1, YA = 2;
2177
- function In(A) {
2178
- this.schema = A.schema || de, this.indent = Math.max(1, A.indent || 2), this.noArrayIndent = A.noArrayIndent || !1, this.skipInvalid = A.skipInvalid || !1, this.flowLevel = nA.isNothing(A.flowLevel) ? -1 : A.flowLevel, this.styleMap = ln(this.schema, A.styles || null), this.sortKeys = A.sortKeys || !1, this.lineWidth = A.lineWidth || 80, this.noRefs = A.noRefs || !1, this.noCompatMode = A.noCompatMode || !1, this.condenseFlow = A.condenseFlow || !1, this.quotingType = A.quotingType === '"' ? YA : Cn, this.forceQuotes = A.forceQuotes || !1, this.replacer = typeof A.replacer == "function" ? A.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2178
+ var rg = 1, YA = 2;
2179
+ function Cg(A) {
2180
+ this.schema = A.schema || de, this.indent = Math.max(1, A.indent || 2), this.noArrayIndent = A.noArrayIndent || !1, this.skipInvalid = A.skipInvalid || !1, this.flowLevel = gA.isNothing(A.flowLevel) ? -1 : A.flowLevel, this.styleMap = ng(this.schema, A.styles || null), this.sortKeys = A.sortKeys || !1, this.lineWidth = A.lineWidth || 80, this.noRefs = A.noRefs || !1, this.noCompatMode = A.noCompatMode || !1, this.condenseFlow = A.condenseFlow || !1, this.quotingType = A.quotingType === '"' ? YA : rg, this.forceQuotes = A.forceQuotes || !1, this.replacer = typeof A.replacer == "function" ? A.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2179
2181
  }
2180
2182
  function De(A, t) {
2181
- for (var e = nA.repeat(" ", t), a = 0, i = -1, o = "", n, g = A.length; a < g; )
2183
+ for (var e = gA.repeat(" ", t), a = 0, i = -1, o = "", g, n = A.length; a < n; )
2182
2184
  i = A.indexOf(`
2183
- `, a), i === -1 ? (n = A.slice(a), a = g) : (n = A.slice(a, i + 1), a = i + 1), n.length && n !== `
2184
- ` && (o += e), o += n;
2185
+ `, a), i === -1 ? (g = A.slice(a), a = n) : (g = A.slice(a, i + 1), a = i + 1), g.length && g !== `
2186
+ ` && (o += e), o += g;
2185
2187
  return o;
2186
2188
  }
2187
2189
  function le(A, t) {
2188
2190
  return `
2189
- ` + nA.repeat(" ", A.indent * t);
2191
+ ` + gA.repeat(" ", A.indent * t);
2190
2192
  }
2191
- function Qn(A, t) {
2193
+ function Ig(A, t) {
2192
2194
  var e, a, i;
2193
2195
  for (e = 0, a = A.implicitTypes.length; e < a; e += 1)
2194
2196
  if (i = A.implicitTypes[e], i.resolve(t))
@@ -2211,13 +2213,13 @@ function Oe(A, t, e) {
2211
2213
  (e ? (
2212
2214
  // c = flow-in
2213
2215
  a
2214
- ) : a && A !== Wt && A !== Ot && A !== qt && A !== Pt && A !== zt) && A !== ge && !(t === ZA && !i) || We(t) && !XA(t) && A === ge || t === ZA && i
2216
+ ) : a && A !== Wt && A !== Ot && A !== qt && A !== Pt && A !== zt) && A !== ne && !(t === ZA && !i) || We(t) && !XA(t) && A === ne || t === ZA && i
2215
2217
  );
2216
2218
  }
2217
- function En(A) {
2218
- return DA(A) && A !== me && !XA(A) && A !== _o && A !== en && A !== ZA && A !== Wt && A !== Ot && A !== qt && A !== Pt && A !== zt && A !== ge && A !== Go && A !== Xo && A !== Po && A !== on && A !== $o && A !== An && A !== Zo && A !== zo && A !== Ho && A !== tn && A !== an;
2219
+ function Qg(A) {
2220
+ return DA(A) && A !== me && !XA(A) && A !== _o && A !== eg && A !== ZA && A !== Wt && A !== Ot && A !== qt && A !== Pt && A !== zt && A !== ne && A !== Go && A !== Xo && A !== Po && A !== ig && A !== $o && A !== Ag && A !== Zo && A !== zo && A !== Ho && A !== tg && A !== ag;
2219
2221
  }
2220
- function sn(A) {
2222
+ function Eg(A) {
2221
2223
  return !XA(A) && A !== ZA;
2222
2224
  }
2223
2225
  function xA(A, t) {
@@ -2229,13 +2231,13 @@ function Ht(A) {
2229
2231
  return t.test(A);
2230
2232
  }
2231
2233
  var Gt = 1, re = 2, Zt = 3, Xt = 4, TA = 5;
2232
- function Bn(A, t, e, a, i, o, n, g) {
2233
- var l, C = 0, u = null, I = !1, f = !1, B = a !== -1, Q = -1, h = En(xA(A, 0)) && sn(xA(A, A.length - 1));
2234
- if (t || n)
2234
+ function sg(A, t, e, a, i, o, g, n) {
2235
+ var l, C = 0, u = null, I = !1, f = !1, B = a !== -1, Q = -1, h = Qg(xA(A, 0)) && Eg(xA(A, A.length - 1));
2236
+ if (t || g)
2235
2237
  for (l = 0; l < A.length; C >= 65536 ? l += 2 : l++) {
2236
2238
  if (C = xA(A, l), !DA(C))
2237
2239
  return TA;
2238
- h = h && Oe(C, u, g), u = C;
2240
+ h = h && Oe(C, u, n), u = C;
2239
2241
  }
2240
2242
  else {
2241
2243
  for (l = 0; l < A.length; C >= 65536 ? l += 2 : l++) {
@@ -2244,27 +2246,27 @@ function Bn(A, t, e, a, i, o, n, g) {
2244
2246
  l - Q - 1 > a && A[Q + 1] !== " ", Q = l);
2245
2247
  else if (!DA(C))
2246
2248
  return TA;
2247
- h = h && Oe(C, u, g), u = C;
2249
+ h = h && Oe(C, u, n), u = C;
2248
2250
  }
2249
2251
  f = f || B && l - Q - 1 > a && A[Q + 1] !== " ";
2250
2252
  }
2251
- return !I && !f ? h && !n && !i(A) ? Gt : o === YA ? TA : re : e > 9 && Ht(A) ? TA : n ? o === YA ? TA : re : f ? Xt : Zt;
2253
+ return !I && !f ? h && !g && !i(A) ? Gt : o === YA ? TA : re : e > 9 && Ht(A) ? TA : g ? o === YA ? TA : re : f ? Xt : Zt;
2252
2254
  }
2253
- function un(A, t, e, a, i) {
2255
+ function Bg(A, t, e, a, i) {
2254
2256
  A.dump = function() {
2255
2257
  if (t.length === 0)
2256
2258
  return A.quotingType === YA ? '""' : "''";
2257
- if (!A.noCompatMode && (nn.indexOf(t) !== -1 || gn.test(t)))
2259
+ if (!A.noCompatMode && (og.indexOf(t) !== -1 || gg.test(t)))
2258
2260
  return A.quotingType === YA ? '"' + t + '"' : "'" + t + "'";
2259
- var o = A.indent * Math.max(1, e), n = A.lineWidth === -1 ? -1 : Math.max(Math.min(A.lineWidth, 40), A.lineWidth - o), g = a || A.flowLevel > -1 && e >= A.flowLevel;
2261
+ var o = A.indent * Math.max(1, e), g = A.lineWidth === -1 ? -1 : Math.max(Math.min(A.lineWidth, 40), A.lineWidth - o), n = a || A.flowLevel > -1 && e >= A.flowLevel;
2260
2262
  function l(C) {
2261
- return Qn(A, C);
2263
+ return Ig(A, C);
2262
2264
  }
2263
- switch (Bn(
2265
+ switch (sg(
2264
2266
  t,
2265
- g,
2266
- A.indent,
2267
2267
  n,
2268
+ A.indent,
2269
+ g,
2268
2270
  l,
2269
2271
  A.quotingType,
2270
2272
  A.forceQuotes && !a,
@@ -2277,9 +2279,9 @@ function un(A, t, e, a, i) {
2277
2279
  case Zt:
2278
2280
  return "|" + qe(t, A.indent) + Pe(De(t, o));
2279
2281
  case Xt:
2280
- return ">" + qe(t, A.indent) + Pe(De(cn(t, n), o));
2282
+ return ">" + qe(t, A.indent) + Pe(De(ug(t, g), o));
2281
2283
  case TA:
2282
- return '"' + dn(t) + '"';
2284
+ return '"' + cg(t) + '"';
2283
2285
  default:
2284
2286
  throw new QA("impossible error: invalid scalar style");
2285
2287
  }
@@ -2297,15 +2299,15 @@ function Pe(A) {
2297
2299
  return A[A.length - 1] === `
2298
2300
  ` ? A.slice(0, -1) : A;
2299
2301
  }
2300
- function cn(A, t) {
2302
+ function ug(A, t) {
2301
2303
  for (var e = /(\n+)([^\n]*)/g, a = function() {
2302
2304
  var C = A.indexOf(`
2303
2305
  `);
2304
2306
  return C = C !== -1 ? C : A.length, e.lastIndex = C, ze(A.slice(0, C), t);
2305
2307
  }(), i = A[0] === `
2306
- ` || A[0] === " ", o, n; n = e.exec(A); ) {
2307
- var g = n[1], l = n[2];
2308
- o = l[0] === " ", a += g + (!i && !o && l !== "" ? `
2308
+ ` || A[0] === " ", o, g; g = e.exec(A); ) {
2309
+ var n = g[1], l = g[2];
2310
+ o = l[0] === " ", a += n + (!i && !o && l !== "" ? `
2309
2311
  ` : "") + ze(l, t), i = o;
2310
2312
  }
2311
2313
  return a;
@@ -2313,83 +2315,83 @@ function cn(A, t) {
2313
2315
  function ze(A, t) {
2314
2316
  if (A === "" || A[0] === " ")
2315
2317
  return A;
2316
- for (var e = / [^ ]/g, a, i = 0, o, n = 0, g = 0, l = ""; a = e.exec(A); )
2317
- g = a.index, g - i > t && (o = n > i ? n : g, l += `
2318
- ` + A.slice(i, o), i = o + 1), n = g;
2318
+ for (var e = / [^ ]/g, a, i = 0, o, g = 0, n = 0, l = ""; a = e.exec(A); )
2319
+ n = a.index, n - i > t && (o = g > i ? g : n, l += `
2320
+ ` + A.slice(i, o), i = o + 1), g = n;
2319
2321
  return l += `
2320
- `, A.length - i > t && n > i ? l += A.slice(i, n) + `
2321
- ` + A.slice(n + 1) : l += A.slice(i), l.slice(1);
2322
+ `, A.length - i > t && g > i ? l += A.slice(i, g) + `
2323
+ ` + A.slice(g + 1) : l += A.slice(i), l.slice(1);
2322
2324
  }
2323
- function dn(A) {
2325
+ function cg(A) {
2324
2326
  for (var t = "", e = 0, a, i = 0; i < A.length; e >= 65536 ? i += 2 : i++)
2325
- e = xA(A, i), a = IA[e], !a && DA(e) ? (t += A[i], e >= 65536 && (t += A[i + 1])) : t += a || rn(e);
2327
+ e = xA(A, i), a = IA[e], !a && DA(e) ? (t += A[i], e >= 65536 && (t += A[i + 1])) : t += a || lg(e);
2326
2328
  return t;
2327
2329
  }
2328
- function pn(A, t, e) {
2329
- var a = "", i = A.tag, o, n, g;
2330
- for (o = 0, n = e.length; o < n; o += 1)
2331
- g = e[o], A.replacer && (g = A.replacer.call(e, String(o), g)), (vA(A, t, g, !1, !1) || typeof g > "u" && vA(A, t, null, !1, !1)) && (a !== "" && (a += "," + (A.condenseFlow ? "" : " ")), a += A.dump);
2330
+ function dg(A, t, e) {
2331
+ var a = "", i = A.tag, o, g, n;
2332
+ for (o = 0, g = e.length; o < g; o += 1)
2333
+ n = e[o], A.replacer && (n = A.replacer.call(e, String(o), n)), (vA(A, t, n, !1, !1) || typeof n > "u" && vA(A, t, null, !1, !1)) && (a !== "" && (a += "," + (A.condenseFlow ? "" : " ")), a += A.dump);
2332
2334
  A.tag = i, A.dump = "[" + a + "]";
2333
2335
  }
2334
2336
  function He(A, t, e, a) {
2335
- var i = "", o = A.tag, n, g, l;
2336
- for (n = 0, g = e.length; n < g; n += 1)
2337
- l = e[n], A.replacer && (l = A.replacer.call(e, String(n), l)), (vA(A, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && vA(A, t + 1, null, !0, !0, !1, !0)) && ((!a || i !== "") && (i += le(A, t)), A.dump && jA === A.dump.charCodeAt(0) ? i += "-" : i += "- ", i += A.dump);
2337
+ var i = "", o = A.tag, g, n, l;
2338
+ for (g = 0, n = e.length; g < n; g += 1)
2339
+ l = e[g], A.replacer && (l = A.replacer.call(e, String(g), l)), (vA(A, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && vA(A, t + 1, null, !0, !0, !1, !0)) && ((!a || i !== "") && (i += le(A, t)), A.dump && jA === A.dump.charCodeAt(0) ? i += "-" : i += "- ", i += A.dump);
2338
2340
  A.tag = o, A.dump = i || "[]";
2339
2341
  }
2340
- function fn(A, t, e) {
2341
- var a = "", i = A.tag, o = Object.keys(e), n, g, l, C, u;
2342
- for (n = 0, g = o.length; n < g; n += 1)
2343
- u = "", a !== "" && (u += ", "), A.condenseFlow && (u += '"'), l = o[n], C = e[l], A.replacer && (C = A.replacer.call(e, l, C)), vA(A, t, l, !1, !1) && (A.dump.length > 1024 && (u += "? "), u += A.dump + (A.condenseFlow ? '"' : "") + ":" + (A.condenseFlow ? "" : " "), vA(A, t, C, !1, !1) && (u += A.dump, a += u));
2342
+ function pg(A, t, e) {
2343
+ var a = "", i = A.tag, o = Object.keys(e), g, n, l, C, u;
2344
+ for (g = 0, n = o.length; g < n; g += 1)
2345
+ u = "", a !== "" && (u += ", "), A.condenseFlow && (u += '"'), l = o[g], C = e[l], A.replacer && (C = A.replacer.call(e, l, C)), vA(A, t, l, !1, !1) && (A.dump.length > 1024 && (u += "? "), u += A.dump + (A.condenseFlow ? '"' : "") + ":" + (A.condenseFlow ? "" : " "), vA(A, t, C, !1, !1) && (u += A.dump, a += u));
2344
2346
  A.tag = i, A.dump = "{" + a + "}";
2345
2347
  }
2346
- function mn(A, t, e, a) {
2347
- var i = "", o = A.tag, n = Object.keys(e), g, l, C, u, I, f;
2348
+ function fg(A, t, e, a) {
2349
+ var i = "", o = A.tag, g = Object.keys(e), n, l, C, u, I, f;
2348
2350
  if (A.sortKeys === !0)
2349
- n.sort();
2351
+ g.sort();
2350
2352
  else if (typeof A.sortKeys == "function")
2351
- n.sort(A.sortKeys);
2353
+ g.sort(A.sortKeys);
2352
2354
  else if (A.sortKeys)
2353
2355
  throw new QA("sortKeys must be a boolean or a function");
2354
- for (g = 0, l = n.length; g < l; g += 1)
2355
- f = "", (!a || i !== "") && (f += le(A, t)), C = n[g], u = e[C], A.replacer && (u = A.replacer.call(e, C, u)), vA(A, t + 1, C, !0, !0, !0) && (I = A.tag !== null && A.tag !== "?" || A.dump && A.dump.length > 1024, I && (A.dump && jA === A.dump.charCodeAt(0) ? f += "?" : f += "? "), f += A.dump, I && (f += le(A, t)), vA(A, t + 1, u, !0, I) && (A.dump && jA === A.dump.charCodeAt(0) ? f += ":" : f += ": ", f += A.dump, i += f));
2356
+ for (n = 0, l = g.length; n < l; n += 1)
2357
+ f = "", (!a || i !== "") && (f += le(A, t)), C = g[n], u = e[C], A.replacer && (u = A.replacer.call(e, C, u)), vA(A, t + 1, C, !0, !0, !0) && (I = A.tag !== null && A.tag !== "?" || A.dump && A.dump.length > 1024, I && (A.dump && jA === A.dump.charCodeAt(0) ? f += "?" : f += "? "), f += A.dump, I && (f += le(A, t)), vA(A, t + 1, u, !0, I) && (A.dump && jA === A.dump.charCodeAt(0) ? f += ":" : f += ": ", f += A.dump, i += f));
2356
2358
  A.tag = o, A.dump = i || "{}";
2357
2359
  }
2358
2360
  function Ge(A, t, e) {
2359
- var a, i, o, n, g, l;
2360
- for (i = e ? A.explicitTypes : A.implicitTypes, o = 0, n = i.length; o < n; o += 1)
2361
- if (g = i[o], (g.instanceOf || g.predicate) && (!g.instanceOf || typeof t == "object" && t instanceof g.instanceOf) && (!g.predicate || g.predicate(t))) {
2362
- if (e ? g.multi && g.representName ? A.tag = g.representName(t) : A.tag = g.tag : A.tag = "?", g.represent) {
2363
- if (l = A.styleMap[g.tag] || g.defaultStyle, Yt.call(g.represent) === "[object Function]")
2364
- a = g.represent(t, l);
2365
- else if (Dt.call(g.represent, l))
2366
- a = g.represent[l](t, l);
2361
+ var a, i, o, g, n, l;
2362
+ for (i = e ? A.explicitTypes : A.implicitTypes, o = 0, g = i.length; o < g; o += 1)
2363
+ if (n = i[o], (n.instanceOf || n.predicate) && (!n.instanceOf || typeof t == "object" && t instanceof n.instanceOf) && (!n.predicate || n.predicate(t))) {
2364
+ if (e ? n.multi && n.representName ? A.tag = n.representName(t) : A.tag = n.tag : A.tag = "?", n.represent) {
2365
+ if (l = A.styleMap[n.tag] || n.defaultStyle, Yt.call(n.represent) === "[object Function]")
2366
+ a = n.represent(t, l);
2367
+ else if (Dt.call(n.represent, l))
2368
+ a = n.represent[l](t, l);
2367
2369
  else
2368
- throw new QA("!<" + g.tag + '> tag resolver accepts not "' + l + '" style');
2370
+ throw new QA("!<" + n.tag + '> tag resolver accepts not "' + l + '" style');
2369
2371
  A.dump = a;
2370
2372
  }
2371
2373
  return !0;
2372
2374
  }
2373
2375
  return !1;
2374
2376
  }
2375
- function vA(A, t, e, a, i, o, n) {
2377
+ function vA(A, t, e, a, i, o, g) {
2376
2378
  A.tag = null, A.dump = e, Ge(A, e, !1) || Ge(A, e, !0);
2377
- var g = Yt.call(A.dump), l = a, C;
2379
+ var n = Yt.call(A.dump), l = a, C;
2378
2380
  a && (a = A.flowLevel < 0 || A.flowLevel > t);
2379
- var u = g === "[object Object]" || g === "[object Array]", I, f;
2381
+ var u = n === "[object Object]" || n === "[object Array]", I, f;
2380
2382
  if (u && (I = A.duplicates.indexOf(e), f = I !== -1), (A.tag !== null && A.tag !== "?" || f || A.indent !== 2 && t > 0) && (i = !1), f && A.usedDuplicates[I])
2381
2383
  A.dump = "*ref_" + I;
2382
2384
  else {
2383
- if (u && f && !A.usedDuplicates[I] && (A.usedDuplicates[I] = !0), g === "[object Object]")
2384
- a && Object.keys(A.dump).length !== 0 ? (mn(A, t, A.dump, i), f && (A.dump = "&ref_" + I + A.dump)) : (fn(A, t, A.dump), f && (A.dump = "&ref_" + I + " " + A.dump));
2385
- else if (g === "[object Array]")
2386
- a && A.dump.length !== 0 ? (A.noArrayIndent && !n && t > 0 ? He(A, t - 1, A.dump, i) : He(A, t, A.dump, i), f && (A.dump = "&ref_" + I + A.dump)) : (pn(A, t, A.dump), f && (A.dump = "&ref_" + I + " " + A.dump));
2387
- else if (g === "[object String]")
2388
- A.tag !== "?" && un(A, A.dump, t, o, l);
2385
+ if (u && f && !A.usedDuplicates[I] && (A.usedDuplicates[I] = !0), n === "[object Object]")
2386
+ a && Object.keys(A.dump).length !== 0 ? (fg(A, t, A.dump, i), f && (A.dump = "&ref_" + I + A.dump)) : (pg(A, t, A.dump), f && (A.dump = "&ref_" + I + " " + A.dump));
2387
+ else if (n === "[object Array]")
2388
+ a && A.dump.length !== 0 ? (A.noArrayIndent && !g && t > 0 ? He(A, t - 1, A.dump, i) : He(A, t, A.dump, i), f && (A.dump = "&ref_" + I + A.dump)) : (dg(A, t, A.dump), f && (A.dump = "&ref_" + I + " " + A.dump));
2389
+ else if (n === "[object String]")
2390
+ A.tag !== "?" && Bg(A, A.dump, t, o, l);
2389
2391
  else {
2390
- if (g === "[object Undefined]" || A.skipInvalid)
2392
+ if (n === "[object Undefined]" || A.skipInvalid)
2391
2393
  return !1;
2392
- throw new QA("unacceptable kind of an object to dump " + g);
2394
+ throw new QA("unacceptable kind of an object to dump " + n);
2393
2395
  }
2394
2396
  A.tag !== null && A.tag !== "?" && (C = encodeURI(
2395
2397
  A.tag[0] === "!" ? A.tag.slice(1) : A.tag
@@ -2397,7 +2399,7 @@ function vA(A, t, e, a, i, o, n) {
2397
2399
  }
2398
2400
  return !0;
2399
2401
  }
2400
- function vn(A, t) {
2402
+ function mg(A, t) {
2401
2403
  var e = [], a = [], i, o;
2402
2404
  for (Ce(A, e, a), i = 0, o = a.length; i < o; i += 1)
2403
2405
  t.duplicates.push(e[a[i]]);
@@ -2415,23 +2417,23 @@ function Ce(A, t, e) {
2415
2417
  for (a = Object.keys(A), i = 0, o = a.length; i < o; i += 1)
2416
2418
  Ce(A[a[i]], t, e);
2417
2419
  }
2418
- function hn(A, t) {
2420
+ function vg(A, t) {
2419
2421
  t = t || {};
2420
- var e = new In(t);
2421
- e.noRefs || vn(A, e);
2422
+ var e = new Cg(t);
2423
+ e.noRefs || mg(A, e);
2422
2424
  var a = A;
2423
2425
  return e.replacer && (a = e.replacer.call({ "": a }, "", a)), vA(e, 0, a, !0, !0) ? e.dump + `
2424
2426
  ` : "";
2425
2427
  }
2426
- var yn = hn, bn = {
2427
- dump: yn
2428
+ var hg = vg, yg = {
2429
+ dump: hg
2428
2430
  };
2429
2431
  function ve(A, t) {
2430
2432
  return function() {
2431
2433
  throw new Error("Function yaml." + A + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2432
2434
  };
2433
2435
  }
2434
- var kn = CA, wn = Et, Sn = ct, Jn = vt, Un = ht, Tn = de, Vn = jt.load, Fn = jt.loadAll, Rn = bn.dump, Nn = QA, xn = {
2436
+ var bg = CA, kg = Et, wg = ct, Sg = vt, Jg = ht, Ug = de, Tg = jt.load, Vg = jt.loadAll, Fg = yg.dump, Rg = QA, Ng = {
2435
2437
  binary: St,
2436
2438
  float: mt,
2437
2439
  map: ut,
@@ -2445,38 +2447,38 @@ var kn = CA, wn = Et, Sn = ct, Jn = vt, Un = ht, Tn = de, Vn = jt.load, Fn = jt.
2445
2447
  omap: Jt,
2446
2448
  seq: Bt,
2447
2449
  str: st
2448
- }, Mn = ve("safeLoad", "load"), Kn = ve("safeLoadAll", "loadAll"), Ln = ve("safeDump", "dump"), jn = {
2449
- Type: kn,
2450
- Schema: wn,
2451
- FAILSAFE_SCHEMA: Sn,
2452
- JSON_SCHEMA: Jn,
2453
- CORE_SCHEMA: Un,
2454
- DEFAULT_SCHEMA: Tn,
2455
- load: Vn,
2456
- loadAll: Fn,
2457
- dump: Rn,
2458
- YAMLException: Nn,
2459
- types: xn,
2460
- safeLoad: Mn,
2461
- safeLoadAll: Kn,
2462
- safeDump: Ln
2450
+ }, xg = ve("safeLoad", "load"), Mg = ve("safeLoadAll", "loadAll"), Kg = ve("safeDump", "dump"), Lg = {
2451
+ Type: bg,
2452
+ Schema: kg,
2453
+ FAILSAFE_SCHEMA: wg,
2454
+ JSON_SCHEMA: Sg,
2455
+ CORE_SCHEMA: Jg,
2456
+ DEFAULT_SCHEMA: Ug,
2457
+ load: Tg,
2458
+ loadAll: Vg,
2459
+ dump: Fg,
2460
+ YAMLException: Rg,
2461
+ types: Ng,
2462
+ safeLoad: xg,
2463
+ safeLoadAll: Mg,
2464
+ safeDump: Kg
2463
2465
  };
2464
- const Yn = {
2466
+ const jg = {
2465
2467
  key: 0,
2466
2468
  class: "config-card-display-form"
2467
- }, Dn = ["data-testid"], Wn = {
2469
+ }, Yg = ["data-testid"], Dg = {
2468
2470
  key: 0,
2469
2471
  class: "config-card-prop-section-title"
2470
- }, On = {
2472
+ }, Wg = {
2471
2473
  key: 1,
2472
2474
  class: "config-card-display-json"
2473
- }, qn = {
2475
+ }, Og = {
2474
2476
  key: 0,
2475
2477
  class: "config-card-display-json-endpoint"
2476
- }, Pn = {
2478
+ }, qg = {
2477
2479
  key: 2,
2478
2480
  class: "config-card-display-yaml"
2479
- }, zn = /* @__PURE__ */ iA({
2481
+ }, Pg = /* @__PURE__ */ iA({
2480
2482
  __name: "ConfigCardDisplay",
2481
2483
  props: {
2482
2484
  propertyCollections: {
@@ -2507,9 +2509,9 @@ const Yn = {
2507
2509
  },
2508
2510
  setup(A) {
2509
2511
  $e((l) => ({
2510
- "7b486894": `${g.value}ch`
2512
+ "7b486894": `${n.value}ch`
2511
2513
  }));
2512
- const t = A, e = $A(), { i18n: { t: a } } = rA.useI18n(), i = (l) => !!(l.tooltip || e[`${l.key}-label-tooltip`]), o = M(""), n = M(""), g = T(() => {
2514
+ const t = A, e = $A(), { i18n: { t: a } } = rA.useI18n(), i = (l) => !!(l.tooltip || e[`${l.key}-label-tooltip`]), o = M(""), g = M(""), n = T(() => {
2513
2515
  var l;
2514
2516
  if (!t.fetcherUrl)
2515
2517
  return 0;
@@ -2519,18 +2521,18 @@ const Yn = {
2519
2521
  return kA(() => t.format, (l) => {
2520
2522
  if (l !== "structured") {
2521
2523
  const C = JSON.parse(JSON.stringify(t.record));
2522
- delete C.created_at, delete C.updated_at, l === "json" ? o.value = JSON.stringify(C, null, 2) : l === "yaml" && (n.value = jn.dump(C));
2524
+ delete C.created_at, delete C.updated_at, l === "json" ? o.value = JSON.stringify(C, null, 2) : l === "yaml" && (g.value = Lg.dump(C));
2523
2525
  }
2524
2526
  }, { immediate: !0 }), (l, C) => {
2525
2527
  const u = K("KBadge"), I = K("KCodeBlock");
2526
2528
  return c(), w(dA, null, [
2527
- A.format === "structured" ? (c(), w("div", Yn, [
2529
+ A.format === "structured" ? (c(), w("div", jg, [
2528
2530
  (c(!0), w(dA, null, cA(A.propListTypes, (f) => (c(), w("div", {
2529
2531
  key: `config-card-details-${f}-props`,
2530
2532
  class: yA(`config-card-details-${f}-props`),
2531
2533
  "data-testid": `config-card-details-${f}-props`
2532
2534
  }, [
2533
- f !== "basic" ? (c(), w("div", Wn, L(f === "advanced" ? r(a)("baseConfigCard.sections.advanced") : r(a)("baseConfigCard.sections.plugin")), 1)) : q("", !0),
2535
+ f !== "basic" ? (c(), w("div", Dg, L(f === "advanced" ? r(a)("baseConfigCard.sections.advanced") : r(a)("baseConfigCard.sections.plugin")), 1)) : q("", !0),
2534
2536
  (c(!0), w(dA, null, cA(A.propertyCollections[f], (B) => (c(), W(ue, {
2535
2537
  key: B.key,
2536
2538
  item: B
@@ -2554,10 +2556,10 @@ const Yn = {
2554
2556
  key: "0"
2555
2557
  } : void 0
2556
2558
  ]), 1032, ["item"]))), 128))
2557
- ], 10, Dn))), 128))
2559
+ ], 10, Yg))), 128))
2558
2560
  ])) : q("", !0),
2559
- A.format === "json" ? (c(), w("div", On, [
2560
- t.fetcherUrl ? (c(), w("div", qn, [
2561
+ A.format === "json" ? (c(), w("div", Wg, [
2562
+ t.fetcherUrl ? (c(), w("div", Og, [
2561
2563
  v(u, { appearance: "get" }, {
2562
2564
  default: p(() => [
2563
2565
  $(L(r(a)("baseConfigCard.endpoints.get")), 1)
@@ -2580,10 +2582,10 @@ const Yn = {
2580
2582
  theme: "dark"
2581
2583
  }, null, 8, ["class", "code"])
2582
2584
  ])) : q("", !0),
2583
- A.format === "yaml" ? (c(), w("div", Pn, [
2585
+ A.format === "yaml" ? (c(), w("div", qg, [
2584
2586
  v(I, {
2585
2587
  id: "config-card-codeblock",
2586
- code: n.value,
2588
+ code: g.value,
2587
2589
  language: "yaml",
2588
2590
  theme: "dark"
2589
2591
  }, null, 8, ["code"])
@@ -2591,18 +2593,18 @@ const Yn = {
2591
2593
  ], 64);
2592
2594
  };
2593
2595
  }
2594
- }), Hn = /* @__PURE__ */ fA(zn, [["__scopeId", "data-v-27f85338"]]), Ze = "24px", Gn = (A, t) => {
2596
+ }), zg = /* @__PURE__ */ fA(Pg, [["__scopeId", "data-v-27f85338"]]), Ze = "24px", Hg = (A, t) => {
2595
2597
  const e = A.__vccOpts || A;
2596
2598
  for (const [a, i] of t)
2597
2599
  e[a] = i;
2598
2600
  return e;
2599
- }, Zn = (A) => (et("data-v-84d5ee61"), A = A(), tt(), A), Xn = ["aria-hidden"], _n = {
2601
+ }, Gg = (A) => (et("data-v-84d5ee61"), A = A(), tt(), A), Zg = ["aria-hidden"], Xg = {
2600
2602
  key: 0,
2601
2603
  "data-testid": "kui-icon-svg-title"
2602
- }, $n = /* @__PURE__ */ Zn(() => /* @__PURE__ */ R("path", {
2604
+ }, _g = /* @__PURE__ */ Gg(() => /* @__PURE__ */ R("path", {
2603
2605
  d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
2604
2606
  fill: "currentColor"
2605
- }, null, -1)), Ag = /* @__PURE__ */ iA({
2607
+ }, null, -1)), $g = /* @__PURE__ */ iA({
2606
2608
  __name: "BookIcon",
2607
2609
  props: {
2608
2610
  /** The accessibility text provided to screen readers */
@@ -2688,23 +2690,23 @@ const Yn = {
2688
2690
  width: "100%",
2689
2691
  xmlns: "http://www.w3.org/2000/svg"
2690
2692
  }, [
2691
- A.title ? (c(), w("title", _n, L(A.title), 1)) : q("", !0),
2692
- $n
2693
- ], 8, Xn))
2693
+ A.title ? (c(), w("title", Xg, L(A.title), 1)) : q("", !0),
2694
+ _g
2695
+ ], 8, Zg))
2694
2696
  ]),
2695
2697
  _: 1
2696
2698
  }, 8, ["aria-hidden", "style"]));
2697
2699
  }
2698
- }), eg = /* @__PURE__ */ Gn(Ag, [["__scopeId", "data-v-84d5ee61"]]), tg = { "data-testid": "config-card-title" }, ag = { class: "config-card-actions" }, ig = ["href"], og = {
2700
+ }), An = /* @__PURE__ */ Hg($g, [["__scopeId", "data-v-84d5ee61"]]), en = { "data-testid": "config-card-title" }, tn = { class: "config-card-actions" }, an = ["href"], on = {
2699
2701
  key: 2,
2700
2702
  class: "config-card-details-section"
2701
- }, ng = {
2703
+ }, gn = {
2702
2704
  key: 3,
2703
2705
  class: "config-card-details-section"
2704
- }, gg = ["data-testid"], lg = {
2706
+ }, nn = ["data-testid"], ln = {
2705
2707
  key: 0,
2706
2708
  class: "config-card-prop-section-title"
2707
- }, rg = /* @__PURE__ */ iA({
2709
+ }, rn = /* @__PURE__ */ iA({
2708
2710
  __name: "EntityBaseConfigCard",
2709
2711
  props: {
2710
2712
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2779,11 +2781,11 @@ const Yn = {
2779
2781
  emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
2780
2782
  setup(A, { emit: t }) {
2781
2783
  var e;
2782
- const a = t, i = A, o = $A(), { i18n: { t: n } } = rA.useI18n(), { getMessageFromError: g } = rA.useErrors(), { convertKeyToTitle: l } = rA.useStringHelpers(), { axiosInstance: C } = rA.useAxios({
2784
+ const a = t, i = A, o = $A(), { i18n: { t: g } } = rA.useI18n(), { getMessageFromError: n } = rA.useErrors(), { convertKeyToTitle: l } = rA.useStringHelpers(), { axiosInstance: C } = rA.useAxios({
2783
2785
  headers: (e = i.config) == null ? void 0 : e.requestHeaders
2784
2786
  }), u = [
2785
2787
  {
2786
- label: n("baseConfigCard.general.structuredFormat"),
2788
+ label: g("baseConfigCard.general.structuredFormat"),
2787
2789
  value: "structured",
2788
2790
  selected: !0
2789
2791
  },
@@ -2800,7 +2802,7 @@ const Yn = {
2800
2802
  }, B = {
2801
2803
  id: {
2802
2804
  type: eA.ID,
2803
- label: n("baseConfigCard.commonFields.id_label"),
2805
+ label: g("baseConfigCard.commonFields.id_label"),
2804
2806
  order: 0,
2805
2807
  section: EA.Basic
2806
2808
  },
@@ -2815,13 +2817,13 @@ const Yn = {
2815
2817
  },
2816
2818
  updated_at: {
2817
2819
  type: eA.Date,
2818
- label: n("baseConfigCard.commonFields.updated_at_label"),
2820
+ label: g("baseConfigCard.commonFields.updated_at_label"),
2819
2821
  order: 3,
2820
2822
  section: EA.Basic
2821
2823
  },
2822
2824
  created_at: {
2823
2825
  type: eA.Date,
2824
- label: n("baseConfigCard.commonFields.created_at_label"),
2826
+ label: g("baseConfigCard.commonFields.created_at_label"),
2825
2827
  order: 4,
2826
2828
  section: EA.Basic
2827
2829
  },
@@ -2908,15 +2910,15 @@ const Yn = {
2908
2910
  if (typeof k[i.dataKey] < "u")
2909
2911
  m.value = { ...k[i.dataKey] };
2910
2912
  else
2911
- throw new Error(n("errors.dataKeyUndefined", { dataKey: i.dataKey }));
2913
+ throw new Error(g("errors.dataKeyUndefined", { dataKey: i.dataKey }));
2912
2914
  else
2913
2915
  m.value = { ...k };
2914
2916
  Object.keys(i.configSchema).filter((D) => i.configSchema[D].forceShow).forEach((D) => {
2915
2917
  m.value && typeof m.value[D] > "u" && (m.value[D] = null);
2916
2918
  }), a("fetch:success", k);
2917
2919
  } catch (k) {
2918
- const D = g(k);
2919
- J.value = D.startsWith("code") ? n("baseConfigCard.errors.load") : D, h.value = !0, a("fetch:error", k);
2920
+ const D = n(k);
2921
+ J.value = D.startsWith("code") ? g("baseConfigCard.errors.load") : D, h.value = !0, a("fetch:error", k);
2920
2922
  } finally {
2921
2923
  Q.value = !1;
2922
2924
  }
@@ -2924,7 +2926,7 @@ const Yn = {
2924
2926
  const F = K("KLabel"), Y = K("KSelect"), H = K("KButton"), z = K("KClipboardProvider"), X = K("KSkeleton"), G = K("KEmptyState"), tA = K("KCard");
2925
2927
  return c(), W(tA, { class: "kong-ui-entity-base-config-card" }, SA({
2926
2928
  actions: p(() => [
2927
- R("div", ag, [
2929
+ R("div", tn, [
2928
2930
  _(k.$slots, "actions", {}, void 0, !0),
2929
2931
  A.config.jsonYamlEnabled ? (c(), W(F, {
2930
2932
  key: 0,
@@ -2955,8 +2957,8 @@ const Yn = {
2955
2957
  rel: "noopener",
2956
2958
  target: "_blank"
2957
2959
  }, [
2958
- v(r(eg), { size: r(ni) }, null, 8, ["size"])
2959
- ], 8, ig)
2960
+ v(r(An), { size: r(gi) }, null, 8, ["size"])
2961
+ ], 8, an)
2960
2962
  ]),
2961
2963
  _: 1
2962
2964
  })) : q("", !0),
@@ -2969,7 +2971,7 @@ const Yn = {
2969
2971
  onClick: (E) => j(AA)
2970
2972
  }, {
2971
2973
  default: p(() => [
2972
- $(L(r(n)("baseConfigCard.actions.copy")), 1)
2974
+ $(L(r(g)("baseConfigCard.actions.copy")), 1)
2973
2975
  ]),
2974
2976
  _: 2
2975
2977
  }, 1032, ["onClick"])) : q("", !0)
@@ -2994,8 +2996,8 @@ const Yn = {
2994
2996
  ]),
2995
2997
  _: 1
2996
2998
  })) : q("", !0),
2997
- A.config.jsonYamlEnabled ? (c(), w("div", og, [
2998
- v(Hn, {
2999
+ A.config.jsonYamlEnabled ? (c(), w("div", on, [
3000
+ v(zg, {
2999
3001
  "fetcher-url": Z.value,
3000
3002
  format: I.value,
3001
3003
  "prop-list-types": x.value,
@@ -3012,13 +3014,13 @@ const Yn = {
3012
3014
  ])
3013
3015
  }))
3014
3016
  ]), 1032, ["fetcher-url", "format", "prop-list-types", "property-collections", "record"])
3015
- ])) : (c(), w("div", ng, [
3017
+ ])) : (c(), w("div", gn, [
3016
3018
  (c(!0), w(dA, null, cA(x.value, (AA) => (c(), w("div", {
3017
3019
  key: `config-card-details-${AA}-props`,
3018
3020
  class: yA(`config-card-details-${AA}-props`),
3019
3021
  "data-testid": `config-card-details-${AA}-props`
3020
3022
  }, [
3021
- AA !== "basic" ? (c(), w("div", lg, L(AA === "advanced" ? r(n)("baseConfigCard.sections.advanced") : r(n)("baseConfigCard.sections.plugin")), 1)) : q("", !0),
3023
+ AA !== "basic" ? (c(), w("div", ln, L(AA === "advanced" ? r(g)("baseConfigCard.sections.advanced") : r(g)("baseConfigCard.sections.plugin")), 1)) : q("", !0),
3022
3024
  (c(!0), w(dA, null, cA(S.value[AA], (E) => (c(), W(ue, {
3023
3025
  key: E.key,
3024
3026
  item: E
@@ -3042,7 +3044,7 @@ const Yn = {
3042
3044
  key: "0"
3043
3045
  } : void 0
3044
3046
  ]), 1032, ["item"]))), 128))
3045
- ], 10, gg))), 128))
3047
+ ], 10, nn))), 128))
3046
3048
  ]))
3047
3049
  ]),
3048
3050
  _: 2
@@ -3050,9 +3052,9 @@ const Yn = {
3050
3052
  A.hideTitle ? void 0 : {
3051
3053
  name: "title",
3052
3054
  fn: p(() => [
3053
- R("div", tg, [
3055
+ R("div", en, [
3054
3056
  _(k.$slots, "title", {}, () => [
3055
- $(L(r(n)("baseConfigCard.title")), 1)
3057
+ $(L(r(g)("baseConfigCard.title")), 1)
3056
3058
  ], !0)
3057
3059
  ])
3058
3060
  ]),
@@ -3061,10 +3063,10 @@ const Yn = {
3061
3063
  ]), 1024);
3062
3064
  };
3063
3065
  }
3064
- }), Cg = /* @__PURE__ */ fA(rg, [["__scopeId", "data-v-4f47d6ad"]]), Ig = {
3066
+ }), Cn = /* @__PURE__ */ fA(rn, [["__scopeId", "data-v-4f47d6ad"]]), In = {
3065
3067
  class: "form-actions",
3066
3068
  "data-testid": "form-actions"
3067
- }, Qg = /* @__PURE__ */ iA({
3069
+ }, Qn = /* @__PURE__ */ iA({
3068
3070
  __name: "EntityBaseForm",
3069
3071
  props: {
3070
3072
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3114,7 +3116,7 @@ const Yn = {
3114
3116
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3115
3117
  setup(A, { emit: t }) {
3116
3118
  var e;
3117
- const a = t, i = A, o = Qe(), { i18n: { t: n } } = rA.useI18n(), { getMessageFromError: g } = rA.useErrors(), { axiosInstance: l } = rA.useAxios({
3119
+ const a = t, i = A, o = Qe(), { i18n: { t: g } } = rA.useI18n(), { getMessageFromError: n } = rA.useErrors(), { axiosInstance: l } = rA.useAxios({
3118
3120
  headers: (e = i.config) == null ? void 0 : e.requestHeaders
3119
3121
  }), C = M(!1), u = M(!1), I = M(""), f = T(() => i.canSubmit === !1 || i.isReadonly), B = T(() => {
3120
3122
  var m, y;
@@ -3138,8 +3140,8 @@ const Yn = {
3138
3140
  const { data: m } = await l.get(B.value);
3139
3141
  a("fetch:success", m);
3140
3142
  } catch (m) {
3141
- const y = g(m);
3142
- I.value = y.startsWith("code") ? n("baseForm.errors.edit") : y, u.value = !0, a("fetch:error", m);
3143
+ const y = n(m);
3144
+ I.value = y.startsWith("code") ? g("baseForm.errors.edit") : y, u.value = !0, a("fetch:error", m);
3143
3145
  } finally {
3144
3146
  C.value = !1;
3145
3147
  }
@@ -3152,7 +3154,7 @@ const Yn = {
3152
3154
  type: "form"
3153
3155
  })) : u.value ? (c(), W(S, {
3154
3156
  key: 1,
3155
- "cta-text": r(n)("baseForm.actions.back"),
3157
+ "cta-text": r(g)("baseForm.actions.back"),
3156
3158
  "data-testid": "form-fetch-error",
3157
3159
  "handle-click": Q,
3158
3160
  "is-error": !0
@@ -3174,7 +3176,7 @@ const Yn = {
3174
3176
  appearance: "danger",
3175
3177
  "data-testid": "form-error"
3176
3178
  }, null, 8, ["alert-message"])) : q("", !0),
3177
- R("div", Ig, [
3179
+ R("div", In, [
3178
3180
  _(m.$slots, "form-actions", {}, () => [
3179
3181
  v(P, {
3180
3182
  appearance: "secondary",
@@ -3183,7 +3185,7 @@ const Yn = {
3183
3185
  type: "reset"
3184
3186
  }, {
3185
3187
  default: p(() => [
3186
- $(L(r(n)("baseForm.actions.cancel")), 1)
3188
+ $(L(r(g)("baseForm.actions.cancel")), 1)
3187
3189
  ]),
3188
3190
  _: 1
3189
3191
  }, 8, ["disabled"]),
@@ -3194,7 +3196,7 @@ const Yn = {
3194
3196
  type: "submit"
3195
3197
  }, {
3196
3198
  default: p(() => [
3197
- $(L(r(n)("baseForm.actions.save")), 1)
3199
+ $(L(r(g)("baseForm.actions.save")), 1)
3198
3200
  ]),
3199
3201
  _: 1
3200
3202
  }, 8, ["disabled"])
@@ -3206,10 +3208,10 @@ const Yn = {
3206
3208
  });
3207
3209
  };
3208
3210
  }
3209
- }), Eg = /* @__PURE__ */ fA(Qg, [["__scopeId", "data-v-448d8512"]]), sg = {
3211
+ }), En = /* @__PURE__ */ fA(Qn, [["__scopeId", "data-v-448d8512"]]), sn = {
3210
3212
  key: 0,
3211
3213
  "data-testid": "first-col"
3212
- }, Bg = /* @__PURE__ */ iA({
3214
+ }, Bn = /* @__PURE__ */ iA({
3213
3215
  __name: "EntityBaseTableCell",
3214
3216
  props: {
3215
3217
  keyName: {
@@ -3234,18 +3236,18 @@ const Yn = {
3234
3236
  return m ? ((J = m[0]) == null ? void 0 : J.getAttribute("data-testid")) === t.keyName : !1;
3235
3237
  });
3236
3238
  let o;
3237
- const n = () => {
3239
+ const g = () => {
3238
3240
  o && (o.disconnect(), o = void 0);
3239
- }, g = () => {
3241
+ }, n = () => {
3240
3242
  var h, J, m;
3241
3243
  C.value = ((h = a.value) == null ? void 0 : h.getBoundingClientRect().width) || 0, u.value = ((J = e.value) == null ? void 0 : J.clientWidth) || 0, I.value = ((m = l.value) == null ? void 0 : m.innerText) || "";
3242
3244
  }, l = M({}), C = M(0), u = M(0), I = M(""), f = T(() => [a.value, e.value]), B = kA(
3243
3245
  f,
3244
3246
  (h) => {
3245
- if (i.value && (n(), "ResizeObserver" in window && window)) {
3247
+ if (i.value && (g(), "ResizeObserver" in window && window)) {
3246
3248
  o = new ResizeObserver((J) => {
3247
3249
  window.requestAnimationFrame(() => {
3248
- !Array.isArray(J) || !J.length || g();
3250
+ !Array.isArray(J) || !J.length || n();
3249
3251
  });
3250
3252
  });
3251
3253
  for (const J of h)
@@ -3255,7 +3257,7 @@ const Yn = {
3255
3257
  { immediate: !0, flush: "post", deep: !0 }
3256
3258
  ), Q = T(() => i.value ? C.value > u.value : !1);
3257
3259
  return ta(() => {
3258
- g();
3260
+ n();
3259
3261
  }), aa(() => {
3260
3262
  B();
3261
3263
  }), (h, J) => {
@@ -3265,7 +3267,7 @@ const Yn = {
3265
3267
  ref: l,
3266
3268
  class: "content-wrapper"
3267
3269
  }, [
3268
- i.value ? (c(), w("span", sg, [
3270
+ i.value ? (c(), w("span", sn, [
3269
3271
  v(m, {
3270
3272
  label: Q.value ? I.value : "",
3271
3273
  "max-width": "300",
@@ -3280,10 +3282,10 @@ const Yn = {
3280
3282
  ], 512);
3281
3283
  };
3282
3284
  }
3283
- }), ug = /* @__PURE__ */ fA(Bg, [["__scopeId", "data-v-e42a20c9"]]), cg = { class: "toolbar-container" }, dg = {
3285
+ }), un = /* @__PURE__ */ fA(Bn, [["__scopeId", "data-v-e42a20c9"]]), cn = { class: "toolbar-container" }, dn = {
3284
3286
  key: 0,
3285
3287
  class: "toolbar-button-container"
3286
- }, pg = ["data-testid"], fg = /* @__PURE__ */ iA({
3288
+ }, pn = ["data-testid"], fn = /* @__PURE__ */ iA({
3287
3289
  __name: "EntityBaseTable",
3288
3290
  props: {
3289
3291
  // table header configuration
@@ -3404,7 +3406,7 @@ const Yn = {
3404
3406
  title: (x = e.errorMessage) == null ? void 0 : x.title,
3405
3407
  message: (P = e.errorMessage) == null ? void 0 : P.message
3406
3408
  };
3407
- }), n = T(() => e.cacheIdentifier || e.preferencesStorageKey), g = (x) => x.hasData || !!e.query, l = T(() => {
3409
+ }), g = T(() => e.cacheIdentifier || e.preferencesStorageKey), n = (x) => x.hasData || !!e.query, l = T(() => {
3408
3410
  const x = [];
3409
3411
  return Object.keys(e.tableHeaders).forEach((P) => {
3410
3412
  const Z = e.tableHeaders[P];
@@ -3461,7 +3463,7 @@ const Yn = {
3461
3463
  v(D, {
3462
3464
  ref_key: "tableRefs",
3463
3465
  ref: u,
3464
- "cache-identifier": n.value,
3466
+ "cache-identifier": g.value,
3465
3467
  "cell-attrs": f,
3466
3468
  "disable-pagination-page-jump": A.disablePaginationPageJump,
3467
3469
  "disable-sorting": A.disableSorting,
@@ -3491,13 +3493,13 @@ const Yn = {
3491
3493
  "onUpdate:tablePreferences": S
3492
3494
  }, SA({
3493
3495
  toolbar: p(({ state: Y }) => [
3494
- MA(R("div", cg, [
3496
+ MA(R("div", cn, [
3495
3497
  _(x.$slots, "toolbar-filter", {}, void 0, !0),
3496
- x.$slots["toolbar-button"] ? (c(), w("div", dg, [
3498
+ x.$slots["toolbar-button"] ? (c(), w("div", dn, [
3497
3499
  _(x.$slots, "toolbar-button", {}, void 0, !0)
3498
3500
  ])) : q("", !0)
3499
3501
  ], 512), [
3500
- [KA, g(Y)]
3502
+ [KA, n(Y)]
3501
3503
  ])
3502
3504
  ]),
3503
3505
  actions: p(({ row: Y, rowKey: H, rowValue: z }) => [
@@ -3534,14 +3536,14 @@ const Yn = {
3534
3536
  ]),
3535
3537
  _: 2
3536
3538
  }, 1032, ["width"])
3537
- ], 8, pg)
3539
+ ], 8, pn)
3538
3540
  ]),
3539
3541
  _: 2
3540
3542
  }, [
3541
3543
  cA(A.tableHeaders, (Y, H) => ({
3542
3544
  name: H,
3543
3545
  fn: p(({ row: z, rowKey: X, rowValue: G }) => [
3544
- v(ug, {
3546
+ v(un, {
3545
3547
  "key-name": String(H),
3546
3548
  "row-el": I(z)
3547
3549
  }, {
@@ -3564,13 +3566,13 @@ const Yn = {
3564
3566
  }, 8, ["title"]);
3565
3567
  };
3566
3568
  }
3567
- }), mg = /* @__PURE__ */ fA(fg, [["__scopeId", "data-v-57b5a97b"]]), vg = {
3569
+ }), mn = /* @__PURE__ */ fA(fn, [["__scopeId", "data-v-57b5a97b"]]), vn = {
3568
3570
  key: 0,
3569
3571
  class: "kong-ui-entity-delete-error"
3570
- }, hg = {
3572
+ }, hn = {
3571
3573
  key: 1,
3572
3574
  class: "description"
3573
- }, yg = /* @__PURE__ */ iA({
3575
+ }, yn = /* @__PURE__ */ iA({
3574
3576
  __name: "EntityDeleteModal",
3575
3577
  props: {
3576
3578
  visible: {
@@ -3609,9 +3611,9 @@ const Yn = {
3609
3611
  },
3610
3612
  emits: ["cancel", "proceed"],
3611
3613
  setup(A, { emit: t }) {
3612
- const { i18nT: e } = rA.useI18n(), a = A, i = t, o = T(() => a.needConfirm ? a.entityName : ""), n = () => {
3614
+ const { i18nT: e } = rA.useI18n(), a = A, i = t, o = T(() => a.needConfirm ? a.entityName : ""), g = () => {
3613
3615
  i("cancel");
3614
- }, g = () => {
3616
+ }, n = () => {
3615
3617
  i("proceed");
3616
3618
  };
3617
3619
  return (l, C) => {
@@ -3624,11 +3626,11 @@ const Yn = {
3624
3626
  "is-visible": A.visible,
3625
3627
  title: A.title,
3626
3628
  type: "danger",
3627
- onCanceled: n,
3628
- onProceed: g
3629
+ onCanceled: g,
3630
+ onProceed: n
3629
3631
  }, {
3630
3632
  "body-content": p(() => [
3631
- A.error ? (c(), w("div", vg, [
3633
+ A.error ? (c(), w("div", vn, [
3632
3634
  v(u, { appearance: "danger" }, {
3633
3635
  alertMessage: p(() => [
3634
3636
  $(L(A.error), 1)
@@ -3654,7 +3656,7 @@ const Yn = {
3654
3656
  key: "0"
3655
3657
  } : void 0
3656
3658
  ]), 1032, ["keypath"]),
3657
- a.description || l.$slots.description ? (c(), w("div", hg, [
3659
+ a.description || l.$slots.description ? (c(), w("div", hn, [
3658
3660
  _(l.$slots, "description", {}, () => [
3659
3661
  R("p", null, L(a.description), 1)
3660
3662
  ], !0)
@@ -3664,13 +3666,13 @@ const Yn = {
3664
3666
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3665
3667
  };
3666
3668
  }
3667
- }), bg = /* @__PURE__ */ fA(yg, [["__scopeId", "data-v-1c9a2a07"]]), kg = {
3669
+ }), bn = /* @__PURE__ */ fA(yn, [["__scopeId", "data-v-1c9a2a07"]]), kn = {
3668
3670
  fill: "none",
3669
3671
  height: "20",
3670
3672
  viewBox: "0 0 20 20",
3671
3673
  width: "20",
3672
3674
  xmlns: "http://www.w3.org/2000/svg"
3673
- }, wg = {
3675
+ }, wn = {
3674
3676
  id: "mask0_180_20349",
3675
3677
  height: "20",
3676
3678
  maskUnits: "userSpaceOnUse",
@@ -3678,7 +3680,7 @@ const Yn = {
3678
3680
  width: "20",
3679
3681
  x: "0",
3680
3682
  y: "0"
3681
- }, Sg = ["fill"], Jg = { mask: "url(#mask0_180_20349)" }, Ug = ["fill"], Xe = /* @__PURE__ */ iA({
3683
+ }, Sn = ["fill"], Jn = { mask: "url(#mask0_180_20349)" }, Un = ["fill"], Xe = /* @__PURE__ */ iA({
3682
3684
  __name: "IconFilter",
3683
3685
  props: {
3684
3686
  color: {
@@ -3687,26 +3689,26 @@ const Yn = {
3687
3689
  }
3688
3690
  },
3689
3691
  setup(A) {
3690
- return (t, e) => (c(), w("svg", kg, [
3691
- R("mask", wg, [
3692
+ return (t, e) => (c(), w("svg", kn, [
3693
+ R("mask", wn, [
3692
3694
  R("rect", {
3693
3695
  fill: A.color,
3694
3696
  height: "20",
3695
3697
  width: "20"
3696
- }, null, 8, Sg)
3698
+ }, null, 8, Sn)
3697
3699
  ]),
3698
- R("g", Jg, [
3700
+ R("g", Jn, [
3699
3701
  R("path", {
3700
3702
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3701
3703
  fill: A.color
3702
- }, null, 8, Ug)
3704
+ }, null, 8, Un)
3703
3705
  ])
3704
3706
  ]));
3705
3707
  }
3706
- }), Tg = {
3708
+ }), Tn = {
3707
3709
  key: 1,
3708
3710
  class: "kong-ui-entity-filter"
3709
- }, Vg = { class: "menu-item-title" }, Fg = { class: "menu-item-indicator" }, Rg = { class: "menu-item-body" }, Ng = ["for"], xg = { class: "menu-item-buttons" }, Mg = { class: "filter-clear-button-container" }, Kg = /* @__PURE__ */ iA({
3711
+ }, Vn = { class: "menu-item-title" }, Fn = { class: "menu-item-indicator" }, Rn = { class: "menu-item-body" }, Nn = ["for"], xn = { class: "menu-item-buttons" }, Mn = { class: "filter-clear-button-container" }, Kn = /* @__PURE__ */ iA({
3710
3712
  __name: "EntityFilter",
3711
3713
  props: {
3712
3714
  // filter config, either exact match or fuzzy match
@@ -3726,7 +3728,7 @@ const Yn = {
3726
3728
  },
3727
3729
  emits: ["update:modelValue"],
3728
3730
  setup(A, { emit: t }) {
3729
- const { i18n: { t: e } } = rA.useI18n(), a = A, i = t, o = M(!1), n = M({}), g = T(() => {
3731
+ const { i18n: { t: e } } = rA.useI18n(), a = A, i = t, o = M(!1), g = M({}), n = T(() => {
3730
3732
  const m = [];
3731
3733
  return new URLSearchParams(a.modelValue).forEach((y, N) => {
3732
3734
  y !== "" && m.push(N);
@@ -3739,8 +3741,8 @@ const Yn = {
3739
3741
  }));
3740
3742
  });
3741
3743
  kA(() => a.modelValue, (m) => {
3742
- n.value = {}, new URLSearchParams(m).forEach((y, N) => {
3743
- n.value[N] = y;
3744
+ g.value = {}, new URLSearchParams(m).forEach((y, N) => {
3745
+ g.value[N] = y;
3744
3746
  });
3745
3747
  });
3746
3748
  const C = () => {
@@ -3757,14 +3759,14 @@ const Yn = {
3757
3759
  var y, N;
3758
3760
  return ((N = (y = a.config.schema) == null ? void 0 : y[m]) == null ? void 0 : N.type) ?? "text";
3759
3761
  }, Q = (m) => {
3760
- n.value = {
3761
- ...n.value,
3762
+ g.value = {
3763
+ ...g.value,
3762
3764
  [m]: ""
3763
3765
  }, J();
3764
3766
  }, h = () => {
3765
- n.value = {}, J(!0);
3767
+ g.value = {}, J(!0);
3766
3768
  }, J = (m = !1) => {
3767
- const y = Object.keys(n.value).reduce((N, S) => (n.value[S] && (N[S] = `${n.value[S]}`), N), {});
3769
+ const y = Object.keys(g.value).reduce((N, S) => (g.value[S] && (N[S] = `${g.value[S]}`), N), {});
3768
3770
  m && (o.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
3769
3771
  };
3770
3772
  return (m, y) => {
@@ -3782,7 +3784,7 @@ const Yn = {
3782
3784
  v(Xe)
3783
3785
  ]),
3784
3786
  _: 1
3785
- }, 8, ["model-value", "placeholder"])) : (c(), w("div", Tg, [
3787
+ }, 8, ["model-value", "placeholder"])) : (c(), w("div", Tn, [
3786
3788
  v(S, {
3787
3789
  appearance: "tertiary",
3788
3790
  "data-testid": "filter-button",
@@ -3790,7 +3792,7 @@ const Yn = {
3790
3792
  }, {
3791
3793
  default: p(() => [
3792
3794
  v(Xe),
3793
- $(" " + L(r(e)("filter.filterButtonText")) + " " + L(g.value.length > 0 ? `(${g.value.length})` : ""), 1)
3795
+ $(" " + L(r(e)("filter.filterButtonText")) + " " + L(n.value.length > 0 ? `(${n.value.length})` : ""), 1)
3794
3796
  ]),
3795
3797
  _: 1
3796
3798
  }),
@@ -3809,40 +3811,40 @@ const Yn = {
3809
3811
  "last-menu-item": k === l.value.length - 1
3810
3812
  }, {
3811
3813
  itemTitle: p(() => [
3812
- R("span", Vg, [
3814
+ R("span", Vn, [
3813
3815
  $(L(j.label) + " ", 1),
3814
- MA(R("span", Fg, null, 512), [
3815
- [KA, g.value.includes(j.value)]
3816
+ MA(R("span", Fn, null, 512), [
3817
+ [KA, n.value.includes(j.value)]
3816
3818
  ])
3817
3819
  ])
3818
3820
  ]),
3819
3821
  itemBody: p(() => {
3820
3822
  var D, F;
3821
3823
  return [
3822
- R("div", Rg, [
3824
+ R("div", Rn, [
3823
3825
  R("label", {
3824
3826
  class: "menu-item-label",
3825
3827
  for: I(j.value)
3826
- }, L(r(e)("filter.fieldLabel")), 9, Ng),
3828
+ }, L(r(e)("filter.fieldLabel")), 9, Nn),
3827
3829
  ((F = (D = A.config.schema) == null ? void 0 : D[j.value]) == null ? void 0 : F.type) === "select" ? (c(), W(x, {
3828
3830
  key: 0,
3829
3831
  id: I(j.value),
3830
- modelValue: n.value[j.value],
3831
- "onUpdate:modelValue": (Y) => n.value[j.value] = Y,
3832
+ modelValue: g.value[j.value],
3833
+ "onUpdate:modelValue": (Y) => g.value[j.value] = Y,
3832
3834
  appearance: "select",
3833
3835
  items: f(j.value),
3834
3836
  placeholder: r(e)("filter.selectPlaceholder")
3835
3837
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (c(), W(N, {
3836
3838
  key: 1,
3837
3839
  id: I(j.value),
3838
- modelValue: n.value[j.value],
3839
- "onUpdate:modelValue": (Y) => n.value[j.value] = Y,
3840
+ modelValue: g.value[j.value],
3841
+ "onUpdate:modelValue": (Y) => g.value[j.value] = Y,
3840
3842
  autocomplete: "off",
3841
3843
  placeholder: r(e)("filter.inputPlaceholder"),
3842
3844
  type: B(j.value)
3843
3845
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3844
3846
  ]),
3845
- R("div", xg, [
3847
+ R("div", xn, [
3846
3848
  v(S, {
3847
3849
  appearance: "tertiary",
3848
3850
  "data-testid": "apply-filter",
@@ -3872,7 +3874,7 @@ const Yn = {
3872
3874
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3873
3875
  ]),
3874
3876
  actionButton: p(() => [
3875
- R("div", Mg, [
3877
+ R("div", Mn, [
3876
3878
  v(S, {
3877
3879
  appearance: "tertiary",
3878
3880
  size: "small",
@@ -3892,7 +3894,7 @@ const Yn = {
3892
3894
  ]));
3893
3895
  };
3894
3896
  }
3895
- }), Lg = /* @__PURE__ */ fA(Kg, [["__scopeId", "data-v-15962ee2"]]), OA = /* @__PURE__ */ iA({
3897
+ }), Ln = /* @__PURE__ */ fA(Kn, [["__scopeId", "data-v-15962ee2"]]), OA = /* @__PURE__ */ iA({
3896
3898
  __name: "PermissionsWrapper",
3897
3899
  props: {
3898
3900
  /**
@@ -3922,16 +3924,16 @@ const Yn = {
3922
3924
  isAllowed: e.value
3923
3925
  }) : q("", !0);
3924
3926
  }
3925
- }), jg = { class: "form-section-wrapper" }, Yg = {
3927
+ }), jn = { class: "form-section-wrapper" }, Yn = {
3926
3928
  key: 0,
3927
3929
  class: "form-section-title"
3928
- }, Dg = {
3930
+ }, Dn = {
3929
3931
  key: 1,
3930
3932
  class: "form-section-description"
3931
- }, Wg = {
3933
+ }, Wn = {
3932
3934
  key: 2,
3933
3935
  class: "form-section-footer"
3934
- }, Og = { class: "form-section-content" }, qg = /* @__PURE__ */ iA({
3936
+ }, On = { class: "form-section-content" }, qn = /* @__PURE__ */ iA({
3935
3937
  __name: "EntityFormSection",
3936
3938
  props: {
3937
3939
  title: {
@@ -3960,43 +3962,43 @@ const Yn = {
3960
3962
  return (e, a) => (c(), w("fieldset", {
3961
3963
  class: yA(["kong-ui-entity-form-section", { "has-divider": A.hasDivider }])
3962
3964
  }, [
3963
- R("div", jg, [
3965
+ R("div", jn, [
3964
3966
  A.hideInfoHeader ? q("", !0) : (c(), w("div", {
3965
3967
  key: 0,
3966
3968
  class: yA(["form-section-info", { sticky: A.stickyInfoHeader }])
3967
3969
  }, [
3968
- A.title ? (c(), w("h4", Yg, L(A.title), 1)) : q("", !0),
3969
- A.description || r(t).description ? (c(), w("div", Dg, [
3970
+ A.title ? (c(), w("h4", Yn, L(A.title), 1)) : q("", !0),
3971
+ A.description || r(t).description ? (c(), w("div", Dn, [
3970
3972
  _(e.$slots, "description", {}, () => [
3971
3973
  R("p", null, L(A.description), 1)
3972
3974
  ], !0)
3973
3975
  ])) : q("", !0),
3974
- r(t).footer ? (c(), w("div", Wg, [
3976
+ r(t).footer ? (c(), w("div", Wn, [
3975
3977
  _(e.$slots, "footer", {}, void 0, !0)
3976
3978
  ])) : q("", !0)
3977
3979
  ], 2)),
3978
- R("div", Og, [
3980
+ R("div", On, [
3979
3981
  _(e.$slots, "default", {}, void 0, !0)
3980
3982
  ])
3981
3983
  ])
3982
3984
  ], 2));
3983
3985
  }
3984
- }), _e = /* @__PURE__ */ fA(qg, [["__scopeId", "data-v-3565daa7"]]), { useAxios: _t, useDeleteUrlBuilder: Pg, useErrors: zg, useExternalLinkCreator: xl, useFetchUrlBuilder: Ml, useFetcher: Hg, useDebouncedFilter: Kl, useStringHelpers: Ll, useHelpers: jl, useGatewayFeatureSupported: Gg, useTruncationDetector: Yl } = rA, Zg = {
3986
+ }), _e = /* @__PURE__ */ fA(qn, [["__scopeId", "data-v-3565daa7"]]), { useAxios: _t, useDeleteUrlBuilder: Pn, useErrors: zn, useExternalLinkCreator: xl, useFetchUrlBuilder: Ml, useFetcher: Hn, useDebouncedFilter: Kl, useStringHelpers: Ll, useHelpers: jl, useGatewayFeatureSupported: Gn, useTruncationDetector: Yl } = rA, Zn = {
3985
3987
  create: "New Vault",
3986
3988
  copy_id: "Copy ID",
3987
3989
  copy_json: "Copy JSON",
3988
3990
  edit: "Edit",
3989
3991
  delete: "Delete",
3990
3992
  view: "View Details"
3991
- }, Xg = {
3993
+ }, Xn = {
3992
3994
  general: "Vaults could not be retrieved",
3993
3995
  delete: "The vault could not be deleted at this time.",
3994
3996
  copy: "Failed to copy to clipboard"
3995
- }, _g = {
3997
+ }, _n = {
3996
3998
  placeholder: {
3997
3999
  konnect: "Filter by exact name or ID"
3998
4000
  }
3999
- }, $g = {
4001
+ }, $n = {
4000
4002
  title: "Vaults",
4001
4003
  list: {
4002
4004
  toolbar_actions: {
@@ -4226,14 +4228,14 @@ const Yn = {
4226
4228
  },
4227
4229
  unavailable: "This vault provider is available on Enterprise."
4228
4230
  }, al = {
4229
- actions: Zg,
4231
+ actions: Zn,
4230
4232
  delete: {
4231
4233
  title: "Delete a Vault",
4232
4234
  description: "This action cannot be reversed."
4233
4235
  },
4234
- errors: Xg,
4235
- search: _g,
4236
- vaults: $g,
4236
+ errors: Xn,
4237
+ search: _n,
4238
+ vaults: $n,
4237
4239
  copy: Al,
4238
4240
  labels: el,
4239
4241
  form: tl
@@ -4263,7 +4265,7 @@ const he = {
4263
4265
  edit: "/{workspace}/vaults/{id}"
4264
4266
  }
4265
4267
  }
4266
- }, ol = { class: "kong-ui-entities-vaults-list" }, nl = { class: "table-content-overflow-wrapper" }, gl = { class: "table-content-overflow-wrapper" }, ll = { key: 1 }, rl = /* @__PURE__ */ iA({
4268
+ }, ol = { class: "kong-ui-entities-vaults-list" }, gl = { class: "table-content-overflow-wrapper" }, nl = { class: "table-content-overflow-wrapper" }, ll = { key: 1 }, rl = /* @__PURE__ */ iA({
4267
4269
  __name: "VaultList",
4268
4270
  props: {
4269
4271
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4310,9 +4312,9 @@ const he = {
4310
4312
  emits: ["error", "copy:success", "copy:error", "delete:success"],
4311
4313
  setup(A, { emit: t }) {
4312
4314
  var AA;
4313
- const e = t, a = A, { i18n: { t: i } } = he.useI18n(), o = Qe(), { axiosInstance: n } = _t({
4315
+ const e = t, a = A, { i18n: { t: i } } = he.useI18n(), o = Qe(), { axiosInstance: g } = _t({
4314
4316
  headers: (AA = a.config) == null ? void 0 : AA.requestHeaders
4315
- }), g = T(() => a.config.app !== "kongManager" || !!a.config.disableSorting), l = {
4317
+ }), n = T(() => a.config.app !== "kongManager" || !!a.config.disableSorting), l = {
4316
4318
  prefix: { label: i("vaults.list.table_headers.prefix"), searchable: !0, sortable: !0 },
4317
4319
  // it's "Vault Type" on display, but we still use "name" to fit API schema
4318
4320
  name: { label: i("vaults.list.table_headers.name"), searchable: !0, sortable: !0 },
@@ -4334,7 +4336,7 @@ const he = {
4334
4336
  fields: { name: V, prefix: s },
4335
4337
  schema: a.config.filterSchema
4336
4338
  };
4337
- }), B = M(1), { fetcher: Q, fetcherState: h } = Hg(a.config, u.value), J = () => {
4339
+ }), B = M(1), { fetcher: Q, fetcherState: h } = Hn(a.config, u.value), J = () => {
4338
4340
  I.value = "";
4339
4341
  }, m = () => {
4340
4342
  B.value++;
@@ -4375,7 +4377,7 @@ const he = {
4375
4377
  }), Z = (E) => ({
4376
4378
  label: i("actions.edit"),
4377
4379
  to: a.config.getEditRoute(E)
4378
- }), j = M(void 0), k = M(!1), D = M(!1), F = M(""), Y = Pg(a.config, u.value), H = (E) => {
4380
+ }), j = M(void 0), k = M(!1), D = M(!1), F = M(""), Y = Pn(a.config, u.value), H = (E) => {
4379
4381
  j.value = E, k.value = !0;
4380
4382
  }, z = () => {
4381
4383
  k.value = !1;
@@ -4384,7 +4386,7 @@ const he = {
4384
4386
  if ((E = j.value) != null && E.id) {
4385
4387
  D.value = !0;
4386
4388
  try {
4387
- await n.delete(Y(j.value.id)), D.value = !1, k.value = !1, B.value++, e("delete:success", j.value);
4389
+ await g.delete(Y(j.value.id)), D.value = !1, k.value = !1, B.value++, e("delete:success", j.value);
4388
4390
  } catch (oA) {
4389
4391
  F.value = ((V = (s = oA.response) == null ? void 0 : s.data) == null ? void 0 : V.message) || oA.message || i("errors.delete"), e("error", oA);
4390
4392
  } finally {
@@ -4411,12 +4413,12 @@ const he = {
4411
4413
  return Ie(async () => {
4412
4414
  await a.canCreate() && (tA.value.title = i("vaults.list.empty_state.title"), tA.value.ctaText = i("actions.create"));
4413
4415
  }), (E, s) => {
4414
- const V = K("KButton"), oA = K("KBadge"), pA = K("KTruncate"), gA = K("KDropdownItem"), BA = K("KClipboardProvider");
4416
+ const V = K("KButton"), oA = K("KBadge"), pA = K("KTruncate"), nA = K("KDropdownItem"), BA = K("KClipboardProvider");
4415
4417
  return c(), w("div", ol, [
4416
- v(r(mg), {
4418
+ v(r(mn), {
4417
4419
  "cache-identifier": A.cacheIdentifier,
4418
4420
  "disable-pagination-page-jump": "",
4419
- "disable-sorting": g.value,
4421
+ "disable-sorting": n.value,
4420
4422
  "empty-state-options": tA.value,
4421
4423
  "enable-entity-actions": "",
4422
4424
  "error-message": y.value,
@@ -4432,7 +4434,7 @@ const he = {
4432
4434
  onSort: m
4433
4435
  }, {
4434
4436
  "toolbar-filter": p(() => [
4435
- v(r(Lg), {
4437
+ v(r(Ln), {
4436
4438
  modelValue: I.value,
4437
4439
  "onUpdate:modelValue": s[0] || (s[0] = (O) => I.value = O),
4438
4440
  config: f.value
@@ -4466,7 +4468,7 @@ const he = {
4466
4468
  ], 8, ["disabled"]))
4467
4469
  ]),
4468
4470
  prefix: p(({ rowValue: O }) => [
4469
- R("div", nl, [
4471
+ R("div", gl, [
4470
4472
  R("b", null, L(O ?? "-"), 1)
4471
4473
  ])
4472
4474
  ]),
@@ -4474,7 +4476,7 @@ const he = {
4474
4476
  R("b", null, L(O ?? "-"), 1)
4475
4477
  ]),
4476
4478
  description: p(({ rowValue: O }) => [
4477
- R("div", gl, L(O ?? "-"), 1)
4479
+ R("div", nl, L(O ?? "-"), 1)
4478
4480
  ]),
4479
4481
  tags: p(({ rowValue: O }) => [
4480
4482
  (O == null ? void 0 : O.length) > 0 ? (c(), W(pA, { key: 0 }, {
@@ -4496,7 +4498,7 @@ const he = {
4496
4498
  actions: p(({ row: O }) => [
4497
4499
  v(BA, null, {
4498
4500
  default: p(({ copyToClipboard: lA }) => [
4499
- v(gA, {
4501
+ v(nA, {
4500
4502
  "data-testid": "action-entity-copy-id",
4501
4503
  onClick: (b) => N(O, lA)
4502
4504
  }, {
@@ -4510,7 +4512,7 @@ const he = {
4510
4512
  }, 1024),
4511
4513
  v(BA, null, {
4512
4514
  default: p(({ copyToClipboard: lA }) => [
4513
- v(gA, {
4515
+ v(nA, {
4514
4516
  "data-testid": "action-entity-copy-json",
4515
4517
  onClick: (b) => S(O, lA)
4516
4518
  }, {
@@ -4526,7 +4528,7 @@ const he = {
4526
4528
  "auth-function": () => A.canRetrieve(O)
4527
4529
  }, {
4528
4530
  default: p(() => [
4529
- v(gA, {
4531
+ v(nA, {
4530
4532
  "data-testid": "action-entity-view",
4531
4533
  "has-divider": "",
4532
4534
  item: P(O.id)
@@ -4538,7 +4540,7 @@ const he = {
4538
4540
  "auth-function": () => A.canEdit(O)
4539
4541
  }, {
4540
4542
  default: p(() => [
4541
- v(gA, {
4543
+ v(nA, {
4542
4544
  "data-testid": "action-entity-edit",
4543
4545
  item: Z(O.id)
4544
4546
  }, null, 8, ["item"])
@@ -4549,7 +4551,7 @@ const he = {
4549
4551
  "auth-function": () => A.canDelete(O)
4550
4552
  }, {
4551
4553
  default: p(() => [
4552
- v(gA, {
4554
+ v(nA, {
4553
4555
  danger: "",
4554
4556
  "data-testid": "action-entity-delete",
4555
4557
  "has-divider": "",
@@ -4566,7 +4568,7 @@ const he = {
4566
4568
  ]),
4567
4569
  _: 1
4568
4570
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
4569
- v(r(bg), {
4571
+ v(r(bn), {
4570
4572
  "action-pending": D.value,
4571
4573
  description: r(i)("delete.description"),
4572
4574
  "entity-name": j.value && (j.value.prefix || j.value.id),
@@ -4609,9 +4611,9 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4609
4611
  emits: ["update", "error", "loading"],
4610
4612
  setup(A, { emit: t }) {
4611
4613
  var AA;
4612
- const e = A, a = t, { i18nT: i, i18n: { t: o } } = he.useI18n(), n = Qe(), { axiosInstance: g } = _t({
4614
+ const e = A, a = t, { i18nT: i, i18n: { t: o } } = he.useI18n(), g = Qe(), { axiosInstance: n } = _t({
4613
4615
  headers: (AA = e.config) == null ? void 0 : AA.requestHeaders
4614
- }), { getMessageFromError: l } = zg(), C = WA({
4616
+ }), { getMessageFromError: l } = zn(), C = WA({
4615
4617
  fields: {
4616
4618
  prefix: "",
4617
4619
  description: "",
@@ -4711,7 +4713,7 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4711
4713
  ], m = [{ label: "secrets", value: "secrets" }], y = [{ label: "http", value: "http" }, { label: "https", value: "https" }], N = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], S = T(() => e.vaultId ? qA.Edit : qA.Create), x = T(() => {
4712
4714
  var E, s;
4713
4715
  return (s = _A.form[(E = e.config) == null ? void 0 : E.app]) == null ? void 0 : s.edit;
4714
- }), P = T(() => S.value === qA.Edit && e.config.app === "kongManager"), Z = e.config.app === "konnect" || Gg({
4716
+ }), P = T(() => S.value === qA.Edit && e.config.app === "kongManager"), Z = e.config.app === "konnect" || Gn({
4715
4717
  gatewayInfo: e.config.gatewayInfo,
4716
4718
  // vault name can only be `env` in Gateway Community Edition
4717
4719
  supportedRange: {
@@ -4719,15 +4721,15 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4719
4721
  }
4720
4722
  }), j = () => {
4721
4723
  var E;
4722
- n.push(((E = e.config) == null ? void 0 : E.cancelRoute) || { name: "vault-list" });
4724
+ g.push(((E = e.config) == null ? void 0 : E.cancelRoute) || { name: "vault-list" });
4723
4725
  }, k = (E) => {
4724
4726
  a("loading", E);
4725
4727
  }, D = (E) => {
4726
4728
  a("error", E);
4727
4729
  }, F = (E) => new URL((/* @__PURE__ */ Object.assign({ "../assets/images/provider-icons/aws.svg": Cl, "../assets/images/provider-icons/azure.svg": Il, "../assets/images/provider-icons/gcp.svg": Ql, "../assets/images/provider-icons/hcv.svg": El }))[`../assets/images/provider-icons/${E}.svg`], import.meta.url).href, Y = (E) => {
4728
- var oA, pA, gA, BA, O;
4730
+ var oA, pA, nA, BA, O;
4729
4731
  C.fields.prefix = ((oA = E == null ? void 0 : E.item) == null ? void 0 : oA.prefix) || (E == null ? void 0 : E.prefix) || "", C.fields.description = ((pA = E == null ? void 0 : E.item) == null ? void 0 : pA.description) || (E == null ? void 0 : E.description) || "";
4730
- const s = ((gA = E == null ? void 0 : E.item) == null ? void 0 : gA.tags) || (E == null ? void 0 : E.tags) || [];
4732
+ const s = ((nA = E == null ? void 0 : E.item) == null ? void 0 : nA.tags) || (E == null ? void 0 : E.tags) || [];
4731
4733
  C.fields.tags = (s == null ? void 0 : s.join(", ")) || "", Object.assign(u, C.fields);
4732
4734
  const V = ((BA = E == null ? void 0 : E.item) == null ? void 0 : BA.config) || (E == null ? void 0 : E.config) || null;
4733
4735
  V && Object.keys(V).length ? (I.value = ((O = E == null ? void 0 : E.item) == null ? void 0 : O.name) || (E == null ? void 0 : E.name) || "", f.value = I.value, Object.assign(Q[I.value], V), Object.assign(h[I.value], V)) : C.errorMessage = "Error loading vault config";
@@ -4755,8 +4757,8 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4755
4757
  client_id: Q[I.value].client_id || null,
4756
4758
  tenant_id: Q[I.value].tenant_id || null
4757
4759
  };
4758
- let gA = Q[I.value];
4759
- I.value === d.HCV ? gA = oA : I.value === d.AZURE && (gA = pA);
4760
+ let nA = Q[I.value];
4761
+ I.value === d.HCV ? nA = oA : I.value === d.AZURE && (nA = pA);
4760
4762
  let BA = {};
4761
4763
  if (I.value !== d.KONG) {
4762
4764
  const b = Q[I.value], ye = b.ttl, be = b.neg_ttl, ke = b.resurrect_ttl;
@@ -4772,12 +4774,12 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4772
4774
  tags: (s = (E = C.fields.tags.split(",")) == null ? void 0 : E.map((b) => String(b || "").trim())) == null ? void 0 : s.filter((b) => b !== ""),
4773
4775
  name: I.value,
4774
4776
  config: {
4775
- ...gA,
4777
+ ...nA,
4776
4778
  ...BA
4777
4779
  }
4778
4780
  };
4779
4781
  let lA;
4780
- S.value === "create" ? lA = await g.post(G.value, O) : S.value === "edit" && (lA = ((V = e.config) == null ? void 0 : V.app) === "konnect" ? await g.put(G.value, O) : await g.patch(G.value, O)), Y(lA == null ? void 0 : lA.data), a("update", lA == null ? void 0 : lA.data);
4782
+ S.value === "create" ? lA = await n.post(G.value, O) : S.value === "edit" && (lA = ((V = e.config) == null ? void 0 : V.app) === "konnect" ? await n.put(G.value, O) : await n.patch(G.value, O)), Y(lA == null ? void 0 : lA.data), a("update", lA == null ? void 0 : lA.data);
4781
4783
  } catch (oA) {
4782
4784
  C.errorMessage = l(oA), a("error", oA);
4783
4785
  } finally {
@@ -4785,9 +4787,9 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4785
4787
  }
4786
4788
  };
4787
4789
  return (E, s) => {
4788
- const V = K("KInput"), oA = K("KTextArea"), pA = K("KIcon"), gA = K("KRadio"), BA = K("KTooltip"), O = K("KSelect"), lA = K("KCollapse");
4790
+ const V = K("KInput"), oA = K("KTextArea"), pA = K("KIcon"), nA = K("KRadio"), BA = K("KTooltip"), O = K("KSelect"), lA = K("KCollapse");
4789
4791
  return c(), w("div", sl, [
4790
- v(r(Eg), {
4792
+ v(r(En), {
4791
4793
  "can-submit": z.value && X.value,
4792
4794
  config: A.config,
4793
4795
  "edit-id": A.vaultId,
@@ -4852,7 +4854,7 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4852
4854
  }, {
4853
4855
  default: p(() => [
4854
4856
  R("div", Bl, [
4855
- v(gA, {
4857
+ v(nA, {
4856
4858
  modelValue: I.value,
4857
4859
  "onUpdate:modelValue": s[3] || (s[3] = (b) => I.value = b),
4858
4860
  card: "",
@@ -4875,7 +4877,7 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4875
4877
  placement: "top"
4876
4878
  }, {
4877
4879
  default: p(() => [
4878
- v(gA, {
4880
+ v(nA, {
4879
4881
  modelValue: I.value,
4880
4882
  "onUpdate:modelValue": s[4] || (s[4] = (b) => I.value = b),
4881
4883
  card: "",
@@ -4902,7 +4904,7 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4902
4904
  placement: "top"
4903
4905
  }, {
4904
4906
  default: p(() => [
4905
- v(gA, {
4907
+ v(nA, {
4906
4908
  modelValue: I.value,
4907
4909
  "onUpdate:modelValue": s[5] || (s[5] = (b) => I.value = b),
4908
4910
  card: "",
@@ -4929,7 +4931,7 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4929
4931
  placement: "top"
4930
4932
  }, {
4931
4933
  default: p(() => [
4932
- v(gA, {
4934
+ v(nA, {
4933
4935
  modelValue: I.value,
4934
4936
  "onUpdate:modelValue": s[6] || (s[6] = (b) => I.value = b),
4935
4937
  card: "",
@@ -4957,7 +4959,7 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4957
4959
  placement: "top"
4958
4960
  }, {
4959
4961
  default: p(() => [
4960
- v(gA, {
4962
+ v(nA, {
4961
4963
  modelValue: I.value,
4962
4964
  "onUpdate:modelValue": s[7] || (s[7] = (b) => I.value = b),
4963
4965
  card: "",
@@ -4979,7 +4981,7 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
4979
4981
  _: 1
4980
4982
  }, 8, ["disabled", "label"])) : q("", !0)
4981
4983
  ]),
4982
- v(na, { name: "appear" }, {
4984
+ v(ga, { name: "appear" }, {
4983
4985
  default: p(() => [
4984
4986
  I.value === r(d).KONG ? (c(), w("div", fl, [
4985
4987
  v(V, {
@@ -5318,8 +5320,8 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
5318
5320
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
5319
5321
  setup(A) {
5320
5322
  const t = A, e = T(() => {
5321
- var o, n;
5322
- return (n = _A.form[(o = t.config) == null ? void 0 : o.app]) == null ? void 0 : n.edit;
5323
+ var o, g;
5324
+ return (g = _A.form[(o = t.config) == null ? void 0 : o.app]) == null ? void 0 : g.edit;
5323
5325
  }), { i18n: { t: a } } = he.useI18n(), i = M({
5324
5326
  id: {},
5325
5327
  name: {
@@ -5343,17 +5345,17 @@ const sl = { class: "kong-ui-entities-vault-form" }, Bl = { class: "vault-form-p
5343
5345
  type: eA.Json
5344
5346
  }
5345
5347
  });
5346
- return (o, n) => (c(), w("div", Ul, [
5347
- v(r(Cg), {
5348
+ return (o, g) => (c(), w("div", Ul, [
5349
+ v(r(Cn), {
5348
5350
  config: A.config,
5349
5351
  "config-card-doc": A.configCardDoc,
5350
5352
  "config-schema": i.value,
5351
5353
  "fetch-url": e.value,
5352
5354
  "hide-title": A.hideTitle,
5353
- "onCopy:success": n[0] || (n[0] = (g) => o.$emit("copy:success", g)),
5354
- "onFetch:error": n[1] || (n[1] = (g) => o.$emit("fetch:error", g)),
5355
- "onFetch:success": n[2] || (n[2] = (g) => o.$emit("fetch:success", g)),
5356
- onLoading: n[3] || (n[3] = (g) => o.$emit("loading", g))
5355
+ "onCopy:success": g[0] || (g[0] = (n) => o.$emit("copy:success", n)),
5356
+ "onFetch:error": g[1] || (g[1] = (n) => o.$emit("fetch:error", n)),
5357
+ "onFetch:success": g[2] || (g[2] = (n) => o.$emit("fetch:success", n)),
5358
+ onLoading: g[3] || (g[3] = (n) => o.$emit("loading", n))
5357
5359
  }, null, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title"])
5358
5360
  ]));
5359
5361
  }