@motiadev/plugin-observability 0.13.2-beta.164-681857 → 0.14.0-beta.165-707935

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 (78) hide show
  1. package/dist/index.css +1377 -0
  2. package/dist/index.css.map +1 -0
  3. package/dist/index.d.ts +89 -3
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1915 -4548
  6. package/dist/index.js.map +1 -0
  7. package/dist/plugin.d.ts +6 -2
  8. package/dist/plugin.d.ts.map +1 -1
  9. package/dist/plugin.js +36 -36
  10. package/dist/plugin.js.map +1 -0
  11. package/package.json +23 -28
  12. package/dist/api.d.ts +0 -3
  13. package/dist/api.d.ts.map +0 -1
  14. package/dist/components/events/code/argument.d.ts +0 -7
  15. package/dist/components/events/code/argument.d.ts.map +0 -1
  16. package/dist/components/events/code/closing-parenthesis.d.ts +0 -7
  17. package/dist/components/events/code/closing-parenthesis.d.ts.map +0 -1
  18. package/dist/components/events/code/function-call-content.d.ts +0 -9
  19. package/dist/components/events/code/function-call-content.d.ts.map +0 -1
  20. package/dist/components/events/code/function-call.d.ts +0 -10
  21. package/dist/components/events/code/function-call.d.ts.map +0 -1
  22. package/dist/components/events/code/utils.d.ts +0 -2
  23. package/dist/components/events/code/utils.d.ts.map +0 -1
  24. package/dist/components/events/event-icon.d.ts +0 -8
  25. package/dist/components/events/event-icon.d.ts.map +0 -1
  26. package/dist/components/events/trace-emit-event.d.ts +0 -6
  27. package/dist/components/events/trace-emit-event.d.ts.map +0 -1
  28. package/dist/components/events/trace-event.d.ts +0 -6
  29. package/dist/components/events/trace-event.d.ts.map +0 -1
  30. package/dist/components/events/trace-log-event.d.ts +0 -6
  31. package/dist/components/events/trace-log-event.d.ts.map +0 -1
  32. package/dist/components/events/trace-state-event.d.ts +0 -6
  33. package/dist/components/events/trace-state-event.d.ts.map +0 -1
  34. package/dist/components/events/trace-stream-event.d.ts +0 -6
  35. package/dist/components/events/trace-stream-event.d.ts.map +0 -1
  36. package/dist/components/hooks/use-get-endtime.d.ts +0 -3
  37. package/dist/components/hooks/use-get-endtime.d.ts.map +0 -1
  38. package/dist/components/observability-page.d.ts +0 -2
  39. package/dist/components/observability-page.d.ts.map +0 -1
  40. package/dist/components/observability-tab-label.d.ts +0 -2
  41. package/dist/components/observability-tab-label.d.ts.map +0 -1
  42. package/dist/components/search-bar.d.ts +0 -2
  43. package/dist/components/search-bar.d.ts.map +0 -1
  44. package/dist/components/trace-empty-state.d.ts +0 -2
  45. package/dist/components/trace-empty-state.d.ts.map +0 -1
  46. package/dist/components/trace-group-item.d.ts +0 -14
  47. package/dist/components/trace-group-item.d.ts.map +0 -1
  48. package/dist/components/trace-item/trace-event-item.d.ts +0 -9
  49. package/dist/components/trace-item/trace-event-item.d.ts.map +0 -1
  50. package/dist/components/trace-item/trace-item-detail.d.ts +0 -9
  51. package/dist/components/trace-item/trace-item-detail.d.ts.map +0 -1
  52. package/dist/components/trace-item/trace-item.d.ts +0 -14
  53. package/dist/components/trace-item/trace-item.d.ts.map +0 -1
  54. package/dist/components/trace-status.d.ts +0 -9
  55. package/dist/components/trace-status.d.ts.map +0 -1
  56. package/dist/components/trace-timeline.d.ts +0 -3
  57. package/dist/components/trace-timeline.d.ts.map +0 -1
  58. package/dist/components/traces-groups.d.ts +0 -3
  59. package/dist/components/traces-groups.d.ts.map +0 -1
  60. package/dist/components/ui/copy-button.d.ts +0 -8
  61. package/dist/components/ui/copy-button.d.ts.map +0 -1
  62. package/dist/components/ui/popover.d.ts +0 -7
  63. package/dist/components/ui/popover.d.ts.map +0 -1
  64. package/dist/hooks/use-filtered-trace-groups.d.ts +0 -3
  65. package/dist/hooks/use-filtered-trace-groups.d.ts.map +0 -1
  66. package/dist/hooks/use-get-endtime.d.ts +0 -3
  67. package/dist/hooks/use-get-endtime.d.ts.map +0 -1
  68. package/dist/index.cjs +0 -142
  69. package/dist/lib/format-distance.d.ts +0 -12
  70. package/dist/lib/format-distance.d.ts.map +0 -1
  71. package/dist/lib/utils.d.ts +0 -2
  72. package/dist/lib/utils.d.ts.map +0 -1
  73. package/dist/plugin-observability.css +0 -1
  74. package/dist/plugin.cjs +0 -1
  75. package/dist/stores/use-observability-store.d.ts +0 -11
  76. package/dist/stores/use-observability-store.d.ts.map +0 -1
  77. package/dist/types/observability.d.ts +0 -79
  78. package/dist/types/observability.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"trace-group-item.d.ts","sourceRoot":"","sources":["../../src/components/trace-group-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAA;IAC/C,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA4CxD,CAAA"}
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TraceEvent as TraceEventType } from '../../types/observability';
3
- type Props = {
4
- event: TraceEventType;
5
- traceStartTime: number;
6
- };
7
- export declare const TraceEventItem: React.FC<Props>;
8
- export {};
9
- //# sourceMappingURL=trace-event-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trace-event-item.d.ts","sourceRoot":"","sources":["../../../src/components/trace-item/trace-event-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAI7E,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,cAAc,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmBzC,CAAA"}
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Trace } from '../../types/observability';
3
- type Props = {
4
- trace: Trace;
5
- onClose: () => void;
6
- };
7
- export declare const TraceItemDetail: React.FC<Props>;
8
- export {};
9
- //# sourceMappingURL=trace-item-detail.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trace-item-detail.d.ts","sourceRoot":"","sources":["../../../src/components/trace-item/trace-item-detail.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAGtD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAgC1C,CAAA"}
@@ -1,14 +0,0 @@
1
- import { default as React } from 'react';
2
- type Props = {
3
- traceId: string;
4
- traceName: string;
5
- traceStatus: 'running' | 'completed' | 'failed';
6
- traceStartTime: number;
7
- traceEndTime: number | undefined;
8
- groupStartTime: number;
9
- groupEndTime: number;
10
- onExpand: (traceId: string) => void;
11
- };
12
- export declare const TraceItem: React.FC<Props>;
13
- export {};
14
- //# sourceMappingURL=trace-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trace-item.d.ts","sourceRoot":"","sources":["../../../src/components/trace-item/trace-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAA;IAC/C,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACpC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsCrC,CAAA"}
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TraceGroup } from '../types/observability';
3
- type Props = {
4
- status: TraceGroup['status'];
5
- duration?: string;
6
- };
7
- export declare const TraceStatusBadge: React.FC<Props>;
8
- export {};
9
- //# sourceMappingURL=trace-status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trace-status.d.ts","sourceRoot":"","sources":["../../src/components/trace-status.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAEvD,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAA;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AASD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAI3C,CAAA"}
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const TraceTimeline: React.FC;
3
- //# sourceMappingURL=trace-timeline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trace-timeline.d.ts","sourceRoot":"","sources":["../../src/components/trace-timeline.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAIhC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const TracesGroups: React.FC;
3
- //# sourceMappingURL=traces-groups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"traces-groups.d.ts","sourceRoot":"","sources":["../../src/components/traces-groups.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EA2C/B,CAAA"}
@@ -1,8 +0,0 @@
1
- type CopyButtonProps = {
2
- textToCopy: string;
3
- className?: string;
4
- title?: string;
5
- };
6
- export declare const CopyButton: React.FC<CopyButtonProps>;
7
- export {};
8
- //# sourceMappingURL=copy-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copy-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/copy-button.tsx"],"names":[],"mappings":"AAKA,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwBhD,CAAA"}
@@ -1,7 +0,0 @@
1
- import { ComponentProps, FC } from 'react';
2
- import * as PopoverPrimitive from '@radix-ui/react-popover';
3
- export declare const Popover: FC<ComponentProps<typeof PopoverPrimitive.Root>>;
4
- export declare const PopoverTrigger: FC<ComponentProps<typeof PopoverPrimitive.Trigger>>;
5
- export declare const PopoverContent: FC<ComponentProps<typeof PopoverPrimitive.Content>>;
6
- export declare const PopoverAnchor: FC<ComponentProps<typeof PopoverPrimitive.Anchor>>;
7
- //# sourceMappingURL=popover.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/C,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAEpE,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAE9E,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAoB9E,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAE5E,CAAA"}
@@ -1,3 +0,0 @@
1
- import { TraceGroup } from '../types/observability';
2
- export declare const useFilteredTraceGroups: () => TraceGroup[];
3
- //# sourceMappingURL=use-filtered-trace-groups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-filtered-trace-groups.d.ts","sourceRoot":"","sources":["../../src/hooks/use-filtered-trace-groups.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,eAAO,MAAM,sBAAsB,oBAelC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { TraceGroup } from '../types/observability';
2
- export declare const useGetEndTime: (group: TraceGroup | undefined | null) => number;
3
- //# sourceMappingURL=use-get-endtime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-get-endtime.d.ts","sourceRoot":"","sources":["../../src/hooks/use-get-endtime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,eAAO,MAAM,aAAa,GAAI,OAAO,UAAU,GAAG,SAAS,GAAG,IAAI,WAkBjE,CAAA"}
package/dist/index.cjs DELETED
@@ -1,142 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react"),Y=require("@motiadev/ui"),xt=require("@motiadev/stream-client-react"),qn=require("react-dom");function Jn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const p=Jn(w),Qn=Jn(qn);var We={exports:{}},_e={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var rn;function So(){if(rn)return _e;rn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var i in o)i!=="key"&&(s[i]=o[i])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return _e.Fragment=t,_e.jsx=n,_e.jsxs=n,_e}var Me={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var on;function Ao(){return on||(on=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===F?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case h:return"Fragment";case b:return"Profiler";case x:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList";case _:return"Activity"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case y:return"Portal";case S:return(g.displayName||"Context")+".Provider";case A:return(g._context.displayName||"Context")+".Consumer";case j:var T=g.render;return g=g.displayName,g||(g=T.displayName||T.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case E:return T=g.displayName||null,T!==null?T:e(g.type)||"Memo";case k:T=g._payload,g=g._init;try{return e(g(T))}catch{}}return null}function t(g){return""+g}function n(g){try{t(g);var T=!1}catch{T=!0}if(T){T=console;var B=T.error,R=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return B.call(T,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",R),t(g)}}function r(g){if(g===h)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===k)return"<...>";try{var T=e(g);return T?"<"+T+">":"<...>"}catch{return"<...>"}}function o(){var g=W.A;return g===null?null:g.getOwner()}function s(){return Error("react-stack-top-frame")}function a(g){if(H.call(g,"key")){var T=Object.getOwnPropertyDescriptor(g,"key").get;if(T&&T.isReactWarning)return!1}return g.key!==void 0}function i(g,T){function B(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",T))}B.isReactWarning=!0,Object.defineProperty(g,"key",{get:B,configurable:!0})}function u(){var g=e(this.type);return I[g]||(I[g]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),g=this.props.ref,g!==void 0?g:null}function l(g,T,B,R,L,V,Pe,re){return B=V.ref,g={$$typeof:m,type:g,key:T,props:V,_owner:L},(B!==void 0?B:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:u}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(g,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function f(g,T,B,R,L,V,Pe,re){var z=T.children;if(z!==void 0)if(R)if($(z)){for(R=0;R<z.length;R++)d(z[R]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(z);if(H.call(T,"key")){z=e(g);var ie=Object.keys(T).filter(function(lt){return lt!=="key"});R=0<ie.length?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}",U[z+R]||(ie=0<ie.length?"{"+ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
- let props = %s;
19
- <%s {...props} />
20
- React keys must be passed directly to JSX without using spread:
21
- let props = %s;
22
- <%s key={someKey} {...props} />`,R,z,ie,z),U[z+R]=!0)}if(z=null,B!==void 0&&(n(B),z=""+B),a(T)&&(n(T.key),z=""+T.key),"key"in T){B={};for(var ke in T)ke!=="key"&&(B[ke]=T[ke])}else B=T;return z&&i(B,typeof g=="function"?g.displayName||g.name||"Unknown":g),l(g,z,V,L,o(),B,Pe,re)}function d(g){typeof g=="object"&&g!==null&&g.$$typeof===m&&g._store&&(g._store.validated=1)}var v=w,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),S=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),W=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,$=Array.isArray,M=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(g){return g()}};var D,I={},P=v.react_stack_bottom_frame.bind(v,s)(),O=M(r(s)),U={};Me.Fragment=h,Me.jsx=function(g,T,B,R,L){var V=1e4>W.recentlyCreatedOwnerStacks++;return f(g,T,B,!1,R,L,V?Error("react-stack-top-frame"):P,V?M(r(g)):O)},Me.jsxs=function(g,T,B,R,L){var V=1e4>W.recentlyCreatedOwnerStacks++;return f(g,T,B,!0,R,L,V?Error("react-stack-top-frame"):P,V?M(r(g)):O)}}()),Me}var sn;function No(){return sn||(sn=1,process.env.NODE_ENV==="production"?We.exports=So():We.exports=Ao()),We.exports}var c=No();/**
23
- * @license lucide-react v0.548.0 - ISC
24
- *
25
- * This source code is licensed under the ISC license.
26
- * See the LICENSE file in the root directory of this source tree.
27
- */const Ro=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),To=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),an=e=>{const t=To(e);return t.charAt(0).toUpperCase()+t.slice(1)},er=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Oo=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
28
- * @license lucide-react v0.548.0 - ISC
29
- *
30
- * This source code is licensed under the ISC license.
31
- * See the LICENSE file in the root directory of this source tree.
32
- */var Po={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
33
- * @license lucide-react v0.548.0 - ISC
34
- *
35
- * This source code is licensed under the ISC license.
36
- * See the LICENSE file in the root directory of this source tree.
37
- */const ko=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},u)=>w.createElement("svg",{ref:u,...Po,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:er("lucide",o),...!s&&!Oo(i)&&{"aria-hidden":"true"},...i},[...a.map(([l,f])=>w.createElement(l,f)),...Array.isArray(s)?s:[s]]));/**
38
- * @license lucide-react v0.548.0 - ISC
39
- *
40
- * This source code is licensed under the ISC license.
41
- * See the LICENSE file in the root directory of this source tree.
42
- */const K=(e,t)=>{const n=w.forwardRef(({className:r,...o},s)=>w.createElement(ko,{ref:s,iconNode:t,className:er(`lucide-${Ro(an(e))}`,`lucide-${e}`,r),...o}));return n.displayName=an(e),n};/**
43
- * @license lucide-react v0.548.0 - ISC
44
- *
45
- * This source code is licensed under the ISC license.
46
- * See the LICENSE file in the root directory of this source tree.
47
- */const _o=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Mo=K("search",_o);/**
48
- * @license lucide-react v0.548.0 - ISC
49
- *
50
- * This source code is licensed under the ISC license.
51
- * See the LICENSE file in the root directory of this source tree.
52
- */const Do=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Io=K("trash",Do);/**
53
- * @license lucide-react v0.548.0 - ISC
54
- *
55
- * This source code is licensed under the ISC license.
56
- * See the LICENSE file in the root directory of this source tree.
57
- */const Lo=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],tr=K("x",Lo),cn=e=>{let t;const n=new Set,r=(l,f)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const v=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(m=>m(t,v))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>u,subscribe:l=>(n.add(l),()=>n.delete(l))},u=t=e(r,o,i);return i},Fo=e=>e?cn(e):cn,$o=e=>e;function Bo(e,t=$o){const n=w.useSyncExternalStore(e.subscribe,w.useCallback(()=>t(e.getState()),[e,t]),w.useCallback(()=>t(e.getInitialState()),[e,t]));return w.useDebugValue(n),n}const Wo=e=>{const t=Fo(e),n=r=>Bo(t,r);return Object.assign(n,t),n},Ho=e=>Wo,X=Ho()(e=>({selectedTraceGroupId:"",selectedTraceId:void 0,search:"",selectTraceGroupId:t=>e({selectedTraceGroupId:t}),selectTraceId:t=>e({selectedTraceId:t}),setSearch:t=>e({search:t}),clearTraces:()=>{fetch("/__motia/trace/clear",{method:"POST"})}})),nr=w.memo(()=>{const e=X(r=>r.search),t=X(r=>r.setSearch),n=X(r=>r.clearTraces);return c.jsxs("div",{className:"flex p-2 border-b gap-2","data-testid":"logs-search-container",children:[c.jsxs("div",{className:"flex-1 relative",children:[c.jsx(Y.Input,{variant:"shade",value:e,onChange:r=>t(r.target.value),className:"px-9! font-medium",placeholder:"Search by Trace ID or Step Name"}),c.jsx(Mo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50"}),c.jsx(tr,{className:Y.cn("cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground",{visible:e!=="",invisible:e===""}),onClick:()=>t("")})]}),c.jsxs(Y.Button,{variant:"default",onClick:n,className:"h-[34px]",children:[c.jsx(Io,{})," Clear"]})]})});nr.displayName="SearchBar";const rr=w.memo(()=>X(t=>t.selectedTraceGroupId)?null:c.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground text-center",children:"Select a trace or trace group to view the timeline"}));rr.displayName="TraceEmptyState";/**
58
- * @license lucide-react v0.548.0 - ISC
59
- *
60
- * This source code is licensed under the ISC license.
61
- * See the LICENSE file in the root directory of this source tree.
62
- */const Uo=[["path",{d:"M5 12h14",key:"1ays0h"}]],zo=K("minus",Uo);/**
63
- * @license lucide-react v0.548.0 - ISC
64
- *
65
- * This source code is licensed under the ISC license.
66
- * See the LICENSE file in the root directory of this source tree.
67
- */const Vo=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Yo=K("plus",Vo),Go=e=>{const t=e?.endTime,[n,r]=w.useState(()=>t||Date.now());return w.useEffect(()=>{let o;return t?t!==n&&r(t):o=setInterval(()=>r(Date.now()),100),()=>clearInterval(o)},[t,n]),n},ye=e=>e==null?"N/A":e<1e3?`${e}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:e<36e5?`${(e/6e4).toFixed(1)}min`:`${(e/36e5).toFixed(1)}h`,Zo={running:"bg-[repeating-linear-gradient(140deg,#BEFE29,#BEFE29_8px,#ABE625_8px,#ABE625_16px)]",completed:"bg-[repeating-linear-gradient(140deg,#2862FE,#2862FE_8px,#2358E5_8px,#2358E5_16px)]",failed:"bg-[repeating-linear-gradient(140deg,#EA2069,#EA2069_8px,#D41E60_8px,#D41E60_16px)]"},or=w.memo(({traceId:e,traceName:t,traceStatus:n,traceStartTime:r,traceEndTime:o,groupStartTime:s,groupEndTime:a,onExpand:i})=>{const u=w.useCallback(()=>{i(e)},[i,e]),l=w.useMemo(()=>Y.cn("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200",Zo[n]),[n]),f=w.useMemo(()=>({marginLeft:`${(r-s)/(a-s)*100}%`,width:o?`${(o-r)/(a-s)*100}%`:`${(Date.now()-r)/(a-s)*100}%`}),[r,o,s,a]);return c.jsxs("div",{className:"flex hover:bg-muted-foreground/10 relative cursor-pointer",onClick:u,"data-testid":"trace-timeline-item",children:[c.jsx("div",{className:"flex items-center min-w-[200px] max-w-[200px] h-[32px] max-h-[32px] py-4 px-2 text-sm font-semibold text-foreground truncate sticky left-0 bg-card z-9",children:t}),c.jsx("div",{className:"flex w-full flex-row items-center hover:bg-muted/50 rounded-md",children:c.jsx("div",{className:"relative w-full h-[32px] flex items-center",children:c.jsx("div",{className:l,style:f})})})]})});or.displayName="TraceItem";/**
68
- * @license lucide-react v0.548.0 - ISC
69
- *
70
- * This source code is licensed under the ISC license.
71
- * See the LICENSE file in the root directory of this source tree.
72
- */const Ko=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Xo=K("message-circle",Ko);/**
73
- * @license lucide-react v0.548.0 - ISC
74
- *
75
- * This source code is licensed under the ISC license.
76
- * See the LICENSE file in the root directory of this source tree.
77
- */const qo=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Jo=K("package",qo);/**
78
- * @license lucide-react v0.548.0 - ISC
79
- *
80
- * This source code is licensed under the ISC license.
81
- * See the LICENSE file in the root directory of this source tree.
82
- */const Qo=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],es=K("radio",Qo);/**
83
- * @license lucide-react v0.548.0 - ISC
84
- *
85
- * This source code is licensed under the ISC license.
86
- * See the LICENSE file in the root directory of this source tree.
87
- */const ts=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],ns=K("scroll-text",ts),rs=({event:e})=>{if(e.type==="log")return c.jsx(ns,{className:"w-4 h-4 text-muted-foreground"});if(e.type==="emit")return c.jsx(Xo,{className:"w-4 h-4 text-muted-foreground"});if(e.type==="state")return c.jsx(Jo,{className:"w-4 h-4 text-muted-foreground"});if(e.type==="stream")return c.jsx(es,{className:"w-4 h-4 text-muted-foreground"})};/**
88
- * @license lucide-react v0.548.0 - ISC
89
- *
90
- * This source code is licensed under the ISC license.
91
- * See the LICENSE file in the root directory of this source tree.
92
- */const os=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ss=K("check",os);/**
93
- * @license lucide-react v0.548.0 - ISC
94
- *
95
- * This source code is licensed under the ISC license.
96
- * See the LICENSE file in the root directory of this source tree.
97
- */const as=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],is=K("copy",as),bt=({textToCopy:e,className:t,title:n})=>{const[r,o]=w.useState(!1),s=w.useCallback(async()=>{try{await navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)}catch(a){console.error("Failed to copy:",a)}},[e]);return c.jsx(Y.Button,{variant:"icon",size:"icon",onClick:s,className:Y.cn("cursor-pointer p-3 rounded-full",t),title:n??(r?"Copied!":"Copy"),children:r?c.jsx(ss,{className:"w-4 h-4 text-green-500"}):c.jsx(is,{className:"w-4 h-4 text-gray-400"})})};function le(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function ln(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function sr(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ln(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ln(e[o],null)}}}}function me(...e){return p.useCallback(sr(...e),e)}function ar(e,t=[]){let n=[];function r(s,a){const i=p.createContext(a),u=n.length;n=[...n,a];const l=d=>{const{scope:v,children:m,...y}=d,h=v?.[e]?.[u]||i,x=p.useMemo(()=>y,Object.values(y));return c.jsx(h.Provider,{value:x,children:m})};l.displayName=s+"Provider";function f(d,v){const m=v?.[e]?.[u]||i,y=p.useContext(m);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const o=()=>{const s=n.map(a=>p.createContext(a));return function(i){const u=i?.[e]||s;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,cs(o,...t)]}function cs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...i,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function ir(e){const t=ls(e),n=p.forwardRef((r,o)=>{const{children:s,...a}=r,i=p.Children.toArray(s),u=i.find(fs);if(u){const l=u.props.children,f=i.map(d=>d===u?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:d);return c.jsx(t,{...a,ref:o,children:p.isValidElement(l)?p.cloneElement(l,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ls(e){const t=p.forwardRef((n,r)=>{const{children:o,...s}=n;if(p.isValidElement(o)){const a=ps(o),i=ds(s,o.props);return o.type!==p.Fragment&&(i.ref=r?sr(r,a):a),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var us=Symbol("radix.slottable");function fs(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===us}function ds(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ps(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ms=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ae=ms.reduce((e,t)=>{const n=ir(`Primitive.${t}`),r=p.forwardRef((o,s)=>{const{asChild:a,...i}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hs(e,t){e&&Qn.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>t.current?.(...n),[])}function vs(e,t=globalThis?.document){const n=Ae(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var gs="DismissableLayer",wt="dismissableLayer.update",ys="dismissableLayer.pointerDownOutside",xs="dismissableLayer.focusOutside",un,cr=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lr=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...u}=e,l=p.useContext(cr),[f,d]=p.useState(null),v=f?.ownerDocument??globalThis?.document,[,m]=p.useState({}),y=me(t,E=>d(E)),h=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=h.indexOf(x),A=f?h.indexOf(f):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,j=A>=b,C=js(E=>{const k=E.target,_=[...l.branches].some(F=>F.contains(k));!j||_||(o?.(E),a?.(E),E.defaultPrevented||i?.())},v),N=Cs(E=>{const k=E.target;[...l.branches].some(F=>F.contains(k))||(s?.(E),a?.(E),E.defaultPrevented||i?.())},v);return vs(E=>{A===l.layers.size-1&&(r?.(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},v),p.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(un=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),fn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=un)}},[f,v,n,l]),p.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),fn())},[f,l]),p.useEffect(()=>{const E=()=>m({});return document.addEventListener(wt,E),()=>document.removeEventListener(wt,E)},[]),c.jsx(ae.div,{...u,ref:y,style:{pointerEvents:S?j?"auto":"none":void 0,...e.style},onFocusCapture:le(e.onFocusCapture,N.onFocusCapture),onBlurCapture:le(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:le(e.onPointerDownCapture,C.onPointerDownCapture)})});lr.displayName=gs;var bs="DismissableLayerBranch",ws=p.forwardRef((e,t)=>{const n=p.useContext(cr),r=p.useRef(null),o=me(t,r);return p.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(ae.div,{...e,ref:o})});ws.displayName=bs;function js(e,t=globalThis?.document){const n=Ae(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let u=function(){ur(ys,n,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Cs(e,t=globalThis?.document){const n=Ae(e),r=p.useRef(!1);return p.useEffect(()=>{const o=s=>{s.target&&!r.current&&ur(xs,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fn(){const e=new CustomEvent(wt);document.dispatchEvent(e)}function ur(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hs(o,s):o.dispatchEvent(s)}var ut=0;function Es(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dn()),document.body.insertAdjacentElement("beforeend",e[1]??dn()),ut++,()=>{ut===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ut--}},[])}function dn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ft="focusScope.autoFocusOnMount",dt="focusScope.autoFocusOnUnmount",pn={bubbles:!1,cancelable:!0},Ss="FocusScope",fr=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,u]=p.useState(null),l=Ae(o),f=Ae(s),d=p.useRef(null),v=me(t,h=>u(h)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let h=function(S){if(m.paused||!i)return;const j=S.target;i.contains(j)?d.current=j:ce(d.current,{select:!0})},x=function(S){if(m.paused||!i)return;const j=S.relatedTarget;j!==null&&(i.contains(j)||ce(d.current,{select:!0}))},b=function(S){if(document.activeElement===document.body)for(const C of S)C.removedNodes.length>0&&ce(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const A=new MutationObserver(b);return i&&A.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),A.disconnect()}}},[r,i,m.paused]),p.useEffect(()=>{if(i){hn.add(m);const h=document.activeElement;if(!i.contains(h)){const b=new CustomEvent(ft,pn);i.addEventListener(ft,l),i.dispatchEvent(b),b.defaultPrevented||(As(Ps(dr(i)),{select:!0}),document.activeElement===h&&ce(i))}return()=>{i.removeEventListener(ft,l),setTimeout(()=>{const b=new CustomEvent(dt,pn);i.addEventListener(dt,f),i.dispatchEvent(b),b.defaultPrevented||ce(h??document.body,{select:!0}),i.removeEventListener(dt,f),hn.remove(m)},0)}}},[i,l,f,m]);const y=p.useCallback(h=>{if(!n&&!r||m.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,b=document.activeElement;if(x&&b){const A=h.currentTarget,[S,j]=Ns(A);S&&j?!h.shiftKey&&b===j?(h.preventDefault(),n&&ce(S,{select:!0})):h.shiftKey&&b===S&&(h.preventDefault(),n&&ce(j,{select:!0})):b===A&&h.preventDefault()}},[n,r,m.paused]);return c.jsx(ae.div,{tabIndex:-1,...a,ref:v,onKeyDown:y})});fr.displayName=Ss;function As(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ce(r,{select:t}),document.activeElement!==n)return}function Ns(e){const t=dr(e),n=mn(t,e),r=mn(t.reverse(),e);return[n,r]}function dr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mn(e,t){for(const n of e)if(!Rs(n,{upTo:t}))return n}function Rs(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ts(e){return e instanceof HTMLInputElement&&"select"in e}function ce(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ts(e)&&t&&e.select()}}var hn=Os();function Os(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=vn(e,t),e.unshift(t)},remove(t){e=vn(e,t),e[0]?.resume()}}}function vn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ps(e){return e.filter(t=>t.tagName!=="A")}var ue=globalThis?.document?p.useLayoutEffect:()=>{},ks=p[" useId ".trim().toString()]||(()=>{}),_s=0;function Ms(e){const[t,n]=p.useState(ks());return ue(()=>{n(r=>r??String(_s++))},[e]),e||(t?`radix-${t}`:"")}const Ds=["top","right","bottom","left"],fe=Math.min,G=Math.max,qe=Math.round,He=Math.floor,ee=e=>({x:e,y:e}),Is={left:"right",right:"left",bottom:"top",top:"bottom"},Ls={start:"end",end:"start"};function jt(e,t,n){return G(e,fe(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function se(e){return e.split("-")[0]}function Te(e){return e.split("-")[1]}function $t(e){return e==="x"?"y":"x"}function Bt(e){return e==="y"?"height":"width"}function de(e){return["top","bottom"].includes(se(e))?"y":"x"}function Wt(e){return $t(de(e))}function Fs(e,t,n){n===void 0&&(n=!1);const r=Te(e),o=Wt(e),s=Bt(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Je(a)),[a,Je(a)]}function $s(e){const t=Je(e);return[Ct(e),t,Ct(t)]}function Ct(e){return e.replace(/start|end/g,t=>Ls[t])}function Bs(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Ws(e,t,n,r){const o=Te(e);let s=Bs(se(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(Ct)))),s}function Je(e){return e.replace(/left|right|bottom|top/g,t=>Is[t])}function Hs(e){return{top:0,right:0,bottom:0,left:0,...e}}function pr(e){return typeof e!="number"?Hs(e):{top:e,right:e,bottom:e,left:e}}function Qe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function gn(e,t,n){let{reference:r,floating:o}=e;const s=de(t),a=Wt(t),i=Bt(a),u=se(t),l=s==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,v=r[i]/2-o[i]/2;let m;switch(u){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Te(t)){case"start":m[a]-=v*(n&&l?-1:1);break;case"end":m[a]+=v*(n&&l?-1:1);break}return m}const Us=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=gn(l,r,u),v=r,m={},y=0;for(let h=0;h<i.length;h++){const{name:x,fn:b}=i[h],{x:A,y:S,data:j,reset:C}=await b({x:f,y:d,initialPlacement:r,placement:v,strategy:o,middlewareData:m,rects:l,platform:a,elements:{reference:e,floating:t}});f=A??f,d=S??d,m={...m,[x]:{...m[x],...j}},C&&y<=50&&(y++,typeof C=="object"&&(C.placement&&(v=C.placement),C.rects&&(l=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:d}=gn(l,v,u)),h=-1)}return{x:f,y:d,placement:v,strategy:o,middlewareData:m}};async function Ie(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:v=!1,padding:m=0}=oe(t,e),y=pr(m),x=i[v?d==="floating"?"reference":"floating":d],b=Qe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:l,rootBoundary:f,strategy:u})),A=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),j=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},C=Qe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:A,offsetParent:S,strategy:u}):A);return{top:(b.top-C.top+y.top)/j.y,bottom:(C.bottom-b.bottom+y.bottom)/j.y,left:(b.left-C.left+y.left)/j.x,right:(C.right-b.right+y.right)/j.x}}const zs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:u}=t,{element:l,padding:f=0}=oe(e,t)||{};if(l==null)return{};const d=pr(f),v={x:n,y:r},m=Wt(o),y=Bt(m),h=await a.getDimensions(l),x=m==="y",b=x?"top":"left",A=x?"bottom":"right",S=x?"clientHeight":"clientWidth",j=s.reference[y]+s.reference[m]-v[m]-s.floating[y],C=v[m]-s.reference[m],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let E=N?N[S]:0;(!E||!await(a.isElement==null?void 0:a.isElement(N)))&&(E=i.floating[S]||s.floating[y]);const k=j/2-C/2,_=E/2-h[y]/2-1,F=fe(d[b],_),W=fe(d[A],_),H=F,$=E-h[y]-W,M=E/2-h[y]/2+k,D=jt(H,M,$),I=!u.arrow&&Te(o)!=null&&M!==D&&s.reference[y]/2-(M<H?F:W)-h[y]/2<0,P=I?M<H?M-H:M-$:0;return{[m]:v[m]+P,data:{[m]:D,centerOffset:M-D-P,...I&&{alignmentOffset:P}},reset:I}}}),Vs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...x}=oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=se(o),A=de(i),S=se(i)===i,j=await(u.isRTL==null?void 0:u.isRTL(l.floating)),C=v||(S||!h?[Je(i)]:$s(i)),N=y!=="none";!v&&N&&C.push(...Ws(i,h,y,j));const E=[i,...C],k=await Ie(t,x),_=[];let F=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&_.push(k[b]),d){const M=Fs(o,a,j);_.push(k[M[0]],k[M[1]])}if(F=[...F,{placement:o,overflows:_}],!_.every(M=>M<=0)){var W,H;const M=(((W=s.flip)==null?void 0:W.index)||0)+1,D=E[M];if(D)return{data:{index:M,overflows:F},reset:{placement:D}};let I=(H=F.filter(P=>P.overflows[0]<=0).sort((P,O)=>P.overflows[1]-O.overflows[1])[0])==null?void 0:H.placement;if(!I)switch(m){case"bestFit":{var $;const P=($=F.filter(O=>{if(N){const U=de(O.placement);return U===A||U==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(U=>U>0).reduce((U,g)=>U+g,0)]).sort((O,U)=>O[1]-U[1])[0])==null?void 0:$[0];P&&(I=P);break}case"initialPlacement":I=i;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function yn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xn(e){return Ds.some(t=>e[t]>=0)}const Ys=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=oe(e,t);switch(r){case"referenceHidden":{const s=await Ie(t,{...o,elementContext:"reference"}),a=yn(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:xn(a)}}}case"escaped":{const s=await Ie(t,{...o,altBoundary:!0}),a=yn(s,n.floating);return{data:{escapedOffsets:a,escaped:xn(a)}}}default:return{}}}}};async function Gs(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=se(n),i=Te(n),u=de(n)==="y",l=["left","top"].includes(a)?-1:1,f=s&&u?-1:1,d=oe(t,e);let{mainAxis:v,crossAxis:m,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof y=="number"&&(m=i==="end"?y*-1:y),u?{x:m*f,y:v*l}:{x:v*l,y:m*f}}const Zs=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,u=await Gs(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:a}}}}},Ks=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:x=>{let{x:b,y:A}=x;return{x:b,y:A}}},...u}=oe(e,t),l={x:n,y:r},f=await Ie(t,u),d=de(se(o)),v=$t(d);let m=l[v],y=l[d];if(s){const x=v==="y"?"top":"left",b=v==="y"?"bottom":"right",A=m+f[x],S=m-f[b];m=jt(A,m,S)}if(a){const x=d==="y"?"top":"left",b=d==="y"?"bottom":"right",A=y+f[x],S=y-f[b];y=jt(A,y,S)}const h=i.fn({...t,[v]:m,[d]:y});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[v]:s,[d]:a}}}}}},Xs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:u=!0,crossAxis:l=!0}=oe(e,t),f={x:n,y:r},d=de(o),v=$t(d);let m=f[v],y=f[d];const h=oe(i,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const S=v==="y"?"height":"width",j=s.reference[v]-s.floating[S]+x.mainAxis,C=s.reference[v]+s.reference[S]-x.mainAxis;m<j?m=j:m>C&&(m=C)}if(l){var b,A;const S=v==="y"?"width":"height",j=["top","left"].includes(se(o)),C=s.reference[d]-s.floating[S]+(j&&((b=a.offset)==null?void 0:b[d])||0)+(j?0:x.crossAxis),N=s.reference[d]+s.reference[S]+(j?0:((A=a.offset)==null?void 0:A[d])||0)-(j?x.crossAxis:0);y<C?y=C:y>N&&(y=N)}return{[v]:m,[d]:y}}}},qs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:u=()=>{},...l}=oe(e,t),f=await Ie(t,l),d=se(o),v=Te(o),m=de(o)==="y",{width:y,height:h}=s.floating;let x,b;d==="top"||d==="bottom"?(x=d,b=v===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=d,x=v==="end"?"top":"bottom");const A=h-f.top-f.bottom,S=y-f.left-f.right,j=fe(h-f[x],A),C=fe(y-f[b],S),N=!t.middlewareData.shift;let E=j,k=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=A),N&&!v){const F=G(f.left,0),W=G(f.right,0),H=G(f.top,0),$=G(f.bottom,0);m?k=y-2*(F!==0||W!==0?F+W:G(f.left,f.right)):E=h-2*(H!==0||$!==0?H+$:G(f.top,f.bottom))}await u({...t,availableWidth:k,availableHeight:E});const _=await a.getDimensions(i.floating);return y!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}};function tt(){return typeof window<"u"}function Oe(e){return mr(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ne(e){var t;return(t=(mr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mr(e){return tt()?e instanceof Node||e instanceof Z(e).Node:!1}function q(e){return tt()?e instanceof Element||e instanceof Z(e).Element:!1}function te(e){return tt()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function bn(e){return!tt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function Fe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Js(e){return["table","td","th"].includes(Oe(e))}function nt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ht(e){const t=Ut(),n=q(e)?J(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Qs(e){let t=pe(e);for(;te(t)&&!Ne(t);){if(Ht(t))return t;if(nt(t))return null;t=pe(t)}return null}function Ut(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ne(e){return["html","body","#document"].includes(Oe(e))}function J(e){return Z(e).getComputedStyle(e)}function rt(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pe(e){if(Oe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bn(e)&&e.host||ne(e);return bn(t)?t.host:t}function hr(e){const t=pe(e);return Ne(t)?e.ownerDocument?e.ownerDocument.body:e.body:te(t)&&Fe(t)?t:hr(t)}function Le(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=hr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Z(o);if(s){const i=Et(a);return t.concat(a,a.visualViewport||[],Fe(o)?o:[],i&&n?Le(i):[])}return t.concat(o,Le(o,[],n))}function Et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vr(e){const t=J(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=te(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=qe(n)!==s||qe(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function zt(e){return q(e)?e:e.contextElement}function Ce(e){const t=zt(e);if(!te(t))return ee(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=vr(t);let a=(s?qe(n.width):n.width)/r,i=(s?qe(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const ea=ee(0);function gr(e){const t=Z(e);return!Ut()||!t.visualViewport?ea:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ta(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Z(e)?!1:t}function xe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=zt(e);let a=ee(1);t&&(r?q(r)&&(a=Ce(r)):a=Ce(e));const i=ta(s,n,r)?gr(s):ee(0);let u=(o.left+i.x)/a.x,l=(o.top+i.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(s){const v=Z(s),m=r&&q(r)?Z(r):r;let y=v,h=Et(y);for(;h&&r&&m!==y;){const x=Ce(h),b=h.getBoundingClientRect(),A=J(h),S=b.left+(h.clientLeft+parseFloat(A.paddingLeft))*x.x,j=b.top+(h.clientTop+parseFloat(A.paddingTop))*x.y;u*=x.x,l*=x.y,f*=x.x,d*=x.y,u+=S,l+=j,y=Z(h),h=Et(y)}}return Qe({width:f,height:d,x:u,y:l})}function Vt(e,t){const n=rt(e).scrollLeft;return t?t.left+n:xe(ne(e)).left+n}function yr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Vt(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function na(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ne(r),i=t?nt(t.floating):!1;if(r===a||i&&s)return n;let u={scrollLeft:0,scrollTop:0},l=ee(1);const f=ee(0),d=te(r);if((d||!d&&!s)&&((Oe(r)!=="body"||Fe(a))&&(u=rt(r)),te(r))){const m=xe(r);l=Ce(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const v=a&&!d&&!s?yr(a,u,!0):ee(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+v.x,y:n.y*l.y-u.scrollTop*l.y+f.y+v.y}}function ra(e){return Array.from(e.getClientRects())}function oa(e){const t=ne(e),n=rt(e),r=e.ownerDocument.body,o=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Vt(e);const i=-n.scrollTop;return J(r).direction==="rtl"&&(a+=G(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function sa(e,t){const n=Z(e),r=ne(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,u=0;if(o){s=o.width,a=o.height;const l=Ut();(!l||l&&t==="fixed")&&(i=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:i,y:u}}function aa(e,t){const n=xe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=te(e)?Ce(e):ee(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,u=o*s.x,l=r*s.y;return{width:a,height:i,x:u,y:l}}function wn(e,t,n){let r;if(t==="viewport")r=sa(e,n);else if(t==="document")r=oa(ne(e));else if(q(t))r=aa(t,n);else{const o=gr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qe(r)}function xr(e,t){const n=pe(e);return n===t||!q(n)||Ne(n)?!1:J(n).position==="fixed"||xr(n,t)}function ia(e,t){const n=t.get(e);if(n)return n;let r=Le(e,[],!1).filter(i=>q(i)&&Oe(i)!=="body"),o=null;const s=J(e).position==="fixed";let a=s?pe(e):e;for(;q(a)&&!Ne(a);){const i=J(a),u=Ht(a);!u&&i.position==="fixed"&&(o=null),(s?!u&&!o:!u&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Fe(a)&&!u&&xr(e,a))?r=r.filter(f=>f!==a):o=i,a=pe(a)}return t.set(e,r),r}function ca(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?nt(t)?[]:ia(t,this._c):[].concat(n),r],i=a[0],u=a.reduce((l,f)=>{const d=wn(t,f,o);return l.top=G(d.top,l.top),l.right=fe(d.right,l.right),l.bottom=fe(d.bottom,l.bottom),l.left=G(d.left,l.left),l},wn(t,i,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function la(e){const{width:t,height:n}=vr(e);return{width:t,height:n}}function ua(e,t,n){const r=te(t),o=ne(t),s=n==="fixed",a=xe(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const u=ee(0);if(r||!r&&!s)if((Oe(t)!=="body"||Fe(o))&&(i=rt(t)),r){const v=xe(t,!0,s,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else o&&(u.x=Vt(o));const l=o&&!r&&!s?yr(o,i):ee(0),f=a.left+i.scrollLeft-u.x-l.x,d=a.top+i.scrollTop-u.y-l.y;return{x:f,y:d,width:a.width,height:a.height}}function pt(e){return J(e).position==="static"}function jn(e,t){if(!te(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ne(e)===n&&(n=n.ownerDocument.body),n}function br(e,t){const n=Z(e);if(nt(e))return n;if(!te(e)){let o=pe(e);for(;o&&!Ne(o);){if(q(o)&&!pt(o))return o;o=pe(o)}return n}let r=jn(e,t);for(;r&&Js(r)&&pt(r);)r=jn(r,t);return r&&Ne(r)&&pt(r)&&!Ht(r)?n:r||Qs(e)||n}const fa=async function(e){const t=this.getOffsetParent||br,n=this.getDimensions,r=await n(e.floating);return{reference:ua(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function da(e){return J(e).direction==="rtl"}const pa={convertOffsetParentRelativeRectToViewportRelativeRect:na,getDocumentElement:ne,getClippingRect:ca,getOffsetParent:br,getElementRects:fa,getClientRects:ra,getDimensions:la,getScale:Ce,isElement:q,isRTL:da};function wr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ma(e,t){let n=null,r;const o=ne(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),s();const l=e.getBoundingClientRect(),{left:f,top:d,width:v,height:m}=l;if(i||t(),!v||!m)return;const y=He(d),h=He(o.clientWidth-(f+v)),x=He(o.clientHeight-(d+m)),b=He(f),S={rootMargin:-y+"px "+-h+"px "+-x+"px "+-b+"px",threshold:G(0,fe(1,u))||1};let j=!0;function C(N){const E=N[0].intersectionRatio;if(E!==u){if(!j)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!wr(l,e.getBoundingClientRect())&&a(),j=!1}try{n=new IntersectionObserver(C,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,S)}n.observe(e)}return a(!0),s}function ha(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=zt(e),f=o||s?[...l?Le(l):[],...Le(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const d=l&&i?ma(l,n):null;let v=-1,m=null;a&&(m=new ResizeObserver(b=>{let[A]=b;A&&A.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),l&&!u&&m.observe(l),m.observe(t));let y,h=u?xe(e):null;u&&x();function x(){const b=xe(e);h&&!wr(h,b)&&n(),h=b,y=requestAnimationFrame(x)}return n(),()=>{var b;f.forEach(A=>{o&&A.removeEventListener("scroll",n),s&&A.removeEventListener("resize",n)}),d?.(),(b=m)==null||b.disconnect(),m=null,u&&cancelAnimationFrame(y)}}const va=Zs,ga=Ks,ya=Vs,xa=qs,ba=Ys,Cn=zs,wa=Xs,ja=(e,t,n)=>{const r=new Map,o={platform:pa,...n},s={...o.platform,_c:r};return Us(e,t,{...o,platform:s})};var Ze=typeof document<"u"?w.useLayoutEffect:w.useEffect;function et(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!et(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!et(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function jr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function En(e,t){const n=jr(e);return Math.round(t*n)/n}function mt(e){const t=p.useRef(e);return Ze(()=>{t.current=e}),t}function Ca(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:u,open:l}=e,[f,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,m]=p.useState(r);et(v,r)||m(r);const[y,h]=p.useState(null),[x,b]=p.useState(null),A=p.useCallback(O=>{O!==N.current&&(N.current=O,h(O))},[]),S=p.useCallback(O=>{O!==E.current&&(E.current=O,b(O))},[]),j=s||y,C=a||x,N=p.useRef(null),E=p.useRef(null),k=p.useRef(f),_=u!=null,F=mt(u),W=mt(o),H=mt(l),$=p.useCallback(()=>{if(!N.current||!E.current)return;const O={placement:t,strategy:n,middleware:v};W.current&&(O.platform=W.current),ja(N.current,E.current,O).then(U=>{const g={...U,isPositioned:H.current!==!1};M.current&&!et(k.current,g)&&(k.current=g,Qn.flushSync(()=>{d(g)}))})},[v,t,n,W,H]);Ze(()=>{l===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[l]);const M=p.useRef(!1);Ze(()=>(M.current=!0,()=>{M.current=!1}),[]),Ze(()=>{if(j&&(N.current=j),C&&(E.current=C),j&&C){if(F.current)return F.current(j,C,$);$()}},[j,C,$,F,_]);const D=p.useMemo(()=>({reference:N,floating:E,setReference:A,setFloating:S}),[A,S]),I=p.useMemo(()=>({reference:j,floating:C}),[j,C]),P=p.useMemo(()=>{const O={position:n,left:0,top:0};if(!I.floating)return O;const U=En(I.floating,f.x),g=En(I.floating,f.y);return i?{...O,transform:"translate("+U+"px, "+g+"px)",...jr(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:g}},[n,i,I.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:$,refs:D,elements:I,floatingStyles:P}),[f,$,D,I,P])}const Ea=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Cn({element:r.current,padding:o}).fn(n):{}:r?Cn({element:r,padding:o}).fn(n):{}}}},Sa=(e,t)=>({...va(e),options:[e,t]}),Aa=(e,t)=>({...ga(e),options:[e,t]}),Na=(e,t)=>({...wa(e),options:[e,t]}),Ra=(e,t)=>({...ya(e),options:[e,t]}),Ta=(e,t)=>({...xa(e),options:[e,t]}),Oa=(e,t)=>({...ba(e),options:[e,t]}),Pa=(e,t)=>({...Ea(e),options:[e,t]});var ka="Arrow",Cr=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(ae.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Cr.displayName=ka;var _a=Cr;function Ma(e){const[t,n]=p.useState(void 0);return ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const u=s.borderBoxSize,l=Array.isArray(u)?u[0]:u;a=l.inlineSize,i=l.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Yt="Popper",[Er,Sr]=ar(Yt),[Da,Ar]=Er(Yt),Nr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return c.jsx(Da,{scope:t,anchor:r,onAnchorChange:o,children:n})};Nr.displayName=Yt;var Rr="PopperAnchor",Tr=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Ar(Rr,n),a=p.useRef(null),i=me(t,a),u=p.useRef(null);return p.useEffect(()=>{const l=u.current;u.current=r?.current||a.current,l!==u.current&&s.onAnchorChange(u.current)}),r?null:c.jsx(ae.div,{...o,ref:i})});Tr.displayName=Rr;var Gt="PopperContent",[Ia,La]=Er(Gt),Or=p.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:y,...h}=e,x=Ar(Gt,n),[b,A]=p.useState(null),S=me(t,re=>A(re)),[j,C]=p.useState(null),N=Ma(j),E=N?.width??0,k=N?.height??0,_=r+(s!=="center"?"-"+s:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},W=Array.isArray(l)?l:[l],H=W.length>0,$={padding:F,boundary:W.filter($a),altBoundary:H},{refs:M,floatingStyles:D,placement:I,isPositioned:P,middlewareData:O}=Ca({strategy:"fixed",placement:_,whileElementsMounted:(...re)=>ha(...re,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[Sa({mainAxis:o+k,alignmentAxis:a}),u&&Aa({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Na():void 0,...$}),u&&Ra({...$}),Ta({...$,apply:({elements:re,rects:z,availableWidth:ie,availableHeight:ke})=>{const{width:lt,height:Eo}=z.reference,Be=re.floating.style;Be.setProperty("--radix-popper-available-width",`${ie}px`),Be.setProperty("--radix-popper-available-height",`${ke}px`),Be.setProperty("--radix-popper-anchor-width",`${lt}px`),Be.setProperty("--radix-popper-anchor-height",`${Eo}px`)}}),j&&Pa({element:j,padding:i}),Ba({arrowWidth:E,arrowHeight:k}),v&&Oa({strategy:"referenceHidden",...$})]}),[U,g]=_r(I),T=Ae(y);ue(()=>{P&&T?.()},[P,T]);const B=O.arrow?.x,R=O.arrow?.y,L=O.arrow?.centerOffset!==0,[V,Pe]=p.useState();return ue(()=>{b&&Pe(window.getComputedStyle(b).zIndex)},[b]),c.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:P?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:V,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Ia,{scope:n,placedSide:U,onArrowChange:C,arrowX:B,arrowY:R,shouldHideArrow:L,children:c.jsx(ae.div,{"data-side":U,"data-align":g,...h,ref:S,style:{...h.style,animation:P?void 0:"none"}})})})});Or.displayName=Gt;var Pr="PopperArrow",Fa={top:"bottom",right:"left",bottom:"top",left:"right"},kr=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=La(Pr,r),a=Fa[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(_a,{...o,ref:n,style:{...o.style,display:"block"}})})});kr.displayName=Pr;function $a(e){return e!==null}var Ba=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[l,f]=_r(n),d={start:"0%",center:"50%",end:"100%"}[f],v=(o.arrow?.x??0)+i/2,m=(o.arrow?.y??0)+u/2;let y="",h="";return l==="bottom"?(y=a?d:`${v}px`,h=`${-u}px`):l==="top"?(y=a?d:`${v}px`,h=`${r.floating.height+u}px`):l==="right"?(y=`${-u}px`,h=a?d:`${m}px`):l==="left"&&(y=`${r.floating.width+u}px`,h=a?d:`${m}px`),{data:{x:y,y:h}}}});function _r(e){const[t,n="center"]=e.split("-");return[t,n]}var Wa=Nr,Mr=Tr,Ha=Or,Ua=kr,za="Portal",Dr=p.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=p.useState(!1);ue(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?qn.createPortal(c.jsx(ae.div,{...r,ref:t}),a):null});Dr.displayName=za;function Va(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Zt=e=>{const{present:t,children:n}=e,r=Ya(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),s=me(r.ref,Ga(o));return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:s}):null};Zt.displayName="Presence";function Ya(e){const[t,n]=p.useState(),r=p.useRef(null),o=p.useRef(e),s=p.useRef("none"),a=e?"mounted":"unmounted",[i,u]=Va(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const l=Ue(r.current);s.current=i==="mounted"?l:"none"},[i]),ue(()=>{const l=r.current,f=o.current;if(f!==e){const v=s.current,m=Ue(l);e?u("MOUNT"):m==="none"||l?.display==="none"?u("UNMOUNT"):u(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),ue(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=m=>{const h=Ue(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&h&&(u("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},v=m=>{m.target===t&&(s.current=Ue(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:p.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ue(e){return e?.animationName||"none"}function Ga(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Za=p[" useInsertionEffect ".trim().toString()]||ue;function Ka({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=Xa({defaultProp:t,onChange:n}),i=e!==void 0,u=i?e:o;{const f=p.useRef(e!==void 0);p.useEffect(()=>{const d=f.current;d!==i&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const l=p.useCallback(f=>{if(i){const d=qa(f)?f(e):f;d!==e&&a.current?.(d)}else s(f)},[i,e,s,a]);return[u,l]}function Xa({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),o=p.useRef(n),s=p.useRef(t);return Za(()=>{s.current=t},[t]),p.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function qa(e){return typeof e=="function"}var Ja=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},be=new WeakMap,ze=new WeakMap,Ve={},ht=0,Ir=function(e){return e&&(e.host||Ir(e.parentNode))},Qa=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ir(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ei=function(e,t,n,r){var o=Qa(t,Array.isArray(e)?e:[e]);Ve[n]||(Ve[n]=new WeakMap);var s=Ve[n],a=[],i=new Set,u=new Set(o),l=function(d){!d||i.has(d)||(i.add(d),l(d.parentNode))};o.forEach(l);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(v){if(i.has(v))f(v);else try{var m=v.getAttribute(r),y=m!==null&&m!=="false",h=(be.get(v)||0)+1,x=(s.get(v)||0)+1;be.set(v,h),s.set(v,x),a.push(v),h===1&&y&&ze.set(v,!0),x===1&&v.setAttribute(n,"true"),y||v.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",v,b)}})};return f(t),i.clear(),ht++,function(){a.forEach(function(d){var v=be.get(d)-1,m=s.get(d)-1;be.set(d,v),s.set(d,m),v||(ze.has(d)||d.removeAttribute(r),ze.delete(d)),m||d.removeAttribute(n)}),ht--,ht||(be=new WeakMap,be=new WeakMap,ze=new WeakMap,Ve={})}},ti=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ja(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),ei(r,o,n,"aria-hidden")):function(){return null}},Q=function(){return Q=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Q.apply(this,arguments)};function Lr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ni(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Ke="right-scroll-bar-position",Xe="width-before-scroll-bar",ri="with-scroll-bars-hidden",oi="--removed-body-scroll-bar-size";function vt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function si(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ai=typeof window<"u"?p.useLayoutEffect:p.useEffect,Sn=new WeakMap;function ii(e,t){var n=si(null,function(r){return e.forEach(function(o){return vt(o,r)})});return ai(function(){var r=Sn.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||vt(i,null)}),s.forEach(function(i){o.has(i)||vt(i,a)})}Sn.set(n,e)},[e]),n}function ci(e){return e}function li(e,t){t===void 0&&(t=ci);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var u=function(){var f=a;a=[],f.forEach(s)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){a.push(f),l()},filter:function(f){return a=a.filter(f),n}}}};return o}function ui(e){e===void 0&&(e={});var t=li(null);return t.options=Q({async:!0,ssr:!1},e),t}var Fr=function(e){var t=e.sideCar,n=Lr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,Q({},n))};Fr.isSideCarExport=!0;function fi(e,t){return e.useMedium(t),Fr}var $r=ui(),gt=function(){},ot=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:gt,onWheelCapture:gt,onTouchMoveCapture:gt}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,v=e.sideCar,m=e.noIsolation,y=e.inert,h=e.allowPinchZoom,x=e.as,b=x===void 0?"div":x,A=e.gapMode,S=Lr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,C=ii([n,t]),N=Q(Q({},S),o);return p.createElement(p.Fragment,null,f&&p.createElement(j,{sideCar:$r,removeScrollBar:l,shards:d,noIsolation:m,inert:y,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:A}),a?p.cloneElement(p.Children.only(i),Q(Q({},N),{ref:C})):p.createElement(b,Q({},N,{className:u,ref:C}),i))});ot.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ot.classNames={fullWidth:Xe,zeroRight:Ke};var di=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=di();return t&&e.setAttribute("nonce",t),e}function mi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pi())&&(mi(t,n),hi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gi=function(){var e=vi();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Br=function(){var e=gi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},yi={left:0,top:0,right:0,gap:0},yt=function(e){return parseInt(e||"",10)||0},xi=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[yt(n),yt(r),yt(o)]},bi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yi;var t=xi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wi=Br(),Ee="data-scroll-locked",ji=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
98
- .`.concat(ri,` {
99
- overflow: hidden `).concat(r,`;
100
- padding-right: `).concat(i,"px ").concat(r,`;
101
- }
102
- body[`).concat(Ee,`] {
103
- overflow: hidden `).concat(r,`;
104
- overscroll-behavior: contain;
105
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
106
- padding-left: `.concat(o,`px;
107
- padding-top: `).concat(s,`px;
108
- padding-right: `).concat(a,`px;
109
- margin-left:0;
110
- margin-top:0;
111
- margin-right: `).concat(i,"px ").concat(r,`;
112
- `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
113
- }
114
-
115
- .`).concat(Ke,` {
116
- right: `).concat(i,"px ").concat(r,`;
117
- }
118
-
119
- .`).concat(Xe,` {
120
- margin-right: `).concat(i,"px ").concat(r,`;
121
- }
122
-
123
- .`).concat(Ke," .").concat(Ke,` {
124
- right: 0 `).concat(r,`;
125
- }
126
-
127
- .`).concat(Xe," .").concat(Xe,` {
128
- margin-right: 0 `).concat(r,`;
129
- }
130
-
131
- body[`).concat(Ee,`] {
132
- `).concat(oi,": ").concat(i,`px;
133
- }
134
- `)},An=function(){var e=parseInt(document.body.getAttribute(Ee)||"0",10);return isFinite(e)?e:0},Ci=function(){p.useEffect(function(){return document.body.setAttribute(Ee,(An()+1).toString()),function(){var e=An()-1;e<=0?document.body.removeAttribute(Ee):document.body.setAttribute(Ee,e.toString())}},[])},Ei=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ci();var s=p.useMemo(function(){return bi(o)},[o]);return p.createElement(wi,{styles:ji(s,!t,o,n?"":"!important")})},St=!1;if(typeof window<"u")try{var Ye=Object.defineProperty({},"passive",{get:function(){return St=!0,!0}});window.addEventListener("test",Ye,Ye),window.removeEventListener("test",Ye,Ye)}catch{St=!1}var we=St?{passive:!1}:!1,Si=function(e){return e.tagName==="TEXTAREA"},Wr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Si(e)&&n[t]==="visible")},Ai=function(e){return Wr(e,"overflowY")},Ni=function(e){return Wr(e,"overflowX")},Nn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Hr(e,r);if(o){var s=Ur(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ri=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ti=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Hr=function(e,t){return e==="v"?Ai(t):Ni(t)},Ur=function(e,t){return e==="v"?Ri(t):Ti(t)},Oi=function(e,t){return e==="h"&&t==="rtl"?-1:1},Pi=function(e,t,n,r,o){var s=Oi(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,u=t.contains(i),l=!1,f=a>0,d=0,v=0;do{var m=Ur(e,i),y=m[0],h=m[1],x=m[2],b=h-x-s*y;(y||b)&&Hr(e,i)&&(d+=b,v+=y),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(f&&Math.abs(d)<1||!f&&Math.abs(v)<1)&&(l=!0),l},Ge=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rn=function(e){return[e.deltaX,e.deltaY]},Tn=function(e){return e&&"current"in e?e.current:e},ki=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_i=function(e){return`
135
- .block-interactivity-`.concat(e,` {pointer-events: none;}
136
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
137
- `)},Mi=0,je=[];function Di(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(Mi++)[0],s=p.useState(Br)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=ni([e.lockRef.current],(e.shards||[]).map(Tn),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=p.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var b=Ge(h),A=n.current,S="deltaX"in h?h.deltaX:A[0]-b[0],j="deltaY"in h?h.deltaY:A[1]-b[1],C,N=h.target,E=Math.abs(S)>Math.abs(j)?"h":"v";if("touches"in h&&E==="h"&&N.type==="range")return!1;var k=Nn(E,N);if(!k)return!0;if(k?C=E:(C=E==="v"?"h":"v",k=Nn(E,N)),!k)return!1;if(!r.current&&"changedTouches"in h&&(S||j)&&(r.current=C),!C)return!0;var _=r.current||C;return Pi(_,x,h,_==="h"?S:j)},[]),u=p.useCallback(function(h){var x=h;if(!(!je.length||je[je.length-1]!==s)){var b="deltaY"in x?Rn(x):Ge(x),A=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&ki(C.delta,b)})[0];if(A&&A.should){x.cancelable&&x.preventDefault();return}if(!A){var S=(a.current.shards||[]).map(Tn).filter(Boolean).filter(function(C){return C.contains(x.target)}),j=S.length>0?i(x,S[0]):!a.current.noIsolation;j&&x.cancelable&&x.preventDefault()}}},[]),l=p.useCallback(function(h,x,b,A){var S={name:h,delta:x,target:b,should:A,shadowParent:Ii(b)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(j){return j!==S})},1)},[]),f=p.useCallback(function(h){n.current=Ge(h),r.current=void 0},[]),d=p.useCallback(function(h){l(h.type,Rn(h),h.target,i(h,e.lockRef.current))},[]),v=p.useCallback(function(h){l(h.type,Ge(h),h.target,i(h,e.lockRef.current))},[]);p.useEffect(function(){return je.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:v}),document.addEventListener("wheel",u,we),document.addEventListener("touchmove",u,we),document.addEventListener("touchstart",f,we),function(){je=je.filter(function(h){return h!==s}),document.removeEventListener("wheel",u,we),document.removeEventListener("touchmove",u,we),document.removeEventListener("touchstart",f,we)}},[]);var m=e.removeScrollBar,y=e.inert;return p.createElement(p.Fragment,null,y?p.createElement(s,{styles:_i(o)}):null,m?p.createElement(Ei,{gapMode:e.gapMode}):null)}function Ii(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Li=fi($r,Di);var zr=p.forwardRef(function(e,t){return p.createElement(ot,Q({},e,{ref:t,sideCar:Li}))});zr.classNames=ot.classNames;var st="Popover",[Vr]=ar(st,[Sr]),$e=Sr(),[Fi,he]=Vr(st),Yr=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=$e(t),u=p.useRef(null),[l,f]=p.useState(!1),[d,v]=Ka({prop:r,defaultProp:o??!1,onChange:s,caller:st});return c.jsx(Wa,{...i,children:c.jsx(Fi,{scope:t,contentId:Ms(),triggerRef:u,open:d,onOpenChange:v,onOpenToggle:p.useCallback(()=>v(m=>!m),[v]),hasCustomAnchor:l,onCustomAnchorAdd:p.useCallback(()=>f(!0),[]),onCustomAnchorRemove:p.useCallback(()=>f(!1),[]),modal:a,children:n})})};Yr.displayName=st;var Gr="PopoverAnchor",$i=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=he(Gr,n),s=$e(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return p.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(Mr,{...s,...r,ref:t})});$i.displayName=Gr;var Zr="PopoverTrigger",Kr=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=he(Zr,n),s=$e(n),a=me(t,o.triggerRef),i=c.jsx(ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eo(o.open),...r,ref:a,onClick:le(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Mr,{asChild:!0,...s,children:i})});Kr.displayName=Zr;var Kt="PopoverPortal",[Bi,Wi]=Vr(Kt,{forceMount:void 0}),Xr=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=he(Kt,t);return c.jsx(Bi,{scope:t,forceMount:n,children:c.jsx(Zt,{present:n||s.open,children:c.jsx(Dr,{asChild:!0,container:o,children:r})})})};Xr.displayName=Kt;var Re="PopoverContent",qr=p.forwardRef((e,t)=>{const n=Wi(Re,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=he(Re,e.__scopePopover);return c.jsx(Zt,{present:r||s.open,children:s.modal?c.jsx(Ui,{...o,ref:t}):c.jsx(zi,{...o,ref:t})})});qr.displayName=Re;var Hi=ir("PopoverContent.RemoveScroll"),Ui=p.forwardRef((e,t)=>{const n=he(Re,e.__scopePopover),r=p.useRef(null),o=me(t,r),s=p.useRef(!1);return p.useEffect(()=>{const a=r.current;if(a)return ti(a)},[]),c.jsx(zr,{as:Hi,allowPinchZoom:!0,children:c.jsx(Jr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,l=i.button===2||u;s.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:le(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),zi=p.forwardRef((e,t)=>{const n=he(Re,e.__scopePopover),r=p.useRef(!1),o=p.useRef(!1);return c.jsx(Jr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Jr=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:f,...d}=e,v=he(Re,n),m=$e(n);return Es(),c.jsx(fr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(lr,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>v.onOpenChange(!1),children:c.jsx(Ha,{"data-state":eo(v.open),role:"dialog",id:v.contentId,...m,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Qr="PopoverClose",Vi=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=he(Qr,n);return c.jsx(ae.button,{type:"button",...r,ref:t,onClick:le(e.onClick,()=>o.onOpenChange(!1))})});Vi.displayName=Qr;var Yi="PopoverArrow",Gi=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=$e(n);return c.jsx(Ua,{...o,...r,ref:t})});Gi.displayName=Yi;function eo(e){return e?"open":"closed"}var Zi=Yr,Ki=Kr,Xi=Xr,qi=qr;const to=({...e})=>c.jsx(Zi,{"data-slot":"popover",...e}),no=({...e})=>c.jsx(Ki,{"data-slot":"popover-trigger",...e}),ro=({className:e,align:t="center",sideOffset:n=4,...r})=>c.jsx(Xi,{children:c.jsx(qi,{"data-slot":"popover-content",align:t,sideOffset:n,className:Y.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})});function Ji(e,t,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function i(f){try{l(r.next(f))}catch(d){a(d)}}function u(f){try{l(r.throw(f))}catch(d){a(d)}}function l(f){f.done?s(f.value):o(f.value).then(i,u)}l((r=r.apply(e,[])).next())})}var Qi=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},ec=Qi,On={"text/plain":"Text","text/html":"Url",default:"Text"},tc="Copy to clipboard: #{key}, Enter";function nc(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function rc(e,t){var n,r,o,s,a,i,u=!1;t||(t={}),n=t.debug||!1;try{o=ec(),s=document.createRange(),a=document.getSelection(),i=document.createElement("span"),i.textContent=e,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",function(f){if(f.stopPropagation(),t.format)if(f.preventDefault(),typeof f.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=On[t.format]||On.default;window.clipboardData.setData(d,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(i),s.selectNodeContents(i),a.addRange(s);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");u=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=nc("message"in t?t.message:tc),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(s):a.removeAllRanges()),i&&document.body.removeChild(i),o()}return u}var oc=rc;function ve(e){return Object.prototype.toString.call(e)==="[object Object]"}function De(e){return Array.isArray(e)?e.length:ve(e)?Object.keys(e).length:0}function sc(e,t){if(typeof e=="string")return e;try{return JSON.stringify(e,(n,r)=>{switch(typeof r){case"bigint":return String(r)+"n";case"number":case"boolean":case"object":case"string":return r;default:return String(r)}},t)}catch(n){return`${n.name}: ${n.message}`||"JSON.stringify failed"}}function ac(e){return Ji(this,void 0,void 0,function*(){try{yield navigator.clipboard.writeText(e)}catch{oc(e)}})}function Pn(e,t,n,r,o,s){if(s&&s.collapsed!==void 0)return!!s.collapsed;if(typeof r=="boolean")return r;if(typeof r=="number"&&t>r)return!0;const a=De(e);if(typeof r=="function"){const i=Xt(r,[{node:e,depth:t,indexOrName:n,size:a}]);if(typeof i=="boolean")return i}return!!(Array.isArray(e)&&a>o||ve(e)&&a>o)}function kn(e,t,n,r,o,s){if(s&&s.collapsed!==void 0)return!!s.collapsed;if(typeof r=="boolean")return r;if(typeof r=="number"&&t>r)return!0;const a=Math.ceil(e.length/100);if(typeof r=="function"){const i=Xt(r,[{node:e,depth:t,indexOrName:n,size:a}]);if(typeof i=="boolean")return i}return!!(Array.isArray(e)&&a>o||ve(e)&&a>o)}function Se(e,t,n){return typeof e=="boolean"?e:!!(typeof e=="number"&&t>e||e==="collapsed"&&n||e==="expanded"&&!n)}function Xt(e,t){try{return e(...t)}catch(n){reportError(n)}}function oo(e){if(e===!0||ve(e)&&e.add===!0)return!0}function _n(e){if(e===!0||ve(e)&&e.edit===!0)return!0}function qt(e){if(e===!0||ve(e)&&e.delete===!0)return!0}function ic(e){return typeof e=="function"}function so(e){return!e||e.add===void 0||!!e.add}function Mn(e){return!e||e.edit===void 0||!!e.edit}function Jt(e){return!e||e.delete===void 0||!!e.delete}function at(e){return!e||e.enableClipboard===void 0||!!e.enableClipboard}function cc(e){return!e||e.matchesURL===void 0||!!e.matchesURL}function lc(e,t){return e==="string"?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t}var Dn;function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}var Qt=function(t){return p.createElement("svg",At({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},t),Dn||(Dn=p.createElement("path",{fill:"currentColor",d:"M12.473 5.806a.666.666 0 0 0-.946 0L8.473 8.86a.667.667 0 0 1-.946 0L4.473 5.806a.667.667 0 1 0-.946.94l3.06 3.06a2 2 0 0 0 2.826 0l3.06-3.06a.667.667 0 0 0 0-.94Z"})))},In;function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nt.apply(this,arguments)}var uc=function(t){return p.createElement("svg",Nt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),In||(In=p.createElement("path",{fill:"currentColor",d:"M17.542 2.5h-4.75a3.963 3.963 0 0 0-3.959 3.958v4.75a3.963 3.963 0 0 0 3.959 3.959h4.75a3.963 3.963 0 0 0 3.958-3.959v-4.75A3.963 3.963 0 0 0 17.542 2.5Zm2.375 8.708a2.378 2.378 0 0 1-2.375 2.375h-4.75a2.378 2.378 0 0 1-2.375-2.375v-4.75a2.378 2.378 0 0 1 2.375-2.375h4.75a2.378 2.378 0 0 1 2.375 2.375v4.75Zm-4.75 6.334a3.963 3.963 0 0 1-3.959 3.958h-4.75A3.963 3.963 0 0 1 2.5 17.542v-4.75a3.963 3.963 0 0 1 3.958-3.959.791.791 0 1 1 0 1.584 2.378 2.378 0 0 0-2.375 2.375v4.75a2.378 2.378 0 0 0 2.375 2.375h4.75a2.378 2.378 0 0 0 2.375-2.375.792.792 0 1 1 1.584 0Z"})))},Ln,Fn;function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rt.apply(this,arguments)}var fc=function(t){return p.createElement("svg",Rt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),Ln||(Ln=p.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.755 3.755 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.755 3.755 0 0 0 17.25 3Zm2.25 14.25a2.25 2.25 0 0 1-2.25 2.25H6.75a2.25 2.25 0 0 1-2.25-2.25V6.75A2.25 2.25 0 0 1 6.75 4.5h10.5a2.25 2.25 0 0 1 2.25 2.25v10.5Z"})),Fn||(Fn=p.createElement("path",{fill:"#14C786",d:"M10.312 14.45 7.83 11.906a.625.625 0 0 0-.896 0 .659.659 0 0 0 0 .918l2.481 2.546a1.264 1.264 0 0 0 .896.381 1.237 1.237 0 0 0 .895-.38l5.858-6.011a.658.658 0 0 0 0-.919.625.625 0 0 0-.896 0l-5.857 6.01Z"})))};function it({node:e,nodeMeta:t}){const{customizeCopy:n,CopyComponent:r,CopiedComponent:o}=w.useContext(ge),[s,a]=w.useState(!1),i=u=>{u.stopPropagation();const l=n(e,t);typeof l=="string"&&l&&ac(l),a(!0),setTimeout(()=>a(!1),3e3)};return s?typeof o=="function"?c.jsx(o,{className:"json-view--copy",style:{display:"inline-block"}}):c.jsx(fc,{className:"json-view--copy",style:{display:"inline-block"}}):typeof r=="function"?c.jsx(r,{onClick:i,className:"json-view--copy"}):c.jsx(uc,{onClick:i,className:"json-view--copy"})}function Tt({indexOrName:e,value:t,depth:n,deleteHandle:r,editHandle:o,parent:s,parentPath:a}){const{displayArrayIndex:i}=w.useContext(ge),u=Array.isArray(s);return c.jsxs("div",Object.assign({className:"json-view--pair"},{children:[!u||u&&i?c.jsxs(c.Fragment,{children:[c.jsx("span",Object.assign({className:typeof e=="number"?"json-view--index":"json-view--property"},{children:e})),":"," "]}):c.jsx(c.Fragment,{}),c.jsx(io,{node:t,depth:n+1,deleteHandle:(l,f)=>r(l,f),editHandle:(l,f,d,v)=>o(l,f,d,v),parent:s,indexOrName:e,parentPath:a})]}))}var $n,Bn;function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}var en=function(t){return p.createElement("svg",Ot({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),$n||($n=p.createElement("path",{fill:"currentColor",d:"M18.75 6h-2.325a3.757 3.757 0 0 0-3.675-3h-1.5a3.757 3.757 0 0 0-3.675 3H5.25a.75.75 0 0 0 0 1.5H6v9.75A3.754 3.754 0 0 0 9.75 21h4.5A3.754 3.754 0 0 0 18 17.25V7.5h.75a.75.75 0 1 0 0-1.5Zm-7.5-1.5h1.5A2.255 2.255 0 0 1 14.872 6H9.128a2.255 2.255 0 0 1 2.122-1.5Zm5.25 12.75a2.25 2.25 0 0 1-2.25 2.25h-4.5a2.25 2.25 0 0 1-2.25-2.25V7.5h9v9.75Z"})),Bn||(Bn=p.createElement("path",{fill:"#DA0000",d:"M10.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75ZM13.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75Z"})))},Wn,Hn;function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pt.apply(this,arguments)}var ao=function(t){return p.createElement("svg",Pt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),Wn||(Wn=p.createElement("path",{fill:"currentColor",d:"M21 6.75v10.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3h10.5A3.754 3.754 0 0 1 21 6.75Zm-1.5 0c0-1.24-1.01-2.25-2.25-2.25H6.75C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25V6.75Z"})),Hn||(Hn=p.createElement("path",{fill:"#14C786",d:"M15 12.75a.75.75 0 1 0 0-1.5h-2.25V9a.75.75 0 1 0-1.5 0v2.25H9a.75.75 0 1 0 0 1.5h2.25V15a.75.75 0 1 0 1.5 0v-2.25H15Z"})))},Un,zn;function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt.apply(this,arguments)}var tn=function(t){return p.createElement("svg",kt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),Un||(Un=p.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})),zn||(zn=p.createElement("path",{fill:"#14C786",d:"m10.85 13.96-1.986-2.036a.5.5 0 0 0-.716 0 .527.527 0 0 0 0 .735l1.985 2.036a1.01 1.01 0 0 0 .717.305.99.99 0 0 0 .716-.305l4.686-4.808a.526.526 0 0 0 0-.735.5.5 0 0 0-.716 0l-4.687 4.809Z"})))},Vn,Yn;function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_t.apply(this,arguments)}var nn=function(t){return p.createElement("svg",_t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),Vn||(Vn=p.createElement("path",{fill:"#DA0000",d:"M15 9a.75.75 0 0 0-1.06 0L12 10.94 10.06 9A.75.75 0 0 0 9 10.06L10.94 12 9 13.94A.75.75 0 0 0 10.06 15L12 13.06 13.94 15A.75.75 0 0 0 15 13.94L13.06 12 15 10.06A.75.75 0 0 0 15 9Z"})),Yn||(Yn=p.createElement("path",{fill:"currentColor",d:"M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"})))};function dc({originNode:e,node:t,depth:n,index:r,deleteHandle:o,customOptions:s,startIndex:a,parent:i,parentPath:u}){const{enableClipboard:l,src:f,onEdit:d,onChange:v,forceUpdate:m,displaySize:y,CustomOperation:h}=w.useContext(ge),x=[...u,String(r)],[b,A]=w.useState(!0),S=w.useCallback((N,E,k)=>{e[N]=E,d&&d({newValue:E,oldValue:k,depth:n,src:f,indexOrName:N,parentType:"array",parentPath:u}),v&&v({type:"edit",depth:n,src:f,indexOrName:N,parentType:"array",parentPath:u}),m()},[t,d,v,m]),j=N=>{e.splice(N,1),o&&o(N,u),m()},C=c.jsxs(c.Fragment,{children:[!b&&c.jsxs("span",Object.assign({onClick:()=>A(!0),className:"jv-size-chevron"},{children:[Se(y,n,b)&&c.jsxs("span",Object.assign({className:"jv-size"},{children:[De(t)," Items"]})),c.jsx(Qt,{className:"jv-chevron"})]})),!b&&l&&at(s)&&c.jsx(it,{node:t,nodeMeta:{depth:n,indexOrName:r,parent:i,parentPath:u,currentPath:x}}),typeof h=="function"?c.jsx(h,{node:t}):null]});return c.jsxs("div",{children:[c.jsx("span",{children:"["}),C,b?c.jsxs("button",Object.assign({onClick:()=>A(!1),className:"jv-button"},{children:[a," ... ",a+t.length-1]})):c.jsx("div",Object.assign({className:"jv-indent"},{children:t.map((N,E)=>c.jsx(Tt,{indexOrName:E+a,value:N,depth:n,parent:t,deleteHandle:j,editHandle:S,parentPath:u},String(r)+String(E)))})),c.jsx("span",{children:"]"})]})}function pc({node:e,depth:t,deleteHandle:n,indexOrName:r,customOptions:o,parent:s,parentPath:a}){const i=typeof r<"u"?[...a,String(r)]:a,u=[];for(let D=0;D<e.length;D+=100)u.push(e.slice(D,D+100));const{collapsed:l,enableClipboard:f,collapseObjectsAfterLength:d,editable:v,onDelete:m,src:y,onAdd:h,CustomOperation:x,onChange:b,forceUpdate:A,displaySize:S}=w.useContext(ge),[j,C]=w.useState(kn(e,t,r,l,d,o));w.useEffect(()=>{C(kn(e,t,r,l,d,o))},[l,d]);const[N,E]=w.useState(!1),k=()=>{E(!1),n&&n(r,a),m&&m({value:e,depth:t,src:y,indexOrName:r,parentType:"array",parentPath:a}),b&&b({type:"delete",depth:t,src:y,indexOrName:r,parentType:"array",parentPath:a})},[_,F]=w.useState(!1),W=()=>{const D=e;D.push(null),h&&h({indexOrName:D.length-1,depth:t,src:y,parentType:"array",parentPath:a}),b&&b({type:"add",indexOrName:D.length-1,depth:t,src:y,parentType:"array",parentPath:a}),A()},H=N||_,$=()=>{E(!1),F(!1)},M=c.jsxs(c.Fragment,{children:[!j&&!H&&c.jsxs("span",Object.assign({onClick:()=>C(!0),className:"jv-size-chevron"},{children:[Se(S,t,j)&&c.jsxs("span",Object.assign({className:"jv-size"},{children:[e.length," Items"]})),c.jsx(Qt,{className:"jv-chevron"})]})),H&&c.jsx(tn,{className:"json-view--edit",style:{display:"inline-block"},onClick:_?W:k}),H&&c.jsx(nn,{className:"json-view--edit",style:{display:"inline-block"},onClick:$}),!j&&!H&&f&&at(o)&&c.jsx(it,{node:e,nodeMeta:{depth:t,indexOrName:r,parent:s,parentPath:a,currentPath:i}}),!j&&!H&&oo(v)&&so(o)&&c.jsx(ao,{className:"json-view--edit",onClick:()=>{W()}}),!j&&!H&&qt(v)&&Jt(o)&&n&&c.jsx(en,{className:"json-view--edit",onClick:()=>E(!0)}),typeof x=="function"?c.jsx(x,{node:e}):null]});return c.jsxs(c.Fragment,{children:[c.jsx("span",{children:"["}),M,j?c.jsx("button",Object.assign({onClick:()=>C(!1),className:"jv-button"},{children:"..."})):c.jsx("div",Object.assign({className:"jv-indent"},{children:u.map((D,I)=>c.jsx(dc,{originNode:e,node:D,depth:t,index:I,startIndex:I*100,deleteHandle:n,customOptions:o,parentPath:a},String(r)+String(I)))})),c.jsx("span",{children:"]"}),j&&Se(S,t,j)&&c.jsxs("span",Object.assign({onClick:()=>C(!1),className:"jv-size"},{children:[e.length," Items"]}))]})}function mc({node:e,depth:t,indexOrName:n,deleteHandle:r,customOptions:o,parent:s,parentPath:a}){const{collapsed:i,onCollapse:u,enableClipboard:l,ignoreLargeArray:f,collapseObjectsAfterLength:d,editable:v,onDelete:m,src:y,onAdd:h,onEdit:x,onChange:b,forceUpdate:A,displaySize:S,CustomOperation:j}=w.useContext(ge),C=typeof n<"u"?[...a,String(n)]:a;if(!f&&Array.isArray(e)&&e.length>100)return c.jsx(pc,{node:e,depth:t,indexOrName:n,deleteHandle:r,customOptions:o,parentPath:C});const N=ve(e),[E,k]=w.useState(Pn(e,t,n,i,d,o)),_=R=>{u?.({isCollapsing:!R,node:e,depth:t,indexOrName:n}),k(R)};w.useEffect(()=>{_(Pn(e,t,n,i,d,o))},[i,d]);const F=w.useCallback((R,L,V)=>{Array.isArray(e)?e[+R]=L:e&&(e[R]=L),x&&x({newValue:L,oldValue:V,depth:t,src:y,indexOrName:R,parentType:N?"object":"array",parentPath:C}),b&&b({type:"edit",depth:t,src:y,indexOrName:R,parentType:N?"object":"array",parentPath:C}),A()},[e,x,b,A]),W=R=>{Array.isArray(e)?e.splice(+R,1):e&&delete e[R],A()},[H,$]=w.useState(!1),M=()=>{$(!1),r&&r(n,C),m&&m({value:e,depth:t,src:y,indexOrName:n,parentType:N?"object":"array",parentPath:C}),b&&b({type:"delete",depth:t,src:y,indexOrName:n,parentType:N?"object":"array",parentPath:C})},[D,I]=w.useState(!1),P=w.useRef(null),O=()=>{var R;if(N){const L=(R=P.current)===null||R===void 0?void 0:R.value;L&&(e[L]=null,P.current&&(P.current.value=""),I(!1),h&&h({indexOrName:L,depth:t,src:y,parentType:"object",parentPath:C}),b&&b({type:"add",indexOrName:L,depth:t,src:y,parentType:"object",parentPath:C}))}else if(Array.isArray(e)){const L=e;L.push(null),h&&h({indexOrName:L.length-1,depth:t,src:y,parentType:"array",parentPath:C}),b&&b({type:"add",indexOrName:L.length-1,depth:t,src:y,parentType:"array",parentPath:C})}A()},U=R=>{R.key==="Enter"?(R.preventDefault(),O()):R.key==="Escape"&&T()},g=H||D,T=()=>{$(!1),I(!1)},B=c.jsxs(c.Fragment,{children:[!E&&!g&&c.jsxs("span",Object.assign({onClick:()=>_(!0),className:"jv-size-chevron"},{children:[Se(S,t,E)&&c.jsxs("span",Object.assign({className:"jv-size"},{children:[De(e)," Items"]})),c.jsx(Qt,{className:"jv-chevron"})]})),D&&N&&c.jsx("input",{className:"json-view--input",placeholder:"property",ref:P,onKeyDown:U}),g&&c.jsx(tn,{className:"json-view--edit",style:{display:"inline-block"},onClick:D?O:M}),g&&c.jsx(nn,{className:"json-view--edit",style:{display:"inline-block"},onClick:T}),!E&&!g&&l&&at(o)&&c.jsx(it,{node:e,nodeMeta:{depth:t,indexOrName:n,parent:s,parentPath:a,currentPath:C}}),!E&&!g&&oo(v)&&so(o)&&c.jsx(ao,{className:"json-view--edit",onClick:()=>{N?(I(!0),setTimeout(()=>{var R;return(R=P.current)===null||R===void 0?void 0:R.focus()})):O()}}),!E&&!g&&qt(v)&&Jt(o)&&r&&c.jsx(en,{className:"json-view--edit",onClick:()=>$(!0)}),typeof j=="function"?c.jsx(j,{node:e}):null]});return Array.isArray(e)?c.jsxs(c.Fragment,{children:[c.jsx("span",{children:"["}),B,E?c.jsx("button",Object.assign({onClick:()=>_(!1),className:"jv-button"},{children:"..."})):c.jsx("div",Object.assign({className:"jv-indent"},{children:e.map((R,L)=>c.jsx(Tt,{indexOrName:L,value:R,depth:t,parent:e,deleteHandle:W,editHandle:F,parentPath:C},String(n)+String(L)))})),c.jsx("span",{children:"]"}),E&&Se(S,t,E)&&c.jsxs("span",Object.assign({onClick:()=>_(!1),className:"jv-size"},{children:[De(e)," Items"]}))]}):N?c.jsxs(c.Fragment,{children:[c.jsx("span",{children:"{"}),B,E?c.jsx("button",Object.assign({onClick:()=>_(!1),className:"jv-button"},{children:"..."})):c.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([R,L])=>c.jsx(Tt,{indexOrName:R,value:L,depth:t,parent:e,deleteHandle:W,editHandle:F,parentPath:C},String(n)+String(R)))})),c.jsx("span",{children:"}"}),E&&Se(S,t,E)&&c.jsxs("span",Object.assign({onClick:()=>_(!1),className:"jv-size"},{children:[De(e)," Items"]}))]}):c.jsx("span",{children:String(e)})}const hc=w.forwardRef(({str:e,className:t,ctrlClick:n},r)=>{let{collapseStringMode:o,collapseStringsAfterLength:s,customizeCollapseStringUI:a}=w.useContext(ge);const[i,u]=w.useState(!0),l=w.useRef(null);s=s>0?s:0;const f=e.replace(/\s+/g," "),d=typeof a=="function"?a(f,i):typeof a=="string"?a:"...",v=m=>{var y;if((m.ctrlKey||m.metaKey)&&n)n(m);else{const h=window.getSelection();if(h&&h.anchorOffset!==h.focusOffset&&((y=h.anchorNode)===null||y===void 0?void 0:y.parentElement)===l.current)return;u(!i)}};if(e.length<=s)return c.jsxs("span",Object.assign({ref:l,className:t,onClick:n},{children:['"',e,'"']}));if(o==="address")return e.length<=10?c.jsxs("span",Object.assign({ref:l,className:t,onClick:n},{children:['"',e,'"']})):c.jsxs("span",Object.assign({ref:l,onClick:v,className:t+" cursor-pointer"},{children:['"',i?[f.slice(0,6),d,f.slice(-4)]:e,'"']}));if(o==="directly")return c.jsxs("span",Object.assign({ref:l,onClick:v,className:t+" cursor-pointer"},{children:['"',i?[f.slice(0,s),d]:e,'"']}));if(o==="word"){let m=s,y=s+1,h=f,x=1;for(;;){if(/\W/.test(e[m])){h=e.slice(0,m);break}if(/\W/.test(e[y])){h=e.slice(0,y);break}if(x===6){h=e.slice(0,s);break}x++,m--,y++}return c.jsxs("span",Object.assign({ref:l,onClick:v,className:t+" cursor-pointer"},{children:['"',i?[h,d]:e,'"']}))}return c.jsxs("span",Object.assign({ref:l,className:t},{children:['"',e,'"']}))});var Gn;function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mt.apply(this,arguments)}var vc=function(t){return p.createElement("svg",Mt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),Gn||(Gn=p.createElement("path",{fill:"currentColor",d:"M17.25 3H6.75A3.754 3.754 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.754 3.754 0 0 0 17.25 3Zm2.25 14.25c0 1.24-1.01 2.25-2.25 2.25H6.75c-1.24 0-2.25-1.01-2.25-2.25V6.75c0-1.24 1.01-2.25 2.25-2.25h10.5c1.24 0 2.25 1.01 2.25 2.25v10.5Zm-6.09-9.466-5.031 5.03a2.981 2.981 0 0 0-.879 2.121v1.19c0 .415.336.75.75.75h1.19c.8 0 1.554-.312 2.12-.879l5.03-5.03a2.252 2.252 0 0 0 0-3.182c-.85-.85-2.331-.85-3.18 0Zm-2.91 7.151c-.28.28-.666.44-1.06.44H9v-.44c0-.4.156-.777.44-1.06l3.187-3.188 1.06 1.061-3.187 3.188Zm5.03-5.03-.782.783-1.06-1.061.782-.782a.766.766 0 0 1 1.06 0 .75.75 0 0 1 0 1.06Z"})))},Zn,Kn;function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dt.apply(this,arguments)}var gc=function(t){return p.createElement("svg",Dt({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},t),Zn||(Zn=p.createElement("path",{fill:"currentColor",d:"M6.75 3h5.5v1.5h-5.5C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25v-5.5H21v5.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3Z"})),Kn||(Kn=p.createElement("path",{fill:"currentColor",d:"M20.013 3h-3.946a.987.987 0 0 0 0 1.973h1.564l-6.342 6.342a1.004 1.004 0 0 0 0 1.396 1.004 1.004 0 0 0 1.396 0l6.342-6.342v1.564a.987.987 0 0 0 1.973 0V3.987A.987.987 0 0 0 20.013 3Z"})))};function io({node:e,depth:t,deleteHandle:n,indexOrName:r,parent:o,editHandle:s,parentPath:a}){const{collapseStringsAfterLength:i,enableClipboard:u,editable:l,src:f,onDelete:d,onChange:v,customizeNode:m,matchesURL:y,urlRegExp:h,EditComponent:x,DoneComponent:b,CancelComponent:A,CustomOperation:S}=w.useContext(ge);let j;if(typeof m=="function"&&(j=Xt(m,[{node:e,depth:t,indexOrName:r}])),j){if(w.isValidElement(j))return j;if(ic(j)){const C=j;return c.jsx(C,{node:e,depth:t,indexOrName:r})}}if(Array.isArray(e)||ve(e))return c.jsx(mc,{parent:o,node:e,depth:t,indexOrName:r,deleteHandle:n,parentPath:a,customOptions:typeof j=="object"?j:void 0});{const C=typeof e,N=typeof r<"u"?[...a,String(r)]:a,[E,k]=w.useState(!1),[_,F]=w.useState(!1),W=w.useRef(null),H=()=>{k(!0),setTimeout(()=>{var R,L;(R=window.getSelection())===null||R===void 0||R.selectAllChildren(W.current),(L=W.current)===null||L===void 0||L.focus()})},$=w.useCallback(()=>{let R=W.current.innerText;try{const L=JSON.parse(R);s&&s(r,L,e,a)}catch{const V=lc(C,R);s&&s(r,V,e,a)}k(!1)},[s,r,e,a,C]),M=()=>{k(!1),F(!1)},D=()=>{F(!1),n&&n(r,a),d&&d({value:e,depth:t,src:f,indexOrName:r,parentType:Array.isArray(o)?"array":"object",parentPath:a}),v&&v({depth:t,src:f,indexOrName:r,parentType:Array.isArray(o)?"array":"object",type:"delete",parentPath:a})},I=w.useCallback(R=>{R.key==="Enter"?(R.preventDefault(),$()):R.key==="Escape"&&M()},[$]),P=E||_,O=!P&&_n(l)&&Mn(j)&&s?R=>{(R.ctrlKey||R.metaKey)&&H()}:void 0,U=c.jsxs(c.Fragment,{children:[P&&(typeof b=="function"?c.jsx(b,{className:"json-view--edit",style:{display:"inline-block"},onClick:_?D:$}):c.jsx(tn,{className:"json-view--edit",style:{display:"inline-block"},onClick:_?D:$})),P&&(typeof A=="function"?c.jsx(A,{className:"json-view--edit",style:{display:"inline-block"},onClick:M}):c.jsx(nn,{className:"json-view--edit",style:{display:"inline-block"},onClick:M})),!P&&u&&at(j)&&c.jsx(it,{node:e,nodeMeta:{depth:t,indexOrName:r,parent:o,parentPath:a,currentPath:N}}),!P&&y&&C==="string"&&h.test(e)&&cc(j)&&c.jsx("a",Object.assign({href:e,target:"_blank",className:"json-view--link"},{children:c.jsx(gc,{})})),!P&&_n(l)&&Mn(j)&&s&&(typeof x=="function"?c.jsx(x,{className:"json-view--edit",onClick:H}):c.jsx(vc,{className:"json-view--edit",onClick:H})),!P&&qt(l)&&Jt(j)&&n&&c.jsx(en,{className:"json-view--edit",onClick:()=>F(!0)}),typeof S=="function"?c.jsx(S,{node:e}):null]});let g="json-view--string";switch(C){case"number":case"bigint":g="json-view--number";break;case"boolean":g="json-view--boolean";break;case"object":g="json-view--null";break}typeof j?.className=="string"&&(g+=" "+j.className),_&&(g+=" json-view--deleting");let T=String(e);C==="bigint"&&(T+="n");const B=w.useMemo(()=>c.jsx("span",{contentEditable:!0,className:g,dangerouslySetInnerHTML:{__html:C==="string"?`"${T}"`:T},ref:W,onKeyDown:I}),[T,C,I]);return C==="string"?c.jsxs(c.Fragment,{children:[E?B:e.length>i?c.jsx(hc,{str:e,ref:W,className:g,ctrlClick:O}):c.jsxs("span",Object.assign({className:g,onClick:O},{children:['"',T,'"']})),U]}):c.jsxs(c.Fragment,{children:[E?B:c.jsx("span",Object.assign({className:g,onClick:O},{children:T})),U]})}}const co=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,ge=w.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,onCollapse:void 0,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,displayArrayIndex:!0,matchesURL:!1,urlRegExp:co,ignoreLargeArray:!1,CopyComponent:void 0,CopiedComponent:void 0,EditComponent:void 0,CancelComponent:void 0,DoneComponent:void 0,CustomOperation:void 0});function Xn({src:e,collapseStringsAfterLength:t=99,collapseStringMode:n="directly",customizeCollapseStringUI:r,collapseObjectsAfterLength:o=99,collapsed:s,onCollapse:a,enableClipboard:i=!0,editable:u=!1,onEdit:l,onDelete:f,onAdd:d,onChange:v,dark:m=!1,theme:y="default",customizeNode:h,customizeCopy:x=M=>sc(M),displaySize:b,displayArrayIndex:A=!0,style:S,className:j,matchesURL:C=!1,urlRegExp:N=co,ignoreLargeArray:E=!1,CopyComponent:k,CopiedComponent:_,EditComponent:F,CancelComponent:W,DoneComponent:H,CustomOperation:$}){const[M,D]=w.useState(0),I=w.useCallback(()=>D(U=>++U),[]),[P,O]=w.useState(e);return w.useEffect(()=>O(e),[e]),c.jsx(ge.Provider,Object.assign({value:{src:P,collapseStringsAfterLength:t,collapseStringMode:n,customizeCollapseStringUI:r,collapseObjectsAfterLength:o,collapsed:s,onCollapse:a,enableClipboard:i,editable:u,onEdit:l,onDelete:f,onAdd:d,onChange:v,forceUpdate:I,customizeNode:h,customizeCopy:x,displaySize:b,displayArrayIndex:A,matchesURL:C,urlRegExp:N,ignoreLargeArray:E,CopyComponent:k,CopiedComponent:_,EditComponent:F,CancelComponent:W,DoneComponent:H,CustomOperation:$}},{children:c.jsx("code",Object.assign({className:"json-view"+(m?" dark":"")+(y&&y!=="default"?" json-view_"+y:"")+(j?" "+j:""),style:S},{children:c.jsx(io,{node:P,depth:1,editHandle:(U,g,T,B)=>{O(g),l&&l({newValue:g,oldValue:T,depth:1,src:P,indexOrName:U,parentType:null,parentPath:B}),v&&v({type:"edit",depth:1,src:P,indexOrName:U,parentType:null,parentPath:B})},deleteHandle:(U,g)=>{O(void 0),f&&f({value:P,depth:1,src:P,indexOrName:U,parentType:null,parentPath:g}),v&&v({depth:1,src:P,indexOrName:U,parentType:null,type:"delete",parentPath:g})},parentPath:[]})}))}))}const yc=e=>typeof e=="object"&&e!==null?JSON.stringify(e,null,1):e===null?"null":e.toString(),It=w.memo(({arg:e,popover:t=!0})=>{const n=w.useMemo(()=>typeof e=="object"&&e!==null,[e]),r=w.useMemo(()=>yc(e),[e]),o=w.useMemo(()=>JSON.stringify(e,null,2),[e]);return t?c.jsxs(to,{children:[c.jsx(no,{asChild:!0,children:c.jsx("span",{className:"truncate font-mono text-blue-500 cursor-pointer inline-block",children:r})}),c.jsx(ro,{className:"backdrop-blur-md w-auto max-w-2xl relative max-h-[50vh] overflow-y-auto",hideWhenDetached:!0,children:n?c.jsxs("div",{children:[c.jsx(bt,{textToCopy:o,className:"absolute top-4 right-4",title:"Copy JSON"}),c.jsx(Xn,{src:e,theme:"default",enableClipboard:!1,style:{padding:0}})]}):c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{children:r}),c.jsx(bt,{textToCopy:o,className:"ml-2",title:"Copy JSON"})]})})]}):c.jsx(c.Fragment,{children:n?c.jsx(Xn,{src:e,theme:"default",enableClipboard:!1,style:{padding:0}}):c.jsx("span",{className:"font-mono text-blue-500",children:r})})});It.displayName="Argument";const Lt=w.memo(({callsQuantity:e,noQuantity:t=!1})=>{const n=e&&e>1;return c.jsxs("div",{className:"flex items-center",children:[c.jsx("span",{className:"font-mono text-emerald-500",children:")"}),!t&&n&&c.jsxs("span",{className:"font-mono text-muted-foreground",children:[" x",e]})]})});Lt.displayName="ClosingParenthesis";const Ft=w.forwardRef(({topLevelClassName:e,objectName:t,functionName:n,className:r,...o},s)=>c.jsxs("div",{ref:s,className:Y.cn("flex items-center",r),...o,children:[e&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"font-mono text-pink-500",children:e}),c.jsx("span",{children:"."})]}),t&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"font-mono text-pink-500",children:t}),c.jsx("span",{children:"."})]}),c.jsx("span",{className:"font-mono text-pink-500",children:n}),c.jsx("span",{className:"font-mono text-emerald-500",children:"("})]}));Ft.displayName="FunctionCallContent";const xc={gridTemplateColumns:"max-content 1fr max-content"},ct=w.memo(({topLevelClassName:e,objectName:t,functionName:n,args:r,callsQuantity:o})=>{const s=w.useMemo(()=>r.filter(u=>u!==void 0),[r]),a=w.useMemo(()=>({gridTemplateColumns:`repeat(${s.length*2}, minmax(0, auto))`}),[s.length]),i=w.useMemo(()=>{const u=[e,t].filter(Boolean).join("."),l=u?`${u}.`:"",f=s.map(d=>typeof d=="object"&&d!==null?JSON.stringify(d,null,2):d===null?"null":typeof d=="string"?`'${d}'`:String(d)).join(", ");return`${l}${n}(${f})`},[e,t,n,s]);return c.jsxs("div",{className:"grid overflow-hidden items-center",style:xc,children:[c.jsxs(to,{children:[c.jsx(no,{asChild:!0,children:c.jsx(Ft,{className:"cursor-pointer",functionName:n,topLevelClassName:e,objectName:t})}),c.jsxs(ro,{className:"grid grid-rows-auto backdrop-blur-md w-auto max-w-2xl max-h-[50vh] overflow-y-auto",hideWhenDetached:!0,children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsx(Ft,{functionName:n,topLevelClassName:e,objectName:t}),c.jsx(bt,{textToCopy:i})]}),s.map((u,l)=>c.jsxs("div",{className:"grid grid-cols-[auto_1fr] items-center pl-4",children:[c.jsx(It,{arg:u,popover:!1}),l<s.length-1&&c.jsx("span",{children:", "})]},l)),c.jsx(Lt,{callsQuantity:o,noQuantity:!0})]})]}),c.jsx("div",{className:"grid items-center min-w-0",style:a,children:s.map((u,l)=>c.jsxs(w.Fragment,{children:[c.jsx(It,{arg:u}),l<s.length-1&&c.jsx("span",{children:", "})]},l))}),c.jsx(Lt,{callsQuantity:o})]})});ct.displayName="FunctionCall";const lo=w.memo(({event:e})=>{const t=w.useMemo(()=>[{topic:e.topic,data:e.data}],[e]);return c.jsx(ct,{functionName:"emit",args:t})});lo.displayName="TraceEmitEvent";const uo=w.memo(({event:e})=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Y.LevelDot,{level:e.level})," ",e.message]}));uo.displayName="TraceLogEvent";const fo=w.memo(({event:e})=>{const t=w.useMemo(()=>[e.data.traceId,e.data.key,e.data.value],[e]);return c.jsx(ct,{objectName:"state",functionName:e.operation,args:t})});fo.displayName="TraceStateEvent";const po=w.memo(({event:e})=>{const t=w.useMemo(()=>[e.data.groupId,e.data.id,e.data.data],[e]);return c.jsx(ct,{topLevelClassName:"streams",objectName:e.streamName,functionName:e.operation,args:t,callsQuantity:e.calls})});po.displayName="TraceStreamEvent";const mo=w.memo(({event:e})=>{if(e.type==="log")return c.jsx(uo,{event:e});if(e.type==="emit")return c.jsx(lo,{event:e});if(e.type==="state")return c.jsx(fo,{event:e});if(e.type==="stream")return c.jsx(po,{event:e})});mo.displayName="TraceEvent";const ho=w.memo(({event:e,traceStartTime:t})=>c.jsxs(w.Fragment,{children:[c.jsx("div",{className:"grid place-items-center",children:c.jsx("div",{className:"w-1 h-1 rounded-full bg-emerald-500 outline outline-2 outline-emerald-500/50 -ml-[26px]"})}),c.jsx("div",{className:"grid place-items-center",children:c.jsx(rs,{event:e})}),c.jsx("div",{className:"grid place-items-center",children:c.jsxs("span",{className:"text-sm font-mono text-muted-foreground",children:["+",ye(Math.floor(e.timestamp-t))]})}),c.jsx("div",{className:"grid place-items-start",children:c.jsx(mo,{event:e})})]}));ho.displayName="TraceEventItem";const vo=w.memo(({trace:e,onClose:t})=>{const n=w.useMemo(()=>[{icon:c.jsx(tr,{}),onClick:t,label:"Close"}],[t]);return c.jsxs(Y.Sidebar,{onClose:t,initialWidth:600,title:"Trace Details",subtitle:`Viewing details from step ${e.name}`,actions:n,children:[c.jsxs("div",{className:"px-2 overflow-auto",children:[c.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-4",children:[e.endTime&&c.jsxs("span",{children:["Duration: ",ye(e.endTime-e.startTime)]}),c.jsx("div",{className:"bg-blue-500 font-bold text-xs px-[4px] py-[2px] rounded-sm text-blue-100",children:e.entryPoint.type}),e.correlationId&&c.jsxs(Y.Badge,{variant:"outline",children:["Correlated: ",e.correlationId]})]}),c.jsx("div",{className:"grid grid-cols-[auto_auto_auto_1fr] gap-x-2 gap-y-3 font-mono text-xs border-l-1 border-gray-500/40 pl-6",children:e.events.map((r,o)=>c.jsx(ho,{event:r,traceStartTime:e.startTime},o))})]}),e.error&&c.jsxs("div",{className:"p-4 bg-red-800/10",children:[c.jsx("div",{className:"text-sm text-red-800 dark:text-red-400 font-semibold",children:e.error.message}),c.jsx("div",{className:"text-sm text-red-800 dark:text-red-400 pl-4",children:e.error.stack})]})]})});vo.displayName="TraceItemDetail";const go=w.memo(()=>{const e=X(t=>t.selectedTraceGroupId);return e?c.jsx(yo,{groupId:e}):null});go.displayName="TraceTimeline";const yo=w.memo(({groupId:e})=>{const t=w.useMemo(()=>({streamName:"motia-trace-group",groupId:"default",id:e}),[e]),{data:n}=xt.useStreamItem(t),r=w.useMemo(()=>({streamName:"motia-trace",groupId:e}),[e]),{data:o}=xt.useStreamGroup(r),s=Go(n),[a,i]=w.useState(100),u=X(m=>m.selectedTraceId),l=X(m=>m.selectTraceId),f=w.useMemo(()=>o?.find(m=>m.id===u),[o,u]),d=()=>a>100&&i(m=>m-10),v=()=>a<200&&i(m=>m+10);return n?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"flex flex-col flex-1 relative min-h-full min-w-[1000px]",children:c.jsxs("div",{className:"flex flex-col",style:{width:`${a}%`},children:[c.jsxs("div",{className:"flex flex-1 bg-background",style:{width:`${a}%`},children:[c.jsxs("div",{className:"shrink-0 w-[200px] h-[37px] flex items-center justify-center gap-2 sticky left-0 top-0 z-10 bg-card backdrop-blur-xs backdrop-filter",children:[c.jsx(Y.Button,{variant:"icon",size:"sm",className:"px-2",onClick:d,disabled:a<=100,children:c.jsx(zo,{className:"w-4 h-4 cursor-pointer"})}),c.jsxs("span",{className:"min-w-12 text-center select-none text-sm font-bold text-muted-foreground",children:[a,"%"]}),c.jsx(Y.Button,{variant:"icon",size:"sm",className:"px-2",onClick:v,disabled:a>=200,children:c.jsx(Yo,{className:"w-4 h-4 cursor-pointer"})})]}),c.jsxs("div",{className:"flex justify-between font-mono p-2 w-full text-xs text-muted-foreground bg-card",children:[c.jsx("span",{children:"0ms"}),c.jsx("span",{children:ye(Math.floor((s-n.startTime)*.25))}),c.jsx("span",{children:ye(Math.floor((s-n.startTime)*.5))}),c.jsx("span",{children:ye(Math.floor((s-n.startTime)*.75))}),c.jsx("span",{children:ye(Math.floor(s-n.startTime))})]})]}),c.jsx("div",{className:"flex flex-col h-full",style:{width:`${a}%`},children:o?.map(m=>c.jsx(or,{traceId:m.id,traceName:m.name,traceStatus:m.status,traceStartTime:m.startTime,traceEndTime:m.endTime,groupStartTime:n.startTime,groupEndTime:s,onExpand:l},m.id))})]})}),f&&c.jsx(vo,{trace:f,onClose:()=>l(void 0)})]}):null});yo.displayName="TraceTimelineComponent";const bc=()=>{const e=w.useMemo(()=>({streamName:"motia-trace-group",groupId:"default"}),[]),{data:t}=xt.useStreamGroup(e),n=X(r=>r.search);return w.useMemo(()=>t?.filter(r=>r.name.toLowerCase().includes(n.toLowerCase())||r.id.toLowerCase().includes(n.toLowerCase())),[t,n])};function wc(e){const o=Date.now(),s=typeof e=="number"?e:e.getTime(),a=Math.abs(o-s),i=Math.round(a/6e4);if(i<1)return"less than a minute";if(i===1)return"1 minute";if(i<45)return`${i} minutes`;if(i<90)return"about 1 hour";if(i<1440)return`about ${Math.round(i/60)} hours`;if(i<2520)return"1 day";if(i<43200)return`${Math.round(i/1440)} days`;if(i<64800)return"about 1 month";if(i<86400)return"about 2 months";if(i<525600)return`${Math.round(i/43200)} months`;if(i<655200)return"about 1 year";if(i<788400)return"over 1 year";if(i<525600*2)return"almost 2 years";const u=Math.round(i/525600),l=i%525600,f=525600/4;return l<f?`about ${u} years`:l<f*3?`over ${u} years`:`almost ${u+1} years`}const jc={running:"info",completed:"success",failed:"error",default:"default"},xo=w.memo(({status:e,duration:t})=>c.jsx(Y.Badge,{variant:jc[e],children:t&&e!=="failed"?t:e}));xo.displayName="TraceStatusBadge";const bo=w.memo(({groupId:e,groupName:t,groupStatus:n,groupStartTime:r,groupEndTime:o,totalSteps:s,activeSteps:a,isSelected:i})=>{const u=X(d=>d.selectTraceGroupId),l=w.useMemo(()=>o?ye(o-r):void 0,[o,r]),f=w.useCallback(()=>{u(e)},[e,u]);return c.jsx("button",{type:"button","data-testid":`trace-${e}`,className:Y.cn("motia-trace-group cursor-pointer transition-colors w-full text-left",i?"bg-muted-foreground/10":"hover:bg-muted/70"),onClick:f,children:c.jsxs("div",{className:"p-3 flex flex-col gap-1",children:[c.jsxs("div",{className:"flex flex-row justify-between items-center gap-2",children:[c.jsx("span",{className:"font-semibold text-lg truncate flex-1 min-w-0",children:t}),c.jsx(xo,{status:n,duration:l})]}),c.jsxs("div",{className:"text-xs text-muted-foreground space-y-1",children:[c.jsxs("div",{className:"flex justify-between",children:[c.jsx("div",{"data-testid":"trace-id",className:"text-xs text-muted-foreground font-mono tracking-[1px]",children:e}),c.jsxs("span",{children:[s," steps"]})]}),c.jsxs("div",{className:"flex justify-between",children:[wc(r)," ago"]}),a>0&&c.jsxs("div",{className:"text-blue-600",children:[a," active"]})]})]})},e)});bo.displayName="TraceGroupItem";const wo=w.memo(()=>{const e=bc(),t=X(a=>a.selectedTraceGroupId),n=X(a=>a.selectTraceGroupId),r=w.useMemo(()=>e?.length||0,[e]),o=w.useMemo(()=>{if(!e||e.length===0)return"";const a=e[e.length-1];return a?.status==="running"?a.id:""},[e]);w.useEffect(()=>{o&&o!==t?n(o):!o&&!r&&t&&n("")},[o,r]);const s=w.useMemo(()=>[...e].reverse(),[e]);return!e||e.length===0?null:c.jsx("div",{className:"overflow-auto",children:s.map(a=>c.jsx(bo,{groupId:a.id,groupName:a.name,groupStatus:a.status,groupStartTime:a.startTime,groupEndTime:a.endTime,totalSteps:a.metadata.totalSteps,activeSteps:a.metadata.activeSteps,isSelected:t===a.id},a.id))})});wo.displayName="TracesGroups";const jo=w.memo(()=>c.jsxs("div",{className:"grid grid-rows-[auto_1fr] h-full",children:[c.jsx(nr,{}),c.jsxs("div",{className:"grid grid-cols-[300px_1fr] overflow-hidden",children:[c.jsx("div",{className:"w-[300px] border-r border-border overflow-auto h-full","data-testid":"traces-container",children:c.jsx(wo,{})}),c.jsxs("div",{className:"overflow-auto","data-testid":"trace-details",children:[c.jsx(go,{}),c.jsx(rr,{})]})]})]}));jo.displayName="ObservabilityPage";/**
138
- * @license lucide-react v0.548.0 - ISC
139
- *
140
- * This source code is licensed under the ISC license.
141
- * See the LICENSE file in the root directory of this source tree.
142
- */const Cc=[["path",{d:"M6 5h12",key:"fvfigv"}],["path",{d:"M4 12h10",key:"oujl3d"}],["path",{d:"M12 19h8",key:"baeox8"}]],Ec=K("chart-no-axes-gantt",Cc),Co=w.memo(()=>c.jsxs("div",{"data-testid":"observability-link",children:[c.jsx(Ec,{"aria-hidden":"true"}),c.jsx("span",{children:"Tracing"})]}));Co.displayName="ObservabilityTabLabel";exports.ObservabilityPage=jo;exports.ObservabilityTabLabel=Co;
@@ -1,12 +0,0 @@
1
- /**
2
- * Formats the distance between a given date and now in human-readable format.
3
- * Implementation matching date-fns formatDistanceToNow behavior.
4
- *
5
- * Thresholds based on date-fns v4.x:
6
- * https://github.com/date-fns/date-fns/blob/main/src/formatDistance/index.ts
7
- *
8
- * @param date - The date to compare (Date object or timestamp in milliseconds)
9
- * @returns A human-readable string like "5 minutes", "about 2 hours", "3 days"
10
- */
11
- export declare function formatDistanceToNow(date: Date | number): string;
12
- //# sourceMappingURL=format-distance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-distance.d.ts","sourceRoot":"","sources":["../../src/lib/format-distance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CA0F/D"}
@@ -1,2 +0,0 @@
1
- export declare const formatDuration: (duration?: number) => string;
2
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,GAAI,WAAW,MAAM,WAM/C,CAAA"}