@localstack/appinspector-ui 1.0.73 → 1.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -36,199 +36,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
37
  mod
38
38
  ));
39
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
-
41
- // node_modules/framer-motion/node_modules/@emotion/memoize/dist/memoize.browser.esm.js
42
- function memoize(fn) {
43
- var cache2 = {};
44
- return function(arg) {
45
- if (cache2[arg] === void 0) cache2[arg] = fn(arg);
46
- return cache2[arg];
47
- };
48
- }
49
- var memoize_browser_esm_default;
50
- var init_memoize_browser_esm = __esm({
51
- "node_modules/framer-motion/node_modules/@emotion/memoize/dist/memoize.browser.esm.js"() {
52
- "use strict";
53
- memoize_browser_esm_default = memoize;
54
- }
55
- });
56
-
57
- // node_modules/framer-motion/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js
58
- var is_prop_valid_browser_esm_exports = {};
59
- __export(is_prop_valid_browser_esm_exports, {
60
- default: () => is_prop_valid_browser_esm_default
61
- });
62
- var reactPropsRegex, index, is_prop_valid_browser_esm_default;
63
- var init_is_prop_valid_browser_esm = __esm({
64
- "node_modules/framer-motion/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js"() {
65
- "use strict";
66
- init_memoize_browser_esm();
67
- reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
68
- index = memoize_browser_esm_default(
69
- function(prop) {
70
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
71
- }
72
- /* Z+1 */
73
- );
74
- is_prop_valid_browser_esm_default = index;
75
- }
76
- });
77
-
78
- // node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
79
- var require_use_sync_external_store_shim_development = __commonJS({
80
- "node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
81
- "use strict";
82
- (function() {
83
- function is(x2, y) {
84
- return x2 === y && (0 !== x2 || 1 / x2 === 1 / y) || x2 !== x2 && y !== y;
85
- }
86
- function useSyncExternalStore$2(subscribe, getSnapshot) {
87
- didWarnOld18Alpha || void 0 === React124.startTransition || (didWarnOld18Alpha = true, console.error(
88
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
89
- ));
90
- var value = getSnapshot();
91
- if (!didWarnUncachedGetSnapshot) {
92
- var cachedValue = getSnapshot();
93
- objectIs(value, cachedValue) || (console.error(
94
- "The result of getSnapshot should be cached to avoid an infinite loop"
95
- ), didWarnUncachedGetSnapshot = true);
96
- }
97
- cachedValue = useState16({
98
- inst: { value, getSnapshot }
99
- });
100
- var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
101
- useLayoutEffect2(
102
- function() {
103
- inst.value = value;
104
- inst.getSnapshot = getSnapshot;
105
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
106
- },
107
- [subscribe, value, getSnapshot]
108
- );
109
- useEffect20(
110
- function() {
111
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
112
- return subscribe(function() {
113
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
114
- });
115
- },
116
- [subscribe]
117
- );
118
- useDebugValue2(value);
119
- return value;
120
- }
121
- function checkIfSnapshotChanged(inst) {
122
- var latestGetSnapshot = inst.getSnapshot;
123
- inst = inst.value;
124
- try {
125
- var nextValue = latestGetSnapshot();
126
- return !objectIs(inst, nextValue);
127
- } catch (error) {
128
- return true;
129
- }
130
- }
131
- function useSyncExternalStore$1(subscribe, getSnapshot) {
132
- return getSnapshot();
133
- }
134
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
135
- var React124 = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState16 = React124.useState, useEffect20 = React124.useEffect, useLayoutEffect2 = React124.useLayoutEffect, useDebugValue2 = React124.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
136
- exports.useSyncExternalStore = void 0 !== React124.useSyncExternalStore ? React124.useSyncExternalStore : shim;
137
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
138
- })();
139
- }
140
- });
141
-
142
- // node_modules/use-sync-external-store/shim/index.js
143
- var require_shim = __commonJS({
144
- "node_modules/use-sync-external-store/shim/index.js"(exports, module) {
145
- "use strict";
146
- if (false) {
147
- module.exports = null;
148
- } else {
149
- module.exports = require_use_sync_external_store_shim_development();
150
- }
151
- }
152
- });
153
-
154
- // node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
155
- var require_with_selector_development = __commonJS({
156
- "node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
157
- "use strict";
158
- (function() {
159
- function is(x2, y) {
160
- return x2 === y && (0 !== x2 || 1 / x2 === 1 / y) || x2 !== x2 && y !== y;
161
- }
162
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
163
- var React124 = __require("react"), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef15 = React124.useRef, useEffect20 = React124.useEffect, useMemo13 = React124.useMemo, useDebugValue2 = React124.useDebugValue;
164
- exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector2, isEqual) {
165
- var instRef = useRef15(null);
166
- if (null === instRef.current) {
167
- var inst = { hasValue: false, value: null };
168
- instRef.current = inst;
169
- } else inst = instRef.current;
170
- instRef = useMemo13(
171
- function() {
172
- function memoizedSelector(nextSnapshot) {
173
- if (!hasMemo) {
174
- hasMemo = true;
175
- memoizedSnapshot = nextSnapshot;
176
- nextSnapshot = selector2(nextSnapshot);
177
- if (void 0 !== isEqual && inst.hasValue) {
178
- var currentSelection = inst.value;
179
- if (isEqual(currentSelection, nextSnapshot))
180
- return memoizedSelection = currentSelection;
181
- }
182
- return memoizedSelection = nextSnapshot;
183
- }
184
- currentSelection = memoizedSelection;
185
- if (objectIs(memoizedSnapshot, nextSnapshot))
186
- return currentSelection;
187
- var nextSelection = selector2(nextSnapshot);
188
- if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
189
- return memoizedSnapshot = nextSnapshot, currentSelection;
190
- memoizedSnapshot = nextSnapshot;
191
- return memoizedSelection = nextSelection;
192
- }
193
- var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
194
- return [
195
- function() {
196
- return memoizedSelector(getSnapshot());
197
- },
198
- null === maybeGetServerSnapshot ? void 0 : function() {
199
- return memoizedSelector(maybeGetServerSnapshot());
200
- }
201
- ];
202
- },
203
- [getSnapshot, getServerSnapshot, selector2, isEqual]
204
- );
205
- var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
206
- useEffect20(
207
- function() {
208
- inst.hasValue = true;
209
- inst.value = value;
210
- },
211
- [value]
212
- );
213
- useDebugValue2(value);
214
- return value;
215
- };
216
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
217
- })();
218
- }
219
- });
220
-
221
- // node_modules/use-sync-external-store/shim/with-selector.js
222
- var require_with_selector = __commonJS({
223
- "node_modules/use-sync-external-store/shim/with-selector.js"(exports, module) {
224
- "use strict";
225
- if (false) {
226
- module.exports = null;
227
- } else {
228
- module.exports = require_with_selector_development();
229
- }
230
- }
231
- });
232
39
 
233
40
  // node_modules/toggle-selection/index.js
234
41
  var require_toggle_selection = __commonJS({
@@ -762,7 +569,7 @@ function memo(getDeps, fn, opts) {
762
569
  let depTime;
763
570
  if (opts.key && opts.debug) depTime = Date.now();
764
571
  const newDeps = getDeps(depArgs);
765
- const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index2) => deps[index2] !== dep);
572
+ const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);
766
573
  if (!depsChanged) {
767
574
  return result;
768
575
  }
@@ -1062,9 +869,9 @@ function buildHeaderGroups(allColumns, columnsToGroup, table, headerFamily) {
1062
869
  createHeaderGroup(pendingParentHeaders, depth - 1);
1063
870
  }
1064
871
  };
1065
- const bottomHeaders = columnsToGroup.map((column, index2) => createHeader(table, column, {
872
+ const bottomHeaders = columnsToGroup.map((column, index) => createHeader(table, column, {
1066
873
  depth: maxDepth2,
1067
- index: index2
874
+ index
1068
875
  }));
1069
876
  createHeaderGroup(bottomHeaders, maxDepth2 - 1);
1070
877
  headerGroups.reverse();
@@ -3211,9 +3018,9 @@ function createTable(options) {
3211
3018
  setState: (updater) => {
3212
3019
  table.options.onStateChange == null || table.options.onStateChange(updater);
3213
3020
  },
3214
- _getRowId: (row, index2, parent) => {
3021
+ _getRowId: (row, index, parent) => {
3215
3022
  var _table$options$getRow;
3216
- return (_table$options$getRow = table.options.getRowId == null ? void 0 : table.options.getRowId(row, index2, parent)) != null ? _table$options$getRow : `${parent ? [parent.id, index2].join(".") : index2}`;
3023
+ return (_table$options$getRow = table.options.getRowId == null ? void 0 : table.options.getRowId(row, index, parent)) != null ? _table$options$getRow : `${parent ? [parent.id, index].join(".") : index}`;
3217
3024
  },
3218
3025
  getCoreRowModel: () => {
3219
3026
  if (!table._getCoreRowModel) {
@@ -3304,8 +3111,8 @@ function createTable(options) {
3304
3111
  }
3305
3112
  };
3306
3113
  Object.assign(table, coreInstance);
3307
- for (let index2 = 0; index2 < table._features.length; index2++) {
3308
- const feature = table._features[index2];
3114
+ for (let index = 0; index < table._features.length; index++) {
3115
+ const feature = table._features[index];
3309
3116
  feature == null || feature.createTable == null || feature.createTable(table);
3310
3117
  }
3311
3118
  return table;
@@ -4617,7 +4424,7 @@ function loadExternalIsValidProp(isValidProp) {
4617
4424
  };
4618
4425
  }
4619
4426
  try {
4620
- loadExternalIsValidProp((init_is_prop_valid_browser_esm(), __toCommonJS(is_prop_valid_browser_esm_exports)).default);
4427
+ loadExternalIsValidProp(__require("@emotion/is-prop-valid").default);
4621
4428
  } catch (_a2) {
4622
4429
  }
4623
4430
  function filterProps(props, isDom, forwardMotionProps) {
@@ -4884,8 +4691,8 @@ function makeLatestValues(props, context, presenceContext, scrapeMotionValues) {
4884
4691
  for (var key2 in target) {
4885
4692
  var valueTarget = target[key2];
4886
4693
  if (Array.isArray(valueTarget)) {
4887
- var index2 = initialAnimationIsBlocked ? valueTarget.length - 1 : 0;
4888
- valueTarget = valueTarget[index2];
4694
+ var index = initialAnimationIsBlocked ? valueTarget.length - 1 : 0;
4695
+ valueTarget = valueTarget[index];
4889
4696
  }
4890
4697
  if (valueTarget !== null) {
4891
4698
  values[key2] = valueTarget;
@@ -5696,9 +5503,9 @@ function createRenderStep(runNextFrame2) {
5696
5503
  return callback;
5697
5504
  },
5698
5505
  cancel: (callback) => {
5699
- const index2 = toRunNextFrame.indexOf(callback);
5700
- if (index2 !== -1)
5701
- toRunNextFrame.splice(index2, 1);
5506
+ const index = toRunNextFrame.indexOf(callback);
5507
+ if (index !== -1)
5508
+ toRunNextFrame.splice(index, 1);
5702
5509
  toKeepAlive.delete(callback);
5703
5510
  },
5704
5511
  process: (frameData) => {
@@ -6560,8 +6367,8 @@ function addUniqueItem(arr, item) {
6560
6367
  arr.indexOf(item) === -1 && arr.push(item);
6561
6368
  }
6562
6369
  function removeItem(arr, item) {
6563
- var index2 = arr.indexOf(item);
6564
- index2 > -1 && arr.splice(index2, 1);
6370
+ var index = arr.indexOf(item);
6371
+ index > -1 && arr.splice(index, 1);
6565
6372
  }
6566
6373
 
6567
6374
  // node_modules/framer-motion/dist/es/utils/subscription-manager.mjs
@@ -13114,8 +12921,8 @@ var SpansDataGrid = ({
13114
12921
  hasRows && !hasMoreForward && /* @__PURE__ */ jsx124(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_END_OF_STREAM }),
13115
12922
  hasRows && /* @__PURE__ */ jsx124(AnimatePresence, { initial: false, children: (() => {
13116
12923
  const reversed = [];
13117
- for (let index2 = rows.length - 1; index2 >= 0; index2--) {
13118
- const row = rows.at(index2);
12924
+ for (let index = rows.length - 1; index >= 0; index--) {
12925
+ const row = rows.at(index);
13119
12926
  reversed.push(
13120
12927
  /* @__PURE__ */ jsx124(SpansDataGridRow, { row }, row.original.span_id)
13121
12928
  );
@@ -13968,9 +13775,10 @@ var useAppInspector = () => {
13968
13775
  return context;
13969
13776
  };
13970
13777
  var AppInspectorContextProvider = (props) => {
13971
- const api = useMemo6(() => {
13972
- return false ? createApiClientMock() : createApiClient({ localstackEndpoint: props.localstackEndpoint });
13973
- }, [props.localstackEndpoint]);
13778
+ const api = useMemo6(
13779
+ () => createApiClient({ localstackEndpoint: props.localstackEndpoint }),
13780
+ [props.localstackEndpoint]
13781
+ );
13974
13782
  const resolveLink = useCallback5(
13975
13783
  (options) => {
13976
13784
  if (options.to === "settings") {
@@ -14163,81 +13971,11 @@ import { Close as Close2 } from "@mui/icons-material";
14163
13971
  import { Box as Box13, Chip as Chip3, Divider as Divider2, FormControlLabel as FormControlLabel2, IconButton as IconButton3, Stack as Stack2, Switch, Typography as Typography9, useTheme as useTheme3 } from "@mui/material";
14164
13972
 
14165
13973
  // node_modules/@textea/json-viewer/dist/index.mjs
13974
+ var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1);
14166
13975
  import { jsx as jsx129, jsxs as jsxs123, Fragment as Fragment5 } from "react/jsx-runtime";
14167
13976
  import { Box as Box6, InputBase, NoSsr, SvgIcon, createTheme, ThemeProvider, Paper as Paper2 } from "@mui/material";
14168
13977
  import { createContext as createContext9, useContext as useContext16, useState as useState8, useRef as useRef11, useCallback as useCallback8, useMemo as useMemo7, useEffect as useEffect15, memo as memo9 } from "react";
14169
-
14170
- // node_modules/zustand/esm/vanilla.mjs
14171
- var createStoreImpl = (createState2) => {
14172
- let state;
14173
- const listeners = /* @__PURE__ */ new Set();
14174
- const setState = (partial, replace) => {
14175
- const nextState = typeof partial === "function" ? partial(state) : partial;
14176
- if (!Object.is(nextState, state)) {
14177
- const previousState = state;
14178
- state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
14179
- listeners.forEach((listener) => listener(state, previousState));
14180
- }
14181
- };
14182
- const getState = () => state;
14183
- const getInitialState = () => initialState;
14184
- const subscribe = (listener) => {
14185
- listeners.add(listener);
14186
- return () => listeners.delete(listener);
14187
- };
14188
- const destroy = () => {
14189
- if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production") {
14190
- console.warn(
14191
- "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
14192
- );
14193
- }
14194
- listeners.clear();
14195
- };
14196
- const api = { setState, getState, getInitialState, subscribe, destroy };
14197
- const initialState = state = createState2(setState, getState, api);
14198
- return api;
14199
- };
14200
- var createStore = (createState2) => createState2 ? createStoreImpl(createState2) : createStoreImpl;
14201
-
14202
- // node_modules/zustand/esm/index.mjs
14203
- var import_with_selector = __toESM(require_with_selector(), 1);
14204
- import ReactExports from "react";
14205
- var { useDebugValue } = ReactExports;
14206
- var { useSyncExternalStoreWithSelector } = import_with_selector.default;
14207
- var didWarnAboutEqualityFn = false;
14208
- var identity = (arg) => arg;
14209
- function useStore(api, selector2 = identity, equalityFn) {
14210
- if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && equalityFn && !didWarnAboutEqualityFn) {
14211
- console.warn(
14212
- "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
14213
- );
14214
- didWarnAboutEqualityFn = true;
14215
- }
14216
- const slice = useSyncExternalStoreWithSelector(
14217
- api.subscribe,
14218
- api.getState,
14219
- api.getServerState || api.getInitialState,
14220
- selector2,
14221
- equalityFn
14222
- );
14223
- useDebugValue(slice);
14224
- return slice;
14225
- }
14226
- var createImpl = (createState2) => {
14227
- if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && typeof createState2 !== "function") {
14228
- console.warn(
14229
- "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
14230
- );
14231
- }
14232
- const api = typeof createState2 === "function" ? createStore(createState2) : createState2;
14233
- const useBoundStore = (selector2, equalityFn) => useStore(api, selector2, equalityFn);
14234
- Object.assign(useBoundStore, api);
14235
- return useBoundStore;
14236
- };
14237
- var create = (createState2) => createState2 ? createImpl(createState2) : createImpl;
14238
-
14239
- // node_modules/@textea/json-viewer/dist/index.mjs
14240
- var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1);
13978
+ import { create, useStore, createStore } from "zustand";
14241
13979
  function r(e2) {
14242
13980
  var t2, f2, n2 = "";
14243
13981
  if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
@@ -14424,10 +14162,10 @@ function getValueSize(value) {
14424
14162
  }
14425
14163
  function segmentArray(arr, size) {
14426
14164
  const result = [];
14427
- let index2 = 0;
14428
- while (index2 < arr.length) {
14429
- result.push(arr.slice(index2, index2 + size));
14430
- index2 += size;
14165
+ let index = 0;
14166
+ while (index < arr.length) {
14167
+ result.push(arr.slice(index, index + size));
14168
+ index += size;
14431
14169
  }
14432
14170
  return result;
14433
14171
  }
@@ -15106,7 +14844,7 @@ var ObjectType = (props) => {
15106
14844
  const elements3 = [];
15107
14845
  if (value instanceof Map) {
15108
14846
  const lastIndex2 = value.size - 1;
15109
- let index2 = 0;
14847
+ let index = 0;
15110
14848
  value.forEach((value2, k2) => {
15111
14849
  const key = k2.toString();
15112
14850
  const path = [
@@ -15118,9 +14856,9 @@ var ObjectType = (props) => {
15118
14856
  value: value2,
15119
14857
  prevValue: props.prevValue instanceof Map ? props.prevValue.get(k2) : void 0,
15120
14858
  editable: false,
15121
- last: index2 === lastIndex2
14859
+ last: index === lastIndex2
15122
14860
  }, key));
15123
- index2++;
14861
+ index++;
15124
14862
  });
15125
14863
  } else {
15126
14864
  const iterator2 = value[Symbol.iterator]();
@@ -15152,17 +14890,17 @@ var ObjectType = (props) => {
15152
14890
  const lastIndex2 = value.length - 1;
15153
14891
  if (value.length <= groupArraysAfterLength) {
15154
14892
  const elements4 = value.slice(0, displayLength).map((value2, _index) => {
15155
- const index2 = props.nestedIndex ? props.nestedIndex * groupArraysAfterLength + _index : _index;
14893
+ const index = props.nestedIndex ? props.nestedIndex * groupArraysAfterLength + _index : _index;
15156
14894
  const path = [
15157
14895
  ...props.path,
15158
- index2
14896
+ index
15159
14897
  ];
15160
14898
  return /* @__PURE__ */ jsx129(DataKeyPair, {
15161
14899
  path,
15162
14900
  value: value2,
15163
- prevValue: Array.isArray(props.prevValue) ? props.prevValue[index2] : void 0,
14901
+ prevValue: Array.isArray(props.prevValue) ? props.prevValue[index] : void 0,
15164
14902
  last: _index === lastIndex2
15165
- }, index2);
14903
+ }, index);
15166
14904
  });
15167
14905
  if (value.length > displayLength) {
15168
14906
  const rest = value.length - displayLength;
@@ -15188,14 +14926,14 @@ var ObjectType = (props) => {
15188
14926
  const elements3 = segmentArray(value, groupArraysAfterLength);
15189
14927
  const prevElements = Array.isArray(props.prevValue) ? segmentArray(props.prevValue, groupArraysAfterLength) : void 0;
15190
14928
  const elementsLastIndex = elements3.length - 1;
15191
- return elements3.map((list, index2) => {
14929
+ return elements3.map((list, index) => {
15192
14930
  return /* @__PURE__ */ jsx129(DataKeyPair, {
15193
14931
  path: props.path,
15194
14932
  value: list,
15195
- nestedIndex: index2,
15196
- prevValue: prevElements === null || prevElements === void 0 ? void 0 : prevElements[index2],
15197
- last: index2 === elementsLastIndex
15198
- }, index2);
14933
+ nestedIndex: index,
14934
+ prevValue: prevElements === null || prevElements === void 0 ? void 0 : prevElements[index],
14935
+ last: index === elementsLastIndex
14936
+ }, index);
15199
14937
  });
15200
14938
  }
15201
14939
  let entries = Object.entries(value);
@@ -15209,7 +14947,7 @@ var ObjectType = (props) => {
15209
14947
  });
15210
14948
  }
15211
14949
  const lastIndex = entries.length - 1;
15212
- const elements2 = entries.slice(0, displayLength).map((param, index2) => {
14950
+ const elements2 = entries.slice(0, displayLength).map((param, index) => {
15213
14951
  let [key, value2] = param;
15214
14952
  var _props_prevValue;
15215
14953
  const path = [
@@ -15220,7 +14958,7 @@ var ObjectType = (props) => {
15220
14958
  path,
15221
14959
  value: value2,
15222
14960
  prevValue: (_props_prevValue = props.prevValue) === null || _props_prevValue === void 0 ? void 0 : _props_prevValue[key],
15223
- last: index2 === lastIndex
14961
+ last: index === lastIndex
15224
14962
  }, key);
15225
14963
  });
15226
14964
  if (entries.length > displayLength) {
@@ -15459,7 +15197,7 @@ var DataKeyPair = (props) => {
15459
15197
  const key = path[depth - 1];
15460
15198
  const hoverPath = useJsonViewerStore((store) => store.hoverPath);
15461
15199
  const isHover = useMemo7(() => {
15462
- return hoverPath && path.every((value2, index2) => value2 === hoverPath.path[index2] && nestedIndex === hoverPath.nestedIndex);
15200
+ return hoverPath && path.every((value2, index) => value2 === hoverPath.path[index] && nestedIndex === hoverPath.nestedIndex);
15463
15201
  }, [
15464
15202
  hoverPath,
15465
15203
  path,
@@ -16958,10 +16696,10 @@ var httpSigningMiddleware = (config) => (next, context) => async (args) => {
16958
16696
  if (!scheme) {
16959
16697
  throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
16960
16698
  }
16961
- const { httpAuthOption: { signingProperties = {} }, identity: identity2, signer } = scheme;
16699
+ const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme;
16962
16700
  const output = await next({
16963
16701
  ...args,
16964
- request: await signer.sign(args.request, identity2, signingProperties)
16702
+ request: await signer.sign(args.request, identity, signingProperties)
16965
16703
  }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
16966
16704
  (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
16967
16705
  return output;
@@ -18568,12 +18306,12 @@ var DefaultIdentityProviderConfig = class {
18568
18306
  };
18569
18307
 
18570
18308
  // node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
18571
- var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired2(identity2) {
18572
- return doesIdentityRequireRefresh(identity2) && identity2.expiration.getTime() - Date.now() < expirationMs;
18309
+ var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired2(identity) {
18310
+ return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
18573
18311
  };
18574
18312
  var EXPIRATION_MS = 3e5;
18575
18313
  var isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
18576
- var doesIdentityRequireRefresh = (identity2) => identity2.expiration !== void 0;
18314
+ var doesIdentityRequireRefresh = (identity) => identity.expiration !== void 0;
18577
18315
  var memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
18578
18316
  if (provider === void 0) {
18579
18317
  return void 0;
@@ -18779,13 +18517,13 @@ var getAttrPathList = (path) => {
18779
18517
  };
18780
18518
 
18781
18519
  // node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
18782
- var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index2) => {
18520
+ var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
18783
18521
  if (typeof acc !== "object") {
18784
- throw new EndpointError(`Index '${index2}' in '${path}' not found in '${JSON.stringify(value)}'`);
18522
+ throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
18785
18523
  } else if (Array.isArray(acc)) {
18786
- return acc[parseInt(index2)];
18524
+ return acc[parseInt(index)];
18787
18525
  }
18788
- return acc[index2];
18526
+ return acc[index];
18789
18527
  }, value);
18790
18528
 
18791
18529
  // node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js
@@ -19545,7 +19283,7 @@ var validateSigningProperties = async (signingProperties) => {
19545
19283
  };
19546
19284
  };
19547
19285
  var AwsSdkSigV4Signer = class {
19548
- async sign(httpRequest, identity2, signingProperties) {
19286
+ async sign(httpRequest, identity, signingProperties) {
19549
19287
  if (!HttpRequest.isInstance(httpRequest)) {
19550
19288
  throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
19551
19289
  }
@@ -19592,7 +19330,7 @@ var AwsSdkSigV4Signer = class {
19592
19330
  };
19593
19331
 
19594
19332
  // node_modules/@smithy/property-provider/dist-es/memoize.js
19595
- var memoize2 = (provider, isExpired, requiresRefresh) => {
19333
+ var memoize = (provider, isExpired, requiresRefresh) => {
19596
19334
  let resolved;
19597
19335
  let pending;
19598
19336
  let hasResult;
@@ -21947,9 +21685,9 @@ async function checkFeatures(context, config, args) {
21947
21685
  break;
21948
21686
  }
21949
21687
  }
21950
- const identity2 = context.__smithy_context?.selectedHttpAuthScheme?.identity;
21951
- if (identity2?.$source) {
21952
- const credentials = identity2;
21688
+ const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity;
21689
+ if (identity?.$source) {
21690
+ const credentials = identity;
21953
21691
  if (credentials.accountId) {
21954
21692
  setFeature2(context, "RESOLVED_ACCOUNT_ID", "T");
21955
21693
  }
@@ -22032,8 +21770,8 @@ var escapeUserAgent = (userAgentPair) => {
22032
21770
  if (prefix === "api") {
22033
21771
  uaName = uaName.toLowerCase();
22034
21772
  }
22035
- return [prefix, uaName, version].filter((item) => item && item.length > 0).reduce((acc, item, index2) => {
22036
- switch (index2) {
21773
+ return [prefix, uaName, version].filter((item) => item && item.length > 0).reduce((acc, item, index) => {
21774
+ switch (index) {
22037
21775
  case 0:
22038
21776
  return item;
22039
21777
  case 1:
@@ -24100,7 +23838,7 @@ var invalidProvider = (message) => () => Promise.reject(message);
24100
23838
  var DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
24101
23839
 
24102
23840
  // node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js
24103
- var resolveDefaultsModeConfig = ({ defaultsMode } = {}) => memoize2(async () => {
23841
+ var resolveDefaultsModeConfig = ({ defaultsMode } = {}) => memoize(async () => {
24104
23842
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
24105
23843
  switch (mode?.toLowerCase()) {
24106
23844
  case "auto":
@@ -26222,11 +25960,11 @@ var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
26222
25960
  let _credentials = runtimeConfig.credentials;
26223
25961
  return {
26224
25962
  setHttpAuthScheme(httpAuthScheme) {
26225
- const index2 = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
26226
- if (index2 === -1) {
25963
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
25964
+ if (index === -1) {
26227
25965
  _httpAuthSchemes.push(httpAuthScheme);
26228
25966
  } else {
26229
- _httpAuthSchemes.splice(index2, 1, httpAuthScheme);
25967
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
26230
25968
  }
26231
25969
  },
26232
25970
  httpAuthSchemes() {
@@ -26876,46 +26614,7 @@ import { Add, FitScreen, Remove } from "@mui/icons-material";
26876
26614
  import { Box as Box16, IconButton as IconButton4 } from "@mui/material";
26877
26615
  import { useReactFlow, useStore as useStore2 } from "@xyflow/react";
26878
26616
  import { memo as memo12 } from "react";
26879
-
26880
- // node_modules/zustand/esm/shallow.mjs
26881
- function shallow$1(objA, objB) {
26882
- if (Object.is(objA, objB)) {
26883
- return true;
26884
- }
26885
- if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
26886
- return false;
26887
- }
26888
- if (objA instanceof Map && objB instanceof Map) {
26889
- if (objA.size !== objB.size) return false;
26890
- for (const [key, value] of objA) {
26891
- if (!Object.is(value, objB.get(key))) {
26892
- return false;
26893
- }
26894
- }
26895
- return true;
26896
- }
26897
- if (objA instanceof Set && objB instanceof Set) {
26898
- if (objA.size !== objB.size) return false;
26899
- for (const value of objA) {
26900
- if (!objB.has(value)) {
26901
- return false;
26902
- }
26903
- }
26904
- return true;
26905
- }
26906
- const keysA = Object.keys(objA);
26907
- if (keysA.length !== Object.keys(objB).length) {
26908
- return false;
26909
- }
26910
- for (const keyA of keysA) {
26911
- if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {
26912
- return false;
26913
- }
26914
- }
26915
- return true;
26916
- }
26917
-
26918
- // src/components/trace-graph/xyflow/controls.tsx
26617
+ import { shallow } from "zustand/shallow";
26919
26618
  import { jsx as jsx139, jsxs as jsxs131 } from "react/jsx-runtime";
26920
26619
  var selector = (s2) => ({
26921
26620
  isInteractive: s2.nodesDraggable || s2.nodesConnectable || s2.elementsSelectable,
@@ -26923,7 +26622,7 @@ var selector = (s2) => ({
26923
26622
  minZoomReached: s2.transform[2] <= s2.minZoom
26924
26623
  });
26925
26624
  var Controls = memo12(() => {
26926
- const { maxZoomReached, minZoomReached } = useStore2(selector, shallow$1);
26625
+ const { maxZoomReached, minZoomReached } = useStore2(selector, shallow);
26927
26626
  const { fitView, zoomIn, zoomOut } = useReactFlow();
26928
26627
  const onZoomInHandler = () => {
26929
26628
  void zoomIn();
@@ -27410,28 +27109,6 @@ export {
27410
27109
  };
27411
27110
  /*! Bundled license information:
27412
27111
 
27413
- use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
27414
- (**
27415
- * @license React
27416
- * use-sync-external-store-shim.development.js
27417
- *
27418
- * Copyright (c) Meta Platforms, Inc. and affiliates.
27419
- *
27420
- * This source code is licensed under the MIT license found in the
27421
- * LICENSE file in the root directory of this source tree.
27422
- *)
27423
-
27424
- use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
27425
- (**
27426
- * @license React
27427
- * use-sync-external-store-shim/with-selector.development.js
27428
- *
27429
- * Copyright (c) Meta Platforms, Inc. and affiliates.
27430
- *
27431
- * This source code is licensed under the MIT license found in the
27432
- * LICENSE file in the root directory of this source tree.
27433
- *)
27434
-
27435
27112
  @tanstack/table-core/build/lib/index.mjs:
27436
27113
  (**
27437
27114
  * table-core