@kong-ui-public/entities-consumer-groups 1.3.6-pr.928.9a9deeba.0 → 1.3.7

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,9 +1,9 @@
1
- import { defineComponent as ae, ref as O, computed as M, watch as Se, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as q, openBlock as g, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as K, createVNode as F, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Fe, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as He, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } from "vue";
1
+ import { defineComponent as ae, ref as O, computed as T, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Ze, resolveComponent as q, openBlock as g, createBlock as V, createSlots as Te, withCtx as v, createElementVNode as R, createTextVNode as Z, toDisplayString as K, createVNode as F, createElementBlock as M, renderList as ye, Fragment as ve, normalizeClass as Ne, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as cr, resolveDynamicComponent as ze, normalizeProps as dr, guardReactiveProps as pr, mergeProps as ht, onMounted as fr, onUnmounted as mr, normalizeStyle as gr, inject as yr, pushScopeId as hr, popScopeId as vr, reactive as Lt } from "vue";
2
2
  import { useRouter as wt } from "vue-router";
3
- import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
4
- import vr from "axios";
5
- import { ToastManager as br, MethodsArray as kr } from "@kong/kongponents";
6
- const Cr = {
3
+ import { createI18n as It, i18nTComponent as dn } from "@kong-ui-public/i18n";
4
+ import br from "axios";
5
+ import { ToastManager as kr, MethodsArray as Cr } from "@kong/kongponents";
6
+ const _r = {
7
7
  list: {
8
8
  table_headers: {
9
9
  name: "Name",
@@ -95,20 +95,20 @@ const Cr = {
95
95
  name: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
96
96
  }
97
97
  }
98
- }, _r = {
99
- consumer_groups: Cr
98
+ }, wr = {
99
+ consumer_groups: _r
100
100
  };
101
- function wr() {
102
- const e = It("en-us", _r);
101
+ function Ir() {
102
+ const e = It("en-us", wr);
103
103
  return {
104
104
  i18n: e,
105
- i18nT: cn(e)
105
+ i18nT: dn(e)
106
106
  // Translation component <i18n-t>
107
107
  };
108
108
  }
109
109
  const ct = {
110
- useI18n: wr
111
- }, Ie = "/api/runtime_groups/{controlPlaneId}", xe = "/{workspace}", $e = {
110
+ useI18n: Ir
111
+ }, Ie = "/api/runtime_groups/{controlPlaneId}", Ae = "/{workspace}", $e = {
112
112
  list: {
113
113
  konnect: {
114
114
  all: `${Ie}/consumer_groups`,
@@ -116,9 +116,9 @@ const ct = {
116
116
  oneForConsumer: `${Ie}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
117
117
  },
118
118
  kongManager: {
119
- all: `${xe}/consumer_groups?counter=true`,
120
- forConsumer: `${xe}/consumers/{consumerId}/consumer_groups`,
121
- oneForConsumer: `${xe}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
119
+ all: `${Ae}/consumer_groups?counter=true`,
120
+ forConsumer: `${Ae}/consumers/{consumerId}/consumer_groups`,
121
+ oneForConsumer: `${Ae}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
122
122
  }
123
123
  },
124
124
  form: {
@@ -131,26 +131,26 @@ const ct = {
131
131
  getConsumers: `${Ie}/consumer_groups/{id}/consumers`
132
132
  },
133
133
  kongManager: {
134
- consumersList: `${xe}/consumers`,
135
- create: `${xe}/consumer_groups`,
136
- edit: `${xe}/consumer_groups/{id}`,
137
- addConsumer: `${xe}/consumer_groups/{id}/consumers`,
138
- removeConsumer: `${xe}/consumer_groups/{id}/consumers/{consumerId}`,
139
- getConsumers: `${xe}/consumer_groups/{id}/consumers`
134
+ consumersList: `${Ae}/consumers`,
135
+ create: `${Ae}/consumer_groups`,
136
+ edit: `${Ae}/consumer_groups/{id}`,
137
+ addConsumer: `${Ae}/consumer_groups/{id}/consumers`,
138
+ removeConsumer: `${Ae}/consumer_groups/{id}/consumers/{consumerId}`,
139
+ getConsumers: `${Ae}/consumer_groups/{id}/consumers`
140
140
  }
141
141
  }
142
142
  };
143
- var dn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
144
- function xt(e = {}) {
143
+ var pn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(pn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Ke = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ke || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
144
+ function At(e = {}) {
145
145
  return {
146
- axiosInstance: vr.create({
146
+ axiosInstance: br.create({
147
147
  withCredentials: !0,
148
148
  timeout: 3e4,
149
149
  ...e
150
150
  })
151
151
  };
152
152
  }
153
- function Ir() {
153
+ function Ar() {
154
154
  return {
155
155
  debounce: (e, n) => {
156
156
  let t;
@@ -162,12 +162,12 @@ function Ir() {
162
162
  }
163
163
  };
164
164
  }
165
- const ft = "khcp-user-table-preferences", xr = {
165
+ const ft = "khcp-user-table-preferences", Sr = {
166
166
  pageSize: 30,
167
167
  sortColumnKey: void 0,
168
168
  sortColumnOrder: void 0
169
169
  };
170
- function Ar() {
170
+ function xr() {
171
171
  const e = (t) => {
172
172
  if (typeof t == "string")
173
173
  try {
@@ -191,24 +191,24 @@ function Ar() {
191
191
  },
192
192
  getTablePreferences: (t) => {
193
193
  const r = n();
194
- return (r == null ? void 0 : r.get(t)) || void 0 || xr;
194
+ return (r == null ? void 0 : r.get(t)) || void 0 || Sr;
195
195
  },
196
196
  deleteAllTablePreferences: () => {
197
197
  localStorage.removeItem(ft);
198
198
  }
199
199
  };
200
200
  }
201
- const Sr = {
201
+ const Tr = {
202
202
  actions: {
203
203
  copyId: "Copy ID",
204
204
  copied_id: 'Copied "{id}" to the clipboard',
205
205
  copyToClipboard: "Copied successfully!",
206
206
  copyToClipboardFailed: "Failed to copy to the clipboard"
207
207
  }
208
- }, Tr = {
208
+ }, $r = {
209
209
  message: "Are you sure you want to delete this {entityType}?",
210
210
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
211
- }, $r = {
211
+ }, jr = {
212
212
  actions: {
213
213
  save: "Save",
214
214
  cancel: "Cancel",
@@ -223,7 +223,7 @@ const Sr = {
223
223
  noSearchResultsMessage: "Please adjust the criteria and try again.",
224
224
  noSearchResultsCtaText: "Clear"
225
225
  }
226
- }, jr = {
226
+ }, Er = {
227
227
  title: "Configuration",
228
228
  actions: {
229
229
  copy: "Copy JSON"
@@ -258,7 +258,7 @@ const Sr = {
258
258
  entryTitle: "Entry {index}",
259
259
  structuredFormat: "Structured"
260
260
  }
261
- }, Er = {
261
+ }, Or = {
262
262
  filterButtonText: "Filter",
263
263
  fieldLabel: "Filter by:",
264
264
  inputPlaceholder: "Enter a value",
@@ -266,15 +266,15 @@ const Sr = {
266
266
  applyButtonText: "Apply",
267
267
  clearButtonText: "Clear",
268
268
  clearAllButtonText: "Clear all filters"
269
- }, Or = {
269
+ }, Kr = {
270
270
  errors: {
271
271
  fetch: "Could not fetch available items",
272
272
  invalid: "Please select a valid value"
273
273
  }
274
- }, Kr = {
274
+ }, Fr = {
275
275
  unexpected: "An unexpected error has occurred",
276
276
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
277
- }, Fr = {
277
+ }, Nr = {
278
278
  enable: {
279
279
  title: "Enable {entityType}",
280
280
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -285,108 +285,135 @@ const Sr = {
285
285
  message: "Are you sure you want to disable the {entityType} {entityName}?",
286
286
  confirmText: "Yes, disable"
287
287
  }
288
- }, Nr = {
289
- global: Sr,
290
- deleteModal: Tr,
291
- baseForm: $r,
288
+ }, Br = {
289
+ global: Tr,
290
+ deleteModal: $r,
291
+ baseForm: jr,
292
292
  baseTable: Mr,
293
- baseConfigCard: jr,
294
- filter: Er,
295
- debouncedFilter: Or,
296
- errors: Kr,
297
- toggleModal: Fr
293
+ baseConfigCard: Er,
294
+ filter: Or,
295
+ debouncedFilter: Kr,
296
+ errors: Fr,
297
+ toggleModal: Nr
298
298
  };
299
- function At() {
300
- const e = It("en-us", Nr);
299
+ function St() {
300
+ const e = It("en-us", Br);
301
301
  return {
302
302
  i18n: e,
303
- i18nT: cn(e)
303
+ i18nT: dn(e)
304
304
  // Translation component <i18n-t>
305
305
  };
306
306
  }
307
- function pn() {
307
+ function fn() {
308
+ const e = (t, r) => (r == null ? void 0 : r[t]) ?? void 0, n = (t, r) => {
309
+ if (t.length !== r.length)
310
+ return !1;
311
+ const o = /* @__PURE__ */ new Set([...t, ...r]);
312
+ for (const a of o) {
313
+ const i = t.filter((l) => l === a).length, s = r.filter((l) => l === a).length;
314
+ if (i !== s)
315
+ return !1;
316
+ }
317
+ return !0;
318
+ };
308
319
  return {
309
- getPropValue: (e, n) => (n == null ? void 0 : n[e]) ?? void 0,
310
- objectsAreEqual: (e, n) => {
320
+ getPropValue: e,
321
+ objectsAreEqual: (t, r, o) => {
322
+ if (o) {
323
+ if (Object.keys(t).length === Object.keys(r).length)
324
+ for (const a in t)
325
+ if (Array.isArray(t[a]) && Array.isArray(r[a])) {
326
+ if (n(t[a], r[a]))
327
+ continue;
328
+ return !1;
329
+ } else {
330
+ if (t[a] === r[a])
331
+ continue;
332
+ return !1;
333
+ }
334
+ else
335
+ return !1;
336
+ return !0;
337
+ }
311
338
  try {
312
- return JSON.stringify(e) === JSON.stringify(n);
339
+ return JSON.stringify(t) === JSON.stringify(r);
313
340
  } catch {
314
341
  return !1;
315
342
  }
316
343
  },
317
- sortAlpha: (e) => (n, t) => {
318
- let r = n[e] === void 0 || n[e] === null ? "" : n[e], o = t[e] === void 0 || t[e] === null ? "" : t[e];
319
- return Array.isArray(n[e]) && (r = n[e][0]), Array.isArray(t[e]) && (o = t[e][0]), r.localeCompare(o);
344
+ sortAlpha: (t) => (r, o) => {
345
+ let a = r[t] === void 0 || r[t] === null ? "" : r[t], i = o[t] === void 0 || o[t] === null ? "" : o[t];
346
+ return Array.isArray(r[t]) && (a = r[t][0]), Array.isArray(o[t]) && (i = o[t][0]), a.localeCompare(i);
320
347
  },
321
- isValidUuid: (e) => e ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(e) : !1
348
+ isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
322
349
  };
323
350
  }
324
- function Br(e, n, t, r = {
351
+ function Pr(e, n, t, r = {
325
352
  fetchedItemsKey: "data",
326
353
  searchKeys: ["id"]
327
354
  }) {
328
355
  t || (t = "100");
329
- const { axiosInstance: o } = xt({
356
+ const { axiosInstance: o } = At({
330
357
  headers: e.requestHeaders
331
- }), { i18n: { t: a } } = At(), { debounce: i } = Ir(), s = i(async (x) => {
332
- await k(x);
333
- }, 200), l = O(!1), c = O(""), d = O(""), u = O([]), m = O([]), f = O(void 0), I = y(n);
334
- let v = `${e.apiBaseUrl}${I}`;
335
- e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
336
- const { isValidUuid: p } = pn(), A = async () => {
358
+ }), { i18n: { t: a } } = St(), { debounce: i } = Ar(), s = i(async (I) => {
359
+ await k(I);
360
+ }, 200), l = O(!1), c = O(""), d = O(""), u = O([]), m = O([]), f = O(void 0), S = y(n);
361
+ let h = `${e.apiBaseUrl}${S}`;
362
+ e.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
363
+ const { isValidUuid: p } = fn(), A = async () => {
337
364
  try {
338
365
  l.value = !0;
339
- const { data: x } = await o.get(`${v}?size=${t}`);
340
- x != null && x.next || (f.value = r.fetchedItemsKey in x ? x[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in x ? x[r.fetchedItemsKey] : [], u.value = m.value;
366
+ const { data: I } = await o.get(`${h}?size=${t}`);
367
+ I != null && I.next || (f.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : [], u.value = m.value;
341
368
  } catch {
342
369
  u.value = [], c.value = a("debouncedFilter.errors.fetch");
343
370
  } finally {
344
371
  l.value = !1;
345
372
  }
346
- }, b = O(""), k = async (x) => {
347
- var ne, pe, z;
348
- if (b.value !== x)
349
- if (b.value = x || "", f.value === void 0)
373
+ }, b = O(""), k = async (I) => {
374
+ var re, se, z;
375
+ if (b.value !== I)
376
+ if (b.value = I || "", f.value === void 0)
350
377
  try {
351
378
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
352
- let w = v + "";
353
- x && (w += `/${x}`);
354
- const { data: N } = await o.get(`${w}?size=${t}`);
355
- r.fetchedItemsKey in N ? u.value = N[r.fetchedItemsKey] : N != null && N.id ? u.value = [N] : u.value = [];
356
- } else if (x) {
357
- const w = [];
358
- p(x) && r.searchKeys.includes("id") ? w.push((async () => {
359
- const { data: C } = await o.get(`${v}/${x}`);
360
- return [C[r.fetchedItemsKey] ?? C];
361
- })()) : w.push(
362
- ...r.searchKeys.filter((C) => C !== "id").map(async (C) => {
363
- const { data: S } = await o.get(`${v}?${C}=${x}`);
364
- return S[r.fetchedItemsKey];
379
+ let _ = h + "";
380
+ I && (_ += `/${I}`);
381
+ const { data: B } = await o.get(`${_}?size=${t}`);
382
+ r.fetchedItemsKey in B ? u.value = B[r.fetchedItemsKey] : B != null && B.id ? u.value = [B] : u.value = [];
383
+ } else if (I) {
384
+ const _ = [];
385
+ p(I) && r.searchKeys.includes("id") ? _.push((async () => {
386
+ const { data: w } = await o.get(`${h}/${I}`);
387
+ return [w[r.fetchedItemsKey] ?? w];
388
+ })()) : _.push(
389
+ ...r.searchKeys.filter((w) => w !== "id").map(async (w) => {
390
+ const { data: x } = await o.get(`${h}?${w}=${I}`);
391
+ return x[r.fetchedItemsKey];
365
392
  })
366
393
  );
367
- const N = await Promise.all(w), B = /* @__PURE__ */ new Set();
368
- u.value = [], (ne = N == null ? void 0 : N.forEach) == null || ne.call(N, (C) => {
369
- var S;
370
- (S = C == null ? void 0 : C.forEach) == null || S.call(C, (T) => {
371
- B.has(T.id) || (B.add(T.id), u.value.push(T));
394
+ const B = await Promise.all(_), P = /* @__PURE__ */ new Set();
395
+ u.value = [], (re = B == null ? void 0 : B.forEach) == null || re.call(B, (w) => {
396
+ var x;
397
+ (x = w == null ? void 0 : w.forEach) == null || x.call(w, ($) => {
398
+ P.has($.id) || (P.add($.id), u.value.push($));
372
399
  });
373
400
  });
374
401
  } else
375
402
  u.value = m.value;
376
- } catch (w) {
377
- ((pe = w == null ? void 0 : w.response) == null ? void 0 : pe.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
403
+ } catch (_) {
404
+ ((se = _ == null ? void 0 : _.response) == null ? void 0 : se.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
378
405
  } finally {
379
406
  l.value = !1;
380
407
  }
381
408
  else
382
- l.value = !0, d.value = "", x ? (u.value = (z = f.value) == null ? void 0 : z.filter((w) => {
383
- var N;
384
- let B = !1;
385
- for (const C of r.searchKeys) {
386
- const S = typeof w[C] == "string" ? (N = w[C]) == null ? void 0 : N.toLowerCase() : w[C];
387
- S != null && S.includes(x.toLowerCase()) && (B = !0);
409
+ l.value = !0, d.value = "", I ? (u.value = (z = f.value) == null ? void 0 : z.filter((_) => {
410
+ var B;
411
+ let P = !1;
412
+ for (const w of r.searchKeys) {
413
+ const x = typeof _[w] == "string" ? (B = _[w]) == null ? void 0 : B.toLowerCase() : _[w];
414
+ x != null && x.includes(I.toLowerCase()) && (P = !0);
388
415
  }
389
- return B;
416
+ return P;
390
417
  }), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
391
418
  };
392
419
  return {
@@ -399,14 +426,14 @@ function Br(e, n, t, r = {
399
426
  debouncedQueryChange: s
400
427
  };
401
428
  }
402
- function Pr(e, n) {
403
- const t = y(n), r = M(
429
+ function Lr(e, n) {
430
+ const t = y(n), r = T(
404
431
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
405
432
  );
406
433
  return r.value.search = "", (o) => `${r.value.href}/${o}`;
407
434
  }
408
- function Lr() {
409
- const { i18n: { t: e } } = At();
435
+ function qr() {
436
+ const { i18n: { t: e } } = St();
410
437
  return {
411
438
  getMessageFromError: (n) => {
412
439
  var t, r, o;
@@ -433,7 +460,7 @@ function Lr() {
433
460
  }
434
461
  };
435
462
  }
436
- function qr(e) {
463
+ function Ur(e) {
437
464
  const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
438
465
  try {
439
466
  const r = e.join("/"), o = `${t}${r}`, a = e.some((i) => i.trim() === "");
@@ -444,33 +471,33 @@ function qr(e) {
444
471
  return console.warn("Failed to build valid URL:", r), "";
445
472
  }
446
473
  }
447
- function fn(e, n) {
448
- const t = O(y(e)), r = O(y(n)), o = M(
474
+ function mn(e, n) {
475
+ const t = O(y(e)), r = O(y(n)), o = T(
449
476
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
450
- ), a = M(
477
+ ), a = T(
451
478
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
452
479
  );
453
480
  return (i) => {
454
481
  const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = i;
455
482
  try {
456
483
  let f = new URL(a.value.href);
457
- return o.value && m ? (f.search = "", f = new URL(`${f.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((I, v) => {
458
- f.searchParams.append(v, I);
484
+ return o.value && m ? (f.search = "", f = new URL(`${f.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((S, h) => {
485
+ f.searchParams.append(h, S);
459
486
  }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), c && s !== 1 && f.searchParams.append("offset", String(c)), f.href;
460
487
  } catch (f) {
461
488
  return console.error("RouteList(fetcher)", f), r.value;
462
489
  }
463
490
  };
464
491
  }
465
- function Ur(e, n, t = "data") {
466
- const r = y(n), { axiosInstance: o } = xt({
492
+ function Rr(e, n, t = "data") {
493
+ const r = y(n), { axiosInstance: o } = At({
467
494
  headers: e.requestHeaders
468
- }), a = fn(e, r), i = O({
469
- status: Oe.Idle
495
+ }), a = mn(e, r), i = O({
496
+ status: Ke.Idle
470
497
  });
471
498
  return { fetcher: async (s) => {
472
499
  try {
473
- i.value = { status: Oe.Loading };
500
+ i.value = { status: Ke.Loading };
474
501
  const l = a(s), { data: c } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
475
502
  let u;
476
503
  c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
@@ -484,7 +511,7 @@ function Ur(e, n, t = "data") {
484
511
  } : null
485
512
  };
486
513
  return i.value = {
487
- status: Oe.Idle,
514
+ status: Ke.Idle,
488
515
  response: m
489
516
  }, m;
490
517
  } catch (l) {
@@ -493,87 +520,89 @@ function Ur(e, n, t = "data") {
493
520
  total: 0
494
521
  };
495
522
  return s.query && l.response.status === 404 ? (i.value = {
496
- status: Oe.NoResults,
523
+ status: Ke.NoResults,
497
524
  response: c,
498
525
  error: l
499
526
  }, c) : (i.value = {
500
- status: Oe.Error,
527
+ status: Ke.Error,
501
528
  response: c,
502
529
  error: l
503
530
  }, c);
504
531
  }
505
532
  }, fetcherState: i };
506
533
  }
507
- function Rr() {
534
+ function Vr() {
535
+ const e = (t, r = "_") => t ? t.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
508
536
  return {
509
- convertKeyToTitle: (e, n = "_") => e ? e.split(n).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
537
+ capitalize: (t) => t ? t.replace(n, (r) => r.toUpperCase()) : "",
538
+ convertKeyToTitle: e
510
539
  };
511
540
  }
512
- const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
541
+ const gn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, qt = (e) => {
513
542
  if (typeof e != "string")
514
543
  throw new TypeError("Invalid argument expected string");
515
- const n = e.match(mn);
544
+ const n = e.match(gn);
516
545
  if (!n)
517
546
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
518
547
  return n.shift(), n;
519
- }, qt = (e) => e === "*" || e === "x" || e === "X", Ut = (e) => {
548
+ }, Ut = (e) => e === "*" || e === "x" || e === "X", Rt = (e) => {
520
549
  const n = parseInt(e, 10);
521
550
  return isNaN(n) ? e : n;
522
- }, Vr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Dr = (e, n) => {
523
- if (qt(e) || qt(n))
551
+ }, Dr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Gr = (e, n) => {
552
+ if (Ut(e) || Ut(n))
524
553
  return 0;
525
- const [t, r] = Vr(Ut(e), Ut(n));
554
+ const [t, r] = Dr(Rt(e), Rt(n));
526
555
  return t > r ? 1 : t < r ? -1 : 0;
527
- }, Rt = (e, n) => {
556
+ }, Vt = (e, n) => {
528
557
  for (let t = 0; t < Math.max(e.length, n.length); t++) {
529
- const r = Dr(e[t] || "0", n[t] || "0");
558
+ const r = Gr(e[t] || "0", n[t] || "0");
530
559
  if (r !== 0)
531
560
  return r;
532
561
  }
533
562
  return 0;
534
- }, Gr = (e, n) => {
535
- const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
536
- return i !== 0 ? i : o && a ? Rt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
537
- }, Vt = (e, n, t) => {
538
- zr(t);
539
- const r = Gr(e, n);
540
- return gn[t].includes(r);
541
- }, gn = {
563
+ }, zr = (e, n) => {
564
+ const t = qt(e), r = qt(n), o = t.pop(), a = r.pop(), i = Vt(t, r);
565
+ return i !== 0 ? i : o && a ? Vt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
566
+ }, Dt = (e, n, t) => {
567
+ Hr(t);
568
+ const r = zr(e, n);
569
+ return yn[t].includes(r);
570
+ }, yn = {
542
571
  ">": [1],
543
572
  ">=": [0, 1],
544
573
  "=": [0],
545
574
  "<=": [-1, 0],
546
575
  "<": [-1],
547
576
  "!=": [-1, 1]
548
- }, Dt = Object.keys(gn), zr = (e) => {
577
+ }, Gt = Object.keys(yn), Hr = (e) => {
549
578
  if (typeof e != "string")
550
579
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
551
- if (Dt.indexOf(e) === -1)
552
- throw new Error(`Invalid operator, expected one of ${Dt.join("|")}`);
553
- }, Hr = (e) => typeof e == "string" && /^[v\d]/.test(e) && mn.test(e);
554
- function Jr(e) {
580
+ if (Gt.indexOf(e) === -1)
581
+ throw new Error(`Invalid operator, expected one of ${Gt.join("|")}`);
582
+ }, Jr = (e) => typeof e == "string" && /^[v\d]/.test(e) && gn.test(e);
583
+ function Wr(e) {
555
584
  const { gatewayInfo: n, supportedRange: t } = e;
556
585
  if (!n)
557
586
  return !0;
558
587
  const { edition: r, version: o } = n;
559
- if (!Hr(o))
588
+ if (!Jr(o))
560
589
  return console.error("Invalid version"), !1;
561
590
  const a = t[r];
562
591
  if (!a)
563
592
  return !1;
564
593
  const [i, s] = a;
565
- return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
594
+ return !(i && Dt(o, i, "<") || s && Dt(o, s, ">"));
566
595
  }
567
- function Wr(e) {
596
+ function Yr(e) {
568
597
  const n = O(0), t = O(0), r = O(!1);
569
- return Se(e, (o) => {
598
+ return xe(e, (o) => {
570
599
  o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
571
600
  }), {
572
- isTruncated: M(() => n.value < t.value)
601
+ isTruncated: T(() => n.value < t.value)
573
602
  };
574
603
  }
575
- const Yr = new br();
576
- function Zr() {
604
+ const Zr = new kr();
605
+ function Qr() {
577
606
  return {
578
607
  notify: async (e) => {
579
608
  const n = {
@@ -581,7 +610,7 @@ function Zr() {
581
610
  message: "Success",
582
611
  timeoutMilliseconds: 3e3
583
612
  };
584
- Yr.open({
613
+ Zr.open({
585
614
  ...n,
586
615
  ...e
587
616
  });
@@ -589,29 +618,29 @@ function Zr() {
589
618
  };
590
619
  }
591
620
  const ue = {
592
- useAxios: xt,
593
- useDebouncedFilter: Br,
594
- useDeleteUrlBuilder: Pr,
595
- useErrors: Lr,
596
- useExternalLinkCreator: qr,
597
- useFetcher: Ur,
598
- useFetchUrlBuilder: fn,
599
- useHelpers: pn,
600
- useStringHelpers: Rr,
601
- useI18n: At,
602
- useGatewayFeatureSupported: Jr,
603
- useTruncationDetector: Wr,
604
- useToaster: Zr
605
- }, Qr = {
621
+ useAxios: At,
622
+ useDebouncedFilter: Pr,
623
+ useDeleteUrlBuilder: Lr,
624
+ useErrors: qr,
625
+ useExternalLinkCreator: Ur,
626
+ useFetcher: Rr,
627
+ useFetchUrlBuilder: mn,
628
+ useHelpers: fn,
629
+ useStringHelpers: Vr,
630
+ useI18n: St,
631
+ useGatewayFeatureSupported: Wr,
632
+ useTruncationDetector: Yr,
633
+ useToaster: Qr
634
+ }, Xr = {
606
635
  fail: "Failed to copy id to clipboard",
607
636
  success: {
608
637
  prefix: "Successfully",
609
638
  content: " copied to clipboard"
610
639
  }
611
- }, Xr = "Copy to clipboard", eo = {
612
- message: Qr,
613
- iconTitle: Xr
614
- }, to = "kong-ui-copy-uuid-notify", no = { class: "kong-ui-copy-uuid" }, ro = ["onClick"], Gt = 15, oo = /* @__PURE__ */ ae({
640
+ }, eo = "Copy to clipboard", to = {
641
+ message: Xr,
642
+ iconTitle: eo
643
+ }, no = "kong-ui-copy-uuid-notify", ro = { class: "kong-ui-copy-uuid" }, oo = ["onClick"], zt = 15, ao = /* @__PURE__ */ ae({
615
644
  __name: "CopyUuid",
616
645
  props: {
617
646
  uuid: {
@@ -655,19 +684,19 @@ const ue = {
655
684
  },
656
685
  emits: ["success", "error"],
657
686
  setup(e, { emit: n }) {
658
- const t = e, { t: r } = It("en-us", eo), o = t.notify || gr(to, () => {
659
- }), a = M(() => t.idTooltip ? {
687
+ const t = e, { t: r } = It("en-us", to), o = t.notify || yr(no, () => {
688
+ }), a = T(() => t.idTooltip ? {
660
689
  label: t.idTooltip,
661
690
  positionFixed: !0,
662
691
  placement: "bottomStart"
663
692
  } : {
664
693
  title: t.uuid
665
- }), i = M(() => !!(t.tooltip && t.successTooltip)), s = O(t.tooltip), l = M(() => t.tooltip ? {
694
+ }), i = T(() => !!(t.tooltip && t.successTooltip)), s = O(t.tooltip), l = T(() => t.tooltip ? {
666
695
  label: s.value,
667
696
  positionFixed: !0,
668
697
  maxWidth: "500px",
669
698
  placement: "bottomStart"
670
- } : {}), c = M(() => {
699
+ } : {}), c = T(() => {
671
700
  var m;
672
701
  return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(m = t.uuid) == null ? void 0 : m.substring(0, 5)}` : t.uuid;
673
702
  }), d = (m) => {
@@ -675,7 +704,7 @@ const ue = {
675
704
  s.value = t.tooltip;
676
705
  }, 1800);
677
706
  }, u = (m) => {
678
- var f, I;
707
+ var f, S;
679
708
  if (!m(t.uuid)) {
680
709
  typeof o == "function" && o({
681
710
  type: "error",
@@ -683,19 +712,19 @@ const ue = {
683
712
  }), i.value ? d(r("message.fail")) : n("error", t.uuid);
684
713
  return;
685
714
  }
686
- const v = ((f = t.uuid) == null ? void 0 : f.length) > Gt, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, Gt)) + (v ? "..." : "")}"`;
715
+ const h = ((f = t.uuid) == null ? void 0 : f.length) > zt, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((S = t.uuid) == null ? void 0 : S.substring(0, zt)) + (h ? "..." : "")}"`;
687
716
  typeof o == "function" && o({
688
717
  type: "success",
689
718
  message: `${p}${r("message.success.content")}`
690
719
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
691
720
  };
692
721
  return (m, f) => {
693
- const I = q("KIcon"), v = q("KClipboardProvider");
694
- return g(), j("div", no, [
695
- e.format !== "hidden" ? (g(), V(He(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
696
- default: h(() => [
722
+ const S = q("KIcon"), h = q("KClipboardProvider");
723
+ return g(), M("div", ro, [
724
+ e.format !== "hidden" ? (g(), V(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
725
+ default: v(() => [
697
726
  R("div", {
698
- class: Fe([
727
+ class: Ne([
699
728
  "uuid-container",
700
729
  e.truncated ? "truncated-uuid" : null,
701
730
  e.useMono ? "mono" : null
@@ -704,17 +733,17 @@ const ue = {
704
733
  ]),
705
734
  _: 1
706
735
  }, 16)) : G("", !0),
707
- (g(), V(He(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
708
- default: h(() => [
709
- F(v, null, {
710
- default: h(({ copyToClipboard: p }) => [
736
+ (g(), V(ze(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
737
+ default: v(() => [
738
+ F(h, null, {
739
+ default: v(({ copyToClipboard: p }) => [
711
740
  R("span", {
712
741
  "data-testid": "copy-to-clipboard",
713
742
  role: "button",
714
743
  tabindex: "0",
715
744
  onClick: rt((A) => u(p), ["stop"])
716
745
  }, [
717
- F(I, {
746
+ F(S, {
718
747
  class: "uuid-icon",
719
748
  color: e.iconColor,
720
749
  "hide-title": !!e.tooltip || void 0,
@@ -722,7 +751,7 @@ const ue = {
722
751
  size: "16",
723
752
  title: y(r)("iconTitle")
724
753
  }, null, 8, ["color", "hide-title", "title"])
725
- ], 8, ro)
754
+ ], 8, oo)
726
755
  ]),
727
756
  _: 1
728
757
  })
@@ -732,15 +761,15 @@ const ue = {
732
761
  ]);
733
762
  };
734
763
  }
735
- }), ao = (e, n) => {
764
+ }), io = (e, n) => {
736
765
  const t = e.__vccOpts || e;
737
766
  for (const [r, o] of n)
738
767
  t[r] = o;
739
768
  return t;
740
- }, yn = /* @__PURE__ */ ao(oo, [["__scopeId", "data-v-a2ebe0bb"]]), io = {
769
+ }, hn = /* @__PURE__ */ io(ao, [["__scopeId", "data-v-a2ebe0bb"]]), so = {
741
770
  key: 0,
742
771
  class: "config-card-fieldset-title"
743
- }, so = /* @__PURE__ */ ae({
772
+ }, lo = /* @__PURE__ */ ae({
744
773
  __name: "JsonCardItem",
745
774
  props: {
746
775
  item: {
@@ -757,21 +786,21 @@ const ue = {
757
786
  }
758
787
  },
759
788
  setup(e) {
760
- const n = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: r } = ue.useStringHelpers(), o = M(() => n.item.key ?? "json-array-item"), a = M(() => n.item.value ?? n.item), i = M(() => {
789
+ const n = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: r } = ue.useStringHelpers(), o = T(() => n.item.key ?? "json-array-item"), a = T(() => n.item.value ?? n.item), i = T(() => {
761
790
  const l = JSON.parse(JSON.stringify(a.value));
762
791
  return n.isArrayItem && delete l.name, l;
763
- }), s = M(() => {
792
+ }), s = T(() => {
764
793
  var l;
765
794
  return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
766
795
  });
767
- return (l, c) => (g(), V(He(e.isArrayItem ? "fieldset" : "div"), {
768
- class: Fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
796
+ return (l, c) => (g(), V(ze(e.isArrayItem ? "fieldset" : "div"), {
797
+ class: Ne(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
769
798
  }, {
770
- default: h(() => [
771
- e.isArrayItem ? (g(), j("legend", io, [
799
+ default: v(() => [
800
+ e.isArrayItem ? (g(), M("legend", so, [
772
801
  R("b", null, K(s.value), 1)
773
802
  ])) : G("", !0),
774
- (g(!0), j(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(St, {
803
+ (g(!0), M(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(xt, {
775
804
  key: `${o.value}-property-${u}`,
776
805
  item: {
777
806
  key: d,
@@ -788,7 +817,7 @@ const ue = {
788
817
  for (const [r, o] of n)
789
818
  t[r] = o;
790
819
  return t;
791
- }, hn = /* @__PURE__ */ Ce(so, [["__scopeId", "data-v-68ca83ec"]]), lo = /* @__PURE__ */ ae({
820
+ }, vn = /* @__PURE__ */ Ce(lo, [["__scopeId", "data-v-68ca83ec"]]), uo = /* @__PURE__ */ ae({
792
821
  __name: "InternalLinkItem",
793
822
  props: {
794
823
  item: {
@@ -801,13 +830,13 @@ const ue = {
801
830
  const { i18n: { t: n } } = ue.useI18n();
802
831
  return (t, r) => {
803
832
  const o = q("KButton");
804
- return g(), j("div", null, [
833
+ return g(), M("div", null, [
805
834
  F(o, {
806
835
  appearance: "btn-link",
807
836
  class: "navigation-button",
808
837
  onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
809
838
  }, {
810
- default: h(() => [
839
+ default: v(() => [
811
840
  Z(K(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
812
841
  ]),
813
842
  _: 1
@@ -815,7 +844,7 @@ const ue = {
815
844
  ]);
816
845
  };
817
846
  }
818
- }), uo = /* @__PURE__ */ Ce(lo, [["__scopeId", "data-v-7410504d"]]), co = /* @__PURE__ */ ae({
847
+ }), co = /* @__PURE__ */ Ce(uo, [["__scopeId", "data-v-7410504d"]]), po = /* @__PURE__ */ ae({
819
848
  __name: "StatusBadge",
820
849
  props: {
821
850
  status: {
@@ -830,18 +859,18 @@ const ue = {
830
859
  return g(), V(o, {
831
860
  appearance: e.status ? "success" : "neutral"
832
861
  }, {
833
- default: h(() => [
862
+ default: v(() => [
834
863
  Z(K(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
835
864
  ]),
836
865
  _: 1
837
866
  }, 8, ["appearance"]);
838
867
  };
839
868
  }
840
- }), po = "#0044f4", fo = "#e0e4ea", mo = "#3a3f51", go = "1px", yo = "20px", ho = { class: "config-card-details-row" }, vo = ["data-testid"], bo = ["data-testid"], ko = ["data-testid"], Co = ["data-testid"], _o = { key: 1 }, wo = ["data-testid"], Io = ["data-testid"], xo = ["data-testid"], Ao = ["data-testid"], So = {
869
+ }), fo = "#0044f4", mo = "#e0e4ea", go = "#3a3f51", yo = "1px", ho = "20px", vo = { class: "config-card-details-row" }, bo = ["data-testid"], ko = ["data-testid"], Co = ["data-testid"], _o = ["data-testid"], wo = { key: 1 }, Io = ["data-testid"], Ao = ["data-testid"], So = ["data-testid"], xo = ["data-testid"], To = {
841
870
  name: "ConfigCardItem",
842
- components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: co, InternalLinkItem: uo }
843
- }, To = /* @__PURE__ */ ae({
844
- ...So,
871
+ components: { CopyUuid: hn, JsonCardItem: vn, StatusBadge: po, InternalLinkItem: co }
872
+ }, $o = /* @__PURE__ */ ae({
873
+ ...To,
845
874
  props: {
846
875
  item: {
847
876
  type: Object,
@@ -861,13 +890,13 @@ const ue = {
861
890
  emits: ["navigation-click"],
862
891
  setup(e, { emit: n }) {
863
892
  const t = e;
864
- ur((f) => ({
865
- "1df60db4": c.value ? "none" : `solid ${y(go)} ${y(fo)}`,
893
+ cr((f) => ({
894
+ "1df60db4": c.value ? "none" : `solid ${y(yo)} ${y(mo)}`,
866
895
  "21d1d34e": l.value && i.value ? "block" : "flex",
867
896
  "4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
868
897
  "4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
869
898
  }));
870
- const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ue.useI18n(), i = M(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = M(() => !!(t.item.tooltip || r["label-tooltip"])), l = M(() => t.item.type === te.Json || t.item.type === te.JsonArray), c = M(() => t.item.type === te.JsonArray), d = M(() => {
899
+ const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ue.useI18n(), i = T(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = T(() => !!(t.item.tooltip || r["label-tooltip"])), l = T(() => t.item.type === te.Json || t.item.type === te.JsonArray), c = T(() => t.item.type === te.JsonArray), d = T(() => {
871
900
  switch (t.item.type) {
872
901
  case te.ID:
873
902
  return {
@@ -994,36 +1023,36 @@ const ue = {
994
1023
  };
995
1024
  }
996
1025
  }), u = O(), { isTruncated: m } = ue.useTruncationDetector(u);
997
- return (f, I) => {
998
- const v = q("KLabel"), p = q("KBadge"), A = q("KMethodBadge"), b = q("KTooltip");
999
- return g(), j("div", ho, [
1026
+ return (f, S) => {
1027
+ const h = q("KLabel"), p = q("KBadge"), A = q("KMethodBadge"), b = q("KTooltip");
1028
+ return g(), M("div", vo, [
1000
1029
  R("div", {
1001
1030
  class: "config-card-details-label",
1002
1031
  "data-testid": `${e.item.key}-label`
1003
1032
  }, [
1004
1033
  Y(f.$slots, "label", { item: e.item }, () => [
1005
- F(v, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
1006
- default: h(() => [
1034
+ F(h, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
1035
+ default: v(() => [
1007
1036
  Z(K(e.item.label) + " ", 1)
1008
1037
  ]),
1009
1038
  _: 2
1010
1039
  }, [
1011
1040
  s.value ? {
1012
1041
  name: "tooltip",
1013
- fn: h(() => [
1042
+ fn: v(() => [
1014
1043
  R("div", {
1015
1044
  "data-testid": `${e.item.key}-label-tooltip`
1016
1045
  }, [
1017
1046
  Y(f.$slots, "label-tooltip", {}, () => [
1018
1047
  Z(K(e.item.tooltip), 1)
1019
1048
  ], !0)
1020
- ], 8, bo)
1049
+ ], 8, ko)
1021
1050
  ]),
1022
1051
  key: "0"
1023
1052
  } : void 0
1024
1053
  ]), 1024)
1025
1054
  ], !0)
1026
- ], 8, vo),
1055
+ ], 8, bo),
1027
1056
  R("div", {
1028
1057
  class: "config-card-details-value",
1029
1058
  "data-testid": `${e.item.key}-property-value`
@@ -1031,73 +1060,73 @@ const ue = {
1031
1060
  Y(f.$slots, e.item.key, {
1032
1061
  rowValue: e.item.value
1033
1062
  }, () => [
1034
- i.value ? (g(), j("div", _o, [
1035
- (g(), V(He(d.value.tag), cr(dr(d.value.attrs)), {
1036
- default: h(() => [
1037
- d.value.additionalComponent === "KBadge" ? (g(), j("div", {
1063
+ i.value ? (g(), M("div", wo, [
1064
+ (g(), V(ze(d.value.tag), dr(pr(d.value.attrs)), {
1065
+ default: v(() => [
1066
+ d.value.additionalComponent === "KBadge" ? (g(), M("div", {
1038
1067
  key: 0,
1039
1068
  "data-testid": `${e.item.key}-badge-tags`
1040
1069
  }, [
1041
- (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(p, {
1042
- key: `${e.item.key}-badge-tag-${x}`,
1070
+ (g(!0), M(ve, null, ye(e.item.value, (k, I) => (g(), V(p, {
1071
+ key: `${e.item.key}-badge-tag-${I}`,
1043
1072
  class: "config-badge",
1044
- "data-testid": `${e.item.key}-badge-tag-${x}`,
1073
+ "data-testid": `${e.item.key}-badge-tag-${I}`,
1045
1074
  "truncation-tooltip": k
1046
1075
  }, {
1047
- default: h(() => [
1076
+ default: v(() => [
1048
1077
  Z(K(k), 1)
1049
1078
  ]),
1050
1079
  _: 2
1051
1080
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1052
- ], 8, wo)) : G("", !0),
1053
- d.value.additionalComponent === "CopyUuid" ? (g(), j("div", {
1081
+ ], 8, Io)) : G("", !0),
1082
+ d.value.additionalComponent === "CopyUuid" ? (g(), M("div", {
1054
1083
  key: 1,
1055
1084
  class: "copy-uuid-array",
1056
1085
  "data-testid": `${e.item.key}-copy-uuid-array`
1057
1086
  }, [
1058
- (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(y(yn), ht(d.value.childAttrs, {
1059
- key: `${e.item.key}-copy-uuid-${x}`,
1060
- "data-testid": `${e.item.key}-copy-uuid-${x}`,
1087
+ (g(!0), M(ve, null, ye(e.item.value, (k, I) => (g(), V(y(hn), ht(d.value.childAttrs, {
1088
+ key: `${e.item.key}-copy-uuid-${I}`,
1089
+ "data-testid": `${e.item.key}-copy-uuid-${I}`,
1061
1090
  uuid: k
1062
1091
  }), null, 16, ["data-testid", "uuid"]))), 128))
1063
- ], 8, Io)) : d.value.additionalComponent === "KMethodBadge" ? (g(), j("div", {
1092
+ ], 8, Ao)) : d.value.additionalComponent === "KMethodBadge" ? (g(), M("div", {
1064
1093
  key: 2,
1065
1094
  class: "method-badge-array",
1066
1095
  "data-testid": `${e.item.key}-badge-methods`
1067
1096
  }, [
1068
- (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(A, {
1069
- key: `${e.item.key}-badge-method-${x}`,
1097
+ (g(!0), M(ve, null, ye(e.item.value, (k, I) => (g(), V(A, {
1098
+ key: `${e.item.key}-badge-method-${I}`,
1070
1099
  class: "config-badge",
1071
- "data-testid": `${e.item.key}-badge-method-${x}`,
1100
+ "data-testid": `${e.item.key}-badge-method-${I}`,
1072
1101
  "is-rounded": "",
1073
1102
  label: k,
1074
- method: y(kr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
1103
+ method: y(Cr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
1075
1104
  }, {
1076
- default: h(() => [
1105
+ default: v(() => [
1077
1106
  Z(K(k), 1)
1078
1107
  ]),
1079
1108
  _: 2
1080
1109
  }, 1032, ["data-testid", "label", "method"]))), 128))
1081
- ], 8, xo)) : G("", !0),
1082
- d.value.additionalComponent === "JsonCardItem" ? (g(), j("div", {
1110
+ ], 8, So)) : G("", !0),
1111
+ d.value.additionalComponent === "JsonCardItem" ? (g(), M("div", {
1083
1112
  key: 3,
1084
1113
  "data-testid": `${t.item.key}-json-array-content`
1085
1114
  }, [
1086
- (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(hn, {
1087
- key: `json-array-item-${x}`,
1088
- index: x,
1115
+ (g(!0), M(ve, null, ye(e.item.value, (k, I) => (g(), V(vn, {
1116
+ key: `json-array-item-${I}`,
1117
+ index: I,
1089
1118
  "is-array-item": "",
1090
1119
  item: k
1091
1120
  }, null, 8, ["index", "item"]))), 128))
1092
- ], 8, Ao)) : (g(), V(b, {
1121
+ ], 8, xo)) : (g(), V(b, {
1093
1122
  key: 4,
1094
1123
  label: y(m) ? e.item.value : ""
1095
1124
  }, {
1096
- default: h(() => [
1125
+ default: v(() => [
1097
1126
  R("span", {
1098
1127
  ref_key: "textContent",
1099
1128
  ref: u,
1100
- class: Fe(["attrs-data-text", { truncated: e.truncated }])
1129
+ class: Ne(["attrs-data-text", { truncated: e.truncated }])
1101
1130
  }, K(d.value.text), 3)
1102
1131
  ]),
1103
1132
  _: 1
@@ -1105,65 +1134,65 @@ const ue = {
1105
1134
  ]),
1106
1135
  _: 1
1107
1136
  }, 16))
1108
- ])) : (g(), j("div", {
1137
+ ])) : (g(), M("div", {
1109
1138
  key: 0,
1110
1139
  "data-testid": `${e.item.key}-no-value`
1111
- }, " – ", 8, Co))
1140
+ }, " – ", 8, _o))
1112
1141
  ], !0)
1113
- ], 8, ko)
1142
+ ], 8, Co)
1114
1143
  ]);
1115
1144
  };
1116
1145
  }
1117
- }), St = /* @__PURE__ */ Ce(To, [["__scopeId", "data-v-307ab96d"]]);
1146
+ }), xt = /* @__PURE__ */ Ce($o, [["__scopeId", "data-v-307ab96d"]]);
1118
1147
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1119
- function vn(e) {
1148
+ function bn(e) {
1120
1149
  return typeof e > "u" || e === null;
1121
1150
  }
1122
- function $o(e) {
1151
+ function jo(e) {
1123
1152
  return typeof e == "object" && e !== null;
1124
1153
  }
1125
1154
  function Mo(e) {
1126
- return Array.isArray(e) ? e : vn(e) ? [] : [e];
1155
+ return Array.isArray(e) ? e : bn(e) ? [] : [e];
1127
1156
  }
1128
- function jo(e, n) {
1157
+ function Eo(e, n) {
1129
1158
  var t, r, o, a;
1130
1159
  if (n)
1131
1160
  for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
1132
1161
  o = a[t], e[o] = n[o];
1133
1162
  return e;
1134
1163
  }
1135
- function Eo(e, n) {
1164
+ function Oo(e, n) {
1136
1165
  var t = "", r;
1137
1166
  for (r = 0; r < n; r += 1)
1138
1167
  t += e;
1139
1168
  return t;
1140
1169
  }
1141
- function Oo(e) {
1170
+ function Ko(e) {
1142
1171
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1143
1172
  }
1144
- var Ko = vn, Fo = $o, No = Mo, Bo = Eo, Po = Oo, Lo = jo, se = {
1145
- isNothing: Ko,
1146
- isObject: Fo,
1147
- toArray: No,
1148
- repeat: Bo,
1149
- isNegativeZero: Po,
1150
- extend: Lo
1173
+ var Fo = bn, No = jo, Bo = Mo, Po = Oo, Lo = Ko, qo = Eo, ie = {
1174
+ isNothing: Fo,
1175
+ isObject: No,
1176
+ toArray: Bo,
1177
+ repeat: Po,
1178
+ isNegativeZero: Lo,
1179
+ extend: qo
1151
1180
  };
1152
- function bn(e, n) {
1181
+ function kn(e, n) {
1153
1182
  var t = "", r = e.reason || "(unknown reason)";
1154
1183
  return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
1155
1184
 
1156
1185
  ` + e.mark.snippet), r + " " + t) : r;
1157
1186
  }
1158
- function Je(e, n) {
1159
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = bn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1187
+ function He(e, n) {
1188
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = kn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1160
1189
  }
1161
- Je.prototype = Object.create(Error.prototype);
1162
- Je.prototype.constructor = Je;
1163
- Je.prototype.toString = function(e) {
1164
- return this.name + ": " + bn(this, e);
1190
+ He.prototype = Object.create(Error.prototype);
1191
+ He.prototype.constructor = He;
1192
+ He.prototype.toString = function(e) {
1193
+ return this.name + ": " + kn(this, e);
1165
1194
  };
1166
- var me = Je;
1195
+ var ge = He;
1167
1196
  function mt(e, n, t, r, o) {
1168
1197
  var a = "", i = "", s = Math.floor(o / 2) - 1;
1169
1198
  return r - n > s && (a = " ... ", n = r - s + a.length), t - r > s && (i = " ...", t = r + s - i.length), {
@@ -1173,9 +1202,9 @@ function mt(e, n, t, r, o) {
1173
1202
  };
1174
1203
  }
1175
1204
  function gt(e, n) {
1176
- return se.repeat(" ", n - e.length) + e;
1205
+ return ie.repeat(" ", n - e.length) + e;
1177
1206
  }
1178
- function qo(e, n) {
1207
+ function Uo(e, n) {
1179
1208
  if (n = Object.create(n || null), !e.buffer)
1180
1209
  return null;
1181
1210
  n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
@@ -1190,10 +1219,10 @@ function qo(e, n) {
1190
1219
  o[i - l],
1191
1220
  e.position - (r[i] - r[i - l]),
1192
1221
  u
1193
- ), s = se.repeat(" ", n.indent) + gt((e.line - l + 1).toString(), d) + " | " + c.str + `
1222
+ ), s = ie.repeat(" ", n.indent) + gt((e.line - l + 1).toString(), d) + " | " + c.str + `
1194
1223
  ` + s;
1195
- for (c = mt(e.buffer, r[i], o[i], e.position, u), s += se.repeat(" ", n.indent) + gt((e.line + 1).toString(), d) + " | " + c.str + `
1196
- `, s += se.repeat("-", n.indent + d + 3 + c.pos) + `^
1224
+ for (c = mt(e.buffer, r[i], o[i], e.position, u), s += ie.repeat(" ", n.indent) + gt((e.line + 1).toString(), d) + " | " + c.str + `
1225
+ `, s += ie.repeat("-", n.indent + d + 3 + c.pos) + `^
1197
1226
  `, l = 1; l <= n.linesAfter && !(i + l >= o.length); l++)
1198
1227
  c = mt(
1199
1228
  e.buffer,
@@ -1201,11 +1230,11 @@ function qo(e, n) {
1201
1230
  o[i + l],
1202
1231
  e.position - (r[i] - r[i + l]),
1203
1232
  u
1204
- ), s += se.repeat(" ", n.indent) + gt((e.line + l + 1).toString(), d) + " | " + c.str + `
1233
+ ), s += ie.repeat(" ", n.indent) + gt((e.line + l + 1).toString(), d) + " | " + c.str + `
1205
1234
  `;
1206
1235
  return s.replace(/\n$/, "");
1207
1236
  }
1208
- var Uo = qo, Ro = [
1237
+ var Ro = Uo, Vo = [
1209
1238
  "kind",
1210
1239
  "multi",
1211
1240
  "resolve",
@@ -1216,12 +1245,12 @@ var Uo = qo, Ro = [
1216
1245
  "representName",
1217
1246
  "defaultStyle",
1218
1247
  "styleAliases"
1219
- ], Vo = [
1248
+ ], Do = [
1220
1249
  "scalar",
1221
1250
  "sequence",
1222
1251
  "mapping"
1223
1252
  ];
1224
- function Do(e) {
1253
+ function Go(e) {
1225
1254
  var n = {};
1226
1255
  return e !== null && Object.keys(e).forEach(function(t) {
1227
1256
  e[t].forEach(function(r) {
@@ -1229,19 +1258,19 @@ function Do(e) {
1229
1258
  });
1230
1259
  }), n;
1231
1260
  }
1232
- function Go(e, n) {
1261
+ function zo(e, n) {
1233
1262
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1234
- if (Ro.indexOf(t) === -1)
1235
- throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1263
+ if (Vo.indexOf(t) === -1)
1264
+ throw new ge('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1236
1265
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1237
1266
  return !0;
1238
1267
  }, this.construct = n.construct || function(t) {
1239
1268
  return t;
1240
- }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Do(n.styleAliases || null), Vo.indexOf(this.kind) === -1)
1241
- throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1269
+ }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Go(n.styleAliases || null), Do.indexOf(this.kind) === -1)
1270
+ throw new ge('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1242
1271
  }
1243
- var de = Go;
1244
- function zt(e, n) {
1272
+ var de = zo;
1273
+ function Ht(e, n) {
1245
1274
  var t = [];
1246
1275
  return e[n].forEach(function(r) {
1247
1276
  var o = t.length;
@@ -1250,7 +1279,7 @@ function zt(e, n) {
1250
1279
  }), t[o] = r;
1251
1280
  }), t;
1252
1281
  }
1253
- function zo() {
1282
+ function Ho() {
1254
1283
  var e = {
1255
1284
  scalar: {},
1256
1285
  sequence: {},
@@ -1282,60 +1311,60 @@ vt.prototype.extend = function(e) {
1282
1311
  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
1283
1312
  e.implicit && (n = n.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
1284
1313
  else
1285
- throw new me("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1314
+ throw new ge("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1286
1315
  n.forEach(function(o) {
1287
1316
  if (!(o instanceof de))
1288
- throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1317
+ throw new ge("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1289
1318
  if (o.loadKind && o.loadKind !== "scalar")
1290
- throw new me("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1319
+ throw new ge("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1291
1320
  if (o.multi)
1292
- throw new me("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1321
+ throw new ge("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1293
1322
  }), t.forEach(function(o) {
1294
1323
  if (!(o instanceof de))
1295
- throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1324
+ throw new ge("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1296
1325
  });
1297
1326
  var r = Object.create(vt.prototype);
1298
- return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = zt(r, "implicit"), r.compiledExplicit = zt(r, "explicit"), r.compiledTypeMap = zo(r.compiledImplicit, r.compiledExplicit), r;
1327
+ return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap = Ho(r.compiledImplicit, r.compiledExplicit), r;
1299
1328
  };
1300
- var kn = vt, Cn = new de("tag:yaml.org,2002:str", {
1329
+ var Cn = vt, _n = new de("tag:yaml.org,2002:str", {
1301
1330
  kind: "scalar",
1302
1331
  construct: function(e) {
1303
1332
  return e !== null ? e : "";
1304
1333
  }
1305
- }), _n = new de("tag:yaml.org,2002:seq", {
1334
+ }), wn = new de("tag:yaml.org,2002:seq", {
1306
1335
  kind: "sequence",
1307
1336
  construct: function(e) {
1308
1337
  return e !== null ? e : [];
1309
1338
  }
1310
- }), wn = new de("tag:yaml.org,2002:map", {
1339
+ }), In = new de("tag:yaml.org,2002:map", {
1311
1340
  kind: "mapping",
1312
1341
  construct: function(e) {
1313
1342
  return e !== null ? e : {};
1314
1343
  }
1315
- }), In = new kn({
1344
+ }), An = new Cn({
1316
1345
  explicit: [
1317
- Cn,
1318
1346
  _n,
1319
- wn
1347
+ wn,
1348
+ In
1320
1349
  ]
1321
1350
  });
1322
- function Ho(e) {
1351
+ function Jo(e) {
1323
1352
  if (e === null)
1324
1353
  return !0;
1325
1354
  var n = e.length;
1326
1355
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1327
1356
  }
1328
- function Jo() {
1357
+ function Wo() {
1329
1358
  return null;
1330
1359
  }
1331
- function Wo(e) {
1360
+ function Yo(e) {
1332
1361
  return e === null;
1333
1362
  }
1334
- var xn = new de("tag:yaml.org,2002:null", {
1363
+ var Sn = new de("tag:yaml.org,2002:null", {
1335
1364
  kind: "scalar",
1336
- resolve: Ho,
1337
- construct: Jo,
1338
- predicate: Wo,
1365
+ resolve: Jo,
1366
+ construct: Wo,
1367
+ predicate: Yo,
1339
1368
  represent: {
1340
1369
  canonical: function() {
1341
1370
  return "~";
@@ -1355,23 +1384,23 @@ var xn = new de("tag:yaml.org,2002:null", {
1355
1384
  },
1356
1385
  defaultStyle: "lowercase"
1357
1386
  });
1358
- function Yo(e) {
1387
+ function Zo(e) {
1359
1388
  if (e === null)
1360
1389
  return !1;
1361
1390
  var n = e.length;
1362
1391
  return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
1363
1392
  }
1364
- function Zo(e) {
1393
+ function Qo(e) {
1365
1394
  return e === "true" || e === "True" || e === "TRUE";
1366
1395
  }
1367
- function Qo(e) {
1396
+ function Xo(e) {
1368
1397
  return Object.prototype.toString.call(e) === "[object Boolean]";
1369
1398
  }
1370
- var An = new de("tag:yaml.org,2002:bool", {
1399
+ var xn = new de("tag:yaml.org,2002:bool", {
1371
1400
  kind: "scalar",
1372
- resolve: Yo,
1373
- construct: Zo,
1374
- predicate: Qo,
1401
+ resolve: Zo,
1402
+ construct: Qo,
1403
+ predicate: Xo,
1375
1404
  represent: {
1376
1405
  lowercase: function(e) {
1377
1406
  return e ? "true" : "false";
@@ -1385,16 +1414,16 @@ var An = new de("tag:yaml.org,2002:bool", {
1385
1414
  },
1386
1415
  defaultStyle: "lowercase"
1387
1416
  });
1388
- function Xo(e) {
1417
+ function ea(e) {
1389
1418
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1390
1419
  }
1391
- function ea(e) {
1420
+ function ta(e) {
1392
1421
  return 48 <= e && e <= 55;
1393
1422
  }
1394
- function ta(e) {
1423
+ function na(e) {
1395
1424
  return 48 <= e && e <= 57;
1396
1425
  }
1397
- function na(e) {
1426
+ function ra(e) {
1398
1427
  if (e === null)
1399
1428
  return !1;
1400
1429
  var n = e.length, t = 0, r = !1, o;
@@ -1415,7 +1444,7 @@ function na(e) {
1415
1444
  if (o === "x") {
1416
1445
  for (t++; t < n; t++)
1417
1446
  if (o = e[t], o !== "_") {
1418
- if (!Xo(e.charCodeAt(t)))
1447
+ if (!ea(e.charCodeAt(t)))
1419
1448
  return !1;
1420
1449
  r = !0;
1421
1450
  }
@@ -1424,7 +1453,7 @@ function na(e) {
1424
1453
  if (o === "o") {
1425
1454
  for (t++; t < n; t++)
1426
1455
  if (o = e[t], o !== "_") {
1427
- if (!ea(e.charCodeAt(t)))
1456
+ if (!ta(e.charCodeAt(t)))
1428
1457
  return !1;
1429
1458
  r = !0;
1430
1459
  }
@@ -1435,13 +1464,13 @@ function na(e) {
1435
1464
  return !1;
1436
1465
  for (; t < n; t++)
1437
1466
  if (o = e[t], o !== "_") {
1438
- if (!ta(e.charCodeAt(t)))
1467
+ if (!na(e.charCodeAt(t)))
1439
1468
  return !1;
1440
1469
  r = !0;
1441
1470
  }
1442
1471
  return !(!r || o === "_");
1443
1472
  }
1444
- function ra(e) {
1473
+ function oa(e) {
1445
1474
  var n = e, t = 1, r;
1446
1475
  if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
1447
1476
  return 0;
@@ -1455,14 +1484,14 @@ function ra(e) {
1455
1484
  }
1456
1485
  return t * parseInt(n, 10);
1457
1486
  }
1458
- function oa(e) {
1459
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
1487
+ function aa(e) {
1488
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ie.isNegativeZero(e);
1460
1489
  }
1461
- var Sn = new de("tag:yaml.org,2002:int", {
1490
+ var Tn = new de("tag:yaml.org,2002:int", {
1462
1491
  kind: "scalar",
1463
- resolve: na,
1464
- construct: ra,
1465
- predicate: oa,
1492
+ resolve: ra,
1493
+ construct: oa,
1494
+ predicate: aa,
1466
1495
  represent: {
1467
1496
  binary: function(e) {
1468
1497
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1485,21 +1514,21 @@ var Sn = new de("tag:yaml.org,2002:int", {
1485
1514
  decimal: [10, "dec"],
1486
1515
  hexadecimal: [16, "hex"]
1487
1516
  }
1488
- }), aa = new RegExp(
1517
+ }), ia = new RegExp(
1489
1518
  // 2.5e4, 2.5 and integers
1490
1519
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1491
1520
  );
1492
- function ia(e) {
1493
- return !(e === null || !aa.test(e) || // Quick hack to not allow integers end with `_`
1521
+ function sa(e) {
1522
+ return !(e === null || !ia.test(e) || // Quick hack to not allow integers end with `_`
1494
1523
  // Probably should update regexp & check speed
1495
1524
  e[e.length - 1] === "_");
1496
1525
  }
1497
- function sa(e) {
1526
+ function la(e) {
1498
1527
  var n, t;
1499
1528
  return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
1500
1529
  }
1501
- var la = /^[-+]?[0-9]+e/;
1502
- function ua(e, n) {
1530
+ var ua = /^[-+]?[0-9]+e/;
1531
+ function ca(e, n) {
1503
1532
  var t;
1504
1533
  if (isNaN(e))
1505
1534
  switch (n) {
@@ -1528,38 +1557,38 @@ function ua(e, n) {
1528
1557
  case "camelcase":
1529
1558
  return "-.Inf";
1530
1559
  }
1531
- else if (se.isNegativeZero(e))
1560
+ else if (ie.isNegativeZero(e))
1532
1561
  return "-0.0";
1533
- return t = e.toString(10), la.test(t) ? t.replace("e", ".e") : t;
1562
+ return t = e.toString(10), ua.test(t) ? t.replace("e", ".e") : t;
1534
1563
  }
1535
- function ca(e) {
1536
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
1564
+ function da(e) {
1565
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ie.isNegativeZero(e));
1537
1566
  }
1538
- var Tn = new de("tag:yaml.org,2002:float", {
1567
+ var $n = new de("tag:yaml.org,2002:float", {
1539
1568
  kind: "scalar",
1540
- resolve: ia,
1541
- construct: sa,
1542
- predicate: ca,
1543
- represent: ua,
1569
+ resolve: sa,
1570
+ construct: la,
1571
+ predicate: da,
1572
+ represent: ca,
1544
1573
  defaultStyle: "lowercase"
1545
- }), $n = In.extend({
1574
+ }), jn = An.extend({
1546
1575
  implicit: [
1547
- xn,
1548
- An,
1549
1576
  Sn,
1550
- Tn
1577
+ xn,
1578
+ Tn,
1579
+ $n
1551
1580
  ]
1552
- }), Mn = $n, jn = new RegExp(
1581
+ }), Mn = jn, En = new RegExp(
1553
1582
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1554
- ), En = new RegExp(
1583
+ ), On = new RegExp(
1555
1584
  "^([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]))?))?$"
1556
1585
  );
1557
- function da(e) {
1558
- return e === null ? !1 : jn.exec(e) !== null || En.exec(e) !== null;
1559
- }
1560
1586
  function pa(e) {
1587
+ return e === null ? !1 : En.exec(e) !== null || On.exec(e) !== null;
1588
+ }
1589
+ function fa(e) {
1561
1590
  var n, t, r, o, a, i, s, l = 0, c = null, d, u, m;
1562
- if (n = jn.exec(e), n === null && (n = En.exec(e)), n === null)
1591
+ if (n = En.exec(e), n === null && (n = On.exec(e)), n === null)
1563
1592
  throw new Error("Date resolve error");
1564
1593
  if (t = +n[1], r = +n[2] - 1, o = +n[3], !n[4])
1565
1594
  return new Date(Date.UTC(t, r, o));
@@ -1570,25 +1599,25 @@ function pa(e) {
1570
1599
  }
1571
1600
  return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), m = new Date(Date.UTC(t, r, o, a, i, s, l)), c && m.setTime(m.getTime() - c), m;
1572
1601
  }
1573
- function fa(e) {
1602
+ function ma(e) {
1574
1603
  return e.toISOString();
1575
1604
  }
1576
- var On = new de("tag:yaml.org,2002:timestamp", {
1605
+ var Kn = new de("tag:yaml.org,2002:timestamp", {
1577
1606
  kind: "scalar",
1578
- resolve: da,
1579
- construct: pa,
1607
+ resolve: pa,
1608
+ construct: fa,
1580
1609
  instanceOf: Date,
1581
- represent: fa
1610
+ represent: ma
1582
1611
  });
1583
- function ma(e) {
1612
+ function ga(e) {
1584
1613
  return e === "<<" || e === null;
1585
1614
  }
1586
- var Kn = new de("tag:yaml.org,2002:merge", {
1615
+ var Fn = new de("tag:yaml.org,2002:merge", {
1587
1616
  kind: "scalar",
1588
- resolve: ma
1617
+ resolve: ga
1589
1618
  }), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1590
1619
  \r`;
1591
- function ga(e) {
1620
+ function ya(e) {
1592
1621
  if (e === null)
1593
1622
  return !1;
1594
1623
  var n, t, r = 0, o = e.length, a = Tt;
@@ -1600,37 +1629,37 @@ function ga(e) {
1600
1629
  }
1601
1630
  return r % 8 === 0;
1602
1631
  }
1603
- function ya(e) {
1632
+ function ha(e) {
1604
1633
  var n, t, r = e.replace(/[\r\n=]/g, ""), o = r.length, a = Tt, i = 0, s = [];
1605
1634
  for (n = 0; n < o; n++)
1606
1635
  n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | a.indexOf(r.charAt(n));
1607
1636
  return t = o % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
1608
1637
  }
1609
- function ha(e) {
1638
+ function va(e) {
1610
1639
  var n = "", t = 0, r, o, a = e.length, i = Tt;
1611
1640
  for (r = 0; r < a; r++)
1612
1641
  r % 3 === 0 && r && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[r];
1613
1642
  return o = a % 3, o === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : o === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : o === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
1614
1643
  }
1615
- function va(e) {
1644
+ function ba(e) {
1616
1645
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1617
1646
  }
1618
- var Fn = new de("tag:yaml.org,2002:binary", {
1647
+ var Nn = new de("tag:yaml.org,2002:binary", {
1619
1648
  kind: "scalar",
1620
- resolve: ga,
1621
- construct: ya,
1622
- predicate: va,
1623
- represent: ha
1624
- }), ba = Object.prototype.hasOwnProperty, ka = Object.prototype.toString;
1625
- function Ca(e) {
1649
+ resolve: ya,
1650
+ construct: ha,
1651
+ predicate: ba,
1652
+ represent: va
1653
+ }), ka = Object.prototype.hasOwnProperty, Ca = Object.prototype.toString;
1654
+ function _a(e) {
1626
1655
  if (e === null)
1627
1656
  return !0;
1628
1657
  var n = [], t, r, o, a, i, s = e;
1629
1658
  for (t = 0, r = s.length; t < r; t += 1) {
1630
- if (o = s[t], i = !1, ka.call(o) !== "[object Object]")
1659
+ if (o = s[t], i = !1, Ca.call(o) !== "[object Object]")
1631
1660
  return !1;
1632
1661
  for (a in o)
1633
- if (ba.call(o, a))
1662
+ if (ka.call(o, a))
1634
1663
  if (!i)
1635
1664
  i = !0;
1636
1665
  else
@@ -1644,26 +1673,26 @@ function Ca(e) {
1644
1673
  }
1645
1674
  return !0;
1646
1675
  }
1647
- function _a(e) {
1676
+ function wa(e) {
1648
1677
  return e !== null ? e : [];
1649
1678
  }
1650
- var Nn = new de("tag:yaml.org,2002:omap", {
1679
+ var Bn = new de("tag:yaml.org,2002:omap", {
1651
1680
  kind: "sequence",
1652
- resolve: Ca,
1653
- construct: _a
1654
- }), wa = Object.prototype.toString;
1655
- function Ia(e) {
1681
+ resolve: _a,
1682
+ construct: wa
1683
+ }), Ia = Object.prototype.toString;
1684
+ function Aa(e) {
1656
1685
  if (e === null)
1657
1686
  return !0;
1658
1687
  var n, t, r, o, a, i = e;
1659
1688
  for (a = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
1660
- if (r = i[n], wa.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
1689
+ if (r = i[n], Ia.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
1661
1690
  return !1;
1662
1691
  a[n] = [o[0], r[o[0]]];
1663
1692
  }
1664
1693
  return !0;
1665
1694
  }
1666
- function xa(e) {
1695
+ function Sa(e) {
1667
1696
  if (e === null)
1668
1697
  return [];
1669
1698
  var n, t, r, o, a, i = e;
@@ -1671,81 +1700,81 @@ function xa(e) {
1671
1700
  r = i[n], o = Object.keys(r), a[n] = [o[0], r[o[0]]];
1672
1701
  return a;
1673
1702
  }
1674
- var Bn = new de("tag:yaml.org,2002:pairs", {
1703
+ var Pn = new de("tag:yaml.org,2002:pairs", {
1675
1704
  kind: "sequence",
1676
- resolve: Ia,
1677
- construct: xa
1678
- }), Aa = Object.prototype.hasOwnProperty;
1679
- function Sa(e) {
1705
+ resolve: Aa,
1706
+ construct: Sa
1707
+ }), xa = Object.prototype.hasOwnProperty;
1708
+ function Ta(e) {
1680
1709
  if (e === null)
1681
1710
  return !0;
1682
1711
  var n, t = e;
1683
1712
  for (n in t)
1684
- if (Aa.call(t, n) && t[n] !== null)
1713
+ if (xa.call(t, n) && t[n] !== null)
1685
1714
  return !1;
1686
1715
  return !0;
1687
1716
  }
1688
- function Ta(e) {
1717
+ function $a(e) {
1689
1718
  return e !== null ? e : {};
1690
1719
  }
1691
- var Pn = new de("tag:yaml.org,2002:set", {
1720
+ var Ln = new de("tag:yaml.org,2002:set", {
1692
1721
  kind: "mapping",
1693
- resolve: Sa,
1694
- construct: Ta
1722
+ resolve: Ta,
1723
+ construct: $a
1695
1724
  }), $t = Mn.extend({
1696
1725
  implicit: [
1697
- On,
1698
- Kn
1726
+ Kn,
1727
+ Fn
1699
1728
  ],
1700
1729
  explicit: [
1701
- Fn,
1702
1730
  Nn,
1703
1731
  Bn,
1704
- Pn
1732
+ Pn,
1733
+ Ln
1705
1734
  ]
1706
- }), je = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, qn = 3, at = 4, yt = 1, $a = 2, Ht = 3, Ma = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ja = /[\x85\u2028\u2029]/, Ea = /[,\[\]\{\}]/, Un = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1707
- function Jt(e) {
1735
+ }), Me = Object.prototype.hasOwnProperty, ot = 1, qn = 2, Un = 3, at = 4, yt = 1, ja = 2, Jt = 3, Ma = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ea = /[\x85\u2028\u2029]/, Oa = /[,\[\]\{\}]/, Rn = /^(?:!|!!|![a-z\-]+!)$/i, Vn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1736
+ function Wt(e) {
1708
1737
  return Object.prototype.toString.call(e);
1709
1738
  }
1710
1739
  function we(e) {
1711
1740
  return e === 10 || e === 13;
1712
1741
  }
1713
- function Ke(e) {
1742
+ function Fe(e) {
1714
1743
  return e === 9 || e === 32;
1715
1744
  }
1716
1745
  function he(e) {
1717
1746
  return e === 9 || e === 32 || e === 10 || e === 13;
1718
1747
  }
1719
- function qe(e) {
1748
+ function Ue(e) {
1720
1749
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1721
1750
  }
1722
- function Oa(e) {
1751
+ function Ka(e) {
1723
1752
  var n;
1724
1753
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1725
1754
  }
1726
- function Ka(e) {
1755
+ function Fa(e) {
1727
1756
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1728
1757
  }
1729
- function Fa(e) {
1758
+ function Na(e) {
1730
1759
  return 48 <= e && e <= 57 ? e - 48 : -1;
1731
1760
  }
1732
- function Wt(e) {
1761
+ function Yt(e) {
1733
1762
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1734
1763
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1735
1764
  }
1736
- function Na(e) {
1765
+ function Ba(e) {
1737
1766
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1738
1767
  (e - 65536 >> 10) + 55296,
1739
1768
  (e - 65536 & 1023) + 56320
1740
1769
  );
1741
1770
  }
1742
- var Vn = new Array(256), Dn = new Array(256);
1743
- for (var Pe = 0; Pe < 256; Pe++)
1744
- Vn[Pe] = Wt(Pe) ? 1 : 0, Dn[Pe] = Wt(Pe);
1745
- function Ba(e, n) {
1771
+ var Dn = new Array(256), Gn = new Array(256);
1772
+ for (var Le = 0; Le < 256; Le++)
1773
+ Dn[Le] = Yt(Le) ? 1 : 0, Gn[Le] = Yt(Le);
1774
+ function Pa(e, n) {
1746
1775
  this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1747
1776
  }
1748
- function Gn(e, n) {
1777
+ function zn(e, n) {
1749
1778
  var t = {
1750
1779
  name: e.filename,
1751
1780
  buffer: e.input.slice(0, -1),
@@ -1754,59 +1783,59 @@ function Gn(e, n) {
1754
1783
  line: e.line,
1755
1784
  column: e.position - e.lineStart
1756
1785
  };
1757
- return t.snippet = Uo(t), new me(n, t);
1786
+ return t.snippet = Ro(t), new ge(n, t);
1758
1787
  }
1759
- function $(e, n) {
1760
- throw Gn(e, n);
1788
+ function j(e, n) {
1789
+ throw zn(e, n);
1761
1790
  }
1762
1791
  function it(e, n) {
1763
- e.onWarning && e.onWarning.call(null, Gn(e, n));
1792
+ e.onWarning && e.onWarning.call(null, zn(e, n));
1764
1793
  }
1765
- var Yt = {
1794
+ var Zt = {
1766
1795
  YAML: function(e, n, t) {
1767
1796
  var r, o, a;
1768
- e.version !== null && $(e, "duplication of %YAML directive"), t.length !== 1 && $(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), r === null && $(e, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && $(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && it(e, "unsupported YAML version of the document");
1797
+ e.version !== null && j(e, "duplication of %YAML directive"), t.length !== 1 && j(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), r === null && j(e, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && j(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && it(e, "unsupported YAML version of the document");
1769
1798
  },
1770
1799
  TAG: function(e, n, t) {
1771
1800
  var r, o;
1772
- t.length !== 2 && $(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], Un.test(r) || $(e, "ill-formed tag handle (first argument) of the TAG directive"), je.call(e.tagMap, r) && $(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Rn.test(o) || $(e, "ill-formed tag prefix (second argument) of the TAG directive");
1801
+ t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], Rn.test(r) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), Me.call(e.tagMap, r) && j(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Vn.test(o) || j(e, "ill-formed tag prefix (second argument) of the TAG directive");
1773
1802
  try {
1774
1803
  o = decodeURIComponent(o);
1775
1804
  } catch {
1776
- $(e, "tag prefix is malformed: " + o);
1805
+ j(e, "tag prefix is malformed: " + o);
1777
1806
  }
1778
1807
  e.tagMap[r] = o;
1779
1808
  }
1780
1809
  };
1781
- function Me(e, n, t, r) {
1810
+ function je(e, n, t, r) {
1782
1811
  var o, a, i, s;
1783
1812
  if (n < t) {
1784
1813
  if (s = e.input.slice(n, t), r)
1785
1814
  for (o = 0, a = s.length; o < a; o += 1)
1786
- i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || $(e, "expected valid JSON character");
1815
+ i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || j(e, "expected valid JSON character");
1787
1816
  else
1788
- Ma.test(s) && $(e, "the stream contains non-printable characters");
1817
+ Ma.test(s) && j(e, "the stream contains non-printable characters");
1789
1818
  e.result += s;
1790
1819
  }
1791
1820
  }
1792
- function Zt(e, n, t, r) {
1821
+ function Qt(e, n, t, r) {
1793
1822
  var o, a, i, s;
1794
- for (se.isObject(t) || $(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
1795
- a = o[i], je.call(n, a) || (n[a] = t[a], r[a] = !0);
1823
+ for (ie.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
1824
+ a = o[i], Me.call(n, a) || (n[a] = t[a], r[a] = !0);
1796
1825
  }
1797
- function Ue(e, n, t, r, o, a, i, s, l) {
1826
+ function Re(e, n, t, r, o, a, i, s, l) {
1798
1827
  var c, d;
1799
1828
  if (Array.isArray(o))
1800
1829
  for (o = Array.prototype.slice.call(o), c = 0, d = o.length; c < d; c += 1)
1801
- Array.isArray(o[c]) && $(e, "nested arrays are not supported inside keys"), typeof o == "object" && Jt(o[c]) === "[object Object]" && (o[c] = "[object Object]");
1802
- if (typeof o == "object" && Jt(o) === "[object Object]" && (o = "[object Object]"), o = String(o), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1830
+ Array.isArray(o[c]) && j(e, "nested arrays are not supported inside keys"), typeof o == "object" && Wt(o[c]) === "[object Object]" && (o[c] = "[object Object]");
1831
+ if (typeof o == "object" && Wt(o) === "[object Object]" && (o = "[object Object]"), o = String(o), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1803
1832
  if (Array.isArray(a))
1804
1833
  for (c = 0, d = a.length; c < d; c += 1)
1805
- Zt(e, n, a[c], t);
1834
+ Qt(e, n, a[c], t);
1806
1835
  else
1807
- Zt(e, n, a, t);
1836
+ Qt(e, n, a, t);
1808
1837
  else
1809
- !e.json && !je.call(t, o) && je.call(n, o) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, $(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(n, o, {
1838
+ !e.json && !Me.call(t, o) && Me.call(n, o) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, j(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(n, o, {
1810
1839
  configurable: !0,
1811
1840
  enumerable: !0,
1812
1841
  writable: !0,
@@ -1814,20 +1843,20 @@ function Ue(e, n, t, r, o, a, i, s, l) {
1814
1843
  }) : n[o] = a, delete t[o];
1815
1844
  return n;
1816
1845
  }
1817
- function Mt(e) {
1846
+ function jt(e) {
1818
1847
  var n;
1819
- n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : $(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1848
+ 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;
1820
1849
  }
1821
1850
  function oe(e, n, t) {
1822
1851
  for (var r = 0, o = e.input.charCodeAt(e.position); o !== 0; ) {
1823
- for (; Ke(o); )
1852
+ for (; Fe(o); )
1824
1853
  o === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), o = e.input.charCodeAt(++e.position);
1825
1854
  if (n && o === 35)
1826
1855
  do
1827
1856
  o = e.input.charCodeAt(++e.position);
1828
1857
  while (o !== 10 && o !== 13 && o !== 0);
1829
1858
  if (we(o))
1830
- for (Mt(e), o = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; o === 32; )
1859
+ for (jt(e), o = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; o === 32; )
1831
1860
  e.lineIndent++, o = e.input.charCodeAt(++e.position);
1832
1861
  else
1833
1862
  break;
@@ -1838,23 +1867,23 @@ function dt(e) {
1838
1867
  var n = e.position, t;
1839
1868
  return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || he(t)));
1840
1869
  }
1841
- function jt(e, n) {
1842
- n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
1870
+ function Mt(e, n) {
1871
+ n === 1 ? e.result += " " : n > 1 && (e.result += ie.repeat(`
1843
1872
  `, n - 1));
1844
1873
  }
1845
- function Pa(e, n, t) {
1874
+ function La(e, n, t) {
1846
1875
  var r, o, a, i, s, l, c, d, u = e.kind, m = e.result, f;
1847
- if (f = e.input.charCodeAt(e.position), he(f) || qe(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) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && qe(o)))
1876
+ if (f = e.input.charCodeAt(e.position), he(f) || Ue(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) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && Ue(o)))
1848
1877
  return !1;
1849
1878
  for (e.kind = "scalar", e.result = "", a = i = e.position, s = !1; f !== 0; ) {
1850
1879
  if (f === 58) {
1851
- if (o = e.input.charCodeAt(e.position + 1), he(o) || t && qe(o))
1880
+ if (o = e.input.charCodeAt(e.position + 1), he(o) || t && Ue(o))
1852
1881
  break;
1853
1882
  } else if (f === 35) {
1854
1883
  if (r = e.input.charCodeAt(e.position - 1), he(r))
1855
1884
  break;
1856
1885
  } else {
1857
- if (e.position === e.lineStart && dt(e) || t && qe(f))
1886
+ if (e.position === e.lineStart && dt(e) || t && Ue(f))
1858
1887
  break;
1859
1888
  if (we(f))
1860
1889
  if (l = e.line, c = e.lineStart, d = e.lineIndent, oe(e, !1, -1), e.lineIndent >= n) {
@@ -1865,50 +1894,50 @@ function Pa(e, n, t) {
1865
1894
  break;
1866
1895
  }
1867
1896
  }
1868
- s && (Me(e, a, i, !1), jt(e, e.line - l), a = i = e.position, s = !1), Ke(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1897
+ s && (je(e, a, i, !1), Mt(e, e.line - l), a = i = e.position, s = !1), Fe(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1869
1898
  }
1870
- return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
1899
+ return je(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
1871
1900
  }
1872
- function La(e, n) {
1901
+ function qa(e, n) {
1873
1902
  var t, r, o;
1874
1903
  if (t = e.input.charCodeAt(e.position), t !== 39)
1875
1904
  return !1;
1876
1905
  for (e.kind = "scalar", e.result = "", e.position++, r = o = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
1877
1906
  if (t === 39)
1878
- if (Me(e, r, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
1907
+ if (je(e, r, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
1879
1908
  r = e.position, e.position++, o = e.position;
1880
1909
  else
1881
1910
  return !0;
1882
1911
  else
1883
- we(t) ? (Me(e, r, o, !0), jt(e, oe(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
1884
- $(e, "unexpected end of the stream within a single quoted scalar");
1912
+ we(t) ? (je(e, r, o, !0), Mt(e, oe(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
1913
+ j(e, "unexpected end of the stream within a single quoted scalar");
1885
1914
  }
1886
- function qa(e, n) {
1915
+ function Ua(e, n) {
1887
1916
  var t, r, o, a, i, s;
1888
1917
  if (s = e.input.charCodeAt(e.position), s !== 34)
1889
1918
  return !1;
1890
1919
  for (e.kind = "scalar", e.result = "", e.position++, t = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
1891
1920
  if (s === 34)
1892
- return Me(e, t, e.position, !0), e.position++, !0;
1921
+ return je(e, t, e.position, !0), e.position++, !0;
1893
1922
  if (s === 92) {
1894
- if (Me(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
1923
+ if (je(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
1895
1924
  oe(e, !1, n);
1896
- else if (s < 256 && Vn[s])
1897
- e.result += Dn[s], e.position++;
1898
- else if ((i = Ka(s)) > 0) {
1925
+ else if (s < 256 && Dn[s])
1926
+ e.result += Gn[s], e.position++;
1927
+ else if ((i = Fa(s)) > 0) {
1899
1928
  for (o = i, a = 0; o > 0; o--)
1900
- s = e.input.charCodeAt(++e.position), (i = Oa(s)) >= 0 ? a = (a << 4) + i : $(e, "expected hexadecimal character");
1901
- e.result += Na(a), e.position++;
1929
+ s = e.input.charCodeAt(++e.position), (i = Ka(s)) >= 0 ? a = (a << 4) + i : j(e, "expected hexadecimal character");
1930
+ e.result += Ba(a), e.position++;
1902
1931
  } else
1903
- $(e, "unknown escape sequence");
1932
+ j(e, "unknown escape sequence");
1904
1933
  t = r = e.position;
1905
1934
  } else
1906
- we(s) ? (Me(e, t, r, !0), jt(e, oe(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1935
+ we(s) ? (je(e, t, r, !0), Mt(e, oe(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1907
1936
  }
1908
- $(e, "unexpected end of the stream within a double quoted scalar");
1937
+ j(e, "unexpected end of the stream within a double quoted scalar");
1909
1938
  }
1910
- function Ua(e, n) {
1911
- var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, f, I = /* @__PURE__ */ Object.create(null), v, p, A, b;
1939
+ function Ra(e, n) {
1940
+ var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, f, S = /* @__PURE__ */ Object.create(null), h, p, A, b;
1912
1941
  if (b = e.input.charCodeAt(e.position), b === 91)
1913
1942
  d = 93, f = !1, s = [];
1914
1943
  else if (b === 123)
@@ -1918,11 +1947,11 @@ function Ua(e, n) {
1918
1947
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
1919
1948
  if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
1920
1949
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1921
- t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = A = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), A = e.result), f ? Ue(e, s, I, p, v, A, r, o, a) : u ? s.push(Ue(e, null, I, p, v, A, r, o, a)) : s.push(v), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
1950
+ t ? b === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = h = A = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Ve(e, n, ot, !1, !0), p = e.tag, h = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Ve(e, n, ot, !1, !0), A = e.result), f ? Re(e, s, S, p, h, A, r, o, a) : u ? s.push(Re(e, null, S, p, h, A, r, o, a)) : s.push(h), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
1922
1951
  }
1923
- $(e, "unexpected end of the stream within a flow collection");
1952
+ j(e, "unexpected end of the stream within a flow collection");
1924
1953
  }
1925
- function Ra(e, n) {
1954
+ function Va(e, n) {
1926
1955
  var t, r, o = yt, a = !1, i = !1, s = n, l = 0, c = !1, d, u;
1927
1956
  if (u = e.input.charCodeAt(e.position), u === 124)
1928
1957
  r = !1;
@@ -1932,161 +1961,161 @@ function Ra(e, n) {
1932
1961
  return !1;
1933
1962
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1934
1963
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1935
- yt === o ? o = u === 43 ? Ht : $a : $(e, "repeat of a chomping mode identifier");
1936
- else if ((d = Fa(u)) >= 0)
1937
- d === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? $(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
1964
+ yt === o ? o = u === 43 ? Jt : ja : j(e, "repeat of a chomping mode identifier");
1965
+ else if ((d = Na(u)) >= 0)
1966
+ 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);
1938
1967
  else
1939
1968
  break;
1940
- if (Ke(u)) {
1969
+ if (Fe(u)) {
1941
1970
  do
1942
1971
  u = e.input.charCodeAt(++e.position);
1943
- while (Ke(u));
1972
+ while (Fe(u));
1944
1973
  if (u === 35)
1945
1974
  do
1946
1975
  u = e.input.charCodeAt(++e.position);
1947
1976
  while (!we(u) && u !== 0);
1948
1977
  }
1949
1978
  for (; u !== 0; ) {
1950
- for (Mt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!i || e.lineIndent < s) && u === 32; )
1979
+ for (jt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!i || e.lineIndent < s) && u === 32; )
1951
1980
  e.lineIndent++, u = e.input.charCodeAt(++e.position);
1952
1981
  if (!i && e.lineIndent > s && (s = e.lineIndent), we(u)) {
1953
1982
  l++;
1954
1983
  continue;
1955
1984
  }
1956
1985
  if (e.lineIndent < s) {
1957
- o === Ht ? e.result += se.repeat(`
1986
+ o === Jt ? e.result += ie.repeat(`
1958
1987
  `, a ? 1 + l : l) : o === yt && a && (e.result += `
1959
1988
  `);
1960
1989
  break;
1961
1990
  }
1962
- for (r ? Ke(u) ? (c = !0, e.result += se.repeat(`
1963
- `, a ? 1 + l : l)) : c ? (c = !1, e.result += se.repeat(`
1964
- `, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += se.repeat(`
1965
- `, l) : e.result += se.repeat(`
1991
+ for (r ? Fe(u) ? (c = !0, e.result += ie.repeat(`
1992
+ `, a ? 1 + l : l)) : c ? (c = !1, e.result += ie.repeat(`
1993
+ `, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += ie.repeat(`
1994
+ `, l) : e.result += ie.repeat(`
1966
1995
  `, a ? 1 + l : l), a = !0, i = !0, l = 0, t = e.position; !we(u) && u !== 0; )
1967
1996
  u = e.input.charCodeAt(++e.position);
1968
- Me(e, t, e.position, !1);
1997
+ je(e, t, e.position, !1);
1969
1998
  }
1970
1999
  return !0;
1971
2000
  }
1972
- function Qt(e, n) {
2001
+ function Xt(e, n) {
1973
2002
  var t, r = e.tag, o = e.anchor, a = [], i, s = !1, l;
1974
2003
  if (e.firstTabInLine !== -1)
1975
2004
  return !1;
1976
- for (e.anchor !== null && (e.anchorMap[e.anchor] = a), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !he(i)))); ) {
2005
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = a), 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), !he(i)))); ) {
1977
2006
  if (s = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= n) {
1978
2007
  a.push(null), l = e.input.charCodeAt(e.position);
1979
2008
  continue;
1980
2009
  }
1981
- if (t = e.line, Re(e, n, qn, !1, !0), a.push(e.result), oe(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
1982
- $(e, "bad indentation of a sequence entry");
2010
+ if (t = e.line, Ve(e, n, Un, !1, !0), a.push(e.result), oe(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2011
+ j(e, "bad indentation of a sequence entry");
1983
2012
  else if (e.lineIndent < n)
1984
2013
  break;
1985
2014
  }
1986
2015
  return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
1987
2016
  }
1988
- function Va(e, n, t) {
1989
- var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, A = !1, b;
2017
+ function Da(e, n, t) {
2018
+ var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, S = null, h = null, p = !1, A = !1, b;
1990
2019
  if (e.firstTabInLine !== -1)
1991
2020
  return !1;
1992
2021
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
1993
- if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
1994
- b === 63 ? (p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), A = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
2022
+ if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
2023
+ b === 63 ? (p && (Re(e, u, m, f, S, null, i, s, l), f = S = h = null), A = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
1995
2024
  else {
1996
- if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
2025
+ if (i = e.line, s = e.lineStart, l = e.position, !Ve(e, t, qn, !1, !0))
1997
2026
  break;
1998
2027
  if (e.line === a) {
1999
- for (b = e.input.charCodeAt(e.position); Ke(b); )
2028
+ for (b = e.input.charCodeAt(e.position); Fe(b); )
2000
2029
  b = e.input.charCodeAt(++e.position);
2001
2030
  if (b === 58)
2002
- b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), A = !0, p = !1, o = !1, f = e.tag, I = e.result;
2031
+ b = e.input.charCodeAt(++e.position), he(b) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Re(e, u, m, f, S, null, i, s, l), f = S = h = null), A = !0, p = !1, o = !1, f = e.tag, S = e.result;
2003
2032
  else if (A)
2004
- $(e, "can not read an implicit mapping pair; a colon is missed");
2033
+ j(e, "can not read an implicit mapping pair; a colon is missed");
2005
2034
  else
2006
2035
  return e.tag = c, e.anchor = d, !0;
2007
2036
  } else if (A)
2008
- $(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2037
+ j(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2009
2038
  else
2010
2039
  return e.tag = c, e.anchor = d, !0;
2011
2040
  }
2012
- if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? I = e.result : v = e.result), p || (Ue(e, u, m, f, I, v, i, s, l), f = I = v = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
2013
- $(e, "bad indentation of a mapping entry");
2041
+ if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ve(e, n, at, !0, o) && (p ? S = e.result : h = e.result), p || (Re(e, u, m, f, S, h, i, s, l), f = S = h = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
2042
+ j(e, "bad indentation of a mapping entry");
2014
2043
  else if (e.lineIndent < n)
2015
2044
  break;
2016
2045
  }
2017
- return p && Ue(e, u, m, f, I, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
2046
+ return p && Re(e, u, m, f, S, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
2018
2047
  }
2019
- function Da(e) {
2048
+ function Ga(e) {
2020
2049
  var n, t = !1, r = !1, o, a, i;
2021
2050
  if (i = e.input.charCodeAt(e.position), i !== 33)
2022
2051
  return !1;
2023
- if (e.tag !== null && $(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (r = !0, o = "!!", i = e.input.charCodeAt(++e.position)) : o = "!", n = e.position, t) {
2052
+ 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 ? (r = !0, o = "!!", i = e.input.charCodeAt(++e.position)) : o = "!", n = e.position, t) {
2024
2053
  do
2025
2054
  i = e.input.charCodeAt(++e.position);
2026
2055
  while (i !== 0 && i !== 62);
2027
- e.position < e.length ? (a = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : $(e, "unexpected end of the stream within a verbatim tag");
2056
+ e.position < e.length ? (a = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : j(e, "unexpected end of the stream within a verbatim tag");
2028
2057
  } else {
2029
2058
  for (; i !== 0 && !he(i); )
2030
- i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), Un.test(o) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2031
- a = e.input.slice(n, e.position), Ea.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
2059
+ i === 33 && (r ? j(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), Rn.test(o) || j(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2060
+ a = e.input.slice(n, e.position), Oa.test(a) && j(e, "tag suffix cannot contain flow indicator characters");
2032
2061
  }
2033
- a && !Rn.test(a) && $(e, "tag name cannot contain such characters: " + a);
2062
+ a && !Vn.test(a) && j(e, "tag name cannot contain such characters: " + a);
2034
2063
  try {
2035
2064
  a = decodeURIComponent(a);
2036
2065
  } catch {
2037
- $(e, "tag name is malformed: " + a);
2066
+ j(e, "tag name is malformed: " + a);
2038
2067
  }
2039
- return t ? e.tag = a : je.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : $(e, 'undeclared tag handle "' + o + '"'), !0;
2068
+ return t ? e.tag = a : Me.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : j(e, 'undeclared tag handle "' + o + '"'), !0;
2040
2069
  }
2041
- function Ga(e) {
2070
+ function za(e) {
2042
2071
  var n, t;
2043
2072
  if (t = e.input.charCodeAt(e.position), t !== 38)
2044
2073
  return !1;
2045
- for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !qe(t); )
2074
+ for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !Ue(t); )
2046
2075
  t = e.input.charCodeAt(++e.position);
2047
- return e.position === n && $(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2076
+ 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;
2048
2077
  }
2049
- function za(e) {
2078
+ function Ha(e) {
2050
2079
  var n, t, r;
2051
2080
  if (r = e.input.charCodeAt(e.position), r !== 42)
2052
2081
  return !1;
2053
- for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !he(r) && !qe(r); )
2082
+ for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !he(r) && !Ue(r); )
2054
2083
  r = e.input.charCodeAt(++e.position);
2055
- return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), je.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
2084
+ return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Me.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
2056
2085
  }
2057
- function Re(e, n, t, r, o) {
2058
- var a, i, s, l = 1, c = !1, d = !1, u, m, f, I, v, p;
2059
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || qn === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2060
- for (; Da(e) || Ga(e); )
2086
+ function Ve(e, n, t, r, o) {
2087
+ var a, i, s, l = 1, c = !1, d = !1, u, m, f, S, h, p;
2088
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || Un === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2089
+ for (; Ga(e) || za(e); )
2061
2090
  oe(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2062
- if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Va(e, p, v)) || Ua(e, v) ? d = !0 : (i && Ra(e, v) || La(e, v) || qa(e, v) ? d = !0 : za(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Pa(e, v, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
2091
+ if (s && (s = c || o), (l === 1 || at === t) && (ot === t || qn === t ? h = n : h = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Xt(e, p) || Da(e, p, h)) || Ra(e, h) ? d = !0 : (i && Va(e, h) || qa(e, h) || Ua(e, h) ? d = !0 : Ha(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : La(e, h, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Xt(e, p))), e.tag === null)
2063
2092
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2064
2093
  else if (e.tag === "?") {
2065
- for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
2066
- if (I = e.implicitTypes[u], I.resolve(e.result)) {
2067
- e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2094
+ for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
2095
+ if (S = e.implicitTypes[u], S.resolve(e.result)) {
2096
+ e.result = S.construct(e.result), e.tag = S.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2068
2097
  break;
2069
2098
  }
2070
2099
  } else if (e.tag !== "!") {
2071
- if (je.call(e.typeMap[e.kind || "fallback"], e.tag))
2072
- I = e.typeMap[e.kind || "fallback"][e.tag];
2100
+ if (Me.call(e.typeMap[e.kind || "fallback"], e.tag))
2101
+ S = e.typeMap[e.kind || "fallback"][e.tag];
2073
2102
  else
2074
- for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
2103
+ for (S = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
2075
2104
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2076
- I = f[u];
2105
+ S = f[u];
2077
2106
  break;
2078
2107
  }
2079
- I || $(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && $(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : $(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2108
+ S || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && S.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + S.kind + '", not "' + e.kind + '"'), S.resolve(e.result, e.tag) ? (e.result = S.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");
2080
2109
  }
2081
2110
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2082
2111
  }
2083
- function Ha(e) {
2112
+ function Ja(e) {
2084
2113
  var n = e.position, t, r, o, a = !1, i;
2085
2114
  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 && (oe(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2086
2115
  for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
2087
2116
  i = e.input.charCodeAt(++e.position);
2088
- for (r = e.input.slice(t, e.position), o = [], r.length < 1 && $(e, "directive name must not be less than one character in length"); i !== 0; ) {
2089
- for (; Ke(i); )
2117
+ for (r = e.input.slice(t, e.position), o = [], r.length < 1 && j(e, "directive name must not be less than one character in length"); i !== 0; ) {
2118
+ for (; Fe(i); )
2090
2119
  i = e.input.charCodeAt(++e.position);
2091
2120
  if (i === 35) {
2092
2121
  do
@@ -2100,63 +2129,63 @@ function Ha(e) {
2100
2129
  i = e.input.charCodeAt(++e.position);
2101
2130
  o.push(e.input.slice(t, e.position));
2102
2131
  }
2103
- i !== 0 && Mt(e), je.call(Yt, r) ? Yt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2132
+ i !== 0 && jt(e), Me.call(Zt, r) ? Zt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2104
2133
  }
2105
- if (oe(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, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks && ja.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
2134
+ if (oe(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, oe(e, !0, -1)) : a && j(e, "directives end mark is expected"), Ve(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Ea.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
2106
2135
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
2107
2136
  return;
2108
2137
  }
2109
2138
  if (e.position < e.length - 1)
2110
- $(e, "end of the stream or a document separator is expected");
2139
+ j(e, "end of the stream or a document separator is expected");
2111
2140
  else
2112
2141
  return;
2113
2142
  }
2114
- function zn(e, n) {
2143
+ function Hn(e, n) {
2115
2144
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2116
2145
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2117
- var t = new Ba(e, n), r = e.indexOf("\0");
2118
- for (r !== -1 && (t.position = r, $(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2146
+ var t = new Pa(e, n), r = e.indexOf("\0");
2147
+ for (r !== -1 && (t.position = r, j(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2119
2148
  t.lineIndent += 1, t.position += 1;
2120
2149
  for (; t.position < t.length - 1; )
2121
- Ha(t);
2150
+ Ja(t);
2122
2151
  return t.documents;
2123
2152
  }
2124
- function Ja(e, n, t) {
2153
+ function Wa(e, n, t) {
2125
2154
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2126
- var r = zn(e, t);
2155
+ var r = Hn(e, t);
2127
2156
  if (typeof n != "function")
2128
2157
  return r;
2129
2158
  for (var o = 0, a = r.length; o < a; o += 1)
2130
2159
  n(r[o]);
2131
2160
  }
2132
- function Wa(e, n) {
2133
- var t = zn(e, n);
2161
+ function Ya(e, n) {
2162
+ var t = Hn(e, n);
2134
2163
  if (t.length !== 0) {
2135
2164
  if (t.length === 1)
2136
2165
  return t[0];
2137
- throw new me("expected a single document in the stream, but found more");
2166
+ throw new ge("expected a single document in the stream, but found more");
2138
2167
  }
2139
2168
  }
2140
- var Ya = Ja, Za = Wa, Hn = {
2141
- loadAll: Ya,
2142
- load: Za
2143
- }, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Et = 65279, Qa = 9, We = 10, Xa = 13, ei = 32, ti = 33, ni = 34, bt = 35, ri = 37, oi = 38, ai = 39, ii = 42, Yn = 44, si = 45, st = 58, li = 61, ui = 62, ci = 63, di = 64, Zn = 91, Qn = 93, pi = 96, Xn = 123, fi = 124, er = 125, fe = {};
2144
- fe[0] = "\\0";
2145
- fe[7] = "\\a";
2146
- fe[8] = "\\b";
2147
- fe[9] = "\\t";
2148
- fe[10] = "\\n";
2149
- fe[11] = "\\v";
2150
- fe[12] = "\\f";
2151
- fe[13] = "\\r";
2152
- fe[27] = "\\e";
2153
- fe[34] = '\\"';
2154
- fe[92] = "\\\\";
2155
- fe[133] = "\\N";
2156
- fe[160] = "\\_";
2157
- fe[8232] = "\\L";
2158
- fe[8233] = "\\P";
2159
- var mi = [
2169
+ var Za = Wa, Qa = Ya, Jn = {
2170
+ loadAll: Za,
2171
+ load: Qa
2172
+ }, Wn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Et = 65279, Xa = 9, Je = 10, ei = 13, ti = 32, ni = 33, ri = 34, bt = 35, oi = 37, ai = 38, ii = 39, si = 42, Zn = 44, li = 45, st = 58, ui = 61, ci = 62, di = 63, pi = 64, Qn = 91, Xn = 93, fi = 96, er = 123, mi = 124, tr = 125, me = {};
2173
+ me[0] = "\\0";
2174
+ me[7] = "\\a";
2175
+ me[8] = "\\b";
2176
+ me[9] = "\\t";
2177
+ me[10] = "\\n";
2178
+ me[11] = "\\v";
2179
+ me[12] = "\\f";
2180
+ me[13] = "\\r";
2181
+ me[27] = "\\e";
2182
+ me[34] = '\\"';
2183
+ me[92] = "\\\\";
2184
+ me[133] = "\\N";
2185
+ me[160] = "\\_";
2186
+ me[8232] = "\\L";
2187
+ me[8233] = "\\P";
2188
+ var gi = [
2160
2189
  "y",
2161
2190
  "Y",
2162
2191
  "yes",
@@ -2173,16 +2202,16 @@ var mi = [
2173
2202
  "off",
2174
2203
  "Off",
2175
2204
  "OFF"
2176
- ], gi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2177
- function yi(e, n) {
2205
+ ], yi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2206
+ function hi(e, n) {
2178
2207
  var t, r, o, a, i, s, l;
2179
2208
  if (n === null)
2180
2209
  return {};
2181
2210
  for (t = {}, r = Object.keys(n), o = 0, a = r.length; o < a; o += 1)
2182
- i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Wn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2211
+ i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Yn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2183
2212
  return t;
2184
2213
  }
2185
- function hi(e) {
2214
+ function vi(e) {
2186
2215
  var n, t, r;
2187
2216
  if (n = e.toString(16).toUpperCase(), e <= 255)
2188
2217
  t = "x", r = 2;
@@ -2191,15 +2220,15 @@ function hi(e) {
2191
2220
  else if (e <= 4294967295)
2192
2221
  t = "U", r = 8;
2193
2222
  else
2194
- throw new me("code point within a string may not be greater than 0xFFFFFFFF");
2195
- return "\\" + t + se.repeat("0", r - n.length) + n;
2223
+ throw new ge("code point within a string may not be greater than 0xFFFFFFFF");
2224
+ return "\\" + t + ie.repeat("0", r - n.length) + n;
2196
2225
  }
2197
- var vi = 1, Ye = 2;
2198
- function bi(e) {
2199
- this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ye : vi, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2226
+ var bi = 1, We = 2;
2227
+ function ki(e) {
2228
+ this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ie.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = hi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? We : bi, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2200
2229
  }
2201
- function Xt(e, n) {
2202
- for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
2230
+ function en(e, n) {
2231
+ for (var t = ie.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
2203
2232
  o = e.indexOf(`
2204
2233
  `, r), o === -1 ? (i = e.slice(r), r = s) : (i = e.slice(r, o + 1), r = o + 1), i.length && i !== `
2205
2234
  ` && (a += t), a += i;
@@ -2207,9 +2236,9 @@ function Xt(e, n) {
2207
2236
  }
2208
2237
  function kt(e, n) {
2209
2238
  return `
2210
- ` + se.repeat(" ", e.indent * n);
2239
+ ` + ie.repeat(" ", e.indent * n);
2211
2240
  }
2212
- function ki(e, n) {
2241
+ function Ci(e, n) {
2213
2242
  var t, r, o;
2214
2243
  for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
2215
2244
  if (o = e.implicitTypes[t], o.resolve(n))
@@ -2217,71 +2246,71 @@ function ki(e, n) {
2217
2246
  return !1;
2218
2247
  }
2219
2248
  function lt(e) {
2220
- return e === ei || e === Qa;
2249
+ return e === ti || e === Xa;
2221
2250
  }
2222
- function Ze(e) {
2251
+ function Ye(e) {
2223
2252
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
2224
2253
  }
2225
- function en(e) {
2226
- return Ze(e) && e !== Et && e !== Xa && e !== We;
2254
+ function tn(e) {
2255
+ return Ye(e) && e !== Et && e !== ei && e !== Je;
2227
2256
  }
2228
- function tn(e, n, t) {
2229
- var r = en(e), o = r && !lt(e);
2257
+ function nn(e, n, t) {
2258
+ var r = tn(e), o = r && !lt(e);
2230
2259
  return (
2231
2260
  // ns-plain-safe
2232
2261
  (t ? (
2233
2262
  // c = flow-in
2234
2263
  r
2235
- ) : r && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
2264
+ ) : r && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== tr) && e !== bt && !(n === st && !o) || tn(n) && !lt(n) && e === bt || n === st && o
2236
2265
  );
2237
2266
  }
2238
- function Ci(e) {
2239
- return Ze(e) && e !== Et && !lt(e) && e !== si && e !== ci && e !== st && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== bt && e !== oi && e !== ii && e !== ti && e !== fi && e !== li && e !== ui && e !== ai && e !== ni && e !== ri && e !== di && e !== pi;
2240
- }
2241
2267
  function _i(e) {
2268
+ return Ye(e) && e !== Et && !lt(e) && e !== li && e !== di && e !== st && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== tr && e !== bt && e !== ai && e !== si && e !== ni && e !== mi && e !== ui && e !== ci && e !== ii && e !== ri && e !== oi && e !== pi && e !== fi;
2269
+ }
2270
+ function wi(e) {
2242
2271
  return !lt(e) && e !== st;
2243
2272
  }
2244
- function ze(e, n) {
2273
+ function Ge(e, n) {
2245
2274
  var t = e.charCodeAt(n), r;
2246
2275
  return t >= 55296 && t <= 56319 && n + 1 < e.length && (r = e.charCodeAt(n + 1), r >= 56320 && r <= 57343) ? (t - 55296) * 1024 + r - 56320 + 65536 : t;
2247
2276
  }
2248
- function tr(e) {
2277
+ function nr(e) {
2249
2278
  var n = /^\n* /;
2250
2279
  return n.test(e);
2251
2280
  }
2252
- var nr = 1, Ct = 2, rr = 3, or = 4, Le = 5;
2253
- function wi(e, n, t, r, o, a, i, s) {
2254
- var l, c = 0, d = null, u = !1, m = !1, f = r !== -1, I = -1, v = Ci(ze(e, 0)) && _i(ze(e, e.length - 1));
2281
+ var rr = 1, Ct = 2, or = 3, ar = 4, qe = 5;
2282
+ function Ii(e, n, t, r, o, a, i, s) {
2283
+ var l, c = 0, d = null, u = !1, m = !1, f = r !== -1, S = -1, h = _i(Ge(e, 0)) && wi(Ge(e, e.length - 1));
2255
2284
  if (n || i)
2256
2285
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2257
- if (c = ze(e, l), !Ze(c))
2258
- return Le;
2259
- v = v && tn(c, d, s), d = c;
2286
+ if (c = Ge(e, l), !Ye(c))
2287
+ return qe;
2288
+ h = h && nn(c, d, s), d = c;
2260
2289
  }
2261
2290
  else {
2262
2291
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2263
- if (c = ze(e, l), c === We)
2292
+ if (c = Ge(e, l), c === Je)
2264
2293
  u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
2265
- l - I - 1 > r && e[I + 1] !== " ", I = l);
2266
- else if (!Ze(c))
2267
- return Le;
2268
- v = v && tn(c, d, s), d = c;
2294
+ l - S - 1 > r && e[S + 1] !== " ", S = l);
2295
+ else if (!Ye(c))
2296
+ return qe;
2297
+ h = h && nn(c, d, s), d = c;
2269
2298
  }
2270
- m = m || f && l - I - 1 > r && e[I + 1] !== " ";
2299
+ m = m || f && l - S - 1 > r && e[S + 1] !== " ";
2271
2300
  }
2272
- return !u && !m ? v && !i && !o(e) ? nr : a === Ye ? Le : Ct : t > 9 && tr(e) ? Le : i ? a === Ye ? Le : Ct : m ? or : rr;
2301
+ return !u && !m ? h && !i && !o(e) ? rr : a === We ? qe : Ct : t > 9 && nr(e) ? qe : i ? a === We ? qe : Ct : m ? ar : or;
2273
2302
  }
2274
- function Ii(e, n, t, r, o) {
2303
+ function Ai(e, n, t, r, o) {
2275
2304
  e.dump = function() {
2276
2305
  if (n.length === 0)
2277
- return e.quotingType === Ye ? '""' : "''";
2278
- if (!e.noCompatMode && (mi.indexOf(n) !== -1 || gi.test(n)))
2279
- return e.quotingType === Ye ? '"' + n + '"' : "'" + n + "'";
2306
+ return e.quotingType === We ? '""' : "''";
2307
+ if (!e.noCompatMode && (gi.indexOf(n) !== -1 || yi.test(n)))
2308
+ return e.quotingType === We ? '"' + n + '"' : "'" + n + "'";
2280
2309
  var a = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && t >= e.flowLevel;
2281
2310
  function l(c) {
2282
- return ki(e, c);
2311
+ return Ci(e, c);
2283
2312
  }
2284
- switch (wi(
2313
+ switch (Ii(
2285
2314
  n,
2286
2315
  s,
2287
2316
  e.indent,
@@ -2291,47 +2320,47 @@ function Ii(e, n, t, r, o) {
2291
2320
  e.forceQuotes && !r,
2292
2321
  o
2293
2322
  )) {
2294
- case nr:
2323
+ case rr:
2295
2324
  return n;
2296
2325
  case Ct:
2297
2326
  return "'" + n.replace(/'/g, "''") + "'";
2298
- case rr:
2299
- return "|" + nn(n, e.indent) + rn(Xt(n, a));
2300
2327
  case or:
2301
- return ">" + nn(n, e.indent) + rn(Xt(xi(n, i), a));
2302
- case Le:
2303
- return '"' + Ai(n) + '"';
2328
+ return "|" + rn(n, e.indent) + on(en(n, a));
2329
+ case ar:
2330
+ return ">" + rn(n, e.indent) + on(en(Si(n, i), a));
2331
+ case qe:
2332
+ return '"' + xi(n) + '"';
2304
2333
  default:
2305
- throw new me("impossible error: invalid scalar style");
2334
+ throw new ge("impossible error: invalid scalar style");
2306
2335
  }
2307
2336
  }();
2308
2337
  }
2309
- function nn(e, n) {
2310
- var t = tr(e) ? String(n) : "", r = e[e.length - 1] === `
2338
+ function rn(e, n) {
2339
+ var t = nr(e) ? String(n) : "", r = e[e.length - 1] === `
2311
2340
  `, o = r && (e[e.length - 2] === `
2312
2341
  ` || e === `
2313
2342
  `), a = o ? "+" : r ? "" : "-";
2314
2343
  return t + a + `
2315
2344
  `;
2316
2345
  }
2317
- function rn(e) {
2346
+ function on(e) {
2318
2347
  return e[e.length - 1] === `
2319
2348
  ` ? e.slice(0, -1) : e;
2320
2349
  }
2321
- function xi(e, n) {
2350
+ function Si(e, n) {
2322
2351
  for (var t = /(\n+)([^\n]*)/g, r = function() {
2323
2352
  var c = e.indexOf(`
2324
2353
  `);
2325
- return c = c !== -1 ? c : e.length, t.lastIndex = c, on(e.slice(0, c), n);
2354
+ return c = c !== -1 ? c : e.length, t.lastIndex = c, an(e.slice(0, c), n);
2326
2355
  }(), o = e[0] === `
2327
2356
  ` || e[0] === " ", a, i; i = t.exec(e); ) {
2328
2357
  var s = i[1], l = i[2];
2329
2358
  a = l[0] === " ", r += s + (!o && !a && l !== "" ? `
2330
- ` : "") + on(l, n), o = a;
2359
+ ` : "") + an(l, n), o = a;
2331
2360
  }
2332
2361
  return r;
2333
2362
  }
2334
- function on(e, n) {
2363
+ function an(e, n) {
2335
2364
  if (e === "" || e[0] === " ")
2336
2365
  return e;
2337
2366
  for (var t = / [^ ]/g, r, o = 0, a, i = 0, s = 0, l = ""; r = t.exec(e); )
@@ -2341,76 +2370,76 @@ function on(e, n) {
2341
2370
  `, e.length - o > n && i > o ? l += e.slice(o, i) + `
2342
2371
  ` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
2343
2372
  }
2344
- function Ai(e) {
2373
+ function xi(e) {
2345
2374
  for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
2346
- t = ze(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || hi(t);
2375
+ t = Ge(e, o), r = me[t], !r && Ye(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || vi(t);
2347
2376
  return n;
2348
2377
  }
2349
- function Si(e, n, t) {
2378
+ function Ti(e, n, t) {
2350
2379
  var r = "", o = e.tag, a, i, s;
2351
2380
  for (a = 0, i = t.length; a < i; a += 1)
2352
- s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Ae(e, n, s, !1, !1) || typeof s > "u" && Ae(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2381
+ s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Se(e, n, s, !1, !1) || typeof s > "u" && Se(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2353
2382
  e.tag = o, e.dump = "[" + r + "]";
2354
2383
  }
2355
- function an(e, n, t, r) {
2384
+ function sn(e, n, t, r) {
2356
2385
  var o = "", a = e.tag, i, s, l;
2357
2386
  for (i = 0, s = t.length; i < s; i += 1)
2358
- l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Ae(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ae(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2387
+ l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && Je === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2359
2388
  e.tag = a, e.dump = o || "[]";
2360
2389
  }
2361
- function Ti(e, n, t) {
2390
+ function $i(e, n, t) {
2362
2391
  var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
2363
2392
  for (i = 0, s = a.length; i < s; i += 1)
2364
- d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Ae(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ae(e, n, c, !1, !1) && (d += e.dump, r += d));
2393
+ d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Se(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, n, c, !1, !1) && (d += e.dump, r += d));
2365
2394
  e.tag = o, e.dump = "{" + r + "}";
2366
2395
  }
2367
- function $i(e, n, t, r) {
2396
+ function ji(e, n, t, r) {
2368
2397
  var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, m;
2369
2398
  if (e.sortKeys === !0)
2370
2399
  i.sort();
2371
2400
  else if (typeof e.sortKeys == "function")
2372
2401
  i.sort(e.sortKeys);
2373
2402
  else if (e.sortKeys)
2374
- throw new me("sortKeys must be a boolean or a function");
2403
+ throw new ge("sortKeys must be a boolean or a function");
2375
2404
  for (s = 0, l = i.length; s < l; s += 1)
2376
- m = "", (!r || o !== "") && (m += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Ae(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && We === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Ae(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
2405
+ m = "", (!r || o !== "") && (m += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Je === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && Je === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
2377
2406
  e.tag = a, e.dump = o || "{}";
2378
2407
  }
2379
- function sn(e, n, t) {
2408
+ function ln(e, n, t) {
2380
2409
  var r, o, a, i, s, l;
2381
2410
  for (o = t ? e.explicitTypes : e.implicitTypes, a = 0, i = o.length; a < i; a += 1)
2382
2411
  if (s = o[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof n == "object" && n instanceof s.instanceOf) && (!s.predicate || s.predicate(n))) {
2383
2412
  if (t ? s.multi && s.representName ? e.tag = s.representName(n) : e.tag = s.tag : e.tag = "?", s.represent) {
2384
- if (l = e.styleMap[s.tag] || s.defaultStyle, Jn.call(s.represent) === "[object Function]")
2413
+ if (l = e.styleMap[s.tag] || s.defaultStyle, Wn.call(s.represent) === "[object Function]")
2385
2414
  r = s.represent(n, l);
2386
- else if (Wn.call(s.represent, l))
2415
+ else if (Yn.call(s.represent, l))
2387
2416
  r = s.represent[l](n, l);
2388
2417
  else
2389
- throw new me("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
2418
+ throw new ge("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
2390
2419
  e.dump = r;
2391
2420
  }
2392
2421
  return !0;
2393
2422
  }
2394
2423
  return !1;
2395
2424
  }
2396
- function Ae(e, n, t, r, o, a, i) {
2397
- e.tag = null, e.dump = t, sn(e, t, !1) || sn(e, t, !0);
2398
- var s = Jn.call(e.dump), l = r, c;
2425
+ function Se(e, n, t, r, o, a, i) {
2426
+ e.tag = null, e.dump = t, ln(e, t, !1) || ln(e, t, !0);
2427
+ var s = Wn.call(e.dump), l = r, c;
2399
2428
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
2400
2429
  var d = s === "[object Object]" || s === "[object Array]", u, m;
2401
2430
  if (d && (u = e.duplicates.indexOf(t), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && n > 0) && (o = !1), m && e.usedDuplicates[u])
2402
2431
  e.dump = "*ref_" + u;
2403
2432
  else {
2404
2433
  if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2405
- r && Object.keys(e.dump).length !== 0 ? ($i(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (Ti(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2434
+ r && Object.keys(e.dump).length !== 0 ? (ji(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : ($i(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2406
2435
  else if (s === "[object Array]")
2407
- r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (Si(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2436
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? sn(e, n - 1, e.dump, o) : sn(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (Ti(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2408
2437
  else if (s === "[object String]")
2409
- e.tag !== "?" && Ii(e, e.dump, n, a, l);
2438
+ e.tag !== "?" && Ai(e, e.dump, n, a, l);
2410
2439
  else {
2411
2440
  if (s === "[object Undefined]" || e.skipInvalid)
2412
2441
  return !1;
2413
- throw new me("unacceptable kind of an object to dump " + s);
2442
+ throw new ge("unacceptable kind of an object to dump " + s);
2414
2443
  }
2415
2444
  e.tag !== null && e.tag !== "?" && (c = encodeURI(
2416
2445
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
@@ -2436,65 +2465,65 @@ function _t(e, n, t) {
2436
2465
  for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
2437
2466
  _t(e[r[o]], n, t);
2438
2467
  }
2439
- function ji(e, n) {
2468
+ function Ei(e, n) {
2440
2469
  n = n || {};
2441
- var t = new bi(n);
2470
+ var t = new ki(n);
2442
2471
  t.noRefs || Mi(e, t);
2443
2472
  var r = e;
2444
- return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Ae(t, 0, r, !0, !0) ? t.dump + `
2473
+ return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
2445
2474
  ` : "";
2446
2475
  }
2447
- var Ei = ji, Oi = {
2448
- dump: Ei
2476
+ var Oi = Ei, Ki = {
2477
+ dump: Oi
2449
2478
  };
2450
2479
  function Ot(e, n) {
2451
2480
  return function() {
2452
2481
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2453
2482
  };
2454
2483
  }
2455
- var Ki = de, Fi = kn, Ni = In, Bi = $n, Pi = Mn, Li = $t, qi = Hn.load, Ui = Hn.loadAll, Ri = Oi.dump, Vi = me, Di = {
2456
- binary: Fn,
2457
- float: Tn,
2458
- map: wn,
2459
- null: xn,
2460
- pairs: Bn,
2461
- set: Pn,
2462
- timestamp: On,
2463
- bool: An,
2464
- int: Sn,
2465
- merge: Kn,
2466
- omap: Nn,
2467
- seq: _n,
2468
- str: Cn
2469
- }, Gi = Ot("safeLoad", "load"), zi = Ot("safeLoadAll", "loadAll"), Hi = Ot("safeDump", "dump"), Ji = {
2470
- Type: Ki,
2471
- Schema: Fi,
2472
- FAILSAFE_SCHEMA: Ni,
2473
- JSON_SCHEMA: Bi,
2474
- CORE_SCHEMA: Pi,
2475
- DEFAULT_SCHEMA: Li,
2476
- load: qi,
2477
- loadAll: Ui,
2478
- dump: Ri,
2479
- YAMLException: Vi,
2480
- types: Di,
2481
- safeLoad: Gi,
2482
- safeLoadAll: zi,
2483
- safeDump: Hi
2484
+ var Fi = de, Ni = Cn, Bi = An, Pi = jn, Li = Mn, qi = $t, Ui = Jn.load, Ri = Jn.loadAll, Vi = Ki.dump, Di = ge, Gi = {
2485
+ binary: Nn,
2486
+ float: $n,
2487
+ map: In,
2488
+ null: Sn,
2489
+ pairs: Pn,
2490
+ set: Ln,
2491
+ timestamp: Kn,
2492
+ bool: xn,
2493
+ int: Tn,
2494
+ merge: Fn,
2495
+ omap: Bn,
2496
+ seq: wn,
2497
+ str: _n
2498
+ }, zi = Ot("safeLoad", "load"), Hi = Ot("safeLoadAll", "loadAll"), Ji = Ot("safeDump", "dump"), Wi = {
2499
+ Type: Fi,
2500
+ Schema: Ni,
2501
+ FAILSAFE_SCHEMA: Bi,
2502
+ JSON_SCHEMA: Pi,
2503
+ CORE_SCHEMA: Li,
2504
+ DEFAULT_SCHEMA: qi,
2505
+ load: Ui,
2506
+ loadAll: Ri,
2507
+ dump: Vi,
2508
+ YAMLException: Di,
2509
+ types: Gi,
2510
+ safeLoad: zi,
2511
+ safeLoadAll: Hi,
2512
+ safeDump: Ji
2484
2513
  };
2485
- const Wi = {
2514
+ const Yi = {
2486
2515
  key: 0,
2487
2516
  class: "config-card-display-form"
2488
- }, Yi = ["data-testid"], Zi = {
2517
+ }, Zi = ["data-testid"], Qi = {
2489
2518
  key: 0,
2490
2519
  class: "config-card-prop-section-title"
2491
- }, Qi = {
2520
+ }, Xi = {
2492
2521
  key: 1,
2493
2522
  class: "config-card-display-json"
2494
- }, Xi = {
2523
+ }, es = {
2495
2524
  key: 2,
2496
2525
  class: "config-card-display-yaml"
2497
- }, es = /* @__PURE__ */ ae({
2526
+ }, ts = /* @__PURE__ */ ae({
2498
2527
  __name: "ConfigCardDisplay",
2499
2528
  props: {
2500
2529
  propertyCollections: {
@@ -2521,26 +2550,26 @@ const Wi = {
2521
2550
  },
2522
2551
  setup(e) {
2523
2552
  const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = O(""), i = O("");
2524
- return Se(() => n.format, (s) => {
2525
- s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Ji.dump(n.record));
2553
+ return xe(() => n.format, (s) => {
2554
+ s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Wi.dump(n.record));
2526
2555
  }, { immediate: !0 }), (s, l) => {
2527
2556
  const c = q("KCodeBlock");
2528
- return g(), j(ve, null, [
2529
- e.format === "structured" ? (g(), j("div", Wi, [
2530
- (g(!0), j(ve, null, ye(e.propListTypes, (d) => (g(), j("div", {
2557
+ return g(), M(ve, null, [
2558
+ e.format === "structured" ? (g(), M("div", Yi, [
2559
+ (g(!0), M(ve, null, ye(e.propListTypes, (d) => (g(), M("div", {
2531
2560
  key: `config-card-details-${d}-props`,
2532
- class: Fe(`config-card-details-${d}-props`),
2561
+ class: Ne(`config-card-details-${d}-props`),
2533
2562
  "data-testid": `config-card-details-${d}-props`
2534
2563
  }, [
2535
- d !== "basic" ? (g(), j("div", Zi, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2536
- (g(!0), j(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(St, {
2564
+ d !== "basic" ? (g(), M("div", Qi, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2565
+ (g(!0), M(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(xt, {
2537
2566
  key: u.key,
2538
2567
  item: u
2539
2568
  }, Te({
2540
- label: h(() => [
2569
+ label: v(() => [
2541
2570
  Y(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2542
2571
  ]),
2543
- [u.key]: h(({ rowValue: m }) => [
2572
+ [u.key]: v(({ rowValue: m }) => [
2544
2573
  Y(s.$slots, u.key, {
2545
2574
  row: u,
2546
2575
  rowValue: m
@@ -2550,15 +2579,15 @@ const Wi = {
2550
2579
  }, [
2551
2580
  o(u) ? {
2552
2581
  name: "label-tooltip",
2553
- fn: h(() => [
2582
+ fn: v(() => [
2554
2583
  Y(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2555
2584
  ]),
2556
2585
  key: "0"
2557
2586
  } : void 0
2558
2587
  ]), 1032, ["item"]))), 128))
2559
- ], 10, Yi))), 128))
2588
+ ], 10, Zi))), 128))
2560
2589
  ])) : G("", !0),
2561
- e.format === "json" ? (g(), j("div", Qi, [
2590
+ e.format === "json" ? (g(), M("div", Xi, [
2562
2591
  F(c, {
2563
2592
  id: "config-card-codeblock",
2564
2593
  code: a.value,
@@ -2566,7 +2595,7 @@ const Wi = {
2566
2595
  theme: "dark"
2567
2596
  }, null, 8, ["code"])
2568
2597
  ])) : G("", !0),
2569
- e.format === "yaml" ? (g(), j("div", Xi, [
2598
+ e.format === "yaml" ? (g(), M("div", es, [
2570
2599
  F(c, {
2571
2600
  id: "config-card-codeblock",
2572
2601
  code: i.value,
@@ -2577,18 +2606,18 @@ const Wi = {
2577
2606
  ], 64);
2578
2607
  };
2579
2608
  }
2580
- }), ts = /* @__PURE__ */ Ce(es, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", ns = (e, n) => {
2609
+ }), ns = /* @__PURE__ */ Ce(ts, [["__scopeId", "data-v-6c45e9e4"]]), un = "24px", rs = (e, n) => {
2581
2610
  const t = e.__vccOpts || e;
2582
2611
  for (const [r, o] of n)
2583
2612
  t[r] = o;
2584
2613
  return t;
2585
- }, rs = (e) => (yr("data-v-dd88a2bb"), e = e(), hr(), e), os = ["aria-hidden"], as = {
2614
+ }, os = (e) => (hr("data-v-dd88a2bb"), e = e(), vr(), e), as = ["aria-hidden"], is = {
2586
2615
  key: 0,
2587
2616
  "data-testid": "kui-icon-svg-title"
2588
- }, is = /* @__PURE__ */ rs(() => /* @__PURE__ */ R("path", {
2617
+ }, ss = /* @__PURE__ */ os(() => /* @__PURE__ */ R("path", {
2589
2618
  d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
2590
2619
  fill: "currentColor"
2591
- }, null, -1)), ss = /* @__PURE__ */ ae({
2620
+ }, null, -1)), ls = /* @__PURE__ */ ae({
2592
2621
  __name: "BookIcon",
2593
2622
  props: {
2594
2623
  /** The accessibility text provided to screen readers */
@@ -2619,7 +2648,7 @@ const Wi = {
2619
2648
  size: {
2620
2649
  type: [Number, String],
2621
2650
  required: !1,
2622
- default: ln,
2651
+ default: un,
2623
2652
  // if setting to the imported const fails, just pass a number of 24 as the default.
2624
2653
  validator: (e) => {
2625
2654
  if (typeof e == "number" && e > 0)
@@ -2640,7 +2669,7 @@ const Wi = {
2640
2669
  }
2641
2670
  },
2642
2671
  setup(e) {
2643
- const n = e, t = M(() => {
2672
+ const n = e, t = T(() => {
2644
2673
  if (typeof n.size == "number" && n.size > 0)
2645
2674
  return `${n.size}px`;
2646
2675
  if (typeof n.size == "string") {
@@ -2648,8 +2677,8 @@ const Wi = {
2648
2677
  if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
2649
2678
  return `${a}px`;
2650
2679
  }
2651
- return ln;
2652
- }), r = M(() => ({
2680
+ return un;
2681
+ }), r = T(() => ({
2653
2682
  boxSizing: "border-box",
2654
2683
  color: n.color,
2655
2684
  display: n.display,
@@ -2657,14 +2686,14 @@ const Wi = {
2657
2686
  lineHeight: "0",
2658
2687
  width: t.value
2659
2688
  }));
2660
- return (o, a) => (g(), V(He(e.as), {
2689
+ return (o, a) => (g(), V(ze(e.as), {
2661
2690
  "aria-hidden": e.decorative ? "true" : void 0,
2662
2691
  class: "kui-icon book-icon",
2663
2692
  "data-testid": "kui-icon-wrapper-book-icon",
2664
- style: mr(r.value)
2693
+ style: gr(r.value)
2665
2694
  }, {
2666
- default: h(() => [
2667
- (g(), j("svg", {
2695
+ default: v(() => [
2696
+ (g(), M("svg", {
2668
2697
  "aria-hidden": e.decorative ? "true" : void 0,
2669
2698
  "data-testid": "kui-icon-svg-book-icon",
2670
2699
  fill: "none",
@@ -2674,23 +2703,23 @@ const Wi = {
2674
2703
  width: "100%",
2675
2704
  xmlns: "http://www.w3.org/2000/svg"
2676
2705
  }, [
2677
- e.title ? (g(), j("title", as, K(e.title), 1)) : G("", !0),
2678
- is
2679
- ], 8, os))
2706
+ e.title ? (g(), M("title", is, K(e.title), 1)) : G("", !0),
2707
+ ss
2708
+ ], 8, as))
2680
2709
  ]),
2681
2710
  _: 1
2682
2711
  }, 8, ["aria-hidden", "style"]));
2683
2712
  }
2684
- }), ls = /* @__PURE__ */ ns(ss, [["__scopeId", "data-v-dd88a2bb"]]), us = { "data-testid": "config-card-title" }, cs = { class: "config-card-actions" }, ds = ["href"], ps = {
2713
+ }), us = /* @__PURE__ */ rs(ls, [["__scopeId", "data-v-dd88a2bb"]]), cs = { "data-testid": "config-card-title" }, ds = { class: "config-card-actions" }, ps = ["href"], fs = {
2685
2714
  key: 2,
2686
2715
  class: "config-card-details-section"
2687
- }, fs = {
2716
+ }, ms = {
2688
2717
  key: 3,
2689
2718
  class: "config-card-details-section"
2690
- }, ms = ["data-testid"], gs = {
2719
+ }, gs = ["data-testid"], ys = {
2691
2720
  key: 0,
2692
2721
  class: "config-card-prop-section-title"
2693
- }, ys = /* @__PURE__ */ ae({
2722
+ }, hs = /* @__PURE__ */ ae({
2694
2723
  __name: "EntityBaseConfigCard",
2695
2724
  props: {
2696
2725
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2781,8 +2810,8 @@ const Wi = {
2781
2810
  label: "YAML",
2782
2811
  value: "yaml"
2783
2812
  }
2784
- ], d = O("structured"), u = (w) => {
2785
- d.value = w == null ? void 0 : w.value;
2813
+ ], d = O("structured"), u = (_) => {
2814
+ d.value = _ == null ? void 0 : _.value;
2786
2815
  }, m = {
2787
2816
  id: {
2788
2817
  type: te.ID,
@@ -2817,46 +2846,46 @@ const Wi = {
2817
2846
  // the last property displayed
2818
2847
  section: be.Basic
2819
2848
  }
2820
- }, f = O(!1), I = O(!1), v = O(""), p = O(), A = M(() => {
2821
- var w, N, B;
2849
+ }, f = O(!1), S = O(!1), h = O(""), p = O(), A = T(() => {
2850
+ var _, B, P;
2822
2851
  if (!p.value)
2823
2852
  return [];
2824
- const C = [], S = Object.keys(p.value).length;
2825
- for (const T in p.value) {
2826
- const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B = m[T]) == null ? void 0 : B.order;
2827
- let Q = S;
2828
- (J || J === 0) && (Q = J === -1 ? S + 1 : J), P && (Q = P === -1 ? S + 1 : P), C.push([T, Q]);
2853
+ const w = [], x = Object.keys(p.value).length;
2854
+ for (const $ in p.value) {
2855
+ const N = (B = (_ = r.configSchema) == null ? void 0 : _[$]) == null ? void 0 : B.order, J = (P = m[$]) == null ? void 0 : P.order;
2856
+ let Q = x;
2857
+ (J || J === 0) && (Q = J === -1 ? x + 1 : J), N && (Q = N === -1 ? x + 1 : N), w.push([$, Q]);
2829
2858
  }
2830
- return C.sort(function(T, P) {
2831
- return T[1] - P[1];
2832
- }), C.map((T) => {
2833
- var P, J;
2834
- const Q = T[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = m[Q];
2859
+ return w.sort(function($, N) {
2860
+ return $[1] - N[1];
2861
+ }), w.map(($) => {
2862
+ var N, J;
2863
+ const Q = $[0], X = (N = p.value) == null ? void 0 : N[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ce = m[Q];
2835
2864
  return {
2836
2865
  key: Q,
2837
2866
  value: X,
2838
2867
  hidden: ee.hidden || !1,
2839
- type: ee.type ?? ((ie == null ? void 0 : ie.type) || te.Text),
2840
- label: ee.label ?? ((ie == null ? void 0 : ie.label) || s(Q)),
2841
- tooltip: ee.tooltip ?? ((ie == null ? void 0 : ie.tooltip) || void 0),
2842
- section: ee.section ?? ((ie == null ? void 0 : ie.section) || be.Advanced)
2868
+ type: ee.type ?? ((ce == null ? void 0 : ce.type) || te.Text),
2869
+ label: ee.label ?? ((ce == null ? void 0 : ce.label) || s(Q)),
2870
+ tooltip: ee.tooltip ?? ((ce == null ? void 0 : ce.tooltip) || void 0),
2871
+ section: ee.section ?? ((ce == null ? void 0 : ce.section) || be.Advanced)
2843
2872
  };
2844
- }).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
2845
- }), b = M(() => {
2846
- var w, N;
2873
+ }).filter(($) => !$.hidden && $.key !== r.pluginConfigKey);
2874
+ }), b = T(() => {
2875
+ var _, B;
2847
2876
  if (!p.value || !r.pluginConfigKey)
2848
2877
  return [];
2849
- const B = p.value[r.pluginConfigKey] || {}, C = Object.keys(B).length, S = [];
2850
- for (const T in B) {
2851
- const P = (N = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = B[T];
2852
- let Q = J != null && J !== "" ? C - 1 : C;
2853
- P && (Q = P === -1 ? C + 1 : P), S.push([T, Q]);
2878
+ const P = p.value[r.pluginConfigKey] || {}, w = Object.keys(P).length, x = [];
2879
+ for (const $ in P) {
2880
+ const N = (B = (_ = r.pluginConfigSchema) == null ? void 0 : _[$]) == null ? void 0 : B.order, J = P[$];
2881
+ let Q = J != null && J !== "" ? w - 1 : w;
2882
+ N && (Q = N === -1 ? w + 1 : N), x.push([$, Q]);
2854
2883
  }
2855
- return S.sort(function(T, P) {
2856
- return T[1] - P[1];
2857
- }), S.map((T) => {
2858
- var P;
2859
- const J = T[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
2884
+ return x.sort(function($, N) {
2885
+ return $[1] - N[1];
2886
+ }), x.map(($) => {
2887
+ var N;
2888
+ const J = $[0], Q = P[J], X = ((N = r.pluginConfigSchema) == null ? void 0 : N[J]) || {};
2860
2889
  return {
2861
2890
  key: J,
2862
2891
  value: Q,
@@ -2866,95 +2895,95 @@ const Wi = {
2866
2895
  tooltip: X.tooltip ?? void 0,
2867
2896
  section: be.Plugin
2868
2897
  };
2869
- }).filter((T) => !T.hidden);
2870
- }), k = M(() => {
2871
- var w, N, B, C;
2898
+ }).filter(($) => !$.hidden);
2899
+ }), k = T(() => {
2900
+ var _, B, P, w;
2872
2901
  return {
2873
- basic: (w = A.value) == null ? void 0 : w.filter((S) => S.section === be.Basic),
2874
- advanced: (N = A.value) == null ? void 0 : N.filter((S) => S.section === be.Advanced),
2875
- plugin: (C = b.value) == null ? void 0 : C.concat((B = A.value) == null ? void 0 : B.filter((S) => S.section === be.Plugin))
2902
+ basic: (_ = A.value) == null ? void 0 : _.filter((x) => x.section === be.Basic),
2903
+ advanced: (B = A.value) == null ? void 0 : B.filter((x) => x.section === be.Advanced),
2904
+ plugin: (w = b.value) == null ? void 0 : w.concat((P = A.value) == null ? void 0 : P.filter((x) => x.section === be.Plugin))
2876
2905
  };
2877
- }), x = M(() => {
2878
- const w = [];
2879
- return k.value.basic.length && w.push("basic"), k.value.advanced.length && w.push("advanced"), k.value.plugin.length && w.push("plugin"), w;
2880
- }), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = M(() => {
2881
- var w, N;
2882
- let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2883
- return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (N = r.config) != null && N.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
2884
- }), z = (w) => {
2885
- p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2906
+ }), I = T(() => {
2907
+ const _ = [];
2908
+ return k.value.basic.length && _.push("basic"), k.value.advanced.length && _.push("advanced"), k.value.plugin.length && _.push("plugin"), _;
2909
+ }), re = (_) => !!(_.tooltip || o[`${_.key}-label-tooltip`]), se = T(() => {
2910
+ var _, B;
2911
+ let P = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2912
+ return r.config.app === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((_ = r.config) == null ? void 0 : _.controlPlaneId) || "") : r.config.app === "kongManager" && (P = P.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), P = P.replace(/{id}/gi, r.config.entityId), P;
2913
+ }), z = (_) => {
2914
+ p.value && _(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2886
2915
  };
2887
- return Se(f, (w) => {
2888
- n("loading", w);
2889
- }, { immediate: !0 }), Qe(async () => {
2890
- I.value = !1, f.value = !0;
2916
+ return xe(f, (_) => {
2917
+ n("loading", _);
2918
+ }, { immediate: !0 }), Ze(async () => {
2919
+ S.value = !1, f.value = !0;
2891
2920
  try {
2892
- const { data: w } = await l.get(pe.value);
2921
+ const { data: _ } = await l.get(se.value);
2893
2922
  if (r.dataKey)
2894
- if (typeof w[r.dataKey] < "u")
2895
- p.value = { ...w[r.dataKey] };
2923
+ if (typeof _[r.dataKey] < "u")
2924
+ p.value = { ..._[r.dataKey] };
2896
2925
  else
2897
2926
  throw new Error(a("errors.dataKeyUndefined", { dataKey: r.dataKey }));
2898
2927
  else
2899
- p.value = { ...w };
2900
- Object.keys(r.configSchema).filter((N) => r.configSchema[N].forceShow).forEach((N) => {
2901
- p.value && typeof p.value[N] > "u" && (p.value[N] = null);
2902
- }), n("fetch:success", w);
2903
- } catch (w) {
2904
- const N = i(w);
2905
- v.value = N.startsWith("code") ? a("baseConfigCard.errors.load") : N, I.value = !0, n("fetch:error", w);
2928
+ p.value = { ..._ };
2929
+ Object.keys(r.configSchema).filter((B) => r.configSchema[B].forceShow).forEach((B) => {
2930
+ p.value && typeof p.value[B] > "u" && (p.value[B] = null);
2931
+ }), n("fetch:success", _);
2932
+ } catch (_) {
2933
+ const B = i(_);
2934
+ h.value = B.startsWith("code") ? a("baseConfigCard.errors.load") : B, S.value = !0, n("fetch:error", _);
2906
2935
  } finally {
2907
2936
  f.value = !1;
2908
2937
  }
2909
- }), (w, N) => {
2910
- const B = q("KLabel"), C = q("KSelect"), S = q("KButton"), T = q("KClipboardProvider"), P = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
2938
+ }), (_, B) => {
2939
+ const P = q("KLabel"), w = q("KSelect"), x = q("KButton"), $ = q("KClipboardProvider"), N = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
2911
2940
  return g(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
2912
- actions: h(() => [
2913
- R("div", cs, [
2914
- Y(w.$slots, "actions", {}, void 0, !0),
2915
- e.config.jsonYamlEnabled ? (g(), V(B, {
2941
+ actions: v(() => [
2942
+ R("div", ds, [
2943
+ Y(_.$slots, "actions", {}, void 0, !0),
2944
+ e.config.jsonYamlEnabled ? (g(), V(P, {
2916
2945
  key: 0,
2917
2946
  class: "config-format-select-label",
2918
2947
  "data-testid": "config-format-select-label"
2919
2948
  }, {
2920
- default: h(() => [
2949
+ default: v(() => [
2921
2950
  Z(K(e.label), 1)
2922
2951
  ]),
2923
2952
  _: 1
2924
2953
  })) : G("", !0),
2925
- e.config.jsonYamlEnabled ? (g(), V(C, {
2954
+ e.config.jsonYamlEnabled ? (g(), V(w, {
2926
2955
  key: 1,
2927
2956
  appearance: "select",
2928
2957
  "data-testid": "select-config-format",
2929
2958
  items: c,
2930
2959
  onChange: u
2931
2960
  })) : G("", !0),
2932
- r.config.jsonYamlEnabled && e.configCardDoc ? (g(), V(S, {
2961
+ r.config.jsonYamlEnabled && e.configCardDoc ? (g(), V(x, {
2933
2962
  key: 2,
2934
2963
  appearance: "btn-link",
2935
2964
  class: "book-icon",
2936
2965
  "data-testid": "book-icon"
2937
2966
  }, {
2938
- default: h(() => [
2967
+ default: v(() => [
2939
2968
  R("a", {
2940
2969
  href: e.configCardDoc,
2941
2970
  rel: "noopener",
2942
2971
  target: "_blank"
2943
2972
  }, [
2944
- F(y(ls), { size: y(yo) }, null, 8, ["size"])
2945
- ], 8, ds)
2973
+ F(y(us), { size: y(ho) }, null, 8, ["size"])
2974
+ ], 8, ps)
2946
2975
  ]),
2947
2976
  _: 1
2948
2977
  })) : G("", !0),
2949
- e.config.jsonYamlEnabled ? G("", !0) : (g(), V(T, { key: 3 }, {
2950
- default: h(({ copyToClipboard: X }) => [
2951
- !f.value && !I.value ? (g(), V(S, {
2978
+ e.config.jsonYamlEnabled ? G("", !0) : (g(), V($, { key: 3 }, {
2979
+ default: v(({ copyToClipboard: X }) => [
2980
+ !f.value && !S.value ? (g(), V(x, {
2952
2981
  key: 0,
2953
2982
  appearance: "btn-link",
2954
2983
  "data-testid": "json-copy-button",
2955
2984
  onClick: (ee) => z(X)
2956
2985
  }, {
2957
- default: h(() => [
2986
+ default: v(() => [
2958
2987
  Z(K(y(a)("baseConfigCard.actions.copy")), 1)
2959
2988
  ]),
2960
2989
  _: 2
@@ -2964,79 +2993,79 @@ const Wi = {
2964
2993
  }))
2965
2994
  ])
2966
2995
  ]),
2967
- body: h(() => [
2968
- f.value ? (g(), V(P, {
2996
+ body: v(() => [
2997
+ f.value ? (g(), V(N, {
2969
2998
  key: 0,
2970
2999
  "data-testid": "config-card-loader",
2971
3000
  "table-columns": 2,
2972
3001
  type: "table"
2973
- })) : I.value ? (g(), V(J, {
3002
+ })) : S.value ? (g(), V(J, {
2974
3003
  key: 1,
2975
3004
  "data-testid": "config-card-fetch-error",
2976
3005
  "is-error": ""
2977
3006
  }, {
2978
- message: h(() => [
2979
- R("h3", null, K(v.value), 1)
3007
+ message: v(() => [
3008
+ R("h3", null, K(h.value), 1)
2980
3009
  ]),
2981
3010
  _: 1
2982
3011
  })) : G("", !0),
2983
- e.config.jsonYamlEnabled ? (g(), j("div", ps, [
2984
- F(ts, {
3012
+ e.config.jsonYamlEnabled ? (g(), M("div", fs, [
3013
+ F(ns, {
2985
3014
  format: d.value,
2986
- "prop-list-types": x.value,
3015
+ "prop-list-types": I.value,
2987
3016
  "property-collections": k.value,
2988
3017
  record: p.value
2989
3018
  }, Te({ _: 2 }, [
2990
- ye(Object.keys(w.$slots), (X) => ({
3019
+ ye(Object.keys(_.$slots), (X) => ({
2991
3020
  name: X,
2992
- fn: h(({ row: ee, rowValue: ie }) => [
2993
- Y(w.$slots, X, {
3021
+ fn: v(({ row: ee, rowValue: ce }) => [
3022
+ Y(_.$slots, X, {
2994
3023
  row: ee,
2995
- rowValue: ie
3024
+ rowValue: ce
2996
3025
  }, void 0, !0)
2997
3026
  ])
2998
3027
  }))
2999
3028
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3000
- ])) : (g(), j("div", fs, [
3001
- (g(!0), j(ve, null, ye(x.value, (X) => (g(), j("div", {
3029
+ ])) : (g(), M("div", ms, [
3030
+ (g(!0), M(ve, null, ye(I.value, (X) => (g(), M("div", {
3002
3031
  key: `config-card-details-${X}-props`,
3003
- class: Fe(`config-card-details-${X}-props`),
3032
+ class: Ne(`config-card-details-${X}-props`),
3004
3033
  "data-testid": `config-card-details-${X}-props`
3005
3034
  }, [
3006
- X !== "basic" ? (g(), j("div", gs, K(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3007
- (g(!0), j(ve, null, ye(k.value[X], (ee) => (g(), V(St, {
3035
+ X !== "basic" ? (g(), M("div", ys, K(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3036
+ (g(!0), M(ve, null, ye(k.value[X], (ee) => (g(), V(xt, {
3008
3037
  key: ee.key,
3009
3038
  item: ee
3010
3039
  }, Te({
3011
- label: h(() => [
3012
- Y(w.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3040
+ label: v(() => [
3041
+ Y(_.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3013
3042
  ]),
3014
- [ee.key]: h(({ rowValue: ie }) => [
3015
- Y(w.$slots, ee.key, {
3043
+ [ee.key]: v(({ rowValue: ce }) => [
3044
+ Y(_.$slots, ee.key, {
3016
3045
  row: ee,
3017
- rowValue: ie
3046
+ rowValue: ce
3018
3047
  }, void 0, !0)
3019
3048
  ]),
3020
3049
  _: 2
3021
3050
  }, [
3022
- ne(ee) ? {
3051
+ re(ee) ? {
3023
3052
  name: "label-tooltip",
3024
- fn: h(() => [
3025
- Y(w.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3053
+ fn: v(() => [
3054
+ Y(_.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3026
3055
  ]),
3027
3056
  key: "0"
3028
3057
  } : void 0
3029
3058
  ]), 1032, ["item"]))), 128))
3030
- ], 10, ms))), 128))
3059
+ ], 10, gs))), 128))
3031
3060
  ]))
3032
3061
  ]),
3033
3062
  _: 2
3034
3063
  }, [
3035
3064
  e.hideTitle ? void 0 : {
3036
3065
  name: "title",
3037
- fn: h(() => [
3038
- R("div", us, [
3039
- Y(w.$slots, "title", {}, () => [
3066
+ fn: v(() => [
3067
+ R("div", cs, [
3068
+ Y(_.$slots, "title", {}, () => [
3040
3069
  Z(K(y(a)("baseConfigCard.title")), 1)
3041
3070
  ], !0)
3042
3071
  ])
@@ -3046,10 +3075,10 @@ const Wi = {
3046
3075
  ]), 1024);
3047
3076
  };
3048
3077
  }
3049
- }), hs = /* @__PURE__ */ Ce(ys, [["__scopeId", "data-v-64349aa2"]]), vs = ["onReset", "onSubmit"], bs = {
3078
+ }), vs = /* @__PURE__ */ Ce(hs, [["__scopeId", "data-v-64349aa2"]]), bs = ["onReset", "onSubmit"], ks = {
3050
3079
  class: "form-actions",
3051
3080
  "data-testid": "form-actions"
3052
- }, ks = /* @__PURE__ */ ae({
3081
+ }, Cs = /* @__PURE__ */ ae({
3053
3082
  __name: "EntityBaseForm",
3054
3083
  props: {
3055
3084
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3101,22 +3130,22 @@ const Wi = {
3101
3130
  var t;
3102
3131
  const r = e, o = wt(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { axiosInstance: s } = ue.useAxios({
3103
3132
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3104
- }), l = O(!1), c = O(!1), d = O(""), u = M(() => r.canSubmit === !1 || r.isReadonly), m = M(() => {
3133
+ }), l = O(!1), c = O(!1), d = O(""), u = T(() => r.canSubmit === !1 || r.isReadonly), m = T(() => {
3105
3134
  var p, A;
3106
3135
  if (!r.editId)
3107
3136
  return "";
3108
3137
  let b = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3109
3138
  return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (A = r.config) != null && A.workspace ? `/${r.config.workspace}` : "")), b = b.replace(/{id}/gi, r.editId), b;
3110
3139
  }), f = () => {
3111
- r.config.cancelRoute ? o.push(r.config.cancelRoute) : I();
3112
- }, I = () => {
3140
+ r.config.cancelRoute ? o.push(r.config.cancelRoute) : S();
3141
+ }, S = () => {
3113
3142
  n("cancel");
3114
- }, v = () => {
3143
+ }, h = () => {
3115
3144
  u.value || n("submit");
3116
3145
  };
3117
- return Se(() => l.value, (p) => {
3146
+ return xe(() => l.value, (p) => {
3118
3147
  n("loading", p);
3119
- }, { immediate: !0 }), Qe(async () => {
3148
+ }, { immediate: !0 }), Ze(async () => {
3120
3149
  if (r.editId)
3121
3150
  try {
3122
3151
  c.value = !1, l.value = !0;
@@ -3129,9 +3158,9 @@ const Wi = {
3129
3158
  l.value = !1;
3130
3159
  }
3131
3160
  }), (p, A) => {
3132
- const b = q("KSkeleton"), k = q("KEmptyState"), x = q("KAlert"), ne = q("KButton"), pe = q("KCard");
3133
- return g(), V(pe, { class: "kong-ui-entity-base-form" }, {
3134
- body: h(() => [
3161
+ const b = q("KSkeleton"), k = q("KEmptyState"), I = q("KAlert"), re = q("KButton"), se = q("KCard");
3162
+ return g(), V(se, { class: "kong-ui-entity-base-form" }, {
3163
+ body: v(() => [
3135
3164
  l.value ? (g(), V(b, {
3136
3165
  key: 0,
3137
3166
  type: "form"
@@ -3142,59 +3171,59 @@ const Wi = {
3142
3171
  "handle-click": f,
3143
3172
  "is-error": !0
3144
3173
  }, {
3145
- message: h(() => [
3174
+ message: v(() => [
3146
3175
  R("h3", null, K(d.value), 1)
3147
3176
  ]),
3148
3177
  _: 1
3149
- }, 8, ["cta-text"])) : (g(), j("form", {
3178
+ }, 8, ["cta-text"])) : (g(), M("form", {
3150
3179
  key: 2,
3151
3180
  "data-testid": "form-content",
3152
- onReset: rt(I, ["prevent"]),
3153
- onSubmit: rt(v, ["prevent"])
3181
+ onReset: rt(S, ["prevent"]),
3182
+ onSubmit: rt(h, ["prevent"])
3154
3183
  }, [
3155
3184
  Y(p.$slots, "default", {}, void 0, !0),
3156
- e.errorMessage ? (g(), V(x, {
3185
+ e.errorMessage ? (g(), V(I, {
3157
3186
  key: 0,
3158
3187
  "alert-message": e.errorMessage,
3159
3188
  appearance: "danger",
3160
3189
  "data-testid": "form-error"
3161
3190
  }, null, 8, ["alert-message"])) : G("", !0),
3162
- R("div", bs, [
3191
+ R("div", ks, [
3163
3192
  Y(p.$slots, "form-actions", {}, () => [
3164
- F(ne, {
3193
+ F(re, {
3165
3194
  appearance: "outline",
3166
3195
  "data-testid": "form-cancel",
3167
3196
  disabled: e.isReadonly,
3168
3197
  type: "reset"
3169
3198
  }, {
3170
- default: h(() => [
3199
+ default: v(() => [
3171
3200
  Z(K(y(a)("baseForm.actions.cancel")), 1)
3172
3201
  ]),
3173
3202
  _: 1
3174
3203
  }, 8, ["disabled"]),
3175
- F(ne, {
3204
+ F(re, {
3176
3205
  appearance: "primary",
3177
3206
  "data-testid": "form-submit",
3178
3207
  disabled: u.value,
3179
3208
  type: "submit"
3180
3209
  }, {
3181
- default: h(() => [
3210
+ default: v(() => [
3182
3211
  Z(K(y(a)("baseForm.actions.save")), 1)
3183
3212
  ]),
3184
3213
  _: 1
3185
3214
  }, 8, ["disabled"])
3186
3215
  ], !0)
3187
3216
  ])
3188
- ], 40, vs))
3217
+ ], 40, bs))
3189
3218
  ]),
3190
3219
  _: 3
3191
3220
  });
3192
3221
  };
3193
3222
  }
3194
- }), Cs = /* @__PURE__ */ Ce(ks, [["__scopeId", "data-v-44a90aae"]]), _s = {
3223
+ }), _s = /* @__PURE__ */ Ce(Cs, [["__scopeId", "data-v-44a90aae"]]), ws = {
3195
3224
  key: 0,
3196
3225
  "data-testid": "first-col"
3197
- }, ws = /* @__PURE__ */ ae({
3226
+ }, Is = /* @__PURE__ */ ae({
3198
3227
  __name: "EntityBaseTableCell",
3199
3228
  props: {
3200
3229
  keyName: {
@@ -3207,68 +3236,68 @@ const Wi = {
3207
3236
  }
3208
3237
  },
3209
3238
  setup(e) {
3210
- const n = e, t = M(() => {
3211
- var v;
3212
- return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3213
- }), r = M(() => {
3214
- var v;
3215
- return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3216
- }), o = M(() => {
3217
- var v, p;
3218
- const A = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3239
+ const n = e, t = T(() => {
3240
+ var h;
3241
+ return ((h = n.rowEl) == null ? void 0 : h.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3242
+ }), r = T(() => {
3243
+ var h;
3244
+ return ((h = t.value) == null ? void 0 : h.querySelector('[data-testid="first-col"]')) || null;
3245
+ }), o = T(() => {
3246
+ var h, p;
3247
+ const A = (h = n.rowEl) == null ? void 0 : h.querySelectorAll("td");
3219
3248
  return A ? ((p = A[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3220
3249
  });
3221
3250
  let a;
3222
3251
  const i = () => {
3223
3252
  a && (a.disconnect(), a = void 0);
3224
3253
  }, s = () => {
3225
- var v, p, A;
3226
- c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
3227
- }, l = O({}), c = O(0), d = O(0), u = O(""), m = M(() => [r.value, t.value]), f = Se(
3254
+ var h, p, A;
3255
+ c.value = ((h = r.value) == null ? void 0 : h.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
3256
+ }, l = O({}), c = O(0), d = O(0), u = O(""), m = T(() => [r.value, t.value]), f = xe(
3228
3257
  m,
3229
- (v) => {
3258
+ (h) => {
3230
3259
  if (o.value && (i(), "ResizeObserver" in window && window)) {
3231
3260
  a = new ResizeObserver((p) => {
3232
3261
  window.requestAnimationFrame(() => {
3233
3262
  !Array.isArray(p) || !p.length || s();
3234
3263
  });
3235
3264
  });
3236
- for (const p of v)
3265
+ for (const p of h)
3237
3266
  p && a.observe(p);
3238
3267
  }
3239
3268
  },
3240
3269
  { immediate: !0, flush: "post", deep: !0 }
3241
- ), I = M(() => o.value ? c.value > d.value : !1);
3242
- return pr(() => {
3270
+ ), S = T(() => o.value ? c.value > d.value : !1);
3271
+ return fr(() => {
3243
3272
  s();
3244
- }), fr(() => {
3273
+ }), mr(() => {
3245
3274
  f();
3246
- }), (v, p) => {
3275
+ }), (h, p) => {
3247
3276
  const A = q("KTooltip");
3248
- return g(), j("span", {
3277
+ return g(), M("span", {
3249
3278
  ref_key: "contentRef",
3250
3279
  ref: l,
3251
3280
  class: "content-wrapper"
3252
3281
  }, [
3253
- o.value ? (g(), j("span", _s, [
3282
+ o.value ? (g(), M("span", ws, [
3254
3283
  F(A, {
3255
- label: I.value ? u.value : "",
3284
+ label: S.value ? u.value : "",
3256
3285
  "max-width": "300",
3257
3286
  placement: "bottomStart"
3258
3287
  }, {
3259
- default: h(() => [
3260
- Y(v.$slots, "default", {}, void 0, !0)
3288
+ default: v(() => [
3289
+ Y(h.$slots, "default", {}, void 0, !0)
3261
3290
  ]),
3262
3291
  _: 3
3263
3292
  }, 8, ["label"])
3264
- ])) : Y(v.$slots, "default", { key: 1 }, void 0, !0)
3293
+ ])) : Y(h.$slots, "default", { key: 1 }, void 0, !0)
3265
3294
  ], 512);
3266
3295
  };
3267
3296
  }
3268
- }), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-e42a20c9"]]), xs = { class: "toolbar-container" }, As = {
3297
+ }), As = /* @__PURE__ */ Ce(Is, [["__scopeId", "data-v-e42a20c9"]]), Ss = { class: "toolbar-container" }, xs = {
3269
3298
  key: 0,
3270
3299
  class: "toolbar-button-container"
3271
- }, Ss = ["data-testid"], Ts = /* @__PURE__ */ ae({
3300
+ }, Ts = ["data-testid"], $s = /* @__PURE__ */ ae({
3272
3301
  __name: "EntityBaseTable",
3273
3302
  props: {
3274
3303
  // table header configuration
@@ -3377,14 +3406,14 @@ const Wi = {
3377
3406
  },
3378
3407
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3379
3408
  setup(e, { emit: n }) {
3380
- const t = e, { i18n: { t: r } } = ue.useI18n(), o = M(() => t.cacheIdentifier || t.preferencesStorageKey), a = (k) => k.hasData || !!t.query, i = M(() => {
3409
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = T(() => t.cacheIdentifier || t.preferencesStorageKey), a = (k) => k.hasData || !!t.query, i = T(() => {
3381
3410
  const k = [];
3382
- return Object.keys(t.tableHeaders).forEach((x) => {
3383
- const ne = t.tableHeaders[x];
3411
+ return Object.keys(t.tableHeaders).forEach((I) => {
3412
+ const re = t.tableHeaders[I];
3384
3413
  k.push({
3385
- label: ne.label ?? x,
3386
- key: x,
3387
- sortable: ne.sortable ?? !1
3414
+ label: re.label ?? I,
3415
+ key: I,
3416
+ sortable: re.sortable ?? !1
3388
3417
  });
3389
3418
  }), t.enableEntityActions && k.push({
3390
3419
  key: "actions",
@@ -3395,43 +3424,43 @@ const Wi = {
3395
3424
  "data-testid": k.name,
3396
3425
  ...t.rowAttributes(k)
3397
3426
  }), l = O({}), c = (k) => {
3398
- var x;
3399
- return (x = l.value) == null ? void 0 : x.$el.querySelector(`[data-rowid="${k.id}"]`);
3427
+ var I;
3428
+ return (I = l.value) == null ? void 0 : I.$el.querySelector(`[data-rowid="${k.id}"]`);
3400
3429
  }, d = (k) => {
3401
- const x = {
3430
+ const I = {
3402
3431
  "data-testid": k.headerKey,
3403
3432
  ...t.cellAttributes(k)
3404
3433
  };
3405
- return k.colIndex === 0 && (x.style = {
3434
+ return k.colIndex === 0 && (I.style = {
3406
3435
  maxWidth: "250px",
3407
3436
  overflowX: "hidden",
3408
3437
  textOverflow: "ellipsis"
3409
- }), x;
3438
+ }), I;
3410
3439
  }, u = () => {
3411
3440
  n("empty-state-cta-clicked"), m();
3412
3441
  }, m = () => {
3413
3442
  n("clear-search-input");
3414
- }, f = M(() => t.disableRowClick ? void 0 : (k, x) => {
3415
- n("click:row", x);
3416
- }), I = (k) => {
3443
+ }, f = T(() => t.disableRowClick ? void 0 : (k, I) => {
3444
+ n("click:row", I);
3445
+ }), S = (k) => {
3417
3446
  n("sort", k);
3418
- }, { setTablePreferences: v, getTablePreferences: p } = Ar(), A = M(() => {
3447
+ }, { setTablePreferences: h, getTablePreferences: p } = xr(), A = T(() => {
3419
3448
  const k = p(t.preferencesStorageKey);
3420
3449
  return {
3421
3450
  ...t.initialFetcherParams,
3422
3451
  ...k
3423
3452
  };
3424
3453
  }), b = (k) => {
3425
- t.preferencesStorageKey && v(t.preferencesStorageKey, k);
3454
+ t.preferencesStorageKey && h(t.preferencesStorageKey, k);
3426
3455
  };
3427
- return (k, x) => {
3428
- const ne = q("KIcon"), pe = q("KButton"), z = q("KDropdownMenu"), w = q("KTable"), N = q("KCard");
3429
- return g(), V(N, {
3456
+ return (k, I) => {
3457
+ const re = q("KIcon"), se = q("KButton"), z = q("KDropdownMenu"), _ = q("KTable"), B = q("KCard");
3458
+ return g(), V(B, {
3430
3459
  class: "kong-ui-entity-base-table",
3431
3460
  title: e.title
3432
3461
  }, {
3433
- body: h(() => [
3434
- F(w, {
3462
+ body: v(() => [
3463
+ F(_, {
3435
3464
  ref_key: "tableRefs",
3436
3465
  ref: l,
3437
3466
  "cache-identifier": o.value,
@@ -3459,44 +3488,44 @@ const Wi = {
3459
3488
  "search-input": e.query,
3460
3489
  onKtableEmptyStateCtaClicked: u,
3461
3490
  "onRow:click": f.value,
3462
- onSort: x[0] || (x[0] = (B) => I(B)),
3491
+ onSort: I[0] || (I[0] = (P) => S(P)),
3463
3492
  "onUpdate:tablePreferences": b
3464
3493
  }, Te({
3465
- toolbar: h(({ state: B }) => [
3466
- et(R("div", xs, [
3494
+ toolbar: v(({ state: P }) => [
3495
+ et(R("div", Ss, [
3467
3496
  Y(k.$slots, "toolbar-filter", {}, void 0, !0),
3468
- k.$slots["toolbar-button"] ? (g(), j("div", As, [
3497
+ k.$slots["toolbar-button"] ? (g(), M("div", xs, [
3469
3498
  Y(k.$slots, "toolbar-button", {}, void 0, !0)
3470
3499
  ])) : G("", !0)
3471
3500
  ], 512), [
3472
- [tt, a(B)]
3501
+ [tt, a(P)]
3473
3502
  ])
3474
3503
  ]),
3475
- actions: h(({ row: B, rowKey: C, rowValue: S }) => [
3504
+ actions: v(({ row: P, rowKey: w, rowValue: x }) => [
3476
3505
  R("div", {
3477
3506
  class: "actions-container",
3478
- "data-testid": B.name
3507
+ "data-testid": P.name
3479
3508
  }, [
3480
3509
  F(z, {
3481
3510
  "kpop-attributes": { placement: "bottomEnd" },
3482
3511
  width: e.dropdownMenuWidth
3483
3512
  }, {
3484
- items: h(() => [
3513
+ items: v(() => [
3485
3514
  Y(k.$slots, "actions", {
3486
- row: B,
3487
- rowKey: C,
3488
- rowValue: S
3515
+ row: P,
3516
+ rowKey: w,
3517
+ rowValue: x
3489
3518
  }, void 0, !0)
3490
3519
  ]),
3491
- default: h(() => [
3492
- F(pe, {
3520
+ default: v(() => [
3521
+ F(se, {
3493
3522
  class: "actions-trigger",
3494
3523
  "data-testid": "overflow-actions-button",
3495
3524
  size: "small"
3496
3525
  }, {
3497
- icon: h(() => [
3498
- F(ne, {
3499
- color: y(mo),
3526
+ icon: v(() => [
3527
+ F(re, {
3528
+ color: y(go),
3500
3529
  icon: "more",
3501
3530
  size: "16"
3502
3531
  }, null, 8, ["color"])
@@ -3506,24 +3535,24 @@ const Wi = {
3506
3535
  ]),
3507
3536
  _: 2
3508
3537
  }, 1032, ["width"])
3509
- ], 8, Ss)
3538
+ ], 8, Ts)
3510
3539
  ]),
3511
3540
  _: 2
3512
3541
  }, [
3513
- ye(e.tableHeaders, (B, C) => ({
3514
- name: C,
3515
- fn: h(({ row: S, rowKey: T, rowValue: P }) => [
3516
- F(Is, {
3517
- "key-name": String(C),
3518
- "row-el": c(S)
3542
+ ye(e.tableHeaders, (P, w) => ({
3543
+ name: w,
3544
+ fn: v(({ row: x, rowKey: $, rowValue: N }) => [
3545
+ F(As, {
3546
+ "key-name": String(w),
3547
+ "row-el": c(x)
3519
3548
  }, {
3520
- default: h(() => [
3521
- Y(k.$slots, C, {
3522
- row: S,
3523
- rowKey: T,
3524
- rowValue: P
3549
+ default: v(() => [
3550
+ Y(k.$slots, w, {
3551
+ row: x,
3552
+ rowKey: $,
3553
+ rowValue: N
3525
3554
  }, () => [
3526
- Z(K(P), 1)
3555
+ Z(K(N), 1)
3527
3556
  ], !0)
3528
3557
  ]),
3529
3558
  _: 2
@@ -3536,13 +3565,13 @@ const Wi = {
3536
3565
  }, 8, ["title"]);
3537
3566
  };
3538
3567
  }
3539
- }), $s = /* @__PURE__ */ Ce(Ts, [["__scopeId", "data-v-6bf92df6"]]), Ms = {
3568
+ }), js = /* @__PURE__ */ Ce($s, [["__scopeId", "data-v-6bf92df6"]]), Ms = {
3540
3569
  key: 0,
3541
3570
  class: "kong-ui-entity-delete-error"
3542
- }, js = {
3571
+ }, Es = {
3543
3572
  key: 1,
3544
3573
  class: "description"
3545
- }, Es = /* @__PURE__ */ ae({
3574
+ }, Os = /* @__PURE__ */ ae({
3546
3575
  __name: "EntityDeleteModal",
3547
3576
  props: {
3548
3577
  visible: {
@@ -3581,7 +3610,7 @@ const Wi = {
3581
3610
  },
3582
3611
  emits: ["cancel", "proceed"],
3583
3612
  setup(e, { emit: n }) {
3584
- const t = e, { i18nT: r } = ue.useI18n(), o = M(() => t.needConfirm ? t.entityName : ""), a = () => {
3613
+ const t = e, { i18nT: r } = ue.useI18n(), o = T(() => t.needConfirm ? t.entityName : ""), a = () => {
3585
3614
  n("cancel");
3586
3615
  }, i = () => {
3587
3616
  n("proceed");
@@ -3599,10 +3628,10 @@ const Wi = {
3599
3628
  onCanceled: a,
3600
3629
  onProceed: i
3601
3630
  }, {
3602
- "body-content": h(() => [
3603
- e.error ? (g(), j("div", Ms, [
3631
+ "body-content": v(() => [
3632
+ e.error ? (g(), M("div", Ms, [
3604
3633
  F(c, { appearance: "danger" }, {
3605
- alertMessage: h(() => [
3634
+ alertMessage: v(() => [
3606
3635
  Z(K(e.error), 1)
3607
3636
  ]),
3608
3637
  _: 1
@@ -3613,20 +3642,20 @@ const Wi = {
3613
3642
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3614
3643
  tag: "p"
3615
3644
  }, Te({
3616
- entityType: h(() => [
3645
+ entityType: v(() => [
3617
3646
  Z(K(t.entityType), 1)
3618
3647
  ]),
3619
3648
  _: 2
3620
3649
  }, [
3621
3650
  t.entityName ? {
3622
3651
  name: "entityName",
3623
- fn: h(() => [
3652
+ fn: v(() => [
3624
3653
  R("strong", null, K(t.entityName), 1)
3625
3654
  ]),
3626
3655
  key: "0"
3627
3656
  } : void 0
3628
3657
  ]), 1032, ["keypath"]),
3629
- t.description || s.$slots.description ? (g(), j("div", js, [
3658
+ t.description || s.$slots.description ? (g(), M("div", Es, [
3630
3659
  Y(s.$slots, "description", {}, () => [
3631
3660
  R("p", null, K(t.description), 1)
3632
3661
  ], !0)
@@ -3636,13 +3665,13 @@ const Wi = {
3636
3665
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3637
3666
  };
3638
3667
  }
3639
- }), Os = /* @__PURE__ */ Ce(Es, [["__scopeId", "data-v-1c9a2a07"]]), Ks = {
3668
+ }), Ks = /* @__PURE__ */ Ce(Os, [["__scopeId", "data-v-1c9a2a07"]]), Fs = {
3640
3669
  fill: "none",
3641
3670
  height: "20",
3642
3671
  viewBox: "0 0 20 20",
3643
3672
  width: "20",
3644
3673
  xmlns: "http://www.w3.org/2000/svg"
3645
- }, Fs = {
3674
+ }, Ns = {
3646
3675
  id: "mask0_180_20349",
3647
3676
  height: "20",
3648
3677
  maskUnits: "userSpaceOnUse",
@@ -3650,35 +3679,35 @@ const Wi = {
3650
3679
  width: "20",
3651
3680
  x: "0",
3652
3681
  y: "0"
3653
- }, Ns = ["fill"], Bs = { mask: "url(#mask0_180_20349)" }, Ps = ["fill"], Ls = /* @__PURE__ */ ae({
3682
+ }, Bs = ["fill"], Ps = { mask: "url(#mask0_180_20349)" }, Ls = ["fill"], qs = /* @__PURE__ */ ae({
3654
3683
  __name: "IconFilter",
3655
3684
  props: {
3656
3685
  color: {
3657
3686
  type: String,
3658
- default: `var(--kong-ui-entity-filter-color, ${po})`
3687
+ default: `var(--kong-ui-entity-filter-color, ${fo})`
3659
3688
  }
3660
3689
  },
3661
3690
  setup(e) {
3662
- return (n, t) => (g(), j("svg", Ks, [
3663
- R("mask", Fs, [
3691
+ return (n, t) => (g(), M("svg", Fs, [
3692
+ R("mask", Ns, [
3664
3693
  R("rect", {
3665
3694
  fill: e.color,
3666
3695
  height: "20",
3667
3696
  width: "20"
3668
- }, null, 8, Ns)
3697
+ }, null, 8, Bs)
3669
3698
  ]),
3670
- R("g", Bs, [
3699
+ R("g", Ps, [
3671
3700
  R("path", {
3672
3701
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3673
3702
  fill: e.color
3674
- }, null, 8, Ps)
3703
+ }, null, 8, Ls)
3675
3704
  ])
3676
3705
  ]));
3677
3706
  }
3678
- }), qs = {
3707
+ }), Us = {
3679
3708
  key: 1,
3680
3709
  class: "kong-ui-entity-filter"
3681
- }, Us = { class: "menu-item-title" }, Rs = { class: "menu-item-indicator" }, Vs = { class: "menu-item-body" }, Ds = ["for"], Gs = { class: "menu-item-buttons" }, zs = /* @__PURE__ */ ae({
3710
+ }, Rs = { class: "menu-item-title" }, Vs = { class: "menu-item-indicator" }, Ds = { class: "menu-item-body" }, Gs = ["for"], zs = { class: "menu-item-buttons" }, Hs = /* @__PURE__ */ ae({
3682
3711
  __name: "EntityFilter",
3683
3712
  props: {
3684
3713
  // filter config, either exact match or fuzzy match
@@ -3698,19 +3727,19 @@ const Wi = {
3698
3727
  },
3699
3728
  emits: ["update:modelValue"],
3700
3729
  setup(e, { emit: n }) {
3701
- const t = e, { i18n: { t: r } } = ue.useI18n(), o = O(!1), a = O({}), i = M(() => {
3730
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = O(!1), a = O({}), i = T(() => {
3702
3731
  const p = [];
3703
3732
  return new URLSearchParams(t.modelValue).forEach((A, b) => {
3704
3733
  A !== "" && p.push(b);
3705
3734
  }), p;
3706
- }), s = M(() => {
3735
+ }), s = T(() => {
3707
3736
  const p = t.config.fields;
3708
3737
  return Object.keys(p).filter((A) => p[A].searchable).map((A) => ({
3709
3738
  label: p[A].label || A,
3710
3739
  value: A
3711
3740
  }));
3712
3741
  });
3713
- Se(() => t.modelValue, (p) => {
3742
+ xe(() => t.modelValue, (p) => {
3714
3743
  a.value = {}, new URLSearchParams(p).forEach((A, b) => {
3715
3744
  a.value[b] = A;
3716
3745
  });
@@ -3732,15 +3761,15 @@ const Wi = {
3732
3761
  a.value = {
3733
3762
  ...a.value,
3734
3763
  [p]: ""
3735
- }, v();
3736
- }, I = () => {
3737
- a.value = {}, v(!0);
3738
- }, v = (p = !1) => {
3764
+ }, h();
3765
+ }, S = () => {
3766
+ a.value = {}, h(!0);
3767
+ }, h = (p = !1) => {
3739
3768
  const A = Object.keys(a.value).reduce((b, k) => (a.value[k] && (b[k] = `${a.value[k]}`), b), {});
3740
3769
  p && (o.value = !1), n("update:modelValue", new URLSearchParams(A).toString());
3741
3770
  };
3742
3771
  return (p, A) => {
3743
- const b = q("KInput"), k = q("KButton"), x = q("KSelect"), ne = q("KMenuItem"), pe = q("KMenu");
3772
+ const b = q("KInput"), k = q("KButton"), I = q("KSelect"), re = q("KMenuItem"), se = q("KMenu");
3744
3773
  return e.config.isExactMatch ? (g(), V(b, {
3745
3774
  key: 0,
3746
3775
  autocomplete: "off",
@@ -3750,18 +3779,18 @@ const Wi = {
3750
3779
  placeholder: e.config.placeholder,
3751
3780
  "onUpdate:modelValue": c
3752
3781
  }, {
3753
- icon: h(() => [
3754
- F(Ls)
3782
+ icon: v(() => [
3783
+ F(qs)
3755
3784
  ]),
3756
3785
  _: 1
3757
- }, 8, ["model-value", "placeholder"])) : (g(), j("div", qs, [
3786
+ }, 8, ["model-value", "placeholder"])) : (g(), M("div", Us, [
3758
3787
  F(k, {
3759
3788
  appearance: "btn-link",
3760
3789
  "data-testid": "filter-button",
3761
3790
  icon: "filter",
3762
3791
  onClick: l
3763
3792
  }, {
3764
- default: h(() => [
3793
+ default: v(() => [
3765
3794
  Z(K(y(r)("filter.filterButtonText")) + " " + K(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3766
3795
  ]),
3767
3796
  _: 1
@@ -3772,35 +3801,35 @@ const Wi = {
3772
3801
  }, null, 512), [
3773
3802
  [tt, o.value]
3774
3803
  ]),
3775
- et(F(pe, { class: "kong-ui-entity-filter-menu" }, {
3776
- body: h(() => [
3777
- (g(!0), j(ve, null, ye(s.value, (z, w) => (g(), V(ne, {
3804
+ et(F(se, { class: "kong-ui-entity-filter-menu" }, {
3805
+ body: v(() => [
3806
+ (g(!0), M(ve, null, ye(s.value, (z, _) => (g(), V(re, {
3778
3807
  key: z.value,
3779
3808
  "data-testid": z.value,
3780
3809
  expandable: "",
3781
- "last-menu-item": w === s.value.length - 1
3810
+ "last-menu-item": _ === s.value.length - 1
3782
3811
  }, {
3783
- itemTitle: h(() => [
3784
- R("span", Us, [
3812
+ itemTitle: v(() => [
3813
+ R("span", Rs, [
3785
3814
  Z(K(z.label) + " ", 1),
3786
- et(R("span", Rs, null, 512), [
3815
+ et(R("span", Vs, null, 512), [
3787
3816
  [tt, i.value.includes(z.value)]
3788
3817
  ])
3789
3818
  ])
3790
3819
  ]),
3791
- itemBody: h(() => {
3792
- var N, B;
3820
+ itemBody: v(() => {
3821
+ var B, P;
3793
3822
  return [
3794
- R("div", Vs, [
3823
+ R("div", Ds, [
3795
3824
  R("label", {
3796
3825
  class: "menu-item-label",
3797
3826
  for: d(z.value)
3798
- }, K(y(r)("filter.fieldLabel")), 9, Ds),
3799
- ((B = (N = e.config.schema) == null ? void 0 : N[z.value]) == null ? void 0 : B.type) === "select" ? (g(), V(x, {
3827
+ }, K(y(r)("filter.fieldLabel")), 9, Gs),
3828
+ ((P = (B = e.config.schema) == null ? void 0 : B[z.value]) == null ? void 0 : P.type) === "select" ? (g(), V(I, {
3800
3829
  key: 0,
3801
3830
  id: d(z.value),
3802
3831
  modelValue: a.value[z.value],
3803
- "onUpdate:modelValue": (C) => a.value[z.value] = C,
3832
+ "onUpdate:modelValue": (w) => a.value[z.value] = w,
3804
3833
  appearance: "select",
3805
3834
  items: u(z.value),
3806
3835
  placeholder: y(r)("filter.selectPlaceholder")
@@ -3808,21 +3837,21 @@ const Wi = {
3808
3837
  key: 1,
3809
3838
  id: d(z.value),
3810
3839
  modelValue: a.value[z.value],
3811
- "onUpdate:modelValue": (C) => a.value[z.value] = C,
3840
+ "onUpdate:modelValue": (w) => a.value[z.value] = w,
3812
3841
  autocomplete: "off",
3813
3842
  placeholder: y(r)("filter.inputPlaceholder"),
3814
3843
  size: "small",
3815
3844
  type: m(z.value)
3816
3845
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3817
3846
  ]),
3818
- R("div", Gs, [
3847
+ R("div", zs, [
3819
3848
  F(k, {
3820
3849
  appearance: "btn-link",
3821
3850
  "data-testid": "apply-filter",
3822
3851
  size: "small",
3823
- onClick: A[0] || (A[0] = (C) => v(!0))
3852
+ onClick: A[0] || (A[0] = (w) => h(!0))
3824
3853
  }, {
3825
- default: h(() => [
3854
+ default: v(() => [
3826
3855
  Z(K(y(r)("filter.applyButtonText")), 1)
3827
3856
  ]),
3828
3857
  _: 1
@@ -3831,9 +3860,9 @@ const Wi = {
3831
3860
  appearance: "btn-link",
3832
3861
  "data-testid": "clear-filter",
3833
3862
  size: "small",
3834
- onClick: (C) => f(z.value)
3863
+ onClick: (w) => f(z.value)
3835
3864
  }, {
3836
- default: h(() => [
3865
+ default: v(() => [
3837
3866
  Z(K(y(r)("filter.clearButtonText")), 1)
3838
3867
  ]),
3839
3868
  _: 2
@@ -3844,9 +3873,9 @@ const Wi = {
3844
3873
  _: 2
3845
3874
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3846
3875
  ]),
3847
- actionButton: h(() => [
3848
- F(k, { onClick: I }, {
3849
- default: h(() => [
3876
+ actionButton: v(() => [
3877
+ F(k, { onClick: S }, {
3878
+ default: v(() => [
3850
3879
  Z(K(y(r)("filter.clearAllButtonText")), 1)
3851
3880
  ]),
3852
3881
  _: 1
@@ -3859,7 +3888,7 @@ const Wi = {
3859
3888
  ]));
3860
3889
  };
3861
3890
  }
3862
- }), Hs = /* @__PURE__ */ Ce(zs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
3891
+ }), Js = /* @__PURE__ */ Ce(Hs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
3863
3892
  __name: "PermissionsWrapper",
3864
3893
  props: {
3865
3894
  /**
@@ -3881,24 +3910,24 @@ const Wi = {
3881
3910
  }
3882
3911
  },
3883
3912
  setup(e) {
3884
- const n = e, t = O(void 0), r = M(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3885
- return Se(() => n.authFunction, async () => {
3913
+ const n = e, t = O(void 0), r = T(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3914
+ return xe(() => n.authFunction, async () => {
3886
3915
  t.value = await n.authFunction();
3887
3916
  }, { immediate: !0 }), (o, a) => r.value ? Y(o.$slots, "default", {
3888
3917
  key: 0,
3889
3918
  isAllowed: t.value
3890
3919
  }) : G("", !0);
3891
3920
  }
3892
- }), Js = { class: "form-section-wrapper" }, Ws = {
3921
+ }), Ws = { class: "form-section-wrapper" }, Ys = {
3893
3922
  key: 0,
3894
3923
  class: "form-section-title"
3895
- }, Ys = {
3924
+ }, Zs = {
3896
3925
  key: 1,
3897
3926
  class: "form-section-description"
3898
- }, Zs = {
3927
+ }, Qs = {
3899
3928
  key: 2,
3900
3929
  class: "form-section-footer"
3901
- }, Qs = { class: "form-section-content" }, Xs = /* @__PURE__ */ ae({
3930
+ }, Xs = { class: "form-section-content" }, el = /* @__PURE__ */ ae({
3902
3931
  __name: "EntityFormSection",
3903
3932
  props: {
3904
3933
  title: {
@@ -3924,35 +3953,35 @@ const Wi = {
3924
3953
  },
3925
3954
  setup(e) {
3926
3955
  const n = ut();
3927
- return (t, r) => (g(), j("fieldset", {
3928
- class: Fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3956
+ return (t, r) => (g(), M("fieldset", {
3957
+ class: Ne(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3929
3958
  }, [
3930
- R("div", Js, [
3931
- e.hideInfoHeader ? G("", !0) : (g(), j("div", {
3959
+ R("div", Ws, [
3960
+ e.hideInfoHeader ? G("", !0) : (g(), M("div", {
3932
3961
  key: 0,
3933
- class: Fe(["form-section-info", { sticky: e.stickyInfoHeader }])
3962
+ class: Ne(["form-section-info", { sticky: e.stickyInfoHeader }])
3934
3963
  }, [
3935
- e.title ? (g(), j("h4", Ws, K(e.title), 1)) : G("", !0),
3936
- e.description || y(n).description ? (g(), j("div", Ys, [
3964
+ e.title ? (g(), M("h4", Ys, K(e.title), 1)) : G("", !0),
3965
+ e.description || y(n).description ? (g(), M("div", Zs, [
3937
3966
  Y(t.$slots, "description", {}, () => [
3938
3967
  R("p", null, K(e.description), 1)
3939
3968
  ], !0)
3940
3969
  ])) : G("", !0),
3941
- y(n).footer ? (g(), j("div", Zs, [
3970
+ y(n).footer ? (g(), M("div", Qs, [
3942
3971
  Y(t.$slots, "footer", {}, void 0, !0)
3943
3972
  ])) : G("", !0)
3944
3973
  ], 2)),
3945
- R("div", Qs, [
3974
+ R("div", Xs, [
3946
3975
  Y(t.$slots, "default", {}, void 0, !0)
3947
3976
  ])
3948
3977
  ])
3949
3978
  ], 2));
3950
3979
  }
3951
- }), un = /* @__PURE__ */ Ce(Xs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: el, useErrors: tl, useExternalLinkCreator: _l, useFetchUrlBuilder: wl, useFetcher: nl, useDebouncedFilter: ar, useStringHelpers: Il, useHelpers: xl, useGatewayFeatureSupported: Al, useTruncationDetector: Sl } = ue;
3952
- const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group-cta-text" }, al = {
3980
+ }), cn = /* @__PURE__ */ Ce(el, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: tl, useErrors: nl, useExternalLinkCreator: wl, useFetchUrlBuilder: Il, useFetcher: rl, useDebouncedFilter: ir, useStringHelpers: Al, useHelpers: Sl, useGatewayFeatureSupported: xl, useTruncationDetector: Tl } = ue;
3981
+ const ol = { class: "add-to-group-form-container" }, al = { class: "add-to-group-cta-text" }, il = {
3953
3982
  key: 0,
3954
3983
  class: "kong-ui-entity-add-to-groups-error"
3955
- }, il = { key: 0 }, sl = /* @__PURE__ */ ae({
3984
+ }, sl = { key: 0 }, ll = /* @__PURE__ */ ae({
3956
3985
  __name: "AddToGroupModal",
3957
3986
  props: {
3958
3987
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3969,9 +3998,9 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
3969
3998
  },
3970
3999
  emits: ["cancel", "add:success", "add:partial-success", "error"],
3971
4000
  setup(e, { emit: n }) {
3972
- var B;
4001
+ var P;
3973
4002
  const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Kt({
3974
- headers: (B = t.config) == null ? void 0 : B.requestHeaders
4003
+ headers: (P = t.config) == null ? void 0 : P.requestHeaders
3975
4004
  }), a = O([]), {
3976
4005
  debouncedQueryChange: i,
3977
4006
  loading: s,
@@ -3979,7 +4008,7 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
3979
4008
  error: c,
3980
4009
  loadItems: d,
3981
4010
  results: u
3982
- } = ar(
4011
+ } = ir(
3983
4012
  t.config,
3984
4013
  $e.list[t.config.app].all,
3985
4014
  "",
@@ -3987,62 +4016,62 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
3987
4016
  fetchedItemsKey: "data",
3988
4017
  searchKeys: ["name", "id"]
3989
4018
  }
3990
- ), m = M(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), I = M(() => l.value === void 0), v = M(() => u.value.map((C) => ({
3991
- label: C.name,
3992
- value: C.id,
3993
- selected: a.value.includes(C.id),
3994
- data: C
4019
+ ), m = T(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), S = T(() => l.value === void 0), h = T(() => u.value.map((w) => ({
4020
+ label: w.name,
4021
+ value: w.id,
4022
+ selected: a.value.includes(w.id),
4023
+ data: w
3995
4024
  // we need this to determine whether or not to show the description text
3996
- }))), p = (C) => {
3997
- var T;
3998
- const S = I.value ? u.value.find((P) => P.id === C) : (T = l.value) == null ? void 0 : T.find((P) => P.id === C);
3999
- return S ? S.name : C;
4025
+ }))), p = (w) => {
4026
+ var $;
4027
+ const x = S.value ? u.value.find((N) => N.id === w) : ($ = l.value) == null ? void 0 : $.find((N) => N.id === w);
4028
+ return x ? x.name : w;
4000
4029
  }, A = () => {
4001
- x.value = "", b.value = [], w.value = [], n("cancel");
4002
- }, b = O([]), k = O(!1), x = O(""), ne = async () => {
4030
+ I.value = "", b.value = [], _.value = [], n("cancel");
4031
+ }, b = O([]), k = O(!1), I = O(""), re = async () => {
4003
4032
  if (!a.value.length) {
4004
- x.value = "", w.value = [], n("cancel");
4033
+ I.value = "", _.value = [], n("cancel");
4005
4034
  return;
4006
4035
  }
4007
- k.value = !0, x.value = "", b.value = [], w.value = [];
4036
+ k.value = !0, I.value = "", b.value = [], _.value = [];
4008
4037
  try {
4009
- const C = a.value.map((P) => z(P)), S = await Promise.allSettled(C);
4010
- let T = !0;
4011
- S.forEach((P) => {
4012
- P.status !== "fulfilled" && (T = !1);
4013
- }), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], N(S));
4038
+ const w = a.value.map((N) => z(N)), x = await Promise.allSettled(w);
4039
+ let $ = !0;
4040
+ x.forEach((N) => {
4041
+ N.status !== "fulfilled" && ($ = !1);
4042
+ }), $ ? (b.value = [], _.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], B(x));
4014
4043
  } catch {
4015
- x.value = r("consumer_groups.errors.add"), n("error", x.value);
4044
+ I.value = r("consumer_groups.errors.add"), n("error", I.value);
4016
4045
  } finally {
4017
4046
  k.value = !1;
4018
4047
  }
4019
- }, pe = M(() => {
4020
- var S, T, P, J;
4021
- let C = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
4022
- return t.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((S = t.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), C;
4023
- }), z = async (C) => {
4024
- const S = {
4025
- group: C
4048
+ }, se = T(() => {
4049
+ var x, $, N, J;
4050
+ let w = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
4051
+ return t.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, (($ = t.config) == null ? void 0 : $.consumerId) || "") : t.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (N = t.config) != null && N.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), w;
4052
+ }), z = async (w) => {
4053
+ const x = {
4054
+ group: w
4026
4055
  };
4027
4056
  try {
4028
- const T = await o.post(pe.value, S);
4029
- return b.value.push(C), T;
4030
- } catch (T) {
4031
- let P = `${p(C)} - ${T.message}`;
4032
- return T.response.status === 409 && (P = `${p(C)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
4057
+ const $ = await o.post(se.value, x);
4058
+ return b.value.push(w), $;
4059
+ } catch ($) {
4060
+ let N = `${p(w)} - ${$.message}`;
4061
+ return $.response.status === 409 && (N = `${p(w)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(N));
4033
4062
  }
4034
- }, w = O([]), N = (C) => {
4035
- w.value = C.map((S) => {
4036
- var T;
4037
- return (T = S.reason) == null ? void 0 : T.message;
4063
+ }, _ = O([]), B = (w) => {
4064
+ _.value = w.map((x) => {
4065
+ var $;
4066
+ return ($ = x.reason) == null ? void 0 : $.message;
4038
4067
  }).filter(Boolean);
4039
4068
  };
4040
- return Se(v, () => {
4069
+ return xe(h, () => {
4041
4070
  f.value++;
4042
- }, { immediate: !0, deep: !0 }), Qe(async () => {
4071
+ }, { immediate: !0, deep: !0 }), Ze(async () => {
4043
4072
  await d();
4044
- }), (C, S) => {
4045
- const T = q("KMultiselect"), P = q("KAlert"), J = q("KPrompt");
4073
+ }), (w, x) => {
4074
+ const $ = q("KMultiselect"), N = q("KAlert"), J = q("KPrompt");
4046
4075
  return g(), V(J, {
4047
4076
  "action-pending": k.value,
4048
4077
  class: "kong-ui-entities-add-to-groups-modal",
@@ -4050,18 +4079,18 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4050
4079
  "is-visible": e.visible,
4051
4080
  title: y(r)("consumer_groups.consumers.add.title"),
4052
4081
  onCanceled: A,
4053
- onProceed: ne
4082
+ onProceed: re
4054
4083
  }, {
4055
- "body-content": h(() => [
4056
- R("div", rl, [
4057
- R("p", ol, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4058
- F(T, {
4084
+ "body-content": v(() => [
4085
+ R("div", ol, [
4086
+ R("p", al, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4087
+ F($, {
4059
4088
  modelValue: a.value,
4060
- "onUpdate:modelValue": S[0] || (S[0] = (Q) => a.value = Q),
4089
+ "onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
4061
4090
  autosuggest: "",
4062
4091
  "data-testid": "add-to-groups-multiselect",
4063
- "dropdown-footer-text": I.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
4064
- items: v.value,
4092
+ "dropdown-footer-text": S.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
4093
+ items: h.value,
4065
4094
  label: y(r)("consumer_groups.consumers.add.consumer_groups_label"),
4066
4095
  loading: y(s),
4067
4096
  placeholder: y(r)("consumer_groups.consumers.add.consumer_group_placeholder"),
@@ -4070,14 +4099,14 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4070
4099
  width: "100%",
4071
4100
  onQueryChange: y(i)
4072
4101
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4073
- x.value || m.value || w.value.length ? (g(), j("div", al, [
4074
- F(P, { appearance: "danger" }, {
4075
- alertMessage: h(() => [
4102
+ I.value || m.value || _.value.length ? (g(), M("div", il, [
4103
+ F(N, { appearance: "danger" }, {
4104
+ alertMessage: v(() => [
4076
4105
  R("p", null, K(y(r)("consumer_groups.errors.add")), 1),
4077
- w.value.length ? (g(), j("ul", il, [
4078
- (g(!0), j(ve, null, ye(w.value, (Q, X) => (g(), j("li", { key: X }, K(Q), 1))), 128))
4106
+ _.value.length ? (g(), M("ul", sl, [
4107
+ (g(!0), M(ve, null, ye(_.value, (Q, X) => (g(), M("li", { key: X }, K(Q), 1))), 128))
4079
4108
  ])) : G("", !0),
4080
- R("div", null, K(x.value || m.value), 1)
4109
+ R("div", null, K(I.value || m.value), 1)
4081
4110
  ]),
4082
4111
  _: 1
4083
4112
  })
@@ -4094,7 +4123,7 @@ const Ft = (e, n) => {
4094
4123
  for (const [r, o] of n)
4095
4124
  t[r] = o;
4096
4125
  return t;
4097
- }, ll = /* @__PURE__ */ Ft(sl, [["__scopeId", "data-v-4d30f3c5"]]), ul = { class: "kong-ui-entities-consumer-groups-list" }, cl = { key: 1 }, dl = /* @__PURE__ */ ae({
4126
+ }, ul = /* @__PURE__ */ Ft(ll, [["__scopeId", "data-v-4d30f3c5"]]), cl = { class: "kong-ui-entities-consumer-groups-list" }, dl = { key: 1 }, pl = /* @__PURE__ */ ae({
4098
4127
  __name: "ConsumerGroupList",
4099
4128
  props: {
4100
4129
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4135,40 +4164,42 @@ const Ft = (e, n) => {
4135
4164
  },
4136
4165
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4137
4166
  setup(e, { emit: n }) {
4138
- var Nt;
4167
+ var Bt;
4139
4168
  const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Kt({
4140
- headers: (Nt = t.config) == null ? void 0 : Nt.requestHeaders
4141
- }), s = O(1), l = M(() => !!t.config.consumerId), c = M(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4169
+ headers: (Bt = t.config) == null ? void 0 : Bt.requestHeaders
4170
+ }), s = O(1), l = T(() => !!t.config.consumerId), c = T(
4171
+ () => l.value ? "kong-ui-entities-consumer-groups-list-in-consumer-page" : "kong-ui-entities-consumer-groups-list"
4172
+ ), d = T(() => t.config.app !== "kongManager" || !!t.config.disableSorting), u = {
4142
4173
  name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
4143
4174
  };
4144
- t.config.app === "kongManager" && (d.consumers_count = { label: o("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), d.tags = { label: o("consumer_groups.list.table_headers.tags"), sortable: !1 };
4145
- const u = d, m = (E) => ({
4175
+ t.config.app === "kongManager" && (u.consumers_count = { label: o("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), u.tags = { label: o("consumer_groups.list.table_headers.tags"), sortable: !1 };
4176
+ const m = u, f = (E) => ({
4146
4177
  "data-testid": E.username ?? E.custom_id ?? E.id
4147
- }), f = M(() => {
4148
- var H, le, ke, Ee;
4178
+ }), S = T(() => {
4179
+ var H, le, ke, Oe;
4149
4180
  let E = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
4150
- return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
4151
- }), I = O(""), v = M(() => {
4181
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), E;
4182
+ }), h = O(""), p = T(() => {
4152
4183
  const E = t.config.app === "konnect" || t.config.isExactMatch;
4153
4184
  return E ? {
4154
4185
  isExactMatch: E,
4155
4186
  fields: {
4156
- username: d.name,
4187
+ username: u.name,
4157
4188
  id: { label: o("consumer_groups.list.table_headers.id") }
4158
4189
  },
4159
4190
  placeholder: o("consumer_groups.search.placeholder")
4160
4191
  } : {
4161
4192
  isExactMatch: E,
4162
4193
  fields: {
4163
- name: d.name
4194
+ name: u.name
4164
4195
  },
4165
4196
  schema: t.config.filterSchema
4166
4197
  };
4167
- }), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: A, fetcherState: b } = nl(t.config, f.value, p.value), k = () => {
4168
- I.value = "";
4169
- }, x = () => {
4198
+ }), A = T(() => l.value && !t.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: b, fetcherState: k } = rl(t.config, S.value, A.value), I = () => {
4199
+ h.value = "";
4200
+ }, re = () => {
4170
4201
  s.value++;
4171
- }, ne = O(""), pe = (E, H) => {
4202
+ }, se = O(""), z = (E, H) => {
4172
4203
  const le = E.id;
4173
4204
  if (!H(le)) {
4174
4205
  n("copy:error", {
@@ -4183,7 +4214,7 @@ const Ft = (e, n) => {
4183
4214
  field: "id",
4184
4215
  message: o("consumer_groups.copy.success", { val: le })
4185
4216
  });
4186
- }, z = (E, H) => {
4217
+ }, _ = (E, H) => {
4187
4218
  const le = JSON.stringify(E);
4188
4219
  if (!H(le)) {
4189
4220
  n("copy:error", {
@@ -4196,66 +4227,66 @@ const Ft = (e, n) => {
4196
4227
  entity: E,
4197
4228
  message: o("consumer_groups.copy.success_brief")
4198
4229
  });
4199
- }, w = async (E) => {
4230
+ }, B = async (E) => {
4200
4231
  var le;
4201
4232
  await ((le = t.canRetrieve) == null ? void 0 : le.call(t, E)) && a.push(t.config.getViewRoute(E.id));
4202
- }, N = (E) => ({
4233
+ }, P = (E) => ({
4203
4234
  label: o("consumer_groups.actions.view"),
4204
4235
  to: t.config.getViewRoute(E)
4205
- }), B = (E) => ({
4236
+ }), w = (E) => ({
4206
4237
  label: o("consumer_groups.actions.edit"),
4207
4238
  to: t.config.getEditRoute(E)
4208
- }), C = O(void 0), S = O(!1), T = O(!1), P = O(""), J = el(t.config, f.value), Q = (E) => {
4209
- C.value = E, S.value = !0;
4210
- }, X = () => {
4211
- S.value = !1;
4212
- }, ee = async () => {
4239
+ }), x = O(void 0), $ = O(!1), N = O(!1), J = O(""), Q = tl(t.config, S.value), X = (E) => {
4240
+ x.value = E, $.value = !0;
4241
+ }, ee = () => {
4242
+ $.value = !1;
4243
+ }, ce = async () => {
4213
4244
  var E, H, le;
4214
- if ((E = C.value) != null && E.id) {
4215
- T.value = !0;
4245
+ if ((E = x.value) != null && E.id) {
4246
+ N.value = !0;
4216
4247
  try {
4217
- await i.delete(J(C.value.id)), T.value = !1, S.value = !1, s.value++, n("delete:success", C.value);
4248
+ await i.delete(Q(x.value.id)), N.value = !1, $.value = !1, s.value++, n("delete:success", x.value);
4218
4249
  } catch (ke) {
4219
- P.value = ((le = (H = ke.response) == null ? void 0 : H.data) == null ? void 0 : le.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
4250
+ J.value = ((le = (H = ke.response) == null ? void 0 : H.data) == null ? void 0 : le.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
4220
4251
  } finally {
4221
- T.value = !1;
4252
+ N.value = !1;
4222
4253
  }
4223
4254
  }
4224
- }, ie = O(!1), Ve = () => {
4225
- ie.value = !0;
4226
- }, _ = () => {
4227
- ie.value = !1;
4228
- }, L = (E, H) => {
4229
- H || _(), s.value++, n("add:success", E);
4230
- }, re = () => {
4231
- l.value && Ve();
4232
- }, U = O(void 0), D = O(!1), ge = O(""), _e = (E) => {
4233
- U.value = E, D.value = !0;
4234
- }, ce = () => {
4235
- D.value = !1, U.value = void 0;
4236
- }, Ne = M(() => {
4237
- var H, le, ke, Ee;
4255
+ }, Be = O(!1), C = () => {
4256
+ Be.value = !0;
4257
+ }, L = () => {
4258
+ Be.value = !1;
4259
+ }, ne = (E, H) => {
4260
+ H || L(), s.value++, n("add:success", E);
4261
+ }, D = () => {
4262
+ l.value && C();
4263
+ }, U = O(void 0), pe = O(!1), _e = O(""), fe = (E) => {
4264
+ U.value = E, pe.value = !0;
4265
+ }, Ee = () => {
4266
+ pe.value = !1, U.value = void 0;
4267
+ }, Qe = T(() => {
4268
+ var H, le, ke, Oe;
4238
4269
  let E = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
4239
- return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
4240
- }), De = O(!1), ir = async () => {
4270
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), E;
4271
+ }), Nt = O(!1), sr = async () => {
4241
4272
  if (U.value) {
4242
- De.value = !0;
4273
+ Nt.value = !0;
4243
4274
  try {
4244
- const E = Ne.value.replace(/{consumerGroupId}/gi, U.value.id);
4245
- await i.delete(E), n("remove:success", U.value), ce(), s.value++;
4275
+ const E = Qe.value.replace(/{consumerGroupId}/gi, U.value.id);
4276
+ await i.delete(E), n("remove:success", U.value), Ee(), s.value++;
4246
4277
  } catch (E) {
4247
- ge.value = E.message || o("consumer_groups.errors.delete"), n("error", E);
4278
+ _e.value = E.message || o("consumer_groups.errors.delete"), n("error", E);
4248
4279
  } finally {
4249
- De.value = !1;
4280
+ Nt.value = !1;
4250
4281
  }
4251
4282
  }
4252
4283
  };
4253
- Se(b, (E) => {
4254
- if (E.status === Oe.Error) {
4255
- ne.value = o("consumer_groups.errors.general"), n("error", E.error);
4284
+ xe(k, (E) => {
4285
+ if (E.status === Ke.Error) {
4286
+ se.value = o("consumer_groups.errors.general"), n("error", E.error);
4256
4287
  return;
4257
4288
  }
4258
- ne.value = "";
4289
+ se.value = "";
4259
4290
  });
4260
4291
  const pt = O({
4261
4292
  ctaPath: l.value ? void 0 : t.config.createRoute,
@@ -4263,52 +4294,52 @@ const Ft = (e, n) => {
4263
4294
  message: o("consumer_groups.list.empty_state.description"),
4264
4295
  title: o("consumer_groups.title")
4265
4296
  });
4266
- return Qe(async () => {
4297
+ return Ze(async () => {
4267
4298
  await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
4268
4299
  }), (E, H) => {
4269
- const le = q("KButton"), ke = q("KBadge"), Ee = q("KTruncate"), Ge = q("KDropdownItem"), Bt = q("KClipboardProvider"), sr = q("KPrompt");
4270
- return g(), j("div", ul, [
4271
- F(y($s), {
4300
+ const le = q("KButton"), ke = q("KBadge"), Oe = q("KTruncate"), De = q("KDropdownItem"), Pt = q("KClipboardProvider"), lr = q("KPrompt");
4301
+ return g(), M("div", cl, [
4302
+ F(y(js), {
4272
4303
  "cache-identifier": e.cacheIdentifier,
4273
- "disable-pagination": l.value,
4304
+ "disable-pagination": l.value && !e.config.paginatedEndpoint,
4274
4305
  "disable-pagination-page-jump": "",
4275
- "disable-sorting": c.value,
4306
+ "disable-sorting": d.value,
4276
4307
  "empty-state-options": pt.value,
4277
4308
  "enable-entity-actions": "",
4278
- "error-message": ne.value,
4279
- fetcher: y(A),
4309
+ "error-message": se.value,
4310
+ fetcher: y(b),
4280
4311
  "fetcher-cache-key": s.value,
4281
4312
  "pagination-type": "offset",
4282
- "preferences-storage-key": "kong-ui-entities-consumer-groups-list",
4283
- query: I.value,
4284
- "row-attributes": m,
4285
- "table-headers": y(u),
4286
- onClearSearchInput: k,
4287
- "onClick:row": H[3] || (H[3] = (W) => w(W)),
4288
- onEmptyStateCtaClicked: re,
4289
- onSort: x
4313
+ "preferences-storage-key": c.value,
4314
+ query: h.value,
4315
+ "row-attributes": f,
4316
+ "table-headers": y(m),
4317
+ onClearSearchInput: I,
4318
+ "onClick:row": H[3] || (H[3] = (W) => B(W)),
4319
+ onEmptyStateCtaClicked: D,
4320
+ onSort: re
4290
4321
  }, {
4291
- "toolbar-filter": h(() => [
4292
- l.value ? G("", !0) : (g(), V(y(Hs), {
4322
+ "toolbar-filter": v(() => [
4323
+ l.value ? G("", !0) : (g(), V(y(Js), {
4293
4324
  key: 0,
4294
- modelValue: I.value,
4295
- "onUpdate:modelValue": H[0] || (H[0] = (W) => I.value = W),
4296
- config: v.value
4325
+ modelValue: h.value,
4326
+ "onUpdate:modelValue": H[0] || (H[0] = (W) => h.value = W),
4327
+ config: p.value
4297
4328
  }, null, 8, ["modelValue", "config"]))
4298
4329
  ]),
4299
- "toolbar-button": h(() => [
4330
+ "toolbar-button": v(() => [
4300
4331
  F(y(Xe), {
4301
4332
  "auth-function": () => e.canCreate()
4302
4333
  }, {
4303
- default: h(() => [
4334
+ default: v(() => [
4304
4335
  F(le, {
4305
4336
  appearance: "primary",
4306
4337
  "data-testid": "toolbar-add-consumer-group",
4307
4338
  icon: "plus",
4308
4339
  to: e.config.consumerId ? void 0 : e.config.createRoute,
4309
- onClick: H[1] || (H[1] = () => e.config.consumerId ? Ve() : void 0)
4340
+ onClick: H[1] || (H[1] = () => e.config.consumerId ? C() : void 0)
4310
4341
  }, {
4311
- default: h(() => [
4342
+ default: v(() => [
4312
4343
  Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4313
4344
  ]),
4314
4345
  _: 1
@@ -4317,37 +4348,37 @@ const Ft = (e, n) => {
4317
4348
  _: 1
4318
4349
  }, 8, ["auth-function"])
4319
4350
  ]),
4320
- name: h(({ rowValue: W }) => [
4351
+ name: v(({ rowValue: W }) => [
4321
4352
  R("b", null, K(W ?? "-"), 1)
4322
4353
  ]),
4323
- consumers_count: h(({ rowValue: W }) => [
4354
+ consumers_count: v(({ rowValue: W }) => [
4324
4355
  Z(K(W ?? "-"), 1)
4325
4356
  ]),
4326
- tags: h(({ rowValue: W }) => [
4327
- (W == null ? void 0 : W.length) > 0 ? (g(), V(Ee, { key: 0 }, {
4328
- default: h(() => [
4329
- (g(!0), j(ve, null, ye(W, (Be) => (g(), V(ke, {
4330
- key: Be,
4357
+ tags: v(({ rowValue: W }) => [
4358
+ (W == null ? void 0 : W.length) > 0 ? (g(), V(Oe, { key: 0 }, {
4359
+ default: v(() => [
4360
+ (g(!0), M(ve, null, ye(W, (Pe) => (g(), V(ke, {
4361
+ key: Pe,
4331
4362
  onClick: H[2] || (H[2] = rt(() => {
4332
4363
  }, ["stop"]))
4333
4364
  }, {
4334
- default: h(() => [
4335
- Z(K(Be), 1)
4365
+ default: v(() => [
4366
+ Z(K(Pe), 1)
4336
4367
  ]),
4337
4368
  _: 2
4338
4369
  }, 1024))), 128))
4339
4370
  ]),
4340
4371
  _: 2
4341
- }, 1024)) : (g(), j("span", cl, "-"))
4372
+ }, 1024)) : (g(), M("span", dl, "-"))
4342
4373
  ]),
4343
- actions: h(({ row: W }) => [
4344
- F(Bt, null, {
4345
- default: h(({ copyToClipboard: Be }) => [
4346
- F(Ge, {
4374
+ actions: v(({ row: W }) => [
4375
+ F(Pt, null, {
4376
+ default: v(({ copyToClipboard: Pe }) => [
4377
+ F(De, {
4347
4378
  "data-testid": "action-entity-copy-id",
4348
- onClick: (lr) => pe(W, Be)
4379
+ onClick: (ur) => z(W, Pe)
4349
4380
  }, {
4350
- default: h(() => [
4381
+ default: v(() => [
4351
4382
  Z(K(y(o)("consumer_groups.actions.copy_id")), 1)
4352
4383
  ]),
4353
4384
  _: 2
@@ -4355,13 +4386,13 @@ const Ft = (e, n) => {
4355
4386
  ]),
4356
4387
  _: 2
4357
4388
  }, 1024),
4358
- F(Bt, null, {
4359
- default: h(({ copyToClipboard: Be }) => [
4360
- F(Ge, {
4389
+ F(Pt, null, {
4390
+ default: v(({ copyToClipboard: Pe }) => [
4391
+ F(De, {
4361
4392
  "data-testid": "action-entity-copy-json",
4362
- onClick: (lr) => z(W, Be)
4393
+ onClick: (ur) => _(W, Pe)
4363
4394
  }, {
4364
- default: h(() => [
4395
+ default: v(() => [
4365
4396
  Z(K(y(o)("consumer_groups.actions.copy_json")), 1)
4366
4397
  ]),
4367
4398
  _: 2
@@ -4372,11 +4403,11 @@ const Ft = (e, n) => {
4372
4403
  F(y(Xe), {
4373
4404
  "auth-function": () => e.canRetrieve(W)
4374
4405
  }, {
4375
- default: h(() => [
4376
- F(Ge, {
4406
+ default: v(() => [
4407
+ F(De, {
4377
4408
  "data-testid": "action-entity-view",
4378
4409
  "has-divider": "",
4379
- item: N(W.id)
4410
+ item: P(W.id)
4380
4411
  }, null, 8, ["item"])
4381
4412
  ]),
4382
4413
  _: 2
@@ -4384,10 +4415,10 @@ const Ft = (e, n) => {
4384
4415
  F(y(Xe), {
4385
4416
  "auth-function": () => e.canEdit(W)
4386
4417
  }, {
4387
- default: h(() => [
4388
- F(Ge, {
4418
+ default: v(() => [
4419
+ F(De, {
4389
4420
  "data-testid": "action-entity-edit",
4390
- item: B(W.id)
4421
+ item: w(W.id)
4391
4422
  }, null, 8, ["item"])
4392
4423
  ]),
4393
4424
  _: 2
@@ -4395,14 +4426,14 @@ const Ft = (e, n) => {
4395
4426
  F(y(Xe), {
4396
4427
  "auth-function": () => e.canDelete(W)
4397
4428
  }, {
4398
- default: h(() => [
4399
- F(Ge, {
4429
+ default: v(() => [
4430
+ F(De, {
4400
4431
  "data-testid": "action-entity-delete",
4401
4432
  "has-divider": "",
4402
4433
  "is-dangerous": "",
4403
- onClick: () => e.config.consumerId ? _e(W) : Q(W)
4434
+ onClick: () => e.config.consumerId ? fe(W) : X(W)
4404
4435
  }, {
4405
- default: h(() => [
4436
+ default: v(() => [
4406
4437
  Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
4407
4438
  ]),
4408
4439
  _: 2
@@ -4412,51 +4443,51 @@ const Ft = (e, n) => {
4412
4443
  }, 1032, ["auth-function"])
4413
4444
  ]),
4414
4445
  _: 1
4415
- }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
4416
- F(y(Os), {
4417
- "action-pending": T.value,
4446
+ }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers"]),
4447
+ F(y(Ks), {
4448
+ "action-pending": N.value,
4418
4449
  "data-testid": "delete-consumer-group-modal",
4419
4450
  description: y(o)("consumer_groups.delete.description"),
4420
- "entity-name": C.value && (C.value.name || C.value.id),
4421
- "entity-type": y(dn).ConsumerGroup,
4422
- error: P.value,
4451
+ "entity-name": x.value && (x.value.name || x.value.id),
4452
+ "entity-type": y(pn).ConsumerGroup,
4453
+ error: J.value,
4423
4454
  title: y(o)("consumer_groups.delete.title"),
4424
- visible: S.value,
4425
- onCancel: X,
4426
- onProceed: ee
4455
+ visible: $.value,
4456
+ onCancel: ee,
4457
+ onProceed: ce
4427
4458
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4428
- e.config.consumerId ? (g(), V(ll, {
4459
+ e.config.consumerId ? (g(), V(ul, {
4429
4460
  key: 0,
4430
4461
  config: e.config,
4431
4462
  "data-testid": "add-to-group-modal",
4432
- visible: ie.value,
4433
- "onAdd:partialSuccess": H[4] || (H[4] = (W) => L(W, !0)),
4434
- "onAdd:success": H[5] || (H[5] = (W) => L(W)),
4435
- onCancel: _
4463
+ visible: Be.value,
4464
+ "onAdd:partialSuccess": H[4] || (H[4] = (W) => ne(W, !0)),
4465
+ "onAdd:success": H[5] || (H[5] = (W) => ne(W)),
4466
+ onCancel: L
4436
4467
  }, null, 8, ["config", "visible"])) : G("", !0),
4437
- e.config.consumerId && U.value ? (g(), V(sr, {
4468
+ e.config.consumerId && U.value ? (g(), V(lr, {
4438
4469
  key: 1,
4439
4470
  "data-testid": "exit-group-modal",
4440
- "is-visible": D.value,
4471
+ "is-visible": pe.value,
4441
4472
  title: y(o)("consumer_groups.consumers.exit.title"),
4442
4473
  type: "danger",
4443
- onCanceled: ce,
4444
- onProceed: ir
4474
+ onCanceled: Ee,
4475
+ onProceed: sr
4445
4476
  }, {
4446
- "body-content": h(() => [
4477
+ "body-content": v(() => [
4447
4478
  F(y(r), {
4448
4479
  class: "exit-modal-message",
4449
4480
  keypath: e.config.consumerUsername ? "consumer_groups.consumers.exit.confirmation" : "consumer_groups.consumers.exit.confirmationNoUsername",
4450
4481
  tag: "p"
4451
4482
  }, Te({
4452
- consumerGroup: h(() => [
4483
+ consumerGroup: v(() => [
4453
4484
  R("strong", null, K(U.value.name || U.value.id), 1)
4454
4485
  ]),
4455
4486
  _: 2
4456
4487
  }, [
4457
4488
  e.config.consumerUsername ? {
4458
4489
  name: "consumer",
4459
- fn: h(() => [
4490
+ fn: v(() => [
4460
4491
  R("strong", null, K(e.config.consumerUsername), 1)
4461
4492
  ]),
4462
4493
  key: "0"
@@ -4470,10 +4501,10 @@ const Ft = (e, n) => {
4470
4501
  };
4471
4502
  }
4472
4503
  });
4473
- const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { class: "kong-ui-entities-consumer-group-form" }, fl = { class: "select-item-label" }, ml = {
4504
+ const $l = /* @__PURE__ */ Ft(pl, [["__scopeId", "data-v-a9407155"]]), fl = { class: "kong-ui-entities-consumer-group-form" }, ml = { class: "select-item-label" }, gl = {
4474
4505
  key: 0,
4475
4506
  class: "select-item-desc"
4476
- }, gl = /* @__PURE__ */ ae({
4507
+ }, yl = /* @__PURE__ */ ae({
4477
4508
  __name: "ConsumerGroupForm",
4478
4509
  props: {
4479
4510
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4491,8 +4522,8 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4491
4522
  },
4492
4523
  emits: ["update", "error", "loading"],
4493
4524
  setup(e, { emit: n }) {
4494
- var ee, ie, Ve;
4495
- const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Pt({
4525
+ var ee, ce, Be;
4526
+ const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Lt({
4496
4527
  fields: {
4497
4528
  name: "",
4498
4529
  tags: "",
@@ -4500,7 +4531,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4500
4531
  },
4501
4532
  errorMessage: "",
4502
4533
  readonly: !1
4503
- }), i = Pt({
4534
+ }), i = Lt({
4504
4535
  name: "",
4505
4536
  tags: "",
4506
4537
  consumers: []
@@ -4510,102 +4541,102 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4510
4541
  error: c,
4511
4542
  loadItems: d,
4512
4543
  results: u
4513
- } = ar(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
4544
+ } = ir(t.config, (ce = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ce.consumersList, "", {
4514
4545
  fetchedItemsKey: "data",
4515
4546
  searchKeys: ["username", "custom_id", "id"]
4516
4547
  }), { axiosInstance: m } = Kt({
4517
- headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
4518
- }), { getMessageFromError: f } = tl(), I = M(() => u.value.map((_) => ({
4519
- label: _.username || _.custom_id,
4520
- value: _.id,
4521
- selected: a.fields.consumers.includes(_.id),
4522
- data: _
4548
+ headers: (Be = t.config) == null ? void 0 : Be.requestHeaders
4549
+ }), { getMessageFromError: f } = nl(), S = T(() => u.value.map((C) => ({
4550
+ label: C.username || C.custom_id,
4551
+ value: C.id,
4552
+ selected: a.fields.consumers.includes(C.id),
4553
+ data: C
4523
4554
  // we need this to determine whether or not to show the description text
4524
- }))), v = M(() => {
4525
- var _, L;
4526
- return (L = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : L.edit;
4527
- }), p = M(() => t.consumerGroupId ? nt.Edit : nt.Create), A = M(() => !!a.fields.name && !w.value), b = M(() => JSON.stringify(a.fields) !== JSON.stringify(i)), k = (_, L = "", re = "") => {
4528
- var D, ge, _e, ce, Ne, De;
4529
- let U = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
4530
- return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (U = U.replace(/{consumerId}/gi, re)), U;
4531
- }, x = () => {
4532
- var _;
4533
- o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
4534
- }, ne = (_) => {
4535
- n("error", _);
4536
- }, pe = (_) => {
4537
- n("loading", _);
4538
- }, z = async (_) => {
4539
- var re, U, D, ge, _e;
4540
- a.fields.name = ((re = _ == null ? void 0 : _.item) == null ? void 0 : re.name) || ((U = _ == null ? void 0 : _.consumer_group) == null ? void 0 : U.name) || (_ == null ? void 0 : _.name) || "";
4541
- const L = ((D = _ == null ? void 0 : _.item) == null ? void 0 : D.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
4542
- if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in _)
4543
- a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
4555
+ }))), h = T(() => {
4556
+ var C, L;
4557
+ return (L = $e.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : L.edit;
4558
+ }), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create), A = T(() => !!a.fields.name && !_.value), b = T(() => JSON.stringify(a.fields) !== JSON.stringify(i)), k = (C, L = "", ne = "") => {
4559
+ var U, pe, _e, fe, Ee, Qe;
4560
+ let D = `${(U = t.config) == null ? void 0 : U.apiBaseUrl}${$e.form[(pe = t.config) == null ? void 0 : pe.app][C]}`;
4561
+ return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? D = D.replace(/{controlPlaneId}/gi, ((fe = t.config) == null ? void 0 : fe.controlPlaneId) || "") : ((Ee = t.config) == null ? void 0 : Ee.app) === "kongManager" && (D = D.replace(/\/{workspace}/gi, (Qe = t.config) != null && Qe.workspace ? `/${t.config.workspace}` : "")), D = D.replace(/{id}/gi, L || t.consumerGroupId), (C === "addConsumer" || C === "removeConsumer") && (D = D.replace(/{consumerId}/gi, ne)), D;
4562
+ }, I = () => {
4563
+ var C;
4564
+ o.push(((C = t.config) == null ? void 0 : C.cancelRoute) || { name: "consumer-group-list" });
4565
+ }, re = (C) => {
4566
+ n("error", C);
4567
+ }, se = (C) => {
4568
+ n("loading", C);
4569
+ }, z = async (C) => {
4570
+ var ne, D, U, pe, _e;
4571
+ a.fields.name = ((ne = C == null ? void 0 : C.item) == null ? void 0 : ne.name) || ((D = C == null ? void 0 : C.consumer_group) == null ? void 0 : D.name) || (C == null ? void 0 : C.name) || "";
4572
+ const L = ((U = C == null ? void 0 : C.item) == null ? void 0 : U.tags) || (C == null ? void 0 : C.consumer_group.tags) || (C == null ? void 0 : C.tags) || [];
4573
+ if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in C)
4574
+ a.fields.consumers = ((pe = C == null ? void 0 : C.consumers) == null ? void 0 : pe.map((fe) => fe.id)) || [];
4544
4575
  else
4545
4576
  try {
4546
- const { data: ce } = await m.get(k("getConsumers"));
4547
- a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
4548
- } catch (ce) {
4549
- S(ce);
4577
+ const { data: fe } = await m.get(k("getConsumers"));
4578
+ a.fields.consumers = "consumers" in fe ? (_e = fe == null ? void 0 : fe.consumers) == null ? void 0 : _e.map((Ee) => Ee.id) : [];
4579
+ } catch (fe) {
4580
+ x(fe);
4550
4581
  }
4551
4582
  Object.assign(i, a.fields);
4552
- }, w = M(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
4553
- var _, L;
4583
+ }, _ = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), B = () => {
4584
+ var C, L;
4554
4585
  return {
4555
4586
  name: a.fields.name,
4556
- tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : L.filter((re) => re !== "")
4587
+ tags: (L = (C = a.fields.tags.split(",")) == null ? void 0 : C.map((ne) => String(ne || "").trim())) == null ? void 0 : L.filter((ne) => ne !== "")
4557
4588
  };
4558
- }, B = async (_, L = "") => await m.post(k("addConsumer", L, _), { consumer: _ }), C = async (_, L = "") => await m.delete(k("removeConsumer", L, _)), S = (_) => {
4559
- a.errorMessage = f(_), n("error", _);
4560
- }, T = (_ = t.consumerGroupId) => {
4561
- Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
4562
- }, P = (_, L, re = t.consumerGroupId) => {
4563
- const U = _ == null ? void 0 : _.find((D) => D.status !== "fulfilled");
4564
- U ? S({
4565
- code: U.status,
4589
+ }, P = async (C, L = "") => await m.post(k("addConsumer", L, C), { consumer: C }), w = async (C, L = "") => await m.delete(k("removeConsumer", L, C)), x = (C) => {
4590
+ a.errorMessage = f(C), n("error", C);
4591
+ }, $ = (C = t.consumerGroupId) => {
4592
+ Object.assign(i, a.fields), n("update", { ...a.fields, id: C });
4593
+ }, N = (C, L, ne = t.consumerGroupId) => {
4594
+ const D = C == null ? void 0 : C.find((U) => U.status !== "fulfilled");
4595
+ D ? x({
4596
+ code: D.status,
4566
4597
  message: L
4567
- }) : T(re);
4598
+ }) : $(ne);
4568
4599
  }, J = async () => {
4569
- let _ = "";
4600
+ let C = "";
4570
4601
  try {
4571
- const { data: L } = await m.post(k("create"), N());
4572
- _ = "item" in L ? L.item.id : L.id;
4602
+ const { data: L } = await m.post(k("create"), B());
4603
+ C = "item" in L ? L.item.id : L.id;
4573
4604
  } catch (L) {
4574
- S(L);
4605
+ x(L);
4575
4606
  }
4576
- if (a.fields.consumers.length > 0 && _)
4607
+ if (a.fields.consumers.length > 0 && C)
4577
4608
  try {
4578
- const L = a.fields.consumers.map((U) => B(U, _)), re = await Promise.allSettled(L);
4579
- P(re, r("consumer_groups.errors.add_consumer"), _);
4609
+ const L = a.fields.consumers.map((D) => P(D, C)), ne = await Promise.allSettled(L);
4610
+ N(ne, r("consumer_groups.errors.add_consumer"), C);
4580
4611
  } catch (L) {
4581
- S(L);
4612
+ x(L);
4582
4613
  }
4583
4614
  else
4584
- a.fields.consumers.length === 0 && _ && T(_);
4615
+ a.fields.consumers.length === 0 && C && $(C);
4585
4616
  }, Q = async () => {
4586
- var re;
4617
+ var ne;
4587
4618
  try {
4588
- ((re = t.config) == null ? void 0 : re.app) === "konnect" ? await m.put(k("edit"), N()) : await m.patch(k("edit"), N());
4589
- } catch (U) {
4590
- S(U);
4619
+ ((ne = t.config) == null ? void 0 : ne.app) === "konnect" ? await m.put(k("edit"), B()) : await m.patch(k("edit"), B());
4620
+ } catch (D) {
4621
+ x(D);
4591
4622
  }
4592
- const _ = a.fields.consumers.filter((U) => !i.consumers.includes(U)), L = i.consumers.filter((U) => !a.fields.consumers.includes(U));
4593
- if (L.length === 0 && _.length === 0)
4594
- T();
4623
+ const C = a.fields.consumers.filter((D) => !i.consumers.includes(D)), L = i.consumers.filter((D) => !a.fields.consumers.includes(D));
4624
+ if (L.length === 0 && C.length === 0)
4625
+ $();
4595
4626
  else {
4596
4627
  if (L.length > 0)
4597
4628
  try {
4598
- const U = L.map((ge) => C(ge)), D = await Promise.allSettled(U);
4599
- P(D, r("consumer_groups.errors.remove_consumer"));
4600
- } catch (U) {
4601
- S(U);
4629
+ const D = L.map((pe) => w(pe)), U = await Promise.allSettled(D);
4630
+ N(U, r("consumer_groups.errors.remove_consumer"));
4631
+ } catch (D) {
4632
+ x(D);
4602
4633
  }
4603
- if (_.length > 0)
4634
+ if (C.length > 0)
4604
4635
  try {
4605
- const U = _.map((ge) => B(ge)), D = await Promise.allSettled(U);
4606
- P(D, r("consumer_groups.errors.add_consumer"));
4607
- } catch (U) {
4608
- S(U);
4636
+ const D = C.map((pe) => P(pe)), U = await Promise.allSettled(D);
4637
+ N(U, r("consumer_groups.errors.add_consumer"));
4638
+ } catch (D) {
4639
+ x(D);
4609
4640
  }
4610
4641
  }
4611
4642
  }, X = async () => {
@@ -4615,33 +4646,33 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4615
4646
  a.readonly = !1;
4616
4647
  }
4617
4648
  };
4618
- return Qe(async () => {
4649
+ return Ze(async () => {
4619
4650
  await d();
4620
- }), (_, L) => {
4621
- const re = q("KInput"), U = q("KMultiselect");
4622
- return g(), j("div", pl, [
4623
- F(y(Cs), {
4651
+ }), (C, L) => {
4652
+ const ne = q("KInput"), D = q("KMultiselect");
4653
+ return g(), M("div", fl, [
4654
+ F(y(_s), {
4624
4655
  "can-submit": A.value && b.value,
4625
4656
  config: e.config,
4626
4657
  "edit-id": e.consumerGroupId,
4627
- "error-message": a.errorMessage || y(c) || w.value,
4628
- "fetch-url": v.value,
4658
+ "error-message": a.errorMessage || y(c) || _.value,
4659
+ "fetch-url": h.value,
4629
4660
  "is-readonly": a.readonly,
4630
- onCancel: x,
4631
- "onFetch:error": L[3] || (L[3] = (D) => ne(D)),
4661
+ onCancel: I,
4662
+ "onFetch:error": L[3] || (L[3] = (U) => re(U)),
4632
4663
  "onFetch:success": z,
4633
- onLoading: L[4] || (L[4] = (D) => pe(D)),
4664
+ onLoading: L[4] || (L[4] = (U) => se(U)),
4634
4665
  onSubmit: X
4635
4666
  }, {
4636
- default: h(() => [
4637
- F(y(un), {
4667
+ default: v(() => [
4668
+ F(y(cn), {
4638
4669
  description: y(r)("consumer_groups.form.general_info.description"),
4639
4670
  title: y(r)("consumer_groups.form.general_info.title")
4640
4671
  }, {
4641
- default: h(() => [
4642
- F(re, {
4672
+ default: v(() => [
4673
+ F(ne, {
4643
4674
  modelValue: a.fields.name,
4644
- "onUpdate:modelValue": L[0] || (L[0] = (D) => a.fields.name = D),
4675
+ "onUpdate:modelValue": L[0] || (L[0] = (U) => a.fields.name = U),
4645
4676
  modelModifiers: { trim: !0 },
4646
4677
  autocomplete: "off",
4647
4678
  "data-testid": "consumer-group-form-name",
@@ -4650,9 +4681,9 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4650
4681
  required: "",
4651
4682
  type: "text"
4652
4683
  }, null, 8, ["modelValue", "label", "placeholder"]),
4653
- F(re, {
4684
+ F(ne, {
4654
4685
  modelValue: a.fields.tags,
4655
- "onUpdate:modelValue": L[1] || (L[1] = (D) => a.fields.tags = D),
4686
+ "onUpdate:modelValue": L[1] || (L[1] = (U) => a.fields.tags = U),
4656
4687
  modelModifiers: { trim: !0 },
4657
4688
  autocomplete: "off",
4658
4689
  "data-testid": "consumer-group-form-tags",
@@ -4668,30 +4699,30 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4668
4699
  ]),
4669
4700
  _: 1
4670
4701
  }, 8, ["description", "title"]),
4671
- F(y(un), {
4702
+ F(y(cn), {
4672
4703
  description: y(r)("consumer_groups.form.consumers.description"),
4673
4704
  "has-divider": "",
4674
4705
  title: y(r)("consumer_groups.form.consumers.title")
4675
4706
  }, {
4676
- default: h(() => [
4677
- F(U, {
4707
+ default: v(() => [
4708
+ F(D, {
4678
4709
  modelValue: a.fields.consumers,
4679
- "onUpdate:modelValue": L[2] || (L[2] = (D) => a.fields.consumers = D),
4710
+ "onUpdate:modelValue": L[2] || (L[2] = (U) => a.fields.consumers = U),
4680
4711
  appearance: "select",
4681
4712
  autosuggest: "",
4682
4713
  "expand-selected": "",
4683
- items: I.value,
4714
+ items: S.value,
4684
4715
  label: y(r)("consumer_groups.form.fields.consumers.label"),
4685
4716
  loading: y(l),
4686
4717
  placeholder: y(r)("consumer_groups.form.fields.consumers.placeholder"),
4687
4718
  width: "auto",
4688
4719
  onQueryChange: y(s)
4689
4720
  }, {
4690
- "item-template": h(({ item: D }) => {
4691
- var ge, _e, ce;
4721
+ "item-template": v(({ item: U }) => {
4722
+ var pe, _e, fe;
4692
4723
  return [
4693
- R("div", fl, K(D.label), 1),
4694
- (ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (g(), j("div", ml, K((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
4724
+ R("div", ml, K(U.label), 1),
4725
+ (pe = U == null ? void 0 : U.data) != null && pe.username && ((_e = U == null ? void 0 : U.data) != null && _e.custom_id) ? (g(), M("div", gl, K((fe = U == null ? void 0 : U.data) == null ? void 0 : fe.custom_id), 1)) : G("", !0)
4695
4726
  ];
4696
4727
  }),
4697
4728
  _: 1
@@ -4706,7 +4737,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4706
4737
  };
4707
4738
  }
4708
4739
  });
4709
- const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { class: "kong-ui-consumer-group-entity-config-card" }, Ml = /* @__PURE__ */ ae({
4740
+ const jl = /* @__PURE__ */ Ft(yl, [["__scopeId", "data-v-102d40d2"]]), hl = { class: "kong-ui-consumer-group-entity-config-card" }, Ml = /* @__PURE__ */ ae({
4710
4741
  __name: "ConsumerGroupConfigCard",
4711
4742
  props: {
4712
4743
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4733,7 +4764,7 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4733
4764
  },
4734
4765
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4735
4766
  setup(e) {
4736
- const n = e, { i18n: { t } } = ct.useI18n(), r = M(() => $e.form[n.config.app].edit), o = O({
4767
+ const n = e, { i18n: { t } } = ct.useI18n(), r = T(() => $e.form[n.config.app].edit), o = O({
4737
4768
  id: {},
4738
4769
  name: {},
4739
4770
  created_at: {},
@@ -4742,8 +4773,8 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4742
4773
  tooltip: t("consumer_groups.form.fields.tags.tooltip")
4743
4774
  }
4744
4775
  });
4745
- return (a, i) => (g(), j("div", yl, [
4746
- F(y(hs), {
4776
+ return (a, i) => (g(), M("div", hl, [
4777
+ F(y(vs), {
4747
4778
  config: e.config,
4748
4779
  "config-card-doc": e.configCardDoc,
4749
4780
  "config-schema": o.value,
@@ -4760,6 +4791,6 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4760
4791
  });
4761
4792
  export {
4762
4793
  Ml as ConsumerGroupConfigCard,
4763
- $l as ConsumerGroupForm,
4764
- Tl as ConsumerGroupList
4794
+ jl as ConsumerGroupForm,
4795
+ $l as ConsumerGroupList
4765
4796
  };