@gram-ai/elements 1.27.4 → 1.27.5
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.
- package/README.md +72 -60
- package/README.typedoc.md +6 -6
- package/bin/cli.js +74 -74
- package/dist/compat-shims-CO9JXXV4.cjs.map +1 -1
- package/dist/{compat-shims-BPJ7Q68c.js → compat-shims-DxtUrORi.js} +4 -2
- package/dist/compat-shims-DxtUrORi.js.map +1 -0
- package/dist/components/ShareButton/index.d.ts +2 -2
- package/dist/components/assistant-ui/message-feedback.d.ts +1 -1
- package/dist/components/assistant-ui/tooltip-icon-button.d.ts +2 -2
- package/dist/components/ui/avatar.d.ts +2 -2
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/calendar.d.ts +1 -1
- package/dist/components/ui/collapsible.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts +4 -4
- package/dist/components/ui/popover.d.ts +2 -2
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/time-range-picker.d.ts +1 -1
- package/dist/components/ui/tool-ui.d.ts +7 -7
- package/dist/components/ui/tooltip.d.ts +2 -2
- package/dist/contexts/ConnectionStatusContext.d.ts +1 -1
- package/dist/elements.cjs +1 -1
- package/dist/elements.js +2 -2
- package/dist/hooks/useDensity.d.ts +73 -73
- package/dist/hooks/useMCPTools.d.ts +1 -1
- package/dist/hooks/useRadius.d.ts +1 -1
- package/dist/{index-BpJstUh1.cjs → index-C4bFBGfl.cjs} +4 -4
- package/dist/{index-BpJstUh1.cjs.map → index-C4bFBGfl.cjs.map} +1 -1
- package/dist/{index-CUitXazZ.js → index-D93pV0_o.js} +55 -55
- package/dist/{index-CUitXazZ.js.map → index-D93pV0_o.js.map} +1 -1
- package/dist/{index-D0bAYNQy.js → index-DuCQRbcQ.js} +279 -265
- package/dist/index-DuCQRbcQ.js.map +1 -0
- package/dist/{index-KSX4Qjip.cjs → index-y_PNN5vK.cjs} +10 -10
- package/dist/index-y_PNN5vK.cjs.map +1 -0
- package/dist/lib/cassette.d.ts +4 -4
- package/dist/lib/errorTracking.d.ts +1 -1
- package/dist/lib/messageConverter.d.ts +1 -1
- package/dist/lib/models.d.ts +1 -1
- package/dist/plugins/chart/ui/bar-chart.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/accordion-wrapper.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/accordion.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/action-button.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/alert-wrapper.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/alert.d.ts +4 -4
- package/dist/plugins/generative-ui/ui/avatar.d.ts +5 -5
- package/dist/plugins/generative-ui/ui/badge.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/button-wrapper.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/button.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/card-wrapper.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/card.d.ts +8 -8
- package/dist/plugins/generative-ui/ui/checkbox.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/data-table.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/dialog.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/dropdown-menu.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/grid.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/input-wrapper.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/input.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/label.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/metric.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/pagination.d.ts +6 -6
- package/dist/plugins/generative-ui/ui/popover.d.ts +4 -4
- package/dist/plugins/generative-ui/ui/progress.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/radio-group.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/select.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/separator.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/skeleton.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/stack.d.ts +6 -6
- package/dist/plugins/generative-ui/ui/switch.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/table.d.ts +9 -9
- package/dist/plugins/generative-ui/ui/tabs-wrapper.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/tabs.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/text.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/textarea.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/tooltip.d.ts +1 -1
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/{profiler-BFkhZRxj.js → profiler-FpBY9eRv.js} +2 -2
- package/dist/{profiler-BFkhZRxj.js.map → profiler-FpBY9eRv.js.map} +1 -1
- package/dist/{profiler-CyzxBxVz.cjs → profiler-_mthyjvo.cjs} +2 -2
- package/dist/{profiler-CyzxBxVz.cjs.map → profiler-_mthyjvo.cjs.map} +1 -1
- package/dist/react-shim.js +1 -1
- package/dist/server/express.cjs.map +1 -1
- package/dist/server/express.js.map +1 -1
- package/dist/{startRecording-Dq92sEHf.cjs → startRecording-NJcpiHw-.cjs} +2 -2
- package/dist/{startRecording-Dq92sEHf.cjs.map → startRecording-NJcpiHw-.cjs.map} +1 -1
- package/dist/{startRecording-C-PPAs_Z.js → startRecording-r5MXQ2Dm.js} +2 -2
- package/dist/{startRecording-C-PPAs_Z.js.map → startRecording-r5MXQ2Dm.js.map} +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -5
- package/src/compat-plugin.ts +14 -14
- package/src/compat-shims.ts +33 -31
- package/src/compat.test.ts +48 -48
- package/src/compat.ts +6 -6
- package/src/components/Chat/index.tsx +17 -17
- package/src/components/Chat/stories/Charts.stories.tsx +98 -98
- package/src/components/Chat/stories/Composer.stories.tsx +15 -15
- package/src/components/Chat/stories/ConnectionConfiguration.stories.tsx +44 -44
- package/src/components/Chat/stories/CustomComponents.stories.tsx +17 -17
- package/src/components/Chat/stories/Density.stories.tsx +20 -20
- package/src/components/Chat/stories/ErrorBoundary.stories.tsx +47 -47
- package/src/components/Chat/stories/FrontendTools.stories.tsx +39 -39
- package/src/components/Chat/stories/GenerativeUI.stories.tsx +48 -48
- package/src/components/Chat/stories/MessageFeedback.stories.tsx +52 -52
- package/src/components/Chat/stories/Modal.stories.tsx +28 -28
- package/src/components/Chat/stories/Model.stories.tsx +11 -11
- package/src/components/Chat/stories/Radius.stories.tsx +20 -20
- package/src/components/Chat/stories/Sidecar.stories.tsx +13 -13
- package/src/components/Chat/stories/StyleIsolation.stories.tsx +11 -11
- package/src/components/Chat/stories/Theme.stories.tsx +25 -25
- package/src/components/Chat/stories/Thread.stories.tsx +25 -25
- package/src/components/Chat/stories/ToolApproval.stories.tsx +55 -55
- package/src/components/Chat/stories/ToolMentions.stories.tsx +17 -17
- package/src/components/Chat/stories/Tools.stories.tsx +88 -88
- package/src/components/Chat/stories/Variants.stories.tsx +32 -32
- package/src/components/Chat/stories/Welcome.stories.tsx +14 -14
- package/src/components/ChatHistory.tsx +7 -7
- package/src/components/FrontendTools/index.tsx +5 -5
- package/src/components/Replay.stories.tsx +157 -157
- package/src/components/Replay.tsx +76 -73
- package/src/components/ShadowRoot.tsx +40 -40
- package/src/components/ShareButton/index.tsx +32 -32
- package/src/components/assistant-ui/assistant-modal.tsx +92 -87
- package/src/components/assistant-ui/assistant-sidecar.tsx +35 -35
- package/src/components/assistant-ui/attachment.tsx +80 -80
- package/src/components/assistant-ui/connection-status-indicator.tsx +33 -33
- package/src/components/assistant-ui/error-boundary.tsx +34 -34
- package/src/components/assistant-ui/follow-on-suggestions.tsx +26 -26
- package/src/components/assistant-ui/markdown-text.tsx +69 -69
- package/src/components/assistant-ui/mentioned-tools-badges.tsx +38 -38
- package/src/components/assistant-ui/message-feedback.tsx +57 -50
- package/src/components/assistant-ui/reasoning.tsx +83 -83
- package/src/components/assistant-ui/thread-list.tsx +45 -45
- package/src/components/assistant-ui/thread.tsx +278 -278
- package/src/components/assistant-ui/tool-fallback.tsx +37 -37
- package/src/components/assistant-ui/tool-group.tsx +26 -26
- package/src/components/assistant-ui/tool-mention-autocomplete.tsx +122 -122
- package/src/components/assistant-ui/tooltip-icon-button.tsx +18 -18
- package/src/components/ui/avatar.tsx +12 -12
- package/src/components/ui/button.tsx +12 -12
- package/src/components/ui/buttonVariants.ts +17 -17
- package/src/components/ui/calendar.tsx +106 -106
- package/src/components/ui/charts.stories.tsx +56 -56
- package/src/components/ui/collapsible.tsx +5 -5
- package/src/components/ui/dialog.tsx +30 -30
- package/src/components/ui/generative-ui.stories.tsx +200 -200
- package/src/components/ui/generative-ui.tsx +26 -26
- package/src/components/ui/popover.tsx +14 -14
- package/src/components/ui/skeleton.tsx +5 -5
- package/src/components/ui/time-range-picker.stories.tsx +80 -80
- package/src/components/ui/time-range-picker.tsx +245 -244
- package/src/components/ui/tool-ui.stories.tsx +37 -37
- package/src/components/ui/tool-ui.tsx +221 -215
- package/src/components/ui/tooltip.tsx +15 -15
- package/src/constants/tailwind.ts +1 -1
- package/src/contexts/ChatIdContext.tsx +7 -7
- package/src/contexts/ConnectionStatusContext.tsx +64 -64
- package/src/contexts/ElementsProvider.tsx +214 -213
- package/src/contexts/ReplayContext.ts +3 -3
- package/src/contexts/ToolApprovalContext.tsx +54 -54
- package/src/contexts/ToolExecutionContext.tsx +34 -34
- package/src/contexts/contexts.ts +7 -7
- package/src/contexts/portal-container-context.ts +2 -2
- package/src/contexts/portal-container.tsx +7 -7
- package/src/embedded.ts +1 -1
- package/src/global.css +25 -25
- package/src/hooks/useAuth.ts +72 -72
- package/src/hooks/useDensity.ts +79 -79
- package/src/hooks/useElements.ts +6 -6
- package/src/hooks/useExpanded.ts +12 -12
- package/src/hooks/useFollowOnSuggestions.ts +83 -83
- package/src/hooks/useGramThreadListAdapter.tsx +99 -99
- package/src/hooks/useMCPTools.ts +47 -47
- package/src/hooks/useModel.ts +14 -14
- package/src/hooks/usePluginComponents.ts +11 -11
- package/src/hooks/usePortalContainer.ts +5 -5
- package/src/hooks/useRadius.ts +23 -23
- package/src/hooks/useRecordCassette.ts +34 -34
- package/src/hooks/useSession.ts +11 -11
- package/src/hooks/useThemeProps.ts +13 -13
- package/src/hooks/useThreadId.ts +4 -4
- package/src/hooks/useToolApproval.ts +7 -7
- package/src/hooks/useToolMentions.ts +40 -40
- package/src/index.ts +26 -26
- package/src/lib/api.test.ts +61 -61
- package/src/lib/api.ts +4 -3
- package/src/lib/auth.ts +13 -13
- package/src/lib/cassette.ts +84 -84
- package/src/lib/easing.ts +1 -1
- package/src/lib/errorTracking.config.ts +5 -5
- package/src/lib/errorTracking.ts +29 -29
- package/src/lib/generative-ui.ts +7 -7
- package/src/lib/humanize.ts +3 -3
- package/src/lib/messageConverter.test.ts +130 -127
- package/src/lib/messageConverter.ts +196 -196
- package/src/lib/models.ts +21 -20
- package/src/lib/token.test.ts +56 -56
- package/src/lib/token.ts +14 -14
- package/src/lib/tool-mentions.ts +45 -45
- package/src/lib/tools.ts +66 -62
- package/src/lib/utils.ts +5 -5
- package/src/lib.d.ts +1 -1
- package/src/plugins/README.md +5 -5
- package/src/plugins/chart/catalog.ts +18 -18
- package/src/plugins/chart/chart.test.ts +31 -31
- package/src/plugins/chart/component.tsx +34 -34
- package/src/plugins/chart/index.ts +4 -4
- package/src/plugins/chart/ui/area-chart.tsx +42 -42
- package/src/plugins/chart/ui/bar-chart.tsx +46 -46
- package/src/plugins/chart/ui/donut-chart.tsx +48 -48
- package/src/plugins/chart/ui/index.ts +7 -7
- package/src/plugins/chart/ui/line-chart.tsx +43 -43
- package/src/plugins/chart/ui/pie-chart.tsx +44 -44
- package/src/plugins/chart/ui/radar-chart.tsx +33 -33
- package/src/plugins/chart/ui/scatter-chart.tsx +43 -43
- package/src/plugins/components/MacOSWindowFrame.tsx +15 -15
- package/src/plugins/components/PluginLoadingState.tsx +10 -10
- package/src/plugins/components/index.ts +1 -1
- package/src/plugins/generative-ui/catalog.ts +54 -54
- package/src/plugins/generative-ui/component.tsx +85 -85
- package/src/plugins/generative-ui/index.ts +4 -4
- package/src/plugins/generative-ui/ui/accordion-wrapper.tsx +16 -16
- package/src/plugins/generative-ui/ui/accordion.tsx +16 -16
- package/src/plugins/generative-ui/ui/action-button.tsx +28 -28
- package/src/plugins/generative-ui/ui/alert-wrapper.tsx +8 -8
- package/src/plugins/generative-ui/ui/alert.tsx +20 -20
- package/src/plugins/generative-ui/ui/avatar-wrapper.tsx +7 -7
- package/src/plugins/generative-ui/ui/avatar.tsx +30 -30
- package/src/plugins/generative-ui/ui/badge.tsx +22 -22
- package/src/plugins/generative-ui/ui/button-wrapper.tsx +12 -12
- package/src/plugins/generative-ui/ui/button.tsx +28 -28
- package/src/plugins/generative-ui/ui/card-wrapper.tsx +8 -8
- package/src/plugins/generative-ui/ui/card.tsx +27 -27
- package/src/plugins/generative-ui/ui/checkbox-wrapper.tsx +9 -9
- package/src/plugins/generative-ui/ui/checkbox.tsx +9 -9
- package/src/plugins/generative-ui/ui/data-table.tsx +8 -8
- package/src/plugins/generative-ui/ui/dialog.tsx +31 -31
- package/src/plugins/generative-ui/ui/dropdown-menu.tsx +44 -44
- package/src/plugins/generative-ui/ui/grid.tsx +12 -12
- package/src/plugins/generative-ui/ui/index.ts +40 -40
- package/src/plugins/generative-ui/ui/input-wrapper.tsx +11 -11
- package/src/plugins/generative-ui/ui/input.tsx +9 -9
- package/src/plugins/generative-ui/ui/label.tsx +8 -8
- package/src/plugins/generative-ui/ui/list.tsx +11 -11
- package/src/plugins/generative-ui/ui/metric.tsx +23 -23
- package/src/plugins/generative-ui/ui/pagination.tsx +28 -28
- package/src/plugins/generative-ui/ui/popover.tsx +21 -21
- package/src/plugins/generative-ui/ui/progress.tsx +13 -13
- package/src/plugins/generative-ui/ui/radio-group.tsx +12 -12
- package/src/plugins/generative-ui/ui/select-wrapper.tsx +7 -7
- package/src/plugins/generative-ui/ui/select.tsx +37 -37
- package/src/plugins/generative-ui/ui/separator.tsx +9 -9
- package/src/plugins/generative-ui/ui/skeleton-wrapper.tsx +10 -10
- package/src/plugins/generative-ui/ui/skeleton.tsx +5 -5
- package/src/plugins/generative-ui/ui/stack.tsx +28 -28
- package/src/plugins/generative-ui/ui/switch.tsx +11 -11
- package/src/plugins/generative-ui/ui/table.tsx +32 -32
- package/src/plugins/generative-ui/ui/tabs-wrapper.tsx +11 -11
- package/src/plugins/generative-ui/ui/tabs.tsx +26 -26
- package/src/plugins/generative-ui/ui/text.tsx +12 -12
- package/src/plugins/generative-ui/ui/textarea.tsx +7 -7
- package/src/plugins/generative-ui/ui/tooltip.tsx +12 -12
- package/src/plugins/index.ts +7 -7
- package/src/react-shim.ts +6 -6
- package/src/server/bun.ts +12 -12
- package/src/server/core.ts +25 -25
- package/src/server/express.ts +17 -15
- package/src/server/fastify.ts +14 -14
- package/src/server/hono.ts +9 -9
- package/src/server/nextjs.ts +12 -12
- package/src/server/tanstack-start.ts +12 -12
- package/src/server.ts +27 -27
- package/src/storybook.d.ts +4 -4
- package/src/types/index.ts +122 -122
- package/src/types/plugins.ts +7 -7
- package/src/vite-env.d.ts +12 -12
- package/dist/compat-shims-BPJ7Q68c.js.map +0 -1
- package/dist/index-D0bAYNQy.js.map +0 -1
- package/dist/index-KSX4Qjip.cjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as T from "react";
|
|
2
|
-
import { useRef as ze, useEffect as Ce, useCallback as Ae, useMemo as Ve, useState as
|
|
3
|
-
import { c as C$ } from "./compat-shims-
|
|
2
|
+
import { useRef as ze, useEffect as Ce, useCallback as Ae, useMemo as Ve, useState as oe, useContext as bo, createContext as gs, Component as O$, forwardRef as N$, memo as Ru, useSyncExternalStore as A$ } from "react";
|
|
3
|
+
import { c as C$ } from "./compat-shims-DxtUrORi.js";
|
|
4
4
|
import { jsx as p, Fragment as Xt, jsxs as A } from "react/jsx-runtime";
|
|
5
5
|
import { RuntimeAdapterProvider as R$, useAssistantApi as Pu, makeAssistantTool as P$, unstable_useRemoteThreadListRuntime as z$, AssistantRuntimeProvider as zu, useAssistantState as Qe, MessagePrimitive as Pr, ComposerPrimitive as ir, AttachmentPrimitive as Mc, ThreadPrimitive as It, useScrollLock as D$, useThreadRuntime as Fh, ErrorPrimitive as af, ActionBarPrimitive as Pi, BranchPickerPrimitive as xa, ThreadListPrimitive as Du, ThreadListItemPrimitive as jc } from "@assistant-ui/react";
|
|
6
|
-
import { a as of, T as Vh, c as Re, u as Uu, b as Mu, d as Da, e as fn, P as Zr, f as st, g as gn, h as ju, i as Zh, R as qh, j as Bh, k as Gh, F as Hh, D as Lu, l as U$, m as hs, n as Jh, A as Fu, C as Wh, o as Kh, p as M$, q as j$, r as Yh, s as Vu, E as Zu, t as Xh, v as O, w as L$, B as _t, x as F$, y as V$, z as Lc, G as Z$, S as q$, H as ot, I as xr, J as Vt, K as Nr, L as B$, M as G$, N as H$, O as Za, Q as J$, U as W$, V as K$, W as Y$ } from "./index-
|
|
6
|
+
import { a as of, T as Vh, c as Re, u as Uu, b as Mu, d as Da, e as fn, P as Zr, f as st, g as gn, h as ju, i as Zh, R as qh, j as Bh, k as Gh, F as Hh, D as Lu, l as U$, m as hs, n as Jh, A as Fu, C as Wh, o as Kh, p as M$, q as j$, r as Yh, s as Vu, E as Zu, t as Xh, v as O, w as L$, B as _t, x as F$, y as V$, z as Lc, G as Z$, S as q$, H as ot, I as xr, J as Vt, K as Nr, L as B$, M as G$, N as H$, O as Za, Q as J$, U as W$, V as K$, W as Y$ } from "./index-D93pV0_o.js";
|
|
7
7
|
import { frontendTools as X$, useChatRuntime as qu } from "@assistant-ui/react-ai-sdk";
|
|
8
8
|
import { AnimatePresence as qr, motion as Q$, LazyMotion as Bu, domAnimation as eT, MotionConfig as Qh, domMax as ev } from "motion/react";
|
|
9
9
|
import * as Je from "motion/react-m";
|
|
@@ -699,7 +699,7 @@ class IT {
|
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
function ET(e) {
|
|
702
|
-
const t = Pu(), [r] =
|
|
702
|
+
const t = Pu(), [r] = oe(
|
|
703
703
|
() => new IT(
|
|
704
704
|
e.current.apiUrl,
|
|
705
705
|
e.current.headers,
|
|
@@ -19334,7 +19334,7 @@ function hU(e, t, r) {
|
|
|
19334
19334
|
function Nl(e, t) {
|
|
19335
19335
|
return t ? `${e}>${t}` : e;
|
|
19336
19336
|
}
|
|
19337
|
-
const
|
|
19337
|
+
const le = {
|
|
19338
19338
|
IGNORE: "ignore",
|
|
19339
19339
|
HIDDEN: "hidden",
|
|
19340
19340
|
ALLOW: Dn.ALLOW,
|
|
@@ -19362,17 +19362,17 @@ function Al(e, t, r) {
|
|
|
19362
19362
|
function wU(e, t) {
|
|
19363
19363
|
switch (t) {
|
|
19364
19364
|
// These values cannot be overridden
|
|
19365
|
-
case
|
|
19366
|
-
case
|
|
19365
|
+
case le.HIDDEN:
|
|
19366
|
+
case le.IGNORE:
|
|
19367
19367
|
return t;
|
|
19368
19368
|
}
|
|
19369
19369
|
switch (e) {
|
|
19370
|
-
case
|
|
19371
|
-
case
|
|
19372
|
-
case
|
|
19373
|
-
case
|
|
19374
|
-
case
|
|
19375
|
-
case
|
|
19370
|
+
case le.ALLOW:
|
|
19371
|
+
case le.MASK:
|
|
19372
|
+
case le.MASK_USER_INPUT:
|
|
19373
|
+
case le.MASK_UNLESS_ALLOWLISTED:
|
|
19374
|
+
case le.HIDDEN:
|
|
19375
|
+
case le.IGNORE:
|
|
19376
19376
|
return e;
|
|
19377
19377
|
default:
|
|
19378
19378
|
return t;
|
|
@@ -19381,45 +19381,45 @@ function wU(e, t) {
|
|
|
19381
19381
|
function _U(e) {
|
|
19382
19382
|
if (_r(e)) {
|
|
19383
19383
|
if (e.tagName === "BASE")
|
|
19384
|
-
return
|
|
19384
|
+
return le.ALLOW;
|
|
19385
19385
|
if (e.tagName === "INPUT") {
|
|
19386
19386
|
const t = e;
|
|
19387
19387
|
if (t.type === "password" || t.type === "email" || t.type === "tel" || t.type === "hidden")
|
|
19388
|
-
return
|
|
19388
|
+
return le.MASK;
|
|
19389
19389
|
const r = t.getAttribute("autocomplete");
|
|
19390
19390
|
if (r && (r.startsWith("cc-") || r.endsWith("-password")))
|
|
19391
|
-
return
|
|
19392
|
-
}
|
|
19393
|
-
if (e.matches(Xr(
|
|
19394
|
-
return
|
|
19395
|
-
if (e.matches(Xr(
|
|
19396
|
-
return
|
|
19397
|
-
if (e.matches(Xr(
|
|
19398
|
-
return
|
|
19399
|
-
if (e.matches(Xr(
|
|
19400
|
-
return
|
|
19401
|
-
if (e.matches(Xr(
|
|
19402
|
-
return
|
|
19391
|
+
return le.MASK;
|
|
19392
|
+
}
|
|
19393
|
+
if (e.matches(Xr(le.HIDDEN)))
|
|
19394
|
+
return le.HIDDEN;
|
|
19395
|
+
if (e.matches(Xr(le.MASK)))
|
|
19396
|
+
return le.MASK;
|
|
19397
|
+
if (e.matches(Xr(le.MASK_UNLESS_ALLOWLISTED)))
|
|
19398
|
+
return le.MASK_UNLESS_ALLOWLISTED;
|
|
19399
|
+
if (e.matches(Xr(le.MASK_USER_INPUT)))
|
|
19400
|
+
return le.MASK_USER_INPUT;
|
|
19401
|
+
if (e.matches(Xr(le.ALLOW)))
|
|
19402
|
+
return le.ALLOW;
|
|
19403
19403
|
if (kU(e))
|
|
19404
|
-
return
|
|
19404
|
+
return le.IGNORE;
|
|
19405
19405
|
}
|
|
19406
19406
|
}
|
|
19407
19407
|
function SS(e, t) {
|
|
19408
19408
|
switch (t) {
|
|
19409
|
-
case
|
|
19410
|
-
case
|
|
19411
|
-
case
|
|
19409
|
+
case le.MASK:
|
|
19410
|
+
case le.HIDDEN:
|
|
19411
|
+
case le.IGNORE:
|
|
19412
19412
|
return !0;
|
|
19413
|
-
case
|
|
19413
|
+
case le.MASK_UNLESS_ALLOWLISTED:
|
|
19414
19414
|
return uu(e) ? bi(e.parentNode) ? !0 : !ES(e.textContent || "") : bi(e);
|
|
19415
|
-
case
|
|
19415
|
+
case le.MASK_USER_INPUT:
|
|
19416
19416
|
return uu(e) ? bi(e.parentNode) : bi(e);
|
|
19417
19417
|
default:
|
|
19418
19418
|
return !1;
|
|
19419
19419
|
}
|
|
19420
19420
|
}
|
|
19421
19421
|
function xU(e, t, r, a, n) {
|
|
19422
|
-
if (a !==
|
|
19422
|
+
if (a !== le.MASK && a !== le.MASK_UNLESS_ALLOWLISTED || t === kS || wS.includes(t) || t === n.actionNameAttribute)
|
|
19423
19423
|
return !1;
|
|
19424
19424
|
switch (t) {
|
|
19425
19425
|
case "title":
|
|
@@ -19453,7 +19453,7 @@ function eG(e, t) {
|
|
|
19453
19453
|
const i = t;
|
|
19454
19454
|
if (a === "SCRIPT")
|
|
19455
19455
|
n = fc;
|
|
19456
|
-
else if (i ===
|
|
19456
|
+
else if (i === le.HIDDEN)
|
|
19457
19457
|
n = fc;
|
|
19458
19458
|
else if (SS(e, i))
|
|
19459
19459
|
if (
|
|
@@ -19462,7 +19462,7 @@ function eG(e, t) {
|
|
|
19462
19462
|
) {
|
|
19463
19463
|
if (!n.trim())
|
|
19464
19464
|
return;
|
|
19465
|
-
} else a === "OPTION" ? n = fc : i ===
|
|
19465
|
+
} else a === "OPTION" ? n = fc : i === le.MASK_UNLESS_ALLOWLISTED ? n = $S(n) : n = IS(n);
|
|
19466
19466
|
return n;
|
|
19467
19467
|
}
|
|
19468
19468
|
function kU(e) {
|
|
@@ -19529,13 +19529,13 @@ function EU(e, t) {
|
|
|
19529
19529
|
function $U(e, t) {
|
|
19530
19530
|
return Math.sqrt(Math.pow(e.clientX - t.clientX, 2) + Math.pow(e.clientY - t.clientY, 2));
|
|
19531
19531
|
}
|
|
19532
|
-
function TU(e, t, r =
|
|
19532
|
+
function TU(e, t, r = le.ALLOW) {
|
|
19533
19533
|
const a = /* @__PURE__ */ new Map(), { actionNameAttribute: n } = t, o = bg(e, Ol) || n && bg(e, n);
|
|
19534
19534
|
return o ? {
|
|
19535
19535
|
name: o,
|
|
19536
19536
|
nameSource: "custom_attribute"
|
|
19537
19537
|
/* ActionNameSource.CUSTOM_ATTRIBUTE */
|
|
19538
|
-
} : r ===
|
|
19538
|
+
} : r === le.MASK ? {
|
|
19539
19539
|
name: yS,
|
|
19540
19540
|
nameSource: "mask_placeholder"
|
|
19541
19541
|
/* ActionNameSource.MASK_PLACEHOLDER */
|
|
@@ -19657,7 +19657,7 @@ function AS(e, t, r) {
|
|
|
19657
19657
|
}
|
|
19658
19658
|
}
|
|
19659
19659
|
};
|
|
19660
|
-
return s(`[${Ol}]`), n && s(`[${n}]`), a && s(`${Xr(
|
|
19660
|
+
return s(`[${Ol}]`), n && s(`[${n}]`), a && s(`${Xr(le.HIDDEN)}, ${Xr(le.MASK)}`), i;
|
|
19661
19661
|
}
|
|
19662
19662
|
return e.textContent;
|
|
19663
19663
|
}
|
|
@@ -19814,7 +19814,7 @@ function LU(e, t, r, a) {
|
|
|
19814
19814
|
}
|
|
19815
19815
|
function FU(e, t, r, a, n) {
|
|
19816
19816
|
let o;
|
|
19817
|
-
if (e.enablePrivacyForActionName ? o = Al(a.target, e.defaultPrivacyLevel) : o =
|
|
19817
|
+
if (e.enablePrivacyForActionName ? o = Al(a.target, e.defaultPrivacyLevel) : o = le.ALLOW, o === le.HIDDEN)
|
|
19818
19818
|
return;
|
|
19819
19819
|
const i = ZU(a, o, e);
|
|
19820
19820
|
let s = !1;
|
|
@@ -20881,12 +20881,12 @@ function aj(e, t, r, a, n, o, i = et(), s) {
|
|
|
20881
20881
|
e.notify(1, v), e.notify(2, v);
|
|
20882
20882
|
const { throttled: I, cancel: S } = wl(F, ej, {
|
|
20883
20883
|
leading: !1
|
|
20884
|
-
}), { setLoadEvent: E, setViewEnd: C, stop: j, stopINPTracking: Z, getCommonViewMetrics: de } = YM(e, t, r, a,
|
|
20885
|
-
o === hr.BF_CACHE && QM(i, re,
|
|
20886
|
-
const { stop: G, eventCounts: ve } = vM(e, l,
|
|
20884
|
+
}), { setLoadEvent: E, setViewEnd: C, stop: j, stopINPTracking: Z, getCommonViewMetrics: de } = YM(e, t, r, a, ie, o, i), { stop: Ue, initialViewMetrics: re } = o === hr.INITIAL_LOAD ? OM(a, i, E, ie) : { stop: _e, initialViewMetrics: {} };
|
|
20885
|
+
o === hr.BF_CACHE && QM(i, re, ie);
|
|
20886
|
+
const { stop: G, eventCounts: ve } = vM(e, l, ie), $e = da(F, tj), Be = e.subscribe(11, (fe) => {
|
|
20887
20887
|
fe.reason === Ln.UNLOADING && F();
|
|
20888
20888
|
});
|
|
20889
|
-
F(), g.changeObservable.subscribe(
|
|
20889
|
+
F(), g.changeObservable.subscribe(ie);
|
|
20890
20890
|
function Ee() {
|
|
20891
20891
|
e.notify(3, {
|
|
20892
20892
|
id: l,
|
|
@@ -20896,7 +20896,7 @@ function aj(e, t, r, a, n, o, i = et(), s) {
|
|
|
20896
20896
|
sessionIsActive: h
|
|
20897
20897
|
});
|
|
20898
20898
|
}
|
|
20899
|
-
function
|
|
20899
|
+
function ie() {
|
|
20900
20900
|
Ee(), I();
|
|
20901
20901
|
}
|
|
20902
20902
|
function F() {
|
|
@@ -20942,7 +20942,7 @@ function aj(e, t, r, a, n, o, i = et(), s) {
|
|
|
20942
20942
|
if (m)
|
|
20943
20943
|
return;
|
|
20944
20944
|
const be = _2(ae) ? ae : qe(i.timeStamp, ae);
|
|
20945
|
-
u[oj(fe)] = be,
|
|
20945
|
+
u[oj(fe)] = be, ie();
|
|
20946
20946
|
},
|
|
20947
20947
|
setViewName(fe) {
|
|
20948
20948
|
b = fe, F();
|
|
@@ -21764,7 +21764,7 @@ function r6(e, t, r, a, n, o, i, s, l) {
|
|
|
21764
21764
|
Hj(d, b, t, S), Jj(d), Kj(d, o);
|
|
21765
21765
|
const j = Cz(d, e, "rum"), Z = Rz(d, e, b, "rum"), de = Az(d, e, "rum"), { actionContexts: Ue, addAction: re, addEvent: G, stop: ve } = n6(u, d, e, I, y, x, m);
|
|
21766
21766
|
c.push(ve);
|
|
21767
|
-
const { addTiming: $e, startView: Be, setViewName: Ee, setViewContext:
|
|
21767
|
+
const { addTiming: $e, startView: Be, setViewName: Ee, setViewContext: ie, setViewContextProperty: F, getViewContext: fe, stop: ae } = lj(u, d, e, location, y, x, _, t, S, a);
|
|
21768
21768
|
c.push(ae);
|
|
21769
21769
|
const { stop: be } = e6(u, h);
|
|
21770
21770
|
c.push(be);
|
|
@@ -21785,7 +21785,7 @@ function r6(e, t, r, a, n, o, i, s, l) {
|
|
|
21785
21785
|
addTiming: $e,
|
|
21786
21786
|
addFeatureFlagEvaluation: C.addFeatureFlagEvaluation,
|
|
21787
21787
|
startView: Be,
|
|
21788
|
-
setViewContext:
|
|
21788
|
+
setViewContext: ie,
|
|
21789
21789
|
setViewContextProperty: F,
|
|
21790
21790
|
getViewContext: fe,
|
|
21791
21791
|
setViewName: Ee,
|
|
@@ -22230,7 +22230,7 @@ async function I6(e = E6) {
|
|
|
22230
22230
|
async function E6() {
|
|
22231
22231
|
return (await import(
|
|
22232
22232
|
/* webpackChunkName: "recorder" */
|
|
22233
|
-
"./startRecording-
|
|
22233
|
+
"./startRecording-r5MXQ2Dm.js"
|
|
22234
22234
|
)).startRecording;
|
|
22235
22235
|
}
|
|
22236
22236
|
function $6() {
|
|
@@ -22266,7 +22266,7 @@ async function O6(e = N6) {
|
|
|
22266
22266
|
async function N6() {
|
|
22267
22267
|
return (await import(
|
|
22268
22268
|
/* webpackChunkName: "profiler" */
|
|
22269
|
-
"./profiler-
|
|
22269
|
+
"./profiler-FpBY9eRv.js"
|
|
22270
22270
|
)).createRumProfiler;
|
|
22271
22271
|
}
|
|
22272
22272
|
function A6() {
|
|
@@ -22356,6 +22356,7 @@ const up = [
|
|
|
22356
22356
|
"anthropic/claude-haiku-4.5",
|
|
22357
22357
|
"anthropic/claude-sonnet-4",
|
|
22358
22358
|
"anthropic/claude-opus-4.5",
|
|
22359
|
+
"openai/gpt-5.4",
|
|
22359
22360
|
"openai/gpt-4o",
|
|
22360
22361
|
"openai/gpt-4o-mini",
|
|
22361
22362
|
"openai/gpt-5.1-codex",
|
|
@@ -22407,7 +22408,11 @@ const iG = (e, t) => P$({
|
|
|
22407
22408
|
execute: async (r, a) => {
|
|
22408
22409
|
if (as?.requiresApproval(t)) {
|
|
22409
22410
|
const { helpers: n } = as, o = a.toolCallId ?? "";
|
|
22410
|
-
if (!n.isToolApproved(t) && !await n.requestApproval(
|
|
22411
|
+
if (!n.isToolApproved(t) && !await n.requestApproval(
|
|
22412
|
+
t,
|
|
22413
|
+
o,
|
|
22414
|
+
r
|
|
22415
|
+
))
|
|
22411
22416
|
return {
|
|
22412
22417
|
content: [
|
|
22413
22418
|
{
|
|
@@ -24867,7 +24872,7 @@ var $3 = $({
|
|
|
24867
24872
|
}
|
|
24868
24873
|
}
|
|
24869
24874
|
});
|
|
24870
|
-
const
|
|
24875
|
+
const ie = (d = G.message.annotations) == null ? void 0 : d.filter(
|
|
24871
24876
|
(z) => z.type === "file"
|
|
24872
24877
|
), F = G.message.tool_calls && G.message.tool_calls.length > 0, fe = $e.some(
|
|
24873
24878
|
(z) => z.type === "reasoning.encrypted" && z.data
|
|
@@ -24881,7 +24886,7 @@ var $3 = $({
|
|
|
24881
24886
|
openrouter: w3.parse({
|
|
24882
24887
|
provider: (m = re.provider) != null ? m : "",
|
|
24883
24888
|
reasoning_details: (f = G.message.reasoning_details) != null ? f : [],
|
|
24884
|
-
annotations:
|
|
24889
|
+
annotations: ie && ie.length > 0 ? ie : void 0,
|
|
24885
24890
|
usage: we(we(we({
|
|
24886
24891
|
promptTokens: (g = ve.inputTokens) != null ? g : 0,
|
|
24887
24892
|
completionTokens: (h = ve.outputTokens) != null ? h : 0,
|
|
@@ -24945,7 +24950,7 @@ var $3 = $({
|
|
|
24945
24950
|
stream: o.pipeThrough(
|
|
24946
24951
|
new TransformStream({
|
|
24947
24952
|
transform(x, v) {
|
|
24948
|
-
var I, S, E, C, j, Z, de, Ue, re, G, ve, $e, Be, Ee,
|
|
24953
|
+
var I, S, E, C, j, Z, de, Ue, re, G, ve, $e, Be, Ee, ie;
|
|
24949
24954
|
if (!x.success) {
|
|
24950
24955
|
l = "error", v.enqueue({ type: "error", error: x.error });
|
|
24951
24956
|
return;
|
|
@@ -25134,7 +25139,7 @@ var $3 = $({
|
|
|
25134
25139
|
delta: ($e = z.function.arguments) != null ? $e : ""
|
|
25135
25140
|
}), ((Be = W.function) == null ? void 0 : Be.name) != null && ((Ee = W.function) == null ? void 0 : Ee.arguments) != null && _c(W.function.arguments) && (v.enqueue({
|
|
25136
25141
|
type: "tool-call",
|
|
25137
|
-
toolCallId: (
|
|
25142
|
+
toolCallId: (ie = W.id) != null ? ie : Jt(),
|
|
25138
25143
|
toolName: W.function.name,
|
|
25139
25144
|
input: W.function.arguments,
|
|
25140
25145
|
providerMetadata: {
|
|
@@ -31053,13 +31058,13 @@ var $V = class {
|
|
|
31053
31058
|
this._totalUsage = new ki(), this._finishReason = new ki(), this._steps = new ki(), this.output = h, this.includeRawChunks = _, this.tools = c;
|
|
31054
31059
|
let re, G = [];
|
|
31055
31060
|
const ve = [];
|
|
31056
|
-
let $e, Be, Ee = {},
|
|
31061
|
+
let $e, Be, Ee = {}, ie = [];
|
|
31057
31062
|
const F = [];
|
|
31058
31063
|
let fe, ae = {}, be = {};
|
|
31059
31064
|
const z = new TransformStream({
|
|
31060
|
-
async transform(je,
|
|
31065
|
+
async transform(je, se) {
|
|
31061
31066
|
var Oe, me, Tt, va;
|
|
31062
|
-
|
|
31067
|
+
se.enqueue(je);
|
|
31063
31068
|
const { part: M } = je;
|
|
31064
31069
|
if ((M.type === "text-delta" || M.type === "reasoning-delta" || M.type === "source" || M.type === "tool-call" || M.type === "tool-result" || M.type === "tool-input-start" || M.type === "tool-input-delta" || M.type === "raw") && await S?.({ chunk: M }), M.type === "error" && await E({ error: UE(M.error) }), M.type === "text-start" && (ae[M.id] = {
|
|
31065
31070
|
type: "text",
|
|
@@ -31068,7 +31073,7 @@ var $V = class {
|
|
|
31068
31073
|
}, G.push(ae[M.id])), M.type === "text-delta") {
|
|
31069
31074
|
const Le = ae[M.id];
|
|
31070
31075
|
if (Le == null) {
|
|
31071
|
-
|
|
31076
|
+
se.enqueue({
|
|
31072
31077
|
part: {
|
|
31073
31078
|
type: "error",
|
|
31074
31079
|
error: `text part ${M.id} not found`
|
|
@@ -31082,7 +31087,7 @@ var $V = class {
|
|
|
31082
31087
|
if (M.type === "text-end") {
|
|
31083
31088
|
const Le = ae[M.id];
|
|
31084
31089
|
if (Le == null) {
|
|
31085
|
-
|
|
31090
|
+
se.enqueue({
|
|
31086
31091
|
part: {
|
|
31087
31092
|
type: "error",
|
|
31088
31093
|
error: `text part ${M.id} not found`
|
|
@@ -31100,7 +31105,7 @@ var $V = class {
|
|
|
31100
31105
|
}, G.push(be[M.id])), M.type === "reasoning-delta") {
|
|
31101
31106
|
const Le = be[M.id];
|
|
31102
31107
|
if (Le == null) {
|
|
31103
|
-
|
|
31108
|
+
se.enqueue({
|
|
31104
31109
|
part: {
|
|
31105
31110
|
type: "error",
|
|
31106
31111
|
error: `reasoning part ${M.id} not found`
|
|
@@ -31114,7 +31119,7 @@ var $V = class {
|
|
|
31114
31119
|
if (M.type === "reasoning-end") {
|
|
31115
31120
|
const Le = be[M.id];
|
|
31116
31121
|
if (Le == null) {
|
|
31117
|
-
|
|
31122
|
+
se.enqueue({
|
|
31118
31123
|
part: {
|
|
31119
31124
|
type: "error",
|
|
31120
31125
|
error: `reasoning part ${M.id} not found`
|
|
@@ -31125,7 +31130,7 @@ var $V = class {
|
|
|
31125
31130
|
}
|
|
31126
31131
|
Le.providerMetadata = (va = M.providerMetadata) != null ? va : Le.providerMetadata, delete be[M.id];
|
|
31127
31132
|
}
|
|
31128
|
-
if (M.type === "file" && G.push({ type: "file", file: M.file }), M.type === "source" && G.push(M), M.type === "tool-call" && G.push(M), M.type === "tool-result" && !M.preliminary && G.push(M), M.type === "tool-error" && G.push(M), M.type === "start-step" && (Ee = M.request,
|
|
31133
|
+
if (M.type === "file" && G.push({ type: "file", file: M.file }), M.type === "source" && G.push(M), M.type === "tool-call" && G.push(M), M.type === "tool-result" && !M.preliminary && G.push(M), M.type === "tool-error" && G.push(M), M.type === "start-step" && (Ee = M.request, ie = M.warnings), M.type === "finish-step") {
|
|
31129
31134
|
const Le = Oh({
|
|
31130
31135
|
content: G,
|
|
31131
31136
|
tools: c
|
|
@@ -31133,7 +31138,7 @@ var $V = class {
|
|
|
31133
31138
|
content: G,
|
|
31134
31139
|
finishReason: M.finishReason,
|
|
31135
31140
|
usage: M.usage,
|
|
31136
|
-
warnings:
|
|
31141
|
+
warnings: ie,
|
|
31137
31142
|
request: Ee,
|
|
31138
31143
|
response: {
|
|
31139
31144
|
...M.response,
|
|
@@ -31141,7 +31146,7 @@ var $V = class {
|
|
|
31141
31146
|
},
|
|
31142
31147
|
providerMetadata: M.providerMetadata
|
|
31143
31148
|
});
|
|
31144
|
-
await Z?.(ba), Y1(
|
|
31149
|
+
await Z?.(ba), Y1(ie), F.push(ba), G = [], be = {}, ae = {}, ve.push(...Le), re.resolve();
|
|
31145
31150
|
}
|
|
31146
31151
|
M.type === "finish" && (Be = M.totalUsage, $e = M.finishReason);
|
|
31147
31152
|
},
|
|
@@ -31154,15 +31159,15 @@ var $V = class {
|
|
|
31154
31159
|
He._finishReason.reject(Tt), He._totalUsage.reject(Tt), He._steps.reject(Tt);
|
|
31155
31160
|
return;
|
|
31156
31161
|
}
|
|
31157
|
-
const
|
|
31162
|
+
const se = $e ?? "unknown", Oe = Be ?? {
|
|
31158
31163
|
inputTokens: void 0,
|
|
31159
31164
|
outputTokens: void 0,
|
|
31160
31165
|
totalTokens: void 0
|
|
31161
31166
|
};
|
|
31162
|
-
He._finishReason.resolve(
|
|
31167
|
+
He._finishReason.resolve(se), He._totalUsage.resolve(Oe), He._steps.resolve(F);
|
|
31163
31168
|
const me = F[F.length - 1];
|
|
31164
31169
|
await C?.({
|
|
31165
|
-
finishReason:
|
|
31170
|
+
finishReason: se,
|
|
31166
31171
|
totalUsage: Oe,
|
|
31167
31172
|
usage: me.usage,
|
|
31168
31173
|
content: me.content,
|
|
@@ -31186,7 +31191,7 @@ var $V = class {
|
|
|
31186
31191
|
lr({
|
|
31187
31192
|
telemetry: t,
|
|
31188
31193
|
attributes: {
|
|
31189
|
-
"ai.response.finishReason":
|
|
31194
|
+
"ai.response.finishReason": se,
|
|
31190
31195
|
"ai.response.text": { output: () => me.text },
|
|
31191
31196
|
"ai.response.toolCalls": {
|
|
31192
31197
|
output: () => {
|
|
@@ -31205,8 +31210,8 @@ var $V = class {
|
|
|
31205
31210
|
}
|
|
31206
31211
|
})
|
|
31207
31212
|
);
|
|
31208
|
-
} catch (
|
|
31209
|
-
je.error(
|
|
31213
|
+
} catch (se) {
|
|
31214
|
+
je.error(se);
|
|
31210
31215
|
} finally {
|
|
31211
31216
|
fe.end();
|
|
31212
31217
|
}
|
|
@@ -31219,7 +31224,7 @@ var $V = class {
|
|
|
31219
31224
|
je.enqueue({ type: "start" });
|
|
31220
31225
|
},
|
|
31221
31226
|
async pull(je) {
|
|
31222
|
-
function
|
|
31227
|
+
function se() {
|
|
31223
31228
|
j?.({ steps: F }), je.enqueue({ type: "abort" }), je.close();
|
|
31224
31229
|
}
|
|
31225
31230
|
try {
|
|
@@ -31229,12 +31234,12 @@ var $V = class {
|
|
|
31229
31234
|
return;
|
|
31230
31235
|
}
|
|
31231
31236
|
if (o?.aborted) {
|
|
31232
|
-
|
|
31237
|
+
se();
|
|
31233
31238
|
return;
|
|
31234
31239
|
}
|
|
31235
31240
|
je.enqueue(me);
|
|
31236
31241
|
} catch (Oe) {
|
|
31237
|
-
dn(Oe) && o?.aborted ?
|
|
31242
|
+
dn(Oe) && o?.aborted ? se() : je.error(Oe);
|
|
31238
31243
|
}
|
|
31239
31244
|
},
|
|
31240
31245
|
cancel(je) {
|
|
@@ -31277,7 +31282,7 @@ var $V = class {
|
|
|
31277
31282
|
endWhenDone: !1,
|
|
31278
31283
|
fn: async (je) => {
|
|
31279
31284
|
fe = je;
|
|
31280
|
-
async function
|
|
31285
|
+
async function se({
|
|
31281
31286
|
currentStep: Oe,
|
|
31282
31287
|
responseMessages: me,
|
|
31283
31288
|
usage: Tt
|
|
@@ -31593,7 +31598,7 @@ var $V = class {
|
|
|
31593
31598
|
})
|
|
31594
31599
|
);
|
|
31595
31600
|
try {
|
|
31596
|
-
await
|
|
31601
|
+
await se({
|
|
31597
31602
|
currentStep: Oe + 1,
|
|
31598
31603
|
responseMessages: me,
|
|
31599
31604
|
usage: wa
|
|
@@ -31615,7 +31620,7 @@ var $V = class {
|
|
|
31615
31620
|
)
|
|
31616
31621
|
);
|
|
31617
31622
|
}
|
|
31618
|
-
await
|
|
31623
|
+
await se({
|
|
31619
31624
|
currentStep: 0,
|
|
31620
31625
|
responseMessages: [],
|
|
31621
31626
|
usage: {
|
|
@@ -31628,8 +31633,8 @@ var $V = class {
|
|
|
31628
31633
|
}).catch((je) => {
|
|
31629
31634
|
He.addStream(
|
|
31630
31635
|
new ReadableStream({
|
|
31631
|
-
start(
|
|
31632
|
-
|
|
31636
|
+
start(se) {
|
|
31637
|
+
se.enqueue({ type: "error", error: je }), se.close();
|
|
31633
31638
|
}
|
|
31634
31639
|
})
|
|
31635
31640
|
), He.closeStream();
|
|
@@ -32669,7 +32674,7 @@ async function Cu(e) {
|
|
|
32669
32674
|
tracer: de,
|
|
32670
32675
|
fn: async (Ue) => {
|
|
32671
32676
|
var re;
|
|
32672
|
-
let G, ve, $e, Be, Ee,
|
|
32677
|
+
let G, ve, $e, Be, Ee, ie, F, fe;
|
|
32673
32678
|
const ae = await DE({
|
|
32674
32679
|
system: a,
|
|
32675
32680
|
prompt: n,
|
|
@@ -32706,7 +32711,7 @@ async function Cu(e) {
|
|
|
32706
32711
|
tracer: de,
|
|
32707
32712
|
fn: async (W) => {
|
|
32708
32713
|
var Te, ge, rr, nr, Ke, Me, He, je;
|
|
32709
|
-
const
|
|
32714
|
+
const se = await b.doGenerate({
|
|
32710
32715
|
responseFormat: {
|
|
32711
32716
|
type: "json",
|
|
32712
32717
|
schema: E.jsonSchema,
|
|
@@ -32719,44 +32724,44 @@ async function Cu(e) {
|
|
|
32719
32724
|
abortSignal: s,
|
|
32720
32725
|
headers: j
|
|
32721
32726
|
}), Oe = {
|
|
32722
|
-
id: (ge = (Te =
|
|
32723
|
-
timestamp: (nr = (rr =
|
|
32724
|
-
modelId: (Me = (Ke =
|
|
32725
|
-
headers: (He =
|
|
32726
|
-
body: (je =
|
|
32727
|
-
}, me = aV(
|
|
32727
|
+
id: (ge = (Te = se.response) == null ? void 0 : Te.id) != null ? ge : f(),
|
|
32728
|
+
timestamp: (nr = (rr = se.response) == null ? void 0 : rr.timestamp) != null ? nr : g(),
|
|
32729
|
+
modelId: (Me = (Ke = se.response) == null ? void 0 : Ke.modelId) != null ? Me : b.modelId,
|
|
32730
|
+
headers: (He = se.response) == null ? void 0 : He.headers,
|
|
32731
|
+
body: (je = se.response) == null ? void 0 : je.body
|
|
32732
|
+
}, me = aV(se.content), Tt = OV(se.content);
|
|
32728
32733
|
if (me === void 0)
|
|
32729
32734
|
throw new pn({
|
|
32730
32735
|
message: "No object generated: the model did not return a response.",
|
|
32731
32736
|
response: Oe,
|
|
32732
|
-
usage:
|
|
32733
|
-
finishReason:
|
|
32737
|
+
usage: se.usage,
|
|
32738
|
+
finishReason: se.finishReason
|
|
32734
32739
|
});
|
|
32735
32740
|
return W.setAttributes(
|
|
32736
32741
|
lr({
|
|
32737
32742
|
telemetry: u,
|
|
32738
32743
|
attributes: {
|
|
32739
|
-
"ai.response.finishReason":
|
|
32744
|
+
"ai.response.finishReason": se.finishReason,
|
|
32740
32745
|
"ai.response.object": { output: () => me },
|
|
32741
32746
|
"ai.response.id": Oe.id,
|
|
32742
32747
|
"ai.response.model": Oe.modelId,
|
|
32743
32748
|
"ai.response.timestamp": Oe.timestamp.toISOString(),
|
|
32744
32749
|
"ai.response.providerMetadata": JSON.stringify(
|
|
32745
|
-
|
|
32750
|
+
se.providerMetadata
|
|
32746
32751
|
),
|
|
32747
32752
|
// TODO rename telemetry attributes to inputTokens and outputTokens
|
|
32748
|
-
"ai.usage.promptTokens":
|
|
32749
|
-
"ai.usage.completionTokens":
|
|
32753
|
+
"ai.usage.promptTokens": se.usage.inputTokens,
|
|
32754
|
+
"ai.usage.completionTokens": se.usage.outputTokens,
|
|
32750
32755
|
// standardized gen-ai llm span attributes:
|
|
32751
|
-
"gen_ai.response.finish_reasons": [
|
|
32756
|
+
"gen_ai.response.finish_reasons": [se.finishReason],
|
|
32752
32757
|
"gen_ai.response.id": Oe.id,
|
|
32753
32758
|
"gen_ai.response.model": Oe.modelId,
|
|
32754
|
-
"gen_ai.usage.input_tokens":
|
|
32755
|
-
"gen_ai.usage.output_tokens":
|
|
32759
|
+
"gen_ai.usage.input_tokens": se.usage.inputTokens,
|
|
32760
|
+
"gen_ai.usage.output_tokens": se.usage.outputTokens
|
|
32756
32761
|
}
|
|
32757
32762
|
})
|
|
32758
32763
|
), {
|
|
32759
|
-
...
|
|
32764
|
+
...se,
|
|
32760
32765
|
objectText: me,
|
|
32761
32766
|
reasoning: Tt,
|
|
32762
32767
|
responseData: Oe
|
|
@@ -32764,7 +32769,7 @@ async function Cu(e) {
|
|
|
32764
32769
|
}
|
|
32765
32770
|
})
|
|
32766
32771
|
);
|
|
32767
|
-
G = z.objectText, ve = z.finishReason, $e = z.usage, Be = z.warnings, F = z.providerMetadata,
|
|
32772
|
+
G = z.objectText, ve = z.finishReason, $e = z.usage, Be = z.warnings, F = z.providerMetadata, ie = (re = z.request) != null ? re : {}, Ee = z.responseData, fe = z.reasoning, Y1(Be);
|
|
32768
32773
|
const P = await zV(
|
|
32769
32774
|
G,
|
|
32770
32775
|
E,
|
|
@@ -32797,7 +32802,7 @@ async function Cu(e) {
|
|
|
32797
32802
|
finishReason: ve,
|
|
32798
32803
|
usage: $e,
|
|
32799
32804
|
warnings: Be,
|
|
32800
|
-
request:
|
|
32805
|
+
request: ie,
|
|
32801
32806
|
response: Ee,
|
|
32802
32807
|
providerMetadata: F
|
|
32803
32808
|
});
|
|
@@ -33146,7 +33151,7 @@ const Ll = ({
|
|
|
33146
33151
|
}, r$ = gs(null), XV = ({
|
|
33147
33152
|
children: e
|
|
33148
33153
|
}) => {
|
|
33149
|
-
const [t, r] =
|
|
33154
|
+
const [t, r] = oe("connected"), [a, n] = oe(0), [o, i] = oe(
|
|
33150
33155
|
typeof navigator < "u" ? navigator.onLine : !0
|
|
33151
33156
|
), s = ze(null);
|
|
33152
33157
|
Ce(() => {
|
|
@@ -33189,7 +33194,7 @@ const Ll = ({
|
|
|
33189
33194
|
);
|
|
33190
33195
|
}, n$ = () => bo(r$);
|
|
33191
33196
|
function a$({ children: e }) {
|
|
33192
|
-
const [t, r] =
|
|
33197
|
+
const [t, r] = oe(/* @__PURE__ */ new Map()), [a, n] = oe(/* @__PURE__ */ new Set()), o = Ae(
|
|
33193
33198
|
(d, m, f) => new Promise((g) => {
|
|
33194
33199
|
const h = {
|
|
33195
33200
|
toolCallId: m,
|
|
@@ -33311,11 +33316,11 @@ const nZ = ({ children: e, config: t }) => {
|
|
|
33311
33316
|
projectSlug: t.projectSlug
|
|
33312
33317
|
}), n = ze(a.ensureValidHeaders);
|
|
33313
33318
|
n.current = a.ensureValidHeaders;
|
|
33314
|
-
const o = Gx(), [i, s] =
|
|
33319
|
+
const o = Gx(), [i, s] = oe(
|
|
33315
33320
|
t.model?.defaultModel ?? up[0]
|
|
33316
|
-
), [l, c] =
|
|
33321
|
+
), [l, c] = oe(
|
|
33317
33322
|
t.modal?.defaultExpanded ?? !1
|
|
33318
|
-
), [u, d] =
|
|
33323
|
+
), [u, d] = oe(t.modal?.defaultOpen), m = t.plugins ?? Yh, f = Object.keys(t.tools?.components ?? {}), g = tZ(
|
|
33319
33324
|
t.systemPrompt,
|
|
33320
33325
|
m,
|
|
33321
33326
|
f
|
|
@@ -33327,7 +33332,7 @@ const nZ = ({ children: e, config: t }) => {
|
|
|
33327
33332
|
variant: t.variant
|
|
33328
33333
|
});
|
|
33329
33334
|
}, []);
|
|
33330
|
-
const h = ze(null), [b, y] =
|
|
33335
|
+
const h = ze(null), [b, y] = oe(null), { data: _, mcpHeaders: x } = u2({
|
|
33331
33336
|
auth: a,
|
|
33332
33337
|
mcp: t.mcp,
|
|
33333
33338
|
environment: t.environment ?? {},
|
|
@@ -33361,27 +33366,27 @@ const nZ = ({ children: e, config: t }) => {
|
|
|
33361
33366
|
if (a.isLoading)
|
|
33362
33367
|
throw new Error("Session is loading");
|
|
33363
33368
|
const Ee = await n.current();
|
|
33364
|
-
let
|
|
33365
|
-
if (!(
|
|
33366
|
-
if (jn(
|
|
33367
|
-
const rr = E.current?.threads?.getState?.(), nr = rr?.mainThreadId ?? rr?.threadIds?.[0], Ke =
|
|
33369
|
+
let ie = j.current;
|
|
33370
|
+
if (!(ie && !jn(ie))) {
|
|
33371
|
+
if (jn(ie) || !ie) {
|
|
33372
|
+
const rr = E.current?.threads?.getState?.(), nr = rr?.mainThreadId ?? rr?.threadIds?.[0], Ke = ie ?? nr;
|
|
33368
33373
|
if (Ke) {
|
|
33369
33374
|
const Me = C.current.get(Ke);
|
|
33370
33375
|
if (Me)
|
|
33371
|
-
|
|
33376
|
+
ie = Me;
|
|
33372
33377
|
else {
|
|
33373
33378
|
const He = crypto.randomUUID();
|
|
33374
|
-
C.current.set(Ke, He),
|
|
33379
|
+
C.current.set(Ke, He), ie = He;
|
|
33375
33380
|
}
|
|
33376
33381
|
}
|
|
33377
33382
|
}
|
|
33378
33383
|
}
|
|
33379
|
-
|
|
33384
|
+
ie || (h.current || (h.current = crypto.randomUUID()), ie = h.current), ie && (x["Gram-Chat-ID"] = ie, y(ie));
|
|
33380
33385
|
const F = E.current?.thread.getModelContext(), fe = z6(
|
|
33381
33386
|
D6(F?.tools ?? {})
|
|
33382
33387
|
), ae = {
|
|
33383
33388
|
...Ee,
|
|
33384
|
-
"Gram-Chat-ID":
|
|
33389
|
+
"Gram-Chat-ID": ie,
|
|
33385
33390
|
"X-Gram-Source": "elements",
|
|
33386
33391
|
...t.api?.headers,
|
|
33387
33392
|
// We do this after X-Gram-Source so the playground can override it
|
|
@@ -33598,14 +33603,14 @@ const cZ = ({ error: e, onRetry: t }) => /* @__PURE__ */ p(
|
|
|
33598
33603
|
"div",
|
|
33599
33604
|
{
|
|
33600
33605
|
className: O(
|
|
33601
|
-
"aui-root aui-error-boundary
|
|
33606
|
+
"aui-root aui-error-boundary flex h-full w-full flex-col items-center justify-center bg-background p-6"
|
|
33602
33607
|
),
|
|
33603
33608
|
children: /* @__PURE__ */ A("div", { className: "flex flex-col items-center gap-4 text-center", children: [
|
|
33604
33609
|
/* @__PURE__ */ p("div", { className: "text-destructive", children: /* @__PURE__ */ p(L$, { className: "size-12 stroke-[1.5px]" }) }),
|
|
33605
33610
|
/* @__PURE__ */ A("div", { className: "flex flex-col gap-2", children: [
|
|
33606
|
-
/* @__PURE__ */ p("h3", { className: "text-
|
|
33607
|
-
/* @__PURE__ */ p("p", { className: "text-muted-foreground
|
|
33608
|
-
e && /* @__PURE__ */ p("p", { className: "
|
|
33611
|
+
/* @__PURE__ */ p("h3", { className: "text-xl font-semibold text-foreground", children: "Something went wrong" }),
|
|
33612
|
+
/* @__PURE__ */ p("p", { className: "text-base text-muted-foreground", children: "An error occurred while loading the chat." }),
|
|
33613
|
+
e && /* @__PURE__ */ p("p", { className: "max-w-md truncate text-sm text-muted-foreground/60", children: e.message })
|
|
33609
33614
|
] }),
|
|
33610
33615
|
/* @__PURE__ */ p(_t, { onClick: t, variant: "default", className: "mt-2", children: "Try again" })
|
|
33611
33616
|
] })
|
|
@@ -33675,13 +33680,13 @@ function ii({
|
|
|
33675
33680
|
"data-slot": "tooltip-content",
|
|
33676
33681
|
sideOffset: t,
|
|
33677
33682
|
className: O(
|
|
33678
|
-
"
|
|
33683
|
+
"z-[70] w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
33679
33684
|
e
|
|
33680
33685
|
),
|
|
33681
33686
|
...n,
|
|
33682
33687
|
children: [
|
|
33683
33688
|
r,
|
|
33684
|
-
/* @__PURE__ */ p(IL, { className: "
|
|
33689
|
+
/* @__PURE__ */ p(IL, { className: "z-[70] size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" })
|
|
33685
33690
|
]
|
|
33686
33691
|
}
|
|
33687
33692
|
) });
|
|
@@ -33719,7 +33724,7 @@ function fZ({
|
|
|
33719
33724
|
{
|
|
33720
33725
|
"data-slot": "dialog-overlay",
|
|
33721
33726
|
className: O(
|
|
33722
|
-
"data-[state=
|
|
33727
|
+
"fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
33723
33728
|
e
|
|
33724
33729
|
),
|
|
33725
33730
|
...t
|
|
@@ -33739,7 +33744,7 @@ function gZ({
|
|
|
33739
33744
|
{
|
|
33740
33745
|
"data-slot": "dialog-content",
|
|
33741
33746
|
className: O(
|
|
33742
|
-
"
|
|
33747
|
+
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",
|
|
33743
33748
|
e
|
|
33744
33749
|
),
|
|
33745
33750
|
...a,
|
|
@@ -33749,7 +33754,7 @@ function gZ({
|
|
|
33749
33754
|
q5,
|
|
33750
33755
|
{
|
|
33751
33756
|
"data-slot": "dialog-close",
|
|
33752
|
-
className: "
|
|
33757
|
+
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
33753
33758
|
children: [
|
|
33754
33759
|
/* @__PURE__ */ p(Sn, {}),
|
|
33755
33760
|
/* @__PURE__ */ p("span", { className: "sr-only", children: "Close" })
|
|
@@ -33946,7 +33951,7 @@ function TZ({
|
|
|
33946
33951
|
{
|
|
33947
33952
|
"data-slot": "avatar-fallback",
|
|
33948
33953
|
className: O(
|
|
33949
|
-
"
|
|
33954
|
+
"flex size-full items-center justify-center rounded-full bg-muted",
|
|
33950
33955
|
e
|
|
33951
33956
|
),
|
|
33952
33957
|
...t
|
|
@@ -33981,7 +33986,7 @@ const er = N$(
|
|
|
33981
33986
|
);
|
|
33982
33987
|
er.displayName = "TooltipIconButton";
|
|
33983
33988
|
const OZ = (e) => {
|
|
33984
|
-
const [t, r] =
|
|
33989
|
+
const [t, r] = oe(void 0);
|
|
33985
33990
|
return Ce(() => {
|
|
33986
33991
|
if (!e) {
|
|
33987
33992
|
r(void 0);
|
|
@@ -34003,7 +34008,7 @@ const OZ = (e) => {
|
|
|
34003
34008
|
);
|
|
34004
34009
|
return OZ(e) ?? t;
|
|
34005
34010
|
}, NZ = ({ src: e }) => {
|
|
34006
|
-
const [t, r] =
|
|
34011
|
+
const [t, r] = oe(!1);
|
|
34007
34012
|
return /* @__PURE__ */ p(
|
|
34008
34013
|
"img",
|
|
34009
34014
|
{
|
|
@@ -34017,9 +34022,9 @@ const OZ = (e) => {
|
|
|
34017
34022
|
const t = m$();
|
|
34018
34023
|
return t ? /* @__PURE__ */ A(dZ, { children: [
|
|
34019
34024
|
/* @__PURE__ */ p(mZ, { className: "aui-attachment-preview-trigger", asChild: !0, children: e }),
|
|
34020
|
-
/* @__PURE__ */ A(gZ, { className: "aui-attachment-preview-dialog-content [&_svg]:text-background [&>button]:bg-foreground/60 [&>button]:
|
|
34025
|
+
/* @__PURE__ */ A(gZ, { className: "aui-attachment-preview-dialog-content p-2 sm:max-w-3xl [&_svg]:text-background [&>button]:rounded-full [&>button]:bg-foreground/60 [&>button]:p-1 [&>button]:opacity-100 [&>button]:!ring-0 [&>button]:hover:[&_svg]:text-destructive", children: [
|
|
34021
34026
|
/* @__PURE__ */ p(hZ, { className: "aui-sr-only sr-only", children: "Image Attachment Preview" }),
|
|
34022
|
-
/* @__PURE__ */ p("div", { className: "aui-attachment-preview
|
|
34027
|
+
/* @__PURE__ */ p("div", { className: "aui-attachment-preview relative mx-auto flex max-h-[80dvh] w-full items-center justify-center overflow-hidden bg-background", children: /* @__PURE__ */ p(NZ, { src: t }) })
|
|
34023
34028
|
] })
|
|
34024
34029
|
] }) : e;
|
|
34025
34030
|
}, CZ = () => {
|
|
@@ -34035,7 +34040,7 @@ const OZ = (e) => {
|
|
|
34035
34040
|
className: "aui-attachment-tile-image object-cover"
|
|
34036
34041
|
}
|
|
34037
34042
|
),
|
|
34038
|
-
/* @__PURE__ */ p(TZ, { delayMs: e ? 200 : 0, children: /* @__PURE__ */ p(X6, { className: "aui-attachment-tile-fallback-icon text-muted-foreground
|
|
34043
|
+
/* @__PURE__ */ p(TZ, { delayMs: e ? 200 : 0, children: /* @__PURE__ */ p(X6, { className: "aui-attachment-tile-fallback-icon size-8 text-muted-foreground" }) })
|
|
34039
34044
|
] });
|
|
34040
34045
|
}, p$ = () => {
|
|
34041
34046
|
const t = Pu().attachment.source === "composer", r = Qe(
|
|
@@ -34068,7 +34073,7 @@ const OZ = (e) => {
|
|
|
34068
34073
|
"div",
|
|
34069
34074
|
{
|
|
34070
34075
|
className: O(
|
|
34071
|
-
"aui-attachment-tile
|
|
34076
|
+
"aui-attachment-tile size-14 cursor-pointer overflow-hidden rounded-[14px] border bg-muted transition-opacity hover:opacity-75",
|
|
34072
34077
|
t && "aui-attachment-tile-composer border-foreground/20"
|
|
34073
34078
|
),
|
|
34074
34079
|
role: "button",
|
|
@@ -34087,7 +34092,7 @@ const OZ = (e) => {
|
|
|
34087
34092
|
er,
|
|
34088
34093
|
{
|
|
34089
34094
|
tooltip: "Remove file",
|
|
34090
|
-
className: "aui-attachment-tile-remove
|
|
34095
|
+
className: "aui-attachment-tile-remove absolute top-1.5 right-1.5 size-3.5 rounded-full bg-white text-muted-foreground opacity-100 shadow-sm hover:!bg-white [&_svg]:text-black hover:[&_svg]:text-destructive",
|
|
34091
34096
|
side: "top",
|
|
34092
34097
|
children: /* @__PURE__ */ p(Sn, { className: "aui-attachment-remove-icon size-3 dark:stroke-[2.5px]" })
|
|
34093
34098
|
}
|
|
@@ -34104,7 +34109,7 @@ const OZ = (e) => {
|
|
|
34104
34109
|
variant: "ghost",
|
|
34105
34110
|
size: "icon",
|
|
34106
34111
|
align: "start",
|
|
34107
|
-
className: "aui-composer-add-attachment hover:bg-muted-foreground/15 dark:border-muted-foreground/15 dark:hover:bg-muted-foreground/30
|
|
34112
|
+
className: "aui-composer-add-attachment size-[34px] rounded-full p-1 text-xs font-semibold hover:bg-muted-foreground/15 dark:border-muted-foreground/15 dark:hover:bg-muted-foreground/30",
|
|
34108
34113
|
"aria-label": "Add Attachment",
|
|
34109
34114
|
children: /* @__PURE__ */ p(KS, { className: "aui-attachment-add-icon size-5 stroke-[1.5px]" })
|
|
34110
34115
|
}
|
|
@@ -34132,7 +34137,7 @@ function FZ() {
|
|
|
34132
34137
|
const { config: e } = ot(), r = Up()?.isReplay ?? !1, a = Ll({
|
|
34133
34138
|
auth: e.api,
|
|
34134
34139
|
projectSlug: e.projectSlug
|
|
34135
|
-
}), n = UZ(LZ), o = !r && e.thread?.followUpSuggestions !== !1, [i, s] =
|
|
34140
|
+
}), n = UZ(LZ), o = !r && e.thread?.followUpSuggestions !== !1, [i, s] = oe([]), [l, c] = oe(!1), u = ze(null), d = ze(null), m = Qe(({ thread: b }) => b.isRunning), f = Qe(({ thread: b }) => b.messages), g = fl(e), h = Ae(async () => {
|
|
34136
34141
|
if (!o || a.isLoading || !a.headers) return;
|
|
34137
34142
|
const b = f.slice(-10).map((x) => {
|
|
34138
34143
|
const v = x.parts.filter((I) => I.type === "text").map((I) => "text" in I ? I.text : "").join(`
|
|
@@ -34302,7 +34307,7 @@ const at = [0.23, 1, 0.32, 1], VZ = {
|
|
|
34302
34307
|
variant: "outline",
|
|
34303
34308
|
size: "sm",
|
|
34304
34309
|
className: O(
|
|
34305
|
-
"aui-follow-on-suggestion
|
|
34310
|
+
"aui-follow-on-suggestion h-auto cursor-pointer text-left text-sm whitespace-normal text-muted-foreground transition-colors hover:text-foreground",
|
|
34306
34311
|
a("px-md"),
|
|
34307
34312
|
a("py-sm"),
|
|
34308
34313
|
r("lg")
|
|
@@ -34343,7 +34348,7 @@ const GZ = () => {
|
|
|
34343
34348
|
);
|
|
34344
34349
|
}, f$ = Ru(GZ), HZ = ({ language: e, code: t }) => {
|
|
34345
34350
|
const a = Qe(({ message: s }) => s).status?.type === "complete", { isCopied: n, copyToClipboard: o } = JZ();
|
|
34346
|
-
return /* @__PURE__ */ A("div", { className: "aui-code-header-root
|
|
34351
|
+
return /* @__PURE__ */ A("div", { className: "aui-code-header-root mt-4 flex items-center justify-between gap-4 rounded-t-lg bg-muted-foreground/15 px-4 py-2 text-sm font-semibold text-foreground dark:bg-muted-foreground/20", children: [
|
|
34347
34352
|
/* @__PURE__ */ p("span", { className: "aui-code-header-language lowercase [&>span]:text-xs", children: e }),
|
|
34348
34353
|
a && /* @__PURE__ */ A(er, { tooltip: "Copy", onClick: () => {
|
|
34349
34354
|
!t || n || o(t);
|
|
@@ -34355,7 +34360,7 @@ const GZ = () => {
|
|
|
34355
34360
|
}, JZ = ({
|
|
34356
34361
|
copiedDuration: e = 3e3
|
|
34357
34362
|
} = {}) => {
|
|
34358
|
-
const [t, r] =
|
|
34363
|
+
const [t, r] = oe(!1);
|
|
34359
34364
|
return { isCopied: t, copyToClipboard: (n) => {
|
|
34360
34365
|
n && navigator.clipboard.writeText(n).then(() => {
|
|
34361
34366
|
r(!0), setTimeout(() => r(!1), e);
|
|
@@ -34436,7 +34441,7 @@ const GZ = () => {
|
|
|
34436
34441
|
"a",
|
|
34437
34442
|
{
|
|
34438
34443
|
className: O(
|
|
34439
|
-
"aui-md-a text-primary
|
|
34444
|
+
"aui-md-a font-medium text-primary underline underline-offset-4",
|
|
34440
34445
|
e
|
|
34441
34446
|
),
|
|
34442
34447
|
...t
|
|
@@ -34515,7 +34520,7 @@ const GZ = () => {
|
|
|
34515
34520
|
"pre",
|
|
34516
34521
|
{
|
|
34517
34522
|
className: O(
|
|
34518
|
-
"aui-md-pre
|
|
34523
|
+
"aui-md-pre overflow-x-auto rounded-t-none! rounded-b-lg border border-t-0 bg-muted p-4 text-foreground",
|
|
34519
34524
|
e
|
|
34520
34525
|
),
|
|
34521
34526
|
...t
|
|
@@ -34527,7 +34532,7 @@ const GZ = () => {
|
|
|
34527
34532
|
"code",
|
|
34528
34533
|
{
|
|
34529
34534
|
className: O(
|
|
34530
|
-
!a && "aui-md-inline-code bg-muted
|
|
34535
|
+
!a && "aui-md-inline-code rounded border bg-muted font-semibold",
|
|
34531
34536
|
t
|
|
34532
34537
|
),
|
|
34533
34538
|
...r
|
|
@@ -34554,7 +34559,7 @@ const GZ = () => {
|
|
|
34554
34559
|
a
|
|
34555
34560
|
),
|
|
34556
34561
|
children: [
|
|
34557
|
-
/* @__PURE__ */ p("span", { className: "
|
|
34562
|
+
/* @__PURE__ */ p("span", { className: "flex-shrink-0 text-xs text-muted-foreground", children: "Tools:" }),
|
|
34558
34563
|
/* @__PURE__ */ p(qr, { mode: "popLayout", children: o.map((i) => /* @__PURE__ */ p(
|
|
34559
34564
|
Je.div,
|
|
34560
34565
|
{
|
|
@@ -34582,7 +34587,7 @@ const GZ = () => {
|
|
|
34582
34587
|
"div",
|
|
34583
34588
|
{
|
|
34584
34589
|
className: O(
|
|
34585
|
-
"aui-tool-badge
|
|
34590
|
+
"aui-tool-badge inline-flex items-center gap-1 bg-primary/10 text-primary",
|
|
34586
34591
|
a("md"),
|
|
34587
34592
|
r("px-sm"),
|
|
34588
34593
|
r("py-xs")
|
|
@@ -34646,10 +34651,10 @@ const GZ = () => {
|
|
|
34646
34651
|
onResolved: t,
|
|
34647
34652
|
className: r
|
|
34648
34653
|
}) => {
|
|
34649
|
-
const [a, n] =
|
|
34654
|
+
const [a, n] = oe(null), [o, i] = oe(
|
|
34650
34655
|
null
|
|
34651
|
-
), [
|
|
34652
|
-
|
|
34656
|
+
), [s, l] = oe(!1), c = (u) => {
|
|
34657
|
+
i(u), e?.(u), u === "like" ? t?.() : l(!0);
|
|
34653
34658
|
};
|
|
34654
34659
|
return /* @__PURE__ */ A(
|
|
34655
34660
|
"div",
|
|
@@ -34660,10 +34665,10 @@ const GZ = () => {
|
|
|
34660
34665
|
),
|
|
34661
34666
|
children: [
|
|
34662
34667
|
/* @__PURE__ */ p("style", { children: QZ }),
|
|
34663
|
-
/* @__PURE__ */ p(qr, { mode: "wait", children:
|
|
34668
|
+
/* @__PURE__ */ p(qr, { mode: "wait", children: s ? /* @__PURE__ */ p(
|
|
34664
34669
|
Je.div,
|
|
34665
34670
|
{
|
|
34666
|
-
className: "aui-feedback-thank-you
|
|
34671
|
+
className: "aui-feedback-thank-you rounded-full border border-black/[0.08] bg-gradient-to-b from-white/80 to-white/60 px-4 py-2 text-sm text-muted-foreground backdrop-blur-2xl dark:border-white/5 dark:from-white/10 dark:to-white/[0.03]",
|
|
34667
34672
|
initial: { opacity: 0, y: 5 },
|
|
34668
34673
|
animate: { opacity: 1, y: 0 },
|
|
34669
34674
|
transition: { duration: 0.25, ease: at },
|
|
@@ -34673,23 +34678,24 @@ const GZ = () => {
|
|
|
34673
34678
|
) : /* @__PURE__ */ p(
|
|
34674
34679
|
Je.div,
|
|
34675
34680
|
{
|
|
34681
|
+
ref: n,
|
|
34676
34682
|
className: "aui-feedback-buttons relative flex items-center gap-1.5 rounded-full border border-black/[0.08] bg-gradient-to-b from-white/80 to-white/60 px-3 py-1 backdrop-blur-2xl dark:border-white/5 dark:from-white/10 dark:to-white/[0.03]",
|
|
34677
34683
|
initial: { opacity: 0, scale: 0.8, y: 10 },
|
|
34678
34684
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
34679
34685
|
exit: { opacity: 0, scale: 0.8, y: 5 },
|
|
34680
34686
|
transition: { duration: 0.4, delay: 0.75, ease: at },
|
|
34681
|
-
children: /* @__PURE__ */ p(Lp, { delayDuration: 300, children: XZ.map((
|
|
34682
|
-
const
|
|
34687
|
+
children: /* @__PURE__ */ p(Lp, { delayDuration: 300, children: XZ.map((u, d) => {
|
|
34688
|
+
const m = u.icon;
|
|
34683
34689
|
return /* @__PURE__ */ A(ai, { children: [
|
|
34684
34690
|
/* @__PURE__ */ p(oi, { asChild: !0, children: /* @__PURE__ */ p(
|
|
34685
34691
|
Je.button,
|
|
34686
34692
|
{
|
|
34687
34693
|
type: "button",
|
|
34688
|
-
onClick: () =>
|
|
34694
|
+
onClick: () => c(u.type),
|
|
34689
34695
|
className: O(
|
|
34690
34696
|
"group/btn relative flex size-8 items-center justify-center rounded-full transition-[background-color] duration-200 ease-out",
|
|
34691
|
-
|
|
34692
|
-
|
|
34697
|
+
u.hoverBg,
|
|
34698
|
+
o === u.type && u.activeBg
|
|
34693
34699
|
),
|
|
34694
34700
|
initial: "initial",
|
|
34695
34701
|
animate: "animate",
|
|
@@ -34702,12 +34708,12 @@ const GZ = () => {
|
|
|
34702
34708
|
},
|
|
34703
34709
|
transition: {
|
|
34704
34710
|
duration: 0.8,
|
|
34705
|
-
delay: 0.75 +
|
|
34711
|
+
delay: 0.75 + d * 0.15,
|
|
34706
34712
|
type: "spring",
|
|
34707
34713
|
stiffness: 150,
|
|
34708
34714
|
damping: 10
|
|
34709
34715
|
},
|
|
34710
|
-
"aria-label":
|
|
34716
|
+
"aria-label": u.label,
|
|
34711
34717
|
children: /* @__PURE__ */ p(
|
|
34712
34718
|
"span",
|
|
34713
34719
|
{
|
|
@@ -34715,20 +34721,20 @@ const GZ = () => {
|
|
|
34715
34721
|
style: {
|
|
34716
34722
|
animation: "none"
|
|
34717
34723
|
},
|
|
34718
|
-
onMouseEnter: (
|
|
34719
|
-
|
|
34724
|
+
onMouseEnter: (f) => {
|
|
34725
|
+
f.currentTarget.style.animation = "subtle-bounce 0.6s ease-in-out infinite";
|
|
34720
34726
|
},
|
|
34721
|
-
onMouseLeave: (
|
|
34722
|
-
|
|
34727
|
+
onMouseLeave: (f) => {
|
|
34728
|
+
f.currentTarget.style.animation = "none";
|
|
34723
34729
|
},
|
|
34724
34730
|
children: /* @__PURE__ */ p(
|
|
34725
|
-
|
|
34731
|
+
m,
|
|
34726
34732
|
{
|
|
34727
34733
|
className: O(
|
|
34728
34734
|
"size-5 transition-[fill] duration-200",
|
|
34729
|
-
|
|
34730
|
-
|
|
34731
|
-
|
|
34735
|
+
u.color,
|
|
34736
|
+
u.type === "like" && "group-hover/btn:fill-emerald-500",
|
|
34737
|
+
o === u.type && u.type === "like" && "fill-emerald-500"
|
|
34732
34738
|
),
|
|
34733
34739
|
strokeWidth: 2
|
|
34734
34740
|
}
|
|
@@ -34737,8 +34743,16 @@ const GZ = () => {
|
|
|
34737
34743
|
)
|
|
34738
34744
|
}
|
|
34739
34745
|
) }),
|
|
34740
|
-
/* @__PURE__ */ p(
|
|
34741
|
-
|
|
34746
|
+
/* @__PURE__ */ p(
|
|
34747
|
+
ii,
|
|
34748
|
+
{
|
|
34749
|
+
side: "top",
|
|
34750
|
+
sideOffset: 8,
|
|
34751
|
+
container: a,
|
|
34752
|
+
children: u.label
|
|
34753
|
+
}
|
|
34754
|
+
)
|
|
34755
|
+
] }, u.type);
|
|
34742
34756
|
}) })
|
|
34743
34757
|
},
|
|
34744
34758
|
"feedback-buttons"
|
|
@@ -34775,7 +34789,7 @@ function nq({
|
|
|
34775
34789
|
);
|
|
34776
34790
|
}
|
|
34777
34791
|
const zh = 200, g$ = ({ className: e, children: t }) => {
|
|
34778
|
-
const r = ze(null), [a, n] =
|
|
34792
|
+
const r = ze(null), [a, n] = oe(!1), o = D$(r, zh), i = Ae(
|
|
34779
34793
|
(s) => {
|
|
34780
34794
|
s || o(), n(s);
|
|
34781
34795
|
},
|
|
@@ -34802,7 +34816,7 @@ const aq = ({ className: e }) => /* @__PURE__ */ p(
|
|
|
34802
34816
|
className: O(
|
|
34803
34817
|
"aui-reasoning-fade pointer-events-none absolute inset-x-0 bottom-0 z-10 h-16",
|
|
34804
34818
|
"bg-[linear-gradient(to_top,var(--color-background),transparent)]",
|
|
34805
|
-
"fade-in-0
|
|
34819
|
+
"animate-in fade-in-0",
|
|
34806
34820
|
"group-data-[state=open]/collapsible-content:animate-out",
|
|
34807
34821
|
"group-data-[state=open]/collapsible-content:fade-out-0",
|
|
34808
34822
|
"group-data-[state=open]/collapsible-content:delay-[calc(var(--animation-duration)*0.75)]",
|
|
@@ -34820,7 +34834,7 @@ const aq = ({ className: e }) => /* @__PURE__ */ p(
|
|
|
34820
34834
|
rq,
|
|
34821
34835
|
{
|
|
34822
34836
|
className: O(
|
|
34823
|
-
"aui-reasoning-trigger group/trigger
|
|
34837
|
+
"aui-reasoning-trigger group/trigger -mb-2 flex max-w-[75%] items-center gap-2 py-2 text-sm text-muted-foreground transition-colors hover:text-foreground",
|
|
34824
34838
|
t,
|
|
34825
34839
|
e && "shimmer"
|
|
34826
34840
|
),
|
|
@@ -34832,7 +34846,7 @@ const aq = ({ className: e }) => /* @__PURE__ */ p(
|
|
|
34832
34846
|
"span",
|
|
34833
34847
|
{
|
|
34834
34848
|
"aria-hidden": !0,
|
|
34835
|
-
className: "aui-reasoning-trigger-shimmer
|
|
34849
|
+
className: "aui-reasoning-trigger-shimmer pointer-events-none absolute inset-0 shimmer motion-reduce:animate-none",
|
|
34836
34850
|
children: "Reasoning"
|
|
34837
34851
|
}
|
|
34838
34852
|
) : null
|
|
@@ -34854,7 +34868,7 @@ const aq = ({ className: e }) => /* @__PURE__ */ p(
|
|
|
34854
34868
|
nq,
|
|
34855
34869
|
{
|
|
34856
34870
|
className: O(
|
|
34857
|
-
"aui-reasoning-content
|
|
34871
|
+
"aui-reasoning-content relative overflow-hidden text-sm text-muted-foreground outline-none",
|
|
34858
34872
|
"group/collapsible-content ease-out",
|
|
34859
34873
|
"data-[state=closed]:animate-collapsible-up",
|
|
34860
34874
|
"data-[state=open]:animate-collapsible-down",
|
|
@@ -34936,7 +34950,7 @@ function qp({
|
|
|
34936
34950
|
align: t,
|
|
34937
34951
|
sideOffset: r,
|
|
34938
34952
|
className: O(
|
|
34939
|
-
"
|
|
34953
|
+
"z-[70] w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
34940
34954
|
e
|
|
34941
34955
|
),
|
|
34942
34956
|
...n
|
|
@@ -35003,18 +35017,18 @@ function _$({ status: e }) {
|
|
|
35003
35017
|
e === "running" && /* @__PURE__ */ p(os, { className: "size-4 animate-spin" }),
|
|
35004
35018
|
e === "complete" && /* @__PURE__ */ p(Nr, { className: "size-4" }),
|
|
35005
35019
|
e === "error" && /* @__PURE__ */ p(Sn, { className: "size-4" }),
|
|
35006
|
-
e === "approval" && /* @__PURE__ */ p(os, { className: "
|
|
35020
|
+
e === "approval" && /* @__PURE__ */ p(os, { className: "size-4 animate-spin text-muted-foreground" })
|
|
35007
35021
|
] });
|
|
35008
35022
|
}
|
|
35009
35023
|
function pq({ content: e }) {
|
|
35010
|
-
const [t, r] =
|
|
35024
|
+
const [t, r] = oe(!1);
|
|
35011
35025
|
return /* @__PURE__ */ p(
|
|
35012
35026
|
"button",
|
|
35013
35027
|
{
|
|
35014
35028
|
onClick: async (n) => {
|
|
35015
35029
|
n.stopPropagation(), await navigator.clipboard.writeText(e), r(!0), setTimeout(() => r(!1), 2e3);
|
|
35016
35030
|
},
|
|
35017
|
-
className: "text-muted-foreground hover:bg-accent hover:text-foreground
|
|
35031
|
+
className: "rounded p-1 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",
|
|
35018
35032
|
"aria-label": "Copy to clipboard",
|
|
35019
35033
|
children: t ? /* @__PURE__ */ p(Nr, { className: "size-4" }) : /* @__PURE__ */ p(mp, { className: "size-4" })
|
|
35020
35034
|
}
|
|
@@ -35038,7 +35052,7 @@ function x$({
|
|
|
35038
35052
|
language: t,
|
|
35039
35053
|
className: r
|
|
35040
35054
|
}) {
|
|
35041
|
-
const [a, n] =
|
|
35055
|
+
const [a, n] = oe(null), [o, i] = oe(!1), s = T.useMemo(
|
|
35042
35056
|
() => hq(e, gq),
|
|
35043
35057
|
[e]
|
|
35044
35058
|
), l = o ? e : s.text, c = l.length <= fq;
|
|
@@ -35146,22 +35160,22 @@ function Dh({
|
|
|
35146
35160
|
highlightSyntax: a = !0,
|
|
35147
35161
|
language: n = "json"
|
|
35148
35162
|
}) {
|
|
35149
|
-
const [o, i] =
|
|
35150
|
-
return /* @__PURE__ */ A("div", { "data-slot": "tool-ui-section", className: "border-
|
|
35163
|
+
const [o, i] = oe(r), s = mq(t), l = s ? JSON.stringify(t, null, 2) : typeof t == "string" ? t : JSON.stringify(t, null, 2);
|
|
35164
|
+
return /* @__PURE__ */ A("div", { "data-slot": "tool-ui-section", className: "border-t border-border", children: [
|
|
35151
35165
|
/* @__PURE__ */ A(
|
|
35152
35166
|
"button",
|
|
35153
35167
|
{
|
|
35154
35168
|
onClick: () => i(!o),
|
|
35155
|
-
className: "
|
|
35169
|
+
className: "flex w-full cursor-pointer items-center justify-between px-5 py-2.5 text-left transition-colors hover:bg-accent/50",
|
|
35156
35170
|
children: [
|
|
35157
|
-
/* @__PURE__ */ p("span", { className: "text-muted-foreground
|
|
35171
|
+
/* @__PURE__ */ p("span", { className: "text-sm text-muted-foreground", children: e }),
|
|
35158
35172
|
/* @__PURE__ */ A("div", { className: "flex items-center gap-1", children: [
|
|
35159
35173
|
/* @__PURE__ */ p(pq, { content: l }),
|
|
35160
35174
|
/* @__PURE__ */ p(
|
|
35161
35175
|
dp,
|
|
35162
35176
|
{
|
|
35163
35177
|
className: O(
|
|
35164
|
-
"text-muted-foreground
|
|
35178
|
+
"size-4 text-muted-foreground transition-transform duration-200",
|
|
35165
35179
|
o && "rotate-90"
|
|
35166
35180
|
)
|
|
35167
35181
|
}
|
|
@@ -35170,7 +35184,7 @@ function Dh({
|
|
|
35170
35184
|
]
|
|
35171
35185
|
}
|
|
35172
35186
|
),
|
|
35173
|
-
o && /* @__PURE__ */ p("div", { className: "border-
|
|
35187
|
+
o && /* @__PURE__ */ p("div", { className: "border-t border-border", children: s ? /* @__PURE__ */ p(bq, { content: t }) : a ? /* @__PURE__ */ p(x$, { text: l, language: n }) : /* @__PURE__ */ p("pre", { className: "overflow-x-auto px-4 py-3 text-sm whitespace-pre-wrap text-foreground", children: l }) })
|
|
35174
35188
|
] });
|
|
35175
35189
|
}
|
|
35176
35190
|
function yq({
|
|
@@ -35187,7 +35201,7 @@ function yq({
|
|
|
35187
35201
|
onApproveForSession: u,
|
|
35188
35202
|
onDeny: d
|
|
35189
35203
|
}) {
|
|
35190
|
-
const m = l?.title || e, f = a === "approval" && c !== void 0 && d !== void 0, [g, h] =
|
|
35204
|
+
const m = l?.title || e, f = a === "approval" && c !== void 0 && d !== void 0, [g, h] = oe(i), b = n !== void 0 || o !== void 0, [y, _] = oe("one-time"), [x, v] = oe(!1), I = T.useRef(null);
|
|
35191
35205
|
Ce(() => {
|
|
35192
35206
|
!f && g && !i && h(!1);
|
|
35193
35207
|
}, [f]);
|
|
@@ -35199,7 +35213,7 @@ function yq({
|
|
|
35199
35213
|
{
|
|
35200
35214
|
"data-slot": "tool-ui",
|
|
35201
35215
|
className: O(
|
|
35202
|
-
"
|
|
35216
|
+
"@container overflow-hidden rounded-lg border border-border bg-card",
|
|
35203
35217
|
s
|
|
35204
35218
|
),
|
|
35205
35219
|
children: [
|
|
@@ -35208,10 +35222,10 @@ function yq({
|
|
|
35208
35222
|
{
|
|
35209
35223
|
"data-slot": "tool-ui-provider",
|
|
35210
35224
|
className: O(
|
|
35211
|
-
"
|
|
35225
|
+
"flex items-center gap-2 border-b border-border px-4 py-2.5"
|
|
35212
35226
|
),
|
|
35213
35227
|
children: [
|
|
35214
|
-
t ? /* @__PURE__ */ p("span", { className: "flex size-5 items-center justify-center", children: t }) : /* @__PURE__ */ p("span", { className: "
|
|
35228
|
+
t ? /* @__PURE__ */ p("span", { className: "flex size-5 items-center justify-center", children: t }) : /* @__PURE__ */ p("span", { className: "flex size-5 items-center justify-center rounded bg-muted text-xs font-medium", children: r.charAt(0).toUpperCase() }),
|
|
35215
35229
|
/* @__PURE__ */ p("span", { className: "text-sm font-medium", children: r })
|
|
35216
35230
|
]
|
|
35217
35231
|
}
|
|
@@ -35223,7 +35237,7 @@ function yq({
|
|
|
35223
35237
|
disabled: !b,
|
|
35224
35238
|
className: O(
|
|
35225
35239
|
"flex w-full items-center gap-2 px-4 py-3 text-left",
|
|
35226
|
-
b && "hover:bg-accent/50
|
|
35240
|
+
b && "cursor-pointer transition-colors hover:bg-accent/50"
|
|
35227
35241
|
),
|
|
35228
35242
|
children: [
|
|
35229
35243
|
/* @__PURE__ */ p(_$, { status: a }),
|
|
@@ -35241,7 +35255,7 @@ function yq({
|
|
|
35241
35255
|
Za,
|
|
35242
35256
|
{
|
|
35243
35257
|
className: O(
|
|
35244
|
-
"text-muted-foreground
|
|
35258
|
+
"size-4 text-muted-foreground transition-transform duration-200",
|
|
35245
35259
|
g && "rotate-180"
|
|
35246
35260
|
)
|
|
35247
35261
|
}
|
|
@@ -35273,11 +35287,11 @@ function yq({
|
|
|
35273
35287
|
"div",
|
|
35274
35288
|
{
|
|
35275
35289
|
"data-slot": "tool-ui-approval-actions",
|
|
35276
|
-
className: "
|
|
35290
|
+
className: "flex flex-col gap-2 border-t border-border px-4 py-3 @[320px]:flex-row @[320px]:items-center @[320px]:justify-end",
|
|
35277
35291
|
children: [
|
|
35278
35292
|
/* @__PURE__ */ A("div", { className: "flex items-center gap-2 @[320px]:mr-auto", children: [
|
|
35279
|
-
/* @__PURE__ */ p("span", { className: "text-muted-foreground
|
|
35280
|
-
l?.readOnlyHint && /* @__PURE__ */ p("span", { className: "bg-muted
|
|
35293
|
+
/* @__PURE__ */ p("span", { className: "text-sm text-muted-foreground", children: "This tool requires approval" }),
|
|
35294
|
+
l?.readOnlyHint && /* @__PURE__ */ p("span", { className: "rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground", children: "Read-only" }),
|
|
35281
35295
|
l?.destructiveHint && !l?.readOnlyHint && /* @__PURE__ */ p("span", { className: "rounded bg-amber-500/10 px-1.5 py-0.5 text-xs text-amber-600 dark:text-amber-400", children: "Destructive" })
|
|
35282
35296
|
] }),
|
|
35283
35297
|
/* @__PURE__ */ A("div", { className: "flex items-center gap-2 self-end", children: [
|
|
@@ -35303,9 +35317,9 @@ function yq({
|
|
|
35303
35317
|
onClick: S,
|
|
35304
35318
|
className: "flex cursor-pointer justify-between gap-1 rounded-r-none bg-emerald-600 hover:bg-emerald-700",
|
|
35305
35319
|
children: [
|
|
35306
|
-
/* @__PURE__ */ p(Nr, { className: "
|
|
35307
|
-
/* @__PURE__ */ p("span", { className: "
|
|
35308
|
-
/* @__PURE__ */ p("span", { className: "
|
|
35320
|
+
/* @__PURE__ */ p(Nr, { className: "mr-1 size-3 dark:text-foreground" }),
|
|
35321
|
+
/* @__PURE__ */ p("span", { className: "@[320px]:hidden dark:text-foreground", children: "Approve" }),
|
|
35322
|
+
/* @__PURE__ */ p("span", { className: "hidden min-w-[110px] @[320px]:inline dark:text-foreground", children: y === "one-time" ? "Approve this time" : "Approve always" })
|
|
35309
35323
|
]
|
|
35310
35324
|
}
|
|
35311
35325
|
),
|
|
@@ -35318,7 +35332,7 @@ function yq({
|
|
|
35318
35332
|
size: "sm",
|
|
35319
35333
|
className: "cursor-pointer rounded-l-none border-l border-emerald-700 bg-emerald-600 px-2 hover:bg-emerald-700",
|
|
35320
35334
|
onClick: () => v((E) => !E),
|
|
35321
|
-
children: x ? /* @__PURE__ */ p(J$, { className: "dark:text-foreground
|
|
35335
|
+
children: x ? /* @__PURE__ */ p(J$, { className: "size-3 dark:text-foreground" }) : /* @__PURE__ */ p(Za, { className: "size-3 dark:text-foreground" })
|
|
35322
35336
|
}
|
|
35323
35337
|
) }),
|
|
35324
35338
|
/* @__PURE__ */ A(
|
|
@@ -35338,7 +35352,7 @@ function yq({
|
|
|
35338
35352
|
onClick: () => {
|
|
35339
35353
|
_("one-time"), v(!1);
|
|
35340
35354
|
},
|
|
35341
|
-
className: "
|
|
35355
|
+
className: "relative flex w-full items-start gap-2 rounded-sm px-2 py-2 text-left hover:bg-accent",
|
|
35342
35356
|
children: [
|
|
35343
35357
|
/* @__PURE__ */ p(
|
|
35344
35358
|
Nr,
|
|
@@ -35351,7 +35365,7 @@ function yq({
|
|
|
35351
35365
|
),
|
|
35352
35366
|
/* @__PURE__ */ A("div", { className: "flex flex-col gap-0.5", children: [
|
|
35353
35367
|
/* @__PURE__ */ p("span", { className: "text-sm", children: "Approve only once" }),
|
|
35354
|
-
/* @__PURE__ */ p("span", { className: "text-muted-foreground
|
|
35368
|
+
/* @__PURE__ */ p("span", { className: "text-xs text-muted-foreground", children: "You'll be asked again next time" })
|
|
35355
35369
|
] })
|
|
35356
35370
|
]
|
|
35357
35371
|
}
|
|
@@ -35362,7 +35376,7 @@ function yq({
|
|
|
35362
35376
|
onClick: () => {
|
|
35363
35377
|
_("for-session"), v(!1);
|
|
35364
35378
|
},
|
|
35365
|
-
className: "
|
|
35379
|
+
className: "relative flex w-full items-start gap-2 rounded-sm px-2 py-2 text-left hover:bg-accent",
|
|
35366
35380
|
children: [
|
|
35367
35381
|
/* @__PURE__ */ p(
|
|
35368
35382
|
Nr,
|
|
@@ -35375,7 +35389,7 @@ function yq({
|
|
|
35375
35389
|
),
|
|
35376
35390
|
/* @__PURE__ */ A("div", { className: "flex flex-col gap-0.5", children: [
|
|
35377
35391
|
/* @__PURE__ */ p("span", { className: "text-sm", children: "Approve always" }),
|
|
35378
|
-
/* @__PURE__ */ p("span", { className: "text-muted-foreground
|
|
35392
|
+
/* @__PURE__ */ p("span", { className: "text-xs text-muted-foreground", children: "Trust this tool for the session" })
|
|
35379
35393
|
] })
|
|
35380
35394
|
]
|
|
35381
35395
|
}
|
|
@@ -35401,13 +35415,13 @@ function wq({
|
|
|
35401
35415
|
children: n,
|
|
35402
35416
|
className: o
|
|
35403
35417
|
}) {
|
|
35404
|
-
const [i, s] =
|
|
35418
|
+
const [i, s] = oe(a);
|
|
35405
35419
|
return /* @__PURE__ */ A(
|
|
35406
35420
|
"div",
|
|
35407
35421
|
{
|
|
35408
35422
|
"data-slot": "tool-ui-group",
|
|
35409
35423
|
className: O(
|
|
35410
|
-
"
|
|
35424
|
+
"overflow-hidden rounded-lg border border-border bg-card",
|
|
35411
35425
|
o
|
|
35412
35426
|
),
|
|
35413
35427
|
children: [
|
|
@@ -35415,7 +35429,7 @@ function wq({
|
|
|
35415
35429
|
"button",
|
|
35416
35430
|
{
|
|
35417
35431
|
onClick: () => s(!i),
|
|
35418
|
-
className: "
|
|
35432
|
+
className: "flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-accent/50",
|
|
35419
35433
|
children: [
|
|
35420
35434
|
t || /* @__PURE__ */ p(
|
|
35421
35435
|
_$,
|
|
@@ -35437,7 +35451,7 @@ function wq({
|
|
|
35437
35451
|
Za,
|
|
35438
35452
|
{
|
|
35439
35453
|
className: O(
|
|
35440
|
-
"text-muted-foreground
|
|
35454
|
+
"size-4 text-muted-foreground transition-transform duration-200",
|
|
35441
35455
|
i && "rotate-180"
|
|
35442
35456
|
)
|
|
35443
35457
|
}
|
|
@@ -35449,7 +35463,7 @@ function wq({
|
|
|
35449
35463
|
"div",
|
|
35450
35464
|
{
|
|
35451
35465
|
"data-slot": "tool-ui-group-content",
|
|
35452
|
-
className: "border-
|
|
35466
|
+
className: "border-t border-border",
|
|
35453
35467
|
children: n
|
|
35454
35468
|
}
|
|
35455
35469
|
)
|
|
@@ -35558,7 +35572,7 @@ const Tq = ({
|
|
|
35558
35572
|
textareaRef: n,
|
|
35559
35573
|
className: o
|
|
35560
35574
|
}) => {
|
|
35561
|
-
const [i, s] =
|
|
35575
|
+
const [i, s] = oe(0), [l, c] = oe(!1), [u, d] = oe([]), [m, f] = oe(null), g = ze(null), h = Vt(), b = xr();
|
|
35562
35576
|
Ce(() => {
|
|
35563
35577
|
const _ = Sq(t, r);
|
|
35564
35578
|
if (_.isInMention && e.length > 0) {
|
|
@@ -35648,7 +35662,7 @@ const Tq = ({
|
|
|
35648
35662
|
exit: { opacity: 0, y: 8 },
|
|
35649
35663
|
transition: { duration: 0.15, ease: at },
|
|
35650
35664
|
className: O(
|
|
35651
|
-
"aui-tool-mention-autocomplete
|
|
35665
|
+
"aui-tool-mention-autocomplete absolute bottom-full z-50 max-h-[220px] overflow-clip overflow-y-auto overscroll-contain rounded-br-none! rounded-bl-none! border border-b-0 border-ring bg-background shadow-xs",
|
|
35652
35666
|
b("xl"),
|
|
35653
35667
|
o
|
|
35654
35668
|
),
|
|
@@ -35671,7 +35685,7 @@ const Tq = ({
|
|
|
35671
35685
|
/* @__PURE__ */ p(YS, { className: "mt-0.5 size-4 flex-shrink-0 opacity-50" }),
|
|
35672
35686
|
/* @__PURE__ */ A("div", { className: "min-w-0 flex-1", children: [
|
|
35673
35687
|
/* @__PURE__ */ p("div", { className: "text-sm font-medium", children: _.name }),
|
|
35674
|
-
_.description && /* @__PURE__ */ p("div", { className: "
|
|
35688
|
+
_.description && /* @__PURE__ */ p("div", { className: "line-clamp-2 text-xs text-muted-foreground", children: _.description })
|
|
35675
35689
|
] })
|
|
35676
35690
|
]
|
|
35677
35691
|
},
|
|
@@ -35791,7 +35805,7 @@ async function Aq(e, t, r, a) {
|
|
|
35791
35805
|
}
|
|
35792
35806
|
}
|
|
35793
35807
|
function uG() {
|
|
35794
|
-
const e = Fh(), [t, r] =
|
|
35808
|
+
const e = Fh(), [t, r] = oe(!1), a = ze(0), n = A$(
|
|
35795
35809
|
(l) => e.subscribe(l),
|
|
35796
35810
|
() => e.getState().messages.length
|
|
35797
35811
|
), o = Ae(() => {
|
|
@@ -35820,7 +35834,7 @@ function Cq({
|
|
|
35820
35834
|
tools: e,
|
|
35821
35835
|
enabled: t = !0
|
|
35822
35836
|
}) {
|
|
35823
|
-
const [r, a] =
|
|
35837
|
+
const [r, a] = oe(0), n = ze(null), o = Pu(), i = Qe(({ composer: f }) => f.text), s = Ve(
|
|
35824
35838
|
() => xq(e),
|
|
35825
35839
|
[e]
|
|
35826
35840
|
), l = Ve(
|
|
@@ -35920,7 +35934,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
35920
35934
|
if (c.parts[u]?.status?.type === "running") return !0;
|
|
35921
35935
|
return !1;
|
|
35922
35936
|
}), { config: i } = ot(), s = i.tools?.expandToolGroupsByDefault ?? !1, l = Ve(() => a === 0 ? "No tools called" : a === 1 ? n ? `Calling ${zq(n)}...` : "Calling tool..." : o ? `Calling ${a} tools...` : `Executed ${a} tools`, [a, n, o]);
|
|
35923
|
-
return n && i.tools?.components?.[n] ? e : a === 1 ? /* @__PURE__ */ p("div", { className: O("my-4 w-full max-w-xl"), children: /* @__PURE__ */ p("div", { className: "
|
|
35937
|
+
return n && i.tools?.components?.[n] ? e : a === 1 ? /* @__PURE__ */ p("div", { className: O("my-4 w-full max-w-xl"), children: /* @__PURE__ */ p("div", { className: "overflow-hidden rounded-lg border border-border bg-card", children: e }) }) : /* @__PURE__ */ p("div", { className: "my-4 w-full max-w-xl", children: /* @__PURE__ */ p(
|
|
35924
35938
|
wq,
|
|
35925
35939
|
{
|
|
35926
35940
|
title: l,
|
|
@@ -35944,7 +35958,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
35944
35958
|
/* @__PURE__ */ p("strong", { children: "Danger:" }),
|
|
35945
35959
|
" You are using a Gram API key directly in the browser. This exposes your key to anyone who inspects this page. Do NOT use this in production."
|
|
35946
35960
|
] }), Gp = ({ className: e }) => {
|
|
35947
|
-
const t = Fl(), r = Vt(), { config: a } = ot(), n = a.components ?? {}, o = a.api && "dangerousApiKey" in a.api, i = a.thread?.showFeedback ?? !0, [s, l] =
|
|
35961
|
+
const t = Fl(), r = Vt(), { config: a } = ot(), n = a.components ?? {}, o = a.api && "dangerousApiKey" in a.api, i = a.thread?.showFeedback ?? !0, [s, l] = oe(!1), [c, u] = oe(!1), d = K$(), m = fl(a), f = Ll({
|
|
35948
35962
|
auth: a.api,
|
|
35949
35963
|
projectSlug: a.projectSlug
|
|
35950
35964
|
}), g = () => l(!0), h = () => {
|
|
@@ -35991,7 +36005,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
35991
36005
|
It.Root,
|
|
35992
36006
|
{
|
|
35993
36007
|
className: O(
|
|
35994
|
-
"aui-root aui-thread-root
|
|
36008
|
+
"aui-root aui-thread-root @container relative flex h-full flex-col bg-background",
|
|
35995
36009
|
t.className,
|
|
35996
36010
|
e
|
|
35997
36011
|
),
|
|
@@ -36026,7 +36040,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36026
36040
|
/* @__PURE__ */ p(qr, { children: i && s && /* @__PURE__ */ p(
|
|
36027
36041
|
Je.div,
|
|
36028
36042
|
{
|
|
36029
|
-
className: "
|
|
36043
|
+
className: "pointer-events-none absolute inset-0 z-50 bg-background/40",
|
|
36030
36044
|
initial: { opacity: 0 },
|
|
36031
36045
|
animate: { opacity: 1 },
|
|
36032
36046
|
exit: { opacity: 0 },
|
|
@@ -36043,7 +36057,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36043
36057
|
{
|
|
36044
36058
|
tooltip: "Scroll to bottom",
|
|
36045
36059
|
variant: "outline",
|
|
36046
|
-
className: "aui-thread-scroll-to-bottom
|
|
36060
|
+
className: "aui-thread-scroll-to-bottom absolute -top-12 z-10 self-center rounded-full p-4 disabled:invisible dark:bg-background dark:text-foreground dark:hover:bg-accent",
|
|
36047
36061
|
children: /* @__PURE__ */ p(F6, {})
|
|
36048
36062
|
}
|
|
36049
36063
|
) }), jq = () => {
|
|
@@ -36081,7 +36095,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36081
36095
|
exit: { opacity: 0, y: 10 },
|
|
36082
36096
|
transition: { duration: 0.25, ease: at },
|
|
36083
36097
|
className: O(
|
|
36084
|
-
"aui-thread-welcome-message-motion-1 text-foreground
|
|
36098
|
+
"aui-thread-welcome-message-motion-1 font-semibold text-foreground",
|
|
36085
36099
|
t("text-title")
|
|
36086
36100
|
),
|
|
36087
36101
|
children: r
|
|
@@ -36141,14 +36155,14 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36141
36155
|
{
|
|
36142
36156
|
variant: "ghost",
|
|
36143
36157
|
className: O(
|
|
36144
|
-
"aui-thread-welcome-suggestion
|
|
36158
|
+
"aui-thread-welcome-suggestion h-auto w-full border text-left whitespace-break-spaces dark:hover:bg-accent/60",
|
|
36145
36159
|
r("text-base"),
|
|
36146
36160
|
n ? `flex-col items-start @sm:flex-row @sm:items-center ${r("gap-sm")} ${r("px-lg")} ${r("py-sm")} ${t("full")}` : `w-full flex-1 flex-col flex-wrap items-start justify-start ${r("gap-sm")} ${r("px-lg")} ${r("py-md")} ${t("xl")}`
|
|
36147
36161
|
),
|
|
36148
36162
|
"aria-label": o.prompt,
|
|
36149
36163
|
children: [
|
|
36150
|
-
/* @__PURE__ */ p("span", { className: "aui-thread-welcome-suggestion-text-1 text-
|
|
36151
|
-
/* @__PURE__ */ p("span", { className: "aui-thread-welcome-suggestion-text-2 text-muted-foreground
|
|
36164
|
+
/* @__PURE__ */ p("span", { className: "aui-thread-welcome-suggestion-text-1 text-sm font-medium text-foreground", children: o.title }),
|
|
36165
|
+
/* @__PURE__ */ p("span", { className: "aui-thread-welcome-suggestion-text-2 text-sm text-muted-foreground", children: o.label })
|
|
36152
36166
|
]
|
|
36153
36167
|
}
|
|
36154
36168
|
) })
|
|
@@ -36255,7 +36269,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36255
36269
|
"div",
|
|
36256
36270
|
{
|
|
36257
36271
|
className: O(
|
|
36258
|
-
"aui-composer-wrapper
|
|
36272
|
+
"aui-composer-wrapper sticky bottom-0 z-[60] flex w-full flex-col overflow-visible bg-background",
|
|
36259
36273
|
i("gap-md"),
|
|
36260
36274
|
i("py-md"),
|
|
36261
36275
|
o("xl")
|
|
@@ -36266,12 +36280,12 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36266
36280
|
e && a ? /* @__PURE__ */ A(
|
|
36267
36281
|
Je.div,
|
|
36268
36282
|
{
|
|
36269
|
-
className: "aui-composer-resolved
|
|
36283
|
+
className: "aui-composer-resolved flex min-h-[118px] flex-col items-center justify-center gap-2 border-t border-input px-1",
|
|
36270
36284
|
initial: { opacity: 0 },
|
|
36271
36285
|
animate: { opacity: 1 },
|
|
36272
36286
|
transition: { duration: 0.2, ease: at },
|
|
36273
36287
|
children: [
|
|
36274
|
-
/* @__PURE__ */ p("span", { className: "text-muted-foreground
|
|
36288
|
+
/* @__PURE__ */ p("span", { className: "text-sm text-muted-foreground", children: "This conversation has been resolved" }),
|
|
36275
36289
|
/* @__PURE__ */ p(
|
|
36276
36290
|
_t,
|
|
36277
36291
|
{
|
|
@@ -36289,7 +36303,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36289
36303
|
{
|
|
36290
36304
|
ref: m,
|
|
36291
36305
|
className: O(
|
|
36292
|
-
"aui-composer-root group/input-group
|
|
36306
|
+
"aui-composer-root group/input-group relative flex min-h-[118px] w-full flex-col border border-input bg-background px-1 pt-2 shadow-xs transition-[color,box-shadow] outline-none has-[textarea:focus-visible]:border-ring has-[textarea:focus-visible]:ring-1 has-[textarea:focus-visible]:ring-ring/5 dark:bg-background",
|
|
36293
36307
|
o("xl"),
|
|
36294
36308
|
l && "pointer-events-none opacity-50"
|
|
36295
36309
|
),
|
|
@@ -36301,7 +36315,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36301
36315
|
{
|
|
36302
36316
|
placeholder: c.placeholder,
|
|
36303
36317
|
className: O(
|
|
36304
|
-
"aui-composer-input
|
|
36318
|
+
"aui-composer-input mb-1 max-h-32 w-full resize-none bg-transparent px-3.5 pt-1.5 pb-3 text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-0",
|
|
36305
36319
|
i("h-input"),
|
|
36306
36320
|
i("text-base")
|
|
36307
36321
|
),
|
|
@@ -36319,7 +36333,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36319
36333
|
}
|
|
36320
36334
|
);
|
|
36321
36335
|
}, Bq = () => {
|
|
36322
|
-
const { model: e, setModel: t } = ot(), [r, a] =
|
|
36336
|
+
const { model: e, setModel: t } = ot(), [r, a] = oe(!1), [n, o] = oe(!1), i = ze(null), s = ze(0), l = ze(!1);
|
|
36323
36337
|
return Ce(() => {
|
|
36324
36338
|
r && !l.current && requestAnimationFrame(() => {
|
|
36325
36339
|
const u = i.current;
|
|
@@ -36335,7 +36349,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36335
36349
|
variant: "ghost",
|
|
36336
36350
|
size: "icon",
|
|
36337
36351
|
"data-state": r ? "open" : "closed",
|
|
36338
|
-
className: "aui-composer-model-picker data-[state=open]:bg-muted-foreground/15 dark:border-muted-foreground/15 dark:hover:bg-muted-foreground/30
|
|
36352
|
+
className: "aui-composer-model-picker flex w-fit items-center gap-2 rounded-full px-2.5 py-1 text-xs font-semibold data-[state=open]:bg-muted-foreground/15 dark:border-muted-foreground/15 dark:hover:bg-muted-foreground/30",
|
|
36339
36353
|
"aria-label": "Model Settings",
|
|
36340
36354
|
children: /* @__PURE__ */ p(w5, { className: "aui-attachment-add-icon size-5 stroke-[1.5px]" })
|
|
36341
36355
|
}
|
|
@@ -36379,7 +36393,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36379
36393
|
}, Gq = !1, Hq = () => {
|
|
36380
36394
|
const { config: e } = ot(), t = xr(), r = e.composer ?? { attachments: !0 };
|
|
36381
36395
|
return /* @__PURE__ */ A("div", { className: "aui-composer-action-wrapper relative mx-1 mt-2 mb-2 flex items-center justify-between", children: [
|
|
36382
|
-
/* @__PURE__ */ A("div", { className: "aui-composer-action-wrapper-inner text-muted-foreground
|
|
36396
|
+
/* @__PURE__ */ A("div", { className: "aui-composer-action-wrapper-inner flex items-center text-muted-foreground", children: [
|
|
36383
36397
|
r.attachments ? /* @__PURE__ */ p(DZ, {}) : /* @__PURE__ */ p("div", { className: "aui-composer-add-attachment-placeholder" }),
|
|
36384
36398
|
e.model?.showModelPicker && !e.languageModel && /* @__PURE__ */ p(Bq, {}),
|
|
36385
36399
|
Gq
|
|
@@ -36404,7 +36418,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36404
36418
|
variant: "default",
|
|
36405
36419
|
size: "icon",
|
|
36406
36420
|
className: O(
|
|
36407
|
-
"aui-composer-cancel border-muted-foreground/60 hover:bg-primary/75 dark:border-muted-foreground/90
|
|
36421
|
+
"aui-composer-cancel size-[34px] border border-muted-foreground/60 hover:bg-primary/75 dark:border-muted-foreground/90",
|
|
36408
36422
|
t("full")
|
|
36409
36423
|
),
|
|
36410
36424
|
"aria-label": "Stop generating",
|
|
@@ -36412,7 +36426,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36412
36426
|
}
|
|
36413
36427
|
) }) })
|
|
36414
36428
|
] });
|
|
36415
|
-
}, Jq = () => /* @__PURE__ */ p(Pr.Error, { children: /* @__PURE__ */ p(af.Root, { className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive dark:bg-destructive/5
|
|
36429
|
+
}, Jq = () => /* @__PURE__ */ p(Pr.Error, { children: /* @__PURE__ */ p(af.Root, { className: "aui-message-error-root mt-2 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive dark:bg-destructive/5 dark:text-red-200", children: /* @__PURE__ */ p(af.Message, { className: "aui-message-error-message line-clamp-2" }) }) }), Wq = () => Qe(({ message: t }) => t.status?.type !== "running" ? !1 : t.parts[t.parts.length - 1]?.type === "tool-call") ? /* @__PURE__ */ p("div", { className: "aui-md mt-2", "data-status": "running" }) : null, Kq = () => {
|
|
36416
36430
|
const { config: e } = ot(), t = e.tools ?? {}, r = e.components ?? {}, a = Ve(
|
|
36417
36431
|
() => ({
|
|
36418
36432
|
Text: r.Text ?? f$,
|
|
@@ -36430,10 +36444,10 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36430
36444
|
return /* @__PURE__ */ p(Pr.Root, { asChild: !0, children: /* @__PURE__ */ A(
|
|
36431
36445
|
"div",
|
|
36432
36446
|
{
|
|
36433
|
-
className: "aui-assistant-message-root
|
|
36447
|
+
className: "aui-assistant-message-root relative mx-auto w-full animate-in py-4 duration-150 ease-out fade-in slide-in-from-bottom-1 last:mb-24",
|
|
36434
36448
|
"data-role": "assistant",
|
|
36435
36449
|
children: [
|
|
36436
|
-
/* @__PURE__ */ A("div", { className: "aui-assistant-message-content
|
|
36450
|
+
/* @__PURE__ */ A("div", { className: "aui-assistant-message-content mx-2 leading-7 wrap-break-word text-foreground", children: [
|
|
36437
36451
|
/* @__PURE__ */ p(Pr.Parts, { components: a }),
|
|
36438
36452
|
/* @__PURE__ */ p(Wq, {}),
|
|
36439
36453
|
/* @__PURE__ */ p(Jq, {})
|
|
@@ -36448,7 +36462,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36448
36462
|
hideWhenRunning: !0,
|
|
36449
36463
|
autohide: "not-last",
|
|
36450
36464
|
autohideFloat: "single-branch",
|
|
36451
|
-
className: "aui-assistant-action-bar-root
|
|
36465
|
+
className: "aui-assistant-action-bar-root col-start-3 row-start-2 -ml-1 flex gap-1 text-muted-foreground data-floating:absolute data-floating:rounded-md data-floating:border data-floating:bg-background data-floating:p-1 data-floating:shadow-sm",
|
|
36452
36466
|
children: /* @__PURE__ */ p(Pi.Copy, { asChild: !0, children: /* @__PURE__ */ A(er, { tooltip: "Copy", children: [
|
|
36453
36467
|
/* @__PURE__ */ p(Pr.If, { copied: !0, children: /* @__PURE__ */ p(Nr, {}) }),
|
|
36454
36468
|
/* @__PURE__ */ p(Pr.If, { copied: !1, children: /* @__PURE__ */ p(mp, {}) })
|
|
@@ -36459,7 +36473,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36459
36473
|
return /* @__PURE__ */ p(Pr.Root, { asChild: !0, children: /* @__PURE__ */ A(
|
|
36460
36474
|
"div",
|
|
36461
36475
|
{
|
|
36462
|
-
className: "aui-user-message-root
|
|
36476
|
+
className: "aui-user-message-root mx-auto grid w-full animate-in auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 px-2 py-4 duration-150 ease-out fade-in slide-in-from-bottom-1 first:mt-3 last:mb-5 [&:where(>*)]:col-start-2",
|
|
36463
36477
|
"data-role": "user",
|
|
36464
36478
|
children: [
|
|
36465
36479
|
/* @__PURE__ */ p(PZ, {}),
|
|
@@ -36468,7 +36482,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36468
36482
|
"div",
|
|
36469
36483
|
{
|
|
36470
36484
|
className: O(
|
|
36471
|
-
"aui-user-message-content bg-muted
|
|
36485
|
+
"aui-user-message-content bg-muted px-5 py-2.5 wrap-break-word text-foreground",
|
|
36472
36486
|
e("xl")
|
|
36473
36487
|
),
|
|
36474
36488
|
children: /* @__PURE__ */ p(Pr.Parts, {})
|
|
@@ -36488,11 +36502,11 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36488
36502
|
className: "aui-user-action-bar-root flex flex-col items-end",
|
|
36489
36503
|
children: /* @__PURE__ */ p(Pi.Edit, { asChild: !0, children: /* @__PURE__ */ p(er, { tooltip: "Edit", className: "aui-user-action-edit p-4", children: /* @__PURE__ */ p(v5, {}) }) })
|
|
36490
36504
|
}
|
|
36491
|
-
), tB = () => /* @__PURE__ */ p("div", { className: "aui-edit-composer-wrapper mx-auto flex w-full flex-col gap-4 px-2 first:mt-4", children: /* @__PURE__ */ A(ir.Root, { className: "aui-edit-composer-root
|
|
36505
|
+
), tB = () => /* @__PURE__ */ p("div", { className: "aui-edit-composer-wrapper mx-auto flex w-full flex-col gap-4 px-2 first:mt-4", children: /* @__PURE__ */ A(ir.Root, { className: "aui-edit-composer-root ml-auto flex w-full max-w-7/8 flex-col rounded-xl bg-muted", children: [
|
|
36492
36506
|
/* @__PURE__ */ p(
|
|
36493
36507
|
ir.Input,
|
|
36494
36508
|
{
|
|
36495
|
-
className: "aui-edit-composer-input
|
|
36509
|
+
className: "aui-edit-composer-input flex min-h-[60px] w-full resize-none bg-transparent p-4 text-foreground outline-none",
|
|
36496
36510
|
autoFocus: !0
|
|
36497
36511
|
}
|
|
36498
36512
|
),
|
|
@@ -36508,7 +36522,7 @@ const Dq = ({ children: e, startIndex: t, endIndex: r }) => {
|
|
|
36508
36522
|
{
|
|
36509
36523
|
hideWhenSingleBranch: !0,
|
|
36510
36524
|
className: O(
|
|
36511
|
-
"aui-branch-picker-root
|
|
36525
|
+
"aui-branch-picker-root mr-2 -ml-2 inline-flex items-center text-xs text-muted-foreground",
|
|
36512
36526
|
e
|
|
36513
36527
|
),
|
|
36514
36528
|
...t,
|
|
@@ -36528,7 +36542,7 @@ function nB({ className: e, ...t }) {
|
|
|
36528
36542
|
"div",
|
|
36529
36543
|
{
|
|
36530
36544
|
"data-slot": "skeleton",
|
|
36531
|
-
className: O("
|
|
36545
|
+
className: O("animate-pulse rounded-md bg-accent", e),
|
|
36532
36546
|
...t
|
|
36533
36547
|
}
|
|
36534
36548
|
);
|
|
@@ -36539,7 +36553,7 @@ const Hp = ({ className: e }) => {
|
|
|
36539
36553
|
Du.Root,
|
|
36540
36554
|
{
|
|
36541
36555
|
className: O(
|
|
36542
|
-
"aui-root aui-thread-list-root
|
|
36556
|
+
"aui-root aui-thread-list-root flex flex-col items-stretch bg-background text-foreground",
|
|
36543
36557
|
t("gap-sm"),
|
|
36544
36558
|
e
|
|
36545
36559
|
),
|
|
@@ -36548,7 +36562,7 @@ const Hp = ({ className: e }) => {
|
|
|
36548
36562
|
"div",
|
|
36549
36563
|
{
|
|
36550
36564
|
className: O(
|
|
36551
|
-
"aui-thread-list-new-section border-
|
|
36565
|
+
"aui-thread-list-new-section border-b border-border pb-2",
|
|
36552
36566
|
t("py-sm"),
|
|
36553
36567
|
t("px-sm")
|
|
36554
36568
|
),
|
|
@@ -36575,7 +36589,7 @@ const Hp = ({ className: e }) => {
|
|
|
36575
36589
|
_t,
|
|
36576
36590
|
{
|
|
36577
36591
|
className: O(
|
|
36578
|
-
"aui-thread-list-new
|
|
36592
|
+
"aui-thread-list-new flex w-full cursor-pointer items-center justify-start gap-1 rounded-lg px-2.5 py-2 text-start text-foreground hover:bg-muted data-[active=true]:bg-muted/80",
|
|
36579
36593
|
e("p-sm"),
|
|
36580
36594
|
e("py-xs")
|
|
36581
36595
|
),
|
|
@@ -36602,7 +36616,7 @@ const Hp = ({ className: e }) => {
|
|
|
36602
36616
|
jc.Root,
|
|
36603
36617
|
{
|
|
36604
36618
|
className: O(
|
|
36605
|
-
"aui-thread-list-item group hover:bg-muted focus-visible:bg-muted focus-visible:ring-
|
|
36619
|
+
"aui-thread-list-item group flex items-center gap-2 rounded-lg transition-all hover:bg-muted focus-visible:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none data-[active=true]:bg-muted",
|
|
36606
36620
|
e("md")
|
|
36607
36621
|
),
|
|
36608
36622
|
children: /* @__PURE__ */ p(
|
|
@@ -36618,7 +36632,7 @@ const Hp = ({ className: e }) => {
|
|
|
36618
36632
|
)
|
|
36619
36633
|
}
|
|
36620
36634
|
);
|
|
36621
|
-
}, lB = () => /* @__PURE__ */ p("span", { className: "aui-thread-list-item-title text-
|
|
36635
|
+
}, lB = () => /* @__PURE__ */ p("span", { className: "aui-thread-list-item-title text-sm break-words text-foreground", children: /* @__PURE__ */ p(jc.Title, { fallback: "New Chat" }) }), S$ = () => {
|
|
36622
36636
|
const { config: e, isExpanded: t, setIsExpanded: r } = ot(), a = e.variant === "sidecar" ? e.sidecar : e.modal, n = a?.expandable ?? !1, o = a?.defaultExpanded ?? !1;
|
|
36623
36637
|
return {
|
|
36624
36638
|
expandable: n,
|
|
@@ -36632,7 +36646,7 @@ const Hp = ({ className: e }) => {
|
|
|
36632
36646
|
ease: at
|
|
36633
36647
|
}
|
|
36634
36648
|
}, uB = ({ className: e }) => {
|
|
36635
|
-
const { config: t } = ot(), r = Fl(), a = xr(), n = Vt(), [o, i] =
|
|
36649
|
+
const { config: t } = ot(), r = Fl(), a = xr(), n = Vt(), [o, i] = oe(t.modal?.defaultOpen ?? !1), { expandable: s, isExpanded: l, setIsExpanded: c } = S$(), u = t.modal?.title, d = t.modal?.icon, m = t.history?.enabled && t.history?.showThreadList !== !1, f = t.modal?.position ?? "bottom-right", g = dB(f), h = Ve(
|
|
36636
36650
|
() => t.modal?.dimensions?.default ?? {
|
|
36637
36651
|
width: "500px",
|
|
36638
36652
|
height: "600px",
|
|
@@ -36663,7 +36677,7 @@ const Hp = ({ className: e }) => {
|
|
|
36663
36677
|
layout: !0,
|
|
36664
36678
|
layoutId: "chat-container",
|
|
36665
36679
|
className: O(
|
|
36666
|
-
"aui-modal-content
|
|
36680
|
+
"aui-modal-content flex flex-col overflow-hidden border bg-popover text-popover-foreground [&>.aui-thread-root]:bg-inherit",
|
|
36667
36681
|
a("lg")
|
|
36668
36682
|
),
|
|
36669
36683
|
initial: !1,
|
|
@@ -36695,7 +36709,7 @@ const Hp = ({ className: e }) => {
|
|
|
36695
36709
|
"span",
|
|
36696
36710
|
{
|
|
36697
36711
|
className: O(
|
|
36698
|
-
"text-
|
|
36712
|
+
"text-md flex items-center gap-2 truncate font-medium text-foreground",
|
|
36699
36713
|
_ && "title-shimmer"
|
|
36700
36714
|
),
|
|
36701
36715
|
children: [
|
|
@@ -36703,7 +36717,7 @@ const Hp = ({ className: e }) => {
|
|
|
36703
36717
|
_ && /* @__PURE__ */ p(
|
|
36704
36718
|
os,
|
|
36705
36719
|
{
|
|
36706
|
-
className: "
|
|
36720
|
+
className: "size-4.5 animate-spin text-muted-foreground",
|
|
36707
36721
|
strokeWidth: 1.25
|
|
36708
36722
|
}
|
|
36709
36723
|
)
|
|
@@ -36717,7 +36731,7 @@ const Hp = ({ className: e }) => {
|
|
|
36717
36731
|
type: "button",
|
|
36718
36732
|
onClick: () => c((S) => !S),
|
|
36719
36733
|
className: O(
|
|
36720
|
-
"
|
|
36734
|
+
"flex h-8 cursor-pointer items-center rounded-md px-2 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"
|
|
36721
36735
|
),
|
|
36722
36736
|
"aria-pressed": l,
|
|
36723
36737
|
"aria-label": l ? "Collapse assistant" : "Expand assistant",
|
|
@@ -36742,7 +36756,7 @@ const Hp = ({ className: e }) => {
|
|
|
36742
36756
|
onClick: () => {
|
|
36743
36757
|
i(!1), c(!1);
|
|
36744
36758
|
},
|
|
36745
|
-
className: "
|
|
36759
|
+
className: "-mr-1 flex size-8 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",
|
|
36746
36760
|
"aria-label": `Close ${u}`,
|
|
36747
36761
|
children: /* @__PURE__ */ p(Sn, { className: "size-4.5" })
|
|
36748
36762
|
}
|
|
@@ -36778,7 +36792,7 @@ const Hp = ({ className: e }) => {
|
|
|
36778
36792
|
layoutId: "chat-container",
|
|
36779
36793
|
onClick: () => i(!0),
|
|
36780
36794
|
className: O(
|
|
36781
|
-
"aui-modal-button
|
|
36795
|
+
"aui-modal-button flex size-12 cursor-pointer items-center justify-center border bg-primary text-primary-foreground shadow-lg transition-shadow hover:shadow-xl",
|
|
36782
36796
|
a("full")
|
|
36783
36797
|
),
|
|
36784
36798
|
initial: !1,
|
|
@@ -36828,7 +36842,7 @@ const mB = ({ className: e }) => {
|
|
|
36828
36842
|
},
|
|
36829
36843
|
transition: { duration: 0.3, ease: at },
|
|
36830
36844
|
className: O(
|
|
36831
|
-
"aui-root aui-sidecar
|
|
36845
|
+
"aui-root aui-sidecar fixed top-0 right-0 bottom-0 flex flex-col border-l bg-popover text-popover-foreground",
|
|
36832
36846
|
r.className,
|
|
36833
36847
|
e
|
|
36834
36848
|
),
|
|
@@ -36838,7 +36852,7 @@ const mB = ({ className: e }) => {
|
|
|
36838
36852
|
"span",
|
|
36839
36853
|
{
|
|
36840
36854
|
className: O(
|
|
36841
|
-
"text-
|
|
36855
|
+
"text-md flex items-center gap-2 font-medium text-foreground",
|
|
36842
36856
|
u && "title-shimmer"
|
|
36843
36857
|
),
|
|
36844
36858
|
children: [
|
|
@@ -36846,7 +36860,7 @@ const mB = ({ className: e }) => {
|
|
|
36846
36860
|
u && /* @__PURE__ */ p(
|
|
36847
36861
|
os,
|
|
36848
36862
|
{
|
|
36849
|
-
className: "
|
|
36863
|
+
className: "size-4.5 animate-spin text-muted-foreground",
|
|
36850
36864
|
strokeWidth: 1.25
|
|
36851
36865
|
}
|
|
36852
36866
|
)
|
|
@@ -36883,7 +36897,7 @@ const zc = `@layer properties{@supports (((-webkit-hyphens:none)) and (not (marg
|
|
|
36883
36897
|
hostClassName: t,
|
|
36884
36898
|
hostStyle: r
|
|
36885
36899
|
}) => {
|
|
36886
|
-
const a = ze(null), n = ze(null), [o, i] =
|
|
36900
|
+
const a = ze(null), n = ze(null), [o, i] = oe(null), { config: s } = ot(), l = Fl(), c = Ve(
|
|
36887
36901
|
() => O(vs, l.className),
|
|
36888
36902
|
[l.className]
|
|
36889
36903
|
);
|
|
@@ -37179,7 +37193,7 @@ function I$({
|
|
|
37179
37193
|
{
|
|
37180
37194
|
type: "button",
|
|
37181
37195
|
onClick: f,
|
|
37182
|
-
className: "
|
|
37196
|
+
className: "inline-flex h-7 w-7 items-center justify-center rounded-md transition-colors hover:bg-accent",
|
|
37183
37197
|
"aria-label": "Previous month",
|
|
37184
37198
|
children: /* @__PURE__ */ p(WS, { className: "h-4 w-4" })
|
|
37185
37199
|
}
|
|
@@ -37194,7 +37208,7 @@ function I$({
|
|
|
37194
37208
|
{
|
|
37195
37209
|
type: "button",
|
|
37196
37210
|
onClick: g,
|
|
37197
|
-
className: "
|
|
37211
|
+
className: "inline-flex h-7 w-7 items-center justify-center rounded-md transition-colors hover:bg-accent",
|
|
37198
37212
|
"aria-label": "Next month",
|
|
37199
37213
|
children: /* @__PURE__ */ p(dp, { className: "h-4 w-4" })
|
|
37200
37214
|
}
|
|
@@ -37203,7 +37217,7 @@ function I$({
|
|
|
37203
37217
|
/* @__PURE__ */ p("div", { className: "mb-1 grid grid-cols-7 gap-1", children: bB.map((b) => /* @__PURE__ */ p(
|
|
37204
37218
|
"div",
|
|
37205
37219
|
{
|
|
37206
|
-
className: "
|
|
37220
|
+
className: "flex h-8 w-8 items-center justify-center text-center text-xs font-medium text-muted-foreground",
|
|
37207
37221
|
children: b
|
|
37208
37222
|
},
|
|
37209
37223
|
b
|
|
@@ -37221,13 +37235,13 @@ function I$({
|
|
|
37221
37235
|
b.isDisabled && "cursor-not-allowed opacity-30",
|
|
37222
37236
|
!b.isDisabled && !b.isSelected && "hover:bg-accent",
|
|
37223
37237
|
// Today
|
|
37224
|
-
b.isToday && !b.isSelected && "border-primary
|
|
37238
|
+
b.isToday && !b.isSelected && "border border-primary",
|
|
37225
37239
|
// Selected states
|
|
37226
37240
|
b.isSelected && "bg-primary text-primary-foreground",
|
|
37227
37241
|
b.isRangeStart && "rounded-r-none",
|
|
37228
37242
|
b.isRangeEnd && "rounded-l-none",
|
|
37229
37243
|
// In range
|
|
37230
|
-
b.isInRange && "bg-primary/20
|
|
37244
|
+
b.isInRange && "rounded-none bg-primary/20"
|
|
37231
37245
|
),
|
|
37232
37246
|
children: b.date.getDate()
|
|
37233
37247
|
},
|
|
@@ -37476,7 +37490,7 @@ function EB({
|
|
|
37476
37490
|
} else P.key === "Escape" ? (x(""), I(!1), h(!1)) : P.key === "Backspace" && _ === "" && t && (P.preventDefault(), n?.());
|
|
37477
37491
|
}, Ee = (P) => {
|
|
37478
37492
|
P.stopPropagation(), I(!0), h(!0);
|
|
37479
|
-
},
|
|
37493
|
+
}, ie = () => {
|
|
37480
37494
|
I(!0);
|
|
37481
37495
|
}, F = () => {
|
|
37482
37496
|
setTimeout(() => {
|
|
@@ -37497,7 +37511,7 @@ function EB({
|
|
|
37497
37511
|
f
|
|
37498
37512
|
),
|
|
37499
37513
|
children: [
|
|
37500
|
-
u && /* @__PURE__ */ p("span", { className: "
|
|
37514
|
+
u && /* @__PURE__ */ p("span", { className: "absolute -top-2 left-3 bg-background px-1 text-xs text-muted-foreground", children: u }),
|
|
37501
37515
|
/* @__PURE__ */ p(
|
|
37502
37516
|
"span",
|
|
37503
37517
|
{
|
|
@@ -37517,7 +37531,7 @@ function EB({
|
|
|
37517
37531
|
value: v ? _ : be(),
|
|
37518
37532
|
onChange: ve,
|
|
37519
37533
|
onClick: Ee,
|
|
37520
|
-
onFocus:
|
|
37534
|
+
onFocus: ie,
|
|
37521
37535
|
onBlur: F,
|
|
37522
37536
|
onKeyDown: Be,
|
|
37523
37537
|
placeholder: "e.g., 3 days ago, last week...",
|
|
@@ -37530,7 +37544,7 @@ function EB({
|
|
|
37530
37544
|
)
|
|
37531
37545
|
}
|
|
37532
37546
|
),
|
|
37533
|
-
/* @__PURE__ */ p(Za, { className: "
|
|
37547
|
+
/* @__PURE__ */ p(Za, { className: "h-4 w-4 shrink-0 text-muted-foreground" })
|
|
37534
37548
|
]
|
|
37535
37549
|
}
|
|
37536
37550
|
) }),
|
|
@@ -37543,14 +37557,14 @@ function EB({
|
|
|
37543
37557
|
P.preventDefault(), Z.current?.focus();
|
|
37544
37558
|
},
|
|
37545
37559
|
children: /* @__PURE__ */ p("div", { className: "flex flex-col", children: b ? /* @__PURE__ */ A(Xt, { children: [
|
|
37546
|
-
/* @__PURE__ */ A("div", { className: "
|
|
37547
|
-
/* @__PURE__ */ p("span", { className: "text-
|
|
37560
|
+
/* @__PURE__ */ A("div", { className: "flex items-center justify-between border-b border-border/50 px-3 py-2", children: [
|
|
37561
|
+
/* @__PURE__ */ p("span", { className: "text-xs font-medium text-muted-foreground", children: "Select date range" }),
|
|
37548
37562
|
/* @__PURE__ */ p(
|
|
37549
37563
|
"button",
|
|
37550
37564
|
{
|
|
37551
37565
|
type: "button",
|
|
37552
37566
|
onClick: () => y(!1),
|
|
37553
|
-
className: "text-
|
|
37567
|
+
className: "text-xs text-primary hover:underline",
|
|
37554
37568
|
children: "Back"
|
|
37555
37569
|
}
|
|
37556
37570
|
)
|
|
@@ -37566,14 +37580,14 @@ function EB({
|
|
|
37566
37580
|
maxDate: /* @__PURE__ */ new Date()
|
|
37567
37581
|
}
|
|
37568
37582
|
),
|
|
37569
|
-
t && n && /* @__PURE__ */ p("div", { className: "border-border/50
|
|
37583
|
+
t && n && /* @__PURE__ */ p("div", { className: "border-t border-border/50 p-2", children: /* @__PURE__ */ p(
|
|
37570
37584
|
"button",
|
|
37571
37585
|
{
|
|
37572
37586
|
type: "button",
|
|
37573
37587
|
onClick: () => {
|
|
37574
37588
|
n(), y(!1);
|
|
37575
37589
|
},
|
|
37576
|
-
className: "text-muted-foreground hover:text-foreground
|
|
37590
|
+
className: "w-full text-xs text-muted-foreground transition-colors hover:text-foreground",
|
|
37577
37591
|
children: "Clear custom range"
|
|
37578
37592
|
}
|
|
37579
37593
|
) })
|
|
@@ -37697,7 +37711,7 @@ export {
|
|
|
37697
37711
|
nG as K,
|
|
37698
37712
|
oG as L,
|
|
37699
37713
|
$4 as M,
|
|
37700
|
-
|
|
37714
|
+
le as N,
|
|
37701
37715
|
Mt as O,
|
|
37702
37716
|
XB as P,
|
|
37703
37717
|
lt as Q,
|
|
@@ -37760,4 +37774,4 @@ export {
|
|
|
37760
37774
|
qe as y,
|
|
37761
37775
|
WB as z
|
|
37762
37776
|
};
|
|
37763
|
-
//# sourceMappingURL=index-
|
|
37777
|
+
//# sourceMappingURL=index-DuCQRbcQ.js.map
|