@kong-ui-public/entities-shared 3.34.1 → 3.34.2-pr.2726.648af5c39.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,11 +1,13 @@
1
- import { inject as Ut, ref as N, computed as $, unref as _, toValue as he, watch as be, toRef as Gn, provide as qt, defineComponent as z, createBlock as M, openBlock as h, resolveDynamicComponent as De, normalizeClass as fe, withCtx as A, createElementBlock as T, createCommentVNode as j, createElementVNode as B, toDisplayString as O, Fragment as ue, renderList as ce, resolveComponent as P, createVNode as R, createTextVNode as q, useCssVars as Ht, useId as zn, useSlots as Pe, renderSlot as U, createSlots as $e, normalizeProps as Qn, guardReactiveProps as Zn, mergeProps as Vt, onMounted as nt, onBeforeMount as it, withModifiers as Be, Teleport as Yt, onUnmounted as Xn, withDirectives as xe, vShow as Ce, withKeys as ei, warn as ti } from "vue";
2
- import pt from "axios";
3
- import { createI18n as ni, i18nTComponent as ii } from "@kong-ui-public/i18n";
4
- import { BadgeMethodAppearances as ri, KExternalLink as ai, KButton as mt, KTruncate as oi, KBadge as li } from "@kong/kongponents";
5
- import { BookIcon as Wt, LanguageShellIcon as ht, LanguageBashIcon as yt, AddIcon as Jt, CloseIcon as si, ChevronDownIcon as ci, CopyIcon as ui } from "@kong/icons";
6
- import { useRouter as di } from "vue-router";
7
- var fi = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(fi || {}), pi = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(pi || {}), me = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(me || {}), Se = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))(Se || {});
8
- const Ue = Object.values(Se), mi = [
1
+ import { inject as qt, ref as M, computed as $, unref as A, toValue as ge, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as N, openBlock as g, resolveDynamicComponent as De, normalizeClass as fe, withCtx as _, createElementBlock as T, createCommentVNode as P, createElementVNode as L, toDisplayString as O, Fragment as ue, renderList as ce, resolveComponent as D, createVNode as K, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as U, createSlots as $e, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as Yt, onMounted as it, onBeforeMount as rt, withModifiers as Re, Teleport as Wt, onUnmounted as ei, withDirectives as ke, vShow as Ce, withKeys as ti, warn as ni } from "vue";
2
+ import mt from "axios";
3
+ import { createI18n as ii, i18nTComponent as ri } from "@kong-ui-public/i18n";
4
+ import { BadgeMethodAppearances as ai, KExternalLink as oi, KButton as gt, KTruncate as li, KBadge as si } from "@kong/kongponents";
5
+ import { createdBundledHighlighter as ci, createSingletonShorthands as ui } from "@shikijs/core";
6
+ import { createJavaScriptRegexEngine as di } from "@shikijs/engine-javascript";
7
+ import { BookIcon as Jt, LanguageShellIcon as ht, LanguageBashIcon as yt, AddIcon as Gt, CloseIcon as fi, ChevronDownIcon as pi, CopyIcon as mi } from "@kong/icons";
8
+ import { useRouter as gi } from "vue-router";
9
+ var hi = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(hi || {}), yi = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(yi || {}), me = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(me || {}), Se = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))(Se || {});
10
+ const qe = Object.values(Se), vi = [
9
11
  "ca_certificate",
10
12
  "certificate",
11
13
  "consumer",
@@ -20,24 +22,24 @@ const Ue = Object.values(Se), mi = [
20
22
  "vault",
21
23
  "partial"
22
24
  /* Partial */
23
- ], hi = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"], yi = ["auth_server", "auth_server_scopes", "auth_server_claims", "auth_server_clients"];
25
+ ], bi = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"], ki = ["auth_server", "auth_server_scopes", "auth_server_claims", "auth_server_clients"];
24
26
  var Y = /* @__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.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Y || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(ae || {});
25
- const gt = [
27
+ const vt = [
26
28
  "primary",
27
29
  "secondary"
28
30
  ];
29
- function gi() {
31
+ function Ci() {
30
32
  return {
31
33
  getAxiosInstance: (e = {}) => {
32
34
  try {
33
- const t = Ut("get-axios-instance", void 0);
34
- return typeof t == "function" ? t(e) : pt.create({
35
+ const t = qt("get-axios-instance", void 0);
36
+ return typeof t == "function" ? t(e) : mt.create({
35
37
  withCredentials: !0,
36
38
  timeout: 3e4,
37
39
  ...e
38
40
  });
39
41
  } catch (t) {
40
- return console.warn("getAxiosInstance:", t.message || t), pt.create({
42
+ return console.warn("getAxiosInstance:", t.message || t), mt.create({
41
43
  withCredentials: !0,
42
44
  timeout: 3e4,
43
45
  ...e
@@ -50,7 +52,7 @@ function gi() {
50
52
  }
51
53
  };
52
54
  }
53
- function vi() {
55
+ function xi() {
54
56
  return {
55
57
  debounce: (e, t) => {
56
58
  let n;
@@ -62,13 +64,13 @@ function vi() {
62
64
  }
63
65
  };
64
66
  }
65
- const Ve = "khcp-user-table-preferences", bi = {
67
+ const Ye = "khcp-user-table-preferences", Ai = {
66
68
  pageSize: 30,
67
69
  sortColumnKey: void 0,
68
70
  sortColumnOrder: void 0,
69
71
  columnVisibility: {}
70
72
  };
71
- function xi() {
73
+ function _i() {
72
74
  const e = (n) => {
73
75
  if (typeof n == "string")
74
76
  try {
@@ -78,44 +80,44 @@ function xi() {
78
80
  return;
79
81
  }
80
82
  }, t = () => {
81
- const n = e(localStorage.getItem(Ve));
83
+ const n = e(localStorage.getItem(Ye));
82
84
  return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
83
85
  };
84
86
  return {
85
87
  setTablePreferences: (n, i) => {
86
88
  try {
87
89
  const r = t();
88
- r.set(n, i), localStorage.setItem(Ve, JSON.stringify(Object.fromEntries(r.entries())));
90
+ r.set(n, i), localStorage.setItem(Ye, JSON.stringify(Object.fromEntries(r.entries())));
89
91
  } catch (r) {
90
92
  console.error("useTablePreferences(setTablePreferences)", r);
91
93
  }
92
94
  },
93
95
  getTablePreferences: (n, i) => {
94
96
  const r = t();
95
- return (r == null ? void 0 : r.get(n)) || void 0 || i || bi;
97
+ return (r == null ? void 0 : r.get(n)) || void 0 || i || Ai;
96
98
  },
97
99
  deleteAllTablePreferences: () => {
98
- localStorage.removeItem(Ve);
100
+ localStorage.removeItem(Ye);
99
101
  }
100
102
  };
101
103
  }
102
- function rt(e = {}) {
103
- const { getAxiosInstance: t } = gi();
104
+ function at(e = {}) {
105
+ const { getAxiosInstance: t } = Ci();
104
106
  return {
105
107
  axiosInstance: t(e)
106
108
  };
107
109
  }
108
- const Ci = {
110
+ const wi = {
109
111
  actions: {
110
112
  copyId: "Copy ID",
111
113
  copied_id: 'Copied "{id}" to the clipboard',
112
114
  copyToClipboard: "Copied successfully!",
113
115
  copyToClipboardFailed: "Failed to copy to the clipboard"
114
116
  }
115
- }, ki = {
117
+ }, Si = {
116
118
  message: "Are you sure you want to delete this {entityType}?",
117
119
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
118
- }, Ai = {
120
+ }, $i = {
119
121
  actions: {
120
122
  viewConfiguration: "View Configuration",
121
123
  save: "Save",
@@ -133,13 +135,13 @@ const Ci = {
133
135
  errors: {
134
136
  edit: "The entity could not be edited at this time."
135
137
  }
136
- }, _i = {
138
+ }, Ti = {
137
139
  emptyState: {
138
140
  noSearchResultsTitle: "No results found",
139
141
  noSearchResultsMessage: "Please adjust the criteria and try again.",
140
142
  noSearchResultsCtaText: "Clear"
141
143
  }
142
- }, wi = {
144
+ }, Ei = {
143
145
  title: "Configuration",
144
146
  actions: {
145
147
  copy: "Copy JSON"
@@ -176,10 +178,10 @@ const Ci = {
176
178
  entryTitle: "Entry {index}",
177
179
  structuredFormat: "Structured"
178
180
  }
179
- }, Si = {
181
+ }, Ii = {
180
182
  learnMore: "Learn more",
181
183
  pricingTitle: "Pricing: "
182
- }, $i = {
184
+ }, Fi = {
183
185
  filterButtonText: "Filter",
184
186
  fieldLabel: "Filter by:",
185
187
  inputPlaceholder: "Enter a value",
@@ -187,17 +189,17 @@ const Ci = {
187
189
  applyButtonText: "Apply",
188
190
  clearButtonText: "Clear",
189
191
  clearAllButtonText: "Clear all filters"
190
- }, Ti = {
192
+ }, Oi = {
191
193
  errors: {
192
194
  fetch: "Could not fetch available items",
193
195
  invalid: "Please select a valid value"
194
196
  }
195
- }, Ei = {
197
+ }, Bi = {
196
198
  unexpected: "An unexpected error has occurred",
197
199
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
198
- }, Ii = {
200
+ }, Li = {
199
201
  utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
200
- }, Fi = {
202
+ }, Ri = {
201
203
  enable: {
202
204
  title: "Enable {entityType}",
203
205
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -208,32 +210,35 @@ const Ci = {
208
210
  message: "Are you sure you want to disable the {entityType} {entityName}?",
209
211
  confirmText: "Yes, disable"
210
212
  }
211
- }, Oi = {
212
- hint: "The {token} environment variable must be added first. See {link} for details.",
213
+ }, Ki = {
214
+ hint: {
215
+ konnect: "The {token} environment variable must be added first. See {link} for details.",
216
+ kongManager: "If your Admin API is secured, set up authentication following {link}."
217
+ },
213
218
  documentation: "the documentation"
214
- }, Li = {
215
- global: Ci,
216
- deleteModal: ki,
217
- baseForm: Ai,
218
- baseTable: _i,
219
- baseConfigCard: wi,
220
- emptyState: Si,
221
- filter: $i,
222
- debouncedFilter: Ti,
223
- errors: Ei,
224
- validationErrors: Ii,
225
- toggleModal: Fi,
226
- deckCodeBlock: Oi
219
+ }, Ni = {
220
+ global: wi,
221
+ deleteModal: Si,
222
+ baseForm: $i,
223
+ baseTable: Ti,
224
+ baseConfigCard: Ei,
225
+ emptyState: Ii,
226
+ filter: Fi,
227
+ debouncedFilter: Oi,
228
+ errors: Bi,
229
+ validationErrors: Li,
230
+ toggleModal: Ri,
231
+ deckCodeBlock: Ki
227
232
  };
228
- function qe() {
229
- const e = ni("en-us", Li);
233
+ function He() {
234
+ const e = ii("en-us", Ni);
230
235
  return {
231
236
  i18n: e,
232
- i18nT: ii(e)
237
+ i18nT: ri(e)
233
238
  // Translation component <i18n-t>
234
239
  };
235
240
  }
236
- function Gt() {
241
+ function zt() {
237
242
  const e = (o, a) => (a == null ? void 0 : a[o]) ?? void 0, t = (o, a) => {
238
243
  if (o.length !== a.length) return !1;
239
244
  const l = /* @__PURE__ */ new Set([...o, ...a]);
@@ -275,51 +280,51 @@ function Gt() {
275
280
  isValidUuid: (o) => o ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o) : !1
276
281
  };
277
282
  }
278
- function Bi(e, t, n, i = {
283
+ function Mi(e, t, n, i = {
279
284
  fetchedItemsKey: "data",
280
285
  searchKeys: ["id"]
281
286
  }) {
282
287
  n || (n = "1000");
283
- const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } = qe(), { debounce: a } = vi(), l = a(async (L) => {
284
- await k(L);
285
- }, 200), s = N(!1), c = N(""), d = N(""), u = N([]), p = N([]), m = N(void 0), g = $(() => {
286
- const L = `${e.apiBaseUrl}${_(t)}`;
287
- return e.app === "konnect" ? L.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? L.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : L;
288
- }), { isValidUuid: y } = Gt(), x = async () => {
288
+ const { axiosInstance: r } = at(e.axiosRequestConfig), { i18n: { t: o } } = He(), { debounce: a } = xi(), l = a(async (B) => {
289
+ await x(B);
290
+ }, 200), s = M(!1), c = M(""), d = M(""), u = M([]), p = M([]), m = M(void 0), y = $(() => {
291
+ const B = `${e.apiBaseUrl}${A(t)}`;
292
+ return e.app === "konnect" ? B.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? B.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : B;
293
+ }), { isValidUuid: h } = zt(), k = async () => {
289
294
  try {
290
295
  s.value = !0;
291
- const { data: L } = await r.get(`${g.value}?size=${n}`);
292
- L != null && L.next || (m.value = i.fetchedItemsKey in L ? L[i.fetchedItemsKey] : []), p.value = i.fetchedItemsKey in L ? L[i.fetchedItemsKey] : [], u.value = p.value;
296
+ const { data: B } = await r.get(`${y.value}?size=${n}`);
297
+ B != null && B.next || (m.value = i.fetchedItemsKey in B ? B[i.fetchedItemsKey] : []), p.value = i.fetchedItemsKey in B ? B[i.fetchedItemsKey] : [], u.value = p.value;
293
298
  } catch {
294
299
  u.value = [], c.value = o("debouncedFilter.errors.fetch");
295
300
  } finally {
296
301
  s.value = !1;
297
302
  }
298
- }, C = N(""), k = async (L) => {
299
- var D, X, S;
300
- if (C.value !== L) {
301
- if (C.value = L ?? "", !L) {
303
+ }, C = M(""), x = async (B) => {
304
+ var j, X, S;
305
+ if (C.value !== B) {
306
+ if (C.value = B ?? "", !B) {
302
307
  u.value = p.value;
303
308
  return;
304
309
  }
305
310
  if (m.value === void 0)
306
311
  try {
307
312
  if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
308
- const w = `${g.value}/${L}`, { data: F } = await r.get(`${w}?size=${n}`);
313
+ const w = `${y.value}/${B}`, { data: F } = await r.get(`${w}?size=${n}`);
309
314
  i.fetchedItemsKey in F ? u.value = F[i.fetchedItemsKey] : F != null && F[i.exactMatchKey ?? "id"] ? u.value = [F] : u.value = [];
310
315
  } else {
311
316
  const w = [];
312
- y(L) && i.searchKeys.includes("id") ? w.push((async () => {
313
- const { data: v } = await r.get(`${g.value}/${L}`);
317
+ h(B) && i.searchKeys.includes("id") ? w.push((async () => {
318
+ const { data: v } = await r.get(`${y.value}/${B}`);
314
319
  return [v[i.fetchedItemsKey] ?? v];
315
320
  })()) : w.push(
316
321
  ...i.searchKeys.filter((v) => v !== "id").map(async (v) => {
317
- const { data: b } = await r.get(`${g.value}?${v}=${L}`);
322
+ const { data: b } = await r.get(`${y.value}?${v}=${B}`);
318
323
  return b[i.fetchedItemsKey];
319
324
  })
320
325
  );
321
326
  const F = await Promise.all(w), f = /* @__PURE__ */ new Set();
322
- u.value = [], (D = F == null ? void 0 : F.forEach) == null || D.call(F, (v) => {
327
+ u.value = [], (j = F == null ? void 0 : F.forEach) == null || j.call(F, (v) => {
323
328
  var b;
324
329
  (b = v == null ? void 0 : v.forEach) == null || b.call(v, (V) => {
325
330
  f.has(V.id) || (f.add(V.id), u.value.push(V));
@@ -337,7 +342,7 @@ function Bi(e, t, n, i = {
337
342
  let F = !1;
338
343
  for (const v of i.searchKeys) {
339
344
  const b = typeof w[v] == "string" ? (f = w[v]) == null ? void 0 : f.toLowerCase() : w[v];
340
- b != null && b.includes(L.toLowerCase()) && (F = !0);
345
+ b != null && b.includes(B.toLowerCase()) && (F = !0);
341
346
  }
342
347
  return F;
343
348
  }), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), s.value = !1;
@@ -349,18 +354,18 @@ function Bi(e, t, n, i = {
349
354
  validationError: d,
350
355
  results: u,
351
356
  allRecords: m,
352
- loadItems: x,
357
+ loadItems: k,
353
358
  debouncedQueryChange: l
354
359
  };
355
360
  }
356
- function Ki(e, t) {
357
- const n = _(t), i = $(
361
+ function Pi(e, t) {
362
+ const n = A(t), i = $(
358
363
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
359
364
  );
360
365
  return i.value.search = "", (r) => `${i.value.href}/${r}`;
361
366
  }
362
- function Ri() {
363
- const { i18n: { t: e } } = qe();
367
+ function ji() {
368
+ const { i18n: { t: e } } = He();
364
369
  return {
365
370
  getErrorFieldsFromError: (i) => {
366
371
  var a, l, s;
@@ -431,7 +436,7 @@ function Ri() {
431
436
  }
432
437
  };
433
438
  }
434
- function Ni(e) {
439
+ function Di(e) {
435
440
  const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
436
441
  try {
437
442
  const i = e.join("/"), r = `${n}${i}`, o = e.some((l) => l.trim() === "");
@@ -442,204 +447,204 @@ function Ni(e) {
442
447
  return console.warn("Failed to build valid URL:", i), "";
443
448
  }
444
449
  }
445
- function zt(e, t) {
450
+ function Qt(e, t) {
446
451
  const n = $(() => {
447
- const r = he(e);
452
+ const r = ge(e);
448
453
  return r.app === "konnect" || !!r.isExactMatch;
449
454
  }), i = $(() => {
450
- const r = he(t);
455
+ const r = ge(t);
451
456
  return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
452
457
  });
453
458
  return (r) => {
454
459
  const { page: o, pageSize: a, offset: l, sortColumnKey: s, sortColumnOrder: c, query: d } = r;
455
460
  try {
456
461
  let u = new URL(i.value.href);
457
- return n.value && d ? (u.search = "", u = he(e).isExactMatch ? new URL(`${u.href}/${d}`) : new URL(`${u.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((p, m) => {
462
+ return n.value && d ? (u.search = "", u = ge(e).isExactMatch ? new URL(`${u.href}/${d}`) : new URL(`${u.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((p, m) => {
458
463
  u.searchParams.append(m, p);
459
464
  }), s && u.searchParams.append("sort_by", s), c === "desc" && u.searchParams.append("sort_desc", "1"), u.searchParams.append("size", String(a))), l && o !== 1 && u.searchParams.append("offset", String(l)), u.href;
460
465
  } catch (u) {
461
- return console.error("RouteList(fetcher)", u), he(t);
466
+ return console.error("RouteList(fetcher)", u), ge(t);
462
467
  }
463
468
  };
464
469
  }
465
- const vt = /* @__PURE__ */ new Map();
466
- function Mi(e, t, n) {
467
- const i = N(!0), r = he(e), { axiosInstance: o } = rt(r.axiosRequestConfig), a = zt(e, t), l = N({
470
+ const bt = /* @__PURE__ */ new Map();
471
+ function Ui(e, t, n) {
472
+ const i = M(!0), r = ge(e), { axiosInstance: o } = at(r.axiosRequestConfig), a = Qt(e, t), l = M({
468
473
  status: me.Idle
469
474
  }), s = async (u) => {
470
475
  var m;
471
- const p = he(n) || "data";
476
+ const p = ge(n) || "data";
472
477
  try {
473
478
  l.value = i.value ? { status: me.InitialLoad } : { status: me.Loading }, i.value = !1;
474
- let g = a(u);
475
- g.includes("filter[name]") && (g = `${g}&page[size]=${u.pageSize}&page[number]=${u.page}`);
476
- const y = await o.get(g);
477
- if (y.status >= 400)
478
- throw y;
479
- const x = y.data, C = p && p.replace(/[^\w-_]/gi, "");
480
- let k;
481
- x[C] ? k = Array.isArray(x[C]) ? x[C] : [x[C]] : Array.isArray(x) ? k = x : k = Object.keys(x).length ? [x] : [];
482
- const L = {
483
- data: k,
484
- total: k.length,
485
- ...x.offset ? {
479
+ let y = a(u);
480
+ y.includes("filter[name]") && (y = `${y}&page[size]=${u.pageSize}&page[number]=${u.page}`);
481
+ const h = await o.get(y);
482
+ if (h.status >= 400)
483
+ throw h;
484
+ const k = h.data, C = p && p.replace(/[^\w-_]/gi, "");
485
+ let x;
486
+ k[C] ? x = Array.isArray(k[C]) ? k[C] : [k[C]] : Array.isArray(k) ? x = k : x = Object.keys(k).length ? [k] : [];
487
+ const B = {
488
+ data: x,
489
+ total: x.length,
490
+ ...k.offset ? {
486
491
  pagination: {
487
- offset: x.offset
492
+ offset: k.offset
488
493
  }
489
494
  } : null
490
495
  };
491
- return L.data.length === 0 && !u.query ? l.value = {
496
+ return B.data.length === 0 && !u.query ? l.value = {
492
497
  status: me.NoRecords,
493
- response: L
498
+ response: B
494
499
  } : l.value = {
495
500
  status: me.Idle,
496
- response: L
497
- }, L;
498
- } catch (g) {
499
- const y = {
501
+ response: B
502
+ }, B;
503
+ } catch (y) {
504
+ const h = {
500
505
  data: [],
501
506
  total: 0
502
507
  };
503
- return u.query && (((m = g.response) == null ? void 0 : m.status) === 404 || g.status === 404) ? (l.value = {
508
+ return u.query && (((m = y.response) == null ? void 0 : m.status) === 404 || y.status === 404) ? (l.value = {
504
509
  status: me.NoResults,
505
- response: y,
506
- error: g.response ? g : { response: g }
507
- }, y) : (l.value = {
510
+ response: h,
511
+ error: y.response ? y : { response: y }
512
+ }, h) : (l.value = {
508
513
  status: me.Error,
509
- response: y,
510
- error: g.response ? g : { response: g }
511
- }, y);
514
+ response: h,
515
+ error: y.response ? y : { response: y }
516
+ }, h);
512
517
  }
513
- }, c = r.cacheIdentifier, d = Qt(c);
518
+ }, c = r.cacheIdentifier, d = Zt(c);
514
519
  return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
515
520
  }
516
- function Qt(e) {
521
+ function Zt(e) {
517
522
  if (e) {
518
- let t = vt.get(e);
519
- return t || (t = N(1), vt.set(e, t)), t;
523
+ let t = bt.get(e);
524
+ return t || (t = M(1), bt.set(e, t)), t;
520
525
  }
521
- return N(1);
526
+ return M(1);
522
527
  }
523
- function ji() {
528
+ function qi() {
524
529
  const e = (i, r = "_") => i ? i.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
525
530
  return {
526
531
  capitalize: (i) => i ? i.replace(t, (r) => r.toUpperCase()) : "",
527
532
  convertKeyToTitle: e
528
533
  };
529
534
  }
530
- const Zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, bt = (e) => {
535
+ const Xt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, kt = (e) => {
531
536
  if (typeof e != "string")
532
537
  throw new TypeError("Invalid argument expected string");
533
- const t = e.match(Zt);
538
+ const t = e.match(Xt);
534
539
  if (!t)
535
540
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
536
541
  return t.shift(), t;
537
- }, xt = (e) => e === "*" || e === "x" || e === "X", Ct = (e) => {
542
+ }, Ct = (e) => e === "*" || e === "x" || e === "X", xt = (e) => {
538
543
  const t = parseInt(e, 10);
539
544
  return isNaN(t) ? e : t;
540
- }, Di = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Pi = (e, t) => {
541
- if (xt(e) || xt(t))
545
+ }, Hi = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Vi = (e, t) => {
546
+ if (Ct(e) || Ct(t))
542
547
  return 0;
543
- const [n, i] = Di(Ct(e), Ct(t));
548
+ const [n, i] = Hi(xt(e), xt(t));
544
549
  return n > i ? 1 : n < i ? -1 : 0;
545
- }, kt = (e, t) => {
550
+ }, At = (e, t) => {
546
551
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
547
- const i = Pi(e[n] || "0", t[n] || "0");
552
+ const i = Vi(e[n] || "0", t[n] || "0");
548
553
  if (i !== 0)
549
554
  return i;
550
555
  }
551
556
  return 0;
552
- }, Ui = (e, t) => {
553
- const n = bt(e), i = bt(t), r = n.pop(), o = i.pop(), a = kt(n, i);
554
- return a !== 0 ? a : r && o ? kt(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
555
- }, At = (e, t, n) => {
556
- qi(n);
557
- const i = Ui(e, t);
558
- return Xt[n].includes(i);
559
- }, Xt = {
557
+ }, Yi = (e, t) => {
558
+ const n = kt(e), i = kt(t), r = n.pop(), o = i.pop(), a = At(n, i);
559
+ return a !== 0 ? a : r && o ? At(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
560
+ }, _t = (e, t, n) => {
561
+ Wi(n);
562
+ const i = Yi(e, t);
563
+ return en[n].includes(i);
564
+ }, en = {
560
565
  ">": [1],
561
566
  ">=": [0, 1],
562
567
  "=": [0],
563
568
  "<=": [-1, 0],
564
569
  "<": [-1],
565
570
  "!=": [-1, 1]
566
- }, _t = Object.keys(Xt), qi = (e) => {
571
+ }, wt = Object.keys(en), Wi = (e) => {
567
572
  if (typeof e != "string")
568
573
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
569
- if (_t.indexOf(e) === -1)
570
- throw new Error(`Invalid operator, expected one of ${_t.join("|")}`);
571
- }, Hi = (e) => typeof e == "string" && /^[v\d]/.test(e) && Zt.test(e);
572
- function Vi(e) {
574
+ if (wt.indexOf(e) === -1)
575
+ throw new Error(`Invalid operator, expected one of ${wt.join("|")}`);
576
+ }, Ji = (e) => typeof e == "string" && /^[v\d]/.test(e) && Xt.test(e);
577
+ function Gi(e) {
573
578
  const { gatewayInfo: t, supportedRange: n } = e;
574
579
  if (!t)
575
580
  return !0;
576
581
  const { edition: i, version: r } = t;
577
- if (!Hi(r))
582
+ if (!Ji(r))
578
583
  return console.error("Invalid version"), !1;
579
584
  const o = n[i];
580
585
  if (!o)
581
586
  return !1;
582
587
  const [a, l] = o;
583
- return !(a && At(r, a, "<") || l && At(r, l, ">"));
588
+ return !(a && _t(r, a, "<") || l && _t(r, l, ">"));
584
589
  }
585
- function Yi(e) {
586
- const t = N(0), n = N(0), i = N(!1);
590
+ function zi(e) {
591
+ const t = M(0), n = M(0), i = M(!1);
587
592
  return be(e, (o) => {
588
593
  o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
589
594
  }), {
590
595
  isTruncated: $(() => t.value < n.value)
591
596
  };
592
597
  }
593
- function Wi() {
594
- const { i18n: { t: e } } = qe();
598
+ function Qi() {
599
+ const { i18n: { t: e } } = He();
595
600
  return {
596
601
  utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
597
602
  };
598
603
  }
599
- const ze = Symbol("schema"), Ji = (e) => {
600
- qt(ze, e);
601
- }, Gi = (e) => {
604
+ const Qe = Symbol("schema"), Zi = (e) => {
605
+ Ht(Qe, e);
606
+ }, Xi = (e) => {
602
607
  var r, o;
603
- const t = Ut(ze, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = Gn(n == null ? void 0 : n[e]);
604
- return qt(ze, i), i;
608
+ const t = qt(Qe, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = zn(n == null ? void 0 : n[e]);
609
+ return Ht(Qe, i), i;
605
610
  };
606
- function zi(e) {
611
+ function er(e) {
607
612
  let t = "";
608
- const n = N(!1), i = N(null), r = $(() => {
613
+ const n = M(!1), i = M(null), r = $(() => {
609
614
  let a;
610
- return n.value ? a = !0 : i.value ? a = i.value.hasData || e && he(e) : a = !1, !a;
615
+ return n.value ? a = !0 : i.value ? a = i.value.hasData || e && ge(e) : a = !1, !a;
611
616
  });
612
617
  return {
613
618
  tableState: i,
614
619
  hasRecords: n,
615
620
  hideTableToolbar: r,
616
621
  handleStateChange: (a) => {
617
- a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t = he(e)), i.value = { ...a };
622
+ a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t = ge(e)), i.value = { ...a };
618
623
  }
619
624
  };
620
625
  }
621
626
  const W = {
622
- useAxios: rt,
623
- useDebouncedFilter: Bi,
624
- useDeleteUrlBuilder: Ki,
625
- useErrors: Ri,
626
- useExternalLinkCreator: Ni,
627
- useFetcher: Mi,
628
- useFetcherCacheKey: Qt,
629
- useFetchUrlBuilder: zt,
630
- useHelpers: Gt,
631
- useStringHelpers: ji,
632
- useI18n: qe,
633
- useGatewayFeatureSupported: Vi,
634
- useTruncationDetector: Yi,
635
- useValidators: Wi,
636
- useSchemaProvider: Ji,
637
- useSubSchema: Gi,
638
- useTableState: zi
639
- }, Qi = {
627
+ useAxios: at,
628
+ useDebouncedFilter: Mi,
629
+ useDeleteUrlBuilder: Pi,
630
+ useErrors: ji,
631
+ useExternalLinkCreator: Di,
632
+ useFetcher: Ui,
633
+ useFetcherCacheKey: Zt,
634
+ useFetchUrlBuilder: Qt,
635
+ useHelpers: zt,
636
+ useStringHelpers: qi,
637
+ useI18n: He,
638
+ useGatewayFeatureSupported: Gi,
639
+ useTruncationDetector: zi,
640
+ useValidators: Qi,
641
+ useSchemaProvider: Zi,
642
+ useSubSchema: Xi,
643
+ useTableState: er
644
+ }, tr = {
640
645
  key: 0,
641
646
  class: "config-card-fieldset-title"
642
- }, Zi = /* @__PURE__ */ z({
647
+ }, nr = /* @__PURE__ */ z({
643
648
  __name: "JsonCardItem",
644
649
  props: {
645
650
  item: {
@@ -663,18 +668,18 @@ const W = {
663
668
  var s;
664
669
  return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
665
670
  });
666
- return (s, c) => (h(), M(De(e.isArrayItem ? "fieldset" : "div"), {
671
+ return (s, c) => (g(), N(De(e.isArrayItem ? "fieldset" : "div"), {
667
672
  class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
668
673
  }, {
669
- default: A(() => [
670
- e.isArrayItem ? (h(), T("legend", Qi, [
671
- B("b", null, O(l.value), 1)
672
- ])) : j("", !0),
673
- (h(!0), T(ue, null, ce(Object.keys(a.value), (d, u) => (h(), M(tn, {
674
+ default: _(() => [
675
+ e.isArrayItem ? (g(), T("legend", tr, [
676
+ L("b", null, O(l.value), 1)
677
+ ])) : P("", !0),
678
+ (g(!0), T(ue, null, ce(Object.keys(a.value), (d, u) => (g(), N(nn, {
674
679
  key: `${r.value}-property-${u}`,
675
680
  item: {
676
681
  key: d,
677
- label: _(i)(d),
682
+ label: A(i)(d),
678
683
  value: a.value[d]
679
684
  }
680
685
  }, null, 8, ["item"]))), 128))
@@ -687,7 +692,7 @@ const W = {
687
692
  for (const [i, r] of t)
688
693
  n[i] = r;
689
694
  return n;
690
- }, en = /* @__PURE__ */ le(Zi, [["__scopeId", "data-v-dc1e39a1"]]), Xi = /* @__PURE__ */ z({
695
+ }, tn = /* @__PURE__ */ le(nr, [["__scopeId", "data-v-dc1e39a1"]]), ir = /* @__PURE__ */ z({
691
696
  __name: "InternalLinkItem",
692
697
  props: {
693
698
  item: {
@@ -699,22 +704,22 @@ const W = {
699
704
  setup(e) {
700
705
  const { i18n: { t } } = W.useI18n();
701
706
  return (n, i) => {
702
- const r = P("KButton");
703
- return h(), T("div", null, [
704
- R(r, {
707
+ const r = D("KButton");
708
+ return g(), T("div", null, [
709
+ K(r, {
705
710
  appearance: "tertiary",
706
711
  class: "navigation-button",
707
712
  onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
708
713
  }, {
709
- default: A(() => [
710
- q(O(e.item.value || _(t)("baseConfigCard.commonFields.link")), 1)
714
+ default: _(() => [
715
+ q(O(e.item.value || A(t)("baseConfigCard.commonFields.link")), 1)
711
716
  ]),
712
717
  _: 1
713
718
  })
714
719
  ]);
715
720
  };
716
721
  }
717
- }), er = /* @__PURE__ */ le(Xi, [["__scopeId", "data-v-2feb8c2e"]]), tr = /* @__PURE__ */ z({
722
+ }), rr = /* @__PURE__ */ le(ir, [["__scopeId", "data-v-2feb8c2e"]]), ar = /* @__PURE__ */ z({
718
723
  __name: "StatusBadge",
719
724
  props: {
720
725
  status: {
@@ -725,22 +730,43 @@ const W = {
725
730
  setup(e) {
726
731
  const { i18n: { t } } = W.useI18n();
727
732
  return (n, i) => {
728
- const r = P("KBadge");
729
- return h(), M(r, {
733
+ const r = D("KBadge");
734
+ return g(), N(r, {
730
735
  appearance: e.status ? "success" : "neutral"
731
736
  }, {
732
- default: A(() => [
733
- q(O(e.status ? _(t)("baseConfigCard.statusBadge.enabledLabel") : _(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
737
+ default: _(() => [
738
+ q(O(e.status ? A(t)("baseConfigCard.statusBadge.enabledLabel") : A(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
734
739
  ]),
735
740
  _: 1
736
741
  }, 8, ["appearance"]);
737
742
  };
738
743
  }
739
- }), nr = "#0044f4", ir = "#e0e4ea", rr = "#afb7c5", ar = "#0044f4", or = "1px", lr = "16px", sr = "20px", cr = { class: "config-card-details-row" }, ur = ["data-testid"], dr = ["data-testid"], fr = ["data-testid"], pr = ["data-testid"], mr = { key: 1 }, hr = ["data-testid"], yr = ["data-testid"], gr = ["data-testid"], vr = ["data-testid"], br = {
744
+ }), or = "#0044f4", lr = "#e0e4ea", sr = "#afb7c5", cr = "#0044f4", ur = "1px", dr = "16px", fr = "20px", pr = ci({
745
+ langs: {
746
+ json: () => import("@shikijs/langs/json"),
747
+ yaml: () => import("@shikijs/langs/yaml"),
748
+ terraform: () => import("@shikijs/langs/terraform"),
749
+ shellscript: () => import("@shikijs/langs/shellscript"),
750
+ bash: () => import("@shikijs/langs/shellscript"),
751
+ sh: () => import("@shikijs/langs/shellscript"),
752
+ shell: () => import("@shikijs/langs/shellscript"),
753
+ zsh: () => import("@shikijs/langs/shellscript"),
754
+ powershell: () => import("@shikijs/langs/powershell")
755
+ },
756
+ themes: {
757
+ "catppuccin-mocha": () => import("@shikijs/themes/catppuccin-mocha"),
758
+ "catppuccin-latte": () => import("@shikijs/themes/catppuccin-latte")
759
+ },
760
+ engine: () => di()
761
+ }), { codeToHtml: mr } = ui(pr);
762
+ async function Te({ codeElement: e, code: t, language: n, theme: i }) {
763
+ e.innerHTML = await mr(t, { lang: n, theme: i === "dark" ? "catppuccin-mocha" : "catppuccin-latte", structure: "inline" });
764
+ }
765
+ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["data-testid"], vr = ["data-testid"], br = ["data-testid"], kr = { key: 1 }, Cr = ["data-testid"], xr = ["data-testid"], Ar = ["data-testid"], _r = ["data-testid"], wr = {
740
766
  name: "ConfigCardItem",
741
- components: { JsonCardItem: en, StatusBadge: tr, InternalLinkItem: er }
742
- }, xr = /* @__PURE__ */ z({
743
- ...br,
767
+ components: { JsonCardItem: tn, StatusBadge: ar, InternalLinkItem: rr }
768
+ }, Sr = /* @__PURE__ */ z({
769
+ ...wr,
744
770
  props: {
745
771
  item: {
746
772
  type: Object,
@@ -759,17 +785,17 @@ const W = {
759
785
  },
760
786
  emits: ["navigation-click"],
761
787
  setup(e, { emit: t }) {
762
- Ht((D) => ({
763
- v70f369b3: p.value ? "none" : `solid ${_(or)} ${_(ir)}`,
764
- v67c2fae6: u.value && c.value ? "block" : "flex",
765
- v847b138c: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
766
- v847687d6: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
788
+ Vt((j) => ({
789
+ v0b2cd434: p.value ? "none" : `solid ${A(ur)} ${A(lr)}`,
790
+ bb02ad32: u.value && c.value ? "block" : "flex",
791
+ d92de3ce: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
792
+ d9295818: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
767
793
  }));
768
- const n = e, i = t, r = zn(), o = Pe(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = W.useI18n(), c = $(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = $(() => !!(n.item.tooltip || o["label-tooltip"])), u = $(() => n.item.type === Y.Json || n.item.type === Y.JsonArray), p = $(() => n.item.type === Y.JsonArray), m = W.useSubSchema(n.item.key), g = $(() => {
769
- var D;
770
- return n.item.type ? n.item.type : (D = m == null ? void 0 : m.value) != null && D.encrypted ? Y.Redacted : void 0;
771
- }), y = $(() => {
772
- switch (g.value) {
794
+ const n = e, i = t, r = Qn(), o = Ue(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = W.useI18n(), c = $(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = $(() => !!(n.item.tooltip || o["label-tooltip"])), u = $(() => n.item.type === Y.Json || n.item.type === Y.JsonArray), p = $(() => n.item.type === Y.JsonArray), m = W.useSubSchema(n.item.key), y = $(() => {
795
+ var j;
796
+ return n.item.type ? n.item.type : (j = m == null ? void 0 : m.value) != null && j.encrypted ? Y.Redacted : void 0;
797
+ }), h = $(() => {
798
+ switch (y.value) {
773
799
  case Y.ID:
774
800
  return {
775
801
  tag: "KCopy",
@@ -849,8 +875,8 @@ const W = {
849
875
  attrs: {
850
876
  "data-testid": `${n.item.key}-internal-link`,
851
877
  item: n.item,
852
- onNavigationClick: (D) => {
853
- i("navigation-click", D);
878
+ onNavigationClick: (j) => {
879
+ i("navigation-click", j);
854
880
  }
855
881
  }
856
882
  };
@@ -889,7 +915,8 @@ const W = {
889
915
  language: "json",
890
916
  code: JSON.stringify(n.item.value, null, " "),
891
917
  maxHeight: "480px",
892
- showLineNumbers: !1
918
+ showLineNumbers: !1,
919
+ onCodeBlockRender: Te
893
920
  }
894
921
  } : {
895
922
  tag: "div",
@@ -899,24 +926,24 @@ const W = {
899
926
  text: n.item.value
900
927
  };
901
928
  }
902
- }), x = N(), C = N(), { isTruncated: k } = W.useTruncationDetector(x), { isTruncated: L } = W.useTruncationDetector(C);
903
- return (D, X) => {
904
- const S = P("KTooltip"), w = P("KLabel"), F = P("KBadge"), f = P("KCopy");
905
- return h(), T("div", cr, [
906
- B("div", {
929
+ }), k = M(), C = M(), { isTruncated: x } = W.useTruncationDetector(k), { isTruncated: B } = W.useTruncationDetector(C);
930
+ return (j, X) => {
931
+ const S = D("KTooltip"), w = D("KLabel"), F = D("KBadge"), f = D("KCopy");
932
+ return g(), T("div", gr, [
933
+ L("div", {
907
934
  class: "config-card-details-label",
908
935
  "data-testid": `${e.item.key}-label`
909
936
  }, [
910
- U(D.$slots, "label", { item: e.item }, () => [
911
- R(w, { "tooltip-attributes": { maxWidth: "500px" } }, $e({
912
- default: A(() => [
913
- R(S, {
914
- text: _(k) ? e.item.label : ""
937
+ U(j.$slots, "label", { item: e.item }, () => [
938
+ K(w, { "tooltip-attributes": { maxWidth: "500px" } }, $e({
939
+ default: _(() => [
940
+ K(S, {
941
+ text: A(x) ? e.item.label : ""
915
942
  }, {
916
- default: A(() => [
917
- B("span", {
943
+ default: _(() => [
944
+ L("span", {
918
945
  ref_key: "labelContent",
919
- ref: x,
946
+ ref: k,
920
947
  class: "label-content"
921
948
  }, O(e.item.label), 513)
922
949
  ]),
@@ -927,111 +954,111 @@ const W = {
927
954
  }, [
928
955
  d.value ? {
929
956
  name: "tooltip",
930
- fn: A(() => [
931
- B("div", {
957
+ fn: _(() => [
958
+ L("div", {
932
959
  "data-testid": `${e.item.key}-label-tooltip`
933
960
  }, [
934
- U(D.$slots, "label-tooltip", {}, () => [
961
+ U(j.$slots, "label-tooltip", {}, () => [
935
962
  q(O(e.item.tooltip), 1)
936
963
  ], !0)
937
- ], 8, dr)
964
+ ], 8, yr)
938
965
  ]),
939
966
  key: "0"
940
967
  } : void 0
941
968
  ]), 1024)
942
969
  ], !0)
943
- ], 8, ur),
944
- B("div", {
970
+ ], 8, hr),
971
+ L("div", {
945
972
  class: "config-card-details-value",
946
973
  "data-testid": `${e.item.key}-property-value`
947
974
  }, [
948
- U(D.$slots, e.item.key, {
975
+ U(j.$slots, e.item.key, {
949
976
  rowValue: e.item.value
950
977
  }, () => [
951
- c.value ? (h(), T("div", mr, [
952
- (h(), M(De(y.value.tag), Qn(Zn(y.value.attrs)), {
953
- default: A(() => [
954
- y.value.additionalComponent === "KBadge" ? (h(), T("div", {
978
+ c.value ? (g(), T("div", kr, [
979
+ (g(), N(De(h.value.tag), Zn(Xn(h.value.attrs)), {
980
+ default: _(() => [
981
+ h.value.additionalComponent === "KBadge" ? (g(), T("div", {
955
982
  key: 0,
956
983
  "data-testid": `${e.item.key}-badge-tags`
957
984
  }, [
958
- (h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(F, {
985
+ (g(!0), T(ue, null, ce(e.item.value, (v, b) => (g(), N(F, {
959
986
  key: `${e.item.key}-badge-tag-${b}`,
960
987
  class: "config-badge",
961
988
  "data-testid": `${e.item.key}-badge-tag-${b}`,
962
989
  tooltip: v,
963
990
  "truncation-tooltip": ""
964
991
  }, {
965
- default: A(() => [
992
+ default: _(() => [
966
993
  q(O(v), 1)
967
994
  ]),
968
995
  _: 2
969
996
  }, 1032, ["data-testid", "tooltip"]))), 128))
970
- ], 8, hr)) : y.value.additionalComponent === "KCopy" ? (h(), T("div", {
997
+ ], 8, Cr)) : h.value.additionalComponent === "KCopy" ? (g(), T("div", {
971
998
  key: 1,
972
999
  class: "copy-uuid-array",
973
1000
  "data-testid": `${e.item.key}-copy-uuid-array`
974
1001
  }, [
975
- (h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(f, Vt({ ref_for: !0 }, y.value.childAttrs, {
1002
+ (g(!0), T(ue, null, ce(e.item.value, (v, b) => (g(), N(f, Yt({ ref_for: !0 }, h.value.childAttrs, {
976
1003
  key: `${e.item.key}-copy-uuid-${b}`,
977
1004
  "data-testid": `${e.item.key}-copy-uuid-${b}`,
978
1005
  text: v
979
1006
  }), null, 16, ["data-testid", "text"]))), 128))
980
- ], 8, yr)) : y.value.additionalComponent === "KMethodBadge" ? (h(), T("div", {
1007
+ ], 8, xr)) : h.value.additionalComponent === "KMethodBadge" ? (g(), T("div", {
981
1008
  key: 2,
982
1009
  class: "method-badge-array",
983
1010
  "data-testid": `${e.item.key}-badge-methods`
984
1011
  }, [
985
- (h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(F, {
1012
+ (g(!0), T(ue, null, ce(e.item.value, (v, b) => (g(), N(F, {
986
1013
  key: `${e.item.key}-badge-method-${b}`,
987
- appearance: Object.values(_(ri)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
1014
+ appearance: Object.values(A(ai)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
988
1015
  class: "config-badge",
989
1016
  "data-testid": `${e.item.key}-badge-method-${b}`
990
1017
  }, {
991
- default: A(() => [
1018
+ default: _(() => [
992
1019
  q(O(v), 1)
993
1020
  ]),
994
1021
  _: 2
995
1022
  }, 1032, ["appearance", "data-testid"]))), 128))
996
- ], 8, gr)) : y.value.additionalComponent === "JsonCardItem" ? (h(), T("div", {
1023
+ ], 8, Ar)) : h.value.additionalComponent === "JsonCardItem" ? (g(), T("div", {
997
1024
  key: 3,
998
1025
  "data-testid": `${n.item.key}-json-array-content`
999
1026
  }, [
1000
- (h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(en, {
1027
+ (g(!0), T(ue, null, ce(e.item.value, (v, b) => (g(), N(tn, {
1001
1028
  key: `json-array-item-${b}`,
1002
1029
  index: b,
1003
1030
  "is-array-item": "",
1004
1031
  item: v
1005
1032
  }, null, 8, ["index", "item"]))), 128))
1006
- ], 8, vr)) : (h(), M(S, {
1033
+ ], 8, _r)) : (g(), N(S, {
1007
1034
  key: 4,
1008
- text: _(L) ? e.item.value : ""
1035
+ text: A(B) ? e.item.value : ""
1009
1036
  }, {
1010
- default: A(() => [
1011
- B("span", {
1037
+ default: _(() => [
1038
+ L("span", {
1012
1039
  ref_key: "textContent",
1013
1040
  ref: C,
1014
1041
  class: fe(["attrs-data-text", { truncated: e.truncated }])
1015
- }, O(y.value.text), 3)
1042
+ }, O(h.value.text), 3)
1016
1043
  ]),
1017
1044
  _: 1
1018
1045
  }, 8, ["text"]))
1019
1046
  ]),
1020
1047
  _: 1
1021
1048
  }, 16))
1022
- ])) : (h(), T("div", {
1049
+ ])) : (g(), T("div", {
1023
1050
  key: 0,
1024
1051
  "data-testid": `${e.item.key}-no-value`
1025
- }, " – ", 8, pr))
1052
+ }, " – ", 8, br))
1026
1053
  ], !0)
1027
- ], 8, fr)
1054
+ ], 8, vr)
1028
1055
  ]);
1029
1056
  };
1030
1057
  }
1031
- }), tn = /* @__PURE__ */ le(xr, [["__scopeId", "data-v-66d61bea"]]), Cr = { class: "json-config config-card-code-block" }, kr = {
1058
+ }), nn = /* @__PURE__ */ le(Sr, [["__scopeId", "data-v-40ffb9f1"]]), $r = { class: "json-config config-card-code-block" }, Tr = {
1032
1059
  key: 0,
1033
1060
  class: "json-endpoint"
1034
- }, nn = /* @__PURE__ */ z({
1061
+ }, rn = /* @__PURE__ */ z({
1035
1062
  __name: "JsonCodeBlock",
1036
1063
  props: {
1037
1064
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1059,8 +1086,8 @@ const W = {
1059
1086
  }
1060
1087
  },
1061
1088
  setup(e) {
1062
- Ht((r) => ({
1063
- eca0976a: `${i.value}ch`
1089
+ Vt((r) => ({
1090
+ v58418ff6: `${i.value}ch`
1064
1091
  }));
1065
1092
  const t = e, n = $(() => t.entityRecord), i = $(() => {
1066
1093
  var a;
@@ -1070,87 +1097,88 @@ const W = {
1070
1097
  return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
1071
1098
  });
1072
1099
  return (r, o) => {
1073
- const a = P("KBadge"), l = P("KCodeBlock");
1074
- return h(), T("div", Cr, [
1075
- t.fetcherUrl ? (h(), T("div", kr, [
1076
- R(a, {
1100
+ const a = D("KBadge"), l = D("KCodeBlock");
1101
+ return g(), T("div", $r, [
1102
+ t.fetcherUrl ? (g(), T("div", Tr, [
1103
+ K(a, {
1077
1104
  appearance: t.requestMethod
1078
1105
  }, {
1079
- default: A(() => [
1106
+ default: _(() => [
1080
1107
  q(O(t.requestMethod), 1)
1081
1108
  ]),
1082
1109
  _: 1
1083
1110
  }, 8, ["appearance"]),
1084
- R(l, {
1111
+ K(l, {
1085
1112
  id: "json-endpoint-codeblock",
1086
1113
  code: t.fetcherUrl,
1087
- language: "json",
1114
+ language: "plaintext",
1088
1115
  "single-line": "",
1089
1116
  theme: "dark"
1090
1117
  }, null, 8, ["code"])
1091
- ])) : j("", !0),
1092
- t.entityRecord ? (h(), M(l, {
1118
+ ])) : P("", !0),
1119
+ t.entityRecord ? (g(), N(l, {
1093
1120
  key: 1,
1094
1121
  id: "json-codeblock",
1095
1122
  class: fe({ "json-content": t.fetcherUrl }),
1096
1123
  code: JSON.stringify(n.value, null, 2),
1097
1124
  language: "json",
1098
- theme: "dark"
1099
- }, null, 8, ["class", "code"])) : j("", !0)
1125
+ theme: "dark",
1126
+ onCodeBlockRender: A(Te)
1127
+ }, null, 8, ["class", "code", "onCodeBlockRender"])) : P("", !0)
1100
1128
  ]);
1101
1129
  };
1102
1130
  }
1103
1131
  });
1104
1132
  /*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
1105
- function rn(e) {
1133
+ function an(e) {
1106
1134
  return typeof e > "u" || e === null;
1107
1135
  }
1108
- function Ar(e) {
1136
+ function Er(e) {
1109
1137
  return typeof e == "object" && e !== null;
1110
1138
  }
1111
- function _r(e) {
1112
- return Array.isArray(e) ? e : rn(e) ? [] : [e];
1139
+ function Ir(e) {
1140
+ return Array.isArray(e) ? e : an(e) ? [] : [e];
1113
1141
  }
1114
- function wr(e, t) {
1142
+ function Fr(e, t) {
1115
1143
  var n, i, r, o;
1116
1144
  if (t)
1117
1145
  for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
1118
1146
  r = o[n], e[r] = t[r];
1119
1147
  return e;
1120
1148
  }
1121
- function Sr(e, t) {
1149
+ function Or(e, t) {
1122
1150
  var n = "", i;
1123
1151
  for (i = 0; i < t; i += 1)
1124
1152
  n += e;
1125
1153
  return n;
1126
1154
  }
1127
- function $r(e) {
1155
+ function Br(e) {
1128
1156
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1129
1157
  }
1130
- var Tr = rn, Er = Ar, Ir = _r, Fr = Sr, Or = $r, Lr = wr, ee = {
1131
- isNothing: Tr,
1132
- isObject: Er,
1133
- toArray: Ir,
1134
- repeat: Fr,
1135
- isNegativeZero: Or,
1136
- extend: Lr
1158
+ var Lr = an, Rr = Er, Kr = Ir, Nr = Or, Mr = Br, Pr = Fr, ee = {
1159
+ isNothing: Lr,
1160
+ isObject: Rr,
1161
+ toArray: Kr,
1162
+ repeat: Nr,
1163
+ isNegativeZero: Mr,
1164
+ extend: Pr
1137
1165
  };
1138
- function an(e, t) {
1166
+ function on(e, t) {
1139
1167
  var n = "", i = e.reason || "(unknown reason)";
1140
1168
  return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += `
1141
1169
 
1142
1170
  ` + e.mark.snippet), i + " " + n) : i;
1143
1171
  }
1144
- function Ie(e, t) {
1145
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = an(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1172
+ function Fe(e, t) {
1173
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = on(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1146
1174
  }
1147
- Ie.prototype = Object.create(Error.prototype);
1148
- Ie.prototype.constructor = Ie;
1149
- Ie.prototype.toString = function(t) {
1150
- return this.name + ": " + an(this, t);
1175
+ Fe.prototype = Object.create(Error.prototype);
1176
+ Fe.prototype.constructor = Fe;
1177
+ Fe.prototype.toString = function(t) {
1178
+ return this.name + ": " + on(this, t);
1151
1179
  };
1152
- var oe = Ie;
1153
- function Ye(e, t, n, i, r) {
1180
+ var oe = Fe;
1181
+ function We(e, t, n, i, r) {
1154
1182
  var o = "", a = "", l = Math.floor(r / 2) - 1;
1155
1183
  return i - t > l && (o = " ... ", t = i - l + o.length), n - i > l && (a = " ...", n = i + l - a.length), {
1156
1184
  str: o + e.slice(t, n).replace(/\t/g, "→") + a,
@@ -1158,10 +1186,10 @@ function Ye(e, t, n, i, r) {
1158
1186
  // relative position
1159
1187
  };
1160
1188
  }
1161
- function We(e, t) {
1189
+ function Je(e, t) {
1162
1190
  return ee.repeat(" ", t - e.length) + e;
1163
1191
  }
1164
- function Br(e, t) {
1192
+ function jr(e, t) {
1165
1193
  if (t = Object.create(t || null), !e.buffer) return null;
1166
1194
  t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
1167
1195
  for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
@@ -1169,28 +1197,28 @@ function Br(e, t) {
1169
1197
  a < 0 && (a = i.length - 1);
1170
1198
  var l = "", s, c, d = Math.min(e.line + t.linesAfter, r.length).toString().length, u = t.maxLength - (t.indent + d + 3);
1171
1199
  for (s = 1; s <= t.linesBefore && !(a - s < 0); s++)
1172
- c = Ye(
1200
+ c = We(
1173
1201
  e.buffer,
1174
1202
  i[a - s],
1175
1203
  r[a - s],
1176
1204
  e.position - (i[a] - i[a - s]),
1177
1205
  u
1178
- ), l = ee.repeat(" ", t.indent) + We((e.line - s + 1).toString(), d) + " | " + c.str + `
1206
+ ), l = ee.repeat(" ", t.indent) + Je((e.line - s + 1).toString(), d) + " | " + c.str + `
1179
1207
  ` + l;
1180
- for (c = Ye(e.buffer, i[a], r[a], e.position, u), l += ee.repeat(" ", t.indent) + We((e.line + 1).toString(), d) + " | " + c.str + `
1208
+ for (c = We(e.buffer, i[a], r[a], e.position, u), l += ee.repeat(" ", t.indent) + Je((e.line + 1).toString(), d) + " | " + c.str + `
1181
1209
  `, l += ee.repeat("-", t.indent + d + 3 + c.pos) + `^
1182
1210
  `, s = 1; s <= t.linesAfter && !(a + s >= r.length); s++)
1183
- c = Ye(
1211
+ c = We(
1184
1212
  e.buffer,
1185
1213
  i[a + s],
1186
1214
  r[a + s],
1187
1215
  e.position - (i[a] - i[a + s]),
1188
1216
  u
1189
- ), l += ee.repeat(" ", t.indent) + We((e.line + s + 1).toString(), d) + " | " + c.str + `
1217
+ ), l += ee.repeat(" ", t.indent) + Je((e.line + s + 1).toString(), d) + " | " + c.str + `
1190
1218
  `;
1191
1219
  return l.replace(/\n$/, "");
1192
1220
  }
1193
- var Kr = Br, Rr = [
1221
+ var Dr = jr, Ur = [
1194
1222
  "kind",
1195
1223
  "multi",
1196
1224
  "resolve",
@@ -1201,12 +1229,12 @@ var Kr = Br, Rr = [
1201
1229
  "representName",
1202
1230
  "defaultStyle",
1203
1231
  "styleAliases"
1204
- ], Nr = [
1232
+ ], qr = [
1205
1233
  "scalar",
1206
1234
  "sequence",
1207
1235
  "mapping"
1208
1236
  ];
1209
- function Mr(e) {
1237
+ function Hr(e) {
1210
1238
  var t = {};
1211
1239
  return e !== null && Object.keys(e).forEach(function(n) {
1212
1240
  e[n].forEach(function(i) {
@@ -1214,19 +1242,19 @@ function Mr(e) {
1214
1242
  });
1215
1243
  }), t;
1216
1244
  }
1217
- function jr(e, t) {
1245
+ function Vr(e, t) {
1218
1246
  if (t = t || {}, Object.keys(t).forEach(function(n) {
1219
- if (Rr.indexOf(n) === -1)
1247
+ if (Ur.indexOf(n) === -1)
1220
1248
  throw new oe('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
1221
1249
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
1222
1250
  return !0;
1223
1251
  }, this.construct = t.construct || function(n) {
1224
1252
  return n;
1225
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Mr(t.styleAliases || null), Nr.indexOf(this.kind) === -1)
1253
+ }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Hr(t.styleAliases || null), qr.indexOf(this.kind) === -1)
1226
1254
  throw new oe('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1227
1255
  }
1228
- var ie = jr;
1229
- function wt(e, t) {
1256
+ var ie = Vr;
1257
+ function St(e, t) {
1230
1258
  var n = [];
1231
1259
  return e[t].forEach(function(i) {
1232
1260
  var r = n.length;
@@ -1235,7 +1263,7 @@ function wt(e, t) {
1235
1263
  }), n[r] = i;
1236
1264
  }), n;
1237
1265
  }
1238
- function Dr() {
1266
+ function Yr() {
1239
1267
  var e = {
1240
1268
  scalar: {},
1241
1269
  sequence: {},
@@ -1255,10 +1283,10 @@ function Dr() {
1255
1283
  arguments[t].forEach(i);
1256
1284
  return e;
1257
1285
  }
1258
- function Qe(e) {
1286
+ function Ze(e) {
1259
1287
  return this.extend(e);
1260
1288
  }
1261
- Qe.prototype.extend = function(t) {
1289
+ Ze.prototype.extend = function(t) {
1262
1290
  var n = [], i = [];
1263
1291
  if (t instanceof ie)
1264
1292
  i.push(t);
@@ -1279,47 +1307,47 @@ Qe.prototype.extend = function(t) {
1279
1307
  if (!(o instanceof ie))
1280
1308
  throw new oe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1281
1309
  });
1282
- var r = Object.create(Qe.prototype);
1283
- return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = wt(r, "implicit"), r.compiledExplicit = wt(r, "explicit"), r.compiledTypeMap = Dr(r.compiledImplicit, r.compiledExplicit), r;
1310
+ var r = Object.create(Ze.prototype);
1311
+ return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = St(r, "implicit"), r.compiledExplicit = St(r, "explicit"), r.compiledTypeMap = Yr(r.compiledImplicit, r.compiledExplicit), r;
1284
1312
  };
1285
- var on = Qe, ln = new ie("tag:yaml.org,2002:str", {
1313
+ var ln = Ze, sn = new ie("tag:yaml.org,2002:str", {
1286
1314
  kind: "scalar",
1287
1315
  construct: function(e) {
1288
1316
  return e !== null ? e : "";
1289
1317
  }
1290
- }), sn = new ie("tag:yaml.org,2002:seq", {
1318
+ }), cn = new ie("tag:yaml.org,2002:seq", {
1291
1319
  kind: "sequence",
1292
1320
  construct: function(e) {
1293
1321
  return e !== null ? e : [];
1294
1322
  }
1295
- }), cn = new ie("tag:yaml.org,2002:map", {
1323
+ }), un = new ie("tag:yaml.org,2002:map", {
1296
1324
  kind: "mapping",
1297
1325
  construct: function(e) {
1298
1326
  return e !== null ? e : {};
1299
1327
  }
1300
- }), un = new on({
1328
+ }), dn = new ln({
1301
1329
  explicit: [
1302
- ln,
1303
1330
  sn,
1304
- cn
1331
+ cn,
1332
+ un
1305
1333
  ]
1306
1334
  });
1307
- function Pr(e) {
1335
+ function Wr(e) {
1308
1336
  if (e === null) return !0;
1309
1337
  var t = e.length;
1310
1338
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
1311
1339
  }
1312
- function Ur() {
1340
+ function Jr() {
1313
1341
  return null;
1314
1342
  }
1315
- function qr(e) {
1343
+ function Gr(e) {
1316
1344
  return e === null;
1317
1345
  }
1318
- var dn = new ie("tag:yaml.org,2002:null", {
1346
+ var fn = new ie("tag:yaml.org,2002:null", {
1319
1347
  kind: "scalar",
1320
- resolve: Pr,
1321
- construct: Ur,
1322
- predicate: qr,
1348
+ resolve: Wr,
1349
+ construct: Jr,
1350
+ predicate: Gr,
1323
1351
  represent: {
1324
1352
  canonical: function() {
1325
1353
  return "~";
@@ -1339,22 +1367,22 @@ var dn = new ie("tag:yaml.org,2002:null", {
1339
1367
  },
1340
1368
  defaultStyle: "lowercase"
1341
1369
  });
1342
- function Hr(e) {
1370
+ function zr(e) {
1343
1371
  if (e === null) return !1;
1344
1372
  var t = e.length;
1345
1373
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
1346
1374
  }
1347
- function Vr(e) {
1375
+ function Qr(e) {
1348
1376
  return e === "true" || e === "True" || e === "TRUE";
1349
1377
  }
1350
- function Yr(e) {
1378
+ function Zr(e) {
1351
1379
  return Object.prototype.toString.call(e) === "[object Boolean]";
1352
1380
  }
1353
- var fn = new ie("tag:yaml.org,2002:bool", {
1381
+ var pn = new ie("tag:yaml.org,2002:bool", {
1354
1382
  kind: "scalar",
1355
- resolve: Hr,
1356
- construct: Vr,
1357
- predicate: Yr,
1383
+ resolve: zr,
1384
+ construct: Qr,
1385
+ predicate: Zr,
1358
1386
  represent: {
1359
1387
  lowercase: function(e) {
1360
1388
  return e ? "true" : "false";
@@ -1368,16 +1396,16 @@ var fn = new ie("tag:yaml.org,2002:bool", {
1368
1396
  },
1369
1397
  defaultStyle: "lowercase"
1370
1398
  });
1371
- function Wr(e) {
1399
+ function Xr(e) {
1372
1400
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1373
1401
  }
1374
- function Jr(e) {
1402
+ function ea(e) {
1375
1403
  return 48 <= e && e <= 55;
1376
1404
  }
1377
- function Gr(e) {
1405
+ function ta(e) {
1378
1406
  return 48 <= e && e <= 57;
1379
1407
  }
1380
- function zr(e) {
1408
+ function na(e) {
1381
1409
  if (e === null) return !1;
1382
1410
  var t = e.length, n = 0, i = !1, r;
1383
1411
  if (!t) return !1;
@@ -1394,7 +1422,7 @@ function zr(e) {
1394
1422
  if (r === "x") {
1395
1423
  for (n++; n < t; n++)
1396
1424
  if (r = e[n], r !== "_") {
1397
- if (!Wr(e.charCodeAt(n))) return !1;
1425
+ if (!Xr(e.charCodeAt(n))) return !1;
1398
1426
  i = !0;
1399
1427
  }
1400
1428
  return i && r !== "_";
@@ -1402,7 +1430,7 @@ function zr(e) {
1402
1430
  if (r === "o") {
1403
1431
  for (n++; n < t; n++)
1404
1432
  if (r = e[n], r !== "_") {
1405
- if (!Jr(e.charCodeAt(n))) return !1;
1433
+ if (!ea(e.charCodeAt(n))) return !1;
1406
1434
  i = !0;
1407
1435
  }
1408
1436
  return i && r !== "_";
@@ -1411,13 +1439,13 @@ function zr(e) {
1411
1439
  if (r === "_") return !1;
1412
1440
  for (; n < t; n++)
1413
1441
  if (r = e[n], r !== "_") {
1414
- if (!Gr(e.charCodeAt(n)))
1442
+ if (!ta(e.charCodeAt(n)))
1415
1443
  return !1;
1416
1444
  i = !0;
1417
1445
  }
1418
1446
  return !(!i || r === "_");
1419
1447
  }
1420
- function Qr(e) {
1448
+ function ia(e) {
1421
1449
  var t = e, n = 1, i;
1422
1450
  if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (n = -1), t = t.slice(1), i = t[0]), t === "0") return 0;
1423
1451
  if (i === "0") {
@@ -1427,14 +1455,14 @@ function Qr(e) {
1427
1455
  }
1428
1456
  return n * parseInt(t, 10);
1429
1457
  }
1430
- function Zr(e) {
1458
+ function ra(e) {
1431
1459
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ee.isNegativeZero(e);
1432
1460
  }
1433
- var pn = new ie("tag:yaml.org,2002:int", {
1461
+ var mn = new ie("tag:yaml.org,2002:int", {
1434
1462
  kind: "scalar",
1435
- resolve: zr,
1436
- construct: Qr,
1437
- predicate: Zr,
1463
+ resolve: na,
1464
+ construct: ia,
1465
+ predicate: ra,
1438
1466
  represent: {
1439
1467
  binary: function(e) {
1440
1468
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1457,21 +1485,21 @@ var pn = new ie("tag:yaml.org,2002:int", {
1457
1485
  decimal: [10, "dec"],
1458
1486
  hexadecimal: [16, "hex"]
1459
1487
  }
1460
- }), Xr = new RegExp(
1488
+ }), aa = new RegExp(
1461
1489
  // 2.5e4, 2.5 and integers
1462
1490
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1463
1491
  );
1464
- function ea(e) {
1465
- return !(e === null || !Xr.test(e) || // Quick hack to not allow integers end with `_`
1492
+ function oa(e) {
1493
+ return !(e === null || !aa.test(e) || // Quick hack to not allow integers end with `_`
1466
1494
  // Probably should update regexp & check speed
1467
1495
  e[e.length - 1] === "_");
1468
1496
  }
1469
- function ta(e) {
1497
+ function la(e) {
1470
1498
  var t, n;
1471
1499
  return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
1472
1500
  }
1473
- var na = /^[-+]?[0-9]+e/;
1474
- function ia(e, t) {
1501
+ var sa = /^[-+]?[0-9]+e/;
1502
+ function ca(e, t) {
1475
1503
  var n;
1476
1504
  if (isNaN(e))
1477
1505
  switch (t) {
@@ -1502,36 +1530,36 @@ function ia(e, t) {
1502
1530
  }
1503
1531
  else if (ee.isNegativeZero(e))
1504
1532
  return "-0.0";
1505
- return n = e.toString(10), na.test(n) ? n.replace("e", ".e") : n;
1533
+ return n = e.toString(10), sa.test(n) ? n.replace("e", ".e") : n;
1506
1534
  }
1507
- function ra(e) {
1535
+ function ua(e) {
1508
1536
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ee.isNegativeZero(e));
1509
1537
  }
1510
- var mn = new ie("tag:yaml.org,2002:float", {
1538
+ var gn = new ie("tag:yaml.org,2002:float", {
1511
1539
  kind: "scalar",
1512
- resolve: ea,
1513
- construct: ta,
1514
- predicate: ra,
1515
- represent: ia,
1540
+ resolve: oa,
1541
+ construct: la,
1542
+ predicate: ua,
1543
+ represent: ca,
1516
1544
  defaultStyle: "lowercase"
1517
- }), hn = un.extend({
1545
+ }), hn = dn.extend({
1518
1546
  implicit: [
1519
- dn,
1520
1547
  fn,
1521
1548
  pn,
1522
- mn
1549
+ mn,
1550
+ gn
1523
1551
  ]
1524
- }), yn = hn, gn = new RegExp(
1552
+ }), yn = hn, vn = new RegExp(
1525
1553
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1526
- ), vn = new RegExp(
1554
+ ), bn = new RegExp(
1527
1555
  "^([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]))?))?$"
1528
1556
  );
1529
- function aa(e) {
1530
- return e === null ? !1 : gn.exec(e) !== null || vn.exec(e) !== null;
1557
+ function da(e) {
1558
+ return e === null ? !1 : vn.exec(e) !== null || bn.exec(e) !== null;
1531
1559
  }
1532
- function oa(e) {
1560
+ function fa(e) {
1533
1561
  var t, n, i, r, o, a, l, s = 0, c = null, d, u, p;
1534
- if (t = gn.exec(e), t === null && (t = vn.exec(e)), t === null) throw new Error("Date resolve error");
1562
+ if (t = vn.exec(e), t === null && (t = bn.exec(e)), t === null) throw new Error("Date resolve error");
1535
1563
  if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
1536
1564
  return new Date(Date.UTC(n, i, r));
1537
1565
  if (o = +t[4], a = +t[5], l = +t[6], t[7]) {
@@ -1541,27 +1569,27 @@ function oa(e) {
1541
1569
  }
1542
1570
  return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), p = new Date(Date.UTC(n, i, r, o, a, l, s)), c && p.setTime(p.getTime() - c), p;
1543
1571
  }
1544
- function la(e) {
1572
+ function pa(e) {
1545
1573
  return e.toISOString();
1546
1574
  }
1547
- var bn = new ie("tag:yaml.org,2002:timestamp", {
1575
+ var kn = new ie("tag:yaml.org,2002:timestamp", {
1548
1576
  kind: "scalar",
1549
- resolve: aa,
1550
- construct: oa,
1577
+ resolve: da,
1578
+ construct: fa,
1551
1579
  instanceOf: Date,
1552
- represent: la
1580
+ represent: pa
1553
1581
  });
1554
- function sa(e) {
1582
+ function ma(e) {
1555
1583
  return e === "<<" || e === null;
1556
1584
  }
1557
- var xn = new ie("tag:yaml.org,2002:merge", {
1585
+ var Cn = new ie("tag:yaml.org,2002:merge", {
1558
1586
  kind: "scalar",
1559
- resolve: sa
1560
- }), at = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1587
+ resolve: ma
1588
+ }), ot = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1561
1589
  \r`;
1562
- function ca(e) {
1590
+ function ga(e) {
1563
1591
  if (e === null) return !1;
1564
- var t, n, i = 0, r = e.length, o = at;
1592
+ var t, n, i = 0, r = e.length, o = ot;
1565
1593
  for (n = 0; n < r; n++)
1566
1594
  if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
1567
1595
  if (t < 0) return !1;
@@ -1569,35 +1597,35 @@ function ca(e) {
1569
1597
  }
1570
1598
  return i % 8 === 0;
1571
1599
  }
1572
- function ua(e) {
1573
- var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = at, a = 0, l = [];
1600
+ function ha(e) {
1601
+ var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = ot, a = 0, l = [];
1574
1602
  for (t = 0; t < r; t++)
1575
1603
  t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
1576
1604
  return n = r % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
1577
1605
  }
1578
- function da(e) {
1579
- var t = "", n = 0, i, r, o = e.length, a = at;
1606
+ function ya(e) {
1607
+ var t = "", n = 0, i, r, o = e.length, a = ot;
1580
1608
  for (i = 0; i < o; i++)
1581
1609
  i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
1582
1610
  return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
1583
1611
  }
1584
- function fa(e) {
1612
+ function va(e) {
1585
1613
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1586
1614
  }
1587
- var Cn = new ie("tag:yaml.org,2002:binary", {
1615
+ var xn = new ie("tag:yaml.org,2002:binary", {
1588
1616
  kind: "scalar",
1589
- resolve: ca,
1590
- construct: ua,
1591
- predicate: fa,
1592
- represent: da
1593
- }), pa = Object.prototype.hasOwnProperty, ma = Object.prototype.toString;
1594
- function ha(e) {
1617
+ resolve: ga,
1618
+ construct: ha,
1619
+ predicate: va,
1620
+ represent: ya
1621
+ }), ba = Object.prototype.hasOwnProperty, ka = Object.prototype.toString;
1622
+ function Ca(e) {
1595
1623
  if (e === null) return !0;
1596
1624
  var t = [], n, i, r, o, a, l = e;
1597
1625
  for (n = 0, i = l.length; n < i; n += 1) {
1598
- if (r = l[n], a = !1, ma.call(r) !== "[object Object]") return !1;
1626
+ if (r = l[n], a = !1, ka.call(r) !== "[object Object]") return !1;
1599
1627
  for (o in r)
1600
- if (pa.call(r, o))
1628
+ if (ba.call(r, o))
1601
1629
  if (!a) a = !0;
1602
1630
  else return !1;
1603
1631
  if (!a) return !1;
@@ -1606,63 +1634,63 @@ function ha(e) {
1606
1634
  }
1607
1635
  return !0;
1608
1636
  }
1609
- function ya(e) {
1637
+ function xa(e) {
1610
1638
  return e !== null ? e : [];
1611
1639
  }
1612
- var kn = new ie("tag:yaml.org,2002:omap", {
1640
+ var An = new ie("tag:yaml.org,2002:omap", {
1613
1641
  kind: "sequence",
1614
- resolve: ha,
1615
- construct: ya
1616
- }), ga = Object.prototype.toString;
1617
- function va(e) {
1642
+ resolve: Ca,
1643
+ construct: xa
1644
+ }), Aa = Object.prototype.toString;
1645
+ function _a(e) {
1618
1646
  if (e === null) return !0;
1619
1647
  var t, n, i, r, o, a = e;
1620
1648
  for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
1621
- if (i = a[t], ga.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
1649
+ if (i = a[t], Aa.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
1622
1650
  o[t] = [r[0], i[r[0]]];
1623
1651
  }
1624
1652
  return !0;
1625
1653
  }
1626
- function ba(e) {
1654
+ function wa(e) {
1627
1655
  if (e === null) return [];
1628
1656
  var t, n, i, r, o, a = e;
1629
1657
  for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
1630
1658
  i = a[t], r = Object.keys(i), o[t] = [r[0], i[r[0]]];
1631
1659
  return o;
1632
1660
  }
1633
- var An = new ie("tag:yaml.org,2002:pairs", {
1661
+ var _n = new ie("tag:yaml.org,2002:pairs", {
1634
1662
  kind: "sequence",
1635
- resolve: va,
1636
- construct: ba
1637
- }), xa = Object.prototype.hasOwnProperty;
1638
- function Ca(e) {
1663
+ resolve: _a,
1664
+ construct: wa
1665
+ }), Sa = Object.prototype.hasOwnProperty;
1666
+ function $a(e) {
1639
1667
  if (e === null) return !0;
1640
1668
  var t, n = e;
1641
1669
  for (t in n)
1642
- if (xa.call(n, t) && n[t] !== null)
1670
+ if (Sa.call(n, t) && n[t] !== null)
1643
1671
  return !1;
1644
1672
  return !0;
1645
1673
  }
1646
- function ka(e) {
1674
+ function Ta(e) {
1647
1675
  return e !== null ? e : {};
1648
1676
  }
1649
- var _n = new ie("tag:yaml.org,2002:set", {
1677
+ var wn = new ie("tag:yaml.org,2002:set", {
1650
1678
  kind: "mapping",
1651
- resolve: Ca,
1652
- construct: ka
1653
- }), ot = yn.extend({
1679
+ resolve: $a,
1680
+ construct: Ta
1681
+ }), lt = yn.extend({
1654
1682
  implicit: [
1655
- bn,
1656
- xn
1683
+ kn,
1684
+ Cn
1657
1685
  ],
1658
1686
  explicit: [
1659
- Cn,
1660
- kn,
1687
+ xn,
1661
1688
  An,
1662
- _n
1689
+ _n,
1690
+ wn
1663
1691
  ]
1664
- }), ge = Object.prototype.hasOwnProperty, Ke = 1, wn = 2, Sn = 3, Re = 4, Je = 1, Aa = 2, St = 3, _a = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, wa = /[\x85\u2028\u2029]/, Sa = /[,\[\]\{\}]/, $n = /^(?:!|!!|![a-z\-]+!)$/i, Tn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1665
- function $t(e) {
1692
+ }), ye = Object.prototype.hasOwnProperty, Ke = 1, Sn = 2, $n = 3, Ne = 4, Ge = 1, Ea = 2, $t = 3, Ia = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Fa = /[\x85\u2028\u2029]/, Oa = /[,\[\]\{\}]/, Tn = /^(?:!|!!|![a-z\-]+!)$/i, En = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1693
+ function Tt(e) {
1666
1694
  return Object.prototype.toString.call(e);
1667
1695
  }
1668
1696
  function de(e) {
@@ -1677,27 +1705,27 @@ function se(e) {
1677
1705
  function _e(e) {
1678
1706
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1679
1707
  }
1680
- function $a(e) {
1708
+ function Ba(e) {
1681
1709
  var t;
1682
1710
  return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
1683
1711
  }
1684
- function Ta(e) {
1712
+ function La(e) {
1685
1713
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1686
1714
  }
1687
- function Ea(e) {
1715
+ function Ra(e) {
1688
1716
  return 48 <= e && e <= 57 ? e - 48 : -1;
1689
1717
  }
1690
- function Tt(e) {
1718
+ function Et(e) {
1691
1719
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1692
1720
  ` : 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" : "";
1693
1721
  }
1694
- function Ia(e) {
1722
+ function Ka(e) {
1695
1723
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1696
1724
  (e - 65536 >> 10) + 55296,
1697
1725
  (e - 65536 & 1023) + 56320
1698
1726
  );
1699
1727
  }
1700
- function En(e, t, n) {
1728
+ function In(e, t, n) {
1701
1729
  t === "__proto__" ? Object.defineProperty(e, t, {
1702
1730
  configurable: !0,
1703
1731
  enumerable: !0,
@@ -1705,13 +1733,13 @@ function En(e, t, n) {
1705
1733
  value: n
1706
1734
  }) : e[t] = n;
1707
1735
  }
1708
- var In = new Array(256), Fn = new Array(256);
1709
- for (var ke = 0; ke < 256; ke++)
1710
- In[ke] = Tt(ke) ? 1 : 0, Fn[ke] = Tt(ke);
1711
- function Fa(e, t) {
1712
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || ot, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.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 = [];
1736
+ var Fn = new Array(256), On = new Array(256);
1737
+ for (var xe = 0; xe < 256; xe++)
1738
+ Fn[xe] = Et(xe) ? 1 : 0, On[xe] = Et(xe);
1739
+ function Na(e, t) {
1740
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || lt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.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 = [];
1713
1741
  }
1714
- function On(e, t) {
1742
+ function Bn(e, t) {
1715
1743
  var n = {
1716
1744
  name: e.filename,
1717
1745
  buffer: e.input.slice(0, -1),
@@ -1720,22 +1748,22 @@ function On(e, t) {
1720
1748
  line: e.line,
1721
1749
  column: e.position - e.lineStart
1722
1750
  };
1723
- return n.snippet = Kr(n), new oe(t, n);
1751
+ return n.snippet = Dr(n), new oe(t, n);
1724
1752
  }
1725
1753
  function I(e, t) {
1726
- throw On(e, t);
1754
+ throw Bn(e, t);
1727
1755
  }
1728
- function Ne(e, t) {
1729
- e.onWarning && e.onWarning.call(null, On(e, t));
1756
+ function Me(e, t) {
1757
+ e.onWarning && e.onWarning.call(null, Bn(e, t));
1730
1758
  }
1731
- var Et = {
1759
+ var It = {
1732
1760
  YAML: function(t, n, i) {
1733
1761
  var r, o, a;
1734
- t.version !== null && I(t, "duplication of %YAML directive"), i.length !== 1 && I(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && I(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && I(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Ne(t, "unsupported YAML version of the document");
1762
+ t.version !== null && I(t, "duplication of %YAML directive"), i.length !== 1 && I(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && I(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && I(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Me(t, "unsupported YAML version of the document");
1735
1763
  },
1736
1764
  TAG: function(t, n, i) {
1737
1765
  var r, o;
1738
- i.length !== 2 && I(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], $n.test(r) || I(t, "ill-formed tag handle (first argument) of the TAG directive"), ge.call(t.tagMap, r) && I(t, 'there is a previously declared suffix for "' + r + '" tag handle'), Tn.test(o) || I(t, "ill-formed tag prefix (second argument) of the TAG directive");
1766
+ i.length !== 2 && I(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], Tn.test(r) || I(t, "ill-formed tag handle (first argument) of the TAG directive"), ye.call(t.tagMap, r) && I(t, 'there is a previously declared suffix for "' + r + '" tag handle'), En.test(o) || I(t, "ill-formed tag prefix (second argument) of the TAG directive");
1739
1767
  try {
1740
1768
  o = decodeURIComponent(o);
1741
1769
  } catch {
@@ -1744,37 +1772,37 @@ var Et = {
1744
1772
  t.tagMap[r] = o;
1745
1773
  }
1746
1774
  };
1747
- function ye(e, t, n, i) {
1775
+ function he(e, t, n, i) {
1748
1776
  var r, o, a, l;
1749
1777
  if (t < n) {
1750
1778
  if (l = e.input.slice(t, n), i)
1751
1779
  for (r = 0, o = l.length; r < o; r += 1)
1752
1780
  a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || I(e, "expected valid JSON character");
1753
- else _a.test(l) && I(e, "the stream contains non-printable characters");
1781
+ else Ia.test(l) && I(e, "the stream contains non-printable characters");
1754
1782
  e.result += l;
1755
1783
  }
1756
1784
  }
1757
- function It(e, t, n, i) {
1785
+ function Ft(e, t, n, i) {
1758
1786
  var r, o, a, l;
1759
1787
  for (ee.isObject(n) || I(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
1760
- o = r[a], ge.call(t, o) || (En(t, o, n[o]), i[o] = !0);
1788
+ o = r[a], ye.call(t, o) || (In(t, o, n[o]), i[o] = !0);
1761
1789
  }
1762
1790
  function we(e, t, n, i, r, o, a, l, s) {
1763
1791
  var c, d;
1764
1792
  if (Array.isArray(r))
1765
1793
  for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
1766
- Array.isArray(r[c]) && I(e, "nested arrays are not supported inside keys"), typeof r == "object" && $t(r[c]) === "[object Object]" && (r[c] = "[object Object]");
1767
- if (typeof r == "object" && $t(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
1794
+ Array.isArray(r[c]) && I(e, "nested arrays are not supported inside keys"), typeof r == "object" && Tt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
1795
+ if (typeof r == "object" && Tt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
1768
1796
  if (Array.isArray(o))
1769
1797
  for (c = 0, d = o.length; c < d; c += 1)
1770
- It(e, t, o[c], n);
1798
+ Ft(e, t, o[c], n);
1771
1799
  else
1772
- It(e, t, o, n);
1800
+ Ft(e, t, o, n);
1773
1801
  else
1774
- !e.json && !ge.call(n, r) && ge.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, I(e, "duplicated mapping key")), En(t, r, o), delete n[r];
1802
+ !e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, I(e, "duplicated mapping key")), In(t, r, o), delete n[r];
1775
1803
  return t;
1776
1804
  }
1777
- function lt(e) {
1805
+ function st(e) {
1778
1806
  var t;
1779
1807
  t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : I(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1780
1808
  }
@@ -1787,22 +1815,22 @@ function Z(e, t, n) {
1787
1815
  r = e.input.charCodeAt(++e.position);
1788
1816
  while (r !== 10 && r !== 13 && r !== 0);
1789
1817
  if (de(r))
1790
- for (lt(e), r = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; r === 32; )
1818
+ for (st(e), r = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; r === 32; )
1791
1819
  e.lineIndent++, r = e.input.charCodeAt(++e.position);
1792
1820
  else
1793
1821
  break;
1794
1822
  }
1795
- return n !== -1 && i !== 0 && e.lineIndent < n && Ne(e, "deficient indentation"), i;
1823
+ return n !== -1 && i !== 0 && e.lineIndent < n && Me(e, "deficient indentation"), i;
1796
1824
  }
1797
- function He(e) {
1825
+ function Ve(e) {
1798
1826
  var t = e.position, n;
1799
1827
  return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || se(n)));
1800
1828
  }
1801
- function st(e, t) {
1829
+ function ct(e, t) {
1802
1830
  t === 1 ? e.result += " " : t > 1 && (e.result += ee.repeat(`
1803
1831
  `, t - 1));
1804
1832
  }
1805
- function Oa(e, t, n) {
1833
+ function Ma(e, t, n) {
1806
1834
  var i, r, o, a, l, s, c, d, u = e.kind, p = e.result, m;
1807
1835
  if (m = e.input.charCodeAt(e.position), se(m) || _e(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (r = e.input.charCodeAt(e.position + 1), se(r) || n && _e(r)))
1808
1836
  return !1;
@@ -1814,7 +1842,7 @@ function Oa(e, t, n) {
1814
1842
  if (i = e.input.charCodeAt(e.position - 1), se(i))
1815
1843
  break;
1816
1844
  } else {
1817
- if (e.position === e.lineStart && He(e) || n && _e(m))
1845
+ if (e.position === e.lineStart && Ve(e) || n && _e(m))
1818
1846
  break;
1819
1847
  if (de(m))
1820
1848
  if (s = e.line, c = e.lineStart, d = e.lineIndent, Z(e, !1, -1), e.lineIndent >= t) {
@@ -1825,63 +1853,63 @@ function Oa(e, t, n) {
1825
1853
  break;
1826
1854
  }
1827
1855
  }
1828
- l && (ye(e, o, a, !1), st(e, e.line - s), o = a = e.position, l = !1), ve(m) || (a = e.position + 1), m = e.input.charCodeAt(++e.position);
1856
+ l && (he(e, o, a, !1), ct(e, e.line - s), o = a = e.position, l = !1), ve(m) || (a = e.position + 1), m = e.input.charCodeAt(++e.position);
1829
1857
  }
1830
- return ye(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
1858
+ return he(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
1831
1859
  }
1832
- function La(e, t) {
1860
+ function Pa(e, t) {
1833
1861
  var n, i, r;
1834
1862
  if (n = e.input.charCodeAt(e.position), n !== 39)
1835
1863
  return !1;
1836
1864
  for (e.kind = "scalar", e.result = "", e.position++, i = r = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
1837
1865
  if (n === 39)
1838
- if (ye(e, i, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
1866
+ if (he(e, i, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
1839
1867
  i = e.position, e.position++, r = e.position;
1840
1868
  else
1841
1869
  return !0;
1842
- else de(n) ? (ye(e, i, r, !0), st(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && He(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1870
+ else de(n) ? (he(e, i, r, !0), ct(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Ve(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1843
1871
  I(e, "unexpected end of the stream within a single quoted scalar");
1844
1872
  }
1845
- function Ba(e, t) {
1873
+ function ja(e, t) {
1846
1874
  var n, i, r, o, a, l;
1847
1875
  if (l = e.input.charCodeAt(e.position), l !== 34)
1848
1876
  return !1;
1849
1877
  for (e.kind = "scalar", e.result = "", e.position++, n = i = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
1850
1878
  if (l === 34)
1851
- return ye(e, n, e.position, !0), e.position++, !0;
1879
+ return he(e, n, e.position, !0), e.position++, !0;
1852
1880
  if (l === 92) {
1853
- if (ye(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), de(l))
1881
+ if (he(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), de(l))
1854
1882
  Z(e, !1, t);
1855
- else if (l < 256 && In[l])
1856
- e.result += Fn[l], e.position++;
1857
- else if ((a = Ta(l)) > 0) {
1883
+ else if (l < 256 && Fn[l])
1884
+ e.result += On[l], e.position++;
1885
+ else if ((a = La(l)) > 0) {
1858
1886
  for (r = a, o = 0; r > 0; r--)
1859
- l = e.input.charCodeAt(++e.position), (a = $a(l)) >= 0 ? o = (o << 4) + a : I(e, "expected hexadecimal character");
1860
- e.result += Ia(o), e.position++;
1887
+ l = e.input.charCodeAt(++e.position), (a = Ba(l)) >= 0 ? o = (o << 4) + a : I(e, "expected hexadecimal character");
1888
+ e.result += Ka(o), e.position++;
1861
1889
  } else
1862
1890
  I(e, "unknown escape sequence");
1863
1891
  n = i = e.position;
1864
- } else de(l) ? (ye(e, n, i, !0), st(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && He(e) ? I(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1892
+ } else de(l) ? (he(e, n, i, !0), ct(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && Ve(e) ? I(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1865
1893
  }
1866
1894
  I(e, "unexpected end of the stream within a double quoted scalar");
1867
1895
  }
1868
- function Ka(e, t) {
1869
- var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, p, m, g = /* @__PURE__ */ Object.create(null), y, x, C, k;
1870
- if (k = e.input.charCodeAt(e.position), k === 91)
1896
+ function Da(e, t) {
1897
+ var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, p, m, y = /* @__PURE__ */ Object.create(null), h, k, C, x;
1898
+ if (x = e.input.charCodeAt(e.position), x === 91)
1871
1899
  d = 93, m = !1, l = [];
1872
- else if (k === 123)
1900
+ else if (x === 123)
1873
1901
  d = 125, m = !0, l = {};
1874
1902
  else
1875
1903
  return !1;
1876
- for (e.anchor !== null && (e.anchorMap[e.anchor] = l), k = e.input.charCodeAt(++e.position); k !== 0; ) {
1877
- if (Z(e, !0, t), k = e.input.charCodeAt(e.position), k === d)
1904
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
1905
+ if (Z(e, !0, t), x = e.input.charCodeAt(e.position), x === d)
1878
1906
  return e.position++, e.tag = a, e.anchor = s, e.kind = m ? "mapping" : "sequence", e.result = l, !0;
1879
- n ? k === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), x = y = C = null, u = p = !1, k === 63 && (c = e.input.charCodeAt(e.position + 1), se(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Te(e, t, Ke, !1, !0), x = e.tag, y = e.result, Z(e, !0, t), k = e.input.charCodeAt(e.position), (p || e.line === i) && k === 58 && (u = !0, k = e.input.charCodeAt(++e.position), Z(e, !0, t), Te(e, t, Ke, !1, !0), C = e.result), m ? we(e, l, g, x, y, C, i, r, o) : u ? l.push(we(e, null, g, x, y, C, i, r, o)) : l.push(y), Z(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
1907
+ n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), k = h = C = null, u = p = !1, x === 63 && (c = e.input.charCodeAt(e.position + 1), se(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ee(e, t, Ke, !1, !0), k = e.tag, h = e.result, Z(e, !0, t), x = e.input.charCodeAt(e.position), (p || e.line === i) && x === 58 && (u = !0, x = e.input.charCodeAt(++e.position), Z(e, !0, t), Ee(e, t, Ke, !1, !0), C = e.result), m ? we(e, l, y, k, h, C, i, r, o) : u ? l.push(we(e, null, y, k, h, C, i, r, o)) : l.push(h), Z(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
1880
1908
  }
1881
1909
  I(e, "unexpected end of the stream within a flow collection");
1882
1910
  }
1883
- function Ra(e, t) {
1884
- var n, i, r = Je, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
1911
+ function Ua(e, t) {
1912
+ var n, i, r = Ge, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
1885
1913
  if (u = e.input.charCodeAt(e.position), u === 124)
1886
1914
  i = !1;
1887
1915
  else if (u === 62)
@@ -1890,8 +1918,8 @@ function Ra(e, t) {
1890
1918
  return !1;
1891
1919
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1892
1920
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1893
- Je === r ? r = u === 43 ? St : Aa : I(e, "repeat of a chomping mode identifier");
1894
- else if ((d = Ea(u)) >= 0)
1921
+ Ge === r ? r = u === 43 ? $t : Ea : I(e, "repeat of a chomping mode identifier");
1922
+ else if ((d = Ra(u)) >= 0)
1895
1923
  d === 0 ? I(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? I(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
1896
1924
  else
1897
1925
  break;
@@ -1905,15 +1933,15 @@ function Ra(e, t) {
1905
1933
  while (!de(u) && u !== 0);
1906
1934
  }
1907
1935
  for (; u !== 0; ) {
1908
- for (lt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
1936
+ for (st(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
1909
1937
  e.lineIndent++, u = e.input.charCodeAt(++e.position);
1910
1938
  if (!a && e.lineIndent > l && (l = e.lineIndent), de(u)) {
1911
1939
  s++;
1912
1940
  continue;
1913
1941
  }
1914
1942
  if (e.lineIndent < l) {
1915
- r === St ? e.result += ee.repeat(`
1916
- `, o ? 1 + s : s) : r === Je && o && (e.result += `
1943
+ r === $t ? e.result += ee.repeat(`
1944
+ `, o ? 1 + s : s) : r === Ge && o && (e.result += `
1917
1945
  `);
1918
1946
  break;
1919
1947
  }
@@ -1923,11 +1951,11 @@ function Ra(e, t) {
1923
1951
  `, s) : e.result += ee.repeat(`
1924
1952
  `, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !de(u) && u !== 0; )
1925
1953
  u = e.input.charCodeAt(++e.position);
1926
- ye(e, n, e.position, !1);
1954
+ he(e, n, e.position, !1);
1927
1955
  }
1928
1956
  return !0;
1929
1957
  }
1930
- function Ft(e, t) {
1958
+ function Ot(e, t) {
1931
1959
  var n, i = e.tag, r = e.anchor, o = [], a, l = !1, s;
1932
1960
  if (e.firstTabInLine !== -1) return !1;
1933
1961
  for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !se(a)))); ) {
@@ -1935,27 +1963,27 @@ function Ft(e, t) {
1935
1963
  o.push(null), s = e.input.charCodeAt(e.position);
1936
1964
  continue;
1937
1965
  }
1938
- if (n = e.line, Te(e, t, Sn, !1, !0), o.push(e.result), Z(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1966
+ if (n = e.line, Ee(e, t, $n, !1, !0), o.push(e.result), Z(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1939
1967
  I(e, "bad indentation of a sequence entry");
1940
1968
  else if (e.lineIndent < t)
1941
1969
  break;
1942
1970
  }
1943
1971
  return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
1944
1972
  }
1945
- function Na(e, t, n) {
1946
- var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), m = null, g = null, y = null, x = !1, C = !1, k;
1973
+ function qa(e, t, n) {
1974
+ var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), m = null, y = null, h = null, k = !1, C = !1, x;
1947
1975
  if (e.firstTabInLine !== -1) return !1;
1948
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), k = e.input.charCodeAt(e.position); k !== 0; ) {
1949
- if (!x && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (k === 63 || k === 58) && se(i))
1950
- k === 63 ? (x && (we(e, u, p, m, g, null, a, l, s), m = g = y = null), C = !0, x = !0, r = !0) : x ? (x = !1, r = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = i;
1976
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = u), x = e.input.charCodeAt(e.position); x !== 0; ) {
1977
+ if (!k && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && se(i))
1978
+ x === 63 ? (k && (we(e, u, p, m, y, null, a, l, s), m = y = h = null), C = !0, k = !0, r = !0) : k ? (k = !1, r = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = i;
1951
1979
  else {
1952
- if (a = e.line, l = e.lineStart, s = e.position, !Te(e, n, wn, !1, !0))
1980
+ if (a = e.line, l = e.lineStart, s = e.position, !Ee(e, n, Sn, !1, !0))
1953
1981
  break;
1954
1982
  if (e.line === o) {
1955
- for (k = e.input.charCodeAt(e.position); ve(k); )
1956
- k = e.input.charCodeAt(++e.position);
1957
- if (k === 58)
1958
- k = e.input.charCodeAt(++e.position), se(k) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), x && (we(e, u, p, m, g, null, a, l, s), m = g = y = null), C = !0, x = !1, r = !1, m = e.tag, g = e.result;
1983
+ for (x = e.input.charCodeAt(e.position); ve(x); )
1984
+ x = e.input.charCodeAt(++e.position);
1985
+ if (x === 58)
1986
+ x = e.input.charCodeAt(++e.position), se(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (we(e, u, p, m, y, null, a, l, s), m = y = h = null), C = !0, k = !1, r = !1, m = e.tag, y = e.result;
1959
1987
  else if (C)
1960
1988
  I(e, "can not read an implicit mapping pair; a colon is missed");
1961
1989
  else
@@ -1965,14 +1993,14 @@ function Na(e, t, n) {
1965
1993
  else
1966
1994
  return e.tag = c, e.anchor = d, !0;
1967
1995
  }
1968
- if ((e.line === o || e.lineIndent > t) && (x && (a = e.line, l = e.lineStart, s = e.position), Te(e, t, Re, !0, r) && (x ? g = e.result : y = e.result), x || (we(e, u, p, m, g, y, a, l, s), m = g = y = null), Z(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && k !== 0)
1996
+ if ((e.line === o || e.lineIndent > t) && (k && (a = e.line, l = e.lineStart, s = e.position), Ee(e, t, Ne, !0, r) && (k ? y = e.result : h = e.result), k || (we(e, u, p, m, y, h, a, l, s), m = y = h = null), Z(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
1969
1997
  I(e, "bad indentation of a mapping entry");
1970
1998
  else if (e.lineIndent < t)
1971
1999
  break;
1972
2000
  }
1973
- return x && we(e, u, p, m, g, null, a, l, s), C && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), C;
2001
+ return k && we(e, u, p, m, y, null, a, l, s), C && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), C;
1974
2002
  }
1975
- function Ma(e) {
2003
+ function Ha(e) {
1976
2004
  var t, n = !1, i = !1, r, o, a;
1977
2005
  if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
1978
2006
  if (e.tag !== null && I(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
@@ -1982,58 +2010,58 @@ function Ma(e) {
1982
2010
  e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : I(e, "unexpected end of the stream within a verbatim tag");
1983
2011
  } else {
1984
2012
  for (; a !== 0 && !se(a); )
1985
- a === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), $n.test(r) || I(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
1986
- o = e.input.slice(t, e.position), Sa.test(o) && I(e, "tag suffix cannot contain flow indicator characters");
2013
+ a === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Tn.test(r) || I(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
2014
+ o = e.input.slice(t, e.position), Oa.test(o) && I(e, "tag suffix cannot contain flow indicator characters");
1987
2015
  }
1988
- o && !Tn.test(o) && I(e, "tag name cannot contain such characters: " + o);
2016
+ o && !En.test(o) && I(e, "tag name cannot contain such characters: " + o);
1989
2017
  try {
1990
2018
  o = decodeURIComponent(o);
1991
2019
  } catch {
1992
2020
  I(e, "tag name is malformed: " + o);
1993
2021
  }
1994
- return n ? e.tag = o : ge.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : I(e, 'undeclared tag handle "' + r + '"'), !0;
2022
+ return n ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : I(e, 'undeclared tag handle "' + r + '"'), !0;
1995
2023
  }
1996
- function ja(e) {
2024
+ function Va(e) {
1997
2025
  var t, n;
1998
2026
  if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
1999
2027
  for (e.anchor !== null && I(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !se(n) && !_e(n); )
2000
2028
  n = e.input.charCodeAt(++e.position);
2001
2029
  return e.position === t && I(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2002
2030
  }
2003
- function Da(e) {
2031
+ function Ya(e) {
2004
2032
  var t, n, i;
2005
2033
  if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
2006
2034
  for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !se(i) && !_e(i); )
2007
2035
  i = e.input.charCodeAt(++e.position);
2008
- return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ge.call(e.anchorMap, n) || I(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
2036
+ return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || I(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
2009
2037
  }
2010
- function Te(e, t, n, i, r) {
2011
- var o, a, l, s = 1, c = !1, d = !1, u, p, m, g, y, x;
2012
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Re === n || Sn === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2013
- for (; Ma(e) || ja(e); )
2038
+ function Ee(e, t, n, i, r) {
2039
+ var o, a, l, s = 1, c = !1, d = !1, u, p, m, y, h, k;
2040
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Ne === n || $n === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2041
+ for (; Ha(e) || Va(e); )
2014
2042
  Z(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
2015
- if (l && (l = c || r), (s === 1 || Re === n) && (Ke === n || wn === n ? y = t : y = t + 1, x = e.position - e.lineStart, s === 1 ? l && (Ft(e, x) || Na(e, x, y)) || Ka(e, y) ? d = !0 : (a && Ra(e, y) || La(e, y) || Ba(e, y) ? d = !0 : Da(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : Oa(e, y, Ke === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ft(e, x))), e.tag === null)
2043
+ if (l && (l = c || r), (s === 1 || Ne === n) && (Ke === n || Sn === n ? h = t : h = t + 1, k = e.position - e.lineStart, s === 1 ? l && (Ot(e, k) || qa(e, k, h)) || Da(e, h) ? d = !0 : (a && Ua(e, h) || Pa(e, h) || ja(e, h) ? d = !0 : Ya(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : Ma(e, h, Ke === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ot(e, k))), e.tag === null)
2016
2044
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2017
2045
  else if (e.tag === "?") {
2018
2046
  for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
2019
- if (g = e.implicitTypes[u], g.resolve(e.result)) {
2020
- e.result = g.construct(e.result), e.tag = g.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2047
+ if (y = e.implicitTypes[u], y.resolve(e.result)) {
2048
+ e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2021
2049
  break;
2022
2050
  }
2023
2051
  } else if (e.tag !== "!") {
2024
- if (ge.call(e.typeMap[e.kind || "fallback"], e.tag))
2025
- g = e.typeMap[e.kind || "fallback"][e.tag];
2052
+ if (ye.call(e.typeMap[e.kind || "fallback"], e.tag))
2053
+ y = e.typeMap[e.kind || "fallback"][e.tag];
2026
2054
  else
2027
- for (g = null, m = e.typeMap.multi[e.kind || "fallback"], u = 0, p = m.length; u < p; u += 1)
2055
+ for (y = null, m = e.typeMap.multi[e.kind || "fallback"], u = 0, p = m.length; u < p; u += 1)
2028
2056
  if (e.tag.slice(0, m[u].tag.length) === m[u].tag) {
2029
- g = m[u];
2057
+ y = m[u];
2030
2058
  break;
2031
2059
  }
2032
- g || I(e, "unknown tag !<" + e.tag + ">"), e.result !== null && g.kind !== e.kind && I(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + g.kind + '", not "' + e.kind + '"'), g.resolve(e.result, e.tag) ? (e.result = g.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : I(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2060
+ y || I(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && I(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : I(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2033
2061
  }
2034
2062
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2035
2063
  }
2036
- function Pa(e) {
2064
+ function Wa(e) {
2037
2065
  var t = e.position, n, i, r, o = !1, a;
2038
2066
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (Z(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
2039
2067
  for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !se(a); )
@@ -2052,9 +2080,9 @@ function Pa(e) {
2052
2080
  a = e.input.charCodeAt(++e.position);
2053
2081
  r.push(e.input.slice(n, e.position));
2054
2082
  }
2055
- a !== 0 && lt(e), ge.call(Et, i) ? Et[i](e, i, r) : Ne(e, 'unknown document directive "' + i + '"');
2083
+ a !== 0 && st(e), ye.call(It, i) ? It[i](e, i, r) : Me(e, 'unknown document directive "' + i + '"');
2056
2084
  }
2057
- if (Z(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, Z(e, !0, -1)) : o && I(e, "directives end mark is expected"), Te(e, e.lineIndent - 1, Re, !1, !0), Z(e, !0, -1), e.checkLineBreaks && wa.test(e.input.slice(t, e.position)) && Ne(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && He(e)) {
2085
+ if (Z(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, Z(e, !0, -1)) : o && I(e, "directives end mark is expected"), Ee(e, e.lineIndent - 1, Ne, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Fa.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ve(e)) {
2058
2086
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, Z(e, !0, -1));
2059
2087
  return;
2060
2088
  }
@@ -2066,14 +2094,14 @@ function Pa(e) {
2066
2094
  function Ln(e, t) {
2067
2095
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2068
2096
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2069
- var n = new Fa(e, t), i = e.indexOf("\0");
2097
+ var n = new Na(e, t), i = e.indexOf("\0");
2070
2098
  for (i !== -1 && (n.position = i, I(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2071
2099
  n.lineIndent += 1, n.position += 1;
2072
2100
  for (; n.position < n.length - 1; )
2073
- Pa(n);
2101
+ Wa(n);
2074
2102
  return n.documents;
2075
2103
  }
2076
- function Ua(e, t, n) {
2104
+ function Ja(e, t, n) {
2077
2105
  t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
2078
2106
  var i = Ln(e, n);
2079
2107
  if (typeof t != "function")
@@ -2081,7 +2109,7 @@ function Ua(e, t, n) {
2081
2109
  for (var r = 0, o = i.length; r < o; r += 1)
2082
2110
  t(i[r]);
2083
2111
  }
2084
- function qa(e, t) {
2112
+ function Ga(e, t) {
2085
2113
  var n = Ln(e, t);
2086
2114
  if (n.length !== 0) {
2087
2115
  if (n.length === 1)
@@ -2089,10 +2117,10 @@ function qa(e, t) {
2089
2117
  throw new oe("expected a single document in the stream, but found more");
2090
2118
  }
2091
2119
  }
2092
- var Ha = Ua, Va = qa, Bn = {
2093
- loadAll: Ha,
2094
- load: Va
2095
- }, Kn = Object.prototype.toString, Rn = Object.prototype.hasOwnProperty, ct = 65279, Ya = 9, Fe = 10, Wa = 13, Ja = 32, Ga = 33, za = 34, Ze = 35, Qa = 37, Za = 38, Xa = 39, eo = 42, Nn = 44, to = 45, Me = 58, no = 61, io = 62, ro = 63, ao = 64, Mn = 91, jn = 93, oo = 96, Dn = 123, lo = 124, Pn = 125, re = {};
2120
+ var za = Ja, Qa = Ga, Rn = {
2121
+ loadAll: za,
2122
+ load: Qa
2123
+ }, Kn = Object.prototype.toString, Nn = Object.prototype.hasOwnProperty, ut = 65279, Za = 9, Oe = 10, Xa = 13, eo = 32, to = 33, no = 34, Xe = 35, io = 37, ro = 38, ao = 39, oo = 42, Mn = 44, lo = 45, Pe = 58, so = 61, co = 62, uo = 63, fo = 64, Pn = 91, jn = 93, po = 96, Dn = 123, mo = 124, Un = 125, re = {};
2096
2124
  re[0] = "\\0";
2097
2125
  re[7] = "\\a";
2098
2126
  re[8] = "\\b";
@@ -2108,7 +2136,7 @@ re[133] = "\\N";
2108
2136
  re[160] = "\\_";
2109
2137
  re[8232] = "\\L";
2110
2138
  re[8233] = "\\P";
2111
- var so = [
2139
+ var go = [
2112
2140
  "y",
2113
2141
  "Y",
2114
2142
  "yes",
@@ -2125,15 +2153,15 @@ var so = [
2125
2153
  "off",
2126
2154
  "Off",
2127
2155
  "OFF"
2128
- ], co = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2129
- function uo(e, t) {
2156
+ ], ho = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2157
+ function yo(e, t) {
2130
2158
  var n, i, r, o, a, l, s;
2131
2159
  if (t === null) return {};
2132
2160
  for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
2133
- a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && Rn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
2161
+ a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && Nn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
2134
2162
  return n;
2135
2163
  }
2136
- function fo(e) {
2164
+ function vo(e) {
2137
2165
  var t, n, i;
2138
2166
  if (t = e.toString(16).toUpperCase(), e <= 255)
2139
2167
  n = "x", i = 2;
@@ -2145,22 +2173,22 @@ function fo(e) {
2145
2173
  throw new oe("code point within a string may not be greater than 0xFFFFFFFF");
2146
2174
  return "\\" + n + ee.repeat("0", i - t.length) + t;
2147
2175
  }
2148
- var po = 1, Oe = 2;
2149
- function mo(e) {
2150
- this.schema = e.schema || ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = uo(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 === '"' ? Oe : po, 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;
2176
+ var bo = 1, Be = 2;
2177
+ function ko(e) {
2178
+ this.schema = e.schema || lt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yo(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 === '"' ? Be : bo, 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;
2151
2179
  }
2152
- function Ot(e, t) {
2180
+ function Bt(e, t) {
2153
2181
  for (var n = ee.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
2154
2182
  r = e.indexOf(`
2155
2183
  `, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
2156
2184
  ` && (o += n), o += a;
2157
2185
  return o;
2158
2186
  }
2159
- function Xe(e, t) {
2187
+ function et(e, t) {
2160
2188
  return `
2161
2189
  ` + ee.repeat(" ", e.indent * t);
2162
2190
  }
2163
- function ho(e, t) {
2191
+ function Co(e, t) {
2164
2192
  var n, i, r;
2165
2193
  for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
2166
2194
  if (r = e.implicitTypes[n], r.resolve(t))
@@ -2168,71 +2196,71 @@ function ho(e, t) {
2168
2196
  return !1;
2169
2197
  }
2170
2198
  function je(e) {
2171
- return e === Ja || e === Ya;
2199
+ return e === eo || e === Za;
2172
2200
  }
2173
2201
  function Le(e) {
2174
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ct || 65536 <= e && e <= 1114111;
2202
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ut || 65536 <= e && e <= 1114111;
2175
2203
  }
2176
2204
  function Lt(e) {
2177
- return Le(e) && e !== ct && e !== Wa && e !== Fe;
2205
+ return Le(e) && e !== ut && e !== Xa && e !== Oe;
2178
2206
  }
2179
- function Bt(e, t, n) {
2207
+ function Rt(e, t, n) {
2180
2208
  var i = Lt(e), r = i && !je(e);
2181
2209
  return (
2182
2210
  // ns-plain-safe
2183
2211
  (n ? (
2184
2212
  // c = flow-in
2185
2213
  i
2186
- ) : i && e !== Nn && e !== Mn && e !== jn && e !== Dn && e !== Pn) && e !== Ze && !(t === Me && !r) || Lt(t) && !je(t) && e === Ze || t === Me && r
2214
+ ) : i && e !== Mn && e !== Pn && e !== jn && e !== Dn && e !== Un) && e !== Xe && !(t === Pe && !r) || Lt(t) && !je(t) && e === Xe || t === Pe && r
2187
2215
  );
2188
2216
  }
2189
- function yo(e) {
2190
- return Le(e) && e !== ct && !je(e) && e !== to && e !== ro && e !== Me && e !== Nn && e !== Mn && e !== jn && e !== Dn && e !== Pn && e !== Ze && e !== Za && e !== eo && e !== Ga && e !== lo && e !== no && e !== io && e !== Xa && e !== za && e !== Qa && e !== ao && e !== oo;
2217
+ function xo(e) {
2218
+ return Le(e) && e !== ut && !je(e) && e !== lo && e !== uo && e !== Pe && e !== Mn && e !== Pn && e !== jn && e !== Dn && e !== Un && e !== Xe && e !== ro && e !== oo && e !== to && e !== mo && e !== so && e !== co && e !== ao && e !== no && e !== io && e !== fo && e !== po;
2191
2219
  }
2192
- function go(e) {
2193
- return !je(e) && e !== Me;
2220
+ function Ao(e) {
2221
+ return !je(e) && e !== Pe;
2194
2222
  }
2195
- function Ee(e, t) {
2223
+ function Ie(e, t) {
2196
2224
  var n = e.charCodeAt(t), i;
2197
2225
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
2198
2226
  }
2199
- function Un(e) {
2227
+ function qn(e) {
2200
2228
  var t = /^\n* /;
2201
2229
  return t.test(e);
2202
2230
  }
2203
- var qn = 1, et = 2, Hn = 3, Vn = 4, Ae = 5;
2204
- function vo(e, t, n, i, r, o, a, l) {
2205
- var s, c = 0, d = null, u = !1, p = !1, m = i !== -1, g = -1, y = yo(Ee(e, 0)) && go(Ee(e, e.length - 1));
2231
+ var Hn = 1, tt = 2, Vn = 3, Yn = 4, Ae = 5;
2232
+ function _o(e, t, n, i, r, o, a, l) {
2233
+ var s, c = 0, d = null, u = !1, p = !1, m = i !== -1, y = -1, h = xo(Ie(e, 0)) && Ao(Ie(e, e.length - 1));
2206
2234
  if (t || a)
2207
2235
  for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
2208
- if (c = Ee(e, s), !Le(c))
2236
+ if (c = Ie(e, s), !Le(c))
2209
2237
  return Ae;
2210
- y = y && Bt(c, d, l), d = c;
2238
+ h = h && Rt(c, d, l), d = c;
2211
2239
  }
2212
2240
  else {
2213
2241
  for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
2214
- if (c = Ee(e, s), c === Fe)
2242
+ if (c = Ie(e, s), c === Oe)
2215
2243
  u = !0, m && (p = p || // Foldable line = too long, and not more-indented.
2216
- s - g - 1 > i && e[g + 1] !== " ", g = s);
2244
+ s - y - 1 > i && e[y + 1] !== " ", y = s);
2217
2245
  else if (!Le(c))
2218
2246
  return Ae;
2219
- y = y && Bt(c, d, l), d = c;
2247
+ h = h && Rt(c, d, l), d = c;
2220
2248
  }
2221
- p = p || m && s - g - 1 > i && e[g + 1] !== " ";
2249
+ p = p || m && s - y - 1 > i && e[y + 1] !== " ";
2222
2250
  }
2223
- return !u && !p ? y && !a && !r(e) ? qn : o === Oe ? Ae : et : n > 9 && Un(e) ? Ae : a ? o === Oe ? Ae : et : p ? Vn : Hn;
2251
+ return !u && !p ? h && !a && !r(e) ? Hn : o === Be ? Ae : tt : n > 9 && qn(e) ? Ae : a ? o === Be ? Ae : tt : p ? Yn : Vn;
2224
2252
  }
2225
- function bo(e, t, n, i, r) {
2253
+ function wo(e, t, n, i, r) {
2226
2254
  e.dump = function() {
2227
2255
  if (t.length === 0)
2228
- return e.quotingType === Oe ? '""' : "''";
2229
- if (!e.noCompatMode && (so.indexOf(t) !== -1 || co.test(t)))
2230
- return e.quotingType === Oe ? '"' + t + '"' : "'" + t + "'";
2256
+ return e.quotingType === Be ? '""' : "''";
2257
+ if (!e.noCompatMode && (go.indexOf(t) !== -1 || ho.test(t)))
2258
+ return e.quotingType === Be ? '"' + t + '"' : "'" + t + "'";
2231
2259
  var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = i || e.flowLevel > -1 && n >= e.flowLevel;
2232
2260
  function s(c) {
2233
- return ho(e, c);
2261
+ return Co(e, c);
2234
2262
  }
2235
- switch (vo(
2263
+ switch (_o(
2236
2264
  t,
2237
2265
  l,
2238
2266
  e.indent,
@@ -2242,47 +2270,47 @@ function bo(e, t, n, i, r) {
2242
2270
  e.forceQuotes && !i,
2243
2271
  r
2244
2272
  )) {
2245
- case qn:
2273
+ case Hn:
2246
2274
  return t;
2247
- case et:
2275
+ case tt:
2248
2276
  return "'" + t.replace(/'/g, "''") + "'";
2249
- case Hn:
2250
- return "|" + Kt(t, e.indent) + Rt(Ot(t, o));
2251
2277
  case Vn:
2252
- return ">" + Kt(t, e.indent) + Rt(Ot(xo(t, a), o));
2278
+ return "|" + Kt(t, e.indent) + Nt(Bt(t, o));
2279
+ case Yn:
2280
+ return ">" + Kt(t, e.indent) + Nt(Bt(So(t, a), o));
2253
2281
  case Ae:
2254
- return '"' + Co(t) + '"';
2282
+ return '"' + $o(t) + '"';
2255
2283
  default:
2256
2284
  throw new oe("impossible error: invalid scalar style");
2257
2285
  }
2258
2286
  }();
2259
2287
  }
2260
2288
  function Kt(e, t) {
2261
- var n = Un(e) ? String(t) : "", i = e[e.length - 1] === `
2289
+ var n = qn(e) ? String(t) : "", i = e[e.length - 1] === `
2262
2290
  `, r = i && (e[e.length - 2] === `
2263
2291
  ` || e === `
2264
2292
  `), o = r ? "+" : i ? "" : "-";
2265
2293
  return n + o + `
2266
2294
  `;
2267
2295
  }
2268
- function Rt(e) {
2296
+ function Nt(e) {
2269
2297
  return e[e.length - 1] === `
2270
2298
  ` ? e.slice(0, -1) : e;
2271
2299
  }
2272
- function xo(e, t) {
2300
+ function So(e, t) {
2273
2301
  for (var n = /(\n+)([^\n]*)/g, i = function() {
2274
2302
  var c = e.indexOf(`
2275
2303
  `);
2276
- return c = c !== -1 ? c : e.length, n.lastIndex = c, Nt(e.slice(0, c), t);
2304
+ return c = c !== -1 ? c : e.length, n.lastIndex = c, Mt(e.slice(0, c), t);
2277
2305
  }(), r = e[0] === `
2278
2306
  ` || e[0] === " ", o, a; a = n.exec(e); ) {
2279
2307
  var l = a[1], s = a[2];
2280
2308
  o = s[0] === " ", i += l + (!r && !o && s !== "" ? `
2281
- ` : "") + Nt(s, t), r = o;
2309
+ ` : "") + Mt(s, t), r = o;
2282
2310
  }
2283
2311
  return i;
2284
2312
  }
2285
- function Nt(e, t) {
2313
+ function Mt(e, t) {
2286
2314
  if (e === "" || e[0] === " ") return e;
2287
2315
  for (var n = / [^ ]/g, i, r = 0, o, a = 0, l = 0, s = ""; i = n.exec(e); )
2288
2316
  l = i.index, l - r > t && (o = a > r ? a : l, s += `
@@ -2291,30 +2319,30 @@ function Nt(e, t) {
2291
2319
  `, e.length - r > t && a > r ? s += e.slice(r, a) + `
2292
2320
  ` + e.slice(a + 1) : s += e.slice(r), s.slice(1);
2293
2321
  }
2294
- function Co(e) {
2322
+ function $o(e) {
2295
2323
  for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
2296
- n = Ee(e, r), i = re[n], !i && Le(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || fo(n);
2324
+ n = Ie(e, r), i = re[n], !i && Le(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || vo(n);
2297
2325
  return t;
2298
2326
  }
2299
- function ko(e, t, n) {
2327
+ function To(e, t, n) {
2300
2328
  var i = "", r = e.tag, o, a, l;
2301
2329
  for (o = 0, a = n.length; o < a; o += 1)
2302
2330
  l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (pe(e, t, l, !1, !1) || typeof l > "u" && pe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
2303
2331
  e.tag = r, e.dump = "[" + i + "]";
2304
2332
  }
2305
- function Mt(e, t, n, i) {
2333
+ function Pt(e, t, n, i) {
2306
2334
  var r = "", o = e.tag, a, l, s;
2307
2335
  for (a = 0, l = n.length; a < l; a += 1)
2308
- s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (pe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += Xe(e, t)), e.dump && Fe === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
2336
+ s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (pe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += et(e, t)), e.dump && Oe === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
2309
2337
  e.tag = o, e.dump = r || "[]";
2310
2338
  }
2311
- function Ao(e, t, n) {
2339
+ function Eo(e, t, n) {
2312
2340
  var i = "", r = e.tag, o = Object.keys(n), a, l, s, c, d;
2313
2341
  for (a = 0, l = o.length; a < l; a += 1)
2314
2342
  d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[a], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), pe(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), pe(e, t, c, !1, !1) && (d += e.dump, i += d));
2315
2343
  e.tag = r, e.dump = "{" + i + "}";
2316
2344
  }
2317
- function _o(e, t, n, i) {
2345
+ function Io(e, t, n, i) {
2318
2346
  var r = "", o = e.tag, a = Object.keys(n), l, s, c, d, u, p;
2319
2347
  if (e.sortKeys === !0)
2320
2348
  a.sort();
@@ -2323,7 +2351,7 @@ function _o(e, t, n, i) {
2323
2351
  else if (e.sortKeys)
2324
2352
  throw new oe("sortKeys must be a boolean or a function");
2325
2353
  for (l = 0, s = a.length; l < s; l += 1)
2326
- p = "", (!i || r !== "") && (p += Xe(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), pe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Fe === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += Xe(e, t)), pe(e, t + 1, d, !0, u) && (e.dump && Fe === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
2354
+ p = "", (!i || r !== "") && (p += et(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), pe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Oe === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += et(e, t)), pe(e, t + 1, d, !0, u) && (e.dump && Oe === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
2327
2355
  e.tag = o, e.dump = r || "{}";
2328
2356
  }
2329
2357
  function jt(e, t, n) {
@@ -2333,7 +2361,7 @@ function jt(e, t, n) {
2333
2361
  if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
2334
2362
  if (s = e.styleMap[l.tag] || l.defaultStyle, Kn.call(l.represent) === "[object Function]")
2335
2363
  i = l.represent(t, s);
2336
- else if (Rn.call(l.represent, s))
2364
+ else if (Nn.call(l.represent, s))
2337
2365
  i = l.represent[s](t, s);
2338
2366
  else
2339
2367
  throw new oe("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
@@ -2352,11 +2380,11 @@ function pe(e, t, n, i, r, o, a) {
2352
2380
  e.dump = "*ref_" + u;
2353
2381
  else {
2354
2382
  if (d && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2355
- i && Object.keys(e.dump).length !== 0 ? (_o(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (Ao(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2383
+ i && Object.keys(e.dump).length !== 0 ? (Io(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (Eo(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2356
2384
  else if (l === "[object Array]")
2357
- i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Mt(e, t - 1, e.dump, r) : Mt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (ko(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2385
+ i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Pt(e, t - 1, e.dump, r) : Pt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (To(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2358
2386
  else if (l === "[object String]")
2359
- e.tag !== "?" && bo(e, e.dump, t, o, s);
2387
+ e.tag !== "?" && wo(e, e.dump, t, o, s);
2360
2388
  else {
2361
2389
  if (l === "[object Undefined]")
2362
2390
  return !1;
@@ -2369,71 +2397,71 @@ function pe(e, t, n, i, r, o, a) {
2369
2397
  }
2370
2398
  return !0;
2371
2399
  }
2372
- function wo(e, t) {
2400
+ function Fo(e, t) {
2373
2401
  var n = [], i = [], r, o;
2374
- for (tt(e, n, i), r = 0, o = i.length; r < o; r += 1)
2402
+ for (nt(e, n, i), r = 0, o = i.length; r < o; r += 1)
2375
2403
  t.duplicates.push(n[i[r]]);
2376
2404
  t.usedDuplicates = new Array(o);
2377
2405
  }
2378
- function tt(e, t, n) {
2406
+ function nt(e, t, n) {
2379
2407
  var i, r, o;
2380
2408
  if (e !== null && typeof e == "object")
2381
2409
  if (r = t.indexOf(e), r !== -1)
2382
2410
  n.indexOf(r) === -1 && n.push(r);
2383
2411
  else if (t.push(e), Array.isArray(e))
2384
2412
  for (r = 0, o = e.length; r < o; r += 1)
2385
- tt(e[r], t, n);
2413
+ nt(e[r], t, n);
2386
2414
  else
2387
2415
  for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
2388
- tt(e[i[r]], t, n);
2416
+ nt(e[i[r]], t, n);
2389
2417
  }
2390
- function So(e, t) {
2418
+ function Oo(e, t) {
2391
2419
  t = t || {};
2392
- var n = new mo(t);
2393
- n.noRefs || wo(e, n);
2420
+ var n = new ko(t);
2421
+ n.noRefs || Fo(e, n);
2394
2422
  var i = e;
2395
2423
  return n.replacer && (i = n.replacer.call({ "": i }, "", i)), pe(n, 0, i, !0, !0) ? n.dump + `
2396
2424
  ` : "";
2397
2425
  }
2398
- var $o = So, To = {
2399
- dump: $o
2426
+ var Bo = Oo, Lo = {
2427
+ dump: Bo
2400
2428
  };
2401
- function ut(e, t) {
2429
+ function dt(e, t) {
2402
2430
  return function() {
2403
2431
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2404
2432
  };
2405
2433
  }
2406
- var Eo = ie, Io = on, Fo = un, Oo = hn, Lo = yn, Bo = ot, Ko = Bn.load, Ro = Bn.loadAll, No = To.dump, Mo = oe, jo = {
2407
- binary: Cn,
2408
- float: mn,
2409
- map: cn,
2410
- null: dn,
2411
- pairs: An,
2412
- set: _n,
2413
- timestamp: bn,
2414
- bool: fn,
2415
- int: pn,
2416
- merge: xn,
2417
- omap: kn,
2418
- seq: sn,
2419
- str: ln
2420
- }, Do = ut("safeLoad", "load"), Po = ut("safeLoadAll", "loadAll"), Uo = ut("safeDump", "dump"), Yn = {
2421
- Type: Eo,
2422
- Schema: Io,
2423
- FAILSAFE_SCHEMA: Fo,
2424
- JSON_SCHEMA: Oo,
2425
- CORE_SCHEMA: Lo,
2426
- DEFAULT_SCHEMA: Bo,
2427
- load: Ko,
2428
- loadAll: Ro,
2429
- dump: No,
2430
- YAMLException: Mo,
2431
- types: jo,
2432
- safeLoad: Do,
2433
- safeLoadAll: Po,
2434
- safeDump: Uo
2434
+ var Ro = ie, Ko = ln, No = dn, Mo = hn, Po = yn, jo = lt, Do = Rn.load, Uo = Rn.loadAll, qo = Lo.dump, Ho = oe, Vo = {
2435
+ binary: xn,
2436
+ float: gn,
2437
+ map: un,
2438
+ null: fn,
2439
+ pairs: _n,
2440
+ set: wn,
2441
+ timestamp: kn,
2442
+ bool: pn,
2443
+ int: mn,
2444
+ merge: Cn,
2445
+ omap: An,
2446
+ seq: cn,
2447
+ str: sn
2448
+ }, Yo = dt("safeLoad", "load"), Wo = dt("safeLoadAll", "loadAll"), Jo = dt("safeDump", "dump"), Wn = {
2449
+ Type: Ro,
2450
+ Schema: Ko,
2451
+ FAILSAFE_SCHEMA: No,
2452
+ JSON_SCHEMA: Mo,
2453
+ CORE_SCHEMA: Po,
2454
+ DEFAULT_SCHEMA: jo,
2455
+ load: Do,
2456
+ loadAll: Uo,
2457
+ dump: qo,
2458
+ YAMLException: Ho,
2459
+ types: Vo,
2460
+ safeLoad: Yo,
2461
+ safeLoadAll: Wo,
2462
+ safeDump: Jo
2435
2463
  };
2436
- const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */ z({
2464
+ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */ z({
2437
2465
  __name: "YamlCodeBlock",
2438
2466
  props: {
2439
2467
  /** A record to indicate the entity's configuration, used to populate the YAML code block */
@@ -2445,22 +2473,23 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2445
2473
  setup(e) {
2446
2474
  const t = e, n = $(() => {
2447
2475
  const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
2448
- return Object.keys(i).length === 0 && i.constructor === Object ? "" : Yn.dump(i).trim();
2476
+ return Object.keys(i).length === 0 && i.constructor === Object ? "" : Wn.dump(i).trim();
2449
2477
  });
2450
2478
  return (i, r) => {
2451
- const o = P("KCodeBlock");
2452
- return h(), T("div", qo, [
2453
- t.entityRecord ? (h(), M(o, {
2479
+ const o = D("KCodeBlock");
2480
+ return g(), T("div", Go, [
2481
+ t.entityRecord ? (g(), N(o, {
2454
2482
  key: 0,
2455
2483
  id: "yaml-codeblock",
2456
2484
  code: n.value,
2457
2485
  language: "yaml",
2458
- theme: "dark"
2459
- }, null, 8, ["code"])) : j("", !0)
2486
+ theme: "dark",
2487
+ onCodeBlockRender: A(Te)
2488
+ }, null, 8, ["code", "onCodeBlockRender"])) : P("", !0)
2460
2489
  ]);
2461
2490
  };
2462
2491
  }
2463
- }), Ho = { class: "terraform-config config-card-code-block" }, te = " ", Jn = /* @__PURE__ */ z({
2492
+ }), zo = { class: "terraform-config config-card-code-block" }, te = " ", Gn = /* @__PURE__ */ z({
2464
2493
  __name: "TerraformCodeBlock",
2465
2494
  props: {
2466
2495
  /** A record to indicate the entity's configuration, used to populate the Terraform code block */
@@ -2471,7 +2500,7 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2471
2500
  entityType: {
2472
2501
  type: String,
2473
2502
  required: !0,
2474
- validator: (e) => Ue.includes(e)
2503
+ validator: (e) => qe.includes(e)
2475
2504
  },
2476
2505
  credentialType: {
2477
2506
  type: String,
@@ -2484,7 +2513,7 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2484
2513
  }
2485
2514
  },
2486
2515
  setup(e) {
2487
- const t = e, n = $(() => hi.includes(t.entityType)), i = $(() => yi.includes(t.entityType)), r = (c, d) => {
2516
+ const t = e, n = $(() => bi.includes(t.entityType)), i = $(() => ki.includes(t.entityType)), r = (c, d) => {
2488
2517
  const u = te;
2489
2518
  let p = "";
2490
2519
  return typeof c == "string" ? p += `${u}${d} = "${c}"
@@ -2498,12 +2527,12 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2498
2527
  if (d && (m += `${p}${d} = {
2499
2528
  `), c === null)
2500
2529
  return d ? m += `${p}}` : m = "{}", m;
2501
- const g = Object.fromEntries(Object.entries(c).filter(([, x]) => x !== null));
2502
- let y = "";
2503
- for (const [x, C] of Object.entries(g))
2504
- Array.isArray(C) ? C.length === 0 ? y = "[]" : (y = `[
2505
- `, y += a(C, void 0, p), y += `${p}${te}]`) : C && typeof C == "object" ? (y = `{
2506
- `, y += o(C, void 0, p), y += `${p}${te}}`) : y = String(C ?? ""), typeof C == "string" && (y = `"${y}"`), m += `${p}${te}${x} = ${y}
2530
+ const y = Object.fromEntries(Object.entries(c).filter(([, k]) => k !== null));
2531
+ let h = "";
2532
+ for (const [k, C] of Object.entries(y))
2533
+ Array.isArray(C) ? C.length === 0 ? h = "[]" : (h = `[
2534
+ `, h += a(C, void 0, p), h += `${p}${te}]`) : C && typeof C == "object" ? (h = `{
2535
+ `, h += o(C, void 0, p), h += `${p}${te}}`) : h = String(C ?? ""), typeof C == "string" && (h = `"${h}"`), m += `${p}${te}${k} = ${h}
2507
2536
  `;
2508
2537
  return d ? m += `${p}}
2509
2538
  ` : m;
@@ -2514,10 +2543,10 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2514
2543
  let m = "";
2515
2544
  d && (c.length === 0 ? m += `${p}${d} = [` : m += `${p}${d} = [
2516
2545
  `);
2517
- for (let g = 0; g < c.length; g++) {
2518
- const y = c[g];
2519
- typeof y == "object" ? (m += `${p}${te}{
2520
- `, m += o(y, void 0, p), m += `${p}${te}}`) : typeof y == "string" ? m += `${p}${te}"${y}"` : m += `${p}${te}${String(y ?? "")}`, g < c.length - 1 && (m += ","), m += `
2546
+ for (let y = 0; y < c.length; y++) {
2547
+ const h = c[y];
2548
+ typeof h == "object" ? (m += `${p}${te}{
2549
+ `, m += o(h, void 0, p), m += `${p}${te}}`) : typeof h == "string" ? m += `${p}${te}"${h}"` : m += `${p}${te}${String(h ?? "")}`, y < c.length - 1 && (m += ","), m += `
2521
2550
  `;
2522
2551
  }
2523
2552
  return d && (c.length === 0 ? m += `]
@@ -2529,20 +2558,20 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2529
2558
  Array.isArray(p) ? d += a(p, u) : typeof p == "object" ? d += o(p, u) : d += r(p, u);
2530
2559
  return d;
2531
2560
  }, s = $(() => {
2532
- var m, g, y, x, C, k, L;
2533
- const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, D]) => D != null)), d = t.entityRecord.config ? Object.fromEntries(Object.entries((m = t.entityRecord) == null ? void 0 : m.config).filter(([, D]) => D != null)) : void 0;
2561
+ var m, y, h, k, C, x, B;
2562
+ const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, j]) => j != null)), d = t.entityRecord.config ? Object.fromEntries(Object.entries((m = t.entityRecord) == null ? void 0 : m.config).filter(([, j]) => j != null)) : void 0;
2534
2563
  if (d && (c.config = d), Object.keys(c).length === 0)
2535
2564
  return "";
2536
2565
  delete c.id;
2537
2566
  let u = "", p = "";
2538
- if ((g = c.service) != null && g.id ? (p = "service", delete c.service) : (y = c.route) != null && y.id ? (p = "route", delete c.route) : (x = c.consumer) != null && x.id ? (p = "consumer", delete c.consumer) : (C = c.consumer_group) != null && C.id ? (p = "consumer_group", delete c.consumer_group) : (k = c.certificate) != null && k.id ? (p = "certificate", delete c.certificate) : (L = c.set) != null && L.id && (p = "set", delete c.set), n.value) {
2539
- const D = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2540
- u += `resource "konnect_event_gateway_${D}" "my_eventgateway${D.replaceAll("_", "")}" {
2567
+ if ((y = c.service) != null && y.id ? (p = "service", delete c.service) : (h = c.route) != null && h.id ? (p = "route", delete c.route) : (k = c.consumer) != null && k.id ? (p = "consumer", delete c.consumer) : (C = c.consumer_group) != null && C.id ? (p = "consumer_group", delete c.consumer_group) : (x = c.certificate) != null && x.id ? (p = "certificate", delete c.certificate) : (B = c.set) != null && B.id && (p = "set", delete c.set), n.value) {
2568
+ const j = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2569
+ u += `resource "konnect_event_gateway_${j}" "my_eventgateway${j.replaceAll("_", "")}" {
2541
2570
  `, u += `${te}provider = konnect-beta
2542
2571
  `;
2543
2572
  } else if (t.entityType === "plugin") {
2544
- const D = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
2545
- delete c.name, u += `resource "konnect_gateway_plugin_${D}" "my_${D}" {
2573
+ const j = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
2574
+ delete c.name, u += `resource "konnect_gateway_plugin_${j}" "my_${j}" {
2546
2575
  `;
2547
2576
  } else i.value ? (u += `resource "konnect_${t.entityType}" "my_${t.entityType}" {
2548
2577
  `, u += `${te}provider = konnect-beta
@@ -2556,25 +2585,26 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2556
2585
  `, u;
2557
2586
  });
2558
2587
  return (c, d) => {
2559
- const u = P("KCodeBlock");
2560
- return h(), T("div", Ho, [
2561
- t.entityRecord ? (h(), M(u, {
2588
+ const u = D("KCodeBlock");
2589
+ return g(), T("div", zo, [
2590
+ t.entityRecord ? (g(), N(u, {
2562
2591
  key: 0,
2563
2592
  id: "terraform-codeblock",
2564
2593
  code: s.value,
2565
2594
  language: "terraform",
2566
- theme: "dark"
2567
- }, null, 8, ["code"])) : j("", !0)
2595
+ theme: "dark",
2596
+ onCodeBlockRender: A(Te)
2597
+ }, null, 8, ["code", "onCodeBlockRender"])) : P("", !0)
2568
2598
  ]);
2569
2599
  };
2570
2600
  }
2571
- }), Vo = {
2601
+ }), Qo = {
2572
2602
  key: 0,
2573
2603
  class: "config-card-display-form"
2574
- }, Yo = ["data-testid"], Wo = {
2604
+ }, Zo = ["data-testid"], Xo = {
2575
2605
  key: 0,
2576
2606
  class: "config-card-prop-section-title"
2577
- }, Jo = /* @__PURE__ */ z({
2607
+ }, el = /* @__PURE__ */ z({
2578
2608
  __name: "ConfigCardDisplay",
2579
2609
  props: {
2580
2610
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2586,7 +2616,7 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2586
2616
  entityType: {
2587
2617
  type: String,
2588
2618
  required: !0,
2589
- validator: (e) => Ue.includes(e)
2619
+ validator: (e) => qe.includes(e)
2590
2620
  },
2591
2621
  subEntityType: {
2592
2622
  // only for event gateway entities
@@ -2631,7 +2661,7 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2631
2661
  }
2632
2662
  },
2633
2663
  setup(e) {
2634
- const t = e, n = Pe(), { i18n: { t: i } } = W.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = $(() => {
2664
+ const t = e, n = Ue(), { i18n: { t: i } } = W.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = $(() => {
2635
2665
  if (!t.record)
2636
2666
  return t.record;
2637
2667
  let l = t.record;
@@ -2639,23 +2669,23 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2639
2669
  const s = JSON.parse(JSON.stringify(l));
2640
2670
  return delete s.created_at, delete s.updated_at, s;
2641
2671
  }), a = $(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
2642
- return (l, s) => (h(), T(ue, null, [
2643
- e.format === "structured" ? (h(), T("div", Vo, [
2644
- (h(!0), T(ue, null, ce(e.propListTypes, (c) => (h(), T("div", {
2672
+ return (l, s) => (g(), T(ue, null, [
2673
+ e.format === "structured" ? (g(), T("div", Qo, [
2674
+ (g(!0), T(ue, null, ce(e.propListTypes, (c) => (g(), T("div", {
2645
2675
  key: `config-card-details-${c}-props`,
2646
2676
  class: fe(`config-card-details-${c}-props`),
2647
2677
  "data-testid": `config-card-details-${c}-props`
2648
2678
  }, [
2649
- c !== "basic" ? (h(), T("div", Wo, O(c === "advanced" ? _(i)("baseConfigCard.sections.advanced") : c === "plugin" ? _(i)("baseConfigCard.sections.plugin") : _(i)("baseConfigCard.sections.policy")), 1)) : j("", !0),
2650
- (h(!0), T(ue, null, ce(e.propertyCollections[c], (d) => U(l.$slots, `config-card-item-${d.key}`, {
2679
+ c !== "basic" ? (g(), T("div", Xo, O(c === "advanced" ? A(i)("baseConfigCard.sections.advanced") : c === "plugin" ? A(i)("baseConfigCard.sections.plugin") : A(i)("baseConfigCard.sections.policy")), 1)) : P("", !0),
2680
+ (g(!0), T(ue, null, ce(e.propertyCollections[c], (d) => U(l.$slots, `config-card-item-${d.key}`, {
2651
2681
  key: d.key,
2652
2682
  item: d
2653
2683
  }, () => [
2654
- R(tn, { item: d }, $e({
2655
- label: A(() => [
2684
+ K(nn, { item: d }, $e({
2685
+ label: _(() => [
2656
2686
  U(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2657
2687
  ]),
2658
- [d.key]: A(({ rowValue: u }) => [
2688
+ [d.key]: _(({ rowValue: u }) => [
2659
2689
  U(l.$slots, d.key, {
2660
2690
  row: d,
2661
2691
  rowValue: u
@@ -2665,38 +2695,38 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2665
2695
  }, [
2666
2696
  r(d) ? {
2667
2697
  name: "label-tooltip",
2668
- fn: A(() => [
2698
+ fn: _(() => [
2669
2699
  U(l.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2670
2700
  ]),
2671
2701
  key: "0"
2672
2702
  } : void 0
2673
2703
  ]), 1032, ["item"])
2674
2704
  ], !0)), 128))
2675
- ], 10, Yo))), 128))
2676
- ])) : j("", !0),
2677
- e.format === "json" && o.value ? (h(), M(nn, {
2705
+ ], 10, Zo))), 128))
2706
+ ])) : P("", !0),
2707
+ e.format === "json" && o.value ? (g(), N(rn, {
2678
2708
  key: 1,
2679
2709
  config: t.config,
2680
2710
  "entity-record": o.value,
2681
2711
  "fetcher-url": a.value,
2682
2712
  "request-method": "get"
2683
- }, null, 8, ["config", "entity-record", "fetcher-url"])) : j("", !0),
2684
- e.format === "yaml" && o.value ? (h(), M(Wn, {
2713
+ }, null, 8, ["config", "entity-record", "fetcher-url"])) : P("", !0),
2714
+ e.format === "yaml" && o.value ? (g(), N(Jn, {
2685
2715
  key: 2,
2686
2716
  "entity-record": o.value
2687
- }, null, 8, ["entity-record"])) : j("", !0),
2688
- e.format === "terraform" && o.value ? (h(), M(Jn, {
2717
+ }, null, 8, ["entity-record"])) : P("", !0),
2718
+ e.format === "terraform" && o.value ? (g(), N(Gn, {
2689
2719
  key: 3,
2690
2720
  "entity-record": o.value,
2691
2721
  "entity-type": t.entityType,
2692
2722
  "sub-entity-type": t.subEntityType
2693
- }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : j("", !0)
2723
+ }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : P("", !0)
2694
2724
  ], 64));
2695
2725
  }
2696
- }), Go = /* @__PURE__ */ le(Jo, [["__scopeId", "data-v-a7689049"]]), zo = {
2726
+ }), tl = /* @__PURE__ */ le(el, [["__scopeId", "data-v-a7689049"]]), nl = {
2697
2727
  class: "config-card-title",
2698
2728
  "data-testid": "config-card-title"
2699
- }, Qo = { class: "config-card-actions" }, Zo = ["href"], Xo = { class: "config-card-details-section" }, el = /* @__PURE__ */ z({
2729
+ }, il = { class: "config-card-actions" }, rl = ["href"], al = { class: "config-card-details-section" }, ol = /* @__PURE__ */ z({
2700
2730
  __name: "EntityBaseConfigCard",
2701
2731
  props: {
2702
2732
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2717,7 +2747,7 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2717
2747
  entityType: {
2718
2748
  type: String,
2719
2749
  required: !0,
2720
- validator: (e) => Ue.includes(e)
2750
+ validator: (e) => qe.includes(e)
2721
2751
  },
2722
2752
  /**
2723
2753
  * Sub Entity type, required to generate terraform code for event gateway entities
@@ -2840,14 +2870,14 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2840
2870
  label: r("baseForm.configuration.terraform"),
2841
2871
  value: "terraform"
2842
2872
  });
2843
- const c = s[0].value, d = N(c), u = (f) => {
2873
+ const c = s[0].value, d = M(c), u = (f) => {
2844
2874
  d.value = f == null ? void 0 : f.value, n("configFormatChange", d.value);
2845
2875
  }, p = (f, v) => {
2846
2876
  localStorage.setItem(f, v);
2847
2877
  };
2848
2878
  be(d, (f) => {
2849
2879
  i.config.formatPreferenceKey && p(i.config.formatPreferenceKey, f);
2850
- }), nt(() => {
2880
+ }), it(() => {
2851
2881
  if (i.config.formatPreferenceKey) {
2852
2882
  const f = localStorage.getItem(i.config.formatPreferenceKey);
2853
2883
  f && s.some((v) => v.value === f) ? d.value = f : d.value = c, p(i.config.formatPreferenceKey, d.value);
@@ -2894,78 +2924,78 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2894
2924
  // the last property displayed
2895
2925
  section: ae.Basic
2896
2926
  }
2897
- }, g = N(!1), y = N(!1), x = N(""), C = N({}), k = $(() => {
2927
+ }, y = M(!1), h = M(!1), k = M(""), C = M({}), x = $(() => {
2898
2928
  var b, V, J;
2899
2929
  if (!C.value)
2900
2930
  return [];
2901
2931
  const f = [], v = Object.keys(C.value).length;
2902
2932
  for (const E in C.value) {
2903
2933
  if (E === "__ui_data") continue;
2904
- const K = (V = (b = i.configSchema) == null ? void 0 : b[E]) == null ? void 0 : V.order, G = (J = m[E]) == null ? void 0 : J.order;
2934
+ const R = (V = (b = i.configSchema) == null ? void 0 : b[E]) == null ? void 0 : V.order, G = (J = m[E]) == null ? void 0 : J.order;
2905
2935
  let H = v;
2906
- (G || G === 0) && (H = G === -1 ? v + 1 : G), K && (H = K === -1 ? v + 1 : K), f.push([E, H]);
2936
+ (G || G === 0) && (H = G === -1 ? v + 1 : G), R && (H = R === -1 ? v + 1 : R), f.push([E, H]);
2907
2937
  }
2908
- return f.sort(function(E, K) {
2909
- return E[1] - K[1];
2938
+ return f.sort(function(E, R) {
2939
+ return E[1] - R[1];
2910
2940
  }), f.map((E) => {
2911
- var dt, ft;
2912
- const K = E[0], G = (dt = C.value) == null ? void 0 : dt[K], H = ((ft = i.configSchema) == null ? void 0 : ft[K]) || {}, Q = m[K];
2941
+ var ft, pt;
2942
+ const R = E[0], G = (ft = C.value) == null ? void 0 : ft[R], H = ((pt = i.configSchema) == null ? void 0 : pt[R]) || {}, Q = m[R];
2913
2943
  return {
2914
- key: K,
2944
+ key: R,
2915
2945
  value: G,
2916
2946
  hidden: H.hidden || !1,
2917
2947
  type: H.type ?? ((Q == null ? void 0 : Q.type) || Y.Text),
2918
- label: H.label ?? ((Q == null ? void 0 : Q.label) || a(K)),
2948
+ label: H.label ?? ((Q == null ? void 0 : Q.label) || a(R)),
2919
2949
  tooltip: H.tooltip ?? ((Q == null ? void 0 : Q.tooltip) || void 0),
2920
2950
  section: H.section ?? ((Q == null ? void 0 : Q.section) || ae.Advanced)
2921
2951
  };
2922
2952
  }).filter((E) => !E.hidden && E.key !== i.pluginConfigKey);
2923
- }), L = $(() => {
2953
+ }), B = $(() => {
2924
2954
  var V, J;
2925
2955
  if (!C.value || !i.pluginConfigKey)
2926
2956
  return [];
2927
2957
  const f = C.value[i.pluginConfigKey] || {}, v = Object.keys(f).length, b = [];
2928
2958
  for (const E in f) {
2929
- const K = (J = (V = i.pluginConfigSchema) == null ? void 0 : V[E]) == null ? void 0 : J.order, G = f[E];
2959
+ const R = (J = (V = i.pluginConfigSchema) == null ? void 0 : V[E]) == null ? void 0 : J.order, G = f[E];
2930
2960
  let H = G != null && G !== "" ? v - 1 : v;
2931
- K && (H = K === -1 ? v + 1 : K), b.push([E, H]);
2961
+ R && (H = R === -1 ? v + 1 : R), b.push([E, H]);
2932
2962
  }
2933
- return b.sort(function(E, K) {
2934
- return E[1] - K[1];
2963
+ return b.sort(function(E, R) {
2964
+ return E[1] - R[1];
2935
2965
  }), b.map((E) => {
2936
2966
  var Q;
2937
- const K = E[0], G = f[K], H = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[K]) || {};
2967
+ const R = E[0], G = f[R], H = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[R]) || {};
2938
2968
  return {
2939
- key: K,
2969
+ key: R,
2940
2970
  value: G,
2941
2971
  hidden: H.hidden || !1,
2942
2972
  type: H.type ?? Y.Text,
2943
- label: H.label ?? a(K),
2973
+ label: H.label ?? a(R),
2944
2974
  tooltip: H.tooltip ?? void 0,
2945
2975
  section: ae.Plugin
2946
2976
  };
2947
2977
  }).filter((E) => !E.hidden);
2948
- }), D = $(() => {
2978
+ }), j = $(() => {
2949
2979
  var V, J;
2950
2980
  if (!C.value || !i.policyConfigKey)
2951
2981
  return [];
2952
2982
  const f = C.value[i.policyConfigKey] || {}, v = Object.keys(f).length, b = [];
2953
2983
  for (const E in f) {
2954
- const K = (J = (V = i.policyConfigSchema) == null ? void 0 : V[E]) == null ? void 0 : J.order, G = f[E];
2984
+ const R = (J = (V = i.policyConfigSchema) == null ? void 0 : V[E]) == null ? void 0 : J.order, G = f[E];
2955
2985
  let H = G != null && G !== "" ? v - 1 : v;
2956
- K && (H = K === -1 ? v + 1 : K), b.push([E, H]);
2986
+ R && (H = R === -1 ? v + 1 : R), b.push([E, H]);
2957
2987
  }
2958
- return b.sort(function(E, K) {
2959
- return E[1] - K[1];
2988
+ return b.sort(function(E, R) {
2989
+ return E[1] - R[1];
2960
2990
  }), b.map((E) => {
2961
2991
  var Q;
2962
- const K = E[0], G = f[K], H = ((Q = i.policyConfigSchema) == null ? void 0 : Q[K]) || {};
2992
+ const R = E[0], G = f[R], H = ((Q = i.policyConfigSchema) == null ? void 0 : Q[R]) || {};
2963
2993
  return {
2964
- key: K,
2994
+ key: R,
2965
2995
  value: G,
2966
2996
  hidden: H.hidden || !1,
2967
2997
  type: H.type ?? Y.Text,
2968
- label: H.label ?? a(K),
2998
+ label: H.label ?? a(R),
2969
2999
  tooltip: H.tooltip ?? void 0,
2970
3000
  section: ae.Policy
2971
3001
  };
@@ -2973,10 +3003,10 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2973
3003
  }), X = $(() => {
2974
3004
  var f, v, b, V, J, E;
2975
3005
  return {
2976
- basic: (f = k.value) == null ? void 0 : f.filter((K) => K.section === ae.Basic),
2977
- advanced: (v = k.value) == null ? void 0 : v.filter((K) => K.section === ae.Advanced),
2978
- plugin: (V = L.value) == null ? void 0 : V.concat((b = k.value) == null ? void 0 : b.filter((K) => K.section === ae.Plugin)),
2979
- policy: (E = D.value) == null ? void 0 : E.concat((J = k.value) == null ? void 0 : J.filter((K) => K.section === ae.Policy))
3006
+ basic: (f = x.value) == null ? void 0 : f.filter((R) => R.section === ae.Basic),
3007
+ advanced: (v = x.value) == null ? void 0 : v.filter((R) => R.section === ae.Advanced),
3008
+ plugin: (V = B.value) == null ? void 0 : V.concat((b = x.value) == null ? void 0 : b.filter((R) => R.section === ae.Plugin)),
3009
+ policy: (E = j.value) == null ? void 0 : E.concat((J = x.value) == null ? void 0 : J.filter((R) => R.section === ae.Policy))
2980
3010
  };
2981
3011
  }), S = $(() => {
2982
3012
  const f = [];
@@ -2986,10 +3016,10 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
2986
3016
  let f = `${i.config.apiBaseUrl}${i.fetchUrl}`;
2987
3017
  return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (b = i.config) != null && b.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
2988
3018
  });
2989
- return be(g, (f) => {
3019
+ return be(y, (f) => {
2990
3020
  n("loading", f);
2991
- }, { immediate: !0 }), it(async () => {
2992
- y.value = !1, g.value = !0;
3021
+ }, { immediate: !0 }), rt(async () => {
3022
+ h.value = !1, y.value = !0;
2993
3023
  try {
2994
3024
  const { data: f } = await l.get(w.value);
2995
3025
  if (i.dataKey)
@@ -3003,72 +3033,72 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
3003
3033
  }), n("fetch:success", f);
3004
3034
  } catch (f) {
3005
3035
  const v = o(f);
3006
- x.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, y.value = !0, n("fetch:error", f);
3036
+ k.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, h.value = !0, n("fetch:error", f);
3007
3037
  } finally {
3008
- g.value = !1;
3038
+ y.value = !1;
3009
3039
  }
3010
3040
  }), (f, v) => {
3011
- const b = P("KLabel"), V = P("KSelect"), J = P("KButton"), E = P("KSkeleton"), K = P("KEmptyState"), G = P("KCard");
3012
- return h(), M(G, {
3041
+ const b = D("KLabel"), V = D("KSelect"), J = D("KButton"), E = D("KSkeleton"), R = D("KEmptyState"), G = D("KCard");
3042
+ return g(), N(G, {
3013
3043
  class: "kong-ui-entity-base-config-card",
3014
3044
  "title-tag": e.titleTag
3015
3045
  }, $e({
3016
- actions: A(() => [
3017
- B("div", Qo, [
3046
+ actions: _(() => [
3047
+ L("div", il, [
3018
3048
  U(f.$slots, "actions", {}, void 0, !0),
3019
- R(b, {
3049
+ K(b, {
3020
3050
  class: "config-format-select-label",
3021
3051
  "data-testid": "config-format-select-label"
3022
3052
  }, {
3023
- default: A(() => [
3053
+ default: _(() => [
3024
3054
  q(O(e.label), 1)
3025
3055
  ]),
3026
3056
  _: 1
3027
3057
  }),
3028
- R(V, {
3058
+ K(V, {
3029
3059
  modelValue: d.value,
3030
3060
  "onUpdate:modelValue": v[0] || (v[0] = (H) => d.value = H),
3031
3061
  "data-testid": "select-config-format",
3032
3062
  items: s,
3033
3063
  onChange: u
3034
3064
  }, null, 8, ["modelValue"]),
3035
- e.configCardDoc ? (h(), M(J, {
3065
+ e.configCardDoc ? (g(), N(J, {
3036
3066
  key: 0,
3037
3067
  appearance: "tertiary",
3038
3068
  class: "book-icon",
3039
3069
  "data-testid": "book-icon"
3040
3070
  }, {
3041
- default: A(() => [
3042
- B("a", {
3071
+ default: _(() => [
3072
+ L("a", {
3043
3073
  href: e.configCardDoc,
3044
3074
  rel: "noopener",
3045
3075
  target: "_blank"
3046
3076
  }, [
3047
- R(_(Wt), { size: _(sr) }, null, 8, ["size"])
3048
- ], 8, Zo)
3077
+ K(A(Jt), { size: A(fr) }, null, 8, ["size"])
3078
+ ], 8, rl)
3049
3079
  ]),
3050
3080
  _: 1
3051
- })) : j("", !0)
3081
+ })) : P("", !0)
3052
3082
  ])
3053
3083
  ]),
3054
- default: A(() => [
3055
- g.value ? (h(), M(E, {
3084
+ default: _(() => [
3085
+ y.value ? (g(), N(E, {
3056
3086
  key: 0,
3057
3087
  "data-testid": "config-card-loader",
3058
3088
  "table-columns": 2,
3059
3089
  type: "table"
3060
- })) : y.value ? (h(), M(K, {
3090
+ })) : h.value ? (g(), N(R, {
3061
3091
  key: 1,
3062
3092
  "data-testid": "config-card-fetch-error",
3063
3093
  "icon-variant": "error"
3064
3094
  }, {
3065
- default: A(() => [
3066
- B("h3", null, O(x.value), 1)
3095
+ default: _(() => [
3096
+ L("h3", null, O(k.value), 1)
3067
3097
  ]),
3068
3098
  _: 1
3069
- })) : j("", !0),
3070
- B("div", Xo, [
3071
- R(Go, {
3099
+ })) : P("", !0),
3100
+ L("div", al, [
3101
+ K(tl, {
3072
3102
  "code-block-record-formatter": e.codeBlockRecordFormatter,
3073
3103
  config: e.config,
3074
3104
  "entity-type": e.entityType,
@@ -3081,8 +3111,8 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
3081
3111
  }, $e({ _: 2 }, [
3082
3112
  ce(Object.keys(f.$slots), (H) => ({
3083
3113
  name: H,
3084
- fn: A((Q) => [
3085
- U(f.$slots, H, Vt({ record: C.value }, Q), void 0, !0)
3114
+ fn: _((Q) => [
3115
+ U(f.$slots, H, Yt({ record: C.value }, Q), void 0, !0)
3086
3116
  ])
3087
3117
  }))
3088
3118
  ]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
@@ -3092,10 +3122,10 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
3092
3122
  }, [
3093
3123
  e.hideTitle ? void 0 : {
3094
3124
  name: "title",
3095
- fn: A(() => [
3096
- B("span", zo, [
3125
+ fn: _(() => [
3126
+ L("span", nl, [
3097
3127
  U(f.$slots, "title", {}, () => [
3098
- q(O(_(r)("baseConfigCard.title")), 1)
3128
+ q(O(A(r)("baseConfigCard.title")), 1)
3099
3129
  ], !0)
3100
3130
  ])
3101
3131
  ]),
@@ -3104,98 +3134,109 @@ const qo = { class: "yaml-config config-card-code-block" }, Wn = /* @__PURE__ */
3104
3134
  ]), 1032, ["title-tag"]);
3105
3135
  };
3106
3136
  }
3107
- }), As = /* @__PURE__ */ le(el, [["__scopeId", "data-v-f2b42324"]]), tl = { class: "deck-config config-card-code-block" }, nl = /* @__PURE__ */ z({
3137
+ }), Fs = /* @__PURE__ */ le(ol, [["__scopeId", "data-v-f2b42324"]]), ll = { class: "deck-config config-card-code-block" }, sl = /* @__PURE__ */ z({
3108
3138
  __name: "DeckCodeBlock",
3109
3139
  props: {
3140
+ app: {},
3110
3141
  entityRecord: {},
3111
3142
  entityType: {},
3112
3143
  geoApiServerUrl: {},
3113
- controlPlaneName: {}
3144
+ controlPlaneName: {},
3145
+ kongAdminApiUrl: {},
3146
+ workspace: {}
3114
3147
  },
3115
3148
  setup(e) {
3116
3149
  const t = e, { i18n: n, i18nT: i } = W.useI18n(), r = [
3117
3150
  { value: "bash", label: "Linux / macOS Bash" },
3118
- { value: "pwsh", label: "Windows PowerShell" }
3119
- ], o = N(navigator.userAgent.toLowerCase().includes("windows") ? "pwsh" : "bash"), a = $(() => {
3151
+ { value: "powershell", label: "Windows PowerShell" }
3152
+ ], o = M(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a = $(() => {
3120
3153
  const d = {
3121
3154
  _format_version: "3.0"
3122
3155
  };
3123
- return t.controlPlaneName && (d._konnect = {
3156
+ return t.controlPlaneName ? d._konnect = {
3124
3157
  control_plane_name: t.controlPlaneName
3125
- }), d;
3158
+ } : t.workspace && (d._workspace = t.workspace), d;
3126
3159
  }), l = $(() => {
3127
- var m, g, y, x, C;
3128
- const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, k]) => k !== null && k !== "" && (Array.isArray(k) ? k.length !== 0 : !0)));
3129
- t.entityType === Se.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (g = d.route) != null && g.id && (d.route = d.route.id), (y = d.consumer) != null && y.id && (d.consumer = d.consumer.id), (x = d.consumer_group) != null && x.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === Se.Key && (C = d.key_set) != null && C.id && (d.key_set = d.key_set.id);
3160
+ var m, y, h, k, C;
3161
+ const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x !== null && x !== "" && (Array.isArray(x) ? x.length !== 0 : !0)));
3162
+ t.entityType === Se.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (y = d.route) != null && y.id && (d.route = d.route.id), (h = d.consumer) != null && h.id && (d.consumer = d.consumer.id), (k = d.consumer_group) != null && k.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === Se.Key && (C = d.key_set) != null && C.id && (d.key_set = d.key_set.id);
3130
3163
  const u = t.entityType === Se.KeySet ? "key_sets" : t.entityType + "s", p = {
3131
3164
  ...a.value,
3132
3165
  [u]: [d]
3133
3166
  };
3134
- return Yn.dump(p, { quotingType: '"' }).trim();
3167
+ return Wn.dump(p, { quotingType: '"' }).trim();
3135
3168
  }), s = $(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), c = $(() => {
3136
3169
  let d = "deck gateway apply -";
3137
- return t.geoApiServerUrl && (d += ` --konnect-addr ${t.geoApiServerUrl}`), o.value === "bash" ? `echo '${l.value}
3170
+ return t.geoApiServerUrl ? d += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (d += ` --kong-addr ${t.kongAdminApiUrl}`), o.value === "bash" ? `echo '
3171
+ ${l.value}
3138
3172
  ' | ${d}` : `@'
3139
3173
  ${l.value}
3140
3174
  '@ | ${d}`;
3141
3175
  });
3142
3176
  return (d, u) => {
3143
- const p = P("KSelect"), m = P("KBadge"), g = P("KCodeBlock");
3144
- return h(), T("div", tl, [
3145
- R(p, {
3177
+ const p = D("KSelect"), m = D("KBadge"), y = D("KCodeBlock");
3178
+ return g(), T("div", ll, [
3179
+ K(p, {
3146
3180
  modelValue: o.value,
3147
- "onUpdate:modelValue": u[0] || (u[0] = (y) => o.value = y),
3181
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => o.value = h),
3148
3182
  items: r
3149
3183
  }, {
3150
- "item-template": A(({ item: y }) => [
3151
- y.value === "pwsh" ? (h(), M(_(ht), { key: 0 })) : (h(), M(_(yt), { key: 1 })),
3152
- q(" " + O(y.label), 1)
3184
+ "item-template": _(({ item: h }) => [
3185
+ h.value === "powershell" ? (g(), N(A(ht), { key: 0 })) : (g(), N(A(yt), { key: 1 })),
3186
+ q(" " + O(h.label), 1)
3153
3187
  ]),
3154
- "selected-item-template": A(({ item: y }) => [
3155
- y.value === "pwsh" ? (h(), M(_(ht), { key: 0 })) : (h(), M(_(yt), { key: 1 })),
3156
- q(" " + O(y.label), 1)
3188
+ "selected-item-template": _(({ item: h }) => [
3189
+ h.value === "powershell" ? (g(), N(A(ht), { key: 0 })) : (g(), N(A(yt), { key: 1 })),
3190
+ q(" " + O(h.label), 1)
3157
3191
  ]),
3158
3192
  _: 1
3159
3193
  }, 8, ["modelValue"]),
3160
- B("p", null, [
3161
- R(_(i), { keypath: "deckCodeBlock.hint" }, {
3162
- token: A(() => [
3163
- R(m, null, {
3164
- default: A(() => [...u[1] || (u[1] = [
3194
+ L("p", null, [
3195
+ K(A(i), {
3196
+ keypath: `deckCodeBlock.hint.${e.app}`
3197
+ }, {
3198
+ token: _(() => [
3199
+ K(m, null, {
3200
+ default: _(() => [...u[1] || (u[1] = [
3165
3201
  q("DECK_KONNECT_TOKEN", -1)
3166
3202
  ])]),
3167
3203
  _: 1
3168
3204
  })
3169
3205
  ]),
3170
- link: A(() => [
3171
- R(_(ai), { href: "https://developer.konghq.com/deck/get-started/" }, {
3172
- default: A(() => [
3173
- q(O(_(n).t("deckCodeBlock.documentation")), 1)
3206
+ link: _(() => [
3207
+ K(A(oi), {
3208
+ href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
3209
+ }, {
3210
+ default: _(() => [
3211
+ q(O(A(n).t("deckCodeBlock.documentation")), 1)
3174
3212
  ]),
3175
3213
  _: 1
3176
- })
3214
+ }, 8, ["href"])
3177
3215
  ]),
3178
3216
  _: 1
3179
- })
3217
+ }, 8, ["keypath"])
3180
3218
  ]),
3181
- R(g, {
3219
+ e.app === "konnect" ? (g(), N(y, {
3220
+ key: 0,
3182
3221
  id: "deck-env-codeblock",
3183
3222
  code: s.value,
3184
- language: "shell",
3223
+ language: o.value,
3185
3224
  "single-line": "",
3186
- theme: "dark"
3187
- }, null, 8, ["code"]),
3188
- t.entityRecord ? (h(), M(g, {
3189
- key: 0,
3225
+ theme: "dark",
3226
+ onCodeBlockRender: A(Te)
3227
+ }, null, 8, ["code", "language", "onCodeBlockRender"])) : P("", !0),
3228
+ t.entityRecord ? (g(), N(y, {
3229
+ key: 1,
3190
3230
  id: "deck-codeblock",
3191
3231
  code: c.value,
3192
- language: "shell",
3193
- theme: "dark"
3194
- }, null, 8, ["code"])) : j("", !0)
3232
+ language: o.value,
3233
+ theme: "dark",
3234
+ onCodeBlockRender: A(Te)
3235
+ }, null, 8, ["code", "language", "onCodeBlockRender"])) : P("", !0)
3195
3236
  ]);
3196
3237
  };
3197
3238
  }
3198
- }), il = /* @__PURE__ */ le(nl, [["__scopeId", "data-v-b0f5656a"]]), rl = ["novalidate"], al = /* @__PURE__ */ z({
3239
+ }), cl = /* @__PURE__ */ le(sl, [["__scopeId", "data-v-a014ea37"]]), ul = ["novalidate"], dl = /* @__PURE__ */ z({
3199
3240
  __name: "EntityBaseForm",
3200
3241
  props: {
3201
3242
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3216,7 +3257,7 @@ ${l.value}
3216
3257
  entityType: {
3217
3258
  type: String,
3218
3259
  required: !0,
3219
- validator: (e) => Ue.includes(e)
3260
+ validator: (e) => qe.includes(e)
3220
3261
  },
3221
3262
  /**
3222
3263
  * Sub entity type, required for event gateway entities to generate terraform code
@@ -3319,19 +3360,19 @@ ${l.value}
3319
3360
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
3320
3361
  setup(e, { expose: t, emit: n }) {
3321
3362
  var X;
3322
- const i = n, r = e, o = di(), { i18n: { t: a } } = W.useI18n(), { getMessageFromError: l } = W.useErrors(), { axiosInstance: s } = W.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = N(!1), d = $(() => !!r.editId), u = N(!1), p = N(""), m = $(() => r.canSubmit === !1 || r.isReadonly), g = N(!1), y = $(() => {
3363
+ const i = n, r = e, o = gi(), { i18n: { t: a } } = W.useI18n(), { getMessageFromError: l } = W.useErrors(), { axiosInstance: s } = W.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = M(!1), d = $(() => !!r.editId), u = M(!1), p = M(""), m = $(() => r.canSubmit === !1 || r.isReadonly), y = M(!1), h = $(() => {
3323
3364
  var w, F;
3324
3365
  let S = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3325
3366
  return r.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), r.editId ? (S = S.replace(/{id}/gi, r.editId), S) : (S = S.replace(/\/{id}/gi, ""), S);
3326
- }), x = () => {
3327
- g.value = !g.value;
3367
+ }), k = () => {
3368
+ y.value = !y.value;
3328
3369
  }, C = () => {
3329
- r.config.cancelRoute ? o.push(r.config.cancelRoute) : k();
3330
- }, k = () => {
3370
+ r.config.cancelRoute ? o.push(r.config.cancelRoute) : x();
3371
+ }, x = () => {
3331
3372
  i("cancel");
3332
- }, L = () => {
3373
+ }, B = () => {
3333
3374
  m.value || i("submit");
3334
- }, D = N([
3375
+ }, j = M([
3335
3376
  {
3336
3377
  title: a("baseForm.configuration.json"),
3337
3378
  hash: "#json"
@@ -3341,19 +3382,19 @@ ${l.value}
3341
3382
  hash: "#yaml"
3342
3383
  }
3343
3384
  ]);
3344
- return r.config.app === "konnect" && r.entityType !== Se.Other && D.value.splice(1, 0, {
3385
+ return r.config.app === "konnect" && r.entityType !== Se.Other && j.value.splice(1, 0, {
3345
3386
  title: a("baseForm.configuration.terraform"),
3346
3387
  hash: "#terraform"
3347
- }), r.config.app === "konnect" && r.config.enableDeckTab && mi.includes(r.entityType) && D.value.push({
3388
+ }), r.config.app === "konnect" && r.config.enableDeckTab && vi.includes(r.entityType) && j.value.push({
3348
3389
  title: a("baseForm.configuration.deck"),
3349
3390
  hash: "#deck"
3350
3391
  }), be(() => c.value, (S) => {
3351
3392
  i("loading", S);
3352
- }, { immediate: !0 }), it(async () => {
3393
+ }, { immediate: !0 }), rt(async () => {
3353
3394
  if (r.editId)
3354
3395
  try {
3355
3396
  u.value = !1, c.value = !0;
3356
- const { data: S } = await s.get(y.value);
3397
+ const { data: S } = await s.get(h.value);
3357
3398
  i("fetch:success", S);
3358
3399
  } catch (S) {
3359
3400
  const w = l(S);
@@ -3362,132 +3403,135 @@ ${l.value}
3362
3403
  c.value = !1;
3363
3404
  }
3364
3405
  }), t({
3365
- viewConfig: x,
3366
- formCancel: k,
3367
- formSubmit: L
3406
+ viewConfig: k,
3407
+ formCancel: x,
3408
+ formSubmit: B
3368
3409
  }), (S, w) => {
3369
- const F = P("KSkeleton"), f = P("KEmptyState"), v = P("KAlert"), b = P("KButton"), V = P("KTabs"), J = P("KSlideout");
3370
- return h(), M(De(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3371
- default: A(() => [
3372
- c.value ? (h(), M(F, {
3410
+ const F = D("KSkeleton"), f = D("KEmptyState"), v = D("KAlert"), b = D("KButton"), V = D("KTabs"), J = D("KSlideout");
3411
+ return g(), N(De(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3412
+ default: _(() => [
3413
+ c.value ? (g(), N(F, {
3373
3414
  key: 0,
3374
3415
  type: "form"
3375
- })) : u.value ? (h(), M(f, {
3416
+ })) : u.value ? (g(), N(f, {
3376
3417
  key: 1,
3377
- "action-button-text": _(a)("baseForm.actions.back"),
3418
+ "action-button-text": A(a)("baseForm.actions.back"),
3378
3419
  "data-testid": "form-fetch-error",
3379
3420
  "icon-variant": "error",
3380
3421
  onClickAction: C
3381
3422
  }, {
3382
- default: A(() => [
3383
- B("h3", null, O(p.value), 1)
3423
+ default: _(() => [
3424
+ L("h3", null, O(p.value), 1)
3384
3425
  ]),
3385
3426
  _: 1
3386
- }, 8, ["action-button-text"])) : (h(), T("form", {
3427
+ }, 8, ["action-button-text"])) : (g(), T("form", {
3387
3428
  key: 2,
3388
3429
  "data-testid": "form-content",
3389
3430
  novalidate: r.noValidate,
3390
- onReset: Be(k, ["prevent"]),
3391
- onSubmit: Be(L, ["prevent"])
3431
+ onReset: Re(x, ["prevent"]),
3432
+ onSubmit: Re(B, ["prevent"])
3392
3433
  }, [
3393
3434
  U(S.$slots, "default", {}, void 0, !0),
3394
- e.errorMessage ? (h(), M(v, {
3435
+ e.errorMessage ? (g(), N(v, {
3395
3436
  key: 0,
3396
3437
  appearance: "danger",
3397
3438
  "data-testid": "form-error",
3398
3439
  message: e.errorMessage
3399
- }, null, 8, ["message"])) : j("", !0),
3400
- e.hideActions ? j("", !0) : (h(), M(Yt, {
3440
+ }, null, 8, ["message"])) : P("", !0),
3441
+ e.hideActions ? P("", !0) : (g(), N(Wt, {
3401
3442
  key: 1,
3402
3443
  disabled: !e.actionTeleportTarget,
3403
3444
  to: e.actionTeleportTarget
3404
3445
  }, [
3405
- B("div", {
3446
+ L("div", {
3406
3447
  class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
3407
3448
  "data-testid": "form-actions"
3408
3449
  }, [
3409
3450
  U(S.$slots, "form-actions", {}, () => [
3410
- R(b, {
3451
+ K(b, {
3411
3452
  appearance: "tertiary",
3412
3453
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
3413
- onClick: w[0] || (w[0] = (E) => x())
3454
+ onClick: w[0] || (w[0] = (E) => k())
3414
3455
  }, {
3415
- default: A(() => [
3416
- q(O(_(a)("baseForm.actions.viewConfiguration")), 1)
3456
+ default: _(() => [
3457
+ q(O(A(a)("baseForm.actions.viewConfiguration")), 1)
3417
3458
  ]),
3418
3459
  _: 1
3419
3460
  }, 8, ["data-testid"]),
3420
- R(b, {
3461
+ K(b, {
3421
3462
  appearance: "secondary",
3422
3463
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
3423
3464
  disabled: e.isReadonly,
3424
3465
  type: "reset",
3425
- onClick: w[1] || (w[1] = (E) => !!e.actionTeleportTarget && k())
3466
+ onClick: w[1] || (w[1] = (E) => !!e.actionTeleportTarget && x())
3426
3467
  }, {
3427
- default: A(() => [
3428
- q(O(e.cancelButtonText ?? _(a)("baseForm.actions.cancel")), 1)
3468
+ default: _(() => [
3469
+ q(O(e.cancelButtonText ?? A(a)("baseForm.actions.cancel")), 1)
3429
3470
  ]),
3430
3471
  _: 1
3431
3472
  }, 8, ["data-testid", "disabled"]),
3432
- R(b, {
3473
+ K(b, {
3433
3474
  appearance: "primary",
3434
3475
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
3435
3476
  disabled: m.value,
3436
3477
  type: "submit",
3437
- onClick: w[2] || (w[2] = (E) => !!e.actionTeleportTarget && L())
3478
+ onClick: w[2] || (w[2] = (E) => !!e.actionTeleportTarget && B())
3438
3479
  }, {
3439
- default: A(() => [
3440
- q(O(e.saveButtonText ?? _(a)("baseForm.actions.save")), 1)
3480
+ default: _(() => [
3481
+ q(O(e.saveButtonText ?? A(a)("baseForm.actions.save")), 1)
3441
3482
  ]),
3442
3483
  _: 1
3443
3484
  }, 8, ["data-testid", "disabled"])
3444
3485
  ], !0)
3445
3486
  ], 2)
3446
3487
  ], 8, ["disabled", "to"]))
3447
- ], 40, rl)),
3448
- R(J, {
3488
+ ], 40, ul)),
3489
+ K(J, {
3449
3490
  "close-on-blur": !1,
3450
3491
  "data-testid": "form-view-configuration-slideout",
3451
3492
  "has-overlay": !1,
3452
3493
  "offset-top": e.slidoutTopOffset,
3453
- title: _(a)("baseForm.configuration.title"),
3454
- visible: g.value,
3455
- onClose: w[4] || (w[4] = (E) => x())
3494
+ title: A(a)("baseForm.configuration.title"),
3495
+ visible: y.value,
3496
+ onClose: w[4] || (w[4] = (E) => k())
3456
3497
  }, {
3457
- default: A(() => [
3458
- B("div", null, O(_(a)("baseForm.configuration.message")), 1),
3459
- R(V, {
3498
+ default: _(() => [
3499
+ L("div", null, O(A(a)("baseForm.configuration.message")), 1),
3500
+ K(V, {
3460
3501
  "data-testid": "form-view-configuration-slideout-tabs",
3461
- tabs: D.value,
3502
+ tabs: j.value,
3462
3503
  onChange: w[3] || (w[3] = (E) => i("codeBlockTabChange", E.replace("#", "")))
3463
3504
  }, {
3464
- json: A(() => [
3465
- R(nn, {
3505
+ json: _(() => [
3506
+ K(rn, {
3466
3507
  config: e.config,
3467
3508
  "entity-record": r.formFields,
3468
- "fetcher-url": y.value,
3509
+ "fetcher-url": h.value,
3469
3510
  "request-method": r.editId ? "put" : "post"
3470
3511
  }, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
3471
3512
  ]),
3472
- yaml: A(() => [
3473
- R(Wn, {
3513
+ yaml: _(() => [
3514
+ K(Jn, {
3474
3515
  "entity-record": r.formFields
3475
3516
  }, null, 8, ["entity-record"])
3476
3517
  ]),
3477
- terraform: A(() => [
3478
- R(Jn, {
3518
+ terraform: _(() => [
3519
+ K(Gn, {
3479
3520
  "entity-record": r.formFields,
3480
3521
  "entity-type": e.entityType,
3481
3522
  "sub-entity-type": e.subEntityType
3482
3523
  }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
3483
3524
  ]),
3484
- deck: A(() => [
3485
- R(il, {
3525
+ deck: _(() => [
3526
+ K(cl, {
3527
+ app: e.config.app,
3486
3528
  "control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
3487
3529
  "entity-record": r.formFields,
3488
3530
  "entity-type": e.entityType,
3489
- "geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0
3490
- }, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-api-server-url"])
3531
+ "geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0,
3532
+ "kong-admin-api-url": e.config.app === "kongManager" ? e.config.kongAdminApiUrl : void 0,
3533
+ workspace: e.config.app === "kongManager" ? e.config.workspace : void 0
3534
+ }, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "workspace"])
3491
3535
  ]),
3492
3536
  _: 1
3493
3537
  }, 8, ["tabs"])
@@ -3499,7 +3543,7 @@ ${l.value}
3499
3543
  });
3500
3544
  };
3501
3545
  }
3502
- }), _s = /* @__PURE__ */ le(al, [["__scopeId", "data-v-23f330b9"]]), ol = ["data-truncate"], ll = /* @__PURE__ */ z({
3546
+ }), Os = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-f38ef70b"]]), fl = ["data-truncate"], pl = /* @__PURE__ */ z({
3503
3547
  __name: "EntityBaseTableCell",
3504
3548
  props: {
3505
3549
  keyName: {
@@ -3517,78 +3561,78 @@ ${l.value}
3517
3561
  },
3518
3562
  setup(e) {
3519
3563
  const t = e, n = $(() => {
3520
- var x;
3521
- return ((x = t.rowEl) == null ? void 0 : x.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3564
+ var k;
3565
+ return ((k = t.rowEl) == null ? void 0 : k.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3522
3566
  }), i = $(() => {
3523
- var x;
3524
- return ((x = n.value) == null ? void 0 : x.querySelector('[data-truncate="true"]')) || null;
3567
+ var k;
3568
+ return ((k = n.value) == null ? void 0 : k.querySelector('[data-truncate="true"]')) || null;
3525
3569
  }), r = $(() => {
3526
- var C, k;
3527
- const x = (C = t.rowEl) == null ? void 0 : C.querySelectorAll("td");
3528
- return x ? ((k = x[0]) == null ? void 0 : k.getAttribute("data-testid")) === t.keyName : !0;
3570
+ var C, x;
3571
+ const k = (C = t.rowEl) == null ? void 0 : C.querySelectorAll("td");
3572
+ return k ? ((x = k[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
3529
3573
  }), o = $(() => r.value || t.tooltip);
3530
3574
  let a;
3531
3575
  const l = () => {
3532
3576
  a && (a.disconnect(), a = void 0);
3533
3577
  }, s = () => {
3534
- var C, k, L;
3535
- let x = ((C = n.value) == null ? void 0 : C.clientWidth) || 0;
3578
+ var C, x, B;
3579
+ let k = ((C = n.value) == null ? void 0 : C.clientWidth) || 0;
3536
3580
  if (n.value && "getComputedStyle" in window) {
3537
- const D = window.getComputedStyle(n.value);
3538
- x -= (parseFloat(D.paddingLeft) || 0) + (parseFloat(D.paddingRight) || 0);
3581
+ const j = window.getComputedStyle(n.value);
3582
+ k -= (parseFloat(j.paddingLeft) || 0) + (parseFloat(j.paddingRight) || 0);
3539
3583
  }
3540
- d.value = ((k = i.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, u.value = x, p.value = ((L = c.value) == null ? void 0 : L.innerText) || "";
3541
- }, c = N({}), d = N(0), u = N(0), p = N(""), m = $(() => [i.value, n.value]), g = be(
3584
+ d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = k, p.value = ((B = c.value) == null ? void 0 : B.innerText) || "";
3585
+ }, c = M({}), d = M(0), u = M(0), p = M(""), m = $(() => [i.value, n.value]), y = be(
3542
3586
  m,
3543
- (x) => {
3587
+ (k) => {
3544
3588
  if (o.value && (l(), "ResizeObserver" in window && window)) {
3545
3589
  a = new ResizeObserver((C) => {
3546
3590
  window.requestAnimationFrame(() => {
3547
3591
  !Array.isArray(C) || !C.length || s();
3548
3592
  });
3549
3593
  });
3550
- for (const C of x)
3594
+ for (const C of k)
3551
3595
  C && a.observe(C);
3552
3596
  }
3553
3597
  },
3554
3598
  { immediate: !0, flush: "post", deep: !0 }
3555
- ), y = $(() => o.value ? d.value > u.value : !1);
3556
- return nt(() => {
3599
+ ), h = $(() => o.value ? d.value > u.value : !1);
3600
+ return it(() => {
3557
3601
  s();
3558
- }), Xn(() => {
3559
- g();
3560
- }), (x, C) => {
3561
- const k = P("KTooltip");
3562
- return h(), T("span", {
3602
+ }), ei(() => {
3603
+ y();
3604
+ }), (k, C) => {
3605
+ const x = D("KTooltip");
3606
+ return g(), T("span", {
3563
3607
  ref_key: "contentRef",
3564
3608
  ref: c,
3565
3609
  class: "content-wrapper"
3566
3610
  }, [
3567
- o.value ? (h(), T("span", {
3611
+ o.value ? (g(), T("span", {
3568
3612
  key: 0,
3569
3613
  "data-truncate": o.value || void 0
3570
3614
  }, [
3571
- R(k, {
3615
+ K(x, {
3572
3616
  "max-width": "300",
3573
3617
  placement: "bottom-start",
3574
- text: y.value ? p.value : ""
3618
+ text: h.value ? p.value : ""
3575
3619
  }, {
3576
- default: A(() => [
3577
- U(x.$slots, "default", {}, void 0, !0)
3620
+ default: _(() => [
3621
+ U(k.$slots, "default", {}, void 0, !0)
3578
3622
  ]),
3579
3623
  _: 3
3580
3624
  }, 8, ["text"])
3581
- ], 8, ol)) : U(x.$slots, "default", { key: 1 }, void 0, !0)
3625
+ ], 8, fl)) : U(k.$slots, "default", { key: 1 }, void 0, !0)
3582
3626
  ], 512);
3583
3627
  };
3584
3628
  }
3585
- }), sl = /* @__PURE__ */ le(ll, [["__scopeId", "data-v-a3a65cac"]]), cl = { class: "toolbar-container" }, ul = {
3629
+ }), ml = /* @__PURE__ */ le(pl, [["__scopeId", "data-v-a3a65cac"]]), gl = { class: "toolbar-container" }, hl = {
3586
3630
  key: 0,
3587
3631
  class: "toolbar-button-container"
3588
- }, dl = {
3632
+ }, yl = {
3589
3633
  key: 0,
3590
3634
  class: "hidden"
3591
- }, fl = /* @__PURE__ */ z({
3635
+ }, vl = /* @__PURE__ */ z({
3592
3636
  __name: "EntityBaseTable",
3593
3637
  props: {
3594
3638
  // table header configuration
@@ -3762,7 +3806,7 @@ ${l.value}
3762
3806
  "data-rowid": f.id,
3763
3807
  "data-testid": f.name,
3764
3808
  ...n.rowAttributes(f)
3765
- }), c = N({}), d = (f) => {
3809
+ }), c = M({}), d = (f) => {
3766
3810
  var v;
3767
3811
  return (v = c.value) == null ? void 0 : v.$el.querySelector(`[data-rowid="${f.id}"]`);
3768
3812
  }, u = (f) => {
@@ -3776,17 +3820,17 @@ ${l.value}
3776
3820
  textOverflow: "ellipsis"
3777
3821
  }), v;
3778
3822
  }, p = (f) => {
3779
- k(f), i("state", f);
3823
+ x(f), i("state", f);
3780
3824
  }, m = () => {
3781
- i("empty-state-cta-clicked"), g();
3782
- }, g = () => {
3825
+ i("empty-state-cta-clicked"), y();
3826
+ }, y = () => {
3783
3827
  i("clear-search-input");
3784
- }, y = $(() => n.disableRowClick ? void 0 : (f, v) => {
3828
+ }, h = $(() => n.disableRowClick ? void 0 : (f, v) => {
3785
3829
  i("click:row", v);
3786
- }), x = (f) => {
3830
+ }), k = (f) => {
3787
3831
  i("sort", f);
3788
- }, { hideTableToolbar: C, handleStateChange: k } = W.useTableState(() => n.query), { setTablePreferences: L, getTablePreferences: D } = xi(), X = N(D(a.value, n.defaultTablePreferences)), S = $(() => {
3789
- const f = D(a.value);
3832
+ }, { hideTableToolbar: C, handleStateChange: x } = W.useTableState(() => n.query), { setTablePreferences: B, getTablePreferences: j } = _i(), X = M(j(a.value, n.defaultTablePreferences)), S = $(() => {
3833
+ const f = j(a.value);
3790
3834
  return {
3791
3835
  ...n.initialFetcherParams,
3792
3836
  ...f
@@ -3794,31 +3838,31 @@ ${l.value}
3794
3838
  }), w = (f) => {
3795
3839
  X.value = f, l.value.forEach((v) => {
3796
3840
  !("hidable" in v) || !X.value.columnVisibility || v.hidable === !1 && (X.value.columnVisibility[v.key] = !0);
3797
- }), a.value && L(a.value, f);
3841
+ }), a.value && B(a.value, f);
3798
3842
  }, F = $(() => ({
3799
3843
  disablePageJump: n.disablePaginationPageJump,
3800
3844
  offset: n.paginationType === "offset",
3801
3845
  ...n.paginationAttributes
3802
3846
  }));
3803
3847
  return (f, v) => {
3804
- const b = P("KTableData"), V = P("KCard");
3805
- return h(), M(V, {
3848
+ const b = D("KTableData"), V = D("KCard");
3849
+ return g(), N(V, {
3806
3850
  class: "kong-ui-entity-base-table",
3807
3851
  title: e.title,
3808
3852
  "title-tag": e.titleTag
3809
3853
  }, {
3810
- default: A(() => [
3811
- R(b, {
3854
+ default: _(() => [
3855
+ K(b, {
3812
3856
  ref_key: "tableRefs",
3813
3857
  ref: c,
3814
3858
  "cache-identifier": a.value,
3815
3859
  "cell-attrs": u,
3816
3860
  "client-sort": e.enableClientSort,
3817
- "empty-state-action-message": e.query ? _(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3861
+ "empty-state-action-message": e.query ? A(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3818
3862
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
3819
3863
  "empty-state-icon-variant": e.query ? "search" : "kong",
3820
- "empty-state-message": e.query ? _(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3821
- "empty-state-title": e.query ? _(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3864
+ "empty-state-message": e.query ? A(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3865
+ "empty-state-title": e.query ? A(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3822
3866
  error: o.value.hasError,
3823
3867
  "error-state-message": o.value.message,
3824
3868
  "error-state-title": o.value.title,
@@ -3827,7 +3871,7 @@ ${l.value}
3827
3871
  headers: l.value,
3828
3872
  "hide-pagination": e.hidePagination,
3829
3873
  "hide-pagination-when-optional": e.hidePaginationWhenOptional,
3830
- "hide-toolbar": e.hideToolbar ?? _(C),
3874
+ "hide-toolbar": e.hideToolbar ?? A(C),
3831
3875
  "initial-fetcher-params": S.value,
3832
3876
  loading: e.isLoading,
3833
3877
  "pagination-attributes": F.value,
@@ -3839,42 +3883,42 @@ ${l.value}
3839
3883
  sortable: !e.disableSorting,
3840
3884
  "table-preferences": X.value,
3841
3885
  onEmptyStateActionClick: m,
3842
- "onRow:click": y.value,
3843
- onSort: v[0] || (v[0] = (J) => x(J)),
3886
+ "onRow:click": h.value,
3887
+ onSort: v[0] || (v[0] = (J) => k(J)),
3844
3888
  onState: p,
3845
3889
  "onUpdate:tablePreferences": w
3846
3890
  }, $e({
3847
- toolbar: A(() => [
3848
- B("div", cl, [
3891
+ toolbar: _(() => [
3892
+ L("div", gl, [
3849
3893
  U(f.$slots, "toolbar-filter", {}, void 0, !0),
3850
- f.$slots["toolbar-button"] ? (h(), T("div", ul, [
3894
+ f.$slots["toolbar-button"] ? (g(), T("div", hl, [
3851
3895
  U(f.$slots, "toolbar-button", {}, void 0, !0)
3852
- ])) : j("", !0)
3896
+ ])) : P("", !0)
3853
3897
  ])
3854
3898
  ]),
3855
- "action-items": A(({ row: J }) => [
3899
+ "action-items": _(({ row: J }) => [
3856
3900
  U(f.$slots, "actions", { row: J }, void 0, !0)
3857
3901
  ]),
3858
3902
  _: 2
3859
3903
  }, [
3860
3904
  f.$slots["empty-state"] ? {
3861
3905
  name: "empty-state",
3862
- fn: A(() => [
3906
+ fn: _(() => [
3863
3907
  U(f.$slots, "empty-state", {}, void 0, !0)
3864
3908
  ]),
3865
3909
  key: "0"
3866
3910
  } : void 0,
3867
3911
  ce(e.tableHeaders, (J, E) => ({
3868
3912
  name: E,
3869
- fn: A(({ row: K, rowValue: G }) => [
3870
- R(sl, {
3913
+ fn: _(({ row: R, rowValue: G }) => [
3914
+ K(ml, {
3871
3915
  "key-name": String(E),
3872
- "row-el": d(K),
3916
+ "row-el": d(R),
3873
3917
  tooltip: J.tooltip
3874
3918
  }, {
3875
- default: A(() => [
3919
+ default: _(() => [
3876
3920
  U(f.$slots, E, {
3877
- row: K,
3921
+ row: R,
3878
3922
  rowKey: e.rowKey,
3879
3923
  rowValue: G
3880
3924
  }, () => [
@@ -3887,27 +3931,27 @@ ${l.value}
3887
3931
  })),
3888
3932
  e.query ? void 0 : {
3889
3933
  name: "empty-state-action-icon",
3890
- fn: A(() => [
3891
- R(_(Jt))
3934
+ fn: _(() => [
3935
+ K(A(Gt))
3892
3936
  ]),
3893
3937
  key: "1"
3894
3938
  }
3895
3939
  ]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
3896
- f.$slots["outside-actions"] && _(C) ? (h(), T("div", dl, [
3940
+ f.$slots["outside-actions"] && A(C) ? (g(), T("div", yl, [
3897
3941
  U(f.$slots, "outside-actions", {}, void 0, !0)
3898
- ])) : j("", !0)
3942
+ ])) : P("", !0)
3899
3943
  ]),
3900
3944
  _: 3
3901
3945
  }, 8, ["title", "title-tag"]);
3902
3946
  };
3903
3947
  }
3904
- }), ws = /* @__PURE__ */ le(fl, [["__scopeId", "data-v-44153100"]]), pl = {
3948
+ }), Bs = /* @__PURE__ */ le(vl, [["__scopeId", "data-v-44153100"]]), bl = {
3905
3949
  key: 0,
3906
3950
  class: "kong-ui-entity-delete-error"
3907
- }, ml = {
3951
+ }, kl = {
3908
3952
  key: 1,
3909
3953
  class: "description"
3910
- }, hl = /* @__PURE__ */ z({
3954
+ }, Cl = /* @__PURE__ */ z({
3911
3955
  __name: "EntityDeleteModal",
3912
3956
  props: {
3913
3957
  visible: {
@@ -3952,8 +3996,8 @@ ${l.value}
3952
3996
  r("proceed");
3953
3997
  };
3954
3998
  return (s, c) => {
3955
- const d = P("KAlert"), u = P("KPrompt");
3956
- return h(), M(u, {
3999
+ const d = D("KAlert"), u = D("KPrompt");
4000
+ return g(), N(u, {
3957
4001
  "action-button-appearance": "danger",
3958
4002
  "action-button-disabled": e.actionPending,
3959
4003
  "action-button-text": "Yes, delete",
@@ -3964,50 +4008,50 @@ ${l.value}
3964
4008
  onCancel: a,
3965
4009
  onProceed: l
3966
4010
  }, {
3967
- default: A(() => [
3968
- e.error ? (h(), T("div", pl, [
3969
- R(d, { appearance: "danger" }, {
3970
- default: A(() => [
4011
+ default: _(() => [
4012
+ e.error ? (g(), T("div", bl, [
4013
+ K(d, { appearance: "danger" }, {
4014
+ default: _(() => [
3971
4015
  q(O(e.error), 1)
3972
4016
  ]),
3973
4017
  _: 1
3974
4018
  })
3975
- ])) : j("", !0),
3976
- R(_(n), {
4019
+ ])) : P("", !0),
4020
+ K(A(n), {
3977
4021
  class: "message",
3978
4022
  keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3979
4023
  tag: "p"
3980
4024
  }, $e({
3981
- entityType: A(() => [
4025
+ entityType: _(() => [
3982
4026
  q(O(i.entityType), 1)
3983
4027
  ]),
3984
4028
  _: 2
3985
4029
  }, [
3986
4030
  i.entityName ? {
3987
4031
  name: "entityName",
3988
- fn: A(() => [
3989
- B("strong", null, O(i.entityName), 1)
4032
+ fn: _(() => [
4033
+ L("strong", null, O(i.entityName), 1)
3990
4034
  ]),
3991
4035
  key: "0"
3992
4036
  } : void 0
3993
4037
  ]), 1032, ["keypath"]),
3994
- i.description || s.$slots.description ? (h(), T("div", ml, [
4038
+ i.description || s.$slots.description ? (g(), T("div", kl, [
3995
4039
  U(s.$slots, "description", {}, () => [
3996
- B("p", null, O(i.description), 1)
4040
+ L("p", null, O(i.description), 1)
3997
4041
  ], !0)
3998
- ])) : j("", !0)
4042
+ ])) : P("", !0)
3999
4043
  ]),
4000
4044
  _: 3
4001
4045
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
4002
4046
  };
4003
4047
  }
4004
- }), Ss = /* @__PURE__ */ le(hl, [["__scopeId", "data-v-4361d622"]]), yl = {
4048
+ }), Ls = /* @__PURE__ */ le(Cl, [["__scopeId", "data-v-4361d622"]]), xl = {
4005
4049
  fill: "none",
4006
4050
  height: "20",
4007
4051
  viewBox: "0 0 20 20",
4008
4052
  width: "20",
4009
4053
  xmlns: "http://www.w3.org/2000/svg"
4010
- }, gl = {
4054
+ }, Al = {
4011
4055
  id: "mask0_180_20349",
4012
4056
  height: "20",
4013
4057
  maskUnits: "userSpaceOnUse",
@@ -4015,35 +4059,35 @@ ${l.value}
4015
4059
  width: "20",
4016
4060
  x: "0",
4017
4061
  y: "0"
4018
- }, vl = ["fill"], bl = { mask: "url(#mask0_180_20349)" }, xl = ["fill"], Dt = /* @__PURE__ */ z({
4062
+ }, _l = ["fill"], wl = { mask: "url(#mask0_180_20349)" }, Sl = ["fill"], Dt = /* @__PURE__ */ z({
4019
4063
  __name: "IconFilter",
4020
4064
  props: {
4021
4065
  color: {
4022
4066
  type: String,
4023
- default: `var(--kong-ui-entity-filter-color, ${nr})`
4067
+ default: `var(--kong-ui-entity-filter-color, ${or})`
4024
4068
  }
4025
4069
  },
4026
4070
  setup(e) {
4027
- return (t, n) => (h(), T("svg", yl, [
4028
- B("mask", gl, [
4029
- B("rect", {
4071
+ return (t, n) => (g(), T("svg", xl, [
4072
+ L("mask", Al, [
4073
+ L("rect", {
4030
4074
  fill: e.color,
4031
4075
  height: "20",
4032
4076
  width: "20"
4033
- }, null, 8, vl)
4077
+ }, null, 8, _l)
4034
4078
  ]),
4035
- B("g", bl, [
4036
- B("path", {
4079
+ L("g", wl, [
4080
+ L("path", {
4037
4081
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
4038
4082
  fill: e.color
4039
- }, null, 8, xl)
4083
+ }, null, 8, Sl)
4040
4084
  ])
4041
4085
  ]));
4042
4086
  }
4043
- }), Cl = {
4087
+ }), $l = {
4044
4088
  key: 1,
4045
4089
  class: "kong-ui-entity-filter"
4046
- }, kl = { class: "kong-ui-entity-filter-menu" }, Al = ["data-testid"], _l = ["onClick", "onKeydown"], wl = { class: "menu-item-indicator" }, Sl = { class: "menu-item-body" }, $l = ["for"], Tl = { class: "menu-item-buttons" }, El = { class: "filter-clear-button-container" }, Il = /* @__PURE__ */ z({
4090
+ }, Tl = { class: "kong-ui-entity-filter-menu" }, El = ["data-testid"], Il = ["onClick", "onKeydown"], Fl = { class: "menu-item-indicator" }, Ol = { class: "menu-item-body" }, Bl = ["for"], Ll = { class: "menu-item-buttons" }, Rl = { class: "filter-clear-button-container" }, Kl = /* @__PURE__ */ z({
4047
4091
  __name: "EntityFilter",
4048
4092
  props: {
4049
4093
  // filter config, either exact match or fuzzy match
@@ -4063,7 +4107,7 @@ ${l.value}
4063
4107
  },
4064
4108
  emits: ["update:modelValue"],
4065
4109
  setup(e, { emit: t }) {
4066
- const { i18n: { t: n } } = W.useI18n(), i = e, r = t, o = N(!1), a = N({}), l = N(/* @__PURE__ */ new Set()), s = $(() => {
4110
+ const { i18n: { t: n } } = W.useI18n(), i = e, r = t, o = M(!1), a = M({}), l = M(/* @__PURE__ */ new Set()), s = $(() => {
4067
4111
  const S = [];
4068
4112
  return new URLSearchParams(i.modelValue).forEach((w, F) => {
4069
4113
  w !== "" && S.push(F);
@@ -4092,23 +4136,23 @@ ${l.value}
4092
4136
  r("update:modelValue", S);
4093
4137
  }, m = () => {
4094
4138
  p("");
4095
- }, g = (S) => `filter-${S}`, y = (S) => {
4139
+ }, y = (S) => `filter-${S}`, h = (S) => {
4096
4140
  var w, F;
4097
4141
  return (((F = (w = i.config.schema) == null ? void 0 : w[S]) == null ? void 0 : F.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
4098
- }, x = (S) => {
4142
+ }, k = (S) => {
4099
4143
  var w, F;
4100
4144
  return ((F = (w = i.config.schema) == null ? void 0 : w[S]) == null ? void 0 : F.type) ?? "text";
4101
4145
  }, C = (S) => {
4102
4146
  a.value = {
4103
4147
  ...a.value,
4104
4148
  [S]: ""
4105
- }, L();
4106
- }, k = () => {
4107
- a.value = {}, L(!0);
4108
- }, L = (S = !1) => {
4149
+ }, B();
4150
+ }, x = () => {
4151
+ a.value = {}, B(!0);
4152
+ }, B = (S = !1) => {
4109
4153
  const w = Object.keys(a.value).reduce((F, f) => (a.value[f] && (F[f] = `${a.value[f]}`), F), {});
4110
4154
  S && (o.value = !1), r("update:modelValue", new URLSearchParams(w).toString());
4111
- }, D = (S) => {
4155
+ }, j = (S) => {
4112
4156
  var w, F;
4113
4157
  return !!((F = (w = i.config.schema) == null ? void 0 : w[S]) != null && F.filterFunction);
4114
4158
  }, X = (S, w) => {
@@ -4117,8 +4161,8 @@ ${l.value}
4117
4161
  return (F == null ? void 0 : F.filterFunction) === void 0 ? !0 : F.filterFunction(w);
4118
4162
  };
4119
4163
  return (S, w) => {
4120
- const F = P("KInput"), f = P("KButton"), v = P("KSelect");
4121
- return e.config.isExactMatch ? (h(), M(F, {
4164
+ const F = D("KInput"), f = D("KButton"), v = D("KSelect");
4165
+ return e.config.isExactMatch ? (g(), N(F, {
4122
4166
  key: 0,
4123
4167
  autocomplete: "off",
4124
4168
  class: "kong-ui-entity-filter-input",
@@ -4127,11 +4171,11 @@ ${l.value}
4127
4171
  placeholder: e.config.placeholder,
4128
4172
  "onUpdate:modelValue": p
4129
4173
  }, {
4130
- before: A(() => [
4131
- R(Dt)
4174
+ before: _(() => [
4175
+ K(Dt)
4132
4176
  ]),
4133
- after: A(() => [
4134
- xe(R(_(si), {
4177
+ after: _(() => [
4178
+ ke(K(A(fi), {
4135
4179
  class: "kong-ui-entity-filter-clear",
4136
4180
  role: "button",
4137
4181
  tabindex: "0",
@@ -4141,110 +4185,110 @@ ${l.value}
4141
4185
  ])
4142
4186
  ]),
4143
4187
  _: 1
4144
- }, 8, ["model-value", "placeholder"])) : (h(), T("div", Cl, [
4145
- R(f, {
4188
+ }, 8, ["model-value", "placeholder"])) : (g(), T("div", $l, [
4189
+ K(f, {
4146
4190
  appearance: "tertiary",
4147
4191
  "data-testid": "filter-button",
4148
4192
  onClick: d
4149
4193
  }, {
4150
- default: A(() => [
4151
- R(Dt),
4152
- q(" " + O(_(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4194
+ default: _(() => [
4195
+ K(Dt),
4196
+ q(" " + O(A(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4153
4197
  ]),
4154
4198
  _: 1
4155
4199
  }),
4156
- xe(B("div", {
4200
+ ke(L("div", {
4157
4201
  class: "kong-ui-entity-filter-backdrop",
4158
4202
  onClick: d
4159
4203
  }, null, 512), [
4160
4204
  [Ce, o.value]
4161
4205
  ]),
4162
- xe(B("div", kl, [
4163
- (h(!0), T(ue, null, ce(c.value, (b) => {
4206
+ ke(L("div", Tl, [
4207
+ (g(!0), T(ue, null, ce(c.value, (b) => {
4164
4208
  var V, J;
4165
- return h(), T("div", {
4209
+ return g(), T("div", {
4166
4210
  key: b.value,
4167
4211
  class: "kong-ui-entity-filter-menu-item",
4168
4212
  "data-testid": b.value
4169
4213
  }, [
4170
- B("span", {
4214
+ L("span", {
4171
4215
  class: fe(["menu-item-title", { expanded: l.value.has(b.value) }]),
4172
4216
  role: "button",
4173
4217
  tabindex: "0",
4174
4218
  onClick: (E) => u(b.value),
4175
- onKeydown: ei((E) => u(b.value), ["enter"])
4219
+ onKeydown: ti((E) => u(b.value), ["enter"])
4176
4220
  }, [
4177
4221
  q(O(b.label) + " ", 1),
4178
- xe(B("span", wl, null, 512), [
4222
+ ke(L("span", Fl, null, 512), [
4179
4223
  [Ce, s.value.includes(b.value)]
4180
4224
  ]),
4181
- R(_(ci), {
4225
+ K(A(pi), {
4182
4226
  class: fe(["menu-item-expand-icon", { expanded: l.value.has(b.value) }]),
4183
- color: _(rr)
4227
+ color: A(sr)
4184
4228
  }, null, 8, ["class", "color"])
4185
- ], 42, _l),
4186
- xe(B("div", Sl, [
4187
- B("label", {
4229
+ ], 42, Il),
4230
+ ke(L("div", Ol, [
4231
+ L("label", {
4188
4232
  class: "menu-item-label",
4189
- for: g(b.value)
4190
- }, O(_(n)("filter.fieldLabel")), 9, $l),
4191
- ((J = (V = e.config.schema) == null ? void 0 : V[b.value]) == null ? void 0 : J.type) === "select" ? (h(), M(v, {
4233
+ for: y(b.value)
4234
+ }, O(A(n)("filter.fieldLabel")), 9, Bl),
4235
+ ((J = (V = e.config.schema) == null ? void 0 : V[b.value]) == null ? void 0 : J.type) === "select" ? (g(), N(v, {
4192
4236
  key: 0,
4193
- id: g(b.value),
4237
+ id: y(b.value),
4194
4238
  modelValue: a.value[b.value],
4195
4239
  "onUpdate:modelValue": (E) => a.value[b.value] = E,
4196
- "enable-filtering": D(b.value),
4240
+ "enable-filtering": j(b.value),
4197
4241
  "filter-function": (E) => X(b.value, E),
4198
- items: y(b.value),
4199
- placeholder: _(n)("filter.selectPlaceholder")
4200
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (h(), M(F, {
4242
+ items: h(b.value),
4243
+ placeholder: A(n)("filter.selectPlaceholder")
4244
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (g(), N(F, {
4201
4245
  key: 1,
4202
- id: g(b.value),
4246
+ id: y(b.value),
4203
4247
  modelValue: a.value[b.value],
4204
4248
  "onUpdate:modelValue": (E) => a.value[b.value] = E,
4205
4249
  autocomplete: "off",
4206
- placeholder: _(n)("filter.inputPlaceholder"),
4207
- type: x(b.value)
4250
+ placeholder: A(n)("filter.inputPlaceholder"),
4251
+ type: k(b.value)
4208
4252
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4209
4253
  ], 512), [
4210
4254
  [Ce, l.value.has(b.value)]
4211
4255
  ]),
4212
- xe(B("div", Tl, [
4213
- R(f, {
4256
+ ke(L("div", Ll, [
4257
+ K(f, {
4214
4258
  appearance: "tertiary",
4215
4259
  "data-testid": "apply-filter",
4216
4260
  size: "small",
4217
- onClick: w[0] || (w[0] = (E) => L(!0))
4261
+ onClick: w[0] || (w[0] = (E) => B(!0))
4218
4262
  }, {
4219
- default: A(() => [
4220
- q(O(_(n)("filter.applyButtonText")), 1)
4263
+ default: _(() => [
4264
+ q(O(A(n)("filter.applyButtonText")), 1)
4221
4265
  ]),
4222
4266
  _: 1
4223
4267
  }),
4224
- R(f, {
4268
+ K(f, {
4225
4269
  appearance: "tertiary",
4226
4270
  "data-testid": "clear-filter",
4227
4271
  size: "small",
4228
4272
  onClick: (E) => C(b.value)
4229
4273
  }, {
4230
- default: A(() => [
4231
- q(O(_(n)("filter.clearButtonText")), 1)
4274
+ default: _(() => [
4275
+ q(O(A(n)("filter.clearButtonText")), 1)
4232
4276
  ]),
4233
4277
  _: 1
4234
4278
  }, 8, ["onClick"])
4235
4279
  ], 512), [
4236
4280
  [Ce, l.value.has(b.value)]
4237
4281
  ])
4238
- ], 8, Al);
4282
+ ], 8, El);
4239
4283
  }), 128)),
4240
- B("div", El, [
4241
- R(f, {
4284
+ L("div", Rl, [
4285
+ K(f, {
4242
4286
  appearance: "tertiary",
4243
4287
  size: "small",
4244
- onClick: k
4288
+ onClick: x
4245
4289
  }, {
4246
- default: A(() => [
4247
- q(O(_(n)("filter.clearAllButtonText")), 1)
4290
+ default: _(() => [
4291
+ q(O(A(n)("filter.clearAllButtonText")), 1)
4248
4292
  ]),
4249
4293
  _: 1
4250
4294
  })
@@ -4255,7 +4299,7 @@ ${l.value}
4255
4299
  ]));
4256
4300
  };
4257
4301
  }
4258
- }), $s = /* @__PURE__ */ le(Il, [["__scopeId", "data-v-084f7978"]]), Ts = /* @__PURE__ */ z({
4302
+ }), Rs = /* @__PURE__ */ le(Kl, [["__scopeId", "data-v-084f7978"]]), Ks = /* @__PURE__ */ z({
4259
4303
  __name: "EntityToggleModal",
4260
4304
  props: {
4261
4305
  visible: {
@@ -4287,7 +4331,7 @@ ${l.value}
4287
4331
  },
4288
4332
  emits: ["cancel", "proceed"],
4289
4333
  setup(e, { emit: t }) {
4290
- const { i18n: { t: n }, i18nT: i } = W.useI18n(), r = e, o = t, a = N(!1), l = $(
4334
+ const { i18n: { t: n }, i18nT: i } = W.useI18n(), r = e, o = t, a = M(!1), l = $(
4291
4335
  () => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
4292
4336
  ), s = $(
4293
4337
  () => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
@@ -4304,9 +4348,9 @@ ${l.value}
4304
4348
  }
4305
4349
  };
4306
4350
  return (u, p) => {
4307
- const m = P("KPrompt");
4308
- return h(), M(Yt, { to: "body" }, [
4309
- R(m, {
4351
+ const m = D("KPrompt");
4352
+ return g(), N(Wt, { to: "body" }, [
4353
+ K(m, {
4310
4354
  "action-button-disabled": a.value,
4311
4355
  "action-button-text": s.value,
4312
4356
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
@@ -4315,16 +4359,16 @@ ${l.value}
4315
4359
  onCancel: c,
4316
4360
  onProceed: d
4317
4361
  }, {
4318
- default: A(() => [
4319
- R(_(i), {
4362
+ default: _(() => [
4363
+ K(A(i), {
4320
4364
  keypath: `toggleModal.${r.action}.message`,
4321
4365
  scope: "global"
4322
4366
  }, {
4323
- entityType: A(() => [
4367
+ entityType: _(() => [
4324
4368
  q(O(e.entityType), 1)
4325
4369
  ]),
4326
- entityName: A(() => [
4327
- B("strong", null, O(e.entityName), 1)
4370
+ entityName: _(() => [
4371
+ L("strong", null, O(e.entityName), 1)
4328
4372
  ]),
4329
4373
  _: 1
4330
4374
  }, 8, ["keypath"])
@@ -4334,7 +4378,7 @@ ${l.value}
4334
4378
  ]);
4335
4379
  };
4336
4380
  }
4337
- }), Es = /* @__PURE__ */ z({
4381
+ }), Ns = /* @__PURE__ */ z({
4338
4382
  __name: "PermissionsWrapper",
4339
4383
  props: {
4340
4384
  /**
@@ -4356,48 +4400,48 @@ ${l.value}
4356
4400
  }
4357
4401
  },
4358
4402
  setup(e) {
4359
- const t = e, n = N(void 0), i = $(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4403
+ const t = e, n = M(void 0), i = $(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4360
4404
  return be(() => t.authFunction, async () => {
4361
4405
  n.value = await t.authFunction();
4362
4406
  }, { immediate: !0 }), (r, o) => i.value ? U(r.$slots, "default", {
4363
4407
  key: 0,
4364
4408
  isAllowed: n.value
4365
- }) : j("", !0);
4409
+ }) : P("", !0);
4366
4410
  }
4367
4411
  }), ne = [];
4368
4412
  for (let e = 0; e < 256; ++e)
4369
4413
  ne.push((e + 256).toString(16).slice(1));
4370
- function Fl(e, t = 0) {
4414
+ function Nl(e, t = 0) {
4371
4415
  return (ne[e[t + 0]] + ne[e[t + 1]] + ne[e[t + 2]] + ne[e[t + 3]] + "-" + ne[e[t + 4]] + ne[e[t + 5]] + "-" + ne[e[t + 6]] + ne[e[t + 7]] + "-" + ne[e[t + 8]] + ne[e[t + 9]] + "-" + ne[e[t + 10]] + ne[e[t + 11]] + ne[e[t + 12]] + ne[e[t + 13]] + ne[e[t + 14]] + ne[e[t + 15]]).toLowerCase();
4372
4416
  }
4373
- let Ge;
4374
- const Ol = new Uint8Array(16);
4375
- function Ll() {
4376
- if (!Ge) {
4417
+ let ze;
4418
+ const Ml = new Uint8Array(16);
4419
+ function Pl() {
4420
+ if (!ze) {
4377
4421
  if (typeof crypto > "u" || !crypto.getRandomValues)
4378
4422
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4379
- Ge = crypto.getRandomValues.bind(crypto);
4423
+ ze = crypto.getRandomValues.bind(crypto);
4380
4424
  }
4381
- return Ge(Ol);
4425
+ return ze(Ml);
4382
4426
  }
4383
- const Bl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pt = { randomUUID: Bl };
4384
- function Kl(e, t, n) {
4427
+ const jl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ut = { randomUUID: jl };
4428
+ function Dl(e, t, n) {
4385
4429
  var r;
4386
- if (Pt.randomUUID && !e)
4387
- return Pt.randomUUID();
4430
+ if (Ut.randomUUID && !e)
4431
+ return Ut.randomUUID();
4388
4432
  e = e || {};
4389
- const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Ll();
4433
+ const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Pl();
4390
4434
  if (i.length < 16)
4391
4435
  throw new Error("Random bytes length must be >= 16");
4392
- return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Fl(i);
4436
+ return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Nl(i);
4393
4437
  }
4394
- const Rl = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Ml = {
4438
+ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4395
4439
  key: 1,
4396
4440
  class: "form-section-description"
4397
- }, jl = {
4441
+ }, Vl = {
4398
4442
  key: 2,
4399
4443
  class: "form-section-footer"
4400
- }, Dl = { class: "form-section-content" }, Pl = /* @__PURE__ */ z({
4444
+ }, Yl = { class: "form-section-content" }, Wl = /* @__PURE__ */ z({
4401
4445
  __name: "EntityFormSection",
4402
4446
  props: {
4403
4447
  title: {
@@ -4426,52 +4470,52 @@ const Rl = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Ml = {
4426
4470
  }
4427
4471
  },
4428
4472
  setup(e) {
4429
- const t = Pe(), n = Kl();
4430
- return (i, r) => (h(), T("div", {
4431
- "aria-labelledby": e.title ? _(n) : void 0,
4473
+ const t = Ue(), n = Dl();
4474
+ return (i, r) => (g(), T("div", {
4475
+ "aria-labelledby": e.title ? A(n) : void 0,
4432
4476
  class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4433
4477
  role: "group"
4434
4478
  }, [
4435
- B("div", Nl, [
4436
- e.hideInfoHeader ? j("", !0) : (h(), T("div", {
4479
+ L("div", ql, [
4480
+ e.hideInfoHeader ? P("", !0) : (g(), T("div", {
4437
4481
  key: 0,
4438
4482
  class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
4439
4483
  }, [
4440
- e.title ? (h(), M(De(e.titleTag), {
4484
+ e.title ? (g(), N(De(e.titleTag), {
4441
4485
  key: 0,
4442
- id: _(n),
4486
+ id: A(n),
4443
4487
  class: "form-section-title"
4444
4488
  }, {
4445
- default: A(() => [
4489
+ default: _(() => [
4446
4490
  q(O(e.title), 1)
4447
4491
  ]),
4448
4492
  _: 1
4449
- }, 8, ["id"])) : j("", !0),
4450
- e.description || _(t).description ? (h(), T("div", Ml, [
4493
+ }, 8, ["id"])) : P("", !0),
4494
+ e.description || A(t).description ? (g(), T("div", Hl, [
4451
4495
  U(i.$slots, "description", {}, () => [
4452
- B("p", null, O(e.description), 1)
4496
+ L("p", null, O(e.description), 1)
4453
4497
  ], !0)
4454
- ])) : j("", !0),
4455
- _(t).footer ? (h(), T("div", jl, [
4498
+ ])) : P("", !0),
4499
+ A(t).footer ? (g(), T("div", Vl, [
4456
4500
  U(i.$slots, "footer", {}, void 0, !0)
4457
- ])) : j("", !0)
4501
+ ])) : P("", !0)
4458
4502
  ], 2)),
4459
- B("div", Dl, [
4503
+ L("div", Yl, [
4460
4504
  U(i.$slots, "default", {}, void 0, !0)
4461
4505
  ])
4462
4506
  ])
4463
- ], 10, Rl));
4507
+ ], 10, Ul));
4464
4508
  }
4465
- }), Is = /* @__PURE__ */ le(Pl, [["__scopeId", "data-v-b1f74200"]]), Ul = { class: "ff-form-section" }, ql = { class: "header" }, Hl = {
4509
+ }), Ms = /* @__PURE__ */ le(Wl, [["__scopeId", "data-v-b1f74200"]]), Jl = { class: "ff-form-section" }, Gl = { class: "header" }, zl = {
4466
4510
  key: 0,
4467
4511
  class: "step"
4468
- }, Vl = { class: "header-content" }, Yl = { class: "header-title" }, Wl = {
4512
+ }, Ql = { class: "header-content" }, Zl = { class: "header-title" }, Xl = {
4469
4513
  key: 0,
4470
4514
  class: "header-description"
4471
- }, Jl = {
4515
+ }, es = {
4472
4516
  key: 1,
4473
4517
  class: "header-extra"
4474
- }, Gl = { class: "content" }, zl = /* @__PURE__ */ z({
4518
+ }, ts = { class: "content" }, ns = /* @__PURE__ */ z({
4475
4519
  __name: "EntityFormBlock",
4476
4520
  props: {
4477
4521
  step: {},
@@ -4479,38 +4523,38 @@ const Rl = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Ml = {
4479
4523
  description: { default: "" }
4480
4524
  },
4481
4525
  setup(e) {
4482
- const t = Pe();
4483
- return (n, i) => (h(), T("div", Ul, [
4484
- B("header", ql, [
4485
- e.step != null ? (h(), T("div", Hl, O(e.step), 1)) : j("", !0),
4486
- B("div", Vl, [
4487
- B("h2", Yl, [
4526
+ const t = Ue();
4527
+ return (n, i) => (g(), T("div", Jl, [
4528
+ L("header", Gl, [
4529
+ e.step != null ? (g(), T("div", zl, O(e.step), 1)) : P("", !0),
4530
+ L("div", Ql, [
4531
+ L("h2", Zl, [
4488
4532
  U(n.$slots, "title", {}, () => [
4489
4533
  q(O(e.title), 1)
4490
4534
  ], !0)
4491
4535
  ]),
4492
- e.description || t.description ? (h(), T("div", Wl, [
4536
+ e.description || t.description ? (g(), T("div", Xl, [
4493
4537
  U(n.$slots, "description", {}, () => [
4494
4538
  q(O(e.description), 1)
4495
4539
  ], !0)
4496
- ])) : j("", !0)
4540
+ ])) : P("", !0)
4497
4541
  ]),
4498
- t.extra ? (h(), T("div", Jl, [
4542
+ t.extra ? (g(), T("div", es, [
4499
4543
  U(n.$slots, "extra", {}, void 0, !0)
4500
- ])) : j("", !0)
4544
+ ])) : P("", !0)
4501
4545
  ]),
4502
- B("div", Gl, [
4546
+ L("div", ts, [
4503
4547
  U(n.$slots, "default", {}, void 0, !0)
4504
4548
  ])
4505
4549
  ]));
4506
4550
  }
4507
- }), Fs = /* @__PURE__ */ le(zl, [["__scopeId", "data-v-cb6d2e95"]]), Ql = {
4551
+ }), Ps = /* @__PURE__ */ le(ns, [["__scopeId", "data-v-cb6d2e95"]]), is = {
4508
4552
  class: "kong-ui-public-entity-link",
4509
4553
  "data-testid": "entity-link-parent"
4510
- }, Zl = {
4554
+ }, rs = {
4511
4555
  key: 0,
4512
4556
  class: "deleted-entity"
4513
- }, Xl = { key: 1 }, es = ["onClick"], ts = /* @__PURE__ */ z({
4557
+ }, as = { key: 1 }, os = ["onClick"], ls = /* @__PURE__ */ z({
4514
4558
  __name: "EntityLink",
4515
4559
  props: {
4516
4560
  entityLinkData: {
@@ -4534,7 +4578,7 @@ const Rl = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Ml = {
4534
4578
  }
4535
4579
  },
4536
4580
  setup(e) {
4537
- const t = e, n = N(), { isTruncated: i } = W.useTruncationDetector(n), { i18n: { t: r } } = W.useI18n(), o = r("global.actions.copyId"), a = N(o), l = $(() => t.entityLinkData.deleted ?? !1), s = $(() => {
4581
+ const t = e, n = M(), { isTruncated: i } = W.useTruncationDetector(n), { i18n: { t: r } } = W.useI18n(), o = r("global.actions.copyId"), a = M(o), l = $(() => t.entityLinkData.deleted ?? !1), s = $(() => {
4538
4582
  var u;
4539
4583
  return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4540
4584
  }), c = $(() => {
@@ -4546,21 +4590,21 @@ const Rl = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Ml = {
4546
4590
  }, 1800));
4547
4591
  };
4548
4592
  return (u, p) => {
4549
- const m = P("KTooltip"), g = P("KExternalLink"), y = P("KClipboardProvider");
4550
- return h(), T("div", Ql, [
4551
- l.value ? (h(), T("div", Zl, O(c.value), 1)) : s.value ? s.value ? (h(), M(g, {
4593
+ const m = D("KTooltip"), y = D("KExternalLink"), h = D("KClipboardProvider");
4594
+ return g(), T("div", is, [
4595
+ l.value ? (g(), T("div", rs, O(c.value), 1)) : s.value ? s.value ? (g(), N(y, {
4552
4596
  key: 2,
4553
4597
  class: "entity-link",
4554
4598
  "hide-icon": !e.newWindow,
4555
4599
  href: e.externalLink,
4556
4600
  target: e.newWindow ? "_blank" : "_self"
4557
4601
  }, {
4558
- default: A(() => [
4559
- R(m, {
4560
- text: _(i) && e.entityLinkData.label || ""
4602
+ default: _(() => [
4603
+ K(m, {
4604
+ text: A(i) && e.entityLinkData.label || ""
4561
4605
  }, {
4562
- default: A(() => [
4563
- B("span", {
4606
+ default: _(() => [
4607
+ L("span", {
4564
4608
  ref_key: "textContent",
4565
4609
  ref: n,
4566
4610
  class: "entity-link-label"
@@ -4570,71 +4614,71 @@ const Rl = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Ml = {
4570
4614
  }, 8, ["text"])
4571
4615
  ]),
4572
4616
  _: 1
4573
- }, 8, ["hide-icon", "href", "target"])) : j("", !0) : (h(), T("div", Xl, O(" – "))),
4574
- s.value && e.allowCopy ? (h(), M(m, {
4617
+ }, 8, ["hide-icon", "href", "target"])) : P("", !0) : (g(), T("div", as, O(" – "))),
4618
+ s.value && e.allowCopy ? (g(), N(m, {
4575
4619
  key: a.value,
4576
4620
  class: "copy-uuid-tooltip",
4577
4621
  "max-width": "160",
4578
4622
  placement: "bottom-end",
4579
4623
  text: a.value
4580
4624
  }, {
4581
- default: A(() => [
4582
- R(y, null, {
4583
- default: A(({ copyToClipboard: x }) => [
4584
- B("span", {
4625
+ default: _(() => [
4626
+ K(h, null, {
4627
+ default: _(({ copyToClipboard: k }) => [
4628
+ L("span", {
4585
4629
  class: "entity-link-copy-id",
4586
- onClick: Be((C) => d(x), ["stop"])
4630
+ onClick: Re((C) => d(k), ["stop"])
4587
4631
  }, [
4588
- R(_(ui), {
4632
+ K(A(mi), {
4589
4633
  class: "copy-icon",
4590
- color: _(ar),
4634
+ color: A(cr),
4591
4635
  "data-testid": "copy-id",
4592
- size: _(lr)
4636
+ size: A(dr)
4593
4637
  }, null, 8, ["color", "size"])
4594
- ], 8, es)
4638
+ ], 8, os)
4595
4639
  ]),
4596
4640
  _: 1
4597
4641
  })
4598
4642
  ]),
4599
4643
  _: 1
4600
- }, 8, ["text"])) : j("", !0)
4644
+ }, 8, ["text"])) : P("", !0)
4601
4645
  ]);
4602
4646
  };
4603
4647
  }
4604
- }), Os = /* @__PURE__ */ le(ts, [["__scopeId", "data-v-96efdfa5"]]), ns = { class: "kong-ui-public-entity-empty-state" }, is = { class: "entity-empty-state-content" }, rs = {
4648
+ }), js = /* @__PURE__ */ le(ls, [["__scopeId", "data-v-96efdfa5"]]), ss = { class: "kong-ui-public-entity-empty-state" }, cs = { class: "entity-empty-state-content" }, us = {
4605
4649
  key: 0,
4606
4650
  class: "empty-state-image"
4607
- }, as = {
4651
+ }, ds = {
4608
4652
  key: 1,
4609
4653
  class: "entity-empty-state-title"
4610
- }, os = {
4654
+ }, fs = {
4611
4655
  key: 2,
4612
4656
  class: "entity-empty-state-description"
4613
- }, ls = {
4657
+ }, ps = {
4614
4658
  key: 3,
4615
4659
  class: "entity-empty-state-pricing"
4616
- }, ss = {
4660
+ }, ms = {
4617
4661
  key: 0,
4618
4662
  class: "entity-empty-state-message"
4619
- }, cs = {
4663
+ }, gs = {
4620
4664
  key: 1,
4621
4665
  class: "entity-empty-state-action"
4622
- }, us = {
4666
+ }, hs = {
4623
4667
  key: 2,
4624
4668
  class: "entity-empty-state-card-container"
4625
- }, ds = {
4669
+ }, ys = {
4626
4670
  key: 0,
4627
4671
  class: "feature-icon"
4628
- }, fs = { class: "card-header" }, ps = ["title"], ms = {
4672
+ }, vs = { class: "card-header" }, bs = ["title"], ks = {
4629
4673
  key: 3,
4630
4674
  class: "entity-empty-state-bottom-container"
4631
- }, hs = /* @__PURE__ */ z({
4675
+ }, Cs = /* @__PURE__ */ z({
4632
4676
  __name: "EntityEmptyState",
4633
4677
  props: {
4634
4678
  appearance: {
4635
4679
  type: String,
4636
4680
  default: () => "primary",
4637
- validator: (e) => gt.includes(e)
4681
+ validator: (e) => vt.includes(e)
4638
4682
  },
4639
4683
  title: {
4640
4684
  type: String,
@@ -4669,100 +4713,100 @@ const Rl = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Ml = {
4669
4713
  },
4670
4714
  emits: ["click:create", "click:learn-more"],
4671
4715
  setup(e) {
4672
- const t = e, { i18n: { t: n } } = W.useI18n(), i = N(!1), r = $(() => i.value && !!t.actionButtonText), o = $(() => gt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4673
- return it(async () => {
4716
+ const t = e, { i18n: { t: n } } = W.useI18n(), i = M(!1), r = $(() => i.value && !!t.actionButtonText), o = $(() => vt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4717
+ return rt(async () => {
4674
4718
  i.value = await t.canCreate();
4675
- }), nt(() => ti(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4719
+ }), it(() => ni(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4676
4720
  Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
4677
- const s = P("KCard");
4678
- return h(), T("div", ns, [
4679
- B("div", is, [
4680
- a.$slots.image ? (h(), T("div", rs, [
4721
+ const s = D("KCard");
4722
+ return g(), T("div", ss, [
4723
+ L("div", cs, [
4724
+ a.$slots.image ? (g(), T("div", us, [
4681
4725
  U(a.$slots, "image", {}, void 0, !0)
4682
- ])) : j("", !0),
4683
- e.title || a.$slots.title ? (h(), T("div", as, [
4684
- B("h1", {
4726
+ ])) : P("", !0),
4727
+ e.title || a.$slots.title ? (g(), T("div", ds, [
4728
+ L("h1", {
4685
4729
  class: fe(o.value)
4686
4730
  }, [
4687
4731
  U(a.$slots, "title", {}, () => [
4688
4732
  q(O(e.title), 1)
4689
4733
  ], !0)
4690
4734
  ], 2)
4691
- ])) : j("", !0),
4692
- e.description || a.$slots.default ? (h(), T("div", os, [
4735
+ ])) : P("", !0),
4736
+ e.description || a.$slots.default ? (g(), T("div", fs, [
4693
4737
  U(a.$slots, "default", {}, () => [
4694
- B("p", null, O(e.description), 1)
4738
+ L("p", null, O(e.description), 1)
4695
4739
  ], !0)
4696
- ])) : j("", !0),
4697
- e.pricing || a.$slots.pricing ? (h(), T("div", ls, [
4698
- B("p", null, [
4699
- B("b", null, O(_(n)("emptyState.pricingTitle")), 1),
4740
+ ])) : P("", !0),
4741
+ e.pricing || a.$slots.pricing ? (g(), T("div", ps, [
4742
+ L("p", null, [
4743
+ L("b", null, O(A(n)("emptyState.pricingTitle")), 1),
4700
4744
  l[2] || (l[2] = q()),
4701
4745
  U(a.$slots, "pricing", {}, () => [
4702
4746
  q(O(e.pricing), 1)
4703
4747
  ], !0)
4704
4748
  ])
4705
- ])) : j("", !0)
4749
+ ])) : P("", !0)
4706
4750
  ]),
4707
- a.$slots.message ? (h(), T("div", ss, [
4751
+ a.$slots.message ? (g(), T("div", ms, [
4708
4752
  U(a.$slots, "message", {}, void 0, !0)
4709
- ])) : j("", !0),
4710
- r.value || e.learnMore || a.$slots.actions ? (h(), T("div", cs, [
4753
+ ])) : P("", !0),
4754
+ r.value || e.learnMore || a.$slots.actions ? (g(), T("div", gs, [
4711
4755
  U(a.$slots, "actions", {}, () => [
4712
- r.value ? (h(), M(_(mt), {
4756
+ r.value ? (g(), N(A(gt), {
4713
4757
  key: 0,
4714
4758
  appearance: "primary",
4715
4759
  "data-testid": "entity-create-button",
4716
4760
  size: e.appearance === "secondary" ? "medium" : "large",
4717
4761
  onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
4718
4762
  }, {
4719
- default: A(() => [
4720
- R(_(Jt)),
4763
+ default: _(() => [
4764
+ K(A(Gt)),
4721
4765
  q(" " + O(e.actionButtonText), 1)
4722
4766
  ]),
4723
4767
  _: 1
4724
- }, 8, ["size"])) : j("", !0),
4725
- e.learnMore ? (h(), M(_(mt), {
4768
+ }, 8, ["size"])) : P("", !0),
4769
+ e.learnMore ? (g(), N(A(gt), {
4726
4770
  key: 1,
4727
4771
  appearance: "secondary",
4728
4772
  "data-testid": "entity-learn-more-button",
4729
4773
  size: e.appearance === "secondary" ? "medium" : "large",
4730
4774
  onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
4731
4775
  }, {
4732
- default: A(() => [
4733
- R(_(Wt), { decorative: "" }),
4734
- q(" " + O(_(n)("emptyState.learnMore")), 1)
4776
+ default: _(() => [
4777
+ K(A(Jt), { decorative: "" }),
4778
+ q(" " + O(A(n)("emptyState.learnMore")), 1)
4735
4779
  ]),
4736
4780
  _: 1
4737
- }, 8, ["size"])) : j("", !0)
4781
+ }, 8, ["size"])) : P("", !0)
4738
4782
  ], !0)
4739
- ])) : j("", !0),
4740
- e.features.length ? (h(), T("div", us, [
4741
- (h(!0), T(ue, null, ce(e.features, (c, d) => (h(), M(s, {
4783
+ ])) : P("", !0),
4784
+ e.features.length ? (g(), T("div", hs, [
4785
+ (g(!0), T(ue, null, ce(e.features, (c, d) => (g(), N(s, {
4742
4786
  key: c,
4743
4787
  class: "entity-empty-state-card"
4744
4788
  }, {
4745
- title: A(() => [
4746
- a.$slots[`feature-${d}-icon`] ? (h(), T("div", ds, [
4789
+ title: _(() => [
4790
+ a.$slots[`feature-${d}-icon`] ? (g(), T("div", ys, [
4747
4791
  U(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4748
- ])) : j("", !0),
4749
- B("div", fs, O(c.title), 1)
4792
+ ])) : P("", !0),
4793
+ L("div", vs, O(c.title), 1)
4750
4794
  ]),
4751
- default: A(() => [
4752
- B("div", {
4795
+ default: _(() => [
4796
+ L("div", {
4753
4797
  title: c.description
4754
- }, O(c.description), 9, ps)
4798
+ }, O(c.description), 9, bs)
4755
4799
  ]),
4756
4800
  _: 2
4757
4801
  }, 1024))), 128))
4758
- ])) : j("", !0),
4759
- a.$slots.bottom ? (h(), T("div", ms, [
4802
+ ])) : P("", !0),
4803
+ a.$slots.bottom ? (g(), T("div", ks, [
4760
4804
  U(a.$slots, "bottom", {}, void 0, !0)
4761
- ])) : j("", !0)
4805
+ ])) : P("", !0)
4762
4806
  ]);
4763
4807
  };
4764
4808
  }
4765
- }), Ls = /* @__PURE__ */ le(hs, [["__scopeId", "data-v-645aae54"]]), ys = { key: 1 }, Bs = /* @__PURE__ */ z({
4809
+ }), Ds = /* @__PURE__ */ le(Cs, [["__scopeId", "data-v-645aae54"]]), xs = { key: 1 }, Us = /* @__PURE__ */ z({
4766
4810
  __name: "TableTags",
4767
4811
  props: {
4768
4812
  /** The tags to display in the table */
@@ -4790,69 +4834,69 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4790
4834
  });
4791
4835
  return (i, r) => {
4792
4836
  var o;
4793
- return ((o = n.value) == null ? void 0 : o.length) > 0 ? (h(), M(_(oi), { key: 0 }, {
4794
- default: A(() => [
4795
- (h(!0), T(ue, null, ce(n.value, (a) => (h(), M(_(li), {
4837
+ return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(), N(A(li), { key: 0 }, {
4838
+ default: _(() => [
4839
+ (g(!0), T(ue, null, ce(n.value, (a) => (g(), N(A(si), {
4796
4840
  key: a,
4797
4841
  "max-width": e.tagMaxWidth,
4798
- onClick: r[0] || (r[0] = Be(() => {
4842
+ onClick: r[0] || (r[0] = Re(() => {
4799
4843
  }, ["stop"]))
4800
4844
  }, {
4801
- default: A(() => [
4845
+ default: _(() => [
4802
4846
  q(O(a), 1)
4803
4847
  ]),
4804
4848
  _: 2
4805
4849
  }, 1032, ["max-width"]))), 128))
4806
4850
  ]),
4807
4851
  _: 1
4808
- })) : (h(), T("span", ys, "-"));
4852
+ })) : (g(), T("span", xs, "-"));
4809
4853
  };
4810
4854
  }
4811
- }), { useAxios: Ks, useDeleteUrlBuilder: Rs, useErrors: Ns, useExternalLinkCreator: Ms, useFetchUrlBuilder: js, useFetcher: Ds, useFetcherCacheKey: Ps, useDebouncedFilter: Us, useStringHelpers: qs, useHelpers: Hs, useGatewayFeatureSupported: Vs, useTruncationDetector: Ys, useValidators: Ws, useSchemaProvider: Js, useTableState: Gs } = W;
4855
+ }), { useAxios: qs, useDeleteUrlBuilder: Hs, useErrors: Vs, useExternalLinkCreator: Ys, useFetchUrlBuilder: Ws, useFetcher: Js, useFetcherCacheKey: Gs, useDebouncedFilter: zs, useStringHelpers: Qs, useHelpers: Zs, useGatewayFeatureSupported: Xs, useTruncationDetector: ec, useValidators: tc, useSchemaProvider: nc, useTableState: ic } = W;
4812
4856
  export {
4813
- gt as Appearances,
4814
- Go as ConfigCardDisplay,
4815
- tn as ConfigCardItem,
4857
+ vt as Appearances,
4858
+ tl as ConfigCardDisplay,
4859
+ nn as ConfigCardItem,
4816
4860
  ae as ConfigurationSchemaSection,
4817
4861
  Y as ConfigurationSchemaType,
4818
- il as DeckCodeBlock,
4819
- As as EntityBaseConfigCard,
4820
- _s as EntityBaseForm,
4821
- pi as EntityBaseFormType,
4822
- ws as EntityBaseTable,
4823
- Ss as EntityDeleteModal,
4824
- Ls as EntityEmptyState,
4825
- $s as EntityFilter,
4826
- Fs as EntityFormBlock,
4827
- Is as EntityFormSection,
4828
- Os as EntityLink,
4829
- Ts as EntityToggleModal,
4830
- fi as EntityTypes,
4831
- hi as EventGatewayTypesArray,
4862
+ cl as DeckCodeBlock,
4863
+ Fs as EntityBaseConfigCard,
4864
+ Os as EntityBaseForm,
4865
+ yi as EntityBaseFormType,
4866
+ Bs as EntityBaseTable,
4867
+ Ls as EntityDeleteModal,
4868
+ Ds as EntityEmptyState,
4869
+ Rs as EntityFilter,
4870
+ Ps as EntityFormBlock,
4871
+ Ms as EntityFormSection,
4872
+ js as EntityLink,
4873
+ Ks as EntityToggleModal,
4874
+ hi as EntityTypes,
4875
+ bi as EventGatewayTypesArray,
4832
4876
  me as FetcherStatus,
4833
- yi as IdentityTypesArray,
4834
- er as InternalLinkItem,
4835
- nn as JsonCodeBlock,
4836
- Es as PermissionsWrapper,
4837
- mi as SupportedEntityDeckArray,
4877
+ ki as IdentityTypesArray,
4878
+ rr as InternalLinkItem,
4879
+ rn as JsonCodeBlock,
4880
+ Ns as PermissionsWrapper,
4881
+ vi as SupportedEntityDeckArray,
4838
4882
  Se as SupportedEntityType,
4839
- Ue as SupportedEntityTypesArray,
4840
- Bs as TableTags,
4841
- Jn as TerraformCodeBlock,
4842
- Wn as YamlCodeBlock,
4843
- Ks as useAxios,
4844
- Us as useDebouncedFilter,
4845
- Rs as useDeleteUrlBuilder,
4846
- Ns as useErrors,
4847
- Ms as useExternalLinkCreator,
4848
- js as useFetchUrlBuilder,
4849
- Ds as useFetcher,
4850
- Ps as useFetcherCacheKey,
4851
- Vs as useGatewayFeatureSupported,
4852
- Hs as useHelpers,
4853
- Js as useSchemaProvider,
4854
- qs as useStringHelpers,
4855
- Gs as useTableState,
4856
- Ys as useTruncationDetector,
4857
- Ws as useValidators
4883
+ qe as SupportedEntityTypesArray,
4884
+ Us as TableTags,
4885
+ Gn as TerraformCodeBlock,
4886
+ Jn as YamlCodeBlock,
4887
+ qs as useAxios,
4888
+ zs as useDebouncedFilter,
4889
+ Hs as useDeleteUrlBuilder,
4890
+ Vs as useErrors,
4891
+ Ys as useExternalLinkCreator,
4892
+ Ws as useFetchUrlBuilder,
4893
+ Js as useFetcher,
4894
+ Gs as useFetcherCacheKey,
4895
+ Xs as useGatewayFeatureSupported,
4896
+ Zs as useHelpers,
4897
+ nc as useSchemaProvider,
4898
+ Qs as useStringHelpers,
4899
+ ic as useTableState,
4900
+ ec as useTruncationDetector,
4901
+ tc as useValidators
4858
4902
  };