@workflow/web 5.0.0-beta.12 → 5.0.0-beta.13

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 (20) hide show
  1. package/build/client/assets/{highlighted-body-B3W2YXNL-DmlmGvFd.js → highlighted-body-B3W2YXNL-B8ZRlnzz.js} +1 -1
  2. package/build/client/assets/{home-BQRPxkXT.js → home-1yC3MOjQ.js} +2 -2
  3. package/build/client/assets/{manifest-b8838010.js → manifest-9f37c22f.js} +1 -1
  4. package/build/client/assets/{mermaid-3ZIDBTTL-CeSti4VQ.js → mermaid-3ZIDBTTL-BDM4-x6u.js} +312 -292
  5. package/build/client/assets/root-Bqr5evzw.css +1 -0
  6. package/build/client/assets/{root-8wYQKqnE.js → root-C5RLIKj5.js} +1 -1
  7. package/build/client/assets/{run-detail-Dn4QeKHW.js → run-detail-DM1PDAnQ.js} +28 -32
  8. package/build/client/assets/server-build-CNnlgxpd.css +1 -0
  9. package/build/client/assets/{workflow-graph-viewer-CxZS9r2o.js → workflow-graph-viewer-C8H50hkM.js} +1 -1
  10. package/build/server/assets/{app-D-W9Jr82.js → app-eXXkzWLS.js} +2 -2
  11. package/build/server/assets/{highlighted-body-B3W2YXNL-CcRpp5rq.js → highlighted-body-B3W2YXNL-DMxq-VLe.js} +2 -2
  12. package/build/server/assets/{index-BUU6Hdm_.js → index-BjEgWhxl.js} +3 -3
  13. package/build/server/assets/{mermaid-3ZIDBTTL-Nh9-IDfL.js → mermaid-3ZIDBTTL-DNPNsNRF.js} +2 -2
  14. package/build/server/assets/{server-build-BshzAvNv.js → server-build-CSP1Aknr.js} +847 -770
  15. package/build/server/assets/{token-BaJALexf.js → token-DOrkjd5O.js} +2 -2
  16. package/build/server/assets/{token-util-Bc0jltWL.js → token-util-Hv7wRzsW.js} +2 -2
  17. package/build/server/index.js +1 -1
  18. package/package.json +8 -8
  19. package/build/client/assets/root-DvB36HGI.css +0 -1
  20. package/build/client/assets/server-build-B5Dibl7P.css +0 -1
@@ -1,8 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-g14N5vQl.js","assets/index-B6-SzLmT.js","assets/index-BXZSIDEp.js","assets/highlighted-body-B3W2YXNL-DmlmGvFd.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-g14N5vQl.js","assets/index-B6-SzLmT.js","assets/index-BXZSIDEp.js","assets/highlighted-body-B3W2YXNL-B8ZRlnzz.js"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- var _a2;
5
+ var _a2, _b;
6
6
  import { r as reactExports, j as jsxRuntimeExports, f as reactDomExports, I as React, G as ReactDOM, R as ReactExports, g as getDefaultExportFromCjs } from "./index-BXZSIDEp.js";
7
7
  function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
8
8
  return function handleEvent(event) {
@@ -200,13 +200,13 @@ function mergeProps$1(slotProps, childProps) {
200
200
  return { ...slotProps, ...overrideProps };
201
201
  }
202
202
  function getElementRef$2(element2) {
203
- var _a3, _b;
203
+ var _a3, _b2;
204
204
  let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
205
205
  let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
206
206
  if (mayWarn) {
207
207
  return element2.ref;
208
208
  }
209
- getter = (_b = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b.get;
209
+ getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
210
210
  mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
211
211
  if (mayWarn) {
212
212
  return element2.props.ref;
@@ -2443,7 +2443,7 @@ var CONTENT_NAME$1 = "PopperContent";
2443
2443
  var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$1);
2444
2444
  var PopperContent = reactExports.forwardRef(
2445
2445
  (props, forwardedRef) => {
2446
- var _a3, _b, _c, _d, _e2, _f;
2446
+ var _a3, _b2, _c, _d, _e2, _f;
2447
2447
  const {
2448
2448
  __scopePopper,
2449
2449
  side = "bottom",
@@ -2523,7 +2523,7 @@ var PopperContent = reactExports.forwardRef(
2523
2523
  }
2524
2524
  }, [isPositioned, handlePlaced]);
2525
2525
  const arrowX = (_a3 = middlewareData.arrow) == null ? void 0 : _a3.x;
2526
- const arrowY = (_b = middlewareData.arrow) == null ? void 0 : _b.y;
2526
+ const arrowY = (_b2 = middlewareData.arrow) == null ? void 0 : _b2.y;
2527
2527
  const cannotCenterArrow = ((_c = middlewareData.arrow) == null ? void 0 : _c.centerOffset) !== 0;
2528
2528
  const [contentZIndex, setContentZIndex] = reactExports.useState();
2529
2529
  useLayoutEffect2(() => {
@@ -2646,7 +2646,7 @@ var transformOrigin = (options) => ({
2646
2646
  name: "transformOrigin",
2647
2647
  options,
2648
2648
  fn(data) {
2649
- var _a3, _b, _c;
2649
+ var _a3, _b2, _c;
2650
2650
  const { placement, rects, middlewareData } = data;
2651
2651
  const cannotCenterArrow = ((_a3 = middlewareData.arrow) == null ? void 0 : _a3.centerOffset) !== 0;
2652
2652
  const isArrowHidden = cannotCenterArrow;
@@ -2654,7 +2654,7 @@ var transformOrigin = (options) => ({
2654
2654
  const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
2655
2655
  const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
2656
2656
  const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
2657
- const arrowXCenter = (((_b = middlewareData.arrow) == null ? void 0 : _b.x) ?? 0) + arrowWidth / 2;
2657
+ const arrowXCenter = (((_b2 = middlewareData.arrow) == null ? void 0 : _b2.x) ?? 0) + arrowWidth / 2;
2658
2658
  const arrowYCenter = (((_c = middlewareData.arrow) == null ? void 0 : _c.y) ?? 0) + arrowHeight / 2;
2659
2659
  let x2 = "";
2660
2660
  let y2 = "";
@@ -2802,13 +2802,13 @@ function getAnimationName(styles2) {
2802
2802
  return (styles2 == null ? void 0 : styles2.animationName) || "none";
2803
2803
  }
2804
2804
  function getElementRef$1(element2) {
2805
- var _a3, _b;
2805
+ var _a3, _b2;
2806
2806
  let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
2807
2807
  let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2808
2808
  if (mayWarn) {
2809
2809
  return element2.ref;
2810
2810
  }
2811
- getter = (_b = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b.get;
2811
+ getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
2812
2812
  mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2813
2813
  if (mayWarn) {
2814
2814
  return element2.props.ref;
@@ -10098,44 +10098,6 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
10098
10098
  return baseModule().catch(handlePreloadError);
10099
10099
  });
10100
10100
  };
10101
- function decode64(string2) {
10102
- const binaryString = asciiToBinary(string2);
10103
- const arraybuffer = new ArrayBuffer(binaryString.length);
10104
- const dv = new DataView(arraybuffer);
10105
- for (let i = 0; i < arraybuffer.byteLength; i++) {
10106
- dv.setUint8(i, binaryString.charCodeAt(i));
10107
- }
10108
- return arraybuffer;
10109
- }
10110
- const KEY_STRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
10111
- function asciiToBinary(data) {
10112
- if (data.length % 4 === 0) {
10113
- data = data.replace(/==?$/, "");
10114
- }
10115
- let output = "";
10116
- let buffer = 0;
10117
- let accumulatedBits = 0;
10118
- for (let i = 0; i < data.length; i++) {
10119
- buffer <<= 6;
10120
- buffer |= KEY_STRING.indexOf(data[i]);
10121
- accumulatedBits += 6;
10122
- if (accumulatedBits === 24) {
10123
- output += String.fromCharCode((buffer & 16711680) >> 16);
10124
- output += String.fromCharCode((buffer & 65280) >> 8);
10125
- output += String.fromCharCode(buffer & 255);
10126
- buffer = accumulatedBits = 0;
10127
- }
10128
- }
10129
- if (accumulatedBits === 12) {
10130
- buffer >>= 4;
10131
- output += String.fromCharCode(buffer);
10132
- } else if (accumulatedBits === 18) {
10133
- buffer >>= 2;
10134
- output += String.fromCharCode((buffer & 65280) >> 8);
10135
- output += String.fromCharCode(buffer & 255);
10136
- }
10137
- return output;
10138
- }
10139
10101
  const UNDEFINED = -1;
10140
10102
  const HOLE = -2;
10141
10103
  const NAN = -3;
@@ -10143,6 +10105,38 @@ const POSITIVE_INFINITY = -4;
10143
10105
  const NEGATIVE_INFINITY = -5;
10144
10106
  const NEGATIVE_ZERO = -6;
10145
10107
  const SPARSE = -7;
10108
+ const MAX_ARRAY_LEN = 2 ** 32 - 1;
10109
+ const MAX_ARRAY_INDEX = MAX_ARRAY_LEN - 1;
10110
+ function is_valid_array_index(n) {
10111
+ if (!Number.isInteger(n)) return false;
10112
+ if (n < 0) return false;
10113
+ if (n > MAX_ARRAY_INDEX) return false;
10114
+ return true;
10115
+ }
10116
+ function is_valid_array_len(n) {
10117
+ if (!Number.isInteger(n)) return false;
10118
+ if (n < 0) return false;
10119
+ if (n > MAX_ARRAY_LEN) return false;
10120
+ return true;
10121
+ }
10122
+ function decode_native(base642) {
10123
+ return Uint8Array.fromBase64(base642).buffer;
10124
+ }
10125
+ function decode_buffer(base642) {
10126
+ return Uint8Array.from(Buffer.from(base642, "base64")).buffer;
10127
+ }
10128
+ function decode_legacy(base642) {
10129
+ const binary_string = atob(base642);
10130
+ const len = binary_string.length;
10131
+ const array2 = new Uint8Array(len);
10132
+ for (let i = 0; i < len; i++) {
10133
+ array2[i] = binary_string.charCodeAt(i);
10134
+ }
10135
+ return array2.buffer;
10136
+ }
10137
+ const native = typeof Uint8Array.fromBase64 === "function";
10138
+ const buffer = typeof process === "object" && ((_a2 = process.versions) == null ? void 0 : _a2.node) !== void 0;
10139
+ const decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
10146
10140
  function parse$4(serialized, revivers) {
10147
10141
  return unflatten(JSON.parse(serialized), revivers);
10148
10142
  }
@@ -10209,9 +10203,14 @@ function unflatten(parsed, revivers) {
10209
10203
  case "RegExp":
10210
10204
  hydrated[index2] = new RegExp(value[1], value[2]);
10211
10205
  break;
10212
- case "Object":
10213
- hydrated[index2] = Object(value[1]);
10206
+ case "Object": {
10207
+ const wrapped_index = value[1];
10208
+ if (typeof values[wrapped_index] === "object" && values[wrapped_index][0] !== "BigInt") {
10209
+ throw new Error("Invalid input");
10210
+ }
10211
+ hydrated[index2] = Object(hydrate(wrapped_index));
10214
10212
  break;
10213
+ }
10215
10214
  case "BigInt":
10216
10215
  hydrated[index2] = BigInt(value[1]);
10217
10216
  break;
@@ -10219,6 +10218,9 @@ function unflatten(parsed, revivers) {
10219
10218
  const obj = /* @__PURE__ */ Object.create(null);
10220
10219
  hydrated[index2] = obj;
10221
10220
  for (let i = 1; i < value.length; i += 2) {
10221
+ if (value[i] === "__proto__") {
10222
+ throw new Error("Cannot parse an object with a `__proto__` property");
10223
+ }
10222
10224
  obj[value[i]] = hydrate(value[i + 1]);
10223
10225
  }
10224
10226
  break;
@@ -10227,19 +10229,20 @@ function unflatten(parsed, revivers) {
10227
10229
  case "Uint8ClampedArray":
10228
10230
  case "Int16Array":
10229
10231
  case "Uint16Array":
10232
+ case "Float16Array":
10230
10233
  case "Int32Array":
10231
10234
  case "Uint32Array":
10232
10235
  case "Float32Array":
10233
10236
  case "Float64Array":
10234
10237
  case "BigInt64Array":
10235
- case "BigUint64Array": {
10238
+ case "BigUint64Array":
10239
+ case "DataView": {
10236
10240
  if (values[value[1]][0] !== "ArrayBuffer") {
10237
10241
  throw new Error("Invalid data");
10238
10242
  }
10239
10243
  const TypedArrayConstructor = globalThis[type];
10240
- const buffer = hydrate(value[1]);
10241
- const typedArray = new TypedArrayConstructor(buffer);
10242
- hydrated[index2] = value[2] !== void 0 ? typedArray.subarray(value[2], value[3]) : typedArray;
10244
+ const buffer2 = hydrate(value[1]);
10245
+ hydrated[index2] = value[2] !== void 0 ? new TypedArrayConstructor(buffer2, value[2], value[3]) : new TypedArrayConstructor(buffer2);
10243
10246
  break;
10244
10247
  }
10245
10248
  case "ArrayBuffer": {
@@ -10278,12 +10281,21 @@ function unflatten(parsed, revivers) {
10278
10281
  }
10279
10282
  } else if (value[0] === SPARSE) {
10280
10283
  const len = value[1];
10281
- const array2 = new Array(len);
10284
+ if (!is_valid_array_len(len)) {
10285
+ throw new Error("Invalid input");
10286
+ }
10287
+ const array2 = [];
10282
10288
  hydrated[index2] = array2;
10289
+ array2[MAX_ARRAY_INDEX] = void 0;
10290
+ delete array2[MAX_ARRAY_INDEX];
10283
10291
  for (let i = 2; i < value.length; i += 2) {
10284
10292
  const idx = value[i];
10293
+ if (!is_valid_array_index(idx) || idx >= len) {
10294
+ throw new Error("Invalid input");
10295
+ }
10285
10296
  array2[idx] = hydrate(value[i + 1]);
10286
10297
  }
10298
+ array2.length = len;
10287
10299
  } else {
10288
10300
  const array2 = new Array(value.length);
10289
10301
  hydrated[index2] = array2;
@@ -10691,10 +10703,10 @@ function $constructor(name2, initializer2, params) {
10691
10703
  Object.defineProperty(_2, "init", { value: init });
10692
10704
  Object.defineProperty(_2, Symbol.hasInstance, {
10693
10705
  value: (inst) => {
10694
- var _a3, _b;
10706
+ var _a3, _b2;
10695
10707
  if ((params == null ? void 0 : params.Parent) && inst instanceof params.Parent)
10696
10708
  return true;
10697
- return (_b = (_a3 = inst == null ? void 0 : inst._zod) == null ? void 0 : _a3.traits) == null ? void 0 : _b.has(name2);
10709
+ return (_b2 = (_a3 = inst == null ? void 0 : inst._zod) == null ? void 0 : _a3.traits) == null ? void 0 : _b2.has(name2);
10698
10710
  }
10699
10711
  });
10700
10712
  Object.defineProperty(_2, "name", { value: name2 });
@@ -11077,10 +11089,10 @@ function unwrapMessage(message) {
11077
11089
  return typeof message === "string" ? message : message == null ? void 0 : message.message;
11078
11090
  }
11079
11091
  function finalizeIssue(iss, ctx, config2) {
11080
- var _a3, _b, _c, _d, _e2, _f;
11092
+ var _a3, _b2, _c, _d, _e2, _f;
11081
11093
  const full = { ...iss, path: iss.path ?? [] };
11082
11094
  if (!iss.message) {
11083
- const message = unwrapMessage((_c = (_b = (_a3 = iss.inst) == null ? void 0 : _a3._zod.def) == null ? void 0 : _b.error) == null ? void 0 : _c.call(_b, iss)) ?? unwrapMessage((_d = ctx == null ? void 0 : ctx.error) == null ? void 0 : _d.call(ctx, iss)) ?? unwrapMessage((_e2 = config2.customError) == null ? void 0 : _e2.call(config2, iss)) ?? unwrapMessage((_f = config2.localeError) == null ? void 0 : _f.call(config2, iss)) ?? "Invalid input";
11095
+ const message = unwrapMessage((_c = (_b2 = (_a3 = iss.inst) == null ? void 0 : _a3._zod.def) == null ? void 0 : _b2.error) == null ? void 0 : _c.call(_b2, iss)) ?? unwrapMessage((_d = ctx == null ? void 0 : ctx.error) == null ? void 0 : _d.call(ctx, iss)) ?? unwrapMessage((_e2 = config2.customError) == null ? void 0 : _e2.call(config2, iss)) ?? unwrapMessage((_f = config2.localeError) == null ? void 0 : _f.call(config2, iss)) ?? "Invalid input";
11084
11096
  full.message = message;
11085
11097
  }
11086
11098
  delete full.inst;
@@ -11564,7 +11576,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
11564
11576
  };
11565
11577
  });
11566
11578
  const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
11567
- var _a3, _b;
11579
+ var _a3, _b2;
11568
11580
  $ZodCheck.init(inst, def);
11569
11581
  inst._zod.onattach.push((inst2) => {
11570
11582
  const bag = inst2._zod.bag;
@@ -11590,7 +11602,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
11590
11602
  });
11591
11603
  });
11592
11604
  else
11593
- (_b = inst._zod).check ?? (_b.check = () => {
11605
+ (_b2 = inst._zod).check ?? (_b2.check = () => {
11594
11606
  });
11595
11607
  });
11596
11608
  const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
@@ -12323,10 +12335,10 @@ function handlePropertyResult(result, final, key, input, isOptionalOut) {
12323
12335
  }
12324
12336
  }
12325
12337
  function normalizeDef(def) {
12326
- var _a3, _b, _c, _d;
12338
+ var _a3, _b2, _c, _d;
12327
12339
  const keys2 = Object.keys(def.shape);
12328
12340
  for (const k2 of keys2) {
12329
- if (!((_d = (_c = (_b = (_a3 = def.shape) == null ? void 0 : _a3[k2]) == null ? void 0 : _b._zod) == null ? void 0 : _c.traits) == null ? void 0 : _d.has("$ZodType"))) {
12341
+ if (!((_d = (_c = (_b2 = (_a3 = def.shape) == null ? void 0 : _a3[k2]) == null ? void 0 : _b2._zod) == null ? void 0 : _c.traits) == null ? void 0 : _d.has("$ZodType"))) {
12330
12342
  throw new Error(`Invalid element at key "${k2}": expected a Zod schema`);
12331
12343
  }
12332
12344
  }
@@ -13130,12 +13142,12 @@ const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) =>
13130
13142
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
13131
13143
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
13132
13144
  defineLazy(inst._zod, "optin", () => {
13133
- var _a3, _b;
13134
- return (_b = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.optin;
13145
+ var _a3, _b2;
13146
+ return (_b2 = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optin;
13135
13147
  });
13136
13148
  defineLazy(inst._zod, "optout", () => {
13137
- var _a3, _b;
13138
- return (_b = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.optout;
13149
+ var _a3, _b2;
13150
+ return (_b2 = (_a3 = def.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optout;
13139
13151
  });
13140
13152
  inst._zod.parse = (payload, ctx) => {
13141
13153
  if (ctx.direction === "backward") {
@@ -13201,20 +13213,20 @@ const $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
13201
13213
  $ZodType.init(inst, def);
13202
13214
  defineLazy(inst._zod, "innerType", () => def.getter());
13203
13215
  defineLazy(inst._zod, "pattern", () => {
13204
- var _a3, _b;
13205
- return (_b = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.pattern;
13216
+ var _a3, _b2;
13217
+ return (_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.pattern;
13206
13218
  });
13207
13219
  defineLazy(inst._zod, "propValues", () => {
13208
- var _a3, _b;
13209
- return (_b = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.propValues;
13220
+ var _a3, _b2;
13221
+ return (_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.propValues;
13210
13222
  });
13211
13223
  defineLazy(inst._zod, "optin", () => {
13212
- var _a3, _b;
13213
- return ((_b = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.optin) ?? void 0;
13224
+ var _a3, _b2;
13225
+ return ((_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optin) ?? void 0;
13214
13226
  });
13215
13227
  defineLazy(inst._zod, "optout", () => {
13216
- var _a3, _b;
13217
- return ((_b = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b.optout) ?? void 0;
13228
+ var _a3, _b2;
13229
+ return ((_b2 = (_a3 = inst._zod.innerType) == null ? void 0 : _a3._zod) == null ? void 0 : _b2.optout) ?? void 0;
13218
13230
  });
13219
13231
  inst._zod.parse = (payload, ctx) => {
13220
13232
  const inner = inst._zod.innerType;
@@ -13856,8 +13868,8 @@ function initializeContext(params) {
13856
13868
  external: (params == null ? void 0 : params.external) ?? void 0
13857
13869
  };
13858
13870
  }
13859
- function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
13860
- var _a4, _b;
13871
+ function process$1(schema, ctx, _params = { path: [], schemaPath: [] }) {
13872
+ var _a4, _b2;
13861
13873
  var _a3;
13862
13874
  const def = schema._zod.def;
13863
13875
  const seen2 = ctx.seen.get(schema);
@@ -13871,7 +13883,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
13871
13883
  }
13872
13884
  const result = { schema: {}, count: 1, cycle: void 0, path: _params.path };
13873
13885
  ctx.seen.set(schema, result);
13874
- const overrideSchema = (_b = (_a4 = schema._zod).toJSONSchema) == null ? void 0 : _b.call(_a4);
13886
+ const overrideSchema = (_b2 = (_a4 = schema._zod).toJSONSchema) == null ? void 0 : _b2.call(_a4);
13875
13887
  if (overrideSchema) {
13876
13888
  result.schema = overrideSchema;
13877
13889
  } else {
@@ -13894,7 +13906,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
13894
13906
  if (parent) {
13895
13907
  if (!result.ref)
13896
13908
  result.ref = parent;
13897
- process(parent, ctx, params);
13909
+ process$1(parent, ctx, params);
13898
13910
  ctx.seen.get(parent).isParent = true;
13899
13911
  }
13900
13912
  }
@@ -13912,7 +13924,7 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
13912
13924
  return _result.schema;
13913
13925
  }
13914
13926
  function extractDefs(ctx, schema) {
13915
- var _a3, _b, _c, _d;
13927
+ var _a3, _b2, _c, _d;
13916
13928
  const root2 = ctx.seen.get(schema);
13917
13929
  if (!root2)
13918
13930
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -13967,7 +13979,7 @@ function extractDefs(ctx, schema) {
13967
13979
  for (const entry of ctx.seen.entries()) {
13968
13980
  const seen2 = entry[1];
13969
13981
  if (seen2.cycle) {
13970
- throw new Error(`Cycle detected: #/${(_b = seen2.cycle) == null ? void 0 : _b.join("/")}/<root>
13982
+ throw new Error(`Cycle detected: #/${(_b2 = seen2.cycle) == null ? void 0 : _b2.join("/")}/<root>
13971
13983
 
13972
13984
  Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
13973
13985
  }
@@ -14004,7 +14016,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14004
14016
  }
14005
14017
  }
14006
14018
  function finalize(ctx, schema) {
14007
- var _a3, _b, _c;
14019
+ var _a3, _b2, _c;
14008
14020
  const root2 = ctx.seen.get(schema);
14009
14021
  if (!root2)
14010
14022
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -14083,7 +14095,7 @@ function finalize(ctx, schema) {
14083
14095
  } else if (ctx.target === "openapi-3.0") ;
14084
14096
  else ;
14085
14097
  if ((_a3 = ctx.external) == null ? void 0 : _a3.uri) {
14086
- const id = (_b = ctx.external.registry.get(schema)) == null ? void 0 : _b.id;
14098
+ const id = (_b2 = ctx.external.registry.get(schema)) == null ? void 0 : _b2.id;
14087
14099
  if (!id)
14088
14100
  throw new Error("Schema is missing an `id` property");
14089
14101
  result.$id = ctx.external.uri(id);
@@ -14177,14 +14189,14 @@ function isTransforming(_schema, _ctx) {
14177
14189
  }
14178
14190
  const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
14179
14191
  const ctx = initializeContext({ ...params, processors });
14180
- process(schema, ctx);
14192
+ process$1(schema, ctx);
14181
14193
  extractDefs(ctx, schema);
14182
14194
  return finalize(ctx, schema);
14183
14195
  };
14184
14196
  const createStandardJSONSchemaMethod = (schema, io2, processors = {}) => (params) => {
14185
14197
  const { libraryOptions, target: target2 } = params ?? {};
14186
14198
  const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io: io2, processors });
14187
- process(schema, ctx);
14199
+ process$1(schema, ctx);
14188
14200
  extractDefs(ctx, schema);
14189
14201
  return finalize(ctx, schema);
14190
14202
  };
@@ -14376,7 +14388,7 @@ const arrayProcessor = (schema, ctx, _json, params) => {
14376
14388
  if (typeof maximum === "number")
14377
14389
  json.maxItems = maximum;
14378
14390
  json.type = "array";
14379
- json.items = process(def.element, ctx, { ...params, path: [...params.path, "items"] });
14391
+ json.items = process$1(def.element, ctx, { ...params, path: [...params.path, "items"] });
14380
14392
  };
14381
14393
  const objectProcessor = (schema, ctx, _json, params) => {
14382
14394
  var _a3;
@@ -14386,7 +14398,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
14386
14398
  json.properties = {};
14387
14399
  const shape = def.shape;
14388
14400
  for (const key in shape) {
14389
- json.properties[key] = process(shape[key], ctx, {
14401
+ json.properties[key] = process$1(shape[key], ctx, {
14390
14402
  ...params,
14391
14403
  path: [...params.path, "properties", key]
14392
14404
  });
@@ -14409,7 +14421,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
14409
14421
  if (ctx.io === "output")
14410
14422
  json.additionalProperties = false;
14411
14423
  } else if (def.catchall) {
14412
- json.additionalProperties = process(def.catchall, ctx, {
14424
+ json.additionalProperties = process$1(def.catchall, ctx, {
14413
14425
  ...params,
14414
14426
  path: [...params.path, "additionalProperties"]
14415
14427
  });
@@ -14418,7 +14430,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
14418
14430
  const unionProcessor = (schema, ctx, json, params) => {
14419
14431
  const def = schema._zod.def;
14420
14432
  const isExclusive = def.inclusive === false;
14421
- const options = def.options.map((x2, i) => process(x2, ctx, {
14433
+ const options = def.options.map((x2, i) => process$1(x2, ctx, {
14422
14434
  ...params,
14423
14435
  path: [...params.path, isExclusive ? "oneOf" : "anyOf", i]
14424
14436
  }));
@@ -14430,11 +14442,11 @@ const unionProcessor = (schema, ctx, json, params) => {
14430
14442
  };
14431
14443
  const intersectionProcessor = (schema, ctx, json, params) => {
14432
14444
  const def = schema._zod.def;
14433
- const a2 = process(def.left, ctx, {
14445
+ const a2 = process$1(def.left, ctx, {
14434
14446
  ...params,
14435
14447
  path: [...params.path, "allOf", 0]
14436
14448
  });
14437
- const b2 = process(def.right, ctx, {
14449
+ const b2 = process$1(def.right, ctx, {
14438
14450
  ...params,
14439
14451
  path: [...params.path, "allOf", 1]
14440
14452
  });
@@ -14453,7 +14465,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
14453
14465
  const keyBag = keyType._zod.bag;
14454
14466
  const patterns = keyBag == null ? void 0 : keyBag.patterns;
14455
14467
  if (def.mode === "loose" && patterns && patterns.size > 0) {
14456
- const valueSchema = process(def.valueType, ctx, {
14468
+ const valueSchema = process$1(def.valueType, ctx, {
14457
14469
  ...params,
14458
14470
  path: [...params.path, "patternProperties", "*"]
14459
14471
  });
@@ -14463,12 +14475,12 @@ const recordProcessor = (schema, ctx, _json, params) => {
14463
14475
  }
14464
14476
  } else {
14465
14477
  if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
14466
- json.propertyNames = process(def.keyType, ctx, {
14478
+ json.propertyNames = process$1(def.keyType, ctx, {
14467
14479
  ...params,
14468
14480
  path: [...params.path, "propertyNames"]
14469
14481
  });
14470
14482
  }
14471
- json.additionalProperties = process(def.valueType, ctx, {
14483
+ json.additionalProperties = process$1(def.valueType, ctx, {
14472
14484
  ...params,
14473
14485
  path: [...params.path, "additionalProperties"]
14474
14486
  });
@@ -14483,7 +14495,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
14483
14495
  };
14484
14496
  const nullableProcessor = (schema, ctx, json, params) => {
14485
14497
  const def = schema._zod.def;
14486
- const inner = process(def.innerType, ctx, params);
14498
+ const inner = process$1(def.innerType, ctx, params);
14487
14499
  const seen2 = ctx.seen.get(schema);
14488
14500
  if (ctx.target === "openapi-3.0") {
14489
14501
  seen2.ref = def.innerType;
@@ -14494,20 +14506,20 @@ const nullableProcessor = (schema, ctx, json, params) => {
14494
14506
  };
14495
14507
  const nonoptionalProcessor = (schema, ctx, _json, params) => {
14496
14508
  const def = schema._zod.def;
14497
- process(def.innerType, ctx, params);
14509
+ process$1(def.innerType, ctx, params);
14498
14510
  const seen2 = ctx.seen.get(schema);
14499
14511
  seen2.ref = def.innerType;
14500
14512
  };
14501
14513
  const defaultProcessor = (schema, ctx, json, params) => {
14502
14514
  const def = schema._zod.def;
14503
- process(def.innerType, ctx, params);
14515
+ process$1(def.innerType, ctx, params);
14504
14516
  const seen2 = ctx.seen.get(schema);
14505
14517
  seen2.ref = def.innerType;
14506
14518
  json.default = JSON.parse(JSON.stringify(def.defaultValue));
14507
14519
  };
14508
14520
  const prefaultProcessor = (schema, ctx, json, params) => {
14509
14521
  const def = schema._zod.def;
14510
- process(def.innerType, ctx, params);
14522
+ process$1(def.innerType, ctx, params);
14511
14523
  const seen2 = ctx.seen.get(schema);
14512
14524
  seen2.ref = def.innerType;
14513
14525
  if (ctx.io === "input")
@@ -14515,7 +14527,7 @@ const prefaultProcessor = (schema, ctx, json, params) => {
14515
14527
  };
14516
14528
  const catchProcessor = (schema, ctx, json, params) => {
14517
14529
  const def = schema._zod.def;
14518
- process(def.innerType, ctx, params);
14530
+ process$1(def.innerType, ctx, params);
14519
14531
  const seen2 = ctx.seen.get(schema);
14520
14532
  seen2.ref = def.innerType;
14521
14533
  let catchValue;
@@ -14529,26 +14541,26 @@ const catchProcessor = (schema, ctx, json, params) => {
14529
14541
  const pipeProcessor = (schema, ctx, _json, params) => {
14530
14542
  const def = schema._zod.def;
14531
14543
  const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
14532
- process(innerType, ctx, params);
14544
+ process$1(innerType, ctx, params);
14533
14545
  const seen2 = ctx.seen.get(schema);
14534
14546
  seen2.ref = innerType;
14535
14547
  };
14536
14548
  const readonlyProcessor = (schema, ctx, json, params) => {
14537
14549
  const def = schema._zod.def;
14538
- process(def.innerType, ctx, params);
14550
+ process$1(def.innerType, ctx, params);
14539
14551
  const seen2 = ctx.seen.get(schema);
14540
14552
  seen2.ref = def.innerType;
14541
14553
  json.readOnly = true;
14542
14554
  };
14543
14555
  const optionalProcessor = (schema, ctx, _json, params) => {
14544
14556
  const def = schema._zod.def;
14545
- process(def.innerType, ctx, params);
14557
+ process$1(def.innerType, ctx, params);
14546
14558
  const seen2 = ctx.seen.get(schema);
14547
14559
  seen2.ref = def.innerType;
14548
14560
  };
14549
14561
  const lazyProcessor = (schema, ctx, _json, params) => {
14550
14562
  const innerType = schema._zod.innerType;
14551
- process(innerType, ctx, params);
14563
+ process$1(innerType, ctx, params);
14552
14564
  const seen2 = ctx.seen.get(schema);
14553
14565
  seen2.ref = innerType;
14554
14566
  };
@@ -16150,60 +16162,6 @@ function hasEncryptedFields(resource) {
16150
16162
  }
16151
16163
  return false;
16152
16164
  }
16153
- const KEYFRAMES = `@keyframes wf-spinner-fade{0%{opacity:1}100%{opacity:.15}}`;
16154
- function Spinner({ size: size2 = 14, color: color5 }) {
16155
- const config2 = size2 <= 12 ? {
16156
- angle: 45,
16157
- delays: [-875, -750, -625, -500, -375, -250, -125, 0],
16158
- duration: 1e3,
16159
- lineW: 3,
16160
- lineH: 1.5
16161
- } : size2 <= 16 ? {
16162
- angle: 36,
16163
- delays: [-900, -800, -700, -600, -500, -400, -300, -200, -100, 0],
16164
- duration: 1e3,
16165
- lineW: 4,
16166
- lineH: 1.5
16167
- } : {
16168
- angle: 30,
16169
- delays: [
16170
- -1100,
16171
- -1e3,
16172
- -900,
16173
- -800,
16174
- -700,
16175
- -600,
16176
- -500,
16177
- -400,
16178
- -300,
16179
- -200,
16180
- -100,
16181
- 0
16182
- ],
16183
- duration: 1200,
16184
- lineW: size2 * 0.24,
16185
- lineH: size2 * 0.08
16186
- };
16187
- return jsxRuntimeExports.jsxs("span", { style: {
16188
- display: "inline-flex",
16189
- position: "relative",
16190
- width: size2,
16191
- height: size2
16192
- }, children: [jsxRuntimeExports.jsx("style", { dangerouslySetInnerHTML: { __html: KEYFRAMES } }), config2.delays.map((delay, i) => jsxRuntimeExports.jsx("span", { style: {
16193
- position: "absolute",
16194
- left: "50%",
16195
- top: "50%",
16196
- width: config2.lineW,
16197
- height: config2.lineH,
16198
- marginLeft: -config2.lineW / 2,
16199
- marginTop: -config2.lineH / 2,
16200
- borderRadius: 1,
16201
- backgroundColor: color5 ?? "var(--ds-gray-700)",
16202
- transform: `rotate(${i * config2.angle}deg) translate(${size2 * 0.36}px)`,
16203
- animation: `wf-spinner-fade ${config2.duration}ms linear infinite`,
16204
- animationDelay: `${delay}ms`
16205
- } }, delay))] });
16206
- }
16207
16165
  function __insertCSS(code2) {
16208
16166
  if (typeof document == "undefined") return;
16209
16167
  let head = document.head || document.getElementsByTagName("head")[0];
@@ -18240,6 +18198,60 @@ const buttonVariants$1 = cva([
18240
18198
  function Button$1({ className, variant, size: size2, type = "button", ...props }) {
18241
18199
  return jsxRuntimeExports.jsx("button", { type, className: cn$4(buttonVariants$1({ variant, size: size2, className })), ...props });
18242
18200
  }
18201
+ const KEYFRAMES = `@keyframes wf-spinner-fade{0%{opacity:1}100%{opacity:.15}}`;
18202
+ function Spinner({ size: size2 = 14, color: color5 }) {
18203
+ const config2 = size2 <= 12 ? {
18204
+ angle: 45,
18205
+ delays: [-875, -750, -625, -500, -375, -250, -125, 0],
18206
+ duration: 1e3,
18207
+ lineW: 3,
18208
+ lineH: 1.5
18209
+ } : size2 <= 16 ? {
18210
+ angle: 36,
18211
+ delays: [-900, -800, -700, -600, -500, -400, -300, -200, -100, 0],
18212
+ duration: 1e3,
18213
+ lineW: 4,
18214
+ lineH: 1.5
18215
+ } : {
18216
+ angle: 30,
18217
+ delays: [
18218
+ -1100,
18219
+ -1e3,
18220
+ -900,
18221
+ -800,
18222
+ -700,
18223
+ -600,
18224
+ -500,
18225
+ -400,
18226
+ -300,
18227
+ -200,
18228
+ -100,
18229
+ 0
18230
+ ],
18231
+ duration: 1200,
18232
+ lineW: size2 * 0.24,
18233
+ lineH: size2 * 0.08
18234
+ };
18235
+ return jsxRuntimeExports.jsxs("span", { style: {
18236
+ display: "inline-flex",
18237
+ position: "relative",
18238
+ width: size2,
18239
+ height: size2
18240
+ }, children: [jsxRuntimeExports.jsx("style", { dangerouslySetInnerHTML: { __html: KEYFRAMES } }), config2.delays.map((delay, i) => jsxRuntimeExports.jsx("span", { style: {
18241
+ position: "absolute",
18242
+ left: "50%",
18243
+ top: "50%",
18244
+ width: config2.lineW,
18245
+ height: config2.lineH,
18246
+ marginLeft: -config2.lineW / 2,
18247
+ marginTop: -config2.lineH / 2,
18248
+ borderRadius: 1,
18249
+ backgroundColor: color5 ?? "var(--ds-gray-700)",
18250
+ transform: `rotate(${i * config2.angle}deg) translate(${size2 * 0.36}px)`,
18251
+ animation: `wf-spinner-fade ${config2.duration}ms linear infinite`,
18252
+ animationDelay: `${delay}ms`
18253
+ } }, delay))] });
18254
+ }
18243
18255
  const STREAM_REF_TYPE = "__workflow_stream_ref__";
18244
18256
  const CLASS_INSTANCE_REF_TYPE = "__workflow_class_instance_ref__";
18245
18257
  const RUN_REF_TYPE = "__workflow_run_ref__";
@@ -18474,8 +18486,8 @@ function isObjectLike(value) {
18474
18486
  return typeof value === "object" && value !== null;
18475
18487
  }
18476
18488
  function isSameBytesDisplay(a2, b2) {
18477
- var _a3, _b, _c, _d, _e2, _f;
18478
- return a2.text === b2.text && ((_a3 = a2.decodedFrom) == null ? void 0 : _a3.type) === ((_b = b2.decodedFrom) == null ? void 0 : _b.type) && ((_c = a2.decodedFrom) == null ? void 0 : _c.encoding) === ((_d = b2.decodedFrom) == null ? void 0 : _d.encoding) && ((_e2 = a2.decodedFrom) == null ? void 0 : _e2.rawSummary) === ((_f = b2.decodedFrom) == null ? void 0 : _f.rawSummary);
18489
+ var _a3, _b2, _c, _d, _e2, _f;
18490
+ return a2.text === b2.text && ((_a3 = a2.decodedFrom) == null ? void 0 : _a3.type) === ((_b2 = b2.decodedFrom) == null ? void 0 : _b2.type) && ((_c = a2.decodedFrom) == null ? void 0 : _c.encoding) === ((_d = b2.decodedFrom) == null ? void 0 : _d.encoding) && ((_e2 = a2.decodedFrom) == null ? void 0 : _e2.rawSummary) === ((_f = b2.decodedFrom) == null ? void 0 : _f.rawSummary);
18479
18491
  }
18480
18492
  function isDeepEqual(a2, b2, seen2 = /* @__PURE__ */ new WeakMap()) {
18481
18493
  if (Object.is(a2, b2))
@@ -19054,8 +19066,8 @@ const deserializer = ($2, _2) => {
19054
19066
  case "ArrayBuffer":
19055
19067
  return as(new Uint8Array(value).buffer, value);
19056
19068
  case "DataView": {
19057
- const { buffer } = new Uint8Array(value);
19058
- return as(new DataView(buffer), value);
19069
+ const { buffer: buffer2 } = new Uint8Array(value);
19070
+ return as(new DataView(buffer2), value);
19059
19071
  }
19060
19072
  }
19061
19073
  return as(new env[type](value), index2);
@@ -23638,8 +23650,8 @@ class Tokenizer {
23638
23650
  }
23639
23651
  //Errors
23640
23652
  _err(code2, cpOffset = 0) {
23641
- var _a3, _b;
23642
- (_b = (_a3 = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a3, this.preprocessor.getError(code2, cpOffset));
23653
+ var _a3, _b2;
23654
+ (_b2 = (_a3 = this.handler).onParseError) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, this.preprocessor.getError(code2, cpOffset));
23643
23655
  }
23644
23656
  // NOTE: `offset` may never run across line boundaries.
23645
23657
  getCurrentLocation(offset2) {
@@ -23782,12 +23794,12 @@ class Tokenizer {
23782
23794
  }
23783
23795
  _leaveAttrName() {
23784
23796
  var _a3;
23785
- var _b;
23797
+ var _b2;
23786
23798
  const token = this.currentToken;
23787
23799
  if (getTokenAttr(token, this.currentAttr.name) === null) {
23788
23800
  token.attrs.push(this.currentAttr);
23789
23801
  if (token.location && this.currentLocation) {
23790
- const attrLocations = (_a3 = (_b = token.location).attrs) !== null && _a3 !== void 0 ? _a3 : _b.attrs = /* @__PURE__ */ Object.create(null);
23802
+ const attrLocations = (_a3 = (_b2 = token.location).attrs) !== null && _a3 !== void 0 ? _a3 : _b2.attrs = /* @__PURE__ */ Object.create(null);
23791
23803
  attrLocations[this.currentAttr.name] = this.currentLocation;
23792
23804
  this._leaveAttrValue();
23793
23805
  }
@@ -27132,18 +27144,18 @@ class Parser {
27132
27144
  //Stack events
27133
27145
  /** @internal */
27134
27146
  onItemPush(node2, tid, isTop) {
27135
- var _a3, _b;
27136
- (_b = (_a3 = this.treeAdapter).onItemPush) === null || _b === void 0 ? void 0 : _b.call(_a3, node2);
27147
+ var _a3, _b2;
27148
+ (_b2 = (_a3 = this.treeAdapter).onItemPush) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, node2);
27137
27149
  if (isTop && this.openElements.stackTop > 0)
27138
27150
  this._setContextModes(node2, tid);
27139
27151
  }
27140
27152
  /** @internal */
27141
27153
  onItemPop(node2, isTop) {
27142
- var _a3, _b;
27154
+ var _a3, _b2;
27143
27155
  if (this.options.sourceCodeLocationInfo) {
27144
27156
  this._setEndLocation(node2, this.currentToken);
27145
27157
  }
27146
- (_b = (_a3 = this.treeAdapter).onItemPop) === null || _b === void 0 ? void 0 : _b.call(_a3, node2, this.openElements.current);
27158
+ (_b2 = (_a3 = this.treeAdapter).onItemPop) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, node2, this.openElements.current);
27147
27159
  if (isTop) {
27148
27160
  let current;
27149
27161
  let currentTagId;
@@ -32846,27 +32858,27 @@ function tokenizeWwwAutolink(effects, ok2, nok) {
32846
32858
  }
32847
32859
  function tokenizeProtocolAutolink(effects, ok2, nok) {
32848
32860
  const self2 = this;
32849
- let buffer = "";
32861
+ let buffer2 = "";
32850
32862
  let seen2 = false;
32851
32863
  return protocolStart;
32852
32864
  function protocolStart(code2) {
32853
32865
  if ((code2 === 72 || code2 === 104) && previousProtocol.call(self2, self2.previous) && !previousUnbalanced(self2.events)) {
32854
32866
  effects.enter("literalAutolink");
32855
32867
  effects.enter("literalAutolinkHttp");
32856
- buffer += String.fromCodePoint(code2);
32868
+ buffer2 += String.fromCodePoint(code2);
32857
32869
  effects.consume(code2);
32858
32870
  return protocolPrefixInside;
32859
32871
  }
32860
32872
  return nok(code2);
32861
32873
  }
32862
32874
  function protocolPrefixInside(code2) {
32863
- if (asciiAlpha(code2) && buffer.length < 5) {
32864
- buffer += String.fromCodePoint(code2);
32875
+ if (asciiAlpha(code2) && buffer2.length < 5) {
32876
+ buffer2 += String.fromCodePoint(code2);
32865
32877
  effects.consume(code2);
32866
32878
  return protocolPrefixInside;
32867
32879
  }
32868
32880
  if (code2 === 58) {
32869
- const protocol = buffer.toLowerCase();
32881
+ const protocol = buffer2.toLowerCase();
32870
32882
  if (protocol === "http" || protocol === "https") {
32871
32883
  effects.consume(code2);
32872
32884
  return protocolSlashesInside;
@@ -34796,7 +34808,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34796
34808
  const self2 = this;
34797
34809
  let marker2;
34798
34810
  let closingTag;
34799
- let buffer;
34811
+ let buffer2;
34800
34812
  let index2;
34801
34813
  let markerB;
34802
34814
  return start;
@@ -34826,7 +34838,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34826
34838
  }
34827
34839
  if (asciiAlpha(code2)) {
34828
34840
  effects.consume(code2);
34829
- buffer = String.fromCharCode(code2);
34841
+ buffer2 = String.fromCharCode(code2);
34830
34842
  return tagName;
34831
34843
  }
34832
34844
  return nok(code2);
@@ -34871,7 +34883,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34871
34883
  function tagCloseStart(code2) {
34872
34884
  if (asciiAlpha(code2)) {
34873
34885
  effects.consume(code2);
34874
- buffer = String.fromCharCode(code2);
34886
+ buffer2 = String.fromCharCode(code2);
34875
34887
  return tagName;
34876
34888
  }
34877
34889
  return nok(code2);
@@ -34879,12 +34891,12 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34879
34891
  function tagName(code2) {
34880
34892
  if (code2 === null || code2 === 47 || code2 === 62 || markdownLineEndingOrSpace(code2)) {
34881
34893
  const slash = code2 === 47;
34882
- const name2 = buffer.toLowerCase();
34894
+ const name2 = buffer2.toLowerCase();
34883
34895
  if (!slash && !closingTag && htmlRawNames.includes(name2)) {
34884
34896
  marker2 = 1;
34885
34897
  return self2.interrupt ? ok2(code2) : continuation(code2);
34886
34898
  }
34887
- if (htmlBlockNames.includes(buffer.toLowerCase())) {
34899
+ if (htmlBlockNames.includes(buffer2.toLowerCase())) {
34888
34900
  marker2 = 6;
34889
34901
  if (slash) {
34890
34902
  effects.consume(code2);
@@ -34897,7 +34909,7 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
34897
34909
  }
34898
34910
  if (code2 === 45 || asciiAlphanumeric(code2)) {
34899
34911
  effects.consume(code2);
34900
- buffer += String.fromCharCode(code2);
34912
+ buffer2 += String.fromCharCode(code2);
34901
34913
  return tagName;
34902
34914
  }
34903
34915
  return nok(code2);
@@ -35064,23 +35076,23 @@ function tokenizeHtmlFlow(effects, ok2, nok) {
35064
35076
  function continuationRawTagOpen(code2) {
35065
35077
  if (code2 === 47) {
35066
35078
  effects.consume(code2);
35067
- buffer = "";
35079
+ buffer2 = "";
35068
35080
  return continuationRawEndTag;
35069
35081
  }
35070
35082
  return continuation(code2);
35071
35083
  }
35072
35084
  function continuationRawEndTag(code2) {
35073
35085
  if (code2 === 62) {
35074
- const name2 = buffer.toLowerCase();
35086
+ const name2 = buffer2.toLowerCase();
35075
35087
  if (htmlRawNames.includes(name2)) {
35076
35088
  effects.consume(code2);
35077
35089
  return continuationClose;
35078
35090
  }
35079
35091
  return continuation(code2);
35080
35092
  }
35081
- if (asciiAlpha(code2) && buffer.length < 8) {
35093
+ if (asciiAlpha(code2) && buffer2.length < 8) {
35082
35094
  effects.consume(code2);
35083
- buffer += String.fromCharCode(code2);
35095
+ buffer2 += String.fromCharCode(code2);
35084
35096
  return continuationRawEndTag;
35085
35097
  }
35086
35098
  return continuation(code2);
@@ -38950,7 +38962,7 @@ function postprocess(events) {
38950
38962
  const search = /[\0\t\n\r]/g;
38951
38963
  function preprocess() {
38952
38964
  let column = 1;
38953
- let buffer = "";
38965
+ let buffer2 = "";
38954
38966
  let start = true;
38955
38967
  let atCarriageReturn;
38956
38968
  return preprocessor;
@@ -38961,9 +38973,9 @@ function preprocess() {
38961
38973
  let startPosition;
38962
38974
  let endPosition;
38963
38975
  let code2;
38964
- value = buffer + (typeof value === "string" ? value.toString() : new TextDecoder(encoding || void 0).decode(value));
38976
+ value = buffer2 + (typeof value === "string" ? value.toString() : new TextDecoder(encoding || void 0).decode(value));
38965
38977
  startPosition = 0;
38966
- buffer = "";
38978
+ buffer2 = "";
38967
38979
  if (start) {
38968
38980
  if (value.charCodeAt(0) === 65279) {
38969
38981
  startPosition++;
@@ -38976,7 +38988,7 @@ function preprocess() {
38976
38988
  endPosition = match && match.index !== void 0 ? match.index : value.length;
38977
38989
  code2 = value.charCodeAt(endPosition);
38978
38990
  if (!match) {
38979
- buffer = value.slice(startPosition);
38991
+ buffer2 = value.slice(startPosition);
38980
38992
  break;
38981
38993
  }
38982
38994
  if (code2 === 10 && startPosition === endPosition && atCarriageReturn) {
@@ -39018,7 +39030,7 @@ function preprocess() {
39018
39030
  }
39019
39031
  if (end) {
39020
39032
  if (atCarriageReturn) chunks.push(-5);
39021
- if (buffer) chunks.push(buffer);
39033
+ if (buffer2) chunks.push(buffer2);
39022
39034
  chunks.push(null);
39023
39035
  }
39024
39036
  return chunks;
@@ -39045,26 +39057,26 @@ function compiler(options) {
39045
39057
  characterEscape: onenterdata,
39046
39058
  characterReference: onenterdata,
39047
39059
  codeFenced: opener(codeFlow),
39048
- codeFencedFenceInfo: buffer,
39049
- codeFencedFenceMeta: buffer,
39050
- codeIndented: opener(codeFlow, buffer),
39051
- codeText: opener(codeText2, buffer),
39060
+ codeFencedFenceInfo: buffer2,
39061
+ codeFencedFenceMeta: buffer2,
39062
+ codeIndented: opener(codeFlow, buffer2),
39063
+ codeText: opener(codeText2, buffer2),
39052
39064
  codeTextData: onenterdata,
39053
39065
  data: onenterdata,
39054
39066
  codeFlowValue: onenterdata,
39055
39067
  definition: opener(definition2),
39056
- definitionDestinationString: buffer,
39057
- definitionLabelString: buffer,
39058
- definitionTitleString: buffer,
39068
+ definitionDestinationString: buffer2,
39069
+ definitionLabelString: buffer2,
39070
+ definitionTitleString: buffer2,
39059
39071
  emphasis: opener(emphasis2),
39060
39072
  hardBreakEscape: opener(hardBreak2),
39061
39073
  hardBreakTrailing: opener(hardBreak2),
39062
- htmlFlow: opener(html2, buffer),
39074
+ htmlFlow: opener(html2, buffer2),
39063
39075
  htmlFlowData: onenterdata,
39064
- htmlText: opener(html2, buffer),
39076
+ htmlText: opener(html2, buffer2),
39065
39077
  htmlTextData: onenterdata,
39066
39078
  image: opener(image2),
39067
- label: buffer,
39079
+ label: buffer2,
39068
39080
  link: opener(link2),
39069
39081
  listItem: opener(listItem2),
39070
39082
  listItemValue: onenterlistitemvalue,
@@ -39072,9 +39084,9 @@ function compiler(options) {
39072
39084
  listUnordered: opener(list2),
39073
39085
  paragraph: opener(paragraph2),
39074
39086
  reference: onenterreference,
39075
- referenceString: buffer,
39076
- resourceDestinationString: buffer,
39077
- resourceTitleString: buffer,
39087
+ referenceString: buffer2,
39088
+ resourceDestinationString: buffer2,
39089
+ resourceTitleString: buffer2,
39078
39090
  setextHeading: opener(heading2),
39079
39091
  strong: opener(strong2),
39080
39092
  thematicBreak: opener(thematicBreak2)
@@ -39145,7 +39157,7 @@ function compiler(options) {
39145
39157
  config: config2,
39146
39158
  enter,
39147
39159
  exit: exit2,
39148
- buffer,
39160
+ buffer: buffer2,
39149
39161
  resume,
39150
39162
  data
39151
39163
  };
@@ -39289,7 +39301,7 @@ function compiler(options) {
39289
39301
  if (and) and.call(this, token);
39290
39302
  }
39291
39303
  }
39292
- function buffer() {
39304
+ function buffer2() {
39293
39305
  this.stack.push({
39294
39306
  type: "fragment",
39295
39307
  children: []
@@ -42237,7 +42249,7 @@ ${c}` : c;
42237
42249
  }
42238
42250
  }
42239
42251
  list(e) {
42240
- var _a3, _b;
42252
+ var _a3, _b2;
42241
42253
  let t = this.rules.block.list.exec(e);
42242
42254
  if (t) {
42243
42255
  let n = t[1].trim(), r2 = n.length > 1, i = { type: "list", raw: "", ordered: r2, start: r2 ? +n.slice(0, -1) : "", loose: false, items: [] };
@@ -42276,7 +42288,7 @@ ${c}` : c;
42276
42288
  i.raw = i.raw.trimEnd();
42277
42289
  for (let l of i.items) {
42278
42290
  if (this.lexer.state.top = false, l.tokens = this.lexer.blockTokens(l.text, []), l.task) {
42279
- if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), ((_a3 = l.tokens[0]) == null ? void 0 : _a3.type) === "text" || ((_b = l.tokens[0]) == null ? void 0 : _b.type) === "paragraph") {
42291
+ if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), ((_a3 = l.tokens[0]) == null ? void 0 : _a3.type) === "text" || ((_b2 = l.tokens[0]) == null ? void 0 : _b2.type) === "paragraph") {
42280
42292
  l.tokens[0].raw = l.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), l.tokens[0].text = l.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
42281
42293
  for (let c = this.lexer.inlineQueue.length - 1; c >= 0; c--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)) {
42282
42294
  this.lexer.inlineQueue[c].src = this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask, "");
@@ -42500,10 +42512,10 @@ var x = class u2 {
42500
42512
  return this.inlineQueue = [], this.tokens;
42501
42513
  }
42502
42514
  blockTokens(e, t = [], n = false) {
42503
- var _a3, _b, _c;
42515
+ var _a3, _b2, _c;
42504
42516
  for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e; ) {
42505
42517
  let r2;
42506
- if ((_b = (_a3 = this.options.extensions) == null ? void 0 : _a3.block) == null ? void 0 : _b.some((s2) => (r2 = s2.call({ lexer: this }, e, t)) ? (e = e.substring(r2.raw.length), t.push(r2), true) : false)) continue;
42518
+ if ((_b2 = (_a3 = this.options.extensions) == null ? void 0 : _a3.block) == null ? void 0 : _b2.some((s2) => (r2 = s2.call({ lexer: this }, e, t)) ? (e = e.substring(r2.raw.length), t.push(r2), true) : false)) continue;
42507
42519
  if (r2 = this.tokenizer.space(e)) {
42508
42520
  e = e.substring(r2.raw.length);
42509
42521
  let s2 = t.at(-1);
@@ -42599,7 +42611,7 @@ var x = class u2 {
42599
42611
  return this.inlineQueue.push({ src: e, tokens: t }), t;
42600
42612
  }
42601
42613
  inlineTokens(e, t = []) {
42602
- var _a3, _b, _c, _d, _e2;
42614
+ var _a3, _b2, _c, _d, _e2;
42603
42615
  let n = e, r2 = null;
42604
42616
  if (this.tokens.links) {
42605
42617
  let o = Object.keys(this.tokens.links);
@@ -42608,7 +42620,7 @@ var x = class u2 {
42608
42620
  for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
42609
42621
  let i;
42610
42622
  for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) i = r2[2] ? r2[2].length : 0, n = n.slice(0, r2.index + i) + "[" + "a".repeat(r2[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
42611
- n = ((_b = (_a3 = this.options.hooks) == null ? void 0 : _a3.emStrongMask) == null ? void 0 : _b.call({ lexer: this }, n)) ?? n;
42623
+ n = ((_b2 = (_a3 = this.options.hooks) == null ? void 0 : _a3.emStrongMask) == null ? void 0 : _b2.call({ lexer: this }, n)) ?? n;
42612
42624
  let s2 = false, a2 = "";
42613
42625
  for (; e; ) {
42614
42626
  s2 || (a2 = ""), s2 = false;
@@ -42845,11 +42857,11 @@ var b = class u3 {
42845
42857
  return new u3(t).parseInline(e);
42846
42858
  }
42847
42859
  parse(e) {
42848
- var _a3, _b;
42860
+ var _a3, _b2;
42849
42861
  let t = "";
42850
42862
  for (let n = 0; n < e.length; n++) {
42851
42863
  let r2 = e[n];
42852
- if ((_b = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b[r2.type]) {
42864
+ if ((_b2 = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b2[r2.type]) {
42853
42865
  let s2 = r2, a2 = this.options.extensions.renderers[s2.type].call({ parser: this }, s2);
42854
42866
  if (a2 !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(s2.type)) {
42855
42867
  t += a2 || "";
@@ -42916,11 +42928,11 @@ var b = class u3 {
42916
42928
  return t;
42917
42929
  }
42918
42930
  parseInline(e, t = this.renderer) {
42919
- var _a3, _b;
42931
+ var _a3, _b2;
42920
42932
  let n = "";
42921
42933
  for (let r2 = 0; r2 < e.length; r2++) {
42922
42934
  let i = e[r2];
42923
- if ((_b = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b[i.type]) {
42935
+ if ((_b2 = (_a3 = this.options.extensions) == null ? void 0 : _a3.renderers) == null ? void 0 : _b2[i.type]) {
42924
42936
  let a2 = this.options.extensions.renderers[i.type].call({ parser: this }, i);
42925
42937
  if (a2 !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
42926
42938
  n += a2 || "";
@@ -42983,7 +42995,7 @@ var b = class u3 {
42983
42995
  return n;
42984
42996
  }
42985
42997
  };
42986
- var P = (_a2 = class {
42998
+ var P = (_b = class {
42987
42999
  constructor(e) {
42988
43000
  __publicField(this, "options");
42989
43001
  __publicField(this, "block");
@@ -43007,7 +43019,7 @@ var P = (_a2 = class {
43007
43019
  provideParser() {
43008
43020
  return this.block ? b.parse : b.parseInline;
43009
43021
  }
43010
- }, __publicField(_a2, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField(_a2, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a2);
43022
+ }, __publicField(_b, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField(_b, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _b);
43011
43023
  var B = class {
43012
43024
  constructor(...e) {
43013
43025
  __publicField(this, "defaults", M());
@@ -43023,7 +43035,7 @@ var B = class {
43023
43035
  this.use(...e);
43024
43036
  }
43025
43037
  walkTokens(e, t) {
43026
- var _a3, _b;
43038
+ var _a3, _b2;
43027
43039
  let n = [];
43028
43040
  for (let r2 of e) switch (n = n.concat(t.call(this, r2)), r2.type) {
43029
43041
  case "table": {
@@ -43039,7 +43051,7 @@ var B = class {
43039
43051
  }
43040
43052
  default: {
43041
43053
  let i = r2;
43042
- ((_b = (_a3 = this.defaults.extensions) == null ? void 0 : _a3.childTokens) == null ? void 0 : _b[i.type]) ? this.defaults.extensions.childTokens[i.type].forEach((s2) => {
43054
+ ((_b2 = (_a3 = this.defaults.extensions) == null ? void 0 : _a3.childTokens) == null ? void 0 : _b2[i.type]) ? this.defaults.extensions.childTokens[i.type].forEach((s2) => {
43043
43055
  let a2 = i[s2].flat(1 / 0);
43044
43056
  n = n.concat(this.walkTokens(a2, t));
43045
43057
  }) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
@@ -43303,7 +43315,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
43303
43315
  var et = ({ className: e, language: t, style: o, isIncomplete: n, ...s2 }) => jsxRuntimeExports.jsx("div", { className: f("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e), "data-incomplete": n || void 0, "data-language": t, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s2 });
43304
43316
  var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
43305
43317
  var ot = ({ language: e }) => jsxRuntimeExports.jsx("div", { className: "flex h-8 items-center text-muted-foreground text-xs", "data-language": e, "data-streamdown": "code-block-header", children: jsxRuntimeExports.jsx("span", { className: "ml-1 font-mono lowercase", children: e }) });
43306
- var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-DmlmGvFd.js"), true ? __vite__mapDeps([3,2]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
43318
+ var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-B8ZRlnzz.js"), true ? __vite__mapDeps([3,2]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
43307
43319
  let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
43308
43320
  `).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
43309
43321
  return jsxRuntimeExports.jsx(Se.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(et, { isIncomplete: s2, language: t, children: [jsxRuntimeExports.jsx(ot, { language: t }), n ? jsxRuntimeExports.jsx("div", { className: "pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end", children: jsxRuntimeExports.jsx("div", { className: "pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur", "data-streamdown": "code-block-actions", children: n }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(Qe, { className: o, language: t, result: c, ...r2 }), children: jsxRuntimeExports.jsx(dn, { className: o, code: i, language: t, raw: c, ...r2 }) })] }) });
@@ -44072,6 +44084,13 @@ SidebarDataContext.displayName = "SidebarDataContext";
44072
44084
  function SidebarDataProvider({ value, children: children2 }) {
44073
44085
  return jsxRuntimeExports.jsx(SidebarDataContext.Provider, { value, children: children2 });
44074
44086
  }
44087
+ function useSidebarData() {
44088
+ const ctx = reactExports.useContext(SidebarDataContext);
44089
+ if (!ctx) {
44090
+ throw new Error("useSidebarData must be used within a SidebarDataProvider");
44091
+ }
44092
+ return ctx;
44093
+ }
44075
44094
  function useSidebarDataOptional() {
44076
44095
  return reactExports.useContext(SidebarDataContext);
44077
44096
  }
@@ -45364,10 +45383,10 @@ const IconButton = reactExports.forwardRef(({ className, variant, size: size2, t
45364
45383
  IconButton.displayName = "IconButton";
45365
45384
  const ATTR_FILTER_REGEX = /(?:^|\s)(?<pair>(?<key>[\w.]+):(?<value>\S*))/g;
45366
45385
  function parseSpanSearchQuery(rawQuery) {
45367
- var _a3, _b, _c;
45386
+ var _a3, _b2, _c;
45368
45387
  const attributes = [];
45369
45388
  for (const match of rawQuery.matchAll(ATTR_FILTER_REGEX)) {
45370
- const key = (_b = (_a3 = match.groups) == null ? void 0 : _a3.key) == null ? void 0 : _b.trim();
45389
+ const key = (_b2 = (_a3 = match.groups) == null ? void 0 : _a3.key) == null ? void 0 : _b2.trim();
45371
45390
  if (!key)
45372
45391
  continue;
45373
45392
  attributes.push({
@@ -45958,7 +45977,7 @@ function SegmentBar({ segments }) {
45958
45977
  minWidth: 1,
45959
45978
  background: overrideBg,
45960
45979
  borderColor: overrideBorder
45961
- }, children: showLabel ? jsxRuntimeExports.jsx(DurationLabel, { label }) : null }, `${seg.status}-${i}`);
45980
+ }, children: showLabel ? jsxRuntimeExports.jsx(DurationLabel, { label }) : null }, i);
45962
45981
  }) });
45963
45982
  }
45964
45983
  const TimelineBar = reactExports.memo(function TimelineBar2({ span, viewStart, viewDuration, containerWidth, isSelected, isDimmed, onSelect }) {
@@ -45993,7 +46012,7 @@ const DeltaIndicator = reactExports.memo(function DeltaIndicator2({ leftFrac, ri
45993
46012
  }, children: [jsxRuntimeExports.jsx("div", { className: "absolute left-0 top-0 w-px h-full bg-amber-800" }), jsxRuntimeExports.jsx("div", { className: "absolute left-0 right-0 top-1/2 h-px bg-amber-800" }), jsxRuntimeExports.jsx("div", { className: "absolute right-0 top-0 w-px h-full bg-amber-800" }), jsxRuntimeExports.jsx("span", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-label-12 leading-none whitespace-nowrap rounded-xs px-1 py-0.5 text-gray-100 bg-amber-800", children: label })] });
45994
46013
  });
45995
46014
  function TimelineHeader({ markers: markers2, hoverInfo: hoverInfo2 }) {
45996
- return jsxRuntimeExports.jsx("div", { className: "relative bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-end px-4 pb-1", children: jsxRuntimeExports.jsxs("div", { className: "relative h-full flex-1", children: [markers2.map((m2) => jsxRuntimeExports.jsx("span", { className: "absolute bottom-1 font-mono text-xs font-normal leading-4 text-gray-900 whitespace-nowrap", style: { left: `${m2.position * 100}%` }, children: m2.label }, `${m2.position}-${m2.label}`)), hoverInfo2 && jsxRuntimeExports.jsx("span", { className: "absolute top-1 pointer-events-none z-10 font-mono text-[11px] leading-4 text-gray-1000 whitespace-nowrap bg-background-100 border border-gray-alpha-400 rounded px-1 -translate-x-1/2", style: { left: `${hoverInfo2.fraction * 100}%` }, children: hoverInfo2.label })] }) });
46015
+ return jsxRuntimeExports.jsx("div", { className: "relative bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-end px-4 pb-1", children: jsxRuntimeExports.jsxs("div", { className: "relative h-full flex-1", children: [markers2.map((m2) => jsxRuntimeExports.jsx("span", { className: "absolute bottom-1 font-mono text-xs font-normal leading-4 text-gray-900 whitespace-nowrap", style: { left: `${m2.position * 100}%` }, children: m2.label }, String(m2.value))), hoverInfo2 && jsxRuntimeExports.jsx("span", { className: "absolute top-1 pointer-events-none z-10 font-mono text-[11px] leading-4 text-gray-1000 whitespace-nowrap bg-background-100 border border-gray-alpha-400 rounded px-1 -translate-x-1/2", style: { left: `${hoverInfo2.fraction * 100}%` }, children: hoverInfo2.label })] }) });
45997
46016
  }
45998
46017
  function Timeline({ spans, viewStart, viewEnd, markers: markers2, selectedId, searchResult, onSelect, hoverFraction, altHeld = false }) {
45999
46018
  const containerRef = reactExports.useRef(null);
@@ -46014,7 +46033,7 @@ function Timeline({ spans, viewStart, viewEnd, markers: markers2, selectedId, se
46014
46033
  const gaps = reactExports.useMemo(() => computeSpanGaps(spans, viewStart, viewEnd), [spans, viewStart, viewEnd]);
46015
46034
  return jsxRuntimeExports.jsxs("div", { ref: containerRef, className: "relative h-full overflow-hidden", style: { minHeight: spans.length * ROW_HEIGHT_PX }, children: [jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "absolute inset-y-0 pointer-events-none", style: TIMELINE_INSET_STYLE, children: markers2.map((marker2) => (
46016
46035
  // Skip the "0s" origin marker since the left edge already implies it.
46017
- Math.abs(marker2.value) > 1e-6 ? jsxRuntimeExports.jsx("div", { className: "absolute top-0 bottom-0 w-px bg-gray-alpha-300", style: { left: `${marker2.position * 100}%` } }, `${marker2.position}-${marker2.label}`) : null
46036
+ Math.abs(marker2.value) > 1e-6 ? jsxRuntimeExports.jsx("div", { className: "absolute top-0 bottom-0 w-px bg-gray-alpha-300", style: { left: `${marker2.position * 100}%` } }, String(marker2.value)) : null
46018
46037
  )) }), hoverFraction != null && jsxRuntimeExports.jsx("div", { className: "absolute inset-y-0 pointer-events-none z-10", style: TIMELINE_INSET_STYLE, children: jsxRuntimeExports.jsx("div", { className: "absolute top-0 bottom-0 w-px bg-gray-alpha-500", style: { left: `${hoverFraction * 100}%` } }) }), jsxRuntimeExports.jsx("div", { style: { transform: `translateY(${start * ROW_HEIGHT_PX}px)` }, children: spans.slice(start, end).map((span) => jsxRuntimeExports.jsx(TimelineBar, { span, viewStart, viewDuration, containerWidth: timelineWidth, isSelected: selectedId === span.spanId, isDimmed: isSpanDimmedBySearch(span.spanId, searchResult), onSelect }, span.spanId)) }), altHeld && jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: "absolute inset-y-0 pointer-events-none", style: TIMELINE_INSET_STYLE, children: gaps.map((gap) => jsxRuntimeExports.jsx(DeltaIndicator, { leftFrac: gap.leftFrac, rightFrac: gap.rightFrac, label: formatDuration(gap.gapMs, true), rowIndex: gap.rowIndex }, gap.rowIndex)) })] });
46019
46038
  }
46020
46039
  const TooltipProvider = Provider;
@@ -46208,13 +46227,13 @@ function mergeProps(slotProps, childProps) {
46208
46227
  return { ...slotProps, ...overrideProps };
46209
46228
  }
46210
46229
  function getElementRef(element2) {
46211
- var _a3, _b;
46230
+ var _a3, _b2;
46212
46231
  let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
46213
46232
  let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
46214
46233
  if (mayWarn) {
46215
46234
  return element2.ref;
46216
46235
  }
46217
- getter = (_b = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b.get;
46236
+ getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
46218
46237
  mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
46219
46238
  if (mayWarn) {
46220
46239
  return element2.props.ref;
@@ -46996,15 +47015,15 @@ currentExtensions[0] = (dateString) => {
46996
47015
  currentExtensions[1] = (epochSec) => {
46997
47016
  return new Date(Math.round(epochSec * 1e3));
46998
47017
  };
46999
- currentExtensions[2] = (buffer) => {
47018
+ currentExtensions[2] = (buffer2) => {
47000
47019
  let value = BigInt(0);
47001
- for (let i = 0, l = buffer.byteLength; i < l; i++) {
47002
- value = BigInt(buffer[i]) + (value << BigInt(8));
47020
+ for (let i = 0, l = buffer2.byteLength; i < l; i++) {
47021
+ value = BigInt(buffer2[i]) + (value << BigInt(8));
47003
47022
  }
47004
47023
  return value;
47005
47024
  };
47006
- currentExtensions[3] = (buffer) => {
47007
- return BigInt(-1) - currentExtensions[2](buffer);
47025
+ currentExtensions[3] = (buffer2) => {
47026
+ return BigInt(-1) - currentExtensions[2](buffer2);
47008
47027
  };
47009
47028
  currentExtensions[4] = (fraction) => {
47010
47029
  return +(fraction[1] + "e" + fraction[0]);
@@ -47191,19 +47210,19 @@ function registerTypedArray(TypedArray, tag) {
47191
47210
  if (!littleEndian && bytesPerElement == 1)
47192
47211
  continue;
47193
47212
  let sizeShift = bytesPerElement == 2 ? 1 : bytesPerElement == 4 ? 2 : bytesPerElement == 8 ? 3 : 0;
47194
- currentExtensions[littleEndian ? tag : tag - 4] = bytesPerElement == 1 || littleEndian == isLittleEndianMachine$1 ? (buffer) => {
47213
+ currentExtensions[littleEndian ? tag : tag - 4] = bytesPerElement == 1 || littleEndian == isLittleEndianMachine$1 ? (buffer2) => {
47195
47214
  if (!TypedArray)
47196
47215
  throw new Error("Could not find typed array for code " + tag);
47197
47216
  if (!currentDecoder.copyBuffers) {
47198
- if (bytesPerElement === 1 || bytesPerElement === 2 && !(buffer.byteOffset & 1) || bytesPerElement === 4 && !(buffer.byteOffset & 3) || bytesPerElement === 8 && !(buffer.byteOffset & 7))
47199
- return new TypedArray(buffer.buffer, buffer.byteOffset, buffer.byteLength >> sizeShift);
47217
+ if (bytesPerElement === 1 || bytesPerElement === 2 && !(buffer2.byteOffset & 1) || bytesPerElement === 4 && !(buffer2.byteOffset & 3) || bytesPerElement === 8 && !(buffer2.byteOffset & 7))
47218
+ return new TypedArray(buffer2.buffer, buffer2.byteOffset, buffer2.byteLength >> sizeShift);
47200
47219
  }
47201
- return new TypedArray(Uint8Array.prototype.slice.call(buffer, 0).buffer);
47202
- } : (buffer) => {
47220
+ return new TypedArray(Uint8Array.prototype.slice.call(buffer2, 0).buffer);
47221
+ } : (buffer2) => {
47203
47222
  if (!TypedArray)
47204
47223
  throw new Error("Could not find typed array for code " + tag);
47205
- let dv = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
47206
- let elements = buffer.length >> sizeShift;
47224
+ let dv = new DataView(buffer2.buffer, buffer2.byteOffset, buffer2.byteLength);
47225
+ let elements = buffer2.length >> sizeShift;
47207
47226
  let ta = new TypedArray(elements);
47208
47227
  let method = dv[dvMethod];
47209
47228
  for (let i = 0; i < elements; i++) {
@@ -48152,8 +48171,8 @@ class Encoder extends Decoder {
48152
48171
  }
48153
48172
  }
48154
48173
  }
48155
- useBuffer(buffer) {
48156
- target = buffer;
48174
+ useBuffer(buffer2) {
48175
+ target = buffer2;
48157
48176
  targetView = new DataView(target.buffer, target.byteOffset, target.byteLength);
48158
48177
  position = 0;
48159
48178
  }
@@ -48419,13 +48438,13 @@ function typedArrayEncoder(tag, size2) {
48419
48438
  encode: function writeExtBuffer(typedArray, encode2) {
48420
48439
  let length = typedArray.byteLength;
48421
48440
  let offset2 = typedArray.byteOffset || 0;
48422
- let buffer = typedArray.buffer || typedArray;
48423
- encode2(hasNodeBuffer ? Buffer$1.from(buffer, offset2, length) : new Uint8Array(buffer, offset2, length));
48441
+ let buffer2 = typedArray.buffer || typedArray;
48442
+ encode2(hasNodeBuffer ? Buffer$1.from(buffer2, offset2, length) : new Uint8Array(buffer2, offset2, length));
48424
48443
  }
48425
48444
  };
48426
48445
  }
48427
- function writeBuffer(buffer, makeRoom) {
48428
- let length = buffer.byteLength;
48446
+ function writeBuffer(buffer2, makeRoom) {
48447
+ let length = buffer2.byteLength;
48429
48448
  if (length < 24) {
48430
48449
  target[position++] = 64 + length;
48431
48450
  } else if (length < 256) {
@@ -48443,7 +48462,7 @@ function writeBuffer(buffer, makeRoom) {
48443
48462
  if (position + length >= target.length) {
48444
48463
  makeRoom(position + length);
48445
48464
  }
48446
- target.set(buffer.buffer ? buffer : new Uint8Array(buffer), position);
48465
+ target.set(buffer2.buffer ? buffer2 : new Uint8Array(buffer2), position);
48447
48466
  position += length;
48448
48467
  }
48449
48468
  function insertIds(serialized, idsToInsert) {
@@ -48496,8 +48515,8 @@ async function rpc(method, params) {
48496
48515
  });
48497
48516
  if (!res.ok) {
48498
48517
  try {
48499
- const buffer2 = await res.arrayBuffer();
48500
- const errorBody = decode(new Uint8Array(buffer2));
48518
+ const buffer22 = await res.arrayBuffer();
48519
+ const errorBody = decode(new Uint8Array(buffer22));
48501
48520
  if ((_a3 = errorBody == null ? void 0 : errorBody.error) == null ? void 0 : _a3.message) {
48502
48521
  throw new Error(errorBody.error.message);
48503
48522
  }
@@ -48510,8 +48529,8 @@ async function rpc(method, params) {
48510
48529
  `RPC call ${method} failed: ${res.status} ${res.statusText}`
48511
48530
  );
48512
48531
  }
48513
- const buffer = await res.arrayBuffer();
48514
- return decode(new Uint8Array(buffer));
48532
+ const buffer2 = await res.arrayBuffer();
48533
+ return decode(new Uint8Array(buffer2));
48515
48534
  }
48516
48535
  async function fetchRuns(worldEnv, params) {
48517
48536
  return rpc("fetchRuns", { worldEnv, params });
@@ -48612,57 +48631,58 @@ export {
48612
48631
  hasEncryptedFields as a7,
48613
48632
  EVENT_DATA_REF_FIELDS as a8,
48614
48633
  useSidebarDataOptional as a9,
48615
- Slottable as aA,
48616
- buttonVariants as aB,
48617
- fetchEvent as aC,
48618
- fetchEventsByCorrelationId as aD,
48619
- isEncryptedData as aE,
48620
- hydrateData as aF,
48621
- getWebRevivers as aG,
48622
- LIVE_UPDATE_INTERVAL_MS as aH,
48623
- getEncryptionKeyForRun as aI,
48624
- StreamViewer as aJ,
48625
- composeRefs as aK,
48626
- useFloating as aL,
48627
- offset as aM,
48628
- shift as aN,
48629
- limitShift as aO,
48630
- flip as aP,
48631
- size as aQ,
48632
- arrow as aR,
48633
- hide as aS,
48634
- autoUpdate as aT,
48635
- cancelRun as aU,
48636
- reenqueueRun as aV,
48637
- wakeUpRun as aW,
48638
- resumeHook as aX,
48639
- recreateRun as aY,
48634
+ Slot as aA,
48635
+ Slottable as aB,
48636
+ buttonVariants as aC,
48637
+ fetchEvent as aD,
48638
+ fetchEventsByCorrelationId as aE,
48639
+ isEncryptedData as aF,
48640
+ hydrateData as aG,
48641
+ getWebRevivers as aH,
48642
+ LIVE_UPDATE_INTERVAL_MS as aI,
48643
+ getEncryptionKeyForRun as aJ,
48644
+ StreamViewer as aK,
48645
+ composeRefs as aL,
48646
+ useFloating as aM,
48647
+ offset as aN,
48648
+ shift as aO,
48649
+ limitShift as aP,
48650
+ flip as aQ,
48651
+ size as aR,
48652
+ arrow as aS,
48653
+ hide as aT,
48654
+ autoUpdate as aU,
48655
+ cancelRun as aV,
48656
+ reenqueueRun as aW,
48657
+ wakeUpRun as aX,
48658
+ resumeHook as aY,
48659
+ recreateRun as aZ,
48640
48660
  clsx as aa,
48641
48661
  useRowWindow as ab,
48642
48662
  isSpanDimmedBySearch as ac,
48643
48663
  ROW_HEIGHT_PX as ad,
48644
48664
  getSpanDurationMs as ae,
48645
- getHighResInMs as af,
48646
- IconButton as ag,
48647
- TooltipProvider as ah,
48648
- ActiveSpanProvider as ai,
48649
- useActiveSpan as aj,
48650
- searchSpans as ak,
48651
- computeRootBounds as al,
48652
- computeTimeMarkers as am,
48665
+ TooltipProvider as af,
48666
+ ActiveSpanProvider as ag,
48667
+ useActiveSpan as ah,
48668
+ useSidebarData as ai,
48669
+ searchSpans as aj,
48670
+ computeRootBounds as ak,
48671
+ computeTimeMarkers as al,
48672
+ getHighResInMs as am,
48653
48673
  TIMELINE_PADDING_PX as an,
48654
48674
  Timeline as ao,
48655
48675
  TimelineHeader as ap,
48656
- Tooltip$1 as aq,
48657
- TooltipTrigger$1 as ar,
48658
- TooltipContent$1 as as,
48659
- SidebarDataProvider as at,
48660
- hydrateResourceIOWithKey as au,
48661
- hydrateResourceIO as av,
48662
- fetchHook as aw,
48663
- fetchStep as ax,
48664
- fetchStreams as ay,
48665
- Slot as az,
48676
+ IconButton as aq,
48677
+ Tooltip$1 as ar,
48678
+ TooltipTrigger$1 as as,
48679
+ TooltipContent$1 as at,
48680
+ SidebarDataProvider as au,
48681
+ hydrateResourceIOWithKey as av,
48682
+ hydrateResourceIO as aw,
48683
+ fetchHook as ax,
48684
+ fetchStep as ay,
48685
+ fetchStreams as az,
48666
48686
  TooltipContent as b,
48667
48687
  createLucideIcon as c,
48668
48688
  cn as d,