@superinterface/react 3.20.1 → 3.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -357,7 +357,7 @@ var require_lib = __commonJS({
357
357
  Object.defineProperty(exports, "__esModule", {
358
358
  value: true
359
359
  });
360
- function _objectWithoutPropertiesLoose9(r, e) {
360
+ function _objectWithoutPropertiesLoose10(r, e) {
361
361
  if (null == r) return {};
362
362
  var t = {};
363
363
  for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
@@ -717,7 +717,7 @@ var require_lib = __commonJS({
717
717
  PrimaryTopicNotAllowed: "Topic reference was used in a lexical context without topic binding.",
718
718
  PrimaryTopicRequiresSmartPipeline: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'
719
719
  });
720
- var _excluded9 = [
720
+ var _excluded10 = [
721
721
  "message"
722
722
  ];
723
723
  function defineHidden(obj, key2, value) {
@@ -792,7 +792,7 @@ var require_lib = __commonJS({
792
792
  }
793
793
  } : typeof template === "function" ? {
794
794
  message: template
795
- } : template, message = _ref.message, rest = _objectWithoutPropertiesLoose9(_ref, _excluded9);
795
+ } : template, message = _ref.message, rest = _objectWithoutPropertiesLoose10(_ref, _excluded10);
796
796
  var toMessage = typeof message === "string" ? function() {
797
797
  return message;
798
798
  } : message;
@@ -37810,26 +37810,29 @@ var SuperinterfaceProvider = function(_ref) {
37810
37810
  children: children
37811
37811
  });
37812
37812
  };
37813
+ // src/components/threads/Thread/index.tsx
37814
+ import { c as _c72 } from "react-compiler-runtime";
37813
37815
  // src/components/threads/Thread/Messages/index.tsx
37816
+ import { c as _c62 } from "react-compiler-runtime";
37814
37817
  import { Flex as Flex19 } from "@radix-ui/themes";
37815
37818
  // src/components/threads/Thread/Message/index.tsx
37816
- import { c as _c26 } from "react-compiler-runtime";
37819
+ import { c as _c47 } from "react-compiler-runtime";
37817
37820
  import { useMemo as useMemo10 } from "react";
37818
37821
  import { Box as Box9 } from "@radix-ui/themes";
37819
37822
  // src/components/runSteps/RunSteps/index.tsx
37820
- import { c as _c8 } from "react-compiler-runtime";
37823
+ import { c as _c16 } from "react-compiler-runtime";
37821
37824
  import { Flex as Flex5 } from "@radix-ui/themes";
37822
37825
  import { useContext as useContext4 } from "react";
37823
37826
  // src/contexts/components/ComponentsContext/index.tsx
37824
37827
  import { createContext as createContext3 } from "react";
37825
37828
  // src/components/runSteps/RunStep/index.tsx
37826
- import { c as _c6 } from "react-compiler-runtime";
37829
+ import { c as _c11 } from "react-compiler-runtime";
37827
37830
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
37828
- import { c as _c5 } from "react-compiler-runtime";
37831
+ import { c as _c10 } from "react-compiler-runtime";
37829
37832
  import { useContext as useContext3 } from "react";
37830
37833
  import { Flex as Flex3 } from "@radix-ui/themes";
37831
37834
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
37832
- import { c as _c4 } from "react-compiler-runtime";
37835
+ import { c as _c9 } from "react-compiler-runtime";
37833
37836
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn/index.tsx
37834
37837
  import { c as _c } from "react-compiler-runtime";
37835
37838
  import { useContext as useContext2 } from "react";
@@ -37860,42 +37863,70 @@ var Fn = function(t0) {
37860
37863
  return t1;
37861
37864
  };
37862
37865
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/index.tsx
37866
+ import { c as _c6 } from "react-compiler-runtime";
37863
37867
  import { Popover, Flex as Flex2 } from "@radix-ui/themes";
37864
37868
  // src/components/toolCalls/ToolCallBase/index.tsx
37869
+ import { c as _c2 } from "react-compiler-runtime";
37865
37870
  import { Flex, Button } from "@radix-ui/themes";
37866
37871
  import { jsx as _jsx3 } from "react/jsx-runtime";
37867
- var ToolCallBase = function(_ref) {
37868
- var children = _ref.children;
37869
- return /* @__PURE__ */ _jsx3(Flex, {
37870
- py: "1",
37871
- ml: "-2",
37872
- children: /* @__PURE__ */ _jsx3(Button, {
37873
- size: "1",
37874
- color: "gold",
37875
- variant: "outline",
37876
- style: {
37877
- boxShadow: "none"
37878
- },
37879
- children: children
37880
- })
37881
- });
37872
+ var ToolCallBase = function(t0) {
37873
+ var $ = _c2(3);
37874
+ var children = t0.children;
37875
+ var t1;
37876
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
37877
+ t1 = {
37878
+ boxShadow: "none"
37879
+ };
37880
+ $[0] = t1;
37881
+ } else {
37882
+ t1 = $[0];
37883
+ }
37884
+ var t2;
37885
+ if ($[1] !== children) {
37886
+ t2 = /* @__PURE__ */ _jsx3(Flex, {
37887
+ py: "1",
37888
+ ml: "-2",
37889
+ children: /* @__PURE__ */ _jsx3(Button, {
37890
+ size: "1",
37891
+ color: "gold",
37892
+ variant: "outline",
37893
+ style: t1,
37894
+ children: children
37895
+ })
37896
+ });
37897
+ $[1] = children;
37898
+ $[2] = t2;
37899
+ } else {
37900
+ t2 = $[2];
37901
+ }
37902
+ return t2;
37882
37903
  };
37883
37904
  // src/components/toolCalls/ToolCallBase/ToolCallTitle.tsx
37905
+ import { c as _c3 } from "react-compiler-runtime";
37884
37906
  import { Text } from "@radix-ui/themes";
37885
37907
  import { jsx as _jsx4 } from "react/jsx-runtime";
37886
- var ToolCallTitle = function(_ref) {
37887
- var children = _ref.children;
37888
- return /* @__PURE__ */ _jsx4(Text, {
37889
- weight: "regular",
37890
- children: children
37891
- });
37908
+ var ToolCallTitle = function(t0) {
37909
+ var $ = _c3(2);
37910
+ var children = t0.children;
37911
+ var t1;
37912
+ if ($[0] !== children) {
37913
+ t1 = /* @__PURE__ */ _jsx4(Text, {
37914
+ weight: "regular",
37915
+ children: children
37916
+ });
37917
+ $[0] = children;
37918
+ $[1] = t1;
37919
+ } else {
37920
+ t1 = $[1];
37921
+ }
37922
+ return t1;
37892
37923
  };
37893
37924
  // src/components/toolCalls/ToolCallBase/ToolCallIcon.tsx
37894
- import { c as _c2 } from "react-compiler-runtime";
37925
+ import { c as _c4 } from "react-compiler-runtime";
37895
37926
  import { CircleIcon, CircleBackslashIcon, CheckCircledIcon } from "@radix-ui/react-icons";
37896
37927
  import { jsx as _jsx5 } from "react/jsx-runtime";
37897
37928
  var ToolCallIcon = function(t0) {
37898
- var $ = _c2(3);
37929
+ var $ = _c4(3);
37899
37930
  var runStep = t0.runStep;
37900
37931
  if (runStep.completed_at) {
37901
37932
  var t1;
@@ -37929,11 +37960,11 @@ var ToolCallIcon = function(t0) {
37929
37960
  }
37930
37961
  };
37931
37962
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/Content.tsx
37932
- import { c as _c3 } from "react-compiler-runtime";
37963
+ import { c as _c5 } from "react-compiler-runtime";
37933
37964
  import { Code, Box } from "@radix-ui/themes";
37934
37965
  import { jsx as _jsx6, jsxs as _jsxs } from "react/jsx-runtime";
37935
37966
  var Content = function(t0) {
37936
- var $ = _c3(10);
37967
+ var $ = _c5(10);
37937
37968
  var codeInterpreter = t0.codeInterpreter;
37938
37969
  if (!codeInterpreter.input) {
37939
37970
  return null;
@@ -37997,70 +38028,163 @@ var Content = function(t0) {
37997
38028
  };
37998
38029
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/index.tsx
37999
38030
  import { jsx as _jsx7, jsxs as _jsxs2 } from "react/jsx-runtime";
38000
- var CodeInterpreter = function(_ref) {
38001
- var codeInterpreter = _ref.codeInterpreter, runStep = _ref.runStep;
38002
- return /* @__PURE__ */ _jsxs2(Popover.Root, {
38003
- children: [
38004
- /* @__PURE__ */ _jsx7(Popover.Trigger, {
38005
- children: /* @__PURE__ */ _jsx7(Flex2, {
38006
- children: /* @__PURE__ */ _jsxs2(ToolCallBase, {
38007
- children: [
38008
- /* @__PURE__ */ _jsx7(ToolCallIcon, {
38009
- runStep: runStep
38010
- }),
38011
- /* @__PURE__ */ _jsx7(ToolCallTitle, {
38012
- children: "Using code interpreter"
38013
- })
38014
- ]
38015
- })
38016
- })
38017
- }),
38018
- /* @__PURE__ */ _jsx7(Popover.Content, {
38019
- maxHeight: "200px",
38020
- children: /* @__PURE__ */ _jsx7(Content, {
38021
- codeInterpreter: codeInterpreter
38031
+ var CodeInterpreter = function(t0) {
38032
+ var $ = _c6(10);
38033
+ var codeInterpreter = t0.codeInterpreter, runStep = t0.runStep;
38034
+ var t1;
38035
+ if ($[0] !== runStep) {
38036
+ t1 = /* @__PURE__ */ _jsx7(ToolCallIcon, {
38037
+ runStep: runStep
38038
+ });
38039
+ $[0] = runStep;
38040
+ $[1] = t1;
38041
+ } else {
38042
+ t1 = $[1];
38043
+ }
38044
+ var t2;
38045
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
38046
+ t2 = /* @__PURE__ */ _jsx7(ToolCallTitle, {
38047
+ children: "Using code interpreter"
38048
+ });
38049
+ $[2] = t2;
38050
+ } else {
38051
+ t2 = $[2];
38052
+ }
38053
+ var t3;
38054
+ if ($[3] !== t1) {
38055
+ t3 = /* @__PURE__ */ _jsx7(Popover.Trigger, {
38056
+ children: /* @__PURE__ */ _jsx7(Flex2, {
38057
+ children: /* @__PURE__ */ _jsxs2(ToolCallBase, {
38058
+ children: [
38059
+ t1,
38060
+ t2
38061
+ ]
38022
38062
  })
38023
38063
  })
38024
- ]
38025
- });
38064
+ });
38065
+ $[3] = t1;
38066
+ $[4] = t3;
38067
+ } else {
38068
+ t3 = $[4];
38069
+ }
38070
+ var t4;
38071
+ if ($[5] !== codeInterpreter) {
38072
+ t4 = /* @__PURE__ */ _jsx7(Popover.Content, {
38073
+ maxHeight: "200px",
38074
+ children: /* @__PURE__ */ _jsx7(Content, {
38075
+ codeInterpreter: codeInterpreter
38076
+ })
38077
+ });
38078
+ $[5] = codeInterpreter;
38079
+ $[6] = t4;
38080
+ } else {
38081
+ t4 = $[6];
38082
+ }
38083
+ var t5;
38084
+ if ($[7] !== t3 || $[8] !== t4) {
38085
+ t5 = /* @__PURE__ */ _jsxs2(Popover.Root, {
38086
+ children: [
38087
+ t3,
38088
+ t4
38089
+ ]
38090
+ });
38091
+ $[7] = t3;
38092
+ $[8] = t4;
38093
+ $[9] = t5;
38094
+ } else {
38095
+ t5 = $[9];
38096
+ }
38097
+ return t5;
38026
38098
  };
38027
38099
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/FileSearch.tsx
38100
+ import { c as _c7 } from "react-compiler-runtime";
38028
38101
  import { jsx as _jsx8, jsxs as _jsxs3 } from "react/jsx-runtime";
38029
- var FileSearch = function(_ref) {
38030
- var runStep = _ref.runStep, toolCall = _ref.toolCall;
38031
- return /* @__PURE__ */ _jsxs3(ToolCallBase, {
38032
- children: [
38033
- /* @__PURE__ */ _jsx8(ToolCallIcon, {
38034
- runStep: runStep
38035
- }),
38036
- /* @__PURE__ */ _jsx8(ToolCallTitle, {
38037
- children: "Searching files"
38038
- })
38039
- ]
38040
- });
38102
+ var FileSearch = function(t0) {
38103
+ var $ = _c7(5);
38104
+ var runStep = t0.runStep;
38105
+ var t1;
38106
+ if ($[0] !== runStep) {
38107
+ t1 = /* @__PURE__ */ _jsx8(ToolCallIcon, {
38108
+ runStep: runStep
38109
+ });
38110
+ $[0] = runStep;
38111
+ $[1] = t1;
38112
+ } else {
38113
+ t1 = $[1];
38114
+ }
38115
+ var t2;
38116
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
38117
+ t2 = /* @__PURE__ */ _jsx8(ToolCallTitle, {
38118
+ children: "Searching files"
38119
+ });
38120
+ $[2] = t2;
38121
+ } else {
38122
+ t2 = $[2];
38123
+ }
38124
+ var t3;
38125
+ if ($[3] !== t1) {
38126
+ t3 = /* @__PURE__ */ _jsxs3(ToolCallBase, {
38127
+ children: [
38128
+ t1,
38129
+ t2
38130
+ ]
38131
+ });
38132
+ $[3] = t1;
38133
+ $[4] = t3;
38134
+ } else {
38135
+ t3 = $[4];
38136
+ }
38137
+ return t3;
38041
38138
  };
38042
38139
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fallback.tsx
38140
+ import { c as _c8 } from "react-compiler-runtime";
38043
38141
  import { jsx as _jsx9, jsxs as _jsxs4 } from "react/jsx-runtime";
38044
- var Fallback = function(_ref) {
38045
- var runStep = _ref.runStep, toolCall = _ref.toolCall;
38046
- return /* @__PURE__ */ _jsxs4(ToolCallBase, {
38047
- children: [
38048
- /* @__PURE__ */ _jsx9(ToolCallIcon, {
38049
- runStep: runStep
38050
- }),
38051
- /* @__PURE__ */ _jsxs4(ToolCallTitle, {
38052
- children: [
38053
- "Using tool: ",
38054
- toolCall.type
38055
- ]
38056
- })
38057
- ]
38058
- });
38142
+ var Fallback = function(t0) {
38143
+ var $ = _c8(7);
38144
+ var runStep = t0.runStep, toolCall = t0.toolCall;
38145
+ var t1;
38146
+ if ($[0] !== runStep) {
38147
+ t1 = /* @__PURE__ */ _jsx9(ToolCallIcon, {
38148
+ runStep: runStep
38149
+ });
38150
+ $[0] = runStep;
38151
+ $[1] = t1;
38152
+ } else {
38153
+ t1 = $[1];
38154
+ }
38155
+ var t2;
38156
+ if ($[2] !== toolCall.type) {
38157
+ t2 = /* @__PURE__ */ _jsxs4(ToolCallTitle, {
38158
+ children: [
38159
+ "Using tool: ",
38160
+ toolCall.type
38161
+ ]
38162
+ });
38163
+ $[2] = toolCall.type;
38164
+ $[3] = t2;
38165
+ } else {
38166
+ t2 = $[3];
38167
+ }
38168
+ var t3;
38169
+ if ($[4] !== t1 || $[5] !== t2) {
38170
+ t3 = /* @__PURE__ */ _jsxs4(ToolCallBase, {
38171
+ children: [
38172
+ t1,
38173
+ t2
38174
+ ]
38175
+ });
38176
+ $[4] = t1;
38177
+ $[5] = t2;
38178
+ $[6] = t3;
38179
+ } else {
38180
+ t3 = $[6];
38181
+ }
38182
+ return t3;
38059
38183
  };
38060
38184
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
38061
38185
  import { jsx as _jsx10 } from "react/jsx-runtime";
38062
38186
  var ToolCall = function(t0) {
38063
- var $ = _c4(12);
38187
+ var $ = _c9(12);
38064
38188
  var toolCall = t0.toolCall, runStep = t0.runStep;
38065
38189
  if (toolCall.type === "function") {
38066
38190
  var _t;
@@ -38123,17 +38247,28 @@ var ToolCall = function(t0) {
38123
38247
  };
38124
38248
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
38125
38249
  import { jsx as _jsx11, jsxs as _jsxs5 } from "react/jsx-runtime";
38126
- var Root = function(_ref) {
38127
- var children = _ref.children, className = _ref.className, style = _ref.style;
38128
- return /* @__PURE__ */ _jsx11(Flex3, {
38129
- direction: "column",
38130
- className: className,
38131
- style: style,
38132
- children: children
38133
- });
38250
+ var Root = function(t0) {
38251
+ var $ = _c10(4);
38252
+ var children = t0.children, className = t0.className, style = t0.style;
38253
+ var t1;
38254
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
38255
+ t1 = /* @__PURE__ */ _jsx11(Flex3, {
38256
+ direction: "column",
38257
+ className: className,
38258
+ style: style,
38259
+ children: children
38260
+ });
38261
+ $[0] = children;
38262
+ $[1] = className;
38263
+ $[2] = style;
38264
+ $[3] = t1;
38265
+ } else {
38266
+ t1 = $[3];
38267
+ }
38268
+ return t1;
38134
38269
  };
38135
38270
  var StartingToolCalls = function() {
38136
- var $ = _c5(2);
38271
+ var $ = _c10(2);
38137
38272
  var componentsContext = useContext3(ComponentsContext);
38138
38273
  var StartingToolCalls3 = componentsContext.components.StartingToolCalls;
38139
38274
  var t0;
@@ -38146,21 +38281,58 @@ var StartingToolCalls = function() {
38146
38281
  }
38147
38282
  return t0;
38148
38283
  };
38149
- var ToolCalls = function(_ref2) {
38150
- var stepDetails = _ref2.stepDetails, runStep = _ref2.runStep, className = _ref2.className, style = _ref2.style;
38151
- return /* @__PURE__ */ _jsxs5(Root, {
38152
- className: className,
38153
- style: style,
38154
- children: [
38155
- !stepDetails.tool_calls.length && /* @__PURE__ */ _jsx11(StartingToolCalls, {}),
38156
- stepDetails.tool_calls.map(function(toolCall) {
38284
+ var ToolCalls = function(t0) {
38285
+ var $ = _c10(12);
38286
+ var stepDetails = t0.stepDetails, runStep = t0.runStep, className = t0.className, style = t0.style;
38287
+ var t1;
38288
+ if ($[0] !== stepDetails.tool_calls.length) {
38289
+ t1 = !stepDetails.tool_calls.length && /* @__PURE__ */ _jsx11(StartingToolCalls, {});
38290
+ $[0] = stepDetails.tool_calls.length;
38291
+ $[1] = t1;
38292
+ } else {
38293
+ t1 = $[1];
38294
+ }
38295
+ var t2;
38296
+ if ($[2] !== runStep || $[3] !== stepDetails.tool_calls) {
38297
+ var _t;
38298
+ if ($[5] !== runStep) {
38299
+ _t = function(toolCall) {
38157
38300
  return /* @__PURE__ */ _jsx11(ToolCall, {
38158
38301
  toolCall: toolCall,
38159
38302
  runStep: runStep
38160
38303
  }, toolCall.id);
38161
- })
38162
- ]
38163
- });
38304
+ };
38305
+ $[5] = runStep;
38306
+ $[6] = _t;
38307
+ } else {
38308
+ _t = $[6];
38309
+ }
38310
+ t2 = stepDetails.tool_calls.map(_t);
38311
+ $[2] = runStep;
38312
+ $[3] = stepDetails.tool_calls;
38313
+ $[4] = t2;
38314
+ } else {
38315
+ t2 = $[4];
38316
+ }
38317
+ var t3;
38318
+ if ($[7] !== className || $[8] !== style || $[9] !== t1 || $[10] !== t2) {
38319
+ t3 = /* @__PURE__ */ _jsxs5(Root, {
38320
+ className: className,
38321
+ style: style,
38322
+ children: [
38323
+ t1,
38324
+ t2
38325
+ ]
38326
+ });
38327
+ $[7] = className;
38328
+ $[8] = style;
38329
+ $[9] = t1;
38330
+ $[10] = t2;
38331
+ $[11] = t3;
38332
+ } else {
38333
+ t3 = $[11];
38334
+ }
38335
+ return t3;
38164
38336
  };
38165
38337
  ToolCalls.Root = Root;
38166
38338
  ToolCalls.StartingToolCalls = StartingToolCalls;
@@ -38168,7 +38340,7 @@ ToolCalls.ToolCall = ToolCall;
38168
38340
  // src/components/runSteps/RunStep/index.tsx
38169
38341
  import { jsx as _jsx12 } from "react/jsx-runtime";
38170
38342
  var RunStep = function(t0) {
38171
- var $ = _c6(4);
38343
+ var $ = _c11(4);
38172
38344
  var runStep = t0.runStep, className = t0.className, style = t0.style;
38173
38345
  if (runStep.step_details.type === "tool_calls") {
38174
38346
  var t1;
@@ -38191,10 +38363,13 @@ var RunStep = function(t0) {
38191
38363
  return null;
38192
38364
  };
38193
38365
  RunStep.ToolCalls = ToolCalls;
38366
+ // src/components/functions/Function/index.tsx
38367
+ import { c as _c14 } from "react-compiler-runtime";
38194
38368
  // src/components/functions/FunctionBase/index.tsx
38369
+ import { c as _c13 } from "react-compiler-runtime";
38195
38370
  import { Popover as Popover2, Flex as Flex4 } from "@radix-ui/themes";
38196
38371
  // src/components/functions/FunctionBase/Content/index.tsx
38197
- import { c as _c7 } from "react-compiler-runtime";
38372
+ import { c as _c12 } from "react-compiler-runtime";
38198
38373
  import { useMemo } from "react";
38199
38374
  import { Code as Code2, Box as Box2 } from "@radix-ui/themes";
38200
38375
  // src/components/functions/FunctionBase/Content/lib/formattedJsonOrRaw.ts
@@ -38216,7 +38391,7 @@ var formattedJsonOrRaw = function(_ref) {
38216
38391
  // src/components/functions/FunctionBase/Content/index.tsx
38217
38392
  import { jsx as _jsx13, jsxs as _jsxs6 } from "react/jsx-runtime";
38218
38393
  var Content2 = function(t0) {
38219
- var $ = _c7(12);
38394
+ var $ = _c12(12);
38220
38395
  var fn = t0.fn;
38221
38396
  var t1;
38222
38397
  var t2;
@@ -38295,34 +38470,84 @@ var Content2 = function(t0) {
38295
38470
  };
38296
38471
  // src/components/functions/FunctionBase/index.tsx
38297
38472
  import { jsx as _jsx14, jsxs as _jsxs7 } from "react/jsx-runtime";
38298
- var FunctionBase = function(_ref) {
38299
- var fn = _ref.fn, runStep = _ref.runStep, title2 = _ref.title;
38300
- return /* @__PURE__ */ _jsxs7(Popover2.Root, {
38301
- children: [
38302
- /* @__PURE__ */ _jsx14(Popover2.Trigger, {
38303
- children: /* @__PURE__ */ _jsx14(Flex4, {
38304
- children: /* @__PURE__ */ _jsxs7(ToolCallBase, {
38305
- children: [
38306
- /* @__PURE__ */ _jsx14(ToolCallIcon, {
38307
- runStep: runStep
38308
- }),
38309
- /* @__PURE__ */ _jsx14(ToolCallTitle, {
38310
- children: title2
38311
- })
38312
- ]
38313
- })
38314
- })
38315
- }),
38316
- /* @__PURE__ */ _jsx14(Popover2.Content, {
38317
- style: {
38318
- maxHeight: "200px"
38319
- },
38320
- children: /* @__PURE__ */ _jsx14(Content2, {
38321
- fn: fn
38473
+ var FunctionBase = function(t0) {
38474
+ var $ = _c13(13);
38475
+ var fn = t0.fn, runStep = t0.runStep, title2 = t0.title;
38476
+ var t1;
38477
+ if ($[0] !== runStep) {
38478
+ t1 = /* @__PURE__ */ _jsx14(ToolCallIcon, {
38479
+ runStep: runStep
38480
+ });
38481
+ $[0] = runStep;
38482
+ $[1] = t1;
38483
+ } else {
38484
+ t1 = $[1];
38485
+ }
38486
+ var t2;
38487
+ if ($[2] !== title2) {
38488
+ t2 = /* @__PURE__ */ _jsx14(ToolCallTitle, {
38489
+ children: title2
38490
+ });
38491
+ $[2] = title2;
38492
+ $[3] = t2;
38493
+ } else {
38494
+ t2 = $[3];
38495
+ }
38496
+ var t3;
38497
+ if ($[4] !== t1 || $[5] !== t2) {
38498
+ t3 = /* @__PURE__ */ _jsx14(Popover2.Trigger, {
38499
+ children: /* @__PURE__ */ _jsx14(Flex4, {
38500
+ children: /* @__PURE__ */ _jsxs7(ToolCallBase, {
38501
+ children: [
38502
+ t1,
38503
+ t2
38504
+ ]
38322
38505
  })
38323
38506
  })
38324
- ]
38325
- });
38507
+ });
38508
+ $[4] = t1;
38509
+ $[5] = t2;
38510
+ $[6] = t3;
38511
+ } else {
38512
+ t3 = $[6];
38513
+ }
38514
+ var t4;
38515
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
38516
+ t4 = {
38517
+ maxHeight: "200px"
38518
+ };
38519
+ $[7] = t4;
38520
+ } else {
38521
+ t4 = $[7];
38522
+ }
38523
+ var t5;
38524
+ if ($[8] !== fn) {
38525
+ t5 = /* @__PURE__ */ _jsx14(Popover2.Content, {
38526
+ style: t4,
38527
+ children: /* @__PURE__ */ _jsx14(Content2, {
38528
+ fn: fn
38529
+ })
38530
+ });
38531
+ $[8] = fn;
38532
+ $[9] = t5;
38533
+ } else {
38534
+ t5 = $[9];
38535
+ }
38536
+ var t6;
38537
+ if ($[10] !== t3 || $[11] !== t5) {
38538
+ t6 = /* @__PURE__ */ _jsxs7(Popover2.Root, {
38539
+ children: [
38540
+ t3,
38541
+ t5
38542
+ ]
38543
+ });
38544
+ $[10] = t3;
38545
+ $[11] = t5;
38546
+ $[12] = t6;
38547
+ } else {
38548
+ t6 = $[12];
38549
+ }
38550
+ return t6;
38326
38551
  };
38327
38552
  // src/components/functions/Function/lib/title.ts
38328
38553
  var title = function(_ref) {
@@ -38337,42 +38562,78 @@ var title = function(_ref) {
38337
38562
  };
38338
38563
  // src/components/functions/Function/index.tsx
38339
38564
  import { jsx as _jsx15 } from "react/jsx-runtime";
38340
- var Function2 = function(_ref) {
38341
- var fn = _ref.fn, runStep = _ref.runStep;
38342
- return /* @__PURE__ */ _jsx15(FunctionBase, {
38343
- fn: fn,
38344
- runStep: runStep,
38345
- title: title({
38565
+ var Function2 = function(t0) {
38566
+ var $ = _c14(7);
38567
+ var fn = t0.fn, runStep = t0.runStep;
38568
+ var t1;
38569
+ if ($[0] !== fn || $[1] !== runStep) {
38570
+ t1 = title({
38346
38571
  runStep: runStep,
38347
38572
  fn: fn
38348
- })
38349
- });
38573
+ });
38574
+ $[0] = fn;
38575
+ $[1] = runStep;
38576
+ $[2] = t1;
38577
+ } else {
38578
+ t1 = $[2];
38579
+ }
38580
+ var t2;
38581
+ if ($[3] !== fn || $[4] !== runStep || $[5] !== t1) {
38582
+ t2 = /* @__PURE__ */ _jsx15(FunctionBase, {
38583
+ fn: fn,
38584
+ runStep: runStep,
38585
+ title: t1
38586
+ });
38587
+ $[3] = fn;
38588
+ $[4] = runStep;
38589
+ $[5] = t1;
38590
+ $[6] = t2;
38591
+ } else {
38592
+ t2 = $[6];
38593
+ }
38594
+ return t2;
38350
38595
  };
38351
38596
  // src/components/toolCalls/StartingToolCalls/index.tsx
38597
+ import { c as _c15 } from "react-compiler-runtime";
38352
38598
  import { Popover as Popover3, Text as Text2 } from "@radix-ui/themes";
38353
38599
  import { CircleIcon as CircleIcon2 } from "@radix-ui/react-icons";
38354
38600
  import { jsx as _jsx16, jsxs as _jsxs8 } from "react/jsx-runtime";
38355
38601
  var StartingToolCalls2 = function() {
38356
- return /* @__PURE__ */ _jsxs8(Popover3.Root, {
38357
- children: [
38358
- /* @__PURE__ */ _jsxs8(ToolCallBase, {
38359
- children: [
38360
- /* @__PURE__ */ _jsx16(CircleIcon2, {}),
38361
- /* @__PURE__ */ _jsx16(ToolCallTitle, {
38362
- children: "Starting actions"
38602
+ var $ = _c15(2);
38603
+ var t0;
38604
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
38605
+ t0 = /* @__PURE__ */ _jsxs8(ToolCallBase, {
38606
+ children: [
38607
+ /* @__PURE__ */ _jsx16(CircleIcon2, {}),
38608
+ /* @__PURE__ */ _jsx16(ToolCallTitle, {
38609
+ children: "Starting actions"
38610
+ })
38611
+ ]
38612
+ });
38613
+ $[0] = t0;
38614
+ } else {
38615
+ t0 = $[0];
38616
+ }
38617
+ var t1;
38618
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
38619
+ t1 = /* @__PURE__ */ _jsxs8(Popover3.Root, {
38620
+ children: [
38621
+ t0,
38622
+ /* @__PURE__ */ _jsx16(Popover3.Content, {
38623
+ style: {
38624
+ maxHeight: "500px"
38625
+ },
38626
+ children: /* @__PURE__ */ _jsx16(Text2, {
38627
+ children: "Starting some actions"
38363
38628
  })
38364
- ]
38365
- }),
38366
- /* @__PURE__ */ _jsx16(Popover3.Content, {
38367
- style: {
38368
- maxHeight: "500px"
38369
- },
38370
- children: /* @__PURE__ */ _jsx16(Text2, {
38371
- children: "Starting some actions"
38372
38629
  })
38373
- })
38374
- ]
38375
- });
38630
+ ]
38631
+ });
38632
+ $[1] = t1;
38633
+ } else {
38634
+ t1 = $[1];
38635
+ }
38636
+ return t1;
38376
38637
  };
38377
38638
  // src/contexts/components/ComponentsContext/index.tsx
38378
38639
  var ComponentsContext = /* @__PURE__ */ createContext3({
@@ -38385,7 +38646,7 @@ var ComponentsContext = /* @__PURE__ */ createContext3({
38385
38646
  // src/components/runSteps/RunSteps/index.tsx
38386
38647
  import { jsx as _jsx17 } from "react/jsx-runtime";
38387
38648
  var RunSteps = function(t0) {
38388
- var $ = _c8(7);
38649
+ var $ = _c16(7);
38389
38650
  var runSteps = t0.runSteps;
38390
38651
  var componentsContext = useContext4(ComponentsContext);
38391
38652
  var Component2 = componentsContext.components.RunStep;
@@ -38431,13 +38692,13 @@ var MessageContext = /* @__PURE__ */ createContext4({
38431
38692
  // src/components/threads/Thread/Message/Provider.tsx
38432
38693
  var Provider = MessageContext.Provider;
38433
38694
  // src/components/threads/Thread/Message/Attachments/index.tsx
38434
- import { c as _c9 } from "react-compiler-runtime";
38695
+ import { c as _c17 } from "react-compiler-runtime";
38435
38696
  import { Flex as Flex6, Badge } from "@radix-ui/themes";
38436
38697
  import { FileIcon } from "@radix-ui/react-icons";
38437
38698
  import { jsx as _jsx18, jsxs as _jsxs9 } from "react/jsx-runtime";
38438
38699
  var Attachments = function(t0) {
38439
38700
  var _message$attachments;
38440
- var $ = _c9(4);
38701
+ var $ = _c17(4);
38441
38702
  var message = t0.message;
38442
38703
  if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
38443
38704
  return null;
@@ -38474,10 +38735,12 @@ var Attachments = function(t0) {
38474
38735
  }
38475
38736
  return t3;
38476
38737
  };
38738
+ // src/components/messages/MessageContent/index.tsx
38739
+ import { c as _c46 } from "react-compiler-runtime";
38477
38740
  // src/components/messages/MessageContent/ContentPart/index.tsx
38478
- import { c as _c25 } from "react-compiler-runtime";
38741
+ import { c as _c45 } from "react-compiler-runtime";
38479
38742
  // src/components/messages/MessageContent/ContentPart/TextContent.tsx
38480
- import { c as _c23 } from "react-compiler-runtime";
38743
+ import { c as _c43 } from "react-compiler-runtime";
38481
38744
  import React, { useState as useState3, useEffect as useEffect2, useMemo as useMemo9 } from "react";
38482
38745
  import { Badge as Badge2 } from "@radix-ui/themes";
38483
38746
  import { compile } from "@mdx-js/mdx";
@@ -38631,114 +38894,223 @@ import { createContext as createContext6 } from "react";
38631
38894
  // src/contexts/markdown/MarkdownContext/lib/components/index.tsx
38632
38895
  import { Heading, Table } from "@radix-ui/themes";
38633
38896
  // src/contexts/markdown/MarkdownContext/lib/components/Paragraph.tsx
38897
+ import { c as _c18 } from "react-compiler-runtime";
38634
38898
  import { Box as Box3, Text as Text3 } from "@radix-ui/themes";
38635
38899
  import { jsx as _jsx19 } from "react/jsx-runtime";
38636
- var Paragraph = function(_ref) {
38637
- var children = _ref.children;
38638
- return /* @__PURE__ */ _jsx19(Box3, {
38639
- pb: "3",
38640
- children: /* @__PURE__ */ _jsx19(Text3, {
38641
- size: "3",
38642
- style: {
38643
- whiteSpace: "pre-line",
38644
- wordBreak: "break-word"
38645
- },
38646
- children: children
38647
- })
38648
- });
38900
+ var Paragraph = function(t0) {
38901
+ var $ = _c18(3);
38902
+ var children = t0.children;
38903
+ var t1;
38904
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
38905
+ t1 = {
38906
+ whiteSpace: "pre-line",
38907
+ wordBreak: "break-word"
38908
+ };
38909
+ $[0] = t1;
38910
+ } else {
38911
+ t1 = $[0];
38912
+ }
38913
+ var t2;
38914
+ if ($[1] !== children) {
38915
+ t2 = /* @__PURE__ */ _jsx19(Box3, {
38916
+ pb: "3",
38917
+ children: /* @__PURE__ */ _jsx19(Text3, {
38918
+ size: "3",
38919
+ style: t1,
38920
+ children: children
38921
+ })
38922
+ });
38923
+ $[1] = children;
38924
+ $[2] = t2;
38925
+ } else {
38926
+ t2 = $[2];
38927
+ }
38928
+ return t2;
38649
38929
  };
38650
38930
  // src/contexts/markdown/MarkdownContext/lib/components/Link.tsx
38931
+ import { c as _c19 } from "react-compiler-runtime";
38651
38932
  import { Link as RadixLink } from "@radix-ui/themes";
38652
38933
  import { jsx as _jsx20 } from "react/jsx-runtime";
38653
- var Link = function(_ref) {
38654
- var children = _ref.children, href = _ref.href, download = _ref.download, _ref_target = _ref.target, target = _ref_target === void 0 ? "_blank" : _ref_target;
38655
- return /* @__PURE__ */ _jsx20(RadixLink, {
38656
- href: href,
38657
- target: target,
38658
- download: download,
38659
- children: children
38660
- });
38934
+ var Link = function(t0) {
38935
+ var $ = _c19(5);
38936
+ var children = t0.children, href = t0.href, download = t0.download, t1 = t0.target;
38937
+ var target = t1 === void 0 ? "_blank" : t1;
38938
+ var t2;
38939
+ if ($[0] !== children || $[1] !== download || $[2] !== href || $[3] !== target) {
38940
+ t2 = /* @__PURE__ */ _jsx20(RadixLink, {
38941
+ href: href,
38942
+ target: target,
38943
+ download: download,
38944
+ children: children
38945
+ });
38946
+ $[0] = children;
38947
+ $[1] = download;
38948
+ $[2] = href;
38949
+ $[3] = target;
38950
+ $[4] = t2;
38951
+ } else {
38952
+ t2 = $[4];
38953
+ }
38954
+ return t2;
38661
38955
  };
38662
38956
  // src/contexts/markdown/MarkdownContext/lib/components/UnorderedList.tsx
38957
+ import { c as _c20 } from "react-compiler-runtime";
38663
38958
  import { Box as Box4 } from "@radix-ui/themes";
38664
38959
  import { jsx as _jsx21 } from "react/jsx-runtime";
38665
- var UnorderedList = function(_ref) {
38666
- var children = _ref.children;
38667
- return /* @__PURE__ */ _jsx21(Box4, {
38668
- pb: "3",
38669
- asChild: true,
38670
- children: /* @__PURE__ */ _jsx21("ul", {
38671
- style: {
38672
- listStylePosition: "inside"
38673
- },
38674
- children: children
38675
- })
38676
- });
38960
+ var UnorderedList = function(t0) {
38961
+ var $ = _c20(3);
38962
+ var children = t0.children;
38963
+ var t1;
38964
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
38965
+ t1 = {
38966
+ listStylePosition: "inside"
38967
+ };
38968
+ $[0] = t1;
38969
+ } else {
38970
+ t1 = $[0];
38971
+ }
38972
+ var t2;
38973
+ if ($[1] !== children) {
38974
+ t2 = /* @__PURE__ */ _jsx21(Box4, {
38975
+ pb: "3",
38976
+ asChild: true,
38977
+ children: /* @__PURE__ */ _jsx21("ul", {
38978
+ style: t1,
38979
+ children: children
38980
+ })
38981
+ });
38982
+ $[1] = children;
38983
+ $[2] = t2;
38984
+ } else {
38985
+ t2 = $[2];
38986
+ }
38987
+ return t2;
38677
38988
  };
38678
38989
  // src/contexts/markdown/MarkdownContext/lib/components/OrderedList.tsx
38990
+ import { c as _c21 } from "react-compiler-runtime";
38679
38991
  import { Box as Box5 } from "@radix-ui/themes";
38680
38992
  import { jsx as _jsx22 } from "react/jsx-runtime";
38681
- var OrderedList = function(_ref) {
38682
- var children = _ref.children;
38683
- return /* @__PURE__ */ _jsx22(Box5, {
38684
- pb: "3",
38685
- asChild: true,
38686
- children: /* @__PURE__ */ _jsx22("ol", {
38687
- style: {
38688
- listStylePosition: "inside"
38689
- },
38690
- children: children
38691
- })
38692
- });
38993
+ var OrderedList = function(t0) {
38994
+ var $ = _c21(3);
38995
+ var children = t0.children;
38996
+ var t1;
38997
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
38998
+ t1 = {
38999
+ listStylePosition: "inside"
39000
+ };
39001
+ $[0] = t1;
39002
+ } else {
39003
+ t1 = $[0];
39004
+ }
39005
+ var t2;
39006
+ if ($[1] !== children) {
39007
+ t2 = /* @__PURE__ */ _jsx22(Box5, {
39008
+ pb: "3",
39009
+ asChild: true,
39010
+ children: /* @__PURE__ */ _jsx22("ol", {
39011
+ style: t1,
39012
+ children: children
39013
+ })
39014
+ });
39015
+ $[1] = children;
39016
+ $[2] = t2;
39017
+ } else {
39018
+ t2 = $[2];
39019
+ }
39020
+ return t2;
38693
39021
  };
38694
39022
  // src/contexts/markdown/MarkdownContext/lib/components/ListItem.tsx
39023
+ import { c as _c22 } from "react-compiler-runtime";
38695
39024
  import { Box as Box6 } from "@radix-ui/themes";
38696
39025
  import { jsx as _jsx23 } from "react/jsx-runtime";
38697
- var ListItem = function(_ref) {
38698
- var children = _ref.children;
38699
- return /* @__PURE__ */ _jsx23(Box6, {
38700
- pb: "1",
38701
- children: /* @__PURE__ */ _jsx23("li", {
38702
- style: {
38703
- wordBreak: "break-word"
38704
- },
38705
- children: children
38706
- })
38707
- });
39026
+ var ListItem = function(t0) {
39027
+ var $ = _c22(3);
39028
+ var children = t0.children;
39029
+ var t1;
39030
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
39031
+ t1 = {
39032
+ wordBreak: "break-word"
39033
+ };
39034
+ $[0] = t1;
39035
+ } else {
39036
+ t1 = $[0];
39037
+ }
39038
+ var t2;
39039
+ if ($[1] !== children) {
39040
+ t2 = /* @__PURE__ */ _jsx23(Box6, {
39041
+ pb: "1",
39042
+ children: /* @__PURE__ */ _jsx23("li", {
39043
+ style: t1,
39044
+ children: children
39045
+ })
39046
+ });
39047
+ $[1] = children;
39048
+ $[2] = t2;
39049
+ } else {
39050
+ t2 = $[2];
39051
+ }
39052
+ return t2;
38708
39053
  };
38709
39054
  // src/contexts/markdown/MarkdownContext/lib/components/Strong.tsx
39055
+ import { c as _c23 } from "react-compiler-runtime";
38710
39056
  import { Strong as RadixStrong } from "@radix-ui/themes";
38711
39057
  import { jsx as _jsx24 } from "react/jsx-runtime";
38712
- var Strong = function(_ref) {
38713
- var children = _ref.children;
38714
- return /* @__PURE__ */ _jsx24(RadixStrong, {
38715
- children: children
38716
- });
39058
+ var Strong = function(t0) {
39059
+ var $ = _c23(2);
39060
+ var children = t0.children;
39061
+ var t1;
39062
+ if ($[0] !== children) {
39063
+ t1 = /* @__PURE__ */ _jsx24(RadixStrong, {
39064
+ children: children
39065
+ });
39066
+ $[0] = children;
39067
+ $[1] = t1;
39068
+ } else {
39069
+ t1 = $[1];
39070
+ }
39071
+ return t1;
38717
39072
  };
38718
39073
  // src/contexts/markdown/MarkdownContext/lib/components/Pre.tsx
39074
+ import { c as _c24 } from "react-compiler-runtime";
38719
39075
  import { Box as Box7 } from "@radix-ui/themes";
38720
39076
  import { jsx as _jsx25 } from "react/jsx-runtime";
38721
- var Pre = function(_ref) {
38722
- var children = _ref.children;
38723
- return /* @__PURE__ */ _jsx25(Box7, {
38724
- style: {
39077
+ var Pre = function(t0) {
39078
+ var $ = _c24(3);
39079
+ var children = t0.children;
39080
+ var t1;
39081
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
39082
+ t1 = {
38725
39083
  whiteSpace: "pre-wrap",
38726
39084
  wordBreak: "break-word"
38727
- },
38728
- children: children
38729
- });
39085
+ };
39086
+ $[0] = t1;
39087
+ } else {
39088
+ t1 = $[0];
39089
+ }
39090
+ var t2;
39091
+ if ($[1] !== children) {
39092
+ t2 = /* @__PURE__ */ _jsx25(Box7, {
39093
+ style: t1,
39094
+ children: children
39095
+ });
39096
+ $[1] = children;
39097
+ $[2] = t2;
39098
+ } else {
39099
+ t2 = $[2];
39100
+ }
39101
+ return t2;
38730
39102
  };
38731
39103
  // src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
38732
- import { c as _c15 } from "react-compiler-runtime";
39104
+ import { c as _c30 } from "react-compiler-runtime";
38733
39105
  import { Code as RadixCode } from "@radix-ui/themes";
38734
39106
  // src/components/suggestions/Suggestions/index.tsx
38735
- import { c as _c14 } from "react-compiler-runtime";
39107
+ import { c as _c29 } from "react-compiler-runtime";
38736
39108
  import { useMemo as useMemo6 } from "react";
38737
39109
  // src/hooks/messages/useLatestMessage/index.ts
38738
- import { c as _c11 } from "react-compiler-runtime";
39110
+ import { c as _c26 } from "react-compiler-runtime";
38739
39111
  import { useMemo as useMemo3 } from "react";
38740
39112
  // src/hooks/messages/useMessages/index.tsx
38741
- import { c as _c10 } from "react-compiler-runtime";
39113
+ import { c as _c25 } from "react-compiler-runtime";
38742
39114
  import { useMemo as useMemo2 } from "react";
38743
39115
  import { useInfiniteQuery, useQueryClient } from "@tanstack/react-query";
38744
39116
  // src/lib/threads/queryOptions/index.ts
@@ -39012,7 +39384,7 @@ var messages = function(_ref) {
39012
39384
  }, []);
39013
39385
  };
39014
39386
  var useMessages = function() {
39015
- var $ = _c10(9);
39387
+ var $ = _c25(9);
39016
39388
  var queryClient = useQueryClient();
39017
39389
  var threadContext = useSuperinterfaceContext();
39018
39390
  var superinterfaceContext = useSuperinterfaceContext();
@@ -39101,7 +39473,7 @@ function _toPrimitive5(t, r) {
39101
39473
  return ("string" === r ? String : Number)(t);
39102
39474
  }
39103
39475
  var useLatestMessage = function() {
39104
- var $ = _c11(3);
39476
+ var $ = _c26(3);
39105
39477
  var props = useMessages();
39106
39478
  var t0;
39107
39479
  var t1 = props.messages[0] || null;
@@ -39124,11 +39496,11 @@ import { useMemo as useMemo5 } from "react";
39124
39496
  import { isEmpty } from "radash";
39125
39497
  import { onlyText } from "react-children-utilities";
39126
39498
  // src/hooks/messages/useIsMutatingMessage/index.ts
39127
- import { c as _c12 } from "react-compiler-runtime";
39499
+ import { c as _c27 } from "react-compiler-runtime";
39128
39500
  import { useMemo as useMemo4 } from "react";
39129
39501
  import { useIsMutating } from "@tanstack/react-query";
39130
39502
  var useIsMutatingMessage = function() {
39131
- var $ = _c12(2);
39503
+ var $ = _c27(2);
39132
39504
  var threadContext = useSuperinterfaceContext();
39133
39505
  var t0;
39134
39506
  if ($[0] !== threadContext.variables) {
@@ -39152,7 +39524,7 @@ var useIsMutatingMessage = function() {
39152
39524
  // src/components/suggestions/Suggestions/Content.tsx
39153
39525
  import { Flex as Flex7 } from "@radix-ui/themes";
39154
39526
  // src/components/suggestions/Suggestions/Item.tsx
39155
- import { c as _c13 } from "react-compiler-runtime";
39527
+ import { c as _c28 } from "react-compiler-runtime";
39156
39528
  import { ArrowUpIcon } from "@radix-ui/react-icons";
39157
39529
  import { Text as Text4, Button as Button2, Spinner } from "@radix-ui/themes";
39158
39530
  // src/hooks/messages/useCreateMessage/index.ts
@@ -40648,7 +41020,7 @@ function _toPrimitive19(t, r) {
40648
41020
  return ("string" === r ? String : Number)(t);
40649
41021
  }
40650
41022
  var Item = function(t0) {
40651
- var $ = _c13(16);
41023
+ var $ = _c28(16);
40652
41024
  var suggestion = t0.suggestion, isDisabled = t0.isDisabled, className = t0.className, style = t0.style;
40653
41025
  var addToast = useToasts().addToast;
40654
41026
  var queryClient = useQueryClient3();
@@ -40713,34 +41085,87 @@ var Item = function(t0) {
40713
41085
  }
40714
41086
  return t4;
40715
41087
  };
40716
- var Content3 = function(_ref) {
40717
- var onClick = _ref.onClick, isDisabled = _ref.isDisabled, isPending = _ref.isPending, children = _ref.children, className = _ref.className, style = _ref.style;
40718
- return /* @__PURE__ */ _jsxs10(Button2, {
40719
- className: className,
40720
- variant: "soft",
40721
- onClick: onClick,
40722
- disabled: isDisabled,
40723
- style: _objectSpread19({
41088
+ var Content3 = function(t0) {
41089
+ var $ = _c28(16);
41090
+ var onClick = t0.onClick, isDisabled = t0.isDisabled, isPending = t0.isPending, children = t0.children, className = t0.className, style = t0.style;
41091
+ var t1;
41092
+ if ($[0] !== style) {
41093
+ t1 = style !== null && style !== void 0 ? style : {};
41094
+ $[0] = style;
41095
+ $[1] = t1;
41096
+ } else {
41097
+ t1 = $[1];
41098
+ }
41099
+ var t2;
41100
+ if ($[2] !== t1) {
41101
+ t2 = _objectSpread19({
40724
41102
  minHeight: "var(--base-button-height)",
40725
41103
  height: "inherit",
40726
41104
  flexShrink: 1
40727
- }, style !== null && style !== void 0 ? style : {}),
40728
- children: [
40729
- /* @__PURE__ */ _jsx26(Text4, {
40730
- size: "1",
40731
- weight: "regular",
40732
- children: children
40733
- }),
40734
- /* @__PURE__ */ _jsx26(Spinner, {
40735
- loading: isPending,
40736
- children: /* @__PURE__ */ _jsx26(ArrowUpIcon, {
40737
- style: {
40738
- flexShrink: 0
40739
- }
40740
- })
40741
- })
40742
- ]
40743
- });
41105
+ }, t1);
41106
+ $[2] = t1;
41107
+ $[3] = t2;
41108
+ } else {
41109
+ t2 = $[3];
41110
+ }
41111
+ var t3;
41112
+ if ($[4] !== children) {
41113
+ t3 = /* @__PURE__ */ _jsx26(Text4, {
41114
+ size: "1",
41115
+ weight: "regular",
41116
+ children: children
41117
+ });
41118
+ $[4] = children;
41119
+ $[5] = t3;
41120
+ } else {
41121
+ t3 = $[5];
41122
+ }
41123
+ var t4;
41124
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
41125
+ t4 = /* @__PURE__ */ _jsx26(ArrowUpIcon, {
41126
+ style: {
41127
+ flexShrink: 0
41128
+ }
41129
+ });
41130
+ $[6] = t4;
41131
+ } else {
41132
+ t4 = $[6];
41133
+ }
41134
+ var t5;
41135
+ if ($[7] !== isPending) {
41136
+ t5 = /* @__PURE__ */ _jsx26(Spinner, {
41137
+ loading: isPending,
41138
+ children: t4
41139
+ });
41140
+ $[7] = isPending;
41141
+ $[8] = t5;
41142
+ } else {
41143
+ t5 = $[8];
41144
+ }
41145
+ var t6;
41146
+ if ($[9] !== className || $[10] !== isDisabled || $[11] !== onClick || $[12] !== t2 || $[13] !== t3 || $[14] !== t5) {
41147
+ t6 = /* @__PURE__ */ _jsxs10(Button2, {
41148
+ className: className,
41149
+ variant: "soft",
41150
+ onClick: onClick,
41151
+ disabled: isDisabled,
41152
+ style: t2,
41153
+ children: [
41154
+ t3,
41155
+ t5
41156
+ ]
41157
+ });
41158
+ $[9] = className;
41159
+ $[10] = isDisabled;
41160
+ $[11] = onClick;
41161
+ $[12] = t2;
41162
+ $[13] = t3;
41163
+ $[14] = t5;
41164
+ $[15] = t6;
41165
+ } else {
41166
+ t6 = $[15];
41167
+ }
41168
+ return t6;
40744
41169
  };
40745
41170
  Item.Content = Content3;
40746
41171
  // src/components/suggestions/Suggestions/Content.tsx
@@ -40776,7 +41201,7 @@ var Content4 = function(_ref) {
40776
41201
  import { jsx as _jsx28 } from "react/jsx-runtime";
40777
41202
  var Suggestions = function(t0) {
40778
41203
  var _latestMessageProps$l;
40779
- var $ = _c14(4);
41204
+ var $ = _c29(4);
40780
41205
  var children = t0.children, className = t0.className, style = t0.style;
40781
41206
  var latestMessageProps = useLatestMessage();
40782
41207
  var t1;
@@ -40808,7 +41233,7 @@ Suggestions.Item = Item;
40808
41233
  // src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
40809
41234
  import { jsx as _jsx29 } from "react/jsx-runtime";
40810
41235
  var Code3 = function(t0) {
40811
- var $ = _c15(5);
41236
+ var $ = _c30(5);
40812
41237
  var children = t0.children, className = t0.className;
40813
41238
  if (className === "language-suggestions") {
40814
41239
  var _t;
@@ -40846,8 +41271,9 @@ var Code3 = function(t0) {
40846
41271
  return t2;
40847
41272
  };
40848
41273
  // src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
40849
- import { c as _c20 } from "react-compiler-runtime";
41274
+ import { c as _c39 } from "react-compiler-runtime";
40850
41275
  // src/components/images/Image.tsx
41276
+ import { c as _c31 } from "react-compiler-runtime";
40851
41277
  import { Box as Box8 } from "@radix-ui/themes";
40852
41278
  import { jsx as _jsx30 } from "react/jsx-runtime";
40853
41279
  function ownKeys20(e, r) {
@@ -40894,15 +41320,31 @@ function _toPrimitive20(t, r) {
40894
41320
  return ("string" === r ? String : Number)(t);
40895
41321
  }
40896
41322
  var Image = function(props) {
40897
- return /* @__PURE__ */ _jsx30(Box8, {
40898
- pb: "3",
40899
- children: /* @__PURE__ */ _jsx30("img", _objectSpread20(_objectSpread20({}, props), {}, {
40900
- style: {
40901
- maxWidth: "100%",
40902
- height: "auto"
40903
- }
40904
- }))
40905
- });
41323
+ var $ = _c31(3);
41324
+ var t0;
41325
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
41326
+ t0 = {
41327
+ maxWidth: "100%",
41328
+ height: "auto"
41329
+ };
41330
+ $[0] = t0;
41331
+ } else {
41332
+ t0 = $[0];
41333
+ }
41334
+ var t1;
41335
+ if ($[1] !== props) {
41336
+ t1 = /* @__PURE__ */ _jsx30(Box8, {
41337
+ pb: "3",
41338
+ children: /* @__PURE__ */ _jsx30("img", _objectSpread20(_objectSpread20({}, props), {}, {
41339
+ style: t0
41340
+ }))
41341
+ });
41342
+ $[1] = props;
41343
+ $[2] = t1;
41344
+ } else {
41345
+ t1 = $[2];
41346
+ }
41347
+ return t1;
40906
41348
  };
40907
41349
  // src/contexts/markdown/MarkdownContext/lib/components/Img/lib/isVideoSrc.ts
40908
41350
  var videoExtensions = [
@@ -40951,17 +41393,18 @@ var isAudioSrc = function(_ref) {
40951
41393
  return src.endsWith(".mp3") || src.endsWith(".wav");
40952
41394
  };
40953
41395
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Video/index.tsx
41396
+ import { c as _c37 } from "react-compiler-runtime";
40954
41397
  import { Flex as Flex8 } from "@radix-ui/themes";
40955
41398
  import "@vidstack/react/player/styles/base.css";
40956
41399
  import { MediaPlayer, MediaProvider, Controls } from "@vidstack/react";
40957
41400
  // src/components/media/PlayButton.tsx
40958
- import { c as _c16 } from "react-compiler-runtime";
41401
+ import { c as _c32 } from "react-compiler-runtime";
40959
41402
  import { PlayButton as VidstackPlayButton, useMediaState } from "@vidstack/react";
40960
41403
  import { IconButton } from "@radix-ui/themes";
40961
41404
  import { PlayIcon, PauseIcon } from "@radix-ui/react-icons";
40962
41405
  import { jsx as _jsx31 } from "react/jsx-runtime";
40963
41406
  var PlayButton = function() {
40964
- var $ = _c16(2);
41407
+ var $ = _c32(2);
40965
41408
  var isPaused = useMediaState("paused");
40966
41409
  var t0;
40967
41410
  if ($[0] !== isPaused) {
@@ -40980,13 +41423,13 @@ var PlayButton = function() {
40980
41423
  return t0;
40981
41424
  };
40982
41425
  // src/components/media/VolumeButton.tsx
40983
- import { c as _c17 } from "react-compiler-runtime";
41426
+ import { c as _c33 } from "react-compiler-runtime";
40984
41427
  import { MuteButton, useMediaState as useMediaState2, useMediaRemote } from "@vidstack/react";
40985
41428
  import { IconButton as IconButton2, HoverCard, Slider } from "@radix-ui/themes";
40986
41429
  import { SpeakerModerateIcon, SpeakerOffIcon } from "@radix-ui/react-icons";
40987
41430
  import { jsx as _jsx32, jsxs as _jsxs11 } from "react/jsx-runtime";
40988
41431
  var VolumeButton = function() {
40989
- var $ = _c17(13);
41432
+ var $ = _c33(13);
40990
41433
  var volume = useMediaState2("volume");
40991
41434
  var isMuted = useMediaState2("muted");
40992
41435
  var remote = useMediaRemote();
@@ -41066,13 +41509,13 @@ var VolumeButton = function() {
41066
41509
  return t5;
41067
41510
  };
41068
41511
  // src/components/media/Time.tsx
41069
- import { c as _c18 } from "react-compiler-runtime";
41512
+ import { c as _c34 } from "react-compiler-runtime";
41070
41513
  import { useState, useEffect, useMemo as useMemo7 } from "react";
41071
41514
  import { useMediaState as useMediaState3, useMediaRemote as useMediaRemote2 } from "@vidstack/react";
41072
41515
  import { Slider as Slider2 } from "@radix-ui/themes";
41073
41516
  import { jsx as _jsx33 } from "react/jsx-runtime";
41074
41517
  var Time = function() {
41075
- var $ = _c18(17);
41518
+ var $ = _c34(17);
41076
41519
  var time = useMediaState3("currentTime");
41077
41520
  var duration = useMediaState3("duration");
41078
41521
  var seeking = useMediaState3("seeking");
@@ -41161,30 +41604,47 @@ var Time = function() {
41161
41604
  return t8;
41162
41605
  };
41163
41606
  // src/components/media/MediaContainer.tsx
41607
+ import { c as _c35 } from "react-compiler-runtime";
41164
41608
  import { Card, Inset } from "@radix-ui/themes";
41165
41609
  import { jsx as _jsx34 } from "react/jsx-runtime";
41166
- var MediaContainer = function(_ref) {
41167
- var children = _ref.children;
41168
- return /* @__PURE__ */ _jsx34(Card, {
41169
- mb: "3",
41170
- children: /* @__PURE__ */ _jsx34(Inset, {
41171
- clip: "padding-box",
41172
- style: {
41173
- display: "flex",
41174
- flexDirection: "column"
41175
- },
41176
- children: children
41177
- })
41178
- });
41610
+ var MediaContainer = function(t0) {
41611
+ var $ = _c35(3);
41612
+ var children = t0.children;
41613
+ var t1;
41614
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
41615
+ t1 = {
41616
+ display: "flex",
41617
+ flexDirection: "column"
41618
+ };
41619
+ $[0] = t1;
41620
+ } else {
41621
+ t1 = $[0];
41622
+ }
41623
+ var t2;
41624
+ if ($[1] !== children) {
41625
+ t2 = /* @__PURE__ */ _jsx34(Card, {
41626
+ mb: "3",
41627
+ children: /* @__PURE__ */ _jsx34(Inset, {
41628
+ clip: "padding-box",
41629
+ style: t1,
41630
+ children: children
41631
+ })
41632
+ });
41633
+ $[1] = children;
41634
+ $[2] = t2;
41635
+ } else {
41636
+ t2 = $[2];
41637
+ }
41638
+ return t2;
41179
41639
  };
41180
41640
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Video/FullscreenButton.tsx
41181
- import { c as _c19 } from "react-compiler-runtime";
41641
+ import { c as _c36 } from "react-compiler-runtime";
41182
41642
  import { FullscreenButton as VidstackFullscreenButton, useMediaState as useMediaState4 } from "@vidstack/react";
41183
41643
  import { IconButton as IconButton3 } from "@radix-ui/themes";
41184
41644
  import { EnterFullScreenIcon, ExitFullScreenIcon } from "@radix-ui/react-icons";
41185
41645
  import { jsx as _jsx35 } from "react/jsx-runtime";
41186
41646
  var FullscreenButton = function() {
41187
- var $ = _c19(2);
41647
+ var $ = _c36(2);
41188
41648
  var isFullscreen = useMediaState4("fullscreen");
41189
41649
  var t0;
41190
41650
  if ($[0] !== isFullscreen) {
@@ -41204,100 +41664,185 @@ var FullscreenButton = function() {
41204
41664
  };
41205
41665
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Video/index.tsx
41206
41666
  import { jsx as _jsx36, jsxs as _jsxs12 } from "react/jsx-runtime";
41207
- var Video = function(_ref) {
41208
- var src = _ref.src;
41209
- return /* @__PURE__ */ _jsx36(MediaContainer, {
41210
- children: /* @__PURE__ */ _jsxs12(MediaPlayer, {
41211
- src: {
41212
- src: src,
41213
- type: "video/".concat(src.split(".").pop())
41214
- },
41215
- playsInline: true,
41216
- hideControlsOnMouseLeave: true,
41217
- crossOrigin: true,
41218
- children: [
41219
- /* @__PURE__ */ _jsx36(MediaProvider, {}),
41220
- /* @__PURE__ */ _jsx36("style", {
41221
- children: "\n .superinterface-video-controls {\n opacity: 0;\n transition: opacity 0.2s ease-out;\n }\n\n .superinterface-video-controls[data-visible] {\n opacity: 1;\n }\n "
41222
- }),
41223
- /* @__PURE__ */ _jsx36(Flex8, {
41667
+ var Video = function(t0) {
41668
+ var $ = _c37(9);
41669
+ var src = t0.src;
41670
+ var t1 = "video/".concat(src.split(".").pop());
41671
+ var t2;
41672
+ if ($[0] !== src || $[1] !== t1) {
41673
+ t2 = {
41674
+ src: src,
41675
+ type: t1
41676
+ };
41677
+ $[0] = src;
41678
+ $[1] = t1;
41679
+ $[2] = t2;
41680
+ } else {
41681
+ t2 = $[2];
41682
+ }
41683
+ var t3;
41684
+ var t4;
41685
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
41686
+ t3 = /* @__PURE__ */ _jsx36(MediaProvider, {});
41687
+ t4 = /* @__PURE__ */ _jsx36("style", {
41688
+ children: "\n .superinterface-video-controls {\n opacity: 0;\n transition: opacity 0.2s ease-out;\n }\n\n .superinterface-video-controls[data-visible] {\n opacity: 1;\n }\n "
41689
+ });
41690
+ $[3] = t3;
41691
+ $[4] = t4;
41692
+ } else {
41693
+ t3 = $[3];
41694
+ t4 = $[4];
41695
+ }
41696
+ var t5;
41697
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
41698
+ t5 = {
41699
+ zIndex: 10,
41700
+ background: "var(--accent-4)"
41701
+ };
41702
+ $[5] = t5;
41703
+ } else {
41704
+ t5 = $[5];
41705
+ }
41706
+ var t6;
41707
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
41708
+ t6 = /* @__PURE__ */ _jsx36(Flex8, {
41709
+ asChild: true,
41710
+ position: "absolute",
41711
+ bottom: "0",
41712
+ left: "0",
41713
+ right: "0",
41714
+ className: "superinterface-video-controls",
41715
+ p: "3",
41716
+ style: t5,
41717
+ children: /* @__PURE__ */ _jsx36(Controls.Root, {
41718
+ children: /* @__PURE__ */ _jsx36(Flex8, {
41224
41719
  asChild: true,
41225
- position: "absolute",
41226
- bottom: "0",
41227
- left: "0",
41228
- right: "0",
41229
- className: "superinterface-video-controls",
41230
- p: "3",
41231
- style: {
41232
- zIndex: 10,
41233
- background: "var(--accent-4)"
41234
- },
41235
- children: /* @__PURE__ */ _jsx36(Controls.Root, {
41236
- children: /* @__PURE__ */ _jsx36(Flex8, {
41237
- asChild: true,
41238
- align: "center",
41239
- gap: "3",
41240
- flexGrow: "1",
41241
- children: /* @__PURE__ */ _jsxs12(Controls.Group, {
41242
- children: [
41243
- /* @__PURE__ */ _jsx36(PlayButton, {}),
41244
- /* @__PURE__ */ _jsx36(Time, {}),
41245
- /* @__PURE__ */ _jsx36(VolumeButton, {}),
41246
- /* @__PURE__ */ _jsx36(FullscreenButton, {})
41247
- ]
41248
- })
41249
- })
41720
+ align: "center",
41721
+ gap: "3",
41722
+ flexGrow: "1",
41723
+ children: /* @__PURE__ */ _jsxs12(Controls.Group, {
41724
+ children: [
41725
+ /* @__PURE__ */ _jsx36(PlayButton, {}),
41726
+ /* @__PURE__ */ _jsx36(Time, {}),
41727
+ /* @__PURE__ */ _jsx36(VolumeButton, {}),
41728
+ /* @__PURE__ */ _jsx36(FullscreenButton, {})
41729
+ ]
41250
41730
  })
41251
41731
  })
41252
- ]
41253
- })
41254
- });
41732
+ })
41733
+ });
41734
+ $[6] = t6;
41735
+ } else {
41736
+ t6 = $[6];
41737
+ }
41738
+ var t7;
41739
+ if ($[7] !== t2) {
41740
+ t7 = /* @__PURE__ */ _jsx36(MediaContainer, {
41741
+ children: /* @__PURE__ */ _jsxs12(MediaPlayer, {
41742
+ src: t2,
41743
+ playsInline: true,
41744
+ hideControlsOnMouseLeave: true,
41745
+ crossOrigin: true,
41746
+ children: [
41747
+ t3,
41748
+ t4,
41749
+ t6
41750
+ ]
41751
+ })
41752
+ });
41753
+ $[7] = t2;
41754
+ $[8] = t7;
41755
+ } else {
41756
+ t7 = $[8];
41757
+ }
41758
+ return t7;
41255
41759
  };
41256
41760
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Audio/index.tsx
41761
+ import { c as _c38 } from "react-compiler-runtime";
41257
41762
  import { Flex as Flex9 } from "@radix-ui/themes";
41258
41763
  import "@vidstack/react/player/styles/base.css";
41259
41764
  import { MediaPlayer as MediaPlayer2, MediaProvider as MediaProvider2, Controls as Controls2 } from "@vidstack/react";
41260
41765
  import { jsx as _jsx37, jsxs as _jsxs13 } from "react/jsx-runtime";
41261
- var Audio = function(_ref) {
41262
- var src = _ref.src;
41263
- return /* @__PURE__ */ _jsx37(MediaContainer, {
41264
- children: /* @__PURE__ */ _jsxs13(MediaPlayer2, {
41265
- src: {
41266
- src: src,
41267
- type: "audio/".concat(src.split(".").pop())
41268
- },
41269
- viewType: "audio",
41270
- crossOrigin: true,
41271
- playsInline: true,
41272
- children: [
41273
- /* @__PURE__ */ _jsx37(MediaProvider2, {}),
41274
- /* @__PURE__ */ _jsx37(Flex9, {
41766
+ var Audio = function(t0) {
41767
+ var $ = _c38(8);
41768
+ var src = t0.src;
41769
+ var t1 = "audio/".concat(src.split(".").pop());
41770
+ var t2;
41771
+ if ($[0] !== src || $[1] !== t1) {
41772
+ t2 = {
41773
+ src: src,
41774
+ type: t1
41775
+ };
41776
+ $[0] = src;
41777
+ $[1] = t1;
41778
+ $[2] = t2;
41779
+ } else {
41780
+ t2 = $[2];
41781
+ }
41782
+ var t3;
41783
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
41784
+ t3 = /* @__PURE__ */ _jsx37(MediaProvider2, {});
41785
+ $[3] = t3;
41786
+ } else {
41787
+ t3 = $[3];
41788
+ }
41789
+ var t4;
41790
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
41791
+ t4 = {
41792
+ zIndex: 10,
41793
+ background: "var(--accent-4)"
41794
+ };
41795
+ $[4] = t4;
41796
+ } else {
41797
+ t4 = $[4];
41798
+ }
41799
+ var t5;
41800
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
41801
+ t5 = /* @__PURE__ */ _jsx37(Flex9, {
41802
+ asChild: true,
41803
+ p: "3",
41804
+ flexGrow: "1",
41805
+ style: t4,
41806
+ children: /* @__PURE__ */ _jsx37(Controls2.Root, {
41807
+ children: /* @__PURE__ */ _jsx37(Flex9, {
41275
41808
  asChild: true,
41276
- p: "3",
41809
+ align: "center",
41810
+ gap: "3",
41277
41811
  flexGrow: "1",
41278
- style: {
41279
- zIndex: 10,
41280
- background: "var(--accent-4)"
41281
- },
41282
- children: /* @__PURE__ */ _jsx37(Controls2.Root, {
41283
- children: /* @__PURE__ */ _jsx37(Flex9, {
41284
- asChild: true,
41285
- align: "center",
41286
- gap: "3",
41287
- flexGrow: "1",
41288
- children: /* @__PURE__ */ _jsxs13(Controls2.Group, {
41289
- children: [
41290
- /* @__PURE__ */ _jsx37(PlayButton, {}),
41291
- /* @__PURE__ */ _jsx37(Time, {}),
41292
- /* @__PURE__ */ _jsx37(VolumeButton, {})
41293
- ]
41294
- })
41295
- })
41812
+ children: /* @__PURE__ */ _jsxs13(Controls2.Group, {
41813
+ children: [
41814
+ /* @__PURE__ */ _jsx37(PlayButton, {}),
41815
+ /* @__PURE__ */ _jsx37(Time, {}),
41816
+ /* @__PURE__ */ _jsx37(VolumeButton, {})
41817
+ ]
41296
41818
  })
41297
41819
  })
41298
- ]
41299
- })
41300
- });
41820
+ })
41821
+ });
41822
+ $[5] = t5;
41823
+ } else {
41824
+ t5 = $[5];
41825
+ }
41826
+ var t6;
41827
+ if ($[6] !== t2) {
41828
+ t6 = /* @__PURE__ */ _jsx37(MediaContainer, {
41829
+ children: /* @__PURE__ */ _jsxs13(MediaPlayer2, {
41830
+ src: t2,
41831
+ viewType: "audio",
41832
+ crossOrigin: true,
41833
+ playsInline: true,
41834
+ children: [
41835
+ t3,
41836
+ t5
41837
+ ]
41838
+ })
41839
+ });
41840
+ $[6] = t2;
41841
+ $[7] = t6;
41842
+ } else {
41843
+ t6 = $[7];
41844
+ }
41845
+ return t6;
41301
41846
  };
41302
41847
  // src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
41303
41848
  import { jsx as _jsx38 } from "react/jsx-runtime";
@@ -41345,7 +41890,7 @@ function _toPrimitive21(t, r) {
41345
41890
  return ("string" === r ? String : Number)(t);
41346
41891
  }
41347
41892
  var Img = function(props) {
41348
- var $ = _c20(8);
41893
+ var $ = _c39(8);
41349
41894
  if (!props.src) {
41350
41895
  var t0;
41351
41896
  if ($[0] !== props) {
@@ -41401,13 +41946,13 @@ var Img = function(props) {
41401
41946
  }
41402
41947
  };
41403
41948
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
41404
- import { c as _c22 } from "react-compiler-runtime";
41949
+ import { c as _c42 } from "react-compiler-runtime";
41405
41950
  import { QuoteIcon } from "@radix-ui/react-icons";
41406
41951
  // src/components/annotations/FilePathAnnotation.tsx
41407
- import { c as _c21 } from "react-compiler-runtime";
41952
+ import { c as _c40 } from "react-compiler-runtime";
41408
41953
  import { jsx as _jsx39 } from "react/jsx-runtime";
41409
41954
  var FilePathAnnotation = function(t0) {
41410
- var $ = _c21(3);
41955
+ var $ = _c40(3);
41411
41956
  var annotation = t0.annotation, children = t0.children;
41412
41957
  var superinterfaceContext = useSuperinterfaceContext();
41413
41958
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -41429,33 +41974,60 @@ var FilePathAnnotation = function(t0) {
41429
41974
  return t2;
41430
41975
  };
41431
41976
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/AnnotationBase.tsx
41977
+ import { c as _c41 } from "react-compiler-runtime";
41432
41978
  import { IconButton as IconButton4, Popover as Popover4, Flex as Flex10, Text as Text5 } from "@radix-ui/themes";
41433
41979
  import { jsx as _jsx40, jsxs as _jsxs14 } from "react/jsx-runtime";
41434
- var AnnotationBase = function(_ref) {
41435
- var icon = _ref.icon, content2 = _ref.content;
41436
- return /* @__PURE__ */ _jsxs14(Popover4.Root, {
41437
- children: [
41438
- /* @__PURE__ */ _jsx40(Popover4.Trigger, {
41439
- children: /* @__PURE__ */ _jsx40(IconButton4, {
41440
- variant: "soft",
41441
- color: "gray",
41442
- size: "1",
41443
- children: icon
41444
- })
41445
- }),
41446
- /* @__PURE__ */ _jsx40(Popover4.Content, {
41980
+ var AnnotationBase = function(t0) {
41981
+ var $ = _c41(7);
41982
+ var icon = t0.icon, content2 = t0.content;
41983
+ var t1;
41984
+ if ($[0] !== icon) {
41985
+ t1 = /* @__PURE__ */ _jsx40(Popover4.Trigger, {
41986
+ children: /* @__PURE__ */ _jsx40(IconButton4, {
41987
+ variant: "soft",
41988
+ color: "gray",
41447
41989
  size: "1",
41448
- children: /* @__PURE__ */ _jsx40(Flex10, {
41449
- direction: "column",
41450
- children: /* @__PURE__ */ _jsx40(Text5, {
41451
- size: "1",
41452
- color: "gray",
41453
- children: content2
41454
- })
41990
+ children: icon
41991
+ })
41992
+ });
41993
+ $[0] = icon;
41994
+ $[1] = t1;
41995
+ } else {
41996
+ t1 = $[1];
41997
+ }
41998
+ var t2;
41999
+ if ($[2] !== content2) {
42000
+ t2 = /* @__PURE__ */ _jsx40(Popover4.Content, {
42001
+ size: "1",
42002
+ children: /* @__PURE__ */ _jsx40(Flex10, {
42003
+ direction: "column",
42004
+ children: /* @__PURE__ */ _jsx40(Text5, {
42005
+ size: "1",
42006
+ color: "gray",
42007
+ children: content2
41455
42008
  })
41456
42009
  })
41457
- ]
41458
- });
42010
+ });
42011
+ $[2] = content2;
42012
+ $[3] = t2;
42013
+ } else {
42014
+ t2 = $[3];
42015
+ }
42016
+ var t3;
42017
+ if ($[4] !== t1 || $[5] !== t2) {
42018
+ t3 = /* @__PURE__ */ _jsxs14(Popover4.Root, {
42019
+ children: [
42020
+ t1,
42021
+ t2
42022
+ ]
42023
+ });
42024
+ $[4] = t1;
42025
+ $[5] = t2;
42026
+ $[6] = t3;
42027
+ } else {
42028
+ t3 = $[6];
42029
+ }
42030
+ return t3;
41459
42031
  };
41460
42032
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
41461
42033
  import { jsx as _jsx41 } from "react/jsx-runtime";
@@ -41481,7 +42053,7 @@ function _objectWithoutPropertiesLoose(r, e) {
41481
42053
  return t;
41482
42054
  }
41483
42055
  var Annotation = function(t0) {
41484
- var $ = _c22(9);
42056
+ var $ = _c42(9);
41485
42057
  var children;
41486
42058
  var rest;
41487
42059
  if ($[0] !== t0) {
@@ -42197,7 +42769,7 @@ var evaluate = /* @__PURE__ */ function() {
42197
42769
  };
42198
42770
  }();
42199
42771
  var TextContent = function(t0) {
42200
- var $ = _c23(13);
42772
+ var $ = _c43(13);
42201
42773
  var content2 = t0.content;
42202
42774
  var _useMarkdownContext = useMarkdownContext(), getRemarkPlugins2 = _useMarkdownContext.getRemarkPlugins, components2 = _useMarkdownContext.components;
42203
42775
  var t1;
@@ -42334,10 +42906,10 @@ var TextContent = function(t0) {
42334
42906
  return t7;
42335
42907
  };
42336
42908
  // src/components/messages/MessageContent/ContentPart/ImageFileContent.tsx
42337
- import { c as _c24 } from "react-compiler-runtime";
42909
+ import { c as _c44 } from "react-compiler-runtime";
42338
42910
  import { jsx as _jsx44 } from "react/jsx-runtime";
42339
42911
  var ImageFileContent = function(t0) {
42340
- var $ = _c24(2);
42912
+ var $ = _c44(2);
42341
42913
  var content2 = t0.content;
42342
42914
  var superinterfaceContext = useSuperinterfaceContext();
42343
42915
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -42358,7 +42930,7 @@ var ImageFileContent = function(t0) {
42358
42930
  // src/components/messages/MessageContent/ContentPart/index.tsx
42359
42931
  import { jsx as _jsx45 } from "react/jsx-runtime";
42360
42932
  var ContentPart = function(t0) {
42361
- var $ = _c25(4);
42933
+ var $ = _c45(4);
42362
42934
  var content2 = t0.content;
42363
42935
  if (content2.type === "text") {
42364
42936
  var t1;
@@ -42389,21 +42961,39 @@ var ContentPart = function(t0) {
42389
42961
  return null;
42390
42962
  };
42391
42963
  // src/components/messages/MessageContent/index.tsx
42392
- import { jsx as _jsx46, Fragment as _Fragment2 } from "react/jsx-runtime";
42393
- var MessageContent = function(_ref) {
42394
- var message = _ref.message;
42395
- return /* @__PURE__ */ _jsx46(_Fragment2, {
42396
- children: message.content.map(function(content2, index) {
42397
- return /* @__PURE__ */ _jsx46(ContentPart, {
42398
- content: content2
42399
- }, index);
42400
- })
42401
- });
42964
+ import { Fragment as _Fragment2, jsx as _jsx46 } from "react/jsx-runtime";
42965
+ var MessageContent = function(t0) {
42966
+ var $ = _c46(4);
42967
+ var message = t0.message;
42968
+ var t1;
42969
+ if ($[0] !== message.content) {
42970
+ t1 = message.content.map(_temp);
42971
+ $[0] = message.content;
42972
+ $[1] = t1;
42973
+ } else {
42974
+ t1 = $[1];
42975
+ }
42976
+ var t2;
42977
+ if ($[2] !== t1) {
42978
+ t2 = /* @__PURE__ */ _jsx46(_Fragment2, {
42979
+ children: t1
42980
+ });
42981
+ $[2] = t1;
42982
+ $[3] = t2;
42983
+ } else {
42984
+ t2 = $[3];
42985
+ }
42986
+ return t2;
42402
42987
  };
42988
+ function _temp(content2, index) {
42989
+ return /* @__PURE__ */ _jsx46(ContentPart, {
42990
+ content: content2
42991
+ }, index);
42992
+ }
42403
42993
  // src/components/threads/Thread/Message/index.tsx
42404
42994
  import { jsx as _jsx47, jsxs as _jsxs16 } from "react/jsx-runtime";
42405
42995
  var Message = function(t0) {
42406
- var $ = _c26(37);
42996
+ var $ = _c47(37);
42407
42997
  var message = t0.message, className = t0.className, style = t0.style;
42408
42998
  var t1;
42409
42999
  bb0: {
@@ -42437,7 +43027,7 @@ var Message = function(t0) {
42437
43027
  var messageCreationRunStepIndex = message.runSteps.findIndex(_t2);
42438
43028
  var _t3;
42439
43029
  if ($[3] !== message.runSteps || $[4] !== messageCreationRunStepIndex) {
42440
- var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp);
43030
+ var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp2);
42441
43031
  if (nextRunStepIndex === -1) {
42442
43032
  nextRunStepIndex = 0;
42443
43033
  }
@@ -42451,7 +43041,7 @@ var Message = function(t0) {
42451
43041
  var laterRunSteps = _t3;
42452
43042
  var _t4;
42453
43043
  if ($[6] !== message.runSteps || $[7] !== messageCreationRunStepIndex) {
42454
- _t4 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp2);
43044
+ _t4 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp22);
42455
43045
  $[6] = message.runSteps;
42456
43046
  $[7] = messageCreationRunStepIndex;
42457
43047
  $[8] = _t4;
@@ -42590,17 +43180,17 @@ var Message = function(t0) {
42590
43180
  }
42591
43181
  return t8;
42592
43182
  };
42593
- function _temp(runStep_0) {
43183
+ function _temp2(runStep_0) {
42594
43184
  return runStep_0.step_details.type === "message_creation";
42595
43185
  }
42596
- function _temp2(runStep_1) {
43186
+ function _temp22(runStep_1) {
42597
43187
  return runStep_1.step_details.type === "message_creation";
42598
43188
  }
42599
43189
  // src/components/threads/Thread/Messages/Content/index.tsx
42600
- import { c as _c33 } from "react-compiler-runtime";
43190
+ import { c as _c56 } from "react-compiler-runtime";
42601
43191
  import { useEffect as useEffect3 } from "react";
42602
43192
  // src/hooks/messageGroups/useMessageGroups/index.ts
42603
- import { c as _c27 } from "react-compiler-runtime";
43193
+ import { c as _c48 } from "react-compiler-runtime";
42604
43194
  import { useMemo as useMemo11 } from "react";
42605
43195
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
42606
43196
  import _6 from "lodash";
@@ -42705,7 +43295,7 @@ var messageGroups = function(_ref) {
42705
43295
  };
42706
43296
  // src/hooks/messageGroups/useMessageGroups/index.ts
42707
43297
  var useMessageGroups = function(t0) {
42708
- var $ = _c27(4);
43298
+ var $ = _c48(4);
42709
43299
  var messages2 = t0.messages;
42710
43300
  var t1;
42711
43301
  var t2;
@@ -42732,16 +43322,16 @@ var useMessageGroups = function(t0) {
42732
43322
  return t1;
42733
43323
  };
42734
43324
  // src/components/skeletons/MessagesSkeleton/index.tsx
42735
- import { c as _c29 } from "react-compiler-runtime";
43325
+ import { c as _c51 } from "react-compiler-runtime";
42736
43326
  import { forwardRef as forwardRef3 } from "react";
42737
43327
  import { Flex as Flex13, Avatar, Box as Box10, Skeleton } from "@radix-ui/themes";
42738
43328
  // src/components/messageGroups/MessageGroupBase/index.tsx
42739
- import { c as _c28 } from "react-compiler-runtime";
43329
+ import { c as _c49 } from "react-compiler-runtime";
42740
43330
  import { forwardRef as forwardRef2 } from "react";
42741
43331
  import { Flex as Flex11, Container } from "@radix-ui/themes";
42742
43332
  import { jsx as _jsx48 } from "react/jsx-runtime";
42743
43333
  var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0, ref) {
42744
- var $ = _c28(5);
43334
+ var $ = _c49(5);
42745
43335
  var children = t0.children;
42746
43336
  var t1;
42747
43337
  if ($[0] !== children) {
@@ -42772,24 +43362,34 @@ var MessageGroupBase = /* @__PURE__ */ forwardRef2(function MessageGroupBase2(t0
42772
43362
  return t2;
42773
43363
  });
42774
43364
  // src/components/messageGroups/MessageGroupBase/Name.tsx
43365
+ import { c as _c50 } from "react-compiler-runtime";
42775
43366
  import { Flex as Flex12, Text as Text6 } from "@radix-ui/themes";
42776
43367
  import { jsx as _jsx49 } from "react/jsx-runtime";
42777
- var Name = function(_ref) {
42778
- var children = _ref.children;
42779
- return /* @__PURE__ */ _jsx49(Flex12, {
42780
- align: "center",
42781
- height: "var(--space-5)",
42782
- children: /* @__PURE__ */ _jsx49(Text6, {
42783
- size: "2",
42784
- weight: "bold",
42785
- children: children
42786
- })
42787
- });
43368
+ var Name = function(t0) {
43369
+ var $ = _c50(2);
43370
+ var children = t0.children;
43371
+ var t1;
43372
+ if ($[0] !== children) {
43373
+ t1 = /* @__PURE__ */ _jsx49(Flex12, {
43374
+ align: "center",
43375
+ height: "var(--space-5)",
43376
+ children: /* @__PURE__ */ _jsx49(Text6, {
43377
+ size: "2",
43378
+ weight: "bold",
43379
+ children: children
43380
+ })
43381
+ });
43382
+ $[0] = children;
43383
+ $[1] = t1;
43384
+ } else {
43385
+ t1 = $[1];
43386
+ }
43387
+ return t1;
42788
43388
  };
42789
43389
  // src/components/skeletons/MessagesSkeleton/index.tsx
42790
43390
  import { jsx as _jsx50, jsxs as _jsxs17 } from "react/jsx-runtime";
42791
43391
  var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_props, ref) {
42792
- var $ = _c29(7);
43392
+ var $ = _c51(7);
42793
43393
  var t0;
42794
43394
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42795
43395
  t0 = /* @__PURE__ */ _jsx50(Skeleton, {
@@ -42880,11 +43480,11 @@ var MessagesSkeleton = /* @__PURE__ */ forwardRef3(function MessagesSkeleton2(_p
42880
43480
  return t5;
42881
43481
  });
42882
43482
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
42883
- import { c as _c32 } from "react-compiler-runtime";
43483
+ import { c as _c55 } from "react-compiler-runtime";
42884
43484
  import { useContext as useContext10 } from "react";
42885
43485
  import { Box as Box11 } from "@radix-ui/themes";
42886
43486
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
42887
- import { c as _c30 } from "react-compiler-runtime";
43487
+ import { c as _c52 } from "react-compiler-runtime";
42888
43488
  import { useContext as useContext8 } from "react";
42889
43489
  import { Flex as Flex14 } from "@radix-ui/themes";
42890
43490
  // src/contexts/assistants/AssistantAvatarContext/index.tsx
@@ -42899,7 +43499,7 @@ var AssistantAvatarContext = /* @__PURE__ */ createContext8(/* @__PURE__ */ _jsx
42899
43499
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
42900
43500
  import { jsx as _jsx52 } from "react/jsx-runtime";
42901
43501
  var AssistantAvatar = function() {
42902
- var $ = _c30(3);
43502
+ var $ = _c52(3);
42903
43503
  var AssistantAvatarContextValue = useContext8(AssistantAvatarContext);
42904
43504
  var t0;
42905
43505
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -42931,7 +43531,7 @@ var AssistantAvatar = function() {
42931
43531
  import { createContext as createContext9 } from "react";
42932
43532
  var AssistantNameContext = /* @__PURE__ */ createContext9("Assistant");
42933
43533
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
42934
- import { c as _c31 } from "react-compiler-runtime";
43534
+ import { c as _c53 } from "react-compiler-runtime";
42935
43535
  import { useContext as useContext9 } from "react";
42936
43536
  import { Flex as Flex15 } from "@radix-ui/themes";
42937
43537
  // src/contexts/users/UserAvatarContext/index.tsx
@@ -42946,7 +43546,7 @@ var UserAvatarContext = /* @__PURE__ */ createContext10(/* @__PURE__ */ _jsx53(A
42946
43546
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
42947
43547
  import { jsx as _jsx54 } from "react/jsx-runtime";
42948
43548
  var UserAvatar = function() {
42949
- var $ = _c31(3);
43549
+ var $ = _c53(3);
42950
43550
  var UserAvatarContextValue = useContext9(UserAvatarContext);
42951
43551
  var t0;
42952
43552
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -42975,23 +43575,42 @@ var UserAvatar = function() {
42975
43575
  return t1;
42976
43576
  };
42977
43577
  // src/components/threads/Thread/Messages/Content/MessageGroup/Content/index.tsx
43578
+ import { c as _c54 } from "react-compiler-runtime";
42978
43579
  import { Flex as Flex16 } from "@radix-ui/themes";
42979
43580
  import { jsx as _jsx55 } from "react/jsx-runtime";
42980
- var Content5 = function(_ref) {
42981
- var messageGroup = _ref.messageGroup;
42982
- return /* @__PURE__ */ _jsx55(Flex16, {
42983
- direction: "column-reverse",
42984
- children: messageGroup.messages.map(function(message) {
42985
- return /* @__PURE__ */ _jsx55(Message, {
42986
- message: message
42987
- }, message.id);
42988
- })
42989
- });
43581
+ var Content5 = function(t0) {
43582
+ var $ = _c54(4);
43583
+ var messageGroup = t0.messageGroup;
43584
+ var t1;
43585
+ if ($[0] !== messageGroup.messages) {
43586
+ t1 = messageGroup.messages.map(_temp3);
43587
+ $[0] = messageGroup.messages;
43588
+ $[1] = t1;
43589
+ } else {
43590
+ t1 = $[1];
43591
+ }
43592
+ var t2;
43593
+ if ($[2] !== t1) {
43594
+ t2 = /* @__PURE__ */ _jsx55(Flex16, {
43595
+ direction: "column-reverse",
43596
+ children: t1
43597
+ });
43598
+ $[2] = t1;
43599
+ $[3] = t2;
43600
+ } else {
43601
+ t2 = $[3];
43602
+ }
43603
+ return t2;
42990
43604
  };
43605
+ function _temp3(message) {
43606
+ return /* @__PURE__ */ _jsx55(Message, {
43607
+ message: message
43608
+ }, message.id);
43609
+ }
42991
43610
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
42992
43611
  import { jsx as _jsx56, jsxs as _jsxs18 } from "react/jsx-runtime";
42993
43612
  var MessageGroup = function(t0) {
42994
- var $ = _c32(12);
43613
+ var $ = _c55(12);
42995
43614
  var messageGroup = t0.messageGroup;
42996
43615
  var assistantNameContext = useContext10(AssistantNameContext);
42997
43616
  var t1;
@@ -43057,7 +43676,7 @@ var MessageGroup = function(t0) {
43057
43676
  // src/components/threads/Thread/Messages/Content/index.tsx
43058
43677
  import { jsx as _jsx57, Fragment as _Fragment3 } from "react/jsx-runtime";
43059
43678
  var Content6 = function() {
43060
- var $ = _c33(11);
43679
+ var $ = _c56(11);
43061
43680
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
43062
43681
  var addToast = useToasts().addToast;
43063
43682
  var t0;
@@ -43107,7 +43726,7 @@ var Content6 = function() {
43107
43726
  }
43108
43727
  var t3;
43109
43728
  if ($[7] !== messageGroups2) {
43110
- t3 = messageGroups2.map(_temp3);
43729
+ t3 = messageGroups2.map(_temp4);
43111
43730
  $[7] = messageGroups2;
43112
43731
  $[8] = t3;
43113
43732
  } else {
@@ -43125,38 +43744,47 @@ var Content6 = function() {
43125
43744
  }
43126
43745
  return t4;
43127
43746
  };
43128
- function _temp3(messageGroup) {
43747
+ function _temp4(messageGroup) {
43129
43748
  return /* @__PURE__ */ _jsx57(MessageGroup, {
43130
43749
  messageGroup: messageGroup
43131
43750
  }, messageGroup.id);
43132
43751
  }
43133
43752
  // src/components/threads/Thread/Messages/Progress/index.tsx
43134
- import { c as _c35 } from "react-compiler-runtime";
43753
+ import { c as _c59 } from "react-compiler-runtime";
43135
43754
  import { useMemo as useMemo12 } from "react";
43136
43755
  import { Flex as Flex17, Box as Box13 } from "@radix-ui/themes";
43137
43756
  // src/components/skeletons/StartingSkeleton/index.tsx
43138
- import { c as _c34 } from "react-compiler-runtime";
43757
+ import { c as _c58 } from "react-compiler-runtime";
43139
43758
  import { useContext as useContext11 } from "react";
43140
43759
  import { Box as Box12 } from "@radix-ui/themes";
43141
43760
  // src/components/skeletons/StartingContentSkeleton/index.tsx
43761
+ import { c as _c57 } from "react-compiler-runtime";
43142
43762
  import { Skeleton as Skeleton2 } from "@radix-ui/themes";
43143
43763
  import { jsx as _jsx58 } from "react/jsx-runtime";
43144
43764
  var StartingContentSkeleton = function() {
43145
- return /* @__PURE__ */ _jsx58(Skeleton2, {
43146
- loading: true,
43147
- mt: "1",
43148
- height: "var(--space-4)",
43149
- width: "var(--space-4)",
43150
- style: {
43151
- borderRadius: "var(--radius-6)",
43152
- flexShrink: 0
43153
- }
43154
- });
43765
+ var $ = _c57(1);
43766
+ var t0;
43767
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43768
+ t0 = /* @__PURE__ */ _jsx58(Skeleton2, {
43769
+ loading: true,
43770
+ mt: "1",
43771
+ height: "var(--space-4)",
43772
+ width: "var(--space-4)",
43773
+ style: {
43774
+ borderRadius: "var(--radius-6)",
43775
+ flexShrink: 0
43776
+ }
43777
+ });
43778
+ $[0] = t0;
43779
+ } else {
43780
+ t0 = $[0];
43781
+ }
43782
+ return t0;
43155
43783
  };
43156
43784
  // src/components/skeletons/StartingSkeleton/index.tsx
43157
43785
  import { jsx as _jsx59, jsxs as _jsxs19 } from "react/jsx-runtime";
43158
43786
  var StartingSkeleton = function(t0) {
43159
- var $ = _c34(7);
43787
+ var $ = _c58(7);
43160
43788
  var children = t0.children;
43161
43789
  var assistantNameContext = useContext11(AssistantNameContext);
43162
43790
  var t1;
@@ -43208,7 +43836,7 @@ var StartingSkeleton = function(t0) {
43208
43836
  // src/components/threads/Thread/Messages/Progress/index.tsx
43209
43837
  import { jsx as _jsx60, jsxs as _jsxs20 } from "react/jsx-runtime";
43210
43838
  var Progress = function() {
43211
- var $ = _c35(3);
43839
+ var $ = _c59(3);
43212
43840
  var latestMessage = useLatestMessage().latestMessage;
43213
43841
  var isMutatingMessage = useIsMutatingMessage();
43214
43842
  var t0;
@@ -43279,7 +43907,7 @@ var Progress = function() {
43279
43907
  return null;
43280
43908
  };
43281
43909
  // src/components/threads/Thread/Messages/Root/index.tsx
43282
- import { c as _c36 } from "react-compiler-runtime";
43910
+ import { c as _c60 } from "react-compiler-runtime";
43283
43911
  import { Flex as Flex18 } from "@radix-ui/themes";
43284
43912
  // src/hooks/misc/useInfiniteScroll/index.tsx
43285
43913
  import { useRef as useRef3 } from "react";
@@ -43377,7 +44005,7 @@ function _toPrimitive26(t, r) {
43377
44005
  return ("string" === r ? String : Number)(t);
43378
44006
  }
43379
44007
  var Root2 = function(t0) {
43380
- var $ = _c36(18);
44008
+ var $ = _c60(18);
43381
44009
  var children = t0.children, style = t0.style, className = t0.className;
43382
44010
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
43383
44011
  var t1;
@@ -43460,10 +44088,10 @@ var Root2 = function(t0) {
43460
44088
  return t6;
43461
44089
  };
43462
44090
  // src/components/threads/Thread/Messages/NextPageSkeleton.tsx
43463
- import { c as _c37 } from "react-compiler-runtime";
44091
+ import { c as _c61 } from "react-compiler-runtime";
43464
44092
  import { jsx as _jsx62 } from "react/jsx-runtime";
43465
44093
  var NextPageSkeleton = function() {
43466
- var $ = _c37(1);
44094
+ var $ = _c61(1);
43467
44095
  var hasNextPage = useMessages().hasNextPage;
43468
44096
  if (!hasNextPage) {
43469
44097
  return null;
@@ -43479,33 +44107,72 @@ var NextPageSkeleton = function() {
43479
44107
  };
43480
44108
  // src/components/threads/Thread/Messages/index.tsx
43481
44109
  import { jsx as _jsx63, jsxs as _jsxs22 } from "react/jsx-runtime";
43482
- var Messages = function(_ref) {
43483
- var children = _ref.children, className = _ref.className, style = _ref.style;
43484
- return /* @__PURE__ */ _jsxs22(Root2, {
43485
- style: style,
43486
- className: className,
43487
- children: [
43488
- /* @__PURE__ */ _jsx63(Flex19, {
43489
- flexShrink: "0",
43490
- height: "var(--space-3)"
43491
- }),
43492
- /* @__PURE__ */ _jsx63(Progress, {}),
43493
- children,
43494
- /* @__PURE__ */ _jsx63(Content6, {}),
43495
- /* @__PURE__ */ _jsx63(NextPageSkeleton, {}),
43496
- /* @__PURE__ */ _jsx63(Flex19, {
43497
- flexShrink: "0",
43498
- flexGrow: "1",
43499
- minHeight: "var(--space-5)"
43500
- })
43501
- ]
43502
- });
44110
+ var Messages = function(t0) {
44111
+ var $ = _c62(9);
44112
+ var children = t0.children, className = t0.className, style = t0.style;
44113
+ var t1;
44114
+ var t2;
44115
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44116
+ t1 = /* @__PURE__ */ _jsx63(Flex19, {
44117
+ flexShrink: "0",
44118
+ height: "var(--space-3)"
44119
+ });
44120
+ t2 = /* @__PURE__ */ _jsx63(Progress, {});
44121
+ $[0] = t1;
44122
+ $[1] = t2;
44123
+ } else {
44124
+ t1 = $[0];
44125
+ t2 = $[1];
44126
+ }
44127
+ var t3;
44128
+ var t4;
44129
+ var t5;
44130
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44131
+ t3 = /* @__PURE__ */ _jsx63(Content6, {});
44132
+ t4 = /* @__PURE__ */ _jsx63(NextPageSkeleton, {});
44133
+ t5 = /* @__PURE__ */ _jsx63(Flex19, {
44134
+ flexShrink: "0",
44135
+ flexGrow: "1",
44136
+ minHeight: "var(--space-5)"
44137
+ });
44138
+ $[2] = t3;
44139
+ $[3] = t4;
44140
+ $[4] = t5;
44141
+ } else {
44142
+ t3 = $[2];
44143
+ t4 = $[3];
44144
+ t5 = $[4];
44145
+ }
44146
+ var t6;
44147
+ if ($[5] !== children || $[6] !== className || $[7] !== style) {
44148
+ t6 = /* @__PURE__ */ _jsxs22(Root2, {
44149
+ style: style,
44150
+ className: className,
44151
+ children: [
44152
+ t1,
44153
+ t2,
44154
+ children,
44155
+ t3,
44156
+ t4,
44157
+ t5
44158
+ ]
44159
+ });
44160
+ $[5] = children;
44161
+ $[6] = className;
44162
+ $[7] = style;
44163
+ $[8] = t6;
44164
+ } else {
44165
+ t6 = $[8];
44166
+ }
44167
+ return t6;
43503
44168
  };
43504
44169
  Messages.Root = Root2;
43505
44170
  Messages.Message = Message;
43506
44171
  Messages.NextPageSkeleton = NextPageSkeleton;
44172
+ // src/components/threads/Thread/MessageForm/index.tsx
44173
+ import { c as _c68 } from "react-compiler-runtime";
43507
44174
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
43508
- import { c as _c38 } from "react-compiler-runtime";
44175
+ import { c as _c63 } from "react-compiler-runtime";
43509
44176
  import { ArrowUpIcon as ArrowUpIcon2, StopIcon } from "@radix-ui/react-icons";
43510
44177
  import { IconButton as IconButton5, Flex as Flex20 } from "@radix-ui/themes";
43511
44178
  // src/hooks/messages/useMessageFormContext/index.ts
@@ -43569,18 +44236,29 @@ function _toPrimitive27(t, r) {
43569
44236
  }
43570
44237
  return ("string" === r ? String : Number)(t);
43571
44238
  }
43572
- var Root3 = function(_ref) {
43573
- var children = _ref.children, style = _ref.style, className = _ref.className;
43574
- return /* @__PURE__ */ _jsx64(Flex20, {
43575
- flexShrink: "0",
43576
- align: "end",
43577
- style: style,
43578
- className: className,
43579
- children: children
43580
- });
44239
+ var Root3 = function(t0) {
44240
+ var $ = _c63(4);
44241
+ var children = t0.children, style = t0.style, className = t0.className;
44242
+ var t1;
44243
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
44244
+ t1 = /* @__PURE__ */ _jsx64(Flex20, {
44245
+ flexShrink: "0",
44246
+ align: "end",
44247
+ style: style,
44248
+ className: className,
44249
+ children: children
44250
+ });
44251
+ $[0] = children;
44252
+ $[1] = className;
44253
+ $[2] = style;
44254
+ $[3] = t1;
44255
+ } else {
44256
+ t1 = $[3];
44257
+ }
44258
+ return t1;
43581
44259
  };
43582
44260
  var Button3 = function(props) {
43583
- var $ = _c38(10);
44261
+ var $ = _c63(10);
43584
44262
  var superinterfaceContext = useSuperinterfaceContext();
43585
44263
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
43586
44264
  if (isLoading) {
@@ -43643,9 +44321,25 @@ var Button3 = function(props) {
43643
44321
  return t2;
43644
44322
  };
43645
44323
  var Submit = function(props) {
43646
- return /* @__PURE__ */ _jsx64(Root3, _objectSpread27(_objectSpread27({}, props), {}, {
43647
- children: /* @__PURE__ */ _jsx64(Button3, {})
43648
- }));
44324
+ var $ = _c63(3);
44325
+ var t0;
44326
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44327
+ t0 = /* @__PURE__ */ _jsx64(Button3, {});
44328
+ $[0] = t0;
44329
+ } else {
44330
+ t0 = $[0];
44331
+ }
44332
+ var t1;
44333
+ if ($[1] !== props) {
44334
+ t1 = /* @__PURE__ */ _jsx64(Root3, _objectSpread27(_objectSpread27({}, props), {}, {
44335
+ children: t0
44336
+ }));
44337
+ $[1] = props;
44338
+ $[2] = t1;
44339
+ } else {
44340
+ t1 = $[2];
44341
+ }
44342
+ return t1;
43649
44343
  };
43650
44344
  Submit.Root = Root3;
43651
44345
  Submit.Button = Button3;
@@ -43852,6 +44546,7 @@ var Root4 = function(_ref) {
43852
44546
  import { useFormContext as useFormContext2 } from "react-hook-form";
43853
44547
  import { Container as RadixContainer, Flex as Flex24 } from "@radix-ui/themes";
43854
44548
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44549
+ import { c as _c65 } from "react-compiler-runtime";
43855
44550
  import { Flex as Flex21 } from "@radix-ui/themes";
43856
44551
  import { useFormContext } from "react-hook-form";
43857
44552
  // src/hooks/misc/usePrevious.ts
@@ -43866,7 +44561,7 @@ var usePrevious = function(state) {
43866
44561
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
43867
44562
  import { useContext as useContext13, useMemo as useMemo14, useRef as useRef5, useEffect as useEffect6 } from "react";
43868
44563
  // src/components/textareas/TextareaBase/index.tsx
43869
- import { c as _c39 } from "react-compiler-runtime";
44564
+ import { c as _c64 } from "react-compiler-runtime";
43870
44565
  import { forwardRef as forwardRef4 } from "react";
43871
44566
  import TextareaAutosize from "react-textarea-autosize";
43872
44567
  import { jsx as _jsx66, Fragment as _Fragment4, jsxs as _jsxs23 } from "react/jsx-runtime";
@@ -43936,7 +44631,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
43936
44631
  return t;
43937
44632
  }
43938
44633
  var TextareaBase = /* @__PURE__ */ forwardRef4(function TextareaBase2(t0, ref) {
43939
- var $ = _c39(14);
44634
+ var $ = _c64(14);
43940
44635
  var className;
43941
44636
  var rest;
43942
44637
  var style;
@@ -44056,15 +44751,26 @@ function _toPrimitive30(t, r) {
44056
44751
  }
44057
44752
  return ("string" === r ? String : Number)(t);
44058
44753
  }
44059
- var Root5 = function(_ref) {
44060
- var children = _ref.children, style = _ref.style, className = _ref.className;
44061
- return /* @__PURE__ */ _jsx67(Flex21, {
44062
- flexGrow: "1",
44063
- pt: "4px",
44064
- style: style,
44065
- className: className,
44066
- children: children
44067
- });
44754
+ var Root5 = function(t0) {
44755
+ var $ = _c65(4);
44756
+ var children = t0.children, style = t0.style, className = t0.className;
44757
+ var t1;
44758
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
44759
+ t1 = /* @__PURE__ */ _jsx67(Flex21, {
44760
+ flexGrow: "1",
44761
+ pt: "4px",
44762
+ style: style,
44763
+ className: className,
44764
+ children: children
44765
+ });
44766
+ $[0] = children;
44767
+ $[1] = className;
44768
+ $[2] = style;
44769
+ $[3] = t1;
44770
+ } else {
44771
+ t1 = $[3];
44772
+ }
44773
+ return t1;
44068
44774
  };
44069
44775
  var Input = function(props) {
44070
44776
  "use no memo";
@@ -44111,14 +44817,30 @@ var Input = function(props) {
44111
44817
  }));
44112
44818
  };
44113
44819
  var Control = function(props) {
44114
- return /* @__PURE__ */ _jsx67(Root5, _objectSpread30(_objectSpread30({}, props), {}, {
44115
- children: /* @__PURE__ */ _jsx67(Input, {})
44116
- }));
44820
+ var $ = _c65(3);
44821
+ var t0;
44822
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44823
+ t0 = /* @__PURE__ */ _jsx67(Input, {});
44824
+ $[0] = t0;
44825
+ } else {
44826
+ t0 = $[0];
44827
+ }
44828
+ var t1;
44829
+ if ($[1] !== props) {
44830
+ t1 = /* @__PURE__ */ _jsx67(Root5, _objectSpread30(_objectSpread30({}, props), {}, {
44831
+ children: t0
44832
+ }));
44833
+ $[1] = props;
44834
+ $[2] = t1;
44835
+ } else {
44836
+ t1 = $[2];
44837
+ }
44838
+ return t1;
44117
44839
  };
44118
44840
  Control.Root = Root5;
44119
44841
  Control.Input = Input;
44120
44842
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
44121
- import { c as _c40 } from "react-compiler-runtime";
44843
+ import { c as _c66 } from "react-compiler-runtime";
44122
44844
  import { Flex as Flex22, Card as Card2, Spinner as Spinner2, Text as Text7, IconButton as IconButton6 } from "@radix-ui/themes";
44123
44845
  import { FileIcon as FileIcon2, Cross2Icon } from "@radix-ui/react-icons";
44124
44846
  import { jsx as _jsx68, jsxs as _jsxs24 } from "react/jsx-runtime";
@@ -44166,7 +44888,7 @@ function _toPrimitive31(t, r) {
44166
44888
  return ("string" === r ? String : Number)(t);
44167
44889
  }
44168
44890
  var Preview = function(props) {
44169
- var $ = _c40(8);
44891
+ var $ = _c66(8);
44170
44892
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
44171
44893
  if (!files.length) {
44172
44894
  return null;
@@ -44264,7 +44986,7 @@ import dayjs2 from "dayjs";
44264
44986
  import { FilePlusIcon } from "@radix-ui/react-icons";
44265
44987
  import { IconButton as IconButton7, Flex as Flex23 } from "@radix-ui/themes";
44266
44988
  // src/hooks/files/useCreateFile/index.ts
44267
- import { c as _c41 } from "react-compiler-runtime";
44989
+ import { c as _c67 } from "react-compiler-runtime";
44268
44990
  import { useMutation as useMutation2, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
44269
44991
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
44270
44992
  var formData = function(variables) {
@@ -44500,11 +45222,11 @@ function _toPrimitive34(t, r) {
44500
45222
  return ("string" === r ? String : Number)(t);
44501
45223
  }
44502
45224
  var useCreateFile = function(t0) {
44503
- var $ = _c41(15);
45225
+ var $ = _c67(15);
44504
45226
  var t1;
44505
45227
  if ($[0] !== t0) {
44506
45228
  t1 = t0 === void 0 ? {
44507
- onError: _temp4
45229
+ onError: _temp5
44508
45230
  } : t0;
44509
45231
  $[0] = t0;
44510
45232
  $[1] = t1;
@@ -44514,7 +45236,7 @@ var useCreateFile = function(t0) {
44514
45236
  var t2 = t1.onError;
44515
45237
  var t3;
44516
45238
  if ($[2] !== t2) {
44517
- t3 = t2 === void 0 ? _temp22 : t2;
45239
+ t3 = t2 === void 0 ? _temp23 : t2;
44518
45240
  $[2] = t2;
44519
45241
  $[3] = t3;
44520
45242
  } else {
@@ -44542,7 +45264,7 @@ var useCreateFile = function(t0) {
44542
45264
  }
44543
45265
  var props = useMutation2(t4);
44544
45266
  var t5;
44545
- if ($[9] !== props || $[10] !== threadContext.variables) {
45267
+ if ($[9] !== props || $[10] !== threadContext) {
44546
45268
  t5 = function t52() {
44547
45269
  var _props;
44548
45270
  for(var _len = arguments.length, t62 = new Array(_len), _key = 0; _key < _len; _key++){
@@ -44555,7 +45277,7 @@ var useCreateFile = function(t0) {
44555
45277
  ].concat(_to_consumable_array(restArgs)));
44556
45278
  };
44557
45279
  $[9] = props;
44558
- $[10] = threadContext.variables;
45280
+ $[10] = threadContext;
44559
45281
  $[11] = t5;
44560
45282
  } else {
44561
45283
  t5 = $[11];
@@ -44573,8 +45295,8 @@ var useCreateFile = function(t0) {
44573
45295
  }
44574
45296
  return t6;
44575
45297
  };
44576
- function _temp4() {}
44577
- function _temp22() {}
45298
+ function _temp5() {}
45299
+ function _temp23() {}
44578
45300
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
44579
45301
  import { jsx as _jsx69, jsxs as _jsxs25 } from "react/jsx-runtime";
44580
45302
  function ownKeys35(e, r) {
@@ -45026,63 +45748,107 @@ function _toPrimitive37(t, r) {
45026
45748
  return ("string" === r ? String : Number)(t);
45027
45749
  }
45028
45750
  var MessageForm = function(props) {
45029
- return /* @__PURE__ */ _jsx71(Root4, _objectSpread37(_objectSpread37({}, props), {}, {
45030
- children: /* @__PURE__ */ _jsxs26(Field.Root, {
45751
+ var $ = _c68(3);
45752
+ var t0;
45753
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
45754
+ t0 = /* @__PURE__ */ _jsxs26(Field.Root, {
45031
45755
  children: [
45032
45756
  /* @__PURE__ */ _jsx71(Field.Control, {}),
45033
45757
  /* @__PURE__ */ _jsx71(Submit, {})
45034
45758
  ]
45035
- })
45036
- }));
45759
+ });
45760
+ $[0] = t0;
45761
+ } else {
45762
+ t0 = $[0];
45763
+ }
45764
+ var t1;
45765
+ if ($[1] !== props) {
45766
+ t1 = /* @__PURE__ */ _jsx71(Root4, _objectSpread37(_objectSpread37({}, props), {}, {
45767
+ children: t0
45768
+ }));
45769
+ $[1] = props;
45770
+ $[2] = t1;
45771
+ } else {
45772
+ t1 = $[2];
45773
+ }
45774
+ return t1;
45037
45775
  };
45038
45776
  MessageForm.Root = Root4;
45039
45777
  MessageForm.Field = Field;
45040
45778
  MessageForm.Submit = Submit;
45041
45779
  // src/components/threads/Thread/Root/index.tsx
45780
+ import { c as _c71 } from "react-compiler-runtime";
45042
45781
  import { Flex as Flex26 } from "@radix-ui/themes";
45043
45782
  // src/components/threads/Thread/Provider/index.tsx
45044
45783
  var Provider2 = SuperinterfaceProvider;
45045
45784
  // src/components/toasts/ToastsProvider/index.tsx
45046
- import { c as _c42 } from "react-compiler-runtime";
45785
+ import { c as _c70 } from "react-compiler-runtime";
45047
45786
  import { useState as useState5, useCallback as useCallback4 } from "react";
45048
45787
  import * as Toast2 from "@radix-ui/react-toast";
45049
45788
  // src/components/toasts/ToastsProvider/CustomToast.tsx
45789
+ import { c as _c69 } from "react-compiler-runtime";
45050
45790
  import * as Toast from "@radix-ui/react-toast";
45051
45791
  import { Card as Card3, Text as Text8, Flex as Flex25 } from "@radix-ui/themes";
45052
45792
  import { CheckCircledIcon as CheckCircledIcon2, CrossCircledIcon } from "@radix-ui/react-icons";
45053
45793
  import { jsx as _jsx72, jsxs as _jsxs27 } from "react/jsx-runtime";
45054
- var CustomToast = function(_ref) {
45055
- var toast = _ref.toast;
45056
- return /* @__PURE__ */ _jsx72(Toast.Root, {
45057
- children: /* @__PURE__ */ _jsx72(Card3, {
45058
- children: /* @__PURE__ */ _jsx72(Toast.Title, {
45059
- children: /* @__PURE__ */ _jsxs27(Flex25, {
45060
- children: [
45061
- /* @__PURE__ */ _jsx72(Flex25, {
45062
- pr: "2",
45063
- height: "14px",
45064
- align: "center",
45065
- children: toast.type === "success" ? /* @__PURE__ */ _jsx72(CheckCircledIcon2, {
45066
- color: "var(--accent-9)"
45067
- }) : /* @__PURE__ */ _jsx72(CrossCircledIcon, {
45068
- color: "var(--red-9)"
45069
- })
45070
- }),
45071
- /* @__PURE__ */ _jsx72(Text8, {
45072
- weight: "medium",
45073
- size: "1",
45074
- children: toast.message
45075
- })
45076
- ]
45794
+ var CustomToast = function(t0) {
45795
+ var $ = _c69(7);
45796
+ var toast = t0.toast;
45797
+ var t1;
45798
+ if ($[0] !== toast.type) {
45799
+ t1 = /* @__PURE__ */ _jsx72(Flex25, {
45800
+ pr: "2",
45801
+ height: "14px",
45802
+ align: "center",
45803
+ children: toast.type === "success" ? /* @__PURE__ */ _jsx72(CheckCircledIcon2, {
45804
+ color: "var(--accent-9)"
45805
+ }) : /* @__PURE__ */ _jsx72(CrossCircledIcon, {
45806
+ color: "var(--red-9)"
45807
+ })
45808
+ });
45809
+ $[0] = toast.type;
45810
+ $[1] = t1;
45811
+ } else {
45812
+ t1 = $[1];
45813
+ }
45814
+ var t2;
45815
+ if ($[2] !== toast.message) {
45816
+ t2 = /* @__PURE__ */ _jsx72(Text8, {
45817
+ weight: "medium",
45818
+ size: "1",
45819
+ children: toast.message
45820
+ });
45821
+ $[2] = toast.message;
45822
+ $[3] = t2;
45823
+ } else {
45824
+ t2 = $[3];
45825
+ }
45826
+ var t3;
45827
+ if ($[4] !== t1 || $[5] !== t2) {
45828
+ t3 = /* @__PURE__ */ _jsx72(Toast.Root, {
45829
+ children: /* @__PURE__ */ _jsx72(Card3, {
45830
+ children: /* @__PURE__ */ _jsx72(Toast.Title, {
45831
+ children: /* @__PURE__ */ _jsxs27(Flex25, {
45832
+ children: [
45833
+ t1,
45834
+ t2
45835
+ ]
45836
+ })
45077
45837
  })
45078
45838
  })
45079
- })
45080
- });
45839
+ });
45840
+ $[4] = t1;
45841
+ $[5] = t2;
45842
+ $[6] = t3;
45843
+ } else {
45844
+ t3 = $[6];
45845
+ }
45846
+ return t3;
45081
45847
  };
45082
45848
  // src/components/toasts/ToastsProvider/index.tsx
45083
45849
  import { jsx as _jsx73, jsxs as _jsxs28 } from "react/jsx-runtime";
45084
45850
  var ToastsProvider = function(t0) {
45085
- var $ = _c42(15);
45851
+ var $ = _c70(15);
45086
45852
  var children = t0.children, t1 = t0.bottom;
45087
45853
  var bottom = t1 === void 0 ? 0 : t1;
45088
45854
  var t2;
@@ -45120,7 +45886,7 @@ var ToastsProvider = function(t0) {
45120
45886
  }
45121
45887
  var t5;
45122
45888
  if ($[4] !== toasts) {
45123
- t5 = Array.from(toasts).map(_temp5);
45889
+ t5 = Array.from(toasts).map(_temp6);
45124
45890
  $[4] = toasts;
45125
45891
  $[5] = t5;
45126
45892
  } else {
@@ -45180,7 +45946,7 @@ var ToastsProvider = function(t0) {
45180
45946
  }
45181
45947
  return t8;
45182
45948
  };
45183
- function _temp5(toast_0, index) {
45949
+ function _temp6(toast_0, index) {
45184
45950
  return /* @__PURE__ */ _jsx73(CustomToast, {
45185
45951
  toast: toast_0
45186
45952
  }, index);
@@ -45253,20 +46019,60 @@ function _objectWithoutPropertiesLoose4(r, e) {
45253
46019
  }
45254
46020
  return t;
45255
46021
  }
45256
- var Root8 = function(_ref) {
45257
- var children = _ref.children, style = _ref.style, className = _ref.className, rest = _objectWithoutProperties4(_ref, _excluded4);
45258
- return /* @__PURE__ */ _jsx74(ToastsProvider, {
45259
- bottom: "var(--space-9)",
45260
- children: /* @__PURE__ */ _jsx74(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
45261
- children: /* @__PURE__ */ _jsx74(Flex26, {
45262
- direction: "column",
45263
- flexGrow: "1",
45264
- className: className,
45265
- style: style,
45266
- children: children
45267
- })
45268
- }))
45269
- });
46022
+ var Root8 = function(t0) {
46023
+ var $ = _c71(12);
46024
+ var children;
46025
+ var className;
46026
+ var rest;
46027
+ var style;
46028
+ if ($[0] !== t0) {
46029
+ var _t = t0;
46030
+ var ref;
46031
+ ref = _t, children = ref.children, style = ref.style, className = ref.className, ref;
46032
+ rest = _objectWithoutProperties4(_t, _excluded4);
46033
+ _t;
46034
+ $[0] = t0;
46035
+ $[1] = children;
46036
+ $[2] = className;
46037
+ $[3] = rest;
46038
+ $[4] = style;
46039
+ } else {
46040
+ children = $[1];
46041
+ className = $[2];
46042
+ rest = $[3];
46043
+ style = $[4];
46044
+ }
46045
+ var t1;
46046
+ if ($[5] !== children || $[6] !== className || $[7] !== style) {
46047
+ t1 = /* @__PURE__ */ _jsx74(Flex26, {
46048
+ direction: "column",
46049
+ flexGrow: "1",
46050
+ className: className,
46051
+ style: style,
46052
+ children: children
46053
+ });
46054
+ $[5] = children;
46055
+ $[6] = className;
46056
+ $[7] = style;
46057
+ $[8] = t1;
46058
+ } else {
46059
+ t1 = $[8];
46060
+ }
46061
+ var t2;
46062
+ if ($[9] !== rest || $[10] !== t1) {
46063
+ t2 = /* @__PURE__ */ _jsx74(ToastsProvider, {
46064
+ bottom: "var(--space-9)",
46065
+ children: /* @__PURE__ */ _jsx74(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
46066
+ children: t1
46067
+ }))
46068
+ });
46069
+ $[9] = rest;
46070
+ $[10] = t1;
46071
+ $[11] = t2;
46072
+ } else {
46073
+ t2 = $[11];
46074
+ }
46075
+ return t2;
45270
46076
  };
45271
46077
  // src/components/threads/Thread/index.tsx
45272
46078
  import { jsx as _jsx75, jsxs as _jsxs29 } from "react/jsx-runtime";
@@ -45314,12 +46120,32 @@ function _toPrimitive39(t, r) {
45314
46120
  return ("string" === r ? String : Number)(t);
45315
46121
  }
45316
46122
  var Thread = function(props) {
45317
- return /* @__PURE__ */ _jsxs29(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
45318
- children: [
45319
- /* @__PURE__ */ _jsx75(Messages, {}),
45320
- /* @__PURE__ */ _jsx75(MessageForm, {})
45321
- ]
45322
- }));
46123
+ var $ = _c72(4);
46124
+ var t0;
46125
+ var t1;
46126
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46127
+ t0 = /* @__PURE__ */ _jsx75(Messages, {});
46128
+ t1 = /* @__PURE__ */ _jsx75(MessageForm, {});
46129
+ $[0] = t0;
46130
+ $[1] = t1;
46131
+ } else {
46132
+ t0 = $[0];
46133
+ t1 = $[1];
46134
+ }
46135
+ var t2;
46136
+ if ($[2] !== props) {
46137
+ t2 = /* @__PURE__ */ _jsxs29(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
46138
+ children: [
46139
+ t0,
46140
+ t1
46141
+ ]
46142
+ }));
46143
+ $[2] = props;
46144
+ $[3] = t2;
46145
+ } else {
46146
+ t2 = $[3];
46147
+ }
46148
+ return t2;
45323
46149
  };
45324
46150
  Thread.Root = Root8;
45325
46151
  Thread.Messages = Messages;
@@ -45330,7 +46156,7 @@ var useMessageContext = function() {
45330
46156
  return useContext14(MessageContext);
45331
46157
  };
45332
46158
  // src/hooks/assistants/useAssistant/index.ts
45333
- import { c as _c43 } from "react-compiler-runtime";
46159
+ import { c as _c73 } from "react-compiler-runtime";
45334
46160
  import { useMemo as useMemo15 } from "react";
45335
46161
  import { useQuery } from "@tanstack/react-query";
45336
46162
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
@@ -45480,7 +46306,7 @@ function _toPrimitive40(t, r) {
45480
46306
  return ("string" === r ? String : Number)(t);
45481
46307
  }
45482
46308
  var useAssistant = function(t0) {
45483
- var $ = _c43(6);
46309
+ var $ = _c73(6);
45484
46310
  var assistantId = t0.assistantId;
45485
46311
  var superinterfaceContext = useSuperinterfaceContext();
45486
46312
  var t1;
@@ -45512,8 +46338,12 @@ var useAssistant = function(t0) {
45512
46338
  t2 = t4;
45513
46339
  return t2;
45514
46340
  };
46341
+ // src/components/threads/ThreadDialog/index.tsx
46342
+ import { c as _c80 } from "react-compiler-runtime";
46343
+ // src/components/threads/ThreadDialog/Root/index.tsx
46344
+ import { c as _c75 } from "react-compiler-runtime";
45515
46345
  // src/components/threads/ThreadDialog/Provider/index.tsx
45516
- import { c as _c44 } from "react-compiler-runtime";
46346
+ import { c as _c74 } from "react-compiler-runtime";
45517
46347
  import { useState as useState6 } from "react";
45518
46348
  // src/contexts/threads/ThreadDialogContext/index.ts
45519
46349
  import { createContext as createContext12 } from "react";
@@ -45529,7 +46359,7 @@ var useThreadDialogContext = function() {
45529
46359
  // src/components/threads/ThreadDialog/Provider/index.tsx
45530
46360
  import { jsx as _jsx76 } from "react/jsx-runtime";
45531
46361
  var Provider4 = function(t0) {
45532
- var $ = _c44(5);
46362
+ var $ = _c74(5);
45533
46363
  var children = t0.children;
45534
46364
  var threadDialogContext = useThreadDialogContext();
45535
46365
  var _useState6 = _sliced_to_array(useState6(threadDialogContext.isOpen), 2), isOpen = _useState6[0], setIsOpen = _useState6[1];
@@ -45560,16 +46390,26 @@ var Provider4 = function(t0) {
45560
46390
  };
45561
46391
  // src/components/threads/ThreadDialog/Root/index.tsx
45562
46392
  import { jsx as _jsx77 } from "react/jsx-runtime";
45563
- var Root9 = function(_ref) {
45564
- var children = _ref.children;
45565
- return /* @__PURE__ */ _jsx77(Provider4, {
45566
- children: children
45567
- });
46393
+ var Root9 = function(t0) {
46394
+ var $ = _c75(2);
46395
+ var children = t0.children;
46396
+ var t1;
46397
+ if ($[0] !== children) {
46398
+ t1 = /* @__PURE__ */ _jsx77(Provider4, {
46399
+ children: children
46400
+ });
46401
+ $[0] = children;
46402
+ $[1] = t1;
46403
+ } else {
46404
+ t1 = $[1];
46405
+ }
46406
+ return t1;
45568
46407
  };
45569
46408
  // src/components/threads/ThreadDialog/Trigger/index.tsx
45570
- import { c as _c45 } from "react-compiler-runtime";
46409
+ import { c as _c77 } from "react-compiler-runtime";
45571
46410
  import { Flex as Flex27 } from "@radix-ui/themes";
45572
46411
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
46412
+ import { c as _c76 } from "react-compiler-runtime";
45573
46413
  import { IconButton as IconButton8 } from "@radix-ui/themes";
45574
46414
  import { ChatBubbleIcon } from "@radix-ui/react-icons";
45575
46415
  import { jsx as _jsx78 } from "react/jsx-runtime";
@@ -45617,12 +46457,28 @@ function _toPrimitive41(t, r) {
45617
46457
  return ("string" === r ? String : Number)(t);
45618
46458
  }
45619
46459
  var Button4 = function(props) {
45620
- return /* @__PURE__ */ _jsx78(IconButton8, _objectSpread41(_objectSpread41({
45621
- size: "4",
45622
- radius: "full"
45623
- }, props), {}, {
45624
- children: /* @__PURE__ */ _jsx78(ChatBubbleIcon, {})
45625
- }));
46460
+ var $ = _c76(3);
46461
+ var t0;
46462
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46463
+ t0 = /* @__PURE__ */ _jsx78(ChatBubbleIcon, {});
46464
+ $[0] = t0;
46465
+ } else {
46466
+ t0 = $[0];
46467
+ }
46468
+ var t1;
46469
+ if ($[1] !== props) {
46470
+ t1 = /* @__PURE__ */ _jsx78(IconButton8, _objectSpread41(_objectSpread41({
46471
+ size: "4",
46472
+ radius: "full"
46473
+ }, props), {}, {
46474
+ children: t0
46475
+ }));
46476
+ $[1] = props;
46477
+ $[2] = t1;
46478
+ } else {
46479
+ t1 = $[2];
46480
+ }
46481
+ return t1;
45626
46482
  };
45627
46483
  // src/components/threads/ThreadDialog/Trigger/index.tsx
45628
46484
  import { jsx as _jsx79 } from "react/jsx-runtime";
@@ -45670,7 +46526,7 @@ function _toPrimitive42(t, r) {
45670
46526
  return ("string" === r ? String : Number)(t);
45671
46527
  }
45672
46528
  var Root10 = function(t0) {
45673
- var $ = _c45(14);
46529
+ var $ = _c77(14);
45674
46530
  var children = t0.children, style = t0.style, className = t0.className;
45675
46531
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
45676
46532
  var t1 = isOpen ? "none" : "flex";
@@ -45688,7 +46544,7 @@ var Root10 = function(t0) {
45688
46544
  var t3;
45689
46545
  if ($[2] !== setIsOpen) {
45690
46546
  t3 = function() {
45691
- return setIsOpen(_temp6);
46547
+ return setIsOpen(_temp7);
45692
46548
  };
45693
46549
  $[2] = setIsOpen;
45694
46550
  $[3] = t3;
@@ -45741,25 +46597,41 @@ var Root10 = function(t0) {
45741
46597
  return t6;
45742
46598
  };
45743
46599
  var Trigger = function(args) {
45744
- return /* @__PURE__ */ _jsx79(Root10, _objectSpread42(_objectSpread42({}, args), {}, {
45745
- children: /* @__PURE__ */ _jsx79(Button4, {})
45746
- }));
46600
+ var $ = _c77(3);
46601
+ var t0;
46602
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46603
+ t0 = /* @__PURE__ */ _jsx79(Button4, {});
46604
+ $[0] = t0;
46605
+ } else {
46606
+ t0 = $[0];
46607
+ }
46608
+ var t1;
46609
+ if ($[1] !== args) {
46610
+ t1 = /* @__PURE__ */ _jsx79(Root10, _objectSpread42(_objectSpread42({}, args), {}, {
46611
+ children: t0
46612
+ }));
46613
+ $[1] = args;
46614
+ $[2] = t1;
46615
+ } else {
46616
+ t1 = $[2];
46617
+ }
46618
+ return t1;
45747
46619
  };
45748
46620
  Trigger.Root = Root10;
45749
46621
  Trigger.Button = Button4;
45750
- function _temp6(prev) {
46622
+ function _temp7(prev) {
45751
46623
  return !prev;
45752
46624
  }
45753
46625
  // src/components/threads/ThreadDialog/Content/index.tsx
45754
- import { c as _c47 } from "react-compiler-runtime";
46626
+ import { c as _c79 } from "react-compiler-runtime";
45755
46627
  import { Card as Card4, Inset as Inset2, Flex as Flex29 } from "@radix-ui/themes";
45756
46628
  // src/components/threads/ThreadDialog/Close/index.tsx
45757
- import { c as _c46 } from "react-compiler-runtime";
46629
+ import { c as _c78 } from "react-compiler-runtime";
45758
46630
  import { Cross1Icon } from "@radix-ui/react-icons";
45759
46631
  import { IconButton as IconButton9, Flex as Flex28 } from "@radix-ui/themes";
45760
46632
  import { jsx as _jsx80 } from "react/jsx-runtime";
45761
46633
  var Close = function() {
45762
- var $ = _c46(9);
46634
+ var $ = _c78(9);
45763
46635
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
45764
46636
  var t0 = isOpen ? "flex" : "none";
45765
46637
  var t1;
@@ -45776,7 +46648,7 @@ var Close = function() {
45776
46648
  var t2;
45777
46649
  if ($[2] !== setIsOpen) {
45778
46650
  t2 = function() {
45779
- return setIsOpen(_temp7);
46651
+ return setIsOpen(_temp8);
45780
46652
  };
45781
46653
  $[2] = setIsOpen;
45782
46654
  $[3] = t2;
@@ -45826,7 +46698,7 @@ var Close = function() {
45826
46698
  }
45827
46699
  return t5;
45828
46700
  };
45829
- function _temp7(prev) {
46701
+ function _temp8(prev) {
45830
46702
  return !prev;
45831
46703
  }
45832
46704
  // src/components/threads/ThreadDialog/Content/index.tsx
@@ -45875,7 +46747,7 @@ function _toPrimitive43(t, r) {
45875
46747
  return ("string" === r ? String : Number)(t);
45876
46748
  }
45877
46749
  var Root11 = function(t0) {
45878
- var $ = _c47(19);
46750
+ var $ = _c79(19);
45879
46751
  var children = t0.children, className = t0.className, style = t0.style;
45880
46752
  var isOpen = useThreadDialogContext().isOpen;
45881
46753
  if (!isOpen) {
@@ -46021,41 +46893,93 @@ var Root11 = function(t0) {
46021
46893
  }
46022
46894
  return t13;
46023
46895
  };
46024
- var Messages2 = function(_ref) {
46025
- var className = _ref.className, style = _ref.style;
46026
- return /* @__PURE__ */ _jsx81(Thread.Messages, {
46027
- className: className,
46028
- style: _objectSpread43({
46896
+ var Messages2 = function(t0) {
46897
+ var $ = _c79(5);
46898
+ var className = t0.className, style = t0.style;
46899
+ var t1;
46900
+ if ($[0] !== style) {
46901
+ t1 = _objectSpread43({
46029
46902
  paddingTop: "var(--space-5)",
46030
46903
  paddingRight: "var(--space-5)",
46031
46904
  paddingLeft: "var(--space-5)"
46032
- }, style)
46033
- });
46905
+ }, style);
46906
+ $[0] = style;
46907
+ $[1] = t1;
46908
+ } else {
46909
+ t1 = $[1];
46910
+ }
46911
+ var t2;
46912
+ if ($[2] !== className || $[3] !== t1) {
46913
+ t2 = /* @__PURE__ */ _jsx81(Thread.Messages, {
46914
+ className: className,
46915
+ style: t1
46916
+ });
46917
+ $[2] = className;
46918
+ $[3] = t1;
46919
+ $[4] = t2;
46920
+ } else {
46921
+ t2 = $[4];
46922
+ }
46923
+ return t2;
46034
46924
  };
46035
- var FormContainer = function(_ref2) {
46036
- var children = _ref2.children, className = _ref2.className, style = _ref2.style;
46037
- return /* @__PURE__ */ _jsx81(Flex29, {
46038
- direction: "column",
46039
- pl: "5",
46040
- pr: "5",
46041
- pb: "3",
46042
- flexShrink: "0",
46043
- className: className,
46044
- style: style,
46045
- children: children
46046
- });
46925
+ var FormContainer = function(t0) {
46926
+ var $ = _c79(4);
46927
+ var children = t0.children, className = t0.className, style = t0.style;
46928
+ var t1;
46929
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
46930
+ t1 = /* @__PURE__ */ _jsx81(Flex29, {
46931
+ direction: "column",
46932
+ pl: "5",
46933
+ pr: "5",
46934
+ pb: "3",
46935
+ flexShrink: "0",
46936
+ className: className,
46937
+ style: style,
46938
+ children: children
46939
+ });
46940
+ $[0] = children;
46941
+ $[1] = className;
46942
+ $[2] = style;
46943
+ $[3] = t1;
46944
+ } else {
46945
+ t1 = $[3];
46946
+ }
46947
+ return t1;
46047
46948
  };
46048
46949
  var Content7 = function(props) {
46049
- return /* @__PURE__ */ _jsx81(Root11, _objectSpread43(_objectSpread43({}, props), {}, {
46050
- children: /* @__PURE__ */ _jsxs30(Thread.Root, {
46950
+ var $ = _c79(4);
46951
+ var t0;
46952
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46953
+ t0 = /* @__PURE__ */ _jsx81(Messages2, {});
46954
+ $[0] = t0;
46955
+ } else {
46956
+ t0 = $[0];
46957
+ }
46958
+ var t1;
46959
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
46960
+ t1 = /* @__PURE__ */ _jsxs30(Thread.Root, {
46051
46961
  children: [
46052
- /* @__PURE__ */ _jsx81(Messages2, {}),
46962
+ t0,
46053
46963
  /* @__PURE__ */ _jsx81(FormContainer, {
46054
46964
  children: /* @__PURE__ */ _jsx81(Thread.MessageForm, {})
46055
46965
  })
46056
46966
  ]
46057
- })
46058
- }));
46967
+ });
46968
+ $[1] = t1;
46969
+ } else {
46970
+ t1 = $[1];
46971
+ }
46972
+ var t2;
46973
+ if ($[2] !== props) {
46974
+ t2 = /* @__PURE__ */ _jsx81(Root11, _objectSpread43(_objectSpread43({}, props), {}, {
46975
+ children: t1
46976
+ }));
46977
+ $[2] = props;
46978
+ $[3] = t2;
46979
+ } else {
46980
+ t2 = $[3];
46981
+ }
46982
+ return t2;
46059
46983
  };
46060
46984
  Content7.Root = Root11;
46061
46985
  Content7.Messages = Messages2;
@@ -46063,18 +46987,30 @@ Content7.FormContainer = FormContainer;
46063
46987
  // src/components/threads/ThreadDialog/index.tsx
46064
46988
  import { jsx as _jsx82, jsxs as _jsxs31 } from "react/jsx-runtime";
46065
46989
  var ThreadDialog = function() {
46066
- return /* @__PURE__ */ _jsxs31(Root9, {
46067
- children: [
46068
- /* @__PURE__ */ _jsx82(Content7, {}),
46069
- /* @__PURE__ */ _jsx82(Trigger, {})
46070
- ]
46071
- });
46990
+ var $ = _c80(1);
46991
+ var t0;
46992
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46993
+ t0 = /* @__PURE__ */ _jsxs31(Root9, {
46994
+ children: [
46995
+ /* @__PURE__ */ _jsx82(Content7, {}),
46996
+ /* @__PURE__ */ _jsx82(Trigger, {})
46997
+ ]
46998
+ });
46999
+ $[0] = t0;
47000
+ } else {
47001
+ t0 = $[0];
47002
+ }
47003
+ return t0;
46072
47004
  };
46073
47005
  ThreadDialog.Root = Root9;
46074
47006
  ThreadDialog.Trigger = Trigger;
46075
47007
  ThreadDialog.Content = Content7;
47008
+ // src/components/threads/AudioThreadDialog/index.tsx
47009
+ import { c as _c95 } from "react-compiler-runtime";
47010
+ // src/components/threads/AudioThread/index.tsx
47011
+ import { c as _c94 } from "react-compiler-runtime";
46076
47012
  // src/components/threads/AudioThread/Root/index.tsx
46077
- import { c as _c53 } from "react-compiler-runtime";
47013
+ import { c as _c86 } from "react-compiler-runtime";
46078
47014
  import { Flex as Flex30 } from "@radix-ui/themes";
46079
47015
  // src/contexts/threads/AudioThreadContext/index.ts
46080
47016
  import { createContext as createContext13 } from "react";
@@ -46087,12 +47023,12 @@ var useAudioThreadContext = function() {
46087
47023
  return useContext16(AudioThreadContext);
46088
47024
  };
46089
47025
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
46090
- import { c as _c52 } from "react-compiler-runtime";
47026
+ import { c as _c85 } from "react-compiler-runtime";
46091
47027
  // src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
46092
- import { c as _c51 } from "react-compiler-runtime";
47028
+ import { c as _c84 } from "react-compiler-runtime";
46093
47029
  import { useMemo as useMemo18 } from "react";
46094
47030
  // src/hooks/misc/usePermission/index.ts
46095
- import { c as _c48 } from "react-compiler-runtime";
47031
+ import { c as _c81 } from "react-compiler-runtime";
46096
47032
  import { useEffect as useEffect7, useState as useState7 } from "react";
46097
47033
  // src/hooks/misc/usePermission/util.ts
46098
47034
  var noop = function() {};
@@ -46116,7 +47052,7 @@ function off(obj) {
46116
47052
  }
46117
47053
  // src/hooks/misc/usePermission/index.ts
46118
47054
  var usePermission = function(permissionDesc) {
46119
- var $ = _c48(3);
47055
+ var $ = _c81(3);
46120
47056
  var _useState7 = _sliced_to_array(useState7(""), 2), state = _useState7[0], setState = _useState7[1];
46121
47057
  var t0;
46122
47058
  var t1;
@@ -46165,11 +47101,11 @@ import { useAudioCapture } from "use-audio-capture";
46165
47101
  import { useMemo as useMemo16, useRef as useRef7, useState as useState8, useCallback as useCallback5, useEffect as useEffect9 } from "react";
46166
47102
  import { useAudioPlayer } from "react-use-audio-player";
46167
47103
  // src/hooks/misc/useInterval.ts
46168
- import { c as _c49 } from "react-compiler-runtime";
47104
+ import { c as _c82 } from "react-compiler-runtime";
46169
47105
  import { useEffect as useEffect8, useRef as useRef6 } from "react";
46170
47106
  var useInterval = function(callback, delay) {
46171
- var $ = _c49(5);
46172
- var savedCallback = useRef6(_temp8);
47107
+ var $ = _c82(5);
47108
+ var savedCallback = useRef6(_temp9);
46173
47109
  var t0;
46174
47110
  if ($[0] !== callback) {
46175
47111
  t0 = function() {
@@ -46206,7 +47142,7 @@ var useInterval = function(callback, delay) {
46206
47142
  }
46207
47143
  useEffect8(t1, t2);
46208
47144
  };
46209
- function _temp8() {}
47145
+ function _temp9() {}
46210
47146
  // src/hooks/audioThreads/useRecorder/index.ts
46211
47147
  function ownKeys44(e, r) {
46212
47148
  var t = Object.keys(e);
@@ -46421,7 +47357,7 @@ var useRecorder = function(_ref) {
46421
47357
  });
46422
47358
  };
46423
47359
  // src/hooks/audioThreads/useMessageAudio/index.ts
46424
- import { c as _c50 } from "react-compiler-runtime";
47360
+ import { c as _c83 } from "react-compiler-runtime";
46425
47361
  import { useMemo as useMemo17, useRef as useRef8, useState as useState9, useEffect as useEffect10, useCallback as useCallback6 } from "react";
46426
47362
  import nlp from "compromise";
46427
47363
  import { Howler } from "howler";
@@ -46504,7 +47440,7 @@ var getMessageSentences = function(_ref) {
46504
47440
  };
46505
47441
  var useMessageAudio = function(t0) {
46506
47442
  var _latestMessageProps$l;
46507
- var $ = _c50(50);
47443
+ var $ = _c83(49);
46508
47444
  var _onEnd = t0.onEnd, passedPlay = t0.play;
46509
47445
  var _useState9 = _sliced_to_array(useState9(false), 2), isAudioPlayed = _useState9[0], setIsAudioPlayed = _useState9[1];
46510
47446
  var t1;
@@ -46608,7 +47544,7 @@ var useMessageAudio = function(t0) {
46608
47544
  }
46609
47545
  var unplayedMessageSentences = t3;
46610
47546
  var t4;
46611
- if ($[12] !== audioPlayer || $[13] !== isAudioPlayed || $[14] !== nextAudioPlayer || $[15] !== superinterfaceContext.baseUrl || $[16] !== superinterfaceContext.variables || $[17] !== unplayedMessageSentences) {
47547
+ if ($[12] !== audioPlayer || $[13] !== isAudioPlayed || $[14] !== nextAudioPlayer || $[15] !== superinterfaceContext || $[16] !== unplayedMessageSentences) {
46612
47548
  t4 = function(t52) {
46613
47549
  var input_0 = t52.input, onPlay = t52.onPlay, onStop = t52.onStop, onEnd_0 = t52.onEnd;
46614
47550
  var searchParams = new URLSearchParams(_objectSpread45({
@@ -46644,19 +47580,18 @@ var useMessageAudio = function(t0) {
46644
47580
  $[12] = audioPlayer;
46645
47581
  $[13] = isAudioPlayed;
46646
47582
  $[14] = nextAudioPlayer;
46647
- $[15] = superinterfaceContext.baseUrl;
46648
- $[16] = superinterfaceContext.variables;
46649
- $[17] = unplayedMessageSentences;
46650
- $[18] = t4;
47583
+ $[15] = superinterfaceContext;
47584
+ $[16] = unplayedMessageSentences;
47585
+ $[17] = t4;
46651
47586
  } else {
46652
- t4 = $[18];
47587
+ t4 = $[17];
46653
47588
  }
46654
47589
  var defaultPlay = t4;
46655
47590
  var t5;
46656
47591
  t5 = passedPlay || defaultPlay;
46657
47592
  var play = t5;
46658
47593
  var t6;
46659
- if ($[19] !== audioPlayer.playing || $[20] !== isPlaying || $[21] !== latestMessageProps.latestMessage || $[22] !== _onEnd || $[23] !== play || $[24] !== unplayedMessageSentences) {
47594
+ if ($[18] !== audioPlayer.playing || $[19] !== isPlaying || $[20] !== latestMessageProps.latestMessage || $[21] !== _onEnd || $[22] !== play || $[23] !== unplayedMessageSentences) {
46660
47595
  t6 = function() {
46661
47596
  if (isPlaying) {
46662
47597
  return;
@@ -46708,18 +47643,18 @@ var useMessageAudio = function(t0) {
46708
47643
  }
46709
47644
  });
46710
47645
  };
46711
- $[19] = audioPlayer.playing;
46712
- $[20] = isPlaying;
46713
- $[21] = latestMessageProps.latestMessage;
46714
- $[22] = _onEnd;
46715
- $[23] = play;
46716
- $[24] = unplayedMessageSentences;
46717
- $[25] = t6;
47646
+ $[18] = audioPlayer.playing;
47647
+ $[19] = isPlaying;
47648
+ $[20] = latestMessageProps.latestMessage;
47649
+ $[21] = _onEnd;
47650
+ $[22] = play;
47651
+ $[23] = unplayedMessageSentences;
47652
+ $[24] = t6;
46718
47653
  } else {
46719
- t6 = $[25];
47654
+ t6 = $[24];
46720
47655
  }
46721
47656
  var t7;
46722
- if ($[26] !== audioPlayer || $[27] !== isPlaying || $[28] !== latestMessageProps || $[29] !== nextAudioPlayer || $[30] !== _onEnd || $[31] !== play || $[32] !== playedMessageSentences || $[33] !== superinterfaceContext || $[34] !== unplayedMessageSentences) {
47657
+ if ($[25] !== audioPlayer || $[26] !== isPlaying || $[27] !== latestMessageProps || $[28] !== nextAudioPlayer || $[29] !== _onEnd || $[30] !== play || $[31] !== playedMessageSentences || $[32] !== superinterfaceContext || $[33] !== unplayedMessageSentences) {
46723
47658
  t7 = [
46724
47659
  unplayedMessageSentences,
46725
47660
  isPlaying,
@@ -46731,35 +47666,35 @@ var useMessageAudio = function(t0) {
46731
47666
  _onEnd,
46732
47667
  play
46733
47668
  ];
46734
- $[26] = audioPlayer;
46735
- $[27] = isPlaying;
46736
- $[28] = latestMessageProps;
46737
- $[29] = nextAudioPlayer;
46738
- $[30] = _onEnd;
46739
- $[31] = play;
46740
- $[32] = playedMessageSentences;
46741
- $[33] = superinterfaceContext;
46742
- $[34] = unplayedMessageSentences;
46743
- $[35] = t7;
47669
+ $[25] = audioPlayer;
47670
+ $[26] = isPlaying;
47671
+ $[27] = latestMessageProps;
47672
+ $[28] = nextAudioPlayer;
47673
+ $[29] = _onEnd;
47674
+ $[30] = play;
47675
+ $[31] = playedMessageSentences;
47676
+ $[32] = superinterfaceContext;
47677
+ $[33] = unplayedMessageSentences;
47678
+ $[34] = t7;
46744
47679
  } else {
46745
- t7 = $[35];
47680
+ t7 = $[34];
46746
47681
  }
46747
47682
  useEffect10(t6, t7);
46748
47683
  var t8;
46749
- if ($[36] !== audioPlayer) {
47684
+ if ($[35] !== audioPlayer) {
46750
47685
  t8 = [
46751
47686
  audioPlayer
46752
47687
  ];
46753
- $[36] = audioPlayer;
46754
- $[37] = t8;
47688
+ $[35] = audioPlayer;
47689
+ $[36] = t8;
46755
47690
  } else {
46756
- t8 = $[37];
47691
+ t8 = $[36];
46757
47692
  }
46758
- useEffect10(_temp9, t8);
47693
+ useEffect10(_temp10, t8);
46759
47694
  var _useState94 = _sliced_to_array(useState9(null), 2), audioEngine = _useState94[0], setAudioEngine = _useState94[1];
46760
47695
  var isAudioEngineInited = useRef8(false);
46761
47696
  var t9;
46762
- if ($[38] !== audioPlayer.playing) {
47697
+ if ($[37] !== audioPlayer.playing) {
46763
47698
  t9 = function() {
46764
47699
  if (!audioPlayer.playing) {
46765
47700
  return;
@@ -46781,21 +47716,21 @@ var useMessageAudio = function(t0) {
46781
47716
  });
46782
47717
  }
46783
47718
  };
46784
- $[38] = audioPlayer.playing;
46785
- $[39] = t9;
47719
+ $[37] = audioPlayer.playing;
47720
+ $[38] = t9;
46786
47721
  } else {
46787
- t9 = $[39];
47722
+ t9 = $[38];
46788
47723
  }
46789
47724
  var t10;
46790
- if ($[40] !== audioPlayer) {
47725
+ if ($[39] !== audioPlayer) {
46791
47726
  t10 = [
46792
47727
  audioPlayer,
46793
47728
  isAudioEngineInited
46794
47729
  ];
46795
- $[40] = audioPlayer;
46796
- $[41] = t10;
47730
+ $[39] = audioPlayer;
47731
+ $[40] = t10;
46797
47732
  } else {
46798
- t10 = $[41];
47733
+ t10 = $[40];
46799
47734
  }
46800
47735
  useEffect10(t9, t10);
46801
47736
  var t11;
@@ -46805,15 +47740,15 @@ var useMessageAudio = function(t0) {
46805
47740
  break bb1;
46806
47741
  }
46807
47742
  var result;
46808
- if ($[42] !== audioEngine.audioContext || $[43] !== audioEngine.source) {
47743
+ if ($[41] !== audioEngine.audioContext || $[42] !== audioEngine.source) {
46809
47744
  result = audioEngine.audioContext.createAnalyser();
46810
47745
  audioEngine.source.connect(audioEngine.audioContext.destination);
46811
47746
  audioEngine.source.connect(result);
46812
- $[42] = audioEngine.audioContext;
46813
- $[43] = audioEngine.source;
46814
- $[44] = result;
47747
+ $[41] = audioEngine.audioContext;
47748
+ $[42] = audioEngine.source;
47749
+ $[43] = result;
46815
47750
  } else {
46816
- result = $[44];
47751
+ result = $[43];
46817
47752
  }
46818
47753
  t11 = result;
46819
47754
  }
@@ -46822,24 +47757,24 @@ var useMessageAudio = function(t0) {
46822
47757
  t12 = isPlaying || unplayedMessageSentences.length > 0 || ((_latestMessageProps$l = latestMessageProps.latestMessage) === null || _latestMessageProps$l === void 0 ? void 0 : _latestMessageProps$l.status) === "in_progress";
46823
47758
  var isPending = t12;
46824
47759
  var t13;
46825
- if ($[45] !== audioPlayer || $[46] !== isAudioPlayed || $[47] !== isPending || $[48] !== visualizationAnalyser) {
47760
+ if ($[44] !== audioPlayer || $[45] !== isAudioPlayed || $[46] !== isPending || $[47] !== visualizationAnalyser) {
46826
47761
  t13 = _objectSpread45(_objectSpread45({
46827
47762
  isPending: isPending,
46828
47763
  isAudioPlayed: isAudioPlayed
46829
47764
  }, audioPlayer), {}, {
46830
47765
  visualizationAnalyser: visualizationAnalyser
46831
47766
  });
46832
- $[45] = audioPlayer;
46833
- $[46] = isAudioPlayed;
46834
- $[47] = isPending;
46835
- $[48] = visualizationAnalyser;
46836
- $[49] = t13;
47767
+ $[44] = audioPlayer;
47768
+ $[45] = isAudioPlayed;
47769
+ $[46] = isPending;
47770
+ $[47] = visualizationAnalyser;
47771
+ $[48] = t13;
46837
47772
  } else {
46838
- t13 = $[49];
47773
+ t13 = $[48];
46839
47774
  }
46840
47775
  return t13;
46841
47776
  };
46842
- function _temp9() {
47777
+ function _temp10() {
46843
47778
  if (isHtmlAudioSupported) {
46844
47779
  var _Howler$_howls$;
46845
47780
  if (!(Howler !== null && Howler !== void 0 && (_Howler$_howls$ = Howler._howls[0]) !== null && _Howler$_howls$ !== void 0 && (_Howler$_howls$ = _Howler$_howls$._sounds[0]) !== null && _Howler$_howls$ !== void 0 && _Howler$_howls$._node)) {
@@ -46885,7 +47820,7 @@ function _asyncToGenerator11(n) {
46885
47820
  };
46886
47821
  }
46887
47822
  var useTtsAudioRuntime = function(t0) {
46888
- var $ = _c51(30);
47823
+ var $ = _c84(30);
46889
47824
  var play = t0.play;
46890
47825
  var addToast = useToasts().addToast;
46891
47826
  var queryClient = useQueryClient6();
@@ -46914,7 +47849,7 @@ var useTtsAudioRuntime = function(t0) {
46914
47849
  if ($[1] !== createMessageProps) {
46915
47850
  t2 = {
46916
47851
  isStopOnSilence: true,
46917
- onStart: _temp10,
47852
+ onStart: _temp11,
46918
47853
  onStop: function() {
46919
47854
  var _onStop = _asyncToGenerator11(function(_event, chunks) {
46920
47855
  var blob, audioContent;
@@ -46978,12 +47913,6 @@ var useTtsAudioRuntime = function(t0) {
46978
47913
  }
46979
47914
  var messageAudioProps = useMessageAudio(t4);
46980
47915
  recorderProps;
46981
- recorderProps;
46982
- recorderProps;
46983
- recorderProps;
46984
- recorderProps;
46985
- recorderProps;
46986
- recorderProps;
46987
47916
  var t5;
46988
47917
  var t6;
46989
47918
  if ($[9] !== createMessageProps.isPending || $[10] !== recorderProps.pause || $[11] !== recorderProps.resume || $[12] !== recorderProps.start || $[13] !== recorderProps.status || $[14] !== recorderProps.stop || $[15] !== recorderProps.visualizationAnalyser) {
@@ -47051,23 +47980,23 @@ var useTtsAudioRuntime = function(t0) {
47051
47980
  t5 = t8;
47052
47981
  return t5;
47053
47982
  };
47054
- function _temp10() {
47055
- return _temp23.apply(this, arguments);
47983
+ function _temp11() {
47984
+ return _temp24.apply(this, arguments);
47056
47985
  }
47057
- function _temp23() {
47058
- _temp23 = _asyncToGenerator11(function() {
47986
+ function _temp24() {
47987
+ _temp24 = _asyncToGenerator11(function() {
47059
47988
  return _ts_generator(this, function(_state) {
47060
47989
  return [
47061
47990
  2
47062
47991
  ];
47063
47992
  });
47064
47993
  });
47065
- return _temp23.apply(this, arguments);
47994
+ return _temp24.apply(this, arguments);
47066
47995
  }
47067
47996
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
47068
47997
  import { jsx as _jsx83 } from "react/jsx-runtime";
47069
47998
  var TtsAudioRuntimeProvider = function(t0) {
47070
- var $ = _c52(7);
47999
+ var $ = _c85(7);
47071
48000
  var children = t0.children, play = t0.play;
47072
48001
  var t1;
47073
48002
  if ($[0] !== play) {
@@ -47176,19 +48105,30 @@ function _objectWithoutPropertiesLoose5(r, e) {
47176
48105
  }
47177
48106
  return t;
47178
48107
  }
47179
- var Content8 = function(_ref) {
47180
- var children = _ref.children, className = _ref.className, style = _ref.style;
47181
- return /* @__PURE__ */ _jsx84(Flex30, {
47182
- direction: "column",
47183
- flexGrow: "1",
47184
- p: "9",
47185
- className: className,
47186
- style: style,
47187
- children: children
47188
- });
48108
+ var Content8 = function(t0) {
48109
+ var $ = _c86(4);
48110
+ var children = t0.children, className = t0.className, style = t0.style;
48111
+ var t1;
48112
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
48113
+ t1 = /* @__PURE__ */ _jsx84(Flex30, {
48114
+ direction: "column",
48115
+ flexGrow: "1",
48116
+ p: "9",
48117
+ className: className,
48118
+ style: style,
48119
+ children: children
48120
+ });
48121
+ $[0] = children;
48122
+ $[1] = className;
48123
+ $[2] = style;
48124
+ $[3] = t1;
48125
+ } else {
48126
+ t1 = $[3];
48127
+ }
48128
+ return t1;
47189
48129
  };
47190
48130
  var AudioRuntimeProvider = function(t0) {
47191
- var $ = _c53(3);
48131
+ var $ = _c86(3);
47192
48132
  var children = t0.children, play = t0.play;
47193
48133
  var audioThreadContext = useAudioThreadContext();
47194
48134
  if (audioThreadContext.audioRuntime) {
@@ -47209,7 +48149,7 @@ var AudioRuntimeProvider = function(t0) {
47209
48149
  return t1;
47210
48150
  };
47211
48151
  var Provider5 = function(t0) {
47212
- var $ = _c53(9);
48152
+ var $ = _c86(9);
47213
48153
  var children;
47214
48154
  var rest;
47215
48155
  if ($[0] !== t0) {
@@ -47248,23 +48188,76 @@ var Provider5 = function(t0) {
47248
48188
  }
47249
48189
  return t2;
47250
48190
  };
47251
- var Root12 = function(_ref2) {
47252
- var children = _ref2.children, play = _ref2.play, className = _ref2.className, style = _ref2.style, rest = _objectWithoutProperties5(_ref2, _excluded22);
47253
- return /* @__PURE__ */ _jsx84(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
47254
- children: /* @__PURE__ */ _jsx84(AudioRuntimeProvider, {
47255
- play: play,
47256
- children: /* @__PURE__ */ _jsx84(ToastsProvider, {
47257
- children: /* @__PURE__ */ _jsx84(Content8, {
47258
- className: className,
47259
- style: style,
47260
- children: children
47261
- })
48191
+ var Root12 = function(t0) {
48192
+ var $ = _c86(16);
48193
+ var children;
48194
+ var className;
48195
+ var play;
48196
+ var rest;
48197
+ var style;
48198
+ if ($[0] !== t0) {
48199
+ var _t2 = t0;
48200
+ var ref;
48201
+ ref = _t2, children = ref.children, play = ref.play, className = ref.className, style = ref.style, ref;
48202
+ rest = _objectWithoutProperties5(_t2, _excluded22);
48203
+ _t2;
48204
+ $[0] = t0;
48205
+ $[1] = children;
48206
+ $[2] = className;
48207
+ $[3] = play;
48208
+ $[4] = rest;
48209
+ $[5] = style;
48210
+ } else {
48211
+ children = $[1];
48212
+ className = $[2];
48213
+ play = $[3];
48214
+ rest = $[4];
48215
+ style = $[5];
48216
+ }
48217
+ var t1;
48218
+ if ($[6] !== children || $[7] !== className || $[8] !== style) {
48219
+ t1 = /* @__PURE__ */ _jsx84(ToastsProvider, {
48220
+ children: /* @__PURE__ */ _jsx84(Content8, {
48221
+ className: className,
48222
+ style: style,
48223
+ children: children
47262
48224
  })
47263
- })
47264
- }));
48225
+ });
48226
+ $[6] = children;
48227
+ $[7] = className;
48228
+ $[8] = style;
48229
+ $[9] = t1;
48230
+ } else {
48231
+ t1 = $[9];
48232
+ }
48233
+ var t2;
48234
+ if ($[10] !== play || $[11] !== t1) {
48235
+ t2 = /* @__PURE__ */ _jsx84(AudioRuntimeProvider, {
48236
+ play: play,
48237
+ children: t1
48238
+ });
48239
+ $[10] = play;
48240
+ $[11] = t1;
48241
+ $[12] = t2;
48242
+ } else {
48243
+ t2 = $[12];
48244
+ }
48245
+ var t3;
48246
+ if ($[13] !== rest || $[14] !== t2) {
48247
+ t3 = /* @__PURE__ */ _jsx84(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
48248
+ children: t2
48249
+ }));
48250
+ $[13] = rest;
48251
+ $[14] = t2;
48252
+ $[15] = t3;
48253
+ } else {
48254
+ t3 = $[15];
48255
+ }
48256
+ return t3;
47265
48257
  };
47266
48258
  // src/components/threads/AudioThread/Visualization/index.tsx
47267
- import { useContext as useContext17, useState as useState11, useCallback as useCallback8, useEffect as useEffect12 } from "react";
48259
+ import { c as _c88 } from "react-compiler-runtime";
48260
+ import { useState as useState11, useCallback as useCallback8, useEffect as useEffect12, useContext as useContext17, createContext as createContext14 } from "react";
47268
48261
  import _9 from "lodash";
47269
48262
  import { Flex as Flex32 } from "@radix-ui/themes";
47270
48263
  // src/components/threads/AudioThread/BarsVisualizer/index.tsx
@@ -47332,10 +48325,10 @@ var BarsVisualizer = function(_ref) {
47332
48325
  });
47333
48326
  };
47334
48327
  // src/hooks/audioThreads/useStatus/index.ts
47335
- import { c as _c54 } from "react-compiler-runtime";
48328
+ import { c as _c87 } from "react-compiler-runtime";
47336
48329
  import { useMemo as useMemo19 } from "react";
47337
48330
  var useStatus = function() {
47338
- var $ = _c54(2);
48331
+ var $ = _c87(2);
47339
48332
  var audioRuntime = useAudioThreadContext().audioRuntime;
47340
48333
  var t0;
47341
48334
  bb0: {
@@ -47384,6 +48377,18 @@ var useStatus = function() {
47384
48377
  };
47385
48378
  // src/components/threads/AudioThread/Visualization/index.tsx
47386
48379
  import { jsx as _jsx86, jsxs as _jsxs32 } from "react/jsx-runtime";
48380
+ var _excluded6 = [
48381
+ "children"
48382
+ ];
48383
+ var _excluded23 = [
48384
+ "height",
48385
+ "barWidth"
48386
+ ];
48387
+ var _excluded32 = [
48388
+ "children",
48389
+ "height",
48390
+ "width"
48391
+ ];
47387
48392
  function ownKeys47(e, r) {
47388
48393
  var t = Object.keys(e);
47389
48394
  if (Object.getOwnPropertySymbols) {
@@ -47427,13 +48432,33 @@ function _toPrimitive47(t, r) {
47427
48432
  }
47428
48433
  return ("string" === r ? String : Number)(t);
47429
48434
  }
47430
- var Visualization = function(props) {
47431
- var status = useStatus().status;
48435
+ function _objectWithoutProperties6(e, t) {
48436
+ if (null == e) return {};
48437
+ var o, r, i = _objectWithoutPropertiesLoose6(e, t);
48438
+ if (Object.getOwnPropertySymbols) {
48439
+ var n = Object.getOwnPropertySymbols(e);
48440
+ for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
48441
+ }
48442
+ return i;
48443
+ }
48444
+ function _objectWithoutPropertiesLoose6(r, e) {
48445
+ if (null == r) return {};
48446
+ var t = {};
48447
+ for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
48448
+ if (-1 !== e.indexOf(n)) continue;
48449
+ t[n] = r[n];
48450
+ }
48451
+ return t;
48452
+ }
48453
+ var AudioThreadVisualizationContext = /* @__PURE__ */ createContext14({
48454
+ scale: 0
48455
+ });
48456
+ var Provider6 = function(_ref) {
48457
+ var children = _ref.children;
47432
48458
  var audioThreadContext = useAudioThreadContext();
47433
- var assistantNameContext = useContext17(AssistantNameContext);
47434
48459
  var _useState11 = _sliced_to_array(useState11(0), 2), scale = _useState11[0], setScale = _useState11[1];
47435
- var draw = useCallback8(function(_ref) {
47436
- var visualizationAnalyser = _ref.visualizationAnalyser;
48460
+ var draw = useCallback8(function(_ref2) {
48461
+ var visualizationAnalyser = _ref2.visualizationAnalyser;
47437
48462
  if (!visualizationAnalyser) {
47438
48463
  setScale(1);
47439
48464
  return;
@@ -47455,48 +48480,266 @@ var Visualization = function(props) {
47455
48480
  draw,
47456
48481
  audioThreadContext
47457
48482
  ]);
47458
- return /* @__PURE__ */ _jsxs32(Flex32, _objectSpread47(_objectSpread47({
47459
- direction: "column",
47460
- align: "center",
47461
- justify: "center",
47462
- mb: "3",
47463
- flexGrow: "1"
47464
- }, props), {}, {
47465
- children: [
47466
- /* @__PURE__ */ _jsx86(Flex32, {
48483
+ return /* @__PURE__ */ _jsx86(AudioThreadVisualizationContext.Provider, {
48484
+ value: {
48485
+ scale: scale
48486
+ },
48487
+ children: children
48488
+ });
48489
+ };
48490
+ var Root13 = function(t0) {
48491
+ var $ = _c88(6);
48492
+ var children;
48493
+ var rest;
48494
+ if ($[0] !== t0) {
48495
+ var _t = t0;
48496
+ children = _t.children;
48497
+ rest = _objectWithoutProperties6(_t, _excluded6);
48498
+ _t;
48499
+ $[0] = t0;
48500
+ $[1] = children;
48501
+ $[2] = rest;
48502
+ } else {
48503
+ children = $[1];
48504
+ rest = $[2];
48505
+ }
48506
+ var t1;
48507
+ if ($[3] !== children || $[4] !== rest) {
48508
+ t1 = /* @__PURE__ */ _jsx86(Provider6, {
48509
+ children: /* @__PURE__ */ _jsx86(Flex32, _objectSpread47(_objectSpread47({
48510
+ direction: "column",
47467
48511
  align: "center",
47468
48512
  justify: "center",
47469
- height: "200px",
47470
- width: "200px",
47471
- style: {
47472
- backgroundColor: status === "playing" ? "var(--accent-4)" : "var(--gray-4)",
47473
- borderRadius: "9999px",
47474
- scale: scale
47475
- },
47476
- children: /* @__PURE__ */ _jsx86(BarsVisualizer, {
47477
- visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
47478
- backgroundColor: status === "playing" ? "var(--accent-11)" : "var(--gray-11)",
47479
- height: "40px",
47480
- barWidth: "24px"
47481
- })
47482
- }),
47483
- /* @__PURE__ */ _jsxs32(Flex32, {
47484
- ml: "-22.5px",
47485
- gap: "3",
47486
- pt: "5",
47487
- children: [
47488
- /* @__PURE__ */ _jsx86(AssistantAvatar, {}),
47489
- /* @__PURE__ */ _jsx86(Name, {
47490
- children: assistantNameContext
47491
- })
47492
- ]
47493
- })
47494
- ]
47495
- }));
48513
+ mb: "3",
48514
+ flexGrow: "1"
48515
+ }, rest), {}, {
48516
+ children: children
48517
+ }))
48518
+ });
48519
+ $[3] = children;
48520
+ $[4] = rest;
48521
+ $[5] = t1;
48522
+ } else {
48523
+ t1 = $[5];
48524
+ }
48525
+ return t1;
48526
+ };
48527
+ var BarsVisualizer2 = function(t0) {
48528
+ var $ = _c88(10);
48529
+ var rest;
48530
+ var t1;
48531
+ var t2;
48532
+ if ($[0] !== t0) {
48533
+ var _t2 = t0;
48534
+ var ref;
48535
+ ref = _t2, t1 = ref.height, t2 = ref.barWidth, ref;
48536
+ rest = _objectWithoutProperties6(_t2, _excluded23);
48537
+ _t2;
48538
+ $[0] = t0;
48539
+ $[1] = rest;
48540
+ $[2] = t1;
48541
+ $[3] = t2;
48542
+ } else {
48543
+ rest = $[1];
48544
+ t1 = $[2];
48545
+ t2 = $[3];
48546
+ }
48547
+ var height = t1 === void 0 ? "40px" : t1;
48548
+ var barWidth = t2 === void 0 ? "24px" : t2;
48549
+ var status = useStatus().status;
48550
+ var audioThreadContext = useAudioThreadContext();
48551
+ var t3 = status === "playing" ? "var(--accent-11)" : "var(--gray-11)";
48552
+ var t4;
48553
+ if ($[4] !== audioThreadContext.audioRuntime.assistant.visualizationAnalyser || $[5] !== barWidth || $[6] !== height || $[7] !== rest || $[8] !== t3) {
48554
+ t4 = /* @__PURE__ */ _jsx86(BarsVisualizer, _objectSpread47({
48555
+ visualizationAnalyser: audioThreadContext.audioRuntime.assistant.visualizationAnalyser,
48556
+ backgroundColor: t3,
48557
+ height: height,
48558
+ barWidth: barWidth
48559
+ }, rest));
48560
+ $[4] = audioThreadContext.audioRuntime.assistant.visualizationAnalyser;
48561
+ $[5] = barWidth;
48562
+ $[6] = height;
48563
+ $[7] = rest;
48564
+ $[8] = t3;
48565
+ $[9] = t4;
48566
+ } else {
48567
+ t4 = $[9];
48568
+ }
48569
+ return t4;
48570
+ };
48571
+ var AssistantVisualizationRoot = function(t0) {
48572
+ var $ = _c88(17);
48573
+ var children;
48574
+ var rest;
48575
+ var t1;
48576
+ var t2;
48577
+ if ($[0] !== t0) {
48578
+ var _t3 = t0;
48579
+ var ref;
48580
+ ref = _t3, children = ref.children, t1 = ref.height, t2 = ref.width, ref;
48581
+ rest = _objectWithoutProperties6(_t3, _excluded32);
48582
+ _t3;
48583
+ $[0] = t0;
48584
+ $[1] = children;
48585
+ $[2] = rest;
48586
+ $[3] = t1;
48587
+ $[4] = t2;
48588
+ } else {
48589
+ children = $[1];
48590
+ rest = $[2];
48591
+ t1 = $[3];
48592
+ t2 = $[4];
48593
+ }
48594
+ var height = t1 === void 0 ? "200px" : t1;
48595
+ var width2 = t2 === void 0 ? "200px" : t2;
48596
+ var status = useStatus().status;
48597
+ var scale = useContext17(AudioThreadVisualizationContext).scale;
48598
+ var t3 = status === "playing" ? "var(--accent-4)" : "var(--gray-4)";
48599
+ var t4;
48600
+ if ($[5] !== rest.style) {
48601
+ var _rest$style;
48602
+ t4 = (_rest$style = rest.style) !== null && _rest$style !== void 0 ? _rest$style : {};
48603
+ $[5] = rest.style;
48604
+ $[6] = t4;
48605
+ } else {
48606
+ t4 = $[6];
48607
+ }
48608
+ var t5;
48609
+ if ($[7] !== scale || $[8] !== t3 || $[9] !== t4) {
48610
+ t5 = _objectSpread47({
48611
+ backgroundColor: t3,
48612
+ borderRadius: "9999px",
48613
+ scale: scale
48614
+ }, t4);
48615
+ $[7] = scale;
48616
+ $[8] = t3;
48617
+ $[9] = t4;
48618
+ $[10] = t5;
48619
+ } else {
48620
+ t5 = $[10];
48621
+ }
48622
+ var t6;
48623
+ if ($[11] !== children || $[12] !== height || $[13] !== rest || $[14] !== t5 || $[15] !== width2) {
48624
+ t6 = /* @__PURE__ */ _jsx86(Flex32, _objectSpread47(_objectSpread47({
48625
+ align: "center",
48626
+ justify: "center",
48627
+ height: height,
48628
+ width: width2,
48629
+ style: t5
48630
+ }, rest), {}, {
48631
+ children: children
48632
+ }));
48633
+ $[11] = children;
48634
+ $[12] = height;
48635
+ $[13] = rest;
48636
+ $[14] = t5;
48637
+ $[15] = width2;
48638
+ $[16] = t6;
48639
+ } else {
48640
+ t6 = $[16];
48641
+ }
48642
+ return t6;
47496
48643
  };
48644
+ var AssistantVisualization = function(props) {
48645
+ var $ = _c88(3);
48646
+ var t0;
48647
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48648
+ t0 = /* @__PURE__ */ _jsx86(BarsVisualizer2, {});
48649
+ $[0] = t0;
48650
+ } else {
48651
+ t0 = $[0];
48652
+ }
48653
+ var t1;
48654
+ if ($[1] !== props) {
48655
+ t1 = /* @__PURE__ */ _jsx86(AssistantVisualizationRoot, _objectSpread47(_objectSpread47({}, props), {}, {
48656
+ children: t0
48657
+ }));
48658
+ $[1] = props;
48659
+ $[2] = t1;
48660
+ } else {
48661
+ t1 = $[2];
48662
+ }
48663
+ return t1;
48664
+ };
48665
+ AssistantVisualization.Root = AssistantVisualizationRoot;
48666
+ AssistantVisualization.BarsVisualizer = BarsVisualizer2;
48667
+ var AssistantInfo = function(props) {
48668
+ var $ = _c88(6);
48669
+ var assistantNameContext = useContext17(AssistantNameContext);
48670
+ var t0;
48671
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48672
+ t0 = /* @__PURE__ */ _jsx86(AssistantAvatar, {});
48673
+ $[0] = t0;
48674
+ } else {
48675
+ t0 = $[0];
48676
+ }
48677
+ var t1;
48678
+ if ($[1] !== assistantNameContext) {
48679
+ t1 = /* @__PURE__ */ _jsx86(Name, {
48680
+ children: assistantNameContext
48681
+ });
48682
+ $[1] = assistantNameContext;
48683
+ $[2] = t1;
48684
+ } else {
48685
+ t1 = $[2];
48686
+ }
48687
+ var t2;
48688
+ if ($[3] !== props || $[4] !== t1) {
48689
+ t2 = /* @__PURE__ */ _jsxs32(Flex32, _objectSpread47(_objectSpread47({
48690
+ ml: "-22.5px",
48691
+ gap: "3",
48692
+ pt: "5"
48693
+ }, props), {}, {
48694
+ children: [
48695
+ t0,
48696
+ t1
48697
+ ]
48698
+ }));
48699
+ $[3] = props;
48700
+ $[4] = t1;
48701
+ $[5] = t2;
48702
+ } else {
48703
+ t2 = $[5];
48704
+ }
48705
+ return t2;
48706
+ };
48707
+ var Visualization = function(props) {
48708
+ var $ = _c88(4);
48709
+ var t0;
48710
+ var t1;
48711
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48712
+ t0 = /* @__PURE__ */ _jsx86(AssistantVisualization, {});
48713
+ t1 = /* @__PURE__ */ _jsx86(AssistantInfo, {});
48714
+ $[0] = t0;
48715
+ $[1] = t1;
48716
+ } else {
48717
+ t0 = $[0];
48718
+ t1 = $[1];
48719
+ }
48720
+ var t2;
48721
+ if ($[2] !== props) {
48722
+ t2 = /* @__PURE__ */ _jsxs32(Root13, _objectSpread47(_objectSpread47({}, props), {}, {
48723
+ children: [
48724
+ t0,
48725
+ t1
48726
+ ]
48727
+ }));
48728
+ $[2] = props;
48729
+ $[3] = t2;
48730
+ } else {
48731
+ t2 = $[3];
48732
+ }
48733
+ return t2;
48734
+ };
48735
+ Visualization.Root = Root13;
48736
+ Visualization.Provider = Provider6;
48737
+ Visualization.AssistantVisualization = AssistantVisualization;
48738
+ Visualization.AssistantInfo = AssistantInfo;
47497
48739
  // src/components/threads/AudioThread/Status/index.tsx
47498
- import { c as _c55 } from "react-compiler-runtime";
48740
+ import { c as _c90 } from "react-compiler-runtime";
47499
48741
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
48742
+ import { c as _c89 } from "react-compiler-runtime";
47500
48743
  import { Flex as Flex33, Text as Text9 } from "@radix-ui/themes";
47501
48744
  import { jsx as _jsx87, jsxs as _jsxs33 } from "react/jsx-runtime";
47502
48745
  var html = function(_ref) {
@@ -47505,29 +48748,64 @@ var html = function(_ref) {
47505
48748
  return "\n ".concat(i * 100 / texts.length, '% {\n content: "').concat(texts[i], '";\n }\n ');
47506
48749
  }).join(""), "\n }");
47507
48750
  };
47508
- var StatusMessages = function(_ref2) {
47509
- var texts = _ref2.texts, className = _ref2.className, style = _ref2.style;
47510
- return /* @__PURE__ */ _jsxs33(Flex33, {
47511
- justify: "center",
47512
- pb: "5",
47513
- className: className,
47514
- style: style,
47515
- children: [
47516
- /* @__PURE__ */ _jsx87(Text9, {
47517
- size: "2",
47518
- weight: "regular",
47519
- color: "gray",
47520
- className: "status-messages-texts"
47521
- }),
47522
- /* @__PURE__ */ _jsx87("style", {
47523
- dangerouslySetInnerHTML: {
47524
- __html: html({
47525
- texts: texts
47526
- })
47527
- }
47528
- })
47529
- ]
47530
- });
48751
+ var StatusMessages = function(t0) {
48752
+ var $ = _c89(9);
48753
+ var texts = t0.texts, className = t0.className, style = t0.style;
48754
+ var t1;
48755
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48756
+ t1 = /* @__PURE__ */ _jsx87(Text9, {
48757
+ size: "2",
48758
+ weight: "regular",
48759
+ color: "gray",
48760
+ className: "status-messages-texts",
48761
+ align: "center"
48762
+ });
48763
+ $[0] = t1;
48764
+ } else {
48765
+ t1 = $[0];
48766
+ }
48767
+ var t2;
48768
+ if ($[1] !== texts) {
48769
+ t2 = html({
48770
+ texts: texts
48771
+ });
48772
+ $[1] = texts;
48773
+ $[2] = t2;
48774
+ } else {
48775
+ t2 = $[2];
48776
+ }
48777
+ var t3;
48778
+ if ($[3] !== t2) {
48779
+ t3 = /* @__PURE__ */ _jsx87("style", {
48780
+ dangerouslySetInnerHTML: {
48781
+ __html: t2
48782
+ }
48783
+ });
48784
+ $[3] = t2;
48785
+ $[4] = t3;
48786
+ } else {
48787
+ t3 = $[4];
48788
+ }
48789
+ var t4;
48790
+ if ($[5] !== className || $[6] !== style || $[7] !== t3) {
48791
+ t4 = /* @__PURE__ */ _jsxs33(Flex33, {
48792
+ justify: "center",
48793
+ pb: "5",
48794
+ className: className,
48795
+ style: style,
48796
+ children: [
48797
+ t1,
48798
+ t3
48799
+ ]
48800
+ });
48801
+ $[5] = className;
48802
+ $[6] = style;
48803
+ $[7] = t3;
48804
+ $[8] = t4;
48805
+ } else {
48806
+ t4 = $[8];
48807
+ }
48808
+ return t4;
47531
48809
  };
47532
48810
  // src/components/threads/AudioThread/Status/index.tsx
47533
48811
  import { jsx as _jsx88 } from "react/jsx-runtime";
@@ -47575,7 +48853,7 @@ function _toPrimitive48(t, r) {
47575
48853
  return ("string" === r ? String : Number)(t);
47576
48854
  }
47577
48855
  var Status = function(props) {
47578
- var $ = _c55(12);
48856
+ var $ = _c90(12);
47579
48857
  var status = useStatus().status;
47580
48858
  if (status === "recording") {
47581
48859
  var _t;
@@ -47672,9 +48950,10 @@ var Status = function(props) {
47672
48950
  return t1;
47673
48951
  };
47674
48952
  // src/components/threads/AudioThread/Form/index.tsx
47675
- import { c as _c57 } from "react-compiler-runtime";
48953
+ import { c as _c93 } from "react-compiler-runtime";
47676
48954
  import { Flex as Flex35 } from "@radix-ui/themes";
47677
48955
  // src/components/threads/AudioThread/Form/MicIcon.tsx
48956
+ import { c as _c91 } from "react-compiler-runtime";
47678
48957
  import { jsx as _jsx89 } from "react/jsx-runtime";
47679
48958
  function ownKeys49(e, r) {
47680
48959
  var t = Object.keys(e);
@@ -47720,28 +48999,44 @@ function _toPrimitive49(t, r) {
47720
48999
  return ("string" === r ? String : Number)(t);
47721
49000
  }
47722
49001
  var MicIcon = function(props) {
47723
- return /* @__PURE__ */ _jsx89("svg", _objectSpread49(_objectSpread49({
47724
- xmlns: "http://www.w3.org/2000/svg",
47725
- fill: "currentColor",
47726
- stroke: "currentColor",
47727
- strokeWidth: 0,
47728
- viewBox: "0 0 384 512",
47729
- height: "15",
47730
- width: "15"
47731
- }, props), {}, {
47732
- children: /* @__PURE__ */ _jsx89("path", {
49002
+ var $ = _c91(3);
49003
+ var t0;
49004
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49005
+ t0 = /* @__PURE__ */ _jsx89("path", {
47733
49006
  stroke: "none",
47734
49007
  d: "M192 0c-53 0-96 43-96 96v160c0 53 43 96 96 96s96-43 96-96V96c0-53-43-96-96-96zM64 216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 89.1 66.2 162.7 152 174.4V464h-48c-13.3 0-24 10.7-24 24s10.7 24 24 24h144c13.3 0 24-10.7 24-24s-10.7-24-24-24h-48v-33.6c85.8-11.7 152-85.3 152-174.4v-40c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 70.7-57.3 128-128 128S64 326.7 64 256v-40z"
47735
- })
47736
- }));
49008
+ });
49009
+ $[0] = t0;
49010
+ } else {
49011
+ t0 = $[0];
49012
+ }
49013
+ var t1;
49014
+ if ($[1] !== props) {
49015
+ t1 = /* @__PURE__ */ _jsx89("svg", _objectSpread49(_objectSpread49({
49016
+ xmlns: "http://www.w3.org/2000/svg",
49017
+ fill: "currentColor",
49018
+ stroke: "currentColor",
49019
+ strokeWidth: 0,
49020
+ viewBox: "0 0 384 512",
49021
+ height: "15",
49022
+ width: "15"
49023
+ }, props), {}, {
49024
+ children: t0
49025
+ }));
49026
+ $[1] = props;
49027
+ $[2] = t1;
49028
+ } else {
49029
+ t1 = $[2];
49030
+ }
49031
+ return t1;
47737
49032
  };
47738
49033
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
47739
- import { c as _c56 } from "react-compiler-runtime";
49034
+ import { c as _c92 } from "react-compiler-runtime";
47740
49035
  import { Flex as Flex34, IconButton as IconButton10 } from "@radix-ui/themes";
47741
49036
  import { StopIcon as StopIcon2, PauseIcon as PauseIcon2, ArrowUpIcon as ArrowUpIcon3, ResumeIcon } from "@radix-ui/react-icons";
47742
49037
  import { jsx as _jsx90, jsxs as _jsxs34 } from "react/jsx-runtime";
47743
49038
  var ActionButton = function() {
47744
- var $ = _c56(27);
49039
+ var $ = _c92(27);
47745
49040
  var status = useStatus().status;
47746
49041
  var audioThreadContext = useAudioThreadContext();
47747
49042
  var superinterfaceContext = useSuperinterfaceContext();
@@ -47979,7 +49274,7 @@ function _toPrimitive50(t, r) {
47979
49274
  return ("string" === r ? String : Number)(t);
47980
49275
  }
47981
49276
  var Form = function(props) {
47982
- var $ = _c57(17);
49277
+ var $ = _c93(17);
47983
49278
  var status = useStatus().status;
47984
49279
  var audioThreadContext = useAudioThreadContext();
47985
49280
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
@@ -48129,13 +49424,37 @@ function _toPrimitive51(t, r) {
48129
49424
  return ("string" === r ? String : Number)(t);
48130
49425
  }
48131
49426
  var AudioThread = function(props) {
48132
- return /* @__PURE__ */ _jsxs36(Root12, _objectSpread51(_objectSpread51({}, props), {}, {
48133
- children: [
48134
- /* @__PURE__ */ _jsx92(Visualization, {}),
48135
- /* @__PURE__ */ _jsx92(Status, {}),
48136
- /* @__PURE__ */ _jsx92(Form, {})
48137
- ]
48138
- }));
49427
+ var $ = _c94(5);
49428
+ var t0;
49429
+ var t1;
49430
+ var t2;
49431
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49432
+ t0 = /* @__PURE__ */ _jsx92(Visualization, {});
49433
+ t1 = /* @__PURE__ */ _jsx92(Status, {});
49434
+ t2 = /* @__PURE__ */ _jsx92(Form, {});
49435
+ $[0] = t0;
49436
+ $[1] = t1;
49437
+ $[2] = t2;
49438
+ } else {
49439
+ t0 = $[0];
49440
+ t1 = $[1];
49441
+ t2 = $[2];
49442
+ }
49443
+ var t3;
49444
+ if ($[3] !== props) {
49445
+ t3 = /* @__PURE__ */ _jsxs36(Root12, _objectSpread51(_objectSpread51({}, props), {}, {
49446
+ children: [
49447
+ t0,
49448
+ t1,
49449
+ t2
49450
+ ]
49451
+ }));
49452
+ $[3] = props;
49453
+ $[4] = t3;
49454
+ } else {
49455
+ t3 = $[4];
49456
+ }
49457
+ return t3;
48139
49458
  };
48140
49459
  AudioThread.Root = Root12;
48141
49460
  AudioThread.Visualization = Visualization;
@@ -48187,14 +49506,34 @@ function _toPrimitive52(t, r) {
48187
49506
  return ("string" === r ? String : Number)(t);
48188
49507
  }
48189
49508
  var AudioThreadDialog = function(props) {
48190
- return /* @__PURE__ */ _jsxs37(Root9, _objectSpread52(_objectSpread52({}, props), {}, {
48191
- children: [
48192
- /* @__PURE__ */ _jsx93(Content7.Root, {
48193
- children: /* @__PURE__ */ _jsx93(AudioThread, {})
48194
- }),
48195
- /* @__PURE__ */ _jsx93(Trigger, {})
48196
- ]
48197
- }));
49509
+ var $ = _c95(4);
49510
+ var t0;
49511
+ var t1;
49512
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49513
+ t0 = /* @__PURE__ */ _jsx93(Content7.Root, {
49514
+ children: /* @__PURE__ */ _jsx93(AudioThread, {})
49515
+ });
49516
+ t1 = /* @__PURE__ */ _jsx93(Trigger, {});
49517
+ $[0] = t0;
49518
+ $[1] = t1;
49519
+ } else {
49520
+ t0 = $[0];
49521
+ t1 = $[1];
49522
+ }
49523
+ var t2;
49524
+ if ($[2] !== props) {
49525
+ t2 = /* @__PURE__ */ _jsxs37(Root9, _objectSpread52(_objectSpread52({}, props), {}, {
49526
+ children: [
49527
+ t0,
49528
+ t1
49529
+ ]
49530
+ }));
49531
+ $[2] = props;
49532
+ $[3] = t2;
49533
+ } else {
49534
+ t2 = $[3];
49535
+ }
49536
+ return t2;
48198
49537
  };
48199
49538
  AudioThreadDialog.Root = Root9;
48200
49539
  AudioThreadDialog.Trigger = Trigger;
@@ -48689,10 +50028,10 @@ var useWebrtcAudioRuntime = function() {
48689
50028
  ]);
48690
50029
  };
48691
50030
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
48692
- import { c as _c58 } from "react-compiler-runtime";
50031
+ import { c as _c96 } from "react-compiler-runtime";
48693
50032
  import { jsx as _jsx94 } from "react/jsx-runtime";
48694
50033
  var WebrtcAudioRuntimeProvider = function(t0) {
48695
- var $ = _c58(5);
50034
+ var $ = _c96(5);
48696
50035
  var children = t0.children;
48697
50036
  var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
48698
50037
  var t1;
@@ -48720,22 +50059,22 @@ var WebrtcAudioRuntimeProvider = function(t0) {
48720
50059
  return t2;
48721
50060
  };
48722
50061
  // src/components/markdown/MarkdownProvider/index.tsx
48723
- import { c as _c59 } from "react-compiler-runtime";
50062
+ import { c as _c97 } from "react-compiler-runtime";
48724
50063
  import { useMemo as useMemo21 } from "react";
48725
50064
  import { jsx as _jsx95 } from "react/jsx-runtime";
48726
- var _excluded6 = [
50065
+ var _excluded7 = [
48727
50066
  "children"
48728
50067
  ];
48729
- function _objectWithoutProperties6(e, t) {
50068
+ function _objectWithoutProperties7(e, t) {
48730
50069
  if (null == e) return {};
48731
- var o, r, i = _objectWithoutPropertiesLoose6(e, t);
50070
+ var o, r, i = _objectWithoutPropertiesLoose7(e, t);
48732
50071
  if (Object.getOwnPropertySymbols) {
48733
50072
  var n = Object.getOwnPropertySymbols(e);
48734
50073
  for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
48735
50074
  }
48736
50075
  return i;
48737
50076
  }
48738
- function _objectWithoutPropertiesLoose6(r, e) {
50077
+ function _objectWithoutPropertiesLoose7(r, e) {
48739
50078
  if (null == r) return {};
48740
50079
  var t = {};
48741
50080
  for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
@@ -48745,13 +50084,13 @@ function _objectWithoutPropertiesLoose6(r, e) {
48745
50084
  return t;
48746
50085
  }
48747
50086
  var MarkdownProvider = function(t0) {
48748
- var $ = _c59(9);
50087
+ var $ = _c97(9);
48749
50088
  var children;
48750
50089
  var rest;
48751
50090
  if ($[0] !== t0) {
48752
50091
  var _t = t0;
48753
50092
  children = _t.children;
48754
- rest = _objectWithoutProperties6(_t, _excluded6);
50093
+ rest = _objectWithoutProperties7(_t, _excluded7);
48755
50094
  _t;
48756
50095
  $[0] = t0;
48757
50096
  $[1] = children;
@@ -48788,18 +50127,18 @@ var MarkdownProvider = function(t0) {
48788
50127
  return t3;
48789
50128
  };
48790
50129
  // src/components/annotations/SourceAnnotation/index.tsx
48791
- import { c as _c62 } from "react-compiler-runtime";
50130
+ import { c as _c100 } from "react-compiler-runtime";
48792
50131
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
48793
- import { c as _c61 } from "react-compiler-runtime";
50132
+ import { c as _c99 } from "react-compiler-runtime";
48794
50133
  import { useState as useState13 } from "react";
48795
50134
  import { QuoteIcon as QuoteIcon2 } from "@radix-ui/react-icons";
48796
50135
  import { Dialog, VisuallyHidden, IconButton as IconButton11 } from "@radix-ui/themes";
48797
50136
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
48798
- import { c as _c60 } from "react-compiler-runtime";
50137
+ import { c as _c98 } from "react-compiler-runtime";
48799
50138
  import { Flex as Flex36, Card as Card5, Inset as Inset3 } from "@radix-ui/themes";
48800
50139
  import { jsx as _jsx96 } from "react/jsx-runtime";
48801
50140
  var Content9 = function(t0) {
48802
- var $ = _c60(5);
50141
+ var $ = _c98(5);
48803
50142
  var fileId = t0.fileId;
48804
50143
  var superinterfaceContext = useSuperinterfaceContext();
48805
50144
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -48865,7 +50204,7 @@ var Content9 = function(t0) {
48865
50204
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
48866
50205
  import { jsx as _jsx97, jsxs as _jsxs38, Fragment as _Fragment5 } from "react/jsx-runtime";
48867
50206
  var FileCitation = function(t0) {
48868
- var $ = _c61(18);
50207
+ var $ = _c99(18);
48869
50208
  var annotation = t0.annotation;
48870
50209
  var _useState13 = _sliced_to_array(useState13(null), 2), activeFileId = _useState13[0], setActiveFileId = _useState13[1];
48871
50210
  var t1;
@@ -48992,19 +50331,19 @@ var FileCitation = function(t0) {
48992
50331
  };
48993
50332
  // src/components/annotations/SourceAnnotation/index.tsx
48994
50333
  import { jsx as _jsx98 } from "react/jsx-runtime";
48995
- var _excluded7 = [
50334
+ var _excluded8 = [
48996
50335
  "children"
48997
50336
  ];
48998
- function _objectWithoutProperties7(e, t) {
50337
+ function _objectWithoutProperties8(e, t) {
48999
50338
  if (null == e) return {};
49000
- var o, r, i = _objectWithoutPropertiesLoose7(e, t);
50339
+ var o, r, i = _objectWithoutPropertiesLoose8(e, t);
49001
50340
  if (Object.getOwnPropertySymbols) {
49002
50341
  var n = Object.getOwnPropertySymbols(e);
49003
50342
  for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
49004
50343
  }
49005
50344
  return i;
49006
50345
  }
49007
- function _objectWithoutPropertiesLoose7(r, e) {
50346
+ function _objectWithoutPropertiesLoose8(r, e) {
49008
50347
  if (null == r) return {};
49009
50348
  var t = {};
49010
50349
  for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
@@ -49014,13 +50353,13 @@ function _objectWithoutPropertiesLoose7(r, e) {
49014
50353
  return t;
49015
50354
  }
49016
50355
  var SourceAnnotation = function(t0) {
49017
- var $ = _c62(10);
50356
+ var $ = _c100(10);
49018
50357
  var children;
49019
50358
  var rest;
49020
50359
  if ($[0] !== t0) {
49021
50360
  var _t = t0;
49022
50361
  children = _t.children;
49023
- rest = _objectWithoutProperties7(_t, _excluded7);
50362
+ rest = _objectWithoutProperties8(_t, _excluded8);
49024
50363
  _t;
49025
50364
  $[0] = t0;
49026
50365
  $[1] = children;
@@ -49071,7 +50410,7 @@ var SourceAnnotation = function(t0) {
49071
50410
  return null;
49072
50411
  };
49073
50412
  // src/components/avatars/Avatar.tsx
49074
- import { c as _c65 } from "react-compiler-runtime";
50413
+ import { c as _c103 } from "react-compiler-runtime";
49075
50414
  // src/lib/enums/index.ts
49076
50415
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
49077
50416
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -49096,7 +50435,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
49096
50435
  // src/components/avatars/Avatar.tsx
49097
50436
  import { Avatar as RadixAvatar } from "@radix-ui/themes";
49098
50437
  // src/components/imageAvatars/ImageAvatar/index.tsx
49099
- import { c as _c63 } from "react-compiler-runtime";
50438
+ import { c as _c101 } from "react-compiler-runtime";
49100
50439
  import { Avatar as Avatar4 } from "@radix-ui/themes";
49101
50440
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
49102
50441
  var width = function(_ref) {
@@ -49150,7 +50489,7 @@ var optimizedSrc = function(_ref) {
49150
50489
  // src/components/imageAvatars/ImageAvatar/index.tsx
49151
50490
  import { jsx as _jsx99 } from "react/jsx-runtime";
49152
50491
  var ImageAvatar = function(t0) {
49153
- var $ = _c63(9);
50492
+ var $ = _c101(9);
49154
50493
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
49155
50494
  var superinterfaceContext = useSuperinterfaceContext();
49156
50495
  var t1;
@@ -49187,7 +50526,7 @@ var ImageAvatar = function(t0) {
49187
50526
  return t2;
49188
50527
  };
49189
50528
  // src/components/iconAvatars/IconAvatar.tsx
49190
- import { c as _c64 } from "react-compiler-runtime";
50529
+ import { c as _c102 } from "react-compiler-runtime";
49191
50530
  import { useMemo as useMemo22 } from "react";
49192
50531
  import { Avatar as Avatar5 } from "@radix-ui/themes";
49193
50532
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -49197,7 +50536,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
49197
50536
  // src/components/iconAvatars/IconAvatar.tsx
49198
50537
  import { jsx as _jsx100 } from "react/jsx-runtime";
49199
50538
  var IconAvatar = function(t0) {
49200
- var $ = _c64(7);
50539
+ var $ = _c102(7);
49201
50540
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
49202
50541
  var t1;
49203
50542
  t1 = iconAvatarComponents[iconAvatar.name];
@@ -49231,7 +50570,7 @@ var IconAvatar = function(t0) {
49231
50570
  // src/components/avatars/Avatar.tsx
49232
50571
  import { jsx as _jsx101 } from "react/jsx-runtime";
49233
50572
  var Avatar6 = function(t0) {
49234
- var $ = _c65(14);
50573
+ var $ = _c103(14);
49235
50574
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
49236
50575
  var size = t1 === void 0 ? "1" : t1;
49237
50576
  if (avatar) {
@@ -49292,7 +50631,7 @@ var Avatar6 = function(t0) {
49292
50631
  return t2;
49293
50632
  };
49294
50633
  // src/components/components/ComponentsProvider.tsx
49295
- import { c as _c66 } from "react-compiler-runtime";
50634
+ import { c as _c104 } from "react-compiler-runtime";
49296
50635
  import { useMemo as useMemo23 } from "react";
49297
50636
  // src/hooks/components/useComponents.ts
49298
50637
  import { useContext as useContext18 } from "react";
@@ -49301,19 +50640,19 @@ var useComponents = function() {
49301
50640
  };
49302
50641
  // src/components/components/ComponentsProvider.tsx
49303
50642
  import { jsx as _jsx102 } from "react/jsx-runtime";
49304
- var _excluded8 = [
50643
+ var _excluded9 = [
49305
50644
  "children"
49306
50645
  ];
49307
- function _objectWithoutProperties8(e, t) {
50646
+ function _objectWithoutProperties9(e, t) {
49308
50647
  if (null == e) return {};
49309
- var o, r, i = _objectWithoutPropertiesLoose8(e, t);
50648
+ var o, r, i = _objectWithoutPropertiesLoose9(e, t);
49310
50649
  if (Object.getOwnPropertySymbols) {
49311
50650
  var n = Object.getOwnPropertySymbols(e);
49312
50651
  for(r = 0; r < n.length; r++)o = n[r], -1 === t.indexOf(o) && ({}).propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
49313
50652
  }
49314
50653
  return i;
49315
50654
  }
49316
- function _objectWithoutPropertiesLoose8(r, e) {
50655
+ function _objectWithoutPropertiesLoose9(r, e) {
49317
50656
  if (null == r) return {};
49318
50657
  var t = {};
49319
50658
  for(var n in r)if (({}).hasOwnProperty.call(r, n)) {
@@ -49323,13 +50662,13 @@ function _objectWithoutPropertiesLoose8(r, e) {
49323
50662
  return t;
49324
50663
  }
49325
50664
  var ComponentsProvider = function(t0) {
49326
- var $ = _c66(9);
50665
+ var $ = _c104(9);
49327
50666
  var children;
49328
50667
  var rest;
49329
50668
  if ($[0] !== t0) {
49330
50669
  var _t = t0;
49331
50670
  children = _t.children;
49332
- rest = _objectWithoutProperties8(_t, _excluded8);
50671
+ rest = _objectWithoutProperties9(_t, _excluded9);
49333
50672
  _t;
49334
50673
  $[0] = t0;
49335
50674
  $[1] = children;
@@ -49366,11 +50705,11 @@ var ComponentsProvider = function(t0) {
49366
50705
  return t3;
49367
50706
  };
49368
50707
  // src/components/assistants/AssistantProvider/index.tsx
49369
- import { c as _c67 } from "react-compiler-runtime";
50708
+ import { c as _c105 } from "react-compiler-runtime";
49370
50709
  import { jsx as _jsx103 } from "react/jsx-runtime";
49371
50710
  var AssistantProvider = function(t0) {
49372
50711
  var _assistant$name;
49373
- var $ = _c67(10);
50712
+ var $ = _c105(10);
49374
50713
  var children = t0.children;
49375
50714
  var superinterfaceContext = useSuperinterfaceContext();
49376
50715
  var t1;