@kong-ui-public/entities-consumer-groups 1.3.3 → 1.3.4-pr.906.2b675264.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { defineComponent as ae, ref as O, computed as M, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as U, openBlock as m, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as F, createVNode as K, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Ke, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as ze, 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 M, watch as Se, renderSlot as W, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as U, openBlock as g, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as F, createVNode as K, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Ke, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as Je, 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 Lt } from "vue";
2
2
  import { useRouter as wt } from "vue-router";
3
3
  import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
4
4
  import vr from "axios";
5
- import { MethodsArray as br } from "@kong/kongponents";
5
+ import { ToastManager as br, MethodsArray as kr } from "@kong/kongponents";
6
6
  const Cr = {
7
7
  list: {
8
8
  table_headers: {
@@ -95,11 +95,11 @@ 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
- }, kr = {
98
+ }, _r = {
99
99
  consumer_groups: Cr
100
100
  };
101
- function _r() {
102
- const e = It("en-us", kr);
101
+ function wr() {
102
+ const e = It("en-us", _r);
103
103
  return {
104
104
  i18n: e,
105
105
  i18nT: cn(e)
@@ -107,8 +107,8 @@ function _r() {
107
107
  };
108
108
  }
109
109
  const ct = {
110
- useI18n: _r
111
- }, Ie = "/api/runtime_groups/{controlPlaneId}", Ae = "/{workspace}", $e = {
110
+ useI18n: wr
111
+ }, Ie = "/api/runtime_groups/{controlPlaneId}", xe = "/{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: `${Ae}/consumer_groups?counter=true`,
120
- forConsumer: `${Ae}/consumers/{consumerId}/consumer_groups`,
121
- oneForConsumer: `${Ae}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
119
+ all: `${xe}/consumer_groups?counter=true`,
120
+ forConsumer: `${xe}/consumers/{consumerId}/consumer_groups`,
121
+ oneForConsumer: `${xe}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
122
122
  }
123
123
  },
124
124
  form: {
@@ -131,17 +131,17 @@ const ct = {
131
131
  getConsumers: `${Ie}/consumer_groups/{id}/consumers`
132
132
  },
133
133
  kongManager: {
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`
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`
140
140
  }
141
141
  }
142
142
  };
143
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 At(e = {}) {
144
+ function xt(e = {}) {
145
145
  return {
146
146
  axiosInstance: vr.create({
147
147
  withCredentials: !0,
@@ -150,7 +150,7 @@ function At(e = {}) {
150
150
  })
151
151
  };
152
152
  }
153
- function wr() {
153
+ function Ir() {
154
154
  return {
155
155
  debounce: (e, n) => {
156
156
  let t;
@@ -162,7 +162,7 @@ function wr() {
162
162
  }
163
163
  };
164
164
  }
165
- const ft = "khcp-user-table-preferences", Ir = {
165
+ const ft = "khcp-user-table-preferences", xr = {
166
166
  pageSize: 30,
167
167
  sortColumnKey: void 0,
168
168
  sortColumnOrder: void 0
@@ -191,7 +191,7 @@ function Ar() {
191
191
  },
192
192
  getTablePreferences: (t) => {
193
193
  const r = n();
194
- return (r == null ? void 0 : r.get(t)) || void 0 || Ir;
194
+ return (r == null ? void 0 : r.get(t)) || void 0 || xr;
195
195
  },
196
196
  deleteAllTablePreferences: () => {
197
197
  localStorage.removeItem(ft);
@@ -199,9 +199,16 @@ function Ar() {
199
199
  };
200
200
  }
201
201
  const Sr = {
202
+ actions: {
203
+ copyId: "Copy ID",
204
+ copied_id: 'Copied "{id}" to the clipboard',
205
+ copyToClipboard: "Copied successfully!",
206
+ copyToClipboardFailed: "Failed to copy to the clipboard"
207
+ }
208
+ }, Tr = {
202
209
  message: "Are you sure you want to delete this {entityType}?",
203
210
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
204
- }, xr = {
211
+ }, $r = {
205
212
  actions: {
206
213
  save: "Save",
207
214
  cancel: "Cancel",
@@ -210,13 +217,13 @@ const Sr = {
210
217
  errors: {
211
218
  edit: "The entity could not be edited at this time."
212
219
  }
213
- }, Tr = {
220
+ }, Mr = {
214
221
  emptyState: {
215
222
  noSearchResultsTitle: "No results found",
216
223
  noSearchResultsMessage: "Please adjust the criteria and try again.",
217
224
  noSearchResultsCtaText: "Clear"
218
225
  }
219
- }, $r = {
226
+ }, jr = {
220
227
  title: "Configuration",
221
228
  actions: {
222
229
  copy: "Copy JSON"
@@ -251,7 +258,7 @@ const Sr = {
251
258
  entryTitle: "Entry {index}",
252
259
  structuredFormat: "Structured"
253
260
  }
254
- }, Mr = {
261
+ }, Er = {
255
262
  filterButtonText: "Filter",
256
263
  fieldLabel: "Filter by:",
257
264
  inputPlaceholder: "Enter a value",
@@ -259,15 +266,15 @@ const Sr = {
259
266
  applyButtonText: "Apply",
260
267
  clearButtonText: "Clear",
261
268
  clearAllButtonText: "Clear all filters"
262
- }, jr = {
269
+ }, Or = {
263
270
  errors: {
264
271
  fetch: "Could not fetch available items",
265
272
  invalid: "Please select a valid value"
266
273
  }
267
- }, Er = {
274
+ }, Fr = {
268
275
  unexpected: "An unexpected error has occurred",
269
276
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
270
- }, Or = {
277
+ }, Kr = {
271
278
  enable: {
272
279
  title: "Enable {entityType}",
273
280
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -278,18 +285,19 @@ const Sr = {
278
285
  message: "Are you sure you want to disable the {entityType} {entityName}?",
279
286
  confirmText: "Yes, disable"
280
287
  }
281
- }, Fr = {
282
- deleteModal: Sr,
283
- baseForm: xr,
284
- baseTable: Tr,
285
- baseConfigCard: $r,
286
- filter: Mr,
287
- debouncedFilter: jr,
288
- errors: Er,
289
- toggleModal: Or
288
+ }, Nr = {
289
+ global: Sr,
290
+ deleteModal: Tr,
291
+ baseForm: $r,
292
+ baseTable: Mr,
293
+ baseConfigCard: jr,
294
+ filter: Er,
295
+ debouncedFilter: Or,
296
+ errors: Fr,
297
+ toggleModal: Kr
290
298
  };
291
- function St() {
292
- const e = It("en-us", Fr);
299
+ function At() {
300
+ const e = It("en-us", Nr);
293
301
  return {
294
302
  i18n: e,
295
303
  i18nT: cn(e)
@@ -313,70 +321,70 @@ function pn() {
313
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
314
322
  };
315
323
  }
316
- function Kr(e, n, t, r = {
324
+ function Br(e, n, t, r = {
317
325
  fetchedItemsKey: "data",
318
326
  searchKeys: ["id"]
319
327
  }) {
320
328
  t || (t = "100");
321
- const { axiosInstance: o } = At({
329
+ const { axiosInstance: o } = xt({
322
330
  headers: e.requestHeaders
323
- }), { i18n: { t: a } } = St(), { debounce: i } = wr(), s = i(async (I) => {
324
- await C(I);
325
- }, 200), l = O(!1), c = O(""), d = O(""), u = O([]), g = O([]), f = O(void 0), A = y(n);
326
- let v = `${e.apiBaseUrl}${A}`;
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}`;
327
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}` : ""));
328
- const { isValidUuid: p } = pn(), S = async () => {
336
+ const { isValidUuid: p } = pn(), A = async () => {
329
337
  try {
330
338
  l.value = !0;
331
- const { data: I } = await o.get(`${v}?size=${t}`);
332
- I != null && I.next || (f.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : [], u.value = g.value;
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;
333
341
  } catch {
334
342
  u.value = [], c.value = a("debouncedFilter.errors.fetch");
335
343
  } finally {
336
344
  l.value = !1;
337
345
  }
338
- }, b = O(""), C = async (I) => {
346
+ }, b = O(""), k = async (x) => {
339
347
  var ne, pe, H;
340
- if (b.value !== I)
341
- if (b.value = I || "", f.value === void 0)
348
+ if (b.value !== x)
349
+ if (b.value = x || "", f.value === void 0)
342
350
  try {
343
351
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
344
352
  let w = v + "";
345
- I && (w += `/${I}`);
353
+ x && (w += `/${x}`);
346
354
  const { data: N } = await o.get(`${w}?size=${t}`);
347
355
  r.fetchedItemsKey in N ? u.value = N[r.fetchedItemsKey] : N != null && N.id ? u.value = [N] : u.value = [];
348
- } else if (I) {
356
+ } else if (x) {
349
357
  const w = [];
350
- p(I) && r.searchKeys.includes("id") ? w.push((async () => {
351
- const { data: k } = await o.get(`${v}/${I}`);
352
- return [k[r.fetchedItemsKey] ?? k];
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];
353
361
  })()) : w.push(
354
- ...r.searchKeys.filter((k) => k !== "id").map(async (k) => {
355
- const { data: x } = await o.get(`${v}?${k}=${I}`);
356
- return x[r.fetchedItemsKey];
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];
357
365
  })
358
366
  );
359
367
  const N = await Promise.all(w), B = /* @__PURE__ */ new Set();
360
- u.value = [], (ne = N == null ? void 0 : N.forEach) == null || ne.call(N, (k) => {
361
- var x;
362
- (x = k == null ? void 0 : k.forEach) == null || x.call(k, (T) => {
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) => {
363
371
  B.has(T.id) || (B.add(T.id), u.value.push(T));
364
372
  });
365
373
  });
366
374
  } else
367
- u.value = g.value;
375
+ u.value = m.value;
368
376
  } catch (w) {
369
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"));
370
378
  } finally {
371
379
  l.value = !1;
372
380
  }
373
381
  else
374
- l.value = !0, d.value = "", I ? (u.value = (H = f.value) == null ? void 0 : H.filter((w) => {
382
+ l.value = !0, d.value = "", x ? (u.value = (H = f.value) == null ? void 0 : H.filter((w) => {
375
383
  var N;
376
384
  let B = !1;
377
- for (const k of r.searchKeys) {
378
- const x = typeof w[k] == "string" ? (N = w[k]) == null ? void 0 : N.toLowerCase() : w[k];
379
- x != null && x.includes(I.toLowerCase()) && (B = !0);
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);
380
388
  }
381
389
  return B;
382
390
  }), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
@@ -387,18 +395,18 @@ function Kr(e, n, t, r = {
387
395
  validationError: d,
388
396
  results: u,
389
397
  allRecords: f,
390
- loadItems: S,
398
+ loadItems: A,
391
399
  debouncedQueryChange: s
392
400
  };
393
401
  }
394
- function Nr(e, n) {
402
+ function Lr(e, n) {
395
403
  const t = y(n), r = M(
396
404
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
397
405
  );
398
406
  return r.value.search = "", (o) => `${r.value.href}/${o}`;
399
407
  }
400
- function Br() {
401
- const { i18n: { t: e } } = St();
408
+ function Pr() {
409
+ const { i18n: { t: e } } = At();
402
410
  return {
403
411
  getMessageFromError: (n) => {
404
412
  var t, r, o;
@@ -425,6 +433,15 @@ function Br() {
425
433
  }
426
434
  };
427
435
  }
436
+ function Ur(e) {
437
+ const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
438
+ try {
439
+ const r = e.join("/");
440
+ return new URL(`${t}${r}`), `${t}${r}`;
441
+ } catch (r) {
442
+ return console.warn("Failed to build valid URL:", r), "";
443
+ }
444
+ }
428
445
  function fn(e, n) {
429
446
  const t = O(y(e)), r = O(y(n)), o = M(
430
447
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
@@ -432,19 +449,19 @@ function fn(e, n) {
432
449
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
433
450
  );
434
451
  return (i) => {
435
- const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: g } = i;
452
+ const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = i;
436
453
  try {
437
454
  let f = new URL(a.value.href);
438
- return o.value && g ? (f.search = "", f = new URL(`${f.href}/${g}/`)) : (o.value || new URLSearchParams(g).forEach((A, v) => {
439
- f.searchParams.append(v, A);
455
+ return o.value && m ? (f.search = "", f = new URL(`${f.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((I, v) => {
456
+ f.searchParams.append(v, I);
440
457
  }), 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;
441
458
  } catch (f) {
442
459
  return console.error("RouteList(fetcher)", f), r.value;
443
460
  }
444
461
  };
445
462
  }
446
- function Pr(e, n, t = "data") {
447
- const r = y(n), { axiosInstance: o } = At({
463
+ function qr(e, n, t = "data") {
464
+ const r = y(n), { axiosInstance: o } = xt({
448
465
  headers: e.requestHeaders
449
466
  }), a = fn(e, r), i = O({
450
467
  status: Oe.Idle
@@ -455,7 +472,7 @@ function Pr(e, n, t = "data") {
455
472
  const l = a(s), { data: c } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
456
473
  let u;
457
474
  c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
458
- const g = {
475
+ const m = {
459
476
  data: u,
460
477
  total: u.length,
461
478
  ...c.offset ? {
@@ -466,8 +483,8 @@ function Pr(e, n, t = "data") {
466
483
  };
467
484
  return i.value = {
468
485
  status: Oe.Idle,
469
- response: g
470
- }, g;
486
+ response: m
487
+ }, m;
471
488
  } catch (l) {
472
489
  const c = {
473
490
  data: [],
@@ -485,12 +502,12 @@ function Pr(e, n, t = "data") {
485
502
  }
486
503
  }, fetcherState: i };
487
504
  }
488
- function Lr() {
505
+ function Rr() {
489
506
  return {
490
507
  convertKeyToTitle: (e, n = "_") => e ? e.split(n).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
491
508
  };
492
509
  }
493
- const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
510
+ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Pt = (e) => {
494
511
  if (typeof e != "string")
495
512
  throw new TypeError("Invalid argument expected string");
496
513
  const n = e.match(mn);
@@ -500,24 +517,24 @@ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
500
517
  }, Ut = (e) => e === "*" || e === "x" || e === "X", qt = (e) => {
501
518
  const n = parseInt(e, 10);
502
519
  return isNaN(n) ? e : n;
503
- }, Ur = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], qr = (e, n) => {
520
+ }, Vr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Dr = (e, n) => {
504
521
  if (Ut(e) || Ut(n))
505
522
  return 0;
506
- const [t, r] = Ur(qt(e), qt(n));
523
+ const [t, r] = Vr(qt(e), qt(n));
507
524
  return t > r ? 1 : t < r ? -1 : 0;
508
525
  }, Rt = (e, n) => {
509
526
  for (let t = 0; t < Math.max(e.length, n.length); t++) {
510
- const r = qr(e[t] || "0", n[t] || "0");
527
+ const r = Dr(e[t] || "0", n[t] || "0");
511
528
  if (r !== 0)
512
529
  return r;
513
530
  }
514
531
  return 0;
515
- }, Rr = (e, n) => {
516
- const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
532
+ }, Gr = (e, n) => {
533
+ const t = Pt(e), r = Pt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
517
534
  return i !== 0 ? i : o && a ? Rt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
518
535
  }, Vt = (e, n, t) => {
519
- Vr(t);
520
- const r = Rr(e, n);
536
+ Hr(t);
537
+ const r = Gr(e, n);
521
538
  return gn[t].includes(r);
522
539
  }, gn = {
523
540
  ">": [1],
@@ -526,18 +543,18 @@ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
526
543
  "<=": [-1, 0],
527
544
  "<": [-1],
528
545
  "!=": [-1, 1]
529
- }, Dt = Object.keys(gn), Vr = (e) => {
546
+ }, Dt = Object.keys(gn), Hr = (e) => {
530
547
  if (typeof e != "string")
531
548
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
532
549
  if (Dt.indexOf(e) === -1)
533
550
  throw new Error(`Invalid operator, expected one of ${Dt.join("|")}`);
534
- }, Dr = (e) => typeof e == "string" && /^[v\d]/.test(e) && mn.test(e);
535
- function Gr(e) {
551
+ }, Jr = (e) => typeof e == "string" && /^[v\d]/.test(e) && mn.test(e);
552
+ function zr(e) {
536
553
  const { gatewayInfo: n, supportedRange: t } = e;
537
554
  if (!n)
538
555
  return !0;
539
556
  const { edition: r, version: o } = n;
540
- if (!Dr(o))
557
+ if (!Jr(o))
541
558
  return console.error("Invalid version"), !1;
542
559
  const a = t[r];
543
560
  if (!a)
@@ -545,36 +562,54 @@ function Gr(e) {
545
562
  const [i, s] = a;
546
563
  return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
547
564
  }
548
- function Hr(e) {
565
+ function Yr(e) {
549
566
  const n = O(0), t = O(0), r = O(!1);
550
- return xe(e, (o) => {
567
+ return Se(e, (o) => {
551
568
  o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
552
569
  }), {
553
570
  isTruncated: M(() => n.value < t.value)
554
571
  };
555
572
  }
573
+ const Wr = new br();
574
+ function Zr() {
575
+ return {
576
+ notify: async (e) => {
577
+ const n = {
578
+ appearance: "success",
579
+ message: "Success",
580
+ timeoutMilliseconds: 3e3
581
+ };
582
+ Wr.open({
583
+ ...n,
584
+ ...e
585
+ });
586
+ }
587
+ };
588
+ }
556
589
  const ue = {
557
- useAxios: At,
558
- useDebouncedFilter: Kr,
559
- useDeleteUrlBuilder: Nr,
560
- useErrors: Br,
561
- useFetcher: Pr,
590
+ useAxios: xt,
591
+ useDebouncedFilter: Br,
592
+ useDeleteUrlBuilder: Lr,
593
+ useErrors: Pr,
594
+ useExternalLinkCreator: Ur,
595
+ useFetcher: qr,
562
596
  useFetchUrlBuilder: fn,
563
597
  useHelpers: pn,
564
- useStringHelpers: Lr,
565
- useI18n: St,
566
- useGatewayFeatureSupported: Gr,
567
- useTruncationDetector: Hr
568
- }, zr = {
598
+ useStringHelpers: Rr,
599
+ useI18n: At,
600
+ useGatewayFeatureSupported: zr,
601
+ useTruncationDetector: Yr,
602
+ useToaster: Zr
603
+ }, Qr = {
569
604
  fail: "Failed to copy id to clipboard",
570
605
  success: {
571
606
  prefix: "Successfully",
572
607
  content: " copied to clipboard"
573
608
  }
574
- }, Jr = "Copy to clipboard", Wr = {
575
- message: zr,
576
- iconTitle: Jr
577
- }, Yr = "kong-ui-copy-uuid-notify", Zr = { class: "kong-ui-copy-uuid" }, Qr = ["onClick"], Gt = 15, Xr = /* @__PURE__ */ ae({
609
+ }, Xr = "Copy to clipboard", eo = {
610
+ message: Qr,
611
+ iconTitle: Xr
612
+ }, to = "kong-ui-copy-uuid-notify", no = { class: "kong-ui-copy-uuid" }, ro = ["onClick"], Gt = 15, oo = /* @__PURE__ */ ae({
578
613
  __name: "CopyUuid",
579
614
  props: {
580
615
  uuid: {
@@ -618,7 +653,7 @@ const ue = {
618
653
  },
619
654
  emits: ["success", "error"],
620
655
  setup(e, { emit: n }) {
621
- const t = e, { t: r } = It("en-us", Wr), o = t.notify || gr(Yr, () => {
656
+ const t = e, { t: r } = It("en-us", eo), o = t.notify || gr(to, () => {
622
657
  }), a = M(() => t.idTooltip ? {
623
658
  label: t.idTooltip,
624
659
  positionFixed: !0,
@@ -630,28 +665,32 @@ const ue = {
630
665
  positionFixed: !0,
631
666
  maxWidth: "500px",
632
667
  placement: "bottomStart"
633
- } : {}), c = M(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), d = (g) => {
634
- s.value = g, setTimeout(() => {
668
+ } : {}), c = M(() => {
669
+ var m;
670
+ return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(m = t.uuid) == null ? void 0 : m.substring(0, 5)}` : t.uuid;
671
+ }), d = (m) => {
672
+ s.value = m, setTimeout(() => {
635
673
  s.value = t.tooltip;
636
674
  }, 1800);
637
- }, u = (g) => {
638
- if (!g(t.uuid)) {
675
+ }, u = (m) => {
676
+ var f, I;
677
+ if (!m(t.uuid)) {
639
678
  typeof o == "function" && o({
640
679
  type: "error",
641
680
  message: r("message.fail")
642
681
  }), i.value ? d(r("message.fail")) : n("error", t.uuid);
643
682
  return;
644
683
  }
645
- const f = t.uuid.length > Gt, A = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${t.uuid.substring(0, Gt) + (f ? "..." : "")}"`;
684
+ 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 ? "..." : "")}"`;
646
685
  typeof o == "function" && o({
647
686
  type: "success",
648
- message: `${A}${r("message.success.content")}`
687
+ message: `${p}${r("message.success.content")}`
649
688
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
650
689
  };
651
- return (g, f) => {
652
- const A = U("KIcon"), v = U("KClipboardProvider");
653
- return m(), j("div", Zr, [
654
- e.format !== "hidden" ? (m(), V(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
690
+ return (m, f) => {
691
+ const I = U("KIcon"), v = U("KClipboardProvider");
692
+ return g(), j("div", no, [
693
+ e.format !== "hidden" ? (g(), V(Je(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
655
694
  default: h(() => [
656
695
  R("div", {
657
696
  class: Ke([
@@ -663,7 +702,7 @@ const ue = {
663
702
  ]),
664
703
  _: 1
665
704
  }, 16)) : G("", !0),
666
- (m(), V(ze(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
705
+ (g(), V(Je(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
667
706
  default: h(() => [
668
707
  K(v, null, {
669
708
  default: h(({ copyToClipboard: p }) => [
@@ -671,9 +710,9 @@ const ue = {
671
710
  "data-testid": "copy-to-clipboard",
672
711
  role: "button",
673
712
  tabindex: "0",
674
- onClick: rt((S) => u(p), ["stop"])
713
+ onClick: rt((A) => u(p), ["stop"])
675
714
  }, [
676
- K(A, {
715
+ K(I, {
677
716
  class: "uuid-icon",
678
717
  color: e.iconColor,
679
718
  "hide-title": !!e.tooltip || void 0,
@@ -681,7 +720,7 @@ const ue = {
681
720
  size: "16",
682
721
  title: y(r)("iconTitle")
683
722
  }, null, 8, ["color", "hide-title", "title"])
684
- ], 8, Qr)
723
+ ], 8, ro)
685
724
  ]),
686
725
  _: 1
687
726
  })
@@ -691,15 +730,15 @@ const ue = {
691
730
  ]);
692
731
  };
693
732
  }
694
- }), eo = (e, n) => {
733
+ }), ao = (e, n) => {
695
734
  const t = e.__vccOpts || e;
696
735
  for (const [r, o] of n)
697
736
  t[r] = o;
698
737
  return t;
699
- }, yn = /* @__PURE__ */ eo(Xr, [["__scopeId", "data-v-bfdaf6f7"]]), to = {
738
+ }, yn = /* @__PURE__ */ ao(oo, [["__scopeId", "data-v-a2ebe0bb"]]), io = {
700
739
  key: 0,
701
740
  class: "config-card-fieldset-title"
702
- }, no = /* @__PURE__ */ ae({
741
+ }, so = /* @__PURE__ */ ae({
703
742
  __name: "JsonCardItem",
704
743
  props: {
705
744
  item: {
@@ -723,14 +762,14 @@ const ue = {
723
762
  var l;
724
763
  return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
725
764
  });
726
- return (l, c) => (m(), V(ze(e.isArrayItem ? "fieldset" : "div"), {
765
+ return (l, c) => (g(), V(Je(e.isArrayItem ? "fieldset" : "div"), {
727
766
  class: Ke(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
728
767
  }, {
729
768
  default: h(() => [
730
- e.isArrayItem ? (m(), j("legend", to, [
769
+ e.isArrayItem ? (g(), j("legend", io, [
731
770
  R("b", null, F(s.value), 1)
732
771
  ])) : G("", !0),
733
- (m(!0), j(ve, null, ye(Object.keys(i.value), (d, u) => (m(), V(xt, {
772
+ (g(!0), j(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(St, {
734
773
  key: `${o.value}-property-${u}`,
735
774
  item: {
736
775
  key: d,
@@ -742,12 +781,12 @@ const ue = {
742
781
  _: 1
743
782
  }, 8, ["class"]));
744
783
  }
745
- }), ke = (e, n) => {
784
+ }), Ce = (e, n) => {
746
785
  const t = e.__vccOpts || e;
747
786
  for (const [r, o] of n)
748
787
  t[r] = o;
749
788
  return t;
750
- }, hn = /* @__PURE__ */ ke(no, [["__scopeId", "data-v-68ca83ec"]]), ro = /* @__PURE__ */ ae({
789
+ }, hn = /* @__PURE__ */ Ce(so, [["__scopeId", "data-v-68ca83ec"]]), lo = /* @__PURE__ */ ae({
751
790
  __name: "InternalLinkItem",
752
791
  props: {
753
792
  item: {
@@ -760,7 +799,7 @@ const ue = {
760
799
  const { i18n: { t: n } } = ue.useI18n();
761
800
  return (t, r) => {
762
801
  const o = U("KButton");
763
- return m(), j("div", null, [
802
+ return g(), j("div", null, [
764
803
  K(o, {
765
804
  appearance: "btn-link",
766
805
  class: "navigation-button",
@@ -774,7 +813,7 @@ const ue = {
774
813
  ]);
775
814
  };
776
815
  }
777
- }), oo = /* @__PURE__ */ ke(ro, [["__scopeId", "data-v-7410504d"]]), ao = /* @__PURE__ */ ae({
816
+ }), uo = /* @__PURE__ */ Ce(lo, [["__scopeId", "data-v-7410504d"]]), co = /* @__PURE__ */ ae({
778
817
  __name: "StatusBadge",
779
818
  props: {
780
819
  status: {
@@ -786,7 +825,7 @@ const ue = {
786
825
  const { i18n: { t: n } } = ue.useI18n();
787
826
  return (t, r) => {
788
827
  const o = U("KBadge");
789
- return m(), V(o, {
828
+ return g(), V(o, {
790
829
  appearance: e.status ? "success" : "neutral"
791
830
  }, {
792
831
  default: h(() => [
@@ -796,11 +835,11 @@ const ue = {
796
835
  }, 8, ["appearance"]);
797
836
  };
798
837
  }
799
- }), io = "#0044f4", so = "#e0e4ea", lo = "#3a3f51", uo = "1px", co = "20px", po = { class: "config-card-details-row" }, fo = ["data-testid"], mo = ["data-testid"], go = ["data-testid"], yo = ["data-testid"], ho = { key: 1 }, vo = ["data-testid"], bo = ["data-testid"], Co = ["data-testid"], ko = ["data-testid"], _o = {
838
+ }), 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 = {
800
839
  name: "ConfigCardItem",
801
- components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: ao, InternalLinkItem: oo }
802
- }, wo = /* @__PURE__ */ ae({
803
- ..._o,
840
+ components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: co, InternalLinkItem: uo }
841
+ }, To = /* @__PURE__ */ ae({
842
+ ...So,
804
843
  props: {
805
844
  item: {
806
845
  type: Object,
@@ -821,7 +860,7 @@ const ue = {
821
860
  setup(e, { emit: n }) {
822
861
  const t = e;
823
862
  ur((f) => ({
824
- "1df60db4": c.value ? "none" : `solid ${y(uo)} ${y(so)}`,
863
+ "1df60db4": c.value ? "none" : `solid ${y(go)} ${y(fo)}`,
825
864
  "21d1d34e": l.value && i.value ? "block" : "flex",
826
865
  "4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
827
866
  "4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
@@ -952,15 +991,15 @@ const ue = {
952
991
  text: t.item.value
953
992
  };
954
993
  }
955
- }), u = O(), { isTruncated: g } = ue.useTruncationDetector(u);
956
- return (f, A) => {
957
- const v = U("KLabel"), p = U("KBadge"), S = U("KMethodBadge"), b = U("KTooltip");
958
- return m(), j("div", po, [
994
+ }), u = O(), { isTruncated: m } = ue.useTruncationDetector(u);
995
+ return (f, I) => {
996
+ const v = U("KLabel"), p = U("KBadge"), A = U("KMethodBadge"), b = U("KTooltip");
997
+ return g(), j("div", ho, [
959
998
  R("div", {
960
999
  class: "config-card-details-label",
961
1000
  "data-testid": `${e.item.key}-label`
962
1001
  }, [
963
- Y(f.$slots, "label", { item: e.item }, () => [
1002
+ W(f.$slots, "label", { item: e.item }, () => [
964
1003
  K(v, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
965
1004
  default: h(() => [
966
1005
  Z(F(e.item.label) + " ", 1)
@@ -973,84 +1012,84 @@ const ue = {
973
1012
  R("div", {
974
1013
  "data-testid": `${e.item.key}-label-tooltip`
975
1014
  }, [
976
- Y(f.$slots, "label-tooltip", {}, () => [
1015
+ W(f.$slots, "label-tooltip", {}, () => [
977
1016
  Z(F(e.item.tooltip), 1)
978
1017
  ], !0)
979
- ], 8, mo)
1018
+ ], 8, bo)
980
1019
  ]),
981
1020
  key: "0"
982
1021
  } : void 0
983
1022
  ]), 1024)
984
1023
  ], !0)
985
- ], 8, fo),
1024
+ ], 8, vo),
986
1025
  R("div", {
987
1026
  class: "config-card-details-value",
988
1027
  "data-testid": `${e.item.key}-property-value`
989
1028
  }, [
990
- Y(f.$slots, e.item.key, {
1029
+ W(f.$slots, e.item.key, {
991
1030
  rowValue: e.item.value
992
1031
  }, () => [
993
- i.value ? (m(), j("div", ho, [
994
- (m(), V(ze(d.value.tag), cr(dr(d.value.attrs)), {
1032
+ i.value ? (g(), j("div", _o, [
1033
+ (g(), V(Je(d.value.tag), cr(dr(d.value.attrs)), {
995
1034
  default: h(() => [
996
- d.value.additionalComponent === "KBadge" ? (m(), j("div", {
1035
+ d.value.additionalComponent === "KBadge" ? (g(), j("div", {
997
1036
  key: 0,
998
1037
  "data-testid": `${e.item.key}-badge-tags`
999
1038
  }, [
1000
- (m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(p, {
1001
- key: `${e.item.key}-badge-tag-${I}`,
1039
+ (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(p, {
1040
+ key: `${e.item.key}-badge-tag-${x}`,
1002
1041
  class: "config-badge",
1003
- "data-testid": `${e.item.key}-badge-tag-${I}`,
1004
- "truncation-tooltip": C
1042
+ "data-testid": `${e.item.key}-badge-tag-${x}`,
1043
+ "truncation-tooltip": k
1005
1044
  }, {
1006
1045
  default: h(() => [
1007
- Z(F(C), 1)
1046
+ Z(F(k), 1)
1008
1047
  ]),
1009
1048
  _: 2
1010
1049
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1011
- ], 8, vo)) : G("", !0),
1012
- d.value.additionalComponent === "CopyUuid" ? (m(), j("div", {
1050
+ ], 8, wo)) : G("", !0),
1051
+ d.value.additionalComponent === "CopyUuid" ? (g(), j("div", {
1013
1052
  key: 1,
1014
1053
  class: "copy-uuid-array",
1015
1054
  "data-testid": `${e.item.key}-copy-uuid-array`
1016
1055
  }, [
1017
- (m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(y(yn), ht(d.value.childAttrs, {
1018
- key: `${e.item.key}-copy-uuid-${I}`,
1019
- "data-testid": `${e.item.key}-copy-uuid-${I}`,
1020
- uuid: C
1056
+ (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(y(yn), ht(d.value.childAttrs, {
1057
+ key: `${e.item.key}-copy-uuid-${x}`,
1058
+ "data-testid": `${e.item.key}-copy-uuid-${x}`,
1059
+ uuid: k
1021
1060
  }), null, 16, ["data-testid", "uuid"]))), 128))
1022
- ], 8, bo)) : d.value.additionalComponent === "KMethodBadge" ? (m(), j("div", {
1061
+ ], 8, Io)) : d.value.additionalComponent === "KMethodBadge" ? (g(), j("div", {
1023
1062
  key: 2,
1024
1063
  class: "method-badge-array",
1025
1064
  "data-testid": `${e.item.key}-badge-methods`
1026
1065
  }, [
1027
- (m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(S, {
1028
- key: `${e.item.key}-badge-method-${I}`,
1066
+ (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(A, {
1067
+ key: `${e.item.key}-badge-method-${x}`,
1029
1068
  class: "config-badge",
1030
- "data-testid": `${e.item.key}-badge-method-${I}`,
1069
+ "data-testid": `${e.item.key}-badge-method-${x}`,
1031
1070
  "is-rounded": "",
1032
- label: C,
1033
- method: y(br).includes(C.toLowerCase()) ? C.toLowerCase() : "custom"
1071
+ label: k,
1072
+ method: y(kr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
1034
1073
  }, {
1035
1074
  default: h(() => [
1036
- Z(F(C), 1)
1075
+ Z(F(k), 1)
1037
1076
  ]),
1038
1077
  _: 2
1039
1078
  }, 1032, ["data-testid", "label", "method"]))), 128))
1040
- ], 8, Co)) : G("", !0),
1041
- d.value.additionalComponent === "JsonCardItem" ? (m(), j("div", {
1079
+ ], 8, xo)) : G("", !0),
1080
+ d.value.additionalComponent === "JsonCardItem" ? (g(), j("div", {
1042
1081
  key: 3,
1043
1082
  "data-testid": `${t.item.key}-json-array-content`
1044
1083
  }, [
1045
- (m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(hn, {
1046
- key: `json-array-item-${I}`,
1047
- index: I,
1084
+ (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(hn, {
1085
+ key: `json-array-item-${x}`,
1086
+ index: x,
1048
1087
  "is-array-item": "",
1049
- item: C
1088
+ item: k
1050
1089
  }, null, 8, ["index", "item"]))), 128))
1051
- ], 8, ko)) : (m(), V(b, {
1090
+ ], 8, Ao)) : (g(), V(b, {
1052
1091
  key: 4,
1053
- label: y(g) ? e.item.value : ""
1092
+ label: y(m) ? e.item.value : ""
1054
1093
  }, {
1055
1094
  default: h(() => [
1056
1095
  R("span", {
@@ -1064,49 +1103,49 @@ const ue = {
1064
1103
  ]),
1065
1104
  _: 1
1066
1105
  }, 16))
1067
- ])) : (m(), j("div", {
1106
+ ])) : (g(), j("div", {
1068
1107
  key: 0,
1069
1108
  "data-testid": `${e.item.key}-no-value`
1070
- }, " – ", 8, yo))
1109
+ }, " – ", 8, Co))
1071
1110
  ], !0)
1072
- ], 8, go)
1111
+ ], 8, ko)
1073
1112
  ]);
1074
1113
  };
1075
1114
  }
1076
- }), xt = /* @__PURE__ */ ke(wo, [["__scopeId", "data-v-307ab96d"]]);
1115
+ }), St = /* @__PURE__ */ Ce(To, [["__scopeId", "data-v-307ab96d"]]);
1077
1116
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1078
1117
  function vn(e) {
1079
1118
  return typeof e > "u" || e === null;
1080
1119
  }
1081
- function Io(e) {
1120
+ function $o(e) {
1082
1121
  return typeof e == "object" && e !== null;
1083
1122
  }
1084
- function Ao(e) {
1123
+ function Mo(e) {
1085
1124
  return Array.isArray(e) ? e : vn(e) ? [] : [e];
1086
1125
  }
1087
- function So(e, n) {
1126
+ function jo(e, n) {
1088
1127
  var t, r, o, a;
1089
1128
  if (n)
1090
1129
  for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
1091
1130
  o = a[t], e[o] = n[o];
1092
1131
  return e;
1093
1132
  }
1094
- function xo(e, n) {
1133
+ function Eo(e, n) {
1095
1134
  var t = "", r;
1096
1135
  for (r = 0; r < n; r += 1)
1097
1136
  t += e;
1098
1137
  return t;
1099
1138
  }
1100
- function To(e) {
1139
+ function Oo(e) {
1101
1140
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1102
1141
  }
1103
- var $o = vn, Mo = Io, jo = Ao, Eo = xo, Oo = To, Fo = So, se = {
1104
- isNothing: $o,
1105
- isObject: Mo,
1106
- toArray: jo,
1107
- repeat: Eo,
1108
- isNegativeZero: Oo,
1109
- extend: Fo
1142
+ var Fo = vn, Ko = $o, No = Mo, Bo = Eo, Lo = Oo, Po = jo, se = {
1143
+ isNothing: Fo,
1144
+ isObject: Ko,
1145
+ toArray: No,
1146
+ repeat: Bo,
1147
+ isNegativeZero: Lo,
1148
+ extend: Po
1110
1149
  };
1111
1150
  function bn(e, n) {
1112
1151
  var t = "", r = e.reason || "(unknown reason)";
@@ -1114,15 +1153,15 @@ function bn(e, n) {
1114
1153
 
1115
1154
  ` + e.mark.snippet), r + " " + t) : r;
1116
1155
  }
1117
- function Je(e, n) {
1156
+ function ze(e, n) {
1118
1157
  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 || "";
1119
1158
  }
1120
- Je.prototype = Object.create(Error.prototype);
1121
- Je.prototype.constructor = Je;
1122
- Je.prototype.toString = function(e) {
1159
+ ze.prototype = Object.create(Error.prototype);
1160
+ ze.prototype.constructor = ze;
1161
+ ze.prototype.toString = function(e) {
1123
1162
  return this.name + ": " + bn(this, e);
1124
1163
  };
1125
- var me = Je;
1164
+ var me = ze;
1126
1165
  function mt(e, n, t, r, o) {
1127
1166
  var a = "", i = "", s = Math.floor(o / 2) - 1;
1128
1167
  return r - n > s && (a = " ... ", n = r - s + a.length), t - r > s && (i = " ...", t = r + s - i.length), {
@@ -1134,7 +1173,7 @@ function mt(e, n, t, r, o) {
1134
1173
  function gt(e, n) {
1135
1174
  return se.repeat(" ", n - e.length) + e;
1136
1175
  }
1137
- function Ko(e, n) {
1176
+ function Uo(e, n) {
1138
1177
  if (n = Object.create(n || null), !e.buffer)
1139
1178
  return null;
1140
1179
  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);
@@ -1164,7 +1203,7 @@ function Ko(e, n) {
1164
1203
  `;
1165
1204
  return s.replace(/\n$/, "");
1166
1205
  }
1167
- var No = Ko, Bo = [
1206
+ var qo = Uo, Ro = [
1168
1207
  "kind",
1169
1208
  "multi",
1170
1209
  "resolve",
@@ -1175,12 +1214,12 @@ var No = Ko, Bo = [
1175
1214
  "representName",
1176
1215
  "defaultStyle",
1177
1216
  "styleAliases"
1178
- ], Po = [
1217
+ ], Vo = [
1179
1218
  "scalar",
1180
1219
  "sequence",
1181
1220
  "mapping"
1182
1221
  ];
1183
- function Lo(e) {
1222
+ function Do(e) {
1184
1223
  var n = {};
1185
1224
  return e !== null && Object.keys(e).forEach(function(t) {
1186
1225
  e[t].forEach(function(r) {
@@ -1188,18 +1227,18 @@ function Lo(e) {
1188
1227
  });
1189
1228
  }), n;
1190
1229
  }
1191
- function Uo(e, n) {
1230
+ function Go(e, n) {
1192
1231
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1193
- if (Bo.indexOf(t) === -1)
1232
+ if (Ro.indexOf(t) === -1)
1194
1233
  throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1195
1234
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1196
1235
  return !0;
1197
1236
  }, this.construct = n.construct || function(t) {
1198
1237
  return t;
1199
- }, 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 = Lo(n.styleAliases || null), Po.indexOf(this.kind) === -1)
1238
+ }, 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)
1200
1239
  throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1201
1240
  }
1202
- var de = Uo;
1241
+ var de = Go;
1203
1242
  function Ht(e, n) {
1204
1243
  var t = [];
1205
1244
  return e[n].forEach(function(r) {
@@ -1209,7 +1248,7 @@ function Ht(e, n) {
1209
1248
  }), t[o] = r;
1210
1249
  }), t;
1211
1250
  }
1212
- function qo() {
1251
+ function Ho() {
1213
1252
  var e = {
1214
1253
  scalar: {},
1215
1254
  sequence: {},
@@ -1254,9 +1293,9 @@ vt.prototype.extend = function(e) {
1254
1293
  throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1255
1294
  });
1256
1295
  var r = Object.create(vt.prototype);
1257
- 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 = qo(r.compiledImplicit, r.compiledExplicit), r;
1296
+ 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;
1258
1297
  };
1259
- var Cn = vt, kn = new de("tag:yaml.org,2002:str", {
1298
+ var kn = vt, Cn = new de("tag:yaml.org,2002:str", {
1260
1299
  kind: "scalar",
1261
1300
  construct: function(e) {
1262
1301
  return e !== null ? e : "";
@@ -1271,30 +1310,30 @@ var Cn = vt, kn = new de("tag:yaml.org,2002:str", {
1271
1310
  construct: function(e) {
1272
1311
  return e !== null ? e : {};
1273
1312
  }
1274
- }), In = new Cn({
1313
+ }), In = new kn({
1275
1314
  explicit: [
1276
- kn,
1315
+ Cn,
1277
1316
  _n,
1278
1317
  wn
1279
1318
  ]
1280
1319
  });
1281
- function Ro(e) {
1320
+ function Jo(e) {
1282
1321
  if (e === null)
1283
1322
  return !0;
1284
1323
  var n = e.length;
1285
1324
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1286
1325
  }
1287
- function Vo() {
1326
+ function zo() {
1288
1327
  return null;
1289
1328
  }
1290
- function Do(e) {
1329
+ function Yo(e) {
1291
1330
  return e === null;
1292
1331
  }
1293
- var An = new de("tag:yaml.org,2002:null", {
1332
+ var xn = new de("tag:yaml.org,2002:null", {
1294
1333
  kind: "scalar",
1295
- resolve: Ro,
1296
- construct: Vo,
1297
- predicate: Do,
1334
+ resolve: Jo,
1335
+ construct: zo,
1336
+ predicate: Yo,
1298
1337
  represent: {
1299
1338
  canonical: function() {
1300
1339
  return "~";
@@ -1314,23 +1353,23 @@ var An = new de("tag:yaml.org,2002:null", {
1314
1353
  },
1315
1354
  defaultStyle: "lowercase"
1316
1355
  });
1317
- function Go(e) {
1356
+ function Wo(e) {
1318
1357
  if (e === null)
1319
1358
  return !1;
1320
1359
  var n = e.length;
1321
1360
  return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
1322
1361
  }
1323
- function Ho(e) {
1362
+ function Zo(e) {
1324
1363
  return e === "true" || e === "True" || e === "TRUE";
1325
1364
  }
1326
- function zo(e) {
1365
+ function Qo(e) {
1327
1366
  return Object.prototype.toString.call(e) === "[object Boolean]";
1328
1367
  }
1329
- var Sn = new de("tag:yaml.org,2002:bool", {
1368
+ var An = new de("tag:yaml.org,2002:bool", {
1330
1369
  kind: "scalar",
1331
- resolve: Go,
1332
- construct: Ho,
1333
- predicate: zo,
1370
+ resolve: Wo,
1371
+ construct: Zo,
1372
+ predicate: Qo,
1334
1373
  represent: {
1335
1374
  lowercase: function(e) {
1336
1375
  return e ? "true" : "false";
@@ -1344,16 +1383,16 @@ var Sn = new de("tag:yaml.org,2002:bool", {
1344
1383
  },
1345
1384
  defaultStyle: "lowercase"
1346
1385
  });
1347
- function Jo(e) {
1386
+ function Xo(e) {
1348
1387
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1349
1388
  }
1350
- function Wo(e) {
1389
+ function ea(e) {
1351
1390
  return 48 <= e && e <= 55;
1352
1391
  }
1353
- function Yo(e) {
1392
+ function ta(e) {
1354
1393
  return 48 <= e && e <= 57;
1355
1394
  }
1356
- function Zo(e) {
1395
+ function na(e) {
1357
1396
  if (e === null)
1358
1397
  return !1;
1359
1398
  var n = e.length, t = 0, r = !1, o;
@@ -1374,7 +1413,7 @@ function Zo(e) {
1374
1413
  if (o === "x") {
1375
1414
  for (t++; t < n; t++)
1376
1415
  if (o = e[t], o !== "_") {
1377
- if (!Jo(e.charCodeAt(t)))
1416
+ if (!Xo(e.charCodeAt(t)))
1378
1417
  return !1;
1379
1418
  r = !0;
1380
1419
  }
@@ -1383,7 +1422,7 @@ function Zo(e) {
1383
1422
  if (o === "o") {
1384
1423
  for (t++; t < n; t++)
1385
1424
  if (o = e[t], o !== "_") {
1386
- if (!Wo(e.charCodeAt(t)))
1425
+ if (!ea(e.charCodeAt(t)))
1387
1426
  return !1;
1388
1427
  r = !0;
1389
1428
  }
@@ -1394,13 +1433,13 @@ function Zo(e) {
1394
1433
  return !1;
1395
1434
  for (; t < n; t++)
1396
1435
  if (o = e[t], o !== "_") {
1397
- if (!Yo(e.charCodeAt(t)))
1436
+ if (!ta(e.charCodeAt(t)))
1398
1437
  return !1;
1399
1438
  r = !0;
1400
1439
  }
1401
1440
  return !(!r || o === "_");
1402
1441
  }
1403
- function Qo(e) {
1442
+ function ra(e) {
1404
1443
  var n = e, t = 1, r;
1405
1444
  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")
1406
1445
  return 0;
@@ -1414,14 +1453,14 @@ function Qo(e) {
1414
1453
  }
1415
1454
  return t * parseInt(n, 10);
1416
1455
  }
1417
- function Xo(e) {
1456
+ function oa(e) {
1418
1457
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
1419
1458
  }
1420
- var xn = new de("tag:yaml.org,2002:int", {
1459
+ var Sn = new de("tag:yaml.org,2002:int", {
1421
1460
  kind: "scalar",
1422
- resolve: Zo,
1423
- construct: Qo,
1424
- predicate: Xo,
1461
+ resolve: na,
1462
+ construct: ra,
1463
+ predicate: oa,
1425
1464
  represent: {
1426
1465
  binary: function(e) {
1427
1466
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1444,21 +1483,21 @@ var xn = new de("tag:yaml.org,2002:int", {
1444
1483
  decimal: [10, "dec"],
1445
1484
  hexadecimal: [16, "hex"]
1446
1485
  }
1447
- }), ea = new RegExp(
1486
+ }), aa = new RegExp(
1448
1487
  // 2.5e4, 2.5 and integers
1449
1488
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1450
1489
  );
1451
- function ta(e) {
1452
- return !(e === null || !ea.test(e) || // Quick hack to not allow integers end with `_`
1490
+ function ia(e) {
1491
+ return !(e === null || !aa.test(e) || // Quick hack to not allow integers end with `_`
1453
1492
  // Probably should update regexp & check speed
1454
1493
  e[e.length - 1] === "_");
1455
1494
  }
1456
- function na(e) {
1495
+ function sa(e) {
1457
1496
  var n, t;
1458
1497
  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);
1459
1498
  }
1460
- var ra = /^[-+]?[0-9]+e/;
1461
- function oa(e, n) {
1499
+ var la = /^[-+]?[0-9]+e/;
1500
+ function ua(e, n) {
1462
1501
  var t;
1463
1502
  if (isNaN(e))
1464
1503
  switch (n) {
@@ -1489,23 +1528,23 @@ function oa(e, n) {
1489
1528
  }
1490
1529
  else if (se.isNegativeZero(e))
1491
1530
  return "-0.0";
1492
- return t = e.toString(10), ra.test(t) ? t.replace("e", ".e") : t;
1531
+ return t = e.toString(10), la.test(t) ? t.replace("e", ".e") : t;
1493
1532
  }
1494
- function aa(e) {
1533
+ function ca(e) {
1495
1534
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
1496
1535
  }
1497
1536
  var Tn = new de("tag:yaml.org,2002:float", {
1498
1537
  kind: "scalar",
1499
- resolve: ta,
1500
- construct: na,
1501
- predicate: aa,
1502
- represent: oa,
1538
+ resolve: ia,
1539
+ construct: sa,
1540
+ predicate: ca,
1541
+ represent: ua,
1503
1542
  defaultStyle: "lowercase"
1504
1543
  }), $n = In.extend({
1505
1544
  implicit: [
1545
+ xn,
1506
1546
  An,
1507
1547
  Sn,
1508
- xn,
1509
1548
  Tn
1510
1549
  ]
1511
1550
  }), Mn = $n, jn = new RegExp(
@@ -1513,11 +1552,11 @@ var Tn = new de("tag:yaml.org,2002:float", {
1513
1552
  ), En = new RegExp(
1514
1553
  "^([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]))?))?$"
1515
1554
  );
1516
- function ia(e) {
1555
+ function da(e) {
1517
1556
  return e === null ? !1 : jn.exec(e) !== null || En.exec(e) !== null;
1518
1557
  }
1519
- function sa(e) {
1520
- var n, t, r, o, a, i, s, l = 0, c = null, d, u, g;
1558
+ function pa(e) {
1559
+ var n, t, r, o, a, i, s, l = 0, c = null, d, u, m;
1521
1560
  if (n = jn.exec(e), n === null && (n = En.exec(e)), n === null)
1522
1561
  throw new Error("Date resolve error");
1523
1562
  if (t = +n[1], r = +n[2] - 1, o = +n[3], !n[4])
@@ -1527,27 +1566,27 @@ function sa(e) {
1527
1566
  l += "0";
1528
1567
  l = +l;
1529
1568
  }
1530
- return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), g = new Date(Date.UTC(t, r, o, a, i, s, l)), c && g.setTime(g.getTime() - c), g;
1569
+ 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;
1531
1570
  }
1532
- function la(e) {
1571
+ function fa(e) {
1533
1572
  return e.toISOString();
1534
1573
  }
1535
1574
  var On = new de("tag:yaml.org,2002:timestamp", {
1536
1575
  kind: "scalar",
1537
- resolve: ia,
1538
- construct: sa,
1576
+ resolve: da,
1577
+ construct: pa,
1539
1578
  instanceOf: Date,
1540
- represent: la
1579
+ represent: fa
1541
1580
  });
1542
- function ua(e) {
1581
+ function ma(e) {
1543
1582
  return e === "<<" || e === null;
1544
1583
  }
1545
1584
  var Fn = new de("tag:yaml.org,2002:merge", {
1546
1585
  kind: "scalar",
1547
- resolve: ua
1586
+ resolve: ma
1548
1587
  }), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1549
1588
  \r`;
1550
- function ca(e) {
1589
+ function ga(e) {
1551
1590
  if (e === null)
1552
1591
  return !1;
1553
1592
  var n, t, r = 0, o = e.length, a = Tt;
@@ -1559,37 +1598,37 @@ function ca(e) {
1559
1598
  }
1560
1599
  return r % 8 === 0;
1561
1600
  }
1562
- function da(e) {
1601
+ function ya(e) {
1563
1602
  var n, t, r = e.replace(/[\r\n=]/g, ""), o = r.length, a = Tt, i = 0, s = [];
1564
1603
  for (n = 0; n < o; n++)
1565
1604
  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));
1566
1605
  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);
1567
1606
  }
1568
- function pa(e) {
1607
+ function ha(e) {
1569
1608
  var n = "", t = 0, r, o, a = e.length, i = Tt;
1570
1609
  for (r = 0; r < a; r++)
1571
1610
  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];
1572
1611
  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;
1573
1612
  }
1574
- function fa(e) {
1613
+ function va(e) {
1575
1614
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1576
1615
  }
1577
1616
  var Kn = new de("tag:yaml.org,2002:binary", {
1578
1617
  kind: "scalar",
1579
- resolve: ca,
1580
- construct: da,
1581
- predicate: fa,
1582
- represent: pa
1583
- }), ma = Object.prototype.hasOwnProperty, ga = Object.prototype.toString;
1584
- function ya(e) {
1618
+ resolve: ga,
1619
+ construct: ya,
1620
+ predicate: va,
1621
+ represent: ha
1622
+ }), ba = Object.prototype.hasOwnProperty, ka = Object.prototype.toString;
1623
+ function Ca(e) {
1585
1624
  if (e === null)
1586
1625
  return !0;
1587
1626
  var n = [], t, r, o, a, i, s = e;
1588
1627
  for (t = 0, r = s.length; t < r; t += 1) {
1589
- if (o = s[t], i = !1, ga.call(o) !== "[object Object]")
1628
+ if (o = s[t], i = !1, ka.call(o) !== "[object Object]")
1590
1629
  return !1;
1591
1630
  for (a in o)
1592
- if (ma.call(o, a))
1631
+ if (ba.call(o, a))
1593
1632
  if (!i)
1594
1633
  i = !0;
1595
1634
  else
@@ -1603,26 +1642,26 @@ function ya(e) {
1603
1642
  }
1604
1643
  return !0;
1605
1644
  }
1606
- function ha(e) {
1645
+ function _a(e) {
1607
1646
  return e !== null ? e : [];
1608
1647
  }
1609
1648
  var Nn = new de("tag:yaml.org,2002:omap", {
1610
1649
  kind: "sequence",
1611
- resolve: ya,
1612
- construct: ha
1613
- }), va = Object.prototype.toString;
1614
- function ba(e) {
1650
+ resolve: Ca,
1651
+ construct: _a
1652
+ }), wa = Object.prototype.toString;
1653
+ function Ia(e) {
1615
1654
  if (e === null)
1616
1655
  return !0;
1617
1656
  var n, t, r, o, a, i = e;
1618
1657
  for (a = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
1619
- if (r = i[n], va.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
1658
+ if (r = i[n], wa.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
1620
1659
  return !1;
1621
1660
  a[n] = [o[0], r[o[0]]];
1622
1661
  }
1623
1662
  return !0;
1624
1663
  }
1625
- function Ca(e) {
1664
+ function xa(e) {
1626
1665
  if (e === null)
1627
1666
  return [];
1628
1667
  var n, t, r, o, a, i = e;
@@ -1632,25 +1671,25 @@ function Ca(e) {
1632
1671
  }
1633
1672
  var Bn = new de("tag:yaml.org,2002:pairs", {
1634
1673
  kind: "sequence",
1635
- resolve: ba,
1636
- construct: Ca
1637
- }), ka = Object.prototype.hasOwnProperty;
1638
- function _a(e) {
1674
+ resolve: Ia,
1675
+ construct: xa
1676
+ }), Aa = Object.prototype.hasOwnProperty;
1677
+ function Sa(e) {
1639
1678
  if (e === null)
1640
1679
  return !0;
1641
1680
  var n, t = e;
1642
1681
  for (n in t)
1643
- if (ka.call(t, n) && t[n] !== null)
1682
+ if (Aa.call(t, n) && t[n] !== null)
1644
1683
  return !1;
1645
1684
  return !0;
1646
1685
  }
1647
- function wa(e) {
1686
+ function Ta(e) {
1648
1687
  return e !== null ? e : {};
1649
1688
  }
1650
- var Pn = new de("tag:yaml.org,2002:set", {
1689
+ var Ln = new de("tag:yaml.org,2002:set", {
1651
1690
  kind: "mapping",
1652
- resolve: _a,
1653
- construct: wa
1691
+ resolve: Sa,
1692
+ construct: Ta
1654
1693
  }), $t = Mn.extend({
1655
1694
  implicit: [
1656
1695
  On,
@@ -1660,10 +1699,10 @@ var Pn = new de("tag:yaml.org,2002:set", {
1660
1699
  Kn,
1661
1700
  Nn,
1662
1701
  Bn,
1663
- Pn
1702
+ Ln
1664
1703
  ]
1665
- }), je = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, Un = 3, at = 4, yt = 1, Ia = 2, zt = 3, Aa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Sa = /[\x85\u2028\u2029]/, xa = /[,\[\]\{\}]/, qn = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1666
- function Jt(e) {
1704
+ }), je = Object.prototype.hasOwnProperty, ot = 1, Pn = 2, Un = 3, at = 4, yt = 1, $a = 2, Jt = 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 = /[,\[\]\{\}]/, qn = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1705
+ function zt(e) {
1667
1706
  return Object.prototype.toString.call(e);
1668
1707
  }
1669
1708
  function we(e) {
@@ -1678,30 +1717,30 @@ function he(e) {
1678
1717
  function Ue(e) {
1679
1718
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1680
1719
  }
1681
- function Ta(e) {
1720
+ function Oa(e) {
1682
1721
  var n;
1683
1722
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1684
1723
  }
1685
- function $a(e) {
1724
+ function Fa(e) {
1686
1725
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1687
1726
  }
1688
- function Ma(e) {
1727
+ function Ka(e) {
1689
1728
  return 48 <= e && e <= 57 ? e - 48 : -1;
1690
1729
  }
1691
- function Wt(e) {
1730
+ function Yt(e) {
1692
1731
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1693
1732
  ` : 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" : "";
1694
1733
  }
1695
- function ja(e) {
1734
+ function Na(e) {
1696
1735
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1697
1736
  (e - 65536 >> 10) + 55296,
1698
1737
  (e - 65536 & 1023) + 56320
1699
1738
  );
1700
1739
  }
1701
1740
  var Vn = new Array(256), Dn = new Array(256);
1702
- for (var Pe = 0; Pe < 256; Pe++)
1703
- Vn[Pe] = Wt(Pe) ? 1 : 0, Dn[Pe] = Wt(Pe);
1704
- function Ea(e, n) {
1741
+ for (var Le = 0; Le < 256; Le++)
1742
+ Vn[Le] = Yt(Le) ? 1 : 0, Dn[Le] = Yt(Le);
1743
+ function Ba(e, n) {
1705
1744
  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 = [];
1706
1745
  }
1707
1746
  function Gn(e, n) {
@@ -1713,7 +1752,7 @@ function Gn(e, n) {
1713
1752
  line: e.line,
1714
1753
  column: e.position - e.lineStart
1715
1754
  };
1716
- return t.snippet = No(t), new me(n, t);
1755
+ return t.snippet = qo(t), new me(n, t);
1717
1756
  }
1718
1757
  function $(e, n) {
1719
1758
  throw Gn(e, n);
@@ -1721,7 +1760,7 @@ function $(e, n) {
1721
1760
  function it(e, n) {
1722
1761
  e.onWarning && e.onWarning.call(null, Gn(e, n));
1723
1762
  }
1724
- var Yt = {
1763
+ var Wt = {
1725
1764
  YAML: function(e, n, t) {
1726
1765
  var r, o, a;
1727
1766
  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");
@@ -1744,7 +1783,7 @@ function Me(e, n, t, r) {
1744
1783
  for (o = 0, a = s.length; o < a; o += 1)
1745
1784
  i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || $(e, "expected valid JSON character");
1746
1785
  else
1747
- Aa.test(s) && $(e, "the stream contains non-printable characters");
1786
+ Ma.test(s) && $(e, "the stream contains non-printable characters");
1748
1787
  e.result += s;
1749
1788
  }
1750
1789
  }
@@ -1757,8 +1796,8 @@ function qe(e, n, t, r, o, a, i, s, l) {
1757
1796
  var c, d;
1758
1797
  if (Array.isArray(o))
1759
1798
  for (o = Array.prototype.slice.call(o), c = 0, d = o.length; c < d; c += 1)
1760
- Array.isArray(o[c]) && $(e, "nested arrays are not supported inside keys"), typeof o == "object" && Jt(o[c]) === "[object Object]" && (o[c] = "[object Object]");
1761
- if (typeof o == "object" && Jt(o) === "[object Object]" && (o = "[object Object]"), o = String(o), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1799
+ Array.isArray(o[c]) && $(e, "nested arrays are not supported inside keys"), typeof o == "object" && zt(o[c]) === "[object Object]" && (o[c] = "[object Object]");
1800
+ if (typeof o == "object" && zt(o) === "[object Object]" && (o = "[object Object]"), o = String(o), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1762
1801
  if (Array.isArray(a))
1763
1802
  for (c = 0, d = a.length; c < d; c += 1)
1764
1803
  Zt(e, n, a[c], t);
@@ -1801,8 +1840,8 @@ function jt(e, n) {
1801
1840
  n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
1802
1841
  `, n - 1));
1803
1842
  }
1804
- function Oa(e, n, t) {
1805
- var r, o, a, i, s, l, c, d, u = e.kind, g = e.result, f;
1843
+ function La(e, n, t) {
1844
+ var r, o, a, i, s, l, c, d, u = e.kind, m = e.result, f;
1806
1845
  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)))
1807
1846
  return !1;
1808
1847
  for (e.kind = "scalar", e.result = "", a = i = e.position, s = !1; f !== 0; ) {
@@ -1826,9 +1865,9 @@ function Oa(e, n, t) {
1826
1865
  }
1827
1866
  s && (Me(e, a, i, !1), jt(e, e.line - l), a = i = e.position, s = !1), Fe(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1828
1867
  }
1829
- return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
1868
+ return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
1830
1869
  }
1831
- function Fa(e, n) {
1870
+ function Pa(e, n) {
1832
1871
  var t, r, o;
1833
1872
  if (t = e.input.charCodeAt(e.position), t !== 39)
1834
1873
  return !1;
@@ -1842,7 +1881,7 @@ function Fa(e, n) {
1842
1881
  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);
1843
1882
  $(e, "unexpected end of the stream within a single quoted scalar");
1844
1883
  }
1845
- function Ka(e, n) {
1884
+ function Ua(e, n) {
1846
1885
  var t, r, o, a, i, s;
1847
1886
  if (s = e.input.charCodeAt(e.position), s !== 34)
1848
1887
  return !1;
@@ -1854,10 +1893,10 @@ function Ka(e, n) {
1854
1893
  oe(e, !1, n);
1855
1894
  else if (s < 256 && Vn[s])
1856
1895
  e.result += Dn[s], e.position++;
1857
- else if ((i = $a(s)) > 0) {
1896
+ else if ((i = Fa(s)) > 0) {
1858
1897
  for (o = i, a = 0; o > 0; o--)
1859
- s = e.input.charCodeAt(++e.position), (i = Ta(s)) >= 0 ? a = (a << 4) + i : $(e, "expected hexadecimal character");
1860
- e.result += ja(a), e.position++;
1898
+ s = e.input.charCodeAt(++e.position), (i = Oa(s)) >= 0 ? a = (a << 4) + i : $(e, "expected hexadecimal character");
1899
+ e.result += Na(a), e.position++;
1861
1900
  } else
1862
1901
  $(e, "unknown escape sequence");
1863
1902
  t = r = e.position;
@@ -1866,8 +1905,8 @@ function Ka(e, n) {
1866
1905
  }
1867
1906
  $(e, "unexpected end of the stream within a double quoted scalar");
1868
1907
  }
1869
- function Na(e, n) {
1870
- var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, g, f, A = /* @__PURE__ */ Object.create(null), v, p, S, b;
1908
+ function qa(e, n) {
1909
+ 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;
1871
1910
  if (b = e.input.charCodeAt(e.position), b === 91)
1872
1911
  d = 93, f = !1, s = [];
1873
1912
  else if (b === 123)
@@ -1877,11 +1916,11 @@ function Na(e, n) {
1877
1916
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
1878
1917
  if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
1879
1918
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1880
- t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u = g = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = g = !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), (g || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ? qe(e, s, A, p, v, S, r, o, a) : u ? s.push(qe(e, null, A, p, v, S, 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;
1919
+ 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 ? qe(e, s, I, p, v, A, r, o, a) : u ? s.push(qe(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;
1881
1920
  }
1882
1921
  $(e, "unexpected end of the stream within a flow collection");
1883
1922
  }
1884
- function Ba(e, n) {
1923
+ function Ra(e, n) {
1885
1924
  var t, r, o = yt, a = !1, i = !1, s = n, l = 0, c = !1, d, u;
1886
1925
  if (u = e.input.charCodeAt(e.position), u === 124)
1887
1926
  r = !1;
@@ -1891,8 +1930,8 @@ function Ba(e, n) {
1891
1930
  return !1;
1892
1931
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1893
1932
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1894
- yt === o ? o = u === 43 ? zt : Ia : $(e, "repeat of a chomping mode identifier");
1895
- else if ((d = Ma(u)) >= 0)
1933
+ yt === o ? o = u === 43 ? Jt : $a : $(e, "repeat of a chomping mode identifier");
1934
+ else if ((d = Ka(u)) >= 0)
1896
1935
  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);
1897
1936
  else
1898
1937
  break;
@@ -1913,7 +1952,7 @@ function Ba(e, n) {
1913
1952
  continue;
1914
1953
  }
1915
1954
  if (e.lineIndent < s) {
1916
- o === zt ? e.result += se.repeat(`
1955
+ o === Jt ? e.result += se.repeat(`
1917
1956
  `, a ? 1 + l : l) : o === yt && a && (e.result += `
1918
1957
  `);
1919
1958
  break;
@@ -1944,38 +1983,38 @@ function Qt(e, n) {
1944
1983
  }
1945
1984
  return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
1946
1985
  }
1947
- function Pa(e, n, t) {
1948
- var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, A = null, v = null, p = !1, S = !1, b;
1986
+ function Va(e, n, t) {
1987
+ 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;
1949
1988
  if (e.firstTabInLine !== -1)
1950
1989
  return !1;
1951
1990
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
1952
1991
  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))
1953
- b === 63 ? (p && (qe(e, u, g, f, A, null, i, s, l), f = A = v = null), S = !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;
1992
+ b === 63 ? (p && (qe(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;
1954
1993
  else {
1955
- if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
1994
+ if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Pn, !1, !0))
1956
1995
  break;
1957
1996
  if (e.line === a) {
1958
1997
  for (b = e.input.charCodeAt(e.position); Fe(b); )
1959
1998
  b = e.input.charCodeAt(++e.position);
1960
1999
  if (b === 58)
1961
- b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (qe(e, u, g, f, A, null, i, s, l), f = A = v = null), S = !0, p = !1, o = !1, f = e.tag, A = e.result;
1962
- else if (S)
2000
+ b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (qe(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;
2001
+ else if (A)
1963
2002
  $(e, "can not read an implicit mapping pair; a colon is missed");
1964
2003
  else
1965
2004
  return e.tag = c, e.anchor = d, !0;
1966
- } else if (S)
2005
+ } else if (A)
1967
2006
  $(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1968
2007
  else
1969
2008
  return e.tag = c, e.anchor = d, !0;
1970
2009
  }
1971
- if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? A = e.result : v = e.result), p || (qe(e, u, g, f, A, v, i, s, l), f = A = v = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
2010
+ 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 || (qe(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)
1972
2011
  $(e, "bad indentation of a mapping entry");
1973
2012
  else if (e.lineIndent < n)
1974
2013
  break;
1975
2014
  }
1976
- return p && qe(e, u, g, f, A, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
2015
+ return p && qe(e, u, m, f, I, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
1977
2016
  }
1978
- function La(e) {
2017
+ function Da(e) {
1979
2018
  var n, t = !1, r = !1, o, a, i;
1980
2019
  if (i = e.input.charCodeAt(e.position), i !== 33)
1981
2020
  return !1;
@@ -1987,7 +2026,7 @@ function La(e) {
1987
2026
  } else {
1988
2027
  for (; i !== 0 && !he(i); )
1989
2028
  i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), qn.test(o) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
1990
- a = e.input.slice(n, e.position), xa.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
2029
+ a = e.input.slice(n, e.position), Ea.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
1991
2030
  }
1992
2031
  a && !Rn.test(a) && $(e, "tag name cannot contain such characters: " + a);
1993
2032
  try {
@@ -1997,7 +2036,7 @@ function La(e) {
1997
2036
  }
1998
2037
  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;
1999
2038
  }
2000
- function Ua(e) {
2039
+ function Ga(e) {
2001
2040
  var n, t;
2002
2041
  if (t = e.input.charCodeAt(e.position), t !== 38)
2003
2042
  return !1;
@@ -2005,7 +2044,7 @@ function Ua(e) {
2005
2044
  t = e.input.charCodeAt(++e.position);
2006
2045
  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;
2007
2046
  }
2008
- function qa(e) {
2047
+ function Ha(e) {
2009
2048
  var n, t, r;
2010
2049
  if (r = e.input.charCodeAt(e.position), r !== 42)
2011
2050
  return !1;
@@ -2014,32 +2053,32 @@ function qa(e) {
2014
2053
  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;
2015
2054
  }
2016
2055
  function Re(e, n, t, r, o) {
2017
- var a, i, s, l = 1, c = !1, d = !1, u, g, f, A, v, p;
2056
+ var a, i, s, l = 1, c = !1, d = !1, u, m, f, I, v, p;
2018
2057
  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)
2019
- for (; La(e) || Ua(e); )
2058
+ for (; Da(e) || Ga(e); )
2020
2059
  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;
2021
- 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) || Pa(e, p, v)) || Na(e, v) ? d = !0 : (i && Ba(e, v) || Fa(e, v) || Ka(e, v) ? d = !0 : qa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Oa(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)
2060
+ if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Pn === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Va(e, p, v)) || qa(e, v) ? d = !0 : (i && Ra(e, v) || Pa(e, v) || Ua(e, v) ? d = !0 : Ha(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : La(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)
2022
2061
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2023
2062
  else if (e.tag === "?") {
2024
- for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
2025
- if (A = e.implicitTypes[u], A.resolve(e.result)) {
2026
- e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2063
+ 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)
2064
+ if (I = e.implicitTypes[u], I.resolve(e.result)) {
2065
+ e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2027
2066
  break;
2028
2067
  }
2029
2068
  } else if (e.tag !== "!") {
2030
2069
  if (je.call(e.typeMap[e.kind || "fallback"], e.tag))
2031
- A = e.typeMap[e.kind || "fallback"][e.tag];
2070
+ I = e.typeMap[e.kind || "fallback"][e.tag];
2032
2071
  else
2033
- for (A = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, g = f.length; u < g; u += 1)
2072
+ for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
2034
2073
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2035
- A = f[u];
2074
+ I = f[u];
2036
2075
  break;
2037
2076
  }
2038
- A || $(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && $(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : $(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2077
+ 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");
2039
2078
  }
2040
2079
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2041
2080
  }
2042
- function Ra(e) {
2081
+ function Ja(e) {
2043
2082
  var n = e.position, t, r, o, a = !1, i;
2044
2083
  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)); ) {
2045
2084
  for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
@@ -2059,9 +2098,9 @@ function Ra(e) {
2059
2098
  i = e.input.charCodeAt(++e.position);
2060
2099
  o.push(e.input.slice(t, e.position));
2061
2100
  }
2062
- i !== 0 && Mt(e), je.call(Yt, r) ? Yt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2101
+ i !== 0 && Mt(e), je.call(Wt, r) ? Wt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2063
2102
  }
2064
- 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 && Sa.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)) {
2103
+ 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)) {
2065
2104
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
2066
2105
  return;
2067
2106
  }
@@ -2073,14 +2112,14 @@ function Ra(e) {
2073
2112
  function Hn(e, n) {
2074
2113
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2075
2114
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2076
- var t = new Ea(e, n), r = e.indexOf("\0");
2115
+ var t = new Ba(e, n), r = e.indexOf("\0");
2077
2116
  for (r !== -1 && (t.position = r, $(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2078
2117
  t.lineIndent += 1, t.position += 1;
2079
2118
  for (; t.position < t.length - 1; )
2080
- Ra(t);
2119
+ Ja(t);
2081
2120
  return t.documents;
2082
2121
  }
2083
- function Va(e, n, t) {
2122
+ function za(e, n, t) {
2084
2123
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2085
2124
  var r = Hn(e, t);
2086
2125
  if (typeof n != "function")
@@ -2088,7 +2127,7 @@ function Va(e, n, t) {
2088
2127
  for (var o = 0, a = r.length; o < a; o += 1)
2089
2128
  n(r[o]);
2090
2129
  }
2091
- function Da(e, n) {
2130
+ function Ya(e, n) {
2092
2131
  var t = Hn(e, n);
2093
2132
  if (t.length !== 0) {
2094
2133
  if (t.length === 1)
@@ -2096,10 +2135,10 @@ function Da(e, n) {
2096
2135
  throw new me("expected a single document in the stream, but found more");
2097
2136
  }
2098
2137
  }
2099
- var Ga = Va, Ha = Da, zn = {
2100
- loadAll: Ga,
2101
- load: Ha
2102
- }, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Et = 65279, za = 9, We = 10, Ja = 13, Wa = 32, Ya = 33, Za = 34, bt = 35, Qa = 37, Xa = 38, ei = 39, ti = 42, Yn = 44, ni = 45, st = 58, ri = 61, oi = 62, ai = 63, ii = 64, Zn = 91, Qn = 93, si = 96, Xn = 123, li = 124, er = 125, fe = {};
2138
+ var Wa = za, Za = Ya, Jn = {
2139
+ loadAll: Wa,
2140
+ load: Za
2141
+ }, zn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Et = 65279, Qa = 9, Ye = 10, Xa = 13, ei = 32, ti = 33, ni = 34, bt = 35, ri = 37, oi = 38, ai = 39, ii = 42, Wn = 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 = {};
2103
2142
  fe[0] = "\\0";
2104
2143
  fe[7] = "\\a";
2105
2144
  fe[8] = "\\b";
@@ -2115,7 +2154,7 @@ fe[133] = "\\N";
2115
2154
  fe[160] = "\\_";
2116
2155
  fe[8232] = "\\L";
2117
2156
  fe[8233] = "\\P";
2118
- var ui = [
2157
+ var mi = [
2119
2158
  "y",
2120
2159
  "Y",
2121
2160
  "yes",
@@ -2132,16 +2171,16 @@ var ui = [
2132
2171
  "off",
2133
2172
  "Off",
2134
2173
  "OFF"
2135
- ], ci = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2136
- function di(e, n) {
2174
+ ], gi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2175
+ function yi(e, n) {
2137
2176
  var t, r, o, a, i, s, l;
2138
2177
  if (n === null)
2139
2178
  return {};
2140
2179
  for (t = {}, r = Object.keys(n), o = 0, a = r.length; o < a; o += 1)
2141
- 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;
2180
+ 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;
2142
2181
  return t;
2143
2182
  }
2144
- function pi(e) {
2183
+ function hi(e) {
2145
2184
  var n, t, r;
2146
2185
  if (n = e.toString(16).toUpperCase(), e <= 255)
2147
2186
  t = "x", r = 2;
@@ -2153,9 +2192,9 @@ function pi(e) {
2153
2192
  throw new me("code point within a string may not be greater than 0xFFFFFFFF");
2154
2193
  return "\\" + t + se.repeat("0", r - n.length) + n;
2155
2194
  }
2156
- var fi = 1, Ye = 2;
2157
- function mi(e) {
2158
- 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 = di(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 : fi, 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;
2195
+ var vi = 1, We = 2;
2196
+ function bi(e) {
2197
+ 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 === '"' ? We : 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;
2159
2198
  }
2160
2199
  function Xt(e, n) {
2161
2200
  for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
@@ -2164,11 +2203,11 @@ function Xt(e, n) {
2164
2203
  ` && (a += t), a += i;
2165
2204
  return a;
2166
2205
  }
2167
- function Ct(e, n) {
2206
+ function kt(e, n) {
2168
2207
  return `
2169
2208
  ` + se.repeat(" ", e.indent * n);
2170
2209
  }
2171
- function gi(e, n) {
2210
+ function ki(e, n) {
2172
2211
  var t, r, o;
2173
2212
  for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
2174
2213
  if (o = e.implicitTypes[t], o.resolve(n))
@@ -2176,13 +2215,13 @@ function gi(e, n) {
2176
2215
  return !1;
2177
2216
  }
2178
2217
  function lt(e) {
2179
- return e === Wa || e === za;
2218
+ return e === ei || e === Qa;
2180
2219
  }
2181
2220
  function Ze(e) {
2182
2221
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
2183
2222
  }
2184
2223
  function en(e) {
2185
- return Ze(e) && e !== Et && e !== Ja && e !== We;
2224
+ return Ze(e) && e !== Et && e !== Xa && e !== Ye;
2186
2225
  }
2187
2226
  function tn(e, n, t) {
2188
2227
  var r = en(e), o = r && !lt(e);
@@ -2191,13 +2230,13 @@ function tn(e, n, t) {
2191
2230
  (t ? (
2192
2231
  // c = flow-in
2193
2232
  r
2194
- ) : 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
2233
+ ) : r && e !== Wn && e !== Zn && e !== Qn && e !== Xn && e !== er) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
2195
2234
  );
2196
2235
  }
2197
- function yi(e) {
2198
- return Ze(e) && e !== Et && !lt(e) && e !== ni && e !== ai && e !== st && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== bt && e !== Xa && e !== ti && e !== Ya && e !== li && e !== ri && e !== oi && e !== ei && e !== Za && e !== Qa && e !== ii && e !== si;
2236
+ function Ci(e) {
2237
+ return Ze(e) && e !== Et && !lt(e) && e !== si && e !== ci && e !== st && e !== Wn && 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;
2199
2238
  }
2200
- function hi(e) {
2239
+ function _i(e) {
2201
2240
  return !lt(e) && e !== st;
2202
2241
  }
2203
2242
  function He(e, n) {
@@ -2208,39 +2247,39 @@ function tr(e) {
2208
2247
  var n = /^\n* /;
2209
2248
  return n.test(e);
2210
2249
  }
2211
- var nr = 1, kt = 2, rr = 3, or = 4, Le = 5;
2212
- function vi(e, n, t, r, o, a, i, s) {
2213
- var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, A = -1, v = yi(He(e, 0)) && hi(He(e, e.length - 1));
2250
+ var nr = 1, Ct = 2, rr = 3, or = 4, Pe = 5;
2251
+ function wi(e, n, t, r, o, a, i, s) {
2252
+ var l, c = 0, d = null, u = !1, m = !1, f = r !== -1, I = -1, v = Ci(He(e, 0)) && _i(He(e, e.length - 1));
2214
2253
  if (n || i)
2215
2254
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2216
2255
  if (c = He(e, l), !Ze(c))
2217
- return Le;
2256
+ return Pe;
2218
2257
  v = v && tn(c, d, s), d = c;
2219
2258
  }
2220
2259
  else {
2221
2260
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2222
- if (c = He(e, l), c === We)
2223
- u = !0, f && (g = g || // Foldable line = too long, and not more-indented.
2224
- l - A - 1 > r && e[A + 1] !== " ", A = l);
2261
+ if (c = He(e, l), c === Ye)
2262
+ u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
2263
+ l - I - 1 > r && e[I + 1] !== " ", I = l);
2225
2264
  else if (!Ze(c))
2226
- return Le;
2265
+ return Pe;
2227
2266
  v = v && tn(c, d, s), d = c;
2228
2267
  }
2229
- g = g || f && l - A - 1 > r && e[A + 1] !== " ";
2268
+ m = m || f && l - I - 1 > r && e[I + 1] !== " ";
2230
2269
  }
2231
- return !u && !g ? v && !i && !o(e) ? nr : a === Ye ? Le : kt : t > 9 && tr(e) ? Le : i ? a === Ye ? Le : kt : g ? or : rr;
2270
+ return !u && !m ? v && !i && !o(e) ? nr : a === We ? Pe : Ct : t > 9 && tr(e) ? Pe : i ? a === We ? Pe : Ct : m ? or : rr;
2232
2271
  }
2233
- function bi(e, n, t, r, o) {
2272
+ function Ii(e, n, t, r, o) {
2234
2273
  e.dump = function() {
2235
2274
  if (n.length === 0)
2236
- return e.quotingType === Ye ? '""' : "''";
2237
- if (!e.noCompatMode && (ui.indexOf(n) !== -1 || ci.test(n)))
2238
- return e.quotingType === Ye ? '"' + n + '"' : "'" + n + "'";
2275
+ return e.quotingType === We ? '""' : "''";
2276
+ if (!e.noCompatMode && (mi.indexOf(n) !== -1 || gi.test(n)))
2277
+ return e.quotingType === We ? '"' + n + '"' : "'" + n + "'";
2239
2278
  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;
2240
2279
  function l(c) {
2241
- return gi(e, c);
2280
+ return ki(e, c);
2242
2281
  }
2243
- switch (vi(
2282
+ switch (wi(
2244
2283
  n,
2245
2284
  s,
2246
2285
  e.indent,
@@ -2252,14 +2291,14 @@ function bi(e, n, t, r, o) {
2252
2291
  )) {
2253
2292
  case nr:
2254
2293
  return n;
2255
- case kt:
2294
+ case Ct:
2256
2295
  return "'" + n.replace(/'/g, "''") + "'";
2257
2296
  case rr:
2258
2297
  return "|" + nn(n, e.indent) + rn(Xt(n, a));
2259
2298
  case or:
2260
- return ">" + nn(n, e.indent) + rn(Xt(Ci(n, i), a));
2261
- case Le:
2262
- return '"' + ki(n) + '"';
2299
+ return ">" + nn(n, e.indent) + rn(Xt(xi(n, i), a));
2300
+ case Pe:
2301
+ return '"' + Ai(n) + '"';
2263
2302
  default:
2264
2303
  throw new me("impossible error: invalid scalar style");
2265
2304
  }
@@ -2277,7 +2316,7 @@ function rn(e) {
2277
2316
  return e[e.length - 1] === `
2278
2317
  ` ? e.slice(0, -1) : e;
2279
2318
  }
2280
- function Ci(e, n) {
2319
+ function xi(e, n) {
2281
2320
  for (var t = /(\n+)([^\n]*)/g, r = function() {
2282
2321
  var c = e.indexOf(`
2283
2322
  `);
@@ -2300,31 +2339,31 @@ function on(e, n) {
2300
2339
  `, e.length - o > n && i > o ? l += e.slice(o, i) + `
2301
2340
  ` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
2302
2341
  }
2303
- function ki(e) {
2342
+ function Ai(e) {
2304
2343
  for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
2305
- t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || pi(t);
2344
+ t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || hi(t);
2306
2345
  return n;
2307
2346
  }
2308
- function _i(e, n, t) {
2347
+ function Si(e, n, t) {
2309
2348
  var r = "", o = e.tag, a, i, s;
2310
2349
  for (a = 0, i = t.length; a < i; a += 1)
2311
- 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);
2350
+ 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);
2312
2351
  e.tag = o, e.dump = "[" + r + "]";
2313
2352
  }
2314
2353
  function an(e, n, t, r) {
2315
2354
  var o = "", a = e.tag, i, s, l;
2316
2355
  for (i = 0, s = t.length; i < s; i += 1)
2317
- 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 += Ct(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2356
+ 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 && Ye === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2318
2357
  e.tag = a, e.dump = o || "[]";
2319
2358
  }
2320
- function wi(e, n, t) {
2359
+ function Ti(e, n, t) {
2321
2360
  var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
2322
2361
  for (i = 0, s = a.length; i < s; i += 1)
2323
- 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));
2362
+ 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));
2324
2363
  e.tag = o, e.dump = "{" + r + "}";
2325
2364
  }
2326
- function Ii(e, n, t, r) {
2327
- var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, g;
2365
+ function $i(e, n, t, r) {
2366
+ var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, m;
2328
2367
  if (e.sortKeys === !0)
2329
2368
  i.sort();
2330
2369
  else if (typeof e.sortKeys == "function")
@@ -2332,7 +2371,7 @@ function Ii(e, n, t, r) {
2332
2371
  else if (e.sortKeys)
2333
2372
  throw new me("sortKeys must be a boolean or a function");
2334
2373
  for (s = 0, l = i.length; s < l; s += 1)
2335
- g = "", (!r || o !== "") && (g += Ct(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 && We === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += Ct(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, o += g));
2374
+ 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 && Ye === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Ae(e, n + 1, d, !0, u) && (e.dump && Ye === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
2336
2375
  e.tag = a, e.dump = o || "{}";
2337
2376
  }
2338
2377
  function sn(e, n, t) {
@@ -2340,9 +2379,9 @@ function sn(e, n, t) {
2340
2379
  for (o = t ? e.explicitTypes : e.implicitTypes, a = 0, i = o.length; a < i; a += 1)
2341
2380
  if (s = o[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof n == "object" && n instanceof s.instanceOf) && (!s.predicate || s.predicate(n))) {
2342
2381
  if (t ? s.multi && s.representName ? e.tag = s.representName(n) : e.tag = s.tag : e.tag = "?", s.represent) {
2343
- if (l = e.styleMap[s.tag] || s.defaultStyle, Jn.call(s.represent) === "[object Function]")
2382
+ if (l = e.styleMap[s.tag] || s.defaultStyle, zn.call(s.represent) === "[object Function]")
2344
2383
  r = s.represent(n, l);
2345
- else if (Wn.call(s.represent, l))
2384
+ else if (Yn.call(s.represent, l))
2346
2385
  r = s.represent[l](n, l);
2347
2386
  else
2348
2387
  throw new me("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
@@ -2352,20 +2391,20 @@ function sn(e, n, t) {
2352
2391
  }
2353
2392
  return !1;
2354
2393
  }
2355
- function Se(e, n, t, r, o, a, i) {
2394
+ function Ae(e, n, t, r, o, a, i) {
2356
2395
  e.tag = null, e.dump = t, sn(e, t, !1) || sn(e, t, !0);
2357
- var s = Jn.call(e.dump), l = r, c;
2396
+ var s = zn.call(e.dump), l = r, c;
2358
2397
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
2359
- var d = s === "[object Object]" || s === "[object Array]", u, g;
2360
- if (d && (u = e.duplicates.indexOf(t), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && n > 0) && (o = !1), g && e.usedDuplicates[u])
2398
+ var d = s === "[object Object]" || s === "[object Array]", u, m;
2399
+ 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])
2361
2400
  e.dump = "*ref_" + u;
2362
2401
  else {
2363
- if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2364
- r && Object.keys(e.dump).length !== 0 ? (Ii(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (wi(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2402
+ if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2403
+ 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));
2365
2404
  else if (s === "[object Array]")
2366
- r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (_i(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2405
+ 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));
2367
2406
  else if (s === "[object String]")
2368
- e.tag !== "?" && bi(e, e.dump, n, a, l);
2407
+ e.tag !== "?" && Ii(e, e.dump, n, a, l);
2369
2408
  else {
2370
2409
  if (s === "[object Undefined]" || e.skipInvalid)
2371
2410
  return !1;
@@ -2377,7 +2416,7 @@ function Se(e, n, t, r, o, a, i) {
2377
2416
  }
2378
2417
  return !0;
2379
2418
  }
2380
- function Ai(e, n) {
2419
+ function Mi(e, n) {
2381
2420
  var t = [], r = [], o, a;
2382
2421
  for (_t(e, t, r), o = 0, a = r.length; o < a; o += 1)
2383
2422
  n.duplicates.push(t[r[o]]);
@@ -2395,65 +2434,65 @@ function _t(e, n, t) {
2395
2434
  for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
2396
2435
  _t(e[r[o]], n, t);
2397
2436
  }
2398
- function Si(e, n) {
2437
+ function ji(e, n) {
2399
2438
  n = n || {};
2400
- var t = new mi(n);
2401
- t.noRefs || Ai(e, t);
2439
+ var t = new bi(n);
2440
+ t.noRefs || Mi(e, t);
2402
2441
  var r = e;
2403
- return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
2442
+ return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Ae(t, 0, r, !0, !0) ? t.dump + `
2404
2443
  ` : "";
2405
2444
  }
2406
- var xi = Si, Ti = {
2407
- dump: xi
2445
+ var Ei = ji, Oi = {
2446
+ dump: Ei
2408
2447
  };
2409
2448
  function Ot(e, n) {
2410
2449
  return function() {
2411
2450
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2412
2451
  };
2413
2452
  }
2414
- var $i = de, Mi = Cn, ji = In, Ei = $n, Oi = Mn, Fi = $t, Ki = zn.load, Ni = zn.loadAll, Bi = Ti.dump, Pi = me, Li = {
2453
+ var Fi = de, Ki = kn, Ni = In, Bi = $n, Li = Mn, Pi = $t, Ui = Jn.load, qi = Jn.loadAll, Ri = Oi.dump, Vi = me, Di = {
2415
2454
  binary: Kn,
2416
2455
  float: Tn,
2417
2456
  map: wn,
2418
- null: An,
2457
+ null: xn,
2419
2458
  pairs: Bn,
2420
- set: Pn,
2459
+ set: Ln,
2421
2460
  timestamp: On,
2422
- bool: Sn,
2423
- int: xn,
2461
+ bool: An,
2462
+ int: Sn,
2424
2463
  merge: Fn,
2425
2464
  omap: Nn,
2426
2465
  seq: _n,
2427
- str: kn
2428
- }, Ui = Ot("safeLoad", "load"), qi = Ot("safeLoadAll", "loadAll"), Ri = Ot("safeDump", "dump"), Vi = {
2429
- Type: $i,
2430
- Schema: Mi,
2431
- FAILSAFE_SCHEMA: ji,
2432
- JSON_SCHEMA: Ei,
2433
- CORE_SCHEMA: Oi,
2434
- DEFAULT_SCHEMA: Fi,
2435
- load: Ki,
2436
- loadAll: Ni,
2437
- dump: Bi,
2438
- YAMLException: Pi,
2439
- types: Li,
2440
- safeLoad: Ui,
2441
- safeLoadAll: qi,
2442
- safeDump: Ri
2466
+ str: Cn
2467
+ }, Gi = Ot("safeLoad", "load"), Hi = Ot("safeLoadAll", "loadAll"), Ji = Ot("safeDump", "dump"), zi = {
2468
+ Type: Fi,
2469
+ Schema: Ki,
2470
+ FAILSAFE_SCHEMA: Ni,
2471
+ JSON_SCHEMA: Bi,
2472
+ CORE_SCHEMA: Li,
2473
+ DEFAULT_SCHEMA: Pi,
2474
+ load: Ui,
2475
+ loadAll: qi,
2476
+ dump: Ri,
2477
+ YAMLException: Vi,
2478
+ types: Di,
2479
+ safeLoad: Gi,
2480
+ safeLoadAll: Hi,
2481
+ safeDump: Ji
2443
2482
  };
2444
- const Di = {
2483
+ const Yi = {
2445
2484
  key: 0,
2446
2485
  class: "config-card-display-form"
2447
- }, Gi = ["data-testid"], Hi = {
2486
+ }, Wi = ["data-testid"], Zi = {
2448
2487
  key: 0,
2449
2488
  class: "config-card-prop-section-title"
2450
- }, zi = {
2489
+ }, Qi = {
2451
2490
  key: 1,
2452
2491
  class: "config-card-display-json"
2453
- }, Ji = {
2492
+ }, Xi = {
2454
2493
  key: 2,
2455
2494
  class: "config-card-display-yaml"
2456
- }, Wi = /* @__PURE__ */ ae({
2495
+ }, es = /* @__PURE__ */ ae({
2457
2496
  __name: "ConfigCardDisplay",
2458
2497
  props: {
2459
2498
  propertyCollections: {
@@ -2480,29 +2519,29 @@ const Di = {
2480
2519
  },
2481
2520
  setup(e) {
2482
2521
  const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = O(""), i = O("");
2483
- return xe(() => n.format, (s) => {
2484
- s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Vi.dump(n.record));
2522
+ return Se(() => n.format, (s) => {
2523
+ s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = zi.dump(n.record));
2485
2524
  }, { immediate: !0 }), (s, l) => {
2486
2525
  const c = U("KCodeBlock");
2487
- return m(), j(ve, null, [
2488
- e.format === "structured" ? (m(), j("div", Di, [
2489
- (m(!0), j(ve, null, ye(e.propListTypes, (d) => (m(), j("div", {
2526
+ return g(), j(ve, null, [
2527
+ e.format === "structured" ? (g(), j("div", Yi, [
2528
+ (g(!0), j(ve, null, ye(e.propListTypes, (d) => (g(), j("div", {
2490
2529
  key: `config-card-details-${d}-props`,
2491
2530
  class: Ke(`config-card-details-${d}-props`),
2492
2531
  "data-testid": `config-card-details-${d}-props`
2493
2532
  }, [
2494
- d !== "basic" ? (m(), j("div", Hi, F(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2495
- (m(!0), j(ve, null, ye(e.propertyCollections[d], (u) => (m(), V(xt, {
2533
+ d !== "basic" ? (g(), j("div", Zi, F(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2534
+ (g(!0), j(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(St, {
2496
2535
  key: u.key,
2497
2536
  item: u
2498
2537
  }, Te({
2499
2538
  label: h(() => [
2500
- Y(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2539
+ W(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2501
2540
  ]),
2502
- [u.key]: h(({ rowValue: g }) => [
2503
- Y(s.$slots, u.key, {
2541
+ [u.key]: h(({ rowValue: m }) => [
2542
+ W(s.$slots, u.key, {
2504
2543
  row: u,
2505
- rowValue: g
2544
+ rowValue: m
2506
2545
  }, void 0, !0)
2507
2546
  ]),
2508
2547
  _: 2
@@ -2510,14 +2549,14 @@ const Di = {
2510
2549
  o(u) ? {
2511
2550
  name: "label-tooltip",
2512
2551
  fn: h(() => [
2513
- Y(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2552
+ W(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2514
2553
  ]),
2515
2554
  key: "0"
2516
2555
  } : void 0
2517
2556
  ]), 1032, ["item"]))), 128))
2518
- ], 10, Gi))), 128))
2557
+ ], 10, Wi))), 128))
2519
2558
  ])) : G("", !0),
2520
- e.format === "json" ? (m(), j("div", zi, [
2559
+ e.format === "json" ? (g(), j("div", Qi, [
2521
2560
  K(c, {
2522
2561
  id: "config-card-codeblock",
2523
2562
  code: a.value,
@@ -2525,7 +2564,7 @@ const Di = {
2525
2564
  theme: "dark"
2526
2565
  }, null, 8, ["code"])
2527
2566
  ])) : G("", !0),
2528
- e.format === "yaml" ? (m(), j("div", Ji, [
2567
+ e.format === "yaml" ? (g(), j("div", Xi, [
2529
2568
  K(c, {
2530
2569
  id: "config-card-codeblock",
2531
2570
  code: i.value,
@@ -2536,18 +2575,18 @@ const Di = {
2536
2575
  ], 64);
2537
2576
  };
2538
2577
  }
2539
- }), Yi = /* @__PURE__ */ ke(Wi, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", Zi = (e, n) => {
2578
+ }), ts = /* @__PURE__ */ Ce(es, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", ns = (e, n) => {
2540
2579
  const t = e.__vccOpts || e;
2541
2580
  for (const [r, o] of n)
2542
2581
  t[r] = o;
2543
2582
  return t;
2544
- }, Qi = (e) => (yr("data-v-dd88a2bb"), e = e(), hr(), e), Xi = ["aria-hidden"], es = {
2583
+ }, rs = (e) => (yr("data-v-dd88a2bb"), e = e(), hr(), e), os = ["aria-hidden"], as = {
2545
2584
  key: 0,
2546
2585
  "data-testid": "kui-icon-svg-title"
2547
- }, ts = /* @__PURE__ */ Qi(() => /* @__PURE__ */ R("path", {
2586
+ }, is = /* @__PURE__ */ rs(() => /* @__PURE__ */ R("path", {
2548
2587
  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",
2549
2588
  fill: "currentColor"
2550
- }, null, -1)), ns = /* @__PURE__ */ ae({
2589
+ }, null, -1)), ss = /* @__PURE__ */ ae({
2551
2590
  __name: "BookIcon",
2552
2591
  props: {
2553
2592
  /** The accessibility text provided to screen readers */
@@ -2616,14 +2655,14 @@ const Di = {
2616
2655
  lineHeight: "0",
2617
2656
  width: t.value
2618
2657
  }));
2619
- return (o, a) => (m(), V(ze(e.as), {
2658
+ return (o, a) => (g(), V(Je(e.as), {
2620
2659
  "aria-hidden": e.decorative ? "true" : void 0,
2621
2660
  class: "kui-icon book-icon",
2622
2661
  "data-testid": "kui-icon-wrapper-book-icon",
2623
2662
  style: mr(r.value)
2624
2663
  }, {
2625
2664
  default: h(() => [
2626
- (m(), j("svg", {
2665
+ (g(), j("svg", {
2627
2666
  "aria-hidden": e.decorative ? "true" : void 0,
2628
2667
  "data-testid": "kui-icon-svg-book-icon",
2629
2668
  fill: "none",
@@ -2633,23 +2672,23 @@ const Di = {
2633
2672
  width: "100%",
2634
2673
  xmlns: "http://www.w3.org/2000/svg"
2635
2674
  }, [
2636
- e.title ? (m(), j("title", es, F(e.title), 1)) : G("", !0),
2637
- ts
2638
- ], 8, Xi))
2675
+ e.title ? (g(), j("title", as, F(e.title), 1)) : G("", !0),
2676
+ is
2677
+ ], 8, os))
2639
2678
  ]),
2640
2679
  _: 1
2641
2680
  }, 8, ["aria-hidden", "style"]));
2642
2681
  }
2643
- }), rs = /* @__PURE__ */ Zi(ns, [["__scopeId", "data-v-dd88a2bb"]]), os = { "data-testid": "config-card-title" }, as = { class: "config-card-actions" }, is = ["href"], ss = {
2682
+ }), ls = /* @__PURE__ */ ns(ss, [["__scopeId", "data-v-dd88a2bb"]]), us = { "data-testid": "config-card-title" }, cs = { class: "config-card-actions" }, ds = ["href"], ps = {
2644
2683
  key: 2,
2645
2684
  class: "config-card-details-section"
2646
- }, ls = {
2685
+ }, fs = {
2647
2686
  key: 3,
2648
2687
  class: "config-card-details-section"
2649
- }, us = ["data-testid"], cs = {
2688
+ }, ms = ["data-testid"], gs = {
2650
2689
  key: 0,
2651
2690
  class: "config-card-prop-section-title"
2652
- }, ds = /* @__PURE__ */ ae({
2691
+ }, ys = /* @__PURE__ */ ae({
2653
2692
  __name: "EntityBaseConfigCard",
2654
2693
  props: {
2655
2694
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2742,7 +2781,7 @@ const Di = {
2742
2781
  }
2743
2782
  ], d = O("structured"), u = (w) => {
2744
2783
  d.value = w == null ? void 0 : w.value;
2745
- }, g = {
2784
+ }, m = {
2746
2785
  id: {
2747
2786
  type: te.ID,
2748
2787
  label: a("baseConfigCard.commonFields.id_label"),
@@ -2776,21 +2815,21 @@ const Di = {
2776
2815
  // the last property displayed
2777
2816
  section: be.Basic
2778
2817
  }
2779
- }, f = O(!1), A = O(!1), v = O(""), p = O(), S = M(() => {
2818
+ }, f = O(!1), I = O(!1), v = O(""), p = O(), A = M(() => {
2780
2819
  var w, N, B;
2781
2820
  if (!p.value)
2782
2821
  return [];
2783
- const k = [], x = Object.keys(p.value).length;
2822
+ const C = [], S = Object.keys(p.value).length;
2784
2823
  for (const T in p.value) {
2785
- const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B = g[T]) == null ? void 0 : B.order;
2786
- let Q = x;
2787
- (J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), k.push([T, Q]);
2824
+ const L = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, z = (B = m[T]) == null ? void 0 : B.order;
2825
+ let Q = S;
2826
+ (z || z === 0) && (Q = z === -1 ? S + 1 : z), L && (Q = L === -1 ? S + 1 : L), C.push([T, Q]);
2788
2827
  }
2789
- return k.sort(function(T, P) {
2790
- return T[1] - P[1];
2791
- }), k.map((T) => {
2792
- var P, J;
2793
- const Q = T[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = g[Q];
2828
+ return C.sort(function(T, L) {
2829
+ return T[1] - L[1];
2830
+ }), C.map((T) => {
2831
+ var L, z;
2832
+ const Q = T[0], X = (L = p.value) == null ? void 0 : L[Q], ee = ((z = r.configSchema) == null ? void 0 : z[Q]) || {}, ie = m[Q];
2794
2833
  return {
2795
2834
  key: Q,
2796
2835
  value: X,
@@ -2805,37 +2844,37 @@ const Di = {
2805
2844
  var w, N;
2806
2845
  if (!p.value || !r.pluginConfigKey)
2807
2846
  return [];
2808
- const B = p.value[r.pluginConfigKey] || {}, k = Object.keys(B).length, x = [];
2847
+ const B = p.value[r.pluginConfigKey] || {}, C = Object.keys(B).length, S = [];
2809
2848
  for (const T in B) {
2810
- const P = (N = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = B[T];
2811
- let Q = J != null && J !== "" ? k - 1 : k;
2812
- P && (Q = P === -1 ? k + 1 : P), x.push([T, Q]);
2849
+ const L = (N = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, z = B[T];
2850
+ let Q = z != null && z !== "" ? C - 1 : C;
2851
+ L && (Q = L === -1 ? C + 1 : L), S.push([T, Q]);
2813
2852
  }
2814
- return x.sort(function(T, P) {
2815
- return T[1] - P[1];
2816
- }), x.map((T) => {
2817
- var P;
2818
- const J = T[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
2853
+ return S.sort(function(T, L) {
2854
+ return T[1] - L[1];
2855
+ }), S.map((T) => {
2856
+ var L;
2857
+ const z = T[0], Q = B[z], X = ((L = r.pluginConfigSchema) == null ? void 0 : L[z]) || {};
2819
2858
  return {
2820
- key: J,
2859
+ key: z,
2821
2860
  value: Q,
2822
2861
  hidden: X.hidden || !1,
2823
2862
  type: X.type ?? te.Text,
2824
- label: X.label ?? s(J),
2863
+ label: X.label ?? s(z),
2825
2864
  tooltip: X.tooltip ?? void 0,
2826
2865
  section: be.Plugin
2827
2866
  };
2828
2867
  }).filter((T) => !T.hidden);
2829
- }), C = M(() => {
2830
- var w, N, B, k;
2868
+ }), k = M(() => {
2869
+ var w, N, B, C;
2831
2870
  return {
2832
- basic: (w = S.value) == null ? void 0 : w.filter((x) => x.section === be.Basic),
2833
- advanced: (N = S.value) == null ? void 0 : N.filter((x) => x.section === be.Advanced),
2834
- plugin: (k = b.value) == null ? void 0 : k.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
2871
+ basic: (w = A.value) == null ? void 0 : w.filter((S) => S.section === be.Basic),
2872
+ advanced: (N = A.value) == null ? void 0 : N.filter((S) => S.section === be.Advanced),
2873
+ plugin: (C = b.value) == null ? void 0 : C.concat((B = A.value) == null ? void 0 : B.filter((S) => S.section === be.Plugin))
2835
2874
  };
2836
- }), I = M(() => {
2875
+ }), x = M(() => {
2837
2876
  const w = [];
2838
- return C.value.basic.length && w.push("basic"), C.value.advanced.length && w.push("advanced"), C.value.plugin.length && w.push("plugin"), w;
2877
+ return k.value.basic.length && w.push("basic"), k.value.advanced.length && w.push("advanced"), k.value.plugin.length && w.push("plugin"), w;
2839
2878
  }), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = M(() => {
2840
2879
  var w, N;
2841
2880
  let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
@@ -2843,10 +2882,10 @@ const Di = {
2843
2882
  }), H = (w) => {
2844
2883
  p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2845
2884
  };
2846
- return xe(f, (w) => {
2885
+ return Se(f, (w) => {
2847
2886
  n("loading", w);
2848
2887
  }, { immediate: !0 }), Qe(async () => {
2849
- A.value = !1, f.value = !0;
2888
+ I.value = !1, f.value = !0;
2850
2889
  try {
2851
2890
  const { data: w } = await l.get(pe.value);
2852
2891
  if (r.dataKey)
@@ -2861,17 +2900,17 @@ const Di = {
2861
2900
  }), n("fetch:success", w);
2862
2901
  } catch (w) {
2863
2902
  const N = i(w);
2864
- v.value = N.startsWith("code") ? a("baseConfigCard.errors.load") : N, A.value = !0, n("fetch:error", w);
2903
+ v.value = N.startsWith("code") ? a("baseConfigCard.errors.load") : N, I.value = !0, n("fetch:error", w);
2865
2904
  } finally {
2866
2905
  f.value = !1;
2867
2906
  }
2868
2907
  }), (w, N) => {
2869
- const B = U("KLabel"), k = U("KSelect"), x = U("KButton"), T = U("KClipboardProvider"), P = U("KSkeleton"), J = U("KEmptyState"), Q = U("KCard");
2870
- return m(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
2908
+ const B = U("KLabel"), C = U("KSelect"), S = U("KButton"), T = U("KClipboardProvider"), L = U("KSkeleton"), z = U("KEmptyState"), Q = U("KCard");
2909
+ return g(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
2871
2910
  actions: h(() => [
2872
- R("div", as, [
2873
- Y(w.$slots, "actions", {}, void 0, !0),
2874
- e.config.jsonYamlEnabled ? (m(), V(B, {
2911
+ R("div", cs, [
2912
+ W(w.$slots, "actions", {}, void 0, !0),
2913
+ e.config.jsonYamlEnabled ? (g(), V(B, {
2875
2914
  key: 0,
2876
2915
  class: "config-format-select-label",
2877
2916
  "data-testid": "config-format-select-label"
@@ -2881,14 +2920,14 @@ const Di = {
2881
2920
  ]),
2882
2921
  _: 1
2883
2922
  })) : G("", !0),
2884
- e.config.jsonYamlEnabled ? (m(), V(k, {
2923
+ e.config.jsonYamlEnabled ? (g(), V(C, {
2885
2924
  key: 1,
2886
2925
  appearance: "select",
2887
2926
  "data-testid": "select-config-format",
2888
2927
  items: c,
2889
2928
  onChange: u
2890
2929
  })) : G("", !0),
2891
- r.config.jsonYamlEnabled && e.configCardDoc ? (m(), V(x, {
2930
+ r.config.jsonYamlEnabled && e.configCardDoc ? (g(), V(S, {
2892
2931
  key: 2,
2893
2932
  appearance: "btn-link",
2894
2933
  class: "book-icon",
@@ -2900,14 +2939,14 @@ const Di = {
2900
2939
  rel: "noopener",
2901
2940
  target: "_blank"
2902
2941
  }, [
2903
- K(y(rs), { size: y(co) }, null, 8, ["size"])
2904
- ], 8, is)
2942
+ K(y(ls), { size: y(yo) }, null, 8, ["size"])
2943
+ ], 8, ds)
2905
2944
  ]),
2906
2945
  _: 1
2907
2946
  })) : G("", !0),
2908
- e.config.jsonYamlEnabled ? G("", !0) : (m(), V(T, { key: 3 }, {
2947
+ e.config.jsonYamlEnabled ? G("", !0) : (g(), V(T, { key: 3 }, {
2909
2948
  default: h(({ copyToClipboard: X }) => [
2910
- !f.value && !A.value ? (m(), V(x, {
2949
+ !f.value && !I.value ? (g(), V(S, {
2911
2950
  key: 0,
2912
2951
  appearance: "btn-link",
2913
2952
  "data-testid": "json-copy-button",
@@ -2924,12 +2963,12 @@ const Di = {
2924
2963
  ])
2925
2964
  ]),
2926
2965
  body: h(() => [
2927
- f.value ? (m(), V(P, {
2966
+ f.value ? (g(), V(L, {
2928
2967
  key: 0,
2929
2968
  "data-testid": "config-card-loader",
2930
2969
  "table-columns": 2,
2931
2970
  type: "table"
2932
- })) : A.value ? (m(), V(J, {
2971
+ })) : I.value ? (g(), V(z, {
2933
2972
  key: 1,
2934
2973
  "data-testid": "config-card-fetch-error",
2935
2974
  "is-error": ""
@@ -2939,39 +2978,39 @@ const Di = {
2939
2978
  ]),
2940
2979
  _: 1
2941
2980
  })) : G("", !0),
2942
- e.config.jsonYamlEnabled ? (m(), j("div", ss, [
2943
- K(Yi, {
2981
+ e.config.jsonYamlEnabled ? (g(), j("div", ps, [
2982
+ K(ts, {
2944
2983
  format: d.value,
2945
- "prop-list-types": I.value,
2946
- "property-collections": C.value,
2984
+ "prop-list-types": x.value,
2985
+ "property-collections": k.value,
2947
2986
  record: p.value
2948
2987
  }, Te({ _: 2 }, [
2949
2988
  ye(Object.keys(w.$slots), (X) => ({
2950
2989
  name: X,
2951
2990
  fn: h(({ row: ee, rowValue: ie }) => [
2952
- Y(w.$slots, X, {
2991
+ W(w.$slots, X, {
2953
2992
  row: ee,
2954
2993
  rowValue: ie
2955
2994
  }, void 0, !0)
2956
2995
  ])
2957
2996
  }))
2958
2997
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
2959
- ])) : (m(), j("div", ls, [
2960
- (m(!0), j(ve, null, ye(I.value, (X) => (m(), j("div", {
2998
+ ])) : (g(), j("div", fs, [
2999
+ (g(!0), j(ve, null, ye(x.value, (X) => (g(), j("div", {
2961
3000
  key: `config-card-details-${X}-props`,
2962
3001
  class: Ke(`config-card-details-${X}-props`),
2963
3002
  "data-testid": `config-card-details-${X}-props`
2964
3003
  }, [
2965
- X !== "basic" ? (m(), j("div", cs, F(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2966
- (m(!0), j(ve, null, ye(C.value[X], (ee) => (m(), V(xt, {
3004
+ X !== "basic" ? (g(), j("div", gs, F(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3005
+ (g(!0), j(ve, null, ye(k.value[X], (ee) => (g(), V(St, {
2967
3006
  key: ee.key,
2968
3007
  item: ee
2969
3008
  }, Te({
2970
3009
  label: h(() => [
2971
- Y(w.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3010
+ W(w.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
2972
3011
  ]),
2973
3012
  [ee.key]: h(({ rowValue: ie }) => [
2974
- Y(w.$slots, ee.key, {
3013
+ W(w.$slots, ee.key, {
2975
3014
  row: ee,
2976
3015
  rowValue: ie
2977
3016
  }, void 0, !0)
@@ -2981,12 +3020,12 @@ const Di = {
2981
3020
  ne(ee) ? {
2982
3021
  name: "label-tooltip",
2983
3022
  fn: h(() => [
2984
- Y(w.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3023
+ W(w.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
2985
3024
  ]),
2986
3025
  key: "0"
2987
3026
  } : void 0
2988
3027
  ]), 1032, ["item"]))), 128))
2989
- ], 10, us))), 128))
3028
+ ], 10, ms))), 128))
2990
3029
  ]))
2991
3030
  ]),
2992
3031
  _: 2
@@ -2994,8 +3033,8 @@ const Di = {
2994
3033
  e.hideTitle ? void 0 : {
2995
3034
  name: "title",
2996
3035
  fn: h(() => [
2997
- R("div", os, [
2998
- Y(w.$slots, "title", {}, () => [
3036
+ R("div", us, [
3037
+ W(w.$slots, "title", {}, () => [
2999
3038
  Z(F(y(a)("baseConfigCard.title")), 1)
3000
3039
  ], !0)
3001
3040
  ])
@@ -3005,10 +3044,10 @@ const Di = {
3005
3044
  ]), 1024);
3006
3045
  };
3007
3046
  }
3008
- }), ps = /* @__PURE__ */ ke(ds, [["__scopeId", "data-v-64349aa2"]]), fs = ["onReset", "onSubmit"], ms = {
3047
+ }), hs = /* @__PURE__ */ Ce(ys, [["__scopeId", "data-v-64349aa2"]]), vs = ["onReset", "onSubmit"], bs = {
3009
3048
  class: "form-actions",
3010
3049
  "data-testid": "form-actions"
3011
- }, gs = /* @__PURE__ */ ae({
3050
+ }, ks = /* @__PURE__ */ ae({
3012
3051
  __name: "EntityBaseForm",
3013
3052
  props: {
3014
3053
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3060,41 +3099,41 @@ const Di = {
3060
3099
  var t;
3061
3100
  const r = e, o = wt(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { axiosInstance: s } = ue.useAxios({
3062
3101
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3063
- }), l = O(!1), c = O(!1), d = O(""), u = M(() => r.canSubmit === !1 || r.isReadonly), g = M(() => {
3064
- var p, S;
3102
+ }), l = O(!1), c = O(!1), d = O(""), u = M(() => r.canSubmit === !1 || r.isReadonly), m = M(() => {
3103
+ var p, A;
3065
3104
  if (!r.editId)
3066
3105
  return "";
3067
3106
  let b = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3068
- 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, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), b = b.replace(/{id}/gi, r.editId), b;
3107
+ 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;
3069
3108
  }), f = () => {
3070
- r.config.cancelRoute ? o.push(r.config.cancelRoute) : A();
3071
- }, A = () => {
3109
+ r.config.cancelRoute ? o.push(r.config.cancelRoute) : I();
3110
+ }, I = () => {
3072
3111
  n("cancel");
3073
3112
  }, v = () => {
3074
3113
  u.value || n("submit");
3075
3114
  };
3076
- return xe(() => l.value, (p) => {
3115
+ return Se(() => l.value, (p) => {
3077
3116
  n("loading", p);
3078
3117
  }, { immediate: !0 }), Qe(async () => {
3079
3118
  if (r.editId)
3080
3119
  try {
3081
3120
  c.value = !1, l.value = !0;
3082
- const { data: p } = await s.get(g.value);
3121
+ const { data: p } = await s.get(m.value);
3083
3122
  n("fetch:success", p);
3084
3123
  } catch (p) {
3085
- const S = i(p);
3086
- d.value = S.startsWith("code") ? a("baseForm.errors.edit") : S, c.value = !0, n("fetch:error", p);
3124
+ const A = i(p);
3125
+ d.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, c.value = !0, n("fetch:error", p);
3087
3126
  } finally {
3088
3127
  l.value = !1;
3089
3128
  }
3090
- }), (p, S) => {
3091
- const b = U("KSkeleton"), C = U("KEmptyState"), I = U("KAlert"), ne = U("KButton"), pe = U("KCard");
3092
- return m(), V(pe, { class: "kong-ui-entity-base-form" }, {
3129
+ }), (p, A) => {
3130
+ const b = U("KSkeleton"), k = U("KEmptyState"), x = U("KAlert"), ne = U("KButton"), pe = U("KCard");
3131
+ return g(), V(pe, { class: "kong-ui-entity-base-form" }, {
3093
3132
  body: h(() => [
3094
- l.value ? (m(), V(b, {
3133
+ l.value ? (g(), V(b, {
3095
3134
  key: 0,
3096
3135
  type: "form"
3097
- })) : c.value ? (m(), V(C, {
3136
+ })) : c.value ? (g(), V(k, {
3098
3137
  key: 1,
3099
3138
  "cta-text": y(a)("baseForm.actions.back"),
3100
3139
  "data-testid": "form-fetch-error",
@@ -3105,21 +3144,21 @@ const Di = {
3105
3144
  R("h3", null, F(d.value), 1)
3106
3145
  ]),
3107
3146
  _: 1
3108
- }, 8, ["cta-text"])) : (m(), j("form", {
3147
+ }, 8, ["cta-text"])) : (g(), j("form", {
3109
3148
  key: 2,
3110
3149
  "data-testid": "form-content",
3111
- onReset: rt(A, ["prevent"]),
3150
+ onReset: rt(I, ["prevent"]),
3112
3151
  onSubmit: rt(v, ["prevent"])
3113
3152
  }, [
3114
- Y(p.$slots, "default", {}, void 0, !0),
3115
- e.errorMessage ? (m(), V(I, {
3153
+ W(p.$slots, "default", {}, void 0, !0),
3154
+ e.errorMessage ? (g(), V(x, {
3116
3155
  key: 0,
3117
3156
  "alert-message": e.errorMessage,
3118
3157
  appearance: "danger",
3119
3158
  "data-testid": "form-error"
3120
3159
  }, null, 8, ["alert-message"])) : G("", !0),
3121
- R("div", ms, [
3122
- Y(p.$slots, "form-actions", {}, () => [
3160
+ R("div", bs, [
3161
+ W(p.$slots, "form-actions", {}, () => [
3123
3162
  K(ne, {
3124
3163
  appearance: "outline",
3125
3164
  "data-testid": "form-cancel",
@@ -3144,16 +3183,16 @@ const Di = {
3144
3183
  }, 8, ["disabled"])
3145
3184
  ], !0)
3146
3185
  ])
3147
- ], 40, fs))
3186
+ ], 40, vs))
3148
3187
  ]),
3149
3188
  _: 3
3150
3189
  });
3151
3190
  };
3152
3191
  }
3153
- }), ys = /* @__PURE__ */ ke(gs, [["__scopeId", "data-v-44a90aae"]]), hs = {
3192
+ }), Cs = /* @__PURE__ */ Ce(ks, [["__scopeId", "data-v-44a90aae"]]), _s = {
3154
3193
  key: 0,
3155
3194
  "data-testid": "first-col"
3156
- }, vs = /* @__PURE__ */ ae({
3195
+ }, ws = /* @__PURE__ */ ae({
3157
3196
  __name: "EntityBaseTableCell",
3158
3197
  props: {
3159
3198
  keyName: {
@@ -3174,17 +3213,17 @@ const Di = {
3174
3213
  return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3175
3214
  }), o = M(() => {
3176
3215
  var v, p;
3177
- const S = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3178
- return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3216
+ const A = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3217
+ return A ? ((p = A[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3179
3218
  });
3180
3219
  let a;
3181
3220
  const i = () => {
3182
3221
  a && (a.disconnect(), a = void 0);
3183
3222
  }, s = () => {
3184
- var v, p, S;
3185
- 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 = ((S = l.value) == null ? void 0 : S.innerText) || "";
3186
- }, l = O({}), c = O(0), d = O(0), u = O(""), g = M(() => [r.value, t.value]), f = xe(
3187
- g,
3223
+ var v, p, A;
3224
+ 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) || "";
3225
+ }, l = O({}), c = O(0), d = O(0), u = O(""), m = M(() => [r.value, t.value]), f = Se(
3226
+ m,
3188
3227
  (v) => {
3189
3228
  if (o.value && (i(), "ResizeObserver" in window && window)) {
3190
3229
  a = new ResizeObserver((p) => {
@@ -3197,37 +3236,37 @@ const Di = {
3197
3236
  }
3198
3237
  },
3199
3238
  { immediate: !0, flush: "post", deep: !0 }
3200
- ), A = M(() => o.value ? c.value > d.value : !1);
3239
+ ), I = M(() => o.value ? c.value > d.value : !1);
3201
3240
  return pr(() => {
3202
3241
  s();
3203
3242
  }), fr(() => {
3204
3243
  f();
3205
3244
  }), (v, p) => {
3206
- const S = U("KTooltip");
3207
- return m(), j("span", {
3245
+ const A = U("KTooltip");
3246
+ return g(), j("span", {
3208
3247
  ref_key: "contentRef",
3209
3248
  ref: l,
3210
3249
  class: "content-wrapper"
3211
3250
  }, [
3212
- o.value ? (m(), j("span", hs, [
3213
- K(S, {
3214
- label: A.value ? u.value : "",
3251
+ o.value ? (g(), j("span", _s, [
3252
+ K(A, {
3253
+ label: I.value ? u.value : "",
3215
3254
  "max-width": "300",
3216
3255
  placement: "bottomStart"
3217
3256
  }, {
3218
3257
  default: h(() => [
3219
- Y(v.$slots, "default", {}, void 0, !0)
3258
+ W(v.$slots, "default", {}, void 0, !0)
3220
3259
  ]),
3221
3260
  _: 3
3222
3261
  }, 8, ["label"])
3223
- ])) : Y(v.$slots, "default", { key: 1 }, void 0, !0)
3262
+ ])) : W(v.$slots, "default", { key: 1 }, void 0, !0)
3224
3263
  ], 512);
3225
3264
  };
3226
3265
  }
3227
- }), bs = /* @__PURE__ */ ke(vs, [["__scopeId", "data-v-e42a20c9"]]), Cs = { class: "toolbar-container" }, ks = {
3266
+ }), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-e42a20c9"]]), xs = { class: "toolbar-container" }, As = {
3228
3267
  key: 0,
3229
3268
  class: "toolbar-button-container"
3230
- }, _s = ["data-testid"], ws = /* @__PURE__ */ ae({
3269
+ }, Ss = ["data-testid"], Ts = /* @__PURE__ */ ae({
3231
3270
  __name: "EntityBaseTable",
3232
3271
  props: {
3233
3272
  // table header configuration
@@ -3336,56 +3375,56 @@ const Di = {
3336
3375
  },
3337
3376
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3338
3377
  setup(e, { emit: n }) {
3339
- const t = e, { i18n: { t: r } } = ue.useI18n(), o = M(() => t.cacheIdentifier || t.preferencesStorageKey), a = (C) => C.hasData || !!t.query, i = M(() => {
3340
- const C = [];
3341
- return Object.keys(t.tableHeaders).forEach((I) => {
3342
- const ne = t.tableHeaders[I];
3343
- C.push({
3344
- label: ne.label ?? I,
3345
- key: I,
3378
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = M(() => t.cacheIdentifier || t.preferencesStorageKey), a = (k) => k.hasData || !!t.query, i = M(() => {
3379
+ const k = [];
3380
+ return Object.keys(t.tableHeaders).forEach((x) => {
3381
+ const ne = t.tableHeaders[x];
3382
+ k.push({
3383
+ label: ne.label ?? x,
3384
+ key: x,
3346
3385
  sortable: ne.sortable ?? !1
3347
3386
  });
3348
- }), t.enableEntityActions && C.push({
3387
+ }), t.enableEntityActions && k.push({
3349
3388
  key: "actions",
3350
3389
  hideLabel: !0
3351
- }), C;
3352
- }), s = (C) => ({
3353
- "data-rowid": C.id,
3354
- "data-testid": C.name,
3355
- ...t.rowAttributes(C)
3356
- }), l = O({}), c = (C) => {
3357
- var I;
3358
- return (I = l.value) == null ? void 0 : I.$el.querySelector(`[data-rowid="${C.id}"]`);
3359
- }, d = (C) => {
3360
- const I = {
3361
- "data-testid": C.headerKey,
3362
- ...t.cellAttributes(C)
3390
+ }), k;
3391
+ }), s = (k) => ({
3392
+ "data-rowid": k.id,
3393
+ "data-testid": k.name,
3394
+ ...t.rowAttributes(k)
3395
+ }), l = O({}), c = (k) => {
3396
+ var x;
3397
+ return (x = l.value) == null ? void 0 : x.$el.querySelector(`[data-rowid="${k.id}"]`);
3398
+ }, d = (k) => {
3399
+ const x = {
3400
+ "data-testid": k.headerKey,
3401
+ ...t.cellAttributes(k)
3363
3402
  };
3364
- return C.colIndex === 0 && (I.style = {
3403
+ return k.colIndex === 0 && (x.style = {
3365
3404
  maxWidth: "250px",
3366
3405
  overflowX: "hidden",
3367
3406
  textOverflow: "ellipsis"
3368
- }), I;
3407
+ }), x;
3369
3408
  }, u = () => {
3370
- n("empty-state-cta-clicked"), g();
3371
- }, g = () => {
3409
+ n("empty-state-cta-clicked"), m();
3410
+ }, m = () => {
3372
3411
  n("clear-search-input");
3373
- }, f = M(() => t.disableRowClick ? void 0 : (C, I) => {
3374
- n("click:row", I);
3375
- }), A = (C) => {
3376
- n("sort", C);
3377
- }, { setTablePreferences: v, getTablePreferences: p } = Ar(), S = M(() => {
3378
- const C = p(t.preferencesStorageKey);
3412
+ }, f = M(() => t.disableRowClick ? void 0 : (k, x) => {
3413
+ n("click:row", x);
3414
+ }), I = (k) => {
3415
+ n("sort", k);
3416
+ }, { setTablePreferences: v, getTablePreferences: p } = Ar(), A = M(() => {
3417
+ const k = p(t.preferencesStorageKey);
3379
3418
  return {
3380
3419
  ...t.initialFetcherParams,
3381
- ...C
3420
+ ...k
3382
3421
  };
3383
- }), b = (C) => {
3384
- t.preferencesStorageKey && v(t.preferencesStorageKey, C);
3422
+ }), b = (k) => {
3423
+ t.preferencesStorageKey && v(t.preferencesStorageKey, k);
3385
3424
  };
3386
- return (C, I) => {
3425
+ return (k, x) => {
3387
3426
  const ne = U("KIcon"), pe = U("KButton"), H = U("KDropdownMenu"), w = U("KTable"), N = U("KCard");
3388
- return m(), V(N, {
3427
+ return g(), V(N, {
3389
3428
  class: "kong-ui-entity-base-table",
3390
3429
  title: e.title
3391
3430
  }, {
@@ -3411,27 +3450,27 @@ const Di = {
3411
3450
  "has-error": !!e.errorMessage,
3412
3451
  headers: i.value,
3413
3452
  "hide-pagination-when-optional": "",
3414
- "initial-fetcher-params": S.value,
3453
+ "initial-fetcher-params": A.value,
3415
3454
  "is-loading": e.isLoading,
3416
3455
  "pagination-type": e.paginationType,
3417
3456
  "row-attrs": s,
3418
3457
  "search-input": e.query,
3419
3458
  onKtableEmptyStateCtaClicked: u,
3420
3459
  "onRow:click": f.value,
3421
- onSort: I[0] || (I[0] = (B) => A(B)),
3460
+ onSort: x[0] || (x[0] = (B) => I(B)),
3422
3461
  "onUpdate:tablePreferences": b
3423
3462
  }, Te({
3424
3463
  toolbar: h(({ state: B }) => [
3425
- et(R("div", Cs, [
3426
- Y(C.$slots, "toolbar-filter", {}, void 0, !0),
3427
- C.$slots["toolbar-button"] ? (m(), j("div", ks, [
3428
- Y(C.$slots, "toolbar-button", {}, void 0, !0)
3464
+ et(R("div", xs, [
3465
+ W(k.$slots, "toolbar-filter", {}, void 0, !0),
3466
+ k.$slots["toolbar-button"] ? (g(), j("div", As, [
3467
+ W(k.$slots, "toolbar-button", {}, void 0, !0)
3429
3468
  ])) : G("", !0)
3430
3469
  ], 512), [
3431
3470
  [tt, a(B)]
3432
3471
  ])
3433
3472
  ]),
3434
- actions: h(({ row: B, rowKey: k, rowValue: x }) => [
3473
+ actions: h(({ row: B, rowKey: C, rowValue: S }) => [
3435
3474
  R("div", {
3436
3475
  class: "actions-container",
3437
3476
  "data-testid": B.name
@@ -3441,10 +3480,10 @@ const Di = {
3441
3480
  width: e.dropdownMenuWidth
3442
3481
  }, {
3443
3482
  items: h(() => [
3444
- Y(C.$slots, "actions", {
3483
+ W(k.$slots, "actions", {
3445
3484
  row: B,
3446
- rowKey: k,
3447
- rowValue: x
3485
+ rowKey: C,
3486
+ rowValue: S
3448
3487
  }, void 0, !0)
3449
3488
  ]),
3450
3489
  default: h(() => [
@@ -3455,7 +3494,7 @@ const Di = {
3455
3494
  }, {
3456
3495
  icon: h(() => [
3457
3496
  K(ne, {
3458
- color: y(lo),
3497
+ color: y(mo),
3459
3498
  icon: "more",
3460
3499
  size: "16"
3461
3500
  }, null, 8, ["color"])
@@ -3465,24 +3504,24 @@ const Di = {
3465
3504
  ]),
3466
3505
  _: 2
3467
3506
  }, 1032, ["width"])
3468
- ], 8, _s)
3507
+ ], 8, Ss)
3469
3508
  ]),
3470
3509
  _: 2
3471
3510
  }, [
3472
- ye(e.tableHeaders, (B, k) => ({
3473
- name: k,
3474
- fn: h(({ row: x, rowKey: T, rowValue: P }) => [
3475
- K(bs, {
3476
- "key-name": String(k),
3477
- "row-el": c(x)
3511
+ ye(e.tableHeaders, (B, C) => ({
3512
+ name: C,
3513
+ fn: h(({ row: S, rowKey: T, rowValue: L }) => [
3514
+ K(Is, {
3515
+ "key-name": String(C),
3516
+ "row-el": c(S)
3478
3517
  }, {
3479
3518
  default: h(() => [
3480
- Y(C.$slots, k, {
3481
- row: x,
3519
+ W(k.$slots, C, {
3520
+ row: S,
3482
3521
  rowKey: T,
3483
- rowValue: P
3522
+ rowValue: L
3484
3523
  }, () => [
3485
- Z(F(P), 1)
3524
+ Z(F(L), 1)
3486
3525
  ], !0)
3487
3526
  ]),
3488
3527
  _: 2
@@ -3495,13 +3534,13 @@ const Di = {
3495
3534
  }, 8, ["title"]);
3496
3535
  };
3497
3536
  }
3498
- }), Is = /* @__PURE__ */ ke(ws, [["__scopeId", "data-v-6bf92df6"]]), As = {
3537
+ }), $s = /* @__PURE__ */ Ce(Ts, [["__scopeId", "data-v-6bf92df6"]]), Ms = {
3499
3538
  key: 0,
3500
3539
  class: "kong-ui-entity-delete-error"
3501
- }, Ss = {
3540
+ }, js = {
3502
3541
  key: 1,
3503
3542
  class: "description"
3504
- }, xs = /* @__PURE__ */ ae({
3543
+ }, Es = /* @__PURE__ */ ae({
3505
3544
  __name: "EntityDeleteModal",
3506
3545
  props: {
3507
3546
  visible: {
@@ -3547,7 +3586,7 @@ const Di = {
3547
3586
  };
3548
3587
  return (s, l) => {
3549
3588
  const c = U("KAlert"), d = U("KPrompt");
3550
- return m(), V(d, {
3589
+ return g(), V(d, {
3551
3590
  "action-button-text": "Yes, delete",
3552
3591
  "action-pending": e.actionPending,
3553
3592
  class: "kong-ui-entity-delete-modal",
@@ -3559,7 +3598,7 @@ const Di = {
3559
3598
  onProceed: i
3560
3599
  }, {
3561
3600
  "body-content": h(() => [
3562
- e.error ? (m(), j("div", As, [
3601
+ e.error ? (g(), j("div", Ms, [
3563
3602
  K(c, { appearance: "danger" }, {
3564
3603
  alertMessage: h(() => [
3565
3604
  Z(F(e.error), 1)
@@ -3585,8 +3624,8 @@ const Di = {
3585
3624
  key: "0"
3586
3625
  } : void 0
3587
3626
  ]), 1032, ["keypath"]),
3588
- t.description || s.$slots.description ? (m(), j("div", Ss, [
3589
- Y(s.$slots, "description", {}, () => [
3627
+ t.description || s.$slots.description ? (g(), j("div", js, [
3628
+ W(s.$slots, "description", {}, () => [
3590
3629
  R("p", null, F(t.description), 1)
3591
3630
  ], !0)
3592
3631
  ])) : G("", !0)
@@ -3595,13 +3634,13 @@ const Di = {
3595
3634
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3596
3635
  };
3597
3636
  }
3598
- }), Ts = /* @__PURE__ */ ke(xs, [["__scopeId", "data-v-1c9a2a07"]]), $s = {
3637
+ }), Os = /* @__PURE__ */ Ce(Es, [["__scopeId", "data-v-1c9a2a07"]]), Fs = {
3599
3638
  fill: "none",
3600
3639
  height: "20",
3601
3640
  viewBox: "0 0 20 20",
3602
3641
  width: "20",
3603
3642
  xmlns: "http://www.w3.org/2000/svg"
3604
- }, Ms = {
3643
+ }, Ks = {
3605
3644
  id: "mask0_180_20349",
3606
3645
  height: "20",
3607
3646
  maskUnits: "userSpaceOnUse",
@@ -3609,35 +3648,35 @@ const Di = {
3609
3648
  width: "20",
3610
3649
  x: "0",
3611
3650
  y: "0"
3612
- }, js = ["fill"], Es = { mask: "url(#mask0_180_20349)" }, Os = ["fill"], Fs = /* @__PURE__ */ ae({
3651
+ }, Ns = ["fill"], Bs = { mask: "url(#mask0_180_20349)" }, Ls = ["fill"], Ps = /* @__PURE__ */ ae({
3613
3652
  __name: "IconFilter",
3614
3653
  props: {
3615
3654
  color: {
3616
3655
  type: String,
3617
- default: `var(--kong-ui-entity-filter-color, ${io})`
3656
+ default: `var(--kong-ui-entity-filter-color, ${po})`
3618
3657
  }
3619
3658
  },
3620
3659
  setup(e) {
3621
- return (n, t) => (m(), j("svg", $s, [
3622
- R("mask", Ms, [
3660
+ return (n, t) => (g(), j("svg", Fs, [
3661
+ R("mask", Ks, [
3623
3662
  R("rect", {
3624
3663
  fill: e.color,
3625
3664
  height: "20",
3626
3665
  width: "20"
3627
- }, null, 8, js)
3666
+ }, null, 8, Ns)
3628
3667
  ]),
3629
- R("g", Es, [
3668
+ R("g", Bs, [
3630
3669
  R("path", {
3631
3670
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3632
3671
  fill: e.color
3633
- }, null, 8, Os)
3672
+ }, null, 8, Ls)
3634
3673
  ])
3635
3674
  ]));
3636
3675
  }
3637
- }), Ks = {
3676
+ }), Us = {
3638
3677
  key: 1,
3639
3678
  class: "kong-ui-entity-filter"
3640
- }, Ns = { class: "menu-item-title" }, Bs = { class: "menu-item-indicator" }, Ps = { class: "menu-item-body" }, Ls = ["for"], Us = { class: "menu-item-buttons" }, qs = /* @__PURE__ */ ae({
3679
+ }, qs = { class: "menu-item-title" }, Rs = { class: "menu-item-indicator" }, Vs = { class: "menu-item-body" }, Ds = ["for"], Gs = { class: "menu-item-buttons" }, Hs = /* @__PURE__ */ ae({
3641
3680
  __name: "EntityFilter",
3642
3681
  props: {
3643
3682
  // filter config, either exact match or fuzzy match
@@ -3659,19 +3698,19 @@ const Di = {
3659
3698
  setup(e, { emit: n }) {
3660
3699
  const t = e, { i18n: { t: r } } = ue.useI18n(), o = O(!1), a = O({}), i = M(() => {
3661
3700
  const p = [];
3662
- return new URLSearchParams(t.modelValue).forEach((S, b) => {
3663
- S !== "" && p.push(b);
3701
+ return new URLSearchParams(t.modelValue).forEach((A, b) => {
3702
+ A !== "" && p.push(b);
3664
3703
  }), p;
3665
3704
  }), s = M(() => {
3666
3705
  const p = t.config.fields;
3667
- return Object.keys(p).filter((S) => p[S].searchable).map((S) => ({
3668
- label: p[S].label || S,
3669
- value: S
3706
+ return Object.keys(p).filter((A) => p[A].searchable).map((A) => ({
3707
+ label: p[A].label || A,
3708
+ value: A
3670
3709
  }));
3671
3710
  });
3672
- xe(() => t.modelValue, (p) => {
3673
- a.value = {}, new URLSearchParams(p).forEach((S, b) => {
3674
- a.value[b] = S;
3711
+ Se(() => t.modelValue, (p) => {
3712
+ a.value = {}, new URLSearchParams(p).forEach((A, b) => {
3713
+ a.value[b] = A;
3675
3714
  });
3676
3715
  });
3677
3716
  const l = () => {
@@ -3679,28 +3718,28 @@ const Di = {
3679
3718
  }, c = (p) => {
3680
3719
  n("update:modelValue", p);
3681
3720
  }, d = (p) => `filter-${p}`, u = (p) => {
3682
- var S, b;
3683
- return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((C) => ({
3684
- value: C,
3685
- label: C
3721
+ var A, b;
3722
+ return (((b = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : b.values) ?? []).map((k) => ({
3723
+ value: k,
3724
+ label: k
3686
3725
  }));
3687
- }, g = (p) => {
3688
- var S, b;
3689
- return ((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.type) ?? "text";
3726
+ }, m = (p) => {
3727
+ var A, b;
3728
+ return ((b = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : b.type) ?? "text";
3690
3729
  }, f = (p) => {
3691
3730
  a.value = {
3692
3731
  ...a.value,
3693
3732
  [p]: ""
3694
3733
  }, v();
3695
- }, A = () => {
3734
+ }, I = () => {
3696
3735
  a.value = {}, v(!0);
3697
3736
  }, v = (p = !1) => {
3698
- const S = Object.keys(a.value).reduce((b, C) => (a.value[C] && (b[C] = `${a.value[C]}`), b), {});
3699
- p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
3737
+ const A = Object.keys(a.value).reduce((b, k) => (a.value[k] && (b[k] = `${a.value[k]}`), b), {});
3738
+ p && (o.value = !1), n("update:modelValue", new URLSearchParams(A).toString());
3700
3739
  };
3701
- return (p, S) => {
3702
- const b = U("KInput"), C = U("KButton"), I = U("KSelect"), ne = U("KMenuItem"), pe = U("KMenu");
3703
- return e.config.isExactMatch ? (m(), V(b, {
3740
+ return (p, A) => {
3741
+ const b = U("KInput"), k = U("KButton"), x = U("KSelect"), ne = U("KMenuItem"), pe = U("KMenu");
3742
+ return e.config.isExactMatch ? (g(), V(b, {
3704
3743
  key: 0,
3705
3744
  autocomplete: "off",
3706
3745
  class: "kong-ui-entity-filter-input",
@@ -3710,11 +3749,11 @@ const Di = {
3710
3749
  "onUpdate:modelValue": c
3711
3750
  }, {
3712
3751
  icon: h(() => [
3713
- K(Fs)
3752
+ K(Ps)
3714
3753
  ]),
3715
3754
  _: 1
3716
- }, 8, ["model-value", "placeholder"])) : (m(), j("div", Ks, [
3717
- K(C, {
3755
+ }, 8, ["model-value", "placeholder"])) : (g(), j("div", Us, [
3756
+ K(k, {
3718
3757
  appearance: "btn-link",
3719
3758
  "data-testid": "filter-button",
3720
3759
  icon: "filter",
@@ -3733,16 +3772,16 @@ const Di = {
3733
3772
  ]),
3734
3773
  et(K(pe, { class: "kong-ui-entity-filter-menu" }, {
3735
3774
  body: h(() => [
3736
- (m(!0), j(ve, null, ye(s.value, (H, w) => (m(), V(ne, {
3775
+ (g(!0), j(ve, null, ye(s.value, (H, w) => (g(), V(ne, {
3737
3776
  key: H.value,
3738
3777
  "data-testid": H.value,
3739
3778
  expandable: "",
3740
3779
  "last-menu-item": w === s.value.length - 1
3741
3780
  }, {
3742
3781
  itemTitle: h(() => [
3743
- R("span", Ns, [
3782
+ R("span", qs, [
3744
3783
  Z(F(H.label) + " ", 1),
3745
- et(R("span", Bs, null, 512), [
3784
+ et(R("span", Rs, null, 512), [
3746
3785
  [tt, i.value.includes(H.value)]
3747
3786
  ])
3748
3787
  ])
@@ -3750,47 +3789,47 @@ const Di = {
3750
3789
  itemBody: h(() => {
3751
3790
  var N, B;
3752
3791
  return [
3753
- R("div", Ps, [
3792
+ R("div", Vs, [
3754
3793
  R("label", {
3755
3794
  class: "menu-item-label",
3756
3795
  for: d(H.value)
3757
- }, F(y(r)("filter.fieldLabel")), 9, Ls),
3758
- ((B = (N = e.config.schema) == null ? void 0 : N[H.value]) == null ? void 0 : B.type) === "select" ? (m(), V(I, {
3796
+ }, F(y(r)("filter.fieldLabel")), 9, Ds),
3797
+ ((B = (N = e.config.schema) == null ? void 0 : N[H.value]) == null ? void 0 : B.type) === "select" ? (g(), V(x, {
3759
3798
  key: 0,
3760
3799
  id: d(H.value),
3761
3800
  modelValue: a.value[H.value],
3762
- "onUpdate:modelValue": (k) => a.value[H.value] = k,
3801
+ "onUpdate:modelValue": (C) => a.value[H.value] = C,
3763
3802
  appearance: "select",
3764
3803
  items: u(H.value),
3765
3804
  placeholder: y(r)("filter.selectPlaceholder")
3766
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), V(b, {
3805
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), V(b, {
3767
3806
  key: 1,
3768
3807
  id: d(H.value),
3769
3808
  modelValue: a.value[H.value],
3770
- "onUpdate:modelValue": (k) => a.value[H.value] = k,
3809
+ "onUpdate:modelValue": (C) => a.value[H.value] = C,
3771
3810
  autocomplete: "off",
3772
3811
  placeholder: y(r)("filter.inputPlaceholder"),
3773
3812
  size: "small",
3774
- type: g(H.value)
3813
+ type: m(H.value)
3775
3814
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3776
3815
  ]),
3777
- R("div", Us, [
3778
- K(C, {
3816
+ R("div", Gs, [
3817
+ K(k, {
3779
3818
  appearance: "btn-link",
3780
3819
  "data-testid": "apply-filter",
3781
3820
  size: "small",
3782
- onClick: S[0] || (S[0] = (k) => v(!0))
3821
+ onClick: A[0] || (A[0] = (C) => v(!0))
3783
3822
  }, {
3784
3823
  default: h(() => [
3785
3824
  Z(F(y(r)("filter.applyButtonText")), 1)
3786
3825
  ]),
3787
3826
  _: 1
3788
3827
  }),
3789
- K(C, {
3828
+ K(k, {
3790
3829
  appearance: "btn-link",
3791
3830
  "data-testid": "clear-filter",
3792
3831
  size: "small",
3793
- onClick: (k) => f(H.value)
3832
+ onClick: (C) => f(H.value)
3794
3833
  }, {
3795
3834
  default: h(() => [
3796
3835
  Z(F(y(r)("filter.clearButtonText")), 1)
@@ -3804,7 +3843,7 @@ const Di = {
3804
3843
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3805
3844
  ]),
3806
3845
  actionButton: h(() => [
3807
- K(C, { onClick: A }, {
3846
+ K(k, { onClick: I }, {
3808
3847
  default: h(() => [
3809
3848
  Z(F(y(r)("filter.clearAllButtonText")), 1)
3810
3849
  ]),
@@ -3818,7 +3857,7 @@ const Di = {
3818
3857
  ]));
3819
3858
  };
3820
3859
  }
3821
- }), Rs = /* @__PURE__ */ ke(qs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
3860
+ }), Js = /* @__PURE__ */ Ce(Hs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
3822
3861
  __name: "PermissionsWrapper",
3823
3862
  props: {
3824
3863
  /**
@@ -3841,23 +3880,23 @@ const Di = {
3841
3880
  },
3842
3881
  setup(e) {
3843
3882
  const n = e, t = O(void 0), r = M(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3844
- return xe(() => n.authFunction, async () => {
3883
+ return Se(() => n.authFunction, async () => {
3845
3884
  t.value = await n.authFunction();
3846
- }, { immediate: !0 }), (o, a) => r.value ? Y(o.$slots, "default", {
3885
+ }, { immediate: !0 }), (o, a) => r.value ? W(o.$slots, "default", {
3847
3886
  key: 0,
3848
3887
  isAllowed: t.value
3849
3888
  }) : G("", !0);
3850
3889
  }
3851
- }), Vs = { class: "form-section-wrapper" }, Ds = {
3890
+ }), zs = { class: "form-section-wrapper" }, Ys = {
3852
3891
  key: 0,
3853
3892
  class: "form-section-title"
3854
- }, Gs = {
3893
+ }, Ws = {
3855
3894
  key: 1,
3856
3895
  class: "form-section-description"
3857
- }, Hs = {
3896
+ }, Zs = {
3858
3897
  key: 2,
3859
3898
  class: "form-section-footer"
3860
- }, zs = { class: "form-section-content" }, Js = /* @__PURE__ */ ae({
3899
+ }, Qs = { class: "form-section-content" }, Xs = /* @__PURE__ */ ae({
3861
3900
  __name: "EntityFormSection",
3862
3901
  props: {
3863
3902
  title: {
@@ -3883,35 +3922,35 @@ const Di = {
3883
3922
  },
3884
3923
  setup(e) {
3885
3924
  const n = ut();
3886
- return (t, r) => (m(), j("fieldset", {
3925
+ return (t, r) => (g(), j("fieldset", {
3887
3926
  class: Ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3888
3927
  }, [
3889
- R("div", Vs, [
3890
- e.hideInfoHeader ? G("", !0) : (m(), j("div", {
3928
+ R("div", zs, [
3929
+ e.hideInfoHeader ? G("", !0) : (g(), j("div", {
3891
3930
  key: 0,
3892
3931
  class: Ke(["form-section-info", { sticky: e.stickyInfoHeader }])
3893
3932
  }, [
3894
- e.title ? (m(), j("h4", Ds, F(e.title), 1)) : G("", !0),
3895
- e.description || y(n).description ? (m(), j("div", Gs, [
3896
- Y(t.$slots, "description", {}, () => [
3933
+ e.title ? (g(), j("h4", Ys, F(e.title), 1)) : G("", !0),
3934
+ e.description || y(n).description ? (g(), j("div", Ws, [
3935
+ W(t.$slots, "description", {}, () => [
3897
3936
  R("p", null, F(e.description), 1)
3898
3937
  ], !0)
3899
3938
  ])) : G("", !0),
3900
- y(n).footer ? (m(), j("div", Hs, [
3901
- Y(t.$slots, "footer", {}, void 0, !0)
3939
+ y(n).footer ? (g(), j("div", Zs, [
3940
+ W(t.$slots, "footer", {}, void 0, !0)
3902
3941
  ])) : G("", !0)
3903
3942
  ], 2)),
3904
- R("div", zs, [
3905
- Y(t.$slots, "default", {}, void 0, !0)
3943
+ R("div", Qs, [
3944
+ W(t.$slots, "default", {}, void 0, !0)
3906
3945
  ])
3907
3946
  ])
3908
3947
  ], 2));
3909
3948
  }
3910
- }), un = /* @__PURE__ */ ke(Js, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: Ws, useErrors: Ys, useFetchUrlBuilder: hl, useFetcher: Zs, useDebouncedFilter: ar, useStringHelpers: vl, useHelpers: bl, useGatewayFeatureSupported: Cl, useTruncationDetector: kl } = ue;
3911
- const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group-cta-text" }, el = {
3949
+ }), un = /* @__PURE__ */ Ce(Xs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: el, useErrors: tl, useExternalLinkCreator: _l, useFetchUrlBuilder: wl, useFetcher: nl, useDebouncedFilter: ar, useStringHelpers: Il, useHelpers: xl, useGatewayFeatureSupported: Al, useTruncationDetector: Sl } = ue;
3950
+ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group-cta-text" }, al = {
3912
3951
  key: 0,
3913
3952
  class: "kong-ui-entity-add-to-groups-error"
3914
- }, tl = { key: 0 }, nl = /* @__PURE__ */ ae({
3953
+ }, il = { key: 0 }, sl = /* @__PURE__ */ ae({
3915
3954
  __name: "AddToGroupModal",
3916
3955
  props: {
3917
3956
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3946,97 +3985,97 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
3946
3985
  fetchedItemsKey: "data",
3947
3986
  searchKeys: ["name", "id"]
3948
3987
  }
3949
- ), g = M(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), A = M(() => l.value === void 0), v = M(() => u.value.map((k) => ({
3950
- label: k.name,
3951
- value: k.id,
3952
- selected: a.value.includes(k.id),
3953
- data: k
3988
+ ), m = M(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), I = M(() => l.value === void 0), v = M(() => u.value.map((C) => ({
3989
+ label: C.name,
3990
+ value: C.id,
3991
+ selected: a.value.includes(C.id),
3992
+ data: C
3954
3993
  // we need this to determine whether or not to show the description text
3955
- }))), p = (k) => {
3994
+ }))), p = (C) => {
3956
3995
  var T;
3957
- const x = A.value ? u.value.find((P) => P.id === k) : (T = l.value) == null ? void 0 : T.find((P) => P.id === k);
3958
- return x ? x.name : k;
3959
- }, S = () => {
3960
- I.value = "", b.value = [], w.value = [], n("cancel");
3961
- }, b = O([]), C = O(!1), I = O(""), ne = async () => {
3996
+ const S = I.value ? u.value.find((L) => L.id === C) : (T = l.value) == null ? void 0 : T.find((L) => L.id === C);
3997
+ return S ? S.name : C;
3998
+ }, A = () => {
3999
+ x.value = "", b.value = [], w.value = [], n("cancel");
4000
+ }, b = O([]), k = O(!1), x = O(""), ne = async () => {
3962
4001
  if (!a.value.length) {
3963
- I.value = "", w.value = [], n("cancel");
4002
+ x.value = "", w.value = [], n("cancel");
3964
4003
  return;
3965
4004
  }
3966
- C.value = !0, I.value = "", b.value = [], w.value = [];
4005
+ k.value = !0, x.value = "", b.value = [], w.value = [];
3967
4006
  try {
3968
- const k = a.value.map((P) => H(P)), x = await Promise.allSettled(k);
4007
+ const C = a.value.map((L) => H(L)), S = await Promise.allSettled(C);
3969
4008
  let T = !0;
3970
- x.forEach((P) => {
3971
- P.status !== "fulfilled" && (T = !1);
3972
- }), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], N(x));
4009
+ S.forEach((L) => {
4010
+ L.status !== "fulfilled" && (T = !1);
4011
+ }), 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));
3973
4012
  } catch {
3974
- I.value = r("consumer_groups.errors.add"), n("error", I.value);
4013
+ x.value = r("consumer_groups.errors.add"), n("error", x.value);
3975
4014
  } finally {
3976
- C.value = !1;
4015
+ k.value = !1;
3977
4016
  }
3978
4017
  }, pe = M(() => {
3979
- var x, T, P, J;
3980
- let k = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
3981
- return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), k;
3982
- }), H = async (k) => {
3983
- const x = {
3984
- group: k
4018
+ var S, T, L, z;
4019
+ let C = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
4020
+ 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, (L = t.config) != null && L.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((z = t.config) == null ? void 0 : z.consumerId) || "")), C;
4021
+ }), H = async (C) => {
4022
+ const S = {
4023
+ group: C
3985
4024
  };
3986
4025
  try {
3987
- const T = await o.post(pe.value, x);
3988
- return b.value.push(k), T;
4026
+ const T = await o.post(pe.value, S);
4027
+ return b.value.push(C), T;
3989
4028
  } catch (T) {
3990
- let P = `${p(k)} - ${T.message}`;
3991
- return T.response.status === 409 && (P = `${p(k)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
4029
+ let L = `${p(C)} - ${T.message}`;
4030
+ return T.response.status === 409 && (L = `${p(C)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(L));
3992
4031
  }
3993
- }, w = O([]), N = (k) => {
3994
- w.value = k.map((x) => {
4032
+ }, w = O([]), N = (C) => {
4033
+ w.value = C.map((S) => {
3995
4034
  var T;
3996
- return (T = x.reason) == null ? void 0 : T.message;
4035
+ return (T = S.reason) == null ? void 0 : T.message;
3997
4036
  }).filter(Boolean);
3998
4037
  };
3999
- return xe(v, () => {
4038
+ return Se(v, () => {
4000
4039
  f.value++;
4001
4040
  }, { immediate: !0, deep: !0 }), Qe(async () => {
4002
4041
  await d();
4003
- }), (k, x) => {
4004
- const T = U("KMultiselect"), P = U("KAlert"), J = U("KPrompt");
4005
- return m(), V(J, {
4006
- "action-pending": C.value,
4042
+ }), (C, S) => {
4043
+ const T = U("KMultiselect"), L = U("KAlert"), z = U("KPrompt");
4044
+ return g(), V(z, {
4045
+ "action-pending": k.value,
4007
4046
  class: "kong-ui-entities-add-to-groups-modal",
4008
4047
  "data-testid": "add-to-group-modal",
4009
4048
  "is-visible": e.visible,
4010
4049
  title: y(r)("consumer_groups.consumers.add.title"),
4011
- onCanceled: S,
4050
+ onCanceled: A,
4012
4051
  onProceed: ne
4013
4052
  }, {
4014
4053
  "body-content": h(() => [
4015
- R("div", Qs, [
4016
- R("p", Xs, F(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4054
+ R("div", rl, [
4055
+ R("p", ol, F(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4017
4056
  K(T, {
4018
4057
  modelValue: a.value,
4019
- "onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
4058
+ "onUpdate:modelValue": S[0] || (S[0] = (Q) => a.value = Q),
4020
4059
  autosuggest: "",
4021
4060
  "data-testid": "add-to-groups-multiselect",
4022
- "dropdown-footer-text": A.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
4061
+ "dropdown-footer-text": I.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
4023
4062
  items: v.value,
4024
4063
  label: y(r)("consumer_groups.consumers.add.consumer_groups_label"),
4025
4064
  loading: y(s),
4026
4065
  placeholder: y(r)("consumer_groups.consumers.add.consumer_group_placeholder"),
4027
- readonly: C.value,
4066
+ readonly: k.value,
4028
4067
  required: "",
4029
4068
  width: "100%",
4030
4069
  onQueryChange: y(i)
4031
4070
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4032
- I.value || g.value || w.value.length ? (m(), j("div", el, [
4033
- K(P, { appearance: "danger" }, {
4071
+ x.value || m.value || w.value.length ? (g(), j("div", al, [
4072
+ K(L, { appearance: "danger" }, {
4034
4073
  alertMessage: h(() => [
4035
4074
  R("p", null, F(y(r)("consumer_groups.errors.add")), 1),
4036
- w.value.length ? (m(), j("ul", tl, [
4037
- (m(!0), j(ve, null, ye(w.value, (Q, X) => (m(), j("li", { key: X }, F(Q), 1))), 128))
4075
+ w.value.length ? (g(), j("ul", il, [
4076
+ (g(!0), j(ve, null, ye(w.value, (Q, X) => (g(), j("li", { key: X }, F(Q), 1))), 128))
4038
4077
  ])) : G("", !0),
4039
- R("div", null, F(I.value || g.value), 1)
4078
+ R("div", null, F(x.value || m.value), 1)
4040
4079
  ]),
4041
4080
  _: 1
4042
4081
  })
@@ -4053,7 +4092,7 @@ const Kt = (e, n) => {
4053
4092
  for (const [r, o] of n)
4054
4093
  t[r] = o;
4055
4094
  return t;
4056
- }, rl = /* @__PURE__ */ Kt(nl, [["__scopeId", "data-v-4d30f3c5"]]), ol = { class: "kong-ui-entities-consumer-groups-list" }, al = { key: 1 }, il = /* @__PURE__ */ ae({
4095
+ }, ll = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-4d30f3c5"]]), ul = { class: "kong-ui-entities-consumer-groups-list" }, cl = { key: 1 }, dl = /* @__PURE__ */ ae({
4057
4096
  __name: "ConsumerGroupList",
4058
4097
  props: {
4059
4098
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4101,13 +4140,13 @@ const Kt = (e, n) => {
4101
4140
  name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
4102
4141
  };
4103
4142
  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 };
4104
- const u = d, g = (E) => ({
4143
+ const u = d, m = (E) => ({
4105
4144
  "data-testid": E.username ?? E.custom_id ?? E.id
4106
4145
  }), f = M(() => {
4107
- var z, le, Ce, Ee;
4146
+ var J, le, ke, Ee;
4108
4147
  let E = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
4109
- return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
4110
- }), A = O(""), v = M(() => {
4148
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((J = t.config) == null ? void 0 : J.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;
4149
+ }), I = O(""), v = M(() => {
4111
4150
  const E = t.config.app === "konnect" || t.config.isExactMatch;
4112
4151
  return E ? {
4113
4152
  isExactMatch: E,
@@ -4123,13 +4162,13 @@ const Kt = (e, n) => {
4123
4162
  },
4124
4163
  schema: t.config.filterSchema
4125
4164
  };
4126
- }), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = Zs(t.config, f.value, p.value), C = () => {
4127
- A.value = "";
4128
- }, I = () => {
4165
+ }), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: A, fetcherState: b } = nl(t.config, f.value, p.value), k = () => {
4166
+ I.value = "";
4167
+ }, x = () => {
4129
4168
  s.value++;
4130
- }, ne = O(""), pe = (E, z) => {
4169
+ }, ne = O(""), pe = (E, J) => {
4131
4170
  const le = E.id;
4132
- if (!z(le)) {
4171
+ if (!J(le)) {
4133
4172
  n("copy:error", {
4134
4173
  entity: E,
4135
4174
  field: "id",
@@ -4142,9 +4181,9 @@ const Kt = (e, n) => {
4142
4181
  field: "id",
4143
4182
  message: o("consumer_groups.copy.success", { val: le })
4144
4183
  });
4145
- }, H = (E, z) => {
4184
+ }, H = (E, J) => {
4146
4185
  const le = JSON.stringify(E);
4147
- if (!z(le)) {
4186
+ if (!J(le)) {
4148
4187
  n("copy:error", {
4149
4188
  entity: E,
4150
4189
  message: o("consumer_groups.errors.copy")
@@ -4164,18 +4203,18 @@ const Kt = (e, n) => {
4164
4203
  }), B = (E) => ({
4165
4204
  label: o("consumer_groups.actions.edit"),
4166
4205
  to: t.config.getEditRoute(E)
4167
- }), k = O(void 0), x = O(!1), T = O(!1), P = O(""), J = Ws(t.config, f.value), Q = (E) => {
4168
- k.value = E, x.value = !0;
4206
+ }), C = O(void 0), S = O(!1), T = O(!1), L = O(""), z = el(t.config, f.value), Q = (E) => {
4207
+ C.value = E, S.value = !0;
4169
4208
  }, X = () => {
4170
- x.value = !1;
4209
+ S.value = !1;
4171
4210
  }, ee = async () => {
4172
- var E, z, le;
4173
- if ((E = k.value) != null && E.id) {
4211
+ var E, J, le;
4212
+ if ((E = C.value) != null && E.id) {
4174
4213
  T.value = !0;
4175
4214
  try {
4176
- await i.delete(J(k.value.id)), T.value = !1, x.value = !1, s.value++, n("delete:success", k.value);
4177
- } catch (Ce) {
4178
- P.value = ((le = (z = Ce.response) == null ? void 0 : z.data) == null ? void 0 : le.message) || Ce.message || o("consumer_groups.errors.delete"), n("error", Ce);
4215
+ await i.delete(z(C.value.id)), T.value = !1, S.value = !1, s.value++, n("delete:success", C.value);
4216
+ } catch (ke) {
4217
+ L.value = ((le = (J = ke.response) == null ? void 0 : J.data) == null ? void 0 : le.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
4179
4218
  } finally {
4180
4219
  T.value = !1;
4181
4220
  }
@@ -4184,8 +4223,8 @@ const Kt = (e, n) => {
4184
4223
  ie.value = !0;
4185
4224
  }, _ = () => {
4186
4225
  ie.value = !1;
4187
- }, L = (E, z) => {
4188
- z || _(), s.value++, n("add:success", E);
4226
+ }, P = (E, J) => {
4227
+ J || _(), s.value++, n("add:success", E);
4189
4228
  }, re = () => {
4190
4229
  l.value && Ve();
4191
4230
  }, q = O(void 0), D = O(!1), ge = O(""), _e = (E) => {
@@ -4193,9 +4232,9 @@ const Kt = (e, n) => {
4193
4232
  }, ce = () => {
4194
4233
  D.value = !1, q.value = void 0;
4195
4234
  }, Ne = M(() => {
4196
- var z, le, Ce, Ee;
4235
+ var J, le, ke, Ee;
4197
4236
  let E = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
4198
- return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
4237
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((J = t.config) == null ? void 0 : J.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;
4199
4238
  }), De = O(!1), ir = async () => {
4200
4239
  if (q.value) {
4201
4240
  De.value = !0;
@@ -4209,7 +4248,7 @@ const Kt = (e, n) => {
4209
4248
  }
4210
4249
  }
4211
4250
  };
4212
- xe(b, (E) => {
4251
+ Se(b, (E) => {
4213
4252
  if (E.status === Oe.Error) {
4214
4253
  ne.value = o("consumer_groups.errors.general"), n("error", E.error);
4215
4254
  return;
@@ -4224,10 +4263,10 @@ const Kt = (e, n) => {
4224
4263
  });
4225
4264
  return Qe(async () => {
4226
4265
  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"));
4227
- }), (E, z) => {
4228
- const le = U("KButton"), Ce = U("KBadge"), Ee = U("KTruncate"), Ge = U("KDropdownItem"), Bt = U("KClipboardProvider"), sr = U("KPrompt");
4229
- return m(), j("div", ol, [
4230
- K(y(Is), {
4266
+ }), (E, J) => {
4267
+ const le = U("KButton"), ke = U("KBadge"), Ee = U("KTruncate"), Ge = U("KDropdownItem"), Bt = U("KClipboardProvider"), sr = U("KPrompt");
4268
+ return g(), j("div", ul, [
4269
+ K(y($s), {
4231
4270
  "cache-identifier": e.cacheIdentifier,
4232
4271
  "disable-pagination": l.value,
4233
4272
  "disable-pagination-page-jump": "",
@@ -4235,23 +4274,23 @@ const Kt = (e, n) => {
4235
4274
  "empty-state-options": pt.value,
4236
4275
  "enable-entity-actions": "",
4237
4276
  "error-message": ne.value,
4238
- fetcher: y(S),
4277
+ fetcher: y(A),
4239
4278
  "fetcher-cache-key": s.value,
4240
4279
  "pagination-type": "offset",
4241
4280
  "preferences-storage-key": "kong-ui-entities-consumer-groups-list",
4242
- query: A.value,
4243
- "row-attributes": g,
4281
+ query: I.value,
4282
+ "row-attributes": m,
4244
4283
  "table-headers": y(u),
4245
- onClearSearchInput: C,
4246
- "onClick:row": z[3] || (z[3] = (W) => w(W)),
4284
+ onClearSearchInput: k,
4285
+ "onClick:row": J[3] || (J[3] = (Y) => w(Y)),
4247
4286
  onEmptyStateCtaClicked: re,
4248
- onSort: I
4287
+ onSort: x
4249
4288
  }, {
4250
4289
  "toolbar-filter": h(() => [
4251
- l.value ? G("", !0) : (m(), V(y(Rs), {
4290
+ l.value ? G("", !0) : (g(), V(y(Js), {
4252
4291
  key: 0,
4253
- modelValue: A.value,
4254
- "onUpdate:modelValue": z[0] || (z[0] = (W) => A.value = W),
4292
+ modelValue: I.value,
4293
+ "onUpdate:modelValue": J[0] || (J[0] = (Y) => I.value = Y),
4255
4294
  config: v.value
4256
4295
  }, null, 8, ["modelValue", "config"]))
4257
4296
  ]),
@@ -4265,7 +4304,7 @@ const Kt = (e, n) => {
4265
4304
  "data-testid": "toolbar-add-consumer-group",
4266
4305
  icon: "plus",
4267
4306
  to: e.config.consumerId ? void 0 : e.config.createRoute,
4268
- onClick: z[1] || (z[1] = () => e.config.consumerId ? Ve() : void 0)
4307
+ onClick: J[1] || (J[1] = () => e.config.consumerId ? Ve() : void 0)
4269
4308
  }, {
4270
4309
  default: h(() => [
4271
4310
  Z(F(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
@@ -4276,18 +4315,18 @@ const Kt = (e, n) => {
4276
4315
  _: 1
4277
4316
  }, 8, ["auth-function"])
4278
4317
  ]),
4279
- name: h(({ rowValue: W }) => [
4280
- R("b", null, F(W ?? "-"), 1)
4318
+ name: h(({ rowValue: Y }) => [
4319
+ R("b", null, F(Y ?? "-"), 1)
4281
4320
  ]),
4282
- consumers_count: h(({ rowValue: W }) => [
4283
- Z(F(W ?? "-"), 1)
4321
+ consumers_count: h(({ rowValue: Y }) => [
4322
+ Z(F(Y ?? "-"), 1)
4284
4323
  ]),
4285
- tags: h(({ rowValue: W }) => [
4286
- (W == null ? void 0 : W.length) > 0 ? (m(), V(Ee, { key: 0 }, {
4324
+ tags: h(({ rowValue: Y }) => [
4325
+ (Y == null ? void 0 : Y.length) > 0 ? (g(), V(Ee, { key: 0 }, {
4287
4326
  default: h(() => [
4288
- (m(!0), j(ve, null, ye(W, (Be) => (m(), V(Ce, {
4327
+ (g(!0), j(ve, null, ye(Y, (Be) => (g(), V(ke, {
4289
4328
  key: Be,
4290
- onClick: z[2] || (z[2] = rt(() => {
4329
+ onClick: J[2] || (J[2] = rt(() => {
4291
4330
  }, ["stop"]))
4292
4331
  }, {
4293
4332
  default: h(() => [
@@ -4297,14 +4336,14 @@ const Kt = (e, n) => {
4297
4336
  }, 1024))), 128))
4298
4337
  ]),
4299
4338
  _: 2
4300
- }, 1024)) : (m(), j("span", al, "-"))
4339
+ }, 1024)) : (g(), j("span", cl, "-"))
4301
4340
  ]),
4302
- actions: h(({ row: W }) => [
4341
+ actions: h(({ row: Y }) => [
4303
4342
  K(Bt, null, {
4304
4343
  default: h(({ copyToClipboard: Be }) => [
4305
4344
  K(Ge, {
4306
4345
  "data-testid": "action-entity-copy-id",
4307
- onClick: (lr) => pe(W, Be)
4346
+ onClick: (lr) => pe(Y, Be)
4308
4347
  }, {
4309
4348
  default: h(() => [
4310
4349
  Z(F(y(o)("consumer_groups.actions.copy_id")), 1)
@@ -4318,7 +4357,7 @@ const Kt = (e, n) => {
4318
4357
  default: h(({ copyToClipboard: Be }) => [
4319
4358
  K(Ge, {
4320
4359
  "data-testid": "action-entity-copy-json",
4321
- onClick: (lr) => H(W, Be)
4360
+ onClick: (lr) => H(Y, Be)
4322
4361
  }, {
4323
4362
  default: h(() => [
4324
4363
  Z(F(y(o)("consumer_groups.actions.copy_json")), 1)
@@ -4329,37 +4368,37 @@ const Kt = (e, n) => {
4329
4368
  _: 2
4330
4369
  }, 1024),
4331
4370
  K(y(Xe), {
4332
- "auth-function": () => e.canRetrieve(W)
4371
+ "auth-function": () => e.canRetrieve(Y)
4333
4372
  }, {
4334
4373
  default: h(() => [
4335
4374
  K(Ge, {
4336
4375
  "data-testid": "action-entity-view",
4337
4376
  "has-divider": "",
4338
- item: N(W.id)
4377
+ item: N(Y.id)
4339
4378
  }, null, 8, ["item"])
4340
4379
  ]),
4341
4380
  _: 2
4342
4381
  }, 1032, ["auth-function"]),
4343
4382
  K(y(Xe), {
4344
- "auth-function": () => e.canEdit(W)
4383
+ "auth-function": () => e.canEdit(Y)
4345
4384
  }, {
4346
4385
  default: h(() => [
4347
4386
  K(Ge, {
4348
4387
  "data-testid": "action-entity-edit",
4349
- item: B(W.id)
4388
+ item: B(Y.id)
4350
4389
  }, null, 8, ["item"])
4351
4390
  ]),
4352
4391
  _: 2
4353
4392
  }, 1032, ["auth-function"]),
4354
4393
  K(y(Xe), {
4355
- "auth-function": () => e.canDelete(W)
4394
+ "auth-function": () => e.canDelete(Y)
4356
4395
  }, {
4357
4396
  default: h(() => [
4358
4397
  K(Ge, {
4359
4398
  "data-testid": "action-entity-delete",
4360
4399
  "has-divider": "",
4361
4400
  "is-dangerous": "",
4362
- onClick: () => e.config.consumerId ? _e(W) : Q(W)
4401
+ onClick: () => e.config.consumerId ? _e(Y) : Q(Y)
4363
4402
  }, {
4364
4403
  default: h(() => [
4365
4404
  Z(F(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
@@ -4372,28 +4411,28 @@ const Kt = (e, n) => {
4372
4411
  ]),
4373
4412
  _: 1
4374
4413
  }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
4375
- K(y(Ts), {
4414
+ K(y(Os), {
4376
4415
  "action-pending": T.value,
4377
4416
  "data-testid": "delete-consumer-group-modal",
4378
4417
  description: y(o)("consumer_groups.delete.description"),
4379
- "entity-name": k.value && (k.value.name || k.value.id),
4418
+ "entity-name": C.value && (C.value.name || C.value.id),
4380
4419
  "entity-type": y(dn).ConsumerGroup,
4381
- error: P.value,
4420
+ error: L.value,
4382
4421
  title: y(o)("consumer_groups.delete.title"),
4383
- visible: x.value,
4422
+ visible: S.value,
4384
4423
  onCancel: X,
4385
4424
  onProceed: ee
4386
4425
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4387
- e.config.consumerId ? (m(), V(rl, {
4426
+ e.config.consumerId ? (g(), V(ll, {
4388
4427
  key: 0,
4389
4428
  config: e.config,
4390
4429
  "data-testid": "add-to-group-modal",
4391
4430
  visible: ie.value,
4392
- "onAdd:partialSuccess": z[4] || (z[4] = (W) => L(W, !0)),
4393
- "onAdd:success": z[5] || (z[5] = (W) => L(W)),
4431
+ "onAdd:partialSuccess": J[4] || (J[4] = (Y) => P(Y, !0)),
4432
+ "onAdd:success": J[5] || (J[5] = (Y) => P(Y)),
4394
4433
  onCancel: _
4395
4434
  }, null, 8, ["config", "visible"])) : G("", !0),
4396
- e.config.consumerId && q.value ? (m(), V(sr, {
4435
+ e.config.consumerId && q.value ? (g(), V(sr, {
4397
4436
  key: 1,
4398
4437
  "data-testid": "exit-group-modal",
4399
4438
  "is-visible": D.value,
@@ -4429,10 +4468,10 @@ const Kt = (e, n) => {
4429
4468
  };
4430
4469
  }
4431
4470
  });
4432
- const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { class: "kong-ui-entities-consumer-group-form" }, ll = { class: "select-item-label" }, ul = {
4471
+ const Tl = /* @__PURE__ */ Kt(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { class: "kong-ui-entities-consumer-group-form" }, fl = { class: "select-item-label" }, ml = {
4433
4472
  key: 0,
4434
4473
  class: "select-item-desc"
4435
- }, cl = /* @__PURE__ */ ae({
4474
+ }, gl = /* @__PURE__ */ ae({
4436
4475
  __name: "ConsumerGroupForm",
4437
4476
  props: {
4438
4477
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4451,7 +4490,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
4451
4490
  emits: ["update", "error", "loading"],
4452
4491
  setup(e, { emit: n }) {
4453
4492
  var ee, ie, Ve;
4454
- const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Pt({
4493
+ const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Lt({
4455
4494
  fields: {
4456
4495
  name: "",
4457
4496
  tags: "",
@@ -4459,7 +4498,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
4459
4498
  },
4460
4499
  errorMessage: "",
4461
4500
  readonly: !1
4462
- }), i = Pt({
4501
+ }), i = Lt({
4463
4502
  name: "",
4464
4503
  tags: "",
4465
4504
  consumers: []
@@ -4472,22 +4511,22 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
4472
4511
  } = ar(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
4473
4512
  fetchedItemsKey: "data",
4474
4513
  searchKeys: ["username", "custom_id", "id"]
4475
- }), { axiosInstance: g } = Ft({
4514
+ }), { axiosInstance: m } = Ft({
4476
4515
  headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
4477
- }), { getMessageFromError: f } = Ys(), A = M(() => u.value.map((_) => ({
4516
+ }), { getMessageFromError: f } = tl(), I = M(() => u.value.map((_) => ({
4478
4517
  label: _.username || _.custom_id,
4479
4518
  value: _.id,
4480
4519
  selected: a.fields.consumers.includes(_.id),
4481
4520
  data: _
4482
4521
  // we need this to determine whether or not to show the description text
4483
4522
  }))), v = M(() => {
4484
- var _, L;
4485
- return (L = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : L.edit;
4486
- }), p = M(() => t.consumerGroupId ? nt.Edit : nt.Create), S = M(() => !!a.fields.name && !w.value), b = M(() => JSON.stringify(a.fields) !== JSON.stringify(i)), C = (_, L = "", re = "") => {
4523
+ var _, P;
4524
+ return (P = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : P.edit;
4525
+ }), 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 = (_, P = "", re = "") => {
4487
4526
  var D, ge, _e, ce, Ne, De;
4488
4527
  let q = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
4489
- return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (q = q.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), q = q.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (q = q.replace(/{consumerId}/gi, re)), q;
4490
- }, I = () => {
4528
+ return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (q = q.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), q = q.replace(/{id}/gi, P || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (q = q.replace(/{consumerId}/gi, re)), q;
4529
+ }, x = () => {
4491
4530
  var _;
4492
4531
  o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
4493
4532
  }, ne = (_) => {
@@ -4497,99 +4536,99 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
4497
4536
  }, H = async (_) => {
4498
4537
  var re, q, D, ge, _e;
4499
4538
  a.fields.name = ((re = _ == null ? void 0 : _.item) == null ? void 0 : re.name) || ((q = _ == null ? void 0 : _.consumer_group) == null ? void 0 : q.name) || (_ == null ? void 0 : _.name) || "";
4500
- const L = ((D = _ == null ? void 0 : _.item) == null ? void 0 : D.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
4501
- if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in _)
4539
+ const P = ((D = _ == null ? void 0 : _.item) == null ? void 0 : D.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
4540
+ if (a.fields.tags = (P == null ? void 0 : P.join(", ")) || "", "consumers" in _)
4502
4541
  a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
4503
4542
  else
4504
4543
  try {
4505
- const { data: ce } = await g.get(C("getConsumers"));
4544
+ const { data: ce } = await m.get(k("getConsumers"));
4506
4545
  a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
4507
4546
  } catch (ce) {
4508
- x(ce);
4547
+ S(ce);
4509
4548
  }
4510
4549
  Object.assign(i, a.fields);
4511
4550
  }, w = M(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
4512
- var _, L;
4551
+ var _, P;
4513
4552
  return {
4514
4553
  name: a.fields.name,
4515
- tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : L.filter((re) => re !== "")
4554
+ tags: (P = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : P.filter((re) => re !== "")
4516
4555
  };
4517
- }, B = async (_, L = "") => await g.post(C("addConsumer", L, _), { consumer: _ }), k = async (_, L = "") => await g.delete(C("removeConsumer", L, _)), x = (_) => {
4556
+ }, B = async (_, P = "") => await m.post(k("addConsumer", P, _), { consumer: _ }), C = async (_, P = "") => await m.delete(k("removeConsumer", P, _)), S = (_) => {
4518
4557
  a.errorMessage = f(_), n("error", _);
4519
4558
  }, T = (_ = t.consumerGroupId) => {
4520
4559
  Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
4521
- }, P = (_, L, re = t.consumerGroupId) => {
4560
+ }, L = (_, P, re = t.consumerGroupId) => {
4522
4561
  const q = _ == null ? void 0 : _.find((D) => D.status !== "fulfilled");
4523
- q ? x({
4562
+ q ? S({
4524
4563
  code: q.status,
4525
- message: L
4564
+ message: P
4526
4565
  }) : T(re);
4527
- }, J = async () => {
4566
+ }, z = async () => {
4528
4567
  let _ = "";
4529
4568
  try {
4530
- const { data: L } = await g.post(C("create"), N());
4531
- _ = "item" in L ? L.item.id : L.id;
4532
- } catch (L) {
4533
- x(L);
4569
+ const { data: P } = await m.post(k("create"), N());
4570
+ _ = "item" in P ? P.item.id : P.id;
4571
+ } catch (P) {
4572
+ S(P);
4534
4573
  }
4535
4574
  if (a.fields.consumers.length > 0 && _)
4536
4575
  try {
4537
- const L = a.fields.consumers.map((q) => B(q, _)), re = await Promise.allSettled(L);
4538
- P(re, r("consumer_groups.errors.add_consumer"), _);
4539
- } catch (L) {
4540
- x(L);
4576
+ const P = a.fields.consumers.map((q) => B(q, _)), re = await Promise.allSettled(P);
4577
+ L(re, r("consumer_groups.errors.add_consumer"), _);
4578
+ } catch (P) {
4579
+ S(P);
4541
4580
  }
4542
4581
  else
4543
4582
  a.fields.consumers.length === 0 && _ && T(_);
4544
4583
  }, Q = async () => {
4545
4584
  var re;
4546
4585
  try {
4547
- ((re = t.config) == null ? void 0 : re.app) === "konnect" ? await g.put(C("edit"), N()) : await g.patch(C("edit"), N());
4586
+ ((re = t.config) == null ? void 0 : re.app) === "konnect" ? await m.put(k("edit"), N()) : await m.patch(k("edit"), N());
4548
4587
  } catch (q) {
4549
- x(q);
4588
+ S(q);
4550
4589
  }
4551
- const _ = a.fields.consumers.filter((q) => !i.consumers.includes(q)), L = i.consumers.filter((q) => !a.fields.consumers.includes(q));
4552
- if (L.length === 0 && _.length === 0)
4590
+ const _ = a.fields.consumers.filter((q) => !i.consumers.includes(q)), P = i.consumers.filter((q) => !a.fields.consumers.includes(q));
4591
+ if (P.length === 0 && _.length === 0)
4553
4592
  T();
4554
4593
  else {
4555
- if (L.length > 0)
4594
+ if (P.length > 0)
4556
4595
  try {
4557
- const q = L.map((ge) => k(ge)), D = await Promise.allSettled(q);
4558
- P(D, r("consumer_groups.errors.remove_consumer"));
4596
+ const q = P.map((ge) => C(ge)), D = await Promise.allSettled(q);
4597
+ L(D, r("consumer_groups.errors.remove_consumer"));
4559
4598
  } catch (q) {
4560
- x(q);
4599
+ S(q);
4561
4600
  }
4562
4601
  if (_.length > 0)
4563
4602
  try {
4564
4603
  const q = _.map((ge) => B(ge)), D = await Promise.allSettled(q);
4565
- P(D, r("consumer_groups.errors.add_consumer"));
4604
+ L(D, r("consumer_groups.errors.add_consumer"));
4566
4605
  } catch (q) {
4567
- x(q);
4606
+ S(q);
4568
4607
  }
4569
4608
  }
4570
4609
  }, X = async () => {
4571
4610
  try {
4572
- a.readonly = !0, p.value === nt.Create ? await J() : await Q();
4611
+ a.readonly = !0, p.value === nt.Create ? await z() : await Q();
4573
4612
  } finally {
4574
4613
  a.readonly = !1;
4575
4614
  }
4576
4615
  };
4577
4616
  return Qe(async () => {
4578
4617
  await d();
4579
- }), (_, L) => {
4618
+ }), (_, P) => {
4580
4619
  const re = U("KInput"), q = U("KMultiselect");
4581
- return m(), j("div", sl, [
4582
- K(y(ys), {
4583
- "can-submit": S.value && b.value,
4620
+ return g(), j("div", pl, [
4621
+ K(y(Cs), {
4622
+ "can-submit": A.value && b.value,
4584
4623
  config: e.config,
4585
4624
  "edit-id": e.consumerGroupId,
4586
4625
  "error-message": a.errorMessage || y(c) || w.value,
4587
4626
  "fetch-url": v.value,
4588
4627
  "is-readonly": a.readonly,
4589
- onCancel: I,
4590
- "onFetch:error": L[3] || (L[3] = (D) => ne(D)),
4628
+ onCancel: x,
4629
+ "onFetch:error": P[3] || (P[3] = (D) => ne(D)),
4591
4630
  "onFetch:success": H,
4592
- onLoading: L[4] || (L[4] = (D) => pe(D)),
4631
+ onLoading: P[4] || (P[4] = (D) => pe(D)),
4593
4632
  onSubmit: X
4594
4633
  }, {
4595
4634
  default: h(() => [
@@ -4600,7 +4639,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
4600
4639
  default: h(() => [
4601
4640
  K(re, {
4602
4641
  modelValue: a.fields.name,
4603
- "onUpdate:modelValue": L[0] || (L[0] = (D) => a.fields.name = D),
4642
+ "onUpdate:modelValue": P[0] || (P[0] = (D) => a.fields.name = D),
4604
4643
  modelModifiers: { trim: !0 },
4605
4644
  autocomplete: "off",
4606
4645
  "data-testid": "consumer-group-form-name",
@@ -4611,7 +4650,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
4611
4650
  }, null, 8, ["modelValue", "label", "placeholder"]),
4612
4651
  K(re, {
4613
4652
  modelValue: a.fields.tags,
4614
- "onUpdate:modelValue": L[1] || (L[1] = (D) => a.fields.tags = D),
4653
+ "onUpdate:modelValue": P[1] || (P[1] = (D) => a.fields.tags = D),
4615
4654
  modelModifiers: { trim: !0 },
4616
4655
  autocomplete: "off",
4617
4656
  "data-testid": "consumer-group-form-tags",
@@ -4635,11 +4674,11 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
4635
4674
  default: h(() => [
4636
4675
  K(q, {
4637
4676
  modelValue: a.fields.consumers,
4638
- "onUpdate:modelValue": L[2] || (L[2] = (D) => a.fields.consumers = D),
4677
+ "onUpdate:modelValue": P[2] || (P[2] = (D) => a.fields.consumers = D),
4639
4678
  appearance: "select",
4640
4679
  autosuggest: "",
4641
4680
  "expand-selected": "",
4642
- items: A.value,
4681
+ items: I.value,
4643
4682
  label: y(r)("consumer_groups.form.fields.consumers.label"),
4644
4683
  loading: y(l),
4645
4684
  placeholder: y(r)("consumer_groups.form.fields.consumers.placeholder"),
@@ -4649,8 +4688,8 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
4649
4688
  "item-template": h(({ item: D }) => {
4650
4689
  var ge, _e, ce;
4651
4690
  return [
4652
- R("div", ll, F(D.label), 1),
4653
- (ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (m(), j("div", ul, F((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
4691
+ R("div", fl, F(D.label), 1),
4692
+ (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, F((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
4654
4693
  ];
4655
4694
  }),
4656
4695
  _: 1
@@ -4665,7 +4704,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
4665
4704
  };
4666
4705
  }
4667
4706
  });
4668
- const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { class: "kong-ui-consumer-group-entity-config-card" }, Il = /* @__PURE__ */ ae({
4707
+ const $l = /* @__PURE__ */ Kt(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { class: "kong-ui-consumer-group-entity-config-card" }, Ml = /* @__PURE__ */ ae({
4669
4708
  __name: "ConsumerGroupConfigCard",
4670
4709
  props: {
4671
4710
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4701,8 +4740,8 @@ const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
4701
4740
  tooltip: t("consumer_groups.form.fields.tags.tooltip")
4702
4741
  }
4703
4742
  });
4704
- return (a, i) => (m(), j("div", dl, [
4705
- K(y(ps), {
4743
+ return (a, i) => (g(), j("div", yl, [
4744
+ K(y(hs), {
4706
4745
  config: e.config,
4707
4746
  "config-card-doc": e.configCardDoc,
4708
4747
  "config-schema": o.value,
@@ -4718,7 +4757,7 @@ const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
4718
4757
  }
4719
4758
  });
4720
4759
  export {
4721
- Il as ConsumerGroupConfigCard,
4722
- wl as ConsumerGroupForm,
4723
- _l as ConsumerGroupList
4760
+ Ml as ConsumerGroupConfigCard,
4761
+ $l as ConsumerGroupForm,
4762
+ Tl as ConsumerGroupList
4724
4763
  };