@8wave/ai-elements 0.102.0 → 0.103.0-beta.3

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.
Files changed (75) hide show
  1. package/dist/_chunks/{Agent-Cq-9OZHI.js → Agent-hWgZhu7L.js} +99 -100
  2. package/dist/_chunks/{Agent-Cq-9OZHI.js.map → Agent-hWgZhu7L.js.map} +1 -1
  3. package/dist/_chunks/{PkToolRequestGeolocation-hAaQJW-t.js → PkToolRequestGeolocation-T16QI-Uv.js} +2 -2
  4. package/dist/_chunks/{PkToolRequestGeolocation-hAaQJW-t.js.map → PkToolRequestGeolocation-T16QI-Uv.js.map} +1 -1
  5. package/dist/_chunks/PkToolRequestOAuthConnection-C8e5np2q.js +116 -0
  6. package/dist/_chunks/PkToolRequestOAuthConnection-C8e5np2q.js.map +1 -0
  7. package/dist/_chunks/{PkToolShowForm-CdUUAjPc.js → PkToolShowForm-ztQFyFd9.js} +2 -2
  8. package/dist/_chunks/{PkToolShowForm-CdUUAjPc.js.map → PkToolShowForm-ztQFyFd9.js.map} +1 -1
  9. package/dist/_chunks/{PkToolShowSuggestedReply-BvHgjMQ4.js → PkToolShowSuggestedReply-Dqe4gtEY.js} +2 -2
  10. package/dist/_chunks/{PkToolShowSuggestedReply-BvHgjMQ4.js.map → PkToolShowSuggestedReply-Dqe4gtEY.js.map} +1 -1
  11. package/dist/_chunks/web-BMnEaWK7.js +20226 -0
  12. package/dist/_chunks/web-BMnEaWK7.js.map +1 -0
  13. package/dist/ai-elements.es.js +4443 -24347
  14. package/dist/ai-elements.es.js.map +1 -1
  15. package/dist-vue/PkChatbot.js +1 -1
  16. package/dist-vue/PkChatbotMessages.js +1 -1
  17. package/dist-vue/PkChatbotViewChat.js +1 -1
  18. package/dist-vue/PkChatbotViewConversations.js +1 -1
  19. package/dist-vue/PkChatbotViewFiles.js +1 -1
  20. package/dist-vue/PkChatbotViewProfile.js +1 -1
  21. package/dist-vue/_chunks/{Agent-Cy-XE9N1.js → Agent-CGp48ayw.js} +62 -63
  22. package/dist-vue/_chunks/{Agent-Cy-XE9N1.js.map → Agent-CGp48ayw.js.map} +1 -1
  23. package/dist-vue/_chunks/{Document-B6xVkCfQ.js → Document-CjfNDh6w.js} +15 -15
  24. package/dist-vue/_chunks/{Document-B6xVkCfQ.js.map → Document-CjfNDh6w.js.map} +1 -1
  25. package/dist-vue/_chunks/{PkChatbot-CHe6t-LR.js → PkChatbot-DZ6TaZHh.js} +6 -6
  26. package/dist-vue/_chunks/{PkChatbot-CHe6t-LR.js.map → PkChatbot-DZ6TaZHh.js.map} +1 -1
  27. package/dist-vue/_chunks/PkChatbotMessages-BgsyN-mB.js +771 -0
  28. package/dist-vue/_chunks/PkChatbotMessages-BgsyN-mB.js.map +1 -0
  29. package/dist-vue/_chunks/PkChatbotViewChat-0g30_sQH.js +802 -0
  30. package/dist-vue/_chunks/PkChatbotViewChat-0g30_sQH.js.map +1 -0
  31. package/dist-vue/_chunks/{PkChatbotViewConversations-DXwqumyn.js → PkChatbotViewConversations-p72SEhU-.js} +2 -2
  32. package/dist-vue/_chunks/{PkChatbotViewConversations-DXwqumyn.js.map → PkChatbotViewConversations-p72SEhU-.js.map} +1 -1
  33. package/dist-vue/_chunks/{PkChatbotViewFiles-B4u87oH6.js → PkChatbotViewFiles-C2PUVFV2.js} +3 -3
  34. package/dist-vue/_chunks/{PkChatbotViewFiles-B4u87oH6.js.map → PkChatbotViewFiles-C2PUVFV2.js.map} +1 -1
  35. package/dist-vue/_chunks/{PkChatbotViewProfile-C_A0AP8x.js → PkChatbotViewProfile-BqWLlla-.js} +2 -2
  36. package/dist-vue/_chunks/{PkChatbotViewProfile-C_A0AP8x.js.map → PkChatbotViewProfile-BqWLlla-.js.map} +1 -1
  37. package/dist-vue/_chunks/{PkToolRequestGeolocation-CaHo_418.js → PkToolRequestGeolocation-CsQghLEb.js} +2 -2
  38. package/dist-vue/_chunks/{PkToolRequestGeolocation-CaHo_418.js.map → PkToolRequestGeolocation-CsQghLEb.js.map} +1 -1
  39. package/dist-vue/_chunks/PkToolRequestOAuthConnection-D5Jq6UZh.js +116 -0
  40. package/dist-vue/_chunks/PkToolRequestOAuthConnection-D5Jq6UZh.js.map +1 -0
  41. package/dist-vue/_chunks/{PkToolShowDiagram-CuQyY0uv.js → PkToolShowDiagram-DoklcF3f.js} +2 -2
  42. package/dist-vue/_chunks/{PkToolShowDiagram-CuQyY0uv.js.map → PkToolShowDiagram-DoklcF3f.js.map} +1 -1
  43. package/dist-vue/_chunks/{PkToolShowForm-vXgu3bZO.js → PkToolShowForm-CpY1KKUt.js} +2 -2
  44. package/dist-vue/_chunks/{PkToolShowForm-vXgu3bZO.js.map → PkToolShowForm-CpY1KKUt.js.map} +1 -1
  45. package/dist-vue/_chunks/{PkToolShowSources-Die_j1bn.js → PkToolShowSources-CLsbqcDd.js} +2 -2
  46. package/dist-vue/_chunks/{PkToolShowSources-Die_j1bn.js.map → PkToolShowSources-CLsbqcDd.js.map} +1 -1
  47. package/dist-vue/_chunks/{PkToolShowSuggestedReply-CryAdy6t.js → PkToolShowSuggestedReply-B-QwwART.js} +2 -2
  48. package/dist-vue/_chunks/{PkToolShowSuggestedReply-CryAdy6t.js.map → PkToolShowSuggestedReply-B-QwwART.js.map} +1 -1
  49. package/dist-vue/_chunks/{createChatbotApiClient-CoTSUkuj.js → createChatbotApiClient-nOLu9GAQ.js} +32 -28
  50. package/dist-vue/_chunks/{createChatbotApiClient-CoTSUkuj.js.map → createChatbotApiClient-nOLu9GAQ.js.map} +1 -1
  51. package/dist-vue/_chunks/{useChatbotStore-BcLvyaIV.js → useChatbotStore-DhWHlZwO.js} +756 -783
  52. package/dist-vue/_chunks/{useChatbotStore-BcLvyaIV.js.map → useChatbotStore-DhWHlZwO.js.map} +1 -1
  53. package/dist-vue/_chunks/{PkChatbotViewChat-DeeGCFJf.js → web-BMnEaWK7.js} +3873 -4335
  54. package/dist-vue/_chunks/web-BMnEaWK7.js.map +1 -0
  55. package/dist-vue/api.js +1 -1
  56. package/dist-vue/composables.js +2 -2
  57. package/dist-vue/index.js +301 -301
  58. package/dist-vue/index.js.map +1 -1
  59. package/dist-vue/locales.js +6 -2
  60. package/dist-vue/packages/components/src/chat/PkToolRequestOAuthConnection.d.ts +4 -0
  61. package/dist-vue/packages/components/src/chat/useVoiceSession.d.ts +0 -7
  62. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +4 -0
  63. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -14
  64. package/dist-vue/packages/models/src/schema/Agent.d.ts +12 -5
  65. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +2 -2
  66. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +2 -2
  67. package/dist-vue/style.css +1 -1
  68. package/package.json +1 -1
  69. package/dist/_chunks/PkToolRequestOAuthConnection-Bf_zoT2r.js +0 -73
  70. package/dist/_chunks/PkToolRequestOAuthConnection-Bf_zoT2r.js.map +0 -1
  71. package/dist-vue/_chunks/PkChatbotMessages-CWPSx2ce.js +0 -770
  72. package/dist-vue/_chunks/PkChatbotMessages-CWPSx2ce.js.map +0 -1
  73. package/dist-vue/_chunks/PkChatbotViewChat-DeeGCFJf.js.map +0 -1
  74. package/dist-vue/_chunks/PkToolRequestOAuthConnection-URjYDFhm.js +0 -73
  75. package/dist-vue/_chunks/PkToolRequestOAuthConnection-URjYDFhm.js.map +0 -1
package/dist-vue/index.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { t as e } from "./_chunks/rolldown-runtime-Dy4uBu1J.js";
2
- import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-vXgu3bZO.js";
2
+ import { i as t, r as n, t as r } from "./_chunks/PkToolShowForm-CpY1KKUt.js";
3
3
  import { S as i, _ as a, b as o, g as s, h as c, n as l, v as u } from "./_chunks/schemas-COkEQ0wM.js";
4
4
  import { i as d, r as f } from "./_chunks/Media-yi949VrV.js";
5
- import { C as p, E as m, F as h, M as g, S as _, T as v, _ as y, d as b, g as x, h as S, i as C, m as w, n as T, o as ee, p as te, r as ne, t as re, v as ie, w as ae, x as oe } from "./_chunks/Agent-Cy-XE9N1.js";
6
- import { r as se, t as ce } from "./_chunks/Document-B6xVkCfQ.js";
7
- import { n as le } from "./_chunks/createChatbotApiClient-CoTSUkuj.js";
5
+ import { C as p, P as m, S as h, T as g, _, b as v, d as y, g as ee, h as b, i as x, j as S, m as C, n as w, o as T, p as te, r as ne, t as re, v as ie, w as ae, x as oe } from "./_chunks/Agent-CGp48ayw.js";
6
+ import { r as se, t as ce } from "./_chunks/Document-CjfNDh6w.js";
7
+ import { n as le } from "./_chunks/createChatbotApiClient-nOLu9GAQ.js";
8
8
  import { t as ue } from "./_chunks/PkChatbotAuth-CqwTN8ih.js";
9
9
  import { t as de } from "./_chunks/PkChatbotError-B2iob9cQ.js";
10
10
  import { t as fe } from "./_chunks/PkStreamingMarkdown-BBni7OTn.js";
11
- import { a as pe, i as me, o as he, r as ge } from "./_chunks/useChatbotStore-BcLvyaIV.js";
11
+ import { a as pe, i as me, n as he, r as ge } from "./_chunks/useChatbotStore-DhWHlZwO.js";
12
12
  import "./_chunks/src-BbpxM17m.js";
13
13
  import { c as _e, i as ve, s as ye } from "./_chunks/message-RohfrdWS.js";
14
- import { i as be, n as xe, r as Se, t as Ce } from "./_chunks/PkChatbotMessages-CWPSx2ce.js";
14
+ import { i as be, n as xe, r as Se, t as Ce } from "./_chunks/PkChatbotMessages-BgsyN-mB.js";
15
15
  import { t as we } from "./_chunks/useSafeLocalStorage-D5Aa7nQY.js";
16
16
  import { t as Te } from "./_chunks/useDialogConfirm-CMTIKoWn.js";
17
- import { n as Ee, r as De, t as Oe } from "./_chunks/PkChatbotViewConversations-DXwqumyn.js";
18
- import { i as ke, n as Ae, r as je, t as Me } from "./_chunks/PkChatbotViewChat-DeeGCFJf.js";
17
+ import { n as Ee, r as De, t as Oe } from "./_chunks/PkChatbotViewConversations-p72SEhU-.js";
18
+ import { i as ke, n as Ae, r as je, t as Me } from "./_chunks/PkChatbotViewChat-0g30_sQH.js";
19
19
  import { t as Ne } from "./_chunks/useImageFallback-5vQIO0pC.js";
20
20
  import { t as Pe } from "./_chunks/useLocalizedString-PfaKjIQY.js";
21
21
  import { n as Fe, t as Ie } from "./_chunks/PkRelativeTime--1cIphlA.js";
@@ -34,9 +34,9 @@ import { n as an, t as on } from "./_chunks/PkChatbotSteps-DlZpwc_a.js";
34
34
  import { t as sn } from "./_chunks/PkChatbotStepToolDetail-BBX4KL3d.js";
35
35
  import { n as cn, t as ln } from "./_chunks/PkChatbotInput-CpSSAW2z.js";
36
36
  import { t as un } from "./_chunks/PkChatbotEmptyState-Brs9qhwj.js";
37
- import { t as dn } from "./_chunks/PkChatbotViewProfile-C_A0AP8x.js";
38
- import { t as fn } from "./_chunks/PkChatbot-CHe6t-LR.js";
39
- import { i as pn, r as mn, t as hn } from "./_chunks/PkToolShowSources-Die_j1bn.js";
37
+ import { t as dn } from "./_chunks/PkChatbotViewProfile-BqWLlla-.js";
38
+ import { t as fn } from "./_chunks/PkChatbot-DZ6TaZHh.js";
39
+ import { i as pn, r as mn, t as hn } from "./_chunks/PkToolShowSources-CLsbqcDd.js";
40
40
  import { t as gn } from "./_chunks/PkToolShowEmail-tUYlAzar.js";
41
41
  import { t as _n } from "./_chunks/PkToolShowMessage-BezAdT5s.js";
42
42
  import { t as vn } from "./_chunks/PkToolShowWebPages-Bu9cxKIk.js";
@@ -47,7 +47,7 @@ import { t as Sn } from "./_chunks/PkToolShowComparison-D0iMf7JW.js";
47
47
  import { t as Cn } from "./_chunks/PkToolShowLocation-BBdeY0Ae.js";
48
48
  import { t as wn } from "./_chunks/PkToolShowQrCode-DEAvfLFu.js";
49
49
  import { t as Tn } from "./_chunks/PkToolShowImageGallery-6MmMV2y_.js";
50
- import { t as En } from "./_chunks/PkToolShowSuggestedReply-CryAdy6t.js";
50
+ import { t as En } from "./_chunks/PkToolShowSuggestedReply-B-QwwART.js";
51
51
  import { VvAccordion as Dn, VvAccordionGroup as On, VvAlert as kn, VvAlertGroup as An, VvBadge as jn, VvButton as Mn, VvButtonGroup as Nn, VvCheckbox as Pn, VvCombobox as Fn, VvDialog as In, VvDropdown as Ln, VvDropdownAction as Rn, VvIcon as zn, VvInputFile as Bn, VvInputText as Vn, VvTab as Hn, VvTooltip as Un } from "@volverjs/ui-vue/components";
52
52
  import { Fragment as k, Teleport as Wn, Transition as Gn, TransitionGroup as Kn, cloneVNode as qn, computed as A, createApp as Jn, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createSlots as Yn, createStaticVNode as Xn, createTextVNode as F, createVNode as I, defineComponent as L, guardReactiveProps as Zn, h as Qn, inject as R, isRef as $n, isVNode as er, mergeModels as tr, mergeProps as nr, nextTick as rr, normalizeClass as ir, normalizeProps as ar, normalizeStyle as or, onBeforeUnmount as sr, onMounted as cr, onUnmounted as lr, openBlock as z, provide as ur, reactive as dr, readonly as fr, ref as B, renderList as pr, renderSlot as V, resolveComponent as mr, resolveDynamicComponent as hr, shallowRef as gr, toDisplayString as H, toRef as _r, toRefs as vr, unref as U, useId as yr, useModel as W, useSlots as br, vModelSelect as xr, vModelText as Sr, watch as G, withCtx as K, withDirectives as Cr, withKeys as wr, withModifiers as Tr } from "vue";
53
53
  import { useI18n as Er } from "vue-i18n";
@@ -110,18 +110,18 @@ var Gr = { class: "flex gap-6 items-center" }, Kr = /* @__PURE__ */ L({
110
110
  updatedAt: d()
111
111
  });
112
112
  s({
113
- ...h.pagination(),
114
- ...h.sort([
113
+ ...m.pagination(),
114
+ ...m.sort([
115
115
  "createdAt",
116
116
  "updatedAt",
117
117
  "scheduledAt"
118
118
  ]),
119
- ...h.filters([
119
+ ...m.filters([
120
120
  "type",
121
121
  "readAt",
122
122
  "scheduledAt"
123
123
  ]),
124
- ...h.ids()
124
+ ...m.ids()
125
125
  }), Yr.pick({
126
126
  id: !0,
127
127
  organizationId: !0,
@@ -161,10 +161,10 @@ var Qr = { class: "flex items-center gap-4 mb-4" }, $r = { class: "font-semibold
161
161
  let n = W(e, "modelValue"), r = e, { t: i } = Er(), { t: a } = Er({ useScope: "global" }), o = A(() => {
162
162
  let e = [{
163
163
  label: a("agentType.chat"),
164
- value: b.Chat
164
+ value: y.Chat
165
165
  }, {
166
166
  label: a("agentType.reasoning"),
167
- value: b.Reasoning
167
+ value: y.Reasoning
168
168
  }];
169
169
  return r.readonly ? e.filter((e) => e.value === n.value) : e;
170
170
  });
@@ -1055,7 +1055,7 @@ var oa = {
1055
1055
  });
1056
1056
  }, v = B(!1), y = A(() => !!n.field.description || !!n.field.constValue || !!n.field.enumValues?.length);
1057
1057
  return (t, n) => {
1058
- let r = Mn, a = Vn, b = zn, x = Fn, S = jn, C = mr("PkSchemaField", !0), w = Nn;
1058
+ let r = Mn, a = Vn, ee = zn, b = Fn, x = jn, S = mr("PkSchemaField", !0), C = Nn;
1059
1059
  return z(), N("div", { class: ir(["pk-schema-field", { "pk-schema-field--expanded": v.value }]) }, [P("div", ga, [
1060
1060
  P("div", _a, [P("div", va, [I(r, {
1061
1061
  modifiers: "action-quiet",
@@ -1071,7 +1071,7 @@ var oa = {
1071
1071
  class: "pk-schema-field__input-name",
1072
1072
  "onUpdate:modelValue": s
1073
1073
  }, null, 8, ["model-value", "placeholder"]),
1074
- I(x, {
1074
+ I(b, {
1075
1075
  "model-value": e.field.type,
1076
1076
  options: U(o),
1077
1077
  "value-key": "value",
@@ -1085,11 +1085,11 @@ var oa = {
1085
1085
  modifiers: "compact",
1086
1086
  "onUpdate:modelValue": c
1087
1087
  }, {
1088
- option: K(({ option: e }) => [P("span", ba, [I(b, {
1088
+ option: K(({ option: e }) => [P("span", ba, [I(ee, {
1089
1089
  name: e.icon,
1090
1090
  class: "pk-schema-field__type-icon"
1091
1091
  }, null, 8, ["name"]), P("span", null, H(e.label), 1)])]),
1092
- value: K(({ selectedOptions: e }) => [e.length ? (z(), N("span", xa, [I(b, {
1092
+ value: K(({ selectedOptions: e }) => [e.length ? (z(), N("span", xa, [I(ee, {
1093
1093
  name: e[0].icon,
1094
1094
  class: "pk-schema-field__type-icon"
1095
1095
  }, null, 8, ["name"]), P("span", null, H(e[0].label), 1)])) : M("", !0)]),
@@ -1106,7 +1106,7 @@ var oa = {
1106
1106
  "icon",
1107
1107
  "title",
1108
1108
  "active"
1109
- ]), y.value ? (z(), j(S, {
1109
+ ]), y.value ? (z(), j(x, {
1110
1110
  key: 0,
1111
1111
  modifiers: "gray sm",
1112
1112
  class: "absolute top-0 right-0 nr-2 nt-2"
@@ -1129,7 +1129,7 @@ var oa = {
1129
1129
  modifiers: "compact",
1130
1130
  "onUpdate:modelValue": u
1131
1131
  }, null, 8, ["model-value", "placeholder"]),
1132
- U(Pi)(e.field.type) ? M("", !0) : (z(), j(x, {
1132
+ U(Pi)(e.field.type) ? M("", !0) : (z(), j(b, {
1133
1133
  key: 0,
1134
1134
  "model-value": e.field.enumValues ?? [],
1135
1135
  options: [],
@@ -1161,7 +1161,7 @@ var oa = {
1161
1161
  group: { name: "schema-fields" },
1162
1162
  onChange: g
1163
1163
  }, {
1164
- item: K(({ element: t, index: n }) => [I(C, {
1164
+ item: K(({ element: t, index: n }) => [I(S, {
1165
1165
  field: t,
1166
1166
  depth: e.depth + 1,
1167
1167
  "onUpdate:field": (e) => p(n, e),
@@ -1180,7 +1180,7 @@ var oa = {
1180
1180
  "icon-position": "right",
1181
1181
  onClick: h
1182
1182
  }, null, 8, ["label"])])])) : M("", !0)
1183
- ]), P("div", Ea, [I(w, {
1183
+ ]), P("div", Ea, [I(C, {
1184
1184
  modifiers: "compact vertical",
1185
1185
  "item-modifiers": "action-quiet-small"
1186
1186
  }, {
@@ -1947,17 +1947,17 @@ var ho = "onSave", go = "changeCatalogVisible", _o = "changeFullscreen", vo = "p
1947
1947
  f++;
1948
1948
  let { scrollDOM: e } = r, n = Ho(t, "padding-block-start"), c = r.lineBlockAtHeight(e.scrollTop), { number: l } = r.state.doc.lineAt(c.from), u = s[l - 1];
1949
1949
  if (!u) return !1;
1950
- let m = 1, h = t.querySelector(`[data-line="${u.start}"]`) || t.firstElementChild?.firstElementChild, g = t.querySelector(`[data-line="${u.end + 1}"]`) || t.lastElementChild?.lastElementChild, _ = e.scrollHeight - e.clientHeight, v = t.scrollHeight - t.clientHeight, y = a(u.start), b = o(u.end), x = h.offsetTop, S = g.offsetTop - x;
1951
- y === 0 && (x = 0, h === g ? (n = 0, S = 0) : S = g.offsetTop), m = (e.scrollTop - y) / (b - y);
1952
- let C = g == t.lastElementChild?.lastElementChild ? g.offsetTop + g.clientHeight : g.offsetTop;
1953
- if (b >= _ || C > v) {
1950
+ let m = 1, h = t.querySelector(`[data-line="${u.start}"]`) || t.firstElementChild?.firstElementChild, g = t.querySelector(`[data-line="${u.end + 1}"]`) || t.lastElementChild?.lastElementChild, _ = e.scrollHeight - e.clientHeight, v = t.scrollHeight - t.clientHeight, y = a(u.start), ee = o(u.end), b = h.offsetTop, x = g.offsetTop - b;
1951
+ y === 0 && (b = 0, h === g ? (n = 0, x = 0) : x = g.offsetTop), m = (e.scrollTop - y) / (ee - y);
1952
+ let S = g == t.lastElementChild?.lastElementChild ? g.offsetTop + g.clientHeight : g.offsetTop;
1953
+ if (ee >= _ || S > v) {
1954
1954
  let n = d(_, v);
1955
1955
  y = a(n), m = (e.scrollTop - y) / (_ - y);
1956
1956
  let r = t.querySelector(`[data-line="${n}"]`);
1957
- y > 0 && r && (x = r.offsetTop), S = v - x + Ho(t, "padding-block-start");
1957
+ y > 0 && r && (b = r.offsetTop), x = v - b + Ho(t, "padding-block-start");
1958
1958
  }
1959
- let w = x - n + S * m;
1960
- i(t, w, () => {
1959
+ let C = b - n + x * m;
1960
+ i(t, C, () => {
1961
1961
  f--;
1962
1962
  });
1963
1963
  }, h = () => {
@@ -1992,12 +1992,12 @@ var ho = "onSave", go = "changeCatalogVisible", _o = "changeFullscreen", vo = "p
1992
1992
  default: g = c[n], _ = c[n + 1];
1993
1993
  }
1994
1994
  }
1995
- let v = g === t.firstElementChild?.firstElementChild ? 0 : g.offsetTop - Ho(g, "margin-block-start"), y = _.offsetTop, b = 0, { start: x, end: S } = s[Number(g.dataset.line || 0)], C = a(x), w = a(S + 1 === r.state.doc.lines ? S : S + 1), T = 0, ee = _ == t.lastElementChild?.lastElementChild ? _.offsetTop + _.offsetHeight : _.offsetTop;
1996
- if (w > m || ee > h) {
1995
+ let v = g === t.firstElementChild?.firstElementChild ? 0 : g.offsetTop - Ho(g, "margin-block-start"), y = _.offsetTop, ee = 0, { start: b, end: x } = s[Number(g.dataset.line || 0)], S = a(b), C = a(x + 1 === r.state.doc.lines ? x : x + 1), w = 0, T = _ == t.lastElementChild?.lastElementChild ? _.offsetTop + _.offsetHeight : _.offsetTop;
1996
+ if (C > m || T > h) {
1997
1997
  let e = d(m, h), n = t.querySelector(`[data-line="${e}"]`);
1998
- v = n ? n.offsetTop - Ho(n, "margin-block-start") : v, C = a(e), b = (o - v) / (h - v), T = m - C;
1999
- } else g === t.firstElementChild?.firstElementChild ? (g === _ && (y = _.offsetTop + _.offsetHeight + Ho(_, "margin-block-end")), T = w, C = 0, b = Math.max(o / y, 0)) : (b = Math.max((o - v) / (y - v), 0), T = w - C);
2000
- i(e, C + T * b, () => {
1998
+ v = n ? n.offsetTop - Ho(n, "margin-block-start") : v, S = a(e), ee = (o - v) / (h - v), w = m - S;
1999
+ } else g === t.firstElementChild?.firstElementChild ? (g === _ && (y = _.offsetTop + _.offsetHeight + Ho(_, "margin-block-end")), w = C, S = 0, ee = Math.max(o / y, 0)) : (ee = Math.max((o - v) / (y - v), 0), w = C - S);
2000
+ i(e, S + w * ee, () => {
2001
2001
  p--;
2002
2002
  });
2003
2003
  }, g = (n) => {
@@ -3750,14 +3750,14 @@ function yl(e, t, n, r) {
3750
3750
  s = e.push("list_item_open", "li", 1), s.markup = String.fromCharCode(m);
3751
3751
  let g = [c, 0];
3752
3752
  s.map = g, d && (s.info = e.src.slice(o, p - 1));
3753
- let y = e.tight, b = e.tShift[c], x = e.sCount[c], S = e.listIndent;
3754
- if (e.listIndent = e.blkIndent, e.blkIndent = h, e.tight = !0, e.tShift[c] = u - e.bMarks[c], e.sCount[c] = r, u >= i && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, c, n, !0), (!e.tight || _) && (l = !1), _ = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = S, e.tShift[c] = b, e.sCount[c] = x, e.tight = y, s = e.push("list_item_close", "li", -1), s.markup = String.fromCharCode(m), c = e.line, g[1] = c, c >= n || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4) break;
3755
- let C = !1;
3753
+ let y = e.tight, ee = e.tShift[c], b = e.sCount[c], x = e.listIndent;
3754
+ if (e.listIndent = e.blkIndent, e.blkIndent = h, e.tight = !0, e.tShift[c] = u - e.bMarks[c], e.sCount[c] = r, u >= i && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, n) : e.md.block.tokenize(e, c, n, !0), (!e.tight || _) && (l = !1), _ = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = x, e.tShift[c] = ee, e.sCount[c] = b, e.tight = y, s = e.push("list_item_close", "li", -1), s.markup = String.fromCharCode(m), c = e.line, g[1] = c, c >= n || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4) break;
3755
+ let S = !1;
3756
3756
  for (let t = 0, r = v.length; t < r; t++) if (v[t](e, c, n, !0)) {
3757
- C = !0;
3757
+ S = !0;
3758
3758
  break;
3759
3759
  }
3760
- if (C) break;
3760
+ if (S) break;
3761
3761
  if (d) {
3762
3762
  if (p = _l(e, c), p < 0) break;
3763
3763
  o = e.bMarks[c] + e.tShift[c];
@@ -5220,27 +5220,27 @@ var wd = Object.assign || function(e) {
5220
5220
  e(t, t);
5221
5221
  }, i = function(e) {
5222
5222
  var t = e.target;
5223
- if (t === T) {
5223
+ if (t === w) {
5224
5224
  m();
5225
5225
  return;
5226
5226
  }
5227
5227
  y.indexOf(t) !== -1 && h({ target: t });
5228
5228
  }, a = function() {
5229
- if (!(x || !w.original)) {
5229
+ if (!(b || !C.original)) {
5230
5230
  var e = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
5231
- Math.abs(S - e) > C.scrollOffset && setTimeout(m, 150);
5231
+ Math.abs(x - e) > S.scrollOffset && setTimeout(m, 150);
5232
5232
  }
5233
5233
  }, o = function(e) {
5234
5234
  var t = e.key || e.keyCode;
5235
5235
  (t === "Escape" || t === "Esc" || t === 27) && m();
5236
5236
  }, s = function() {
5237
5237
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e;
5238
- return e.background && (T.style.background = e.background), e.container && e.container instanceof Object && (t.container = wd({}, C.container, e.container)), e.template && (t.template = Dd(e.template) ? e.template : document.querySelector(e.template)), C = wd({}, C, t), y.forEach(function(e) {
5239
- e.dispatchEvent(Md("medium-zoom:update", { detail: { zoom: ee } }));
5240
- }), ee;
5238
+ return e.background && (w.style.background = e.background), e.container && e.container instanceof Object && (t.container = wd({}, S.container, e.container)), e.template && (t.template = Dd(e.template) ? e.template : document.querySelector(e.template)), S = wd({}, S, t), y.forEach(function(e) {
5239
+ e.dispatchEvent(Md("medium-zoom:update", { detail: { zoom: T } }));
5240
+ }), T;
5241
5241
  }, c = function() {
5242
5242
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5243
- return e(wd({}, C, t));
5243
+ return e(wd({}, S, t));
5244
5244
  }, l = function() {
5245
5245
  var e = [...arguments].reduce(function(e, t) {
5246
5246
  return [].concat(e, kd(t));
@@ -5249,39 +5249,39 @@ var wd = Object.assign || function(e) {
5249
5249
  return y.indexOf(e) === -1;
5250
5250
  }).forEach(function(e) {
5251
5251
  y.push(e), e.classList.add("medium-zoom-image");
5252
- }), b.forEach(function(t) {
5252
+ }), ee.forEach(function(t) {
5253
5253
  var n = t.type, r = t.listener, i = t.options;
5254
5254
  e.forEach(function(e) {
5255
5255
  e.addEventListener(n, r, i);
5256
5256
  });
5257
- }), ee;
5257
+ }), T;
5258
5258
  }, u = function() {
5259
5259
  var e = [...arguments];
5260
- w.zoomed && m();
5260
+ C.zoomed && m();
5261
5261
  var t = e.length > 0 ? e.reduce(function(e, t) {
5262
5262
  return [].concat(e, kd(t));
5263
5263
  }, []) : y;
5264
5264
  return t.forEach(function(e) {
5265
- e.classList.remove("medium-zoom-image"), e.dispatchEvent(Md("medium-zoom:detach", { detail: { zoom: ee } }));
5265
+ e.classList.remove("medium-zoom-image"), e.dispatchEvent(Md("medium-zoom:detach", { detail: { zoom: T } }));
5266
5266
  }), y = y.filter(function(e) {
5267
5267
  return t.indexOf(e) === -1;
5268
- }), ee;
5268
+ }), T;
5269
5269
  }, d = function(e, t) {
5270
5270
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5271
5271
  return y.forEach(function(r) {
5272
5272
  r.addEventListener("medium-zoom:" + e, t, n);
5273
- }), b.push({
5273
+ }), ee.push({
5274
5274
  type: "medium-zoom:" + e,
5275
5275
  listener: t,
5276
5276
  options: n
5277
- }), ee;
5277
+ }), T;
5278
5278
  }, f = function(e, t) {
5279
5279
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5280
5280
  return y.forEach(function(r) {
5281
5281
  r.removeEventListener("medium-zoom:" + e, t, n);
5282
- }), b = b.filter(function(n) {
5282
+ }), ee = ee.filter(function(n) {
5283
5283
  return n.type !== "medium-zoom:" + e || n.listener.toString() !== t.toString();
5284
- }), ee;
5284
+ }), T;
5285
5285
  }, p = function() {
5286
5286
  var e = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).target, t = function() {
5287
5287
  var e = {
@@ -5292,10 +5292,10 @@ var wd = Object.assign || function(e) {
5292
5292
  right: 0,
5293
5293
  bottom: 0
5294
5294
  }, t = void 0, n = void 0;
5295
- if (C.container) {
5296
- if (C.container instanceof Object) e = wd({}, e, C.container), t = e.width - e.left - e.right - C.margin * 2, n = e.height - e.top - e.bottom - C.margin * 2;
5295
+ if (S.container) {
5296
+ if (S.container instanceof Object) e = wd({}, e, S.container), t = e.width - e.left - e.right - S.margin * 2, n = e.height - e.top - e.bottom - S.margin * 2;
5297
5297
  else {
5298
- var r = (Dd(C.container) ? C.container : document.querySelector(C.container)).getBoundingClientRect(), i = r.width, a = r.height, o = r.left, s = r.top;
5298
+ var r = (Dd(S.container) ? S.container : document.querySelector(S.container)).getBoundingClientRect(), i = r.width, a = r.height, o = r.left, s = r.top;
5299
5299
  e = wd({}, e, {
5300
5300
  width: i,
5301
5301
  height: a,
@@ -5304,84 +5304,84 @@ var wd = Object.assign || function(e) {
5304
5304
  });
5305
5305
  }
5306
5306
  }
5307
- t ||= e.width - C.margin * 2, n ||= e.height - C.margin * 2;
5308
- var c = w.zoomedHd || w.original, l = Od(c) ? t : c.naturalWidth || t, u = Od(c) ? n : c.naturalHeight || n, d = c.getBoundingClientRect(), f = d.top, p = d.left, m = d.width, h = d.height, g = Math.min(Math.max(m, l), t) / m, _ = Math.min(Math.max(h, u), n) / h, v = Math.min(g, _), y = (-p + (t - m) / 2 + C.margin + e.left) / v, b = (-f + (n - h) / 2 + C.margin + e.top) / v, x = "scale(" + v + ") translate3d(" + y + "px, " + b + "px, 0)";
5309
- w.zoomed.style.transform = x, w.zoomedHd && (w.zoomedHd.style.transform = x);
5307
+ t ||= e.width - S.margin * 2, n ||= e.height - S.margin * 2;
5308
+ var c = C.zoomedHd || C.original, l = Od(c) ? t : c.naturalWidth || t, u = Od(c) ? n : c.naturalHeight || n, d = c.getBoundingClientRect(), f = d.top, p = d.left, m = d.width, h = d.height, g = Math.min(Math.max(m, l), t) / m, _ = Math.min(Math.max(h, u), n) / h, v = Math.min(g, _), y = (-p + (t - m) / 2 + S.margin + e.left) / v, ee = (-f + (n - h) / 2 + S.margin + e.top) / v, b = "scale(" + v + ") translate3d(" + y + "px, " + ee + "px, 0)";
5309
+ C.zoomed.style.transform = b, C.zoomedHd && (C.zoomedHd.style.transform = b);
5310
5310
  };
5311
5311
  return new r(function(n) {
5312
5312
  if (e && y.indexOf(e) === -1) {
5313
- n(ee);
5313
+ n(T);
5314
5314
  return;
5315
5315
  }
5316
5316
  var r = function e() {
5317
- x = !1, w.zoomed.removeEventListener("transitionend", e), w.original.dispatchEvent(Md("medium-zoom:opened", { detail: { zoom: ee } })), n(ee);
5317
+ b = !1, C.zoomed.removeEventListener("transitionend", e), C.original.dispatchEvent(Md("medium-zoom:opened", { detail: { zoom: T } })), n(T);
5318
5318
  };
5319
- if (w.zoomed) {
5320
- n(ee);
5319
+ if (C.zoomed) {
5320
+ n(T);
5321
5321
  return;
5322
5322
  }
5323
- if (e) w.original = e;
5324
- else if (y.length > 0) w.original = y[0];
5323
+ if (e) C.original = e;
5324
+ else if (y.length > 0) C.original = y[0];
5325
5325
  else {
5326
- n(ee);
5326
+ n(T);
5327
5327
  return;
5328
5328
  }
5329
- if (w.original.dispatchEvent(Md("medium-zoom:open", { detail: { zoom: ee } })), S = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, x = !0, w.zoomed = jd(w.original), document.body.appendChild(T), C.template) {
5330
- var i = Dd(C.template) ? C.template : document.querySelector(C.template);
5331
- w.template = document.createElement("div"), w.template.appendChild(i.content.cloneNode(!0)), document.body.appendChild(w.template);
5329
+ if (C.original.dispatchEvent(Md("medium-zoom:open", { detail: { zoom: T } })), x = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, b = !0, C.zoomed = jd(C.original), document.body.appendChild(w), S.template) {
5330
+ var i = Dd(S.template) ? S.template : document.querySelector(S.template);
5331
+ C.template = document.createElement("div"), C.template.appendChild(i.content.cloneNode(!0)), document.body.appendChild(C.template);
5332
5332
  }
5333
- if (w.original.parentElement && w.original.parentElement.tagName === "PICTURE" && w.original.currentSrc && (w.zoomed.src = w.original.currentSrc), document.body.appendChild(w.zoomed), window.requestAnimationFrame(function() {
5333
+ if (C.original.parentElement && C.original.parentElement.tagName === "PICTURE" && C.original.currentSrc && (C.zoomed.src = C.original.currentSrc), document.body.appendChild(C.zoomed), window.requestAnimationFrame(function() {
5334
5334
  document.body.classList.add("medium-zoom--opened");
5335
- }), w.original.classList.add("medium-zoom-image--hidden"), w.zoomed.classList.add("medium-zoom-image--opened"), w.zoomed.addEventListener("click", m), w.zoomed.addEventListener("transitionend", r), w.original.getAttribute("data-zoom-src")) {
5336
- w.zoomedHd = w.zoomed.cloneNode(), w.zoomedHd.removeAttribute("srcset"), w.zoomedHd.removeAttribute("sizes"), w.zoomedHd.removeAttribute("loading"), w.zoomedHd.src = w.zoomed.getAttribute("data-zoom-src"), w.zoomedHd.onerror = function() {
5337
- clearInterval(a), console.warn("Unable to reach the zoom image target " + w.zoomedHd.src), w.zoomedHd = null, t();
5335
+ }), C.original.classList.add("medium-zoom-image--hidden"), C.zoomed.classList.add("medium-zoom-image--opened"), C.zoomed.addEventListener("click", m), C.zoomed.addEventListener("transitionend", r), C.original.getAttribute("data-zoom-src")) {
5336
+ C.zoomedHd = C.zoomed.cloneNode(), C.zoomedHd.removeAttribute("srcset"), C.zoomedHd.removeAttribute("sizes"), C.zoomedHd.removeAttribute("loading"), C.zoomedHd.src = C.zoomed.getAttribute("data-zoom-src"), C.zoomedHd.onerror = function() {
5337
+ clearInterval(a), console.warn("Unable to reach the zoom image target " + C.zoomedHd.src), C.zoomedHd = null, t();
5338
5338
  };
5339
5339
  var a = setInterval(function() {
5340
- w.zoomedHd.complete && (clearInterval(a), w.zoomedHd.classList.add("medium-zoom-image--opened"), w.zoomedHd.addEventListener("click", m), document.body.appendChild(w.zoomedHd), t());
5340
+ C.zoomedHd.complete && (clearInterval(a), C.zoomedHd.classList.add("medium-zoom-image--opened"), C.zoomedHd.addEventListener("click", m), document.body.appendChild(C.zoomedHd), t());
5341
5341
  }, 10);
5342
- } else if (w.original.hasAttribute("srcset")) {
5343
- w.zoomedHd = w.zoomed.cloneNode(), w.zoomedHd.removeAttribute("sizes"), w.zoomedHd.removeAttribute("loading");
5344
- var o = w.zoomedHd.addEventListener("load", function() {
5345
- w.zoomedHd.removeEventListener("load", o), w.zoomedHd.classList.add("medium-zoom-image--opened"), w.zoomedHd.addEventListener("click", m), document.body.appendChild(w.zoomedHd), t();
5342
+ } else if (C.original.hasAttribute("srcset")) {
5343
+ C.zoomedHd = C.zoomed.cloneNode(), C.zoomedHd.removeAttribute("sizes"), C.zoomedHd.removeAttribute("loading");
5344
+ var o = C.zoomedHd.addEventListener("load", function() {
5345
+ C.zoomedHd.removeEventListener("load", o), C.zoomedHd.classList.add("medium-zoom-image--opened"), C.zoomedHd.addEventListener("click", m), document.body.appendChild(C.zoomedHd), t();
5346
5346
  });
5347
5347
  } else t();
5348
5348
  });
5349
5349
  }, m = function() {
5350
5350
  return new r(function(e) {
5351
- if (x || !w.original) {
5352
- e(ee);
5351
+ if (b || !C.original) {
5352
+ e(T);
5353
5353
  return;
5354
5354
  }
5355
5355
  var t = function t() {
5356
- w.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(w.zoomed), w.zoomedHd && document.body.removeChild(w.zoomedHd), document.body.removeChild(T), w.zoomed.classList.remove("medium-zoom-image--opened"), w.template && document.body.removeChild(w.template), x = !1, w.zoomed.removeEventListener("transitionend", t), w.original.dispatchEvent(Md("medium-zoom:closed", { detail: { zoom: ee } })), w.original = null, w.zoomed = null, w.zoomedHd = null, w.template = null, e(ee);
5356
+ C.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(C.zoomed), C.zoomedHd && document.body.removeChild(C.zoomedHd), document.body.removeChild(w), C.zoomed.classList.remove("medium-zoom-image--opened"), C.template && document.body.removeChild(C.template), b = !1, C.zoomed.removeEventListener("transitionend", t), C.original.dispatchEvent(Md("medium-zoom:closed", { detail: { zoom: T } })), C.original = null, C.zoomed = null, C.zoomedHd = null, C.template = null, e(T);
5357
5357
  };
5358
- x = !0, document.body.classList.remove("medium-zoom--opened"), w.zoomed.style.transform = "", w.zoomedHd && (w.zoomedHd.style.transform = ""), w.template && (w.template.style.transition = "opacity 150ms", w.template.style.opacity = 0), w.original.dispatchEvent(Md("medium-zoom:close", { detail: { zoom: ee } })), w.zoomed.addEventListener("transitionend", t);
5358
+ b = !0, document.body.classList.remove("medium-zoom--opened"), C.zoomed.style.transform = "", C.zoomedHd && (C.zoomedHd.style.transform = ""), C.template && (C.template.style.transition = "opacity 150ms", C.template.style.opacity = 0), C.original.dispatchEvent(Md("medium-zoom:close", { detail: { zoom: T } })), C.zoomed.addEventListener("transitionend", t);
5359
5359
  });
5360
5360
  }, h = function() {
5361
5361
  var e = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).target;
5362
- return w.original ? m() : p({ target: e });
5362
+ return C.original ? m() : p({ target: e });
5363
5363
  }, g = function() {
5364
- return C;
5364
+ return S;
5365
5365
  }, _ = function() {
5366
5366
  return y;
5367
5367
  }, v = function() {
5368
- return w.original;
5369
- }, y = [], b = [], x = !1, S = 0, C = n, w = {
5368
+ return C.original;
5369
+ }, y = [], ee = [], b = !1, x = 0, S = n, C = {
5370
5370
  original: null,
5371
5371
  zoomed: null,
5372
5372
  zoomedHd: null,
5373
5373
  template: null
5374
5374
  };
5375
- Object.prototype.toString.call(t) === "[object Object]" ? C = t : (t || typeof t == "string") && l(t), C = wd({
5375
+ Object.prototype.toString.call(t) === "[object Object]" ? S = t : (t || typeof t == "string") && l(t), S = wd({
5376
5376
  margin: 0,
5377
5377
  background: "#fff",
5378
5378
  scrollOffset: 40,
5379
5379
  container: null,
5380
5380
  template: null
5381
- }, C);
5382
- var T = Ad(C.background);
5381
+ }, S);
5382
+ var w = Ad(S.background);
5383
5383
  document.addEventListener("click", i), document.addEventListener("keyup", o), document.addEventListener("scroll", a), window.addEventListener("resize", m);
5384
- var ee = {
5384
+ var T = {
5385
5385
  open: p,
5386
5386
  close: m,
5387
5387
  toggle: h,
@@ -5395,7 +5395,7 @@ var wd = Object.assign || function(e) {
5395
5395
  getImages: _,
5396
5396
  getZoomedImage: v
5397
5397
  };
5398
- return ee;
5398
+ return T;
5399
5399
  };
5400
5400
  function Pd(e, t) {
5401
5401
  t === void 0 && (t = {});
@@ -5982,8 +5982,8 @@ var Fd = {
5982
5982
  break;
5983
5983
  }
5984
5984
  }
5985
- let y = e.parentType, b = e.lineMax;
5986
- return e.parentType = "root", e.lineMax = d, f = e.push("admonition_open", "div", 1), f.markup = _, f.block = !0, f.info = a, f.map = [t, d], o && (f = e.push("admonition_title_open", "p", 1), f.markup = _ + " " + a, f.map = [t, d], f = e.push("inline", "", 0), f.content = o, f.map = [t, e.line - 1], f.children = [], f = e.push("admonition_title_close", "p", -1), f.markup = _ + " " + a), e.md.block.tokenize(e, t + 1, d), f = e.push("admonition_close", "div", -1), f.markup = e.src.slice(m, u), f.block = !0, e.parentType = y, e.lineMax = b, e.line = d + +!!p, !0;
5985
+ let y = e.parentType, ee = e.lineMax;
5986
+ return e.parentType = "root", e.lineMax = d, f = e.push("admonition_open", "div", 1), f.markup = _, f.block = !0, f.info = a, f.map = [t, d], o && (f = e.push("admonition_title_open", "p", 1), f.markup = _ + " " + a, f.map = [t, d], f = e.push("inline", "", 0), f.content = o, f.map = [t, e.line - 1], f.children = [], f = e.push("admonition_title_close", "p", -1), f.markup = _ + " " + a), e.md.block.tokenize(e, t + 1, d), f = e.push("admonition_close", "div", -1), f.markup = e.src.slice(m, u), f.block = !0, e.parentType = y, e.lineMax = ee, e.line = d + +!!p, !0;
5987
5987
  }, { alt: [
5988
5988
  "paragraph",
5989
5989
  "reference",
@@ -6012,8 +6012,8 @@ var Fd = {
6012
6012
  };
6013
6013
  }, d = (r, s, d, f, p) => {
6014
6014
  if (r[s].hidden) return "";
6015
- let m = t.usedLanguageTextRef.value?.copyCode.text || "", h = t.customIconRef.value.copy, g = e.utils.escapeHtml(m), _ = h || g, v = !!h, y = `<span class="${q}-collapse-tips">${Yo("collapse-tips", t.customIconRef.value)}</span>`, [b] = c(r[s]);
6016
- if (b === null) {
6015
+ let m = t.usedLanguageTextRef.value?.copyCode.text || "", h = t.customIconRef.value.copy, g = e.utils.escapeHtml(m), _ = h || g, v = !!h, y = `<span class="${q}-collapse-tips">${Yo("collapse-tips", t.customIconRef.value)}</span>`, [ee] = c(r[s]);
6016
+ if (ee === null) {
6017
6017
  let { open: i, tagContainer: o, tagHeader: c } = u(r[s]), l = [["class", `${q}-code`]];
6018
6018
  i && l.push(["open", ""]);
6019
6019
  let m = { attrs: $d(r[s], l) };
@@ -6034,34 +6034,34 @@ var Fd = {
6034
6034
  </${o}>
6035
6035
  `;
6036
6036
  }
6037
- let x, S, C, w, T = "", ee = "", te = "", { open: ne, tagContainer: re, tagHeader: ie } = u(r[s]), ae = [["class", `${q}-code`]];
6037
+ let b, x, S, C, w = "", T = "", te = "", { open: ne, tagContainer: re, tagHeader: ie } = u(r[s]), ae = [["class", `${q}-code`]];
6038
6038
  ne && ae.push(["open", ""]);
6039
6039
  let oe = { attrs: $d(r[s], ae) };
6040
- for (let t = s; t < r.length && (x = r[t], [S, C] = c(x), S === b); t++) {
6041
- x.info = x.info.replace(i, "").replace(a, ""), x.hidden = !0;
6040
+ for (let t = s; t < r.length && (b = r[t], [x, S] = c(b), x === ee); t++) {
6041
+ b.info = b.info.replace(i, "").replace(a, ""), b.hidden = !0;
6042
6042
  let c = `${q}-codetab-${o}-${s}-${t - s}`;
6043
- w = t - s > 0 ? "" : "checked", T += `
6043
+ C = t - s > 0 ? "" : "checked", w += `
6044
6044
  <li>
6045
6045
  <input
6046
6046
  type="radio"
6047
6047
  id="label-${q}-codetab-label-1-${o}-${s}-${t - s}"
6048
6048
  name="${q}-codetab-label-${o}-${s}"
6049
6049
  class="${c}"
6050
- ${w}
6050
+ ${C}
6051
6051
  >
6052
6052
  <label
6053
6053
  for="label-${q}-codetab-label-1-${o}-${s}-${t - s}"
6054
6054
  onclick="this.getRootNode().querySelectorAll('.${c}').forEach(e => e.click())"
6055
6055
  >
6056
- ${e.utils.escapeHtml(C || l(x))}
6056
+ ${e.utils.escapeHtml(S || l(b))}
6057
6057
  </label>
6058
- </li>`, ee += `
6058
+ </li>`, T += `
6059
6059
  <div role="tabpanel">
6060
6060
  <input
6061
6061
  type="radio"
6062
6062
  name="${q}-codetab-pre-${o}-${s}"
6063
6063
  class="${c}"
6064
- ${w}
6064
+ ${C}
6065
6065
  role="presentation">
6066
6066
  ${n(r, t, d, f, p)}
6067
6067
  </div>`, te += `
@@ -6069,15 +6069,15 @@ var Fd = {
6069
6069
  type="radio"
6070
6070
  name="${q}-codetab-lang-${o}-${s}"
6071
6071
  class="${c}"
6072
- ${w}
6072
+ ${C}
6073
6073
  role="presentation">
6074
- <span class=${q}-code-lang role="note">${e.utils.escapeHtml(l(x))}</span>`;
6074
+ <span class=${q}-code-lang role="note">${e.utils.escapeHtml(l(b))}</span>`;
6075
6075
  }
6076
6076
  return `
6077
6077
  <${re} ${p.renderAttrs(oe)}>
6078
6078
  <${ie} class="${q}-code-head">
6079
6079
  <div class="${q}-code-flag">
6080
- <ul class="${q}-codetab-label" role="tablist">${T}</ul>
6080
+ <ul class="${q}-codetab-label" role="tablist">${w}</ul>
6081
6081
  </div>
6082
6082
  <div class="${q}-code-action">
6083
6083
  <span class="${q}-codetab-lang">${te}</span>
@@ -6086,7 +6086,7 @@ var Fd = {
6086
6086
  ${re === "details" ? y : ""}
6087
6087
  </div>
6088
6088
  </${ie}>
6089
- ${ee}
6089
+ ${T}
6090
6090
  </${re}>
6091
6091
  `;
6092
6092
  };
@@ -6278,13 +6278,13 @@ var Fd = {
6278
6278
  e.map && e.attrSet("data-line", e.map[0].toString());
6279
6279
  }), !0));
6280
6280
  }, wf = (e, t) => {
6281
- let { editorConfig: n, markdownItConfig: r, markdownItPlugins: i, editorExtensions: a } = so, o = R("editorId"), s = R("language"), c = R("usedLanguageText"), l = R("showCodeRowNumber"), u = R("theme"), d = R("customIcon"), f = R("rootRef"), p = R("setting"), m = B([]), h = qd(e), g = Jd(e), { reRenderRef: _, replaceMermaid: v } = Xd(e), { reRenderEcharts: y, replaceEcharts: b } = Kd(e), x = fd({
6281
+ let { editorConfig: n, markdownItConfig: r, markdownItPlugins: i, editorExtensions: a } = so, o = R("editorId"), s = R("language"), c = R("usedLanguageText"), l = R("showCodeRowNumber"), u = R("theme"), d = R("customIcon"), f = R("rootRef"), p = R("setting"), m = B([]), h = qd(e), g = Jd(e), { reRenderRef: _, replaceMermaid: v } = Xd(e), { reRenderEcharts: y, replaceEcharts: ee } = Kd(e), b = fd({
6282
6282
  html: !0,
6283
6283
  breaks: !0,
6284
6284
  linkify: !0
6285
6285
  });
6286
- r(x, { editorId: o });
6287
- let S = [
6286
+ r(b, { editorId: o });
6287
+ let x = [
6288
6288
  {
6289
6289
  type: "image",
6290
6290
  plugin: _d,
@@ -6333,44 +6333,44 @@ var Fd = {
6333
6333
  options: {}
6334
6334
  }
6335
6335
  ];
6336
- e.noKatex || S.push({
6336
+ e.noKatex || x.push({
6337
6337
  type: "katex",
6338
6338
  plugin: cf,
6339
6339
  options: { katexRef: g }
6340
- }), e.noMermaid || S.push({
6340
+ }), e.noMermaid || x.push({
6341
6341
  type: "mermaid",
6342
6342
  plugin: lf,
6343
6343
  options: { themeRef: u }
6344
- }), e.noEcharts || S.push({
6344
+ }), e.noEcharts || x.push({
6345
6345
  type: "echarts",
6346
6346
  plugin: nf,
6347
6347
  options: { themeRef: u }
6348
- }), i(S, { editorId: o }).forEach((e) => {
6349
- x.use(e.plugin, e.options);
6348
+ }), i(x, { editorId: o }).forEach((e) => {
6349
+ b.use(e.plugin, e.options);
6350
6350
  });
6351
- let C = x.options.highlight;
6352
- x.set({ highlight: (t, n, r) => {
6353
- if (C) {
6354
- let e = C(t, n, r);
6351
+ let S = b.options.highlight;
6352
+ b.set({ highlight: (t, n, r) => {
6353
+ if (S) {
6354
+ let e = S(t, n, r);
6355
6355
  if (e) return e;
6356
6356
  }
6357
6357
  let i;
6358
6358
  i = !e.noHighlight && h.value ? h.value.getLanguage(n) ? h.value.highlight(t, {
6359
6359
  language: n,
6360
6360
  ignoreIllegals: !0
6361
- }).value : h.value.highlightAuto(t).value : x.utils.escapeHtml(t);
6362
- let a = x.utils.escapeHtml(n);
6361
+ }).value : h.value.highlightAuto(t).value : b.utils.escapeHtml(t);
6362
+ let a = b.utils.escapeHtml(n);
6363
6363
  return `<pre><code class="language-${a}" language="${a}">${l ? Ro(i.replace(/^\n+|\n+$/g, ""), t.replace(/^\n+|\n+$/g, "")) : `<span class="${q}-code-block">${i.replace(/^\n+|\n+$/g, "")}</span>`}</code></pre>`;
6364
- } }), Cf(x);
6365
- let w = B(`_article-key_${Ha()}`), T = B(e.sanitize(x.render(e.modelValue, { srcLines: e.modelValue.split("\n") }))), ee = () => {}, te = () => {}, ne = () => {
6364
+ } }), Cf(b);
6365
+ let C = B(`_article-key_${Ha()}`), w = B(e.sanitize(b.render(e.modelValue, { srcLines: e.modelValue.split("\n") }))), T = () => {}, te = () => {}, ne = () => {
6366
6366
  let e = f.value?.querySelectorAll(`#${o} p.${q}-mermaid:not([data-closed=false])`);
6367
- te(), te = es(e, { customIcon: d.value }), a.mermaid?.enableZoom && (ee(), ee = ts(e, { customIcon: d.value }));
6367
+ te(), te = es(e, { customIcon: d.value }), a.mermaid?.enableZoom && (T(), T = ts(e, { customIcon: d.value }));
6368
6368
  }, re = () => {
6369
- J.emit(o, wo, T.value), e.onHtmlChanged(T.value), e.onGetCatalog(m.value), J.emit(o, Ao, m.value), rr(() => {
6370
- v().then(ne), b();
6369
+ J.emit(o, wo, w.value), e.onHtmlChanged(w.value), e.onGetCatalog(m.value), J.emit(o, Ao, m.value), rr(() => {
6370
+ v().then(ne), ee();
6371
6371
  });
6372
6372
  }, ie = () => {
6373
- m.value = [], T.value = e.sanitize(x.render(e.modelValue, { srcLines: e.modelValue.split("\n") }));
6373
+ m.value = [], w.value = e.sanitize(b.render(e.modelValue, { srcLines: e.modelValue.split("\n") }));
6374
6374
  }, ae = A(() => (e.noKatex || !!g.value) && (e.noHighlight || !!h.value)), oe = -1;
6375
6375
  return G([
6376
6376
  _r(e, "modelValue"),
@@ -6383,9 +6383,9 @@ var Fd = {
6383
6383
  }, t ? 0 : n.renderDelay);
6384
6384
  }), G(() => p.value.preview, () => {
6385
6385
  p.value.preview && rr(() => {
6386
- v().then(ne), b(), J.emit(o, "catalogChanged", m.value);
6386
+ v().then(ne), ee(), J.emit(o, "catalogChanged", m.value);
6387
6387
  });
6388
- }), G([T, y], () => {
6388
+ }), G([w, y], () => {
6389
6389
  re();
6390
6390
  }), cr(re), cr(() => {
6391
6391
  J.on(o, {
@@ -6396,14 +6396,14 @@ var Fd = {
6396
6396
  }), J.on(o, {
6397
6397
  name: Mo,
6398
6398
  callback: () => {
6399
- w.value = `_article-key_${Ha()}`, ie();
6399
+ C.value = `_article-key_${Ha()}`, ie();
6400
6400
  }
6401
6401
  });
6402
6402
  }), sr(() => {
6403
- ee(), te(), clearTimeout(oe);
6403
+ T(), te(), clearTimeout(oe);
6404
6404
  }), {
6405
- html: T,
6406
- key: w
6405
+ html: w,
6406
+ key: C
6407
6407
  };
6408
6408
  }, Tf = (e, t) => {
6409
6409
  let n = R("editorId"), r = R("setting"), { noImgZoomIn: i } = e, a = La(() => {
@@ -14543,21 +14543,21 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14543
14543
  let t = gx(e);
14544
14544
  return e.compartment ? e.compartment.of(t) : t;
14545
14545
  }, vx = (e) => {
14546
- let t = R("tabWidth"), n = R("editorId"), r = R("theme"), i = R("previewTheme"), a = R("language"), o = R("usedLanguageText"), s = R("disabled"), c = R("contentDisabled"), l = R("showToolbarName"), u = R("customIcon"), d = R("noUploadImg"), f = R("tableShape"), p = R("noPrettier"), m = R("codeTheme"), h = R("setting"), g = R("updateSetting"), _ = R("catalogVisible"), v = R("defToolbars"), y = R("floatingToolbars"), b = R("rootRef"), x = B(), S = gr(), C = B(!1), w = new ht(), T = new ht(), ee = new ht(), te = new ht(), ne = new ht(), re = Zb(n, { noPrettier: p }), ie = () => [
14546
+ let t = R("tabWidth"), n = R("editorId"), r = R("theme"), i = R("previewTheme"), a = R("language"), o = R("usedLanguageText"), s = R("disabled"), c = R("contentDisabled"), l = R("showToolbarName"), u = R("customIcon"), d = R("noUploadImg"), f = R("tableShape"), p = R("noPrettier"), m = R("codeTheme"), h = R("setting"), g = R("updateSetting"), _ = R("catalogVisible"), v = R("defToolbars"), y = R("floatingToolbars"), ee = R("rootRef"), b = B(), x = gr(), S = B(!1), C = new ht(), w = new ht(), T = new ht(), te = new ht(), ne = new ht(), re = Zb(n, { noPrettier: p }), ie = () => [
14547
14547
  ...re,
14548
14548
  ...ng,
14549
14549
  ...mm,
14550
14550
  rg
14551
14551
  ], ae = {
14552
- paste: Xb(e, S),
14552
+ paste: Xb(e, x),
14553
14553
  blur: e.onBlur,
14554
14554
  focus: e.onFocus,
14555
14555
  drop: e.onDrop,
14556
14556
  compositionstart: () => {
14557
- C.value = !0;
14557
+ S.value = !0;
14558
14558
  },
14559
14559
  compositionend: (t, n) => {
14560
- C.value = !1, e.updateModelValue(n.state.doc.toString());
14560
+ S.value = !1, e.updateModelValue(n.state.doc.toString());
14561
14561
  },
14562
14562
  input: (t) => {
14563
14563
  e.onInput && e.onInput(t);
@@ -14569,18 +14569,18 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14569
14569
  });
14570
14570
  }
14571
14571
  }, oe = db({ privide(e) {
14572
- e.provide("editorId", n), e.provide("theme", r), e.provide("previewTheme", i), e.provide("language", a), e.provide("disabled", s), e.provide("contentDisabled", c), e.provide("noUploadImg", d), e.provide("tableShape", f), e.provide("noPrettier", p), e.provide("codeTheme", m), e.provide("showToolbarName", l), e.provide("setting", h), e.provide("updateSetting", g), e.provide("usedLanguageText", o), e.provide("catalogVisible", _), e.provide("defToolbars", v), e.provide("tabWidth", t), e.provide("customIcon", u), e.provide("floatingToolbars", y), e.provide("rootRef", b);
14572
+ e.provide("editorId", n), e.provide("theme", r), e.provide("previewTheme", i), e.provide("language", a), e.provide("disabled", s), e.provide("contentDisabled", c), e.provide("noUploadImg", d), e.provide("tableShape", f), e.provide("noPrettier", p), e.provide("codeTheme", m), e.provide("showToolbarName", l), e.provide("setting", h), e.provide("updateSetting", g), e.provide("usedLanguageText", o), e.provide("catalogVisible", _), e.provide("defToolbars", v), e.provide("tabWidth", t), e.provide("customIcon", u), e.provide("floatingToolbars", y), e.provide("rootRef", ee);
14573
14573
  } }), se = [
14574
14574
  {
14575
14575
  type: "theme",
14576
14576
  extension: ({ theme: e }) => e.value === "light" ? Ab : Yb,
14577
- compartment: w,
14577
+ compartment: C,
14578
14578
  options: { theme: r }
14579
14579
  },
14580
14580
  {
14581
14581
  type: "updateListener",
14582
14582
  extension: st.updateListener.of((t) => {
14583
- t.docChanged && (e.onChange(t.state.doc.toString()), C.value || e.updateModelValue(t.state.doc.toString()));
14583
+ t.docChanged && (e.onChange(t.state.doc.toString()), S.value || e.updateModelValue(t.state.doc.toString()));
14584
14584
  })
14585
14585
  },
14586
14586
  {
@@ -14591,12 +14591,12 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14591
14591
  {
14592
14592
  type: "completions",
14593
14593
  extension: Sy(e.completions),
14594
- compartment: T
14594
+ compartment: w
14595
14595
  },
14596
14596
  {
14597
14597
  type: "history",
14598
14598
  extension: Yp(),
14599
- compartment: ee
14599
+ compartment: T
14600
14600
  }
14601
14601
  ], ce = so.codeMirrorExtensions([
14602
14602
  {
@@ -14633,10 +14633,10 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14633
14633
  return cr(() => {
14634
14634
  let r = new st({
14635
14635
  doc: e.modelValue,
14636
- parent: x.value,
14636
+ parent: b.value,
14637
14637
  extensions: le()
14638
14638
  }), i = new _y(r);
14639
- S.value = i, setTimeout(() => {
14639
+ x.value = i, setTimeout(() => {
14640
14640
  i.setTabSize(t), i.setDisabled(s.value), i.setReadOnly(e.readonly), e.placeholder && i.setPlaceholder(e.placeholder), typeof e.maxlength == "number" && i.setMaxLength(e.maxlength), e.autofocus && r.focus();
14641
14641
  }, 0), J.on(n, {
14642
14642
  name: Oo,
@@ -14654,8 +14654,8 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14654
14654
  let a = () => c.value && i !== "programmatic";
14655
14655
  if (a()) return;
14656
14656
  let o = async (e) => {
14657
- let { text: r, options: i } = await rx(t, S.value, e);
14658
- a() || S.value?.replaceSelectedText(r, i, n);
14657
+ let { text: r, options: i } = await rx(t, x.value, e);
14658
+ a() || x.value?.replaceSelectedText(r, i, n);
14659
14659
  };
14660
14660
  if (t === "image" && r.transform) {
14661
14661
  let t = e.transformImgUrl(r.url);
@@ -14680,7 +14680,7 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14680
14680
  e[i](t, n), t.defaultPrevented || ae[i](t, n);
14681
14681
  } : e[i];
14682
14682
  }
14683
- S.value?.view.dispatch({ effects: te.reconfigure(st.domEventHandlers(t)) });
14683
+ x.value?.view.dispatch({ effects: te.reconfigure(st.domEventHandlers(t)) });
14684
14684
  })
14685
14685
  }), J.on(n, {
14686
14686
  name: Po,
@@ -14700,27 +14700,27 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
14700
14700
  }
14701
14701
  }), J.emit(n, Io, r);
14702
14702
  }), G(r, () => {
14703
- S.value?.view.dispatch({ effects: w.reconfigure(r.value === "light" ? Ab : Yb) });
14703
+ x.value?.view.dispatch({ effects: C.reconfigure(r.value === "light" ? Ab : Yb) });
14704
14704
  }, { deep: !0 }), G(() => e.completions, () => {
14705
- S.value?.view.dispatch({ effects: T.reconfigure(Sy(e.completions)) });
14705
+ x.value?.view.dispatch({ effects: w.reconfigure(Sy(e.completions)) });
14706
14706
  }, { deep: !0 }), G(() => e.modelValue, () => {
14707
- S.value?.getValue() !== e.modelValue && S.value?.setValue(e.modelValue);
14707
+ x.value?.getValue() !== e.modelValue && x.value?.setValue(e.modelValue);
14708
14708
  }), G(() => e.placeholder, () => {
14709
- S.value?.setPlaceholder(e.placeholder);
14709
+ x.value?.setPlaceholder(e.placeholder);
14710
14710
  }), G([s], () => {
14711
- S.value?.setDisabled(s.value);
14711
+ x.value?.setDisabled(s.value);
14712
14712
  }), G(() => e.readonly, () => {
14713
- S.value?.setReadOnly(e.readonly);
14713
+ x.value?.setReadOnly(e.readonly);
14714
14714
  }), G(() => e.maxlength, () => {
14715
- e.maxlength && S.value?.setMaxLength(e.maxlength);
14715
+ e.maxlength && x.value?.setMaxLength(e.maxlength);
14716
14716
  }), yy(() => {
14717
14717
  let e = ce.find((e) => e.type === "floatingToolbar");
14718
- e?.compartment && (y.value.length > 0 ? S.value?.view.dispatch({ effects: e.compartment.reconfigure(gx(e)) }) : S.value?.view.dispatch({ effects: e.compartment.reconfigure([]) }));
14718
+ e?.compartment && (y.value.length > 0 ? x.value?.view.dispatch({ effects: e.compartment.reconfigure(gx(e)) }) : x.value?.view.dispatch({ effects: e.compartment.reconfigure([]) }));
14719
14719
  }, y), {
14720
- inputWrapperRef: x,
14721
- codeMirrorUt: S,
14720
+ inputWrapperRef: b,
14721
+ codeMirrorUt: x,
14722
14722
  resetHistory() {
14723
- S.value?.view.dispatch({ effects: ee.reconfigure([]) }), S.value?.view.dispatch({ effects: ee.reconfigure(Yp()) });
14723
+ x.value?.view.dispatch({ effects: T.reconfigure([]) }), x.value?.view.dispatch({ effects: T.reconfigure(Yp()) });
14724
14724
  }
14725
14725
  };
14726
14726
  }, yx = (e, t, n) => {
@@ -15113,15 +15113,15 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
15113
15113
  e.onBlur?.(n), t.emit("onBlur", n);
15114
15114
  }, y = (n) => {
15115
15115
  e.onFocus?.(n), t.emit("onFocus", n);
15116
- }, b = (n) => {
15116
+ }, ee = (n) => {
15117
15117
  e.onInput?.(n), t.emit("onInput", n);
15118
- }, x = (n) => {
15118
+ }, b = (n) => {
15119
15119
  e.onDrop?.(n), t.emit("onDrop", n);
15120
- }, S = (n) => {
15120
+ }, x = (n) => {
15121
15121
  e.oninputBoxWidthChange?.(n), t.emit("oninputBoxWidthChange", n);
15122
- }, C = () => {
15122
+ }, S = () => {
15123
15123
  e.onRemount?.(), t.emit("onRemount");
15124
- }, w = (e) => {
15124
+ }, C = (e) => {
15125
15125
  a.scrollAuto = e;
15126
15126
  };
15127
15127
  return () => I("div", {
@@ -15160,17 +15160,17 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
15160
15160
  onGetCatalog: _,
15161
15161
  onBlur: v,
15162
15162
  onFocus: y,
15163
- onInput: b,
15163
+ onInput: ee,
15164
15164
  completions: e.completions,
15165
15165
  noImgZoomIn: e.noImgZoomIn,
15166
- onDrop: x,
15166
+ onDrop: b,
15167
15167
  inputBoxWidth: e.inputBoxWidth,
15168
- oninputBoxWidthChange: S,
15168
+ oninputBoxWidthChange: x,
15169
15169
  sanitizeMermaid: e.sanitizeMermaid,
15170
15170
  transformImgUrl: e.transformImgUrl,
15171
15171
  codeFoldable: e.codeFoldable,
15172
15172
  autoFoldThreshold: e.autoFoldThreshold,
15173
- onRemount: C,
15173
+ onRemount: S,
15174
15174
  catalogLayout: e.catalogLayout,
15175
15175
  catalogMaxDepth: e.catalogMaxDepth,
15176
15176
  noEcharts: e.noEcharts,
@@ -15182,7 +15182,7 @@ var gx = (e) => e.extension instanceof Function ? e.extension(e.options) : e.ext
15182
15182
  defFooters: l.value,
15183
15183
  noScrollAuto: !d.preview && !d.htmlPreview || d.previewOnly,
15184
15184
  scrollAuto: a.scrollAuto,
15185
- onScrollAutoChange: w
15185
+ onScrollAutoChange: C
15186
15186
  }, null)
15187
15187
  ]);
15188
15188
  }
@@ -16388,7 +16388,7 @@ var PS = MS, FS = {
16388
16388
  ]);
16389
16389
  };
16390
16390
  }
16391
- }), HS = Object.values(g), US = .6, WS = C.parse({}), GS = /* @__PURE__ */ L({
16391
+ }), HS = Object.values(S), US = .6, WS = x.parse({}), GS = /* @__PURE__ */ L({
16392
16392
  __name: "PkToolApprovalBadge",
16393
16393
  setup(e) {
16394
16394
  let { t } = Er({ useScope: "global" });
@@ -16492,11 +16492,11 @@ var PS = MS, FS = {
16492
16492
  }),
16493
16493
  emits: ["update:reasoning"],
16494
16494
  setup(e) {
16495
- let { t } = Er({ useScope: "global" }), n = e, r = W(e, "reasoning"), i = A(() => p("openai", r.value)), a = A(() => p("anthropic", r.value)), o = A(() => p("google", r.value)), s = A(() => ae(n.activeProvider) ? p(n.activeProvider, r.value) : void 0), c = A(() => ({
16495
+ let { t } = Er({ useScope: "global" }), n = e, r = W(e, "reasoning"), i = A(() => h("openai", r.value)), a = A(() => h("anthropic", r.value)), o = A(() => h("google", r.value)), s = A(() => p(n.activeProvider) ? h(n.activeProvider, r.value) : void 0), c = A(() => ({
16496
16496
  openai: i.value !== r.value?.openai,
16497
16497
  anthropic: a.value !== r.value?.anthropic,
16498
16498
  google: o.value !== r.value?.google,
16499
- generic: ae(n.activeProvider) && s.value !== r.value?.[n.activeProvider]
16499
+ generic: p(n.activeProvider) && s.value !== r.value?.[n.activeProvider]
16500
16500
  })), l = {
16501
16501
  auto: "Auto",
16502
16502
  concise: "Concise",
@@ -16511,9 +16511,9 @@ var PS = MS, FS = {
16511
16511
  }, u = (e) => e.map((e) => ({
16512
16512
  label: l[e] ?? e,
16513
16513
  value: e
16514
- })), d = u(y), f = u(re), m = u(x), h = u(S), g = u(ie);
16514
+ })), d = u(_), f = u(re), m = u(ee), g = u(b), v = u(ie);
16515
16515
  return (n, l) => {
16516
- let u = Fn, p = Vn;
16516
+ let u = Fn, h = Vn;
16517
16517
  return e.activeProvider === "openai" ? (z(), N(k, { key: 0 }, [I(u, {
16518
16518
  "model-value": i.value?.reasoningEffort,
16519
16519
  name: "reasoning.openai.reasoningEffort",
@@ -16546,7 +16546,7 @@ var PS = MS, FS = {
16546
16546
  label: U(t)("label.reasoningSummary"),
16547
16547
  placeholder: U(t)("placeholder.select"),
16548
16548
  class: "mb-0",
16549
- options: U(g),
16549
+ options: U(v),
16550
16550
  "onUpdate:modelValue": l[1] ||= (e) => r.value = {
16551
16551
  ...r.value,
16552
16552
  openai: {
@@ -16646,7 +16646,7 @@ var PS = MS, FS = {
16646
16646
  "label",
16647
16647
  "placeholder"
16648
16648
  ])) : M("", !0),
16649
- a.value?.type === "enabled" ? (z(), j(p, {
16649
+ a.value?.type === "enabled" ? (z(), j(h, {
16650
16650
  key: 2,
16651
16651
  "model-value": a.value?.budgetTokens,
16652
16652
  name: "reasoning.anthropic.budgetTokens",
@@ -16692,7 +16692,7 @@ var PS = MS, FS = {
16692
16692
  "hint-label",
16693
16693
  "options"
16694
16694
  ]),
16695
- I(p, {
16695
+ I(h, {
16696
16696
  "model-value": o.value?.thinkingBudget,
16697
16697
  name: "reasoning.google.thinkingBudget",
16698
16698
  type: "number",
@@ -16755,7 +16755,7 @@ var PS = MS, FS = {
16755
16755
  "label",
16756
16756
  "placeholder",
16757
16757
  "options"
16758
- ])) : U(ae)(e.activeProvider) ? (z(), j(u, {
16758
+ ])) : U(p)(e.activeProvider) ? (z(), j(u, {
16759
16759
  key: 4,
16760
16760
  "model-value": s.value?.reasoningEffort,
16761
16761
  name: `reasoning.${e.activeProvider}.reasoningEffort`,
@@ -16766,7 +16766,7 @@ var PS = MS, FS = {
16766
16766
  label: U(t)("label.reasoningEffort"),
16767
16767
  placeholder: U(t)("placeholder.select"),
16768
16768
  "hint-label": c.value.generic ? U(t)("hint.reasoningDefault") : void 0,
16769
- options: U(h),
16769
+ options: U(g),
16770
16770
  "onUpdate:modelValue": l[10] ||= (t) => r.value = {
16771
16771
  ...r.value,
16772
16772
  [e.activeProvider]: { reasoningEffort: t }
@@ -16789,7 +16789,7 @@ var PS = MS, FS = {
16789
16789
  }, {
16790
16790
  webSearch: { default: () => ({
16791
16791
  enabled: !1,
16792
- provider: oe.Native
16792
+ provider: v.Native
16793
16793
  }) },
16794
16794
  webSearchModifiers: {}
16795
16795
  }),
@@ -17153,7 +17153,7 @@ var PS = MS, FS = {
17153
17153
  }),
17154
17154
  emits: ["update:modelValue"],
17155
17155
  setup(e) {
17156
- let t = e, n = W(e, "modelValue"), r = A(() => t.type === b.Chat);
17156
+ let t = e, n = W(e, "modelValue"), r = A(() => t.type === y.Chat);
17157
17157
  function i(e) {
17158
17158
  return n.value.includes(e);
17159
17159
  }
@@ -17339,7 +17339,7 @@ var PS = MS, FS = {
17339
17339
  agentIdModifiers: {},
17340
17340
  name: { default: "" },
17341
17341
  nameModifiers: {},
17342
- type: { default: b.Chat },
17342
+ type: { default: y.Chat },
17343
17343
  typeModifiers: {},
17344
17344
  initialMessage: { default: void 0 },
17345
17345
  initialMessageModifiers: {},
@@ -17375,7 +17375,7 @@ var PS = MS, FS = {
17375
17375
  reasoningModifiers: {},
17376
17376
  webSearch: { default: () => ({
17377
17377
  enabled: !1,
17378
- provider: oe.Perplexity
17378
+ provider: v.Perplexity
17379
17379
  }) },
17380
17380
  webSearchModifiers: {},
17381
17381
  theme: { default: "light" },
@@ -17531,7 +17531,7 @@ var PS = MS, FS = {
17531
17531
  return Array.isArray(e) ? e : [];
17532
17532
  }
17533
17533
  return [];
17534
- }, i = e, { errors: a } = vr(i), o = W(e, "agentId"), s = W(e, "name"), c = W(e, "type"), l = W(e, "initialMessage"), u = W(e, "messagePlaceholder"), d = W(e, "dismissableNotice"), f = W(e, "footerMessage"), p = W(e, "model"), h = W(e, "temperature"), g = W(e, "prompt"), y = W(e, "status"), x = W(e, "visibility"), S = W(e, "limit"), C = W(e, "maxStepCount"), te = W(e, "maxOutputTokens"), re = W(e, "presencePenalty"), ie = W(e, "frequencyPenalty"), ae = W(e, "searchMode"), oe = W(e, "reasoning"), se = W(e, "webSearch"), ce = W(e, "theme"), le = W(e, "mainColor"), ue = W(e, "textColor"), de = W(e, "useColorsForAgentHeader"), fe = W(e, "welcomePopup"), pe = W(e, "interactiveLogin"), me = W(e, "floatingButtonPosition"), he = W(e, "maxMessageLength"), ge = W(e, "media"), _e = W(e, "minuteRateLimit"), ve = W(e, "hourRateLimit"), ye = W(e, "dayRateLimit"), be = W(e, "monthRateLimit"), xe = W(e, "trustedOrigins"), Se = W(e, "disabledTools"), Ce = W(e, "approvalTools"), we = W(e, "useAllUserKb"), Te = W(e, "useAllUserFiles"), Ee = W(e, "formMaxSteps"), De = W(e, "formMaxOptionsPerStep"), Oe = W(e, "suggestedReplyMode"), ke = W(e, "showSourcesMode"), Ae = W(e, "widgetUrl"), je = W(e, "loadDelay"), Me = W(e, "loaderStrategy"), Ne = W(e, "fileUploadEnabled"), Pe = W(e, "voiceEnabled"), Fe = W(e, "voiceMaxSessionSeconds"), Ie = W(e, "voiceId"), Re = W(e, "voiceLanguage"), ze = W(e, "voiceFirstMessage"), Be = W(e, "voiceCascadeTimeoutSeconds"), Ve = W(e, "voiceFillerAfterSeconds"), He = W(e, "voiceFillerMessage"), Ue = W(e, "voiceIgnoreBackgroundVoices"), We = W(e, "voiceTurnEagerness"), Ge = W(e, "voiceTurnTimeoutSeconds"), Ke = [
17534
+ }, i = e, { errors: a } = vr(i), o = W(e, "agentId"), s = W(e, "name"), c = W(e, "type"), l = W(e, "initialMessage"), u = W(e, "messagePlaceholder"), d = W(e, "dismissableNotice"), f = W(e, "footerMessage"), p = W(e, "model"), m = W(e, "temperature"), h = W(e, "prompt"), _ = W(e, "status"), v = W(e, "visibility"), ee = W(e, "limit"), b = W(e, "maxStepCount"), x = W(e, "maxOutputTokens"), S = W(e, "presencePenalty"), te = W(e, "frequencyPenalty"), re = W(e, "searchMode"), ie = W(e, "reasoning"), se = W(e, "webSearch"), ce = W(e, "theme"), le = W(e, "mainColor"), ue = W(e, "textColor"), de = W(e, "useColorsForAgentHeader"), fe = W(e, "welcomePopup"), pe = W(e, "interactiveLogin"), me = W(e, "floatingButtonPosition"), he = W(e, "maxMessageLength"), ge = W(e, "media"), _e = W(e, "minuteRateLimit"), ve = W(e, "hourRateLimit"), ye = W(e, "dayRateLimit"), be = W(e, "monthRateLimit"), xe = W(e, "trustedOrigins"), Se = W(e, "disabledTools"), Ce = W(e, "approvalTools"), we = W(e, "useAllUserKb"), Te = W(e, "useAllUserFiles"), Ee = W(e, "formMaxSteps"), De = W(e, "formMaxOptionsPerStep"), Oe = W(e, "suggestedReplyMode"), ke = W(e, "showSourcesMode"), Ae = W(e, "widgetUrl"), je = W(e, "loadDelay"), Me = W(e, "loaderStrategy"), Ne = W(e, "fileUploadEnabled"), Pe = W(e, "voiceEnabled"), Fe = W(e, "voiceMaxSessionSeconds"), Ie = W(e, "voiceId"), Re = W(e, "voiceLanguage"), ze = W(e, "voiceFirstMessage"), Be = W(e, "voiceCascadeTimeoutSeconds"), Ve = W(e, "voiceFillerAfterSeconds"), He = W(e, "voiceFillerMessage"), Ue = W(e, "voiceIgnoreBackgroundVoices"), We = W(e, "voiceTurnEagerness"), Ge = W(e, "voiceTurnTimeoutSeconds"), Ke = [
17535
17535
  "it",
17536
17536
  "en",
17537
17537
  "es",
@@ -17661,76 +17661,76 @@ var PS = MS, FS = {
17661
17661
  key: "knowledgeSearch",
17662
17662
  icon: "ri:search-line",
17663
17663
  tools: [
17664
- T.SearchInKnowledgeBase,
17665
- T.ShowSources,
17666
- T.RetrieveRevisedAnswers,
17667
- T.ShowWebPages,
17668
- T.ReadDocumentFile
17664
+ w.SearchInKnowledgeBase,
17665
+ w.ShowSources,
17666
+ w.RetrieveRevisedAnswers,
17667
+ w.ShowWebPages,
17668
+ w.ReadDocumentFile
17669
17669
  ]
17670
17670
  },
17671
17671
  {
17672
17672
  key: "richContent",
17673
17673
  icon: "ri:layout-grid-line",
17674
17674
  tools: [
17675
- T.ShowArtifact,
17676
- T.ShowForm,
17677
- T.ShowMultipleChoice,
17678
- T.ShowComparison,
17679
- T.ShowProductList,
17680
- T.ShowImageGallery,
17681
- T.ShowVideo,
17682
- T.ShowQrCode,
17683
- T.ShowSuggestedReply,
17684
- T.ShowDiagram
17675
+ w.ShowArtifact,
17676
+ w.ShowForm,
17677
+ w.ShowMultipleChoice,
17678
+ w.ShowComparison,
17679
+ w.ShowProductList,
17680
+ w.ShowImageGallery,
17681
+ w.ShowVideo,
17682
+ w.ShowQrCode,
17683
+ w.ShowSuggestedReply,
17684
+ w.ShowDiagram
17685
17685
  ]
17686
17686
  },
17687
17687
  {
17688
17688
  key: "communication",
17689
17689
  icon: "ri:mail-send-line",
17690
17690
  tools: [
17691
- T.ShowEmail,
17692
- T.ShowMessage,
17693
- T.ShowContactForm,
17694
- T.ShowCalendarEvent
17691
+ w.ShowEmail,
17692
+ w.ShowMessage,
17693
+ w.ShowContactForm,
17694
+ w.ShowCalendarEvent
17695
17695
  ]
17696
17696
  },
17697
17697
  {
17698
17698
  key: "locationWeather",
17699
17699
  icon: "ri:map-pin-line",
17700
17700
  tools: [
17701
- T.RequestGeolocation,
17702
- T.Geocode,
17703
- T.ShowLocation,
17704
- T.GetWeather,
17705
- T.ShowWeather
17701
+ w.RequestGeolocation,
17702
+ w.Geocode,
17703
+ w.ShowLocation,
17704
+ w.GetWeather,
17705
+ w.ShowWeather
17706
17706
  ]
17707
17707
  },
17708
17708
  {
17709
17709
  key: "personalization",
17710
17710
  icon: "ri:user-heart-line",
17711
- tools: [T.UserMemory, T.SearchInUserFiles]
17711
+ tools: [w.UserMemory, w.SearchInUserFiles]
17712
17712
  },
17713
17713
  {
17714
17714
  key: "delegation",
17715
17715
  icon: "ri:flow-chart",
17716
- tools: [T.RunWorker]
17716
+ tools: [w.RunWorker]
17717
17717
  },
17718
17718
  {
17719
17719
  key: "channels",
17720
17720
  icon: "ri:chat-3-line",
17721
- tools: [T.FetchTeamsChannelHistory]
17721
+ tools: [w.FetchTeamsChannelHistory]
17722
17722
  }
17723
- ]), Et = (e) => e === T.ShowSources || e === T.ReadDocumentFile ? !Se.value.includes(T.SearchInKnowledgeBase) : e !== T.ShowWeather || !Se.value.includes(T.GetWeather), Dt = A(() => p.value ? [p.value] : []);
17723
+ ]), Et = (e) => e === w.ShowSources || e === w.ReadDocumentFile ? !Se.value.includes(w.SearchInKnowledgeBase) : e !== w.ShowWeather || !Se.value.includes(w.GetWeather), Dt = A(() => p.value ? [p.value] : []);
17724
17724
  function Ot(e) {
17725
17725
  return !Se.value.includes(e);
17726
17726
  }
17727
17727
  function kt(e) {
17728
- return e === T.ShowForm || e === T.ShowSuggestedReply || e === T.ShowSources || e === T.UserMemory || e === T.SearchInUserFiles || _(e);
17728
+ return e === w.ShowForm || e === w.ShowSuggestedReply || e === w.ShowSources || e === w.UserMemory || e === w.SearchInUserFiles || oe(e);
17729
17729
  }
17730
17730
  function At(e) {
17731
17731
  return Ce.value.includes(e);
17732
17732
  }
17733
- let jt = A(() => Ce.value.filter((e) => _(e) && Ot(e)).map((e) => t(`agent.tool.${e}`)));
17733
+ let jt = A(() => Ce.value.filter((e) => oe(e) && Ot(e)).map((e) => t(`agent.tool.${e}`)));
17734
17734
  function Mt(e, t) {
17735
17735
  Ce.value = t ? [...Ce.value, e] : Ce.value.filter((t) => t !== e);
17736
17736
  }
@@ -17739,12 +17739,12 @@ var PS = MS, FS = {
17739
17739
  Se.value = Se.value.filter((t) => t !== e);
17740
17740
  return;
17741
17741
  }
17742
- Se.value = [...Se.value, e], Mt(e, !1), e === T.UserMemory && (we.value = !1), e === T.SearchInUserFiles && (Te.value = !1);
17742
+ Se.value = [...Se.value, e], Mt(e, !1), e === w.UserMemory && (we.value = !1), e === w.SearchInUserFiles && (Te.value = !1);
17743
17743
  }
17744
17744
  let Pt = A(() => HS.map((e) => ({
17745
17745
  label: e,
17746
17746
  value: e
17747
- }))), Ft = A(() => p.value?.split("/")[0] ?? ""), It = A(() => c.value === b.Chat), Lt = A(() => {
17747
+ }))), Ft = A(() => p.value?.split("/")[0] ?? ""), It = A(() => c.value === y.Chat), Lt = A(() => {
17748
17748
  let e = [
17749
17749
  {
17750
17750
  tab: "general",
@@ -17770,7 +17770,7 @@ var PS = MS, FS = {
17770
17770
  }), Rt = A(() => `${window.location.origin}/app/${i.organizationSlug}/${o.value}`), zt = A(() => `${window.location.origin}/app/${i.organizationSlug}/${o.value}/chat`), Bt = A(() => `<script src="${`${i.baseUrl}/api/v1/public/organizations/${i.organizationSlug}/agents/${o.value}/embed.js`}" defer><\/script>`), Vt = A(() => `<iframe src="${Rt.value}" width="100%" height="600" frameborder="0"
17771
17771
  style="border: 1px solid #e5e7eb; border-radius: 8px;"></iframe>`);
17772
17772
  return (i, a) => {
17773
- let o = Fn, b = Vn, Ce = Pn, qe = zn, Je = Un, Ye = Mn, Xe = Dn, E = Hn, tt = jn, it = In;
17773
+ let o = Fn, y = Vn, Ce = Pn, qe = zn, Je = Un, Ye = Mn, Xe = Dn, E = Hn, tt = jn, it = In;
17774
17774
  return z(), N("div", lC, [I(E, {
17775
17775
  items: Lt.value,
17776
17776
  lazy: "once"
@@ -17785,8 +17785,8 @@ var PS = MS, FS = {
17785
17785
  vertical: ""
17786
17786
  }, null, 8, ["modelValue", "label"]),
17787
17787
  P("div", uC, [I(o, {
17788
- modelValue: y.value,
17789
- "onUpdate:modelValue": a[1] ||= (e) => y.value = e,
17788
+ modelValue: _.value,
17789
+ "onUpdate:modelValue": a[1] ||= (e) => _.value = e,
17790
17790
  name: "status",
17791
17791
  icon: "ri:eye-line",
17792
17792
  label: U(t)("label.status"),
@@ -17817,8 +17817,8 @@ var PS = MS, FS = {
17817
17817
  "options",
17818
17818
  "disabled"
17819
17819
  ]), I(o, {
17820
- modelValue: x.value,
17821
- "onUpdate:modelValue": a[2] ||= (e) => x.value = e,
17820
+ modelValue: v.value,
17821
+ "onUpdate:modelValue": a[2] ||= (e) => v.value = e,
17822
17822
  name: "visibility",
17823
17823
  icon: "ri:lock-line",
17824
17824
  label: U(t)("label.visibility"),
@@ -17849,7 +17849,7 @@ var PS = MS, FS = {
17849
17849
  "options",
17850
17850
  "disabled"
17851
17851
  ])]),
17852
- I(b, {
17852
+ I(y, {
17853
17853
  modelValue: s.value,
17854
17854
  "onUpdate:modelValue": a[3] ||= (e) => s.value = e,
17855
17855
  name: "name",
@@ -17876,8 +17876,8 @@ var PS = MS, FS = {
17876
17876
  "options"
17877
17877
  ]),
17878
17878
  I(Hx, {
17879
- modelValue: g.value,
17880
- "onUpdate:modelValue": a[5] ||= (e) => g.value = e,
17879
+ modelValue: h.value,
17880
+ "onUpdate:modelValue": a[5] ||= (e) => h.value = e,
17881
17881
  name: "prompt",
17882
17882
  label: U(t)("label.prompt"),
17883
17883
  placeholder: U(t)("placeholder.insert")
@@ -17909,9 +17909,9 @@ var PS = MS, FS = {
17909
17909
  "placeholder",
17910
17910
  "exclude-models"
17911
17911
  ]),
17912
- I(b, {
17913
- modelValue: te.value,
17914
- "onUpdate:modelValue": a[7] ||= (e) => te.value = e,
17912
+ I(y, {
17913
+ modelValue: x.value,
17914
+ "onUpdate:modelValue": a[7] ||= (e) => x.value = e,
17915
17915
  name: "maxOutputTokens",
17916
17916
  type: "number",
17917
17917
  min: "0",
@@ -17924,8 +17924,8 @@ var PS = MS, FS = {
17924
17924
  "placeholder"
17925
17925
  ]),
17926
17926
  I(sC, {
17927
- modelValue: h.value,
17928
- "onUpdate:modelValue": a[8] ||= (e) => h.value = e,
17927
+ modelValue: m.value,
17928
+ "onUpdate:modelValue": a[8] ||= (e) => m.value = e,
17929
17929
  name: "temperature",
17930
17930
  label: U(t)("label.temperature"),
17931
17931
  min: "0",
@@ -17934,8 +17934,8 @@ var PS = MS, FS = {
17934
17934
  class: "mb-md"
17935
17935
  }, null, 8, ["modelValue", "label"]),
17936
17936
  I(sC, {
17937
- modelValue: re.value,
17938
- "onUpdate:modelValue": a[9] ||= (e) => re.value = e,
17937
+ modelValue: S.value,
17938
+ "onUpdate:modelValue": a[9] ||= (e) => S.value = e,
17939
17939
  name: "presencePenalty",
17940
17940
  label: U(t)("label.presencePenalty"),
17941
17941
  min: "-2",
@@ -17944,8 +17944,8 @@ var PS = MS, FS = {
17944
17944
  class: "mb-md"
17945
17945
  }, null, 8, ["modelValue", "label"]),
17946
17946
  I(sC, {
17947
- modelValue: ie.value,
17948
- "onUpdate:modelValue": a[10] ||= (e) => ie.value = e,
17947
+ modelValue: te.value,
17948
+ "onUpdate:modelValue": a[10] ||= (e) => te.value = e,
17949
17949
  name: "frequencyPenalty",
17950
17950
  label: U(t)("label.frequencyPenalty"),
17951
17951
  min: "-2",
@@ -17953,7 +17953,7 @@ var PS = MS, FS = {
17953
17953
  step: "0.1",
17954
17954
  class: "mb-md"
17955
17955
  }, null, 8, ["modelValue", "label"]),
17956
- I(b, {
17956
+ I(y, {
17957
17957
  modelValue: pt.value,
17958
17958
  "onUpdate:modelValue": a[11] ||= (e) => pt.value = e,
17959
17959
  name: "providerTimeoutMs",
@@ -17978,8 +17978,8 @@ var PS = MS, FS = {
17978
17978
  }, 8, ["legend"]),
17979
17979
  I(ha, { legend: U(t)("label.reasoning") }, {
17980
17980
  default: K(() => [I(ZS, {
17981
- reasoning: oe.value,
17982
- "onUpdate:reasoning": a[12] ||= (e) => oe.value = e,
17981
+ reasoning: ie.value,
17982
+ "onUpdate:reasoning": a[12] ||= (e) => ie.value = e,
17983
17983
  "active-provider": Ft.value
17984
17984
  }, null, 8, ["reasoning", "active-provider"]), I(aS, {
17985
17985
  modelValue: ht.value,
@@ -17999,8 +17999,8 @@ var PS = MS, FS = {
17999
17999
  I(ha, { legend: U(t)("label.searchAndExecution") }, {
18000
18000
  default: K(() => [
18001
18001
  I(o, {
18002
- modelValue: ae.value,
18003
- "onUpdate:modelValue": a[14] ||= (e) => ae.value = e,
18002
+ modelValue: re.value,
18003
+ "onUpdate:modelValue": a[14] ||= (e) => re.value = e,
18004
18004
  name: "searchMode",
18005
18005
  icon: "ri:search-line",
18006
18006
  strategy: "fixed",
@@ -18028,8 +18028,8 @@ var PS = MS, FS = {
18028
18028
  "options"
18029
18029
  ]),
18030
18030
  I(sC, {
18031
- modelValue: S.value,
18032
- "onUpdate:modelValue": a[15] ||= (e) => S.value = e,
18031
+ modelValue: ee.value,
18032
+ "onUpdate:modelValue": a[15] ||= (e) => ee.value = e,
18033
18033
  name: "limit",
18034
18034
  label: U(t)("label.limit"),
18035
18035
  min: "0",
@@ -18038,8 +18038,8 @@ var PS = MS, FS = {
18038
18038
  class: "mb-md"
18039
18039
  }, null, 8, ["modelValue", "label"]),
18040
18040
  I(sC, {
18041
- modelValue: C.value,
18042
- "onUpdate:modelValue": a[16] ||= (e) => C.value = e,
18041
+ modelValue: b.value,
18042
+ "onUpdate:modelValue": a[16] ||= (e) => b.value = e,
18043
18043
  name: "maxStepCount",
18044
18044
  label: U(t)("label.maxStepCount"),
18045
18045
  min: "1",
@@ -18254,7 +18254,7 @@ var PS = MS, FS = {
18254
18254
  "placeholder",
18255
18255
  "options"
18256
18256
  ]),
18257
- I(b, {
18257
+ I(y, {
18258
18258
  modelValue: ze.value,
18259
18259
  "onUpdate:modelValue": a[29] ||= (e) => ze.value = e,
18260
18260
  name: "voiceFirstMessage",
@@ -18322,7 +18322,7 @@ var PS = MS, FS = {
18322
18322
  "placeholder",
18323
18323
  "options"
18324
18324
  ]),
18325
- P("div", qC, [I(b, {
18325
+ P("div", qC, [I(y, {
18326
18326
  modelValue: Ge.value,
18327
18327
  "onUpdate:modelValue": a[32] ||= (e) => Ge.value = e,
18328
18328
  name: "voiceTurnTimeoutSeconds",
@@ -18337,12 +18337,12 @@ var PS = MS, FS = {
18337
18337
  "modelValue",
18338
18338
  "label",
18339
18339
  "placeholder"
18340
- ]), I(b, {
18340
+ ]), I(y, {
18341
18341
  modelValue: Be.value,
18342
18342
  "onUpdate:modelValue": a[33] ||= (e) => Be.value = e,
18343
18343
  name: "voiceCascadeTimeoutSeconds",
18344
18344
  type: "number",
18345
- min: "2",
18345
+ min: "5",
18346
18346
  max: "15",
18347
18347
  step: "1",
18348
18348
  class: "flex-1 mb-0",
@@ -18354,7 +18354,7 @@ var PS = MS, FS = {
18354
18354
  "placeholder"
18355
18355
  ])]),
18356
18356
  P("small", JC, H(U(t)("hint.voiceTurnTimeoutSeconds")), 1),
18357
- I(b, {
18357
+ I(y, {
18358
18358
  modelValue: Fe.value,
18359
18359
  "onUpdate:modelValue": a[34] ||= (e) => Fe.value = e,
18360
18360
  name: "voiceMaxSessionSeconds",
@@ -18376,7 +18376,7 @@ var PS = MS, FS = {
18376
18376
  name: "ri:information-line",
18377
18377
  class: "align-middle text-18 left-8 absolute text-word-3"
18378
18378
  }), F(" " + H(U(t)("hint.voiceSlowAgentOnCall")), 1)]),
18379
- I(b, {
18379
+ I(y, {
18380
18380
  modelValue: Ve.value,
18381
18381
  "onUpdate:modelValue": a[35] ||= (e) => Ve.value = e,
18382
18382
  name: "voiceFillerAfterSeconds",
@@ -18394,7 +18394,7 @@ var PS = MS, FS = {
18394
18394
  "hint-label",
18395
18395
  "placeholder"
18396
18396
  ]),
18397
- I(b, {
18397
+ I(y, {
18398
18398
  modelValue: He.value,
18399
18399
  "onUpdate:modelValue": a[36] ||= (e) => He.value = e,
18400
18400
  name: "voiceFillerMessage",
@@ -18560,7 +18560,7 @@ var PS = MS, FS = {
18560
18560
  "label",
18561
18561
  "hint-label"
18562
18562
  ])) : M("", !0),
18563
- !e.playground && It.value && x.value === "public" ? (z(), j(aS, {
18563
+ !e.playground && It.value && v.value === "public" ? (z(), j(aS, {
18564
18564
  key: 3,
18565
18565
  modelValue: pe.value,
18566
18566
  "onUpdate:modelValue": a[45] ||= (e) => pe.value = e,
@@ -18599,7 +18599,7 @@ var PS = MS, FS = {
18599
18599
  "placeholder",
18600
18600
  "options"
18601
18601
  ])) : M("", !0),
18602
- It.value ? (z(), j(b, {
18602
+ It.value ? (z(), j(y, {
18603
18603
  key: 5,
18604
18604
  modelValue: he.value,
18605
18605
  "onUpdate:modelValue": a[47] ||= (e) => he.value = e,
@@ -18660,7 +18660,7 @@ var PS = MS, FS = {
18660
18660
  "placeholder",
18661
18661
  "onUpdate:modelValue"
18662
18662
  ]),
18663
- I(b, {
18663
+ I(y, {
18664
18664
  "model-value": u.value?.[e] ?? "",
18665
18665
  name: `messagePlaceholder.${e}`,
18666
18666
  label: U(t)("label.messagePlaceholder"),
@@ -18710,7 +18710,7 @@ var PS = MS, FS = {
18710
18710
  "placeholder",
18711
18711
  "onUpdate:modelValue"
18712
18712
  ]),
18713
- Se.value.includes(U(T).ShowContactForm) ? M("", !0) : (z(), j(Hx, {
18713
+ Se.value.includes(U(w).ShowContactForm) ? M("", !0) : (z(), j(Hx, {
18714
18714
  key: 0,
18715
18715
  "model-value": lt.value?.[e] ?? "",
18716
18716
  name: `privacyPolicyNotice.${e}`,
@@ -18749,7 +18749,7 @@ var PS = MS, FS = {
18749
18749
  "label",
18750
18750
  "hint-label"
18751
18751
  ]), Ne.value ? (z(), N(k, { key: 0 }, [
18752
- I(b, {
18752
+ I(y, {
18753
18753
  modelValue: O.value,
18754
18754
  "onUpdate:modelValue": a[50] ||= (e) => O.value = e,
18755
18755
  disabled: e.playground,
@@ -18783,7 +18783,7 @@ var PS = MS, FS = {
18783
18783
  "placeholder",
18784
18784
  "options"
18785
18785
  ]),
18786
- P("div", ZC, [I(b, {
18786
+ P("div", ZC, [I(y, {
18787
18787
  modelValue: ot.value,
18788
18788
  "onUpdate:modelValue": a[52] ||= (e) => ot.value = e,
18789
18789
  disabled: e.playground,
@@ -18798,7 +18798,7 @@ var PS = MS, FS = {
18798
18798
  "disabled",
18799
18799
  "label",
18800
18800
  "placeholder"
18801
- ]), I(b, {
18801
+ ]), I(y, {
18802
18802
  modelValue: st.value,
18803
18803
  "onUpdate:modelValue": a[53] ||= (e) => st.value = e,
18804
18804
  disabled: e.playground,
@@ -18825,7 +18825,7 @@ var PS = MS, FS = {
18825
18825
  }, null, 8, ["web-search", "active-provider"])]),
18826
18826
  _: 1
18827
18827
  }, 8, ["legend"]),
18828
- P("div", QC, [P("p", $C, H(U(t)("hint.approvalChannels")), 1), (z(!0), N(k, null, pr(Tt.value, (n) => (z(), N(k, { key: n.key }, [It.value || !n.tools.every((e) => U(m)(e)) ? (z(), j(ha, {
18828
+ P("div", QC, [P("p", $C, H(U(t)("hint.approvalChannels")), 1), (z(!0), N(k, null, pr(Tt.value, (n) => (z(), N(k, { key: n.key }, [It.value || !n.tools.every((e) => U(g)(e)) ? (z(), j(ha, {
18829
18829
  key: 0,
18830
18830
  class: "mb-0"
18831
18831
  }, {
@@ -18833,7 +18833,7 @@ var PS = MS, FS = {
18833
18833
  name: n.icon,
18834
18834
  class: "text-16"
18835
18835
  }, null, 8, ["name"]), F(" " + H(U(t)(`toolGroup.${n.key}`)), 1)])]),
18836
- default: K(() => [P("p", tw, H(U(t)(`toolGroupInfo.${n.key}`)), 1), P("div", nw, [(z(!0), N(k, null, pr(n.tools, (n) => (z(), N(k, { key: n }, [!U(m)(n) || It.value ? (z(), N(k, { key: 0 }, [I(Ce, {
18836
+ default: K(() => [P("p", tw, H(U(t)(`toolGroupInfo.${n.key}`)), 1), P("div", nw, [(z(!0), N(k, null, pr(n.tools, (n) => (z(), N(k, { key: n }, [!U(g)(n) || It.value ? (z(), N(k, { key: 0 }, [I(Ce, {
18837
18837
  class: "flex-nowrap border-t border-surface-3 mr-0 px-md pt-md",
18838
18838
  "model-value": Ot(n),
18839
18839
  name: `tool.${n}`,
@@ -18846,7 +18846,7 @@ var PS = MS, FS = {
18846
18846
  default: K(() => [P("div", rw, [
18847
18847
  P("div", iw, [
18848
18848
  P("strong", aw, H(U(t)(`agent.tool.${n}`)), 1),
18849
- n === U(T).ShowMultipleChoice ? (z(), j(tt, {
18849
+ n === U(w).ShowMultipleChoice ? (z(), j(tt, {
18850
18850
  key: 0,
18851
18851
  modifiers: "gray sm"
18852
18852
  }, {
@@ -18856,7 +18856,7 @@ var PS = MS, FS = {
18856
18856
  At(n) ? (z(), j(GS, { key: 1 })) : M("", !0)
18857
18857
  ]),
18858
18858
  P("small", ow, H(U(t)(`hint.tool.${n}`)), 1),
18859
- U(m)(n) && U(v)(n) ? (z(), N("div", {
18859
+ U(g)(n) && U(ae)(n) ? (z(), N("div", {
18860
18860
  key: 0,
18861
18861
  class: "flex items-center gap-4 self-start mt-4 pt-4 w-full border-t border-surface-3",
18862
18862
  title: U(t)("hint.platformSupported")
@@ -18893,7 +18893,7 @@ var PS = MS, FS = {
18893
18893
  class: "border border-surface-3 rounded mx-md mb-md"
18894
18894
  }, {
18895
18895
  default: K(() => [P("div", cw, [
18896
- n === U(T).ShowForm ? (z(), N(k, { key: 0 }, [I(b, {
18896
+ n === U(w).ShowForm ? (z(), N(k, { key: 0 }, [I(y, {
18897
18897
  modelValue: Ee.value,
18898
18898
  "onUpdate:modelValue": a[55] ||= (e) => Ee.value = e,
18899
18899
  name: "formMaxSteps",
@@ -18907,7 +18907,7 @@ var PS = MS, FS = {
18907
18907
  "modelValue",
18908
18908
  "label",
18909
18909
  "disabled"
18910
- ]), I(b, {
18910
+ ]), I(y, {
18911
18911
  modelValue: De.value,
18912
18912
  "onUpdate:modelValue": a[56] ||= (e) => De.value = e,
18913
18913
  name: "formMaxOptionsPerStep",
@@ -18922,7 +18922,7 @@ var PS = MS, FS = {
18922
18922
  "label",
18923
18923
  "disabled"
18924
18924
  ])], 64)) : M("", !0),
18925
- n === U(T).ShowSuggestedReply ? (z(), j(o, {
18925
+ n === U(w).ShowSuggestedReply ? (z(), j(o, {
18926
18926
  key: 1,
18927
18927
  modelValue: Oe.value,
18928
18928
  "onUpdate:modelValue": a[57] ||= (e) => Oe.value = e,
@@ -18948,7 +18948,7 @@ var PS = MS, FS = {
18948
18948
  "options",
18949
18949
  "disabled"
18950
18950
  ])) : M("", !0),
18951
- n === U(T).ShowSources ? (z(), j(o, {
18951
+ n === U(w).ShowSources ? (z(), j(o, {
18952
18952
  key: 2,
18953
18953
  modelValue: ke.value,
18954
18954
  "onUpdate:modelValue": a[58] ||= (e) => ke.value = e,
@@ -18975,7 +18975,7 @@ var PS = MS, FS = {
18975
18975
  "options",
18976
18976
  "disabled"
18977
18977
  ])) : M("", !0),
18978
- n === U(T).UserMemory ? (z(), j(aS, {
18978
+ n === U(w).UserMemory ? (z(), j(aS, {
18979
18979
  key: 3,
18980
18980
  modelValue: we.value,
18981
18981
  "onUpdate:modelValue": a[59] ||= (e) => we.value = e,
@@ -18989,7 +18989,7 @@ var PS = MS, FS = {
18989
18989
  "hint-label",
18990
18990
  "disabled"
18991
18991
  ])) : M("", !0),
18992
- n === U(T).SearchInUserFiles ? (z(), j(aS, {
18992
+ n === U(w).SearchInUserFiles ? (z(), j(aS, {
18993
18993
  key: 4,
18994
18994
  modelValue: Te.value,
18995
18995
  "onUpdate:modelValue": a[60] ||= (e) => Te.value = e,
@@ -19003,7 +19003,7 @@ var PS = MS, FS = {
19003
19003
  "hint-label",
19004
19004
  "disabled"
19005
19005
  ])) : M("", !0),
19006
- U(_)(n) ? (z(), j(aS, {
19006
+ U(oe)(n) ? (z(), j(aS, {
19007
19007
  key: 5,
19008
19008
  "model-value": At(n),
19009
19009
  name: `tool.${n}.approval`,
@@ -19046,14 +19046,14 @@ var PS = MS, FS = {
19046
19046
  _: 1
19047
19047
  }, 8, ["source"]),
19048
19048
  e.playground ? M("", !0) : (z(), N("div", mw, [
19049
- I(b, {
19049
+ I(y, {
19050
19050
  modelValue: Ae.value,
19051
19051
  "onUpdate:modelValue": a[61] ||= (e) => Ae.value = e,
19052
19052
  name: "widgetUrl",
19053
19053
  type: "url",
19054
19054
  icon: "ri:links-line",
19055
19055
  label: U(t)("label.widgetUrl"),
19056
- placeholder: U(w)
19056
+ placeholder: U(C)
19057
19057
  }, null, 8, [
19058
19058
  "modelValue",
19059
19059
  "label",
@@ -19065,7 +19065,7 @@ var PS = MS, FS = {
19065
19065
  class: "border border-surface-3 rounded mb-md"
19066
19066
  }, {
19067
19067
  default: K(() => [P("div", hw, [
19068
- I(b, {
19068
+ I(y, {
19069
19069
  modelValue: je.value,
19070
19070
  "onUpdate:modelValue": a[62] ||= (e) => je.value = e,
19071
19071
  name: "loadDelay",
@@ -19092,15 +19092,15 @@ var PS = MS, FS = {
19092
19092
  options: [
19093
19093
  {
19094
19094
  label: U(t)("label.loaderStrategyInlineModule"),
19095
- value: U(ee).InlineModule
19095
+ value: U(T).InlineModule
19096
19096
  },
19097
19097
  {
19098
19098
  label: U(t)("label.loaderStrategyScriptSrc"),
19099
- value: U(ee).ScriptSrc
19099
+ value: U(T).ScriptSrc
19100
19100
  },
19101
19101
  {
19102
19102
  label: U(t)("label.loaderStrategyDynamicImport"),
19103
- value: U(ee).DynamicImport
19103
+ value: U(T).DynamicImport
19104
19104
  }
19105
19105
  ]
19106
19106
  }, null, 8, [
@@ -19195,7 +19195,7 @@ var PS = MS, FS = {
19195
19195
  ])]),
19196
19196
  "panel::security": K(() => [I(ha, { legend: U(t)("label.rateLimits") }, {
19197
19197
  default: K(() => [P("div", Sw, [
19198
- I(b, {
19198
+ I(y, {
19199
19199
  modelValue: _e.value,
19200
19200
  "onUpdate:modelValue": a[69] ||= (e) => _e.value = e,
19201
19201
  name: "minuteRateLimit",
@@ -19212,7 +19212,7 @@ var PS = MS, FS = {
19212
19212
  "invalid",
19213
19213
  "invalid-label"
19214
19214
  ]),
19215
- I(b, {
19215
+ I(y, {
19216
19216
  modelValue: ve.value,
19217
19217
  "onUpdate:modelValue": a[70] ||= (e) => ve.value = e,
19218
19218
  name: "hourRateLimit",
@@ -19229,7 +19229,7 @@ var PS = MS, FS = {
19229
19229
  "invalid",
19230
19230
  "invalid-label"
19231
19231
  ]),
19232
- I(b, {
19232
+ I(y, {
19233
19233
  modelValue: ye.value,
19234
19234
  "onUpdate:modelValue": a[71] ||= (e) => ye.value = e,
19235
19235
  name: "dayRateLimit",
@@ -19246,7 +19246,7 @@ var PS = MS, FS = {
19246
19246
  "invalid",
19247
19247
  "invalid-label"
19248
19248
  ]),
19249
- I(b, {
19249
+ I(y, {
19250
19250
  modelValue: be.value,
19251
19251
  "onUpdate:modelValue": a[72] ||= (e) => be.value = e,
19252
19252
  name: "monthRateLimit",
@@ -19277,7 +19277,7 @@ var PS = MS, FS = {
19277
19277
  "default-value": () => "",
19278
19278
  "allow-empty": ""
19279
19279
  }, {
19280
- default: K(({ index: e }) => [I(b, {
19280
+ default: K(({ index: e }) => [I(y, {
19281
19281
  modelValue: xe.value.origins[e],
19282
19282
  "onUpdate:modelValue": (t) => xe.value.origins[e] = t,
19283
19283
  name: `trustedOrigins.${e}`,
@@ -19429,13 +19429,13 @@ var PS = MS, FS = {
19429
19429
  setup(e, { emit: t }) {
19430
19430
  let n = e, r = W(e, "collapsed"), i = Mr("(max-width: 1023px)"), a = () => {
19431
19431
  i.value && (r.value = !0);
19432
- }, o = t, { t: s } = Er({ useScope: "global" }), c = ge(n.agentId), { conversations: l, isLoadingConversations: u, localChatId: d } = Lr(c), { startNewChat: f, navigate: p, renameChatTitle: m, deleteChat: h } = c, { editingId: g, editingTitle: _, startEdit: v, confirmEdit: y, cancelEdit: b, onRenameKeydown: x, requestDelete: S } = De({
19432
+ }, o = t, { t: s } = Er({ useScope: "global" }), c = he(n.agentId), { conversations: l, isLoadingConversations: u, localChatId: d } = Lr(c), { startNewChat: f, navigate: p, renameChatTitle: m, deleteChat: h } = c, { editingId: g, editingTitle: _, startEdit: v, confirmEdit: y, cancelEdit: ee, onRenameKeydown: b, requestDelete: x } = De({
19433
19433
  renameChatTitle: m,
19434
19434
  deleteChat: h
19435
- }), C = B(""), w = kr(C, 300), T = A(() => {
19436
- let e = w.value.trim().toLowerCase();
19435
+ }), S = B(""), C = kr(S, 300), w = A(() => {
19436
+ let e = C.value.trim().toLowerCase();
19437
19437
  return e ? l.value.filter((t) => Ee(t).toLowerCase().includes(e)) : l.value;
19438
- }), ee = A(() => {
19438
+ }), T = A(() => {
19439
19439
  let e = (/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0), t = {
19440
19440
  today: [],
19441
19441
  yesterday: [],
@@ -19443,7 +19443,7 @@ var PS = MS, FS = {
19443
19443
  last30Days: [],
19444
19444
  older: []
19445
19445
  };
19446
- for (let n of T.value) {
19446
+ for (let n of w.value) {
19447
19447
  let r = n.lastMessageAt ? new Date(n.lastMessageAt).getTime() : 0;
19448
19448
  r >= e ? t.today.push(n) : r >= e - Fw ? t.yesterday.push(n) : r >= e - 7 * Fw ? t.last7Days.push(n) : r >= e - 30 * Fw ? t.last30Days.push(n) : t.older.push(n);
19449
19449
  }
@@ -19528,8 +19528,8 @@ var PS = MS, FS = {
19528
19528
  }, [I(c, { name: "ri:edit-box-line" }), F(" " + H(U(s)("action.startNewChat")), 1)]),
19529
19529
  V(t.$slots, "actions-extra"),
19530
19530
  I(f, {
19531
- modelValue: C.value,
19532
- "onUpdate:modelValue": n[3] ||= (e) => C.value = e,
19531
+ modelValue: S.value,
19532
+ "onUpdate:modelValue": n[3] ||= (e) => S.value = e,
19533
19533
  name: "conversation-search",
19534
19534
  modifiers: "search",
19535
19535
  icon: "ri:search-line",
@@ -19540,7 +19540,7 @@ var PS = MS, FS = {
19540
19540
  U(u) && U(l).length === 0 ? (z(), N("div", Aw, [(z(), N(k, null, pr(6, (e) => P("div", {
19541
19541
  key: e,
19542
19542
  class: "vv-skeleton__item rounded-md h-36"
19543
- })), 64))])) : (z(), N("nav", jw, [ee.value.length === 0 ? (z(), N("p", Mw, H(U(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, pr(ee.value, (t) => (z(), N("div", {
19543
+ })), 64))])) : (z(), N("nav", jw, [T.value.length === 0 ? (z(), N("p", Mw, H(U(s)("message.noConversations")), 1)) : M("", !0), (z(!0), N(k, null, pr(T.value, (t) => (z(), N("div", {
19544
19544
  key: t.key,
19545
19545
  class: "pk-chat-sidebar__group"
19546
19546
  }, [P("span", Nw, H(t.label), 1), (z(!0), N(k, null, pr(t.items, (t) => (z(), j(Tw, {
@@ -19554,9 +19554,9 @@ var PS = MS, FS = {
19554
19554
  onSelect: (e) => te(t.id),
19555
19555
  onEditStart: (e) => U(v)(t, U(Ee)(t)),
19556
19556
  onEditConfirm: (e) => U(y)(t.id),
19557
- onEditCancel: U(b),
19558
- onEditKeydown: (e) => U(x)(e, t.id),
19559
- onDelete: (e) => U(S)(t.id),
19557
+ onEditCancel: U(ee),
19558
+ onEditKeydown: (e) => U(b)(e, t.id),
19559
+ onDelete: (e) => U(x)(t.id),
19560
19560
  onFiles: (e) => o("view-files", t.id)
19561
19561
  }, null, 8, [
19562
19562
  "editing-title",
@@ -19622,11 +19622,11 @@ var PS = MS, FS = {
19622
19622
  }, { formatDeltaToString: i } = Fe(), a = A(() => {
19623
19623
  let e = t.message?.metadata?.deviceContext;
19624
19624
  if (!e) return;
19625
- let { screenWidth: n, screenHeight: r, viewportWidth: i, viewportHeight: a, devicePixelRatio: o, hardwareConcurrency: s, deviceMemory: c, language: l, languages: u, pathname: d, connectionType: f, connectionEffectiveType: p, connectionDownlink: m, connectionRtt: h, darkMode: g, reducedMotion: _, saveData: v, ...y } = e, b = [
19625
+ let { screenWidth: n, screenHeight: r, viewportWidth: i, viewportHeight: a, devicePixelRatio: o, hardwareConcurrency: s, deviceMemory: c, language: l, languages: u, pathname: d, connectionType: f, connectionEffectiveType: p, connectionDownlink: m, connectionRtt: h, darkMode: g, reducedMotion: _, saveData: v, ...y } = e, ee = [
19626
19626
  !f || f === "unknown" ? p : f,
19627
19627
  m === void 0 ? void 0 : `Downlink ${m}Mbps`,
19628
19628
  h === void 0 ? void 0 : `RTT ${h}ms`
19629
- ].filter(Boolean), x = [
19629
+ ].filter(Boolean), b = [
19630
19630
  g ? "dark" : void 0,
19631
19631
  _ ? "reduced-motion" : void 0,
19632
19632
  v ? "save-data" : void 0
@@ -19637,8 +19637,8 @@ var PS = MS, FS = {
19637
19637
  ...n !== void 0 && r !== void 0 ? { screen: `${n}x${r}${o ? ` @${o}x` : ""}` } : {},
19638
19638
  ...i !== void 0 && a !== void 0 ? { viewport: `${i}x${a}` } : {},
19639
19639
  ...s !== void 0 || c !== void 0 ? { hardware: [s === void 0 ? void 0 : `${s} cores`, c === void 0 ? void 0 : `${c}GB`].filter(Boolean).join(" · ") } : {},
19640
- ...b.length > 0 ? { connection: b.join(" · ") } : {},
19641
- ...x.length > 0 ? { flags: x.join(" · ") } : {}
19640
+ ...ee.length > 0 ? { connection: ee.join(" · ") } : {},
19641
+ ...b.length > 0 ? { flags: b.join(" · ") } : {}
19642
19642
  };
19643
19643
  }), o = A(() => t.message?.metadata?.transport === te.Voice), s = A(() => t.message?.metadata?.externalContext && Object.keys(t.message.metadata.externalContext).length > 0), c = A(() => t.message?.metadata?.platformContext && Object.keys(t.message.metadata.platformContext).length > 0);
19644
19644
  return (t, l) => {
@@ -19947,9 +19947,9 @@ var PS = MS, FS = {
19947
19947
  },
19948
19948
  emits: ["show-info"],
19949
19949
  setup(e, { emit: t }) {
19950
- let { t: n } = Er({ useScope: "global" }), r = e, i = t, a = B(""), o = A(() => new me({
19951
- id: he(),
19952
- transport: new pe({
19950
+ let { t: n } = Er({ useScope: "global" }), r = e, i = t, a = B(""), o = A(() => new ge({
19951
+ id: pe(),
19952
+ transport: new me({
19953
19953
  api: `${r.baseUrl}/agents/${r.agentId}/reasoning-chat`,
19954
19954
  prepareSendMessagesRequest: ({ messages: e }) => ({ body: {
19955
19955
  messages: [e[e.length - 1]],