@kong-ui-public/entities-consumers 2.2.3 → 2.2.4-pr.985.1feebfc7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as Ce, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as M, createVNode as F, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as Ae, withModifiers as De, withDirectives as Be, vShow as qe, useCssVars as ma, resolveDynamicComponent as Ee, normalizeProps as ga, guardReactiveProps as ya, mergeProps as st, onMounted as ha, onUnmounted as va, normalizeStyle as un, inject as ba, pushScopeId as cn, popScopeId as dn, Teleport as Ca, reactive as Nt } from "vue";
1
+ import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as Ce, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as j, createVNode as F, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as Ae, withModifiers as De, withDirectives as Be, vShow as qe, useCssVars as ma, resolveDynamicComponent as Ee, normalizeProps as ga, guardReactiveProps as ya, mergeProps as st, onMounted as ha, onUnmounted as va, normalizeStyle as un, inject as ba, pushScopeId as cn, popScopeId as dn, Teleport as Ca, reactive as Nt } from "vue";
2
2
  import { useRouter as gt } from "vue-router";
3
3
  import { createI18n as yt, i18nTComponent as pn } from "@kong-ui-public/i18n";
4
4
  import ka from "axios";
5
- import { MethodsArray as wa } from "@kong/kongponents";
5
+ import { BadgeMethodAppearances as wa } from "@kong/kongponents";
6
6
  const _a = {
7
7
  list: {
8
8
  table_headers: {
@@ -199,10 +199,10 @@ const $a = {
199
199
  copyToClipboard: "Copied successfully!",
200
200
  copyToClipboardFailed: "Failed to copy to the clipboard"
201
201
  }
202
- }, Ma = {
202
+ }, ja = {
203
203
  message: "Are you sure you want to delete this {entityType}?",
204
204
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
205
- }, ja = {
205
+ }, Ma = {
206
206
  actions: {
207
207
  save: "Save",
208
208
  cancel: "Cancel",
@@ -281,8 +281,8 @@ const $a = {
281
281
  }
282
282
  }, qa = {
283
283
  global: $a,
284
- deleteModal: Ma,
285
- baseForm: ja,
284
+ deleteModal: ja,
285
+ baseForm: Ma,
286
286
  baseTable: Oa,
287
287
  baseConfigCard: Ea,
288
288
  filter: Fa,
@@ -349,46 +349,46 @@ function La(e, n, t, a = {
349
349
  t || (t = "100");
350
350
  const { axiosInstance: r } = ht({
351
351
  headers: e.requestHeaders
352
- }), { i18n: { t: o } } = vt(), { debounce: i } = Sa(), s = i(async (v) => {
353
- await q(v);
352
+ }), { i18n: { t: o } } = vt(), { debounce: i } = Sa(), s = i(async (I) => {
353
+ await q(I);
354
354
  }, 200), l = O(!1), u = O(""), d = O(""), c = O([]), h = O([]), f = O(void 0), A = g(n);
355
355
  let C = `${e.apiBaseUrl}${A}`;
356
356
  e.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
357
357
  const { isValidUuid: p } = mn(), S = async () => {
358
358
  try {
359
359
  l.value = !0;
360
- const { data: v } = await r.get(`${C}?size=${t}`);
361
- v != null && v.next || (f.value = a.fetchedItemsKey in v ? v[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in v ? v[a.fetchedItemsKey] : [], c.value = h.value;
360
+ const { data: I } = await r.get(`${C}?size=${t}`);
361
+ I != null && I.next || (f.value = a.fetchedItemsKey in I ? I[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in I ? I[a.fetchedItemsKey] : [], c.value = h.value;
362
362
  } catch {
363
363
  c.value = [], u.value = o("debouncedFilter.errors.fetch");
364
364
  } finally {
365
365
  l.value = !1;
366
366
  }
367
- }, _ = O(""), q = async (v) => {
367
+ }, v = O(""), q = async (I) => {
368
368
  var w, N, U;
369
- if (_.value !== v)
370
- if (_.value = v || "", f.value === void 0)
369
+ if (v.value !== I)
370
+ if (v.value = I || "", f.value === void 0)
371
371
  try {
372
372
  if (l.value = !0, u.value = "", d.value = "", e.app === "konnect") {
373
373
  let b = C + "";
374
- v && (b += `/${v}`);
374
+ I && (b += `/${I}`);
375
375
  const { data: k } = await r.get(`${b}?size=${t}`);
376
376
  a.fetchedItemsKey in k ? c.value = k[a.fetchedItemsKey] : k != null && k.id ? c.value = [k] : c.value = [];
377
- } else if (v) {
377
+ } else if (I) {
378
378
  const b = [];
379
- p(v) && a.searchKeys.includes("id") ? b.push((async () => {
380
- const { data: B } = await r.get(`${C}/${v}`);
379
+ p(I) && a.searchKeys.includes("id") ? b.push((async () => {
380
+ const { data: B } = await r.get(`${C}/${I}`);
381
381
  return [B[a.fetchedItemsKey] ?? B];
382
382
  })()) : b.push(
383
383
  ...a.searchKeys.filter((B) => B !== "id").map(async (B) => {
384
- const { data: I } = await r.get(`${C}?${B}=${v}`);
385
- return I[a.fetchedItemsKey];
384
+ const { data: _ } = await r.get(`${C}?${B}=${I}`);
385
+ return _[a.fetchedItemsKey];
386
386
  })
387
387
  );
388
388
  const k = await Promise.all(b), V = /* @__PURE__ */ new Set();
389
389
  c.value = [], (w = k == null ? void 0 : k.forEach) == null || w.call(k, (B) => {
390
- var I;
391
- (I = B == null ? void 0 : B.forEach) == null || I.call(B, (E) => {
390
+ var _;
391
+ (_ = B == null ? void 0 : B.forEach) == null || _.call(B, (E) => {
392
392
  V.has(E.id) || (V.add(E.id), c.value.push(E));
393
393
  });
394
394
  });
@@ -400,12 +400,12 @@ function La(e, n, t, a = {
400
400
  l.value = !1;
401
401
  }
402
402
  else
403
- l.value = !0, d.value = "", v ? (c.value = (U = f.value) == null ? void 0 : U.filter((b) => {
403
+ l.value = !0, d.value = "", I ? (c.value = (U = f.value) == null ? void 0 : U.filter((b) => {
404
404
  var k;
405
405
  let V = !1;
406
406
  for (const B of a.searchKeys) {
407
- const I = typeof b[B] == "string" ? (k = b[B]) == null ? void 0 : k.toLowerCase() : b[B];
408
- I != null && I.includes(v.toLowerCase()) && (V = !0);
407
+ const _ = typeof b[B] == "string" ? (k = b[B]) == null ? void 0 : k.toLowerCase() : b[B];
408
+ _ != null && _.includes(I.toLowerCase()) && (V = !0);
409
409
  }
410
410
  return V;
411
411
  }), (!c.value || !c.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : c.value = f.value, l.value = !1;
@@ -714,7 +714,7 @@ const re = {
714
714
  width: "100%",
715
715
  xmlns: "http://www.w3.org/2000/svg"
716
716
  }, [
717
- e.title ? (m(), T("title", or, M(e.title), 1)) : G("", !0),
717
+ e.title ? (m(), T("title", or, j(e.title), 1)) : G("", !0),
718
718
  ir
719
719
  ], 8, rr))
720
720
  ]),
@@ -810,7 +810,7 @@ const re = {
810
810
  e.truncated ? "truncated-uuid" : null,
811
811
  e.useMono ? "mono" : null
812
812
  ])
813
- }, M(u.value), 3)
813
+ }, j(u.value), 3)
814
814
  ]),
815
815
  _: 1
816
816
  }, 16)) : G("", !0),
@@ -878,7 +878,7 @@ const re = {
878
878
  }, {
879
879
  default: y(() => [
880
880
  e.isArrayItem ? (m(), T("legend", mr, [
881
- K("b", null, M(s.value), 1)
881
+ K("b", null, j(s.value), 1)
882
882
  ])) : G("", !0),
883
883
  (m(!0), T(fe, null, de(Object.keys(i.value), (d, c) => (m(), R(bt, {
884
884
  key: `${r.value}-property-${c}`,
@@ -917,7 +917,7 @@ const re = {
917
917
  onClick: a[0] || (a[0] = (o) => t.$emit("navigation-click", e.item))
918
918
  }, {
919
919
  default: y(() => [
920
- W(M(e.item.value || g(n)("baseConfigCard.commonFields.link")), 1)
920
+ W(j(e.item.value || g(n)("baseConfigCard.commonFields.link")), 1)
921
921
  ]),
922
922
  _: 1
923
923
  })
@@ -940,13 +940,13 @@ const re = {
940
940
  appearance: e.status ? "success" : "neutral"
941
941
  }, {
942
942
  default: y(() => [
943
- W(M(e.status ? g(n)("baseConfigCard.statusBadge.enabledLabel") : g(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
943
+ W(j(e.status ? g(n)("baseConfigCard.statusBadge.enabledLabel") : g(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
944
944
  ]),
945
945
  _: 1
946
946
  }, 8, ["appearance"]);
947
947
  };
948
948
  }
949
- }), br = "#0044f4", Cr = "#e0e4ea", kr = "#3a3f51", wr = "1px", _r = "20px", Ir = { class: "config-card-details-row" }, Ar = ["data-testid"], Sr = ["data-testid"], xr = ["data-testid"], Tr = ["data-testid"], $r = { key: 1 }, Mr = ["data-testid"], jr = ["data-testid"], Or = ["data-testid"], Er = ["data-testid"], Fr = {
949
+ }), br = "#0044f4", Cr = "#e0e4ea", kr = "#3a3f51", wr = "1px", _r = "20px", Ir = { class: "config-card-details-row" }, Ar = ["data-testid"], Sr = ["data-testid"], xr = ["data-testid"], Tr = ["data-testid"], $r = { key: 1 }, jr = ["data-testid"], Mr = ["data-testid"], Or = ["data-testid"], Er = ["data-testid"], Fr = {
950
950
  name: "ConfigCardItem",
951
951
  components: { CopyUuid: vn, JsonCardItem: bn, StatusBadge: vr, InternalLinkItem: hr }
952
952
  }, Kr = /* @__PURE__ */ te({
@@ -971,10 +971,10 @@ const re = {
971
971
  setup(e, { emit: n }) {
972
972
  const t = e;
973
973
  ma((f) => ({
974
- "23f3018c": u.value ? "none" : `solid ${g(wr)} ${g(Cr)}`,
975
- "3815ec6d": l.value && i.value ? "block" : "flex",
976
- "1957f153": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
977
- "195a372e": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
974
+ "0fea14db": u.value ? "none" : `solid ${g(wr)} ${g(Cr)}`,
975
+ "1cf0460e": l.value && i.value ? "block" : "flex",
976
+ "328cca12": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
977
+ "328f0fed": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
978
978
  }));
979
979
  const a = We(), { i18n: { t: r, formatUnixTimeStamp: o } } = re.useI18n(), i = $(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = $(() => !!(t.item.tooltip || a["label-tooltip"])), l = $(() => t.item.type === X.Json || t.item.type === X.JsonArray), u = $(() => t.item.type === X.JsonArray), d = $(() => {
980
980
  switch (t.item.type) {
@@ -1104,7 +1104,7 @@ const re = {
1104
1104
  }
1105
1105
  }), c = O(), { isTruncated: h } = re.useTruncationDetector(c);
1106
1106
  return (f, A) => {
1107
- const C = P("KLabel"), p = P("KBadge"), S = P("KMethodBadge"), _ = P("KTooltip");
1107
+ const C = P("KLabel"), p = P("KBadge"), S = P("KTooltip");
1108
1108
  return m(), T("div", Ir, [
1109
1109
  K("div", {
1110
1110
  class: "config-card-details-label",
@@ -1113,7 +1113,7 @@ const re = {
1113
1113
  Y(f.$slots, "label", { item: e.item }, () => [
1114
1114
  F(C, { "tooltip-attributes": { maxWidth: "500px" } }, Ce({
1115
1115
  default: y(() => [
1116
- W(M(e.item.label) + " ", 1)
1116
+ W(j(e.item.label) + " ", 1)
1117
1117
  ]),
1118
1118
  _: 2
1119
1119
  }, [
@@ -1124,7 +1124,7 @@ const re = {
1124
1124
  "data-testid": `${e.item.key}-label-tooltip`
1125
1125
  }, [
1126
1126
  Y(f.$slots, "label-tooltip", {}, () => [
1127
- W(M(e.item.tooltip), 1)
1127
+ W(j(e.item.tooltip), 1)
1128
1128
  ], !0)
1129
1129
  ], 8, Sr)
1130
1130
  ]),
@@ -1147,58 +1147,57 @@ const re = {
1147
1147
  key: 0,
1148
1148
  "data-testid": `${e.item.key}-badge-tags`
1149
1149
  }, [
1150
- (m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), R(p, {
1151
- key: `${e.item.key}-badge-tag-${v}`,
1150
+ (m(!0), T(fe, null, de(e.item.value, (v, q) => (m(), R(p, {
1151
+ key: `${e.item.key}-badge-tag-${q}`,
1152
1152
  class: "config-badge",
1153
- "data-testid": `${e.item.key}-badge-tag-${v}`,
1154
- "truncation-tooltip": q
1153
+ "data-testid": `${e.item.key}-badge-tag-${q}`,
1154
+ tooltip: v,
1155
+ "truncation-tooltip": ""
1155
1156
  }, {
1156
1157
  default: y(() => [
1157
- W(M(q), 1)
1158
+ W(j(v), 1)
1158
1159
  ]),
1159
1160
  _: 2
1160
- }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1161
- ], 8, Mr)) : G("", !0),
1161
+ }, 1032, ["data-testid", "tooltip"]))), 128))
1162
+ ], 8, jr)) : G("", !0),
1162
1163
  d.value.additionalComponent === "CopyUuid" ? (m(), T("div", {
1163
1164
  key: 1,
1164
1165
  class: "copy-uuid-array",
1165
1166
  "data-testid": `${e.item.key}-copy-uuid-array`
1166
1167
  }, [
1167
- (m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), R(g(vn), st(d.value.childAttrs, {
1168
- key: `${e.item.key}-copy-uuid-${v}`,
1169
- "data-testid": `${e.item.key}-copy-uuid-${v}`,
1170
- uuid: q
1168
+ (m(!0), T(fe, null, de(e.item.value, (v, q) => (m(), R(g(vn), st(d.value.childAttrs, {
1169
+ key: `${e.item.key}-copy-uuid-${q}`,
1170
+ "data-testid": `${e.item.key}-copy-uuid-${q}`,
1171
+ uuid: v
1171
1172
  }), null, 16, ["data-testid", "uuid"]))), 128))
1172
- ], 8, jr)) : d.value.additionalComponent === "KMethodBadge" ? (m(), T("div", {
1173
+ ], 8, Mr)) : d.value.additionalComponent === "KMethodBadge" ? (m(), T("div", {
1173
1174
  key: 2,
1174
1175
  class: "method-badge-array",
1175
1176
  "data-testid": `${e.item.key}-badge-methods`
1176
1177
  }, [
1177
- (m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), R(S, {
1178
- key: `${e.item.key}-badge-method-${v}`,
1178
+ (m(!0), T(fe, null, de(e.item.value, (v, q) => (m(), R(p, {
1179
+ key: `${e.item.key}-badge-method-${q}`,
1180
+ appearance: Object.values(g(wa)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
1179
1181
  class: "config-badge",
1180
- "data-testid": `${e.item.key}-badge-method-${v}`,
1181
- "is-rounded": "",
1182
- label: q,
1183
- method: g(wa).includes(q.toLowerCase()) ? q.toLowerCase() : "custom"
1182
+ "data-testid": `${e.item.key}-badge-method-${q}`
1184
1183
  }, {
1185
1184
  default: y(() => [
1186
- W(M(q), 1)
1185
+ W(j(v), 1)
1187
1186
  ]),
1188
1187
  _: 2
1189
- }, 1032, ["data-testid", "label", "method"]))), 128))
1188
+ }, 1032, ["appearance", "data-testid"]))), 128))
1190
1189
  ], 8, Or)) : G("", !0),
1191
1190
  d.value.additionalComponent === "JsonCardItem" ? (m(), T("div", {
1192
1191
  key: 3,
1193
1192
  "data-testid": `${t.item.key}-json-array-content`
1194
1193
  }, [
1195
- (m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), R(bn, {
1196
- key: `json-array-item-${v}`,
1197
- index: v,
1194
+ (m(!0), T(fe, null, de(e.item.value, (v, q) => (m(), R(bn, {
1195
+ key: `json-array-item-${q}`,
1196
+ index: q,
1198
1197
  "is-array-item": "",
1199
- item: q
1198
+ item: v
1200
1199
  }, null, 8, ["index", "item"]))), 128))
1201
- ], 8, Er)) : (m(), R(_, {
1200
+ ], 8, Er)) : (m(), R(S, {
1202
1201
  key: 4,
1203
1202
  label: g(h) ? e.item.value : ""
1204
1203
  }, {
@@ -1207,7 +1206,7 @@ const re = {
1207
1206
  ref_key: "textContent",
1208
1207
  ref: c,
1209
1208
  class: Ae(["attrs-data-text", { truncated: e.truncated }])
1210
- }, M(d.value.text), 3)
1209
+ }, j(d.value.text), 3)
1211
1210
  ]),
1212
1211
  _: 1
1213
1212
  }, 8, ["label"]))
@@ -1223,7 +1222,7 @@ const re = {
1223
1222
  ]);
1224
1223
  };
1225
1224
  }
1226
- }), bt = /* @__PURE__ */ me(Kr, [["__scopeId", "data-v-e851fc7c"]]);
1225
+ }), bt = /* @__PURE__ */ me(Kr, [["__scopeId", "data-v-4c7d8cc3"]]);
1227
1226
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1228
1227
  function Cn(e) {
1229
1228
  return typeof e > "u" || e === null;
@@ -1644,21 +1643,21 @@ function ho(e, n) {
1644
1643
  function vo(e) {
1645
1644
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ae.isNegativeZero(e));
1646
1645
  }
1647
- var Mn = new oe("tag:yaml.org,2002:float", {
1646
+ var jn = new oe("tag:yaml.org,2002:float", {
1648
1647
  kind: "scalar",
1649
1648
  resolve: mo,
1650
1649
  construct: go,
1651
1650
  predicate: vo,
1652
1651
  represent: ho,
1653
1652
  defaultStyle: "lowercase"
1654
- }), jn = Sn.extend({
1653
+ }), Mn = Sn.extend({
1655
1654
  implicit: [
1656
1655
  xn,
1657
1656
  Tn,
1658
1657
  $n,
1659
- Mn
1658
+ jn
1660
1659
  ]
1661
- }), On = jn, En = new RegExp(
1660
+ }), On = Mn, En = new RegExp(
1662
1661
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1663
1662
  ), Fn = new RegExp(
1664
1663
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
@@ -1753,20 +1752,20 @@ function $o(e) {
1753
1752
  }
1754
1753
  return !0;
1755
1754
  }
1756
- function Mo(e) {
1755
+ function jo(e) {
1757
1756
  return e !== null ? e : [];
1758
1757
  }
1759
1758
  var qn = new oe("tag:yaml.org,2002:omap", {
1760
1759
  kind: "sequence",
1761
1760
  resolve: $o,
1762
- construct: Mo
1763
- }), jo = Object.prototype.toString;
1761
+ construct: jo
1762
+ }), Mo = Object.prototype.toString;
1764
1763
  function Oo(e) {
1765
1764
  if (e === null)
1766
1765
  return !0;
1767
1766
  var n, t, a, r, o, i = e;
1768
1767
  for (o = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
1769
- if (a = i[n], jo.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
1768
+ if (a = i[n], Mo.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
1770
1769
  return !1;
1771
1770
  o[n] = [r[0], a[r[0]]];
1772
1771
  }
@@ -1825,7 +1824,7 @@ function Ie(e) {
1825
1824
  function pe(e) {
1826
1825
  return e === 9 || e === 32 || e === 10 || e === 13;
1827
1826
  }
1828
- function je(e) {
1827
+ function Me(e) {
1829
1828
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1830
1829
  }
1831
1830
  function Vo(e) {
@@ -1865,7 +1864,7 @@ function zn(e, n) {
1865
1864
  };
1866
1865
  return t.snippet = Jr(t), new se(n, t);
1867
1866
  }
1868
- function j(e, n) {
1867
+ function M(e, n) {
1869
1868
  throw zn(e, n);
1870
1869
  }
1871
1870
  function ze(e, n) {
@@ -1874,15 +1873,15 @@ function ze(e, n) {
1874
1873
  var Yt = {
1875
1874
  YAML: function(e, n, t) {
1876
1875
  var a, r, o;
1877
- e.version !== null && j(e, "duplication of %YAML directive"), t.length !== 1 && j(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && j(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), o = parseInt(a[2], 10), r !== 1 && j(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && ze(e, "unsupported YAML version of the document");
1876
+ e.version !== null && M(e, "duplication of %YAML directive"), t.length !== 1 && M(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && M(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), o = parseInt(a[2], 10), r !== 1 && M(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && ze(e, "unsupported YAML version of the document");
1878
1877
  },
1879
1878
  TAG: function(e, n, t) {
1880
1879
  var a, r;
1881
- t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Un.test(a) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), we.call(e.tagMap, a) && j(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Dn.test(r) || j(e, "ill-formed tag prefix (second argument) of the TAG directive");
1880
+ t.length !== 2 && M(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Un.test(a) || M(e, "ill-formed tag handle (first argument) of the TAG directive"), we.call(e.tagMap, a) && M(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Dn.test(r) || M(e, "ill-formed tag prefix (second argument) of the TAG directive");
1882
1881
  try {
1883
1882
  r = decodeURIComponent(r);
1884
1883
  } catch {
1885
- j(e, "tag prefix is malformed: " + r);
1884
+ M(e, "tag prefix is malformed: " + r);
1886
1885
  }
1887
1886
  e.tagMap[a] = r;
1888
1887
  }
@@ -1892,22 +1891,22 @@ function ke(e, n, t, a) {
1892
1891
  if (n < t) {
1893
1892
  if (s = e.input.slice(n, t), a)
1894
1893
  for (r = 0, o = s.length; r < o; r += 1)
1895
- i = s.charCodeAt(r), i === 9 || 32 <= i && i <= 1114111 || j(e, "expected valid JSON character");
1894
+ i = s.charCodeAt(r), i === 9 || 32 <= i && i <= 1114111 || M(e, "expected valid JSON character");
1896
1895
  else
1897
- qo.test(s) && j(e, "the stream contains non-printable characters");
1896
+ qo.test(s) && M(e, "the stream contains non-printable characters");
1898
1897
  e.result += s;
1899
1898
  }
1900
1899
  }
1901
1900
  function Wt(e, n, t, a) {
1902
1901
  var r, o, i, s;
1903
- for (ae.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), i = 0, s = r.length; i < s; i += 1)
1902
+ for (ae.isObject(t) || M(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), i = 0, s = r.length; i < s; i += 1)
1904
1903
  o = r[i], we.call(n, o) || (n[o] = t[o], a[o] = !0);
1905
1904
  }
1906
1905
  function Oe(e, n, t, a, r, o, i, s, l) {
1907
1906
  var u, d;
1908
1907
  if (Array.isArray(r))
1909
1908
  for (r = Array.prototype.slice.call(r), u = 0, d = r.length; u < d; u += 1)
1910
- Array.isArray(r[u]) && j(e, "nested arrays are not supported inside keys"), typeof r == "object" && zt(r[u]) === "[object Object]" && (r[u] = "[object Object]");
1909
+ Array.isArray(r[u]) && M(e, "nested arrays are not supported inside keys"), typeof r == "object" && zt(r[u]) === "[object Object]" && (r[u] = "[object Object]");
1911
1910
  if (typeof r == "object" && zt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), a === "tag:yaml.org,2002:merge")
1912
1911
  if (Array.isArray(o))
1913
1912
  for (u = 0, d = o.length; u < d; u += 1)
@@ -1915,7 +1914,7 @@ function Oe(e, n, t, a, r, o, i, s, l) {
1915
1914
  else
1916
1915
  Wt(e, n, o, t);
1917
1916
  else
1918
- !e.json && !we.call(t, r) && we.call(n, r) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, j(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, {
1917
+ !e.json && !we.call(t, r) && we.call(n, r) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, M(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, {
1919
1918
  configurable: !0,
1920
1919
  enumerable: !0,
1921
1920
  writable: !0,
@@ -1925,7 +1924,7 @@ function Oe(e, n, t, a, r, o, i, s, l) {
1925
1924
  }
1926
1925
  function wt(e) {
1927
1926
  var n;
1928
- n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : j(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1927
+ n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : M(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1929
1928
  }
1930
1929
  function ne(e, n, t) {
1931
1930
  for (var a = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
@@ -1953,17 +1952,17 @@ function _t(e, n) {
1953
1952
  }
1954
1953
  function Ho(e, n, t) {
1955
1954
  var a, r, o, i, s, l, u, d, c = e.kind, h = e.result, f;
1956
- if (f = e.input.charCodeAt(e.position), pe(f) || je(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (r = e.input.charCodeAt(e.position + 1), pe(r) || t && je(r)))
1955
+ if (f = e.input.charCodeAt(e.position), pe(f) || Me(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (r = e.input.charCodeAt(e.position + 1), pe(r) || t && Me(r)))
1957
1956
  return !1;
1958
1957
  for (e.kind = "scalar", e.result = "", o = i = e.position, s = !1; f !== 0; ) {
1959
1958
  if (f === 58) {
1960
- if (r = e.input.charCodeAt(e.position + 1), pe(r) || t && je(r))
1959
+ if (r = e.input.charCodeAt(e.position + 1), pe(r) || t && Me(r))
1961
1960
  break;
1962
1961
  } else if (f === 35) {
1963
1962
  if (a = e.input.charCodeAt(e.position - 1), pe(a))
1964
1963
  break;
1965
1964
  } else {
1966
- if (e.position === e.lineStart && Qe(e) || t && je(f))
1965
+ if (e.position === e.lineStart && Qe(e) || t && Me(f))
1967
1966
  break;
1968
1967
  if (ye(f))
1969
1968
  if (l = e.line, u = e.lineStart, d = e.lineIndent, ne(e, !1, -1), e.lineIndent >= n) {
@@ -1989,8 +1988,8 @@ function zo(e, n) {
1989
1988
  else
1990
1989
  return !0;
1991
1990
  else
1992
- ye(t) ? (ke(e, a, r, !0), _t(e, ne(e, !1, n)), a = r = e.position) : e.position === e.lineStart && Qe(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1993
- j(e, "unexpected end of the stream within a single quoted scalar");
1991
+ ye(t) ? (ke(e, a, r, !0), _t(e, ne(e, !1, n)), a = r = e.position) : e.position === e.lineStart && Qe(e) ? M(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1992
+ M(e, "unexpected end of the stream within a single quoted scalar");
1994
1993
  }
1995
1994
  function Jo(e, n) {
1996
1995
  var t, a, r, o, i, s;
@@ -2006,30 +2005,30 @@ function Jo(e, n) {
2006
2005
  e.result += Hn[s], e.position++;
2007
2006
  else if ((i = Ro(s)) > 0) {
2008
2007
  for (r = i, o = 0; r > 0; r--)
2009
- s = e.input.charCodeAt(++e.position), (i = Vo(s)) >= 0 ? o = (o << 4) + i : j(e, "expected hexadecimal character");
2008
+ s = e.input.charCodeAt(++e.position), (i = Vo(s)) >= 0 ? o = (o << 4) + i : M(e, "expected hexadecimal character");
2010
2009
  e.result += Do(o), e.position++;
2011
2010
  } else
2012
- j(e, "unknown escape sequence");
2011
+ M(e, "unknown escape sequence");
2013
2012
  t = a = e.position;
2014
2013
  } else
2015
- ye(s) ? (ke(e, t, a, !0), _t(e, ne(e, !1, n)), t = a = e.position) : e.position === e.lineStart && Qe(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
2014
+ ye(s) ? (ke(e, t, a, !0), _t(e, ne(e, !1, n)), t = a = e.position) : e.position === e.lineStart && Qe(e) ? M(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
2016
2015
  }
2017
- j(e, "unexpected end of the stream within a double quoted scalar");
2016
+ M(e, "unexpected end of the stream within a double quoted scalar");
2018
2017
  }
2019
2018
  function Yo(e, n) {
2020
- var t = !0, a, r, o, i = e.tag, s, l = e.anchor, u, d, c, h, f, A = /* @__PURE__ */ Object.create(null), C, p, S, _;
2021
- if (_ = e.input.charCodeAt(e.position), _ === 91)
2019
+ var t = !0, a, r, o, i = e.tag, s, l = e.anchor, u, d, c, h, f, A = /* @__PURE__ */ Object.create(null), C, p, S, v;
2020
+ if (v = e.input.charCodeAt(e.position), v === 91)
2022
2021
  d = 93, f = !1, s = [];
2023
- else if (_ === 123)
2022
+ else if (v === 123)
2024
2023
  d = 125, f = !0, s = {};
2025
2024
  else
2026
2025
  return !1;
2027
- for (e.anchor !== null && (e.anchorMap[e.anchor] = s), _ = e.input.charCodeAt(++e.position); _ !== 0; ) {
2028
- if (ne(e, !0, n), _ = e.input.charCodeAt(e.position), _ === d)
2026
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0; ) {
2027
+ if (ne(e, !0, n), v = e.input.charCodeAt(e.position), v === d)
2029
2028
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
2030
- t ? _ === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = C = S = null, c = h = !1, _ === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (c = h = !0, e.position++, ne(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Fe(e, n, Ge, !1, !0), p = e.tag, C = e.result, ne(e, !0, n), _ = e.input.charCodeAt(e.position), (h || e.line === a) && _ === 58 && (c = !0, _ = e.input.charCodeAt(++e.position), ne(e, !0, n), Fe(e, n, Ge, !1, !0), S = e.result), f ? Oe(e, s, A, p, C, S, a, r, o) : c ? s.push(Oe(e, null, A, p, C, S, a, r, o)) : s.push(C), ne(e, !0, n), _ = e.input.charCodeAt(e.position), _ === 44 ? (t = !0, _ = e.input.charCodeAt(++e.position)) : t = !1;
2029
+ t ? v === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), p = C = S = null, c = h = !1, v === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (c = h = !0, e.position++, ne(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Fe(e, n, Ge, !1, !0), p = e.tag, C = e.result, ne(e, !0, n), v = e.input.charCodeAt(e.position), (h || e.line === a) && v === 58 && (c = !0, v = e.input.charCodeAt(++e.position), ne(e, !0, n), Fe(e, n, Ge, !1, !0), S = e.result), f ? Oe(e, s, A, p, C, S, a, r, o) : c ? s.push(Oe(e, null, A, p, C, S, a, r, o)) : s.push(C), ne(e, !0, n), v = e.input.charCodeAt(e.position), v === 44 ? (t = !0, v = e.input.charCodeAt(++e.position)) : t = !1;
2031
2030
  }
2032
- j(e, "unexpected end of the stream within a flow collection");
2031
+ M(e, "unexpected end of the stream within a flow collection");
2033
2032
  }
2034
2033
  function Wo(e, n) {
2035
2034
  var t, a, r = it, o = !1, i = !1, s = n, l = 0, u = !1, d, c;
@@ -2041,9 +2040,9 @@ function Wo(e, n) {
2041
2040
  return !1;
2042
2041
  for (e.kind = "scalar", e.result = ""; c !== 0; )
2043
2042
  if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
2044
- it === r ? r = c === 43 ? Ht : Bo : j(e, "repeat of a chomping mode identifier");
2043
+ it === r ? r = c === 43 ? Ht : Bo : M(e, "repeat of a chomping mode identifier");
2045
2044
  else if ((d = Uo(c)) >= 0)
2046
- d === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? j(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
2045
+ d === 0 ? M(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? M(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
2047
2046
  else
2048
2047
  break;
2049
2048
  if (Ie(c)) {
@@ -2082,44 +2081,44 @@ function Zt(e, n) {
2082
2081
  var t, a = e.tag, r = e.anchor, o = [], i, s = !1, l;
2083
2082
  if (e.firstTabInLine !== -1)
2084
2083
  return !1;
2085
- for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !pe(i)))); ) {
2084
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !pe(i)))); ) {
2086
2085
  if (s = !0, e.position++, ne(e, !0, -1) && e.lineIndent <= n) {
2087
2086
  o.push(null), l = e.input.charCodeAt(e.position);
2088
2087
  continue;
2089
2088
  }
2090
2089
  if (t = e.line, Fe(e, n, Rn, !1, !0), o.push(e.result), ne(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2091
- j(e, "bad indentation of a sequence entry");
2090
+ M(e, "bad indentation of a sequence entry");
2092
2091
  else if (e.lineIndent < n)
2093
2092
  break;
2094
2093
  }
2095
2094
  return s ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
2096
2095
  }
2097
2096
  function Zo(e, n, t) {
2098
- var a, r, o, i, s, l, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, A = null, C = null, p = !1, S = !1, _;
2097
+ var a, r, o, i, s, l, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, A = null, C = null, p = !1, S = !1, v;
2099
2098
  if (e.firstTabInLine !== -1)
2100
2099
  return !1;
2101
- for (e.anchor !== null && (e.anchorMap[e.anchor] = c), _ = e.input.charCodeAt(e.position); _ !== 0; ) {
2102
- if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (_ === 63 || _ === 58) && pe(a))
2103
- _ === 63 ? (p && (Oe(e, c, h, f, A, null, i, s, l), f = A = C = null), S = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, _ = a;
2100
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = c), v = e.input.charCodeAt(e.position); v !== 0; ) {
2101
+ if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (v === 63 || v === 58) && pe(a))
2102
+ v === 63 ? (p && (Oe(e, c, h, f, A, null, i, s, l), f = A = C = null), S = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = a;
2104
2103
  else {
2105
2104
  if (i = e.line, s = e.lineStart, l = e.position, !Fe(e, t, Vn, !1, !0))
2106
2105
  break;
2107
2106
  if (e.line === o) {
2108
- for (_ = e.input.charCodeAt(e.position); Ie(_); )
2109
- _ = e.input.charCodeAt(++e.position);
2110
- if (_ === 58)
2111
- _ = e.input.charCodeAt(++e.position), pe(_) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Oe(e, c, h, f, A, null, i, s, l), f = A = C = null), S = !0, p = !1, r = !1, f = e.tag, A = e.result;
2107
+ for (v = e.input.charCodeAt(e.position); Ie(v); )
2108
+ v = e.input.charCodeAt(++e.position);
2109
+ if (v === 58)
2110
+ v = e.input.charCodeAt(++e.position), pe(v) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Oe(e, c, h, f, A, null, i, s, l), f = A = C = null), S = !0, p = !1, r = !1, f = e.tag, A = e.result;
2112
2111
  else if (S)
2113
- j(e, "can not read an implicit mapping pair; a colon is missed");
2112
+ M(e, "can not read an implicit mapping pair; a colon is missed");
2114
2113
  else
2115
2114
  return e.tag = u, e.anchor = d, !0;
2116
2115
  } else if (S)
2117
- j(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2116
+ M(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2118
2117
  else
2119
2118
  return e.tag = u, e.anchor = d, !0;
2120
2119
  }
2121
- if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, He, !0, r) && (p ? A = e.result : C = e.result), p || (Oe(e, c, h, f, A, C, i, s, l), f = A = C = null), ne(e, !0, -1), _ = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && _ !== 0)
2122
- j(e, "bad indentation of a mapping entry");
2120
+ if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, He, !0, r) && (p ? A = e.result : C = e.result), p || (Oe(e, c, h, f, A, C, i, s, l), f = A = C = null), ne(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && v !== 0)
2121
+ M(e, "bad indentation of a mapping entry");
2123
2122
  else if (e.lineIndent < n)
2124
2123
  break;
2125
2124
  }
@@ -2129,49 +2128,49 @@ function Qo(e) {
2129
2128
  var n, t = !1, a = !1, r, o, i;
2130
2129
  if (i = e.input.charCodeAt(e.position), i !== 33)
2131
2130
  return !1;
2132
- if (e.tag !== null && j(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (a = !0, r = "!!", i = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, t) {
2131
+ if (e.tag !== null && M(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (a = !0, r = "!!", i = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, t) {
2133
2132
  do
2134
2133
  i = e.input.charCodeAt(++e.position);
2135
2134
  while (i !== 0 && i !== 62);
2136
- e.position < e.length ? (o = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : j(e, "unexpected end of the stream within a verbatim tag");
2135
+ e.position < e.length ? (o = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : M(e, "unexpected end of the stream within a verbatim tag");
2137
2136
  } else {
2138
2137
  for (; i !== 0 && !pe(i); )
2139
- i === 33 && (a ? j(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), Un.test(r) || j(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2140
- o = e.input.slice(n, e.position), Po.test(o) && j(e, "tag suffix cannot contain flow indicator characters");
2138
+ i === 33 && (a ? M(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), Un.test(r) || M(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2139
+ o = e.input.slice(n, e.position), Po.test(o) && M(e, "tag suffix cannot contain flow indicator characters");
2141
2140
  }
2142
- o && !Dn.test(o) && j(e, "tag name cannot contain such characters: " + o);
2141
+ o && !Dn.test(o) && M(e, "tag name cannot contain such characters: " + o);
2143
2142
  try {
2144
2143
  o = decodeURIComponent(o);
2145
2144
  } catch {
2146
- j(e, "tag name is malformed: " + o);
2145
+ M(e, "tag name is malformed: " + o);
2147
2146
  }
2148
- return t ? e.tag = o : we.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : j(e, 'undeclared tag handle "' + r + '"'), !0;
2147
+ return t ? e.tag = o : we.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : M(e, 'undeclared tag handle "' + r + '"'), !0;
2149
2148
  }
2150
2149
  function Xo(e) {
2151
2150
  var n, t;
2152
2151
  if (t = e.input.charCodeAt(e.position), t !== 38)
2153
2152
  return !1;
2154
- for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !pe(t) && !je(t); )
2153
+ for (e.anchor !== null && M(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !pe(t) && !Me(t); )
2155
2154
  t = e.input.charCodeAt(++e.position);
2156
- return e.position === n && j(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2155
+ return e.position === n && M(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2157
2156
  }
2158
2157
  function ei(e) {
2159
2158
  var n, t, a;
2160
2159
  if (a = e.input.charCodeAt(e.position), a !== 42)
2161
2160
  return !1;
2162
- for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !pe(a) && !je(a); )
2161
+ for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !pe(a) && !Me(a); )
2163
2162
  a = e.input.charCodeAt(++e.position);
2164
- return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), we.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ne(e, !0, -1), !0;
2163
+ return e.position === n && M(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), we.call(e.anchorMap, t) || M(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ne(e, !0, -1), !0;
2165
2164
  }
2166
2165
  function Fe(e, n, t, a, r) {
2167
2166
  var o, i, s, l = 1, u = !1, d = !1, c, h, f, A, C, p;
2168
2167
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = He === t || Rn === t, a && ne(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2169
2168
  for (; Qo(e) || Xo(e); )
2170
2169
  ne(e, !0, -1) ? (u = !0, s = o, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2171
- if (s && (s = u || r), (l === 1 || He === t) && (Ge === t || Vn === t ? C = n : C = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Zt(e, p) || Zo(e, p, C)) || Yo(e, C) ? d = !0 : (i && Wo(e, C) || zo(e, C) || Jo(e, C) ? d = !0 : ei(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Ho(e, C, Ge === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Zt(e, p))), e.tag === null)
2170
+ if (s && (s = u || r), (l === 1 || He === t) && (Ge === t || Vn === t ? C = n : C = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Zt(e, p) || Zo(e, p, C)) || Yo(e, C) ? d = !0 : (i && Wo(e, C) || zo(e, C) || Jo(e, C) ? d = !0 : ei(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && M(e, "alias node should not have any properties")) : Ho(e, C, Ge === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Zt(e, p))), e.tag === null)
2172
2171
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2173
2172
  else if (e.tag === "?") {
2174
- for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
2173
+ for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
2175
2174
  if (A = e.implicitTypes[c], A.resolve(e.result)) {
2176
2175
  e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2177
2176
  break;
@@ -2185,7 +2184,7 @@ function Fe(e, n, t, a, r) {
2185
2184
  A = f[c];
2186
2185
  break;
2187
2186
  }
2188
- A || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : j(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2187
+ A || M(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && M(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : M(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2189
2188
  }
2190
2189
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2191
2190
  }
@@ -2194,7 +2193,7 @@ function ti(e) {
2194
2193
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (ne(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2195
2194
  for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !pe(i); )
2196
2195
  i = e.input.charCodeAt(++e.position);
2197
- for (a = e.input.slice(t, e.position), r = [], a.length < 1 && j(e, "directive name must not be less than one character in length"); i !== 0; ) {
2196
+ for (a = e.input.slice(t, e.position), r = [], a.length < 1 && M(e, "directive name must not be less than one character in length"); i !== 0; ) {
2198
2197
  for (; Ie(i); )
2199
2198
  i = e.input.charCodeAt(++e.position);
2200
2199
  if (i === 35) {
@@ -2211,12 +2210,12 @@ function ti(e) {
2211
2210
  }
2212
2211
  i !== 0 && wt(e), we.call(Yt, a) ? Yt[a](e, a, r) : ze(e, 'unknown document directive "' + a + '"');
2213
2212
  }
2214
- if (ne(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ne(e, !0, -1)) : o && j(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, He, !1, !0), ne(e, !0, -1), e.checkLineBreaks && Lo.test(e.input.slice(n, e.position)) && ze(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Qe(e)) {
2213
+ if (ne(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, ne(e, !0, -1)) : o && M(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, He, !1, !0), ne(e, !0, -1), e.checkLineBreaks && Lo.test(e.input.slice(n, e.position)) && ze(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Qe(e)) {
2215
2214
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, ne(e, !0, -1));
2216
2215
  return;
2217
2216
  }
2218
2217
  if (e.position < e.length - 1)
2219
- j(e, "end of the stream or a document separator is expected");
2218
+ M(e, "end of the stream or a document separator is expected");
2220
2219
  else
2221
2220
  return;
2222
2221
  }
@@ -2224,7 +2223,7 @@ function Jn(e, n) {
2224
2223
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2225
2224
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2226
2225
  var t = new Go(e, n), a = e.indexOf("\0");
2227
- for (a !== -1 && (t.position = a, j(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2226
+ for (a !== -1 && (t.position = a, M(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2228
2227
  t.lineIndent += 1, t.position += 1;
2229
2228
  for (; t.position < t.length - 1; )
2230
2229
  ti(t);
@@ -2347,7 +2346,7 @@ function en(e, n, t) {
2347
2346
  function $i(e) {
2348
2347
  return Re(e) && e !== It && !Ye(e) && e !== gi && e !== vi && e !== Je && e !== Qn && e !== Xn && e !== ea && e !== ta && e !== na && e !== ct && e !== pi && e !== mi && e !== ui && e !== ki && e !== yi && e !== hi && e !== fi && e !== ci && e !== di && e !== bi && e !== Ci;
2349
2348
  }
2350
- function Mi(e) {
2349
+ function ji(e) {
2351
2350
  return !Ye(e) && e !== Je;
2352
2351
  }
2353
2352
  function Ne(e, n) {
@@ -2358,13 +2357,13 @@ function aa(e) {
2358
2357
  var n = /^\n* /;
2359
2358
  return n.test(e);
2360
2359
  }
2361
- var ra = 1, pt = 2, oa = 3, ia = 4, Me = 5;
2362
- function ji(e, n, t, a, r, o, i, s) {
2363
- var l, u = 0, d = null, c = !1, h = !1, f = a !== -1, A = -1, C = $i(Ne(e, 0)) && Mi(Ne(e, e.length - 1));
2360
+ var ra = 1, pt = 2, oa = 3, ia = 4, je = 5;
2361
+ function Mi(e, n, t, a, r, o, i, s) {
2362
+ var l, u = 0, d = null, c = !1, h = !1, f = a !== -1, A = -1, C = $i(Ne(e, 0)) && ji(Ne(e, e.length - 1));
2364
2363
  if (n || i)
2365
2364
  for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2366
2365
  if (u = Ne(e, l), !Re(u))
2367
- return Me;
2366
+ return je;
2368
2367
  C = C && en(u, d, s), d = u;
2369
2368
  }
2370
2369
  else {
@@ -2373,12 +2372,12 @@ function ji(e, n, t, a, r, o, i, s) {
2373
2372
  c = !0, f && (h = h || // Foldable line = too long, and not more-indented.
2374
2373
  l - A - 1 > a && e[A + 1] !== " ", A = l);
2375
2374
  else if (!Re(u))
2376
- return Me;
2375
+ return je;
2377
2376
  C = C && en(u, d, s), d = u;
2378
2377
  }
2379
2378
  h = h || f && l - A - 1 > a && e[A + 1] !== " ";
2380
2379
  }
2381
- return !c && !h ? C && !i && !r(e) ? ra : o === Ve ? Me : pt : t > 9 && aa(e) ? Me : i ? o === Ve ? Me : pt : h ? ia : oa;
2380
+ return !c && !h ? C && !i && !r(e) ? ra : o === Ve ? je : pt : t > 9 && aa(e) ? je : i ? o === Ve ? je : pt : h ? ia : oa;
2382
2381
  }
2383
2382
  function Oi(e, n, t, a, r) {
2384
2383
  e.dump = function() {
@@ -2390,7 +2389,7 @@ function Oi(e, n, t, a, r) {
2390
2389
  function l(u) {
2391
2390
  return Ti(e, u);
2392
2391
  }
2393
- switch (ji(
2392
+ switch (Mi(
2394
2393
  n,
2395
2394
  s,
2396
2395
  e.indent,
@@ -2408,7 +2407,7 @@ function Oi(e, n, t, a, r) {
2408
2407
  return "|" + tn(n, e.indent) + nn(Qt(n, o));
2409
2408
  case ia:
2410
2409
  return ">" + tn(n, e.indent) + nn(Qt(Ei(n, i), o));
2411
- case Me:
2410
+ case je:
2412
2411
  return '"' + Fi(n) + '"';
2413
2412
  default:
2414
2413
  throw new se("impossible error: invalid scalar style");
@@ -2561,9 +2560,9 @@ function At(e, n) {
2561
2560
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2562
2561
  };
2563
2562
  }
2564
- var Ri = oe, Ui = wn, Di = Sn, Gi = jn, Hi = On, zi = kt, Ji = Yn.load, Yi = Yn.loadAll, Wi = Vi.dump, Zi = se, Qi = {
2563
+ var Ri = oe, Ui = wn, Di = Sn, Gi = Mn, Hi = On, zi = kt, Ji = Yn.load, Yi = Yn.loadAll, Wi = Vi.dump, Zi = se, Qi = {
2565
2564
  binary: Bn,
2566
- float: Mn,
2565
+ float: jn,
2567
2566
  map: An,
2568
2567
  null: xn,
2569
2568
  pairs: Ln,
@@ -2644,7 +2643,7 @@ const as = {
2644
2643
  class: Ae(`config-card-details-${d}-props`),
2645
2644
  "data-testid": `config-card-details-${d}-props`
2646
2645
  }, [
2647
- d !== "basic" ? (m(), T("div", os, M(d === "advanced" ? g(a)("baseConfigCard.sections.advanced") : g(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2646
+ d !== "basic" ? (m(), T("div", os, j(d === "advanced" ? g(a)("baseConfigCard.sections.advanced") : g(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2648
2647
  (m(!0), T(fe, null, de(e.propertyCollections[d], (c) => (m(), R(bt, {
2649
2648
  key: c.key,
2650
2649
  item: c
@@ -2786,7 +2785,7 @@ const as = {
2786
2785
  width: "100%",
2787
2786
  xmlns: "http://www.w3.org/2000/svg"
2788
2787
  }, [
2789
- e.title ? (m(), T("title", fs, M(e.title), 1)) : G("", !0),
2788
+ e.title ? (m(), T("title", fs, j(e.title), 1)) : G("", !0),
2790
2789
  ms
2791
2790
  ], 8, ps))
2792
2791
  ]),
@@ -2933,11 +2932,11 @@ const as = {
2933
2932
  var b, k, V;
2934
2933
  if (!p.value)
2935
2934
  return [];
2936
- const B = [], I = Object.keys(p.value).length;
2935
+ const B = [], _ = Object.keys(p.value).length;
2937
2936
  for (const E in p.value) {
2938
2937
  const L = (k = (b = a.configSchema) == null ? void 0 : b[E]) == null ? void 0 : k.order, D = (V = h[E]) == null ? void 0 : V.order;
2939
- let Z = I;
2940
- (D || D === 0) && (Z = D === -1 ? I + 1 : D), L && (Z = L === -1 ? I + 1 : L), B.push([E, Z]);
2938
+ let Z = _;
2939
+ (D || D === 0) && (Z = D === -1 ? _ + 1 : D), L && (Z = L === -1 ? _ + 1 : L), B.push([E, Z]);
2941
2940
  }
2942
2941
  return B.sort(function(E, L) {
2943
2942
  return E[1] - L[1];
@@ -2954,19 +2953,19 @@ const as = {
2954
2953
  section: Q.section ?? ((le == null ? void 0 : le.section) || ce.Advanced)
2955
2954
  };
2956
2955
  }).filter((E) => !E.hidden && E.key !== a.pluginConfigKey);
2957
- }), _ = $(() => {
2956
+ }), v = $(() => {
2958
2957
  var b, k;
2959
2958
  if (!p.value || !a.pluginConfigKey)
2960
2959
  return [];
2961
- const V = p.value[a.pluginConfigKey] || {}, B = Object.keys(V).length, I = [];
2960
+ const V = p.value[a.pluginConfigKey] || {}, B = Object.keys(V).length, _ = [];
2962
2961
  for (const E in V) {
2963
2962
  const L = (k = (b = a.pluginConfigSchema) == null ? void 0 : b[E]) == null ? void 0 : k.order, D = V[E];
2964
2963
  let Z = D != null && D !== "" ? B - 1 : B;
2965
- L && (Z = L === -1 ? B + 1 : L), I.push([E, Z]);
2964
+ L && (Z = L === -1 ? B + 1 : L), _.push([E, Z]);
2966
2965
  }
2967
- return I.sort(function(E, L) {
2966
+ return _.sort(function(E, L) {
2968
2967
  return E[1] - L[1];
2969
- }), I.map((E) => {
2968
+ }), _.map((E) => {
2970
2969
  var L;
2971
2970
  const D = E[0], Z = V[D], z = ((L = a.pluginConfigSchema) == null ? void 0 : L[D]) || {};
2972
2971
  return {
@@ -2982,11 +2981,11 @@ const as = {
2982
2981
  }), q = $(() => {
2983
2982
  var b, k, V, B;
2984
2983
  return {
2985
- basic: (b = S.value) == null ? void 0 : b.filter((I) => I.section === ce.Basic),
2986
- advanced: (k = S.value) == null ? void 0 : k.filter((I) => I.section === ce.Advanced),
2987
- plugin: (B = _.value) == null ? void 0 : B.concat((V = S.value) == null ? void 0 : V.filter((I) => I.section === ce.Plugin))
2984
+ basic: (b = S.value) == null ? void 0 : b.filter((_) => _.section === ce.Basic),
2985
+ advanced: (k = S.value) == null ? void 0 : k.filter((_) => _.section === ce.Advanced),
2986
+ plugin: (B = v.value) == null ? void 0 : B.concat((V = S.value) == null ? void 0 : V.filter((_) => _.section === ce.Plugin))
2988
2987
  };
2989
- }), v = $(() => {
2988
+ }), I = $(() => {
2990
2989
  const b = [];
2991
2990
  return q.value.basic.length && b.push("basic"), q.value.advanced.length && b.push("advanced"), q.value.plugin.length && b.push("plugin"), b;
2992
2991
  }), w = (b) => !!(b.tooltip || r[`${b.key}-label-tooltip`]), N = $(() => {
@@ -3019,7 +3018,7 @@ const as = {
3019
3018
  f.value = !1;
3020
3019
  }
3021
3020
  }), (b, k) => {
3022
- const V = P("KLabel"), B = P("KSelect"), I = P("KButton"), E = P("KClipboardProvider"), L = P("KSkeleton"), D = P("KEmptyState"), Z = P("KCard");
3021
+ const V = P("KLabel"), B = P("KSelect"), _ = P("KButton"), E = P("KClipboardProvider"), L = P("KSkeleton"), D = P("KEmptyState"), Z = P("KCard");
3023
3022
  return m(), R(Z, { class: "kong-ui-entity-base-config-card" }, Ce({
3024
3023
  actions: y(() => [
3025
3024
  K("div", vs, [
@@ -3030,7 +3029,7 @@ const as = {
3030
3029
  "data-testid": "config-format-select-label"
3031
3030
  }, {
3032
3031
  default: y(() => [
3033
- W(M(e.label), 1)
3032
+ W(j(e.label), 1)
3034
3033
  ]),
3035
3034
  _: 1
3036
3035
  })) : G("", !0),
@@ -3041,7 +3040,7 @@ const as = {
3041
3040
  items: u,
3042
3041
  onChange: c
3043
3042
  })) : G("", !0),
3044
- a.config.jsonYamlEnabled && e.configCardDoc ? (m(), R(I, {
3043
+ a.config.jsonYamlEnabled && e.configCardDoc ? (m(), R(_, {
3045
3044
  key: 2,
3046
3045
  appearance: "tertiary",
3047
3046
  class: "book-icon",
@@ -3060,14 +3059,14 @@ const as = {
3060
3059
  })) : G("", !0),
3061
3060
  e.config.jsonYamlEnabled ? G("", !0) : (m(), R(E, { key: 3 }, {
3062
3061
  default: y(({ copyToClipboard: z }) => [
3063
- !f.value && !A.value ? (m(), R(I, {
3062
+ !f.value && !A.value ? (m(), R(_, {
3064
3063
  key: 0,
3065
3064
  appearance: "tertiary",
3066
3065
  "data-testid": "json-copy-button",
3067
3066
  onClick: (Q) => U(z)
3068
3067
  }, {
3069
3068
  default: y(() => [
3070
- W(M(g(o)("baseConfigCard.actions.copy")), 1)
3069
+ W(j(g(o)("baseConfigCard.actions.copy")), 1)
3071
3070
  ]),
3072
3071
  _: 2
3073
3072
  }, 1032, ["onClick"])) : G("", !0)
@@ -3088,14 +3087,14 @@ const as = {
3088
3087
  "is-error": ""
3089
3088
  }, {
3090
3089
  message: y(() => [
3091
- K("h3", null, M(C.value), 1)
3090
+ K("h3", null, j(C.value), 1)
3092
3091
  ]),
3093
3092
  _: 1
3094
3093
  })) : G("", !0),
3095
3094
  e.config.jsonYamlEnabled ? (m(), T("div", Cs, [
3096
3095
  F(us, {
3097
3096
  format: d.value,
3098
- "prop-list-types": v.value,
3097
+ "prop-list-types": I.value,
3099
3098
  "property-collections": q.value,
3100
3099
  record: p.value
3101
3100
  }, Ce({ _: 2 }, [
@@ -3110,12 +3109,12 @@ const as = {
3110
3109
  }))
3111
3110
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3112
3111
  ])) : (m(), T("div", ks, [
3113
- (m(!0), T(fe, null, de(v.value, (z) => (m(), T("div", {
3112
+ (m(!0), T(fe, null, de(I.value, (z) => (m(), T("div", {
3114
3113
  key: `config-card-details-${z}-props`,
3115
3114
  class: Ae(`config-card-details-${z}-props`),
3116
3115
  "data-testid": `config-card-details-${z}-props`
3117
3116
  }, [
3118
- z !== "basic" ? (m(), T("div", _s, M(z === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3117
+ z !== "basic" ? (m(), T("div", _s, j(z === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3119
3118
  (m(!0), T(fe, null, de(q.value[z], (Q) => (m(), R(bt, {
3120
3119
  key: Q.key,
3121
3120
  item: Q
@@ -3149,7 +3148,7 @@ const as = {
3149
3148
  fn: y(() => [
3150
3149
  K("div", hs, [
3151
3150
  Y(b.$slots, "title", {}, () => [
3152
- W(M(g(o)("baseConfigCard.title")), 1)
3151
+ W(j(g(o)("baseConfigCard.title")), 1)
3153
3152
  ], !0)
3154
3153
  ])
3155
3154
  ]),
@@ -3217,8 +3216,8 @@ const as = {
3217
3216
  var p, S;
3218
3217
  if (!a.editId)
3219
3218
  return "";
3220
- let _ = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3221
- return a.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (S = a.config) != null && S.workspace ? `/${a.config.workspace}` : "")), _ = _.replace(/{id}/gi, a.editId), _;
3219
+ let v = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3220
+ return a.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (S = a.config) != null && S.workspace ? `/${a.config.workspace}` : "")), v = v.replace(/{id}/gi, a.editId), v;
3222
3221
  }), f = () => {
3223
3222
  a.config.cancelRoute ? r.push(a.config.cancelRoute) : A();
3224
3223
  }, A = () => {
@@ -3241,10 +3240,10 @@ const as = {
3241
3240
  l.value = !1;
3242
3241
  }
3243
3242
  }), (p, S) => {
3244
- const _ = P("KSkeleton"), q = P("KEmptyState"), v = P("KAlert"), w = P("KButton"), N = P("KCard");
3243
+ const v = P("KSkeleton"), q = P("KEmptyState"), I = P("KAlert"), w = P("KButton"), N = P("KCard");
3245
3244
  return m(), R(N, { class: "kong-ui-entity-base-form" }, {
3246
3245
  default: y(() => [
3247
- l.value ? (m(), R(_, {
3246
+ l.value ? (m(), R(v, {
3248
3247
  key: 0,
3249
3248
  type: "form"
3250
3249
  })) : u.value ? (m(), R(q, {
@@ -3255,7 +3254,7 @@ const as = {
3255
3254
  "is-error": !0
3256
3255
  }, {
3257
3256
  message: y(() => [
3258
- K("h3", null, M(d.value), 1)
3257
+ K("h3", null, j(d.value), 1)
3259
3258
  ]),
3260
3259
  _: 1
3261
3260
  }, 8, ["cta-text"])) : (m(), T("form", {
@@ -3265,7 +3264,7 @@ const as = {
3265
3264
  onSubmit: De(C, ["prevent"])
3266
3265
  }, [
3267
3266
  Y(p.$slots, "default", {}, void 0, !0),
3268
- e.errorMessage ? (m(), R(v, {
3267
+ e.errorMessage ? (m(), R(I, {
3269
3268
  key: 0,
3270
3269
  "alert-message": e.errorMessage,
3271
3270
  appearance: "danger",
@@ -3280,7 +3279,7 @@ const as = {
3280
3279
  type: "reset"
3281
3280
  }, {
3282
3281
  default: y(() => [
3283
- W(M(g(o)("baseForm.actions.cancel")), 1)
3282
+ W(j(g(o)("baseForm.actions.cancel")), 1)
3284
3283
  ]),
3285
3284
  _: 1
3286
3285
  }, 8, ["disabled"]),
@@ -3291,7 +3290,7 @@ const as = {
3291
3290
  type: "submit"
3292
3291
  }, {
3293
3292
  default: y(() => [
3294
- W(M(g(o)("baseForm.actions.save")), 1)
3293
+ W(j(g(o)("baseForm.actions.save")), 1)
3295
3294
  ]),
3296
3295
  _: 1
3297
3296
  }, 8, ["disabled"])
@@ -3303,10 +3302,10 @@ const as = {
3303
3302
  });
3304
3303
  };
3305
3304
  }
3306
- }), $s = /* @__PURE__ */ me(Ts, [["__scopeId", "data-v-448d8512"]]), Ms = {
3305
+ }), $s = /* @__PURE__ */ me(Ts, [["__scopeId", "data-v-448d8512"]]), js = {
3307
3306
  key: 0,
3308
3307
  "data-testid": "first-col"
3309
- }, js = /* @__PURE__ */ te({
3308
+ }, Ms = /* @__PURE__ */ te({
3310
3309
  __name: "EntityBaseTableCell",
3311
3310
  props: {
3312
3311
  keyName: {
@@ -3362,7 +3361,7 @@ const as = {
3362
3361
  ref: l,
3363
3362
  class: "content-wrapper"
3364
3363
  }, [
3365
- r.value ? (m(), T("span", Ms, [
3364
+ r.value ? (m(), T("span", js, [
3366
3365
  F(S, {
3367
3366
  label: A.value ? c.value : "",
3368
3367
  "max-width": "300",
@@ -3377,7 +3376,7 @@ const as = {
3377
3376
  ], 512);
3378
3377
  };
3379
3378
  }
3380
- }), Os = /* @__PURE__ */ me(js, [["__scopeId", "data-v-e42a20c9"]]), Es = { class: "toolbar-container" }, Fs = {
3379
+ }), Os = /* @__PURE__ */ me(Ms, [["__scopeId", "data-v-e42a20c9"]]), Es = { class: "toolbar-container" }, Fs = {
3381
3380
  key: 0,
3382
3381
  class: "toolbar-button-container"
3383
3382
  }, Ks = ["data-testid"], Ns = /* @__PURE__ */ te({
@@ -3491,42 +3490,42 @@ const as = {
3491
3490
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3492
3491
  setup(e, { emit: n }) {
3493
3492
  const t = e, { i18n: { t: a } } = re.useI18n(), r = $(() => {
3494
- var v, w;
3493
+ var I, w;
3495
3494
  return typeof t.errorMessage == "string" ? {
3496
3495
  hasError: !!t.errorMessage,
3497
3496
  title: t.errorMessage,
3498
3497
  message: void 0
3499
3498
  } : {
3500
3499
  hasError: !!t.errorMessage,
3501
- title: (v = t.errorMessage) == null ? void 0 : v.title,
3500
+ title: (I = t.errorMessage) == null ? void 0 : I.title,
3502
3501
  message: (w = t.errorMessage) == null ? void 0 : w.message
3503
3502
  };
3504
- }), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (v) => v.hasData || !!t.query, s = $(() => {
3505
- const v = [];
3503
+ }), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (I) => I.hasData || !!t.query, s = $(() => {
3504
+ const I = [];
3506
3505
  return Object.keys(t.tableHeaders).forEach((w) => {
3507
3506
  const N = t.tableHeaders[w];
3508
- v.push({
3507
+ I.push({
3509
3508
  label: N.label ?? w,
3510
3509
  key: w,
3511
3510
  sortable: N.sortable ?? !1
3512
3511
  });
3513
- }), t.enableEntityActions && v.push({
3512
+ }), t.enableEntityActions && I.push({
3514
3513
  key: "actions",
3515
3514
  hideLabel: !0
3516
- }), v;
3517
- }), l = (v) => ({
3518
- "data-rowid": v.id,
3519
- "data-testid": v.name,
3520
- ...t.rowAttributes(v)
3521
- }), u = O({}), d = (v) => {
3515
+ }), I;
3516
+ }), l = (I) => ({
3517
+ "data-rowid": I.id,
3518
+ "data-testid": I.name,
3519
+ ...t.rowAttributes(I)
3520
+ }), u = O({}), d = (I) => {
3522
3521
  var w;
3523
- return (w = u.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${v.id}"]`);
3524
- }, c = (v) => {
3522
+ return (w = u.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${I.id}"]`);
3523
+ }, c = (I) => {
3525
3524
  const w = {
3526
- "data-testid": v.headerKey,
3527
- ...t.cellAttributes(v)
3525
+ "data-testid": I.headerKey,
3526
+ ...t.cellAttributes(I)
3528
3527
  };
3529
- return v.colIndex === 0 && (w.style = {
3528
+ return I.colIndex === 0 && (w.style = {
3530
3529
  maxWidth: "250px",
3531
3530
  overflowX: "hidden",
3532
3531
  textOverflow: "ellipsis"
@@ -3535,20 +3534,20 @@ const as = {
3535
3534
  n("empty-state-cta-clicked"), f();
3536
3535
  }, f = () => {
3537
3536
  n("clear-search-input");
3538
- }, A = $(() => t.disableRowClick ? void 0 : (v, w) => {
3537
+ }, A = $(() => t.disableRowClick ? void 0 : (I, w) => {
3539
3538
  n("click:row", w);
3540
- }), C = (v) => {
3541
- n("sort", v);
3542
- }, { setTablePreferences: p, getTablePreferences: S } = Ta(), _ = $(() => {
3543
- const v = S(t.preferencesStorageKey);
3539
+ }), C = (I) => {
3540
+ n("sort", I);
3541
+ }, { setTablePreferences: p, getTablePreferences: S } = Ta(), v = $(() => {
3542
+ const I = S(t.preferencesStorageKey);
3544
3543
  return {
3545
3544
  ...t.initialFetcherParams,
3546
- ...v
3545
+ ...I
3547
3546
  };
3548
- }), q = (v) => {
3549
- t.preferencesStorageKey && p(t.preferencesStorageKey, v);
3547
+ }), q = (I) => {
3548
+ t.preferencesStorageKey && p(t.preferencesStorageKey, I);
3550
3549
  };
3551
- return (v, w) => {
3550
+ return (I, w) => {
3552
3551
  const N = P("KIcon"), U = P("KButton"), b = P("KDropdown"), k = P("KTable"), V = P("KCard");
3553
3552
  return m(), R(V, {
3554
3553
  class: "kong-ui-entity-base-table",
@@ -3577,7 +3576,7 @@ const as = {
3577
3576
  "has-error": r.value.hasError,
3578
3577
  headers: s.value,
3579
3578
  "hide-pagination-when-optional": "",
3580
- "initial-fetcher-params": _.value,
3579
+ "initial-fetcher-params": v.value,
3581
3580
  "is-loading": e.isLoading,
3582
3581
  "pagination-type": e.paginationType,
3583
3582
  "row-attrs": l,
@@ -3589,15 +3588,15 @@ const as = {
3589
3588
  }, Ce({
3590
3589
  toolbar: y(({ state: B }) => [
3591
3590
  Be(K("div", Es, [
3592
- Y(v.$slots, "toolbar-filter", {}, void 0, !0),
3593
- v.$slots["toolbar-button"] ? (m(), T("div", Fs, [
3594
- Y(v.$slots, "toolbar-button", {}, void 0, !0)
3591
+ Y(I.$slots, "toolbar-filter", {}, void 0, !0),
3592
+ I.$slots["toolbar-button"] ? (m(), T("div", Fs, [
3593
+ Y(I.$slots, "toolbar-button", {}, void 0, !0)
3595
3594
  ])) : G("", !0)
3596
3595
  ], 512), [
3597
3596
  [qe, i(B)]
3598
3597
  ])
3599
3598
  ]),
3600
- actions: y(({ row: B, rowKey: I, rowValue: E }) => [
3599
+ actions: y(({ row: B, rowKey: _, rowValue: E }) => [
3601
3600
  K("div", {
3602
3601
  class: "actions-container",
3603
3602
  "data-testid": B.name
@@ -3607,9 +3606,9 @@ const as = {
3607
3606
  width: e.dropdownMenuWidth
3608
3607
  }, {
3609
3608
  items: y(() => [
3610
- Y(v.$slots, "actions", {
3609
+ Y(I.$slots, "actions", {
3611
3610
  row: B,
3612
- rowKey: I,
3611
+ rowKey: _,
3613
3612
  rowValue: E
3614
3613
  }, void 0, !0)
3615
3614
  ]),
@@ -3635,20 +3634,20 @@ const as = {
3635
3634
  ]),
3636
3635
  _: 2
3637
3636
  }, [
3638
- de(e.tableHeaders, (B, I) => ({
3639
- name: I,
3637
+ de(e.tableHeaders, (B, _) => ({
3638
+ name: _,
3640
3639
  fn: y(({ row: E, rowKey: L, rowValue: D }) => [
3641
3640
  F(Os, {
3642
- "key-name": String(I),
3641
+ "key-name": String(_),
3643
3642
  "row-el": d(E)
3644
3643
  }, {
3645
3644
  default: y(() => [
3646
- Y(v.$slots, I, {
3645
+ Y(I.$slots, _, {
3647
3646
  row: E,
3648
3647
  rowKey: L,
3649
3648
  rowValue: D
3650
3649
  }, () => [
3651
- W(M(D), 1)
3650
+ W(j(D), 1)
3652
3651
  ], !0)
3653
3652
  ]),
3654
3653
  _: 2
@@ -3728,7 +3727,7 @@ const as = {
3728
3727
  e.error ? (m(), T("div", qs, [
3729
3728
  F(u, { appearance: "danger" }, {
3730
3729
  alertMessage: y(() => [
3731
- W(M(e.error), 1)
3730
+ W(j(e.error), 1)
3732
3731
  ]),
3733
3732
  _: 1
3734
3733
  })
@@ -3739,21 +3738,21 @@ const as = {
3739
3738
  tag: "p"
3740
3739
  }, Ce({
3741
3740
  entityType: y(() => [
3742
- W(M(t.entityType), 1)
3741
+ W(j(t.entityType), 1)
3743
3742
  ]),
3744
3743
  _: 2
3745
3744
  }, [
3746
3745
  t.entityName ? {
3747
3746
  name: "entityName",
3748
3747
  fn: y(() => [
3749
- K("strong", null, M(t.entityName), 1)
3748
+ K("strong", null, j(t.entityName), 1)
3750
3749
  ]),
3751
3750
  key: "0"
3752
3751
  } : void 0
3753
3752
  ]), 1032, ["keypath"]),
3754
3753
  t.description || s.$slots.description ? (m(), T("div", Ls, [
3755
3754
  Y(s.$slots, "description", {}, () => [
3756
- K("p", null, M(t.description), 1)
3755
+ K("p", null, j(t.description), 1)
3757
3756
  ], !0)
3758
3757
  ])) : G("", !0)
3759
3758
  ]),
@@ -3825,8 +3824,8 @@ const as = {
3825
3824
  setup(e, { emit: n }) {
3826
3825
  const t = e, { i18n: { t: a } } = re.useI18n(), r = O(!1), o = O({}), i = $(() => {
3827
3826
  const p = [];
3828
- return new URLSearchParams(t.modelValue).forEach((S, _) => {
3829
- S !== "" && p.push(_);
3827
+ return new URLSearchParams(t.modelValue).forEach((S, v) => {
3828
+ S !== "" && p.push(v);
3830
3829
  }), p;
3831
3830
  }), s = $(() => {
3832
3831
  const p = t.config.fields;
@@ -3836,8 +3835,8 @@ const as = {
3836
3835
  }));
3837
3836
  });
3838
3837
  he(() => t.modelValue, (p) => {
3839
- o.value = {}, new URLSearchParams(p).forEach((S, _) => {
3840
- o.value[_] = S;
3838
+ o.value = {}, new URLSearchParams(p).forEach((S, v) => {
3839
+ o.value[v] = S;
3841
3840
  });
3842
3841
  });
3843
3842
  const l = () => {
@@ -3845,14 +3844,14 @@ const as = {
3845
3844
  }, u = (p) => {
3846
3845
  n("update:modelValue", p);
3847
3846
  }, d = (p) => `filter-${p}`, c = (p) => {
3848
- var S, _;
3849
- return (((_ = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : _.values) ?? []).map((q) => ({
3847
+ var S, v;
3848
+ return (((v = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : v.values) ?? []).map((q) => ({
3850
3849
  value: q,
3851
3850
  label: q
3852
3851
  }));
3853
3852
  }, h = (p) => {
3854
- var S, _;
3855
- return ((_ = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : _.type) ?? "text";
3853
+ var S, v;
3854
+ return ((v = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : v.type) ?? "text";
3856
3855
  }, f = (p) => {
3857
3856
  o.value = {
3858
3857
  ...o.value,
@@ -3861,12 +3860,12 @@ const as = {
3861
3860
  }, A = () => {
3862
3861
  o.value = {}, C(!0);
3863
3862
  }, C = (p = !1) => {
3864
- const S = Object.keys(o.value).reduce((_, q) => (o.value[q] && (_[q] = `${o.value[q]}`), _), {});
3863
+ const S = Object.keys(o.value).reduce((v, q) => (o.value[q] && (v[q] = `${o.value[q]}`), v), {});
3865
3864
  p && (r.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
3866
3865
  };
3867
3866
  return (p, S) => {
3868
- const _ = P("KInput"), q = P("KButton"), v = P("KSelect"), w = P("KMenuItem"), N = P("KMenu");
3869
- return e.config.isExactMatch ? (m(), R(_, {
3867
+ const v = P("KInput"), q = P("KButton"), I = P("KSelect"), w = P("KMenuItem"), N = P("KMenu");
3868
+ return e.config.isExactMatch ? (m(), R(v, {
3870
3869
  key: 0,
3871
3870
  autocomplete: "off",
3872
3871
  class: "kong-ui-entity-filter-input",
@@ -3887,7 +3886,7 @@ const as = {
3887
3886
  }, {
3888
3887
  default: y(() => [
3889
3888
  F(ln),
3890
- W(" " + M(g(a)("filter.filterButtonText")) + " " + M(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3889
+ W(" " + j(g(a)("filter.filterButtonText")) + " " + j(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3891
3890
  ]),
3892
3891
  _: 1
3893
3892
  }),
@@ -3907,7 +3906,7 @@ const as = {
3907
3906
  }, {
3908
3907
  itemTitle: y(() => [
3909
3908
  K("span", Js, [
3910
- W(M(U.label) + " ", 1),
3909
+ W(j(U.label) + " ", 1),
3911
3910
  Be(K("span", Ys, null, 512), [
3912
3911
  [qe, i.value.includes(U.value)]
3913
3912
  ])
@@ -3920,8 +3919,8 @@ const as = {
3920
3919
  K("label", {
3921
3920
  class: "menu-item-label",
3922
3921
  for: d(U.value)
3923
- }, M(g(a)("filter.fieldLabel")), 9, Zs),
3924
- ((V = (k = e.config.schema) == null ? void 0 : k[U.value]) == null ? void 0 : V.type) === "select" ? (m(), R(v, {
3922
+ }, j(g(a)("filter.fieldLabel")), 9, Zs),
3923
+ ((V = (k = e.config.schema) == null ? void 0 : k[U.value]) == null ? void 0 : V.type) === "select" ? (m(), R(I, {
3925
3924
  key: 0,
3926
3925
  id: d(U.value),
3927
3926
  modelValue: o.value[U.value],
@@ -3929,7 +3928,7 @@ const as = {
3929
3928
  appearance: "select",
3930
3929
  items: c(U.value),
3931
3930
  placeholder: g(a)("filter.selectPlaceholder")
3932
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(_, {
3931
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(v, {
3933
3932
  key: 1,
3934
3933
  id: d(U.value),
3935
3934
  modelValue: o.value[U.value],
@@ -3947,7 +3946,7 @@ const as = {
3947
3946
  onClick: S[0] || (S[0] = (B) => C(!0))
3948
3947
  }, {
3949
3948
  default: y(() => [
3950
- W(M(g(a)("filter.applyButtonText")), 1)
3949
+ W(j(g(a)("filter.applyButtonText")), 1)
3951
3950
  ]),
3952
3951
  _: 1
3953
3952
  }),
@@ -3958,7 +3957,7 @@ const as = {
3958
3957
  onClick: (B) => f(U.value)
3959
3958
  }, {
3960
3959
  default: y(() => [
3961
- W(M(g(a)("filter.clearButtonText")), 1)
3960
+ W(j(g(a)("filter.clearButtonText")), 1)
3962
3961
  ]),
3963
3962
  _: 2
3964
3963
  }, 1032, ["onClick"])
@@ -3976,7 +3975,7 @@ const as = {
3976
3975
  onClick: A
3977
3976
  }, {
3978
3977
  default: y(() => [
3979
- W(M(g(a)("filter.clearAllButtonText")), 1)
3978
+ W(j(g(a)("filter.clearAllButtonText")), 1)
3980
3979
  ]),
3981
3980
  _: 1
3982
3981
  })
@@ -4062,10 +4061,10 @@ const as = {
4062
4061
  key: 0,
4063
4062
  class: Ae(["form-section-info", { sticky: e.stickyInfoHeader }])
4064
4063
  }, [
4065
- e.title ? (m(), T("h4", al, M(e.title), 1)) : G("", !0),
4064
+ e.title ? (m(), T("h4", al, j(e.title), 1)) : G("", !0),
4066
4065
  e.description || g(n).description ? (m(), T("div", rl, [
4067
4066
  Y(t.$slots, "description", {}, () => [
4068
- K("p", null, M(e.description), 1)
4067
+ K("p", null, j(e.description), 1)
4069
4068
  ], !0)
4070
4069
  ])) : G("", !0),
4071
4070
  g(n).footer ? (m(), T("div", ol, [
@@ -4120,26 +4119,26 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
4120
4119
  fetchedItemsKey: "data",
4121
4120
  searchKeys: ["username", "id"]
4122
4121
  }
4123
- ), h = (I) => I, f = $(() => u.value ? a("consumers.errors.general") : ""), A = O(0), C = $(() => l.value === void 0), p = $(() => c.value.map((I) => ({
4124
- label: I.username || I.customId,
4125
- value: I.id,
4126
- selected: o.value.includes(I.id),
4127
- data: I
4122
+ ), h = (_) => _, f = $(() => u.value ? a("consumers.errors.general") : ""), A = O(0), C = $(() => l.value === void 0), p = $(() => c.value.map((_) => ({
4123
+ label: _.username || _.customId,
4124
+ value: _.id,
4125
+ selected: o.value.includes(_.id),
4126
+ data: _
4128
4127
  // we need this to determine whether or not to show the description text
4129
- }))), S = (I) => {
4128
+ }))), S = (_) => {
4130
4129
  var L;
4131
- const E = C.value ? c.value.find((D) => D.id === I) : (L = l.value) == null ? void 0 : L.find((D) => D.id === I);
4132
- return E ? E.username || E.custom_id : I;
4133
- }, _ = () => {
4130
+ const E = C.value ? c.value.find((D) => D.id === _) : (L = l.value) == null ? void 0 : L.find((D) => D.id === _);
4131
+ return E ? E.username || E.custom_id : _;
4132
+ }, v = () => {
4134
4133
  w.value = "", q.value = [], k.value = [], n("cancel");
4135
- }, q = O([]), v = O(!1), w = O(""), N = async () => {
4134
+ }, q = O([]), I = O(!1), w = O(""), N = async () => {
4136
4135
  if (!o.value.length) {
4137
4136
  w.value = "", k.value = [], n("cancel");
4138
4137
  return;
4139
4138
  }
4140
- v.value = !0, w.value = "", q.value = [], k.value = [];
4139
+ I.value = !0, w.value = "", q.value = [], k.value = [];
4141
4140
  try {
4142
- const I = o.value.map((D) => b(D)), E = await Promise.allSettled(I);
4141
+ const _ = o.value.map((D) => b(D)), E = await Promise.allSettled(_);
4143
4142
  let L = !0;
4144
4143
  E.forEach((D) => {
4145
4144
  D.status !== "fulfilled" && (L = !1);
@@ -4147,25 +4146,25 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
4147
4146
  } catch {
4148
4147
  w.value = a("consumers.errors.add"), n("error", w.value);
4149
4148
  } finally {
4150
- v.value = !1;
4149
+ I.value = !1;
4151
4150
  }
4152
4151
  }, U = $(() => {
4153
4152
  var E, L, D, Z;
4154
- let I = `${t.config.apiBaseUrl}${Se.list[t.config.app].forConsumerGroup}`;
4155
- return t.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((E = t.config) == null ? void 0 : E.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((L = t.config) == null ? void 0 : L.consumerGroupId) || "") : t.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), I;
4156
- }), b = async (I) => {
4153
+ let _ = `${t.config.apiBaseUrl}${Se.list[t.config.app].forConsumerGroup}`;
4154
+ return t.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((E = t.config) == null ? void 0 : E.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((L = t.config) == null ? void 0 : L.consumerGroupId) || "") : t.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), _;
4155
+ }), b = async (_) => {
4157
4156
  const E = {
4158
- consumer: I
4157
+ consumer: _
4159
4158
  };
4160
4159
  try {
4161
4160
  const L = await r.post(U.value, E);
4162
- return q.value.push(I), L;
4161
+ return q.value.push(_), L;
4163
4162
  } catch (L) {
4164
- let D = `${S(I)} - ${L.message}`;
4165
- return L.response.status === 409 && (D = `${S(I)} - ${a("consumers.errors.already_added")}`), Promise.reject(Error(D));
4163
+ let D = `${S(_)} - ${L.message}`;
4164
+ return L.response.status === 409 && (D = `${S(_)} - ${a("consumers.errors.already_added")}`), Promise.reject(Error(D));
4166
4165
  }
4167
- }, k = O([]), V = (I) => {
4168
- k.value = I.map((E) => {
4166
+ }, k = O([]), V = (_) => {
4167
+ k.value = _.map((E) => {
4169
4168
  var L;
4170
4169
  return (L = E.reason) == null ? void 0 : L.message;
4171
4170
  }).filter(Boolean);
@@ -4174,20 +4173,20 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
4174
4173
  A.value++;
4175
4174
  }, { immediate: !0, deep: !0 }), he(() => t.visible, () => {
4176
4175
  t.visible && d();
4177
- }, { immediate: !0 }), (I, E) => {
4176
+ }, { immediate: !0 }), (_, E) => {
4178
4177
  const L = P("KMultiselect"), D = P("KAlert"), Z = P("KPrompt");
4179
4178
  return m(), R(Z, {
4180
- "action-pending": v.value,
4179
+ "action-pending": I.value,
4181
4180
  class: "kong-ui-entities-add-consumers-modal",
4182
4181
  "data-testid": "add-consumer-modal",
4183
4182
  "is-visible": e.visible,
4184
4183
  title: g(a)("consumers.consumer_groups.add.title"),
4185
- onCanceled: _,
4184
+ onCanceled: v,
4186
4185
  onProceed: N
4187
4186
  }, {
4188
4187
  "body-content": y(() => [
4189
4188
  K("div", fl, [
4190
- K("p", ml, M(g(a)("consumers.consumer_groups.add.ctaText")), 1),
4189
+ K("p", ml, j(g(a)("consumers.consumer_groups.add.ctaText")), 1),
4191
4190
  F(L, {
4192
4191
  modelValue: o.value,
4193
4192
  "onUpdate:modelValue": E[0] || (E[0] = (z) => o.value = z),
@@ -4198,25 +4197,25 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
4198
4197
  label: g(a)("consumers.consumer_groups.add.consumers_label"),
4199
4198
  loading: g(s),
4200
4199
  placeholder: g(a)("consumers.consumer_groups.add.consumer_placeholder"),
4201
- readonly: v.value,
4200
+ readonly: I.value,
4202
4201
  required: "",
4203
4202
  width: "100%",
4204
4203
  onQueryChange: g(i)
4205
4204
  }, {
4206
4205
  "item-template": y(({ item: z }) => [
4207
- K("div", gl, M(z.label), 1),
4208
- h(z).data.username && h(z).data.custom_id ? (m(), T("div", yl, M(h(z).data.custom_id), 1)) : G("", !0)
4206
+ K("div", gl, j(z.label), 1),
4207
+ h(z).data.username && h(z).data.custom_id ? (m(), T("div", yl, j(h(z).data.custom_id), 1)) : G("", !0)
4209
4208
  ]),
4210
4209
  _: 1
4211
4210
  }, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4212
4211
  w.value || f.value || k.value.length ? (m(), T("div", hl, [
4213
4212
  F(D, { appearance: "danger" }, {
4214
4213
  alertMessage: y(() => [
4215
- K("p", null, M(g(a)("consumers.errors.add")), 1),
4214
+ K("p", null, j(g(a)("consumers.errors.add")), 1),
4216
4215
  k.value.length ? (m(), T("ul", vl, [
4217
- (m(!0), T(fe, null, de(k.value, (z, Q) => (m(), T("li", { key: Q }, M(z), 1))), 128))
4216
+ (m(!0), T(fe, null, de(k.value, (z, Q) => (m(), T("li", { key: Q }, j(z), 1))), 128))
4218
4217
  ])) : G("", !0),
4219
- K("div", null, M(w.value || f.value), 1)
4218
+ K("div", null, j(w.value || f.value), 1)
4220
4219
  ]),
4221
4220
  _: 1
4222
4221
  })
@@ -4305,9 +4304,9 @@ const xt = (e, n) => {
4305
4304
  },
4306
4305
  schema: t.config.filterSchema
4307
4306
  };
4308
- }), p = $(() => l.value ? "consumers" : void 0), { fetcher: S, fetcherState: _ } = dl(t.config, f.value, p.value), q = () => {
4307
+ }), p = $(() => l.value ? "consumers" : void 0), { fetcher: S, fetcherState: v } = dl(t.config, f.value, p.value), q = () => {
4309
4308
  A.value = "";
4310
- }, v = () => {
4309
+ }, I = () => {
4311
4310
  s.value++;
4312
4311
  }, w = (x) => x ?? "-", N = O(null), U = (x, H) => {
4313
4312
  const ee = x.id;
@@ -4346,16 +4345,16 @@ const xt = (e, n) => {
4346
4345
  }), B = (x) => ({
4347
4346
  label: r("consumers.actions.edit"),
4348
4347
  to: t.config.getEditRoute(x)
4349
- }), I = O(void 0), E = O(!1), L = O(!1), D = O(""), Z = ul(t.config, f.value), z = (x) => {
4350
- I.value = x, E.value = !0;
4348
+ }), _ = O(void 0), E = O(!1), L = O(!1), D = O(""), Z = ul(t.config, f.value), z = (x) => {
4349
+ _.value = x, E.value = !0;
4351
4350
  }, Q = () => {
4352
4351
  E.value = !1;
4353
4352
  }, le = async () => {
4354
4353
  var x, H, ee;
4355
- if ((x = I.value) != null && x.id) {
4354
+ if ((x = _.value) != null && x.id) {
4356
4355
  L.value = !0;
4357
4356
  try {
4358
- await i.delete(Z(I.value.id)), L.value = !1, E.value = !1, s.value++, n("delete:success", I.value);
4357
+ await i.delete(Z(_.value.id)), L.value = !1, E.value = !1, s.value++, n("delete:success", _.value);
4359
4358
  } catch (ue) {
4360
4359
  D.value = ((ee = (H = ue.response) == null ? void 0 : H.data) == null ? void 0 : ee.message) || ue.message || r("consumers.errors.delete"), n("error", ue);
4361
4360
  } finally {
@@ -4366,13 +4365,13 @@ const xt = (e, n) => {
4366
4365
  Xe.value = !0;
4367
4366
  }, $t = () => {
4368
4367
  Xe.value = !1;
4369
- }, Mt = (x, H) => {
4368
+ }, jt = (x, H) => {
4370
4369
  H || $t(), s.value++, n("add:success", x);
4371
4370
  }, sa = () => {
4372
4371
  l.value && Tt();
4373
4372
  }, ve = O(void 0), et = O(!1), la = O(""), ua = (x) => {
4374
4373
  ve.value = x, et.value = !0;
4375
- }, jt = () => {
4374
+ }, Mt = () => {
4376
4375
  et.value = !1, ve.value = void 0;
4377
4376
  }, ca = $(() => {
4378
4377
  var H, ee, ue, ge;
@@ -4383,7 +4382,7 @@ const xt = (e, n) => {
4383
4382
  Ot.value = !0;
4384
4383
  try {
4385
4384
  const x = ca.value.replace(/{consumerId}/gi, ve.value.id);
4386
- await i.delete(x), n("remove:success", ve.value), jt(), s.value++;
4385
+ await i.delete(x), n("remove:success", ve.value), Mt(), s.value++;
4387
4386
  } catch (x) {
4388
4387
  la.value = x.message || r("consumers.errors.delete"), n("error", x);
4389
4388
  } finally {
@@ -4391,7 +4390,7 @@ const xt = (e, n) => {
4391
4390
  }
4392
4391
  }
4393
4392
  }, Et = O(!0);
4394
- he(_, (x) => {
4393
+ he(v, (x) => {
4395
4394
  var H, ee, ue, ge;
4396
4395
  if (Array.isArray((H = x == null ? void 0 : x.response) == null ? void 0 : H.data) && (Et.value = x.response.data.length > 0), x.status === _e.Error) {
4397
4396
  N.value = {
@@ -4431,7 +4430,7 @@ const xt = (e, n) => {
4431
4430
  onClearSearchInput: q,
4432
4431
  "onClick:row": H[3] || (H[3] = (J) => k(J)),
4433
4432
  onEmptyStateCtaClicked: sa,
4434
- onSort: v
4433
+ onSort: I
4435
4434
  }, {
4436
4435
  "toolbar-filter": y(() => [
4437
4436
  l.value ? G("", !0) : (m(), R(g(tl), {
@@ -4458,7 +4457,7 @@ const xt = (e, n) => {
4458
4457
  onClick: H[1] || (H[1] = () => e.config.consumerGroupId ? Tt() : void 0)
4459
4458
  }, {
4460
4459
  default: y(() => [
4461
- W(M(e.config.consumerGroupId ? g(r)("consumers.actions.add_consumer") : g(r)("consumers.list.toolbar_actions.new_consumer")), 1)
4460
+ W(j(e.config.consumerGroupId ? g(r)("consumers.actions.add_consumer") : g(r)("consumers.list.toolbar_actions.new_consumer")), 1)
4462
4461
  ]),
4463
4462
  _: 1
4464
4463
  }, 8, ["to"]), [
@@ -4470,10 +4469,10 @@ const xt = (e, n) => {
4470
4469
  ], 8, ["disabled"]))
4471
4470
  ]),
4472
4471
  username: y(({ rowValue: J }) => [
4473
- K("b", null, M(w(J)), 1)
4472
+ K("b", null, j(w(J)), 1)
4474
4473
  ]),
4475
4474
  custom_id: y(({ rowValue: J }) => [
4476
- W(M(w(J)), 1)
4475
+ W(j(w(J)), 1)
4477
4476
  ]),
4478
4477
  tags: y(({ rowValue: J }) => [
4479
4478
  J && J.length > 0 ? (m(), R(ge, { key: 0 }, {
@@ -4484,7 +4483,7 @@ const xt = (e, n) => {
4484
4483
  }, ["stop"]))
4485
4484
  }, {
4486
4485
  default: y(() => [
4487
- W(M(xe), 1)
4486
+ W(j(xe), 1)
4488
4487
  ]),
4489
4488
  _: 2
4490
4489
  }, 1024))), 128))
@@ -4500,7 +4499,7 @@ const xt = (e, n) => {
4500
4499
  onClick: (fa) => U(J, xe)
4501
4500
  }, {
4502
4501
  default: y(() => [
4503
- W(M(g(r)("consumers.actions.copy_id")), 1)
4502
+ W(j(g(r)("consumers.actions.copy_id")), 1)
4504
4503
  ]),
4505
4504
  _: 2
4506
4505
  }, 1032, ["onClick"])
@@ -4514,7 +4513,7 @@ const xt = (e, n) => {
4514
4513
  onClick: (fa) => b(J, xe)
4515
4514
  }, {
4516
4515
  default: y(() => [
4517
- W(M(g(r)("consumers.actions.copy_json")), 1)
4516
+ W(j(g(r)("consumers.actions.copy_json")), 1)
4518
4517
  ]),
4519
4518
  _: 2
4520
4519
  }, 1032, ["onClick"])
@@ -4555,7 +4554,7 @@ const xt = (e, n) => {
4555
4554
  onClick: () => e.config.consumerGroupId ? ua(J) : z(J)
4556
4555
  }, {
4557
4556
  default: y(() => [
4558
- W(M(e.config.consumerGroupId ? g(r)("consumers.actions.remove") : g(r)("consumers.actions.delete")), 1)
4557
+ W(j(e.config.consumerGroupId ? g(r)("consumers.actions.remove") : g(r)("consumers.actions.delete")), 1)
4559
4558
  ]),
4560
4559
  _: 2
4561
4560
  }, 1032, ["onClick"])
@@ -4569,7 +4568,7 @@ const xt = (e, n) => {
4569
4568
  "action-pending": L.value,
4570
4569
  "data-testid": "delete-consumer-modal",
4571
4570
  description: g(r)("consumers.delete.description"),
4572
- "entity-name": I.value && (I.value.username || I.value.custom_id || I.value.id),
4571
+ "entity-name": _.value && (_.value.username || _.value.custom_id || _.value.id),
4573
4572
  "entity-type": g(fn).Consumer,
4574
4573
  error: D.value,
4575
4574
  title: g(r)("consumers.delete.title"),
@@ -4582,8 +4581,8 @@ const xt = (e, n) => {
4582
4581
  config: e.config,
4583
4582
  "data-testid": "add-consumer-modal",
4584
4583
  visible: Xe.value,
4585
- "onAdd:partialSuccess": H[4] || (H[4] = (J) => Mt(J, !0)),
4586
- "onAdd:success": H[5] || (H[5] = (J) => Mt(J)),
4584
+ "onAdd:partialSuccess": H[4] || (H[4] = (J) => jt(J, !0)),
4585
+ "onAdd:success": H[5] || (H[5] = (J) => jt(J)),
4587
4586
  onCancel: $t
4588
4587
  }, null, 8, ["config", "visible"])) : G("", !0),
4589
4588
  e.config.consumerGroupId && ve.value ? (m(), R(pa, {
@@ -4592,7 +4591,7 @@ const xt = (e, n) => {
4592
4591
  "is-visible": et.value,
4593
4592
  title: g(r)("consumers.consumer_groups.remove.title"),
4594
4593
  type: "danger",
4595
- onCanceled: jt,
4594
+ onCanceled: Mt,
4596
4595
  onProceed: da
4597
4596
  }, {
4598
4597
  "body-content": y(() => [
@@ -4602,19 +4601,19 @@ const xt = (e, n) => {
4602
4601
  tag: "p"
4603
4602
  }, Ce({
4604
4603
  consumer: y(() => [
4605
- K("strong", null, M(ve.value.username || ve.value.custom_id || ve.value.id), 1)
4604
+ K("strong", null, j(ve.value.username || ve.value.custom_id || ve.value.id), 1)
4606
4605
  ]),
4607
4606
  _: 2
4608
4607
  }, [
4609
4608
  e.config.consumerGroupName ? {
4610
4609
  name: "consumerGroup",
4611
4610
  fn: y(() => [
4612
- K("strong", null, M(e.config.consumerGroupName), 1)
4611
+ K("strong", null, j(e.config.consumerGroupName), 1)
4613
4612
  ]),
4614
4613
  key: "0"
4615
4614
  } : void 0
4616
4615
  ]), 1032, ["keypath"]),
4617
- K("p", null, M(g(r)("consumers.consumer_groups.remove.description")), 1)
4616
+ K("p", null, j(g(r)("consumers.consumer_groups.remove.description")), 1)
4618
4617
  ]),
4619
4618
  _: 1
4620
4619
  }, 8, ["is-visible", "title"])) : G("", !0)
@@ -4640,9 +4639,9 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
4640
4639
  },
4641
4640
  emits: ["update", "error", "loading"],
4642
4641
  setup(e, { emit: n }) {
4643
- var v;
4642
+ var I;
4644
4643
  const t = e, { i18nT: a, i18n: { t: r } } = Ze.useI18n(), o = gt(), { axiosInstance: i } = St({
4645
- headers: (v = t.config) == null ? void 0 : v.requestHeaders
4644
+ headers: (I = t.config) == null ? void 0 : I.requestHeaders
4646
4645
  }), { getMessageFromError: s } = cl(), l = Nt({
4647
4646
  fields: {
4648
4647
  username: "",
@@ -4671,10 +4670,10 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
4671
4670
  const N = ((k = w == null ? void 0 : w.item) == null ? void 0 : k.tags) || (w == null ? void 0 : w.tags) || [];
4672
4671
  l.fields.tags = (N == null ? void 0 : N.join(", ")) || "", Object.assign(u, l.fields);
4673
4672
  }, C = $(() => t.consumerId ? lt.Edit : lt.Create), p = (w) => {
4674
- var U, b, k, V, B, I;
4673
+ var U, b, k, V, B, _;
4675
4674
  let N = `${(U = t.config) == null ? void 0 : U.apiBaseUrl}${Se.form[(b = t.config) == null ? void 0 : b.app][w]}`;
4676
- return ((k = t.config) == null ? void 0 : k.app) === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((V = t.config) == null ? void 0 : V.controlPlaneId) || "") : ((B = t.config) == null ? void 0 : B.app) === "kongManager" && (N = N.replace(/\/{workspace}/gi, (I = t.config) != null && I.workspace ? `/${t.config.workspace}` : "")), N = N.replace(/{id}/gi, t.consumerId), N;
4677
- }, S = $(() => !!l.fields.username || !!l.fields.customId), _ = $(() => JSON.stringify(l.fields) !== JSON.stringify(u)), q = async () => {
4675
+ return ((k = t.config) == null ? void 0 : k.app) === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((V = t.config) == null ? void 0 : V.controlPlaneId) || "") : ((B = t.config) == null ? void 0 : B.app) === "kongManager" && (N = N.replace(/\/{workspace}/gi, (_ = t.config) != null && _.workspace ? `/${t.config.workspace}` : "")), N = N.replace(/{id}/gi, t.consumerId), N;
4676
+ }, S = $(() => !!l.fields.username || !!l.fields.customId), v = $(() => JSON.stringify(l.fields) !== JSON.stringify(u)), q = async () => {
4678
4677
  var w, N, U;
4679
4678
  try {
4680
4679
  l.readonly = !0;
@@ -4695,7 +4694,7 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
4695
4694
  const U = P("KInput"), b = P("KCard");
4696
4695
  return m(), T("div", Il, [
4697
4696
  F(g($s), {
4698
- "can-submit": S.value && _.value,
4697
+ "can-submit": S.value && v.value,
4699
4698
  config: e.config,
4700
4699
  "edit-id": e.consumerId,
4701
4700
  "error-message": l.errorMessage,
@@ -4716,8 +4715,8 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
4716
4715
  }, {
4717
4716
  default: y(() => [
4718
4717
  K("div", null, [
4719
- K("h5", Al, M(g(r)("consumers.form.consumer_identification.title")) + "* ", 1),
4720
- K("p", Sl, M(g(r)("consumers.form.consumer_identification.description")), 1)
4718
+ K("h5", Al, j(g(r)("consumers.form.consumer_identification.title")) + "* ", 1),
4719
+ K("p", Sl, j(g(r)("consumers.form.consumer_identification.description")), 1)
4721
4720
  ]),
4722
4721
  F(b, null, {
4723
4722
  default: y(() => [
@@ -4742,7 +4741,7 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
4742
4741
  scope: "global"
4743
4742
  }, {
4744
4743
  custom_id: y(() => [
4745
- K("code", null, M(g(r)("consumers.fields.username.custom_id")), 1)
4744
+ K("code", null, j(g(r)("consumers.fields.username.custom_id")), 1)
4746
4745
  ]),
4747
4746
  _: 1
4748
4747
  })
@@ -4769,7 +4768,7 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
4769
4768
  scope: "global"
4770
4769
  }, {
4771
4770
  username: y(() => [
4772
- K("code", null, M(g(r)("consumers.fields.custom_id.username")), 1)
4771
+ K("code", null, j(g(r)("consumers.fields.custom_id.username")), 1)
4773
4772
  ]),
4774
4773
  _: 1
4775
4774
  })
@@ -4876,7 +4875,7 @@ const Vl = /* @__PURE__ */ xt(xl, [["__scopeId", "data-v-99612940"]]), Tl = { cl
4876
4875
  scope: "global"
4877
4876
  }, {
4878
4877
  custom_id: y(() => [
4879
- K("code", null, M(g(t)("consumers.fields.username.custom_id")), 1)
4878
+ K("code", null, j(g(t)("consumers.fields.username.custom_id")), 1)
4880
4879
  ]),
4881
4880
  _: 1
4882
4881
  })
@@ -4887,7 +4886,7 @@ const Vl = /* @__PURE__ */ xt(xl, [["__scopeId", "data-v-99612940"]]), Tl = { cl
4887
4886
  scope: "global"
4888
4887
  }, {
4889
4888
  username: y(() => [
4890
- K("code", null, M(g(t)("consumers.fields.custom_id.username")), 1)
4889
+ K("code", null, j(g(t)("consumers.fields.custom_id.username")), 1)
4891
4890
  ]),
4892
4891
  _: 1
4893
4892
  })