inspect-ai 0.3.65__py3-none-any.whl → 0.3.67__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. inspect_ai/_display/core/config.py +4 -0
  2. inspect_ai/_display/textual/app.py +13 -5
  3. inspect_ai/_display/textual/widgets/footer.py +2 -2
  4. inspect_ai/_display/textual/widgets/sandbox.py +1 -1
  5. inspect_ai/_display/textual/widgets/task_detail.py +7 -5
  6. inspect_ai/_display/textual/widgets/tasks.py +8 -6
  7. inspect_ai/_display/textual/widgets/transcript.py +1 -1
  8. inspect_ai/_eval/task/run.py +5 -3
  9. inspect_ai/_eval/task/task.py +9 -1
  10. inspect_ai/_util/format.py +58 -0
  11. inspect_ai/_view/www/dist/assets/index.css +29 -9
  12. inspect_ai/_view/www/dist/assets/index.js +368 -304
  13. inspect_ai/_view/www/src/samples/error/FlatSampleErrorView.tsx +1 -1
  14. inspect_ai/_view/www/src/samples/sample-tools/filters.ts +41 -20
  15. inspect_ai/_view/www/src/samples/sample-tools/sample-filter/SampleFilter.tsx +2 -1
  16. inspect_ai/_view/www/src/samples/sample-tools/sample-filter/completions.ts +28 -6
  17. inspect_ai/_view/www/src/samples/sample-tools/sample-filter/language.ts +5 -0
  18. inspect_ai/_view/www/src/samples/transcript/LoggerEventView.tsx +1 -3
  19. inspect_ai/_view/www/src/samples/transcript/SubtaskEventView.tsx +31 -16
  20. inspect_ai/_view/www/src/samples/transcript/TranscriptView.tsx +4 -1
  21. inspect_ai/_view/www/src/workspace/navbar/StatusPanel.module.css +1 -0
  22. inspect_ai/_view/www/src/workspace/navbar/StatusPanel.tsx +2 -2
  23. inspect_ai/model/_model.py +89 -2
  24. inspect_ai/model/_providers/anthropic.py +4 -0
  25. inspect_ai/model/_providers/azureai.py +5 -0
  26. inspect_ai/model/_providers/bedrock.py +5 -0
  27. inspect_ai/model/_providers/cloudflare.py +4 -0
  28. inspect_ai/model/_providers/goodfire.py +5 -0
  29. inspect_ai/model/_providers/google.py +16 -3
  30. inspect_ai/model/_providers/groq.py +4 -0
  31. inspect_ai/model/_providers/hf.py +7 -0
  32. inspect_ai/model/_providers/mistral.py +4 -0
  33. inspect_ai/model/_providers/openai.py +4 -0
  34. inspect_ai/model/_providers/vertex.py +5 -0
  35. inspect_ai/model/_providers/vllm.py +7 -0
  36. inspect_ai/solver/__init__.py +8 -1
  37. inspect_ai/solver/_human_agent/panel.py +11 -5
  38. inspect_ai/solver/_prompt.py +38 -5
  39. inspect_ai/util/_sandbox/docker/config.py +4 -1
  40. inspect_ai/util/_sandbox/docker/util.py +2 -1
  41. {inspect_ai-0.3.65.dist-info → inspect_ai-0.3.67.dist-info}/METADATA +3 -2
  42. {inspect_ai-0.3.65.dist-info → inspect_ai-0.3.67.dist-info}/RECORD +46 -46
  43. {inspect_ai-0.3.65.dist-info → inspect_ai-0.3.67.dist-info}/LICENSE +0 -0
  44. {inspect_ai-0.3.65.dist-info → inspect_ai-0.3.67.dist-info}/WHEEL +0 -0
  45. {inspect_ai-0.3.65.dist-info → inspect_ai-0.3.67.dist-info}/entry_points.txt +0 -0
  46. {inspect_ai-0.3.65.dist-info → inspect_ai-0.3.67.dist-info}/top_level.txt +0 -0
@@ -13979,23 +13979,23 @@ var require_assets = __commonJS({
13979
13979
  const container$e = "_container_1phwy_13";
13980
13980
  const animate = "_animate_1phwy_21";
13981
13981
  const leftToRight = "_leftToRight_1phwy_1";
13982
- const styles$14 = {
13982
+ const styles$15 = {
13983
13983
  wrapper: wrapper$3,
13984
13984
  container: container$e,
13985
13985
  animate,
13986
13986
  leftToRight
13987
13987
  };
13988
13988
  const ProgressBar = ({ animating }) => {
13989
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$14.wrapper, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
13989
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$15.wrapper, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
13990
13990
  "div",
13991
13991
  {
13992
- className: styles$14.container,
13992
+ className: styles$15.container,
13993
13993
  role: "progressbar",
13994
13994
  "aria-label": "Basic example",
13995
13995
  "aria-valuenow": 25,
13996
13996
  "aria-valuemin": 0,
13997
13997
  "aria-valuemax": 100,
13998
- children: animating && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$14.animate })
13998
+ children: animating && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$15.animate })
13999
13999
  }
14000
14000
  ) });
14001
14001
  };
@@ -14356,7 +14356,7 @@ var require_assets = __commonJS({
14356
14356
  const circle$1 = "_circle_upui3_1";
14357
14357
  const green$1 = "_green_upui3_12";
14358
14358
  const red$1 = "_red_upui3_18";
14359
- const styles$13 = {
14359
+ const styles$14 = {
14360
14360
  circle: circle$1,
14361
14361
  green: green$1,
14362
14362
  red: red$1
@@ -14372,7 +14372,7 @@ var require_assets = __commonJS({
14372
14372
  "span",
14373
14373
  {
14374
14374
  className: clsx(
14375
- styles$13.circle,
14375
+ styles$14.circle,
14376
14376
  "text-size-small",
14377
14377
  score2 ? "green" : "red"
14378
14378
  ),
@@ -14429,7 +14429,7 @@ var require_assets = __commonJS({
14429
14429
  const padded$1 = "_padded_w37fs_8";
14430
14430
  const key$1 = "_key_w37fs_12";
14431
14431
  const value$1 = "_value_w37fs_16";
14432
- const styles$12 = {
14432
+ const styles$13 = {
14433
14433
  container: container$d,
14434
14434
  padded: padded$1,
14435
14435
  key: key$1,
@@ -14476,12 +14476,12 @@ var require_assets = __commonJS({
14476
14476
  "div",
14477
14477
  {
14478
14478
  className: clsx(
14479
- styles$12.container,
14480
- index2 + 1 < keys.length ? styles$12.padded : void 0
14479
+ styles$13.container,
14480
+ index2 + 1 < keys.length ? styles$13.padded : void 0
14481
14481
  ),
14482
14482
  children: [
14483
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$12.key, "text-size-smaller"), children: key2 }),
14484
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$12.value, "text-size-title"), children: formattedValue })
14483
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$13.key, "text-size-smaller"), children: key2 }),
14484
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$13.value, "text-size-title"), children: formattedValue })
14485
14485
  ]
14486
14486
  }
14487
14487
  )
@@ -15888,7 +15888,7 @@ var require_assets = __commonJS({
15888
15888
  const hidden$3 = "_hidden_tm52u_5";
15889
15889
  const pills = "_pills_tm52u_9";
15890
15890
  const pill = "_pill_tm52u_9";
15891
- const styles$11 = {
15891
+ const styles$12 = {
15892
15892
  visible,
15893
15893
  hidden: hidden$3,
15894
15894
  pills,
@@ -15917,7 +15917,7 @@ var require_assets = __commonJS({
15917
15917
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
15918
15918
  "div",
15919
15919
  {
15920
- className: ((_a2 = child["props"]) == null ? void 0 : _a2.title) === activeItem ? styles$11.visible : styles$11.hidden,
15920
+ className: ((_a2 = child["props"]) == null ? void 0 : _a2.title) === activeItem ? styles$12.visible : styles$12.hidden,
15921
15921
  children: child
15922
15922
  },
15923
15923
  `nav-pill-container-${idx}`
@@ -15927,7 +15927,7 @@ var require_assets = __commonJS({
15927
15927
  /* @__PURE__ */ jsxRuntimeExports.jsx(
15928
15928
  "ul",
15929
15929
  {
15930
- className: clsx("nav", "nav-pills", styles$11.pills),
15930
+ className: clsx("nav", "nav-pills", styles$12.pills),
15931
15931
  role: "tablist",
15932
15932
  "aria-orientation": "horizontal",
15933
15933
  children: navPills
@@ -15954,7 +15954,7 @@ var require_assets = __commonJS({
15954
15954
  "nav-link",
15955
15955
  "text-style-label",
15956
15956
  active2 ? "active " : "",
15957
- styles$11.pill
15957
+ styles$12.pill
15958
15958
  ),
15959
15959
  onClick: () => {
15960
15960
  setActiveItem(title2);
@@ -21322,7 +21322,7 @@ var require_assets = __commonJS({
21322
21322
  const messageGrid = "_messageGrid_xh8qq_13";
21323
21323
  const messageContents = "_messageContents_xh8qq_21";
21324
21324
  const indented = "_indented_xh8qq_26";
21325
- const styles$10 = {
21325
+ const styles$11 = {
21326
21326
  message: message$1,
21327
21327
  systemRole,
21328
21328
  messageGrid,
@@ -21330,14 +21330,14 @@ var require_assets = __commonJS({
21330
21330
  indented
21331
21331
  };
21332
21332
  const contentImage = "_contentImage_121dp_1";
21333
- const styles$$ = {
21333
+ const styles$10 = {
21334
21334
  contentImage
21335
21335
  };
21336
21336
  const toolImage = "_toolImage_hw4du_1";
21337
21337
  const output$1 = "_output_hw4du_6";
21338
21338
  const textOutput = "_textOutput_hw4du_10";
21339
21339
  const textCode = "_textCode_hw4du_17";
21340
- const styles$_ = {
21340
+ const styles$$ = {
21341
21341
  toolImage,
21342
21342
  output: output$1,
21343
21343
  textOutput,
@@ -21359,7 +21359,7 @@ var require_assets = __commonJS({
21359
21359
  /* @__PURE__ */ jsxRuntimeExports.jsx(
21360
21360
  "img",
21361
21361
  {
21362
- className: clsx(styles$_.toolImage),
21362
+ className: clsx(styles$$.toolImage),
21363
21363
  src: out.image
21364
21364
  },
21365
21365
  key2
@@ -21375,10 +21375,10 @@ var require_assets = __commonJS({
21375
21375
  /* @__PURE__ */ jsxRuntimeExports.jsx(ToolTextOutput, { text: String(output2) }, "tool-output-single")
21376
21376
  );
21377
21377
  }
21378
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$_.output), children: outputs });
21378
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$$.output), children: outputs });
21379
21379
  };
21380
21380
  const ToolTextOutput = ({ text: text2 }) => {
21381
- return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$_.textOutput), children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("sourceCode", styles$_.textCode), children: text2.trim() }) });
21381
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$$.textOutput), children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("sourceCode", styles$$.textCode), children: text2.trim() }) });
21382
21382
  };
21383
21383
  const MessageContent = ({ contents: contents2 }) => {
21384
21384
  if (Array.isArray(contents2)) {
@@ -21437,7 +21437,7 @@ var require_assets = __commonJS({
21437
21437
  render: (key2, content2) => {
21438
21438
  const c2 = content2;
21439
21439
  if (c2.image.startsWith("data:")) {
21440
- return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$$.contentImage }, key2);
21440
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$10.contentImage }, key2);
21441
21441
  } else {
21442
21442
  return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { children: c2.image }, key2);
21443
21443
  }
@@ -21536,7 +21536,7 @@ var require_assets = __commonJS({
21536
21536
  const outputPre = "_outputPre_18agr_1";
21537
21537
  const outputCode = "_outputCode_18agr_7";
21538
21538
  const bottomMargin = "_bottomMargin_18agr_12";
21539
- const styles$Z = {
21539
+ const styles$_ = {
21540
21540
  outputPre,
21541
21541
  outputCode,
21542
21542
  bottomMargin
@@ -21574,12 +21574,12 @@ var require_assets = __commonJS({
21574
21574
  {
21575
21575
  markdown: toolCallView.content,
21576
21576
  ref: toolViewRef,
21577
- className: clsx(styles$Z.bottomMargin, "text-size-small")
21577
+ className: clsx(styles$_.bottomMargin, "text-size-small")
21578
21578
  }
21579
21579
  );
21580
21580
  }
21581
21581
  const formattedContent = typeof contents2 === "object" ? JSON.stringify(contents2) : contents2;
21582
- return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx("tool-output", styles$Z.outputPre, styles$Z.bottomMargin), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
21582
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx("tool-output", styles$_.outputPre, styles$_.bottomMargin), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
21583
21583
  "code",
21584
21584
  {
21585
21585
  ref: codeRef,
@@ -21587,19 +21587,19 @@ var require_assets = __commonJS({
21587
21587
  "source-code",
21588
21588
  "sourceCode",
21589
21589
  `language-${highlightLanguage}`,
21590
- styles$Z.outputCode
21590
+ styles$_.outputCode
21591
21591
  ),
21592
21592
  children: formattedContent
21593
21593
  }
21594
21594
  ) });
21595
21595
  });
21596
21596
  const image = "_image_10saa_1";
21597
- const styles$Y = {
21597
+ const styles$Z = {
21598
21598
  image
21599
21599
  };
21600
21600
  const ToolTitle = ({ title: title2 }) => {
21601
21601
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
21602
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$Y.styles) }),
21602
+ /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$Z.styles) }),
21603
21603
  /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "text-size-small", children: title2 })
21604
21604
  ] });
21605
21605
  };
@@ -21658,7 +21658,7 @@ var require_assets = __commonJS({
21658
21658
  }
21659
21659
  };
21660
21660
  const content$3 = "_content_p4lvn_1";
21661
- const styles$X = {
21661
+ const styles$Y = {
21662
21662
  content: content$3
21663
21663
  };
21664
21664
  const MessageContents = ({
@@ -21700,7 +21700,7 @@ var require_assets = __commonJS({
21700
21700
  }
21701
21701
  });
21702
21702
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
21703
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$X.content, children: message2.content ? /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContent, { contents: message2.content }) : void 0 }),
21703
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$Y.content, children: message2.content ? /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContent, { contents: message2.content }) : void 0 }),
21704
21704
  toolCalls
21705
21705
  ] });
21706
21706
  } else {
@@ -21825,11 +21825,11 @@ var require_assets = __commonJS({
21825
21825
  className: clsx(
21826
21826
  message2.role,
21827
21827
  "text-size-base",
21828
- styles$10.message,
21829
- message2.role === "system" ? styles$10.systemRole : void 0
21828
+ styles$11.message,
21829
+ message2.role === "system" ? styles$11.systemRole : void 0
21830
21830
  ),
21831
21831
  children: [
21832
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$10.messageGrid, "text-style-label"), children: [
21832
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$11.messageGrid, "text-style-label"), children: [
21833
21833
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: iconForMsg(message2) }),
21834
21834
  message2.role
21835
21835
  ] }),
@@ -21841,8 +21841,8 @@ var require_assets = __commonJS({
21841
21841
  "div",
21842
21842
  {
21843
21843
  className: clsx(
21844
- styles$10.messageContents,
21845
- indented2 ? styles$10.indented : void 0
21844
+ styles$11.messageContents,
21845
+ indented2 ? styles$11.indented : void 0
21846
21846
  ),
21847
21847
  children: [
21848
21848
  message2.role === "assistant" && message2.reasoning ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Response" }) : void 0,
@@ -21864,7 +21864,7 @@ var require_assets = __commonJS({
21864
21864
  };
21865
21865
  const grid$6 = "_grid_140x5_1";
21866
21866
  const number$1 = "_number_140x5_7";
21867
- const styles$W = {
21867
+ const styles$X = {
21868
21868
  grid: grid$6,
21869
21869
  number: number$1
21870
21870
  };
@@ -21876,14 +21876,14 @@ var require_assets = __commonJS({
21876
21876
  indented: indented2
21877
21877
  }) => {
21878
21878
  if (number2) {
21879
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$W.grid, children: [
21879
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$X.grid, children: [
21880
21880
  /* @__PURE__ */ jsxRuntimeExports.jsx(
21881
21881
  "div",
21882
21882
  {
21883
21883
  className: clsx(
21884
21884
  "text-size-smaller",
21885
21885
  "text-style-secondary",
21886
- styles$W.number
21886
+ styles$X.number
21887
21887
  ),
21888
21888
  children: number2
21889
21889
  }
@@ -21969,7 +21969,7 @@ var require_assets = __commonJS({
21969
21969
  const compact = "_compact_1memb_15";
21970
21970
  const cellKey = "_cellKey_1memb_19";
21971
21971
  const cellValue = "_cellValue_1memb_31";
21972
- const styles$V = {
21972
+ const styles$W = {
21973
21973
  table: table$1,
21974
21974
  th,
21975
21975
  cell: cell$2,
@@ -21998,15 +21998,15 @@ var require_assets = __commonJS({
21998
21998
  "td",
21999
21999
  {
22000
22000
  className: clsx(
22001
- styles$V.cell,
22002
- styles$V.cellKey,
22001
+ styles$W.cell,
22002
+ styles$W.cellKey,
22003
22003
  "text-size-small",
22004
22004
  "text-style-label"
22005
22005
  ),
22006
22006
  children: entry2.name
22007
22007
  }
22008
22008
  ),
22009
- /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$V.cell, styles$V.cellValue, "text-size-small"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedContent, { id: id2, entry: entry2 }) })
22009
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$W.cell, styles$W.cellValue, "text-size-small"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedContent, { id: id2, entry: entry2 }) })
22010
22010
  ] }, id2);
22011
22011
  });
22012
22012
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -22016,8 +22016,8 @@ var require_assets = __commonJS({
22016
22016
  className: clsx(
22017
22017
  "table",
22018
22018
  tblClz,
22019
- styles$V.table,
22020
- compact2 ? styles$V.compact : void 0,
22019
+ styles$W.table,
22020
+ compact2 ? styles$W.compact : void 0,
22021
22021
  className2
22022
22022
  ),
22023
22023
  style: style2,
@@ -22044,7 +22044,7 @@ var require_assets = __commonJS({
22044
22044
  const query = "_query_9u9bt_1";
22045
22045
  const summary$3 = "_summary_9u9bt_6";
22046
22046
  const preWrap = "_preWrap_9u9bt_10";
22047
- const styles$U = {
22047
+ const styles$V = {
22048
22048
  query,
22049
22049
  summary: summary$3,
22050
22050
  preWrap
@@ -22182,7 +22182,7 @@ var require_assets = __commonJS({
22182
22182
  render: (_id, entry2) => {
22183
22183
  const results = [];
22184
22184
  results.push(
22185
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$U.query, children: [
22185
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$V.query, children: [
22186
22186
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.search }),
22187
22187
  " ",
22188
22188
  entry2.value.query
@@ -22194,7 +22194,7 @@ var require_assets = __commonJS({
22194
22194
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: result.url, children: result.url }) })
22195
22195
  );
22196
22196
  results.push(
22197
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$U.summary), children: result.summary })
22197
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$V.summary), children: result.summary })
22198
22198
  );
22199
22199
  }
22200
22200
  );
@@ -22211,7 +22211,7 @@ var require_assets = __commonJS({
22211
22211
  },
22212
22212
  render: (_id, entry2) => {
22213
22213
  return {
22214
- rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$U.preWrap, children: entry2.value })
22214
+ rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$V.preWrap, children: entry2.value })
22215
22215
  };
22216
22216
  }
22217
22217
  },
@@ -22280,7 +22280,7 @@ var require_assets = __commonJS({
22280
22280
  const green = "_green_1iagp_12";
22281
22281
  const red = "_red_1iagp_18";
22282
22282
  const orange = "_orange_1iagp_24";
22283
- const styles$T = {
22283
+ const styles$U = {
22284
22284
  circle,
22285
22285
  green,
22286
22286
  red,
@@ -22321,22 +22321,22 @@ var require_assets = __commonJS({
22321
22321
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
22322
22322
  "span",
22323
22323
  {
22324
- className: clsx("text-size-small", styles$T.circle, styles$T.green),
22324
+ className: clsx("text-size-small", styles$U.circle, styles$U.green),
22325
22325
  children: "C"
22326
22326
  }
22327
22327
  );
22328
22328
  } else if (score2 === "I") {
22329
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$T.circle, styles$T.red), children: "I" });
22329
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$U.circle, styles$U.red), children: "I" });
22330
22330
  } else if (score2 === "P") {
22331
22331
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
22332
22332
  "span",
22333
22333
  {
22334
- className: clsx("text-size-small", styles$T.circle, styles$T.orange),
22334
+ className: clsx("text-size-small", styles$U.circle, styles$U.orange),
22335
22335
  children: "P"
22336
22336
  }
22337
22337
  );
22338
22338
  } else if (score2 === "N") {
22339
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$T.circle, styles$T.red), children: "N" });
22339
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$U.circle, styles$U.red), children: "N" });
22340
22340
  } else {
22341
22341
  return String(score2);
22342
22342
  }
@@ -25078,7 +25078,7 @@ var require_assets = __commonJS({
25078
25078
  return value2;
25079
25079
  }
25080
25080
  };
25081
- const isFilteringSupportedForValue = (value2) => ["string", "number", "boolean"].includes(typeof value2);
25081
+ const isFilteringSupportedForValue = (value2) => ["string", "number", "boolean"].includes(typeof value2) || value2 === null;
25082
25082
  const bannedShortScoreNames = (scores2) => {
25083
25083
  const used = /* @__PURE__ */ new Set();
25084
25084
  const banned = /* @__PURE__ */ new Set();
@@ -25092,6 +25092,11 @@ var require_assets = __commonJS({
25092
25092
  }
25093
25093
  return banned;
25094
25094
  };
25095
+ const filterExpressionConstants = {
25096
+ True: true,
25097
+ False: false,
25098
+ None: null
25099
+ };
25095
25100
  const scoreVariables = (evalDescriptor, sampleScores) => {
25096
25101
  const bannedShortNames = bannedShortScoreNames(evalDescriptor.scores);
25097
25102
  const variables = {};
@@ -25117,6 +25122,11 @@ var require_assets = __commonJS({
25117
25122
  }
25118
25123
  return variables;
25119
25124
  };
25125
+ const sampleVariables = (sample2) => {
25126
+ return {
25127
+ has_error: !!sample2.error
25128
+ };
25129
+ };
25120
25130
  const scoreFilterItems = (evalDescriptor) => {
25121
25131
  const items = [];
25122
25132
  const bannedShortNames = bannedShortScoreNames(evalDescriptor.scores);
@@ -25186,12 +25196,31 @@ categories: ${categories.join(" ")}`;
25186
25196
  let targets = Array.isArray(sample2.target) ? sample2.target : [sample2.target];
25187
25197
  return targets.some((target2) => target2.match(new RegExp(regex2, "i")));
25188
25198
  };
25199
+ const errorContains = (regex2) => {
25200
+ var _a3;
25201
+ return !!((_a3 = sample2.error) == null ? void 0 : _a3.match(new RegExp(regex2, "i")));
25202
+ };
25189
25203
  const extraFunctions = {
25190
25204
  input_contains: inputContains,
25191
- target_contains: targetContains
25205
+ target_contains: targetContains,
25206
+ error_contains: errorContains
25192
25207
  };
25193
- const expression = compileExpression(filterValue, { extraFunctions });
25194
- const vars = scoreVariables(evalDescriptor, sample2.scores);
25208
+ const mySampleVariables = sampleVariables(sample2);
25209
+ const vars = {
25210
+ ...mySampleVariables,
25211
+ ...scoreVariables(evalDescriptor, sample2.scores)
25212
+ };
25213
+ const resolveVariable = (name2, get2) => {
25214
+ if (name2 in mySampleVariables) {
25215
+ return get2(name2);
25216
+ }
25217
+ return sample2.error ? void 0 : get2(name2);
25218
+ };
25219
+ const expression = compileExpression(filterValue, {
25220
+ extraFunctions,
25221
+ constants: filterExpressionConstants,
25222
+ customProp: resolveVariable
25223
+ });
25195
25224
  const result = expression(vars);
25196
25225
  if (typeof result === "boolean") {
25197
25226
  return { matches: result, error: void 0 };
@@ -25262,7 +25291,7 @@ categories: ${categories.join(" ")}`;
25262
25291
  };
25263
25292
  const flex$1 = "_flex_1kye9_1";
25264
25293
  const label$5 = "_label_1kye9_5";
25265
- const styles$S = {
25294
+ const styles$T = {
25266
25295
  flex: flex$1,
25267
25296
  label: label$5
25268
25297
  };
@@ -25293,7 +25322,7 @@ categories: ${categories.join(" ")}`;
25293
25322
  label: "score desc",
25294
25323
  val: kScoreDescVal
25295
25324
  });
25296
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$S.flex, children: [
25325
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$T.flex, children: [
25297
25326
  /* @__PURE__ */ jsxRuntimeExports.jsx(
25298
25327
  "span",
25299
25328
  {
@@ -25302,7 +25331,7 @@ categories: ${categories.join(" ")}`;
25302
25331
  "text-size-smaller",
25303
25332
  "text-style-label",
25304
25333
  "text-style-secondary",
25305
- styles$S.label
25334
+ styles$T.label
25306
25335
  ),
25307
25336
  children: "Sort:"
25308
25337
  }
@@ -25449,7 +25478,7 @@ categories: ${categories.join(" ")}`;
25449
25478
  });
25450
25479
  };
25451
25480
  const dirname$1 = "_dirname_16ra5_1";
25452
- const styles$R = {
25481
+ const styles$S = {
25453
25482
  dirname: dirname$1
25454
25483
  };
25455
25484
  const LogDirectoryTitleView = ({
@@ -25474,7 +25503,7 @@ categories: ${categories.join(" ")}`;
25474
25503
  "span",
25475
25504
  {
25476
25505
  title: displayDir,
25477
- className: clsx("text-size-base", styles$R.dirname),
25506
+ className: clsx("text-size-base", styles$S.dirname),
25478
25507
  children: offcanvas ? displayDir : ""
25479
25508
  }
25480
25509
  )
@@ -25505,7 +25534,7 @@ categories: ${categories.join(" ")}`;
25505
25534
  const backdrop = "_backdrop_1u82r_55";
25506
25535
  const active = "_active_1u82r_62";
25507
25536
  const item$2 = "_item_1u82r_66";
25508
- const styles$Q = {
25537
+ const styles$R = {
25509
25538
  sidebar,
25510
25539
  sidebarClosed,
25511
25540
  sidebarOpen,
@@ -25520,7 +25549,7 @@ categories: ${categories.join(" ")}`;
25520
25549
  const error = "_error_srruf_1";
25521
25550
  const running = "_running_srruf_6";
25522
25551
  const cancelled = "_cancelled_srruf_13";
25523
- const styles$P = {
25552
+ const styles$Q = {
25524
25553
  error,
25525
25554
  running,
25526
25555
  cancelled
@@ -25551,7 +25580,7 @@ categories: ${categories.join(" ")}`;
25551
25580
  const metric = "_metric_1frsg_8";
25552
25581
  const metricName$1 = "_metricName_1frsg_17";
25553
25582
  const metricReducer$1 = "_metricReducer_1frsg_21";
25554
- const styles$O = {
25583
+ const styles$P = {
25555
25584
  container: container$c,
25556
25585
  metric,
25557
25586
  metricName: metricName$1,
@@ -25559,8 +25588,8 @@ categories: ${categories.join(" ")}`;
25559
25588
  };
25560
25589
  const SidebarScoreView = ({ scorer }) => {
25561
25590
  const showReducer = !!scorer.reducer;
25562
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$O.container, children: Object.keys(scorer.metrics).map((metric2) => {
25563
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$O.metric, children: [
25591
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$P.container, children: Object.keys(scorer.metrics).map((metric2) => {
25592
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$P.metric, children: [
25564
25593
  /* @__PURE__ */ jsxRuntimeExports.jsx(
25565
25594
  "div",
25566
25595
  {
@@ -25568,12 +25597,12 @@ categories: ${categories.join(" ")}`;
25568
25597
  "text-style-secondary",
25569
25598
  "text-style-label",
25570
25599
  "text-size-small",
25571
- styles$O.metricName
25600
+ styles$P.metricName
25572
25601
  ),
25573
25602
  children: metricDisplayName(scorer.metrics[metric2])
25574
25603
  }
25575
25604
  ),
25576
- showReducer ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$O.metricReducer), children: scorer.reducer || "default" }) : "",
25605
+ showReducer ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$P.metricReducer), children: scorer.reducer || "default" }) : "",
25577
25606
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-title-secondary", children: formatPrettyDecimal(scorer.metrics[metric2].value) })
25578
25607
  ] }, metric2);
25579
25608
  }) });
@@ -25584,7 +25613,7 @@ categories: ${categories.join(" ")}`;
25584
25613
  const metricReducer = "_metricReducer_5kpg1_22";
25585
25614
  const metricValues = "_metricValues_5kpg1_27";
25586
25615
  const metricValue = "_metricValue_5kpg1_27";
25587
- const styles$N = {
25616
+ const styles$O = {
25588
25617
  container: container$b,
25589
25618
  scoreWrapper,
25590
25619
  metricName,
@@ -25594,10 +25623,10 @@ categories: ${categories.join(" ")}`;
25594
25623
  };
25595
25624
  const SidebarScoresView = ({ scores: scores2 }) => {
25596
25625
  const showReducer = scores2.findIndex((score2) => !!score2.reducer) !== -1;
25597
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$N.container, children: scores2.map((score2, idx) => {
25626
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$O.container, children: scores2.map((score2, idx) => {
25598
25627
  const name2 = score2.name;
25599
25628
  const reducer = score2.reducer;
25600
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$N.scoreWrapper, children: [
25629
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$O.scoreWrapper, children: [
25601
25630
  /* @__PURE__ */ jsxRuntimeExports.jsx(
25602
25631
  "div",
25603
25632
  {
@@ -25605,7 +25634,7 @@ categories: ${categories.join(" ")}`;
25605
25634
  "text-style-secondary",
25606
25635
  "text-style-label",
25607
25636
  "text-size-small",
25608
- styles$N.metricName
25637
+ styles$O.metricName
25609
25638
  ),
25610
25639
  children: name2
25611
25640
  }
@@ -25617,16 +25646,16 @@ categories: ${categories.join(" ")}`;
25617
25646
  "text-size-small",
25618
25647
  "text-style-label",
25619
25648
  "text-style-secondary",
25620
- styles$N.metricReducer
25649
+ styles$O.metricReducer
25621
25650
  ),
25622
25651
  children: reducer || "default"
25623
25652
  }
25624
25653
  ) : "",
25625
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$N.metricValues), children: Object.keys(score2.metrics).map((key2) => {
25654
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$O.metricValues), children: Object.keys(score2.metrics).map((key2) => {
25626
25655
  const metric2 = score2.metrics[key2];
25627
25656
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
25628
25657
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: metricDisplayName(metric2) }),
25629
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$N.metricValue, children: formatPrettyDecimal(metric2.value) })
25658
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$O.metricValue, children: formatPrettyDecimal(metric2.value) })
25630
25659
  ] }, key2);
25631
25660
  }) })
25632
25661
  ] }, `scorer-${name2}-${idx}`);
@@ -25661,7 +25690,7 @@ categories: ${categories.join(" ")}`;
25661
25690
  "text-style-secondary",
25662
25691
  "text-style-label",
25663
25692
  "text-size-small",
25664
- styles$P.cancelled
25693
+ styles$Q.cancelled
25665
25694
  ),
25666
25695
  children: message2
25667
25696
  }
@@ -25675,21 +25704,21 @@ categories: ${categories.join(" ")}`;
25675
25704
  "text-style-secondary",
25676
25705
  "text-style-label",
25677
25706
  "text-size-small",
25678
- styles$P.running
25707
+ styles$Q.running
25679
25708
  ),
25680
25709
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: message2 })
25681
25710
  }
25682
25711
  );
25683
25712
  };
25684
25713
  const StatusError = ({ message: message2 }) => {
25685
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$P.error, "text-size-small"), children: message2 });
25714
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$Q.error, "text-size-small"), children: message2 });
25686
25715
  };
25687
25716
  const entry = "_entry_12m5n_1";
25688
25717
  const title$3 = "_title_12m5n_7";
25689
25718
  const task = "_task_12m5n_12";
25690
25719
  const params = "_params_12m5n_18";
25691
25720
  const scores = "_scores_12m5n_22";
25692
- const styles$M = {
25721
+ const styles$N = {
25693
25722
  entry,
25694
25723
  title: title$3,
25695
25724
  task,
@@ -25721,15 +25750,15 @@ categories: ${categories.join(" ")}`;
25721
25750
  minute: "2-digit"
25722
25751
  })}` : "";
25723
25752
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
25724
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$M.entry, children: [
25725
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$M.title, children: [
25726
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$M.task, "text-size-title-secondary"), children: ((_i = logHeader == null ? void 0 : logHeader.eval) == null ? void 0 : _i.task) || task2 }),
25753
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$N.entry, children: [
25754
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$N.title, children: [
25755
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$N.task, "text-size-title-secondary"), children: ((_i = logHeader == null ? void 0 : logHeader.eval) == null ? void 0 : _i.task) || task2 }),
25727
25756
  /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: clsx("mb-1", "text-size-small"), children: timeStr }),
25728
25757
  model2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: clsx("mb-1", "text-size-small"), children: model2 }) }) : ""
25729
25758
  ] }),
25730
25759
  /* @__PURE__ */ jsxRuntimeExports.jsx(EvalStatus, { logHeader })
25731
25760
  ] }),
25732
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$M.params, "three-line-clamp"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: "mb-1", children: Object.keys(hyperparameters).map((key2) => {
25761
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$N.params, "three-line-clamp"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: "mb-1", children: Object.keys(hyperparameters).map((key2) => {
25733
25762
  const val = hyperparameters[key2];
25734
25763
  if (Array.isArray(val) || typeof val === "object") {
25735
25764
  return `${key2}: ${JSON.stringify(val)}`;
@@ -25740,13 +25769,13 @@ categories: ${categories.join(" ")}`;
25740
25769
  (((_j = logHeader == null ? void 0 : logHeader.eval) == null ? void 0 : _j.dataset) || ((_k = logHeader == null ? void 0 : logHeader.results) == null ? void 0 : _k.scores)) && (logHeader == null ? void 0 : logHeader.status) === "success" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
25741
25770
  "div",
25742
25771
  {
25743
- className: clsx("text-truncate", "text-size-small", styles$M.scores),
25772
+ className: clsx("text-truncate", "text-size-small", styles$N.scores),
25744
25773
  children: [
25745
25774
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
25746
25775
  "dataset: ",
25747
25776
  datasetName || "(samples)"
25748
25777
  ] }),
25749
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-truncate", styles$M.scoreInfo), children: [
25778
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-truncate", styles$N.scoreInfo), children: [
25750
25779
  scorerLabel,
25751
25780
  ": ",
25752
25781
  scorerNames || "(none)"
@@ -25769,30 +25798,30 @@ categories: ${categories.join(" ")}`;
25769
25798
  setOffcanvas(!offcanvas);
25770
25799
  };
25771
25800
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
25772
- offcanvas && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$Q.backdrop, onClick: handleToggle }),
25801
+ offcanvas && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$R.backdrop, onClick: handleToggle }),
25773
25802
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
25774
25803
  "div",
25775
25804
  {
25776
25805
  className: clsx(
25777
- styles$Q.sidebar,
25778
- offcanvas ? styles$Q.sidebarOpen : styles$Q.sidebarClosed
25806
+ styles$R.sidebar,
25807
+ offcanvas ? styles$R.sidebarOpen : styles$R.sidebarClosed
25779
25808
  ),
25780
25809
  children: [
25781
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$Q.header, children: [
25810
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$R.header, children: [
25782
25811
  /* @__PURE__ */ jsxRuntimeExports.jsx(LogDirectoryTitleView, { log_dir: logs.log_dir, offcanvas }),
25783
25812
  /* @__PURE__ */ jsxRuntimeExports.jsx(
25784
25813
  "button",
25785
25814
  {
25786
25815
  onClick: handleToggle,
25787
- className: clsx("btn", styles$Q.toggle),
25816
+ className: clsx("btn", styles$R.toggle),
25788
25817
  type: "button",
25789
25818
  "aria-label": "Close sidebar",
25790
25819
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.close })
25791
25820
  }
25792
25821
  )
25793
25822
  ] }),
25794
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$Q.progress, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { animating: loading }) }),
25795
- /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: clsx("list-group", styles$Q.list), children: logs.files.map((file, index2) => {
25823
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$R.progress, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { animating: loading }) }),
25824
+ /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: clsx("list-group", styles$R.list), children: logs.files.map((file, index2) => {
25796
25825
  const logHeader = logHeaders[file.name];
25797
25826
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
25798
25827
  "li",
@@ -25800,8 +25829,8 @@ categories: ${categories.join(" ")}`;
25800
25829
  className: clsx(
25801
25830
  "list-group-item",
25802
25831
  "list-group-item-action",
25803
- styles$Q.item,
25804
- selectedIndex === index2 ? styles$Q.active : void 0
25832
+ styles$R.item,
25833
+ selectedIndex === index2 ? styles$R.active : void 0
25805
25834
  ),
25806
25835
  onClick: () => onSelectedIndexChanged(index2),
25807
25836
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -25832,7 +25861,7 @@ categories: ${categories.join(" ")}`;
25832
25861
  ToolButton.displayName = "ToolButton";
25833
25862
  const container$a = "_container_15b4r_1";
25834
25863
  const label$4 = "_label_15b4r_5";
25835
- const styles$L = {
25864
+ const styles$M = {
25836
25865
  container: container$a,
25837
25866
  label: label$4
25838
25867
  };
@@ -25849,7 +25878,7 @@ categories: ${categories.join(" ")}`;
25849
25878
  const sel = e.target;
25850
25879
  setEpoch(sel.value);
25851
25880
  };
25852
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$L.container, children: [
25881
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$M.container, children: [
25853
25882
  /* @__PURE__ */ jsxRuntimeExports.jsx(
25854
25883
  "span",
25855
25884
  {
@@ -25858,7 +25887,7 @@ categories: ${categories.join(" ")}`;
25858
25887
  "text-size-smaller",
25859
25888
  "text-style-label",
25860
25889
  "text-style-secondary",
25861
- styles$L.label
25890
+ styles$M.label
25862
25891
  ),
25863
25892
  children: "Epochs:"
25864
25893
  }
@@ -45733,9 +45762,13 @@ categories: ${categories.join(" ")}`;
45733
45762
  ["log2", "Base 2 logarithm"],
45734
45763
  ["log10", "Base 10 logarithm"]
45735
45764
  ];
45765
+ const SAMPLE_VARIABLES = [
45766
+ ["has_error", "Checks if the sample has an error"]
45767
+ ];
45736
45768
  const SAMPLE_FUNCTIONS = [
45737
45769
  ["input_contains", "Checks if input contains a regular expression"],
45738
- ["target_contains", "Checks if target contains a regular expression"]
45770
+ ["target_contains", "Checks if target contains a regular expression"],
45771
+ ["error_contains", "Checks if error contains a regular expression"]
45739
45772
  ];
45740
45773
  const TOKEN_PATTERNS = {
45741
45774
  STRING: /^"[^"]*"/,
@@ -45832,16 +45865,22 @@ categories: ${categories.join(" ")}`;
45832
45865
  apply: applyWithCall,
45833
45866
  boost: 0
45834
45867
  });
45868
+ const makeSampleVariableCompletion = ([label2, info]) => ({
45869
+ label: label2,
45870
+ type: "variable",
45871
+ info,
45872
+ boost: 10
45873
+ });
45835
45874
  const makeLiteralCompletion = (k) => ({
45836
45875
  label: k,
45837
45876
  type: "text",
45838
- boost: 10
45877
+ boost: 20
45839
45878
  });
45840
45879
  const makeCanonicalNameCompletion = (item2, { autoSpaceIf = () => false } = {}) => ({
45841
45880
  label: item2.canonicalName + (autoSpaceIf(item2) ? " " : ""),
45842
45881
  type: "variable",
45843
45882
  info: item2.tooltip,
45844
- boost: 20
45883
+ boost: 30
45845
45884
  });
45846
45885
  const makeMemberAccessCompletion = (item2) => {
45847
45886
  var _a2;
@@ -45849,7 +45888,7 @@ categories: ${categories.join(" ")}`;
45849
45888
  label: ((_a2 = item2.qualifiedName) == null ? void 0 : _a2.split(".")[1]) || "",
45850
45889
  type: "variable",
45851
45890
  info: item2.tooltip,
45852
- boost: 20
45891
+ boost: 40
45853
45892
  };
45854
45893
  };
45855
45894
  const getMemberScoreItems = (filterItems, scorer) => filterItems.filter((item2) => {
@@ -45865,6 +45904,9 @@ categories: ${categories.join(" ")}`;
45865
45904
  const sampleFunctionCompletionItems = SAMPLE_FUNCTIONS.map(
45866
45905
  makeSampleFunctionCompletion
45867
45906
  );
45907
+ const sampleVariableCompletionItems = SAMPLE_VARIABLES.map(
45908
+ makeSampleVariableCompletion
45909
+ );
45868
45910
  const variableCompletionItems = filterItems.map(
45869
45911
  (item2) => makeCanonicalNameCompletion(item2)
45870
45912
  );
@@ -45872,6 +45914,7 @@ categories: ${categories.join(" ")}`;
45872
45914
  ...keywordCompletionItems,
45873
45915
  ...mathFunctionCompletionItems,
45874
45916
  ...sampleFunctionCompletionItems,
45917
+ ...sampleVariableCompletionItems,
45875
45918
  ...variableCompletionItems
45876
45919
  ];
45877
45920
  const doc2 = context.state.doc;
@@ -45927,8 +45970,10 @@ categories: ${categories.join(" ")}`;
45927
45970
  return element;
45928
45971
  }
45929
45972
  };
45930
- const priorityLabels = new Set(priorityCompletions.map((c2) => c2.label));
45931
- const defaultCompletionsAdjusted = defaultCompletionItems.filter((c2) => !priorityLabels.has(c2.label)).map((c2) => ({ ...c2, section: miscSection }));
45973
+ const priorityLabels = new Set(
45974
+ priorityCompletions.map((c2) => c2.label.trim())
45975
+ );
45976
+ const defaultCompletionsAdjusted = defaultCompletionItems.filter((c2) => !priorityLabels.has(c2.label.trim())).map((c2) => ({ ...c2, section: miscSection }));
45932
45977
  return {
45933
45978
  from: completionStart,
45934
45979
  options: [...priorityCompletionsAdjusted, ...defaultCompletionsAdjusted]
@@ -45942,6 +45987,7 @@ categories: ${categories.join(" ")}`;
45942
45987
  autoSpaceIf: (item22) => completingAtEnd && item22.scoreType !== kScoreTypeBoolean
45943
45988
  })
45944
45989
  ),
45990
+ ...sampleVariableCompletionItems,
45945
45991
  ...sampleFunctionCompletionItems
45946
45992
  ]);
45947
45993
  const variableCompletions = () => makeCompletions(variableCompletionItems);
@@ -46011,7 +46057,7 @@ categories: ${categories.join(" ")}`;
46011
46057
  const label$3 = "_label_jbrqc_1";
46012
46058
  const input = "_input_jbrqc_7";
46013
46059
  const help = "_help_jbrqc_11";
46014
- const styles$K = {
46060
+ const styles$L = {
46015
46061
  label: label$3,
46016
46062
  input,
46017
46063
  help
@@ -46019,7 +46065,8 @@ categories: ${categories.join(" ")}`;
46019
46065
  const FILTER_TOOLTIP = `
46020
46066
  Filter samples by:
46021
46067
  • Scores
46022
- Input and target regex search: input_contains, target_contains
46068
+ Samples with errors: has_error
46069
+ • Input, target and error regex search: input_contains, target_contains, error_contains
46023
46070
 
46024
46071
  Supported expressions:
46025
46072
  • Arithmetic: +, -, *, /, mod, ^
@@ -46212,7 +46259,7 @@ Supported expressions:
46212
46259
  "text-size-smaller",
46213
46260
  "text-style-label",
46214
46261
  "text-style-secondary",
46215
- styles$K.label
46262
+ styles$L.label
46216
46263
  ),
46217
46264
  children: "Filter:"
46218
46265
  }
@@ -46223,14 +46270,14 @@ Supported expressions:
46223
46270
  ref: editorRef,
46224
46271
  className: clsx(
46225
46272
  (filteringResultInstant == null ? void 0 : filteringResultInstant.error) && "filter-pending",
46226
- styles$K.input
46273
+ styles$L.input
46227
46274
  )
46228
46275
  }
46229
46276
  ),
46230
46277
  /* @__PURE__ */ jsxRuntimeExports.jsx(
46231
46278
  "span",
46232
46279
  {
46233
- className: clsx("bi", "bi-question-circle", styles$K.help),
46280
+ className: clsx("bi", "bi-question-circle", styles$L.help),
46234
46281
  "data-tooltip": FILTER_TOOLTIP,
46235
46282
  "data-tooltip-position": "bottom-left"
46236
46283
  }
@@ -46241,7 +46288,7 @@ Supported expressions:
46241
46288
  const label$2 = "_label_anstf_5";
46242
46289
  const secondSel = "_secondSel_anstf_9";
46243
46290
  const secondLabel = "_secondLabel_anstf_13";
46244
- const styles$J = {
46291
+ const styles$K = {
46245
46292
  flex,
46246
46293
  label: label$2,
46247
46294
  secondSel,
@@ -46261,7 +46308,7 @@ Supported expressions:
46261
46308
  return accum;
46262
46309
  }, []);
46263
46310
  if (scorers.length === 1) {
46264
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$J.flex, children: [
46311
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$K.flex, children: [
46265
46312
  /* @__PURE__ */ jsxRuntimeExports.jsx(
46266
46313
  "span",
46267
46314
  {
@@ -46270,7 +46317,7 @@ Supported expressions:
46270
46317
  "text-size-smaller",
46271
46318
  "text-style-label",
46272
46319
  "text-style-secondary",
46273
- styles$J.label
46320
+ styles$K.label
46274
46321
  ),
46275
46322
  children: "Score:"
46276
46323
  }
@@ -46290,7 +46337,7 @@ Supported expressions:
46290
46337
  const scorerScores = scores2.filter((sc) => {
46291
46338
  return score2 && sc.scorer === score2.scorer;
46292
46339
  });
46293
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$J.flex, children: [
46340
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$K.flex, children: [
46294
46341
  /* @__PURE__ */ jsxRuntimeExports.jsx(
46295
46342
  "span",
46296
46343
  {
@@ -46299,8 +46346,8 @@ Supported expressions:
46299
46346
  "text-size-smaller",
46300
46347
  "text-style-label",
46301
46348
  "text-style-secondary",
46302
- styles$J.label,
46303
- styles$J.secondLabel
46349
+ styles$K.label,
46350
+ styles$K.secondLabel
46304
46351
  ),
46305
46352
  children: "Scorer:"
46306
46353
  }
@@ -46318,7 +46365,7 @@ Supported expressions:
46318
46365
  scorerScores.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
46319
46366
  ScoreSelector,
46320
46367
  {
46321
- className: clsx(styles$J.secondSel),
46368
+ className: clsx(styles$K.secondSel),
46322
46369
  scores: scorerScores,
46323
46370
  selectedIndex: scoreIndex(scorerScores, score2),
46324
46371
  setSelectedIndex: (index2) => {
@@ -49158,7 +49205,7 @@ self.onmessage = function (e) {
49158
49205
  return value2;
49159
49206
  };
49160
49207
  const jsonTab = "_jsonTab_6pq03_1";
49161
- const styles$I = {
49208
+ const styles$J = {
49162
49209
  jsonTab
49163
49210
  };
49164
49211
  const kJsonMaxSize = 1e7;
@@ -49169,7 +49216,7 @@ self.onmessage = function (e) {
49169
49216
  }) => {
49170
49217
  if (logFile && json.length > kJsonMaxSize && capabilities2.downloadFiles) {
49171
49218
  const file = `${filename(logFile)}.json`;
49172
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$I.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
49219
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$J.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
49173
49220
  DownloadPanel,
49174
49221
  {
49175
49222
  message: "The JSON for this log file is too large to render.",
@@ -49179,7 +49226,7 @@ self.onmessage = function (e) {
49179
49226
  }
49180
49227
  ) });
49181
49228
  } else {
49182
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$I.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { id: "task-json-contents", json, simple: true }) });
49229
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$J.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { id: "task-json-contents", json, simple: true }) });
49183
49230
  }
49184
49231
  };
49185
49232
  const EmptyPanel = ({ children: children2 }) => {
@@ -49369,7 +49416,7 @@ self.onmessage = function (e) {
49369
49416
  const grid$5 = "_grid_12d2w_1";
49370
49417
  const cell$1 = "_cell_12d2w_7";
49371
49418
  const value = "_value_12d2w_12";
49372
- const styles$H = {
49419
+ const styles$I = {
49373
49420
  grid: grid$5,
49374
49421
  cell: cell$1,
49375
49422
  value
@@ -49399,7 +49446,7 @@ self.onmessage = function (e) {
49399
49446
  {
49400
49447
  className: clsx(
49401
49448
  `${baseId}-key`,
49402
- styles$H.cell,
49449
+ styles$I.cell,
49403
49450
  "text-style-label",
49404
49451
  "text-style-secondary",
49405
49452
  "text-size-small"
@@ -49410,13 +49457,13 @@ self.onmessage = function (e) {
49410
49457
  /* @__PURE__ */ jsxRuntimeExports.jsx(
49411
49458
  "div",
49412
49459
  {
49413
- className: clsx(styles$H.value, `${baseId}-value`, "text-size-small"),
49460
+ className: clsx(styles$I.value, `${baseId}-value`, "text-size-small"),
49414
49461
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedContent, { id: id2, entry: entry2 })
49415
49462
  }
49416
49463
  )
49417
49464
  ] }, `${baseId}-record-${index2}`);
49418
49465
  });
49419
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: clsx(className2, styles$H.grid), style: style2, children: entryEls });
49466
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: clsx(className2, styles$I.grid), style: style2, children: entryEls });
49420
49467
  };
49421
49468
  const entryRecords = (entries) => {
49422
49469
  if (!entries) {
@@ -49431,7 +49478,7 @@ self.onmessage = function (e) {
49431
49478
  }
49432
49479
  };
49433
49480
  const grid$4 = "_grid_3umed_1";
49434
- const styles$G = {
49481
+ const styles$H = {
49435
49482
  grid: grid$4
49436
49483
  };
49437
49484
  const SampleScores = ({
@@ -49449,7 +49496,7 @@ self.onmessage = function (e) {
49449
49496
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: score2.rendered() })
49450
49497
  ] });
49451
49498
  });
49452
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$G.grid, children: rows });
49499
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$H.grid, children: rows });
49453
49500
  }
49454
49501
  };
49455
49502
  const container$9 = "_container_1jqar_1";
@@ -49463,7 +49510,7 @@ self.onmessage = function (e) {
49463
49510
  const scoreValue = "_scoreValue_1jqar_42";
49464
49511
  const noLeft$1 = "_noLeft_1jqar_47";
49465
49512
  const noTop$1 = "_noTop_1jqar_51";
49466
- const styles$F = {
49513
+ const styles$G = {
49467
49514
  container: container$9,
49468
49515
  label: label$1,
49469
49516
  wordBreak,
@@ -49508,7 +49555,7 @@ self.onmessage = function (e) {
49508
49555
  "container-fluid",
49509
49556
  className2,
49510
49557
  "font-size-base",
49511
- styles$F.container
49558
+ styles$G.container
49512
49559
  ),
49513
49560
  children: [
49514
49561
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
@@ -49519,7 +49566,7 @@ self.onmessage = function (e) {
49519
49566
  "div",
49520
49567
  {
49521
49568
  className: clsx(
49522
- styles$F.label,
49569
+ styles$G.label,
49523
49570
  "text-style-label",
49524
49571
  "text-style-secondary"
49525
49572
  ),
@@ -49530,17 +49577,17 @@ self.onmessage = function (e) {
49530
49577
  MarkdownDiv,
49531
49578
  {
49532
49579
  markdown: scoreInput.join("\n"),
49533
- className: styles$F.wordBreak
49580
+ className: styles$G.wordBreak
49534
49581
  }
49535
49582
  ) })
49536
49583
  ] }),
49537
- /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { className: clsx("table", styles$F.scoreTable), children: [
49538
- /* @__PURE__ */ jsxRuntimeExports.jsx("thead", { className: styles$F.bottomBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
49584
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { className: clsx("table", styles$G.scoreTable), children: [
49585
+ /* @__PURE__ */ jsxRuntimeExports.jsx("thead", { className: styles$G.bottomBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
49539
49586
  /* @__PURE__ */ jsxRuntimeExports.jsx(
49540
49587
  "th",
49541
49588
  {
49542
49589
  className: clsx(
49543
- styles$F.label,
49590
+ styles$G.label,
49544
49591
  "text-style-label",
49545
49592
  "text-style-secondary"
49546
49593
  ),
@@ -49551,7 +49598,7 @@ self.onmessage = function (e) {
49551
49598
  "th",
49552
49599
  {
49553
49600
  className: clsx(
49554
- styles$F.label,
49601
+ styles$G.label,
49555
49602
  "text-style-label",
49556
49603
  "text-style-secondary"
49557
49604
  ),
@@ -49562,33 +49609,33 @@ self.onmessage = function (e) {
49562
49609
  "th",
49563
49610
  {
49564
49611
  className: clsx(
49565
- styles$F.label,
49612
+ styles$G.label,
49566
49613
  "text-style-label",
49567
49614
  "text-style-secondary",
49568
- styles$F.headerScore
49615
+ styles$G.headerScore
49569
49616
  ),
49570
49617
  children: "Score"
49571
49618
  }
49572
49619
  )
49573
49620
  ] }) }),
49574
- /* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { className: styles$F.bottomBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
49575
- /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: styles$F.targetValue, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
49621
+ /* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { className: styles$G.bottomBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
49622
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: styles$G.targetValue, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
49576
49623
  MarkdownDiv,
49577
49624
  {
49578
49625
  markdown: arrayToString(
49579
49626
  arrayToString((sample2 == null ? void 0 : sample2.target) || "none")
49580
49627
  ),
49581
- className: clsx("no-last-para-padding", styles$F.noLeft)
49628
+ className: clsx("no-last-para-padding", styles$G.noLeft)
49582
49629
  }
49583
49630
  ) }),
49584
- /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$F.answerValue), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
49631
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$G.answerValue), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
49585
49632
  MarkdownDiv,
49586
49633
  {
49587
- className: clsx("no-last-para-padding", styles$F.noLeft),
49634
+ className: clsx("no-last-para-padding", styles$G.noLeft),
49588
49635
  markdown: answer2
49589
49636
  }
49590
49637
  ) }),
49591
- /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$F.scoreValue), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
49638
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$G.scoreValue), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
49592
49639
  SampleScores,
49593
49640
  {
49594
49641
  sample: sample2,
@@ -49606,7 +49653,7 @@ self.onmessage = function (e) {
49606
49653
  MarkdownDiv,
49607
49654
  {
49608
49655
  markdown: arrayToString(explanation2),
49609
- className: clsx("no-last-para-padding", styles$F.noLeft)
49656
+ className: clsx("no-last-para-padding", styles$G.noLeft)
49610
49657
  }
49611
49658
  ) })
49612
49659
  ] }) : "",
@@ -49616,7 +49663,7 @@ self.onmessage = function (e) {
49616
49663
  MetaDataGrid,
49617
49664
  {
49618
49665
  id: "task-sample-score-metadata",
49619
- className: clsx("tab-pane", styles$F.noTop),
49666
+ className: clsx("tab-pane", styles$G.noTop),
49620
49667
  entries: metadata2
49621
49668
  }
49622
49669
  ) })
@@ -49630,7 +49677,7 @@ self.onmessage = function (e) {
49630
49677
  const col1_3 = "_col1_3_b0it4_12";
49631
49678
  const col3 = "_col3_b0it4_16";
49632
49679
  const separator$2 = "_separator_b0it4_20";
49633
- const styles$E = {
49680
+ const styles$F = {
49634
49681
  wrapper: wrapper$2,
49635
49682
  col2: col2$1,
49636
49683
  col1_3,
@@ -49678,9 +49725,9 @@ self.onmessage = function (e) {
49678
49725
  value: usage.total_tokens,
49679
49726
  secondary: false
49680
49727
  });
49681
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$E.wrapper), children: rows.map((row2, idx) => {
49728
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$F.wrapper), children: rows.map((row2, idx) => {
49682
49729
  if (row2.label === "---") {
49683
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$E.separator }, `$usage-sep-${idx}`);
49730
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$F.separator }, `$usage-sep-${idx}`);
49684
49731
  } else {
49685
49732
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
49686
49733
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -49689,12 +49736,12 @@ self.onmessage = function (e) {
49689
49736
  className: clsx(
49690
49737
  "text-style-label",
49691
49738
  "text-style-secondary",
49692
- row2.secondary ? styles$E.col2 : styles$E.col1_3
49739
+ row2.secondary ? styles$F.col2 : styles$F.col1_3
49693
49740
  ),
49694
49741
  children: row2.label
49695
49742
  }
49696
49743
  ),
49697
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$E.col3, children: row2.value ? formatNumber(row2.value) : "" })
49744
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$F.col3, children: row2.value ? formatNumber(row2.value) : "" })
49698
49745
  ] }, `$usage-row-${idx}`);
49699
49746
  }
49700
49747
  }) });
@@ -49703,7 +49750,7 @@ self.onmessage = function (e) {
49703
49750
  const tableTokens = "_tableTokens_dbhwb_6";
49704
49751
  const tableH = "_tableH_dbhwb_10";
49705
49752
  const model = "_model_dbhwb_15";
49706
- const styles$D = {
49753
+ const styles$E = {
49707
49754
  table,
49708
49755
  tableTokens,
49709
49756
  tableH,
@@ -49720,7 +49767,7 @@ self.onmessage = function (e) {
49720
49767
  "table",
49721
49768
  "table-sm",
49722
49769
  "text-size-smaller",
49723
- styles$D.table,
49770
+ styles$E.table,
49724
49771
  className2
49725
49772
  ),
49726
49773
  children: children2
@@ -49737,7 +49784,7 @@ self.onmessage = function (e) {
49737
49784
  colSpan: 3,
49738
49785
  className: clsx(
49739
49786
  "card-subheading",
49740
- styles$D.tableTokens,
49787
+ styles$E.tableTokens,
49741
49788
  "text-size-small",
49742
49789
  "text-style-label",
49743
49790
  "text-style-secondary"
@@ -49752,7 +49799,7 @@ self.onmessage = function (e) {
49752
49799
  "th",
49753
49800
  {
49754
49801
  className: clsx(
49755
- styles$D.tableH,
49802
+ styles$E.tableH,
49756
49803
  "text-sixe-small",
49757
49804
  "text-style-label",
49758
49805
  "text-style-secondary"
@@ -49764,7 +49811,7 @@ self.onmessage = function (e) {
49764
49811
  "th",
49765
49812
  {
49766
49813
  className: clsx(
49767
- styles$D.tableH,
49814
+ styles$E.tableH,
49768
49815
  "text-sixe-small",
49769
49816
  "text-style-label",
49770
49817
  "text-style-secondary"
@@ -49777,7 +49824,7 @@ self.onmessage = function (e) {
49777
49824
  };
49778
49825
  const TokenRow = ({ model: model2, usage }) => {
49779
49826
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
49780
- /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$D.model, children: model2 }) }),
49827
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$E.model, children: model2 }) }),
49781
49828
  /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage }) })
49782
49829
  ] });
49783
49830
  };
@@ -49847,7 +49894,7 @@ self.onmessage = function (e) {
49847
49894
  const container$8 = "_container_1vi7u_1";
49848
49895
  const hidden$2 = "_hidden_1vi7u_8";
49849
49896
  const content$1 = "_content_1vi7u_12";
49850
- const styles$C = {
49897
+ const styles$D = {
49851
49898
  container: container$8,
49852
49899
  hidden: hidden$2,
49853
49900
  content: content$1
@@ -50032,14 +50079,14 @@ self.onmessage = function (e) {
50032
50079
  "div",
50033
50080
  {
50034
50081
  className: clsx(
50035
- styles$C.container,
50036
- !(scrollRef == null ? void 0 : scrollRef.current) ? styles$C.hidden : void 0
50082
+ styles$D.container,
50083
+ !(scrollRef == null ? void 0 : scrollRef.current) ? styles$D.hidden : void 0
50037
50084
  ),
50038
50085
  style: { height: `${listMetrics.totalHeight}px` },
50039
50086
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
50040
50087
  "div",
50041
50088
  {
50042
- className: styles$C.content,
50089
+ className: styles$D.content,
50043
50090
  style: { transform: `translateY(${top2}px)` },
50044
50091
  ref: containerRef,
50045
50092
  children: renderedRows
@@ -50059,7 +50106,7 @@ self.onmessage = function (e) {
50059
50106
  };
50060
50107
  };
50061
50108
  const list$1 = "_list_1emnm_1";
50062
- const styles$B = {
50109
+ const styles$C = {
50063
50110
  list: list$1
50064
50111
  };
50065
50112
  const ChatViewVirtualList = ({
@@ -50091,7 +50138,7 @@ self.onmessage = function (e) {
50091
50138
  data: collapsedMessages,
50092
50139
  renderRow,
50093
50140
  scrollRef,
50094
- className: clsx(styles$B.list, className2)
50141
+ className: clsx(styles$C.list, className2)
50095
50142
  }
50096
50143
  );
50097
50144
  return result;
@@ -50102,7 +50149,7 @@ self.onmessage = function (e) {
50102
50149
  const padded = "_padded_14odp_18";
50103
50150
  const ansi = "_ansi_14odp_23";
50104
50151
  const noTop = "_noTop_14odp_27";
50105
- const styles$A = {
50152
+ const styles$B = {
50106
50153
  tabPanel,
50107
50154
  fullWidth,
50108
50155
  metadataPanel,
@@ -50110,13 +50157,13 @@ self.onmessage = function (e) {
50110
50157
  ansi,
50111
50158
  noTop
50112
50159
  };
50113
- const body$2 = "_body_5y0hl_1";
50114
- const iconSmall = "_iconSmall_5y0hl_9";
50115
- const message = "_message_5y0hl_15";
50116
- const styles$z = {
50117
- body: body$2,
50118
- iconSmall,
50119
- message
50160
+ const flatBody = "_flatBody_gk2ju_1";
50161
+ const iconSmall$1 = "_iconSmall_gk2ju_9";
50162
+ const lineBase = "_lineBase_gk2ju_15";
50163
+ const styles$A = {
50164
+ flatBody,
50165
+ iconSmall: iconSmall$1,
50166
+ lineBase
50120
50167
  };
50121
50168
  const errorType = (message2) => {
50122
50169
  if (!message2) {
@@ -50130,9 +50177,9 @@ self.onmessage = function (e) {
50130
50177
  const FlatSampleError = ({
50131
50178
  message: message2
50132
50179
  }) => {
50133
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$z.flatBody), children: [
50134
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$z.iconSmall) }),
50135
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.lineBase), children: errorType(message2) })
50180
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.flatBody), children: [
50181
+ /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$A.iconSmall) }),
50182
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.lineBase), children: errorType(message2) })
50136
50183
  ] });
50137
50184
  };
50138
50185
  const target = "_target_yamz4_1";
@@ -50140,7 +50187,7 @@ self.onmessage = function (e) {
50140
50187
  const grid$3 = "_grid_yamz4_9";
50141
50188
  const centerLabel = "_centerLabel_yamz4_17";
50142
50189
  const wrap = "_wrap_yamz4_22";
50143
- const styles$y = {
50190
+ const styles$z = {
50144
50191
  target,
50145
50192
  answer,
50146
50193
  grid: grid$3,
@@ -50189,7 +50236,7 @@ self.onmessage = function (e) {
50189
50236
  MarkdownDiv,
50190
50237
  {
50191
50238
  markdown: arrayToString(arrayToString((sample2 == null ? void 0 : sample2.target) || "none")),
50192
- className: clsx("no-last-para-padding", styles$y.target)
50239
+ className: clsx("no-last-para-padding", styles$z.target)
50193
50240
  }
50194
50241
  ),
50195
50242
  size: `${target2}fr`,
@@ -50204,7 +50251,7 @@ self.onmessage = function (e) {
50204
50251
  MarkdownDiv,
50205
50252
  {
50206
50253
  markdown: fullAnswer,
50207
- className: clsx("no-last-para-padding", styles$y.answer)
50254
+ className: clsx("no-last-para-padding", styles$z.answer)
50208
50255
  }
50209
50256
  ) : "",
50210
50257
  size: `${answer2}fr`,
@@ -50232,7 +50279,7 @@ self.onmessage = function (e) {
50232
50279
  "div",
50233
50280
  {
50234
50281
  id: `sample-heading-${parent_id}`,
50235
- className: clsx(styles$y.grid, "text-size-base"),
50282
+ className: clsx(styles$z.grid, "text-size-base"),
50236
50283
  style: {
50237
50284
  gridTemplateColumns: `${columns.map((col) => {
50238
50285
  return col.size;
@@ -50247,7 +50294,7 @@ self.onmessage = function (e) {
50247
50294
  "text-style-label",
50248
50295
  "text-style-secondary",
50249
50296
  "text-size-base",
50250
- col.center ? styles$y.centerLabel : void 0
50297
+ col.center ? styles$z.centerLabel : void 0
50251
50298
  ),
50252
50299
  children: col.label
50253
50300
  },
@@ -50259,9 +50306,9 @@ self.onmessage = function (e) {
50259
50306
  "div",
50260
50307
  {
50261
50308
  className: clsx(
50262
- styles$y.wrap,
50309
+ styles$z.wrap,
50263
50310
  col.clamp ? "three-line-clamp" : void 0,
50264
- col.center ? styles$y.centerLabel : void 0
50311
+ col.center ? styles$z.centerLabel : void 0
50265
50312
  ),
50266
50313
  children: col.value
50267
50314
  },
@@ -50274,7 +50321,7 @@ self.onmessage = function (e) {
50274
50321
  };
50275
50322
  const title$2 = "_title_19l1b_1";
50276
50323
  const contents = "_contents_19l1b_8";
50277
- const styles$x = {
50324
+ const styles$y = {
50278
50325
  title: title$2,
50279
50326
  contents
50280
50327
  };
@@ -50284,12 +50331,12 @@ self.onmessage = function (e) {
50284
50331
  className: className2,
50285
50332
  children: children2
50286
50333
  }) => {
50287
- const contentEl = title2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$x.title, className2), children: [
50334
+ const contentEl = title2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$y.title, className2), children: [
50288
50335
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: icon || ApplicationIcons.metadata }),
50289
50336
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: title2 }),
50290
50337
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: children2 })
50291
50338
  ] }) : "";
50292
- const card2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", styles$x.contents), children: contentEl });
50339
+ const card2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", styles$y.contents), children: contentEl });
50293
50340
  return card2;
50294
50341
  };
50295
50342
  const ApprovalEventView = ({
@@ -50339,7 +50386,7 @@ self.onmessage = function (e) {
50339
50386
  }
50340
50387
  };
50341
50388
  const tab = "_tab_1je38_1";
50342
- const styles$w = {
50389
+ const styles$x = {
50343
50390
  tab
50344
50391
  };
50345
50392
  const EventNav = ({
@@ -50361,7 +50408,7 @@ self.onmessage = function (e) {
50361
50408
  active2 ? "active " : "",
50362
50409
  "text-style-label",
50363
50410
  "text-size-small",
50364
- styles$w.tab
50411
+ styles$x.tab
50365
50412
  ),
50366
50413
  onClick: () => {
50367
50414
  setSelectedNav(target2);
@@ -50371,7 +50418,7 @@ self.onmessage = function (e) {
50371
50418
  ) });
50372
50419
  };
50373
50420
  const navs$1 = "_navs_1vm6p_1";
50374
- const styles$v = {
50421
+ const styles$w = {
50375
50422
  navs: navs$1
50376
50423
  };
50377
50424
  const EventNavs = ({
@@ -50382,7 +50429,7 @@ self.onmessage = function (e) {
50382
50429
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
50383
50430
  "ul",
50384
50431
  {
50385
- className: clsx("nav", "nav-pills", styles$v.navs),
50432
+ className: clsx("nav", "nav-pills", styles$w.navs),
50386
50433
  role: "tablist",
50387
50434
  "aria-orientation": "horizontal",
50388
50435
  children: navs2.map((nav2) => {
@@ -50405,7 +50452,7 @@ self.onmessage = function (e) {
50405
50452
  const card = "_card_7z797_12";
50406
50453
  const cardContent = "_cardContent_7z797_18";
50407
50454
  const hidden$1 = "_hidden_7z797_23";
50408
- const styles$u = {
50455
+ const styles$v = {
50409
50456
  label,
50410
50457
  navs,
50411
50458
  card,
@@ -50501,14 +50548,14 @@ self.onmessage = function (e) {
50501
50548
  /* @__PURE__ */ jsxRuntimeExports.jsx(
50502
50549
  "div",
50503
50550
  {
50504
- className: clsx("text-style-secondary", styles$u.label),
50551
+ className: clsx("text-style-secondary", styles$v.label),
50505
50552
  onClick: () => {
50506
50553
  setCollapsed(!isCollapsed);
50507
50554
  },
50508
50555
  children: collapsed ? text2 : ""
50509
50556
  }
50510
50557
  ),
50511
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$u.navs, children: (!hasCollapse || !isCollapsed) && filteredArrChildren && filteredArrChildren.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
50558
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$v.navs, children: (!hasCollapse || !isCollapsed) && filteredArrChildren && filteredArrChildren.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
50512
50559
  EventNavs,
50513
50560
  {
50514
50561
  navs: filteredArrChildren.map((child, index2) => {
@@ -50527,15 +50574,15 @@ self.onmessage = function (e) {
50527
50574
  ]
50528
50575
  }
50529
50576
  ) : "";
50530
- const card2 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, className: clsx(className2, styles$u.card), children: [
50577
+ const card2 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, className: clsx(className2, styles$v.card), children: [
50531
50578
  titleEl,
50532
50579
  /* @__PURE__ */ jsxRuntimeExports.jsx(
50533
50580
  "div",
50534
50581
  {
50535
50582
  className: clsx(
50536
50583
  "tab-content",
50537
- styles$u.cardContent,
50538
- hasCollapse && isCollapsed ? styles$u.hidden : void 0
50584
+ styles$v.cardContent,
50585
+ hasCollapse && isCollapsed ? styles$v.hidden : void 0
50539
50586
  ),
50540
50587
  children: filteredArrChildren == null ? void 0 : filteredArrChildren.map((child, index2) => {
50541
50588
  const id2 = pillId(index2);
@@ -50592,7 +50639,7 @@ self.onmessage = function (e) {
50592
50639
  );
50593
50640
  };
50594
50641
  const panel = "_panel_8zdtn_1";
50595
- const styles$t = {
50642
+ const styles$u = {
50596
50643
  panel
50597
50644
  };
50598
50645
  const InfoEventView = ({
@@ -50604,9 +50651,9 @@ self.onmessage = function (e) {
50604
50651
  }) => {
50605
50652
  const panels = [];
50606
50653
  if (typeof event.data === "string") {
50607
- panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.data, className: styles$t.panel }));
50654
+ panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.data, className: styles$u.panel }));
50608
50655
  } else {
50609
- panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$t.panel }));
50656
+ panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$u.panel }));
50610
50657
  }
50611
50658
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
50612
50659
  EventPanel,
@@ -50662,7 +50709,7 @@ self.onmessage = function (e) {
50662
50709
  );
50663
50710
  };
50664
50711
  const grid$2 = "_grid_1pgwi_1";
50665
- const styles$s = {
50712
+ const styles$t = {
50666
50713
  grid: grid$2
50667
50714
  };
50668
50715
  const LoggerEventView = ({
@@ -50675,11 +50722,8 @@ self.onmessage = function (e) {
50675
50722
  className: className2,
50676
50723
  title: event.message.level,
50677
50724
  icon: ApplicationIcons.logging[event.message.level.toLowerCase()],
50678
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$s.grid), children: [
50679
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller"), children: [
50680
- "$",
50681
- event.message.message
50682
- ] }),
50725
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$t.grid), children: [
50726
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller"), children: event.message.message }),
50683
50727
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", "text-style-secondary"), children: [
50684
50728
  event.message.filename,
50685
50729
  ":",
@@ -50691,7 +50735,7 @@ self.onmessage = function (e) {
50691
50735
  };
50692
50736
  const container$7 = "_container_1brs9_1";
50693
50737
  const title$1 = "_title_1brs9_5";
50694
- const styles$r = {
50738
+ const styles$s = {
50695
50739
  container: container$7,
50696
50740
  title: title$1
50697
50741
  };
@@ -50700,11 +50744,11 @@ self.onmessage = function (e) {
50700
50744
  children: children2,
50701
50745
  className: className2
50702
50746
  }) => {
50703
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$r.container, className2), children: [
50747
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$s.container, className2), children: [
50704
50748
  /* @__PURE__ */ jsxRuntimeExports.jsx(
50705
50749
  "div",
50706
50750
  {
50707
- className: clsx("text-size-small", "text-style-label", styles$r.title),
50751
+ className: clsx("text-size-small", "text-style-label", styles$s.title),
50708
50752
  children: title2
50709
50753
  }
50710
50754
  ),
@@ -50719,7 +50763,7 @@ self.onmessage = function (e) {
50719
50763
  const codePre = "_codePre_19u93_26";
50720
50764
  const code$1 = "_code_19u93_26";
50721
50765
  const toolConfig = "_toolConfig_19u93_38";
50722
- const styles$q = {
50766
+ const styles$r = {
50723
50767
  output,
50724
50768
  container: container$6,
50725
50769
  all,
@@ -50778,25 +50822,25 @@ self.onmessage = function (e) {
50778
50822
  setEventState({ ...eventState, collapsed });
50779
50823
  },
50780
50824
  children: [
50781
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: styles$q.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
50825
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: styles$r.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
50782
50826
  ChatView,
50783
50827
  {
50784
50828
  id: `${id}-model-output`,
50785
50829
  messages: [...userMessages, ...outputMessages || []],
50786
- className: clsx(styles$q.output),
50830
+ className: clsx(styles$r.output),
50787
50831
  numbered: false,
50788
50832
  toolCallStyle: "compact"
50789
50833
  }
50790
50834
  ) }),
50791
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$q.container, children: [
50792
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$q.all, children: [
50793
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Configuration", className: styles$q.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries, plain: true }) }),
50794
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Usage", className: styles$q.tableSelection, children: event.output.usage !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage: event.output.usage }) : void 0 }),
50835
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$r.container, children: [
50836
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$r.all, children: [
50837
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Configuration", className: styles$r.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries, plain: true }) }),
50838
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Usage", className: styles$r.tableSelection, children: event.output.usage !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage: event.output.usage }) : void 0 }),
50795
50839
  /* @__PURE__ */ jsxRuntimeExports.jsx(
50796
50840
  EventSection,
50797
50841
  {
50798
50842
  title: "Tools",
50799
- className: clsx(styles$q.tableSelection, styles$q.tools),
50843
+ className: clsx(styles$r.tableSelection, styles$r.tools),
50800
50844
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolsConfig, { tools: event.tools })
50801
50845
  }
50802
50846
  )
@@ -50814,7 +50858,7 @@ self.onmessage = function (e) {
50814
50858
  {
50815
50859
  "data-name": "API",
50816
50860
  call: event.call,
50817
- className: styles$q.container
50861
+ className: styles$r.container
50818
50862
  }
50819
50863
  ) : ""
50820
50864
  ]
@@ -50843,12 +50887,12 @@ self.onmessage = function (e) {
50843
50887
  prismExports.highlightElement(codeRef.current);
50844
50888
  }
50845
50889
  }, [codeRef.current, contents2]);
50846
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$q.codePre, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
50890
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$r.codePre, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
50847
50891
  "code",
50848
50892
  {
50849
50893
  id,
50850
50894
  ref: codeRef,
50851
- className: clsx("language-json", styles$q.code, "text-size-small"),
50895
+ className: clsx("language-json", styles$r.code, "text-size-small"),
50852
50896
  children: sourceCode
50853
50897
  }
50854
50898
  ) }) });
@@ -50860,14 +50904,14 @@ self.onmessage = function (e) {
50860
50904
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: tool2.description })
50861
50905
  ] }, `${tool2.name}-${idx}`);
50862
50906
  });
50863
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$q.toolConfig, children: toolEls });
50907
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$r.toolConfig, children: toolEls });
50864
50908
  };
50865
50909
  const noMargin = "_noMargin_1a3fk_1";
50866
50910
  const code = "_code_1a3fk_5";
50867
50911
  const sample = "_sample_1a3fk_10";
50868
50912
  const section = "_section_1a3fk_14";
50869
50913
  const metadata$1 = "_metadata_1a3fk_21";
50870
- const styles$p = {
50914
+ const styles$q = {
50871
50915
  noMargin,
50872
50916
  code,
50873
50917
  sample,
@@ -50886,13 +50930,13 @@ self.onmessage = function (e) {
50886
50930
  if (event.sample.files && Object.keys(event.sample.files).length > 0) {
50887
50931
  sections.push(
50888
50932
  /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Files", children: Object.keys(event.sample.files).map((file) => {
50889
- return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$p.noMargin, children: file }, `sample-init-file-${file}`);
50933
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$q.noMargin, children: file }, `sample-init-file-${file}`);
50890
50934
  }) }, `sample-${id}-init-files`)
50891
50935
  );
50892
50936
  }
50893
50937
  if (event.sample.setup) {
50894
50938
  sections.push(
50895
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Setup", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$p.code, children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "sourceCode", children: event.sample.setup }) }) }, `sample-${id}-init-setup`)
50939
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Setup", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$q.code, children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "sourceCode", children: event.sample.setup }) }) }, `sample-${id}-init-setup`)
50896
50940
  );
50897
50941
  }
50898
50942
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -50912,7 +50956,7 @@ self.onmessage = function (e) {
50912
50956
  setEventState({ ...eventState, collapsed });
50913
50957
  },
50914
50958
  children: [
50915
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$p.sample, children: [
50959
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$q.sample, children: [
50916
50960
  /* @__PURE__ */ jsxRuntimeExports.jsx(ChatView, { messages: stateObj["messages"] }),
50917
50961
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
50918
50962
  event.sample.choices ? event.sample.choices.map((choice, index2) => {
@@ -50922,7 +50966,7 @@ self.onmessage = function (e) {
50922
50966
  choice
50923
50967
  ] }, `$choice-{choice}`);
50924
50968
  }) : "",
50925
- sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$p.section, children: sections }) : "",
50969
+ sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$q.section, children: sections }) : "",
50926
50970
  /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Target", children: toArray(event.sample.target).map((target2) => {
50927
50971
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: target2 }, target2);
50928
50972
  }) })
@@ -50932,7 +50976,7 @@ self.onmessage = function (e) {
50932
50976
  MetaDataGrid,
50933
50977
  {
50934
50978
  "data-name": "Metadata",
50935
- className: styles$p.metadata,
50979
+ className: styles$q.metadata,
50936
50980
  entries: event.sample.metadata
50937
50981
  }
50938
50982
  ) : ""
@@ -50999,7 +51043,7 @@ self.onmessage = function (e) {
50999
51043
  const explanation = "_explanation_1ww42_1";
51000
51044
  const separator$1 = "_separator_1ww42_8";
51001
51045
  const metadata = "_metadata_1ww42_13";
51002
- const styles$o = {
51046
+ const styles$p = {
51003
51047
  explanation,
51004
51048
  separator: separator$1,
51005
51049
  metadata
@@ -51029,28 +51073,28 @@ self.onmessage = function (e) {
51029
51073
  setEventState({ ...eventState, collapsed });
51030
51074
  },
51031
51075
  children: [
51032
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$o.explanation), children: [
51076
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$p.explanation), children: [
51033
51077
  event.target ? /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
51034
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$o.separator) }),
51078
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$p.separator) }),
51035
51079
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Target" }),
51036
51080
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: resolvedTarget || "" }) })
51037
51081
  ] }) : "",
51038
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$o.separator) }),
51082
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$p.separator) }),
51039
51083
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Answer" }),
51040
51084
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.score.answer || "" }) }),
51041
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$o.separator) }),
51085
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$p.separator) }),
51042
51086
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Explanation" }),
51043
51087
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.score.explanation || "" }) }),
51044
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$o.separator) }),
51088
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$p.separator) }),
51045
51089
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Score" }),
51046
51090
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: renderScore(event.score.value) }),
51047
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$o.separator) })
51091
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$p.separator) })
51048
51092
  ] }),
51049
51093
  event.score.metadata ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Metadata", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51050
51094
  MetaDataGrid,
51051
51095
  {
51052
51096
  entries: event.score.metadata,
51053
- className: styles$o.metadata
51097
+ className: styles$p.metadata
51054
51098
  }
51055
51099
  ) }) : void 0
51056
51100
  ]
@@ -57575,7 +57619,7 @@ ${events}
57575
57619
  };
57576
57620
  const tools = "_tools_13oio_1";
57577
57621
  const tool = "_tool_13oio_1";
57578
- const styles$n = {
57622
+ const styles$o = {
57579
57623
  tools,
57580
57624
  tool
57581
57625
  };
@@ -57715,7 +57759,7 @@ ${events}
57715
57759
  toolsInfo["Tools"] = /* @__PURE__ */ jsxRuntimeExports.jsx(Tools, { toolDefinitions: filtered });
57716
57760
  }
57717
57761
  }
57718
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$n.tools), children: Object.keys(toolsInfo).map((key2) => {
57762
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$o.tools), children: Object.keys(toolsInfo).map((key2) => {
57719
57763
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
57720
57764
  /* @__PURE__ */ jsxRuntimeExports.jsx(
57721
57765
  "div",
@@ -57757,11 +57801,11 @@ ${events}
57757
57801
  };
57758
57802
  const Tool = ({ toolName, toolArgs }) => {
57759
57803
  const functionCall = toolArgs && toolArgs.length > 0 ? `${toolName}(${toolArgs.join(", ")})` : toolName;
57760
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$n.tool), children: functionCall }) });
57804
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$o.tool), children: functionCall }) });
57761
57805
  };
57762
57806
  const diff = "_diff_eobja_1";
57763
57807
  const summary$2 = "_summary_eobja_6";
57764
- const styles$m = {
57808
+ const styles$n = {
57765
57809
  diff,
57766
57810
  summary: summary$2
57767
57811
  };
@@ -57799,14 +57843,14 @@ ${events}
57799
57843
  setEventState({ ...eventState, collapsed });
57800
57844
  },
57801
57845
  children: [
57802
- changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$m.summary), children: changePreview }) : void 0,
57846
+ changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$n.summary), children: changePreview }) : void 0,
57803
57847
  /* @__PURE__ */ jsxRuntimeExports.jsx(
57804
57848
  StateDiffView,
57805
57849
  {
57806
57850
  before,
57807
57851
  after,
57808
57852
  "data-name": "Diff",
57809
- className: clsx(styles$m.diff)
57853
+ className: clsx(styles$n.diff)
57810
57854
  }
57811
57855
  )
57812
57856
  ]
@@ -58130,7 +58174,7 @@ ${events}
58130
58174
  const summaryRendered = "_summaryRendered_ac4z2_6";
58131
58175
  const subtaskSummary = "_subtaskSummary_ac4z2_10";
58132
58176
  const subtaskLabel = "_subtaskLabel_ac4z2_17";
58133
- const styles$l = {
58177
+ const styles$m = {
58134
58178
  summary: summary$1,
58135
58179
  summaryRendered,
58136
58180
  subtaskSummary,
@@ -58144,20 +58188,19 @@ ${events}
58144
58188
  depth,
58145
58189
  className: className2
58146
58190
  }) => {
58147
- const transcript = event.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58148
- TranscriptView,
58149
- {
58150
- id: `${id}-subtask`,
58151
- "data-name": "Transcript",
58152
- events: event.events,
58153
- depth: depth + 1
58154
- }
58155
- ) : "";
58156
- const body2 = event.type === "fork" ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$l.summary), children: [
58191
+ const body2 = event.type === "fork" ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$m.summary), children: [
58157
58192
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Inputs" }),
58158
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$l.summaryRendered), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: event.input }) }),
58193
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$m.summaryRendered), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: event.input }) }),
58159
58194
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Transcript" }),
58160
- transcript
58195
+ event.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58196
+ TranscriptView,
58197
+ {
58198
+ id: `${id}-subtask`,
58199
+ "data-name": "Transcript",
58200
+ events: event.events,
58201
+ depth: depth + 1
58202
+ }
58203
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(None, {})
58161
58204
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
58162
58205
  /* @__PURE__ */ jsxRuntimeExports.jsx(
58163
58206
  SubtaskSummary,
@@ -58167,7 +58210,15 @@ ${events}
58167
58210
  result: event.result
58168
58211
  }
58169
58212
  ),
58170
- transcript
58213
+ event.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58214
+ TranscriptView,
58215
+ {
58216
+ id: `${id}-subtask`,
58217
+ "data-name": "Transcript",
58218
+ events: event.events,
58219
+ depth: depth + 1
58220
+ }
58221
+ ) : void 0
58171
58222
  ] });
58172
58223
  const type = event.type === "fork" ? "Fork" : "Subtask";
58173
58224
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -58192,12 +58243,12 @@ ${events}
58192
58243
  };
58193
58244
  const SubtaskSummary = ({ input: input2, result }) => {
58194
58245
  result = typeof result === "object" ? result : { result };
58195
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$l.subtaskSummary), children: [
58246
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$m.subtaskSummary), children: [
58196
58247
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Input" }),
58197
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$l.subtaskLabel) }),
58248
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$m.subtaskLabel) }),
58198
58249
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Output" }),
58199
58250
  /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: input2 }),
58200
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$l.subtaskLabel), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) }),
58251
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$m.subtaskLabel), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) }),
58201
58252
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: result }) })
58202
58253
  ] });
58203
58254
  };
@@ -58207,14 +58258,21 @@ ${events}
58207
58258
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: val });
58208
58259
  });
58209
58260
  } else if (values && typeof values === "object") {
58210
- return /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataView, { entries: values });
58261
+ if (Object.keys(values).length === 0) {
58262
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(None, {});
58263
+ } else {
58264
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataView, { entries: values });
58265
+ }
58211
58266
  } else {
58212
58267
  return values;
58213
58268
  }
58214
58269
  };
58270
+ const None = () => {
58271
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", "text-style-secondary"), children: "[None]" });
58272
+ };
58215
58273
  const summary = "_summary_1qkjz_1";
58216
58274
  const approval = "_approval_1qkjz_6";
58217
- const styles$k = {
58275
+ const styles$l = {
58218
58276
  summary,
58219
58277
  approval
58220
58278
  };
@@ -58252,7 +58310,7 @@ ${events}
58252
58310
  setEventState({ ...eventState, collapsed });
58253
58311
  },
58254
58312
  children: [
58255
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$k.summary, children: [
58313
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$l.summary, children: [
58256
58314
  /* @__PURE__ */ jsxRuntimeExports.jsx(
58257
58315
  ToolCallView,
58258
58316
  {
@@ -58268,7 +58326,7 @@ ${events}
58268
58326
  ApprovalEventView,
58269
58327
  {
58270
58328
  event: approvalEvent,
58271
- className: styles$k.approval
58329
+ className: styles$l.approval
58272
58330
  }
58273
58331
  ) : ""
58274
58332
  ] }),
@@ -58305,7 +58363,7 @@ ${events}
58305
58363
  const lastNode = "_lastNode_c8m1t_39";
58306
58364
  const eventNodeContainer = "_eventNodeContainer_c8m1t_43";
58307
58365
  const noBottom = "_noBottom_c8m1t_47";
58308
- const styles$j = {
58366
+ const styles$k = {
58309
58367
  darkenedBg,
58310
58368
  normalBg,
58311
58369
  node,
@@ -58375,10 +58433,10 @@ ${events}
58375
58433
  [setTranscriptState]
58376
58434
  );
58377
58435
  const renderRow = (item2, index2) => {
58378
- const bgClass = item2.depth % 2 == 0 ? styles$j.darkenedBg : styles$j.normalBg;
58379
- const paddingClass = index2 === 0 ? styles$j.first : void 0;
58436
+ const bgClass = item2.depth % 2 == 0 ? styles$k.darkenedBg : styles$k.normalBg;
58437
+ const paddingClass = index2 === 0 ? styles$k.first : void 0;
58380
58438
  const eventId = `${id}-event${index2}`;
58381
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.node, paddingClass), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
58439
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.node, paddingClass), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
58382
58440
  RenderedEventNode,
58383
58441
  {
58384
58442
  id: eventId,
@@ -58397,7 +58455,7 @@ ${events}
58397
58455
  tabIndex: 0,
58398
58456
  renderRow,
58399
58457
  scrollRef,
58400
- className: styles$j.nodes
58458
+ className: styles$k.nodes
58401
58459
  }
58402
58460
  );
58403
58461
  };
@@ -58408,12 +58466,12 @@ ${events}
58408
58466
  eventNodes
58409
58467
  }) => {
58410
58468
  const rows = eventNodes.map((eventNode2, index2) => {
58411
- const clz = [styles$j.eventNode];
58469
+ const clz = [styles$k.eventNode];
58412
58470
  if (eventNode2.depth % 2 == 0) {
58413
- clz.push(styles$j.darkenBg);
58471
+ clz.push(styles$k.darkenBg);
58414
58472
  }
58415
58473
  if (index2 === eventNodes.length - 1) {
58416
- clz.push(styles$j.lastNode);
58474
+ clz.push(styles$k.lastNode);
58417
58475
  }
58418
58476
  const eventId = `${id}-event${index2}`;
58419
58477
  const setEventState = reactExports.useCallback(
@@ -58426,8 +58484,8 @@ ${events}
58426
58484
  "div",
58427
58485
  {
58428
58486
  className: clsx(
58429
- styles$j.eventNodeContainer,
58430
- index2 === eventNodes.length - 1 ? styles$j.noBottom : void 0
58487
+ styles$k.eventNodeContainer,
58488
+ index2 === eventNodes.length - 1 ? styles$k.noBottom : void 0
58431
58489
  ),
58432
58490
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
58433
58491
  RenderedEventNode,
@@ -58448,7 +58506,7 @@ ${events}
58448
58506
  "div",
58449
58507
  {
58450
58508
  id,
58451
- className: clsx("text-size-small", styles$j.transcriptComponent),
58509
+ className: clsx("text-size-small", styles$k.transcriptComponent),
58452
58510
  children: rows
58453
58511
  }
58454
58512
  );
@@ -58611,7 +58669,8 @@ ${events}
58611
58669
  return e.event === "sample_init";
58612
58670
  });
58613
58671
  const initEvent = events[initEventIndex];
58614
- const fixedUp = [...events];
58672
+ const finalEvents = events.filter((e) => !e.pending);
58673
+ const fixedUp = [...finalEvents];
58615
58674
  if (initEvent) {
58616
58675
  fixedUp.splice(initEventIndex, 0, {
58617
58676
  timestamp: initEvent.timestamp,
@@ -58718,7 +58777,7 @@ ${events}
58718
58777
  {
58719
58778
  id: tabsetId,
58720
58779
  tabControlsClassName: clsx("text-size-base"),
58721
- tabPanelsClassName: clsx(styles$A.tabPanel),
58780
+ tabPanelsClassName: clsx(styles$B.tabPanel),
58722
58781
  tools: tools2,
58723
58782
  children: [
58724
58783
  sample2.events && sample2.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -58746,7 +58805,7 @@ ${events}
58746
58805
  TabPanel,
58747
58806
  {
58748
58807
  id: kSampleMessagesTabId,
58749
- className: clsx("sample-tab", styles$A.fullWidth),
58808
+ className: clsx("sample-tab", styles$B.fullWidth),
58750
58809
  title: "Messages",
58751
58810
  onSelected: onSelectedTab,
58752
58811
  selected: selectedTab === kSampleMessagesTabId,
@@ -58813,7 +58872,7 @@ ${events}
58813
58872
  title: "Metadata",
58814
58873
  onSelected: onSelectedTab,
58815
58874
  selected: selectedTab === kSampleMetdataTabId,
58816
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.metadataPanel), children: sampleMetadatas })
58875
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.metadataPanel), children: sampleMetadatas })
58817
58876
  }
58818
58877
  ) : null,
58819
58878
  sample2.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -58824,11 +58883,11 @@ ${events}
58824
58883
  title: "Error",
58825
58884
  onSelected: onSelectedTab,
58826
58885
  selected: selectedTab === kSampleErrorTabId,
58827
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.padded), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
58886
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.padded), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
58828
58887
  ANSIDisplay,
58829
58888
  {
58830
58889
  output: sample2.error.traceback_ansi,
58831
- className: clsx("text-size-small", styles$A.ansi)
58890
+ className: clsx("text-size-small", styles$B.ansi)
58832
58891
  }
58833
58892
  ) })
58834
58893
  }
@@ -58841,7 +58900,7 @@ ${events}
58841
58900
  title: "JSON",
58842
58901
  onSelected: onSelectedTab,
58843
58902
  selected: selectedTab === kSampleJsonTabId,
58844
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.padded, styles$A.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
58903
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.padded, styles$B.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
58845
58904
  JSONPanel,
58846
58905
  {
58847
58906
  data: sample2,
@@ -58866,7 +58925,7 @@ ${events}
58866
58925
  ModelTokenTable,
58867
58926
  {
58868
58927
  model_usage: sample2.model_usage,
58869
- className: clsx(styles$A.noTop)
58928
+ className: clsx(styles$B.noTop)
58870
58929
  }
58871
58930
  ) })
58872
58931
  ] }, `sample-usage-${id}`)
@@ -58881,7 +58940,7 @@ ${events}
58881
58940
  {
58882
58941
  id: "task-sample-metadata-${id}",
58883
58942
  entries: sample2 == null ? void 0 : sample2.metadata,
58884
- className: clsx("tab-pane", styles$A.noTop)
58943
+ className: clsx("tab-pane", styles$B.noTop)
58885
58944
  }
58886
58945
  ) })
58887
58946
  ] }, `sample-metadata-${id}`)
@@ -58896,7 +58955,7 @@ ${events}
58896
58955
  {
58897
58956
  id: "task-sample-store-${id}",
58898
58957
  entries: sample2 == null ? void 0 : sample2.store,
58899
- className: clsx("tab-pane", styles$A.noTop)
58958
+ className: clsx("tab-pane", styles$B.noTop)
58900
58959
  }
58901
58960
  ) })
58902
58961
  ] }, `sample-store-${id}`)
@@ -58959,10 +59018,10 @@ ${events}
58959
59018
  }
58960
59019
  };
58961
59020
  const container$5 = "_container_gzd7f_1";
58962
- const body$1 = "_body_gzd7f_6";
58963
- const styles$i = {
59021
+ const body$2 = "_body_gzd7f_6";
59022
+ const styles$j = {
58964
59023
  container: container$5,
58965
- body: body$1
59024
+ body: body$2
58966
59025
  };
58967
59026
  const InlineSampleDisplay = ({
58968
59027
  id,
@@ -58974,9 +59033,9 @@ ${events}
58974
59033
  setSelectedTab,
58975
59034
  scrollRef
58976
59035
  }) => {
58977
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$i.container, children: [
59036
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$j.container, children: [
58978
59037
  /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { animating: sampleStatus === "loading" }),
58979
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i.body, children: sampleError ? /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorPanel, { title: "Unable to load sample", error: sampleError }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
59038
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$j.body, children: sampleError ? /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorPanel, { title: "Unable to load sample", error: sampleError }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
58980
59039
  SampleDisplay,
58981
59040
  {
58982
59041
  id,
@@ -58999,7 +59058,7 @@ ${events}
58999
59058
  const content = "_content_yj2nt_41";
59000
59059
  const header$1 = "_header_yj2nt_45";
59001
59060
  const titleTool = "_titleTool_yj2nt_50";
59002
- const styles$h = {
59061
+ const styles$i = {
59003
59062
  title,
59004
59063
  detail,
59005
59064
  detailText,
@@ -59049,8 +59108,8 @@ ${events}
59049
59108
  id,
59050
59109
  className: clsx(
59051
59110
  "modal",
59052
- styles$h.modal,
59053
- !visible2 ? styles$h.hidden : void 0
59111
+ styles$i.modal,
59112
+ !visible2 ? styles$i.hidden : void 0
59054
59113
  ),
59055
59114
  role: "dialog",
59056
59115
  onKeyUp: onkeyup,
@@ -59061,23 +59120,23 @@ ${events}
59061
59120
  className: clsx(
59062
59121
  "modal-dialog",
59063
59122
  "modal-dialog-scrollable",
59064
- styles$h.modalBody
59123
+ styles$i.modalBody
59065
59124
  ),
59066
59125
  role: "document",
59067
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-content", styles$h.content), children: [
59068
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$h.header), children: [
59126
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-content", styles$i.content), children: [
59127
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$i.header), children: [
59069
59128
  /* @__PURE__ */ jsxRuntimeExports.jsx(
59070
59129
  "div",
59071
59130
  {
59072
- className: clsx("modal-title", "text-size-smaller", styles$h.title),
59131
+ className: clsx("modal-title", "text-size-smaller", styles$i.title),
59073
59132
  children: title2 || ""
59074
59133
  }
59075
59134
  ),
59076
- detail2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$h.detail, children: [
59135
+ detail2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$i.detail, children: [
59077
59136
  (detailTools == null ? void 0 : detailTools.left) ? detailTools.left.map((tool2, idx) => {
59078
59137
  return /* @__PURE__ */ jsxRuntimeExports.jsx(TitleTool, { ...tool2 }, `tool-left-${idx}`);
59079
59138
  }) : "",
59080
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$h.detailText), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: detail2 }) }),
59139
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$i.detailText), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: detail2 }) }),
59081
59140
  (detailTools == null ? void 0 : detailTools.right) ? detailTools.right.map((tool2, idx) => {
59082
59141
  return /* @__PURE__ */ jsxRuntimeExports.jsx(TitleTool, { ...tool2 }, `tool-right-${idx}`);
59083
59142
  }) : ""
@@ -59090,7 +59149,7 @@ ${events}
59090
59149
  "btn",
59091
59150
  "btn-close-large-dialog",
59092
59151
  "text-size-larger",
59093
- styles$h.close
59152
+ styles$i.close
59094
59153
  ),
59095
59154
  onClick: onHide,
59096
59155
  "aria-label": "Close",
@@ -59122,7 +59181,7 @@ ${events}
59122
59181
  "btn",
59123
59182
  "btn-outline",
59124
59183
  "text-size-small",
59125
- styles$h.titleTool
59184
+ styles$i.titleTool
59126
59185
  ),
59127
59186
  "aria-label": label2,
59128
59187
  onClick,
@@ -59312,14 +59371,22 @@ ${events}
59312
59371
  }
59313
59372
  }
59314
59373
  };
59374
+ const body$1 = "_body_5y0hl_1";
59375
+ const iconSmall = "_iconSmall_5y0hl_9";
59376
+ const message = "_message_5y0hl_15";
59377
+ const styles$h = {
59378
+ body: body$1,
59379
+ iconSmall,
59380
+ message
59381
+ };
59315
59382
  const SampleErrorView = ({
59316
59383
  message: message2,
59317
59384
  align
59318
59385
  }) => {
59319
59386
  align = align || "center";
59320
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$z.body, children: [
59321
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$z.iconSmall) }),
59322
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$z.message, style: ApplicationStyles.lineClamp(2), children: errorType(message2) })
59387
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$h.body, children: [
59388
+ /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$h.iconSmall) }),
59389
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h.message, style: ApplicationStyles.lineClamp(2), children: errorType(message2) })
59323
59390
  ] });
59324
59391
  };
59325
59392
  const grid$1 = "_grid_1kcta_1";
@@ -60662,8 +60729,8 @@ ${events}
60662
60729
  }
60663
60730
  );
60664
60731
  };
60665
- const statusPanel = "_statusPanel_1fzh4_1";
60666
- const statusIcon = "_statusIcon_1fzh4_10";
60732
+ const statusPanel = "_statusPanel_66f9o_1";
60733
+ const statusIcon = "_statusIcon_66f9o_11";
60667
60734
  const styles$2 = {
60668
60735
  statusPanel,
60669
60736
  statusIcon
@@ -60706,14 +60773,11 @@ ${events}
60706
60773
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.statusPanel, children: [
60707
60774
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon, styles$2.statusIcon), style: {} }),
60708
60775
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
60776
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: status }),
60709
60777
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
60710
- "$",
60711
- status
60712
- ] }),
60713
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
60714
- "($",
60778
+ "(",
60715
60779
  sampleCount,
60716
- " $",
60780
+ " ",
60717
60781
  sampleCount === 1 ? "sample" : "samples",
60718
60782
  ")"
60719
60783
  ] })