@superinterface/react 3.20.0 → 3.20.2

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.cjs CHANGED
@@ -37941,26 +37941,29 @@ var SuperinterfaceProvider = function(_ref) {
37941
37941
  children: children
37942
37942
  });
37943
37943
  };
37944
+ // src/components/threads/Thread/index.tsx
37945
+ var import_react_compiler_runtime72 = require("react-compiler-runtime");
37944
37946
  // src/components/threads/Thread/Messages/index.tsx
37947
+ var import_react_compiler_runtime62 = require("react-compiler-runtime");
37945
37948
  var import_themes46 = require("@radix-ui/themes");
37946
37949
  // src/components/threads/Thread/Message/index.tsx
37947
- var import_react_compiler_runtime26 = require("react-compiler-runtime");
37950
+ var import_react_compiler_runtime47 = require("react-compiler-runtime");
37948
37951
  var import_react31 = require("react");
37949
37952
  var import_themes32 = require("@radix-ui/themes");
37950
37953
  // src/components/runSteps/RunSteps/index.tsx
37951
- var import_react_compiler_runtime8 = require("react-compiler-runtime");
37954
+ var import_react_compiler_runtime16 = require("react-compiler-runtime");
37952
37955
  var import_themes9 = require("@radix-ui/themes");
37953
37956
  var import_react9 = require("react");
37954
37957
  // src/contexts/components/ComponentsContext/index.tsx
37955
37958
  var import_react8 = require("react");
37956
37959
  // src/components/runSteps/RunStep/index.tsx
37957
- var import_react_compiler_runtime6 = require("react-compiler-runtime");
37960
+ var import_react_compiler_runtime11 = require("react-compiler-runtime");
37958
37961
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
37959
- var import_react_compiler_runtime5 = require("react-compiler-runtime");
37962
+ var import_react_compiler_runtime10 = require("react-compiler-runtime");
37960
37963
  var import_react6 = require("react");
37961
37964
  var import_themes5 = require("@radix-ui/themes");
37962
37965
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
37963
- var import_react_compiler_runtime4 = require("react-compiler-runtime");
37966
+ var import_react_compiler_runtime9 = require("react-compiler-runtime");
37964
37967
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fn/index.tsx
37965
37968
  var import_react_compiler_runtime = require("react-compiler-runtime");
37966
37969
  var import_react5 = require("react");
@@ -37991,42 +37994,70 @@ var Fn = function(t0) {
37991
37994
  return t1;
37992
37995
  };
37993
37996
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/index.tsx
37997
+ var import_react_compiler_runtime6 = require("react-compiler-runtime");
37994
37998
  var import_themes4 = require("@radix-ui/themes");
37995
37999
  // src/components/toolCalls/ToolCallBase/index.tsx
38000
+ var import_react_compiler_runtime2 = require("react-compiler-runtime");
37996
38001
  var import_themes = require("@radix-ui/themes");
37997
38002
  var import_jsx_runtime3 = require("react/jsx-runtime");
37998
- var ToolCallBase = function(_ref) {
37999
- var children = _ref.children;
38000
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes.Flex, {
38001
- py: "1",
38002
- ml: "-2",
38003
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes.Button, {
38004
- size: "1",
38005
- color: "gold",
38006
- variant: "outline",
38007
- style: {
38008
- boxShadow: "none"
38009
- },
38010
- children: children
38011
- })
38012
- });
38003
+ var ToolCallBase = function(t0) {
38004
+ var $ = (0, import_react_compiler_runtime2.c)(3);
38005
+ var children = t0.children;
38006
+ var t1;
38007
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
38008
+ t1 = {
38009
+ boxShadow: "none"
38010
+ };
38011
+ $[0] = t1;
38012
+ } else {
38013
+ t1 = $[0];
38014
+ }
38015
+ var t2;
38016
+ if ($[1] !== children) {
38017
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes.Flex, {
38018
+ py: "1",
38019
+ ml: "-2",
38020
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes.Button, {
38021
+ size: "1",
38022
+ color: "gold",
38023
+ variant: "outline",
38024
+ style: t1,
38025
+ children: children
38026
+ })
38027
+ });
38028
+ $[1] = children;
38029
+ $[2] = t2;
38030
+ } else {
38031
+ t2 = $[2];
38032
+ }
38033
+ return t2;
38013
38034
  };
38014
38035
  // src/components/toolCalls/ToolCallBase/ToolCallTitle.tsx
38036
+ var import_react_compiler_runtime3 = require("react-compiler-runtime");
38015
38037
  var import_themes2 = require("@radix-ui/themes");
38016
38038
  var import_jsx_runtime4 = require("react/jsx-runtime");
38017
- var ToolCallTitle = function(_ref) {
38018
- var children = _ref.children;
38019
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_themes2.Text, {
38020
- weight: "regular",
38021
- children: children
38022
- });
38039
+ var ToolCallTitle = function(t0) {
38040
+ var $ = (0, import_react_compiler_runtime3.c)(2);
38041
+ var children = t0.children;
38042
+ var t1;
38043
+ if ($[0] !== children) {
38044
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_themes2.Text, {
38045
+ weight: "regular",
38046
+ children: children
38047
+ });
38048
+ $[0] = children;
38049
+ $[1] = t1;
38050
+ } else {
38051
+ t1 = $[1];
38052
+ }
38053
+ return t1;
38023
38054
  };
38024
38055
  // src/components/toolCalls/ToolCallBase/ToolCallIcon.tsx
38025
- var import_react_compiler_runtime2 = require("react-compiler-runtime");
38056
+ var import_react_compiler_runtime4 = require("react-compiler-runtime");
38026
38057
  var import_react_icons = require("@radix-ui/react-icons");
38027
38058
  var import_jsx_runtime5 = require("react/jsx-runtime");
38028
38059
  var ToolCallIcon = function(t0) {
38029
- var $ = (0, import_react_compiler_runtime2.c)(3);
38060
+ var $ = (0, import_react_compiler_runtime4.c)(3);
38030
38061
  var runStep = t0.runStep;
38031
38062
  if (runStep.completed_at) {
38032
38063
  var t1;
@@ -38060,11 +38091,11 @@ var ToolCallIcon = function(t0) {
38060
38091
  }
38061
38092
  };
38062
38093
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/Content.tsx
38063
- var import_react_compiler_runtime3 = require("react-compiler-runtime");
38094
+ var import_react_compiler_runtime5 = require("react-compiler-runtime");
38064
38095
  var import_themes3 = require("@radix-ui/themes");
38065
38096
  var import_jsx_runtime6 = require("react/jsx-runtime");
38066
38097
  var Content = function(t0) {
38067
- var $ = (0, import_react_compiler_runtime3.c)(10);
38098
+ var $ = (0, import_react_compiler_runtime5.c)(10);
38068
38099
  var codeInterpreter = t0.codeInterpreter;
38069
38100
  if (!codeInterpreter.input) {
38070
38101
  return null;
@@ -38128,70 +38159,163 @@ var Content = function(t0) {
38128
38159
  };
38129
38160
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/CodeInterpreter/index.tsx
38130
38161
  var import_jsx_runtime7 = require("react/jsx-runtime");
38131
- var CodeInterpreter = function(_ref) {
38132
- var codeInterpreter = _ref.codeInterpreter, runStep = _ref.runStep;
38133
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_themes4.Popover.Root, {
38134
- children: [
38135
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes4.Popover.Trigger, {
38136
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes4.Flex, {
38137
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(ToolCallBase, {
38138
- children: [
38139
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ToolCallIcon, {
38140
- runStep: runStep
38141
- }),
38142
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ToolCallTitle, {
38143
- children: "Using code interpreter"
38144
- })
38145
- ]
38146
- })
38147
- })
38148
- }),
38149
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes4.Popover.Content, {
38150
- maxHeight: "200px",
38151
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Content, {
38152
- codeInterpreter: codeInterpreter
38162
+ var CodeInterpreter = function(t0) {
38163
+ var $ = (0, import_react_compiler_runtime6.c)(10);
38164
+ var codeInterpreter = t0.codeInterpreter, runStep = t0.runStep;
38165
+ var t1;
38166
+ if ($[0] !== runStep) {
38167
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ToolCallIcon, {
38168
+ runStep: runStep
38169
+ });
38170
+ $[0] = runStep;
38171
+ $[1] = t1;
38172
+ } else {
38173
+ t1 = $[1];
38174
+ }
38175
+ var t2;
38176
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
38177
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ToolCallTitle, {
38178
+ children: "Using code interpreter"
38179
+ });
38180
+ $[2] = t2;
38181
+ } else {
38182
+ t2 = $[2];
38183
+ }
38184
+ var t3;
38185
+ if ($[3] !== t1) {
38186
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes4.Popover.Trigger, {
38187
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes4.Flex, {
38188
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(ToolCallBase, {
38189
+ children: [
38190
+ t1,
38191
+ t2
38192
+ ]
38153
38193
  })
38154
38194
  })
38155
- ]
38156
- });
38195
+ });
38196
+ $[3] = t1;
38197
+ $[4] = t3;
38198
+ } else {
38199
+ t3 = $[4];
38200
+ }
38201
+ var t4;
38202
+ if ($[5] !== codeInterpreter) {
38203
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_themes4.Popover.Content, {
38204
+ maxHeight: "200px",
38205
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Content, {
38206
+ codeInterpreter: codeInterpreter
38207
+ })
38208
+ });
38209
+ $[5] = codeInterpreter;
38210
+ $[6] = t4;
38211
+ } else {
38212
+ t4 = $[6];
38213
+ }
38214
+ var t5;
38215
+ if ($[7] !== t3 || $[8] !== t4) {
38216
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_themes4.Popover.Root, {
38217
+ children: [
38218
+ t3,
38219
+ t4
38220
+ ]
38221
+ });
38222
+ $[7] = t3;
38223
+ $[8] = t4;
38224
+ $[9] = t5;
38225
+ } else {
38226
+ t5 = $[9];
38227
+ }
38228
+ return t5;
38157
38229
  };
38158
38230
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/FileSearch.tsx
38231
+ var import_react_compiler_runtime7 = require("react-compiler-runtime");
38159
38232
  var import_jsx_runtime8 = require("react/jsx-runtime");
38160
- var FileSearch = function(_ref) {
38161
- var runStep = _ref.runStep, toolCall = _ref.toolCall;
38162
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(ToolCallBase, {
38163
- children: [
38164
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ToolCallIcon, {
38165
- runStep: runStep
38166
- }),
38167
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ToolCallTitle, {
38168
- children: "Searching files"
38169
- })
38170
- ]
38171
- });
38233
+ var FileSearch = function(t0) {
38234
+ var $ = (0, import_react_compiler_runtime7.c)(5);
38235
+ var runStep = t0.runStep;
38236
+ var t1;
38237
+ if ($[0] !== runStep) {
38238
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ToolCallIcon, {
38239
+ runStep: runStep
38240
+ });
38241
+ $[0] = runStep;
38242
+ $[1] = t1;
38243
+ } else {
38244
+ t1 = $[1];
38245
+ }
38246
+ var t2;
38247
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
38248
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ToolCallTitle, {
38249
+ children: "Searching files"
38250
+ });
38251
+ $[2] = t2;
38252
+ } else {
38253
+ t2 = $[2];
38254
+ }
38255
+ var t3;
38256
+ if ($[3] !== t1) {
38257
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(ToolCallBase, {
38258
+ children: [
38259
+ t1,
38260
+ t2
38261
+ ]
38262
+ });
38263
+ $[3] = t1;
38264
+ $[4] = t3;
38265
+ } else {
38266
+ t3 = $[4];
38267
+ }
38268
+ return t3;
38172
38269
  };
38173
38270
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/Fallback.tsx
38271
+ var import_react_compiler_runtime8 = require("react-compiler-runtime");
38174
38272
  var import_jsx_runtime9 = require("react/jsx-runtime");
38175
- var Fallback = function(_ref) {
38176
- var runStep = _ref.runStep, toolCall = _ref.toolCall;
38177
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(ToolCallBase, {
38178
- children: [
38179
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToolCallIcon, {
38180
- runStep: runStep
38181
- }),
38182
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(ToolCallTitle, {
38183
- children: [
38184
- "Using tool: ",
38185
- toolCall.type
38186
- ]
38187
- })
38188
- ]
38189
- });
38273
+ var Fallback = function(t0) {
38274
+ var $ = (0, import_react_compiler_runtime8.c)(7);
38275
+ var runStep = t0.runStep, toolCall = t0.toolCall;
38276
+ var t1;
38277
+ if ($[0] !== runStep) {
38278
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToolCallIcon, {
38279
+ runStep: runStep
38280
+ });
38281
+ $[0] = runStep;
38282
+ $[1] = t1;
38283
+ } else {
38284
+ t1 = $[1];
38285
+ }
38286
+ var t2;
38287
+ if ($[2] !== toolCall.type) {
38288
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(ToolCallTitle, {
38289
+ children: [
38290
+ "Using tool: ",
38291
+ toolCall.type
38292
+ ]
38293
+ });
38294
+ $[2] = toolCall.type;
38295
+ $[3] = t2;
38296
+ } else {
38297
+ t2 = $[3];
38298
+ }
38299
+ var t3;
38300
+ if ($[4] !== t1 || $[5] !== t2) {
38301
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(ToolCallBase, {
38302
+ children: [
38303
+ t1,
38304
+ t2
38305
+ ]
38306
+ });
38307
+ $[4] = t1;
38308
+ $[5] = t2;
38309
+ $[6] = t3;
38310
+ } else {
38311
+ t3 = $[6];
38312
+ }
38313
+ return t3;
38190
38314
  };
38191
38315
  // src/components/runSteps/RunStep/ToolCalls/ToolCall/index.tsx
38192
38316
  var import_jsx_runtime10 = require("react/jsx-runtime");
38193
38317
  var ToolCall = function(t0) {
38194
- var $ = (0, import_react_compiler_runtime4.c)(12);
38318
+ var $ = (0, import_react_compiler_runtime9.c)(12);
38195
38319
  var toolCall = t0.toolCall, runStep = t0.runStep;
38196
38320
  if (toolCall.type === "function") {
38197
38321
  var _t;
@@ -38254,17 +38378,28 @@ var ToolCall = function(t0) {
38254
38378
  };
38255
38379
  // src/components/runSteps/RunStep/ToolCalls/index.tsx
38256
38380
  var import_jsx_runtime11 = require("react/jsx-runtime");
38257
- var Root = function(_ref) {
38258
- var children = _ref.children, className = _ref.className, style = _ref.style;
38259
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes5.Flex, {
38260
- direction: "column",
38261
- className: className,
38262
- style: style,
38263
- children: children
38264
- });
38381
+ var Root = function(t0) {
38382
+ var $ = (0, import_react_compiler_runtime10.c)(4);
38383
+ var children = t0.children, className = t0.className, style = t0.style;
38384
+ var t1;
38385
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
38386
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_themes5.Flex, {
38387
+ direction: "column",
38388
+ className: className,
38389
+ style: style,
38390
+ children: children
38391
+ });
38392
+ $[0] = children;
38393
+ $[1] = className;
38394
+ $[2] = style;
38395
+ $[3] = t1;
38396
+ } else {
38397
+ t1 = $[3];
38398
+ }
38399
+ return t1;
38265
38400
  };
38266
38401
  var StartingToolCalls = function() {
38267
- var $ = (0, import_react_compiler_runtime5.c)(2);
38402
+ var $ = (0, import_react_compiler_runtime10.c)(2);
38268
38403
  var componentsContext = (0, import_react6.useContext)(ComponentsContext);
38269
38404
  var StartingToolCalls3 = componentsContext.components.StartingToolCalls;
38270
38405
  var t0;
@@ -38277,21 +38412,58 @@ var StartingToolCalls = function() {
38277
38412
  }
38278
38413
  return t0;
38279
38414
  };
38280
- var ToolCalls = function(_ref2) {
38281
- var stepDetails = _ref2.stepDetails, runStep = _ref2.runStep, className = _ref2.className, style = _ref2.style;
38282
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Root, {
38283
- className: className,
38284
- style: style,
38285
- children: [
38286
- !stepDetails.tool_calls.length && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(StartingToolCalls, {}),
38287
- stepDetails.tool_calls.map(function(toolCall) {
38415
+ var ToolCalls = function(t0) {
38416
+ var $ = (0, import_react_compiler_runtime10.c)(12);
38417
+ var stepDetails = t0.stepDetails, runStep = t0.runStep, className = t0.className, style = t0.style;
38418
+ var t1;
38419
+ if ($[0] !== stepDetails.tool_calls.length) {
38420
+ t1 = !stepDetails.tool_calls.length && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(StartingToolCalls, {});
38421
+ $[0] = stepDetails.tool_calls.length;
38422
+ $[1] = t1;
38423
+ } else {
38424
+ t1 = $[1];
38425
+ }
38426
+ var t2;
38427
+ if ($[2] !== runStep || $[3] !== stepDetails.tool_calls) {
38428
+ var _t;
38429
+ if ($[5] !== runStep) {
38430
+ _t = function(toolCall) {
38288
38431
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ToolCall, {
38289
38432
  toolCall: toolCall,
38290
38433
  runStep: runStep
38291
38434
  }, toolCall.id);
38292
- })
38293
- ]
38294
- });
38435
+ };
38436
+ $[5] = runStep;
38437
+ $[6] = _t;
38438
+ } else {
38439
+ _t = $[6];
38440
+ }
38441
+ t2 = stepDetails.tool_calls.map(_t);
38442
+ $[2] = runStep;
38443
+ $[3] = stepDetails.tool_calls;
38444
+ $[4] = t2;
38445
+ } else {
38446
+ t2 = $[4];
38447
+ }
38448
+ var t3;
38449
+ if ($[7] !== className || $[8] !== style || $[9] !== t1 || $[10] !== t2) {
38450
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Root, {
38451
+ className: className,
38452
+ style: style,
38453
+ children: [
38454
+ t1,
38455
+ t2
38456
+ ]
38457
+ });
38458
+ $[7] = className;
38459
+ $[8] = style;
38460
+ $[9] = t1;
38461
+ $[10] = t2;
38462
+ $[11] = t3;
38463
+ } else {
38464
+ t3 = $[11];
38465
+ }
38466
+ return t3;
38295
38467
  };
38296
38468
  ToolCalls.Root = Root;
38297
38469
  ToolCalls.StartingToolCalls = StartingToolCalls;
@@ -38299,7 +38471,7 @@ ToolCalls.ToolCall = ToolCall;
38299
38471
  // src/components/runSteps/RunStep/index.tsx
38300
38472
  var import_jsx_runtime12 = require("react/jsx-runtime");
38301
38473
  var RunStep = function(t0) {
38302
- var $ = (0, import_react_compiler_runtime6.c)(4);
38474
+ var $ = (0, import_react_compiler_runtime11.c)(4);
38303
38475
  var runStep = t0.runStep, className = t0.className, style = t0.style;
38304
38476
  if (runStep.step_details.type === "tool_calls") {
38305
38477
  var t1;
@@ -38322,10 +38494,13 @@ var RunStep = function(t0) {
38322
38494
  return null;
38323
38495
  };
38324
38496
  RunStep.ToolCalls = ToolCalls;
38497
+ // src/components/functions/Function/index.tsx
38498
+ var import_react_compiler_runtime14 = require("react-compiler-runtime");
38325
38499
  // src/components/functions/FunctionBase/index.tsx
38500
+ var import_react_compiler_runtime13 = require("react-compiler-runtime");
38326
38501
  var import_themes7 = require("@radix-ui/themes");
38327
38502
  // src/components/functions/FunctionBase/Content/index.tsx
38328
- var import_react_compiler_runtime7 = require("react-compiler-runtime");
38503
+ var import_react_compiler_runtime12 = require("react-compiler-runtime");
38329
38504
  var import_react7 = require("react");
38330
38505
  var import_themes6 = require("@radix-ui/themes");
38331
38506
  // src/components/functions/FunctionBase/Content/lib/formattedJsonOrRaw.ts
@@ -38347,7 +38522,7 @@ var formattedJsonOrRaw = function(_ref) {
38347
38522
  // src/components/functions/FunctionBase/Content/index.tsx
38348
38523
  var import_jsx_runtime13 = require("react/jsx-runtime");
38349
38524
  var Content2 = function(t0) {
38350
- var $ = (0, import_react_compiler_runtime7.c)(12);
38525
+ var $ = (0, import_react_compiler_runtime12.c)(12);
38351
38526
  var fn = t0.fn;
38352
38527
  var t1;
38353
38528
  var t2;
@@ -38426,34 +38601,84 @@ var Content2 = function(t0) {
38426
38601
  };
38427
38602
  // src/components/functions/FunctionBase/index.tsx
38428
38603
  var import_jsx_runtime14 = require("react/jsx-runtime");
38429
- var FunctionBase = function(_ref) {
38430
- var fn = _ref.fn, runStep = _ref.runStep, title2 = _ref.title;
38431
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_themes7.Popover.Root, {
38432
- children: [
38433
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes7.Popover.Trigger, {
38434
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes7.Flex, {
38435
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(ToolCallBase, {
38436
- children: [
38437
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ToolCallIcon, {
38438
- runStep: runStep
38439
- }),
38440
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ToolCallTitle, {
38441
- children: title2
38442
- })
38443
- ]
38444
- })
38445
- })
38446
- }),
38447
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes7.Popover.Content, {
38448
- style: {
38449
- maxHeight: "200px"
38450
- },
38451
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Content2, {
38452
- fn: fn
38604
+ var FunctionBase = function(t0) {
38605
+ var $ = (0, import_react_compiler_runtime13.c)(13);
38606
+ var fn = t0.fn, runStep = t0.runStep, title2 = t0.title;
38607
+ var t1;
38608
+ if ($[0] !== runStep) {
38609
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ToolCallIcon, {
38610
+ runStep: runStep
38611
+ });
38612
+ $[0] = runStep;
38613
+ $[1] = t1;
38614
+ } else {
38615
+ t1 = $[1];
38616
+ }
38617
+ var t2;
38618
+ if ($[2] !== title2) {
38619
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ToolCallTitle, {
38620
+ children: title2
38621
+ });
38622
+ $[2] = title2;
38623
+ $[3] = t2;
38624
+ } else {
38625
+ t2 = $[3];
38626
+ }
38627
+ var t3;
38628
+ if ($[4] !== t1 || $[5] !== t2) {
38629
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes7.Popover.Trigger, {
38630
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes7.Flex, {
38631
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(ToolCallBase, {
38632
+ children: [
38633
+ t1,
38634
+ t2
38635
+ ]
38453
38636
  })
38454
38637
  })
38455
- ]
38456
- });
38638
+ });
38639
+ $[4] = t1;
38640
+ $[5] = t2;
38641
+ $[6] = t3;
38642
+ } else {
38643
+ t3 = $[6];
38644
+ }
38645
+ var t4;
38646
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
38647
+ t4 = {
38648
+ maxHeight: "200px"
38649
+ };
38650
+ $[7] = t4;
38651
+ } else {
38652
+ t4 = $[7];
38653
+ }
38654
+ var t5;
38655
+ if ($[8] !== fn) {
38656
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes7.Popover.Content, {
38657
+ style: t4,
38658
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Content2, {
38659
+ fn: fn
38660
+ })
38661
+ });
38662
+ $[8] = fn;
38663
+ $[9] = t5;
38664
+ } else {
38665
+ t5 = $[9];
38666
+ }
38667
+ var t6;
38668
+ if ($[10] !== t3 || $[11] !== t5) {
38669
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_themes7.Popover.Root, {
38670
+ children: [
38671
+ t3,
38672
+ t5
38673
+ ]
38674
+ });
38675
+ $[10] = t3;
38676
+ $[11] = t5;
38677
+ $[12] = t6;
38678
+ } else {
38679
+ t6 = $[12];
38680
+ }
38681
+ return t6;
38457
38682
  };
38458
38683
  // src/components/functions/Function/lib/title.ts
38459
38684
  var title = function(_ref) {
@@ -38468,42 +38693,78 @@ var title = function(_ref) {
38468
38693
  };
38469
38694
  // src/components/functions/Function/index.tsx
38470
38695
  var import_jsx_runtime15 = require("react/jsx-runtime");
38471
- var Function2 = function(_ref) {
38472
- var fn = _ref.fn, runStep = _ref.runStep;
38473
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FunctionBase, {
38474
- fn: fn,
38475
- runStep: runStep,
38476
- title: title({
38696
+ var Function2 = function(t0) {
38697
+ var $ = (0, import_react_compiler_runtime14.c)(7);
38698
+ var fn = t0.fn, runStep = t0.runStep;
38699
+ var t1;
38700
+ if ($[0] !== fn || $[1] !== runStep) {
38701
+ t1 = title({
38477
38702
  runStep: runStep,
38478
38703
  fn: fn
38479
- })
38480
- });
38704
+ });
38705
+ $[0] = fn;
38706
+ $[1] = runStep;
38707
+ $[2] = t1;
38708
+ } else {
38709
+ t1 = $[2];
38710
+ }
38711
+ var t2;
38712
+ if ($[3] !== fn || $[4] !== runStep || $[5] !== t1) {
38713
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FunctionBase, {
38714
+ fn: fn,
38715
+ runStep: runStep,
38716
+ title: t1
38717
+ });
38718
+ $[3] = fn;
38719
+ $[4] = runStep;
38720
+ $[5] = t1;
38721
+ $[6] = t2;
38722
+ } else {
38723
+ t2 = $[6];
38724
+ }
38725
+ return t2;
38481
38726
  };
38482
38727
  // src/components/toolCalls/StartingToolCalls/index.tsx
38728
+ var import_react_compiler_runtime15 = require("react-compiler-runtime");
38483
38729
  var import_themes8 = require("@radix-ui/themes");
38484
38730
  var import_react_icons2 = require("@radix-ui/react-icons");
38485
38731
  var import_jsx_runtime16 = require("react/jsx-runtime");
38486
38732
  var StartingToolCalls2 = function() {
38487
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_themes8.Popover.Root, {
38488
- children: [
38489
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ToolCallBase, {
38490
- children: [
38491
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_icons2.CircleIcon, {}),
38492
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ToolCallTitle, {
38493
- children: "Starting actions"
38733
+ var $ = (0, import_react_compiler_runtime15.c)(2);
38734
+ var t0;
38735
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
38736
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(ToolCallBase, {
38737
+ children: [
38738
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_icons2.CircleIcon, {}),
38739
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ToolCallTitle, {
38740
+ children: "Starting actions"
38741
+ })
38742
+ ]
38743
+ });
38744
+ $[0] = t0;
38745
+ } else {
38746
+ t0 = $[0];
38747
+ }
38748
+ var t1;
38749
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
38750
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_themes8.Popover.Root, {
38751
+ children: [
38752
+ t0,
38753
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes8.Popover.Content, {
38754
+ style: {
38755
+ maxHeight: "500px"
38756
+ },
38757
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes8.Text, {
38758
+ children: "Starting some actions"
38494
38759
  })
38495
- ]
38496
- }),
38497
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes8.Popover.Content, {
38498
- style: {
38499
- maxHeight: "500px"
38500
- },
38501
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes8.Text, {
38502
- children: "Starting some actions"
38503
38760
  })
38504
- })
38505
- ]
38506
- });
38761
+ ]
38762
+ });
38763
+ $[1] = t1;
38764
+ } else {
38765
+ t1 = $[1];
38766
+ }
38767
+ return t1;
38507
38768
  };
38508
38769
  // src/contexts/components/ComponentsContext/index.tsx
38509
38770
  var ComponentsContext = /* @__PURE__ */ (0, import_react8.createContext)({
@@ -38516,7 +38777,7 @@ var ComponentsContext = /* @__PURE__ */ (0, import_react8.createContext)({
38516
38777
  // src/components/runSteps/RunSteps/index.tsx
38517
38778
  var import_jsx_runtime17 = require("react/jsx-runtime");
38518
38779
  var RunSteps = function(t0) {
38519
- var $ = (0, import_react_compiler_runtime8.c)(7);
38780
+ var $ = (0, import_react_compiler_runtime16.c)(7);
38520
38781
  var runSteps = t0.runSteps;
38521
38782
  var componentsContext = (0, import_react9.useContext)(ComponentsContext);
38522
38783
  var Component2 = componentsContext.components.RunStep;
@@ -38562,13 +38823,13 @@ var MessageContext = /* @__PURE__ */ (0, import_react10.createContext)({
38562
38823
  // src/components/threads/Thread/Message/Provider.tsx
38563
38824
  var Provider = MessageContext.Provider;
38564
38825
  // src/components/threads/Thread/Message/Attachments/index.tsx
38565
- var import_react_compiler_runtime9 = require("react-compiler-runtime");
38826
+ var import_react_compiler_runtime17 = require("react-compiler-runtime");
38566
38827
  var import_themes10 = require("@radix-ui/themes");
38567
38828
  var import_react_icons3 = require("@radix-ui/react-icons");
38568
38829
  var import_jsx_runtime18 = require("react/jsx-runtime");
38569
38830
  var Attachments = function(t0) {
38570
38831
  var _message$attachments;
38571
- var $ = (0, import_react_compiler_runtime9.c)(4);
38832
+ var $ = (0, import_react_compiler_runtime17.c)(4);
38572
38833
  var message = t0.message;
38573
38834
  if (!((_message$attachments = message.attachments) !== null && _message$attachments !== void 0 && _message$attachments.length)) {
38574
38835
  return null;
@@ -38605,10 +38866,12 @@ var Attachments = function(t0) {
38605
38866
  }
38606
38867
  return t3;
38607
38868
  };
38869
+ // src/components/messages/MessageContent/index.tsx
38870
+ var import_react_compiler_runtime46 = require("react-compiler-runtime");
38608
38871
  // src/components/messages/MessageContent/ContentPart/index.tsx
38609
- var import_react_compiler_runtime25 = require("react-compiler-runtime");
38872
+ var import_react_compiler_runtime45 = require("react-compiler-runtime");
38610
38873
  // src/components/messages/MessageContent/ContentPart/TextContent.tsx
38611
- var import_react_compiler_runtime23 = require("react-compiler-runtime");
38874
+ var import_react_compiler_runtime43 = require("react-compiler-runtime");
38612
38875
  var import_react29 = __toESM(require("react"), 1);
38613
38876
  var import_themes31 = require("@radix-ui/themes");
38614
38877
  var import_mdx = require("@mdx-js/mdx");
@@ -38762,114 +39025,223 @@ var import_react26 = require("react");
38762
39025
  // src/contexts/markdown/MarkdownContext/lib/components/index.tsx
38763
39026
  var import_themes30 = require("@radix-ui/themes");
38764
39027
  // src/contexts/markdown/MarkdownContext/lib/components/Paragraph.tsx
39028
+ var import_react_compiler_runtime18 = require("react-compiler-runtime");
38765
39029
  var import_themes11 = require("@radix-ui/themes");
38766
39030
  var import_jsx_runtime19 = require("react/jsx-runtime");
38767
- var Paragraph = function(_ref) {
38768
- var children = _ref.children;
38769
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes11.Box, {
38770
- pb: "3",
38771
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes11.Text, {
38772
- size: "3",
38773
- style: {
38774
- whiteSpace: "pre-line",
38775
- wordBreak: "break-word"
38776
- },
38777
- children: children
38778
- })
38779
- });
39031
+ var Paragraph = function(t0) {
39032
+ var $ = (0, import_react_compiler_runtime18.c)(3);
39033
+ var children = t0.children;
39034
+ var t1;
39035
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
39036
+ t1 = {
39037
+ whiteSpace: "pre-line",
39038
+ wordBreak: "break-word"
39039
+ };
39040
+ $[0] = t1;
39041
+ } else {
39042
+ t1 = $[0];
39043
+ }
39044
+ var t2;
39045
+ if ($[1] !== children) {
39046
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes11.Box, {
39047
+ pb: "3",
39048
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes11.Text, {
39049
+ size: "3",
39050
+ style: t1,
39051
+ children: children
39052
+ })
39053
+ });
39054
+ $[1] = children;
39055
+ $[2] = t2;
39056
+ } else {
39057
+ t2 = $[2];
39058
+ }
39059
+ return t2;
38780
39060
  };
38781
39061
  // src/contexts/markdown/MarkdownContext/lib/components/Link.tsx
39062
+ var import_react_compiler_runtime19 = require("react-compiler-runtime");
38782
39063
  var import_themes12 = require("@radix-ui/themes");
38783
39064
  var import_jsx_runtime20 = require("react/jsx-runtime");
38784
- var Link = function(_ref) {
38785
- var children = _ref.children, href = _ref.href, download = _ref.download, _ref_target = _ref.target, target = _ref_target === void 0 ? "_blank" : _ref_target;
38786
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes12.Link, {
38787
- href: href,
38788
- target: target,
38789
- download: download,
38790
- children: children
38791
- });
39065
+ var Link = function(t0) {
39066
+ var $ = (0, import_react_compiler_runtime19.c)(5);
39067
+ var children = t0.children, href = t0.href, download = t0.download, t1 = t0.target;
39068
+ var target = t1 === void 0 ? "_blank" : t1;
39069
+ var t2;
39070
+ if ($[0] !== children || $[1] !== download || $[2] !== href || $[3] !== target) {
39071
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes12.Link, {
39072
+ href: href,
39073
+ target: target,
39074
+ download: download,
39075
+ children: children
39076
+ });
39077
+ $[0] = children;
39078
+ $[1] = download;
39079
+ $[2] = href;
39080
+ $[3] = target;
39081
+ $[4] = t2;
39082
+ } else {
39083
+ t2 = $[4];
39084
+ }
39085
+ return t2;
38792
39086
  };
38793
39087
  // src/contexts/markdown/MarkdownContext/lib/components/UnorderedList.tsx
39088
+ var import_react_compiler_runtime20 = require("react-compiler-runtime");
38794
39089
  var import_themes13 = require("@radix-ui/themes");
38795
39090
  var import_jsx_runtime21 = require("react/jsx-runtime");
38796
- var UnorderedList = function(_ref) {
38797
- var children = _ref.children;
38798
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes13.Box, {
38799
- pb: "3",
38800
- asChild: true,
38801
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("ul", {
38802
- style: {
38803
- listStylePosition: "inside"
38804
- },
38805
- children: children
38806
- })
38807
- });
39091
+ var UnorderedList = function(t0) {
39092
+ var $ = (0, import_react_compiler_runtime20.c)(3);
39093
+ var children = t0.children;
39094
+ var t1;
39095
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
39096
+ t1 = {
39097
+ listStylePosition: "inside"
39098
+ };
39099
+ $[0] = t1;
39100
+ } else {
39101
+ t1 = $[0];
39102
+ }
39103
+ var t2;
39104
+ if ($[1] !== children) {
39105
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes13.Box, {
39106
+ pb: "3",
39107
+ asChild: true,
39108
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("ul", {
39109
+ style: t1,
39110
+ children: children
39111
+ })
39112
+ });
39113
+ $[1] = children;
39114
+ $[2] = t2;
39115
+ } else {
39116
+ t2 = $[2];
39117
+ }
39118
+ return t2;
38808
39119
  };
38809
39120
  // src/contexts/markdown/MarkdownContext/lib/components/OrderedList.tsx
39121
+ var import_react_compiler_runtime21 = require("react-compiler-runtime");
38810
39122
  var import_themes14 = require("@radix-ui/themes");
38811
39123
  var import_jsx_runtime22 = require("react/jsx-runtime");
38812
- var OrderedList = function(_ref) {
38813
- var children = _ref.children;
38814
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_themes14.Box, {
38815
- pb: "3",
38816
- asChild: true,
38817
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("ol", {
38818
- style: {
38819
- listStylePosition: "inside"
38820
- },
38821
- children: children
38822
- })
38823
- });
39124
+ var OrderedList = function(t0) {
39125
+ var $ = (0, import_react_compiler_runtime21.c)(3);
39126
+ var children = t0.children;
39127
+ var t1;
39128
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
39129
+ t1 = {
39130
+ listStylePosition: "inside"
39131
+ };
39132
+ $[0] = t1;
39133
+ } else {
39134
+ t1 = $[0];
39135
+ }
39136
+ var t2;
39137
+ if ($[1] !== children) {
39138
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_themes14.Box, {
39139
+ pb: "3",
39140
+ asChild: true,
39141
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("ol", {
39142
+ style: t1,
39143
+ children: children
39144
+ })
39145
+ });
39146
+ $[1] = children;
39147
+ $[2] = t2;
39148
+ } else {
39149
+ t2 = $[2];
39150
+ }
39151
+ return t2;
38824
39152
  };
38825
39153
  // src/contexts/markdown/MarkdownContext/lib/components/ListItem.tsx
39154
+ var import_react_compiler_runtime22 = require("react-compiler-runtime");
38826
39155
  var import_themes15 = require("@radix-ui/themes");
38827
39156
  var import_jsx_runtime23 = require("react/jsx-runtime");
38828
- var ListItem = function(_ref) {
38829
- var children = _ref.children;
38830
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_themes15.Box, {
38831
- pb: "1",
38832
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("li", {
38833
- style: {
38834
- wordBreak: "break-word"
38835
- },
38836
- children: children
38837
- })
38838
- });
39157
+ var ListItem = function(t0) {
39158
+ var $ = (0, import_react_compiler_runtime22.c)(3);
39159
+ var children = t0.children;
39160
+ var t1;
39161
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
39162
+ t1 = {
39163
+ wordBreak: "break-word"
39164
+ };
39165
+ $[0] = t1;
39166
+ } else {
39167
+ t1 = $[0];
39168
+ }
39169
+ var t2;
39170
+ if ($[1] !== children) {
39171
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_themes15.Box, {
39172
+ pb: "1",
39173
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("li", {
39174
+ style: t1,
39175
+ children: children
39176
+ })
39177
+ });
39178
+ $[1] = children;
39179
+ $[2] = t2;
39180
+ } else {
39181
+ t2 = $[2];
39182
+ }
39183
+ return t2;
38839
39184
  };
38840
39185
  // src/contexts/markdown/MarkdownContext/lib/components/Strong.tsx
39186
+ var import_react_compiler_runtime23 = require("react-compiler-runtime");
38841
39187
  var import_themes16 = require("@radix-ui/themes");
38842
39188
  var import_jsx_runtime24 = require("react/jsx-runtime");
38843
- var Strong = function(_ref) {
38844
- var children = _ref.children;
38845
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes16.Strong, {
38846
- children: children
38847
- });
39189
+ var Strong = function(t0) {
39190
+ var $ = (0, import_react_compiler_runtime23.c)(2);
39191
+ var children = t0.children;
39192
+ var t1;
39193
+ if ($[0] !== children) {
39194
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes16.Strong, {
39195
+ children: children
39196
+ });
39197
+ $[0] = children;
39198
+ $[1] = t1;
39199
+ } else {
39200
+ t1 = $[1];
39201
+ }
39202
+ return t1;
38848
39203
  };
38849
39204
  // src/contexts/markdown/MarkdownContext/lib/components/Pre.tsx
39205
+ var import_react_compiler_runtime24 = require("react-compiler-runtime");
38850
39206
  var import_themes17 = require("@radix-ui/themes");
38851
39207
  var import_jsx_runtime25 = require("react/jsx-runtime");
38852
- var Pre = function(_ref) {
38853
- var children = _ref.children;
38854
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes17.Box, {
38855
- style: {
39208
+ var Pre = function(t0) {
39209
+ var $ = (0, import_react_compiler_runtime24.c)(3);
39210
+ var children = t0.children;
39211
+ var t1;
39212
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
39213
+ t1 = {
38856
39214
  whiteSpace: "pre-wrap",
38857
39215
  wordBreak: "break-word"
38858
- },
38859
- children: children
38860
- });
39216
+ };
39217
+ $[0] = t1;
39218
+ } else {
39219
+ t1 = $[0];
39220
+ }
39221
+ var t2;
39222
+ if ($[1] !== children) {
39223
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes17.Box, {
39224
+ style: t1,
39225
+ children: children
39226
+ });
39227
+ $[1] = children;
39228
+ $[2] = t2;
39229
+ } else {
39230
+ t2 = $[2];
39231
+ }
39232
+ return t2;
38861
39233
  };
38862
39234
  // src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
38863
- var import_react_compiler_runtime15 = require("react-compiler-runtime");
39235
+ var import_react_compiler_runtime30 = require("react-compiler-runtime");
38864
39236
  var import_themes20 = require("@radix-ui/themes");
38865
39237
  // src/components/suggestions/Suggestions/index.tsx
38866
- var import_react_compiler_runtime14 = require("react-compiler-runtime");
39238
+ var import_react_compiler_runtime29 = require("react-compiler-runtime");
38867
39239
  var import_react18 = require("react");
38868
39240
  // src/hooks/messages/useLatestMessage/index.ts
38869
- var import_react_compiler_runtime11 = require("react-compiler-runtime");
39241
+ var import_react_compiler_runtime26 = require("react-compiler-runtime");
38870
39242
  var import_react12 = require("react");
38871
39243
  // src/hooks/messages/useMessages/index.tsx
38872
- var import_react_compiler_runtime10 = require("react-compiler-runtime");
39244
+ var import_react_compiler_runtime25 = require("react-compiler-runtime");
38873
39245
  var import_react11 = require("react");
38874
39246
  var import_react_query2 = require("@tanstack/react-query");
38875
39247
  // src/lib/threads/queryOptions/index.ts
@@ -39143,7 +39515,7 @@ var messages = function(_ref) {
39143
39515
  }, []);
39144
39516
  };
39145
39517
  var useMessages = function() {
39146
- var $ = (0, import_react_compiler_runtime10.c)(9);
39518
+ var $ = (0, import_react_compiler_runtime25.c)(9);
39147
39519
  var queryClient = (0, import_react_query2.useQueryClient)();
39148
39520
  var threadContext = useSuperinterfaceContext();
39149
39521
  var superinterfaceContext = useSuperinterfaceContext();
@@ -39232,7 +39604,7 @@ function _toPrimitive5(t, r) {
39232
39604
  return ("string" === r ? String : Number)(t);
39233
39605
  }
39234
39606
  var useLatestMessage = function() {
39235
- var $ = (0, import_react_compiler_runtime11.c)(3);
39607
+ var $ = (0, import_react_compiler_runtime26.c)(3);
39236
39608
  var props = useMessages();
39237
39609
  var t0;
39238
39610
  var t1 = props.messages[0] || null;
@@ -39255,11 +39627,11 @@ var import_react17 = require("react");
39255
39627
  var import_radash10 = require("radash");
39256
39628
  var import_react_children_utilities = require("react-children-utilities");
39257
39629
  // src/hooks/messages/useIsMutatingMessage/index.ts
39258
- var import_react_compiler_runtime12 = require("react-compiler-runtime");
39630
+ var import_react_compiler_runtime27 = require("react-compiler-runtime");
39259
39631
  var import_react13 = require("react");
39260
39632
  var import_react_query3 = require("@tanstack/react-query");
39261
39633
  var useIsMutatingMessage = function() {
39262
- var $ = (0, import_react_compiler_runtime12.c)(2);
39634
+ var $ = (0, import_react_compiler_runtime27.c)(2);
39263
39635
  var threadContext = useSuperinterfaceContext();
39264
39636
  var t0;
39265
39637
  if ($[0] !== threadContext.variables) {
@@ -39283,7 +39655,7 @@ var useIsMutatingMessage = function() {
39283
39655
  // src/components/suggestions/Suggestions/Content.tsx
39284
39656
  var import_themes19 = require("@radix-ui/themes");
39285
39657
  // src/components/suggestions/Suggestions/Item.tsx
39286
- var import_react_compiler_runtime13 = require("react-compiler-runtime");
39658
+ var import_react_compiler_runtime28 = require("react-compiler-runtime");
39287
39659
  var import_react_icons4 = require("@radix-ui/react-icons");
39288
39660
  var import_themes18 = require("@radix-ui/themes");
39289
39661
  // src/hooks/messages/useCreateMessage/index.ts
@@ -40779,7 +41151,7 @@ function _toPrimitive19(t, r) {
40779
41151
  return ("string" === r ? String : Number)(t);
40780
41152
  }
40781
41153
  var Item = function(t0) {
40782
- var $ = (0, import_react_compiler_runtime13.c)(16);
41154
+ var $ = (0, import_react_compiler_runtime28.c)(16);
40783
41155
  var suggestion = t0.suggestion, isDisabled = t0.isDisabled, className = t0.className, style = t0.style;
40784
41156
  var addToast = useToasts().addToast;
40785
41157
  var queryClient = (0, import_react_query5.useQueryClient)();
@@ -40844,34 +41216,87 @@ var Item = function(t0) {
40844
41216
  }
40845
41217
  return t4;
40846
41218
  };
40847
- var Content3 = function(_ref) {
40848
- var onClick = _ref.onClick, isDisabled = _ref.isDisabled, isPending = _ref.isPending, children = _ref.children, className = _ref.className, style = _ref.style;
40849
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes18.Button, {
40850
- className: className,
40851
- variant: "soft",
40852
- onClick: onClick,
40853
- disabled: isDisabled,
40854
- style: _objectSpread19({
41219
+ var Content3 = function(t0) {
41220
+ var $ = (0, import_react_compiler_runtime28.c)(16);
41221
+ var onClick = t0.onClick, isDisabled = t0.isDisabled, isPending = t0.isPending, children = t0.children, className = t0.className, style = t0.style;
41222
+ var t1;
41223
+ if ($[0] !== style) {
41224
+ t1 = style !== null && style !== void 0 ? style : {};
41225
+ $[0] = style;
41226
+ $[1] = t1;
41227
+ } else {
41228
+ t1 = $[1];
41229
+ }
41230
+ var t2;
41231
+ if ($[2] !== t1) {
41232
+ t2 = _objectSpread19({
40855
41233
  minHeight: "var(--base-button-height)",
40856
41234
  height: "inherit",
40857
41235
  flexShrink: 1
40858
- }, style !== null && style !== void 0 ? style : {}),
40859
- children: [
40860
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes18.Text, {
40861
- size: "1",
40862
- weight: "regular",
40863
- children: children
40864
- }),
40865
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes18.Spinner, {
40866
- loading: isPending,
40867
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons4.ArrowUpIcon, {
40868
- style: {
40869
- flexShrink: 0
40870
- }
40871
- })
40872
- })
40873
- ]
40874
- });
41236
+ }, t1);
41237
+ $[2] = t1;
41238
+ $[3] = t2;
41239
+ } else {
41240
+ t2 = $[3];
41241
+ }
41242
+ var t3;
41243
+ if ($[4] !== children) {
41244
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes18.Text, {
41245
+ size: "1",
41246
+ weight: "regular",
41247
+ children: children
41248
+ });
41249
+ $[4] = children;
41250
+ $[5] = t3;
41251
+ } else {
41252
+ t3 = $[5];
41253
+ }
41254
+ var t4;
41255
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
41256
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons4.ArrowUpIcon, {
41257
+ style: {
41258
+ flexShrink: 0
41259
+ }
41260
+ });
41261
+ $[6] = t4;
41262
+ } else {
41263
+ t4 = $[6];
41264
+ }
41265
+ var t5;
41266
+ if ($[7] !== isPending) {
41267
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes18.Spinner, {
41268
+ loading: isPending,
41269
+ children: t4
41270
+ });
41271
+ $[7] = isPending;
41272
+ $[8] = t5;
41273
+ } else {
41274
+ t5 = $[8];
41275
+ }
41276
+ var t6;
41277
+ if ($[9] !== className || $[10] !== isDisabled || $[11] !== onClick || $[12] !== t2 || $[13] !== t3 || $[14] !== t5) {
41278
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes18.Button, {
41279
+ className: className,
41280
+ variant: "soft",
41281
+ onClick: onClick,
41282
+ disabled: isDisabled,
41283
+ style: t2,
41284
+ children: [
41285
+ t3,
41286
+ t5
41287
+ ]
41288
+ });
41289
+ $[9] = className;
41290
+ $[10] = isDisabled;
41291
+ $[11] = onClick;
41292
+ $[12] = t2;
41293
+ $[13] = t3;
41294
+ $[14] = t5;
41295
+ $[15] = t6;
41296
+ } else {
41297
+ t6 = $[15];
41298
+ }
41299
+ return t6;
40875
41300
  };
40876
41301
  Item.Content = Content3;
40877
41302
  // src/components/suggestions/Suggestions/Content.tsx
@@ -40907,7 +41332,7 @@ var Content4 = function(_ref) {
40907
41332
  var import_jsx_runtime28 = require("react/jsx-runtime");
40908
41333
  var Suggestions = function(t0) {
40909
41334
  var _latestMessageProps$l;
40910
- var $ = (0, import_react_compiler_runtime14.c)(4);
41335
+ var $ = (0, import_react_compiler_runtime29.c)(4);
40911
41336
  var children = t0.children, className = t0.className, style = t0.style;
40912
41337
  var latestMessageProps = useLatestMessage();
40913
41338
  var t1;
@@ -40939,7 +41364,7 @@ Suggestions.Item = Item;
40939
41364
  // src/contexts/markdown/MarkdownContext/lib/components/Code.tsx
40940
41365
  var import_jsx_runtime29 = require("react/jsx-runtime");
40941
41366
  var Code3 = function(t0) {
40942
- var $ = (0, import_react_compiler_runtime15.c)(5);
41367
+ var $ = (0, import_react_compiler_runtime30.c)(5);
40943
41368
  var children = t0.children, className = t0.className;
40944
41369
  if (className === "language-suggestions") {
40945
41370
  var _t;
@@ -40977,8 +41402,9 @@ var Code3 = function(t0) {
40977
41402
  return t2;
40978
41403
  };
40979
41404
  // src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
40980
- var import_react_compiler_runtime20 = require("react-compiler-runtime");
41405
+ var import_react_compiler_runtime39 = require("react-compiler-runtime");
40981
41406
  // src/components/images/Image.tsx
41407
+ var import_react_compiler_runtime31 = require("react-compiler-runtime");
40982
41408
  var import_themes21 = require("@radix-ui/themes");
40983
41409
  var import_jsx_runtime30 = require("react/jsx-runtime");
40984
41410
  function ownKeys20(e, r) {
@@ -41025,15 +41451,31 @@ function _toPrimitive20(t, r) {
41025
41451
  return ("string" === r ? String : Number)(t);
41026
41452
  }
41027
41453
  var Image = function(props) {
41028
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes21.Box, {
41029
- pb: "3",
41030
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("img", _objectSpread20(_objectSpread20({}, props), {}, {
41031
- style: {
41032
- maxWidth: "100%",
41033
- height: "auto"
41034
- }
41035
- }))
41036
- });
41454
+ var $ = (0, import_react_compiler_runtime31.c)(3);
41455
+ var t0;
41456
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
41457
+ t0 = {
41458
+ maxWidth: "100%",
41459
+ height: "auto"
41460
+ };
41461
+ $[0] = t0;
41462
+ } else {
41463
+ t0 = $[0];
41464
+ }
41465
+ var t1;
41466
+ if ($[1] !== props) {
41467
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes21.Box, {
41468
+ pb: "3",
41469
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("img", _objectSpread20(_objectSpread20({}, props), {}, {
41470
+ style: t0
41471
+ }))
41472
+ });
41473
+ $[1] = props;
41474
+ $[2] = t1;
41475
+ } else {
41476
+ t1 = $[2];
41477
+ }
41478
+ return t1;
41037
41479
  };
41038
41480
  // src/contexts/markdown/MarkdownContext/lib/components/Img/lib/isVideoSrc.ts
41039
41481
  var videoExtensions = [
@@ -41082,17 +41524,18 @@ var isAudioSrc = function(_ref) {
41082
41524
  return src.endsWith(".mp3") || src.endsWith(".wav");
41083
41525
  };
41084
41526
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Video/index.tsx
41527
+ var import_react_compiler_runtime37 = require("react-compiler-runtime");
41085
41528
  var import_themes27 = require("@radix-ui/themes");
41086
41529
  var import_base = require("@vidstack/react/player/styles/base.css");
41087
41530
  var import_react24 = require("@vidstack/react");
41088
41531
  // src/components/media/PlayButton.tsx
41089
- var import_react_compiler_runtime16 = require("react-compiler-runtime");
41532
+ var import_react_compiler_runtime32 = require("react-compiler-runtime");
41090
41533
  var import_react19 = require("@vidstack/react");
41091
41534
  var import_themes22 = require("@radix-ui/themes");
41092
41535
  var import_react_icons5 = require("@radix-ui/react-icons");
41093
41536
  var import_jsx_runtime31 = require("react/jsx-runtime");
41094
41537
  var PlayButton = function() {
41095
- var $ = (0, import_react_compiler_runtime16.c)(2);
41538
+ var $ = (0, import_react_compiler_runtime32.c)(2);
41096
41539
  var isPaused = (0, import_react19.useMediaState)("paused");
41097
41540
  var t0;
41098
41541
  if ($[0] !== isPaused) {
@@ -41111,13 +41554,13 @@ var PlayButton = function() {
41111
41554
  return t0;
41112
41555
  };
41113
41556
  // src/components/media/VolumeButton.tsx
41114
- var import_react_compiler_runtime17 = require("react-compiler-runtime");
41557
+ var import_react_compiler_runtime33 = require("react-compiler-runtime");
41115
41558
  var import_react20 = require("@vidstack/react");
41116
41559
  var import_themes23 = require("@radix-ui/themes");
41117
41560
  var import_react_icons6 = require("@radix-ui/react-icons");
41118
41561
  var import_jsx_runtime32 = require("react/jsx-runtime");
41119
41562
  var VolumeButton = function() {
41120
- var $ = (0, import_react_compiler_runtime17.c)(13);
41563
+ var $ = (0, import_react_compiler_runtime33.c)(13);
41121
41564
  var volume = (0, import_react20.useMediaState)("volume");
41122
41565
  var isMuted = (0, import_react20.useMediaState)("muted");
41123
41566
  var remote = (0, import_react20.useMediaRemote)();
@@ -41197,13 +41640,13 @@ var VolumeButton = function() {
41197
41640
  return t5;
41198
41641
  };
41199
41642
  // src/components/media/Time.tsx
41200
- var import_react_compiler_runtime18 = require("react-compiler-runtime");
41643
+ var import_react_compiler_runtime34 = require("react-compiler-runtime");
41201
41644
  var import_react21 = require("react");
41202
41645
  var import_react22 = require("@vidstack/react");
41203
41646
  var import_themes24 = require("@radix-ui/themes");
41204
41647
  var import_jsx_runtime33 = require("react/jsx-runtime");
41205
41648
  var Time = function() {
41206
- var $ = (0, import_react_compiler_runtime18.c)(17);
41649
+ var $ = (0, import_react_compiler_runtime34.c)(17);
41207
41650
  var time = (0, import_react22.useMediaState)("currentTime");
41208
41651
  var duration = (0, import_react22.useMediaState)("duration");
41209
41652
  var seeking = (0, import_react22.useMediaState)("seeking");
@@ -41292,30 +41735,47 @@ var Time = function() {
41292
41735
  return t8;
41293
41736
  };
41294
41737
  // src/components/media/MediaContainer.tsx
41738
+ var import_react_compiler_runtime35 = require("react-compiler-runtime");
41295
41739
  var import_themes25 = require("@radix-ui/themes");
41296
41740
  var import_jsx_runtime34 = require("react/jsx-runtime");
41297
- var MediaContainer = function(_ref) {
41298
- var children = _ref.children;
41299
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes25.Card, {
41300
- mb: "3",
41301
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes25.Inset, {
41302
- clip: "padding-box",
41303
- style: {
41304
- display: "flex",
41305
- flexDirection: "column"
41306
- },
41307
- children: children
41308
- })
41309
- });
41741
+ var MediaContainer = function(t0) {
41742
+ var $ = (0, import_react_compiler_runtime35.c)(3);
41743
+ var children = t0.children;
41744
+ var t1;
41745
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
41746
+ t1 = {
41747
+ display: "flex",
41748
+ flexDirection: "column"
41749
+ };
41750
+ $[0] = t1;
41751
+ } else {
41752
+ t1 = $[0];
41753
+ }
41754
+ var t2;
41755
+ if ($[1] !== children) {
41756
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes25.Card, {
41757
+ mb: "3",
41758
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes25.Inset, {
41759
+ clip: "padding-box",
41760
+ style: t1,
41761
+ children: children
41762
+ })
41763
+ });
41764
+ $[1] = children;
41765
+ $[2] = t2;
41766
+ } else {
41767
+ t2 = $[2];
41768
+ }
41769
+ return t2;
41310
41770
  };
41311
41771
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Video/FullscreenButton.tsx
41312
- var import_react_compiler_runtime19 = require("react-compiler-runtime");
41772
+ var import_react_compiler_runtime36 = require("react-compiler-runtime");
41313
41773
  var import_react23 = require("@vidstack/react");
41314
41774
  var import_themes26 = require("@radix-ui/themes");
41315
41775
  var import_react_icons7 = require("@radix-ui/react-icons");
41316
41776
  var import_jsx_runtime35 = require("react/jsx-runtime");
41317
41777
  var FullscreenButton = function() {
41318
- var $ = (0, import_react_compiler_runtime19.c)(2);
41778
+ var $ = (0, import_react_compiler_runtime36.c)(2);
41319
41779
  var isFullscreen = (0, import_react23.useMediaState)("fullscreen");
41320
41780
  var t0;
41321
41781
  if ($[0] !== isFullscreen) {
@@ -41335,100 +41795,185 @@ var FullscreenButton = function() {
41335
41795
  };
41336
41796
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Video/index.tsx
41337
41797
  var import_jsx_runtime36 = require("react/jsx-runtime");
41338
- var Video = function(_ref) {
41339
- var src = _ref.src;
41340
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MediaContainer, {
41341
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react24.MediaPlayer, {
41342
- src: {
41343
- src: src,
41344
- type: "video/".concat(src.split(".").pop())
41345
- },
41346
- playsInline: true,
41347
- hideControlsOnMouseLeave: true,
41348
- crossOrigin: true,
41349
- children: [
41350
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react24.MediaProvider, {}),
41351
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("style", {
41352
- 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 "
41353
- }),
41354
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes27.Flex, {
41798
+ var Video = function(t0) {
41799
+ var $ = (0, import_react_compiler_runtime37.c)(9);
41800
+ var src = t0.src;
41801
+ var t1 = "video/".concat(src.split(".").pop());
41802
+ var t2;
41803
+ if ($[0] !== src || $[1] !== t1) {
41804
+ t2 = {
41805
+ src: src,
41806
+ type: t1
41807
+ };
41808
+ $[0] = src;
41809
+ $[1] = t1;
41810
+ $[2] = t2;
41811
+ } else {
41812
+ t2 = $[2];
41813
+ }
41814
+ var t3;
41815
+ var t4;
41816
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
41817
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react24.MediaProvider, {});
41818
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("style", {
41819
+ 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 "
41820
+ });
41821
+ $[3] = t3;
41822
+ $[4] = t4;
41823
+ } else {
41824
+ t3 = $[3];
41825
+ t4 = $[4];
41826
+ }
41827
+ var t5;
41828
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
41829
+ t5 = {
41830
+ zIndex: 10,
41831
+ background: "var(--accent-4)"
41832
+ };
41833
+ $[5] = t5;
41834
+ } else {
41835
+ t5 = $[5];
41836
+ }
41837
+ var t6;
41838
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
41839
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes27.Flex, {
41840
+ asChild: true,
41841
+ position: "absolute",
41842
+ bottom: "0",
41843
+ left: "0",
41844
+ right: "0",
41845
+ className: "superinterface-video-controls",
41846
+ p: "3",
41847
+ style: t5,
41848
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react24.Controls.Root, {
41849
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes27.Flex, {
41355
41850
  asChild: true,
41356
- position: "absolute",
41357
- bottom: "0",
41358
- left: "0",
41359
- right: "0",
41360
- className: "superinterface-video-controls",
41361
- p: "3",
41362
- style: {
41363
- zIndex: 10,
41364
- background: "var(--accent-4)"
41365
- },
41366
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react24.Controls.Root, {
41367
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes27.Flex, {
41368
- asChild: true,
41369
- align: "center",
41370
- gap: "3",
41371
- flexGrow: "1",
41372
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react24.Controls.Group, {
41373
- children: [
41374
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(PlayButton, {}),
41375
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Time, {}),
41376
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(VolumeButton, {}),
41377
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(FullscreenButton, {})
41378
- ]
41379
- })
41380
- })
41851
+ align: "center",
41852
+ gap: "3",
41853
+ flexGrow: "1",
41854
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react24.Controls.Group, {
41855
+ children: [
41856
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(PlayButton, {}),
41857
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Time, {}),
41858
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(VolumeButton, {}),
41859
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(FullscreenButton, {})
41860
+ ]
41381
41861
  })
41382
41862
  })
41383
- ]
41384
- })
41385
- });
41863
+ })
41864
+ });
41865
+ $[6] = t6;
41866
+ } else {
41867
+ t6 = $[6];
41868
+ }
41869
+ var t7;
41870
+ if ($[7] !== t2) {
41871
+ t7 = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MediaContainer, {
41872
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react24.MediaPlayer, {
41873
+ src: t2,
41874
+ playsInline: true,
41875
+ hideControlsOnMouseLeave: true,
41876
+ crossOrigin: true,
41877
+ children: [
41878
+ t3,
41879
+ t4,
41880
+ t6
41881
+ ]
41882
+ })
41883
+ });
41884
+ $[7] = t2;
41885
+ $[8] = t7;
41886
+ } else {
41887
+ t7 = $[8];
41888
+ }
41889
+ return t7;
41386
41890
  };
41387
41891
  // src/contexts/markdown/MarkdownContext/lib/components/Img/Audio/index.tsx
41892
+ var import_react_compiler_runtime38 = require("react-compiler-runtime");
41388
41893
  var import_themes28 = require("@radix-ui/themes");
41389
41894
  var import_base2 = require("@vidstack/react/player/styles/base.css");
41390
41895
  var import_react25 = require("@vidstack/react");
41391
41896
  var import_jsx_runtime37 = require("react/jsx-runtime");
41392
- var Audio = function(_ref) {
41393
- var src = _ref.src;
41394
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MediaContainer, {
41395
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_react25.MediaPlayer, {
41396
- src: {
41397
- src: src,
41398
- type: "audio/".concat(src.split(".").pop())
41399
- },
41400
- viewType: "audio",
41401
- crossOrigin: true,
41402
- playsInline: true,
41403
- children: [
41404
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react25.MediaProvider, {}),
41405
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes28.Flex, {
41897
+ var Audio = function(t0) {
41898
+ var $ = (0, import_react_compiler_runtime38.c)(8);
41899
+ var src = t0.src;
41900
+ var t1 = "audio/".concat(src.split(".").pop());
41901
+ var t2;
41902
+ if ($[0] !== src || $[1] !== t1) {
41903
+ t2 = {
41904
+ src: src,
41905
+ type: t1
41906
+ };
41907
+ $[0] = src;
41908
+ $[1] = t1;
41909
+ $[2] = t2;
41910
+ } else {
41911
+ t2 = $[2];
41912
+ }
41913
+ var t3;
41914
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
41915
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react25.MediaProvider, {});
41916
+ $[3] = t3;
41917
+ } else {
41918
+ t3 = $[3];
41919
+ }
41920
+ var t4;
41921
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
41922
+ t4 = {
41923
+ zIndex: 10,
41924
+ background: "var(--accent-4)"
41925
+ };
41926
+ $[4] = t4;
41927
+ } else {
41928
+ t4 = $[4];
41929
+ }
41930
+ var t5;
41931
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
41932
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes28.Flex, {
41933
+ asChild: true,
41934
+ p: "3",
41935
+ flexGrow: "1",
41936
+ style: t4,
41937
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react25.Controls.Root, {
41938
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes28.Flex, {
41406
41939
  asChild: true,
41407
- p: "3",
41940
+ align: "center",
41941
+ gap: "3",
41408
41942
  flexGrow: "1",
41409
- style: {
41410
- zIndex: 10,
41411
- background: "var(--accent-4)"
41412
- },
41413
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react25.Controls.Root, {
41414
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes28.Flex, {
41415
- asChild: true,
41416
- align: "center",
41417
- gap: "3",
41418
- flexGrow: "1",
41419
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_react25.Controls.Group, {
41420
- children: [
41421
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PlayButton, {}),
41422
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Time, {}),
41423
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(VolumeButton, {})
41424
- ]
41425
- })
41426
- })
41943
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_react25.Controls.Group, {
41944
+ children: [
41945
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(PlayButton, {}),
41946
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Time, {}),
41947
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(VolumeButton, {})
41948
+ ]
41427
41949
  })
41428
41950
  })
41429
- ]
41430
- })
41431
- });
41951
+ })
41952
+ });
41953
+ $[5] = t5;
41954
+ } else {
41955
+ t5 = $[5];
41956
+ }
41957
+ var t6;
41958
+ if ($[6] !== t2) {
41959
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MediaContainer, {
41960
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_react25.MediaPlayer, {
41961
+ src: t2,
41962
+ viewType: "audio",
41963
+ crossOrigin: true,
41964
+ playsInline: true,
41965
+ children: [
41966
+ t3,
41967
+ t5
41968
+ ]
41969
+ })
41970
+ });
41971
+ $[6] = t2;
41972
+ $[7] = t6;
41973
+ } else {
41974
+ t6 = $[7];
41975
+ }
41976
+ return t6;
41432
41977
  };
41433
41978
  // src/contexts/markdown/MarkdownContext/lib/components/Img/index.tsx
41434
41979
  var import_jsx_runtime38 = require("react/jsx-runtime");
@@ -41476,7 +42021,7 @@ function _toPrimitive21(t, r) {
41476
42021
  return ("string" === r ? String : Number)(t);
41477
42022
  }
41478
42023
  var Img = function(props) {
41479
- var $ = (0, import_react_compiler_runtime20.c)(8);
42024
+ var $ = (0, import_react_compiler_runtime39.c)(8);
41480
42025
  if (!props.src) {
41481
42026
  var t0;
41482
42027
  if ($[0] !== props) {
@@ -41532,13 +42077,13 @@ var Img = function(props) {
41532
42077
  }
41533
42078
  };
41534
42079
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
41535
- var import_react_compiler_runtime22 = require("react-compiler-runtime");
42080
+ var import_react_compiler_runtime42 = require("react-compiler-runtime");
41536
42081
  var import_react_icons8 = require("@radix-ui/react-icons");
41537
42082
  // src/components/annotations/FilePathAnnotation.tsx
41538
- var import_react_compiler_runtime21 = require("react-compiler-runtime");
42083
+ var import_react_compiler_runtime40 = require("react-compiler-runtime");
41539
42084
  var import_jsx_runtime39 = require("react/jsx-runtime");
41540
42085
  var FilePathAnnotation = function(t0) {
41541
- var $ = (0, import_react_compiler_runtime21.c)(3);
42086
+ var $ = (0, import_react_compiler_runtime40.c)(3);
41542
42087
  var annotation = t0.annotation, children = t0.children;
41543
42088
  var superinterfaceContext = useSuperinterfaceContext();
41544
42089
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -41560,33 +42105,60 @@ var FilePathAnnotation = function(t0) {
41560
42105
  return t2;
41561
42106
  };
41562
42107
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/AnnotationBase.tsx
42108
+ var import_react_compiler_runtime41 = require("react-compiler-runtime");
41563
42109
  var import_themes29 = require("@radix-ui/themes");
41564
42110
  var import_jsx_runtime40 = require("react/jsx-runtime");
41565
- var AnnotationBase = function(_ref) {
41566
- var icon = _ref.icon, content2 = _ref.content;
41567
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_themes29.Popover.Root, {
41568
- children: [
41569
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Popover.Trigger, {
41570
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.IconButton, {
41571
- variant: "soft",
41572
- color: "gray",
41573
- size: "1",
41574
- children: icon
41575
- })
41576
- }),
41577
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Popover.Content, {
42111
+ var AnnotationBase = function(t0) {
42112
+ var $ = (0, import_react_compiler_runtime41.c)(7);
42113
+ var icon = t0.icon, content2 = t0.content;
42114
+ var t1;
42115
+ if ($[0] !== icon) {
42116
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Popover.Trigger, {
42117
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.IconButton, {
42118
+ variant: "soft",
42119
+ color: "gray",
41578
42120
  size: "1",
41579
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Flex, {
41580
- direction: "column",
41581
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Text, {
41582
- size: "1",
41583
- color: "gray",
41584
- children: content2
41585
- })
42121
+ children: icon
42122
+ })
42123
+ });
42124
+ $[0] = icon;
42125
+ $[1] = t1;
42126
+ } else {
42127
+ t1 = $[1];
42128
+ }
42129
+ var t2;
42130
+ if ($[2] !== content2) {
42131
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Popover.Content, {
42132
+ size: "1",
42133
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Flex, {
42134
+ direction: "column",
42135
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes29.Text, {
42136
+ size: "1",
42137
+ color: "gray",
42138
+ children: content2
41586
42139
  })
41587
42140
  })
41588
- ]
41589
- });
42141
+ });
42142
+ $[2] = content2;
42143
+ $[3] = t2;
42144
+ } else {
42145
+ t2 = $[3];
42146
+ }
42147
+ var t3;
42148
+ if ($[4] !== t1 || $[5] !== t2) {
42149
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_themes29.Popover.Root, {
42150
+ children: [
42151
+ t1,
42152
+ t2
42153
+ ]
42154
+ });
42155
+ $[4] = t1;
42156
+ $[5] = t2;
42157
+ $[6] = t3;
42158
+ } else {
42159
+ t3 = $[6];
42160
+ }
42161
+ return t3;
41590
42162
  };
41591
42163
  // src/contexts/markdown/MarkdownContext/lib/components/Annotation/index.tsx
41592
42164
  var import_jsx_runtime41 = require("react/jsx-runtime");
@@ -41612,7 +42184,7 @@ function _objectWithoutPropertiesLoose(r, e) {
41612
42184
  return t;
41613
42185
  }
41614
42186
  var Annotation = function(t0) {
41615
- var $ = (0, import_react_compiler_runtime22.c)(9);
42187
+ var $ = (0, import_react_compiler_runtime42.c)(9);
41616
42188
  var children;
41617
42189
  var rest;
41618
42190
  if ($[0] !== t0) {
@@ -42327,7 +42899,7 @@ var evaluate = /* @__PURE__ */ function() {
42327
42899
  };
42328
42900
  }();
42329
42901
  var TextContent = function(t0) {
42330
- var $ = (0, import_react_compiler_runtime23.c)(13);
42902
+ var $ = (0, import_react_compiler_runtime43.c)(13);
42331
42903
  var content2 = t0.content;
42332
42904
  var _useMarkdownContext = useMarkdownContext(), getRemarkPlugins2 = _useMarkdownContext.getRemarkPlugins, components2 = _useMarkdownContext.components;
42333
42905
  var t1;
@@ -42464,10 +43036,10 @@ var TextContent = function(t0) {
42464
43036
  return t7;
42465
43037
  };
42466
43038
  // src/components/messages/MessageContent/ContentPart/ImageFileContent.tsx
42467
- var import_react_compiler_runtime24 = require("react-compiler-runtime");
43039
+ var import_react_compiler_runtime44 = require("react-compiler-runtime");
42468
43040
  var import_jsx_runtime44 = require("react/jsx-runtime");
42469
43041
  var ImageFileContent = function(t0) {
42470
- var $ = (0, import_react_compiler_runtime24.c)(2);
43042
+ var $ = (0, import_react_compiler_runtime44.c)(2);
42471
43043
  var content2 = t0.content;
42472
43044
  var superinterfaceContext = useSuperinterfaceContext();
42473
43045
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -42488,7 +43060,7 @@ var ImageFileContent = function(t0) {
42488
43060
  // src/components/messages/MessageContent/ContentPart/index.tsx
42489
43061
  var import_jsx_runtime45 = require("react/jsx-runtime");
42490
43062
  var ContentPart = function(t0) {
42491
- var $ = (0, import_react_compiler_runtime25.c)(4);
43063
+ var $ = (0, import_react_compiler_runtime45.c)(4);
42492
43064
  var content2 = t0.content;
42493
43065
  if (content2.type === "text") {
42494
43066
  var t1;
@@ -42520,20 +43092,38 @@ var ContentPart = function(t0) {
42520
43092
  };
42521
43093
  // src/components/messages/MessageContent/index.tsx
42522
43094
  var import_jsx_runtime46 = require("react/jsx-runtime");
42523
- var MessageContent = function(_ref) {
42524
- var message = _ref.message;
42525
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, {
42526
- children: message.content.map(function(content2, index) {
42527
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ContentPart, {
42528
- content: content2
42529
- }, index);
42530
- })
42531
- });
43095
+ var MessageContent = function(t0) {
43096
+ var $ = (0, import_react_compiler_runtime46.c)(4);
43097
+ var message = t0.message;
43098
+ var t1;
43099
+ if ($[0] !== message.content) {
43100
+ t1 = message.content.map(_temp);
43101
+ $[0] = message.content;
43102
+ $[1] = t1;
43103
+ } else {
43104
+ t1 = $[1];
43105
+ }
43106
+ var t2;
43107
+ if ($[2] !== t1) {
43108
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, {
43109
+ children: t1
43110
+ });
43111
+ $[2] = t1;
43112
+ $[3] = t2;
43113
+ } else {
43114
+ t2 = $[3];
43115
+ }
43116
+ return t2;
42532
43117
  };
43118
+ function _temp(content2, index) {
43119
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ContentPart, {
43120
+ content: content2
43121
+ }, index);
43122
+ }
42533
43123
  // src/components/threads/Thread/Message/index.tsx
42534
43124
  var import_jsx_runtime47 = require("react/jsx-runtime");
42535
43125
  var Message = function(t0) {
42536
- var $ = (0, import_react_compiler_runtime26.c)(37);
43126
+ var $ = (0, import_react_compiler_runtime47.c)(37);
42537
43127
  var message = t0.message, className = t0.className, style = t0.style;
42538
43128
  var t1;
42539
43129
  bb0: {
@@ -42567,7 +43157,7 @@ var Message = function(t0) {
42567
43157
  var messageCreationRunStepIndex = message.runSteps.findIndex(_t2);
42568
43158
  var _t3;
42569
43159
  if ($[3] !== message.runSteps || $[4] !== messageCreationRunStepIndex) {
42570
- var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp);
43160
+ var nextRunStepIndex = message.runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(_temp2);
42571
43161
  if (nextRunStepIndex === -1) {
42572
43162
  nextRunStepIndex = 0;
42573
43163
  }
@@ -42581,7 +43171,7 @@ var Message = function(t0) {
42581
43171
  var laterRunSteps = _t3;
42582
43172
  var _t4;
42583
43173
  if ($[6] !== message.runSteps || $[7] !== messageCreationRunStepIndex) {
42584
- _t4 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp2);
43174
+ _t4 = message.runSteps.slice(messageCreationRunStepIndex + 1).findIndex(_temp22);
42585
43175
  $[6] = message.runSteps;
42586
43176
  $[7] = messageCreationRunStepIndex;
42587
43177
  $[8] = _t4;
@@ -42720,17 +43310,17 @@ var Message = function(t0) {
42720
43310
  }
42721
43311
  return t8;
42722
43312
  };
42723
- function _temp(runStep_0) {
43313
+ function _temp2(runStep_0) {
42724
43314
  return runStep_0.step_details.type === "message_creation";
42725
43315
  }
42726
- function _temp2(runStep_1) {
43316
+ function _temp22(runStep_1) {
42727
43317
  return runStep_1.step_details.type === "message_creation";
42728
43318
  }
42729
43319
  // src/components/threads/Thread/Messages/Content/index.tsx
42730
- var import_react_compiler_runtime33 = require("react-compiler-runtime");
43320
+ var import_react_compiler_runtime56 = require("react-compiler-runtime");
42731
43321
  var import_react41 = require("react");
42732
43322
  // src/hooks/messageGroups/useMessageGroups/index.ts
42733
- var import_react_compiler_runtime27 = require("react-compiler-runtime");
43323
+ var import_react_compiler_runtime48 = require("react-compiler-runtime");
42734
43324
  var import_react32 = require("react");
42735
43325
  // src/hooks/messageGroups/useMessageGroups/lib/messageGroups/index.ts
42736
43326
  var import_lodash6 = __toESM(require("lodash"), 1);
@@ -42835,7 +43425,7 @@ var messageGroups = function(_ref) {
42835
43425
  };
42836
43426
  // src/hooks/messageGroups/useMessageGroups/index.ts
42837
43427
  var useMessageGroups = function(t0) {
42838
- var $ = (0, import_react_compiler_runtime27.c)(4);
43428
+ var $ = (0, import_react_compiler_runtime48.c)(4);
42839
43429
  var messages2 = t0.messages;
42840
43430
  var t1;
42841
43431
  var t2;
@@ -42862,16 +43452,16 @@ var useMessageGroups = function(t0) {
42862
43452
  return t1;
42863
43453
  };
42864
43454
  // src/components/skeletons/MessagesSkeleton/index.tsx
42865
- var import_react_compiler_runtime29 = require("react-compiler-runtime");
43455
+ var import_react_compiler_runtime51 = require("react-compiler-runtime");
42866
43456
  var import_react34 = require("react");
42867
43457
  var import_themes35 = require("@radix-ui/themes");
42868
43458
  // src/components/messageGroups/MessageGroupBase/index.tsx
42869
- var import_react_compiler_runtime28 = require("react-compiler-runtime");
43459
+ var import_react_compiler_runtime49 = require("react-compiler-runtime");
42870
43460
  var import_react33 = require("react");
42871
43461
  var import_themes33 = require("@radix-ui/themes");
42872
43462
  var import_jsx_runtime48 = require("react/jsx-runtime");
42873
43463
  var MessageGroupBase = /* @__PURE__ */ (0, import_react33.forwardRef)(function MessageGroupBase2(t0, ref) {
42874
- var $ = (0, import_react_compiler_runtime28.c)(5);
43464
+ var $ = (0, import_react_compiler_runtime49.c)(5);
42875
43465
  var children = t0.children;
42876
43466
  var t1;
42877
43467
  if ($[0] !== children) {
@@ -42902,24 +43492,34 @@ var MessageGroupBase = /* @__PURE__ */ (0, import_react33.forwardRef)(function M
42902
43492
  return t2;
42903
43493
  });
42904
43494
  // src/components/messageGroups/MessageGroupBase/Name.tsx
43495
+ var import_react_compiler_runtime50 = require("react-compiler-runtime");
42905
43496
  var import_themes34 = require("@radix-ui/themes");
42906
43497
  var import_jsx_runtime49 = require("react/jsx-runtime");
42907
- var Name = function(_ref) {
42908
- var children = _ref.children;
42909
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes34.Flex, {
42910
- align: "center",
42911
- height: "var(--space-5)",
42912
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes34.Text, {
42913
- size: "2",
42914
- weight: "bold",
42915
- children: children
42916
- })
42917
- });
43498
+ var Name = function(t0) {
43499
+ var $ = (0, import_react_compiler_runtime50.c)(2);
43500
+ var children = t0.children;
43501
+ var t1;
43502
+ if ($[0] !== children) {
43503
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes34.Flex, {
43504
+ align: "center",
43505
+ height: "var(--space-5)",
43506
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes34.Text, {
43507
+ size: "2",
43508
+ weight: "bold",
43509
+ children: children
43510
+ })
43511
+ });
43512
+ $[0] = children;
43513
+ $[1] = t1;
43514
+ } else {
43515
+ t1 = $[1];
43516
+ }
43517
+ return t1;
42918
43518
  };
42919
43519
  // src/components/skeletons/MessagesSkeleton/index.tsx
42920
43520
  var import_jsx_runtime50 = require("react/jsx-runtime");
42921
43521
  var MessagesSkeleton = /* @__PURE__ */ (0, import_react34.forwardRef)(function MessagesSkeleton2(_props, ref) {
42922
- var $ = (0, import_react_compiler_runtime29.c)(7);
43522
+ var $ = (0, import_react_compiler_runtime51.c)(7);
42923
43523
  var t0;
42924
43524
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
42925
43525
  t0 = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes35.Skeleton, {
@@ -43010,11 +43610,11 @@ var MessagesSkeleton = /* @__PURE__ */ (0, import_react34.forwardRef)(function M
43010
43610
  return t5;
43011
43611
  });
43012
43612
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
43013
- var import_react_compiler_runtime32 = require("react-compiler-runtime");
43613
+ var import_react_compiler_runtime55 = require("react-compiler-runtime");
43014
43614
  var import_react40 = require("react");
43015
43615
  var import_themes41 = require("@radix-ui/themes");
43016
43616
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
43017
- var import_react_compiler_runtime30 = require("react-compiler-runtime");
43617
+ var import_react_compiler_runtime52 = require("react-compiler-runtime");
43018
43618
  var import_react36 = require("react");
43019
43619
  var import_themes37 = require("@radix-ui/themes");
43020
43620
  // src/contexts/assistants/AssistantAvatarContext/index.tsx
@@ -43029,7 +43629,7 @@ var AssistantAvatarContext = /* @__PURE__ */ (0, import_react35.createContext)(/
43029
43629
  // src/components/messageGroups/MessageGroupBase/AssistantAvatar.tsx
43030
43630
  var import_jsx_runtime52 = require("react/jsx-runtime");
43031
43631
  var AssistantAvatar = function() {
43032
- var $ = (0, import_react_compiler_runtime30.c)(3);
43632
+ var $ = (0, import_react_compiler_runtime52.c)(3);
43033
43633
  var AssistantAvatarContextValue = (0, import_react36.useContext)(AssistantAvatarContext);
43034
43634
  var t0;
43035
43635
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -43061,7 +43661,7 @@ var AssistantAvatar = function() {
43061
43661
  var import_react37 = require("react");
43062
43662
  var AssistantNameContext = /* @__PURE__ */ (0, import_react37.createContext)("Assistant");
43063
43663
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
43064
- var import_react_compiler_runtime31 = require("react-compiler-runtime");
43664
+ var import_react_compiler_runtime53 = require("react-compiler-runtime");
43065
43665
  var import_react39 = require("react");
43066
43666
  var import_themes39 = require("@radix-ui/themes");
43067
43667
  // src/contexts/users/UserAvatarContext/index.tsx
@@ -43076,7 +43676,7 @@ var UserAvatarContext = /* @__PURE__ */ (0, import_react38.createContext)(/* @__
43076
43676
  // src/components/messageGroups/MessageGroupBase/UserAvatar.tsx
43077
43677
  var import_jsx_runtime54 = require("react/jsx-runtime");
43078
43678
  var UserAvatar = function() {
43079
- var $ = (0, import_react_compiler_runtime31.c)(3);
43679
+ var $ = (0, import_react_compiler_runtime53.c)(3);
43080
43680
  var UserAvatarContextValue = (0, import_react39.useContext)(UserAvatarContext);
43081
43681
  var t0;
43082
43682
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -43105,23 +43705,42 @@ var UserAvatar = function() {
43105
43705
  return t1;
43106
43706
  };
43107
43707
  // src/components/threads/Thread/Messages/Content/MessageGroup/Content/index.tsx
43708
+ var import_react_compiler_runtime54 = require("react-compiler-runtime");
43108
43709
  var import_themes40 = require("@radix-ui/themes");
43109
43710
  var import_jsx_runtime55 = require("react/jsx-runtime");
43110
- var Content5 = function(_ref) {
43111
- var messageGroup = _ref.messageGroup;
43112
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes40.Flex, {
43113
- direction: "column-reverse",
43114
- children: messageGroup.messages.map(function(message) {
43115
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Message, {
43116
- message: message
43117
- }, message.id);
43118
- })
43119
- });
43711
+ var Content5 = function(t0) {
43712
+ var $ = (0, import_react_compiler_runtime54.c)(4);
43713
+ var messageGroup = t0.messageGroup;
43714
+ var t1;
43715
+ if ($[0] !== messageGroup.messages) {
43716
+ t1 = messageGroup.messages.map(_temp3);
43717
+ $[0] = messageGroup.messages;
43718
+ $[1] = t1;
43719
+ } else {
43720
+ t1 = $[1];
43721
+ }
43722
+ var t2;
43723
+ if ($[2] !== t1) {
43724
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes40.Flex, {
43725
+ direction: "column-reverse",
43726
+ children: t1
43727
+ });
43728
+ $[2] = t1;
43729
+ $[3] = t2;
43730
+ } else {
43731
+ t2 = $[3];
43732
+ }
43733
+ return t2;
43120
43734
  };
43735
+ function _temp3(message) {
43736
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Message, {
43737
+ message: message
43738
+ }, message.id);
43739
+ }
43121
43740
  // src/components/threads/Thread/Messages/Content/MessageGroup/index.tsx
43122
43741
  var import_jsx_runtime56 = require("react/jsx-runtime");
43123
43742
  var MessageGroup = function(t0) {
43124
- var $ = (0, import_react_compiler_runtime32.c)(12);
43743
+ var $ = (0, import_react_compiler_runtime55.c)(12);
43125
43744
  var messageGroup = t0.messageGroup;
43126
43745
  var assistantNameContext = (0, import_react40.useContext)(AssistantNameContext);
43127
43746
  var t1;
@@ -43187,7 +43806,7 @@ var MessageGroup = function(t0) {
43187
43806
  // src/components/threads/Thread/Messages/Content/index.tsx
43188
43807
  var import_jsx_runtime57 = require("react/jsx-runtime");
43189
43808
  var Content6 = function() {
43190
- var $ = (0, import_react_compiler_runtime33.c)(11);
43809
+ var $ = (0, import_react_compiler_runtime56.c)(11);
43191
43810
  var _useMessages = useMessages(), messages2 = _useMessages.messages, isLoading = _useMessages.isLoading, isLoadingError = _useMessages.isLoadingError;
43192
43811
  var addToast = useToasts().addToast;
43193
43812
  var t0;
@@ -43237,7 +43856,7 @@ var Content6 = function() {
43237
43856
  }
43238
43857
  var t3;
43239
43858
  if ($[7] !== messageGroups2) {
43240
- t3 = messageGroups2.map(_temp3);
43859
+ t3 = messageGroups2.map(_temp4);
43241
43860
  $[7] = messageGroups2;
43242
43861
  $[8] = t3;
43243
43862
  } else {
@@ -43255,38 +43874,47 @@ var Content6 = function() {
43255
43874
  }
43256
43875
  return t4;
43257
43876
  };
43258
- function _temp3(messageGroup) {
43877
+ function _temp4(messageGroup) {
43259
43878
  return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(MessageGroup, {
43260
43879
  messageGroup: messageGroup
43261
43880
  }, messageGroup.id);
43262
43881
  }
43263
43882
  // src/components/threads/Thread/Messages/Progress/index.tsx
43264
- var import_react_compiler_runtime35 = require("react-compiler-runtime");
43883
+ var import_react_compiler_runtime59 = require("react-compiler-runtime");
43265
43884
  var import_react43 = require("react");
43266
43885
  var import_themes44 = require("@radix-ui/themes");
43267
43886
  // src/components/skeletons/StartingSkeleton/index.tsx
43268
- var import_react_compiler_runtime34 = require("react-compiler-runtime");
43887
+ var import_react_compiler_runtime58 = require("react-compiler-runtime");
43269
43888
  var import_react42 = require("react");
43270
43889
  var import_themes43 = require("@radix-ui/themes");
43271
43890
  // src/components/skeletons/StartingContentSkeleton/index.tsx
43891
+ var import_react_compiler_runtime57 = require("react-compiler-runtime");
43272
43892
  var import_themes42 = require("@radix-ui/themes");
43273
43893
  var import_jsx_runtime58 = require("react/jsx-runtime");
43274
43894
  var StartingContentSkeleton = function() {
43275
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes42.Skeleton, {
43276
- loading: true,
43277
- mt: "1",
43278
- height: "var(--space-4)",
43279
- width: "var(--space-4)",
43280
- style: {
43281
- borderRadius: "var(--radius-6)",
43282
- flexShrink: 0
43283
- }
43284
- });
43895
+ var $ = (0, import_react_compiler_runtime57.c)(1);
43896
+ var t0;
43897
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
43898
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes42.Skeleton, {
43899
+ loading: true,
43900
+ mt: "1",
43901
+ height: "var(--space-4)",
43902
+ width: "var(--space-4)",
43903
+ style: {
43904
+ borderRadius: "var(--radius-6)",
43905
+ flexShrink: 0
43906
+ }
43907
+ });
43908
+ $[0] = t0;
43909
+ } else {
43910
+ t0 = $[0];
43911
+ }
43912
+ return t0;
43285
43913
  };
43286
43914
  // src/components/skeletons/StartingSkeleton/index.tsx
43287
43915
  var import_jsx_runtime59 = require("react/jsx-runtime");
43288
43916
  var StartingSkeleton = function(t0) {
43289
- var $ = (0, import_react_compiler_runtime34.c)(7);
43917
+ var $ = (0, import_react_compiler_runtime58.c)(7);
43290
43918
  var children = t0.children;
43291
43919
  var assistantNameContext = (0, import_react42.useContext)(AssistantNameContext);
43292
43920
  var t1;
@@ -43338,7 +43966,7 @@ var StartingSkeleton = function(t0) {
43338
43966
  // src/components/threads/Thread/Messages/Progress/index.tsx
43339
43967
  var import_jsx_runtime60 = require("react/jsx-runtime");
43340
43968
  var Progress = function() {
43341
- var $ = (0, import_react_compiler_runtime35.c)(3);
43969
+ var $ = (0, import_react_compiler_runtime59.c)(3);
43342
43970
  var latestMessage = useLatestMessage().latestMessage;
43343
43971
  var isMutatingMessage = useIsMutatingMessage();
43344
43972
  var t0;
@@ -43409,7 +44037,7 @@ var Progress = function() {
43409
44037
  return null;
43410
44038
  };
43411
44039
  // src/components/threads/Thread/Messages/Root/index.tsx
43412
- var import_react_compiler_runtime36 = require("react-compiler-runtime");
44040
+ var import_react_compiler_runtime60 = require("react-compiler-runtime");
43413
44041
  var import_themes45 = require("@radix-ui/themes");
43414
44042
  // src/hooks/misc/useInfiniteScroll/index.tsx
43415
44043
  var import_react45 = require("react");
@@ -43507,7 +44135,7 @@ function _toPrimitive26(t, r) {
43507
44135
  return ("string" === r ? String : Number)(t);
43508
44136
  }
43509
44137
  var Root2 = function(t0) {
43510
- var $ = (0, import_react_compiler_runtime36.c)(18);
44138
+ var $ = (0, import_react_compiler_runtime60.c)(18);
43511
44139
  var children = t0.children, style = t0.style, className = t0.className;
43512
44140
  var _useMessages = useMessages(), isFetchingNextPage = _useMessages.isFetchingNextPage, hasNextPage = _useMessages.hasNextPage, fetchNextPage = _useMessages.fetchNextPage;
43513
44141
  var t1;
@@ -43590,10 +44218,10 @@ var Root2 = function(t0) {
43590
44218
  return t6;
43591
44219
  };
43592
44220
  // src/components/threads/Thread/Messages/NextPageSkeleton.tsx
43593
- var import_react_compiler_runtime37 = require("react-compiler-runtime");
44221
+ var import_react_compiler_runtime61 = require("react-compiler-runtime");
43594
44222
  var import_jsx_runtime62 = require("react/jsx-runtime");
43595
44223
  var NextPageSkeleton = function() {
43596
- var $ = (0, import_react_compiler_runtime37.c)(1);
44224
+ var $ = (0, import_react_compiler_runtime61.c)(1);
43597
44225
  var hasNextPage = useMessages().hasNextPage;
43598
44226
  if (!hasNextPage) {
43599
44227
  return null;
@@ -43609,33 +44237,72 @@ var NextPageSkeleton = function() {
43609
44237
  };
43610
44238
  // src/components/threads/Thread/Messages/index.tsx
43611
44239
  var import_jsx_runtime63 = require("react/jsx-runtime");
43612
- var Messages = function(_ref) {
43613
- var children = _ref.children, className = _ref.className, style = _ref.style;
43614
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Root2, {
43615
- style: style,
43616
- className: className,
43617
- children: [
43618
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes46.Flex, {
43619
- flexShrink: "0",
43620
- height: "var(--space-3)"
43621
- }),
43622
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Progress, {}),
43623
- children,
43624
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Content6, {}),
43625
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(NextPageSkeleton, {}),
43626
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes46.Flex, {
43627
- flexShrink: "0",
43628
- flexGrow: "1",
43629
- minHeight: "var(--space-5)"
43630
- })
43631
- ]
43632
- });
44240
+ var Messages = function(t0) {
44241
+ var $ = (0, import_react_compiler_runtime62.c)(9);
44242
+ var children = t0.children, className = t0.className, style = t0.style;
44243
+ var t1;
44244
+ var t2;
44245
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44246
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes46.Flex, {
44247
+ flexShrink: "0",
44248
+ height: "var(--space-3)"
44249
+ });
44250
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Progress, {});
44251
+ $[0] = t1;
44252
+ $[1] = t2;
44253
+ } else {
44254
+ t1 = $[0];
44255
+ t2 = $[1];
44256
+ }
44257
+ var t3;
44258
+ var t4;
44259
+ var t5;
44260
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
44261
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Content6, {});
44262
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(NextPageSkeleton, {});
44263
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_themes46.Flex, {
44264
+ flexShrink: "0",
44265
+ flexGrow: "1",
44266
+ minHeight: "var(--space-5)"
44267
+ });
44268
+ $[2] = t3;
44269
+ $[3] = t4;
44270
+ $[4] = t5;
44271
+ } else {
44272
+ t3 = $[2];
44273
+ t4 = $[3];
44274
+ t5 = $[4];
44275
+ }
44276
+ var t6;
44277
+ if ($[5] !== children || $[6] !== className || $[7] !== style) {
44278
+ t6 = /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(Root2, {
44279
+ style: style,
44280
+ className: className,
44281
+ children: [
44282
+ t1,
44283
+ t2,
44284
+ children,
44285
+ t3,
44286
+ t4,
44287
+ t5
44288
+ ]
44289
+ });
44290
+ $[5] = children;
44291
+ $[6] = className;
44292
+ $[7] = style;
44293
+ $[8] = t6;
44294
+ } else {
44295
+ t6 = $[8];
44296
+ }
44297
+ return t6;
43633
44298
  };
43634
44299
  Messages.Root = Root2;
43635
44300
  Messages.Message = Message;
43636
44301
  Messages.NextPageSkeleton = NextPageSkeleton;
44302
+ // src/components/threads/Thread/MessageForm/index.tsx
44303
+ var import_react_compiler_runtime68 = require("react-compiler-runtime");
43637
44304
  // src/components/threads/Thread/MessageForm/Submit/index.tsx
43638
- var import_react_compiler_runtime38 = require("react-compiler-runtime");
44305
+ var import_react_compiler_runtime63 = require("react-compiler-runtime");
43639
44306
  var import_react_icons11 = require("@radix-ui/react-icons");
43640
44307
  var import_themes47 = require("@radix-ui/themes");
43641
44308
  // src/hooks/messages/useMessageFormContext/index.ts
@@ -43699,18 +44366,29 @@ function _toPrimitive27(t, r) {
43699
44366
  }
43700
44367
  return ("string" === r ? String : Number)(t);
43701
44368
  }
43702
- var Root3 = function(_ref) {
43703
- var children = _ref.children, style = _ref.style, className = _ref.className;
43704
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes47.Flex, {
43705
- flexShrink: "0",
43706
- align: "end",
43707
- style: style,
43708
- className: className,
43709
- children: children
43710
- });
44369
+ var Root3 = function(t0) {
44370
+ var $ = (0, import_react_compiler_runtime63.c)(4);
44371
+ var children = t0.children, style = t0.style, className = t0.className;
44372
+ var t1;
44373
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
44374
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes47.Flex, {
44375
+ flexShrink: "0",
44376
+ align: "end",
44377
+ style: style,
44378
+ className: className,
44379
+ children: children
44380
+ });
44381
+ $[0] = children;
44382
+ $[1] = className;
44383
+ $[2] = style;
44384
+ $[3] = t1;
44385
+ } else {
44386
+ t1 = $[3];
44387
+ }
44388
+ return t1;
43711
44389
  };
43712
44390
  var Button3 = function(props) {
43713
- var $ = (0, import_react_compiler_runtime38.c)(10);
44391
+ var $ = (0, import_react_compiler_runtime63.c)(10);
43714
44392
  var superinterfaceContext = useSuperinterfaceContext();
43715
44393
  var _useMessageFormContext = useMessageFormContext(), isDisabled = _useMessageFormContext.isDisabled, isLoading = _useMessageFormContext.isLoading, isFileLoading = _useMessageFormContext.isFileLoading;
43716
44394
  if (isLoading) {
@@ -43773,9 +44451,25 @@ var Button3 = function(props) {
43773
44451
  return t2;
43774
44452
  };
43775
44453
  var Submit = function(props) {
43776
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Root3, _objectSpread27(_objectSpread27({}, props), {}, {
43777
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button3, {})
43778
- }));
44454
+ var $ = (0, import_react_compiler_runtime63.c)(3);
44455
+ var t0;
44456
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44457
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button3, {});
44458
+ $[0] = t0;
44459
+ } else {
44460
+ t0 = $[0];
44461
+ }
44462
+ var t1;
44463
+ if ($[1] !== props) {
44464
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Root3, _objectSpread27(_objectSpread27({}, props), {}, {
44465
+ children: t0
44466
+ }));
44467
+ $[1] = props;
44468
+ $[2] = t1;
44469
+ } else {
44470
+ t1 = $[2];
44471
+ }
44472
+ return t1;
43779
44473
  };
43780
44474
  Submit.Root = Root3;
43781
44475
  Submit.Button = Button3;
@@ -43982,6 +44676,7 @@ var Root4 = function(_ref) {
43982
44676
  var import_react_hook_form3 = require("react-hook-form");
43983
44677
  var import_themes52 = require("@radix-ui/themes");
43984
44678
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
44679
+ var import_react_compiler_runtime65 = require("react-compiler-runtime");
43985
44680
  var import_themes49 = require("@radix-ui/themes");
43986
44681
  var import_react_hook_form2 = require("react-hook-form");
43987
44682
  // src/hooks/misc/usePrevious.ts
@@ -43996,7 +44691,7 @@ var usePrevious = function(state) {
43996
44691
  // src/components/threads/Thread/MessageForm/Field/Control.tsx
43997
44692
  var import_react51 = require("react");
43998
44693
  // src/components/textareas/TextareaBase/index.tsx
43999
- var import_react_compiler_runtime39 = require("react-compiler-runtime");
44694
+ var import_react_compiler_runtime64 = require("react-compiler-runtime");
44000
44695
  var import_react50 = require("react");
44001
44696
  var import_react_textarea_autosize = __toESM(require("react-textarea-autosize"), 1);
44002
44697
  var import_jsx_runtime66 = require("react/jsx-runtime");
@@ -44066,7 +44761,7 @@ function _objectWithoutPropertiesLoose3(r, e) {
44066
44761
  return t;
44067
44762
  }
44068
44763
  var TextareaBase = /* @__PURE__ */ (0, import_react50.forwardRef)(function TextareaBase2(t0, ref) {
44069
- var $ = (0, import_react_compiler_runtime39.c)(14);
44764
+ var $ = (0, import_react_compiler_runtime64.c)(14);
44070
44765
  var className;
44071
44766
  var rest;
44072
44767
  var style;
@@ -44186,15 +44881,26 @@ function _toPrimitive30(t, r) {
44186
44881
  }
44187
44882
  return ("string" === r ? String : Number)(t);
44188
44883
  }
44189
- var Root5 = function(_ref) {
44190
- var children = _ref.children, style = _ref.style, className = _ref.className;
44191
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes49.Flex, {
44192
- flexGrow: "1",
44193
- pt: "4px",
44194
- style: style,
44195
- className: className,
44196
- children: children
44197
- });
44884
+ var Root5 = function(t0) {
44885
+ var $ = (0, import_react_compiler_runtime65.c)(4);
44886
+ var children = t0.children, style = t0.style, className = t0.className;
44887
+ var t1;
44888
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
44889
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_themes49.Flex, {
44890
+ flexGrow: "1",
44891
+ pt: "4px",
44892
+ style: style,
44893
+ className: className,
44894
+ children: children
44895
+ });
44896
+ $[0] = children;
44897
+ $[1] = className;
44898
+ $[2] = style;
44899
+ $[3] = t1;
44900
+ } else {
44901
+ t1 = $[3];
44902
+ }
44903
+ return t1;
44198
44904
  };
44199
44905
  var Input = function(props) {
44200
44906
  "use no memo";
@@ -44241,14 +44947,30 @@ var Input = function(props) {
44241
44947
  }));
44242
44948
  };
44243
44949
  var Control = function(props) {
44244
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Root5, _objectSpread30(_objectSpread30({}, props), {}, {
44245
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Input, {})
44246
- }));
44950
+ var $ = (0, import_react_compiler_runtime65.c)(3);
44951
+ var t0;
44952
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
44953
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Input, {});
44954
+ $[0] = t0;
44955
+ } else {
44956
+ t0 = $[0];
44957
+ }
44958
+ var t1;
44959
+ if ($[1] !== props) {
44960
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Root5, _objectSpread30(_objectSpread30({}, props), {}, {
44961
+ children: t0
44962
+ }));
44963
+ $[1] = props;
44964
+ $[2] = t1;
44965
+ } else {
44966
+ t1 = $[2];
44967
+ }
44968
+ return t1;
44247
44969
  };
44248
44970
  Control.Root = Root5;
44249
44971
  Control.Input = Input;
44250
44972
  // src/components/threads/Thread/MessageForm/Field/Files/Preview.tsx
44251
- var import_react_compiler_runtime40 = require("react-compiler-runtime");
44973
+ var import_react_compiler_runtime66 = require("react-compiler-runtime");
44252
44974
  var import_themes50 = require("@radix-ui/themes");
44253
44975
  var import_react_icons12 = require("@radix-ui/react-icons");
44254
44976
  var import_jsx_runtime68 = require("react/jsx-runtime");
@@ -44296,7 +45018,7 @@ function _toPrimitive31(t, r) {
44296
45018
  return ("string" === r ? String : Number)(t);
44297
45019
  }
44298
45020
  var Preview = function(props) {
44299
- var $ = (0, import_react_compiler_runtime40.c)(8);
45021
+ var $ = (0, import_react_compiler_runtime66.c)(8);
44300
45022
  var _useMessageFormContext = useMessageFormContext(), files = _useMessageFormContext.files, setFiles = _useMessageFormContext.setFiles;
44301
45023
  if (!files.length) {
44302
45024
  return null;
@@ -44394,7 +45116,7 @@ var import_dayjs2 = __toESM(require("dayjs"), 1);
44394
45116
  var import_react_icons13 = require("@radix-ui/react-icons");
44395
45117
  var import_themes51 = require("@radix-ui/themes");
44396
45118
  // src/hooks/files/useCreateFile/index.ts
44397
- var import_react_compiler_runtime41 = require("react-compiler-runtime");
45119
+ var import_react_compiler_runtime67 = require("react-compiler-runtime");
44398
45120
  var import_react_query7 = require("@tanstack/react-query");
44399
45121
  // src/hooks/files/useCreateFile/lib/mutationOptions/mutationFn/body/formData.ts
44400
45122
  var formData = function(variables) {
@@ -44630,11 +45352,11 @@ function _toPrimitive34(t, r) {
44630
45352
  return ("string" === r ? String : Number)(t);
44631
45353
  }
44632
45354
  var useCreateFile = function(t0) {
44633
- var $ = (0, import_react_compiler_runtime41.c)(15);
45355
+ var $ = (0, import_react_compiler_runtime67.c)(15);
44634
45356
  var t1;
44635
45357
  if ($[0] !== t0) {
44636
45358
  t1 = t0 === void 0 ? {
44637
- onError: _temp4
45359
+ onError: _temp5
44638
45360
  } : t0;
44639
45361
  $[0] = t0;
44640
45362
  $[1] = t1;
@@ -44644,7 +45366,7 @@ var useCreateFile = function(t0) {
44644
45366
  var t2 = t1.onError;
44645
45367
  var t3;
44646
45368
  if ($[2] !== t2) {
44647
- t3 = t2 === void 0 ? _temp22 : t2;
45369
+ t3 = t2 === void 0 ? _temp23 : t2;
44648
45370
  $[2] = t2;
44649
45371
  $[3] = t3;
44650
45372
  } else {
@@ -44672,7 +45394,7 @@ var useCreateFile = function(t0) {
44672
45394
  }
44673
45395
  var props = (0, import_react_query7.useMutation)(t4);
44674
45396
  var t5;
44675
- if ($[9] !== props || $[10] !== threadContext.variables) {
45397
+ if ($[9] !== props || $[10] !== threadContext) {
44676
45398
  t5 = function t52() {
44677
45399
  var _props;
44678
45400
  for(var _len = arguments.length, t62 = new Array(_len), _key = 0; _key < _len; _key++){
@@ -44685,7 +45407,7 @@ var useCreateFile = function(t0) {
44685
45407
  ].concat(_to_consumable_array(restArgs)));
44686
45408
  };
44687
45409
  $[9] = props;
44688
- $[10] = threadContext.variables;
45410
+ $[10] = threadContext;
44689
45411
  $[11] = t5;
44690
45412
  } else {
44691
45413
  t5 = $[11];
@@ -44703,8 +45425,8 @@ var useCreateFile = function(t0) {
44703
45425
  }
44704
45426
  return t6;
44705
45427
  };
44706
- function _temp4() {}
44707
- function _temp22() {}
45428
+ function _temp5() {}
45429
+ function _temp23() {}
44708
45430
  // src/components/threads/Thread/MessageForm/Field/Files/Control.tsx
44709
45431
  var import_jsx_runtime69 = require("react/jsx-runtime");
44710
45432
  function ownKeys35(e, r) {
@@ -45156,63 +45878,107 @@ function _toPrimitive37(t, r) {
45156
45878
  return ("string" === r ? String : Number)(t);
45157
45879
  }
45158
45880
  var MessageForm = function(props) {
45159
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Root4, _objectSpread37(_objectSpread37({}, props), {}, {
45160
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(Field.Root, {
45881
+ var $ = (0, import_react_compiler_runtime68.c)(3);
45882
+ var t0;
45883
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
45884
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(Field.Root, {
45161
45885
  children: [
45162
45886
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Field.Control, {}),
45163
45887
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Submit, {})
45164
45888
  ]
45165
- })
45166
- }));
45889
+ });
45890
+ $[0] = t0;
45891
+ } else {
45892
+ t0 = $[0];
45893
+ }
45894
+ var t1;
45895
+ if ($[1] !== props) {
45896
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Root4, _objectSpread37(_objectSpread37({}, props), {}, {
45897
+ children: t0
45898
+ }));
45899
+ $[1] = props;
45900
+ $[2] = t1;
45901
+ } else {
45902
+ t1 = $[2];
45903
+ }
45904
+ return t1;
45167
45905
  };
45168
45906
  MessageForm.Root = Root4;
45169
45907
  MessageForm.Field = Field;
45170
45908
  MessageForm.Submit = Submit;
45171
45909
  // src/components/threads/Thread/Root/index.tsx
45910
+ var import_react_compiler_runtime71 = require("react-compiler-runtime");
45172
45911
  var import_themes54 = require("@radix-ui/themes");
45173
45912
  // src/components/threads/Thread/Provider/index.tsx
45174
45913
  var Provider2 = SuperinterfaceProvider;
45175
45914
  // src/components/toasts/ToastsProvider/index.tsx
45176
- var import_react_compiler_runtime42 = require("react-compiler-runtime");
45915
+ var import_react_compiler_runtime70 = require("react-compiler-runtime");
45177
45916
  var import_react53 = require("react");
45178
45917
  var Toast2 = __toESM(require("@radix-ui/react-toast"), 1);
45179
45918
  // src/components/toasts/ToastsProvider/CustomToast.tsx
45919
+ var import_react_compiler_runtime69 = require("react-compiler-runtime");
45180
45920
  var Toast = __toESM(require("@radix-ui/react-toast"), 1);
45181
45921
  var import_themes53 = require("@radix-ui/themes");
45182
45922
  var import_react_icons14 = require("@radix-ui/react-icons");
45183
45923
  var import_jsx_runtime72 = require("react/jsx-runtime");
45184
- var CustomToast = function(_ref) {
45185
- var toast = _ref.toast;
45186
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Toast.Root, {
45187
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes53.Card, {
45188
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Toast.Title, {
45189
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes53.Flex, {
45190
- children: [
45191
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes53.Flex, {
45192
- pr: "2",
45193
- height: "14px",
45194
- align: "center",
45195
- children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons14.CheckCircledIcon, {
45196
- color: "var(--accent-9)"
45197
- }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons14.CrossCircledIcon, {
45198
- color: "var(--red-9)"
45199
- })
45200
- }),
45201
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes53.Text, {
45202
- weight: "medium",
45203
- size: "1",
45204
- children: toast.message
45205
- })
45206
- ]
45924
+ var CustomToast = function(t0) {
45925
+ var $ = (0, import_react_compiler_runtime69.c)(7);
45926
+ var toast = t0.toast;
45927
+ var t1;
45928
+ if ($[0] !== toast.type) {
45929
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes53.Flex, {
45930
+ pr: "2",
45931
+ height: "14px",
45932
+ align: "center",
45933
+ children: toast.type === "success" ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons14.CheckCircledIcon, {
45934
+ color: "var(--accent-9)"
45935
+ }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_icons14.CrossCircledIcon, {
45936
+ color: "var(--red-9)"
45937
+ })
45938
+ });
45939
+ $[0] = toast.type;
45940
+ $[1] = t1;
45941
+ } else {
45942
+ t1 = $[1];
45943
+ }
45944
+ var t2;
45945
+ if ($[2] !== toast.message) {
45946
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes53.Text, {
45947
+ weight: "medium",
45948
+ size: "1",
45949
+ children: toast.message
45950
+ });
45951
+ $[2] = toast.message;
45952
+ $[3] = t2;
45953
+ } else {
45954
+ t2 = $[3];
45955
+ }
45956
+ var t3;
45957
+ if ($[4] !== t1 || $[5] !== t2) {
45958
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Toast.Root, {
45959
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_themes53.Card, {
45960
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Toast.Title, {
45961
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_themes53.Flex, {
45962
+ children: [
45963
+ t1,
45964
+ t2
45965
+ ]
45966
+ })
45207
45967
  })
45208
45968
  })
45209
- })
45210
- });
45969
+ });
45970
+ $[4] = t1;
45971
+ $[5] = t2;
45972
+ $[6] = t3;
45973
+ } else {
45974
+ t3 = $[6];
45975
+ }
45976
+ return t3;
45211
45977
  };
45212
45978
  // src/components/toasts/ToastsProvider/index.tsx
45213
45979
  var import_jsx_runtime73 = require("react/jsx-runtime");
45214
45980
  var ToastsProvider = function(t0) {
45215
- var $ = (0, import_react_compiler_runtime42.c)(15);
45981
+ var $ = (0, import_react_compiler_runtime70.c)(15);
45216
45982
  var children = t0.children, t1 = t0.bottom;
45217
45983
  var bottom = t1 === void 0 ? 0 : t1;
45218
45984
  var t2;
@@ -45250,7 +46016,7 @@ var ToastsProvider = function(t0) {
45250
46016
  }
45251
46017
  var t5;
45252
46018
  if ($[4] !== toasts) {
45253
- t5 = Array.from(toasts).map(_temp5);
46019
+ t5 = Array.from(toasts).map(_temp6);
45254
46020
  $[4] = toasts;
45255
46021
  $[5] = t5;
45256
46022
  } else {
@@ -45310,7 +46076,7 @@ var ToastsProvider = function(t0) {
45310
46076
  }
45311
46077
  return t8;
45312
46078
  };
45313
- function _temp5(toast_0, index) {
46079
+ function _temp6(toast_0, index) {
45314
46080
  return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(CustomToast, {
45315
46081
  toast: toast_0
45316
46082
  }, index);
@@ -45383,20 +46149,60 @@ function _objectWithoutPropertiesLoose4(r, e) {
45383
46149
  }
45384
46150
  return t;
45385
46151
  }
45386
- var Root8 = function(_ref) {
45387
- var children = _ref.children, style = _ref.style, className = _ref.className, rest = _objectWithoutProperties4(_ref, _excluded4);
45388
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ToastsProvider, {
45389
- bottom: "var(--space-9)",
45390
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
45391
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes54.Flex, {
45392
- direction: "column",
45393
- flexGrow: "1",
45394
- className: className,
45395
- style: style,
45396
- children: children
45397
- })
45398
- }))
45399
- });
46152
+ var Root8 = function(t0) {
46153
+ var $ = (0, import_react_compiler_runtime71.c)(12);
46154
+ var children;
46155
+ var className;
46156
+ var rest;
46157
+ var style;
46158
+ if ($[0] !== t0) {
46159
+ var _t = t0;
46160
+ var ref;
46161
+ ref = _t, children = ref.children, style = ref.style, className = ref.className, ref;
46162
+ rest = _objectWithoutProperties4(_t, _excluded4);
46163
+ _t;
46164
+ $[0] = t0;
46165
+ $[1] = children;
46166
+ $[2] = className;
46167
+ $[3] = rest;
46168
+ $[4] = style;
46169
+ } else {
46170
+ children = $[1];
46171
+ className = $[2];
46172
+ rest = $[3];
46173
+ style = $[4];
46174
+ }
46175
+ var t1;
46176
+ if ($[5] !== children || $[6] !== className || $[7] !== style) {
46177
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes54.Flex, {
46178
+ direction: "column",
46179
+ flexGrow: "1",
46180
+ className: className,
46181
+ style: style,
46182
+ children: children
46183
+ });
46184
+ $[5] = children;
46185
+ $[6] = className;
46186
+ $[7] = style;
46187
+ $[8] = t1;
46188
+ } else {
46189
+ t1 = $[8];
46190
+ }
46191
+ var t2;
46192
+ if ($[9] !== rest || $[10] !== t1) {
46193
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ToastsProvider, {
46194
+ bottom: "var(--space-9)",
46195
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Provider2, _objectSpread38(_objectSpread38({}, rest), {}, {
46196
+ children: t1
46197
+ }))
46198
+ });
46199
+ $[9] = rest;
46200
+ $[10] = t1;
46201
+ $[11] = t2;
46202
+ } else {
46203
+ t2 = $[11];
46204
+ }
46205
+ return t2;
45400
46206
  };
45401
46207
  // src/components/threads/Thread/index.tsx
45402
46208
  var import_jsx_runtime75 = require("react/jsx-runtime");
@@ -45444,12 +46250,32 @@ function _toPrimitive39(t, r) {
45444
46250
  return ("string" === r ? String : Number)(t);
45445
46251
  }
45446
46252
  var Thread = function(props) {
45447
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
45448
- children: [
45449
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Messages, {}),
45450
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(MessageForm, {})
45451
- ]
45452
- }));
46253
+ var $ = (0, import_react_compiler_runtime72.c)(4);
46254
+ var t0;
46255
+ var t1;
46256
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46257
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Messages, {});
46258
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(MessageForm, {});
46259
+ $[0] = t0;
46260
+ $[1] = t1;
46261
+ } else {
46262
+ t0 = $[0];
46263
+ t1 = $[1];
46264
+ }
46265
+ var t2;
46266
+ if ($[2] !== props) {
46267
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Root8, _objectSpread39(_objectSpread39({}, props), {}, {
46268
+ children: [
46269
+ t0,
46270
+ t1
46271
+ ]
46272
+ }));
46273
+ $[2] = props;
46274
+ $[3] = t2;
46275
+ } else {
46276
+ t2 = $[3];
46277
+ }
46278
+ return t2;
45453
46279
  };
45454
46280
  Thread.Root = Root8;
45455
46281
  Thread.Messages = Messages;
@@ -45460,7 +46286,7 @@ var useMessageContext = function() {
45460
46286
  return (0, import_react54.useContext)(MessageContext);
45461
46287
  };
45462
46288
  // src/hooks/assistants/useAssistant/index.ts
45463
- var import_react_compiler_runtime43 = require("react-compiler-runtime");
46289
+ var import_react_compiler_runtime73 = require("react-compiler-runtime");
45464
46290
  var import_react55 = require("react");
45465
46291
  var import_react_query9 = require("@tanstack/react-query");
45466
46292
  // src/hooks/assistants/useAssistant/lib/queryOptions/index.ts
@@ -45610,7 +46436,7 @@ function _toPrimitive40(t, r) {
45610
46436
  return ("string" === r ? String : Number)(t);
45611
46437
  }
45612
46438
  var useAssistant = function(t0) {
45613
- var $ = (0, import_react_compiler_runtime43.c)(6);
46439
+ var $ = (0, import_react_compiler_runtime73.c)(6);
45614
46440
  var assistantId = t0.assistantId;
45615
46441
  var superinterfaceContext = useSuperinterfaceContext();
45616
46442
  var t1;
@@ -45642,8 +46468,12 @@ var useAssistant = function(t0) {
45642
46468
  t2 = t4;
45643
46469
  return t2;
45644
46470
  };
46471
+ // src/components/threads/ThreadDialog/index.tsx
46472
+ var import_react_compiler_runtime80 = require("react-compiler-runtime");
46473
+ // src/components/threads/ThreadDialog/Root/index.tsx
46474
+ var import_react_compiler_runtime75 = require("react-compiler-runtime");
45645
46475
  // src/components/threads/ThreadDialog/Provider/index.tsx
45646
- var import_react_compiler_runtime44 = require("react-compiler-runtime");
46476
+ var import_react_compiler_runtime74 = require("react-compiler-runtime");
45647
46477
  var import_react58 = require("react");
45648
46478
  // src/contexts/threads/ThreadDialogContext/index.ts
45649
46479
  var import_react56 = require("react");
@@ -45659,7 +46489,7 @@ var useThreadDialogContext = function() {
45659
46489
  // src/components/threads/ThreadDialog/Provider/index.tsx
45660
46490
  var import_jsx_runtime76 = require("react/jsx-runtime");
45661
46491
  var Provider4 = function(t0) {
45662
- var $ = (0, import_react_compiler_runtime44.c)(5);
46492
+ var $ = (0, import_react_compiler_runtime74.c)(5);
45663
46493
  var children = t0.children;
45664
46494
  var threadDialogContext = useThreadDialogContext();
45665
46495
  var _ref = _sliced_to_array((0, import_react58.useState)(threadDialogContext.isOpen), 2), isOpen = _ref[0], setIsOpen = _ref[1];
@@ -45690,16 +46520,26 @@ var Provider4 = function(t0) {
45690
46520
  };
45691
46521
  // src/components/threads/ThreadDialog/Root/index.tsx
45692
46522
  var import_jsx_runtime77 = require("react/jsx-runtime");
45693
- var Root9 = function(_ref) {
45694
- var children = _ref.children;
45695
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Provider4, {
45696
- children: children
45697
- });
46523
+ var Root9 = function(t0) {
46524
+ var $ = (0, import_react_compiler_runtime75.c)(2);
46525
+ var children = t0.children;
46526
+ var t1;
46527
+ if ($[0] !== children) {
46528
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Provider4, {
46529
+ children: children
46530
+ });
46531
+ $[0] = children;
46532
+ $[1] = t1;
46533
+ } else {
46534
+ t1 = $[1];
46535
+ }
46536
+ return t1;
45698
46537
  };
45699
46538
  // src/components/threads/ThreadDialog/Trigger/index.tsx
45700
- var import_react_compiler_runtime45 = require("react-compiler-runtime");
46539
+ var import_react_compiler_runtime77 = require("react-compiler-runtime");
45701
46540
  var import_themes56 = require("@radix-ui/themes");
45702
46541
  // src/components/threads/ThreadDialog/Trigger/Button.tsx
46542
+ var import_react_compiler_runtime76 = require("react-compiler-runtime");
45703
46543
  var import_themes55 = require("@radix-ui/themes");
45704
46544
  var import_react_icons15 = require("@radix-ui/react-icons");
45705
46545
  var import_jsx_runtime78 = require("react/jsx-runtime");
@@ -45747,12 +46587,28 @@ function _toPrimitive41(t, r) {
45747
46587
  return ("string" === r ? String : Number)(t);
45748
46588
  }
45749
46589
  var Button4 = function(props) {
45750
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_themes55.IconButton, _objectSpread41(_objectSpread41({
45751
- size: "4",
45752
- radius: "full"
45753
- }, props), {}, {
45754
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_icons15.ChatBubbleIcon, {})
45755
- }));
46590
+ var $ = (0, import_react_compiler_runtime76.c)(3);
46591
+ var t0;
46592
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46593
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react_icons15.ChatBubbleIcon, {});
46594
+ $[0] = t0;
46595
+ } else {
46596
+ t0 = $[0];
46597
+ }
46598
+ var t1;
46599
+ if ($[1] !== props) {
46600
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_themes55.IconButton, _objectSpread41(_objectSpread41({
46601
+ size: "4",
46602
+ radius: "full"
46603
+ }, props), {}, {
46604
+ children: t0
46605
+ }));
46606
+ $[1] = props;
46607
+ $[2] = t1;
46608
+ } else {
46609
+ t1 = $[2];
46610
+ }
46611
+ return t1;
45756
46612
  };
45757
46613
  // src/components/threads/ThreadDialog/Trigger/index.tsx
45758
46614
  var import_jsx_runtime79 = require("react/jsx-runtime");
@@ -45800,7 +46656,7 @@ function _toPrimitive42(t, r) {
45800
46656
  return ("string" === r ? String : Number)(t);
45801
46657
  }
45802
46658
  var Root10 = function(t0) {
45803
- var $ = (0, import_react_compiler_runtime45.c)(14);
46659
+ var $ = (0, import_react_compiler_runtime77.c)(14);
45804
46660
  var children = t0.children, style = t0.style, className = t0.className;
45805
46661
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
45806
46662
  var t1 = isOpen ? "none" : "flex";
@@ -45818,7 +46674,7 @@ var Root10 = function(t0) {
45818
46674
  var t3;
45819
46675
  if ($[2] !== setIsOpen) {
45820
46676
  t3 = function() {
45821
- return setIsOpen(_temp6);
46677
+ return setIsOpen(_temp7);
45822
46678
  };
45823
46679
  $[2] = setIsOpen;
45824
46680
  $[3] = t3;
@@ -45871,25 +46727,41 @@ var Root10 = function(t0) {
45871
46727
  return t6;
45872
46728
  };
45873
46729
  var Trigger = function(args) {
45874
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Root10, _objectSpread42(_objectSpread42({}, args), {}, {
45875
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button4, {})
45876
- }));
46730
+ var $ = (0, import_react_compiler_runtime77.c)(3);
46731
+ var t0;
46732
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
46733
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button4, {});
46734
+ $[0] = t0;
46735
+ } else {
46736
+ t0 = $[0];
46737
+ }
46738
+ var t1;
46739
+ if ($[1] !== args) {
46740
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Root10, _objectSpread42(_objectSpread42({}, args), {}, {
46741
+ children: t0
46742
+ }));
46743
+ $[1] = args;
46744
+ $[2] = t1;
46745
+ } else {
46746
+ t1 = $[2];
46747
+ }
46748
+ return t1;
45877
46749
  };
45878
46750
  Trigger.Root = Root10;
45879
46751
  Trigger.Button = Button4;
45880
- function _temp6(prev) {
46752
+ function _temp7(prev) {
45881
46753
  return !prev;
45882
46754
  }
45883
46755
  // src/components/threads/ThreadDialog/Content/index.tsx
45884
- var import_react_compiler_runtime47 = require("react-compiler-runtime");
46756
+ var import_react_compiler_runtime79 = require("react-compiler-runtime");
45885
46757
  var import_themes58 = require("@radix-ui/themes");
45886
46758
  // src/components/threads/ThreadDialog/Close/index.tsx
45887
- var import_react_compiler_runtime46 = require("react-compiler-runtime");
46759
+ var import_react_compiler_runtime78 = require("react-compiler-runtime");
45888
46760
  var import_react_icons16 = require("@radix-ui/react-icons");
45889
46761
  var import_themes57 = require("@radix-ui/themes");
45890
46762
  var import_jsx_runtime80 = require("react/jsx-runtime");
45891
46763
  var Close = function() {
45892
- var $ = (0, import_react_compiler_runtime46.c)(9);
46764
+ var $ = (0, import_react_compiler_runtime78.c)(9);
45893
46765
  var _useThreadDialogContext = useThreadDialogContext(), setIsOpen = _useThreadDialogContext.setIsOpen, isOpen = _useThreadDialogContext.isOpen;
45894
46766
  var t0 = isOpen ? "flex" : "none";
45895
46767
  var t1;
@@ -45906,7 +46778,7 @@ var Close = function() {
45906
46778
  var t2;
45907
46779
  if ($[2] !== setIsOpen) {
45908
46780
  t2 = function() {
45909
- return setIsOpen(_temp7);
46781
+ return setIsOpen(_temp8);
45910
46782
  };
45911
46783
  $[2] = setIsOpen;
45912
46784
  $[3] = t2;
@@ -45956,7 +46828,7 @@ var Close = function() {
45956
46828
  }
45957
46829
  return t5;
45958
46830
  };
45959
- function _temp7(prev) {
46831
+ function _temp8(prev) {
45960
46832
  return !prev;
45961
46833
  }
45962
46834
  // src/components/threads/ThreadDialog/Content/index.tsx
@@ -46005,7 +46877,7 @@ function _toPrimitive43(t, r) {
46005
46877
  return ("string" === r ? String : Number)(t);
46006
46878
  }
46007
46879
  var Root11 = function(t0) {
46008
- var $ = (0, import_react_compiler_runtime47.c)(19);
46880
+ var $ = (0, import_react_compiler_runtime79.c)(19);
46009
46881
  var children = t0.children, className = t0.className, style = t0.style;
46010
46882
  var isOpen = useThreadDialogContext().isOpen;
46011
46883
  if (!isOpen) {
@@ -46151,41 +47023,93 @@ var Root11 = function(t0) {
46151
47023
  }
46152
47024
  return t13;
46153
47025
  };
46154
- var Messages2 = function(_ref) {
46155
- var className = _ref.className, style = _ref.style;
46156
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Thread.Messages, {
46157
- className: className,
46158
- style: _objectSpread43({
47026
+ var Messages2 = function(t0) {
47027
+ var $ = (0, import_react_compiler_runtime79.c)(5);
47028
+ var className = t0.className, style = t0.style;
47029
+ var t1;
47030
+ if ($[0] !== style) {
47031
+ t1 = _objectSpread43({
46159
47032
  paddingTop: "var(--space-5)",
46160
47033
  paddingRight: "var(--space-5)",
46161
47034
  paddingLeft: "var(--space-5)"
46162
- }, style)
46163
- });
47035
+ }, style);
47036
+ $[0] = style;
47037
+ $[1] = t1;
47038
+ } else {
47039
+ t1 = $[1];
47040
+ }
47041
+ var t2;
47042
+ if ($[2] !== className || $[3] !== t1) {
47043
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Thread.Messages, {
47044
+ className: className,
47045
+ style: t1
47046
+ });
47047
+ $[2] = className;
47048
+ $[3] = t1;
47049
+ $[4] = t2;
47050
+ } else {
47051
+ t2 = $[4];
47052
+ }
47053
+ return t2;
46164
47054
  };
46165
- var FormContainer = function(_ref2) {
46166
- var children = _ref2.children, className = _ref2.className, style = _ref2.style;
46167
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes58.Flex, {
46168
- direction: "column",
46169
- pl: "5",
46170
- pr: "5",
46171
- pb: "3",
46172
- flexShrink: "0",
46173
- className: className,
46174
- style: style,
46175
- children: children
46176
- });
47055
+ var FormContainer = function(t0) {
47056
+ var $ = (0, import_react_compiler_runtime79.c)(4);
47057
+ var children = t0.children, className = t0.className, style = t0.style;
47058
+ var t1;
47059
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
47060
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes58.Flex, {
47061
+ direction: "column",
47062
+ pl: "5",
47063
+ pr: "5",
47064
+ pb: "3",
47065
+ flexShrink: "0",
47066
+ className: className,
47067
+ style: style,
47068
+ children: children
47069
+ });
47070
+ $[0] = children;
47071
+ $[1] = className;
47072
+ $[2] = style;
47073
+ $[3] = t1;
47074
+ } else {
47075
+ t1 = $[3];
47076
+ }
47077
+ return t1;
46177
47078
  };
46178
47079
  var Content7 = function(props) {
46179
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Root11, _objectSpread43(_objectSpread43({}, props), {}, {
46180
- children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(Thread.Root, {
47080
+ var $ = (0, import_react_compiler_runtime79.c)(4);
47081
+ var t0;
47082
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47083
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Messages2, {});
47084
+ $[0] = t0;
47085
+ } else {
47086
+ t0 = $[0];
47087
+ }
47088
+ var t1;
47089
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
47090
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(Thread.Root, {
46181
47091
  children: [
46182
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Messages2, {}),
47092
+ t0,
46183
47093
  /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(FormContainer, {
46184
47094
  children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Thread.MessageForm, {})
46185
47095
  })
46186
47096
  ]
46187
- })
46188
- }));
47097
+ });
47098
+ $[1] = t1;
47099
+ } else {
47100
+ t1 = $[1];
47101
+ }
47102
+ var t2;
47103
+ if ($[2] !== props) {
47104
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Root11, _objectSpread43(_objectSpread43({}, props), {}, {
47105
+ children: t1
47106
+ }));
47107
+ $[2] = props;
47108
+ $[3] = t2;
47109
+ } else {
47110
+ t2 = $[3];
47111
+ }
47112
+ return t2;
46189
47113
  };
46190
47114
  Content7.Root = Root11;
46191
47115
  Content7.Messages = Messages2;
@@ -46193,18 +47117,30 @@ Content7.FormContainer = FormContainer;
46193
47117
  // src/components/threads/ThreadDialog/index.tsx
46194
47118
  var import_jsx_runtime82 = require("react/jsx-runtime");
46195
47119
  var ThreadDialog = function() {
46196
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Root9, {
46197
- children: [
46198
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Content7, {}),
46199
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Trigger, {})
46200
- ]
46201
- });
47120
+ var $ = (0, import_react_compiler_runtime80.c)(1);
47121
+ var t0;
47122
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
47123
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Root9, {
47124
+ children: [
47125
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Content7, {}),
47126
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Trigger, {})
47127
+ ]
47128
+ });
47129
+ $[0] = t0;
47130
+ } else {
47131
+ t0 = $[0];
47132
+ }
47133
+ return t0;
46202
47134
  };
46203
47135
  ThreadDialog.Root = Root9;
46204
47136
  ThreadDialog.Trigger = Trigger;
46205
47137
  ThreadDialog.Content = Content7;
47138
+ // src/components/threads/AudioThreadDialog/index.tsx
47139
+ var import_react_compiler_runtime94 = require("react-compiler-runtime");
47140
+ // src/components/threads/AudioThread/index.tsx
47141
+ var import_react_compiler_runtime93 = require("react-compiler-runtime");
46206
47142
  // src/components/threads/AudioThread/Root/index.tsx
46207
- var import_react_compiler_runtime53 = require("react-compiler-runtime");
47143
+ var import_react_compiler_runtime86 = require("react-compiler-runtime");
46208
47144
  var import_themes59 = require("@radix-ui/themes");
46209
47145
  // src/contexts/threads/AudioThreadContext/index.ts
46210
47146
  var import_react59 = require("react");
@@ -46217,12 +47153,12 @@ var useAudioThreadContext = function() {
46217
47153
  return (0, import_react60.useContext)(AudioThreadContext);
46218
47154
  };
46219
47155
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
46220
- var import_react_compiler_runtime52 = require("react-compiler-runtime");
47156
+ var import_react_compiler_runtime85 = require("react-compiler-runtime");
46221
47157
  // src/hooks/audioRuntimes/useTtsAudioRuntime/index.ts
46222
- var import_react_compiler_runtime51 = require("react-compiler-runtime");
47158
+ var import_react_compiler_runtime84 = require("react-compiler-runtime");
46223
47159
  var import_react65 = require("react");
46224
47160
  // src/hooks/misc/usePermission/index.ts
46225
- var import_react_compiler_runtime48 = require("react-compiler-runtime");
47161
+ var import_react_compiler_runtime81 = require("react-compiler-runtime");
46226
47162
  var import_react61 = require("react");
46227
47163
  // src/hooks/misc/usePermission/util.ts
46228
47164
  var noop = function() {};
@@ -46246,7 +47182,7 @@ function off(obj) {
46246
47182
  }
46247
47183
  // src/hooks/misc/usePermission/index.ts
46248
47184
  var usePermission = function(permissionDesc) {
46249
- var $ = (0, import_react_compiler_runtime48.c)(3);
47185
+ var $ = (0, import_react_compiler_runtime81.c)(3);
46250
47186
  var _ref = _sliced_to_array((0, import_react61.useState)(""), 2), state = _ref[0], setState = _ref[1];
46251
47187
  var t0;
46252
47188
  var t1;
@@ -46295,11 +47231,11 @@ var import_use_audio_capture = require("use-audio-capture");
46295
47231
  var import_react63 = require("react");
46296
47232
  var import_react_use_audio_player = require("react-use-audio-player");
46297
47233
  // src/hooks/misc/useInterval.ts
46298
- var import_react_compiler_runtime49 = require("react-compiler-runtime");
47234
+ var import_react_compiler_runtime82 = require("react-compiler-runtime");
46299
47235
  var import_react62 = require("react");
46300
47236
  var useInterval = function(callback, delay) {
46301
- var $ = (0, import_react_compiler_runtime49.c)(5);
46302
- var savedCallback = (0, import_react62.useRef)(_temp8);
47237
+ var $ = (0, import_react_compiler_runtime82.c)(5);
47238
+ var savedCallback = (0, import_react62.useRef)(_temp9);
46303
47239
  var t0;
46304
47240
  if ($[0] !== callback) {
46305
47241
  t0 = function() {
@@ -46336,7 +47272,7 @@ var useInterval = function(callback, delay) {
46336
47272
  }
46337
47273
  (0, import_react62.useEffect)(t1, t2);
46338
47274
  };
46339
- function _temp8() {}
47275
+ function _temp9() {}
46340
47276
  // src/hooks/audioThreads/useRecorder/index.ts
46341
47277
  function ownKeys44(e, r) {
46342
47278
  var t = Object.keys(e);
@@ -46551,7 +47487,7 @@ var useRecorder = function(_ref) {
46551
47487
  });
46552
47488
  };
46553
47489
  // src/hooks/audioThreads/useMessageAudio/index.ts
46554
- var import_react_compiler_runtime50 = require("react-compiler-runtime");
47490
+ var import_react_compiler_runtime83 = require("react-compiler-runtime");
46555
47491
  var import_react64 = require("react");
46556
47492
  var import_compromise = __toESM(require("compromise"), 1);
46557
47493
  var import_howler = require("howler");
@@ -46634,7 +47570,7 @@ var getMessageSentences = function(_ref) {
46634
47570
  };
46635
47571
  var useMessageAudio = function(t0) {
46636
47572
  var _latestMessageProps$l;
46637
- var $ = (0, import_react_compiler_runtime50.c)(50);
47573
+ var $ = (0, import_react_compiler_runtime83.c)(49);
46638
47574
  var _onEnd = t0.onEnd, passedPlay = t0.play;
46639
47575
  var _ref = _sliced_to_array((0, import_react64.useState)(false), 2), isAudioPlayed = _ref[0], setIsAudioPlayed = _ref[1];
46640
47576
  var t1;
@@ -46738,7 +47674,7 @@ var useMessageAudio = function(t0) {
46738
47674
  }
46739
47675
  var unplayedMessageSentences = t3;
46740
47676
  var t4;
46741
- if ($[12] !== audioPlayer || $[13] !== isAudioPlayed || $[14] !== nextAudioPlayer || $[15] !== superinterfaceContext.baseUrl || $[16] !== superinterfaceContext.variables || $[17] !== unplayedMessageSentences) {
47677
+ if ($[12] !== audioPlayer || $[13] !== isAudioPlayed || $[14] !== nextAudioPlayer || $[15] !== superinterfaceContext || $[16] !== unplayedMessageSentences) {
46742
47678
  t4 = function(t52) {
46743
47679
  var input_0 = t52.input, onPlay = t52.onPlay, onStop = t52.onStop, onEnd_0 = t52.onEnd;
46744
47680
  var searchParams = new URLSearchParams(_objectSpread45({
@@ -46774,19 +47710,18 @@ var useMessageAudio = function(t0) {
46774
47710
  $[12] = audioPlayer;
46775
47711
  $[13] = isAudioPlayed;
46776
47712
  $[14] = nextAudioPlayer;
46777
- $[15] = superinterfaceContext.baseUrl;
46778
- $[16] = superinterfaceContext.variables;
46779
- $[17] = unplayedMessageSentences;
46780
- $[18] = t4;
47713
+ $[15] = superinterfaceContext;
47714
+ $[16] = unplayedMessageSentences;
47715
+ $[17] = t4;
46781
47716
  } else {
46782
- t4 = $[18];
47717
+ t4 = $[17];
46783
47718
  }
46784
47719
  var defaultPlay = t4;
46785
47720
  var t5;
46786
47721
  t5 = passedPlay || defaultPlay;
46787
47722
  var play = t5;
46788
47723
  var t6;
46789
- if ($[19] !== audioPlayer.playing || $[20] !== isPlaying || $[21] !== latestMessageProps.latestMessage || $[22] !== _onEnd || $[23] !== play || $[24] !== unplayedMessageSentences) {
47724
+ if ($[18] !== audioPlayer.playing || $[19] !== isPlaying || $[20] !== latestMessageProps.latestMessage || $[21] !== _onEnd || $[22] !== play || $[23] !== unplayedMessageSentences) {
46790
47725
  t6 = function() {
46791
47726
  if (isPlaying) {
46792
47727
  return;
@@ -46838,18 +47773,18 @@ var useMessageAudio = function(t0) {
46838
47773
  }
46839
47774
  });
46840
47775
  };
46841
- $[19] = audioPlayer.playing;
46842
- $[20] = isPlaying;
46843
- $[21] = latestMessageProps.latestMessage;
46844
- $[22] = _onEnd;
46845
- $[23] = play;
46846
- $[24] = unplayedMessageSentences;
46847
- $[25] = t6;
47776
+ $[18] = audioPlayer.playing;
47777
+ $[19] = isPlaying;
47778
+ $[20] = latestMessageProps.latestMessage;
47779
+ $[21] = _onEnd;
47780
+ $[22] = play;
47781
+ $[23] = unplayedMessageSentences;
47782
+ $[24] = t6;
46848
47783
  } else {
46849
- t6 = $[25];
47784
+ t6 = $[24];
46850
47785
  }
46851
47786
  var t7;
46852
- if ($[26] !== audioPlayer || $[27] !== isPlaying || $[28] !== latestMessageProps || $[29] !== nextAudioPlayer || $[30] !== _onEnd || $[31] !== play || $[32] !== playedMessageSentences || $[33] !== superinterfaceContext || $[34] !== unplayedMessageSentences) {
47787
+ if ($[25] !== audioPlayer || $[26] !== isPlaying || $[27] !== latestMessageProps || $[28] !== nextAudioPlayer || $[29] !== _onEnd || $[30] !== play || $[31] !== playedMessageSentences || $[32] !== superinterfaceContext || $[33] !== unplayedMessageSentences) {
46853
47788
  t7 = [
46854
47789
  unplayedMessageSentences,
46855
47790
  isPlaying,
@@ -46861,35 +47796,35 @@ var useMessageAudio = function(t0) {
46861
47796
  _onEnd,
46862
47797
  play
46863
47798
  ];
46864
- $[26] = audioPlayer;
46865
- $[27] = isPlaying;
46866
- $[28] = latestMessageProps;
46867
- $[29] = nextAudioPlayer;
46868
- $[30] = _onEnd;
46869
- $[31] = play;
46870
- $[32] = playedMessageSentences;
46871
- $[33] = superinterfaceContext;
46872
- $[34] = unplayedMessageSentences;
46873
- $[35] = t7;
47799
+ $[25] = audioPlayer;
47800
+ $[26] = isPlaying;
47801
+ $[27] = latestMessageProps;
47802
+ $[28] = nextAudioPlayer;
47803
+ $[29] = _onEnd;
47804
+ $[30] = play;
47805
+ $[31] = playedMessageSentences;
47806
+ $[32] = superinterfaceContext;
47807
+ $[33] = unplayedMessageSentences;
47808
+ $[34] = t7;
46874
47809
  } else {
46875
- t7 = $[35];
47810
+ t7 = $[34];
46876
47811
  }
46877
47812
  (0, import_react64.useEffect)(t6, t7);
46878
47813
  var t8;
46879
- if ($[36] !== audioPlayer) {
47814
+ if ($[35] !== audioPlayer) {
46880
47815
  t8 = [
46881
47816
  audioPlayer
46882
47817
  ];
46883
- $[36] = audioPlayer;
46884
- $[37] = t8;
47818
+ $[35] = audioPlayer;
47819
+ $[36] = t8;
46885
47820
  } else {
46886
- t8 = $[37];
47821
+ t8 = $[36];
46887
47822
  }
46888
- (0, import_react64.useEffect)(_temp9, t8);
47823
+ (0, import_react64.useEffect)(_temp10, t8);
46889
47824
  var _ref4 = _sliced_to_array((0, import_react64.useState)(null), 2), audioEngine = _ref4[0], setAudioEngine = _ref4[1];
46890
47825
  var isAudioEngineInited = (0, import_react64.useRef)(false);
46891
47826
  var t9;
46892
- if ($[38] !== audioPlayer.playing) {
47827
+ if ($[37] !== audioPlayer.playing) {
46893
47828
  t9 = function() {
46894
47829
  if (!audioPlayer.playing) {
46895
47830
  return;
@@ -46911,21 +47846,21 @@ var useMessageAudio = function(t0) {
46911
47846
  });
46912
47847
  }
46913
47848
  };
46914
- $[38] = audioPlayer.playing;
46915
- $[39] = t9;
47849
+ $[37] = audioPlayer.playing;
47850
+ $[38] = t9;
46916
47851
  } else {
46917
- t9 = $[39];
47852
+ t9 = $[38];
46918
47853
  }
46919
47854
  var t10;
46920
- if ($[40] !== audioPlayer) {
47855
+ if ($[39] !== audioPlayer) {
46921
47856
  t10 = [
46922
47857
  audioPlayer,
46923
47858
  isAudioEngineInited
46924
47859
  ];
46925
- $[40] = audioPlayer;
46926
- $[41] = t10;
47860
+ $[39] = audioPlayer;
47861
+ $[40] = t10;
46927
47862
  } else {
46928
- t10 = $[41];
47863
+ t10 = $[40];
46929
47864
  }
46930
47865
  (0, import_react64.useEffect)(t9, t10);
46931
47866
  var t11;
@@ -46935,15 +47870,15 @@ var useMessageAudio = function(t0) {
46935
47870
  break bb1;
46936
47871
  }
46937
47872
  var result;
46938
- if ($[42] !== audioEngine.audioContext || $[43] !== audioEngine.source) {
47873
+ if ($[41] !== audioEngine.audioContext || $[42] !== audioEngine.source) {
46939
47874
  result = audioEngine.audioContext.createAnalyser();
46940
47875
  audioEngine.source.connect(audioEngine.audioContext.destination);
46941
47876
  audioEngine.source.connect(result);
46942
- $[42] = audioEngine.audioContext;
46943
- $[43] = audioEngine.source;
46944
- $[44] = result;
47877
+ $[41] = audioEngine.audioContext;
47878
+ $[42] = audioEngine.source;
47879
+ $[43] = result;
46945
47880
  } else {
46946
- result = $[44];
47881
+ result = $[43];
46947
47882
  }
46948
47883
  t11 = result;
46949
47884
  }
@@ -46952,24 +47887,24 @@ var useMessageAudio = function(t0) {
46952
47887
  t12 = isPlaying || unplayedMessageSentences.length > 0 || ((_latestMessageProps$l = latestMessageProps.latestMessage) === null || _latestMessageProps$l === void 0 ? void 0 : _latestMessageProps$l.status) === "in_progress";
46953
47888
  var isPending = t12;
46954
47889
  var t13;
46955
- if ($[45] !== audioPlayer || $[46] !== isAudioPlayed || $[47] !== isPending || $[48] !== visualizationAnalyser) {
47890
+ if ($[44] !== audioPlayer || $[45] !== isAudioPlayed || $[46] !== isPending || $[47] !== visualizationAnalyser) {
46956
47891
  t13 = _objectSpread45(_objectSpread45({
46957
47892
  isPending: isPending,
46958
47893
  isAudioPlayed: isAudioPlayed
46959
47894
  }, audioPlayer), {}, {
46960
47895
  visualizationAnalyser: visualizationAnalyser
46961
47896
  });
46962
- $[45] = audioPlayer;
46963
- $[46] = isAudioPlayed;
46964
- $[47] = isPending;
46965
- $[48] = visualizationAnalyser;
46966
- $[49] = t13;
47897
+ $[44] = audioPlayer;
47898
+ $[45] = isAudioPlayed;
47899
+ $[46] = isPending;
47900
+ $[47] = visualizationAnalyser;
47901
+ $[48] = t13;
46967
47902
  } else {
46968
- t13 = $[49];
47903
+ t13 = $[48];
46969
47904
  }
46970
47905
  return t13;
46971
47906
  };
46972
- function _temp9() {
47907
+ function _temp10() {
46973
47908
  if (isHtmlAudioSupported) {
46974
47909
  var _Howler$_howls$;
46975
47910
  if (!(import_howler.Howler !== null && import_howler.Howler !== void 0 && (_Howler$_howls$ = import_howler.Howler._howls[0]) !== null && _Howler$_howls$ !== void 0 && (_Howler$_howls$ = _Howler$_howls$._sounds[0]) !== null && _Howler$_howls$ !== void 0 && _Howler$_howls$._node)) {
@@ -47015,7 +47950,7 @@ function _asyncToGenerator11(n) {
47015
47950
  };
47016
47951
  }
47017
47952
  var useTtsAudioRuntime = function(t0) {
47018
- var $ = (0, import_react_compiler_runtime51.c)(30);
47953
+ var $ = (0, import_react_compiler_runtime84.c)(30);
47019
47954
  var play = t0.play;
47020
47955
  var addToast = useToasts().addToast;
47021
47956
  var queryClient = (0, import_react_query10.useQueryClient)();
@@ -47044,7 +47979,7 @@ var useTtsAudioRuntime = function(t0) {
47044
47979
  if ($[1] !== createMessageProps) {
47045
47980
  t2 = {
47046
47981
  isStopOnSilence: true,
47047
- onStart: _temp10,
47982
+ onStart: _temp11,
47048
47983
  onStop: function() {
47049
47984
  var _onStop = _asyncToGenerator11(function(_event, chunks) {
47050
47985
  var blob, audioContent;
@@ -47108,12 +48043,6 @@ var useTtsAudioRuntime = function(t0) {
47108
48043
  }
47109
48044
  var messageAudioProps = useMessageAudio(t4);
47110
48045
  recorderProps;
47111
- recorderProps;
47112
- recorderProps;
47113
- recorderProps;
47114
- recorderProps;
47115
- recorderProps;
47116
- recorderProps;
47117
48046
  var t5;
47118
48047
  var t6;
47119
48048
  if ($[9] !== createMessageProps.isPending || $[10] !== recorderProps.pause || $[11] !== recorderProps.resume || $[12] !== recorderProps.start || $[13] !== recorderProps.status || $[14] !== recorderProps.stop || $[15] !== recorderProps.visualizationAnalyser) {
@@ -47181,23 +48110,23 @@ var useTtsAudioRuntime = function(t0) {
47181
48110
  t5 = t8;
47182
48111
  return t5;
47183
48112
  };
47184
- function _temp10() {
47185
- return _temp23.apply(this, arguments);
48113
+ function _temp11() {
48114
+ return _temp24.apply(this, arguments);
47186
48115
  }
47187
- function _temp23() {
47188
- _temp23 = _asyncToGenerator11(function() {
48116
+ function _temp24() {
48117
+ _temp24 = _asyncToGenerator11(function() {
47189
48118
  return _ts_generator(this, function(_state) {
47190
48119
  return [
47191
48120
  2
47192
48121
  ];
47193
48122
  });
47194
48123
  });
47195
- return _temp23.apply(this, arguments);
48124
+ return _temp24.apply(this, arguments);
47196
48125
  }
47197
48126
  // src/components/audioRuntimes/TtsAudioRuntimeProvider.tsx
47198
48127
  var import_jsx_runtime83 = require("react/jsx-runtime");
47199
48128
  var TtsAudioRuntimeProvider = function(t0) {
47200
- var $ = (0, import_react_compiler_runtime52.c)(7);
48129
+ var $ = (0, import_react_compiler_runtime85.c)(7);
47201
48130
  var children = t0.children, play = t0.play;
47202
48131
  var t1;
47203
48132
  if ($[0] !== play) {
@@ -47306,19 +48235,30 @@ function _objectWithoutPropertiesLoose5(r, e) {
47306
48235
  }
47307
48236
  return t;
47308
48237
  }
47309
- var Content8 = function(_ref) {
47310
- var children = _ref.children, className = _ref.className, style = _ref.style;
47311
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes59.Flex, {
47312
- direction: "column",
47313
- flexGrow: "1",
47314
- p: "9",
47315
- className: className,
47316
- style: style,
47317
- children: children
47318
- });
48238
+ var Content8 = function(t0) {
48239
+ var $ = (0, import_react_compiler_runtime86.c)(4);
48240
+ var children = t0.children, className = t0.className, style = t0.style;
48241
+ var t1;
48242
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
48243
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes59.Flex, {
48244
+ direction: "column",
48245
+ flexGrow: "1",
48246
+ p: "9",
48247
+ className: className,
48248
+ style: style,
48249
+ children: children
48250
+ });
48251
+ $[0] = children;
48252
+ $[1] = className;
48253
+ $[2] = style;
48254
+ $[3] = t1;
48255
+ } else {
48256
+ t1 = $[3];
48257
+ }
48258
+ return t1;
47319
48259
  };
47320
48260
  var AudioRuntimeProvider = function(t0) {
47321
- var $ = (0, import_react_compiler_runtime53.c)(3);
48261
+ var $ = (0, import_react_compiler_runtime86.c)(3);
47322
48262
  var children = t0.children, play = t0.play;
47323
48263
  var audioThreadContext = useAudioThreadContext();
47324
48264
  if (audioThreadContext.audioRuntime) {
@@ -47339,7 +48279,7 @@ var AudioRuntimeProvider = function(t0) {
47339
48279
  return t1;
47340
48280
  };
47341
48281
  var Provider5 = function(t0) {
47342
- var $ = (0, import_react_compiler_runtime53.c)(9);
48282
+ var $ = (0, import_react_compiler_runtime86.c)(9);
47343
48283
  var children;
47344
48284
  var rest;
47345
48285
  if ($[0] !== t0) {
@@ -47378,20 +48318,72 @@ var Provider5 = function(t0) {
47378
48318
  }
47379
48319
  return t2;
47380
48320
  };
47381
- var Root12 = function(_ref2) {
47382
- var children = _ref2.children, play = _ref2.play, className = _ref2.className, style = _ref2.style, rest = _objectWithoutProperties5(_ref2, _excluded22);
47383
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
47384
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(AudioRuntimeProvider, {
47385
- play: play,
47386
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ToastsProvider, {
47387
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Content8, {
47388
- className: className,
47389
- style: style,
47390
- children: children
47391
- })
48321
+ var Root12 = function(t0) {
48322
+ var $ = (0, import_react_compiler_runtime86.c)(16);
48323
+ var children;
48324
+ var className;
48325
+ var play;
48326
+ var rest;
48327
+ var style;
48328
+ if ($[0] !== t0) {
48329
+ var _t2 = t0;
48330
+ var ref;
48331
+ ref = _t2, children = ref.children, play = ref.play, className = ref.className, style = ref.style, ref;
48332
+ rest = _objectWithoutProperties5(_t2, _excluded22);
48333
+ _t2;
48334
+ $[0] = t0;
48335
+ $[1] = children;
48336
+ $[2] = className;
48337
+ $[3] = play;
48338
+ $[4] = rest;
48339
+ $[5] = style;
48340
+ } else {
48341
+ children = $[1];
48342
+ className = $[2];
48343
+ play = $[3];
48344
+ rest = $[4];
48345
+ style = $[5];
48346
+ }
48347
+ var t1;
48348
+ if ($[6] !== children || $[7] !== className || $[8] !== style) {
48349
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ToastsProvider, {
48350
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Content8, {
48351
+ className: className,
48352
+ style: style,
48353
+ children: children
47392
48354
  })
47393
- })
47394
- }));
48355
+ });
48356
+ $[6] = children;
48357
+ $[7] = className;
48358
+ $[8] = style;
48359
+ $[9] = t1;
48360
+ } else {
48361
+ t1 = $[9];
48362
+ }
48363
+ var t2;
48364
+ if ($[10] !== play || $[11] !== t1) {
48365
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(AudioRuntimeProvider, {
48366
+ play: play,
48367
+ children: t1
48368
+ });
48369
+ $[10] = play;
48370
+ $[11] = t1;
48371
+ $[12] = t2;
48372
+ } else {
48373
+ t2 = $[12];
48374
+ }
48375
+ var t3;
48376
+ if ($[13] !== rest || $[14] !== t2) {
48377
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Provider5, _objectSpread46(_objectSpread46({}, rest), {}, {
48378
+ children: t2
48379
+ }));
48380
+ $[13] = rest;
48381
+ $[14] = t2;
48382
+ $[15] = t3;
48383
+ } else {
48384
+ t3 = $[15];
48385
+ }
48386
+ return t3;
47395
48387
  };
47396
48388
  // src/components/threads/AudioThread/Visualization/index.tsx
47397
48389
  var import_react68 = require("react");
@@ -47462,10 +48454,10 @@ var BarsVisualizer = function(_ref) {
47462
48454
  });
47463
48455
  };
47464
48456
  // src/hooks/audioThreads/useStatus/index.ts
47465
- var import_react_compiler_runtime54 = require("react-compiler-runtime");
48457
+ var import_react_compiler_runtime87 = require("react-compiler-runtime");
47466
48458
  var import_react67 = require("react");
47467
48459
  var useStatus = function() {
47468
- var $ = (0, import_react_compiler_runtime54.c)(2);
48460
+ var $ = (0, import_react_compiler_runtime87.c)(2);
47469
48461
  var audioRuntime = useAudioThreadContext().audioRuntime;
47470
48462
  var t0;
47471
48463
  bb0: {
@@ -47625,8 +48617,9 @@ var Visualization = function(props) {
47625
48617
  }));
47626
48618
  };
47627
48619
  // src/components/threads/AudioThread/Status/index.tsx
47628
- var import_react_compiler_runtime55 = require("react-compiler-runtime");
48620
+ var import_react_compiler_runtime89 = require("react-compiler-runtime");
47629
48621
  // src/components/threads/AudioThread/Status/StatusMessages.tsx
48622
+ var import_react_compiler_runtime88 = require("react-compiler-runtime");
47630
48623
  var import_themes62 = require("@radix-ui/themes");
47631
48624
  var import_jsx_runtime87 = require("react/jsx-runtime");
47632
48625
  var html = function(_ref) {
@@ -47635,29 +48628,63 @@ var html = function(_ref) {
47635
48628
  return "\n ".concat(i * 100 / texts.length, '% {\n content: "').concat(texts[i], '";\n }\n ');
47636
48629
  }).join(""), "\n }");
47637
48630
  };
47638
- var StatusMessages = function(_ref2) {
47639
- var texts = _ref2.texts, className = _ref2.className, style = _ref2.style;
47640
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_themes62.Flex, {
47641
- justify: "center",
47642
- pb: "5",
47643
- className: className,
47644
- style: style,
47645
- children: [
47646
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes62.Text, {
47647
- size: "2",
47648
- weight: "regular",
47649
- color: "gray",
47650
- className: "status-messages-texts"
47651
- }),
47652
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("style", {
47653
- dangerouslySetInnerHTML: {
47654
- __html: html({
47655
- texts: texts
47656
- })
47657
- }
47658
- })
47659
- ]
47660
- });
48631
+ var StatusMessages = function(t0) {
48632
+ var $ = (0, import_react_compiler_runtime88.c)(9);
48633
+ var texts = t0.texts, className = t0.className, style = t0.style;
48634
+ var t1;
48635
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48636
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_themes62.Text, {
48637
+ size: "2",
48638
+ weight: "regular",
48639
+ color: "gray",
48640
+ className: "status-messages-texts"
48641
+ });
48642
+ $[0] = t1;
48643
+ } else {
48644
+ t1 = $[0];
48645
+ }
48646
+ var t2;
48647
+ if ($[1] !== texts) {
48648
+ t2 = html({
48649
+ texts: texts
48650
+ });
48651
+ $[1] = texts;
48652
+ $[2] = t2;
48653
+ } else {
48654
+ t2 = $[2];
48655
+ }
48656
+ var t3;
48657
+ if ($[3] !== t2) {
48658
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("style", {
48659
+ dangerouslySetInnerHTML: {
48660
+ __html: t2
48661
+ }
48662
+ });
48663
+ $[3] = t2;
48664
+ $[4] = t3;
48665
+ } else {
48666
+ t3 = $[4];
48667
+ }
48668
+ var t4;
48669
+ if ($[5] !== className || $[6] !== style || $[7] !== t3) {
48670
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_themes62.Flex, {
48671
+ justify: "center",
48672
+ pb: "5",
48673
+ className: className,
48674
+ style: style,
48675
+ children: [
48676
+ t1,
48677
+ t3
48678
+ ]
48679
+ });
48680
+ $[5] = className;
48681
+ $[6] = style;
48682
+ $[7] = t3;
48683
+ $[8] = t4;
48684
+ } else {
48685
+ t4 = $[8];
48686
+ }
48687
+ return t4;
47661
48688
  };
47662
48689
  // src/components/threads/AudioThread/Status/index.tsx
47663
48690
  var import_jsx_runtime88 = require("react/jsx-runtime");
@@ -47705,7 +48732,7 @@ function _toPrimitive48(t, r) {
47705
48732
  return ("string" === r ? String : Number)(t);
47706
48733
  }
47707
48734
  var Status = function(props) {
47708
- var $ = (0, import_react_compiler_runtime55.c)(12);
48735
+ var $ = (0, import_react_compiler_runtime89.c)(12);
47709
48736
  var status = useStatus().status;
47710
48737
  if (status === "recording") {
47711
48738
  var _t;
@@ -47802,9 +48829,10 @@ var Status = function(props) {
47802
48829
  return t1;
47803
48830
  };
47804
48831
  // src/components/threads/AudioThread/Form/index.tsx
47805
- var import_react_compiler_runtime57 = require("react-compiler-runtime");
48832
+ var import_react_compiler_runtime92 = require("react-compiler-runtime");
47806
48833
  var import_themes64 = require("@radix-ui/themes");
47807
48834
  // src/components/threads/AudioThread/Form/MicIcon.tsx
48835
+ var import_react_compiler_runtime90 = require("react-compiler-runtime");
47808
48836
  var import_jsx_runtime89 = require("react/jsx-runtime");
47809
48837
  function ownKeys49(e, r) {
47810
48838
  var t = Object.keys(e);
@@ -47850,28 +48878,44 @@ function _toPrimitive49(t, r) {
47850
48878
  return ("string" === r ? String : Number)(t);
47851
48879
  }
47852
48880
  var MicIcon = function(props) {
47853
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("svg", _objectSpread49(_objectSpread49({
47854
- xmlns: "http://www.w3.org/2000/svg",
47855
- fill: "currentColor",
47856
- stroke: "currentColor",
47857
- strokeWidth: 0,
47858
- viewBox: "0 0 384 512",
47859
- height: "15",
47860
- width: "15"
47861
- }, props), {}, {
47862
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", {
48881
+ var $ = (0, import_react_compiler_runtime90.c)(3);
48882
+ var t0;
48883
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
48884
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("path", {
47863
48885
  stroke: "none",
47864
48886
  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"
47865
- })
47866
- }));
48887
+ });
48888
+ $[0] = t0;
48889
+ } else {
48890
+ t0 = $[0];
48891
+ }
48892
+ var t1;
48893
+ if ($[1] !== props) {
48894
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("svg", _objectSpread49(_objectSpread49({
48895
+ xmlns: "http://www.w3.org/2000/svg",
48896
+ fill: "currentColor",
48897
+ stroke: "currentColor",
48898
+ strokeWidth: 0,
48899
+ viewBox: "0 0 384 512",
48900
+ height: "15",
48901
+ width: "15"
48902
+ }, props), {}, {
48903
+ children: t0
48904
+ }));
48905
+ $[1] = props;
48906
+ $[2] = t1;
48907
+ } else {
48908
+ t1 = $[2];
48909
+ }
48910
+ return t1;
47867
48911
  };
47868
48912
  // src/components/threads/AudioThread/Form/ActionButton/index.tsx
47869
- var import_react_compiler_runtime56 = require("react-compiler-runtime");
48913
+ var import_react_compiler_runtime91 = require("react-compiler-runtime");
47870
48914
  var import_themes63 = require("@radix-ui/themes");
47871
48915
  var import_react_icons17 = require("@radix-ui/react-icons");
47872
48916
  var import_jsx_runtime90 = require("react/jsx-runtime");
47873
48917
  var ActionButton = function() {
47874
- var $ = (0, import_react_compiler_runtime56.c)(27);
48918
+ var $ = (0, import_react_compiler_runtime91.c)(27);
47875
48919
  var status = useStatus().status;
47876
48920
  var audioThreadContext = useAudioThreadContext();
47877
48921
  var superinterfaceContext = useSuperinterfaceContext();
@@ -48109,7 +49153,7 @@ function _toPrimitive50(t, r) {
48109
49153
  return ("string" === r ? String : Number)(t);
48110
49154
  }
48111
49155
  var Form = function(props) {
48112
- var $ = (0, import_react_compiler_runtime57.c)(17);
49156
+ var $ = (0, import_react_compiler_runtime92.c)(17);
48113
49157
  var status = useStatus().status;
48114
49158
  var audioThreadContext = useAudioThreadContext();
48115
49159
  var t0 = status === "recording" ? "var(--accent-11)" : "var(--gray-11)";
@@ -48259,13 +49303,37 @@ function _toPrimitive51(t, r) {
48259
49303
  return ("string" === r ? String : Number)(t);
48260
49304
  }
48261
49305
  var AudioThread = function(props) {
48262
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(Root12, _objectSpread51(_objectSpread51({}, props), {}, {
48263
- children: [
48264
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Visualization, {}),
48265
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Status, {}),
48266
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Form, {})
48267
- ]
48268
- }));
49306
+ var $ = (0, import_react_compiler_runtime93.c)(5);
49307
+ var t0;
49308
+ var t1;
49309
+ var t2;
49310
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49311
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Visualization, {});
49312
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Status, {});
49313
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Form, {});
49314
+ $[0] = t0;
49315
+ $[1] = t1;
49316
+ $[2] = t2;
49317
+ } else {
49318
+ t0 = $[0];
49319
+ t1 = $[1];
49320
+ t2 = $[2];
49321
+ }
49322
+ var t3;
49323
+ if ($[3] !== props) {
49324
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(Root12, _objectSpread51(_objectSpread51({}, props), {}, {
49325
+ children: [
49326
+ t0,
49327
+ t1,
49328
+ t2
49329
+ ]
49330
+ }));
49331
+ $[3] = props;
49332
+ $[4] = t3;
49333
+ } else {
49334
+ t3 = $[4];
49335
+ }
49336
+ return t3;
48269
49337
  };
48270
49338
  AudioThread.Root = Root12;
48271
49339
  AudioThread.Visualization = Visualization;
@@ -48317,14 +49385,34 @@ function _toPrimitive52(t, r) {
48317
49385
  return ("string" === r ? String : Number)(t);
48318
49386
  }
48319
49387
  var AudioThreadDialog = function(props) {
48320
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(Root9, _objectSpread52(_objectSpread52({}, props), {}, {
48321
- children: [
48322
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Content7.Root, {
48323
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(AudioThread, {})
48324
- }),
48325
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Trigger, {})
48326
- ]
48327
- }));
49388
+ var $ = (0, import_react_compiler_runtime94.c)(4);
49389
+ var t0;
49390
+ var t1;
49391
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
49392
+ t0 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Content7.Root, {
49393
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(AudioThread, {})
49394
+ });
49395
+ t1 = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Trigger, {});
49396
+ $[0] = t0;
49397
+ $[1] = t1;
49398
+ } else {
49399
+ t0 = $[0];
49400
+ t1 = $[1];
49401
+ }
49402
+ var t2;
49403
+ if ($[2] !== props) {
49404
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(Root9, _objectSpread52(_objectSpread52({}, props), {}, {
49405
+ children: [
49406
+ t0,
49407
+ t1
49408
+ ]
49409
+ }));
49410
+ $[2] = props;
49411
+ $[3] = t2;
49412
+ } else {
49413
+ t2 = $[3];
49414
+ }
49415
+ return t2;
48328
49416
  };
48329
49417
  AudioThreadDialog.Root = Root9;
48330
49418
  AudioThreadDialog.Trigger = Trigger;
@@ -48819,10 +49907,10 @@ var useWebrtcAudioRuntime = function() {
48819
49907
  ]);
48820
49908
  };
48821
49909
  // src/components/audioRuntimes/WebrtcAudioRuntimeProvider.tsx
48822
- var import_react_compiler_runtime58 = require("react-compiler-runtime");
49910
+ var import_react_compiler_runtime95 = require("react-compiler-runtime");
48823
49911
  var import_jsx_runtime94 = require("react/jsx-runtime");
48824
49912
  var WebrtcAudioRuntimeProvider = function(t0) {
48825
- var $ = (0, import_react_compiler_runtime58.c)(5);
49913
+ var $ = (0, import_react_compiler_runtime95.c)(5);
48826
49914
  var children = t0.children;
48827
49915
  var webrtcAudioRuntime = useWebrtcAudioRuntime().webrtcAudioRuntime;
48828
49916
  var t1;
@@ -48850,7 +49938,7 @@ var WebrtcAudioRuntimeProvider = function(t0) {
48850
49938
  return t2;
48851
49939
  };
48852
49940
  // src/components/markdown/MarkdownProvider/index.tsx
48853
- var import_react_compiler_runtime59 = require("react-compiler-runtime");
49941
+ var import_react_compiler_runtime96 = require("react-compiler-runtime");
48854
49942
  var import_react70 = require("react");
48855
49943
  var import_jsx_runtime95 = require("react/jsx-runtime");
48856
49944
  var _excluded6 = [
@@ -48875,7 +49963,7 @@ function _objectWithoutPropertiesLoose6(r, e) {
48875
49963
  return t;
48876
49964
  }
48877
49965
  var MarkdownProvider = function(t0) {
48878
- var $ = (0, import_react_compiler_runtime59.c)(9);
49966
+ var $ = (0, import_react_compiler_runtime96.c)(9);
48879
49967
  var children;
48880
49968
  var rest;
48881
49969
  if ($[0] !== t0) {
@@ -48918,18 +50006,18 @@ var MarkdownProvider = function(t0) {
48918
50006
  return t3;
48919
50007
  };
48920
50008
  // src/components/annotations/SourceAnnotation/index.tsx
48921
- var import_react_compiler_runtime62 = require("react-compiler-runtime");
50009
+ var import_react_compiler_runtime99 = require("react-compiler-runtime");
48922
50010
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
48923
- var import_react_compiler_runtime61 = require("react-compiler-runtime");
50011
+ var import_react_compiler_runtime98 = require("react-compiler-runtime");
48924
50012
  var import_react71 = require("react");
48925
50013
  var import_react_icons18 = require("@radix-ui/react-icons");
48926
50014
  var import_themes66 = require("@radix-ui/themes");
48927
50015
  // src/components/annotations/SourceAnnotation/FileCitation/Content.tsx
48928
- var import_react_compiler_runtime60 = require("react-compiler-runtime");
50016
+ var import_react_compiler_runtime97 = require("react-compiler-runtime");
48929
50017
  var import_themes65 = require("@radix-ui/themes");
48930
50018
  var import_jsx_runtime96 = require("react/jsx-runtime");
48931
50019
  var Content9 = function(t0) {
48932
- var $ = (0, import_react_compiler_runtime60.c)(5);
50020
+ var $ = (0, import_react_compiler_runtime97.c)(5);
48933
50021
  var fileId = t0.fileId;
48934
50022
  var superinterfaceContext = useSuperinterfaceContext();
48935
50023
  var nextSearchParams = new URLSearchParams(superinterfaceContext.variables);
@@ -48995,7 +50083,7 @@ var Content9 = function(t0) {
48995
50083
  // src/components/annotations/SourceAnnotation/FileCitation/index.tsx
48996
50084
  var import_jsx_runtime97 = require("react/jsx-runtime");
48997
50085
  var FileCitation = function(t0) {
48998
- var $ = (0, import_react_compiler_runtime61.c)(18);
50086
+ var $ = (0, import_react_compiler_runtime98.c)(18);
48999
50087
  var annotation = t0.annotation;
49000
50088
  var _ref = _sliced_to_array((0, import_react71.useState)(null), 2), activeFileId = _ref[0], setActiveFileId = _ref[1];
49001
50089
  var t1;
@@ -49144,7 +50232,7 @@ function _objectWithoutPropertiesLoose7(r, e) {
49144
50232
  return t;
49145
50233
  }
49146
50234
  var SourceAnnotation = function(t0) {
49147
- var $ = (0, import_react_compiler_runtime62.c)(10);
50235
+ var $ = (0, import_react_compiler_runtime99.c)(10);
49148
50236
  var children;
49149
50237
  var rest;
49150
50238
  if ($[0] !== t0) {
@@ -49201,7 +50289,7 @@ var SourceAnnotation = function(t0) {
49201
50289
  return null;
49202
50290
  };
49203
50291
  // src/components/avatars/Avatar.tsx
49204
- var import_react_compiler_runtime65 = require("react-compiler-runtime");
50292
+ var import_react_compiler_runtime102 = require("react-compiler-runtime");
49205
50293
  // src/lib/enums/index.ts
49206
50294
  var IconAvatarName = /* @__PURE__ */ function(IconAvatarName2) {
49207
50295
  IconAvatarName2["BACKPACK"] = "BACKPACK";
@@ -49226,7 +50314,7 @@ var AvatarType = /* @__PURE__ */ function(AvatarType2) {
49226
50314
  // src/components/avatars/Avatar.tsx
49227
50315
  var import_themes69 = require("@radix-ui/themes");
49228
50316
  // src/components/imageAvatars/ImageAvatar/index.tsx
49229
- var import_react_compiler_runtime63 = require("react-compiler-runtime");
50317
+ var import_react_compiler_runtime100 = require("react-compiler-runtime");
49230
50318
  var import_themes67 = require("@radix-ui/themes");
49231
50319
  // src/components/imageAvatars/ImageAvatar/lib/optimizedSrc/path.ts
49232
50320
  var width = function(_ref) {
@@ -49280,7 +50368,7 @@ var optimizedSrc = function(_ref) {
49280
50368
  // src/components/imageAvatars/ImageAvatar/index.tsx
49281
50369
  var import_jsx_runtime99 = require("react/jsx-runtime");
49282
50370
  var ImageAvatar = function(t0) {
49283
- var $ = (0, import_react_compiler_runtime63.c)(9);
50371
+ var $ = (0, import_react_compiler_runtime100.c)(9);
49284
50372
  var imageAvatar = t0.imageAvatar, size = t0.size, className = t0.className, style = t0.style;
49285
50373
  var superinterfaceContext = useSuperinterfaceContext();
49286
50374
  var t1;
@@ -49317,7 +50405,7 @@ var ImageAvatar = function(t0) {
49317
50405
  return t2;
49318
50406
  };
49319
50407
  // src/components/iconAvatars/IconAvatar.tsx
49320
- var import_react_compiler_runtime64 = require("react-compiler-runtime");
50408
+ var import_react_compiler_runtime101 = require("react-compiler-runtime");
49321
50409
  var import_react72 = require("react");
49322
50410
  var import_themes68 = require("@radix-ui/themes");
49323
50411
  // src/lib/iconAvatars/iconAvatarComponents.ts
@@ -49327,7 +50415,7 @@ var iconAvatarComponents = (_obj = {}, _define_property(_obj, IconAvatarName.BAC
49327
50415
  // src/components/iconAvatars/IconAvatar.tsx
49328
50416
  var import_jsx_runtime100 = require("react/jsx-runtime");
49329
50417
  var IconAvatar = function(t0) {
49330
- var $ = (0, import_react_compiler_runtime64.c)(7);
50418
+ var $ = (0, import_react_compiler_runtime101.c)(7);
49331
50419
  var iconAvatar = t0.iconAvatar, size = t0.size, className = t0.className, style = t0.style;
49332
50420
  var t1;
49333
50421
  t1 = iconAvatarComponents[iconAvatar.name];
@@ -49361,7 +50449,7 @@ var IconAvatar = function(t0) {
49361
50449
  // src/components/avatars/Avatar.tsx
49362
50450
  var import_jsx_runtime101 = require("react/jsx-runtime");
49363
50451
  var Avatar6 = function(t0) {
49364
- var $ = (0, import_react_compiler_runtime65.c)(14);
50452
+ var $ = (0, import_react_compiler_runtime102.c)(14);
49365
50453
  var avatar = t0.avatar, t1 = t0.size, className = t0.className, style = t0.style;
49366
50454
  var size = t1 === void 0 ? "1" : t1;
49367
50455
  if (avatar) {
@@ -49422,7 +50510,7 @@ var Avatar6 = function(t0) {
49422
50510
  return t2;
49423
50511
  };
49424
50512
  // src/components/components/ComponentsProvider.tsx
49425
- var import_react_compiler_runtime66 = require("react-compiler-runtime");
50513
+ var import_react_compiler_runtime103 = require("react-compiler-runtime");
49426
50514
  var import_react74 = require("react");
49427
50515
  // src/hooks/components/useComponents.ts
49428
50516
  var import_react73 = require("react");
@@ -49453,7 +50541,7 @@ function _objectWithoutPropertiesLoose8(r, e) {
49453
50541
  return t;
49454
50542
  }
49455
50543
  var ComponentsProvider = function(t0) {
49456
- var $ = (0, import_react_compiler_runtime66.c)(9);
50544
+ var $ = (0, import_react_compiler_runtime103.c)(9);
49457
50545
  var children;
49458
50546
  var rest;
49459
50547
  if ($[0] !== t0) {
@@ -49496,11 +50584,11 @@ var ComponentsProvider = function(t0) {
49496
50584
  return t3;
49497
50585
  };
49498
50586
  // src/components/assistants/AssistantProvider/index.tsx
49499
- var import_react_compiler_runtime67 = require("react-compiler-runtime");
50587
+ var import_react_compiler_runtime104 = require("react-compiler-runtime");
49500
50588
  var import_jsx_runtime103 = require("react/jsx-runtime");
49501
50589
  var AssistantProvider = function(t0) {
49502
50590
  var _assistant$name;
49503
- var $ = (0, import_react_compiler_runtime67.c)(10);
50591
+ var $ = (0, import_react_compiler_runtime104.c)(10);
49504
50592
  var children = t0.children;
49505
50593
  var superinterfaceContext = useSuperinterfaceContext();
49506
50594
  var t1;