@tetrascience-npm/tetrascience-react-ui 0.3.0 → 0.4.0-beta.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as o,createGlobalStyle as n,keyframes as l,ThemeProvider as a}from"styled-components";import s,{forwardRef as d,useState as c,useRef as h,useEffect as p,useCallback as g,useMemo as f,createContext as u}from"react";import C from"@monaco-editor/react";import x from"react-markdown";import{Prism as m}from"react-syntax-highlighter";import b from"rehype-raw";import v from"remark-gfm";import{createPortal as w}from"react-dom";import y from"plotly.js-dist";const k={small:o`
1
+ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import i,{css as o,createGlobalStyle as n,keyframes as a,ThemeProvider as l}from"styled-components";import s,{useState as c,useRef as d,useEffect as h,useCallback as p,createContext as g,useMemo as u,useContext as f}from"react";import m from"@monaco-editor/react";import x from"react-markdown";import{Prism as b}from"react-syntax-highlighter";import C from"rehype-raw";import v from"remark-gfm";import{createPortal as w}from"react-dom";import y from"plotly.js-dist";const k={small:o`
2
2
  height: 22px;
3
3
  `,medium:o`
4
4
  height: 26px;
@@ -39,11 +39,11 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
39
39
  width: 16px;
40
40
  height: 16px;
41
41
  }
42
- `,M=({children:r,size:t="medium",variant:i="default",disabled:o=!1,iconLeft:n,iconRight:l,className:a})=>e(E,{$size:t,$variant:i,$disabled:o,className:a,children:[n&&n,r,l&&l]}),A={small:o`
42
+ `,M=({children:t,size:r="medium",variant:i="default",disabled:o=!1,iconLeft:n,iconRight:a,className:l})=>e(E,{$size:r,$variant:i,$disabled:o,className:l,children:[n&&n,t,a&&a]}),I={small:o`
43
43
  height: 34px;
44
44
  `,medium:o`
45
45
  height: 38px;
46
- `},I={primary:o`
46
+ `},_={primary:o`
47
47
  color: var(--white-900);
48
48
  background-color: var(--theme-primary, var(--blue-900));
49
49
  border: 1px solid var(--theme-primary, var(--blue-900));
@@ -96,7 +96,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
96
96
  &:active:not(:disabled) {
97
97
  background-color: var(--grey-100);
98
98
  }
99
- `},R=i.button`
99
+ `},A=i.button`
100
100
  display: inline-flex;
101
101
  align-items: center;
102
102
  justify-content: center;
@@ -108,12 +108,12 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
108
108
  transition: all 0.2s;
109
109
  font-size: 14px;
110
110
  min-height: 20px;
111
- width: ${e=>e.fullWidth?"100%":"auto"};
112
- padding: ${e=>{return r=e.size||"medium",e.noPadding?"0":"small"===r?"7px 10px":"9px 12px";var r}};
111
+ width: ${e=>e.$fullWidth?"100%":"auto"};
112
+ padding: ${e=>{return t=e.size||"medium",e.$noPadding?"0":"small"===t?"7px 10px":"9px 12px";var t}};
113
113
  user-select: none;
114
114
 
115
- ${e=>A[e.size||"medium"]}
116
- ${e=>I[e.variant||"primary"]}
115
+ ${e=>I[e.size||"medium"]}
116
+ ${e=>_[e.variant||"primary"]}
117
117
 
118
118
  &:disabled {
119
119
  cursor: not-allowed;
@@ -129,7 +129,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
129
129
  box-shadow: 0px 0px 0px 1px var(--white-900),
130
130
  0px 0px 0px 3px var(--blue-600);
131
131
  }
132
- `,N=s.forwardRef(({children:r,variant:t="primary",size:i="medium",loading:o=!1,leftIcon:n,rightIcon:l,noPadding:a=!1,fullWidth:s=!1,disabled:d,...c},h)=>e(R,{ref:h,variant:t,size:i,noPadding:a,fullWidth:s,disabled:d||o,...c,children:[n&&n,r,l&&l]}));N.displayName="Button";const _=i.button`
132
+ `,N=({children:t,variant:r="primary",size:i="medium",loading:o=!1,leftIcon:n,rightIcon:a,noPadding:l=!1,fullWidth:s=!1,disabled:c,ref:d,...h})=>e(A,{ref:d,variant:r,size:i,$noPadding:l,$fullWidth:s,disabled:c||o,...h,children:[n,t,a]}),$=i.button`
133
133
  display: flex;
134
134
  align-items: center;
135
135
  justify-content: center;
@@ -168,13 +168,13 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
168
168
  height: 20px;
169
169
  color: ${e=>e.disabled?"var(--grey-400)":"var(--blue-900)"};
170
170
  }
171
- `,B=({icon:e,selected:t=!1,disabled:i=!1,onClick:o})=>r(_,{selected:t,disabled:i,onClick:i?void 0:o,children:e}),z={small:o`
171
+ `,T=({icon:e,selected:r=!1,disabled:i=!1,onClick:o})=>t($,{selected:r,disabled:i,onClick:i?void 0:o,children:e}),R={small:o`
172
172
  padding: 12px;
173
173
  `,medium:o`
174
174
  padding: 16px;
175
175
  `,large:o`
176
176
  padding: 20px;
177
- `},H={default:o`
177
+ `},z={default:o`
178
178
  background-color: var(--theme-cardBackground, var(--white-900));
179
179
  border: 1px solid var(--theme-cardBorder, var(--grey-200));
180
180
  `,outlined:o`
@@ -184,12 +184,12 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
184
184
  background-color: var(--theme-cardBackground, var(--white-900));
185
185
  border: 1px solid var(--theme-cardBorder, var(--grey-200));
186
186
  box-shadow: 0px 2px 4px var(--black-100);
187
- `},T=i.div`
187
+ `},S=i.div`
188
188
  border-radius: var(--theme-radius-large, 16px);
189
189
  width: ${e=>e.$fullWidth?"100%":"auto"};
190
- ${e=>H[e.$variant]}
190
+ ${e=>z[e.$variant]}
191
191
  transition: all 0.2s ease;
192
- `,$=i.div`
192
+ `,B=i.div`
193
193
  font-family: "Inter", sans-serif;
194
194
  font-size: 14px;
195
195
  font-style: normal;
@@ -198,17 +198,17 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
198
198
  background-color: var(--grey-50);
199
199
  border-top-left-radius: var(--theme-radius-large, 16px);
200
200
  border-top-right-radius: var(--theme-radius-large, 16px);
201
- ${e=>z[e.$size]}
202
- `,P=i.div`
203
- ${e=>z[e.$size]}
204
- `,S=d(({children:t,title:i,size:o="medium",variant:n="default",className:l,fullWidth:a=!1,...s},d)=>e(T,{ref:d,$size:o,$variant:n,$fullWidth:a,className:l,...s,children:[i&&r($,{$size:o,children:i}),r(P,{$size:o,children:t})]}));S.displayName="Card";const O=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.75C2 4.33579 2.33579 4 2.75 4H17.25C17.6642 4 18 4.33579 18 4.75C18 5.16421 17.6642 5.5 17.25 5.5H2.75C2.33579 5.5 2 5.16421 2 4.75ZM2 15.25C2 14.8358 2.33579 14.5 2.75 14.5H10.25C10.6642 14.5 11 14.8358 11 15.25C11 15.6642 10.6642 16 10.25 16H2.75C2.33579 16 2 15.6642 2 15.25Z",fill:t}),r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 10C2 9.58579 2.33579 9.25 2.75 9.25H17.25C17.6642 9.25 18 9.58579 18 10C18 10.4142 17.6642 10.75 17.25 10.75H2.75C2.33579 10.75 2 10.4142 2 10Z",fill:t})]}),V=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 16.5V3.5H3.75C3.55109 3.5 3.36032 3.42098 3.21967 3.28033C3.07902 3.13968 3 2.94891 3 2.75C3 2.55109 3.07902 2.36032 3.21967 2.21967C3.36032 2.07902 3.55109 2 3.75 2H16.25C16.4489 2 16.6397 2.07902 16.7803 2.21967C16.921 2.36032 17 2.55109 17 2.75C17 2.94891 16.921 3.13968 16.7803 3.28033C16.6397 3.42098 16.4489 3.5 16.25 3.5H16V16.5H16.25C16.4489 16.5 16.6397 16.579 16.7803 16.7197C16.921 16.8603 17 17.0511 17 17.25C17 17.4489 16.921 17.6397 16.7803 17.7803C16.6397 17.921 16.4489 18 16.25 18H12.75C12.5511 18 12.3603 17.921 12.2197 17.7803C12.079 17.6397 12 17.4489 12 17.25V14.75C12 14.5511 11.921 14.3603 11.7803 14.2197C11.6397 14.079 11.4489 14 11.25 14H8.75C8.55109 14 8.36032 14.079 8.21967 14.2197C8.07902 14.3603 8 14.5511 8 14.75V17.25C8 17.4489 7.92098 17.6397 7.78033 17.7803C7.63968 17.921 7.44891 18 7.25 18H3.75C3.55109 18 3.36032 17.921 3.21967 17.7803C3.07902 17.6397 3 17.4489 3 17.25C3 17.0511 3.07902 16.8603 3.21967 16.7197C3.36032 16.579 3.55109 16.5 3.75 16.5H4ZM7 5.5C7 5.36739 7.05268 5.24021 7.14645 5.14645C7.24021 5.05268 7.36739 5 7.5 5H8.5C8.63261 5 8.75979 5.05268 8.85355 5.14645C8.94732 5.24021 9 5.36739 9 5.5V6.5C9 6.63261 8.94732 6.75979 8.85355 6.85355C8.75979 6.94732 8.63261 7 8.5 7H7.5C7.36739 7 7.24021 6.94732 7.14645 6.85355C7.05268 6.75979 7 6.63261 7 6.5V5.5ZM7.5 9C7.36739 9 7.24021 9.05268 7.14645 9.14645C7.05268 9.24021 7 9.36739 7 9.5V10.5C7 10.6326 7.05268 10.7598 7.14645 10.8536C7.24021 10.9473 7.36739 11 7.5 11H8.5C8.63261 11 8.75979 10.9473 8.85355 10.8536C8.94732 10.7598 9 10.6326 9 10.5V9.5C9 9.36739 8.94732 9.24021 8.85355 9.14645C8.75979 9.05268 8.63261 9 8.5 9H7.5ZM11 5.5C11 5.36739 11.0527 5.24021 11.1464 5.14645C11.2402 5.05268 11.3674 5 11.5 5H12.5C12.6326 5 12.7598 5.05268 12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V6.5C13 6.63261 12.9473 6.75979 12.8536 6.85355C12.7598 6.94732 12.6326 7 12.5 7H11.5C11.3674 7 11.2402 6.94732 11.1464 6.85355C11.0527 6.75979 11 6.63261 11 6.5V5.5ZM11.5 9C11.3674 9 11.2402 9.05268 11.1464 9.14645C11.0527 9.24021 11 9.36739 11 9.5V10.5C11 10.6326 11.0527 10.7598 11.1464 10.8536C11.2402 10.9473 11.3674 11 11.5 11H12.5C12.6326 11 12.7598 10.9473 12.8536 10.8536C12.9473 10.7598 13 10.6326 13 10.5V9.5C13 9.36739 12.9473 9.24021 12.8536 9.14645C12.7598 9.05268 12.6326 9 12.5 9H11.5Z",fill:e})}),D=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.997 5.25C17.9972 4.69436 17.7917 4.15832 17.4202 3.74512C17.0488 3.33191 16.5375 3.07077 15.985 3.012C15.9262 2.45948 15.6651 1.94825 15.2519 1.57677C14.8387 1.20529 14.3026 0.999846 13.747 1H12.247C11.6914 0.999846 11.1553 1.20529 10.7421 1.57677C10.3289 1.94825 10.0678 2.45948 10.009 3.012C9.134 3.104 8.409 3.698 8.125 4.5H10.997C11.66 4.5 12.2959 4.76339 12.7648 5.23223C13.2336 5.70107 13.497 6.33696 13.497 7V14H15.747C16.3437 14 16.916 13.7629 17.338 13.341C17.7599 12.919 17.997 12.3467 17.997 11.75V5.25ZM12.247 2.5C12.0481 2.5 11.8573 2.57902 11.7167 2.71967C11.576 2.86032 11.497 3.05109 11.497 3.25V3.5H14.497V3.25C14.497 3.05109 14.418 2.86032 14.2773 2.71967C14.1367 2.57902 13.9459 2.5 13.747 2.5H12.247Z",fill:t}),r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C2.73478 6 2.48043 6.10536 2.29289 6.29289C2.10536 6.48043 2 6.73478 2 7V17C2 17.2652 2.10536 17.5196 2.29289 17.7071C2.48043 17.8946 2.73478 18 3 18H11C11.2652 18 11.5196 17.8946 11.7071 17.7071C11.8946 17.5196 12 17.2652 12 17V7C12 6.73478 11.8946 6.48043 11.7071 6.29289C11.5196 6.10536 11.2652 6 11 6H3ZM9.874 10.166C9.92992 10.0841 9.96904 9.99189 9.98909 9.89475C10.0091 9.79761 10.0097 9.69746 9.99081 9.6001C9.97189 9.50273 9.93385 9.41009 9.87889 9.32752C9.82392 9.24496 9.75313 9.17412 9.6706 9.1191C9.58807 9.06408 9.49545 9.02598 9.3981 9.007C9.30075 8.98802 9.2006 8.98854 9.10345 9.00852C9.0063 9.02851 8.91407 9.06757 8.83212 9.12344C8.75017 9.1793 8.68011 9.25087 8.626 9.334L6.133 13.073L5.28 12.22C5.13783 12.0875 4.94978 12.0154 4.75548 12.0188C4.56118 12.0223 4.37579 12.101 4.23838 12.2384C4.10097 12.3758 4.02225 12.5612 4.01883 12.7555C4.0154 12.9498 4.08752 13.1378 4.22 13.28L5.72 14.78C5.79844 14.8584 5.8933 14.9184 5.99773 14.9558C6.10217 14.9931 6.21359 15.0068 6.32396 14.9959C6.43434 14.985 6.54092 14.9498 6.63603 14.8927C6.73114 14.8357 6.81242 14.7582 6.874 14.666L9.874 10.166Z",fill:t})]}),U=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7045 4.15347C17.034 4.4045 17.0976 4.87509 16.8466 5.20457L8.84657 15.7046C8.71541 15.8767 8.51627 15.9838 8.30033 15.9983C8.08439 16.0129 7.87271 15.9334 7.71967 15.7804L3.21967 11.2804C2.92678 10.9875 2.92678 10.5126 3.21967 10.2197C3.51256 9.92682 3.98744 9.92682 4.28033 10.2197L8.17351 14.1129L15.6534 4.29551C15.9045 3.96603 16.3751 3.90243 16.7045 4.15347Z",fill:e})}),Z=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.8566 8.19113C14.1002 7.85614 14.0261 7.38708 13.6911 7.14345C13.3561 6.89982 12.8871 6.97388 12.6434 7.30887L9.15969 12.099L7.28033 10.2197C6.98744 9.92678 6.51256 9.92678 6.21967 10.2197C5.92678 10.5126 5.92678 10.9874 6.21967 11.2803L8.71967 13.7803C8.87477 13.9354 9.08999 14.0149 9.30867 13.9977C9.52734 13.9805 9.72754 13.8685 9.85655 13.6911L13.8566 8.19113Z",fill:e})}),G=({fill:t="currentColor",width:i="16",height:o="16"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 16 16",fill:"none",children:[r("path",{d:"M11.2016 1.59961H4.80156C3.03676 1.59961 1.60156 3.03481 1.60156 4.79961V11.1996C1.60156 12.9644 3.03676 14.3996 4.80156 14.3996H11.2016C12.9664 14.3996 14.4016 12.9644 14.4016 11.1996V4.79961C14.4016 3.03481 12.9664 1.59961 11.2016 1.59961Z",fill:t}),r("path",{d:"M7.63305 10.8968L11.4331 6.09685C11.7075 5.75045 11.6491 5.24725 11.3027 4.97285C10.9555 4.69925 10.4531 4.75845 10.1787 5.10405L6.96665 9.16085L5.80025 7.86485C5.50425 7.53685 4.99945 7.50965 4.67065 7.80565C4.34265 8.10085 4.31625 8.60645 4.61145 8.93525L6.41145 10.9352C6.56265 11.104 6.77945 11.2 7.00585 11.2H7.03065C7.26665 11.1928 7.48665 11.0816 7.63305 10.8968Z",fill:"white"})]}),W=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{width:t,height:i,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.21967 8.21967C5.51256 7.92678 5.98744 7.92678 6.28033 8.21967L10 11.9393L13.7197 8.21967C14.0126 7.92678 14.4874 7.92678 14.7803 8.21967C15.0732 8.51256 15.0732 8.98744 14.7803 9.28033L10.5303 13.5303C10.3897 13.671 10.1989 13.75 10 13.75C9.80109 13.75 9.61032 13.671 9.46967 13.5303L5.21967 9.28033C4.92678 8.98744 4.92678 8.51256 5.21967 8.21967Z",fill:e})}),j=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{d:"M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),K=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 2C3.65326 2 3.08097 2.23705 2.65901 2.65901C2.23705 3.08097 2 3.65326 2 4.25V15.75C2 16.3467 2.23705 16.919 2.65901 17.341C3.08097 17.7629 3.65326 18 4.25 18H15.75C16.3467 18 16.919 17.7629 17.341 17.341C17.7629 16.919 18 16.3467 18 15.75V4.25C18 3.65326 17.7629 3.08097 17.341 2.65901C16.919 2.23705 16.3467 2 15.75 2H4.25ZM8.28 8.28C8.41248 8.13783 8.4846 7.94978 8.48118 7.75548C8.47775 7.56118 8.39903 7.37579 8.26162 7.23838C8.12421 7.10097 7.93882 7.02225 7.74452 7.01883C7.55022 7.0154 7.36217 7.08752 7.22 7.22L4.97 9.47C4.82955 9.61063 4.75066 9.80125 4.75066 10C4.75066 10.1988 4.82955 10.3894 4.97 10.53L7.22 12.78C7.36217 12.9125 7.55022 12.9846 7.74452 12.9812C7.93882 12.9777 8.12421 12.899 8.26162 12.7616C8.39903 12.6242 8.47775 12.4388 8.48118 12.2445C8.4846 12.0502 8.41248 11.8622 8.28 11.72L6.56 10L8.28 8.28ZM12.78 7.22C12.7113 7.14631 12.6285 7.08721 12.5365 7.04622C12.4445 7.00523 12.3452 6.98319 12.2445 6.98141C12.1438 6.97963 12.0438 6.99816 11.9504 7.03588C11.857 7.0736 11.7722 7.12974 11.701 7.20096C11.6297 7.27218 11.5736 7.35701 11.5359 7.4504C11.4982 7.54379 11.4796 7.64382 11.4814 7.74452C11.4832 7.84523 11.5052 7.94454 11.5462 8.03654C11.5872 8.12854 11.6463 8.21134 11.72 8.28L13.44 10L11.72 11.72C11.6463 11.7887 11.5872 11.8715 11.5462 11.9635C11.5052 12.0555 11.4832 12.1548 11.4814 12.2555C11.4796 12.3562 11.4982 12.4562 11.5359 12.5496C11.5736 12.643 11.6297 12.7278 11.701 12.799C11.7722 12.8703 11.857 12.9264 11.9504 12.9641C12.0438 13.0018 12.1438 13.0204 12.2445 13.0186C12.3452 13.0168 12.4445 12.9948 12.5365 12.9538C12.6285 12.9128 12.7113 12.8537 12.78 12.78L15.03 10.53C15.1705 10.3894 15.2493 10.1988 15.2493 10C15.2493 9.80125 15.1705 9.61063 15.03 9.47L12.78 7.22Z",fill:e})}),Y=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.25C2 3.65326 2.23705 3.08097 2.65901 2.65901C3.08097 2.23705 3.65326 2 4.25 2H15.75C16.3467 2 16.919 2.23705 17.341 2.65901C17.7629 3.08097 18 3.65326 18 4.25V12.75C18 13.3467 17.7629 13.919 17.341 14.341C16.919 14.7629 16.3467 15 15.75 15H12.645C12.8403 15.6543 13.2226 16.2372 13.745 16.677C13.8625 16.7762 13.9467 16.9092 13.9861 17.0579C14.0255 17.2065 14.0182 17.3637 13.9653 17.5081C13.9123 17.6526 13.8163 17.7772 13.6901 17.8652C13.564 17.9532 13.4138 18.0002 13.26 18H6.74C6.58628 18 6.43627 17.9528 6.31027 17.8647C6.18427 17.7767 6.08838 17.652 6.03557 17.5077C5.98275 17.3633 5.97557 17.2062 6.015 17.0576C6.05443 16.9091 6.13856 16.7762 6.256 16.677C6.77799 16.2371 7.15999 15.6542 7.355 15H4.25C3.65326 15 3.08097 14.7629 2.65901 14.341C2.23705 13.919 2 13.3467 2 12.75V4.25ZM3.5 4.25C3.5 4.05109 3.57902 3.86032 3.71967 3.71967C3.86032 3.57902 4.05109 3.5 4.25 3.5H15.75C15.9489 3.5 16.1397 3.57902 16.2803 3.71967C16.421 3.86032 16.5 4.05109 16.5 4.25V11.75C16.5 11.9489 16.421 12.1397 16.2803 12.2803C16.1397 12.421 15.9489 12.5 15.75 12.5H4.25C4.05109 12.5 3.86032 12.421 3.71967 12.2803C3.57902 12.1397 3.5 11.9489 3.5 11.75V4.25Z",fill:e})}),F=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[r("path",{d:"M2 4.25C2 3.00736 3.00736 2 4.25 2H10.75C11.9926 2 13 3.00736 13 4.25V5.5H9.25C7.17893 5.5 5.5 7.17893 5.5 9.25V13H4.25C3.00736 13 2 11.9926 2 10.75V4.25Z",fill:t}),r("path",{d:"M9.25 7C8.00736 7 7 8.00736 7 9.25V15.75C7 16.9926 8.00736 18 9.25 18H15.75C16.9926 18 18 16.9926 18 15.75V9.25C18 8.00736 16.9926 7 15.75 7H9.25Z",fill:t})]}),X=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{d:"M10.362 1.093C10.2511 1.0319 10.1266 0.999851 10 0.999851C9.87341 0.999851 9.74887 1.0319 9.638 1.093L2.523 5.018L10 9.143L17.477 5.018L10.362 1.093ZM18 6.443L10.75 10.443V18.693L17.612 14.907C17.7295 14.8422 17.8275 14.7471 17.8958 14.6315C17.964 14.516 18 14.3842 18 14.25V6.443ZM9.25 18.693V10.443L2 6.443V14.25C1.99997 14.3842 2.03596 14.516 2.10421 14.6315C2.17245 14.7471 2.27046 14.8422 2.388 14.907L9.25 18.693Z",fill:e})}),q=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1C13.866 1 17 2.79 17 5C17 7.21 13.866 9 10 9C6.134 9 3 7.21 3 5C3 2.79 6.134 1 10 1ZM15.694 9.13C16.158 8.866 16.604 8.547 17 8.178V10C17 12.21 13.866 14 10 14C6.134 14 3 12.21 3 10V8.178C3.396 8.548 3.842 8.866 4.306 9.131C5.838 10.006 7.854 10.5 10 10.5C12.146 10.5 14.162 10.006 15.694 9.13ZM3 13.179V15C3 17.21 6.134 19 10 19C13.866 19 17 17.21 17 15V13.178C16.604 13.548 16.158 13.866 15.694 14.131C14.162 15.006 12.146 15.5 10 15.5C7.854 15.5 5.838 15.006 4.306 14.13C3.83547 13.8644 3.39722 13.5453 3 13.179Z",fill:e})}),Q=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V10.25C10.75 10.6642 10.4142 11 10 11C9.58579 11 9.25 10.6642 9.25 10.25V5.75C9.25 5.33579 9.58579 5 10 5ZM10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44771 13 9 13.4477 9 14C9 14.5523 9.44771 15 10 15Z",fill:e})}),J=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4845 2.49499C9.15808 1.32833 10.842 1.32833 11.5156 2.495L17.7943 13.37C18.4678 14.5367 17.6259 15.995 16.2787 15.995H3.72136C2.37421 15.995 1.53224 14.5367 2.20582 13.37L8.4845 2.49499ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V9.25C10.75 9.66421 10.4142 10 10 10C9.58579 10 9.25 9.66421 9.25 9.25L9.25 5.75C9.25 5.33579 9.58579 5 10 5ZM10 14C10.5523 14 11 13.5523 11 13C11 12.4477 10.5523 12 10 12C9.44772 12 9 12.4477 9 13C9 13.5523 9.44772 14 10 14Z",fill:e})}),ee=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.84288 1.804C7.88817 1.57739 8.01055 1.37346 8.18921 1.22689C8.36787 1.08031 8.59178 1.00014 8.82288 1H11.1829C11.414 1.00014 11.6379 1.08031 11.8165 1.22689C11.9952 1.37346 12.1176 1.57739 12.1629 1.804L12.4939 3.456C13.1923 3.72219 13.8436 4.09863 14.4229 4.571L16.0209 4.031C16.2398 3.95702 16.4775 3.96112 16.6937 4.04261C16.9099 4.1241 17.0913 4.27795 17.2069 4.478L18.3869 6.522C18.5025 6.72209 18.5453 6.95607 18.5079 7.18413C18.4706 7.4122 18.3553 7.62029 18.1819 7.773L16.9149 8.886C17.033 9.62397 17.033 10.376 16.9149 11.114L18.1819 12.227C18.3553 12.3795 18.4705 12.5874 18.5081 12.8152C18.5456 13.0431 18.5031 13.2769 18.3879 13.477L17.2079 15.522C17.0922 15.7223 16.9107 15.8763 16.6943 15.9578C16.4779 16.0393 16.2399 16.0432 16.0209 15.969L14.4229 15.429C13.8436 15.9014 13.1923 16.2778 12.4939 16.544L12.1639 18.196C12.1186 18.4226 11.9962 18.6265 11.8175 18.7731C11.6389 18.9197 11.415 18.9999 11.1839 19H8.82288C8.59178 18.9999 8.36787 18.9197 8.18921 18.7731C8.01055 18.6265 7.88817 18.4226 7.84288 18.196L7.51188 16.544C6.81342 16.2778 6.16215 15.9014 5.58288 15.429L3.98488 15.969C3.76598 16.043 3.52823 16.0389 3.31202 15.9574C3.09581 15.8759 2.91449 15.7221 2.79888 15.522L1.61888 13.478C1.50322 13.2779 1.46045 13.0439 1.49782 12.8159C1.53519 12.5878 1.65041 12.3797 1.82388 12.227L3.09088 11.113C2.97289 10.3754 2.97289 9.62364 3.09088 8.886L1.82388 7.773C1.65049 7.62047 1.53524 7.41264 1.49769 7.18478C1.46014 6.95693 1.5026 6.7231 1.61788 6.523L2.79788 4.478C2.91352 4.27773 3.09501 4.12373 3.31144 4.04223C3.52787 3.96073 3.76585 3.95676 3.98488 4.031L5.58288 4.571C6.16245 4.09852 6.81406 3.72207 7.51288 3.456L7.84288 1.804ZM10.0029 13C10.7985 13 11.5616 12.6839 12.1242 12.1213C12.6868 11.5587 13.0029 10.7956 13.0029 10C13.0029 9.20435 12.6868 8.44129 12.1242 7.87868C11.5616 7.31607 10.7985 7 10.0029 7C9.20723 7 8.44416 7.31607 7.88156 7.87868C7.31895 8.44129 7.00288 9.20435 7.00288 10C7.00288 10.7956 7.31895 11.5587 7.88156 12.1213C8.44416 12.6839 9.20723 13 10.0029 13Z",fill:e})}),re=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM16.4969 10.2041C16.389 13.6995 13.5216 16.5 10 16.5C6.41015 16.5 3.5 13.5899 3.5 10C3.5 7.12656 5.36451 4.68861 7.94969 3.82998L6.92671 5.62019C6.60171 6.18894 6.69759 6.90485 7.16078 7.36805C7.6029 7.81017 8.27833 7.91977 8.83757 7.64015L9.0123 7.55279C9.08173 7.51807 9.15829 7.5 9.23591 7.5H9.38181C9.5712 7.5 9.74433 7.607 9.82902 7.77639C9.8994 7.91716 9.8994 8.08284 9.82902 8.22361L9.80123 8.27919C9.73357 8.41452 9.59525 8.5 9.44395 8.5H8.9418C8.18614 8.5 7.48048 8.87766 7.06131 9.50641L7.01751 9.57212C6.65828 10.111 6.56795 10.7855 6.77274 11.3998C6.98201 12.0276 7.47787 12.5197 8.10338 12.7282C8.33997 12.8071 8.49984 13.0292 8.49984 13.2749V14.3246C8.49984 14.9738 9.02608 15.5 9.67523 15.5C10.0323 15.5 10.37 15.3377 10.5931 15.0589L12.2044 13.0446C12.3957 12.8056 12.4998 12.5086 12.4998 12.2025C12.4998 11.8866 12.6279 11.5791 12.8531 11.3539C13.3088 10.8982 13.3864 10.1784 13.0257 9.63738L12.5617 8.94145C12.5214 8.88091 12.4998 8.80979 12.4998 8.73703C12.4998 8.43336 12.8465 8.26002 13.0895 8.44222L13.4322 8.69925C13.748 8.93609 14.1704 8.97373 14.523 8.79746C14.7488 8.68456 15.0216 8.72887 15.1996 8.90689L16.4969 10.2041Z",fill:e})}),te=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{d:"M13.3516 2.00712C13.7619 2.06371 14.0488 2.44249 13.9922 2.85282L13.5576 6.00028H16.6973C17.1115 6.00028 17.4473 6.33607 17.4473 6.75028C17.4473 7.16448 17.1115 7.50028 16.6973 7.50028H13.3516L12.6611 12.5003H15.8008C16.215 12.5003 16.5508 12.8361 16.5508 13.2503C16.5508 13.6645 16.215 14.0003 15.8008 14.0003H12.4551L11.9922 17.3528C11.9356 17.7631 11.5568 18.05 11.1465 17.9934C10.7362 17.9368 10.4493 17.558 10.5059 17.1477L10.9404 14.0003H7.95508L7.49219 17.3528C7.43556 17.7631 7.05679 18.05 6.64648 17.9934C6.23622 17.9368 5.94927 17.558 6.00586 17.1477L6.44043 14.0003H3.30078C2.88658 14.0003 2.5508 13.6645 2.55078 13.2503C2.55078 12.8361 2.88657 12.5003 3.30078 12.5003H6.64648L7.33691 7.50028H4.19727C3.78309 7.50024 3.44728 7.16446 3.44727 6.75028C3.44727 6.33609 3.78308 6.00032 4.19727 6.00028H7.54297L8.00586 2.64774C8.06245 2.23743 8.44125 1.95055 8.85156 2.00712C9.26189 2.06371 9.54878 2.44249 9.49219 2.85282L9.05762 6.00028H12.043L12.5059 2.64774C12.5625 2.23743 12.9413 1.95055 13.3516 2.00712ZM8.85156 7.50028L8.16113 12.5003H11.1465L11.8369 7.50028H8.85156Z",fill:e})}),ie=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29292 2.29289C9.68345 1.90237 10.3166 1.90237 10.7071 2.29289L17.7071 9.29289C17.9931 9.57889 18.0787 10.009 17.9239 10.3827C17.7691 10.7564 17.4045 11 17 11H16V17C16 17.5523 15.5523 18 15 18H13C12.4477 18 12 17.5523 12 17V14C12 13.4477 11.5523 13 11 13H9.00003C8.44774 13 8.00003 13.4477 8.00003 14V17C8.00003 17.5523 7.55231 18 7.00003 18H5.00003C4.44774 18 4.00003 17.5523 4.00003 17V11H3.00003C2.59557 11 2.23093 10.7564 2.07615 10.3827C1.92137 10.009 2.00692 9.57889 2.29292 9.29289L9.29292 2.29289Z",fill:e})}),oe=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 40 40",fill:"none",children:r("path",{d:"M3.75 22.5H10.1824C11.6028 22.5 12.9013 23.3025 13.5365 24.5729L13.9635 25.4271C14.5987 26.6975 15.8972 27.5 17.3176 27.5H22.6824C24.1028 27.5 25.4013 26.6975 26.0365 25.4271L26.4635 24.5729C27.0987 23.3025 28.3972 22.5 29.8176 22.5H36.25M3.75 23.0639V30C3.75 32.0711 5.42893 33.75 7.5 33.75H32.5C34.5711 33.75 36.25 32.0711 36.25 30V23.0639C36.25 22.6901 36.1941 22.3183 36.0842 21.9611L32.0645 8.89718C31.5804 7.32371 30.1266 6.25 28.4803 6.25H11.5197C9.87339 6.25 8.41963 7.32371 7.93548 8.89718L3.91583 21.9611C3.80589 22.3183 3.75 22.6901 3.75 23.0639Z",stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})}),ne=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{d:"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM9 9C8.58579 9 8.25 9.33579 8.25 9.75C8.25 10.1642 8.58579 10.5 9 10.5H9.25293C9.41287 10.5 9.53176 10.6486 9.49707 10.8047L9.03809 12.8701C8.79522 13.963 9.62751 15 10.7471 15H11C11.4142 15 11.75 14.6642 11.75 14.25C11.75 13.8358 11.4142 13.5 11 13.5H10.7471C10.5871 13.5 10.4682 13.3514 10.5029 13.1953L10.9619 11.1299C11.2048 10.037 10.3725 9 9.25293 9H9ZM10 5C9.44771 5 9 5.44772 9 6C9 6.55228 9.44771 7 10 7C10.5523 7 11 6.55228 11 6C11 5.44772 10.5523 5 10 5Z",fill:e})}),le=({fill:e="currentColor",width:t="16",height:i="16"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 16 16",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM9 5C9 5.55228 8.55228 6 8 6C7.44772 6 7 5.55228 7 5C7 4.44772 7.44772 4 8 4C8.55228 4 9 4.44772 9 5ZM6.75 8C6.33579 8 6 8.33579 6 8.75C6 9.16421 6.33579 9.5 6.75 9.5H7.5V11.25C7.5 11.6642 7.83579 12 8.25 12C8.66421 12 9 11.6642 9 11.25V8.75C9 8.33579 8.66421 8 8.25 8H6.75Z",fill:e})}),ae=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{d:"M10.0001 1C8.76409 0.99999 7.55829 1.38167 6.54746 2.09287C5.53662 2.80407 4.77008 3.81008 4.35262 4.9734C3.93516 6.13672 3.88714 7.40058 4.21512 8.59222C4.54311 9.78387 5.2311 10.8451 6.18505 11.631C7.23705 12.5 8.00005 13.443 8.00005 14.456V15.1C7.99995 15.268 8.05628 15.4312 8.16 15.5634C8.26372 15.6956 8.40883 15.7891 8.57205 15.829C9.51025 16.0582 10.4899 16.0582 11.4281 15.829C11.5913 15.7891 11.7364 15.6956 11.8401 15.5634C11.9438 15.4312 12.0001 15.268 12.0001 15.1V14.456C12.0001 13.443 12.7621 12.499 13.8151 11.631C14.769 10.8451 15.457 9.78387 15.785 8.59222C16.113 7.40058 16.0649 6.13672 15.6475 4.9734C15.23 3.81008 14.4635 2.80407 13.4526 2.09287C12.4418 1.38167 11.236 0.99999 10.0001 1ZM8.86305 17.414C8.76568 17.3992 8.66633 17.4036 8.57069 17.4272C8.47505 17.4508 8.38498 17.4929 8.30563 17.5513C8.14538 17.6691 8.03852 17.8458 8.00855 18.0425C7.97858 18.2392 8.02796 18.4397 8.14583 18.5999C8.2637 18.7602 8.44039 18.867 8.63705 18.897C9.54052 19.0344 10.4596 19.0344 11.3631 18.897C11.5597 18.867 11.7364 18.7602 11.8543 18.5999C11.9721 18.4397 12.0215 18.2392 11.9916 18.0425C11.9616 17.8458 11.8547 17.6691 11.6945 17.5513C11.5342 17.4334 11.3337 17.384 11.1371 17.414C10.3834 17.5288 9.61671 17.5288 8.86305 17.414Z",fill:e})}),se=({fill:e="currentColor",width:t="16",height:i="16"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 16 16",fill:"none",children:r("path",{d:"M11.5 1C9.567 1 8 2.567 8 4.5V7H2.5C1.67157 7 1 7.67157 1 8.5V13.5C1 14.3284 1.67157 15 2.5 15H9.5C10.3284 15 11 14.3284 11 13.5V8.5C11 7.67157 10.3284 7 9.5 7V4.5C9.5 3.39543 10.3954 2.5 11.5 2.5C12.6046 2.5 13.5 3.39543 13.5 4.5V6.25C13.5 6.66421 13.8358 7 14.25 7C14.6642 7 15 6.66421 15 6.25V4.5C15 2.567 13.433 1 11.5 1Z",fill:e})}),de=({fill:e="currentColor",width:t="16",height:i="16"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 16 16",fill:"none",children:r("path",{d:"M3.75 7.25C3.33579 7.25 3 7.58579 3 8C3 8.41421 3.33579 8.75 3.75 8.75L12.25 8.75C12.6642 8.75 13 8.41421 13 8C13 7.58579 12.6642 7.25 12.25 7.25H3.75Z",fill:e})}),ce=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{width:t,height:i,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("path",{d:"M3.10526 2.28868C2.85362 2.25302 2.60104 2.34722 2.43421 2.53895C2.26738 2.73068 2.209 2.99386 2.27911 3.23815L3.69276 8.16402C3.87733 8.80713 4.4655 9.25024 5.13456 9.25024H11.25C11.6642 9.25024 12 9.58603 12 10.0002C12 10.4145 11.6642 10.7502 11.25 10.7502H5.13457C4.4655 10.7502 3.87733 11.1934 3.69277 11.8365L2.27911 16.7624C2.209 17.0067 2.26738 17.2698 2.43421 17.4616C2.60104 17.6533 2.85362 17.7475 3.10526 17.7118C8.94303 16.8844 14.221 14.319 18.3983 10.5576C18.5563 10.4154 18.6465 10.2128 18.6465 10.0003C18.6465 9.7877 18.5563 9.58513 18.3983 9.4429C14.221 5.68154 8.94303 3.1161 3.10526 2.28868Z",fill:e})}),he=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{d:"M2.69533 14.7623L1.43355 17.9168C1.27028 18.3249 1.67532 18.73 2.08348 18.5667L5.23795 17.3049C5.74091 17.1037 6.19777 16.8025 6.58081 16.4194L17.5 5.50072C18.3284 4.67229 18.3284 3.32914 17.5 2.50072C16.6716 1.67229 15.3284 1.67229 14.5 2.50071L3.58081 13.4194C3.19777 13.8025 2.89652 14.2593 2.69533 14.7623Z",fill:e})}),pe=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[r("path",{d:"M12 8.99908C11.7348 8.99908 11.4804 8.89372 11.2929 8.70618C11.1054 8.51865 11 8.26429 11 7.99908V2.99908C11 2.44708 11.45 1.99208 11.997 2.06908C13.4939 2.28487 14.8808 2.97941 15.9502 4.04884C17.0197 5.11828 17.7142 6.50515 17.93 8.00208C18.008 8.54908 17.552 8.99908 17 8.99908H12Z",fill:t}),r("path",{d:"M8.003 4.07083C8.55 3.99483 9 4.44982 9 5.00082V10.0008C9 10.266 9.10536 10.5204 9.29289 10.7079C9.48043 10.8955 9.73478 11.0008 10 11.0008H15C15.552 11.0008 16.008 11.4508 15.93 11.9978C15.6769 13.7491 14.77 15.3396 13.3918 16.4494C12.0135 17.5591 10.2662 18.1058 8.5012 17.9795C6.73622 17.8532 5.08455 17.0632 3.87841 15.7685C2.67226 14.4737 2.00113 12.7703 2 11.0008C2.00009 9.31693 2.60701 7.68946 3.70953 6.41668C4.81205 5.1439 6.33633 4.31107 8.003 4.07083Z",fill:t})]}),ge=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.157 2.17646C7.78976 2.02451 7.37724 2.02451 7.01 2.17646L2.926 3.86646C2.65219 3.97987 2.41812 4.17185 2.25331 4.41817C2.08851 4.66448 2.00036 4.9541 2 5.25046V16.1275C1.99997 16.3742 2.06079 16.617 2.17705 16.8346C2.29332 17.0522 2.46146 17.2377 2.66656 17.3748C2.87167 17.5118 3.10741 17.5962 3.35291 17.6204C3.59841 17.6446 3.84609 17.6079 4.074 17.5135L7.584 16.0615L11.844 17.8235C12.2109 17.9751 12.6231 17.9751 12.99 17.8235L17.073 16.1335C17.3468 16.0203 17.581 15.8285 17.746 15.5824C17.911 15.3363 17.9994 15.0468 18 14.7505V3.87246C18 3.6259 17.9391 3.38315 17.8229 3.1657C17.7067 2.94824 17.5387 2.76278 17.3337 2.62574C17.1287 2.4887 16.8932 2.4043 16.6478 2.38001C16.4024 2.35571 16.1549 2.39228 15.927 2.48646L12.417 3.93846L8.157 2.17646ZM7.58 5.00046C7.77891 5.00046 7.96968 5.07948 8.11033 5.22013C8.25098 5.36079 8.33 5.55155 8.33 5.75046V12.2505C8.33 12.4494 8.25098 12.6401 8.11033 12.7808C7.96968 12.9214 7.77891 13.0005 7.58 13.0005C7.38109 13.0005 7.19032 12.9214 7.04967 12.7808C6.90902 12.6401 6.83 12.4494 6.83 12.2505V5.75046C6.83 5.55155 6.90902 5.36079 7.04967 5.22013C7.19032 5.07948 7.38109 5.00046 7.58 5.00046ZM13.17 7.75046C13.17 7.55155 13.091 7.36079 12.9503 7.22013C12.8097 7.07948 12.6189 7.00046 12.42 7.00046C12.2211 7.00046 12.0303 7.07948 11.8897 7.22013C11.749 7.36079 11.67 7.55155 11.67 7.75046V14.2505C11.67 14.4494 11.749 14.6401 11.8897 14.7808C12.0303 14.9214 12.2211 15.0005 12.42 15.0005C12.6189 15.0005 12.8097 14.9214 12.9503 14.7808C13.091 14.6401 13.17 14.4494 13.17 14.2505V7.75046Z",fill:e})}),fe=({fill:e="currentColor",width:t="16",height:i="16"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 16 16",fill:"none",children:r("path",{d:"M8.75 3.75C8.75 3.33579 8.41421 3 8 3C7.58579 3 7.25 3.33579 7.25 3.75V7.25H3.75C3.33579 7.25 3 7.58579 3 8C3 8.41421 3.33579 8.75 3.75 8.75L7.25 8.75V12.25C7.25 12.6642 7.58579 13 8 13C8.41421 13 8.75 12.6642 8.75 12.25V8.75L12.25 8.75C12.6642 8.75 13 8.41421 13 8C13 7.58579 12.6642 7.25 12.25 7.25H8.75V3.75Z",fill:e})}),ue=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{d:"M10.0036 8C10.7993 8 11.5623 7.68393 12.1249 7.12132C12.6875 6.55871 13.0036 5.79565 13.0036 5C13.0036 4.20435 12.6875 3.44129 12.1249 2.87868C11.5623 2.31607 10.7993 2 10.0036 2C9.20797 2 8.44491 2.31607 7.8823 2.87868C7.31969 3.44129 7.00362 4.20435 7.00362 5C7.00362 5.79565 7.31969 6.55871 7.8823 7.12132C8.44491 7.68393 9.20797 8 10.0036 8ZM3.46862 14.493C3.37578 14.7411 3.36554 15.0126 3.43941 15.267C3.51329 15.5214 3.66733 15.7452 3.87862 15.905C5.62995 17.266 7.7856 18.0034 10.0036 18C12.3136 18 14.4416 17.216 16.1346 15.9C16.5646 15.567 16.7386 14.997 16.5426 14.49C16.0349 13.168 15.1382 12.0311 13.9709 11.2292C12.8037 10.4274 11.4207 9.99829 10.0046 9.99861C8.58845 9.99894 7.20569 10.4287 6.03881 11.231C4.87193 12.0334 3.97578 13.1708 3.46862 14.493Z",fill:e})}),Ce=({fill:e="currentColor",width:t="16",height:i="16"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 16 16",fill:"none",children:r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM9 11.5C9 12.0523 8.55228 12.5 8 12.5C7.44772 12.5 7 12.0523 7 11.5C7 10.9477 7.44772 10.5 8 10.5C8.55228 10.5 9 10.9477 9 11.5ZM7.29303 5.29289C7.68355 4.90237 8.31671 4.90237 8.70724 5.29289C9.09776 5.68342 9.09776 6.31658 8.70724 6.70711C8.58354 6.83081 8.43743 6.91429 8.2827 6.95959C7.82404 7.09387 7.25013 7.52576 7.25013 8.25V8.50022C7.25013 8.91444 7.58592 9.25022 8.00013 9.25022C8.41435 9.25022 8.75013 8.91444 8.75013 8.50022V8.38522C9.12313 8.26818 9.47391 8.06176 9.7679 7.76777C10.7442 6.79146 10.7442 5.20854 9.7679 4.23223C8.79159 3.25592 7.20868 3.25592 6.23237 4.23223C5.93947 4.52513 5.93947 5 6.23237 5.29289C6.52526 5.58579 7.00013 5.58579 7.29303 5.29289Z",fill:e})}),xe=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60597 12.9691C4.85946 13.2967 4.79938 13.7678 4.47179 14.0213C3.87925 14.4798 3.5 15.1954 3.5 16C3.5 16.1569 3.51437 16.31 3.54177 16.4582C3.68996 16.4856 3.84307 16.5 4 16.5C4.80458 16.5 5.52023 16.1208 5.97873 15.5282C6.23222 15.2006 6.70328 15.1405 7.03087 15.394C7.35846 15.6475 7.41854 16.1186 7.16505 16.4462C6.4347 17.39 5.2884 18 4 18C3.54003 18 3.09667 17.9221 2.6834 17.778C2.46722 17.7027 2.29728 17.5328 2.22195 17.3166C2.07794 16.9033 2 16.46 2 16C2 14.7116 2.60997 13.5653 3.55383 12.835C3.88142 12.5815 4.35248 12.6415 4.60597 12.9691Z",fill:t}),r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75236 12C6.40714 12.8376 7.16237 13.5929 8 14.2476V18.25C8 18.6642 8.33579 19 8.75 19C11.5114 19 13.75 16.7614 13.75 14C13.75 13.5097 13.6792 13.035 13.5471 12.5861C16.8467 10.2297 19 6.36651 19 2C19 1.91234 18.9991 1.82486 18.9974 1.73759C18.9894 1.33502 18.665 1.01058 18.2624 1.0026C18.1751 1.00087 18.0877 1 18 1C13.6335 1 9.77032 3.15331 7.41387 6.45291C6.96496 6.32078 6.49028 6.25 6 6.25C3.23858 6.25 1 8.48858 1 11.25C1 11.6642 1.33579 12 1.75 12H5.75236ZM13 9C14.1046 9 15 8.10457 15 7C15 5.89543 14.1046 5 13 5C11.8954 5 11 5.89543 11 7C11 8.10457 11.8954 9 13 9Z",fill:t})]}),me=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{width:i,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r("path",{d:"M9 16C12.866 16 16 12.866 16 9C16 5.13401 12.866 2 9 2C5.13401 2 2 5.13401 2 9C2 12.866 5.13401 16 9 16Z",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M18 18L14 14",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),be=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[r("path",{d:"M8 10C8 9.60218 8.15804 9.22064 8.43934 8.93934C8.72064 8.65804 9.10218 8.5 9.5 8.5C9.89782 8.5 10.2794 8.65804 10.5607 8.93934C10.842 9.22064 11 9.60218 11 10C11 10.3978 10.842 10.7794 10.5607 11.0607C10.2794 11.342 9.89782 11.5 9.5 11.5C9.10218 11.5 8.72064 11.342 8.43934 11.0607C8.15804 10.7794 8 10.3978 8 10Z",fill:t}),r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 2C4.10218 2 3.72064 2.15804 3.43934 2.43934C3.15804 2.72065 3 3.10218 3 3.5V16.5C3 16.8978 3.15804 17.2794 3.43934 17.5607C3.72064 17.842 4.10218 18 4.5 18H15.5C15.8978 18 16.2794 17.842 16.5607 17.5607C16.842 17.2794 17 16.8978 17 16.5V7.621C16.9997 7.22331 16.8414 6.84204 16.56 6.561L12.44 2.439C12.3005 2.29961 12.1349 2.1891 11.9527 2.11377C11.7705 2.03844 11.5752 1.99978 11.378 2H4.5ZM9.5 7C9.03881 7.00024 8.58388 7.10681 8.17056 7.31143C7.75725 7.51605 7.39667 7.8132 7.11685 8.17981C6.83703 8.54641 6.64551 8.9726 6.55715 9.42525C6.46879 9.8779 6.48598 10.3448 6.60739 10.7897C6.7288 11.2347 6.95116 11.6456 7.25718 11.9906C7.5632 12.3357 7.94466 12.6055 8.3719 12.7792C8.79915 12.9528 9.26068 13.0257 9.72064 12.992C10.1806 12.9583 10.6266 12.819 11.024 12.585L12.22 13.78C12.2887 13.8537 12.3715 13.9128 12.4635 13.9538C12.5555 13.9948 12.6548 14.0168 12.7555 14.0186C12.8562 14.0204 12.9562 14.0018 13.0496 13.9641C13.143 13.9264 13.2278 13.8703 13.299 13.799C13.3703 13.7278 13.4264 13.643 13.4641 13.5496C13.5018 13.4562 13.5204 13.3562 13.5186 13.2555C13.5168 13.1548 13.4948 13.0555 13.4538 12.9635C13.4128 12.8715 13.3537 12.7887 13.28 12.72L12.085 11.524C12.3538 11.0683 12.4972 10.5496 12.5009 10.0206C12.5045 9.49158 12.3682 8.97099 12.1057 8.51165C11.8432 8.0523 11.464 7.67053 11.0063 7.40506C10.5487 7.13958 10.029 6.99984 9.5 7Z",fill:t})]}),ve=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[r("path",{d:"M6.5 9C6.5 8.33696 6.76339 7.70107 7.23223 7.23223C7.70107 6.76339 8.33696 6.5 9 6.5C9.66304 6.5 10.2989 6.76339 10.7678 7.23223C11.2366 7.70107 11.5 8.33696 11.5 9C11.5 9.66304 11.2366 10.2989 10.7678 10.7678C10.2989 11.2366 9.66304 11.5 9 11.5C8.33696 11.5 7.70107 11.2366 7.23223 10.7678C6.76339 10.2989 6.5 9.66304 6.5 9Z",fill:t}),r("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18ZM9 5C8.37415 5.0001 7.75705 5.14706 7.19833 5.42906C6.63961 5.71106 6.15485 6.12023 5.78304 6.62367C5.41124 7.12711 5.16275 7.71077 5.05756 8.32773C4.95238 8.94468 4.99343 9.5777 5.17741 10.1759C5.3614 10.7741 5.68319 11.3208 6.1169 11.772C6.55061 12.2232 7.08415 12.5663 7.67462 12.7738C8.26508 12.9813 8.89599 13.0473 9.51661 12.9666C10.1372 12.8859 10.7303 12.6606 11.248 12.309L12.72 13.78C12.7887 13.8537 12.8715 13.9128 12.9635 13.9538C13.0555 13.9948 13.1548 14.0168 13.2555 14.0186C13.3562 14.0204 13.4562 14.0018 13.5496 13.9641C13.643 13.9264 13.7278 13.8703 13.799 13.799C13.8703 13.7278 13.9264 13.643 13.9641 13.5496C14.0018 13.4562 14.0204 13.3562 14.0186 13.2555C14.0168 13.1548 13.9948 13.0555 13.9538 12.9635C13.9128 12.8715 13.8537 12.7887 13.78 12.72L12.309 11.248C12.7176 10.6467 12.9546 9.94532 12.9944 9.21939C13.0343 8.49346 12.8756 7.77039 12.5353 7.1279C12.195 6.48542 11.6861 5.94782 11.0632 5.5729C10.4403 5.19798 9.72702 4.99992 9 5Z",fill:t})]}),we=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 14 16",fill:"none",children:[r("path",{d:"M7 5V8",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M3 11V9C3 8.4477 3.4477 8 4 8H10C10.5523 8 11 8.4477 11 9V11",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M7 5C8.10457 5 9 4.10457 9 3C9 1.89543 8.10457 1 7 1C5.89543 1 5 1.89543 5 3C5 4.10457 5.89543 5 7 5Z",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M3 15C4.10457 15 5 14.1046 5 13C5 11.8954 4.10457 11 3 11C1.89543 11 1 11.8954 1 13C1 14.1046 1.89543 15 3 15Z",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M11 15C12.1046 15 13 14.1046 13 13C13 11.8954 12.1046 11 11 11C9.89543 11 9 11.8954 9 13C9 14.1046 9.89543 15 11 15Z",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ye=({fill:t="currentColor",width:i="21",height:o="21"})=>e("svg",{width:i,height:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r("path",{d:"M22.392 10.5705C21.693 5.4495 17.313 1.5 12 1.5C6.201 1.5 1.5 6.201 1.5 12C1.5 14.064 2.1045 15.9825 3.132 17.6055L1.5 22.5L6.3945 20.868C7.6395 21.657 9.06 22.188 10.584 22.3965",stroke:t,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M17.625 12.75L18.75 16.5L22.5 17.625L18.75 18.75L17.625 22.5L16.5 18.75L12.75 17.625L16.5 16.5L17.625 12.75Z",fill:t,stroke:t,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),ke=({fill:t="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 14 14",fill:"none",children:[r("path",{d:"M13 1H1",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r("path",{d:"M7 13V1",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Le=({fill:e="currentColor",width:t="20",height:i="20"})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:i,viewBox:"0 0 20 20",fill:"none",children:r("path",{d:"M11.2502 1C12.769 1 14.0002 2.23122 14.0002 3.75V4.19238C14.7954 4.26939 15.5841 4.3694 16.3655 4.49121C16.7747 4.555 17.0551 4.93847 16.9914 5.34766C16.9276 5.75685 16.5442 6.0373 16.135 5.97363C16.0856 5.96593 16.036 5.95771 15.9865 5.9502L15.1448 16.4697C15.0302 17.8987 13.8371 19 12.4035 19H7.5969C6.16331 19 4.97024 17.8987 4.85569 16.4697L4.01389 5.9502C3.96456 5.9577 3.91473 5.96595 3.86545 5.97363C3.45635 6.03717 3.07279 5.75678 3.00901 5.34766C2.94536 4.93848 3.2258 4.555 3.63499 4.49121C4.41637 4.3694 5.205 4.2694 6.00022 4.19238V3.75C6.00022 2.23122 7.23144 1 8.75022 1H11.2502ZM7.80002 7.00098C7.41217 7.01665 7.10455 7.32382 7.08127 7.70312V7.78027L7.38108 15.2803C7.39779 15.694 7.74659 16.0156 8.16038 15.999C8.57421 15.9824 8.89666 15.6336 8.8801 15.2197L8.57932 7.71973L8.57249 7.64355C8.51897 7.26722 8.18803 6.98546 7.80002 7.00098ZM12.2004 7.00098C11.7866 6.98443 11.4378 7.30599 11.4211 7.71973L11.1213 15.2197C11.1048 15.6335 11.4263 15.9823 11.8401 15.999C12.2538 16.0156 12.6026 15.694 12.6194 15.2803L12.9201 7.78027C12.9367 7.36644 12.6142 7.01761 12.2004 7.00098ZM8.75022 2.5C8.05986 2.5 7.50022 3.05964 7.50022 3.75V4.0752C8.32725 4.02543 9.16083 4 10.0002 4C10.8396 4 11.6732 4.02544 12.5002 4.0752V3.75C12.5002 3.05964 11.9406 2.5 11.2502 2.5H8.75022Z",fill:e})}),Ee=({fill:t="currentColor",width:i="16",height:o="16"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 16 16",fill:"none",children:[r("path",{d:"M3.75 2C2.7835 2 2 2.7835 2 3.75V5.25C2 5.66421 2.33579 6 2.75 6C3.16421 6 3.5 5.66421 3.5 5.25V3.75C3.5 3.61193 3.61193 3.5 3.75 3.5H5.25C5.66421 3.5 6 3.16421 6 2.75C6 2.33579 5.66421 2 5.25 2H3.75Z",fill:t}),r("path",{d:"M10.75 2C10.3358 2 10 2.33579 10 2.75C10 3.16421 10.3358 3.5 10.75 3.5H12.25C12.3881 3.5 12.5 3.61193 12.5 3.75V5.25C12.5 5.66421 12.8358 6 13.25 6C13.6642 6 14 5.66421 14 5.25V3.75C14 2.7835 13.2165 2 12.25 2H10.75Z",fill:t}),r("path",{d:"M3.5 10.75C3.5 10.3358 3.16421 10 2.75 10C2.33579 10 2 10.3358 2 10.75V12.25C2 13.2165 2.7835 14 3.75 14H5.25C5.66421 14 6 13.6642 6 13.25C6 12.8358 5.66421 12.5 5.25 12.5H3.75C3.61193 12.5 3.5 12.3881 3.5 12.25V10.75Z",fill:t}),r("path",{d:"M14 10.75C14 10.3358 13.6642 10 13.25 10C12.8358 10 12.5 10.3358 12.5 10.75V12.25C12.5 12.3881 12.3881 12.5 12.25 12.5H10.75C10.3358 12.5 10 12.8358 10 13.25C10 13.6642 10.3358 14 10.75 14H12.25C13.2165 14 14 13.2165 14 12.25V10.75Z",fill:t}),r("path",{d:"M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z",fill:t})]});var Me;!function(e){e.BARS_3_BOTTOM_LEFT="bars-3-bottom-left",e.BUILDING="building",e.BULK_CHECK="bulk-check",e.CHECK="check",e.CHECK_CIRCLE="check-circle",e.CHECK_SQUARE="check-square",e.CHEVRON_DOWN="chevron-down",e.CLOSE="close",e.CODE="code",e.COMPUTER="computer",e.COPY="copy",e.CUBE="cube",e.DATABASE="database",e.EXCLAMATION_CIRCLE="exclamation-circle",e.EXCLAMATION_TRIANGLE="exclamation-triangle",e.GEAR="gear",e.GLobe="globe",e.HASHTAG="hashtag",e.HOME="home",e.INBOX="inbox",e.INFORMATION_CIRCLE="information-circle",e.INFORMATION_CIRCLE_MICRO="information-circle-micro",e.LAMP="lamp",e.LOCK_OPEN="lock-open",e.MINUS="minus",e.PAPER_PLANE="paper-plane",e.PENCIL="pencil",e.PIE_CHART="pie-chart",e.PIPELINE="pipeline",e.PLUS="plus",e.PROFILE="profile",e.QUESTION_CIRCLE="question-circle",e.ROCKET_LAUNCH="rocket-launch",e.SEARCH="search",e.SEARCH_DOCUMENT="search-document",e.SEARCH_SQL="search-sql",e.SITEMAP="sitemap",e.TETRASCIENCE_ICON="tetrascience-icon",e.TEXT="text",e.TRASH="trash",e.VIEWFINDER_CIRCLE="viewfinder-circle"}(Me||(Me={}));const Ae=e=>{let t=null;const{name:i}=e;switch(i){case Me.BARS_3_BOTTOM_LEFT:t=r(O,{...e});break;case Me.BUILDING:t=r(V,{...e});break;case Me.BULK_CHECK:t=r(D,{...e});break;case Me.CHECK:t=r(U,{...e});break;case Me.CHECK_CIRCLE:t=r(Z,{...e});break;case Me.CHECK_SQUARE:t=r(G,{...e});break;case Me.CHEVRON_DOWN:t=r(W,{...e});break;case Me.CLOSE:t=r(j,{...e});break;case Me.CODE:t=r(K,{...e});break;case Me.COMPUTER:t=r(Y,{...e});break;case Me.COPY:t=r(F,{...e});break;case Me.CUBE:t=r(X,{...e});break;case Me.DATABASE:t=r(q,{...e});break;case Me.EXCLAMATION_CIRCLE:t=r(Q,{...e});break;case Me.EXCLAMATION_TRIANGLE:t=r(J,{...e});break;case Me.GEAR:t=r(ee,{...e});break;case Me.GLobe:t=r(re,{...e});break;case Me.HASHTAG:t=r(te,{...e});break;case Me.HOME:t=r(ie,{...e});break;case Me.INBOX:t=r(oe,{...e});break;case Me.INFORMATION_CIRCLE:t=r(ne,{...e});break;case Me.INFORMATION_CIRCLE_MICRO:t=r(le,{...e});break;case Me.LAMP:t=r(ae,{...e});break;case Me.LOCK_OPEN:t=r(se,{...e});break;case Me.MINUS:t=r(de,{...e});break;case Me.PAPER_PLANE:t=r(ce,{...e});break;case Me.PENCIL:t=r(he,{...e});break;case Me.PIE_CHART:t=r(pe,{...e});break;case Me.PIPELINE:t=r(ge,{...e});break;case Me.PLUS:t=r(fe,{...e});break;case Me.PROFILE:t=r(ue,{...e});break;case Me.QUESTION_CIRCLE:t=r(Ce,{...e});break;case Me.ROCKET_LAUNCH:t=r(xe,{...e});break;case Me.SEARCH:t=r(me,{...e});break;case Me.SEARCH_DOCUMENT:t=r(be,{...e});break;case Me.SEARCH_SQL:t=r(ve,{...e});break;case Me.SITEMAP:t=r(we,{...e});break;case Me.TETRASCIENCE_ICON:t=r(ye,{...e});break;case Me.TEXT:t=r(ke,{...e});break;case Me.TRASH:t=r(Le,{...e});break;case Me.VIEWFINDER_CIRCLE:t=r(Ee,{...e});break;default:throw`[Icon] name "${i}" does not exist`}return r("div",{style:{display:"inline-flex"},children:t})},Ie=i.label`
201
+ ${e=>R[e.$size]}
202
+ `,H=i.div`
203
+ ${e=>R[e.$size]}
204
+ `,O=({children:r,title:i,size:o="medium",variant:n="default",className:a,fullWidth:l=!1,ref:s,...c})=>e(S,{ref:s,$size:o,$variant:n,$fullWidth:l,className:a,...c,children:[i&&t(B,{$size:o,children:i}),t(H,{$size:o,children:r})]}),P=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.75C2 4.33579 2.33579 4 2.75 4H17.25C17.6642 4 18 4.33579 18 4.75C18 5.16421 17.6642 5.5 17.25 5.5H2.75C2.33579 5.5 2 5.16421 2 4.75ZM2 15.25C2 14.8358 2.33579 14.5 2.75 14.5H10.25C10.6642 14.5 11 14.8358 11 15.25C11 15.6642 10.6642 16 10.25 16H2.75C2.33579 16 2 15.6642 2 15.25Z",fill:r}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 10C2 9.58579 2.33579 9.25 2.75 9.25H17.25C17.6642 9.25 18 9.58579 18 10C18 10.4142 17.6642 10.75 17.25 10.75H2.75C2.33579 10.75 2 10.4142 2 10Z",fill:r})]}),D=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 16.5V3.5H3.75C3.55109 3.5 3.36032 3.42098 3.21967 3.28033C3.07902 3.13968 3 2.94891 3 2.75C3 2.55109 3.07902 2.36032 3.21967 2.21967C3.36032 2.07902 3.55109 2 3.75 2H16.25C16.4489 2 16.6397 2.07902 16.7803 2.21967C16.921 2.36032 17 2.55109 17 2.75C17 2.94891 16.921 3.13968 16.7803 3.28033C16.6397 3.42098 16.4489 3.5 16.25 3.5H16V16.5H16.25C16.4489 16.5 16.6397 16.579 16.7803 16.7197C16.921 16.8603 17 17.0511 17 17.25C17 17.4489 16.921 17.6397 16.7803 17.7803C16.6397 17.921 16.4489 18 16.25 18H12.75C12.5511 18 12.3603 17.921 12.2197 17.7803C12.079 17.6397 12 17.4489 12 17.25V14.75C12 14.5511 11.921 14.3603 11.7803 14.2197C11.6397 14.079 11.4489 14 11.25 14H8.75C8.55109 14 8.36032 14.079 8.21967 14.2197C8.07902 14.3603 8 14.5511 8 14.75V17.25C8 17.4489 7.92098 17.6397 7.78033 17.7803C7.63968 17.921 7.44891 18 7.25 18H3.75C3.55109 18 3.36032 17.921 3.21967 17.7803C3.07902 17.6397 3 17.4489 3 17.25C3 17.0511 3.07902 16.8603 3.21967 16.7197C3.36032 16.579 3.55109 16.5 3.75 16.5H4ZM7 5.5C7 5.36739 7.05268 5.24021 7.14645 5.14645C7.24021 5.05268 7.36739 5 7.5 5H8.5C8.63261 5 8.75979 5.05268 8.85355 5.14645C8.94732 5.24021 9 5.36739 9 5.5V6.5C9 6.63261 8.94732 6.75979 8.85355 6.85355C8.75979 6.94732 8.63261 7 8.5 7H7.5C7.36739 7 7.24021 6.94732 7.14645 6.85355C7.05268 6.75979 7 6.63261 7 6.5V5.5ZM7.5 9C7.36739 9 7.24021 9.05268 7.14645 9.14645C7.05268 9.24021 7 9.36739 7 9.5V10.5C7 10.6326 7.05268 10.7598 7.14645 10.8536C7.24021 10.9473 7.36739 11 7.5 11H8.5C8.63261 11 8.75979 10.9473 8.85355 10.8536C8.94732 10.7598 9 10.6326 9 10.5V9.5C9 9.36739 8.94732 9.24021 8.85355 9.14645C8.75979 9.05268 8.63261 9 8.5 9H7.5ZM11 5.5C11 5.36739 11.0527 5.24021 11.1464 5.14645C11.2402 5.05268 11.3674 5 11.5 5H12.5C12.6326 5 12.7598 5.05268 12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V6.5C13 6.63261 12.9473 6.75979 12.8536 6.85355C12.7598 6.94732 12.6326 7 12.5 7H11.5C11.3674 7 11.2402 6.94732 11.1464 6.85355C11.0527 6.75979 11 6.63261 11 6.5V5.5ZM11.5 9C11.3674 9 11.2402 9.05268 11.1464 9.14645C11.0527 9.24021 11 9.36739 11 9.5V10.5C11 10.6326 11.0527 10.7598 11.1464 10.8536C11.2402 10.9473 11.3674 11 11.5 11H12.5C12.6326 11 12.7598 10.9473 12.8536 10.8536C12.9473 10.7598 13 10.6326 13 10.5V9.5C13 9.36739 12.9473 9.24021 12.8536 9.14645C12.7598 9.05268 12.6326 9 12.5 9H11.5Z",fill:e})}),V=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.997 5.25C17.9972 4.69436 17.7917 4.15832 17.4202 3.74512C17.0488 3.33191 16.5375 3.07077 15.985 3.012C15.9262 2.45948 15.6651 1.94825 15.2519 1.57677C14.8387 1.20529 14.3026 0.999846 13.747 1H12.247C11.6914 0.999846 11.1553 1.20529 10.7421 1.57677C10.3289 1.94825 10.0678 2.45948 10.009 3.012C9.134 3.104 8.409 3.698 8.125 4.5H10.997C11.66 4.5 12.2959 4.76339 12.7648 5.23223C13.2336 5.70107 13.497 6.33696 13.497 7V14H15.747C16.3437 14 16.916 13.7629 17.338 13.341C17.7599 12.919 17.997 12.3467 17.997 11.75V5.25ZM12.247 2.5C12.0481 2.5 11.8573 2.57902 11.7167 2.71967C11.576 2.86032 11.497 3.05109 11.497 3.25V3.5H14.497V3.25C14.497 3.05109 14.418 2.86032 14.2773 2.71967C14.1367 2.57902 13.9459 2.5 13.747 2.5H12.247Z",fill:r}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C2.73478 6 2.48043 6.10536 2.29289 6.29289C2.10536 6.48043 2 6.73478 2 7V17C2 17.2652 2.10536 17.5196 2.29289 17.7071C2.48043 17.8946 2.73478 18 3 18H11C11.2652 18 11.5196 17.8946 11.7071 17.7071C11.8946 17.5196 12 17.2652 12 17V7C12 6.73478 11.8946 6.48043 11.7071 6.29289C11.5196 6.10536 11.2652 6 11 6H3ZM9.874 10.166C9.92992 10.0841 9.96904 9.99189 9.98909 9.89475C10.0091 9.79761 10.0097 9.69746 9.99081 9.6001C9.97189 9.50273 9.93385 9.41009 9.87889 9.32752C9.82392 9.24496 9.75313 9.17412 9.6706 9.1191C9.58807 9.06408 9.49545 9.02598 9.3981 9.007C9.30075 8.98802 9.2006 8.98854 9.10345 9.00852C9.0063 9.02851 8.91407 9.06757 8.83212 9.12344C8.75017 9.1793 8.68011 9.25087 8.626 9.334L6.133 13.073L5.28 12.22C5.13783 12.0875 4.94978 12.0154 4.75548 12.0188C4.56118 12.0223 4.37579 12.101 4.23838 12.2384C4.10097 12.3758 4.02225 12.5612 4.01883 12.7555C4.0154 12.9498 4.08752 13.1378 4.22 13.28L5.72 14.78C5.79844 14.8584 5.8933 14.9184 5.99773 14.9558C6.10217 14.9931 6.21359 15.0068 6.32396 14.9959C6.43434 14.985 6.54092 14.9498 6.63603 14.8927C6.73114 14.8357 6.81242 14.7582 6.874 14.666L9.874 10.166Z",fill:r})]}),U=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7045 4.15347C17.034 4.4045 17.0976 4.87509 16.8466 5.20457L8.84657 15.7046C8.71541 15.8767 8.51627 15.9838 8.30033 15.9983C8.08439 16.0129 7.87271 15.9334 7.71967 15.7804L3.21967 11.2804C2.92678 10.9875 2.92678 10.5126 3.21967 10.2197C3.51256 9.92682 3.98744 9.92682 4.28033 10.2197L8.17351 14.1129L15.6534 4.29551C15.9045 3.96603 16.3751 3.90243 16.7045 4.15347Z",fill:e})}),G=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.8566 8.19113C14.1002 7.85614 14.0261 7.38708 13.6911 7.14345C13.3561 6.89982 12.8871 6.97388 12.6434 7.30887L9.15969 12.099L7.28033 10.2197C6.98744 9.92678 6.51256 9.92678 6.21967 10.2197C5.92678 10.5126 5.92678 10.9874 6.21967 11.2803L8.71967 13.7803C8.87477 13.9354 9.08999 14.0149 9.30867 13.9977C9.52734 13.9805 9.72754 13.8685 9.85655 13.6911L13.8566 8.19113Z",fill:e})}),K=({fill:r="currentColor",width:i="16",height:o="16"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 16 16",fill:"none",children:[t("path",{d:"M11.2016 1.59961H4.80156C3.03676 1.59961 1.60156 3.03481 1.60156 4.79961V11.1996C1.60156 12.9644 3.03676 14.3996 4.80156 14.3996H11.2016C12.9664 14.3996 14.4016 12.9644 14.4016 11.1996V4.79961C14.4016 3.03481 12.9664 1.59961 11.2016 1.59961Z",fill:r}),t("path",{d:"M7.63305 10.8968L11.4331 6.09685C11.7075 5.75045 11.6491 5.24725 11.3027 4.97285C10.9555 4.69925 10.4531 4.75845 10.1787 5.10405L6.96665 9.16085L5.80025 7.86485C5.50425 7.53685 4.99945 7.50965 4.67065 7.80565C4.34265 8.10085 4.31625 8.60645 4.61145 8.93525L6.41145 10.9352C6.56265 11.104 6.77945 11.2 7.00585 11.2H7.03065C7.26665 11.1928 7.48665 11.0816 7.63305 10.8968Z",fill:"white"})]}),Z=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{width:r,height:i,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.21967 8.21967C5.51256 7.92678 5.98744 7.92678 6.28033 8.21967L10 11.9393L13.7197 8.21967C14.0126 7.92678 14.4874 7.92678 14.7803 8.21967C15.0732 8.51256 15.0732 8.98744 14.7803 9.28033L10.5303 13.5303C10.3897 13.671 10.1989 13.75 10 13.75C9.80109 13.75 9.61032 13.671 9.46967 13.5303L5.21967 9.28033C4.92678 8.98744 4.92678 8.51256 5.21967 8.21967Z",fill:e})}),W=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{d:"M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),j=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 2C3.65326 2 3.08097 2.23705 2.65901 2.65901C2.23705 3.08097 2 3.65326 2 4.25V15.75C2 16.3467 2.23705 16.919 2.65901 17.341C3.08097 17.7629 3.65326 18 4.25 18H15.75C16.3467 18 16.919 17.7629 17.341 17.341C17.7629 16.919 18 16.3467 18 15.75V4.25C18 3.65326 17.7629 3.08097 17.341 2.65901C16.919 2.23705 16.3467 2 15.75 2H4.25ZM8.28 8.28C8.41248 8.13783 8.4846 7.94978 8.48118 7.75548C8.47775 7.56118 8.39903 7.37579 8.26162 7.23838C8.12421 7.10097 7.93882 7.02225 7.74452 7.01883C7.55022 7.0154 7.36217 7.08752 7.22 7.22L4.97 9.47C4.82955 9.61063 4.75066 9.80125 4.75066 10C4.75066 10.1988 4.82955 10.3894 4.97 10.53L7.22 12.78C7.36217 12.9125 7.55022 12.9846 7.74452 12.9812C7.93882 12.9777 8.12421 12.899 8.26162 12.7616C8.39903 12.6242 8.47775 12.4388 8.48118 12.2445C8.4846 12.0502 8.41248 11.8622 8.28 11.72L6.56 10L8.28 8.28ZM12.78 7.22C12.7113 7.14631 12.6285 7.08721 12.5365 7.04622C12.4445 7.00523 12.3452 6.98319 12.2445 6.98141C12.1438 6.97963 12.0438 6.99816 11.9504 7.03588C11.857 7.0736 11.7722 7.12974 11.701 7.20096C11.6297 7.27218 11.5736 7.35701 11.5359 7.4504C11.4982 7.54379 11.4796 7.64382 11.4814 7.74452C11.4832 7.84523 11.5052 7.94454 11.5462 8.03654C11.5872 8.12854 11.6463 8.21134 11.72 8.28L13.44 10L11.72 11.72C11.6463 11.7887 11.5872 11.8715 11.5462 11.9635C11.5052 12.0555 11.4832 12.1548 11.4814 12.2555C11.4796 12.3562 11.4982 12.4562 11.5359 12.5496C11.5736 12.643 11.6297 12.7278 11.701 12.799C11.7722 12.8703 11.857 12.9264 11.9504 12.9641C12.0438 13.0018 12.1438 13.0204 12.2445 13.0186C12.3452 13.0168 12.4445 12.9948 12.5365 12.9538C12.6285 12.9128 12.7113 12.8537 12.78 12.78L15.03 10.53C15.1705 10.3894 15.2493 10.1988 15.2493 10C15.2493 9.80125 15.1705 9.61063 15.03 9.47L12.78 7.22Z",fill:e})}),F=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.25C2 3.65326 2.23705 3.08097 2.65901 2.65901C3.08097 2.23705 3.65326 2 4.25 2H15.75C16.3467 2 16.919 2.23705 17.341 2.65901C17.7629 3.08097 18 3.65326 18 4.25V12.75C18 13.3467 17.7629 13.919 17.341 14.341C16.919 14.7629 16.3467 15 15.75 15H12.645C12.8403 15.6543 13.2226 16.2372 13.745 16.677C13.8625 16.7762 13.9467 16.9092 13.9861 17.0579C14.0255 17.2065 14.0182 17.3637 13.9653 17.5081C13.9123 17.6526 13.8163 17.7772 13.6901 17.8652C13.564 17.9532 13.4138 18.0002 13.26 18H6.74C6.58628 18 6.43627 17.9528 6.31027 17.8647C6.18427 17.7767 6.08838 17.652 6.03557 17.5077C5.98275 17.3633 5.97557 17.2062 6.015 17.0576C6.05443 16.9091 6.13856 16.7762 6.256 16.677C6.77799 16.2371 7.15999 15.6542 7.355 15H4.25C3.65326 15 3.08097 14.7629 2.65901 14.341C2.23705 13.919 2 13.3467 2 12.75V4.25ZM3.5 4.25C3.5 4.05109 3.57902 3.86032 3.71967 3.71967C3.86032 3.57902 4.05109 3.5 4.25 3.5H15.75C15.9489 3.5 16.1397 3.57902 16.2803 3.71967C16.421 3.86032 16.5 4.05109 16.5 4.25V11.75C16.5 11.9489 16.421 12.1397 16.2803 12.2803C16.1397 12.421 15.9489 12.5 15.75 12.5H4.25C4.05109 12.5 3.86032 12.421 3.71967 12.2803C3.57902 12.1397 3.5 11.9489 3.5 11.75V4.25Z",fill:e})}),Y=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[t("path",{d:"M2 4.25C2 3.00736 3.00736 2 4.25 2H10.75C11.9926 2 13 3.00736 13 4.25V5.5H9.25C7.17893 5.5 5.5 7.17893 5.5 9.25V13H4.25C3.00736 13 2 11.9926 2 10.75V4.25Z",fill:r}),t("path",{d:"M9.25 7C8.00736 7 7 8.00736 7 9.25V15.75C7 16.9926 8.00736 18 9.25 18H15.75C16.9926 18 18 16.9926 18 15.75V9.25C18 8.00736 16.9926 7 15.75 7H9.25Z",fill:r})]}),X=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{d:"M10.362 1.093C10.2511 1.0319 10.1266 0.999851 10 0.999851C9.87341 0.999851 9.74887 1.0319 9.638 1.093L2.523 5.018L10 9.143L17.477 5.018L10.362 1.093ZM18 6.443L10.75 10.443V18.693L17.612 14.907C17.7295 14.8422 17.8275 14.7471 17.8958 14.6315C17.964 14.516 18 14.3842 18 14.25V6.443ZM9.25 18.693V10.443L2 6.443V14.25C1.99997 14.3842 2.03596 14.516 2.10421 14.6315C2.17245 14.7471 2.27046 14.8422 2.388 14.907L9.25 18.693Z",fill:e})}),q=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1C13.866 1 17 2.79 17 5C17 7.21 13.866 9 10 9C6.134 9 3 7.21 3 5C3 2.79 6.134 1 10 1ZM15.694 9.13C16.158 8.866 16.604 8.547 17 8.178V10C17 12.21 13.866 14 10 14C6.134 14 3 12.21 3 10V8.178C3.396 8.548 3.842 8.866 4.306 9.131C5.838 10.006 7.854 10.5 10 10.5C12.146 10.5 14.162 10.006 15.694 9.13ZM3 13.179V15C3 17.21 6.134 19 10 19C13.866 19 17 17.21 17 15V13.178C16.604 13.548 16.158 13.866 15.694 14.131C14.162 15.006 12.146 15.5 10 15.5C7.854 15.5 5.838 15.006 4.306 14.13C3.83547 13.8644 3.39722 13.5453 3 13.179Z",fill:e})}),Q=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V10.25C10.75 10.6642 10.4142 11 10 11C9.58579 11 9.25 10.6642 9.25 10.25V5.75C9.25 5.33579 9.58579 5 10 5ZM10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44771 13 9 13.4477 9 14C9 14.5523 9.44771 15 10 15Z",fill:e})}),J=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4845 2.49499C9.15808 1.32833 10.842 1.32833 11.5156 2.495L17.7943 13.37C18.4678 14.5367 17.6259 15.995 16.2787 15.995H3.72136C2.37421 15.995 1.53224 14.5367 2.20582 13.37L8.4845 2.49499ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V9.25C10.75 9.66421 10.4142 10 10 10C9.58579 10 9.25 9.66421 9.25 9.25L9.25 5.75C9.25 5.33579 9.58579 5 10 5ZM10 14C10.5523 14 11 13.5523 11 13C11 12.4477 10.5523 12 10 12C9.44772 12 9 12.4477 9 13C9 13.5523 9.44772 14 10 14Z",fill:e})}),ee=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.84288 1.804C7.88817 1.57739 8.01055 1.37346 8.18921 1.22689C8.36787 1.08031 8.59178 1.00014 8.82288 1H11.1829C11.414 1.00014 11.6379 1.08031 11.8165 1.22689C11.9952 1.37346 12.1176 1.57739 12.1629 1.804L12.4939 3.456C13.1923 3.72219 13.8436 4.09863 14.4229 4.571L16.0209 4.031C16.2398 3.95702 16.4775 3.96112 16.6937 4.04261C16.9099 4.1241 17.0913 4.27795 17.2069 4.478L18.3869 6.522C18.5025 6.72209 18.5453 6.95607 18.5079 7.18413C18.4706 7.4122 18.3553 7.62029 18.1819 7.773L16.9149 8.886C17.033 9.62397 17.033 10.376 16.9149 11.114L18.1819 12.227C18.3553 12.3795 18.4705 12.5874 18.5081 12.8152C18.5456 13.0431 18.5031 13.2769 18.3879 13.477L17.2079 15.522C17.0922 15.7223 16.9107 15.8763 16.6943 15.9578C16.4779 16.0393 16.2399 16.0432 16.0209 15.969L14.4229 15.429C13.8436 15.9014 13.1923 16.2778 12.4939 16.544L12.1639 18.196C12.1186 18.4226 11.9962 18.6265 11.8175 18.7731C11.6389 18.9197 11.415 18.9999 11.1839 19H8.82288C8.59178 18.9999 8.36787 18.9197 8.18921 18.7731C8.01055 18.6265 7.88817 18.4226 7.84288 18.196L7.51188 16.544C6.81342 16.2778 6.16215 15.9014 5.58288 15.429L3.98488 15.969C3.76598 16.043 3.52823 16.0389 3.31202 15.9574C3.09581 15.8759 2.91449 15.7221 2.79888 15.522L1.61888 13.478C1.50322 13.2779 1.46045 13.0439 1.49782 12.8159C1.53519 12.5878 1.65041 12.3797 1.82388 12.227L3.09088 11.113C2.97289 10.3754 2.97289 9.62364 3.09088 8.886L1.82388 7.773C1.65049 7.62047 1.53524 7.41264 1.49769 7.18478C1.46014 6.95693 1.5026 6.7231 1.61788 6.523L2.79788 4.478C2.91352 4.27773 3.09501 4.12373 3.31144 4.04223C3.52787 3.96073 3.76585 3.95676 3.98488 4.031L5.58288 4.571C6.16245 4.09852 6.81406 3.72207 7.51288 3.456L7.84288 1.804ZM10.0029 13C10.7985 13 11.5616 12.6839 12.1242 12.1213C12.6868 11.5587 13.0029 10.7956 13.0029 10C13.0029 9.20435 12.6868 8.44129 12.1242 7.87868C11.5616 7.31607 10.7985 7 10.0029 7C9.20723 7 8.44416 7.31607 7.88156 7.87868C7.31895 8.44129 7.00288 9.20435 7.00288 10C7.00288 10.7956 7.31895 11.5587 7.88156 12.1213C8.44416 12.6839 9.20723 13 10.0029 13Z",fill:e})}),te=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM16.4969 10.2041C16.389 13.6995 13.5216 16.5 10 16.5C6.41015 16.5 3.5 13.5899 3.5 10C3.5 7.12656 5.36451 4.68861 7.94969 3.82998L6.92671 5.62019C6.60171 6.18894 6.69759 6.90485 7.16078 7.36805C7.6029 7.81017 8.27833 7.91977 8.83757 7.64015L9.0123 7.55279C9.08173 7.51807 9.15829 7.5 9.23591 7.5H9.38181C9.5712 7.5 9.74433 7.607 9.82902 7.77639C9.8994 7.91716 9.8994 8.08284 9.82902 8.22361L9.80123 8.27919C9.73357 8.41452 9.59525 8.5 9.44395 8.5H8.9418C8.18614 8.5 7.48048 8.87766 7.06131 9.50641L7.01751 9.57212C6.65828 10.111 6.56795 10.7855 6.77274 11.3998C6.98201 12.0276 7.47787 12.5197 8.10338 12.7282C8.33997 12.8071 8.49984 13.0292 8.49984 13.2749V14.3246C8.49984 14.9738 9.02608 15.5 9.67523 15.5C10.0323 15.5 10.37 15.3377 10.5931 15.0589L12.2044 13.0446C12.3957 12.8056 12.4998 12.5086 12.4998 12.2025C12.4998 11.8866 12.6279 11.5791 12.8531 11.3539C13.3088 10.8982 13.3864 10.1784 13.0257 9.63738L12.5617 8.94145C12.5214 8.88091 12.4998 8.80979 12.4998 8.73703C12.4998 8.43336 12.8465 8.26002 13.0895 8.44222L13.4322 8.69925C13.748 8.93609 14.1704 8.97373 14.523 8.79746C14.7488 8.68456 15.0216 8.72887 15.1996 8.90689L16.4969 10.2041Z",fill:e})}),re=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{d:"M13.3516 2.00712C13.7619 2.06371 14.0488 2.44249 13.9922 2.85282L13.5576 6.00028H16.6973C17.1115 6.00028 17.4473 6.33607 17.4473 6.75028C17.4473 7.16448 17.1115 7.50028 16.6973 7.50028H13.3516L12.6611 12.5003H15.8008C16.215 12.5003 16.5508 12.8361 16.5508 13.2503C16.5508 13.6645 16.215 14.0003 15.8008 14.0003H12.4551L11.9922 17.3528C11.9356 17.7631 11.5568 18.05 11.1465 17.9934C10.7362 17.9368 10.4493 17.558 10.5059 17.1477L10.9404 14.0003H7.95508L7.49219 17.3528C7.43556 17.7631 7.05679 18.05 6.64648 17.9934C6.23622 17.9368 5.94927 17.558 6.00586 17.1477L6.44043 14.0003H3.30078C2.88658 14.0003 2.5508 13.6645 2.55078 13.2503C2.55078 12.8361 2.88657 12.5003 3.30078 12.5003H6.64648L7.33691 7.50028H4.19727C3.78309 7.50024 3.44728 7.16446 3.44727 6.75028C3.44727 6.33609 3.78308 6.00032 4.19727 6.00028H7.54297L8.00586 2.64774C8.06245 2.23743 8.44125 1.95055 8.85156 2.00712C9.26189 2.06371 9.54878 2.44249 9.49219 2.85282L9.05762 6.00028H12.043L12.5059 2.64774C12.5625 2.23743 12.9413 1.95055 13.3516 2.00712ZM8.85156 7.50028L8.16113 12.5003H11.1465L11.8369 7.50028H8.85156Z",fill:e})}),ie=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29292 2.29289C9.68345 1.90237 10.3166 1.90237 10.7071 2.29289L17.7071 9.29289C17.9931 9.57889 18.0787 10.009 17.9239 10.3827C17.7691 10.7564 17.4045 11 17 11H16V17C16 17.5523 15.5523 18 15 18H13C12.4477 18 12 17.5523 12 17V14C12 13.4477 11.5523 13 11 13H9.00003C8.44774 13 8.00003 13.4477 8.00003 14V17C8.00003 17.5523 7.55231 18 7.00003 18H5.00003C4.44774 18 4.00003 17.5523 4.00003 17V11H3.00003C2.59557 11 2.23093 10.7564 2.07615 10.3827C1.92137 10.009 2.00692 9.57889 2.29292 9.29289L9.29292 2.29289Z",fill:e})}),oe=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 40 40",fill:"none",children:t("path",{d:"M3.75 22.5H10.1824C11.6028 22.5 12.9013 23.3025 13.5365 24.5729L13.9635 25.4271C14.5987 26.6975 15.8972 27.5 17.3176 27.5H22.6824C24.1028 27.5 25.4013 26.6975 26.0365 25.4271L26.4635 24.5729C27.0987 23.3025 28.3972 22.5 29.8176 22.5H36.25M3.75 23.0639V30C3.75 32.0711 5.42893 33.75 7.5 33.75H32.5C34.5711 33.75 36.25 32.0711 36.25 30V23.0639C36.25 22.6901 36.1941 22.3183 36.0842 21.9611L32.0645 8.89718C31.5804 7.32371 30.1266 6.25 28.4803 6.25H11.5197C9.87339 6.25 8.41963 7.32371 7.93548 8.89718L3.91583 21.9611C3.80589 22.3183 3.75 22.6901 3.75 23.0639Z",stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})}),ne=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{d:"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM9 9C8.58579 9 8.25 9.33579 8.25 9.75C8.25 10.1642 8.58579 10.5 9 10.5H9.25293C9.41287 10.5 9.53176 10.6486 9.49707 10.8047L9.03809 12.8701C8.79522 13.963 9.62751 15 10.7471 15H11C11.4142 15 11.75 14.6642 11.75 14.25C11.75 13.8358 11.4142 13.5 11 13.5H10.7471C10.5871 13.5 10.4682 13.3514 10.5029 13.1953L10.9619 11.1299C11.2048 10.037 10.3725 9 9.25293 9H9ZM10 5C9.44771 5 9 5.44772 9 6C9 6.55228 9.44771 7 10 7C10.5523 7 11 6.55228 11 6C11 5.44772 10.5523 5 10 5Z",fill:e})}),ae=({fill:e="currentColor",width:r="16",height:i="16"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 16 16",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM9 5C9 5.55228 8.55228 6 8 6C7.44772 6 7 5.55228 7 5C7 4.44772 7.44772 4 8 4C8.55228 4 9 4.44772 9 5ZM6.75 8C6.33579 8 6 8.33579 6 8.75C6 9.16421 6.33579 9.5 6.75 9.5H7.5V11.25C7.5 11.6642 7.83579 12 8.25 12C8.66421 12 9 11.6642 9 11.25V8.75C9 8.33579 8.66421 8 8.25 8H6.75Z",fill:e})}),le=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{d:"M10.0001 1C8.76409 0.99999 7.55829 1.38167 6.54746 2.09287C5.53662 2.80407 4.77008 3.81008 4.35262 4.9734C3.93516 6.13672 3.88714 7.40058 4.21512 8.59222C4.54311 9.78387 5.2311 10.8451 6.18505 11.631C7.23705 12.5 8.00005 13.443 8.00005 14.456V15.1C7.99995 15.268 8.05628 15.4312 8.16 15.5634C8.26372 15.6956 8.40883 15.7891 8.57205 15.829C9.51025 16.0582 10.4899 16.0582 11.4281 15.829C11.5913 15.7891 11.7364 15.6956 11.8401 15.5634C11.9438 15.4312 12.0001 15.268 12.0001 15.1V14.456C12.0001 13.443 12.7621 12.499 13.8151 11.631C14.769 10.8451 15.457 9.78387 15.785 8.59222C16.113 7.40058 16.0649 6.13672 15.6475 4.9734C15.23 3.81008 14.4635 2.80407 13.4526 2.09287C12.4418 1.38167 11.236 0.99999 10.0001 1ZM8.86305 17.414C8.76568 17.3992 8.66633 17.4036 8.57069 17.4272C8.47505 17.4508 8.38498 17.4929 8.30563 17.5513C8.14538 17.6691 8.03852 17.8458 8.00855 18.0425C7.97858 18.2392 8.02796 18.4397 8.14583 18.5999C8.2637 18.7602 8.44039 18.867 8.63705 18.897C9.54052 19.0344 10.4596 19.0344 11.3631 18.897C11.5597 18.867 11.7364 18.7602 11.8543 18.5999C11.9721 18.4397 12.0215 18.2392 11.9916 18.0425C11.9616 17.8458 11.8547 17.6691 11.6945 17.5513C11.5342 17.4334 11.3337 17.384 11.1371 17.414C10.3834 17.5288 9.61671 17.5288 8.86305 17.414Z",fill:e})}),se=({fill:e="currentColor",width:r="16",height:i="16"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 16 16",fill:"none",children:t("path",{d:"M11.5 1C9.567 1 8 2.567 8 4.5V7H2.5C1.67157 7 1 7.67157 1 8.5V13.5C1 14.3284 1.67157 15 2.5 15H9.5C10.3284 15 11 14.3284 11 13.5V8.5C11 7.67157 10.3284 7 9.5 7V4.5C9.5 3.39543 10.3954 2.5 11.5 2.5C12.6046 2.5 13.5 3.39543 13.5 4.5V6.25C13.5 6.66421 13.8358 7 14.25 7C14.6642 7 15 6.66421 15 6.25V4.5C15 2.567 13.433 1 11.5 1Z",fill:e})}),ce=({fill:e="currentColor",width:r="16",height:i="16"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 16 16",fill:"none",children:t("path",{d:"M3.75 7.25C3.33579 7.25 3 7.58579 3 8C3 8.41421 3.33579 8.75 3.75 8.75L12.25 8.75C12.6642 8.75 13 8.41421 13 8C13 7.58579 12.6642 7.25 12.25 7.25H3.75Z",fill:e})}),de=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{width:r,height:i,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M3.10526 2.28868C2.85362 2.25302 2.60104 2.34722 2.43421 2.53895C2.26738 2.73068 2.209 2.99386 2.27911 3.23815L3.69276 8.16402C3.87733 8.80713 4.4655 9.25024 5.13456 9.25024H11.25C11.6642 9.25024 12 9.58603 12 10.0002C12 10.4145 11.6642 10.7502 11.25 10.7502H5.13457C4.4655 10.7502 3.87733 11.1934 3.69277 11.8365L2.27911 16.7624C2.209 17.0067 2.26738 17.2698 2.43421 17.4616C2.60104 17.6533 2.85362 17.7475 3.10526 17.7118C8.94303 16.8844 14.221 14.319 18.3983 10.5576C18.5563 10.4154 18.6465 10.2128 18.6465 10.0003C18.6465 9.7877 18.5563 9.58513 18.3983 9.4429C14.221 5.68154 8.94303 3.1161 3.10526 2.28868Z",fill:e})}),he=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{d:"M2.69533 14.7623L1.43355 17.9168C1.27028 18.3249 1.67532 18.73 2.08348 18.5667L5.23795 17.3049C5.74091 17.1037 6.19777 16.8025 6.58081 16.4194L17.5 5.50072C18.3284 4.67229 18.3284 3.32914 17.5 2.50072C16.6716 1.67229 15.3284 1.67229 14.5 2.50071L3.58081 13.4194C3.19777 13.8025 2.89652 14.2593 2.69533 14.7623Z",fill:e})}),pe=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[t("path",{d:"M12 8.99908C11.7348 8.99908 11.4804 8.89372 11.2929 8.70618C11.1054 8.51865 11 8.26429 11 7.99908V2.99908C11 2.44708 11.45 1.99208 11.997 2.06908C13.4939 2.28487 14.8808 2.97941 15.9502 4.04884C17.0197 5.11828 17.7142 6.50515 17.93 8.00208C18.008 8.54908 17.552 8.99908 17 8.99908H12Z",fill:r}),t("path",{d:"M8.003 4.07083C8.55 3.99483 9 4.44982 9 5.00082V10.0008C9 10.266 9.10536 10.5204 9.29289 10.7079C9.48043 10.8955 9.73478 11.0008 10 11.0008H15C15.552 11.0008 16.008 11.4508 15.93 11.9978C15.6769 13.7491 14.77 15.3396 13.3918 16.4494C12.0135 17.5591 10.2662 18.1058 8.5012 17.9795C6.73622 17.8532 5.08455 17.0632 3.87841 15.7685C2.67226 14.4737 2.00113 12.7703 2 11.0008C2.00009 9.31693 2.60701 7.68946 3.70953 6.41668C4.81205 5.1439 6.33633 4.31107 8.003 4.07083Z",fill:r})]}),ge=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.157 2.17646C7.78976 2.02451 7.37724 2.02451 7.01 2.17646L2.926 3.86646C2.65219 3.97987 2.41812 4.17185 2.25331 4.41817C2.08851 4.66448 2.00036 4.9541 2 5.25046V16.1275C1.99997 16.3742 2.06079 16.617 2.17705 16.8346C2.29332 17.0522 2.46146 17.2377 2.66656 17.3748C2.87167 17.5118 3.10741 17.5962 3.35291 17.6204C3.59841 17.6446 3.84609 17.6079 4.074 17.5135L7.584 16.0615L11.844 17.8235C12.2109 17.9751 12.6231 17.9751 12.99 17.8235L17.073 16.1335C17.3468 16.0203 17.581 15.8285 17.746 15.5824C17.911 15.3363 17.9994 15.0468 18 14.7505V3.87246C18 3.6259 17.9391 3.38315 17.8229 3.1657C17.7067 2.94824 17.5387 2.76278 17.3337 2.62574C17.1287 2.4887 16.8932 2.4043 16.6478 2.38001C16.4024 2.35571 16.1549 2.39228 15.927 2.48646L12.417 3.93846L8.157 2.17646ZM7.58 5.00046C7.77891 5.00046 7.96968 5.07948 8.11033 5.22013C8.25098 5.36079 8.33 5.55155 8.33 5.75046V12.2505C8.33 12.4494 8.25098 12.6401 8.11033 12.7808C7.96968 12.9214 7.77891 13.0005 7.58 13.0005C7.38109 13.0005 7.19032 12.9214 7.04967 12.7808C6.90902 12.6401 6.83 12.4494 6.83 12.2505V5.75046C6.83 5.55155 6.90902 5.36079 7.04967 5.22013C7.19032 5.07948 7.38109 5.00046 7.58 5.00046ZM13.17 7.75046C13.17 7.55155 13.091 7.36079 12.9503 7.22013C12.8097 7.07948 12.6189 7.00046 12.42 7.00046C12.2211 7.00046 12.0303 7.07948 11.8897 7.22013C11.749 7.36079 11.67 7.55155 11.67 7.75046V14.2505C11.67 14.4494 11.749 14.6401 11.8897 14.7808C12.0303 14.9214 12.2211 15.0005 12.42 15.0005C12.6189 15.0005 12.8097 14.9214 12.9503 14.7808C13.091 14.6401 13.17 14.4494 13.17 14.2505V7.75046Z",fill:e})}),ue=({fill:e="currentColor",width:r="16",height:i="16"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 16 16",fill:"none",children:t("path",{d:"M8.75 3.75C8.75 3.33579 8.41421 3 8 3C7.58579 3 7.25 3.33579 7.25 3.75V7.25H3.75C3.33579 7.25 3 7.58579 3 8C3 8.41421 3.33579 8.75 3.75 8.75L7.25 8.75V12.25C7.25 12.6642 7.58579 13 8 13C8.41421 13 8.75 12.6642 8.75 12.25V8.75L12.25 8.75C12.6642 8.75 13 8.41421 13 8C13 7.58579 12.6642 7.25 12.25 7.25H8.75V3.75Z",fill:e})}),fe=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{d:"M10.0036 8C10.7993 8 11.5623 7.68393 12.1249 7.12132C12.6875 6.55871 13.0036 5.79565 13.0036 5C13.0036 4.20435 12.6875 3.44129 12.1249 2.87868C11.5623 2.31607 10.7993 2 10.0036 2C9.20797 2 8.44491 2.31607 7.8823 2.87868C7.31969 3.44129 7.00362 4.20435 7.00362 5C7.00362 5.79565 7.31969 6.55871 7.8823 7.12132C8.44491 7.68393 9.20797 8 10.0036 8ZM3.46862 14.493C3.37578 14.7411 3.36554 15.0126 3.43941 15.267C3.51329 15.5214 3.66733 15.7452 3.87862 15.905C5.62995 17.266 7.7856 18.0034 10.0036 18C12.3136 18 14.4416 17.216 16.1346 15.9C16.5646 15.567 16.7386 14.997 16.5426 14.49C16.0349 13.168 15.1382 12.0311 13.9709 11.2292C12.8037 10.4274 11.4207 9.99829 10.0046 9.99861C8.58845 9.99894 7.20569 10.4287 6.03881 11.231C4.87193 12.0334 3.97578 13.1708 3.46862 14.493Z",fill:e})}),me=({fill:e="currentColor",width:r="16",height:i="16"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 16 16",fill:"none",children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM9 11.5C9 12.0523 8.55228 12.5 8 12.5C7.44772 12.5 7 12.0523 7 11.5C7 10.9477 7.44772 10.5 8 10.5C8.55228 10.5 9 10.9477 9 11.5ZM7.29303 5.29289C7.68355 4.90237 8.31671 4.90237 8.70724 5.29289C9.09776 5.68342 9.09776 6.31658 8.70724 6.70711C8.58354 6.83081 8.43743 6.91429 8.2827 6.95959C7.82404 7.09387 7.25013 7.52576 7.25013 8.25V8.50022C7.25013 8.91444 7.58592 9.25022 8.00013 9.25022C8.41435 9.25022 8.75013 8.91444 8.75013 8.50022V8.38522C9.12313 8.26818 9.47391 8.06176 9.7679 7.76777C10.7442 6.79146 10.7442 5.20854 9.7679 4.23223C8.79159 3.25592 7.20868 3.25592 6.23237 4.23223C5.93947 4.52513 5.93947 5 6.23237 5.29289C6.52526 5.58579 7.00013 5.58579 7.29303 5.29289Z",fill:e})}),xe=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60597 12.9691C4.85946 13.2967 4.79938 13.7678 4.47179 14.0213C3.87925 14.4798 3.5 15.1954 3.5 16C3.5 16.1569 3.51437 16.31 3.54177 16.4582C3.68996 16.4856 3.84307 16.5 4 16.5C4.80458 16.5 5.52023 16.1208 5.97873 15.5282C6.23222 15.2006 6.70328 15.1405 7.03087 15.394C7.35846 15.6475 7.41854 16.1186 7.16505 16.4462C6.4347 17.39 5.2884 18 4 18C3.54003 18 3.09667 17.9221 2.6834 17.778C2.46722 17.7027 2.29728 17.5328 2.22195 17.3166C2.07794 16.9033 2 16.46 2 16C2 14.7116 2.60997 13.5653 3.55383 12.835C3.88142 12.5815 4.35248 12.6415 4.60597 12.9691Z",fill:r}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75236 12C6.40714 12.8376 7.16237 13.5929 8 14.2476V18.25C8 18.6642 8.33579 19 8.75 19C11.5114 19 13.75 16.7614 13.75 14C13.75 13.5097 13.6792 13.035 13.5471 12.5861C16.8467 10.2297 19 6.36651 19 2C19 1.91234 18.9991 1.82486 18.9974 1.73759C18.9894 1.33502 18.665 1.01058 18.2624 1.0026C18.1751 1.00087 18.0877 1 18 1C13.6335 1 9.77032 3.15331 7.41387 6.45291C6.96496 6.32078 6.49028 6.25 6 6.25C3.23858 6.25 1 8.48858 1 11.25C1 11.6642 1.33579 12 1.75 12H5.75236ZM13 9C14.1046 9 15 8.10457 15 7C15 5.89543 14.1046 5 13 5C11.8954 5 11 5.89543 11 7C11 8.10457 11.8954 9 13 9Z",fill:r})]}),be=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{width:i,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M9 16C12.866 16 16 12.866 16 9C16 5.13401 12.866 2 9 2C5.13401 2 2 5.13401 2 9C2 12.866 5.13401 16 9 16Z",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M18 18L14 14",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ce=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[t("path",{d:"M8 10C8 9.60218 8.15804 9.22064 8.43934 8.93934C8.72064 8.65804 9.10218 8.5 9.5 8.5C9.89782 8.5 10.2794 8.65804 10.5607 8.93934C10.842 9.22064 11 9.60218 11 10C11 10.3978 10.842 10.7794 10.5607 11.0607C10.2794 11.342 9.89782 11.5 9.5 11.5C9.10218 11.5 8.72064 11.342 8.43934 11.0607C8.15804 10.7794 8 10.3978 8 10Z",fill:r}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 2C4.10218 2 3.72064 2.15804 3.43934 2.43934C3.15804 2.72065 3 3.10218 3 3.5V16.5C3 16.8978 3.15804 17.2794 3.43934 17.5607C3.72064 17.842 4.10218 18 4.5 18H15.5C15.8978 18 16.2794 17.842 16.5607 17.5607C16.842 17.2794 17 16.8978 17 16.5V7.621C16.9997 7.22331 16.8414 6.84204 16.56 6.561L12.44 2.439C12.3005 2.29961 12.1349 2.1891 11.9527 2.11377C11.7705 2.03844 11.5752 1.99978 11.378 2H4.5ZM9.5 7C9.03881 7.00024 8.58388 7.10681 8.17056 7.31143C7.75725 7.51605 7.39667 7.8132 7.11685 8.17981C6.83703 8.54641 6.64551 8.9726 6.55715 9.42525C6.46879 9.8779 6.48598 10.3448 6.60739 10.7897C6.7288 11.2347 6.95116 11.6456 7.25718 11.9906C7.5632 12.3357 7.94466 12.6055 8.3719 12.7792C8.79915 12.9528 9.26068 13.0257 9.72064 12.992C10.1806 12.9583 10.6266 12.819 11.024 12.585L12.22 13.78C12.2887 13.8537 12.3715 13.9128 12.4635 13.9538C12.5555 13.9948 12.6548 14.0168 12.7555 14.0186C12.8562 14.0204 12.9562 14.0018 13.0496 13.9641C13.143 13.9264 13.2278 13.8703 13.299 13.799C13.3703 13.7278 13.4264 13.643 13.4641 13.5496C13.5018 13.4562 13.5204 13.3562 13.5186 13.2555C13.5168 13.1548 13.4948 13.0555 13.4538 12.9635C13.4128 12.8715 13.3537 12.7887 13.28 12.72L12.085 11.524C12.3538 11.0683 12.4972 10.5496 12.5009 10.0206C12.5045 9.49158 12.3682 8.97099 12.1057 8.51165C11.8432 8.0523 11.464 7.67053 11.0063 7.40506C10.5487 7.13958 10.029 6.99984 9.5 7Z",fill:r})]}),ve=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 20 20",fill:"none",children:[t("path",{d:"M6.5 9C6.5 8.33696 6.76339 7.70107 7.23223 7.23223C7.70107 6.76339 8.33696 6.5 9 6.5C9.66304 6.5 10.2989 6.76339 10.7678 7.23223C11.2366 7.70107 11.5 8.33696 11.5 9C11.5 9.66304 11.2366 10.2989 10.7678 10.7678C10.2989 11.2366 9.66304 11.5 9 11.5C8.33696 11.5 7.70107 11.2366 7.23223 10.7678C6.76339 10.2989 6.5 9.66304 6.5 9Z",fill:r}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18ZM9 5C8.37415 5.0001 7.75705 5.14706 7.19833 5.42906C6.63961 5.71106 6.15485 6.12023 5.78304 6.62367C5.41124 7.12711 5.16275 7.71077 5.05756 8.32773C4.95238 8.94468 4.99343 9.5777 5.17741 10.1759C5.3614 10.7741 5.68319 11.3208 6.1169 11.772C6.55061 12.2232 7.08415 12.5663 7.67462 12.7738C8.26508 12.9813 8.89599 13.0473 9.51661 12.9666C10.1372 12.8859 10.7303 12.6606 11.248 12.309L12.72 13.78C12.7887 13.8537 12.8715 13.9128 12.9635 13.9538C13.0555 13.9948 13.1548 14.0168 13.2555 14.0186C13.3562 14.0204 13.4562 14.0018 13.5496 13.9641C13.643 13.9264 13.7278 13.8703 13.799 13.799C13.8703 13.7278 13.9264 13.643 13.9641 13.5496C14.0018 13.4562 14.0204 13.3562 14.0186 13.2555C14.0168 13.1548 13.9948 13.0555 13.9538 12.9635C13.9128 12.8715 13.8537 12.7887 13.78 12.72L12.309 11.248C12.7176 10.6467 12.9546 9.94532 12.9944 9.21939C13.0343 8.49346 12.8756 7.77039 12.5353 7.1279C12.195 6.48542 11.6861 5.94782 11.0632 5.5729C10.4403 5.19798 9.72702 4.99992 9 5Z",fill:r})]}),we=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 14 16",fill:"none",children:[t("path",{d:"M7 5V8",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M3 11V9C3 8.4477 3.4477 8 4 8H10C10.5523 8 11 8.4477 11 9V11",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M7 5C8.10457 5 9 4.10457 9 3C9 1.89543 8.10457 1 7 1C5.89543 1 5 1.89543 5 3C5 4.10457 5.89543 5 7 5Z",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M3 15C4.10457 15 5 14.1046 5 13C5 11.8954 4.10457 11 3 11C1.89543 11 1 11.8954 1 13C1 14.1046 1.89543 15 3 15Z",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M11 15C12.1046 15 13 14.1046 13 13C13 11.8954 12.1046 11 11 11C9.89543 11 9 11.8954 9 13C9 14.1046 9.89543 15 11 15Z",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ye=({fill:r="currentColor",width:i="21",height:o="21"})=>e("svg",{width:i,height:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M22.392 10.5705C21.693 5.4495 17.313 1.5 12 1.5C6.201 1.5 1.5 6.201 1.5 12C1.5 14.064 2.1045 15.9825 3.132 17.6055L1.5 22.5L6.3945 20.868C7.6395 21.657 9.06 22.188 10.584 22.3965",stroke:r,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M17.625 12.75L18.75 16.5L22.5 17.625L18.75 18.75L17.625 22.5L16.5 18.75L12.75 17.625L16.5 16.5L17.625 12.75Z",fill:r,stroke:r,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),ke=({fill:r="currentColor",width:i="20",height:o="20"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 14 14",fill:"none",children:[t("path",{d:"M13 1H1",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M7 13V1",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Le=({fill:e="currentColor",width:r="20",height:i="20"})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:i,viewBox:"0 0 20 20",fill:"none",children:t("path",{d:"M11.2502 1C12.769 1 14.0002 2.23122 14.0002 3.75V4.19238C14.7954 4.26939 15.5841 4.3694 16.3655 4.49121C16.7747 4.555 17.0551 4.93847 16.9914 5.34766C16.9276 5.75685 16.5442 6.0373 16.135 5.97363C16.0856 5.96593 16.036 5.95771 15.9865 5.9502L15.1448 16.4697C15.0302 17.8987 13.8371 19 12.4035 19H7.5969C6.16331 19 4.97024 17.8987 4.85569 16.4697L4.01389 5.9502C3.96456 5.9577 3.91473 5.96595 3.86545 5.97363C3.45635 6.03717 3.07279 5.75678 3.00901 5.34766C2.94536 4.93848 3.2258 4.555 3.63499 4.49121C4.41637 4.3694 5.205 4.2694 6.00022 4.19238V3.75C6.00022 2.23122 7.23144 1 8.75022 1H11.2502ZM7.80002 7.00098C7.41217 7.01665 7.10455 7.32382 7.08127 7.70312V7.78027L7.38108 15.2803C7.39779 15.694 7.74659 16.0156 8.16038 15.999C8.57421 15.9824 8.89666 15.6336 8.8801 15.2197L8.57932 7.71973L8.57249 7.64355C8.51897 7.26722 8.18803 6.98546 7.80002 7.00098ZM12.2004 7.00098C11.7866 6.98443 11.4378 7.30599 11.4211 7.71973L11.1213 15.2197C11.1048 15.6335 11.4263 15.9823 11.8401 15.999C12.2538 16.0156 12.6026 15.694 12.6194 15.2803L12.9201 7.78027C12.9367 7.36644 12.6142 7.01761 12.2004 7.00098ZM8.75022 2.5C8.05986 2.5 7.50022 3.05964 7.50022 3.75V4.0752C8.32725 4.02543 9.16083 4 10.0002 4C10.8396 4 11.6732 4.02544 12.5002 4.0752V3.75C12.5002 3.05964 11.9406 2.5 11.2502 2.5H8.75022Z",fill:e})}),Ee=({fill:r="currentColor",width:i="16",height:o="16"})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:o,viewBox:"0 0 16 16",fill:"none",children:[t("path",{d:"M3.75 2C2.7835 2 2 2.7835 2 3.75V5.25C2 5.66421 2.33579 6 2.75 6C3.16421 6 3.5 5.66421 3.5 5.25V3.75C3.5 3.61193 3.61193 3.5 3.75 3.5H5.25C5.66421 3.5 6 3.16421 6 2.75C6 2.33579 5.66421 2 5.25 2H3.75Z",fill:r}),t("path",{d:"M10.75 2C10.3358 2 10 2.33579 10 2.75C10 3.16421 10.3358 3.5 10.75 3.5H12.25C12.3881 3.5 12.5 3.61193 12.5 3.75V5.25C12.5 5.66421 12.8358 6 13.25 6C13.6642 6 14 5.66421 14 5.25V3.75C14 2.7835 13.2165 2 12.25 2H10.75Z",fill:r}),t("path",{d:"M3.5 10.75C3.5 10.3358 3.16421 10 2.75 10C2.33579 10 2 10.3358 2 10.75V12.25C2 13.2165 2.7835 14 3.75 14H5.25C5.66421 14 6 13.6642 6 13.25C6 12.8358 5.66421 12.5 5.25 12.5H3.75C3.61193 12.5 3.5 12.3881 3.5 12.25V10.75Z",fill:r}),t("path",{d:"M14 10.75C14 10.3358 13.6642 10 13.25 10C12.8358 10 12.5 10.3358 12.5 10.75V12.25C12.5 12.3881 12.3881 12.5 12.25 12.5H10.75C10.3358 12.5 10 12.8358 10 13.25C10 13.6642 10.3358 14 10.75 14H12.25C13.2165 14 14 13.2165 14 12.25V10.75Z",fill:r}),t("path",{d:"M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z",fill:r})]});var Me;!function(e){e.BARS_3_BOTTOM_LEFT="bars-3-bottom-left",e.BUILDING="building",e.BULK_CHECK="bulk-check",e.CHECK="check",e.CHECK_CIRCLE="check-circle",e.CHECK_SQUARE="check-square",e.CHEVRON_DOWN="chevron-down",e.CLOSE="close",e.CODE="code",e.COMPUTER="computer",e.COPY="copy",e.CUBE="cube",e.DATABASE="database",e.EXCLAMATION_CIRCLE="exclamation-circle",e.EXCLAMATION_TRIANGLE="exclamation-triangle",e.GEAR="gear",e.GLobe="globe",e.HASHTAG="hashtag",e.HOME="home",e.INBOX="inbox",e.INFORMATION_CIRCLE="information-circle",e.INFORMATION_CIRCLE_MICRO="information-circle-micro",e.LAMP="lamp",e.LOCK_OPEN="lock-open",e.MINUS="minus",e.PAPER_PLANE="paper-plane",e.PENCIL="pencil",e.PIE_CHART="pie-chart",e.PIPELINE="pipeline",e.PLUS="plus",e.PROFILE="profile",e.QUESTION_CIRCLE="question-circle",e.ROCKET_LAUNCH="rocket-launch",e.SEARCH="search",e.SEARCH_DOCUMENT="search-document",e.SEARCH_SQL="search-sql",e.SITEMAP="sitemap",e.TETRASCIENCE_ICON="tetrascience-icon",e.TEXT="text",e.TRASH="trash",e.VIEWFINDER_CIRCLE="viewfinder-circle"}(Me||(Me={}));const Ie=e=>{let r=null;const{name:i}=e;switch(i){case Me.BARS_3_BOTTOM_LEFT:r=t(P,{...e});break;case Me.BUILDING:r=t(D,{...e});break;case Me.BULK_CHECK:r=t(V,{...e});break;case Me.CHECK:r=t(U,{...e});break;case Me.CHECK_CIRCLE:r=t(G,{...e});break;case Me.CHECK_SQUARE:r=t(K,{...e});break;case Me.CHEVRON_DOWN:r=t(Z,{...e});break;case Me.CLOSE:r=t(W,{...e});break;case Me.CODE:r=t(j,{...e});break;case Me.COMPUTER:r=t(F,{...e});break;case Me.COPY:r=t(Y,{...e});break;case Me.CUBE:r=t(X,{...e});break;case Me.DATABASE:r=t(q,{...e});break;case Me.EXCLAMATION_CIRCLE:r=t(Q,{...e});break;case Me.EXCLAMATION_TRIANGLE:r=t(J,{...e});break;case Me.GEAR:r=t(ee,{...e});break;case Me.GLobe:r=t(te,{...e});break;case Me.HASHTAG:r=t(re,{...e});break;case Me.HOME:r=t(ie,{...e});break;case Me.INBOX:r=t(oe,{...e});break;case Me.INFORMATION_CIRCLE:r=t(ne,{...e});break;case Me.INFORMATION_CIRCLE_MICRO:r=t(ae,{...e});break;case Me.LAMP:r=t(le,{...e});break;case Me.LOCK_OPEN:r=t(se,{...e});break;case Me.MINUS:r=t(ce,{...e});break;case Me.PAPER_PLANE:r=t(de,{...e});break;case Me.PENCIL:r=t(he,{...e});break;case Me.PIE_CHART:r=t(pe,{...e});break;case Me.PIPELINE:r=t(ge,{...e});break;case Me.PLUS:r=t(ue,{...e});break;case Me.PROFILE:r=t(fe,{...e});break;case Me.QUESTION_CIRCLE:r=t(me,{...e});break;case Me.ROCKET_LAUNCH:r=t(xe,{...e});break;case Me.SEARCH:r=t(be,{...e});break;case Me.SEARCH_DOCUMENT:r=t(Ce,{...e});break;case Me.SEARCH_SQL:r=t(ve,{...e});break;case Me.SITEMAP:r=t(we,{...e});break;case Me.TETRASCIENCE_ICON:r=t(ye,{...e});break;case Me.TEXT:r=t(ke,{...e});break;case Me.TRASH:r=t(Le,{...e});break;case Me.VIEWFINDER_CIRCLE:r=t(Ee,{...e});break;default:throw`[Icon] name "${i}" does not exist`}return t("div",{style:{display:"inline-flex"},children:r})},_e=i.label`
205
205
  display: inline-flex;
206
206
  align-items: center;
207
207
  cursor: ${e=>e.disabled?"not-allowed":"pointer"};
208
208
  opacity: ${e=>e.disabled?.6:1};
209
- padding: ${e=>e.noPadding?"0":"12px 16px"};
209
+ padding: ${e=>e.$noPadding?"0":"12px 16px"};
210
210
  width: 100%;
211
- `,Re=i.input.attrs({type:"checkbox"})`
211
+ `,Ae=i.input.attrs({type:"checkbox"})`
212
212
  position: absolute;
213
213
  opacity: 0;
214
214
  height: 0;
@@ -226,18 +226,18 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
226
226
  transition: all 0.2s;
227
227
 
228
228
  ${e=>!e.disabled&&"\n\t\t&:hover {\n\t\t\tborder-color: var(--blue-600);\n\t\t}\n\t"}
229
- `,_e=()=>r(Ae,{name:Me.CHECK_SQUARE,fill:"var(--blue-600)"}),Be=i.span`
229
+ `,$e=()=>t(Ie,{name:Me.CHECK_SQUARE,fill:"var(--blue-600)"}),Te=i.span`
230
230
  margin-left: 10px;
231
231
  font-family: "Inter", sans-serif;
232
232
  font-size: 14px;
233
233
  font-style: normal;
234
234
  font-weight: 400;
235
235
  line-height: 20px;
236
- `,ze=d(({checked:t=!1,onChange:i,disabled:o=!1,className:n,onClick:l,label:a,noPadding:s=!1},d)=>e(Ie,{className:n,disabled:o,noPadding:s,onClick:e=>{l&&l(e)},children:[r(Re,{ref:d,checked:t,onChange:e=>{!o&&i&&i(e.target.checked)},disabled:o}),r(Ne,{checked:t,disabled:o,children:t&&r(_e,{})}),a&&r(Be,{children:a})]}));ze.displayName="Checkbox";var He={active4d:"Active4D","all-hallows-eve":"All Hallows Eve",amy:"Amy","birds-of-paradise":"Birds of Paradise",blackboard:"Blackboard","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight",clouds:"Clouds",cobalt:"Cobalt",cobalt2:"Cobalt2",dawn:"Dawn",dracula:"Dracula",dreamweaver:"Dreamweaver",eiffel:"Eiffel","espresso-libre":"Espresso Libre","github-dark":"GitHub Dark","github-light":"GitHub Light",github:"GitHub",idle:"IDLE",katzenmilch:"Katzenmilch","kuroir-theme":"Kuroir Theme",lazy:"LAZY","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft",merbivore:"Merbivore","monokai-bright":"Monokai Bright",monokai:"Monokai","night-owl":"Night Owl",nord:"Nord","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light",spacecadet:"SpaceCadet",sunburst:"Sunburst","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","tomorrow-night":"Tomorrow-Night",tomorrow:"Tomorrow",twilight:"Twilight","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",zenburnesque:"Zenburnesque",iplastic:"iPlastic",idlefingers:"idleFingers",krtheme:"krTheme",monoindustrial:"monoindustrial"};const Te=i.div`
236
+ `,Re=({checked:r=!1,onChange:i,disabled:o=!1,className:n,onClick:a,label:l,noPadding:s=!1,ref:c})=>e(_e,{className:n,disabled:o,$noPadding:s,onClick:e=>{a&&a(e)},children:[t(Ae,{ref:c,checked:r,onChange:e=>{!o&&i&&i(e.target.checked)},disabled:o}),t(Ne,{checked:r,disabled:o,children:r&&t($e,{})}),l&&t(Te,{children:l})]}),ze=i.div`
237
237
  position: relative;
238
238
  display: inline-flex;
239
239
  width: fit-content;
240
- `,$e=i.div`
240
+ `,Se=i.div`
241
241
  position: absolute;
242
242
  background-color: var(--black);
243
243
  color: var(--white);
@@ -259,7 +259,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
259
259
  box-sizing: border-box;
260
260
  text-align: left;
261
261
 
262
- ${e=>e.isVisible&&o`
262
+ ${e=>e.$isVisible&&o`
263
263
  opacity: 1;
264
264
  visibility: visible;
265
265
  `}
@@ -325,15 +325,15 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
325
325
  border-color: transparent transparent transparent var(--black);
326
326
  }
327
327
  `;default:return""}}}
328
- `,Pe=({content:t,children:i,placement:o="top",className:n,delay:l=100})=>{const[a,s]=c(!1),d=h(null);return p(()=>()=>{d.current&&clearTimeout(d.current)},[]),e(Te,{className:n,onMouseEnter:()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{s(!0)},l)},onMouseLeave:()=>{d.current&&clearTimeout(d.current),s(!1)},children:[i,r($e,{placement:o,isVisible:a,children:t})]})},Se="function"==typeof import.meta.glob?import.meta.glob("/node_modules/monaco-themes/themes/*.json"):{},Oe={light:"github-light",dark:"dracula"},Ve=i.div`
328
+ `,Be=({content:r,children:i,placement:o="top",className:n,delay:a=100})=>{const[l,s]=c(!1),p=d(null);return h(()=>()=>{p.current&&clearTimeout(p.current)},[]),e(ze,{className:n,onMouseEnter:()=>{p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{s(!0)},a)},onMouseLeave:()=>{p.current&&clearTimeout(p.current),s(!1)},children:[i,t(Se,{placement:o,$isVisible:l,children:r})]})};var He={active4d:"Active4D","all-hallows-eve":"All Hallows Eve",amy:"Amy","birds-of-paradise":"Birds of Paradise",blackboard:"Blackboard","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight",clouds:"Clouds",cobalt:"Cobalt",cobalt2:"Cobalt2",dawn:"Dawn",dracula:"Dracula",dreamweaver:"Dreamweaver",eiffel:"Eiffel","espresso-libre":"Espresso Libre","github-dark":"GitHub Dark","github-light":"GitHub Light",github:"GitHub",idle:"IDLE",katzenmilch:"Katzenmilch","kuroir-theme":"Kuroir Theme",lazy:"LAZY","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft",merbivore:"Merbivore","monokai-bright":"Monokai Bright",monokai:"Monokai","night-owl":"Night Owl",nord:"Nord","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light",spacecadet:"SpaceCadet",sunburst:"Sunburst","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","tomorrow-night":"Tomorrow-Night",tomorrow:"Tomorrow",twilight:"Twilight","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",zenburnesque:"Zenburnesque",iplastic:"iPlastic",idlefingers:"idleFingers",krtheme:"krTheme",monoindustrial:"monoindustrial"};const Oe="function"==typeof import.meta.glob?import.meta.glob("/node_modules/monaco-themes/themes/*.json"):{},Pe={light:"github-light",dark:"dracula"},De=i.div`
329
329
  border-radius: 16px;
330
330
  overflow: hidden;
331
- background-color: ${e=>"dark"===e.themeMode?"var(--grey-800)":"var(--grey-50)"};
331
+ background-color: ${e=>"dark"===e.$themeMode?"var(--grey-800)":"var(--grey-50)"};
332
332
  position: relative;
333
333
  border: 1px solid var(--grey-200);
334
334
  opacity: ${e=>e.disabled?.6:1};
335
335
  cursor: ${e=>e.disabled?"not-allowed":"default"};
336
- `,De=i.div`
336
+ `,Ve=i.div`
337
337
  margin-left: auto;
338
338
  display: flex;
339
339
  gap: 8px;
@@ -348,13 +348,13 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
348
348
  display: flex;
349
349
  align-items: center;
350
350
  justify-content: center;
351
- `,Ze=i(N)`
351
+ `,Ge=i(N)`
352
352
  width: 100%;
353
353
  height: 100%;
354
- `,Ge=({value:t,onChange:i,language:o="python",theme:n="dark",height:l=400,width:a="100%",options:s={},onCopy:d,onLaunch:h,disabled:p=!1})=>{const[f,u]=c("Copy"),[x,m]=c("Launch"),b=g(e=>{d&&!p&&(d(e),u("Copied"),setTimeout(()=>{u("Copy")},1e3))},[d,p]),v=g(e=>{h&&!p&&(h(e),m("Launched"),setTimeout(()=>{m("Launch")},1e3))},[h,p]),w={minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"on",padding:{top:12,bottom:12,left:20,right:20},scrollbar:{vertical:"hidden",verticalScrollbarSize:0},readOnly:p,...s};return e(Ve,{themeMode:n,disabled:p,children:[e(De,{children:[d&&r(Pe,{content:f,placement:"bottom",children:r(Ue,{children:r(Ze,{variant:"tertiary",size:"small",leftIcon:r(Ae,{name:Me.COPY}),noPadding:!0,fullWidth:!0,onClick:()=>b(t),disabled:p,children:null})})}),h&&r(Pe,{content:x,placement:"bottom",children:r(Ue,{children:r(Ze,{variant:"tertiary",size:"small",leftIcon:r(Ae,{name:Me.ROCKET_LAUNCH}),noPadding:!0,fullWidth:!0,onClick:()=>v(t),disabled:p,children:null})})})]}),r(C,{value:t,onChange:i,language:o,theme:Oe[n],height:l,width:a,options:w,beforeMount:async e=>{const r=Oe[n];try{const t=He[r];if(t){const i=Se[`/node_modules/monaco-themes/themes/${t}.json`];if(i){const t=(await i()).default;e.editor.defineTheme(r,t)}}e.editor.setTheme(r)}catch(r){console.error("Error loading theme:",r),e.editor.setTheme("vs-dark")}}})]})},We=i.div`
354
+ `,Ke=({value:r,onChange:i,language:o="python",theme:n="dark",height:a=400,width:l="100%",options:s={},onCopy:d,onLaunch:h,disabled:g=!1})=>{const[u,f]=c("Copy"),[x,b]=c("Launch"),C=p(e=>{d&&!g&&(d(e),f("Copied"),setTimeout(()=>{f("Copy")},1e3))},[d,g]),v=p(e=>{h&&!g&&(h(e),b("Launched"),setTimeout(()=>{b("Launch")},1e3))},[h,g]),w={minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"on",padding:{top:12,bottom:12,left:20,right:20},scrollbar:{vertical:"hidden",verticalScrollbarSize:0},readOnly:g,...s};return e(De,{$themeMode:n,disabled:g,children:[e(Ve,{children:[d&&t(Be,{content:u,placement:"bottom",children:t(Ue,{children:t(Ge,{variant:"tertiary",size:"small",leftIcon:t(Ie,{name:Me.COPY}),noPadding:!0,fullWidth:!0,onClick:()=>C(r),disabled:g,children:null})})}),h&&t(Be,{content:x,placement:"bottom",children:t(Ue,{children:t(Ge,{variant:"tertiary",size:"small",leftIcon:t(Ie,{name:Me.ROCKET_LAUNCH}),noPadding:!0,fullWidth:!0,onClick:()=>v(r),disabled:g,children:null})})})]}),t(m,{value:r,onChange:i,language:o,theme:Pe[n],height:a,width:l,options:w,beforeMount:async e=>{const t=Pe[n];try{const r=He[t];if(r){const i=Oe[`/node_modules/monaco-themes/themes/${r}.json`];if(i){const r=(await i()).default;e.editor.defineTheme(t,r)}}e.editor.setTheme(t)}catch(t){console.error("Error loading theme:",t),e.editor.setTheme("vs-dark")}}})]})},Ze=i.div`
355
355
  position: relative;
356
356
  width: ${e=>e.width||"100%"};
357
- `,je=i.button`
357
+ `,We=i.button`
358
358
  display: flex;
359
359
  align-items: center;
360
360
  justify-content: space-between;
@@ -363,7 +363,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
363
363
  padding: 0 12px;
364
364
  background-color: ${e=>e.disabled?"var(--grey-100)":"var(--white-900)"};
365
365
  border: 1px solid
366
- ${e=>e.error?"var(--red-error)":e.disabled?"var(--grey-200)":e.open?"var(--blue-600)":"var(--grey-300)"};
366
+ ${e=>e.$error?"var(--red-error)":e.disabled?"var(--grey-200)":e.open?"var(--blue-600)":"var(--grey-300)"};
367
367
  border-radius: 6px;
368
368
  outline: none;
369
369
  cursor: ${e=>e.disabled?"not-allowed":"pointer"};
@@ -377,7 +377,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
377
377
  color: ${e=>e.disabled?"var(--grey-400)":e.open?"var(--black-900)":"var(--grey-400)"};
378
378
 
379
379
  &:hover:not(:disabled) {
380
- border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
380
+ border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
381
381
  color: var(--black-900) !important;
382
382
  }
383
383
 
@@ -392,10 +392,10 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
392
392
 
393
393
  &:focus {
394
394
  outline: none;
395
- box-shadow: ${e=>e.error?"0px 0px 0px 3px var(--red-bg)":"0px 0px 0px 1px var(--white-900), 0px 0px 0px 3px var(--blue-600)"};
396
- border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
395
+ box-shadow: ${e=>e.$error?"0px 0px 0px 3px var(--red-bg)":"0px 0px 0px 1px var(--white-900), 0px 0px 0px 3px var(--blue-600)"};
396
+ border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
397
397
  }
398
- `,Ke=i.div`
398
+ `,je=i.div`
399
399
  width: 20px;
400
400
  height: 20px;
401
401
  transform: ${e=>e.open?"rotate(180deg)":"rotate(0deg)"};
@@ -404,7 +404,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
404
404
  display: flex;
405
405
  align-items: center;
406
406
  justify-content: center;
407
- `,Ye=i.div`
407
+ `,Fe=i.div`
408
408
  text-overflow: ellipsis;
409
409
  white-space: nowrap;
410
410
  overflow: hidden;
@@ -418,7 +418,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
418
418
  white-space: nowrap;
419
419
  overflow: hidden;
420
420
  }
421
- `,Fe=i.ul`
421
+ `,Ye=i.ul`
422
422
  position: absolute;
423
423
  top: calc(100% + 4px);
424
424
  left: 0;
@@ -466,7 +466,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
466
466
  outline: 2px solid var(--blue-600);
467
467
  outline-offset: -2px;
468
468
  }
469
- `,Je=({options:t=[],value:i,placeholder:o="Select an option",disabled:n=!1,error:l=!1,size:a="small",onChange:s,onOpen:d,onClose:g,width:f,menuWidth:u})=>{const[C,x]=c(!1),[m,b]=c(i||""),v=h(null),w=h([]);p(()=>{void 0!==i&&b(i)},[i]),p(()=>{const e=e=>{v.current&&!v.current.contains(e.target)&&C&&(x(!1),g?.())};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[C,g]),p(()=>{C&&(w.current=w.current.slice(0,t.length))},[C,t.length]),p(()=>{if(C&&w.current.length>0){const e=t.findIndex(e=>e.value===m),r=e>=0?e:0;setTimeout(()=>{w.current[r]&&w.current[r]?.focus()},10)}},[C,t,m]);const y=e=>{e.disabled||(b(e.value),x(!1),s?.(e.value),g?.())},k=t.find(e=>e.value===m),L=k?k.label:o;return e(We,{ref:v,width:f,children:[e(je,{type:"button",onClick:()=>{if(!n){const e=!C;x(e),e?d?.():g?.()}},onKeyDown:e=>{if(!n)switch(e.key){case"Enter":case" ":case"ArrowDown":e.preventDefault(),C||(x(!0),d?.());break;case"Escape":e.preventDefault(),C&&(x(!1),g?.())}},open:C,disabled:n,error:l,size:a,"aria-haspopup":"listbox","aria-expanded":C,"aria-label":o,children:[r(Ye,{children:L}),r(Ke,{open:C,children:r(Ae,{name:Me.CHEVRON_DOWN,fill:"var(--grey-600)"})})]}),C&&r(Fe,{role:"listbox","aria-labelledby":"dropdown-button",menuWidth:u,children:t.length>0?t.map((e,i)=>r(Qe,{ref:e=>{w.current[i]=e},selected:e.value===m,disabled:e.disabled,onClick:()=>y(e),onKeyDown:e=>((e,r)=>{const i=t[r];switch(e.key){case"Enter":case" ":e.preventDefault(),i.disabled||y(i);break;case"ArrowDown":if(e.preventDefault(),r<t.length-1){let e=r+1;for(;e<t.length;){if(!t[e].disabled){w.current[e]?.focus();break}e++}}break;case"ArrowUp":if(e.preventDefault(),r>0){let e=r-1;for(;e>=0;){if(!t[e].disabled){w.current[e]?.focus();break}e--}}break;case"Escape":e.preventDefault(),x(!1),g?.();break;case"Tab":x(!1),g?.()}})(e,i),tabIndex:e.disabled?-1:0,role:"option","aria-selected":e.value===m,"aria-disabled":e.disabled,children:e.label},e.value)):e(Xe,{children:[r(Ae,{name:Me.INBOX,fill:"var(--grey-400)",width:"24px",height:"24px"}),r(qe,{children:"No Data"})]})})]})},er=i.div`
469
+ `,Je=({options:r=[],value:i,placeholder:o="Select an option",disabled:n=!1,error:a=!1,size:l="small",onChange:s,onOpen:p,onClose:g,width:u,menuWidth:f})=>{const[m,x]=c(!1),[b,C]=c(i||""),v=d(null),w=d([]);h(()=>{void 0!==i&&C(i)},[i]),h(()=>{const e=e=>{v.current&&!v.current.contains(e.target)&&m&&(x(!1),g?.())};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[m,g]),h(()=>{m&&(w.current=w.current.slice(0,r.length))},[m,r.length]),h(()=>{if(m&&w.current.length>0){const e=r.findIndex(e=>e.value===b),t=e>=0?e:0;setTimeout(()=>{w.current[t]&&w.current[t]?.focus()},10)}},[m,r,b]);const y=e=>{e.disabled||(C(e.value),x(!1),s?.(e.value),g?.())},k=(e,t)=>{const i=r[t];switch(e.key){case"Enter":case" ":e.preventDefault(),i.disabled||y(i);break;case"ArrowDown":{e.preventDefault();const i=(e=>{for(let t=e+1;t<r.length;t++)if(!r[t].disabled)return t;return-1})(t);-1!==i&&w.current[i]?.focus();break}case"ArrowUp":{e.preventDefault();const i=(e=>{for(let t=e-1;t>=0;t--)if(!r[t].disabled)return t;return-1})(t);-1!==i&&w.current[i]?.focus();break}case"Escape":e.preventDefault(),x(!1),g?.();break;case"Tab":x(!1),g?.()}},L=r.find(e=>e.value===b),E=L?L.label:o;return e(Ze,{ref:v,width:u,children:[e(We,{type:"button",onClick:()=>{if(!n){const e=!m;x(e),e?p?.():g?.()}},onKeyDown:e=>{if(!n)switch(e.key){case"Enter":case" ":case"ArrowDown":e.preventDefault(),m||(x(!0),p?.());break;case"Escape":e.preventDefault(),m&&(x(!1),g?.())}},open:m,disabled:n,$error:a,size:l,"aria-haspopup":"listbox","aria-expanded":m,"aria-label":o,children:[t(Fe,{children:E}),t(je,{open:m,children:t(Ie,{name:Me.CHEVRON_DOWN,fill:"var(--grey-600)"})})]}),m&&t(Ye,{role:"listbox","aria-labelledby":"dropdown-button",menuWidth:f,children:r.length>0?r.map((e,r)=>t(Qe,{ref:e=>{w.current[r]=e},selected:e.value===b,disabled:e.disabled,onClick:()=>y(e),onKeyDown:e=>k(e,r),tabIndex:e.disabled?-1:0,role:"option","aria-selected":e.value===b,"aria-disabled":e.disabled,children:e.label},e.value)):e(Xe,{children:[t(Ie,{name:Me.INBOX,fill:"var(--grey-400)",width:"24px",height:"24px"}),t(qe,{children:"No Data"})]})})]})},et=i.div`
470
470
  width: 100%;
471
471
  padding: 15px;
472
472
  border-radius: 4px;
@@ -476,17 +476,18 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
476
476
  display: flex;
477
477
  flex-direction: column;
478
478
  gap: 8px;
479
- `,rr=i.div`
479
+ box-sizing: border-box;
480
+ `,tt=i.div`
480
481
  display: flex;
481
482
  justify-content: space-between;
482
483
  align-items: flex-start;
483
- `,tr=i.div`
484
+ `,rt=i.div`
484
485
  color: #ff4d4f;
485
486
  font-size: 18px;
486
487
  margin-right: 12px;
487
488
  display: flex;
488
489
  align-items: center;
489
- `,ir=i.button`
490
+ `,it=i.button`
490
491
  background: none;
491
492
  border: none;
492
493
  font-size: 16px;
@@ -497,29 +498,29 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
497
498
  &:hover {
498
499
  color: rgba(0, 0, 0, 0.75);
499
500
  }
500
- `,or=i.div`
501
+ `,ot=i.div`
501
502
  font-weight: 500;
502
503
  font-size: 16px;
503
504
  display: flex;
504
505
  align-items: center;
505
506
  flex-grow: 1;
506
- `,nr=i.div`
507
+ `,nt=i.div`
507
508
  display: flex;
508
509
  flex-direction: column;
509
510
  gap: 8px;
510
511
  width: 100%;
511
- `,lr=i.p`
512
+ `,at=i.p`
512
513
  margin: 0;
513
514
  padding: 0;
514
515
  line-height: 1.5;
515
- `,ar=i.span`
516
- font-weight: ${e=>e.strong?"600":"400"};
517
- color: ${e=>"secondary"===e.type?"rgba(0, 0, 0, 0.45)":"inherit"};
518
- `,sr=i(ar).attrs({type:"secondary"})``,dr=i.div`
516
+ `,lt=i.span`
517
+ font-weight: ${e=>e.$strong?"600":"400"};
518
+ color: ${e=>"secondary"===e.$type?"rgba(0, 0, 0, 0.45)":"inherit"};
519
+ `,st=i(lt).attrs({$type:"secondary"})``,ct=i.div`
519
520
  margin-left: -15px;
520
521
  margin-right: -15px;
521
522
  margin-bottom: -5px;
522
- `,cr=i.div`
523
+ `,dt=i.div`
523
524
  padding: 12px 16px;
524
525
  cursor: pointer;
525
526
  display: flex;
@@ -531,16 +532,16 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
531
532
  }
532
533
 
533
534
  &::after {
534
- content: "${e=>e.isActive?"▼":"▶"}";
535
+ content: "${e=>e.$isActive?"▼":"▶"}";
535
536
  font-size: 12px;
536
537
  margin-left: 8px;
537
538
  }
538
- `,hr=i.div`
539
- padding: ${e=>e.isVisible?"0 16px 12px":"0 16px"};
540
- max-height: ${e=>e.isVisible?"300px":"0"};
539
+ `,ht=i.div`
540
+ padding: ${e=>e.$isVisible?"0 16px 12px":"0 16px"};
541
+ max-height: ${e=>e.$isVisible?"300px":"0"};
541
542
  overflow: hidden;
542
543
  transition: max-height 0.3s ease;
543
- `,pr=i.pre`
544
+ `,pt=i.pre`
544
545
  white-space: pre-wrap;
545
546
  word-break: break-all;
546
547
  max-height: 300px;
@@ -549,19 +550,19 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
549
550
  padding: 10px;
550
551
  border-radius: 4px;
551
552
  margin: 0;
552
- `;const gr=({children:t,header:i,defaultExpanded:o=!1})=>{const[n,l]=c(o);return e("div",{children:[r(cr,{isActive:n,onClick:()=>l(!n),children:i}),r(hr,{isVisible:n,children:t})]})},fr=({error:i,title:o="An Error Occurred",onClose:n,showDetailsDefault:l=!1})=>{if(!i)return r(t,{});let a="An unexpected error occurred.",s=null,d=null,c="Unknown Error";if(function(e){return"object"==typeof e&&null!==e&&"isAxiosError"in e&&!0===e.isAxiosError}(i)){if(c="Network/API Error",a=i.message,i.response){const e=i.response.status,r=i.response.statusText;a=`API Error: ${e} ${r}`;const t=i.response.data;if("string"==typeof t)s=t;else if(t&&"object"==typeof t){const e=t.detail||t.message||t.error;"string"==typeof e?s=e:(s="Check details for response data.",d=JSON.stringify(t,null,2))}else s=`Request failed with status code ${e}.`;d=`URL: ${i.config?.method?.toUpperCase()} ${i.config?.url}\nStatus: ${e} ${r}\nResponse Data:\n${d??JSON.stringify(t,null,2)}`}else i.request?(c="Network Error",a="Network Error: Could not reach the server.",s="Please check your internet connection or contact support if the problem persists.",d=`URL: ${i.config?.method?.toUpperCase()} ${i.config?.url}\nError Message: ${i.message}`):a=`Request Setup Error: ${i.message}`;i.code&&(c+=` (Code: ${i.code})`)}else if(i instanceof Error)c=i.name||"Error",a=i.message,d=i.stack??"No stack trace available.";else if("string"==typeof i)c="Message",a=i;else if("object"==typeof i&&null!==i){c="Object Error",a=i.message||i.error||"An object was thrown as an error.";try{d=JSON.stringify(i,null,2)}catch{d="Could not stringify the error object."}}return e(er,{type:"error",children:[e(rr,{children:[e(or,{children:[r(tr,{children:"⚠️"}),o]}),n&&r(ir,{onClick:n,children:"✕"})]}),e(nr,{children:[e(lr,{children:[e(ar,{strong:!0,children:[c,":"]})," ",a]}),s&&r(lr,{children:r(sr,{children:s})}),d&&r(dr,{children:r(gr,{header:"Details",defaultExpanded:l,children:r(pr,{children:d})})})]})]})},ur={xsmall:o`
553
+ `;function gt(e){let t="Network/API Error",r=e.message,i=null,o=null;if(e.response){const{status:t,statusText:n,data:a}=e.response;r=`API Error: ${t} ${n}`;const l=function(e){if("string"==typeof e)return{description:e,details:null};if(e&&"object"==typeof e){const t=e.detail||e.message||e.error;return"string"==typeof t?{description:t,details:null}:{description:"Check details for response data.",details:JSON.stringify(e,null,2)}}return{description:null,details:null}}(a);i=l.description??`Request failed with status code ${t}.`,o=`URL: ${e.config?.method?.toUpperCase()} ${e.config?.url}\nStatus: ${t} ${n}\nResponse Data:\n${l.details??JSON.stringify(a,null,2)}`}else e.request?(t="Network Error",r="Network Error: Could not reach the server.",i="Please check your internet connection or contact support if the problem persists.",o=`URL: ${e.config?.method?.toUpperCase()} ${e.config?.url}\nError Message: ${e.message}`):r=`Request Setup Error: ${e.message}`;return e.code&&(t+=` (Code: ${e.code})`),{message:r,description:i,details:o,errorType:t}}function ut(e){return function(e){return"object"==typeof e&&null!==e&&"isAxiosError"in e&&!0===e.isAxiosError}(e)?gt(e):e instanceof Error?function(e){return{message:e.message,description:null,details:e.stack??"No stack trace available.",errorType:e.name||"Error"}}(e):"string"==typeof e?{message:e,description:null,details:null,errorType:"Message"}:"object"==typeof e&&null!==e?function(e){const t=e.message||e.error||"An object was thrown as an error.";let r;try{r=JSON.stringify(e,null,2)}catch{r="Could not stringify the error object."}return{message:t,description:null,details:r,errorType:"Object Error"}}(e):{message:"An unexpected error occurred.",description:null,details:null,errorType:"Unknown Error"}}const ft=({children:r,header:i,defaultExpanded:o=!1})=>{const[n,a]=c(o);return e("div",{children:[t(dt,{$isActive:n,onClick:()=>a(!n),children:i}),t(ht,{$isVisible:n,children:r})]})},mt=({error:i,title:o="An Error Occurred",onClose:n,showDetailsDefault:a=!1})=>{if(!i)return t(r,{});const{message:l,description:s,details:c,errorType:d}=ut(i);return e(et,{type:"error",children:[e(tt,{children:[e(ot,{children:[t(rt,{children:"⚠️"}),o]}),n&&t(it,{onClick:n,children:"✕"})]}),e(nt,{children:[e(at,{children:[e(lt,{$strong:!0,children:[d,":"]})," ",l]}),s&&t(at,{children:t(st,{children:s})}),c&&t(ct,{children:t(ft,{header:"Details",defaultExpanded:a,children:t(pt,{children:c})})})]})]})},xt={xsmall:o`
553
554
  height: 32px;
554
- padding: ${e=>e.hasIconLeft&&e.hasIconRight?"0 32px 0 32px":e.hasIconLeft?"0 10px 0 32px":e.hasIconRight?"0 32px 0 10px":"0 10px"};
555
+ padding: ${e=>e.$hasIconLeft&&e.$hasIconRight?"0 32px 0 32px":e.$hasIconLeft?"0 10px 0 32px":e.$hasIconRight?"0 32px 0 10px":"0 10px"};
555
556
  `,small:o`
556
557
  height: 36px;
557
- padding: ${e=>e.hasIconLeft&&e.hasIconRight?"0 38px 0 38px":e.hasIconLeft?"0 12px 0 38px":e.hasIconRight?"0 38px 0 12px":"0 12px"};
558
- `},Cr=i.div`
558
+ padding: ${e=>e.$hasIconLeft&&e.$hasIconRight?"0 38px 0 38px":e.$hasIconLeft?"0 12px 0 38px":e.$hasIconRight?"0 38px 0 12px":"0 12px"};
559
+ `},bt=i.div`
559
560
  position: relative;
560
561
  display: inline-flex;
561
562
  align-items: center;
562
563
  width: 100%;
563
564
  gap: 8px;
564
- `,xr=i.input`
565
+ `,Ct=i.input`
565
566
  width: 100%;
566
567
  border-radius: 6px;
567
568
  font-family: "Inter", sans-serif;
@@ -570,28 +571,28 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
570
571
  font-weight: 400;
571
572
  line-height: 20px;
572
573
  border: 1px solid
573
- ${e=>e.error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
574
+ ${e=>e.$error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
574
575
  background-color: ${e=>e.disabled?"var(--grey-200)":"var(--white-900)"};
575
576
  color: ${e=>e.disabled?"var(--grey-400)":"var(--black-900)"};
576
577
  transition: all 0.2s;
577
578
 
578
- ${e=>ur[e.size||"small"]}
579
+ ${e=>xt[e.size||"small"]}
579
580
 
580
581
  &:hover:not(:disabled):not(:focus) {
581
- border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
582
+ border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
582
583
  }
583
584
 
584
585
  &:focus {
585
586
  outline: none;
586
587
  box-shadow: 0px 0px 0px 1px var(--white-900),
587
588
  0px 0px 0px 3px var(--blue-600);
588
- border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
589
+ border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
589
590
  }
590
591
 
591
592
  &:active {
592
593
  outline: none;
593
594
  box-shadow: 0px 0px 0px 2px var(--blue-200);
594
- border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
595
+ border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
595
596
  }
596
597
 
597
598
  &:disabled {
@@ -603,7 +604,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
603
604
  &::placeholder {
604
605
  color: var(--grey-400);
605
606
  }
606
- `,mr=i.div`
607
+ `,vt=i.div`
607
608
  position: absolute;
608
609
  display: flex;
609
610
  align-items: center;
@@ -612,11 +613,11 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
612
613
  color: var(--grey-400);
613
614
  ${e=>"left"===e.position?"left: 10px;":"right: 10px;"}
614
615
  ${e=>"xsmall"===e.size?"width: 16px; height: 16px;":"width: 20px; height: 20px;"}
615
- `,br=d(({size:t="small",iconLeft:i,iconRight:o,error:n=!1,disabled:l=!1,...a},s)=>e(Cr,{size:t,disabled:l,error:n,children:[i&&r(mr,{position:"left",size:t,children:i}),r(xr,{ref:s,size:t,hasIconLeft:!!i,hasIconRight:!!o,error:n,disabled:l,...a}),o&&r(mr,{position:"right",size:t,children:o})]}));br.displayName="Input";const vr=i.div`
616
+ `,wt=({size:r="small",iconLeft:i,iconRight:o,error:n=!1,disabled:a=!1,ref:l,...s})=>e(bt,{size:r,disabled:a,$error:n,children:[i&&t(vt,{position:"left",size:r,children:i}),t(Ct,{ref:l,size:r,$hasIconLeft:!!i,$hasIconRight:!!o,$error:n,disabled:a,...s}),o&&t(vt,{position:"right",size:r,children:o})]}),yt=i.div`
616
617
  display: flex;
617
618
  flex-direction: column;
618
619
  gap: 4px;
619
- `,wr=i.div`
620
+ `,kt=i.div`
620
621
  display: flex;
621
622
  align-items: center;
622
623
  gap: 6px;
@@ -627,96 +628,92 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
627
628
  font-style: normal;
628
629
  font-weight: 400;
629
630
  line-height: 18px;
630
- `,yr=()=>r(Ae,{name:Me.INFORMATION_CIRCLE_MICRO,fill:"var(--grey-600)"}),kr=i.span`
631
+ `,Lt=()=>t(Ie,{name:Me.INFORMATION_CIRCLE_MICRO,fill:"var(--grey-600)"}),Et=i.span`
631
632
  display: inline-flex;
632
633
  cursor: help;
633
- `,Lr=({children:t,infoText:i,className:o})=>r(vr,{className:o,children:e(wr,{children:[t,i&&r(Pe,{content:i,placement:"bottom",children:r(kr,{children:r(yr,{})})})]})});var Er={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"\"Fira Code\", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:"\"Fira Code\", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};const Mr=i.div`
634
- display: flex;
635
- gap: 8px;
636
- align-items: center;
637
- `,Ar=i.code`
634
+ `,Mt=({children:r,infoText:i,className:o})=>t(yt,{className:o,children:e(kt,{children:[r,i&&t(Be,{content:i,placement:"bottom",children:t(Et,{children:t(Lt,{})})})]})});var It={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"\"Fira Code\", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:"\"Fira Code\", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};const _t=i.code`
638
635
  background-color: rgba(0, 0, 0, 0.05);
639
636
  border-radius: 3px;
640
637
  font-family: "Courier New", Courier, monospace;
641
638
  padding: 0.2em 0.4em;
642
639
  font-size: 85%;
643
- `,Ir=({inline:t,className:i,children:o,...n})=>{const l=/language-(\w+)/.exec(i||""),a=l?l[1]:void 0,d=String(o).replace(/\n$/,""),[h,p]=c(!1),g=e=>{console.log(e)};return!t&&l?e("div",{style:{position:"relative",marginBottom:"1em"},children:[r(Mr,{style:{position:"absolute",top:8,right:8,zIndex:1},children:e(N,{size:"small",leftIcon:r(Ae,{name:Me.COPY}),onClick:async()=>{if(!navigator.clipboard)return console.error("Clipboard API not available."),void g("Clipboard access not available or denied.");try{await navigator.clipboard.writeText(d),p(!0),g("Code copied to clipboard!"),setTimeout(()=>p(!1),2e3)}catch(e){console.error("Failed to copy code: ",e),p(!1)}},style:{opacity:.7,transition:"opacity 0.2s ease-in-out"},onMouseEnter:e=>e.currentTarget.style.opacity="1",onMouseLeave:e=>e.currentTarget.style.opacity="0.7","aria-label":"Copy code to clipboard",children:[h?"Copied!":"Copy"," "]})}),s.createElement(m,{style:Er,language:a,PreTag:"div",children:d})]}):r(Ar,{...n,children:o})},Rr=({markdown:e,codeRenderer:t})=>r(x,{remarkPlugins:[v],rehypePlugins:[b],components:{code:t||Ir},children:e}),Nr=i.div`
640
+ `,At=({inline:r,className:i,children:o,...n})=>{const a=/language-(\w+)/.exec(i||""),l=a?a[1]:void 0,d=String(o).replace(/\n$/,""),[h,p]=c(!1),g=e=>{console.log(e)};return!r&&a?e("div",{className:"code-block-container",children:[t("div",{className:"copy-button-wrapper",children:t(N,{size:"small",leftIcon:t(Ie,{name:Me.COPY}),onClick:async()=>{if(!navigator.clipboard)return console.error("Clipboard API not available."),void g("Clipboard access not available or denied.");try{await navigator.clipboard.writeText(d),p(!0),g("Code copied to clipboard!"),setTimeout(()=>p(!1),2e3)}catch(e){console.error("Failed to copy code: ",e),p(!1)}},"aria-label":"Copy code to clipboard",children:h?"Copied!":"Copy"})}),s.createElement(b,{style:It,language:l,PreTag:"div",children:d})]}):t(_t,{...n,children:o})},Nt=({markdown:e,codeRenderer:r})=>t(x,{remarkPlugins:[v],rehypePlugins:[C],components:{code:r||At},children:e}),$t=i.div`
644
641
  display: flex;
645
642
  align-items: center;
646
643
  justify-content: space-between;
647
644
  font-size: 14px;
648
645
  gap: 10px;
649
- color: ${e=>e.active?"var(--blue-900)":"var(--grey-600)"};
646
+ color: ${e=>e.$active?"var(--blue-900)":"var(--grey-600)"};
650
647
  cursor: pointer;
651
648
  transition: all 0.2s;
652
649
  user-select: none;
653
650
  border-bottom: 1px solid var(--grey-200);
654
- background-color: ${e=>e.active?"var(--grey-100)":"var(--white-900)"};
655
- padding: ${e=>e.showCheckbox?"0":"12px 16px"};
651
+ background-color: ${e=>e.$active?"var(--grey-100)":"var(--white-900)"};
652
+ padding: ${e=>e.$showCheckbox?"0":"12px 16px"};
656
653
 
657
654
  &:hover {
658
- background-color: ${e=>e.active?"var(--grey-100)":"var(--grey-50)"};
655
+ background-color: ${e=>e.$active?"var(--grey-100)":"var(--grey-50)"};
659
656
  }
660
657
 
661
658
  &:last-child {
662
659
  border-bottom: none;
663
660
  }
664
- `,_r=i.div`
661
+ `,Tt=i.div`
665
662
  display: flex;
666
663
  align-items: center;
667
664
  gap: 12px;
668
665
  flex: 1;
669
- `,Br=i.div`
666
+ `,Rt=i.div`
670
667
  display: flex;
671
668
  align-items: center;
672
669
  justify-content: flex-start;
673
670
  flex: 1;
674
671
  width: 100%;
675
- `,zr=d(({label:t,checked:i=!1,showCheckbox:o=!1,onClick:n,onCheckChange:l,active:a=!1,className:s},d)=>{const c=e=>{console.log("Checkbox clicked!"),e.stopPropagation()};return e(Nr,{ref:d,active:a,showCheckbox:o,className:s,onClick:()=>{console.log("MenuItem clicked!"),n&&n()},role:"button",tabIndex:0,children:[!o&&r(_r,{children:t}),o&&r(Br,{onClick:c,children:r(ze,{checked:i,onChange:e=>{console.log("Checkbox changed:",e),l&&l(e)},onClick:c,label:t})})]})});zr.displayName="MenuItem";const Hr=n`
672
+ `,zt=({label:r,checked:i=!1,showCheckbox:o=!1,onClick:n,onCheckChange:a,active:l=!1,className:s,ref:c})=>{const d=e=>{console.log("Checkbox clicked!"),e.stopPropagation()};return e($t,{ref:c,$active:l,$showCheckbox:o,className:s,onClick:()=>{console.log("MenuItem clicked!"),n&&n()},role:"button",tabIndex:0,children:[!o&&t(Tt,{children:r}),o&&t(Rt,{onClick:d,children:t(Re,{checked:i,onChange:e=>{console.log("Checkbox changed:",e),a&&a(e)},onClick:d,label:r})})]})},St=n`
676
673
  body.stop-scrolling {
677
674
  overflow: hidden;
678
675
  }
679
- `,Tr=l`
676
+ `,Bt=a`
680
677
  from {
681
678
  opacity: 0;
682
679
  }
683
680
  to {
684
681
  opacity: 1;
685
682
  }
686
- `,$r=l`
683
+ `,Ht=a`
687
684
  from {
688
685
  opacity: 1;
689
686
  }
690
687
  to {
691
688
  opacity: 0;
692
689
  }
693
- `,Pr=l`
690
+ `,Ot=a`
694
691
  from {
695
692
  opacity: 0;
696
693
  }
697
694
  to {
698
695
  opacity: 1;
699
696
  }
700
- `,Sr=l`
697
+ `,Pt=a`
701
698
  from {
702
699
  opacity: 1;
703
700
  }
704
701
  to {
705
702
  opacity: 0;
706
703
  }
707
- `,Or=i.div`
704
+ `,Dt=i.div`
708
705
  position: fixed;
709
706
  top: 0;
710
707
  right: 0;
711
708
  bottom: 0;
712
709
  left: 0;
713
710
  z-index: 10000;
714
- animation: ${e=>e.isFadeOut?$r:Tr} 0.3s
711
+ animation: ${e=>e.$isFadeOut?Ht:Bt} 0.3s
715
712
  ease forwards;
716
713
  display: flex;
717
714
  align-items: center;
718
715
  justify-content: center;
719
- `,Vr=i.button`
716
+ `,Vt=i.button`
720
717
  background-color: var(--black-500);
721
718
  position: absolute;
722
719
  top: 0;
@@ -727,9 +724,9 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
727
724
  box-shadow: none;
728
725
  border: none;
729
726
  height: 100%;
730
- animation: ${e=>e.isFadeOut?Sr:Pr}
727
+ animation: ${e=>e.$isFadeOut?Pt:Ot}
731
728
  0.3s ease forwards;
732
- `,Dr=i.div`
729
+ `,Ut=i.div`
733
730
  position: relative;
734
731
  background: var(--theme-background, var(--white-900));
735
732
  border-radius: var(--theme-radius-large, 16px);
@@ -739,8 +736,8 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
739
736
  box-shadow: 0px 4px 12px 0px var(--black-100),
740
737
  0px 2px 4px -2px var(--black-100);
741
738
  z-index: 1;
742
- transform: ${e=>e.isFadeOut?"scale(0.95)":"scale(1)"};
743
- opacity: ${e=>e.isFadeOut?0:1};
739
+ transform: ${e=>e.$isFadeOut?"scale(0.95)":"scale(1)"};
740
+ opacity: ${e=>e.$isFadeOut?0:1};
744
741
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
745
742
  max-height: 90vh;
746
743
  display: flex;
@@ -749,14 +746,14 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
749
746
  @media (max-width: 767px) {
750
747
  width: calc(100% - 40px) !important;
751
748
  }
752
- `,Ur=i.div`
749
+ `,Gt=i.div`
753
750
  display: flex;
754
751
  flex-direction: row;
755
752
  justify-content: space-between;
756
753
  align-items: center;
757
754
  padding: 12px 24px;
758
755
  border-bottom: 1px solid var(--grey-100);
759
- `,Zr=i.h3`
756
+ `,Kt=i.h3`
760
757
  margin: 0;
761
758
  font-family: "Inter", sans-serif;
762
759
  font-size: 18px;
@@ -764,7 +761,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
764
761
  font-weight: 500;
765
762
  line-height: 28px;
766
763
  color: var(--black-900);
767
- `,Gr=i.button`
764
+ `,Zt=i.button`
768
765
  background: none;
769
766
  border: none;
770
767
  cursor: pointer;
@@ -775,6 +772,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
775
772
  color: var(--black-900);
776
773
  width: 24px;
777
774
  height: 24px;
775
+ ${e=>e.$absolute&&"\n position: absolute;\n top: 16px;\n right: 16px;\n "}
778
776
 
779
777
  &:hover {
780
778
  color: var(--black-900);
@@ -784,7 +782,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
784
782
  width: 20px;
785
783
  height: 20px;
786
784
  }
787
- `,Wr=i.div`
785
+ `,Wt=i.div`
788
786
  padding: 12px;
789
787
  display: flex;
790
788
  justify-content: flex-end;
@@ -798,7 +796,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
798
796
  width: 100%;
799
797
  }
800
798
  }
801
- `,jr=i.div`
799
+ `,jt=i.div`
802
800
  color: var(--grey-500);
803
801
  font-family: "Inter", sans-serif;
804
802
  font-size: 14px;
@@ -809,7 +807,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
809
807
  overflow-y: auto;
810
808
  flex: 1;
811
809
  max-height: calc(90vh - 140px); /* Account for header and footer */
812
- `,Kr=({isOpen:i,onClose:o,onCloseLabel:n,onConfirm:l,onConfirmLabel:a,children:s,width:d="400px",className:g="",hideActions:f=!1,title:u})=>{const[C,x]=c(!1),[m,b]=c(!1),v=h(null);p(()=>{if(i)x(!0),b(!1);else{if(!C)return;b(!0),v.current=setTimeout(()=>{x(!1)},300)}return()=>{v.current&&clearTimeout(v.current)}},[i,C]),p(()=>(C?"undefined"!=typeof document&&document.body.classList.add("stop-scrolling"):"undefined"!=typeof document&&document.body.classList.remove("stop-scrolling"),()=>{"undefined"!=typeof document&&document.body.classList.remove("stop-scrolling")}),[C]);const w=()=>{b(!0),v.current=setTimeout(()=>{o()},300)};return C&&e(t,{children:[r(Hr,{}),e(Or,{isFadeOut:m,className:g,children:[r(Vr,{isFadeOut:m,onClick:w}),e(Dr,{isFadeOut:m,width:d,children:[u&&e(Ur,{children:[r(Zr,{children:u}),r(Gr,{onClick:w,children:r(Ae,{name:Me.CLOSE})})]}),!u&&r(Gr,{onClick:w,style:{position:"absolute",top:"16px",right:"16px"},children:e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[r("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),r(jr,{children:s}),!f&&e(Wr,{children:[r(N,{variant:"tertiary",onClick:w,className:"button",size:"medium",fullWidth:!0,children:n||"Cancel"}),r(N,{variant:"primary",onClick:l,className:"button",size:"medium",fullWidth:!0,children:a||"Confirm"})]})]})]})]})},Yr=i.div`
810
+ `,Ft=({isOpen:i,onClose:o,onCloseLabel:n,onConfirm:a,onConfirmLabel:l,children:s,width:p="400px",className:g="",hideActions:u=!1,title:f})=>{const[m,x]=c(!1),[b,C]=c(!1),v=d(null);h(()=>{if(i)x(!0),C(!1);else{if(!m)return;C(!0),v.current=setTimeout(()=>{x(!1)},300)}return()=>{v.current&&clearTimeout(v.current)}},[i,m]),h(()=>(m?"undefined"!=typeof document&&document.body.classList.add("stop-scrolling"):"undefined"!=typeof document&&document.body.classList.remove("stop-scrolling"),()=>{"undefined"!=typeof document&&document.body.classList.remove("stop-scrolling")}),[m]);const w=()=>{C(!0),v.current=setTimeout(()=>{o()},300)};return m&&e(r,{children:[t(St,{}),e(Dt,{$isFadeOut:b,className:g,children:[t(Vt,{$isFadeOut:b,onClick:w}),e(Ut,{$isFadeOut:b,width:p,children:[f&&e(Gt,{children:[t(Kt,{children:f}),t(Zt,{onClick:w,children:t(Ie,{name:Me.CLOSE})})]}),!f&&t(Zt,{$absolute:!0,onClick:w,children:e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),t(jt,{children:s}),!u&&e(Wt,{children:[t(N,{variant:"tertiary",onClick:w,className:"button",size:"medium",fullWidth:!0,children:n||"Cancel"}),t(N,{variant:"primary",onClick:a,className:"button",size:"medium",fullWidth:!0,children:l||"Confirm"})]})]})]})]})},Yt=i.div`
813
811
  position: absolute;
814
812
  background-color: var(--white-900);
815
813
  border-radius: 8px;
@@ -825,7 +823,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
825
823
  padding: 0;
826
824
  font-family: "Inter", sans-serif;
827
825
 
828
- ${e=>e.isVisible&&o`
826
+ ${e=>e.$isVisible&&o`
829
827
  opacity: 1;
830
828
  visibility: visible;
831
829
  `}
@@ -1003,25 +1001,25 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1003
1001
  border-color: transparent transparent var(--white-900) transparent;
1004
1002
  }
1005
1003
  `;default:return""}}}
1006
- `,Fr=i.div`
1004
+ `,Xt=i.div`
1007
1005
  padding: 12px 16px;
1008
1006
  color: var(--black-800);
1009
1007
  font-weight: 600;
1010
1008
  font-size: 14px;
1011
1009
  border-bottom: 1px solid var(--grey-100);
1012
- `,Xr=i.div`
1010
+ `,qt=i.div`
1013
1011
  padding: 12px 16px;
1014
1012
  color: var(--grey-600);
1015
1013
  font-size: 14px;
1016
- `,qr=i.div`
1014
+ `,Qt=i.div`
1017
1015
  display: flex;
1018
1016
  justify-content: flex-end;
1019
1017
  gap: 8px;
1020
1018
  padding: 8px 16px 12px;
1021
- `,Qr=i.div`
1019
+ `,Jt=i.div`
1022
1020
  position: relative;
1023
1021
  display: inline-block;
1024
- `,Jr=({title:t,description:i,onConfirm:o,onCancel:n,okText:l="OK",cancelText:a="Cancel",placement:s="top",children:d,className:g,okButtonProps:f,cancelButtonProps:u,...C})=>{const[x,m]=c(!1),b=h(null);p(()=>{const e=e=>{b.current&&!b.current.contains(e.target)&&m(!1)};return x&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[x]);return e(Qr,{ref:b,className:g,...C,children:[r("div",{onClick:()=>{m(!x)},children:d}),e(Yr,{placement:s,isVisible:x,children:[t&&r(Fr,{children:t}),i&&r(Xr,{children:i}),e(qr,{children:[r(N,{variant:"tertiary",size:"small",onClick:e=>{m(!1),n?.(e)},...u,children:a}),r(N,{variant:"primary",size:"small",onClick:e=>{m(!1),o?.(e)},...f,children:l})]})]})]})};Jr.displayName="PopConfirm";const et=i.div`
1022
+ `,er=({title:r,description:i,onConfirm:o,onCancel:n,okText:a="OK",cancelText:l="Cancel",placement:s="top",children:p,className:g,okButtonProps:u,cancelButtonProps:f,...m})=>{const[x,b]=c(!1),C=d(null);h(()=>{const e=e=>{C.current&&!C.current.contains(e.target)&&b(!1)};return x&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[x]);const v=()=>{b(!x)};return e(Jt,{ref:C,className:g,...m,children:[t("div",{onClick:v,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),v())},role:"button",tabIndex:0,children:p}),e(Yt,{placement:s,$isVisible:x,children:[r&&t(Xt,{children:r}),i&&t(qt,{children:i}),e(Qt,{children:[t(N,{variant:"tertiary",size:"small",onClick:e=>{b(!1),n?.(e)},...f,children:l}),t(N,{variant:"primary",size:"small",onClick:e=>{b(!1),o?.(e)},...u,children:a})]})]})]})};er.displayName="PopConfirm";const tr=i.div`
1025
1023
  display: flex;
1026
1024
  align-items: center;
1027
1025
  gap: 6px;
@@ -1032,7 +1030,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1032
1030
  font-style: normal;
1033
1031
  font-weight: 400;
1034
1032
  line-height: 18px;
1035
- `,rt=()=>r(Ae,{name:Me.CHECK_CIRCLE,fill:"var(--grey-600)"}),tt=({children:t,showCheck:i=!1,className:o})=>e(et,{className:o,children:[i&&r(rt,{}),t]}),it={small:o`
1033
+ `,rr=()=>t(Ie,{name:Me.CHECK_CIRCLE,fill:"var(--grey-600)"}),ir=({children:r,showCheck:i=!1,className:o})=>e(tr,{className:o,children:[i&&t(rr,{}),r]}),or={small:o`
1036
1034
  font-family: "Inter", sans-serif;
1037
1035
  font-size: 14px;
1038
1036
  font-style: normal;
@@ -1044,7 +1042,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1044
1042
  font-style: normal;
1045
1043
  font-weight: 500;
1046
1044
  line-height: 24px;
1047
- `},ot=i.button`
1045
+ `},nr=i.button`
1048
1046
  position: relative;
1049
1047
  display: inline-flex;
1050
1048
  align-items: center;
@@ -1054,8 +1052,8 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1054
1052
  border: none;
1055
1053
  outline: none;
1056
1054
  cursor: ${e=>e.disabled?"not-allowed":"pointer"};
1057
- ${e=>it[e.size]}
1058
- color: ${e=>e.disabled?"var(--grey-400)":e.active?"var(--blue-900)":"var(--grey-500)"};
1055
+ ${e=>or[e.size]}
1056
+ color: ${e=>e.disabled?"var(--grey-400)":e.$active?"var(--blue-900)":"var(--grey-500)"};
1059
1057
  transition: all 0.2s ease;
1060
1058
 
1061
1059
  &:hover:not(:disabled) {
@@ -1070,7 +1068,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1070
1068
  background-color: ${e=>e.disabled?"var(--grey-400)":"var(--blue-900)"};
1071
1069
  bottom: 0;
1072
1070
  left: 0;
1073
- opacity: ${e=>e.active?1:0};
1071
+ opacity: ${e=>e.$active?1:0};
1074
1072
  transition: opacity 0.2s ease;
1075
1073
  }
1076
1074
 
@@ -1078,7 +1076,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1078
1076
  outline: none;
1079
1077
  box-shadow: none;
1080
1078
  }
1081
- `,nt=({label:e,active:t=!1,disabled:i=!1,size:o="medium",onClick:n})=>r(ot,{active:t,disabled:i,size:o,onClick:n,children:e}),lt=i.td`
1079
+ `,ar=({label:e,active:r=!1,disabled:i=!1,size:o="medium",onClick:n})=>t(nr,{$active:r,disabled:i,size:o,onClick:n,children:e}),lr=i.td`
1082
1080
  background-color: var(--white-900);
1083
1081
  border-right: 1px solid var(--grey-200);
1084
1082
  border-bottom: 1px solid var(--grey-200);
@@ -1097,7 +1095,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1097
1095
  &:last-child {
1098
1096
  border-right: 1px solid var(--grey-200);
1099
1097
  }
1100
- `,at=d(({children:e,align:t="left",width:i,className:o,...n},l)=>r(lt,{ref:l,align:t,width:i,className:o,...n,children:e}));at.displayName="TableCell";const st=i.th`
1098
+ `,sr=({children:e,align:r="left",width:i,className:o,ref:n,...a})=>t(lr,{ref:n,align:r,width:i,className:o,...a,children:e}),cr=i.th`
1101
1099
  background-color: var(--grey-50);
1102
1100
  border-right: 1px solid var(--grey-200);
1103
1101
  border-bottom: 1px solid var(--grey-200);
@@ -1109,13 +1107,13 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1109
1107
  &:last-child {
1110
1108
  border-right: 1px solid var(--grey-200);
1111
1109
  }
1112
- `,dt=i.div`
1110
+ `,dr=i.div`
1113
1111
  display: flex;
1114
1112
  align-items: center;
1115
1113
  gap: 4px;
1116
- cursor: ${e=>e.clickable?"pointer":"default"};
1114
+ cursor: ${e=>e.$clickable?"pointer":"default"};
1117
1115
  user-select: none;
1118
- `,ct=i.span`
1116
+ `,hr=i.span`
1119
1117
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
1120
1118
  font-size: 13px;
1121
1119
  font-weight: 600;
@@ -1123,11 +1121,11 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1123
1121
  color: var(--grey-900);
1124
1122
  white-space: nowrap;
1125
1123
  flex-shrink: 0;
1126
- `,ht=i.svg`
1124
+ `,pr=i.svg`
1127
1125
  width: 16px;
1128
1126
  height: 16px;
1129
1127
  flex-shrink: 0;
1130
- `,pt=i.div`
1128
+ `,gr=i.div`
1131
1129
  padding: 10px 4px;
1132
1130
  height: 35px;
1133
1131
  box-sizing: border-box;
@@ -1142,19 +1140,19 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1142
1140
  li {
1143
1141
  text-align: left;
1144
1142
  }
1145
- `,gt=d(({children:t,sortable:i=!1,sortDirection:o=null,onSort:n,filterable:l=!1,filterOptions:a=[],filterValue:s,onFilterChange:d,width:c,className:h,...p},g)=>r(st,l?{ref:g,width:c,className:h,...p,children:r(pt,{children:r(Je,{options:a,value:s,onChange:d,placeholder:"Placeholder",size:"small",width:"100%"})})}:{ref:g,width:c,className:h,...p,children:e(dt,{clickable:i,onClick:()=>{i&&n&&n()},children:[r(ct,{children:t}),i&&e(ht,{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r("path",{d:"M8 3.33337L10.6667 6.00004H5.33333L8 3.33337Z",fill:"asc"===o?"var(--grey-900)":"var(--grey-400)"}),r("path",{d:"M8 12.6667L5.33333 10H10.6667L8 12.6667Z",fill:"desc"===o?"var(--grey-900)":"var(--grey-400)"})]})]})}));gt.displayName="TableHeaderCell";const ft={xsmall:o`
1143
+ `,ur=({children:r,sortable:i=!1,sortDirection:o=null,onSort:n,filterable:a=!1,filterOptions:l=[],filterValue:s,onFilterChange:c,width:d,className:h,ref:p,...g})=>t(cr,a?{ref:p,width:d,className:h,...g,children:t(gr,{children:t(Je,{options:l,value:s,onChange:c,placeholder:"Placeholder",size:"small",width:"100%"})})}:{ref:p,width:d,className:h,...g,children:e(dr,{$clickable:i,onClick:()=>{i&&n&&n()},children:[t(hr,{children:r}),i&&e(pr,{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M8 3.33337L10.6667 6.00004H5.33333L8 3.33337Z",fill:"asc"===o?"var(--grey-900)":"var(--grey-400)"}),t("path",{d:"M8 12.6667L5.33333 10H10.6667L8 12.6667Z",fill:"desc"===o?"var(--grey-900)":"var(--grey-400)"})]})]})}),fr={xsmall:o`
1146
1144
  min-height: ${e=>e.rows?"auto":"80px"};
1147
1145
  padding: 10px;
1148
1146
  `,small:o`
1149
1147
  min-height: ${e=>e.rows?"auto":"100px"};
1150
1148
  padding: 12px;
1151
- `},ut=i.div`
1149
+ `},mr=i.div`
1152
1150
  position: relative;
1153
1151
  display: inline-flex;
1154
1152
  align-items: center;
1155
- width: ${e=>e.fullWidth?"100%":"auto"};
1153
+ width: ${e=>e.$fullWidth?"100%":"auto"};
1156
1154
  gap: 8px;
1157
- `,Ct=i.textarea`
1155
+ `,xr=i.textarea`
1158
1156
  width: 100%;
1159
1157
  border-radius: 6px;
1160
1158
  font-family: "Inter", sans-serif;
@@ -1162,30 +1160,30 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1162
1160
  font-weight: 400;
1163
1161
  line-height: 20px;
1164
1162
  border: 1px solid
1165
- ${e=>e.error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
1163
+ ${e=>e.$error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
1166
1164
  background-color: ${e=>e.disabled?"var(--grey-200)":"var(--white-900)"};
1167
1165
  color: ${e=>e.disabled?"var(--grey-400)":"var(--black-900)"};
1168
1166
  transition: all 0.2s;
1169
1167
  resize: vertical;
1170
1168
  font-size: 14px;
1171
1169
 
1172
- ${e=>ft[e.size||"small"]}
1170
+ ${e=>fr[e.size||"small"]}
1173
1171
 
1174
1172
  &:hover:not(:disabled):not(:focus) {
1175
- border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
1173
+ border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
1176
1174
  }
1177
1175
 
1178
1176
  &:focus {
1179
1177
  outline: none;
1180
1178
  box-shadow: 0px 0px 0px 1px var(--white-900),
1181
1179
  0px 0px 0px 3px var(--blue-600);
1182
- border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
1180
+ border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
1183
1181
  }
1184
1182
 
1185
1183
  &:active {
1186
1184
  outline: none;
1187
1185
  box-shadow: 0px 0px 0px 2px var(--blue-200);
1188
- border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
1186
+ border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
1189
1187
  }
1190
1188
 
1191
1189
  &:disabled {
@@ -1197,22 +1195,22 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1197
1195
  &::placeholder {
1198
1196
  color: var(--grey-400);
1199
1197
  }
1200
- `,xt=d(({size:e="small",error:t=!1,disabled:i=!1,fullWidth:o=!1,rows:n,...l},a)=>r(ut,{fullWidth:o,disabled:i,error:t,children:r(Ct,{ref:a,size:e,error:t,disabled:i,rows:n,...l})}));xt.displayName="Textarea";const mt={info:{backgroundColor:"var(--blue-100)",borderColor:"var(--blue-600)",iconColor:"var(--blue-600)"},success:{backgroundColor:"var(--green-bg)",borderColor:"var(--green-success)",iconColor:"var(--green-success)"},warning:{backgroundColor:"var(--orange-bg)",borderColor:"var(--orange-caution)",iconColor:"var(--orange-caution)"},danger:{backgroundColor:"var(--red-bg)",borderColor:"var(--red-error)",iconColor:"var(--red-error)"},default:{backgroundColor:"var(--white-900)",borderColor:"var(--grey-300)",iconColor:"var(--grey-600)"}},bt=i.div`
1198
+ `,br=({size:e="small",error:r=!1,disabled:i=!1,fullWidth:o=!1,rows:n,ref:a,...l})=>t(mr,{$fullWidth:o,children:t(xr,{ref:a,size:e,$error:r,disabled:i,rows:n,...l})}),Cr={info:{backgroundColor:"var(--blue-100)",borderColor:"var(--blue-600)",iconColor:"var(--blue-600)"},success:{backgroundColor:"var(--green-bg)",borderColor:"var(--green-success)",iconColor:"var(--green-success)"},warning:{backgroundColor:"var(--orange-bg)",borderColor:"var(--orange-caution)",iconColor:"var(--orange-caution)"},danger:{backgroundColor:"var(--red-bg)",borderColor:"var(--red-error)",iconColor:"var(--red-error)"},default:{backgroundColor:"var(--white-900)",borderColor:"var(--grey-300)",iconColor:"var(--grey-600)"}},vr=i.div`
1201
1199
  display: flex;
1202
1200
  padding: 8px;
1203
1201
  gap: 8px;
1204
1202
  align-items: flex-start;
1205
1203
  border-radius: 8px;
1206
- background-color: ${e=>mt[e.type].backgroundColor};
1207
- border: 1px solid ${e=>mt[e.type].borderColor};
1204
+ background-color: ${e=>Cr[e.type].backgroundColor};
1205
+ border: 1px solid ${e=>Cr[e.type].borderColor};
1208
1206
  width: 100%;
1209
1207
  box-sizing: border-box;
1210
- `,vt=i.div`
1208
+ `,wr=i.div`
1211
1209
  display: flex;
1212
1210
  flex-direction: column;
1213
1211
  gap: 4px;
1214
1212
  flex: 1;
1215
- `,wt=i.h3`
1213
+ `,yr=i.h3`
1216
1214
  margin: 0;
1217
1215
  color: var(--black-900);
1218
1216
  font-family: "Inter", sans-serif;
@@ -1220,7 +1218,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1220
1218
  font-style: normal;
1221
1219
  font-weight: 400;
1222
1220
  line-height: 24px;
1223
- `,yt=i.p`
1221
+ `,kr=i.p`
1224
1222
  margin: 0;
1225
1223
  color: var(--grey-500);
1226
1224
  text-overflow: ellipsis;
@@ -1229,13 +1227,13 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1229
1227
  font-style: normal;
1230
1228
  font-weight: 400;
1231
1229
  line-height: 18px;
1232
- `,kt=({color:e})=>r(Ae,{name:Me.INFORMATION_CIRCLE,fill:e}),Lt=({color:e})=>r(Ae,{name:Me.CHECK_CIRCLE,fill:e}),Et=({color:e})=>r(Ae,{name:Me.EXCLAMATION_TRIANGLE,fill:e}),Mt=({color:e})=>r(Ae,{name:Me.EXCLAMATION_CIRCLE,fill:e}),At=({color:e})=>r(Ae,{name:Me.EXCLAMATION_TRIANGLE,fill:e}),It=(e,t)=>{switch(e){case"info":return r(kt,{color:t});case"success":return r(Lt,{color:t});case"warning":return r(Et,{color:t});case"danger":return r(Mt,{color:t});default:return r(At,{color:t})}},Rt=({type:t="default",heading:i,description:o,className:n})=>e(bt,{type:t,className:n,children:[It(t,mt[t].iconColor),e(vt,{children:[r(wt,{children:i}),o&&r(yt,{children:o})]})]}),Nt=i.div`
1230
+ `,Lr=({color:e})=>t(Ie,{name:Me.INFORMATION_CIRCLE,fill:e}),Er=({color:e})=>t(Ie,{name:Me.CHECK_CIRCLE,fill:e}),Mr=({color:e})=>t(Ie,{name:Me.EXCLAMATION_TRIANGLE,fill:e}),Ir=({color:e})=>t(Ie,{name:Me.EXCLAMATION_CIRCLE,fill:e}),_r=({color:e})=>t(Ie,{name:Me.EXCLAMATION_TRIANGLE,fill:e}),Ar=(e,r)=>{switch(e){case"info":return t(Lr,{color:r});case"success":return t(Er,{color:r});case"warning":return t(Mr,{color:r});case"danger":return t(Ir,{color:r});default:return t(_r,{color:r})}},Nr=({type:r="default",heading:i,description:o,className:n})=>e(vr,{type:r,className:n,children:[Ar(r,Cr[r].iconColor),e(wr,{children:[t(yr,{children:i}),o&&t(kr,{children:o})]})]}),$r=i.div`
1233
1231
  display: flex;
1234
1232
  align-items: center;
1235
1233
  gap: 8px;
1236
1234
  opacity: ${({disabled:e})=>e?.6:1};
1237
1235
  cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1238
- `,_t=i.div`
1236
+ `,Tr=i.div`
1239
1237
  position: relative;
1240
1238
  width: 32px;
1241
1239
  height: 20px;
@@ -1245,7 +1243,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1245
1243
  transition: all 0.2s ease;
1246
1244
  cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1247
1245
  box-sizing: border-box;
1248
- `,Bt=i.div`
1246
+ `,Rr=i.div`
1249
1247
  position: absolute;
1250
1248
  top: 0px;
1251
1249
  left: ${({checked:e})=>e?"12px":"0px"};
@@ -1255,7 +1253,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1255
1253
  border-radius: 50%;
1256
1254
  box-shadow: 0 1px 3px var(--black-300);
1257
1255
  transition: all 0.2s ease;
1258
- `,zt=i.span`
1256
+ `,zr=i.span`
1259
1257
  font-size: 16px;
1260
1258
  font-style: normal;
1261
1259
  font-weight: 400;
@@ -1263,7 +1261,21 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1263
1261
  user-select: none;
1264
1262
  pointer-events: none;
1265
1263
  color: var(--grey-500);
1266
- `,Ht=({checked:t=!1,onChange:i,disabled:o=!1,label:n,className:l})=>{const[a,s]=c(t);return e(Nt,{disabled:o,className:l,onClick:()=>{if(o)return;const e=!a;s(e),i?.(e)},children:[r(_t,{checked:a,disabled:o,children:r(Bt,{checked:a})}),n&&r(zt,{children:n})]})},Tt=i.div`
1264
+ `,Sr=({checked:r=!1,onChange:i,disabled:o=!1,label:n,className:a})=>{const[l,s]=c(r);return e($r,{disabled:o,className:a,onClick:()=>{if(o)return;const e=!l;s(e),i?.(e)},children:[t(Tr,{checked:l,disabled:o,children:t(Rr,{checked:l})}),n&&t(zr,{children:n})]})},Br=["/data-workspace","/data-apps","/pipelines","/pipeline-edit/","/pipeline-details/","/pipeline-processing/","/file/","/file-details/","/files","/search","/search-classic","/artifacts/","/admin","/settings","/agent-studio"];function Hr(){if("undefined"==typeof document||!document.referrer)return null;try{const e=new URL(document.referrer),t=e.pathname;for(const r of Br){const i=t.indexOf(r);if(-1!==i){const r=t.slice(0,i).replace(/\/$/u,"");return`${e.origin}${r}`}}return e.origin}catch{return null}}function Or(e,t){try{const r=t.startsWith("/")?t:`/${t}`,i=new URL(e);return i.pathname=`${i.pathname.replace(/\/$/u,"")}${r}`,i.href}catch{return null}}function Pr(e,t={}){if(t.newTab)window.open(e,"_blank","noopener,noreferrer");else{if(window.parent!==window)try{window.parent.location.href}catch{try{const t=new URL(e),r=`${t.pathname}${t.search}${t.hash}`;return void window.parent.postMessage({type:"navigate",path:r},"*")}catch{}}window.location.href=e}}const Dr={fileDetails:e=>`/file/${e}`,pipelineEdit:e=>`/pipeline-edit/${e}`,pipelineDetails:e=>`/pipeline-details/${e}`,search:e=>e?`/search?q=${encodeURIComponent(e)}`:"/search",dataWorkspace:()=>"/data-workspace",dataApps:()=>"/data-apps",artifact:(e,t,r)=>`/artifacts/${e}/${t}/${r}`},Vr=g(null);function Ur(){const e=f(Vr);if(!e)throw new Error("useTdpNavigationContext must be used within a TdpNavigationProvider. Wrap your app with <TdpNavigationProvider> or use the standalone useTdpNavigation() hook instead.");return e}const Gr=({tdpBaseUrl:e,children:r})=>{const i=u(()=>e?e.replace(/\/$/u,""):Hr(),[e]),o=u(()=>({tdpBaseUrl:i,getTdpUrl:e=>i?Or(i,e):null,navigateToTdp:(e,t)=>{if(!i)return void console.warn("[TdpNavigation] Cannot navigate: TDP base URL not resolved");const r=Or(i,e);r&&Pr(r,t)}}),[i]);return t(Vr.Provider,{value:o,children:r})};function Kr(e={}){const{tdpBaseUrl:t}=e,r=u(()=>t?t.replace(/\/$/u,""):Hr(),[t]);return u(()=>({tdpBaseUrl:r,getTdpUrl:e=>r?Or(r,e):null,navigateToTdp:(e,t)=>{if(!r)return void console.warn("[useTdpNavigation] Cannot navigate: TDP base URL not resolved");const i=Or(r,e);i&&Pr(i,t)}}),[r])}const Zr=i.a`
1265
+ color: var(--theme-primary, var(--blue-600));
1266
+ text-decoration: none;
1267
+ cursor: pointer;
1268
+
1269
+ &:hover {
1270
+ text-decoration: underline;
1271
+ }
1272
+
1273
+ &:focus-visible {
1274
+ outline: 2px solid var(--blue-600);
1275
+ outline-offset: 2px;
1276
+ border-radius: 2px;
1277
+ }
1278
+ `,Wr=({path:e,navigationOptions:r={newTab:!0},children:i,onClick:o,...n})=>{const{getTdpUrl:a,navigateToTdp:l}=Ur(),s=a(e);return t(Zr,{href:s??"#",target:r.newTab?"_blank":void 0,rel:r.newTab?"noopener noreferrer":void 0,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),o?.(t),l(e,r))},...n,children:i})},jr=i.div`
1267
1279
  display: flex;
1268
1280
  align-items: center;
1269
1281
  justify-content: space-between;
@@ -1273,18 +1285,18 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1273
1285
  box-sizing: border-box;
1274
1286
  border-bottom: 1px solid var(--grey-200);
1275
1287
  background-color: var(--white-900);
1276
- `,$t=i.div`
1288
+ `,Fr=i.div`
1277
1289
  color: var(--black-900);
1278
1290
  font-family: "Inter", sans-serif;
1279
1291
  font-size: 18px;
1280
1292
  font-style: normal;
1281
1293
  font-weight: 500;
1282
1294
  line-height: 28px;
1283
- `,Pt=i.div`
1295
+ `,Yr=i.div`
1284
1296
  display: flex;
1285
1297
  align-items: center;
1286
1298
  gap: 12px;
1287
- `,St=i.div`
1299
+ `,Xr=i.div`
1288
1300
  display: flex;
1289
1301
  align-items: center;
1290
1302
  gap: 12px;
@@ -1294,7 +1306,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1294
1306
  &:hover {
1295
1307
  background-color: var(--grey-100);
1296
1308
  }
1297
- `,Ot=i.div`
1309
+ `,qr=i.div`
1298
1310
  width: 32px;
1299
1311
  height: 32px;
1300
1312
  border-radius: 50%;
@@ -1309,25 +1321,25 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1309
1321
  font-weight: 500;
1310
1322
  font-size: 14px;
1311
1323
  font-family: "Inter", sans-serif;
1312
- `,Vt=i.div`
1324
+ `,Qr=i.div`
1313
1325
  font-family: "Inter", sans-serif;
1314
1326
  color: var(--grey-400);
1315
1327
  font-size: 16px;
1316
1328
  font-style: normal;
1317
1329
  font-weight: 400;
1318
1330
  line-height: 24px;
1319
- `,Dt=i(N)`
1331
+ `,Jr=i(N)`
1320
1332
  width: 32px;
1321
1333
  height: 32px;
1322
1334
  padding: 0;
1323
1335
  min-height: 0;
1324
1336
  border-radius: 4px;
1325
- `,Ut=i.div`
1337
+ `,ei=i.div`
1326
1338
  height: 20px;
1327
1339
  width: 1px;
1328
1340
  background-color: var(--grey-200);
1329
1341
  margin: 0;
1330
- `,Zt=({hostname:t,userProfile:i,onHomeClick:o,onSettingsClick:n,onUserProfileClick:l})=>{return e(Tt,{children:[r($t,{children:t}),e(Pt,{children:[r(Dt,{variant:"tertiary",size:"small",onClick:o,"aria-label":"Home",children:r(Ae,{name:Me.HOME,width:"20",height:"20",fill:"var(--grey-600)"})}),r(Dt,{variant:"tertiary",size:"small",onClick:n,"aria-label":"Settings",children:r(Ae,{name:Me.GEAR,width:"20",height:"20",fill:"var(--grey-600)"})}),r(Ut,{}),e(St,{onClick:l,children:[r(Ot,{src:i.avatar,children:!i.avatar&&(a=i.name,a.split(" ").map(e=>e.charAt(0)).join("").toUpperCase().substring(0,2))}),r(Vt,{children:i.name})]})]})]});var a},Gt=i.div`
1342
+ `,ti=({hostname:r,userProfile:i,onHomeClick:o,onSettingsClick:n,onUserProfileClick:a})=>{return e(jr,{children:[t(Fr,{children:r}),e(Yr,{children:[t(Jr,{variant:"tertiary",size:"small",onClick:o,"aria-label":"Home",children:t(Ie,{name:Me.HOME,width:"20",height:"20",fill:"var(--grey-600)"})}),t(Jr,{variant:"tertiary",size:"small",onClick:n,"aria-label":"Settings",children:t(Ie,{name:Me.GEAR,width:"20",height:"20",fill:"var(--grey-600)"})}),t(ei,{}),e(Xr,{onClick:a,children:[t(qr,{src:i.avatar,children:!i.avatar&&(l=i.name,l.split(" ").map(e=>e.charAt(0)).join("").toUpperCase().substring(0,2))}),t(Qr,{children:i.name})]})]})]});var l},ri=i.div`
1331
1343
  position: fixed;
1332
1344
  top: 0;
1333
1345
  left: 0;
@@ -1338,7 +1350,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1338
1350
  display: flex;
1339
1351
  align-items: center;
1340
1352
  justify-content: center;
1341
- `,Wt=i.div`
1353
+ `,ii=i.div`
1342
1354
  background: var(--white-900);
1343
1355
  border-radius: 20px;
1344
1356
  box-shadow: 0 2px 16px var(--black-100);
@@ -1348,24 +1360,24 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1348
1360
  padding: 0;
1349
1361
  display: flex;
1350
1362
  flex-direction: column;
1351
- `,jt=i.div`
1363
+ `,oi=i.div`
1352
1364
  display: flex;
1353
1365
  align-items: center;
1354
1366
  justify-content: space-between;
1355
1367
  padding: 20px 24px 0 24px;
1356
- `,Kt=i.div`
1368
+ `,ni=i.div`
1357
1369
  display: flex;
1358
1370
  align-items: center;
1359
1371
  gap: 8px;
1360
- `,Yt=i.span`
1372
+ `,ai=i.span`
1361
1373
  font-weight: 600;
1362
1374
  font-size: 20px;
1363
- `,Ft=i.button`
1375
+ `,li=i.button`
1364
1376
  background: none;
1365
1377
  border: none;
1366
1378
  font-size: 20px;
1367
1379
  cursor: pointer;
1368
- `,Xt=i.div`
1380
+ `,si=i.div`
1369
1381
  padding: 24px;
1370
1382
 
1371
1383
  color: var(--black-900);
@@ -1374,7 +1386,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1374
1386
  font-style: normal;
1375
1387
  font-weight: 400;
1376
1388
  line-height: 20px;
1377
- `,qt=i.div`
1389
+ `,ci=i.div`
1378
1390
  margin: 0 24px;
1379
1391
  background: var(--blue-900);
1380
1392
  color: var(--white-900);
@@ -1384,7 +1396,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1384
1396
  font-weight: 500;
1385
1397
  word-break: break-word;
1386
1398
  box-shadow: 0 1px 4px var(--black-50);
1387
- `,Qt=i.textarea`
1399
+ `,di=i.textarea`
1388
1400
  width: 100%;
1389
1401
  min-height: 48px;
1390
1402
  background: transparent;
@@ -1400,17 +1412,17 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1400
1412
  padding: 16px 20px;
1401
1413
  border-radius: 12px;
1402
1414
  box-sizing: border-box;
1403
- `,Jt=i.div`
1415
+ `,hi=i.div`
1404
1416
  padding: 24px;
1405
1417
  padding-bottom: 0;
1406
1418
  flex: 1;
1407
- `,ei=i.div`
1419
+ `,pi=i.div`
1408
1420
  border-radius: 20px;
1409
1421
  overflow: hidden;
1410
1422
  background: var(--blue-900);
1411
1423
  min-height: 200px;
1412
1424
  position: relative;
1413
- `,ri=i.div`
1425
+ `,gi=i.div`
1414
1426
  display: flex;
1415
1427
  align-items: center;
1416
1428
  gap: 12px;
@@ -1419,36 +1431,36 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1419
1431
  background: var(--white-900);
1420
1432
  border-bottom-left-radius: 20px;
1421
1433
  border-bottom-right-radius: 20px;
1422
- `,ti=i(N)`
1434
+ `,ui=i(N)`
1423
1435
  min-width: 100px;
1424
1436
  display: flex;
1425
1437
  align-items: center;
1426
1438
  gap: 6px;
1427
- `,ii=({open:t,title:i,prompt:o,initialCode:n="",userQuery:l="",onUserQueryChange:a,onCopy:d,onLaunch:h,onSend:p,onCancel:g})=>{const[f,u]=c(n),[C,x]=c(""),[m,b]=c(l);return s.useEffect(()=>{b(l)},[l]),t?r(Gt,{children:e(Wt,{children:[e(jt,{children:[e(Kt,{children:[r(Ae,{name:Me.TETRASCIENCE_ICON,fill:"var(--blue-600)"}),r(Yt,{children:i})]}),r(Ft,{onClick:g,children:r(Ae,{name:Me.CLOSE,width:"20",height:"20",fill:"var(--black-900)"})})]}),r(Xt,{children:o}),r(qt,{children:r(Qt,{value:m,onChange:e=>{b(e.target.value),a&&a(e.target.value)},rows:2,placeholder:"Type your question here..."})}),r(Jt,{children:r(ei,{children:r(Ge,{value:f,onChange:e=>u(e??""),language:"python",theme:"dark",height:200,onCopy:d,onLaunch:h})})}),e(ri,{children:[r(br,{value:C,onChange:e=>x(e.target.value),placeholder:"Ask us anything related to your work...",size:"small",onKeyDown:e=>{"Enter"===e.key&&p(C)}}),e(ti,{variant:"primary",onClick:()=>p(C),children:[r(Ae,{name:Me.PAPER_PLANE}),"Send"]})]})]})}):null},oi=i.div`
1439
+ `,fi=({open:r,title:i,prompt:o,initialCode:n="",userQuery:a="",onUserQueryChange:l,onCopy:d,onLaunch:h,onSend:p,onCancel:g})=>{const[u,f]=c(n),[m,x]=c(""),[b,C]=c(a);return s.useEffect(()=>{C(a)},[a]),r?t(ri,{children:e(ii,{children:[e(oi,{children:[e(ni,{children:[t(Ie,{name:Me.TETRASCIENCE_ICON,fill:"var(--blue-600)"}),t(ai,{children:i})]}),t(li,{onClick:g,children:t(Ie,{name:Me.CLOSE,width:"20",height:"20",fill:"var(--black-900)"})})]}),t(si,{children:o}),t(ci,{children:t(di,{value:b,onChange:e=>{C(e.target.value),l&&l(e.target.value)},rows:2,placeholder:"Type your question here..."})}),t(hi,{children:t(pi,{children:t(Ke,{value:u,onChange:e=>f(e??""),language:"python",theme:"dark",height:200,onCopy:d,onLaunch:h})})}),e(gi,{children:[t(wt,{value:m,onChange:e=>x(e.target.value),placeholder:"Ask us anything related to your work...",size:"small",onKeyDown:e=>{"Enter"===e.key&&p(m)}}),e(ui,{variant:"primary",onClick:()=>p(m),children:[t(Ie,{name:Me.PAPER_PLANE}),"Send"]})]})]})}):null},mi=i.div`
1428
1440
  display: flex;
1429
- flex-direction: ${e=>e.vertical?"column":"row"};
1441
+ flex-direction: ${e=>e.$vertical?"column":"row"};
1430
1442
  border-radius: 6px;
1431
1443
  overflow: hidden;
1432
1444
  border: 1px solid var(--grey-200);
1433
1445
 
1434
1446
  & > *:not(:last-child) {
1435
- ${e=>e.vertical?"border-bottom: 1px solid var(--grey-200);":"border-right: 1px solid var(--grey-200);"}
1447
+ ${e=>e.$vertical?"border-bottom: 1px solid var(--grey-200);":"border-right: 1px solid var(--grey-200);"}
1436
1448
  }
1437
1449
 
1438
- ${e=>e.vertical&&"\n width: 40px;\n "}
1439
- `,ni=i.div`
1450
+ ${e=>e.$vertical&&"\n width: 40px;\n "}
1451
+ `,xi=i.div`
1440
1452
  &:first-child {
1441
1453
  button {
1442
- ${e=>e.vertical?"border-top-right-radius: 6px;border-top-left-radius: 6px;":"border-top-left-radius: 6px;border-bottom-left-radius: 6px;"}
1454
+ ${e=>e.$vertical?"border-top-right-radius: 6px;border-top-left-radius: 6px;":"border-top-left-radius: 6px;border-bottom-left-radius: 6px;"}
1443
1455
  }
1444
1456
  }
1445
1457
 
1446
1458
  &:last-child {
1447
1459
  button {
1448
- ${e=>e.vertical?"border-bottom-right-radius: 6px;border-bottom-left-radius: 6px;":"border-top-right-radius: 6px;border-bottom-right-radius: 6px;"}
1460
+ ${e=>e.$vertical?"border-bottom-right-radius: 6px;border-bottom-left-radius: 6px;":"border-top-right-radius: 6px;border-bottom-right-radius: 6px;"}
1449
1461
  }
1450
1462
  }
1451
- `,li=({controls:e,selectedId:t,onChange:i,vertical:o=!0,disabled:n=!1})=>r(oi,{vertical:o,children:e.map(e=>r(ni,{vertical:o,children:r(B,{icon:e.icon,selected:t===e.id,disabled:n||e.disabled,onClick:()=>{return r=e.id,void(n||i?.(r));var r}})},e.id))}),ai=i.div`
1463
+ `,bi=({controls:e,selectedId:r,onChange:i,vertical:o=!0,disabled:n=!1})=>t(mi,{$vertical:o,children:e.map(e=>t(xi,{$vertical:o,children:t(T,{icon:e.icon,selected:r===e.id,disabled:n||e.disabled,onClick:()=>{return t=e.id,void(n||i?.(t));var t}})},e.id))}),Ci=i.div`
1452
1464
  padding: 20px 16px;
1453
1465
  border-radius: 8px;
1454
1466
  background-color: ${e=>(e=>{switch(e){case"active":return"var(--blue-100)";case"hover":return"var(--grey-100)";default:return"transparent"}})(e.status)};
@@ -1460,14 +1472,14 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1460
1472
  background-color: var(--grey-100);
1461
1473
  }
1462
1474
  `}
1463
- `,si=i.h3`
1475
+ `,vi=i.h3`
1464
1476
  margin: 0 0 4px 0;
1465
1477
  font-family: "Inter", sans-serif;
1466
1478
  font-size: 16px;
1467
1479
  font-weight: 600;
1468
1480
  line-height: 24px;
1469
1481
  color: ${e=>"disabled"===e.status?"var(--grey-400)":"var(--black-900)"};
1470
- `,di=i.p`
1482
+ `,wi=i.p`
1471
1483
  margin: 0 0 16px 0;
1472
1484
  font-family: "Inter", sans-serif;
1473
1485
  font-size: 13px;
@@ -1476,13 +1488,13 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1476
1488
  line-height: 18px;
1477
1489
  line-height: 20px;
1478
1490
  color: ${e=>(e.status,"var(--grey-400)")};
1479
- `,ci=i.div`
1491
+ `,yi=i.div`
1480
1492
  display: flex;
1481
1493
  align-items: center;
1482
1494
  gap: 16px;
1483
- `,hi=i(N)`
1495
+ `,ki=i(N)`
1484
1496
  flex-shrink: 0;
1485
- `,pi=i.a`
1497
+ `,Li=i.a`
1486
1498
  font-family: "Inter", sans-serif;
1487
1499
  font-size: 13px;
1488
1500
  font-style: normal;
@@ -1495,32 +1507,36 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1495
1507
  &:hover {
1496
1508
  text-decoration: ${e=>"disabled"===e.status?"none":"underline"};
1497
1509
  }
1498
- `,gi=d(({title:t,description:i,buttonText:o,linkText:n,status:l="default",onButtonClick:a,onLinkClick:s,className:d},c)=>e(ai,{ref:c,status:l,className:d,children:[r(si,{status:l,children:t}),i&&r(di,{status:l,children:i}),e(ci,{children:[o&&r(hi,{variant:"secondary",size:"small",disabled:"disabled"===l,onClick:e=>{e.stopPropagation(),"disabled"!==l&&a&&a()},leftIcon:r("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("rect",{x:"3",y:"3",width:"10",height:"10",rx:"2",fill:"currentColor"})}),children:o}),n&&r(pi,{status:l,onClick:e=>{e.stopPropagation(),"disabled"!==l&&s&&s()},href:"disabled"===l?void 0:"#",children:n})]})]}));gi.displayName="CardSidebar";const fi=i.div`
1510
+ `,Ei=({title:r,description:i,buttonText:o,linkText:n,status:a="default",onButtonClick:l,onLinkClick:s,className:c,ref:d})=>e(Ci,{ref:d,status:a,className:c,children:[t(vi,{status:a,children:r}),i&&t(wi,{status:a,children:i}),e(yi,{children:[o&&t(ki,{variant:"secondary",size:"small",disabled:"disabled"===a,onClick:e=>{e.stopPropagation(),"disabled"!==a&&l&&l()},leftIcon:t("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("rect",{x:"3",y:"3",width:"10",height:"10",rx:"2",fill:"currentColor"})}),children:o}),n&&t(Li,{status:a,onClick:e=>{e.stopPropagation(),"disabled"!==a&&s&&s()},href:"disabled"===a?void 0:"#",children:n})]})]}),Mi=i.div`
1499
1511
  display: flex;
1500
1512
  align-items: center;
1501
1513
  flex-direction: row;
1502
1514
  gap: 16px;
1503
1515
  flex-wrap: wrap;
1504
1516
  width: 100%;
1505
- `,ui=i.div`
1517
+ `,Ii=i.div`
1506
1518
  margin: 16px 0;
1507
- `,Ci=i.span`
1519
+ `,_i=i.span`
1508
1520
  font-size: 12px;
1509
1521
  color: var(--grey-400);
1510
- `,xi=({initialCode:i="",onCodeSave:o,language:n="python",buttonText:l="Edit Code",modalTitle:a="Edit Code",buttonProps:s,modalProps:d,disabled:h=!1})=>{const[p,f]=c(!1),[u,C]=c(i),x=u?u.split("\n").length:0,m=u.length,b=g(()=>{C(i),f(!0)},[i]),v=g(()=>{o&&o(u),f(!1)},[o,u]),w=g(()=>{f(!1)},[]),y=g(e=>{C(e||"")},[]);return e(t,{children:[e(fi,{children:[r(N,{leftIcon:r(Ae,{name:Me.PENCIL}),onClick:b,size:"small",variant:"tertiary",...s,disabled:h,style:{height:38},children:l}),e(Ci,{title:`${x} lines, ${m} characters`,children:[x," lines / ",m," chars"]})]}),r(Kr,{isOpen:p,onClose:w,onConfirm:v,onCloseLabel:"Cancel",onConfirmLabel:"Save Code",title:a,width:"80%",...d,children:r(ui,{children:r(Ge,{height:"400px",language:n,value:u,onChange:y,options:{minimap:{enabled:!1}}})})})]})},mi=i.div`
1522
+ `,Ai=i.div`
1523
+ & > button {
1524
+ height: 38px;
1525
+ }
1526
+ `,Ni=({initialCode:i="",onCodeSave:o,language:n="python",buttonText:a="Edit Code",modalTitle:l="Edit Code",buttonProps:s,modalProps:d,disabled:h=!1})=>{const[g,u]=c(!1),[f,m]=c(i),x=f?f.split("\n").length:0,b=f.length,C=p(()=>{m(i),u(!0)},[i]),v=p(()=>{o&&o(f),u(!1)},[o,f]),w=p(()=>{u(!1)},[]),y=p(e=>{m(e||"")},[]);return e(r,{children:[e(Mi,{children:[t(Ai,{children:t(N,{leftIcon:t(Ie,{name:Me.PENCIL}),onClick:C,size:"small",variant:"tertiary",...s,disabled:h,children:a})}),e(_i,{title:`${x} lines, ${b} characters`,children:[x," lines / ",b," chars"]})]}),t(Ft,{isOpen:g,onClose:w,onConfirm:v,onCloseLabel:"Cancel",onConfirmLabel:"Save Code",title:l,width:"80%",...d,children:t(Ii,{children:t(Ke,{height:"400px",language:n,value:f,onChange:y,options:{minimap:{enabled:!1}}})})})]})},$i=i.div`
1511
1527
  display: flex;
1512
1528
  flex-direction: column;
1513
1529
  gap: 6px;
1514
1530
  width: 100%;
1515
- `,bi=i(Lr)`
1531
+ `,Ti=i(Mt)`
1516
1532
  margin-bottom: 2px;
1517
- `,vi=d(({label:t,infoText:i,supportiveText:o,showSupportiveCheck:n=!1,className:l,...a},s)=>e(mi,{className:l,children:[r(bi,{infoText:i,children:t}),r(br,{ref:s,...a}),o&&r(tt,{showCheck:n,children:o})]}));vi.displayName="FormField";const wi=i.div``,yi=i.div`
1533
+ `,Ri=({label:r,infoText:i,supportiveText:o,showSupportiveCheck:n=!1,className:a,ref:l,...s})=>e($i,{className:a,children:[t(Ti,{infoText:i,children:r}),t(wt,{ref:l,...s}),o&&t(ir,{showCheck:n,children:o})]}),zi=i.div``,Si=i.div`
1518
1534
  display: flex;
1519
1535
  align-items: center;
1520
1536
  justify-content: space-between;
1521
1537
  margin-bottom: 16px;
1522
1538
  background-color: var(--grey-100);
1523
- `,ki=i.h1`
1539
+ `,Bi=i.h1`
1524
1540
  color: var(--black-900);
1525
1541
  font-family: "Inter", sans-serif;
1526
1542
  font-size: 18px;
@@ -1528,23 +1544,23 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1528
1544
  font-weight: 600;
1529
1545
  line-height: 28px;
1530
1546
  margin: 0;
1531
- `,Li=i.div`
1547
+ `,Hi=i.div`
1532
1548
  display: flex;
1533
1549
  align-items: center;
1534
1550
  gap: 16px;
1535
- `,Ei=i.div`
1551
+ `,Oi=i.div`
1536
1552
  display: flex;
1537
1553
  align-items: center;
1538
- `,Mi=i.div`
1554
+ `,Pi=i.div`
1539
1555
  width: 1px;
1540
1556
  height: 20px;
1541
1557
  background-color: var(--grey-200);
1542
- `,Ai=i.div`
1558
+ `,Di=i.div`
1543
1559
  position: relative;
1544
1560
  width: 100%;
1545
1561
  max-width: 100%;
1546
1562
  margin-bottom: 16px;
1547
- `,Ii=({initialCode:t="protocolSchema: v3\nname: v3\ndescription: No description\nconfig: {}\nsteps: []",onDeploy:i,versions:o=["v0.0.7","v0.0.6","v0.0.5"],currentVersion:n="v0.0.7",onVersionChange:l=()=>{}})=>{const[a,s]=c(t),[d,h]=c(!0),[p,g]=c(!1),[f,u]=c(!1),[C,x]=c(!1),[m,b]=c(!1);return e(wi,{children:[e(yi,{children:[r(ki,{children:"Launch"}),e(Li,{children:[r(Ht,{checked:d,onChange:h,label:"Overwrite Mode",disabled:p}),r(Mi,{}),r(Ei,{children:r(Je,{options:o.map(e=>({label:e,value:e})),value:n,onChange:e=>l(e),width:"150px",size:"small",disabled:p})}),r(N,{variant:"primary",size:"medium",onClick:()=>{g(!0),u(!0),x(!1),b(!1),setTimeout(()=>{u(!1);Math.random()>.3?(x(!0),b(!1)):(x(!1),b(!0)),g(!1),i&&i(),setTimeout(()=>{x(!1),b(!1)},5e3)},3e3)},disabled:p,children:"Deploy"})]})]}),f&&r(Ai,{children:r(Rt,{type:"info",heading:"Building Protocol: Status=IN_PROGRESS, Phase=FINALIZING"})}),C&&r(Ai,{children:r(Rt,{type:"success",heading:`Pipeline visual-pipeline-builder-protocol-${n}-pipeline deployed successfully! Deployment complete`})}),m&&r(Ai,{children:r(Rt,{type:"danger",heading:`Failed to deploy pipeline visual-pipeline-builder-protocol-${n}-pipeline. Please try again.`})}),r(Ge,{value:a,onChange:e=>{void 0!==e&&s(e)},language:"yaml",theme:"light",width:"100%",onCopy:e=>{navigator.clipboard.writeText(e)},onLaunch:e=>{console.log("Launching code:",e)},disabled:!d})]})},Ri=i.div`
1563
+ `,Vi=({initialCode:r="protocolSchema: v3\nname: v3\ndescription: No description\nconfig: {}\nsteps: []",onDeploy:i,versions:o=["v0.0.7","v0.0.6","v0.0.5"],currentVersion:n="v0.0.7",onVersionChange:a=()=>{}})=>{const[l,s]=c(r),[d,h]=c(!0),[p,g]=c(!1),[u,f]=c(!1),[m,x]=c(!1),[b,C]=c(!1);return e(zi,{children:[e(Si,{children:[t(Bi,{children:"Launch"}),e(Hi,{children:[t(Sr,{checked:d,onChange:h,label:"Overwrite Mode",disabled:p}),t(Pi,{}),t(Oi,{children:t(Je,{options:o.map(e=>({label:e,value:e})),value:n,onChange:e=>a(e),width:"150px",size:"small",disabled:p})}),t(N,{variant:"primary",size:"medium",onClick:()=>{g(!0),f(!0),x(!1),C(!1),setTimeout(()=>{f(!1);Math.random()>.3?(x(!0),C(!1)):(x(!1),C(!0)),g(!1),i&&i(),setTimeout(()=>{x(!1),C(!1)},5e3)},3e3)},disabled:p,children:"Deploy"})]})]}),u&&t(Di,{children:t(Nr,{type:"info",heading:"Building Protocol: Status=IN_PROGRESS, Phase=FINALIZING"})}),m&&t(Di,{children:t(Nr,{type:"success",heading:`Pipeline visual-pipeline-builder-protocol-${n}-pipeline deployed successfully! Deployment complete`})}),b&&t(Di,{children:t(Nr,{type:"danger",heading:`Failed to deploy pipeline visual-pipeline-builder-protocol-${n}-pipeline. Please try again.`})}),t(Ke,{value:l,onChange:e=>{void 0!==e&&s(e)},language:"yaml",theme:"light",width:"100%",onCopy:e=>{navigator.clipboard.writeText(e)},onLaunch:e=>{console.log("Launching code:",e)},disabled:!d})]})},Ui=i.div`
1548
1564
  width: 100%;
1549
1565
  border-radius: 8px;
1550
1566
  overflow: hidden;
@@ -1552,7 +1568,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1552
1568
  0px 2px 4px -2px var(--black-100);
1553
1569
  background-color: var(--white-900);
1554
1570
  border: 1px solid var(--grey-200);
1555
- `,Ni=i.div`
1571
+ `,Gi=i.div`
1556
1572
  padding: 8px 16px;
1557
1573
  font-family: "Inter", sans-serif;
1558
1574
  font-size: 12px;
@@ -1561,10 +1577,10 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1561
1577
  line-height: 16px;
1562
1578
  color: var(--grey-600);
1563
1579
  border-bottom: 1px solid var(--grey-200);
1564
- `,_i=i.div`
1580
+ `,Ki=i.div`
1565
1581
  display: flex;
1566
1582
  flex-direction: column;
1567
- `,Bi=({title:t,items:i,onItemClick:o,onItemCheckChange:n,activeItemId:l=null,className:a})=>e(Ri,{className:a,children:[t&&r(Ni,{children:t}),r(_i,{children:i.map(e=>r(zr,{label:e.label,checked:e.checked,showCheckbox:e.showCheckbox,active:l===e.id||e.active,onClick:()=>{return r=e.id,void(o&&o(r));var r},onCheckChange:r=>((e,r)=>{n&&n(e,r)})(e.id,r)},e.id))})]}),zi=i.div`
1583
+ `,Zi=({title:r,items:i,onItemClick:o,onItemCheckChange:n,activeItemId:a=null,className:l})=>e(Ui,{className:l,children:[r&&t(Gi,{children:r}),t(Ki,{children:i.map(e=>t(zt,{label:e.label,checked:e.checked,showCheckbox:e.showCheckbox,active:a===e.id||e.active,onClick:()=>{return t=e.id,void(o&&o(t));var t},onCheckChange:t=>((e,t)=>{n&&n(e,t)})(e.id,t)},e.id))})]}),Wi=i.div`
1568
1584
  display: flex;
1569
1585
  align-items: center;
1570
1586
  background-color: var(--blue-900);
@@ -1574,11 +1590,11 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1574
1590
  box-sizing: border-box;
1575
1591
  color: var(--white-900);
1576
1592
  gap: 40px;
1577
- `,Hi=i.div`
1593
+ `,ji=i.div`
1578
1594
  display: flex;
1579
1595
  align-items: center;
1580
1596
  height: 100%;
1581
- `,Ti=i.div`
1597
+ `,Fi=i.div`
1582
1598
  text-transform: uppercase;
1583
1599
  margin-bottom: 2px;
1584
1600
  color: var(--white-900);
@@ -1588,49 +1604,49 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1588
1604
  line-height: 16px;
1589
1605
  letter-spacing: 0.2px;
1590
1606
  font-family: "Inter", sans-serif;
1591
- `,$i=i.div`
1607
+ `,Yi=i.div`
1592
1608
  font-size: 14px;
1593
1609
  font-style: normal;
1594
1610
  font-weight: 500;
1595
1611
  line-height: 22px;
1596
1612
  font-family: "Inter", sans-serif;
1597
- `,Pi=i.div`
1613
+ `,Xi=i.div`
1598
1614
  color: var(--grey-400);
1599
1615
  font-size: 12px;
1600
1616
  font-style: italic;
1601
1617
  font-weight: 500;
1602
1618
  line-height: 16px;
1603
1619
  font-family: "Inter", sans-serif;
1604
- `,Si=i.div`
1620
+ `,qi=i.div`
1605
1621
  display: flex;
1606
1622
  flex-direction: column;
1607
- `,Oi=i.div`
1623
+ `,Qi=i.div`
1608
1624
  display: flex;
1609
1625
  align-items: center;
1610
1626
  justify-content: center;
1611
- `,Vi=i.div`
1627
+ `,Ji=i.div`
1612
1628
  display: flex;
1613
1629
  align-items: center;
1614
1630
  padding: 6px 0;
1615
1631
  border-radius: 4px;
1616
1632
  gap: 8px;
1617
- `,Di=i.div`
1633
+ `,eo=i.div`
1618
1634
  font-family: "Inter", sans-serif;
1619
1635
  color: var(--grey-400);
1620
1636
  font-size: 14px;
1621
1637
  font-style: normal;
1622
1638
  font-weight: 500;
1623
1639
  line-height: 22px;
1624
- `,Ui=i.div`
1640
+ `,to=i.div`
1625
1641
  display: flex;
1626
1642
  align-items: center;
1627
1643
  justify-content: center;
1628
- `,Zi=i.div`
1644
+ `,ro=i.div`
1629
1645
  display: flex;
1630
1646
  align-items: center;
1631
1647
  gap: 8px;
1632
1648
  width: 320px;
1633
- `,Gi=()=>r("div",{style:{borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},children:r(Ae,{name:Me.BUILDING,fill:"var(--white-900)",width:"20",height:"20"})}),Wi=()=>r(Ae,{name:Me.LAMP,fill:"var(--white-900)",width:"20",height:"20"}),ji=({organization:t})=>e(zi,{children:[r(Hi,{children:e(Si,{children:[r(Ti,{children:"ORGANIZATION"}),e(Zi,{children:[r(Oi,{children:t.logo||r(Gi,{})}),e("div",{children:[r($i,{children:t.name}),t.subtext&&r(Pi,{children:t.subtext})]})]})]})}),r(Hi,{children:e(Si,{children:[r(Ti,{children:"PROJECT"}),e(Vi,{children:[r(Ui,{children:r(Wi,{})}),r(Di,{children:"Not Selected"})]})]})})]}),Ki=i.div`
1649
+ `,io=()=>t("div",{style:{borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},children:t(Ie,{name:Me.BUILDING,fill:"var(--white-900)",width:"20",height:"20"})}),oo=()=>t(Ie,{name:Me.LAMP,fill:"var(--white-900)",width:"20",height:"20"}),no=({organization:r})=>e(Wi,{children:[t(ji,{children:e(qi,{children:[t(Fi,{children:"ORGANIZATION"}),e(ro,{children:[t(Qi,{children:r.logo||t(io,{})}),e("div",{children:[t(Yi,{children:r.name}),r.subtext&&t(Xi,{children:r.subtext})]})]})]})}),t(ji,{children:e(qi,{children:[t(Fi,{children:"PROJECT"}),e(Ji,{children:[t(to,{children:t(oo,{})}),t(eo,{children:"Not Selected"})]})]})})]}),ao=i.div`
1634
1650
  display: flex;
1635
1651
  align-items: center;
1636
1652
  justify-content: space-between;
@@ -1638,50 +1654,50 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1638
1654
  padding: 0 0 24px;
1639
1655
  border-top-left-radius: 24px;
1640
1656
  border-top-right-radius: 24px;
1641
- `,Yi=i.h2`
1657
+ `,lo=i.h2`
1642
1658
  color: var(--blue-900);
1643
1659
  font-family: "Inter", sans-serif;
1644
1660
  font-size: 20px;
1645
1661
  font-weight: 600;
1646
1662
  line-height: 28px;
1647
1663
  margin: 0;
1648
- `,Fi=i.div`
1664
+ `,so=i.div`
1649
1665
  display: flex;
1650
1666
  align-items: center;
1651
1667
  gap: 8px;
1652
1668
  color: var(--grey-600);
1653
1669
  font-size: 15px;
1654
1670
  font-weight: 500;
1655
- `,Xi=i.div`
1671
+ `,co=i.div`
1656
1672
  background-color: var(--white-900);
1657
1673
  border-radius: 24px;
1658
1674
  border: 1px solid var(--grey-200);
1659
1675
  width: 100%;
1660
- `,qi=i.div`
1676
+ `,ho=i.div`
1661
1677
  display: flex;
1662
1678
  align-items: center;
1663
1679
  border-bottom: 1px solid var(--grey-200);
1664
1680
  padding-bottom: 16px;
1665
1681
  padding: 12px 24px;
1666
- `,Qi=i.h3`
1682
+ `,po=i.h3`
1667
1683
  color: var(--blue-900);
1668
1684
  font-family: "Inter", sans-serif;
1669
1685
  font-size: 20px;
1670
1686
  font-weight: 600;
1671
1687
  line-height: 28px;
1672
1688
  margin: 0;
1673
- `,Ji=i.div`
1689
+ `,go=i.div`
1674
1690
  padding: 20px 24px 36px 24px;
1675
- `,eo=i.div`
1691
+ `,uo=i.div`
1676
1692
  display: flex;
1677
1693
  flex-direction: column;
1678
1694
  align-items: flex-start;
1679
1695
  gap: 16px;
1680
- `,ro=i.div`
1696
+ `,fo=i.div`
1681
1697
  color: var(--grey-400);
1682
1698
  font-size: 14px;
1683
1699
  font-weight: 500;
1684
- `,to=({className:t})=>{const[i,o]=c(!1);return e("div",{className:t,children:[e(Ki,{children:[r(Yi,{children:"Protocol Configuration"}),r(Fi,{children:r(Ht,{label:"Edit Mode",checked:i,onChange:()=>o(e=>!e)})})]}),e(Xi,{children:[r(qi,{children:r(Qi,{children:"Configuration"})}),r(Ji,{children:i?r(N,{variant:"secondary",size:"medium",leftIcon:r(Ae,{name:Me.PLUS,width:"20",height:"20",fill:"var(--blue-600)"}),children:"Add Input"}):r(eo,{children:r(ro,{children:"No values, Use the 'edit' button to add values"})})})]})]})},io=i.div`
1700
+ `,mo=({className:r})=>{const[i,o]=c(!1);return e("div",{className:r,children:[e(ao,{children:[t(lo,{children:"Protocol Configuration"}),t(so,{children:t(Sr,{label:"Edit Mode",checked:i,onChange:()=>o(e=>!e)})})]}),e(co,{children:[t(ho,{children:t(po,{children:"Configuration"})}),t(go,{children:i?t(N,{variant:"secondary",size:"medium",leftIcon:t(Ie,{name:Me.PLUS,width:"20",height:"20",fill:"var(--blue-600)"}),children:"Add Input"}):t(uo,{children:t(fo,{children:"No values, Use the 'edit' button to add values"})})})]})]})},xo=i.div`
1685
1701
  display: flex;
1686
1702
  flex-direction: column;
1687
1703
  align-items: flex-start;
@@ -1689,44 +1705,44 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1689
1705
  gap: 16px;
1690
1706
  width: 928px;
1691
1707
  background: transparent;
1692
- `,oo=i.div`
1708
+ `,bo=i.div`
1693
1709
  display: flex;
1694
1710
  flex-direction: row;
1695
1711
  justify-content: space-between;
1696
1712
  align-items: center;
1697
1713
  width: 928px;
1698
1714
  height: 36px;
1699
- `,no=i.span`
1715
+ `,Co=i.span`
1700
1716
  font-family: "Inter", sans-serif;
1701
1717
  font-weight: 600;
1702
1718
  font-size: 18px;
1703
1719
  line-height: 28px;
1704
1720
  color: var(--black-900);
1705
- `,lo=i.div`
1721
+ `,vo=i.div`
1706
1722
  display: flex;
1707
1723
  flex-direction: row;
1708
1724
  align-items: center;
1709
1725
  gap: 16px;
1710
1726
  justify-content: flex-end;
1711
- `,ao=i.div`
1727
+ `,wo=i.div`
1712
1728
  width: 1px;
1713
1729
  height: 20px;
1714
1730
  background: var(--grey-200);
1715
- `,so=i.div`
1731
+ `,yo=i.div`
1716
1732
  width: 100%;
1717
- `,co=i(Ht)`
1733
+ `,ko=i(Sr)`
1718
1734
  min-width: 176px;
1719
- `,ho=i(Je)``,po=({title:t,newVersionMode:i,onToggleNewVersionMode:o,versionOptions:n,selectedVersion:l,onVersionChange:a,onDeploy:s,yaml:d,onYamlChange:c})=>e(io,{children:[e(oo,{children:[r(no,{children:t}),e(lo,{children:[r(co,{checked:i,onChange:o,label:"New Version Mode"}),r(ao,{}),r(ho,{options:n,value:l,onChange:a,size:"small",width:"120px"}),r(N,{variant:"primary",size:"medium",onClick:s,children:"Deploy"})]})]}),r(so,{children:r(Ge,{value:d,onChange:e=>c(e??""),language:"yaml",theme:"light",onCopy:()=>{},onLaunch:()=>{}})})]}),go=i.div`
1735
+ `,Lo=i(Je)``,Eo=({title:r,newVersionMode:i,onToggleNewVersionMode:o,versionOptions:n,selectedVersion:a,onVersionChange:l,onDeploy:s,yaml:c,onYamlChange:d})=>e(xo,{children:[e(bo,{children:[t(Co,{children:r}),e(vo,{children:[t(ko,{checked:i,onChange:o,label:"New Version Mode"}),t(wo,{}),t(Lo,{options:n,value:a,onChange:l,size:"small",width:"120px"}),t(N,{variant:"primary",size:"medium",onClick:s,children:"Deploy"})]})]}),t(yo,{children:t(Ke,{value:c,onChange:e=>d(e??""),language:"yaml",theme:"light",onCopy:()=>{},onLaunch:()=>{}})})]}),Mo=i.div`
1720
1736
  padding: 12px 0;
1721
1737
  flex: 1;
1722
- `,fo=({open:e,initialValue:t="",title:i="",onSave:o,onCancel:n})=>{const[l,a]=c(t);return r(Kr,{isOpen:e,onClose:n,onCloseLabel:"Cancel",onConfirm:()=>{o(l)},onConfirmLabel:"Save Code",title:i,width:"600px",children:r(go,{children:r(Ge,{value:l,onChange:e=>a(e??""),language:"python",height:300,theme:"dark",onCopy:()=>{},onLaunch:()=>{}})})})},uo=i.div`
1738
+ `,Io=({open:e,initialValue:r="",title:i="",onSave:o,onCancel:n})=>{const[a,l]=c(r);return t(Ft,{isOpen:e,onClose:n,onCloseLabel:"Cancel",onConfirm:()=>{o(a)},onConfirmLabel:"Save Code",title:i,width:"600px",children:t(Mo,{children:t(Ke,{value:a,onChange:e=>l(e??""),language:"python",height:300,theme:"dark",onCopy:()=>{},onLaunch:()=>{}})})})},_o=i.div`
1723
1739
  display: flex;
1724
1740
  flex-direction: column;
1725
1741
  gap: 6px;
1726
1742
  width: 100%;
1727
- `,Co=i(Lr)`
1743
+ `,Ao=i(Mt)`
1728
1744
  margin-bottom: 2px;
1729
- `,xo=d(({label:t,infoText:i,supportiveText:o,showSupportiveCheck:n=!1,className:l,...a},s)=>e(uo,{className:l,ref:s,children:[r(Co,{infoText:i,children:t}),r(Je,{...a}),o&&r(tt,{showCheck:n,children:o})]}));xo.displayName="SelectField";const mo=i.div`
1745
+ `,No=({label:r,infoText:i,supportiveText:o,showSupportiveCheck:n=!1,className:a,ref:l,...s})=>e(_o,{className:a,ref:l,children:[t(Ao,{infoText:i,children:r}),t(Je,{...s}),o&&t(ir,{showCheck:n,children:o})]}),$o=i.div`
1730
1746
  width: 104px;
1731
1747
  height: 100%;
1732
1748
  background-color: var(--blue-900);
@@ -1734,7 +1750,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1734
1750
  flex-direction: column;
1735
1751
  align-items: center;
1736
1752
  padding: 0;
1737
- `,bo=i.div`
1753
+ `,To=i.div`
1738
1754
  width: 100%;
1739
1755
  display: inline-flex;
1740
1756
  flex-direction: column;
@@ -1742,18 +1758,18 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1742
1758
  padding: 12px 0;
1743
1759
  cursor: pointer;
1744
1760
  transition: background-color 0.2s ease;
1745
- background-color: ${e=>e.active?"var(--white-100)":"transparent"};
1761
+ background-color: ${e=>e.$active?"var(--white-100)":"transparent"};
1746
1762
 
1747
1763
  &:hover {
1748
1764
  background-color: var(--white-50);
1749
1765
  }
1750
- `,vo=i.div`
1766
+ `,Ro=i.div`
1751
1767
  display: flex;
1752
1768
  justify-content: center;
1753
1769
  align-items: center;
1754
1770
  margin-bottom: 10px;
1755
1771
  color: var(--white-900);
1756
- `,wo=i.div`
1772
+ `,zo=i.div`
1757
1773
  color: var(--white-900);
1758
1774
  text-align: center;
1759
1775
  font-family: "Inter", sans-serif;
@@ -1763,29 +1779,29 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1763
1779
  line-height: 16px;
1764
1780
  text-align: center;
1765
1781
  padding: 0 8px;
1766
- `,yo=({icon:t,label:i,active:o,onClick:n})=>e(bo,{active:o,onClick:n,children:[r(vo,{children:r(Ae,{name:t,fill:"var(--white-900)",width:"20",height:"20"})}),r(wo,{children:i})]}),ko=({items:e,activeItem:t,onItemClick:i})=>r(mo,{children:e.map(e=>r(yo,{icon:e.icon,label:e.label,active:t===e.label,onClick:()=>{return r=e.label,void(i&&i(r));var r}},e.label))}),Lo=i.div`
1782
+ `,So=({icon:r,label:i,active:o,onClick:n})=>e(To,{$active:o,onClick:n,children:[t(Ro,{children:t(Ie,{name:r,fill:"var(--white-900)",width:"20",height:"20"})}),t(zo,{children:i})]}),Bo=({items:e,activeItem:r,onItemClick:i})=>t($o,{children:e.map(e=>t(So,{icon:e.icon,label:e.label,active:r===e.label,onClick:()=>{return t=e.label,void(i&&i(t));var t}},e.label))}),Ho=i.div`
1767
1783
  width: 100%;
1768
1784
  border: 1px solid var(--grey-200);
1769
1785
  border-radius: 8px;
1770
1786
  overflow: visible;
1771
1787
  background-color: var(--white-900);
1772
- `,Eo=i.table`
1788
+ `,Oo=i.table`
1773
1789
  width: 100%;
1774
1790
  border-collapse: collapse;
1775
1791
  border-spacing: 0;
1776
- `,Mo=i.tbody``,Ao=i.tr`
1777
- cursor: ${e=>e.selectable?"pointer":"default"};
1792
+ `,Po=i.tbody``,Do=i.tr`
1793
+ cursor: ${e=>e.$selectable?"pointer":"default"};
1778
1794
 
1779
1795
  &:hover {
1780
- background-color: ${e=>e.selectable?"var(--grey-50)":"transparent"};
1796
+ background-color: ${e=>e.$selectable?"var(--grey-50)":"transparent"};
1781
1797
  }
1782
- `,Io=i(at)`
1798
+ `,Vo=i(sr)`
1783
1799
  width: 40px;
1784
1800
  padding: 10px 12px;
1785
- `,Ro=i(gt)`
1801
+ `,Uo=i(ur)`
1786
1802
  width: 40px;
1787
1803
  padding: 8px 12px;
1788
- `,No=i.div`
1804
+ `,Go=i.div`
1789
1805
  display: flex;
1790
1806
  align-items: center;
1791
1807
  justify-content: center;
@@ -1794,7 +1810,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1794
1810
  height: 40px;
1795
1811
  background-color: var(--grey-50);
1796
1812
  border-top: 1px solid var(--grey-200);
1797
- `,_o=i.button`
1813
+ `,Ko=i.button`
1798
1814
  display: flex;
1799
1815
  align-items: center;
1800
1816
  justify-content: center;
@@ -1815,11 +1831,11 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1815
1831
  width: 20px;
1816
1832
  height: 20px;
1817
1833
  }
1818
- `,Bo=i.div`
1834
+ `,Zo=i.div`
1819
1835
  display: flex;
1820
1836
  align-items: center;
1821
1837
  gap: 0;
1822
- `,zo=i.button`
1838
+ `,Wo=i.button`
1823
1839
  display: flex;
1824
1840
  align-items: center;
1825
1841
  justify-content: center;
@@ -1828,7 +1844,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1828
1844
  padding: 0;
1829
1845
  border: none;
1830
1846
  border-radius: 6px;
1831
- background-color: ${e=>e.active?"var(--grey-100)":"transparent"};
1847
+ background-color: ${e=>e.$active?"var(--grey-100)":"transparent"};
1832
1848
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
1833
1849
  font-size: 13px;
1834
1850
  font-weight: 500;
@@ -1839,7 +1855,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1839
1855
  &:hover:not(:disabled) {
1840
1856
  background-color: var(--grey-100);
1841
1857
  }
1842
- `;function Ho({columns:t,data:i,pageSize:o=10,rowKey:n,selectable:l=!1,onRowSelect:a,sortKey:s,sortDirection:d,onSort:h,currentPage:g,onPageChange:u,selectedRows:C,className:x}){const[m,b]=c(null),[v,w]=c(null),[y,k]=c(1),[L,E]=c([]),[M,A]=c({}),I=void 0!==s,R=void 0!==g,N=void 0!==C,_=I?s:m,B=I?d:v,z=R?g:y,H=N?C:L,T=f(()=>{let e=[...i];return Object.entries(M).forEach(([r,t])=>{t&&(e=e.filter(e=>{const i=e[r];return i?.toString()===t}))}),e},[i,M]),$=f(()=>_&&B?[...T].sort((e,r)=>{const t=e[_],i=r[_];if(t===i)return 0;let o=0;return o="number"==typeof t&&"number"==typeof i?t-i:String(t).localeCompare(String(i)),"asc"===B?o:-o}):T,[T,_,B]),P=-1===o?1:Math.ceil($.length/o),S=f(()=>{if(-1===o)return $;const e=(z-1)*o;return $.slice(e,e+o)},[$,z,o]);p(()=>{R||k(1)},[M,_,B,R]);const O=e=>{R&&u?u(e):k(e)},V=(e,r)=>n?"function"==typeof n?n(e):e[n]:r,D=(e,r)=>{let t;t=r?[...H,e]:H.filter(r=>r!==e),N&&a||E(t),a(t)},U=e=>H.some(r=>V(r,0)===V(e,0)),Z=$.length>0&&$.every(e=>U(e));return e(Lo,{className:x,children:[e(Eo,{children:[r("thead",{children:e("tr",{children:[l&&r(Ro,{children:r(ze,{checked:Z,onChange:e=>{const r=e?[...$]:[];N&&a||E(r),a(r)},noPadding:!0})}),t.map(e=>r(gt,{width:e.width,sortable:e.sortable,sortDirection:_===e.key&&B||null,onSort:e.sortable?()=>{return r=e.key,void(I&&h?h(r,_===r&&"asc"===B?"desc":"asc"):_===r?"asc"===B?w("desc"):(b(null),w(null)):(b(r),w("asc")));var r}:void 0,filterable:e.filterable,filterOptions:e.filterOptions,filterValue:M[e.key]||"",onFilterChange:e.filterable?r=>((e,r)=>{A(t=>({...t,[e]:r}))})(e.key,r):void 0,children:e.header},e.key))]})}),r(Mo,{children:S.map((i,o)=>e(Ao,{selectable:l,onClick:l?()=>D(i,!U(i)):void 0,children:[l&&r(Io,{children:r(ze,{checked:U(i),onChange:e=>D(i,e),noPadding:!0,onClick:e=>e.stopPropagation()})}),t.map(e=>{const t=i[e.key],n=e.render?e.render(t,i,o):t;return r(at,{align:e.align,children:n},e.key)})]},V(i,o)))})]}),-1!==o&&P>1&&e(No,{children:[r(_o,{disabled:1===z,onClick:()=>O(z-1),"aria-label":"Previous page",children:r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),r(Bo,{children:(()=>{const e=[];if(P<=5)for(let r=1;r<=P;r++)e.push(r);else{e.push(1),z>3&&e.push("...");const r=Math.max(2,z-1),t=Math.min(P-1,z+1);for(let i=r;i<=t;i++)e.push(i);z<P-2&&e.push("..."),e.push(P)}return e})().map((e,t)=>r(zo,{active:e===z,onClick:"number"==typeof e?()=>O(e):void 0,disabled:"number"!=typeof e,children:e},t))}),r(_o,{disabled:z===P,onClick:()=>O(z+1),"aria-label":"Next page",children:r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}Ho.displayName="Table";const To=i.div`
1858
+ `;function jo({columns:r,data:i,pageSize:o=10,rowKey:n,selectable:a=!1,onRowSelect:l,sortKey:s,sortDirection:d,onSort:p,currentPage:g,onPageChange:f,totalItems:m,selectedRows:x,className:b}){const[C,v]=c(null),[w,y]=c(null),[k,L]=c(1),[E,M]=c([]),[I,_]=c({}),A=void 0!==s,N=void 0!==g,$=void 0!==x,T=A?s:C,R=A?d:w,z=N?g:k,S=$?x:E,B=u(()=>{let e=[...i];return Object.entries(I).forEach(([t,r])=>{r&&(e=e.filter(e=>{const i=e[t];return i?.toString()===r}))}),e},[i,I]),H=u(()=>T&&R?[...B].sort((e,t)=>{const r=e[T],i=t[T];if(r===i)return 0;let o=0;return o="number"==typeof r&&"number"==typeof i?r-i:String(r).localeCompare(String(i)),"asc"===R?o:-o}):B,[B,T,R]),O=-1===o?1:Math.ceil((m||H.length)/o),P=u(()=>{if(void 0!==m)return H;if(-1===o)return H;const e=(z-1)*o;return H.slice(e,e+o)},[H,z,o,m]);h(()=>{N||L(1)},[I,T,R,N]);const D=e=>{N&&f?f(e):L(e)},V=(e,t)=>n?"function"==typeof n?n(e):e[n]:t,U=(e,t)=>{const r=t?[...S,e]:S.filter(t=>t!==e);$&&l||M(r),l(r)},G=e=>S.some(t=>V(t,0)===V(e,0)),K=H.length>0&&H.every(e=>G(e));return e(Ho,{className:b,children:[e(Oo,{children:[t("thead",{children:e("tr",{children:[a&&t(Uo,{children:t(Re,{checked:K,onChange:e=>{const t=e?[...H]:[];$&&l||M(t),l(t)},noPadding:!0})}),r.map(e=>t(ur,{width:e.width,sortable:e.sortable,sortDirection:T===e.key&&R||null,onSort:e.sortable?()=>{return t=e.key,void(A&&p?p(t,T===t&&"asc"===R?"desc":"asc"):T===t?"asc"===R?y("desc"):(v(null),y(null)):(v(t),y("asc")));var t}:void 0,filterable:e.filterable,filterOptions:e.filterOptions,filterValue:I[e.key]||"",onFilterChange:e.filterable?t=>((e,t)=>{_(r=>({...r,[e]:t}))})(e.key,t):void 0,children:e.header},e.key))]})}),t(Po,{children:P.map((i,o)=>e(Do,{$selectable:a,onClick:a?()=>U(i,!G(i)):void 0,children:[a&&t(Vo,{children:t(Re,{checked:G(i),onChange:e=>U(i,e),noPadding:!0,onClick:e=>e.stopPropagation()})}),r.map(e=>{const r=i[e.key],n=e.render?e.render(r,i,o):r;return t(sr,{align:e.align,children:n},e.key)})]},V(i,o)))})]}),-1!==o&&O>1&&e(Go,{children:[t(Ko,{disabled:1===z,onClick:()=>D(z-1),"aria-label":"Previous page",children:t("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),t(Zo,{children:(()=>{const e=[];if(O<=5)for(let t=1;t<=O;t++)e.push(t);else{e.push(1),z>3&&e.push("...");const t=Math.max(2,z-1),r=Math.min(O-1,z+1);for(let i=t;i<=r;i++)e.push(i);z<O-2&&e.push("..."),e.push(O)}return e})().map((e,r)=>t(Wo,{$active:e===z,onClick:"number"==typeof e?()=>D(e):void 0,disabled:"number"!=typeof e,children:e},r))}),t(Ko,{disabled:z===O,onClick:()=>D(z+1),"aria-label":"Next page",children:t("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}jo.displayName="Table";const Fo=i.div`
1843
1859
  display: flex;
1844
1860
  align-items: center;
1845
1861
  border-bottom: 1px solid var(--grey-200);
@@ -1851,7 +1867,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1851
1867
 
1852
1868
  -ms-overflow-style: none;
1853
1869
  scrollbar-width: none;
1854
- `,$o=({tabs:e,activeTab:t,onChange:i,disabled:o=!1,size:n="medium"})=>{const[l,a]=c(t||(e.length>0?e[0].id:""));return r(To,{children:e.map(e=>r(nt,{label:e.label,active:t?t===e.id:l===e.id,disabled:o||e.disabled,size:e.size||n,onClick:()=>{return r=e.id,void(o||(a(r),i?.(r)));var r}},e.id))})},Po=i.div`
1870
+ `,Yo=({tabs:e,activeTab:r,onChange:i,disabled:o=!1,size:n="medium"})=>{const[a,l]=c(r||(e.length>0?e[0].id:""));return t(Fo,{children:e.map(e=>t(ar,{label:e.label,active:r?r===e.id:a===e.id,disabled:o||e.disabled,size:e.size||n,onClick:()=>{return t=e.id,void(o||(l(t),i?.(t)));var t}},e.id))})},Xo=i.div`
1855
1871
  position: fixed;
1856
1872
  ${e=>"top"===e.position?"top: 16px;":"bottom: 16px;"}
1857
1873
  left: 50%;
@@ -1863,7 +1879,7 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1863
1879
  flex-direction: column;
1864
1880
  gap: 8px;
1865
1881
  pointer-events: none;
1866
- `,So=i.div`
1882
+ `,qo=i.div`
1867
1883
  opacity: 0;
1868
1884
  transform: translateY(
1869
1885
  ${e=>"top"===e.theme.position?"-10px":"10px"}
@@ -1885,52 +1901,52 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1885
1901
  transform: translateY(0);
1886
1902
  }
1887
1903
  }
1888
- `;u(void 0);let Oo=[],Vo=[];const Do=({position:e="top"})=>{const[t,i]=c([]),[o,n]=c(!1);return p(()=>{n(!0);const e=(r=i,Vo.push(r),r(Oo),()=>{Vo=Vo.filter(e=>e!==r)});var r;return()=>{e(),n(!1)}},[]),o?w(r(Po,{position:e,children:t.map(t=>r(So,{theme:{position:e},children:r(Rt,{type:t.type,heading:t.heading,description:t.description})},t.id))}),document.body):null},Uo=({userProfile:t,hostname:i,organization:o,children:n})=>{const l=[{icon:Me.SEARCH_DOCUMENT,label:"Search"},{icon:Me.SEARCH_SQL,label:"SQL Search"},{icon:Me.LAMP,label:"Projects"},{icon:Me.PIPELINE,label:"Pipelines"},{icon:Me.COMPUTER,label:"Data & AI Workspace"},{icon:Me.CUBE,label:"Artifacts"},{icon:Me.DATABASE,label:"Data Sources"},{icon:Me.PIE_CHART,label:"Health Monitoring"},{icon:Me.BULK_CHECK,label:"Bulk Actions"},{icon:Me.CODE,label:"Attribute Management"},{icon:Me.GEAR,label:"Administration"}],[a,s]=c("Pipelines");return e("div",{className:"app-layout",children:[r(ji,{organization:o}),e("div",{className:"content-container",children:[r(ko,{items:l,activeItem:a,onItemClick:e=>{s(e)}}),e("div",{className:"main-content",children:[r(Zt,{hostname:i,userProfile:t,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),r("div",{className:"main-layout",children:n})]})]})]})},Zo=(e,r)=>{if("undefined"!=typeof window){return getComputedStyle(document.documentElement).getPropertyValue(`--${e}`).trim()||r||""}return`var(--${e}${r?`, ${r}`:""})`},Go={BLACK_50:Zo("black-50","rgba(26, 26, 26, 0.05)"),BLACK_100:Zo("black-100","rgba(26, 26, 26, 0.1)"),BLACK_200:Zo("black-200","rgba(26, 26, 26, 0.2)"),BLACK_300:Zo("black-300","rgba(26, 26, 26, 0.3)"),BLACK_400:Zo("black-400","rgba(26, 26, 26, 0.4)"),BLACK_500:Zo("black-500","rgba(26, 26, 26, 0.5)"),BLACK_600:Zo("black-600","rgba(26, 26, 26, 0.6)"),BLACK_700:Zo("black-700","rgba(26, 26, 26, 0.7)"),BLACK_800:Zo("black-800","rgba(26, 26, 26, 0.8)"),BLACK_900:Zo("black-900","rgba(26, 26, 26, 1)"),BLACK:Zo("black-900","#1a1a1a"),BLACK_OPACITY_20:"rgba(26, 26, 26, 0.2)",WHITE_50:Zo("white-50","rgba(255, 255, 255, 0.05)"),WHITE_100:Zo("white-100","rgba(255, 255, 255, 0.1)"),WHITE_200:Zo("white-200","rgba(255, 255, 255, 0.2)"),WHITE_300:Zo("white-300","rgba(255, 255, 255, 0.3)"),WHITE_400:Zo("white-400","rgba(255, 255, 255, 0.4)"),WHITE_500:Zo("white-500","rgba(255, 255, 255, 0.5)"),WHITE_600:Zo("white-600","rgba(255, 255, 255, 0.6)"),WHITE_700:Zo("white-700","rgba(255, 255, 255, 0.7)"),WHITE_800:Zo("white-800","rgba(255, 255, 255, 0.8)"),WHITE_900:Zo("white-900","rgba(255, 255, 255, 1)"),WHITE:Zo("white-900","#ffffff"),BLUE_50:Zo("blue-50","rgba(240, 249, 255, 1)"),BLUE_100:Zo("blue-100","rgba(225, 243, 254, 1)"),BLUE_200:Zo("blue-200","rgba(185, 229, 252, 1)"),BLUE_300:Zo("blue-300","rgba(125, 211, 251, 1)"),BLUE_400:Zo("blue-400","rgba(58, 190, 247, 1)"),BLUE_500:Zo("blue-500","rgba(27, 173, 240, 1)"),BLUE_600:Zo("blue-600","rgba(64, 114, 210, 1)"),BLUE_700:Zo("blue-700","rgba(3, 105, 159, 1)"),BLUE_800:Zo("blue-800","rgba(5, 69, 103, 1)"),BLUE_900:Zo("blue-900","rgba(4, 38, 63, 1)"),BLUE:Zo("graph-primary-blue","#2D9CDB"),GREY_50:Zo("grey-50","rgba(248, 250, 252, 1)"),GREY_100:Zo("grey-100","rgba(241, 245, 249, 1)"),GREY_200:Zo("grey-200","rgba(225, 231, 239, 1)"),GREY_300:Zo("grey-300","rgba(200, 214, 229, 1)"),GREY_400:Zo("grey-400","rgba(158, 172, 192, 1)"),GREY_500:Zo("grey-500","rgba(100, 116, 139, 1)"),GREY_600:Zo("grey-600","rgba(72, 86, 106, 1)"),GREY_700:Zo("grey-700","rgba(51, 65, 86, 1)"),GREY_800:Zo("grey-800","rgba(29, 40, 57, 1)"),GREY_900:Zo("grey-900","rgba(20, 30, 53, 1)"),GREY:Zo("grey-400","#CCCCCC"),ORANGE:Zo("graph-primary-orange","#FFA62E"),RED:Zo("graph-primary-red","#FF5C64"),GREEN:Zo("graph-primary-green","#A5C34E"),YELLOW:Zo("graph-primary-yellow","#FBED53"),PURPLE:Zo("graph-primary-purple","#7A51AB"),GREEN_BG:Zo("green-bg","rgba(234, 254, 229, 1)"),GREEN_SUCCESS:Zo("green-success","rgba(8, 173, 55, 1)"),ORANGE_BG:Zo("orange-bg","rgba(254, 250, 229, 1)"),ORANGE_CAUTION:Zo("orange-caution","rgba(249, 173, 20, 1)"),RED_BG:Zo("red-bg","rgba(254, 234, 229, 1)"),RED_ERROR:Zo("red-error","rgba(216, 35, 44, 1)"),GRAPH_SECONDARY_BROWN:Zo("graph-secondary-brown","#AD7942"),GRAPH_SECONDARY_PINK:Zo("graph-secondary-pink","#FB90B4"),GRAPH_SECONDARY_TEAL:Zo("graph-secondary-teal","#3CCABA"),GRAPH_SECONDARY_DARK_BLUE:Zo("graph-secondary-dark-blue","#4072D2"),GRAPH_SECONDARY_BLACK:Zo("graph-secondary-black","#424E62"),GRAPH_SECONDARY_GREY:Zo("graph-secondary-grey","#B4B4B4")},Wo=[Go.ORANGE,Go.RED,Go.GREEN,Go.BLUE,Go.YELLOW,Go.PURPLE,Go.GRAPH_SECONDARY_BROWN,Go.GRAPH_SECONDARY_PINK,Go.GRAPH_SECONDARY_TEAL,Go.GRAPH_SECONDARY_DARK_BLUE,Go.GRAPH_SECONDARY_BLACK,Go.GRAPH_SECONDARY_GREY],jo=({dataSeries:e,width:t=1e3,height:i=600,xRange:o,yRange:n,variant:l="normal",xTitle:a="Columns",yTitle:s="Rows",title:d="Area Graph"})=>{const c=h(null),{xMin:g,xMax:f,yMin:u,yMax:C}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE,i=Number.MAX_VALUE,o=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)}),e.y.forEach(e=>{i=Math.min(i,e),o=Math.max(o,e)})});const n=.1*(t-r),a=.1*(o-i);return{xMin:r-n,xMax:t+n,yMin:"stacked"===l?0:i-a,yMax:o+a}})(),x=o||[g,f],m=n||[u,C],b=(()=>{const e=x[1]-x[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let i=Math.ceil(x[0]/r)*r;for(;i<=x[1];)t.push(i),i+=r;return t})(),v=(()=>{const e=m[1]-m[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let i=Math.ceil(m[0]/r)*r;for(;i<=m[1];)t.push(i),i+=r;return t})(),w={tickcolor:Go.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Go.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Go.BLACK_900,linewidth:1,position:0,zeroline:!1},k={text:d,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Go.BLACK_900,lineheight:1.2,standoff:30}};return p(()=>{if(!c.current)return;let r;if("stacked"===l){const t=new Array(e[0]?.x.length||0).fill(0);r=e.map((e,r)=>{const i=e.y.map((e,r)=>{const i=t[r]+e;return t[r]=i,i});return{x:e.x,y:i,type:"scatter",mode:"lines",name:e.name,fill:0===r?"tozeroy":"tonexty",fillcolor:e.color,line:{color:e.color,width:2}}})}else r=e.map(e=>({x:e.x,y:e.y,type:"scatter",mode:"lines",name:e.name,fill:e.fill||"tozeroy",fillcolor:e.color,line:{color:e.color,width:2}}));const d={width:t,height:i,title:k,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:Go.WHITE,plot_bgcolor:Go.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:a,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Go.GREY_200,range:o,autorange:!o,tickmode:"array",tickvals:b,showgrid:!0,...w},yaxis:{title:{text:s,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Go.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:v,showgrid:!0,...w},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Go.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};return y.newPlot(c.current,r,d,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{c.current&&y.purge(c.current)}},[e,t,i,o,n,l,a,s,d]),r("div",{className:"area-graph-container",children:r("div",{ref:c,style:{width:"100%",height:"100%"}})})},Ko=({dataSeries:e,width:t=1e3,height:i=600,xRange:o,yRange:n,variant:l="group",xTitle:a="Columns",yTitle:s="Rows",title:d="Bar Graph",barWidth:c=24})=>{const g=h(null),{yMin:f,yMax:u}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE,i=Number.MAX_VALUE,o=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)}),e.y.forEach(e=>{i=Math.min(i,e),o=Math.max(o,e)})});const n=.1*(t-r),a=.1*(o-i);return{xMin:r-n,xMax:t+n,yMin:"stack"===l?0:i-a,yMax:o+a}})(),C=n||[f,u],x=Array.from(new Set(e.flatMap(e=>e.x))),m=(()=>{const e=C[1]-C[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let i=Math.ceil(C[0]/r)*r;for(;i<=C[1];)t.push(i),i+=r;return t})(),b=()=>{switch(l){case"stack":return"stack";case"overlay":return"overlay";default:return"group"}},v={tickcolor:Go.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Go.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Go.BLACK_900,linewidth:1,position:0,zeroline:!1};return p(()=>{if(!g.current)return;const r=e.map(e=>({x:e.x,y:e.y,type:"bar",name:e.name,marker:{color:e.color},width:c,error_y:e.error_y})),l={title:{text:d,font:{size:32,family:"Inter, sans-serif",color:Go.BLACK_900}},width:t,height:i,margin:{l:80,r:30,b:80,t:60,pad:0},paper_bgcolor:Go.WHITE,plot_bgcolor:Go.WHITE,font:{family:"Inter, sans-serif"},barmode:b(),bargap:.15,dragmode:!1,xaxis:{title:{text:a,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Go.GREY_200,range:o,autorange:!o,tickmode:"array",tickvals:x,showgrid:!0,...v},yaxis:{title:{text:s,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Go.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:m,showgrid:!0,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Go.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:e.length>1};return y.newPlot(g.current,r,l,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{g.current&&y.purge(g.current)}},[e,t,i,o,n,l,a,s,d,c]),r("div",{className:"bar-graph-container",children:r("div",{ref:g,style:{width:"100%",height:"100%"}})})},Yo=({dataSeries:e,width:t=1e3,height:i=600,xRange:o,yRange:n,xTitle:l="Columns",yTitle:a="Rows",title:s="Boxplot",showPoints:d=!1})=>{const c=h(null),{yMin:g,yMax:f}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE;e.forEach(e=>{e.y.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)})});const i=.1*(t-r);return{yMin:r-i,yMax:t+i}})(),u=n||[g,f],C=(()=>{const e=u[1]-u[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let i=Math.ceil(u[0]/r)*r;for(;i<=u[1];)t.push(i),i+=r;return t})(),x={tickcolor:Go.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Go.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Go.BLACK_900,linewidth:1,position:0,zeroline:!1},m={text:s,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Go.BLACK_900,lineheight:1.2,standoff:30}};return p(()=>{if(!c.current)return;const r=e.map(e=>({y:e.y,x:e.x,type:"box",name:e.name,marker:{color:e.color},line:{color:e.color},fillcolor:e.color+"40",boxpoints:!!d&&(e.boxpoints||"outliers"),jitter:e.jitter||.3,pointpos:e.pointpos||-1.8})),s={width:t,height:i,title:m,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:Go.WHITE,plot_bgcolor:Go.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Go.GREY_200,range:o,autorange:!o,showgrid:!0,...x},yaxis:{title:{text:a,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Go.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:C,showgrid:!0,...x},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Go.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};return y.newPlot(c.current,r,s,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{c.current&&y.purge(c.current)}},[e,t,i,o,n,l,a,s,d]),r("div",{className:"boxplot-container",children:r("div",{ref:c,style:{width:"100%",height:"100%"}})})},Fo=({data:t=[],width:i=900,height:o=600,positionInterval:n=10,colorA:l="#2D9CDB",colorT:a="#A1C63C",colorG:s="#FF5C64",colorC:d="#FFA62E"})=>{const c=h(null),g=t.map(e=>e.position),f=t.map(e=>(e=>{const r={A:e.peakA,T:e.peakT,G:e.peakG,C:e.peakC},t=Object.values(r);if(t.every(e=>e===t[0]))return"";let i="",o=0;return Object.entries(r).forEach(([e,r])=>{r>o&&(i=e,o=r)}),i})(e)),u=t.map(e=>e.peakA),C=t.map(e=>e.peakT),x=t.map(e=>e.peakG),m=t.map(e=>e.peakC),b={x:g,y:u,type:"scatter",mode:"lines",name:"A",line:{color:l,width:2,shape:"spline"}},v={x:g,y:C,type:"scatter",mode:"lines",name:"T",line:{color:a,width:2,shape:"spline"}},w={x:g,y:x,type:"scatter",mode:"lines",name:"G",line:{color:s,width:2,shape:"spline"}},k={x:g,y:m,type:"scatter",mode:"lines",name:"C",line:{color:d,width:2,shape:"spline"}},L=Math.max(...u,...C,...x,...m);if(p(()=>{if(!c.current||0===t.length)return;const e=[b,v,w,k],r={width:i,height:o-75,margin:{l:0,r:0,b:20,t:10,pad:0},paper_bgcolor:"var(--white-900)",plot_bgcolor:"var(--white-900)",font:{family:"Inter, sans-serif"},showlegend:!1,xaxis:{showgrid:!1,zeroline:!1,showticklabels:!1,showline:!1,range:[Math.min(...g),Math.max(...g)],fixedrange:!0},yaxis:{showgrid:!1,zeroline:!1,showticklabels:!1,showline:!1,range:[0,1.05*L],fixedrange:!0}};return y.newPlot(c.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1,fillFrame:!0}),()=>{c.current&&y.purge(c.current)}},[t,i,o,n,l,a,s,d,g,u,C,x,m,L]),0===t.length)return r("div",{className:"chart-container",children:"No data available"});return e("div",{className:"chromatogram-container",style:{width:i,height:o},children:[e("div",{className:"sequence-header",children:[(()=>{const e=Math.min(...g),t=Math.max(...g),o=i;return r("div",{className:"sequence-letters-container",children:f.map((i,n)=>{const c=g[n];return r("span",{className:"sequence-letter",style:{left:(c-e)/(t-e)*o+"px",color:"A"===i?l:"T"===i?a:"G"===i?s:"C"===i?d:"var(--black-900)"},children:i},`base-${n}`)})})})(),(()=>{const e=Math.min(...g),t=Math.max(...g),o=i,l=[];for(let r=Math.ceil(e/n)*n;r<=t;r+=n)l.push({position:r,label:r.toString()});return r("div",{className:"position-numbers-container",children:l.map(i=>{const n=(i.position-e)/(t-e);return r("span",{className:"position-number",style:{left:n*o+"px"},children:i.label},`pos-${i.position}`)})})})()]}),r("div",{className:"chromatogram-chart",children:r("div",{ref:c,style:{width:"100%",height:"100%"}})})]})},Xo=({dataSeries:e,width:t=1e3,height:i=600,title:o="Dot Plot",xTitle:n="Columns",yTitle:l="Rows",variant:a="default",markerSize:s=8})=>{const d=h(null),c=Array.isArray(e)?e:[e],g=[Go.ORANGE,Go.RED,Go.GREEN,Go.BLUE,Go.YELLOW,Go.PURPLE],f=["circle","square","diamond","triangle-up","triangle-down","star"],u=c.map((e,r)=>"default"===a?{...e,color:e.color||g[0],symbol:"circle",size:e.size||s}:{...e,color:e.color||g[r%g.length],symbol:e.symbol||f[r%f.length],size:e.size||s}),C=Go.GREY_200,x=u.map(e=>({type:"scatter",x:e.x,y:e.y,mode:"markers",name:e.name,marker:{color:e.color,size:e.size,symbol:e.symbol,line:{color:Go.WHITE,width:1}},hovertemplate:`${n}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),m={tickcolor:Go.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Go.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Go.BLACK_900,linewidth:1,position:0,zeroline:!1},b={text:o,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Go.BLACK_900,lineheight:1.2,standoff:30}};return p(()=>{if(!d.current)return;const e={width:t,height:i,font:{family:"Inter, sans-serif"},title:b,margin:{l:80,r:40,b:80,t:80,pad:0},showlegend:!0,legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Go.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},xaxis:{title:{text:n,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:C,...m},yaxis:{title:{text:l,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:C,...m},paper_bgcolor:Go.WHITE,plot_bgcolor:Go.WHITE};return y.newPlot(d.current,x,e,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{d.current&&y.purge(d.current)}},[e,t,i,n,l,a,s,x]),r("div",{className:"dotplot-container",style:{width:t},children:r("div",{ref:d,style:{width:"100%",height:"100%",margin:"0"}})})};const qo=[[0,"#092761"],[.15,"#141950"],[.3,"#282D73"],[.45,"#463782"],[.6,"#643C8C"],[.7,"#8C4696"],[.8,"#B45096"],[.9,"#DC5A8C"],[.95,"#FA6482"],[1,"#FF5C64"]],Qo=({data:e,xLabels:t,yLabels:i,title:o,xTitle:n="Columns",yTitle:l="Rows",colorscale:a=qo,width:s=800,height:d=600,showScale:c=!0,precision:g=0,zmin:f=0,zmax:u=5e4,valueUnit:C=""})=>{const x=h(null);let m=e||function(e,r,t=0,i=1){const o=[];for(let n=0;n<e;n++){const e=[];for(let o=0;o<r;o++)e.push(t+Math.random()*(i-t));o.push(e)}return o}(16,24,5e3,5e4);m=function(e){if(!e||0===e.length)return[];const r=Math.max(...e.map(e=>e.length));return e.map(e=>{if(e.length===r)return e;const t=[...e];for(;t.length<r;)t.push(0);return t})}(m);const b=m.length>0?m[0].length:24,v=t||Array.from({length:b},(e,r)=>r+1),w=i||(k=m.length,Array.from({length:k},(e,r)=>String.fromCharCode(65+r)));var k;return p(()=>{if(!x.current)return;const e=[{z:m,x:v,y:w,type:"heatmap",colorscale:a,showscale:c,zsmooth:!1,hovertemplate:`Row: %{y}<br>Column: %{x}<br>Value: %{z:.${g}f}${C}<extra></extra>`,zmin:f,zmax:u,colorbar:{thickness:28,len:1,outlinewidth:0,ticksuffix:C,y:.5,yanchor:"middle"}}],r={title:{text:o||"",font:{family:"Inter, sans-serif",size:20,color:"var(--black-300)"},y:.98,yanchor:"top"},width:s,height:d,margin:{l:70,r:70,b:70,t:100,pad:5},xaxis:{title:{text:n,font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},side:"top",fixedrange:!0},yaxis:{title:{text:l,font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},autorange:"reversed",fixedrange:!0},paper_bgcolor:"var(--white-900)",plot_bgcolor:"var(--white-900)",font:{family:"Inter, sans-serif",color:"var(--grey-600)"}};return y.newPlot(x.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{x.current&&y.purge(x.current)}},[e,t,i,o,n,l,a,s,d,c,g,f,u,C]),r("div",{className:"heatmap-container",children:r("div",{ref:x,style:{width:"100%",height:"100%"}})})},Jo=({dataSeries:t,width:i=480,height:o=480,title:n="Histogram",xTitle:l="X Axis",yTitle:a="Frequency",bargap:d=.2,showDistributionLine:c=!1})=>{const g=h(null),f=Array.isArray(t)?t:[t],u=f.length>1?"stack":void 0,C=[Go.ORANGE,Go.RED,Go.BLUE,Go.GREEN,Go.PURPLE,Go.YELLOW],x=f.map((e,r)=>{const t=void 0!==e.showDistributionLine?e.showDistributionLine:c;return{...e,color:e.color||C[r%C.length],opacity:t?.5:e.opacity||1,showDistributionLine:t,lineWidth:e.lineWidth||3}}),m=Go.GREY_200,b=x.map(e=>({type:"histogram",x:e.x,name:e.name,marker:{color:e.color,line:{color:Go.WHITE,width:1},opacity:e.opacity},autobinx:e.autobinx,xbins:e.xbins,hovertemplate:`${l}: %{x}<br>${a}: %{y}<extra>${e.name}</extra>`})),v=x.filter(e=>e.showDistributionLine).map(e=>{const r=(t=e.x).reduce((e,r)=>e+r,0)/t.length;var t;const i=((e,r)=>{const t=e.map(e=>Math.pow(e-r,2)).reduce((e,r)=>e+r,0)/e.length;return Math.sqrt(t)})(e.x,r),o=Math.min(...e.x),n=Math.max(...e.x),l=n-o,a=o-.1*l,s=n+.1*l,d=e.xbins||{start:a,end:s,size:l/10},c=((e,r,t,i,o=100)=>{const n=[],l=[],a=(i-t)/(o-1);for(let i=0;i<o;i++){const o=t+i*a;n.push(o);const s=-.5*Math.pow((o-e)/r,2),d=1/(r*Math.sqrt(2*Math.PI))*Math.exp(s);l.push(d)}return{x:n,y:l}})(r,i,a,s,100),h=((e,r,t)=>{const i=Math.ceil((t.end-t.start)/t.size),o=Array(i).fill(0);r.forEach(e=>{if(e>=t.start&&e<=t.end){const r=Math.floor((e-t.start)/t.size);o[r]++}});const n=Math.max(...o)/Math.max(...e);return e.map(e=>e*n)})(c.y,e.x,d);return{type:"scatter",x:c.x,y:h,mode:"lines",name:`${e.name} Distribution`,line:{color:e.color,width:e.lineWidth},hoverinfo:"none"}}),w=[...b,...v];p(()=>{if(!g.current)return;const e={width:i,height:o,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:90,r:40,b:80,t:40},xaxis:{title:{text:l,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:m,tickcolor:Go.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:Go.BLACK_900,linewidth:1,zeroline:!1},yaxis:{title:{text:a,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:m,tickcolor:Go.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:Go.BLACK_900,linewidth:1,zeroline:!1,rangemode:"tozero"},barmode:u,bargap:d,paper_bgcolor:Go.WHITE,plot_bgcolor:Go.WHITE};return y.newPlot(g.current,w,e,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{g.current&&y.purge(g.current)}},[t,i,o,n,l,a,d,c,w]);return r("div",{className:"histogram-container",style:{width:i},children:e("div",{className:"chart-container",children:[n&&r("div",{className:"title-container",children:r("h2",{className:"title",children:n})}),r("div",{ref:g,style:{width:"100%",height:"100%",margin:"0"}}),r(({series:t})=>{const i=t.map((i,o)=>r(s.Fragment,{children:e("div",{className:"legend-item",children:[r("span",{className:"color-box",style:{background:i.color}}),i.name,o<t.length-1&&r("span",{className:"divider"})]})},i.name)),o=[];for(let e=0;e<i.length;e+=6)o.push(r("div",{className:"legend-row",children:i.slice(e,e+6)},e));return r("div",{className:"legend-container",children:o})},{series:x})]})})},en=({dataSeries:e,width:t=1e3,height:i=600,xRange:o,yRange:n,variant:l="lines",xTitle:a="Columns",yTitle:s="Rows",title:d="Line Graph"})=>{const c=h(null),{yMin:g,yMax:f}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE,i=Number.MAX_VALUE,o=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)}),e.y.forEach(e=>{i=Math.min(i,e),o=Math.max(o,e)})});const n=.1*(t-r),l=.1*(o-i);return{xMin:r-n,xMax:t+n,yMin:i-l,yMax:o+l}})(),u=n||[g,f],C=Array.from(new Set(e.flatMap(e=>e.x))),x=(()=>{const e=u[1]-u[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let i=Math.ceil(u[0]/r)*r;for(;i<=u[1];)t.push(i),i+=r;return t})(),m=()=>{switch(l){case"lines+markers":case"lines+markers+error_bars":return"lines+markers";default:return"lines"}},b={tickcolor:Go.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Go.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Go.BLACK_900,linewidth:1,position:0,zeroline:!1};return p(()=>{if(!c.current)return;const r=e.map(e=>({x:e.x,y:e.y,type:"scatter",mode:m(),name:e.name,line:{color:e.color,width:1.5},marker:"lines"!==l?{color:e.color,size:8,symbol:e.symbol||"triangle-up"}:{opacity:0},error_y:"lines+markers+error_bars"===l?e.error_y||{type:"data",array:e.y.map(()=>10),visible:!0,color:e.color,thickness:1,width:5}:void 0})),h={title:{text:d,font:{size:32,family:"Inter, sans-serif",color:Go.BLACK_900}},width:t,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:Go.WHITE,plot_bgcolor:Go.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:a,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Go.GREY_200,range:o,autorange:!o,tickmode:"array",tickvals:C,ticktext:C.map(String),showgrid:!0,...b},yaxis:{title:{text:s,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Go.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:x,showgrid:!0,...b},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Go.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0};return y.newPlot(c.current,r,h,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{c.current&&y.purge(c.current)}},[e,t,i,o,n,l,a,s,d]),r("div",{className:"chart-container",children:r("div",{ref:c,style:{width:"100%",height:"100%"}})})},rn=i.div`
1904
+ `;g(void 0);let Qo=[],Jo=[];const en=({position:e="top"})=>{const[r,i]=c([]),[o,n]=c(!1);return h(()=>{n(!0);const e=(t=i,Jo.push(t),t(Qo),()=>{Jo=Jo.filter(e=>e!==t)});var t;return()=>{e(),n(!1)}},[]),o?w(t(Xo,{position:e,children:r.map(r=>t(qo,{theme:{position:e},children:t(Nr,{type:r.type,heading:r.heading,description:r.description})},r.id))}),document.body):null},tn=({userProfile:r,hostname:i,organization:o,children:n})=>{const a=[{icon:Me.SEARCH_DOCUMENT,label:"Search"},{icon:Me.SEARCH_SQL,label:"SQL Search"},{icon:Me.LAMP,label:"Projects"},{icon:Me.PIPELINE,label:"Pipelines"},{icon:Me.COMPUTER,label:"Data & AI Workspace"},{icon:Me.CUBE,label:"Artifacts"},{icon:Me.DATABASE,label:"Data Sources"},{icon:Me.PIE_CHART,label:"Health Monitoring"},{icon:Me.BULK_CHECK,label:"Bulk Actions"},{icon:Me.CODE,label:"Attribute Management"},{icon:Me.GEAR,label:"Administration"}],[l,s]=c("Pipelines");return e("div",{className:"app-layout",children:[t(no,{organization:o}),e("div",{className:"content-container",children:[t(Bo,{items:a,activeItem:l,onItemClick:e=>{s(e)}}),e("div",{className:"main-content",children:[t(ti,{hostname:i,userProfile:r,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),t("div",{className:"main-layout",children:n})]})]})]})},rn=(e,t)=>{if("undefined"!=typeof window){return getComputedStyle(document.documentElement).getPropertyValue("--"+e).trim()||t||""}return"var(--"+e+(t?", "+t:"")+")"},on={BLACK_50:rn("black-50","rgba(26, 26, 26, 0.05)"),BLACK_100:rn("black-100","rgba(26, 26, 26, 0.1)"),BLACK_200:rn("black-200","rgba(26, 26, 26, 0.2)"),BLACK_300:rn("black-300","rgba(26, 26, 26, 0.3)"),BLACK_400:rn("black-400","rgba(26, 26, 26, 0.4)"),BLACK_500:rn("black-500","rgba(26, 26, 26, 0.5)"),BLACK_600:rn("black-600","rgba(26, 26, 26, 0.6)"),BLACK_700:rn("black-700","rgba(26, 26, 26, 0.7)"),BLACK_800:rn("black-800","rgba(26, 26, 26, 0.8)"),BLACK_900:rn("black-900","rgba(26, 26, 26, 1)"),BLACK:rn("black-900","#1a1a1a"),BLACK_OPACITY_20:"rgba(26, 26, 26, 0.2)",WHITE_50:rn("white-50","rgba(255, 255, 255, 0.05)"),WHITE_100:rn("white-100","rgba(255, 255, 255, 0.1)"),WHITE_200:rn("white-200","rgba(255, 255, 255, 0.2)"),WHITE_300:rn("white-300","rgba(255, 255, 255, 0.3)"),WHITE_400:rn("white-400","rgba(255, 255, 255, 0.4)"),WHITE_500:rn("white-500","rgba(255, 255, 255, 0.5)"),WHITE_600:rn("white-600","rgba(255, 255, 255, 0.6)"),WHITE_700:rn("white-700","rgba(255, 255, 255, 0.7)"),WHITE_800:rn("white-800","rgba(255, 255, 255, 0.8)"),WHITE_900:rn("white-900","rgba(255, 255, 255, 1)"),WHITE:rn("white-900","#ffffff"),BLUE_50:rn("blue-50","rgba(240, 249, 255, 1)"),BLUE_100:rn("blue-100","rgba(225, 243, 254, 1)"),BLUE_200:rn("blue-200","rgba(185, 229, 252, 1)"),BLUE_300:rn("blue-300","rgba(125, 211, 251, 1)"),BLUE_400:rn("blue-400","rgba(58, 190, 247, 1)"),BLUE_500:rn("blue-500","rgba(27, 173, 240, 1)"),BLUE_600:rn("blue-600","rgba(64, 114, 210, 1)"),BLUE_700:rn("blue-700","rgba(3, 105, 159, 1)"),BLUE_800:rn("blue-800","rgba(5, 69, 103, 1)"),BLUE_900:rn("blue-900","rgba(4, 38, 63, 1)"),BLUE:rn("graph-primary-blue","#2D9CDB"),GREY_50:rn("grey-50","rgba(248, 250, 252, 1)"),GREY_100:rn("grey-100","rgba(241, 245, 249, 1)"),GREY_200:rn("grey-200","rgba(225, 231, 239, 1)"),GREY_300:rn("grey-300","rgba(200, 214, 229, 1)"),GREY_400:rn("grey-400","rgba(158, 172, 192, 1)"),GREY_500:rn("grey-500","rgba(100, 116, 139, 1)"),GREY_600:rn("grey-600","rgba(72, 86, 106, 1)"),GREY_700:rn("grey-700","rgba(51, 65, 86, 1)"),GREY_800:rn("grey-800","rgba(29, 40, 57, 1)"),GREY_900:rn("grey-900","rgba(20, 30, 53, 1)"),GREY:rn("grey-400","#CCCCCC"),ORANGE:rn("graph-primary-orange","#FFA62E"),RED:rn("graph-primary-red","#FF5C64"),GREEN:rn("graph-primary-green","#A5C34E"),YELLOW:rn("graph-primary-yellow","#FBED53"),PURPLE:rn("graph-primary-purple","#7A51AB"),GREEN_BG:rn("green-bg","rgba(234, 254, 229, 1)"),GREEN_SUCCESS:rn("green-success","rgba(8, 173, 55, 1)"),ORANGE_BG:rn("orange-bg","rgba(254, 250, 229, 1)"),ORANGE_CAUTION:rn("orange-caution","rgba(249, 173, 20, 1)"),RED_BG:rn("red-bg","rgba(254, 234, 229, 1)"),RED_ERROR:rn("red-error","rgba(216, 35, 44, 1)"),GRAPH_SECONDARY_BROWN:rn("graph-secondary-brown","#AD7942"),GRAPH_SECONDARY_PINK:rn("graph-secondary-pink","#FB90B4"),GRAPH_SECONDARY_TEAL:rn("graph-secondary-teal","#3CCABA"),GRAPH_SECONDARY_DARK_BLUE:rn("graph-secondary-dark-blue","#4072D2"),GRAPH_SECONDARY_BLACK:rn("graph-secondary-black","#424E62"),GRAPH_SECONDARY_GREY:rn("graph-secondary-grey","#B4B4B4")},nn=[on.ORANGE,on.RED,on.GREEN,on.BLUE,on.YELLOW,on.PURPLE,on.GRAPH_SECONDARY_BROWN,on.GRAPH_SECONDARY_PINK,on.GRAPH_SECONDARY_TEAL,on.GRAPH_SECONDARY_DARK_BLUE,on.GRAPH_SECONDARY_BLACK,on.GRAPH_SECONDARY_GREY],an=({dataSeries:e,width:r=1e3,height:i=600,xRange:o,yRange:n,variant:a="normal",xTitle:l="Columns",yTitle:s="Rows",title:c="Area Graph"})=>{const p=d(null),{xMin:g,xMax:f,yMin:m,yMax:x}=u(()=>{let t=Number.MAX_VALUE,r=Number.MIN_VALUE,i=Number.MAX_VALUE,o=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{t=Math.min(t,e),r=Math.max(r,e)}),e.y.forEach(e=>{i=Math.min(i,e),o=Math.max(o,e)})});const n=.1*(r-t),l=.1*(o-i);return{xMin:t-n,xMax:r+n,yMin:"stacked"===a?0:i-l,yMax:o+l}},[e,a]),b=u(()=>o||[g,f],[o,g,f]),C=u(()=>n||[m,x],[n,m,x]),v=u(()=>{const e=b[1]-b[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let i=Math.ceil(b[0]/t)*t;for(;i<=b[1];)r.push(i),i+=t;return r},[b]),w=u(()=>{const e=C[1]-C[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let i=Math.ceil(C[0]/t)*t;for(;i<=C[1];)r.push(i),i+=t;return r},[C]),k=u(()=>({tickcolor:on.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:on.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:on.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]),L=u(()=>({text:c,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:on.BLACK_900,lineheight:1.2,standoff:30}}),[c]);return h(()=>{if(!p.current)return;let t;if("stacked"===a){const r=new Array(e[0]?.x.length||0).fill(0);t=e.map((e,t)=>{const i=e.y.map((e,t)=>{const i=r[t]+e;return r[t]=i,i});return{x:e.x,y:i,type:"scatter",mode:"lines",name:e.name,fill:0===t?"tozeroy":"tonexty",fillcolor:e.color,line:{color:e.color,width:2}}})}else t=e.map(e=>({x:e.x,y:e.y,type:"scatter",mode:"lines",name:e.name,fill:e.fill||"tozeroy",fillcolor:e.color,line:{color:e.color,width:2}}));const c={width:r,height:i,title:L,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:on.WHITE,plot_bgcolor:on.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:on.GREY_200,range:o,autorange:!o,tickmode:"array",tickvals:v,showgrid:!0,...k},yaxis:{title:{text:s,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:on.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:w,showgrid:!0,...k},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:on.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};y.newPlot(p.current,t,c,{responsive:!0,displayModeBar:!1,displaylogo:!1});const d=p.current;return()=>{d&&y.purge(d)}},[e,r,i,o,n,b,C,a,l,s,L,k,v,w]),t("div",{className:"area-graph-container",children:t("div",{ref:p,style:{width:"100%",height:"100%"}})})},ln=({dataSeries:e,width:r=1e3,height:i=600,xRange:o,yRange:n,variant:a="group",xTitle:l="Columns",yTitle:s="Rows",title:c="Bar Graph",barWidth:p=24})=>{const g=d(null),{yMin:f,yMax:m}=u(()=>{let t=Number.MAX_VALUE,r=Number.MIN_VALUE,i=Number.MAX_VALUE,o=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{t=Math.min(t,e),r=Math.max(r,e)}),e.y.forEach(e=>{i=Math.min(i,e),o=Math.max(o,e)})});const n=.1*(r-t),l=.1*(o-i);return{xMin:t-n,xMax:r+n,yMin:"stack"===a?0:i-l,yMax:o+l}},[e,a]),x=u(()=>n||[f,m],[n,f,m]),b=u(()=>[...new Set(e.flatMap(e=>e.x))],[e]),C=u(()=>{const e=x[1]-x[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let i=Math.ceil(x[0]/t)*t;for(;i<=x[1];)r.push(i),i+=t;return r},[x]),v=u(()=>{switch(a){case"stack":return"stack";case"overlay":return"overlay";default:return"group"}},[a]),w=u(()=>({tickcolor:on.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:on.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:on.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]);return h(()=>{if(!g.current)return;const t=e.map(e=>({x:e.x,y:e.y,type:"bar",name:e.name,marker:{color:e.color},width:p,error_y:e.error_y})),a={title:{text:c,font:{size:32,family:"Inter, sans-serif",color:on.BLACK_900}},width:r,height:i,margin:{l:80,r:30,b:80,t:60,pad:0},paper_bgcolor:on.WHITE,plot_bgcolor:on.WHITE,font:{family:"Inter, sans-serif"},barmode:v,bargap:.15,dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:on.GREY_200,range:o,autorange:!o,tickmode:"array",tickvals:b,showgrid:!0,...w},yaxis:{title:{text:s,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:on.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:C,showgrid:!0,...w},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:on.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:e.length>1};y.newPlot(g.current,t,a,{responsive:!0,displayModeBar:!1,displaylogo:!1});const d=g.current;return()=>{d&&y.purge(d)}},[e,r,i,o,n,l,s,c,p,v,w,b,C]),t("div",{className:"bar-graph-container",children:t("div",{ref:g,style:{width:"100%",height:"100%"}})})},sn=({dataSeries:e,width:r=1e3,height:i=600,xRange:o,yRange:n,xTitle:a="Columns",yTitle:l="Rows",title:s="Boxplot",showPoints:c=!1})=>{const p=d(null),{yMin:g,yMax:f}=u(()=>{let t=Number.MAX_VALUE,r=Number.MIN_VALUE;e.forEach(e=>{e.y.forEach(e=>{t=Math.min(t,e),r=Math.max(r,e)})});const i=.1*(r-t);return{yMin:t-i,yMax:r+i}},[e]),m=u(()=>n||[g,f],[n,g,f]),x=u(()=>{const e=m[1]-m[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let i=Math.ceil(m[0]/t)*t;for(;i<=m[1];)r.push(i),i+=t;return r},[m]),b=u(()=>({tickcolor:on.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:on.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:on.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]),C=u(()=>({text:s,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:on.BLACK_900,lineheight:1.2,standoff:30}}),[s]);return h(()=>{if(!p.current)return;const t=e.map(e=>({y:e.y,x:e.x,type:"box",name:e.name,marker:{color:e.color},line:{color:e.color},fillcolor:e.color+"40",boxpoints:!!c&&(e.boxpoints||"outliers"),jitter:e.jitter||.3,pointpos:e.pointpos||-1.8})),s={width:r,height:i,title:C,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:on.WHITE,plot_bgcolor:on.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:a,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:on.GREY_200,range:o,autorange:!o,showgrid:!0,...b},yaxis:{title:{text:l,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:on.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:x,showgrid:!0,...b},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:on.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};y.newPlot(p.current,t,s,{responsive:!0,displayModeBar:!1,displaylogo:!1});const d=p.current;return()=>{d&&y.purge(d)}},[e,r,i,o,n,m,a,l,c,C,b,x]),t("div",{className:"boxplot-container",children:t("div",{ref:p,style:{width:"100%",height:"100%"}})})},cn=({data:r=[],width:i=900,height:o=600,positionInterval:n=10,colorA:a="#2D9CDB",colorT:l="#A1C63C",colorG:s="#FF5C64",colorC:c="#FFA62E"})=>{const p=d(null),g=u(()=>r.map(e=>e.position),[r]),f=u(()=>r.map(e=>(e=>{const t={A:e.peakA,T:e.peakT,G:e.peakG,C:e.peakC},r=Object.values(t);if(r.every(e=>e===r[0]))return"";let i="",o=0;return Object.entries(t).forEach(([e,t])=>{t>o&&(i=e,o=t)}),i})(e)),[r]),m=u(()=>r.map(e=>e.peakA),[r]),x=u(()=>r.map(e=>e.peakT),[r]),b=u(()=>r.map(e=>e.peakG),[r]),C=u(()=>r.map(e=>e.peakC),[r]),v=u(()=>({x:g,y:m,type:"scatter",mode:"lines",name:"A",line:{color:a,width:2,shape:"spline"}}),[g,m,a]),w=u(()=>({x:g,y:x,type:"scatter",mode:"lines",name:"T",line:{color:l,width:2,shape:"spline"}}),[g,x,l]),k=u(()=>({x:g,y:b,type:"scatter",mode:"lines",name:"G",line:{color:s,width:2,shape:"spline"}}),[g,b,s]),L=u(()=>({x:g,y:C,type:"scatter",mode:"lines",name:"C",line:{color:c,width:2,shape:"spline"}}),[g,C,c]),E=u(()=>Math.max(...m,...x,...b,...C),[m,x,b,C]);if(h(()=>{if(!p.current||0===r.length)return;const e=[v,w,k,L],t={width:i,height:o-75,margin:{l:0,r:0,b:20,t:10,pad:0},paper_bgcolor:"var(--white-900)",plot_bgcolor:"var(--white-900)",font:{family:"Inter, sans-serif"},showlegend:!1,xaxis:{showgrid:!1,zeroline:!1,showticklabels:!1,showline:!1,range:[Math.min(...g),Math.max(...g)],fixedrange:!0},yaxis:{showgrid:!1,zeroline:!1,showticklabels:!1,showline:!1,range:[0,1.05*E],fixedrange:!0}};y.newPlot(p.current,e,t,{responsive:!0,displayModeBar:!1,displaylogo:!1,fillFrame:!0});const n=p.current;return()=>{n&&y.purge(n)}},[r,i,o,v,w,k,L,E,g]),0===r.length)return t("div",{className:"chart-container",children:"No data available"});return e("div",{className:"chromatogram-container",style:{width:i,height:o},children:[e("div",{className:"sequence-header",children:[(()=>{const e=Math.min(...g),r=Math.max(...g),o=i;return t("div",{className:"sequence-letters-container",children:f.map((i,n)=>{const d=g[n];return t("span",{className:"sequence-letter",style:{left:(d-e)/(r-e)*o+"px",color:"A"===i?a:"T"===i?l:"G"===i?s:"C"===i?c:"var(--black-900)"},children:i},`base-${n}`)})})})(),(()=>{const e=Math.min(...g),r=Math.max(...g),o=i,a=[];for(let t=Math.ceil(e/n)*n;t<=r;t+=n)a.push({position:t,label:t.toString()});return t("div",{className:"position-numbers-container",children:a.map(i=>{const n=(i.position-e)/(r-e);return t("span",{className:"position-number",style:{left:n*o+"px"},children:i.label},`pos-${i.position}`)})})})()]}),t("div",{className:"chromatogram-chart",children:t("div",{ref:p,style:{width:"100%",height:"100%"}})})]})},dn=70,hn=30,pn=60,gn=50,un=30,fn=5,mn=11,xn=10,bn={default:{ax:0,ay:-35},overlap:[{ax:50,ay:-35},{ax:-60,ay:-35},{ax:70,ay:-55},{ax:-80,ay:-55},{ax:50,ay:-75},{ax:-60,ay:-75}]};function Cn(e,t,r){const i=-1===t,o=i?on.GREY_500:nn[t%nn.length],n=i?on.BLACK_900:o,a=e.text??(void 0===e._computed?.area?"":`Area: ${e._computed.area.toFixed(2)}`),l=i&&void 0!==e.ax?e.ax:r.ax,s=i&&void 0!==e.ay?e.ay:r.ay;return{x:e.x,y:e.y,text:a,showarrow:!0,arrowhead:2,arrowsize:1,arrowwidth:1,arrowcolor:o,ax:l,ay:s,font:{size:i?mn:xn,color:n,family:"Inter, sans-serif"},bgcolor:on.WHITE,borderpad:2,bordercolor:i?void 0:o,borderwidth:i?0:1}}function vn(e){if(1===e.length){const{peak:t,seriesIndex:r}=e[0];return[Cn(t,r,bn.default)]}return[...e].sort((e,t)=>e.peak.y-t.peak.y).map(({peak:e,seriesIndex:t},r)=>Cn(e,t,bn.overlap[r%bn.overlap.length]))}function wn(e,t,r,i){return"none"===r?[]:[{x:[e],y:[t],type:"scatter",mode:"markers",marker:{symbol:"diamond"===r?"diamond":"triangle-up",size:8,color:i},showlegend:!1,hoverinfo:"skip"}]}function yn(e,t,r){let i=e[t],o=e[t];for(let o=t-1;o>=Math.max(0,t-r);o--)i=Math.min(i,e[o]);for(let i=t+1;i<Math.min(e.length,t+r);i++)o=Math.min(o,e[i]);return e[t]-Math.max(i,o)}function kn(e,t){let r=t,i=t;for(let i=t-1;i>=0&&e[i]<=e[i+1];i--)r=i;for(let r=t+1;r<e.length&&e[r]<=e[r-1];r++)i=r;return{startIndex:r,endIndex:i}}function Ln(e,t,r,i){const o=Math.min(t[r],t[i]);let n=0;for(let a=r;a<i;a++){const r=e[a+1]-e[a];n+=(t[a]-o+(t[a+1]-o))*r/2}return n}function En(e,t,r,i,o){const n=Math.min(t[i],t[o]),a=(t[r]+n)/2;let l=r,s=r;for(let e=r;e>=i;e--)if(t[e]<a){l=e;break}for(let e=r;e<=o;e++)if(t[e]<a){s=e;break}return e[s]-e[l]}function Mn(e,t,r={}){const{minHeight:i=.05,minDistance:o=5,prominence:n=.02,relativeThreshold:a=!0}=r;if(t.length<3)return[];const l=Math.max(...t),s=a?i*l:i,c=a?n*l:n,d=3*o,h=[];for(let r=1;r<t.length-1;r++){if(!(t[r]>t[r-1]&&t[r]>t[r+1]&&t[r]>=s))continue;if(yn(t,r,d)<c)continue;const{startIndex:i,endIndex:o}=kn(t,r),n=Ln(e,t,i,o),a=En(e,t,r,i,o);h.push({x:e[r],y:t[r],_computed:{area:n,index:r,startIndex:i,endIndex:o,widthAtHalfMax:a}})}return function(e,t){const r=[];for(const i of e)r.some(e=>Math.abs((e._computed?.index??0)-(i._computed?.index??0))<t)?r.length>0&&i.y>r[r.length-1].y&&(r.pop(),r.push(i)):r.push(i);return r.sort((e,t)=>e.x-t.x)}(h,o)}function In(e,t){if(0===e.length)return 0;if(1===e.length)return 0;let r=0,i=e.length-1;for(;r<i;){const o=Math.floor((r+i)/2);e[o]<t?r=o+1:i=o}return r>0&&Math.abs(e[r-1]-t)<Math.abs(e[r]-t)?r-1:r}function _n(e,t,r=50){if("none"===t||0===e.length)return e;if("linear"===t){if(1===e.length)return[0];const t=(e[e.length-1]-e[0])/(e.length-1);return e.map((r,i)=>r-(e[0]+t*i))}if("rolling"===t){const t=[],i=Math.floor(r/2);for(let r=0;r<e.length;r++){const o=Math.max(0,r-i),n=Math.min(e.length,r+i+1),a=e.slice(o,n);t.push(Math.min(...a))}return e.map((e,r)=>e-t[r])}return e}const An=({series:e,width:r=900,height:i=500,title:o,xAxisTitle:n="Retention Time (min)",yAxisTitle:a="Signal (mAU)",annotations:l=[],xRange:s,yRange:c,showLegend:p=!0,showGridX:g=!0,showGridY:f=!0,showMarkers:m=!1,markerSize:x=4,showCrosshairs:b=!1,baselineCorrection:C="none",baselineWindowSize:v=50,peakDetectionOptions:w,showPeakAreas:k=!1,boundaryMarkers:L="none",annotationOverlapThreshold:E=.4,showExportButton:M=!0})=>{const I=void 0!==w,_=d(null),A=u(()=>e.map(e=>{const t=function(e,t){const r=Math.min(e.length,t.length),i=e.slice(0,r),o=t.slice(0,r).map(e=>Number.isFinite(e)?e:0);return{x:i.map(e=>Number.isFinite(e)?e:0),y:o}}(e.x,e.y);return{...e,x:t.x,y:_n(t.y,C,v)}}),[e,C,v]),N=u(()=>{if(0===l.length||0===A.length)return l;const{x:e,y:t}=A[0];return function(e,t,r){return e.map(e=>{if(void 0!==e.startX&&void 0!==e.endX){const i=In(t,e.startX),o=In(t,e.endX),n=In(t,e.x),a=e._computed?.area??Ln(t,r,i,o);return{...e,_computed:{...e._computed,index:n,startIndex:i,endIndex:o,area:a}}}return e})}(l,e,t)},[l,A]),$=u(()=>{const e=[];return I&&w&&A.forEach((t,r)=>{const i=Mn(t.x,t.y,w);i.length>0&&e.push({peaks:i,seriesIndex:r})}),e},[A,I,w]);return h(()=>{const t=_.current;if(!t||0===e.length)return;const l=A.map((e,t)=>{const r=e.color||nn[t%nn.length],i=function(e,t){if(!t)return e;const r=[];for(const[e,i]of Object.entries(t))if(null!=i&&""!==i){const t=e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim();r.push(`${t}: ${String(i)}`)}return r.length>0?`${e}<br>${r.join("<br>")}`:e}(e.name,e.metadata),o={x:e.x,y:e.y,type:"scatter",mode:m?"lines+markers":"lines",name:e.name,line:{color:r,width:1.5},hovertemplate:`%{x:.2f} ${n}<br>%{y:.2f} ${a}<extra>${i}</extra>`};return m&&(o.marker={size:x,color:r}),o});if("none"!==L){const e=function(e,t,r){const i=[];e.forEach(({peaks:e,seriesIndex:t})=>{i.push({peaks:e,seriesIndex:t,x:r[t].x,y:r[t].y})});const o=t.filter(e=>void 0!==e._computed?.startIndex&&void 0!==e._computed?.endIndex);return o.length>0&&r.length>0&&i.push({peaks:o,seriesIndex:0,x:r[0].x,y:r[0].y}),i}($,N,A);if(e.length>0){const t=function(e){const t=[];for(const{peaks:r,seriesIndex:i,x:o}of e){const e=nn[i%nn.length],n=-16*i-5,a=-16*i-12;for(const i of r){const r=i._computed?.startIndex??0,l=i._computed?.endIndex??0,s=o[r],c=o[l],d=i.startMarker??"triangle",h=i.endMarker??"diamond";t.push(...wn(s,n,d,e)),t.push(...wn(c,a,h,e))}}return t}(e);l.push(...t)}}const d=[];N.forEach(e=>{d.push({peak:e,seriesIndex:-1})}),k&&I&&$.forEach(({peaks:e,seriesIndex:t})=>{e.forEach(e=>{d.push({peak:e,seriesIndex:t})})});const h=function(e,t){const r=[...e].sort((e,t)=>e.peak.x-t.peak.x),i=[];let o=[];for(const e of r){if(0===o.length){o.push(e);continue}const r=o[o.length-1];Math.abs(e.peak.x-r.peak.x)<t?o.push(e):(i.push(o),o=[e])}return o.length>0&&i.push(o),i}(d,E),u=[];for(const e of h)u.push(...vn(e));const C={title:o?{text:o,font:{size:20,family:"Inter, sans-serif",color:on.BLACK_900}}:void 0,width:r,height:i,margin:{l:dn,r:hn,b:pn,t:o?gn:un,pad:fn},paper_bgcolor:on.WHITE,plot_bgcolor:on.WHITE,font:{family:"Inter, sans-serif"},hovermode:b?"x":"x unified",dragmode:"zoom",xaxis:{title:{text:n,font:{size:14,color:on.BLACK_600,family:"Inter, sans-serif"},standoff:15},showgrid:g,gridcolor:on.GREY_200,linecolor:on.BLACK_900,linewidth:1,range:s,autorange:!s,zeroline:!1,tickfont:{size:12,color:on.BLACK_900,family:"Inter, sans-serif"},showspikes:b,spikemode:"across",spikesnap:"cursor",spikecolor:on.GREY_500,spikethickness:1,spikedash:"dot"},yaxis:{title:{text:a,font:{size:14,color:on.BLACK_600,family:"Inter, sans-serif"},standoff:10},showgrid:f,gridcolor:on.GREY_200,linecolor:on.BLACK_900,linewidth:1,range:c,autorange:!c,zeroline:!1,tickfont:{size:12,color:on.BLACK_900,family:"Inter, sans-serif"},showspikes:b,spikemode:"across",spikesnap:"cursor",spikecolor:on.GREY_500,spikethickness:1,spikedash:"dot"},legend:{x:.5,y:-.15,xanchor:"center",yanchor:"top",orientation:"h",font:{size:12,color:on.BLACK_900,family:"Inter, sans-serif"}},showlegend:p&&e.length>1,annotations:u},v={responsive:!0,displayModeBar:!0,displaylogo:!1,modeBarButtonsToRemove:["lasso2d","select2d",...M?[]:["toImage"]],...M&&{toImageButtonOptions:{format:"png",filename:"chromatogram",width:r,height:i}}};return y.newPlot(t,l,C,v),()=>{t&&y.purge(t)}},[A,$,e.length,r,i,o,n,a,N,s,c,p,g,f,m,x,b,I,w,k,L,E,M]),t("div",{className:"chromatogram-chart-container",children:t("div",{ref:_,style:{width:"100%",height:"100%"}})})},Nn=({dataSeries:e,width:r=1e3,height:i=600,title:o="Dot Plot",xTitle:n="Columns",yTitle:a="Rows",variant:l="default",markerSize:s=8})=>{const c=d(null),p=u(()=>Array.isArray(e)?e:[e],[e]),g=u(()=>[on.ORANGE,on.RED,on.GREEN,on.BLUE,on.YELLOW,on.PURPLE],[]),f=u(()=>["circle","square","diamond","triangle-up","triangle-down","star"],[]),m=u(()=>p.map((e,t)=>"default"===l?{...e,color:e.color||g[0],symbol:"circle",size:e.size||s}:{...e,color:e.color||g[t%g.length],symbol:e.symbol||f[t%f.length],size:e.size||s}),[p,l,s,g,f]),x=on.GREY_200,b=u(()=>m.map(e=>({type:"scatter",x:e.x,y:e.y,mode:"markers",name:e.name,marker:{color:e.color,size:e.size,symbol:e.symbol,line:{color:on.WHITE,width:1}},hovertemplate:`${n}: %{x}<br>${a}: %{y}<extra>${e.name}</extra>`})),[m,n,a]),C=u(()=>({tickcolor:on.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:on.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:on.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]),v=u(()=>({text:o,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:on.BLACK_900,lineheight:1.2,standoff:30}}),[o]);return h(()=>{if(!c.current)return;const e={width:r,height:i,font:{family:"Inter, sans-serif"},title:v,margin:{l:80,r:40,b:80,t:80,pad:0},showlegend:!0,legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:on.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},xaxis:{title:{text:n,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:x,...C},yaxis:{title:{text:a,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:x,...C},paper_bgcolor:on.WHITE,plot_bgcolor:on.WHITE};y.newPlot(c.current,b,e,{responsive:!0,displayModeBar:!1,displaylogo:!1});const t=c.current;return()=>{t&&y.purge(t)}},[r,i,n,a,b,v,C,x]),t("div",{className:"dotplot-container",style:{width:r},children:t("div",{ref:c,style:{width:"100%",height:"100%",margin:"0"}})})},$n="96",Tn="384",Rn="1536",zn={sample:"#4575b4",control:"#d73027",empty:"#f0f0f0"},Sn={[$n]:{rows:8,columns:12},[Tn]:{rows:16,columns:24},[Rn]:{rows:32,columns:48}},Bn=[[0,"#313695"],[.1,"#4575b4"],[.2,"#74add1"],[.3,"#abd9e9"],[.4,"#e0f3f8"],[.5,"#ffffbf"],[.6,"#fee090"],[.7,"#fdae61"],[.8,"#f46d43"],[.9,"#d73027"],[1,"#a50026"]],Hn="#333",On="#000",Pn="#f0f0f0",Dn={Viridis:[[0,"#440154"],[.25,"#414487"],[.5,"#2a788e"],[.75,"#22a884"],[1,"#7ad151"]],Blues:[[0,"#f7fbff"],[.25,"#c6dbef"],[.5,"#6baed6"],[.75,"#2171b5"],[1,"#08306b"]],RdBu:[[0,"#67001f"],[.25,"#d6604d"],[.5,"#f7f7f7"],[.75,"#4393c3"],[1,"#053061"]],Greens:[[0,"#f7fcf5"],[.25,"#c7e9c0"],[.5,"#74c476"],[.75,"#238b45"],[1,"#00441b"]],Reds:[[0,"#fff5f0"],[.25,"#fcbba1"],[.5,"#fb6a4a"],[.75,"#cb181d"],[1,"#67000d"]],Greys:[[0,"#ffffff"],[.25,"#d9d9d9"],[.5,"#969696"],[.75,"#525252"],[1,"#000000"]],Hot:[[0,"#000000"],[.33,"#e60000"],[.66,"#ffff00"],[1,"#ffffff"]],YlGnBu:[[0,"#ffffd9"],[.25,"#c7e9b4"],[.5,"#41b6c4"],[.75,"#225ea8"],[1,"#081d58"]],YlOrRd:[[0,"#ffffcc"],[.25,"#fed976"],[.5,"#fd8d3c"],[.75,"#e31a1c"],[1,"#800026"]],Plasma:[[0,"#0d0887"],[.25,"#7e03a8"],[.5,"#cc4778"],[.75,"#f89540"],[1,"#f0f921"]]},Vn=5e4,Un=.01,Gn=.99,Kn=.001,Zn=.575,Wn=.425,jn=11,Fn=-.5,Yn=70,Xn=50,qn=40,Qn=80,Jn=130,ea=.15,ta=.85;function ra(e){const t=e.match(/^([A-Z]{1,2})(\d{1,2})$/i);if(!t)return null;const r=t[1].toUpperCase();return{row:1===r.length?r.charCodeAt(0)-65:r.charCodeAt(1)-65+26,col:parseInt(t[2],10)-1}}function ia(e,t,r){if(!e)return!1;const{row:i,col:o}=e;return i>=0&&o>=0&&i<t&&o<r}function oa(e,t){if(!e)return null;const r=t??Object.keys(e)[0];return r?e[r]:null}function na(e,t,r,i,o){"number"==typeof e?i[t][r]=e:"string"==typeof e&&(o[t][r]=e)}function aa(e,t){const r=function(e){const t=new Set;for(const r of e)r.values&&Object.keys(r.values).forEach(e=>t.add(e));return[...t]}(e);return r.map(r=>{const i=t?.find(e=>e.id===r),o=function(e,t){for(const r of e){const e=r.values?.[t];if("string"==typeof e)return!0}return!1}(e,r);return{id:r,name:i?.name??r,visualizationMode:i?.visualizationMode??(o?"categorical":void 0),colorScale:i?.colorScale,valueMin:i?.valueMin,valueMax:i?.valueMax,valueUnit:i?.valueUnit,categoryColors:i?.categoryColors}})}function la(e,t,r){const i=e.match(/^([A-Z]{1,2})(\d{1,2}):([A-Z]{1,2})(\d{1,2})$/i);if(!i)return null;const o=ra(`${i[1]}${i[2]}`),n=ra(`${i[3]}${i[4]}`),a=Math.min(o.row,n.row),l=Math.max(o.row,n.row),s=Math.min(o.col,n.col),c=Math.max(o.col,n.col),d=t.length,h=r.length;return a>=d||l>=d||s>=h||c>=h?null:{minRow:a,maxRow:l,minCol:s,maxCol:c}}function sa({wellId:e,value:t,allValues:r,tooltipExtra:i,activeLayerId:o,layerConfigMap:n,precision:a,valueUnit:l}){let s=`Well ${e}`;return s+=r?function(e,t,r,i){let o="";for(const[n,a]of Object.entries(e)){const e=n===t?"▶ ":"",l=r.get(n)?.valueUnit,s=l?` ${l}`:"";o+=null===a?`<br>${e}${n}: -`:"number"==typeof a?`<br>${e}${n}: ${a.toFixed(i)}${s}`:`<br>${e}${n}: ${a.charAt(0).toUpperCase()+a.slice(1)}`}return o}(r,o,n,a):null!==t?`<br>Value: ${t.toFixed(a)}${l}`:o?`<br>▶ ${o}: -`:"<br>No data",i&&(s+=function(e){let t="";for(const[r,i]of Object.entries(e))t+=`<br>${r}: ${String(i)}`;return t}(i)),s}function ca(e,t,r){const i=r?{text:r}:void 0;switch(e){case"bottom":return{orientation:"h",thickness:20,len:.75,outlinewidth:0,ticksuffix:t,y:-.15,yanchor:"top",x:.5,xanchor:"center",title:i?{...i,side:"top"}:void 0};case"top":return{orientation:"h",thickness:20,len:.75,outlinewidth:0,ticksuffix:t,y:1.15,yanchor:"bottom",x:.5,xanchor:"center",title:i?{...i,side:"bottom"}:void 0};case"left":return{thickness:28,len:1,outlinewidth:0,ticksuffix:t,y:.5,yanchor:"middle",x:-.15,xanchor:"right",title:i?{...i,side:"right"}:void 0};default:return{thickness:20,len:.9,outlinewidth:0,ticksuffix:t,x:.88,xanchor:"left",y:.5,yanchor:"middle",title:i?{...i,side:"right"}:void 0}}}function da(e,t,r){const i=r?Yn:Xn;let o;return o=t?"top"===e?Jn:100:"top"===e?Yn:qn,{l:"left"===e?i+Xn:i,r:"right"===e?Xn+Xn:Xn,b:"bottom"===e?Qn:Xn,t:o,pad:5}}function ha(e){switch(e){case"left":return Zn;case"right":return Wn;default:return.5}}function pa(e){switch(e){case"left":return[ea,1];case"right":return[0,ta];default:return[0,1]}}const ga=({data:r,layerConfigs:i,initialLayerId:o,onLayerChange:n,plateFormat:a="96",rows:l,columns:s,visualizationMode:p="heatmap",categoryColors:g,regions:f,title:m,xTitle:x,yTitle:b,xLabels:C,yLabels:v,colorScale:w=Bn,valueMin:k,valueMax:L,emptyWellColor:E=Pn,showColorBar:M=!0,showLegend:I=!0,legendConfig:_,width:A=800,height:N=500,precision:$=0,markerShape:T="circle",onWellClick:R})=>{const z=d(null),S=d(R);S.current=R;const[B,H]=c(o);let O,P;if("custom"===a)O=l??8,P=s??12;else{const e=Sn[a];O=e.rows,P=e.columns}const D=u(()=>{if(Array.isArray(r)&&r.length>0&&"wellId"in r[0]){const e=r;if(function(e){return e.some(e=>e.values&&Object.keys(e.values).length>0)}(e))return aa(e,i)}return null},[r,i]),V=u(()=>D&&0!==D.length?B?D.find(e=>e.id===B)??D[0]:D[0]:null,[D,B]),U=V?.visualizationMode??p,G=V?.colorScale??w,K=V?.valueMin??k,Z=V?.valueMax??L,W=V?.valueUnit?` ${V.valueUnit}`:"",j=u(()=>({...zn,...g,...V?.categoryColors}),[g,V?.categoryColors]),F=V?.id,{grid:Y,categoriesGrid:X,allValuesMap:q,tooltipDataMap:Q}=u(()=>{let e,t=Array.from({length:O},()=>Array(P).fill(null)),i=new Map,o=new Map;if(Array.isArray(r)&&r.length>0){const n=function(e,t,r,i){const o=Array.from({length:t},()=>Array(r).fill(null)),n=Array.from({length:t},()=>Array(r).fill(null)),a=new Map,l=new Map;for(const s of e){const e=ra(s.wellId);if(!ia(e,t,r))continue;const c=s.wellId.toUpperCase();s.values&&a.set(c,s.values),s.tooltipData&&l.set(c,s.tooltipData),na(oa(s.values,i),e.row,e.col,o,n)}return{grid:o,categories:n,allValues:a,tooltipData:l}}(r,O,P,F);e=n.grid,t=n.categories,i=n.allValues,o=n.tooltipData}else e=Array.from({length:O},()=>Array.from({length:P},()=>Math.random()*Vn));return{grid:e,categoriesGrid:t,allValuesMap:i,tooltipDataMap:o}},[r,O,P,F]),J=v??(ee=O,Array.from({length:ee},(e,t)=>t<26?String.fromCharCode(65+t):"A"+String.fromCharCode(t-26+65)));var ee;const te=C??function(e){return Array.from({length:e},(e,t)=>t+1)}(P),re=function(e){let t=1/0,r=-1/0;for(const i of e)for(const e of i)null!==e&&Number.isFinite(e)&&(t=Math.min(t,e),r=Math.max(r,e));return Number.isFinite(t)||(t=0),Number.isFinite(r)||(r=1),t===r&&(r=t+1),{min:t,max:r}}(Y),ie=K??re.min,oe=Z??re.max,ne=Y.some(e=>e.includes(null)),ae=ie-(oe-ie)*Un-1,le=ne?Y.map(e=>e.map(e=>null===e?ae:e)):Y,se=u(()=>{if(!ne)return G;let e;if("string"==typeof G){const t=Dn[G];if(!t)return G;e=t}else e=G;const t=(ie-ae)/(oe-ae),r=[[0,E],[t*Gn,E]];for(const[i,o]of e){const e=t+i*(1-t);r.push([e,o])}return r},[G,ne,ie,oe,ae,E]),ce=ne?ae:ie,de=u(()=>{const e=new Map;if(D)for(const t of D)e.set(t.id,t);return e},[D]),he=Y.map((e,t)=>e.map((e,r)=>{const i=`${J[t]}${te[r]}`,o=String(i).toUpperCase();return sa({wellId:i,value:e,allValues:q.get(o),tooltipExtra:Q.get(o),activeLayerId:V?.id,layerConfigMap:de,precision:$,valueUnit:W})})),{categoricalGrid:pe,categoricalColorScale:ge,uniqueTypes:ue,catMax:fe}=u(()=>{if("categorical"!==U)return{categoricalGrid:null,categoricalColorScale:null,uniqueTypes:[],catMax:0};const e=new Set;let t=!1;for(const r of X)for(const i of r)i?e.add(i):t=!0;t&&e.add("empty");const r=[...e].sort(),i=new Map;r.forEach((e,t)=>i.set(e,t));const o=X.map(e=>e.map(e=>null===e?i.get("empty")??0:i.get(e)??i.get("empty")??0)),n=r.length,a=[];if(1===n){const e=j[r[0]]||E;a.push([0,e]),a.push([1,e])}else r.forEach((e,t)=>{const r=j[e]||E,i=t/(n-1),o=.5/(n-1),l=Math.max(0,i-o),s=Math.min(1,i+o-Kn);a.push([l,r]),a.push([s,r])});return{categoricalGrid:o,categoricalColorScale:a,uniqueTypes:r,catMax:n-1}},[U,X,j,E]),me=u(()=>{if(!f||0===f.length)return[];const e=[];for(const t of f){const r=la(t.wells,J,te);if(!r)continue;const i=.49,o=r.minCol+1-i,n=r.maxCol+1+i,a=r.minRow-i,l=r.maxRow+i;e.push({type:"rect",xref:"x",yref:"y",x0:o,x1:n,y0:a,y1:l,line:{color:t.borderColor||Hn,width:t.borderWidth??2},fillcolor:t.fillColor||"transparent",layer:"above"})}return e},[f,J,te]);h(()=>{const e=z.current;if(!e)return;const t="categorical"===U,r=t&&pe?pe:le,i=t&&ge?ge:se,o=t?0:ce,n=t?fe||1:oe,a=!t&&M,{xData:l,yData:s,colorData:c,textData:d}=function(e,t,r,i,o,n){const a=[],l=[],s=[],c=[];for(let d=0;d<i;d++)for(let i=0;i<o;i++){a.push(i+1),l.push(t[d]);const o=e[d][i];s.push(o??n),c.push(r[d][i])}return{xData:a,yData:l,colorData:s,textData:c}}(r,J,he,O,P,o),h=function(e,t,r,i,o,n,a){const l=(e-(a?Yn:Xn)-100)/i,s=(t-(n?100:qn)-Xn)/r,c="square"===o?Math.max(l,s):Math.min(l,s),d="square"===o?1:.8;return Math.max(4,c*d)}(A,N,O,P,T,!!m,!!b),p=[{x:l,y:s,mode:"markers",type:"scatter",marker:{symbol:T,size:h,color:c,colorscale:i,cmin:o,cmax:n,showscale:a,colorbar:ca(_?.position??"right",W,_?.title),line:{color:"var(--grey-400)",width:1}},hoverinfo:"text",text:d}],g=_?.position??"right",u={autosize:!1,title:m?{text:m,font:{family:"Inter, sans-serif",size:20,color:"var(--black-300)"},x:ha(g),xanchor:"center",y:.98,yanchor:"top"}:void 0,width:A,height:N,margin:da(g,!!m,!!b),xaxis:{title:{text:x||"",font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},side:"top",fixedrange:!0,dtick:1,range:[.5,P+.5],automargin:!1,tickmode:"array",tickvals:Array.from({length:P},(e,t)=>t+1),ticktext:te.map(String),tickangle:0,tickfont:{size:P>24?8:jn},domain:pa(g)},yaxis:{title:{text:b||"",font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},fixedrange:!0,dtick:1,range:[O+Fn,Fn],automargin:!1,tickmode:"array",tickvals:Array.from({length:O},(e,t)=>t),ticktext:J.map(String),tickfont:{size:O>16?8:jn}},paper_bgcolor:"var(--white-900)",plot_bgcolor:"var(--white-900)",font:{family:"Inter, sans-serif",color:"var(--grey-600)"},shapes:me};return y.newPlot(e,p,u,{responsive:!0,displayModeBar:!1,displaylogo:!1}),e.on("plotly_click",e=>{if(!S.current)return;const t=e.points[0];if(t){const e=J,r=te,i=e.indexOf(t.y),o=r.indexOf(t.x);if(i>=0&&o>=0){const t=`${e[i]}${r[o]}`,n=String(t).toUpperCase(),a={wellId:t,values:q.get(n),tooltipData:Q.get(n)};S.current?.(a)}}}),()=>{e&&y.purge(e)}},[le,te,J,se,M,ce,oe,W,m,x,b,A,N,he,$,Q,q,Y,U,pe,ge,ue.length,fe,me,O,P,_,T]);const xe=_?.position??"right",be=_?.fontSize??12,Ce=_?.itemSpacing??4,ve=_?.swatchSize??16,we=_?.title,ye="top"===xe||"bottom"===xe,ke=t("div",{ref:z,className:"platemap-plot",style:{width:A,height:N}}),Le=(()=>{const r="categorical"===U&&ue.length>0,i=f&&f.length>0;if(!I||!r&&!i)return ye?null:t("div",{className:"platemap-legend-placeholder",style:{width:120}});const o=["platemap-legend"];ye?o.push("platemap-legend--horizontal"):"left"===xe?o.push("platemap-legend--left"):"right"===xe&&o.push("platemap-legend--right");const n={gap:`${Ce}px`,width:ye?void 0:120};return e("div",{className:o.join(" "),style:n,children:[we&&t("div",{className:"platemap-legend__title"+(ye?" platemap-legend__title--horizontal":""),style:{fontSize:`${be}px`},children:we}),r&&ue.map(r=>e("div",{className:"platemap-legend__item",children:[t("div",{className:"platemap-legend__swatch",style:{width:`${ve}px`,height:`${ve}px`,backgroundColor:j[r]||E}}),t("span",{className:"platemap-legend__label platemap-legend__label--capitalize",style:{fontSize:`${be}px`},children:r})]},r)),i&&f.map(r=>e("div",{className:"platemap-legend__item",children:[t("div",{className:"platemap-legend__swatch platemap-legend__swatch--region",style:{width:`${ve}px`,height:`${ve}px`,backgroundColor:r.fillColor||"transparent",border:`${r.borderWidth||2}px solid ${r.borderColor||On}`}}),t("span",{className:"platemap-legend__label",style:{fontSize:`${be}px`},children:r.name})]},r.id))]})})();return e("div",{className:"platemap-container",style:{width:ye?void 0:A},children:[!D||D.length<=1?null:t("div",{className:"platemap-layer-selector",children:D.map(e=>{const r=V?.id===e.id;return t("button",{type:"button",className:"platemap-layer-selector__button"+(r?" platemap-layer-selector__button--active":""),onClick:()=>{H(e.id),n?.(e.id)},children:e.name},e.id)})}),(()=>{switch(xe){case"left":return e("div",{className:"platemap-plot-wrapper platemap-plot-wrapper--vertical",children:[Le,ke]});case"top":return e("div",{className:"platemap-plot-wrapper platemap-plot-wrapper--horizontal",children:[Le,ke]});case"bottom":return e("div",{className:"platemap-plot-wrapper platemap-plot-wrapper--horizontal",children:[ke,Le]});default:return e("div",{className:"platemap-plot-wrapper platemap-plot-wrapper--vertical",children:[ke,Le]})}})()]})};const ua=({data:e,xLabels:r,yLabels:i,title:o,xTitle:n,yTitle:a,colorscale:l,width:s=800,height:c=600,showScale:d=!0,precision:h=0,zmin:p,zmax:g,valueUnit:f=""})=>{const m=e?function(e){if(!e||0===e.length)return[];const t=Math.max(...e.map(e=>e.length));return e.map(e=>{if(e.length===t)return e;const r=[...e];for(;r.length<t;)r.push(0);return r})}(e):void 0,x=m?.length??i?.length??16,b=m?.[0]?.length??r?.length??24,C=u(()=>{if(!m)return;const e=[];for(let t=0;t<m.length;t++)for(let o=0;o<m[t].length;o++){const n=`${i?.[t]?.toString()??"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[t]??`R${t+1}`}${r?.[o]?.toString()??String(o+1)}`;e.push({wellId:n,values:{Value:m[t][o]}})}return e},[m,r,i]);return t(ga,{data:C,plateFormat:"custom",rows:x,columns:b,title:o,xTitle:n,yTitle:a,xLabels:r,yLabels:i,colorScale:l,valueMin:p,valueMax:g,showColorBar:d,width:s,height:c,layerConfigs:[{id:"Value",valueUnit:f}],precision:h})},fa=({dataSeries:r,width:i=480,height:o=480,title:n="Histogram",xTitle:a="X Axis",yTitle:l="Frequency",bargap:c=.2,showDistributionLine:p=!1})=>{const g=d(null),f=u(()=>Array.isArray(r)?r:[r],[r]),m=u(()=>f.length>1?"stack":void 0,[f.length]),x=u(()=>[on.ORANGE,on.RED,on.BLUE,on.GREEN,on.PURPLE,on.YELLOW],[]),b=u(()=>f.map((e,t)=>{const r=void 0===e.showDistributionLine?p:e.showDistributionLine;return{...e,color:e.color||x[t%x.length],opacity:r?.5:e.opacity||1,showDistributionLine:r,lineWidth:e.lineWidth||3}}),[f,p,x]),C=on.GREY_200,v=u(()=>b.map(e=>({type:"histogram",x:e.x,name:e.name,marker:{color:e.color,line:{color:on.WHITE,width:1},opacity:e.opacity},autobinx:e.autobinx,xbins:e.xbins,hovertemplate:`${a}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),[b,a,l]),w=u(()=>b.filter(e=>e.showDistributionLine).map(e=>{const t=(r=e.x).reduce((e,t)=>e+t,0)/r.length;var r;const i=((e,t)=>{const r=e.map(e=>Math.pow(e-t,2)).reduce((e,t)=>e+t,0)/e.length;return Math.sqrt(r)})(e.x,t),o=Math.min(...e.x),n=Math.max(...e.x),a=n-o,l=o-.1*a,s=n+.1*a,c=e.xbins||{start:l,end:s,size:a/10},d=((e,t,r,i,o=100)=>{const n=[],a=[],l=(i-r)/(o-1);for(let i=0;i<o;i++){const o=r+i*l;n.push(o);const s=-.5*Math.pow((o-e)/t,2),c=1/(t*Math.sqrt(2*Math.PI))*Math.exp(s);a.push(c)}return{x:n,y:a}})(t,i,l,s,100),h=((e,t,r)=>{const i=Math.ceil((r.end-r.start)/r.size),o=Array(i).fill(0);t.forEach(e=>{if(e>=r.start&&e<=r.end){const t=Math.floor((e-r.start)/r.size);o[t]++}});const n=Math.max(...o)/Math.max(...e);return e.map(e=>e*n)})(d.y,e.x,c);return{type:"scatter",x:d.x,y:h,mode:"lines",name:`${e.name} Distribution`,line:{color:e.color,width:e.lineWidth},hoverinfo:"none"}}),[b]),k=u(()=>[...v,...w],[v,w]);h(()=>{if(!g.current)return;const e={width:i,height:o,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:90,r:40,b:80,t:40},xaxis:{title:{text:a,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:C,tickcolor:on.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:on.BLACK_900,linewidth:1,zeroline:!1},yaxis:{title:{text:l,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:C,tickcolor:on.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:on.BLACK_900,linewidth:1,zeroline:!1,rangemode:"tozero"},barmode:m,bargap:c,paper_bgcolor:on.WHITE,plot_bgcolor:on.WHITE};y.newPlot(g.current,k,e,{responsive:!0,displayModeBar:!1,displaylogo:!1});const t=g.current;return()=>{t&&y.purge(t)}},[i,o,a,l,c,k,m,C]);return t("div",{className:"histogram-container",style:{width:i},children:e("div",{className:"chart-container",children:[n&&t("div",{className:"title-container",children:t("h2",{className:"title",children:n})}),t("div",{ref:g,style:{width:"100%",height:"100%",margin:"0"}}),t(({series:r})=>{const i=r.map((i,o)=>t(s.Fragment,{children:e("div",{className:"legend-item",children:[t("span",{className:"color-box",style:{background:i.color}}),i.name,o<r.length-1&&t("span",{className:"divider"})]})},i.name)),o=[];for(let e=0;e<i.length;e+=6)o.push(t("div",{className:"legend-row",children:i.slice(e,e+6)},e));return t("div",{className:"legend-container",children:o})},{series:b})]})})},ma=[[0,"#313695"],[.25,"#4575b4"],[.5,"#ffffbf"],[.75,"#fdae61"],[1,"#a50026"]],xa=["#4575b4","#d73027","#1a9850","#fdae61","#9467bd","#e377c2","#8c564b","#bcbd22","#17becf","#ff7f0e"],ba=8,Ca=[4,20],va=5e3,wa={MARGIN_LEFT:80,MARGIN_RIGHT:30,MARGIN_TOP:80,MARGIN_BOTTOM:80,TITLE_FONT_SIZE:20,AXIS_TITLE_FONT_SIZE:16,AXIS_TICK_FONT_SIZE:12,LEGEND_FONT_SIZE:12,FONT_FAMILY:"Inter, sans-serif",GRID_WIDTH:1,AXIS_LINE_WIDTH:1,AUTO_RANGE_PADDING:.1},ya={ADD:"shiftKey",REMOVE:"ctrlKey",TOGGLE:"both"};function ka(e,t){let r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;for(const o of e){const e=o.metadata?.[t];"number"==typeof e&&Number.isFinite(e)&&(r=Math.min(r,e),i=Math.max(i,e))}return Number.isFinite(r)&&Number.isFinite(i)?r===i?{min:r-1,max:i+1}:{min:r,max:i}:{min:0,max:1}}function La(e,t){const r=e.map(e=>e.metadata?.[t]).filter(e=>"string"==typeof e);return[...new Set(r)].sort()}function Ea(e,t){if(!t.enabled||e.length<=(t.maxPoints||va))return e;const r=t.maxPoints||va;return"lttb"===(t.strategy||"lttb")?function(e,t){const r=e.length;if(t<=0||0===r)return[];if(t>=r)return e;if(1===t)return[e[0]];if(2===t)return[e[0],e[r-1]];const i=(r-2)/(t-2),{floor:o,abs:n,min:a}=Math,l=[e[0]];let s=0;for(let c=0;c<t-2;c++){const t=a(o((c+1)*i)+1,r-1),d=a(o((c+2)*i)+1,r),{x:h,y:p}=Ma(e,t,d,r),g=a(o(c*i)+1,r-1),u=a(o((c+1)*i)+1,r-1),f=e[s].x,m=e[s].y;let x=-1,b=e[g],C=g;for(let t=g;t<u;t++){const r=.5*n((f-h)*(e[t].y-m)-(f-e[t].x)*(p-m));r>x&&(x=r,b=e[t],C=t)}l.push(b),s=C}return l.push(e[r-1]),l}(e,r):e}function Ma(e,t,r,i){const o=r-t;if(o>0){let i=0,n=0;for(let o=t;o<r;o++)i+=e[o].x,n+=e[o].y;return{x:i/o,y:n/o}}const n=Math.max(0,Math.min(t,i-1));return{x:e[n].x,y:e[n].y}}function Ia(e,t,r=.1,i="linear"){const o="log"===i;let n=1/0,a=-1/0;for(const r of e){const e=r[t];if(!Number.isFinite(e))continue;if(o&&e<=0)continue;const i=o?Math.log10(e):e;i<n&&(n=i),i>a&&(a=i)}if(!Number.isFinite(n))return[0,1];if(n===a)return[n-1,a+1];const l=a-n;return[n-l*r,a+l*r]}const _a=({data:e,title:r,xAxis:i={},yAxis:o={},colorMapping:n,shapeMapping:a,sizeMapping:l,tooltip:s={enabled:!0},enableClickSelection:p=!0,enableBoxSelection:g=!0,enableLassoSelection:f=!0,selectedIds:m,onSelectionChange:x,onPointClick:b,downsampling:C,width:v=800,height:w=600,showColorBar:k=!0,className:L})=>{const E=d(null),M=d(x),I=d(b),_=d(new Set),A=d(!1);M.current=x,I.current=b;const[N,$]=c(new Set),T=void 0!==m,R=T?m:N;_.current=R,A.current=T;const z=u(()=>new Set([...R].map(String)),[R]),S=u(()=>new Map(e.map(e=>[String(e.id),e.id])),[e]),B=u(()=>C?Ea(e,C):e,[e,C]),H=u(()=>function(e,t){if(!t||"static"===t.type){const r=t?.value||"#4575b4";return new Array(e.length).fill(r)}if("categorical"===t.type&&t.field){const r=La(e,t.field),i=t.categoryColors||{},o={};return r.forEach((e,t)=>{o[e]=i[e]||xa[t%xa.length]}),e.map(e=>{const r=e.metadata?.[t.field];return o[String(r)]||xa[0]})}return new Array(e.length).fill("#4575b4")}(B,n),[B,n]),O=u(()=>function(e,t){if(!t||"static"===t.type){const r=t?.value||"circle";return new Array(e.length).fill(r)}if("categorical"===t.type&&t.field){const r=La(e,t.field),i=t.categoryShapes||{},o=["circle","square","diamond","cross","x","triangle-up","triangle-down","star"],n={};return r.forEach((e,t)=>{n[e]=i[e]||o[t%o.length]}),e.map(e=>{const r=e.metadata?.[t.field];return n[String(r)]||"circle"})}return new Array(e.length).fill("circle")}(B,a),[B,a]),P=u(()=>function(e,t){if(!t||"static"===t.type){const r=t?.value||8;return new Array(e.length).fill(r)}if("categorical"===t.type&&t.field){const r=La(e,t.field),i=t.categorySizes||{},o={};return r.forEach((e,t)=>{o[e]=i[e]||8+2*t}),e.map(e=>{const r=e.metadata?.[t.field];return o[String(r)]||8})}if("continuous"===t.type&&t.field){const r=void 0!==t.min&&void 0!==t.max?{min:t.min,max:t.max}:ka(e,t.field),i=t.sizeRange||Ca,[o,n]=i;return e.map(e=>{const i=e.metadata?.[t.field];if("number"==typeof i&&Number.isFinite(i)){const e=(i-r.min)/(r.max-r.min);return o+e*(n-o)}return 8})}return new Array(e.length).fill(8)}(B,l),[B,l]),D=u(()=>i.range?i.range:!1!==i.autoRange?Ia(B,"x",i.autoRangePadding??wa.AUTO_RANGE_PADDING,i.scale):void 0,[B,i]),V=u(()=>o.range?o.range:!1!==o.autoRange?Ia(B,"y",o.autoRangePadding??wa.AUTO_RANGE_PADDING,o.scale):void 0,[B,o]),U=!1!==s.enabled,G=u(()=>U?B.map(e=>s.content?s.content(e):function(e,t){const r=[];if(r.push(`X: ${e.x.toFixed(2)}`),r.push(`Y: ${e.y.toFixed(2)}`),e.label&&r.push(`Label: ${e.label}`),t&&e.metadata){for(const i of t)if(i in e.metadata){const t=e.metadata[i];r.push(`${i}: ${t}`)}}else if(e.metadata&&!t)for(const[t,i]of Object.entries(e.metadata))r.push(`${t}: ${i}`);return r.join("<br>")}(e,s.fields)):[],[B,s,U]),K=u(()=>"continuous"===n?.type&&n.field&&B.length>0?B.map(e=>{const t=e.metadata?.[n.field];return"number"==typeof t&&Number.isFinite(t)?t:0}):H,[B,n,H]),Z=u(()=>{if("continuous"===n?.type){const e=n.colorScale||ma;return e}},[n]),W=u(()=>{const e={size:P,symbol:O,line:{color:"#ffffff",width:1}};if("continuous"===n?.type&&Z){if(e.color=K,e.colorscale=Z,e.showscale=k,n.field){const t=void 0!==n.min&&void 0!==n.max?{min:n.min,max:n.max}:ka(B,n.field);e.cmin=t.min,e.cmax=t.max,e.colorbar={title:{text:n.field,side:"right"},thickness:20,len:.7}}}else e.color=H;return e},[P,O,n,Z,K,k,B,H]);h(()=>{const e=E.current;if(!e||0===B.length)return;const t=[{x:B.map(e=>e.x),y:B.map(e=>e.y),ids:B.map(e=>String(e.id)),mode:"markers",type:"scatter",marker:W,hoverinfo:U?"text":"skip",text:G,hovertemplate:U?"%{text}<extra></extra>":void 0,showlegend:!1,unselected:{marker:{opacity:.3}},selected:{marker:{opacity:1,line:{color:"#d73027",width:2}}}}],n=(({title:e,xAxis:t,yAxis:r,width:i,height:o,xRange:n,yRange:a,enableLassoSelection:l,enableBoxSelection:s})=>({autosize:!1,width:i,height:o,title:e?{text:e,font:{family:wa.FONT_FAMILY,size:wa.TITLE_FONT_SIZE,color:"#333333"},x:.5,xanchor:"center"}:void 0,margin:{l:wa.MARGIN_LEFT,r:wa.MARGIN_RIGHT,t:e?wa.MARGIN_TOP:wa.MARGIN_TOP-wa.TITLE_FONT_SIZE,b:wa.MARGIN_BOTTOM},xaxis:{title:{text:t.title||"",font:{family:wa.FONT_FAMILY,size:wa.AXIS_TITLE_FONT_SIZE,color:"#333333"}},type:"log"===t.scale?"log":"linear",range:n,autorange:!n,gridcolor:"#e0e0e0",linecolor:"#333333",linewidth:wa.AXIS_LINE_WIDTH,tickfont:{family:wa.FONT_FAMILY,size:wa.AXIS_TICK_FONT_SIZE},zeroline:!1},yaxis:{title:{text:r.title||"",font:{family:wa.FONT_FAMILY,size:wa.AXIS_TITLE_FONT_SIZE,color:"#333333"}},type:"log"===r.scale?"log":"linear",range:a,autorange:!a,gridcolor:"#e0e0e0",linecolor:"#333333",linewidth:wa.AXIS_LINE_WIDTH,tickfont:{family:wa.FONT_FAMILY,size:wa.AXIS_TICK_FONT_SIZE},zeroline:!1},paper_bgcolor:"#ffffff",plot_bgcolor:"#ffffff",font:{family:wa.FONT_FAMILY,color:"#333333"},hovermode:"closest",dragmode:l?"lasso":!!s&&"select"}))({title:r,xAxis:i,yAxis:o,width:v,height:w,xRange:D,yRange:V,enableLassoSelection:f,enableBoxSelection:g}),a={responsive:!0,displayModeBar:!0,displaylogo:!1,modeBarButtonsToAdd:[],modeBarButtonsToRemove:["toImage"]};g&&a.modeBarButtonsToAdd?.push("select2d"),f&&a.modeBarButtonsToAdd?.push("lasso2d"),y.newPlot(e,t,n,a);const l=e;return p&&l.on("plotly_click",e=>{const t=e.points[0];if(t&&t.data.ids){const r=t.data.ids[t.pointIndex],i=B.find(e=>String(e.id)===r);if(i){I.current?.(i,e.event);const t=function(e){const t=e.ctrlKey||e.metaKey;return e.shiftKey&&t?"toggle":e.shiftKey?"add":t?"remove":"replace"}(e.event),r=function(e,t,r){const i=new Set(e);switch(r){case"replace":return new Set(t);case"add":for(const e of t)i.add(e);return i;case"remove":for(const e of t)i.delete(e);return i;case"toggle":for(const e of t)i.has(e)?i.delete(e):i.add(e);return i;default:return i}}(_.current,new Set([i.id]),t);A.current||$(r),M.current?.(r,t)}}}),(g||f)&&(l.on("plotly_selected",e=>{if(e&&e.points){const t=e.points.map(e=>{if(e.data.ids&&void 0!==e.pointIndex){const t=e.data.ids[e.pointIndex];return S.get(t)??t}return null}).filter(e=>null!==e),r="replace",i=new Set(t);A.current||$(i),M.current?.(i,r)}}),l.on("plotly_deselect",()=>{const e=new Set;A.current||$(e),M.current?.(e,"replace")})),()=>{e&&y.purge(e)}},[B,W,i,o,D,V,r,v,w,s,G,p,g,f,S,U]),h(()=>{const e=E.current;if(!e||0===B.length)return;const t=e,r=B.map((e,t)=>z.has(String(e.id))?t:null).filter(e=>null!==e);r.length>0?y.restyle(t,{selectedpoints:[r]},[0]):y.restyle(t,{selectedpoints:[null]},[0])},[z,B]);return t("div",{className:L?`interactive-scatter ${L}`:"interactive-scatter",children:t("div",{ref:E,className:"interactive-scatter__plot",style:{width:v,height:w}})})},Aa=({dataSeries:e,width:r=1e3,height:i=600,xRange:o,yRange:n,variant:a="lines",xTitle:l="Columns",yTitle:s="Rows",title:c="Line Graph"})=>{const p=d(null),{yMin:g,yMax:f}=u(()=>{let t=Number.MAX_VALUE,r=Number.MIN_VALUE,i=Number.MAX_VALUE,o=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{t=Math.min(t,e),r=Math.max(r,e)}),e.y.forEach(e=>{i=Math.min(i,e),o=Math.max(o,e)})});const n=.1*(r-t),a=.1*(o-i);return{xMin:t-n,xMax:r+n,yMin:i-a,yMax:o+a}},[e]),m=u(()=>n||[g,f],[n,g,f]),x=u(()=>{const e=m[1]-m[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let i=Math.ceil(m[0]/t)*t;for(;i<=m[1];)r.push(i),i+=t;return r},[m]),b=u(()=>[...new Set(e.flatMap(e=>e.x))],[e]),C=u(()=>{switch(a){case"lines+markers":case"lines+markers+error_bars":return"lines+markers";default:return"lines"}},[a]),v=u(()=>({tickcolor:on.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:on.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:on.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]);return h(()=>{if(!p.current)return;const t=e.map(e=>({x:e.x,y:e.y,type:"scatter",mode:C,name:e.name,line:{color:e.color,width:1.5},marker:"lines"===a?{opacity:0}:{color:e.color,size:8,symbol:e.symbol||"triangle-up"},error_y:"lines+markers+error_bars"===a?e.error_y||{type:"data",array:e.y.map(()=>10),visible:!0,color:e.color,thickness:1,width:5}:void 0})),d={title:{text:c,font:{size:32,family:"Inter, sans-serif",color:on.BLACK_900}},width:r,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:on.WHITE,plot_bgcolor:on.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:on.GREY_200,range:o,autorange:!o,tickmode:"array",tickvals:b,ticktext:b.map(String),showgrid:!0,...v},yaxis:{title:{text:s,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:on.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:x,showgrid:!0,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:on.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0};y.newPlot(p.current,t,d,{responsive:!0,displayModeBar:!1,displaylogo:!1});const h=p.current;return()=>{h&&y.purge(h)}},[e,r,i,o,n,l,s,c,C,v,b,x,m,a]),t("div",{className:"chart-container",children:t("div",{ref:p,style:{width:"100%",height:"100%"}})})},Na=i.div`
1889
1905
  display: flex;
1890
1906
  flex-direction: column;
1891
1907
  width: 100vw;
1892
1908
  height: 100vh;
1893
- `,tn=i.div`
1909
+ `,$a=i.div`
1894
1910
  display: flex;
1895
1911
  flex: 1;
1896
1912
  overflow: hidden;
1897
- `,on=i.div`
1913
+ `,Ta=i.div`
1898
1914
  display: flex;
1899
1915
  flex-direction: column;
1900
1916
  flex: 1;
1901
1917
  overflow: hidden;
1902
- `,nn=i.div`
1918
+ `,Ra=i.div`
1903
1919
  display: flex;
1904
1920
  flex-direction: column;
1905
1921
  background-color: var(--white-900);
1906
1922
  flex: 1;
1907
1923
  overflow: hidden;
1908
- `,ln=i.div`
1924
+ `,za=i.div`
1909
1925
  border-bottom: 1px solid var(--grey-200);
1910
1926
  display: flex;
1911
1927
  flex-direction: column;
1912
1928
  flex: 1;
1913
1929
  overflow: hidden;
1914
- `,an=i.div`
1930
+ `,Sa=i.div`
1915
1931
  display: flex;
1916
1932
  justify-content: space-between;
1917
1933
  align-items: center;
1918
1934
  padding: 24px 0;
1919
1935
  background-color: var(--white-900);
1920
- `,sn=i.h2`
1936
+ `,Ba=i.h2`
1921
1937
  font-family: "Inter", sans-serif;
1922
1938
  font-size: 20px;
1923
1939
  font-weight: 500;
1924
1940
  color: var(--black-900);
1925
1941
  margin: 0;
1926
- `,dn=i.div`
1942
+ `,Ha=i.div`
1927
1943
  display: flex;
1928
1944
  gap: 8px;
1929
- `,cn=i(N)`
1945
+ `,Oa=i(N)`
1930
1946
  border-radius: 4px;
1931
1947
  width: 32px;
1932
1948
  height: 32px;
1933
- `,hn=i.div`
1949
+ `,Pa=i.div`
1934
1950
  width: 360px;
1935
1951
  height: 100%;
1936
1952
  display: flex;
@@ -1938,46 +1954,48 @@ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import i,{css as
1938
1954
  padding: 16px 24px;
1939
1955
  overflow: hidden;
1940
1956
  max-height: 100%;
1941
- `,pn=i.div`
1957
+ `,Da=i.div`
1942
1958
  flex: 1;
1943
1959
  height: 100%;
1944
1960
  background-color: var(--grey-100);
1945
1961
  display: flex;
1946
1962
  flex-direction: column;
1947
- `,gn=i.div`
1963
+ `,Va=i.div`
1948
1964
  padding: 16px 24px 0 24px;
1949
- `,fn=i.div`
1965
+ `,Ua=i.div`
1950
1966
  display: flex;
1951
1967
  flex-direction: column;
1952
1968
  overflow-y: auto;
1953
1969
  flex: 1;
1954
1970
  margin-top: 8px;
1955
1971
  max-height: calc(100vh - 240px);
1956
- `,un=i.div`
1972
+ `,Ga=i.div`
1957
1973
  display: flex;
1958
1974
  flex-direction: column;
1959
1975
  justify-content: center;
1960
1976
  align-items: center;
1961
1977
  gap: 16px;
1962
- `,Cn=i.div`
1978
+ `,Ka=i.div`
1963
1979
  color: var(--grey-400);
1964
1980
  font-size: 14px;
1965
1981
  font-weight: 500;
1966
- `,xn=i.div`
1982
+ `,Za=i.div`
1967
1983
  cursor: pointer;
1968
1984
 
1969
1985
  &:last-child {
1970
1986
  border-bottom: none;
1971
1987
  }
1972
- `,mn=i(gi)``,bn=i.div`
1988
+ `,Wa=i(Ei)``,ja=i.div`
1973
1989
  padding: 24px;
1974
1990
  margin-top: -1px;
1975
1991
  flex: 1;
1976
1992
  border-top: 1px solid var(--grey-200);
1977
- `,vn=i.div`
1993
+ `,Fa=i.div`
1978
1994
  height: 100%;
1979
1995
  border: 1px solid var(--grey-200);
1980
1996
  border-radius: 8px;
1981
1997
  overflow: hidden;
1982
- `,wn=({userProfile:i,hostname:o,organization:n})=>{const l=[{icon:Me.SEARCH_DOCUMENT,label:"Search"},{icon:Me.SEARCH_SQL,label:"SQL Search"},{icon:Me.LAMP,label:"Projects"},{icon:Me.PIPELINE,label:"Pipelines"},{icon:Me.COMPUTER,label:"Data & AI Workspace"},{icon:Me.CUBE,label:"Artifacts"},{icon:Me.DATABASE,label:"Data Sources"},{icon:Me.PIE_CHART,label:"Health Monitoring"},{icon:Me.BULK_CHECK,label:"Bulk Actions"},{icon:Me.CODE,label:"Attribute Management"},{icon:Me.GEAR,label:"Administration"}],[a,s]=c("Pipelines"),[d,h]=c("templates"),[p,g]=c("pipelineBuilder"),[f,u]=c("1"),C=[{id:"1",title:"Tecan D300e and PerkinElmer EnVision to Dotmatics (v1)",description:"c901ejs",buttonText:"",linkText:""},{id:"2",title:"Bruker D8 Andvanced CRD Raw to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"3",title:"Extract and Decorate(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"4",title:"Intellict (Que3 Raw to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"5",title:"Leica Aperio RAW to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"6",title:"IDS to Benchling(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"7",title:"Lorem Ipsum",description:"c901ejs",buttonText:"",linkText:""}],x=[],m=e=>{u(e===f?null:e)},b=e=>{console.log(`Using template: ${e}`)},v=e=>{console.log(`Viewing template: ${e}`)};return e(rn,{children:[r(ji,{organization:n}),e(tn,{children:[r(ko,{items:l,activeItem:a,onItemClick:e=>{s(e)}}),e(on,{children:[r(Zt,{hostname:o,userProfile:i,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),r(nn,{children:r(ln,{children:e("div",{style:{display:"flex",height:"100%"},children:[e(hn,{children:[r($o,{tabs:[{id:"templates",label:"Templates"},{id:"protocol",label:"Protocol"},{id:"steps",label:"Steps"}],activeTab:d,onChange:e=>{h(e)}}),"templates"===d&&e(t,{children:[e(an,{children:[r(sn,{children:"Templates"}),e(dn,{children:[r(cn,{variant:"tertiary",size:"small","aria-label":"Delete",noPadding:!0,children:r(Ae,{name:Me.TRASH,width:"20",height:"20",fill:"var(--red-error)"})}),r(cn,{variant:"primary",size:"small","aria-label":"Add",noPadding:!0,children:r(Ae,{name:Me.PLUS,width:"20",height:"20",fill:"var(--white-900)"})})]})]}),r(fn,{children:C.length>0?C.map(e=>r(xn,{onClick:()=>m(e.id),children:r(mn,{title:e.title,description:e.description,buttonText:e.buttonText,linkText:e.linkText,status:f===e.id?"active":"default",onButtonClick:()=>b(e.id),onLinkClick:()=>v(e.id)})},e.id)):e(un,{children:[r(Ae,{name:Me.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),r(Cn,{children:"No data"})]})})]}),"protocol"===d&&e(t,{children:[r(an,{children:e(sn,{children:["Protocol (",x.length,")"]})}),r(fn,{children:x.length>0?x.map(e=>r(xn,{onClick:()=>m(e.id),children:r(mn,{title:e.title,description:e.description,status:f===e.id?"active":"default",onButtonClick:()=>b(e.id),onLinkClick:()=>v(e.id)})},e.id)):e(un,{children:[r(Ae,{name:Me.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),r(Cn,{children:"No data"})]})})]}),"steps"===d&&e(t,{children:[r(an,{children:e(sn,{children:["Task Scripts (",0,")"]})}),r(fn,{children:x.length>0?x.map(e=>r(xn,{onClick:()=>m(e.id),children:r(mn,{title:e.title,description:e.description,status:f===e.id?"active":"default",onButtonClick:()=>b(e.id),onLinkClick:()=>v(e.id)})},e.id)):e(un,{children:[r(Ae,{name:Me.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),r(Cn,{children:"No data"})]})})]})]}),e(pn,{children:[r(gn,{children:r($o,{tabs:[{id:"pipelineBuilder",label:"Pipeline Builder"},{id:"configuration",label:"Configuration"},{id:"launch",label:"Launch"}],activeTab:p,onChange:e=>{g(e)}})}),e(bn,{children:["pipelineBuilder"===p&&r(vn,{}),"configuration"===p&&r(to,{}),"launch"===p&&r(Ii,{})]})]})]})})})]})]})]})},yn=({dataSeries:t,width:i=400,height:o=400,title:n="Pie Chart",textInfo:l="percent",hole:a=0,rotation:d=0})=>{const c=h(null),g=[Go.BLUE,Go.GREEN,Go.ORANGE,Go.RED,Go.YELLOW,Go.PURPLE],f=()=>{if(t.colors&&t.colors.length>=t.labels.length)return t.colors;const e=t.colors||[],r=t.labels.length-e.length;if(r<=0)return e;for(let t=0;t<r;t++)e.push(g[t%g.length]);return e};p(()=>{if(!c.current)return;const e=[{type:"pie",labels:t.labels,values:t.values,name:t.name,marker:{colors:f()},textinfo:l,hoverinfo:"label+text+value",insidetextfont:{size:0,family:"Inter, sans-serif",color:"transparent"},hole:a,rotation:d}],r={width:i,height:o,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:40,r:40,b:40,t:40}};return y.newPlot(c.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{c.current&&y.purge(c.current)}},[t,i,o,l,a,d]);return r("div",{className:"card-container",style:{width:i},children:e("div",{className:"chart-container",children:[n&&r("div",{className:"title-container",children:r("h2",{className:"title",children:n})}),r("div",{ref:c,style:{width:"100%",height:"100%",margin:"0"}}),r(({labels:t,colors:i})=>{const o=t.map((o,n)=>r(s.Fragment,{children:e("div",{className:"legend-item",children:[r("span",{className:"color-box",style:{background:i[n]}}),o,n<t.length-1&&r("span",{className:"divider"})]})},o)),n=[];for(let e=0;e<o.length;e+=6)n.push(r("div",{className:"legend-row",children:o.slice(e,e+6)},e));return r("div",{className:"legend-container",children:n})},{labels:t.labels,colors:f()})]})})},kn=({dataSeries:e,width:t=1e3,height:i=600,xRange:o,yRange:n,xTitle:l="Columns",yTitle:a="Rows",title:s="Scatter Plot"})=>{const d=h(null),{xMin:c,xMax:g,yMin:f,yMax:u}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE,i=Number.MAX_VALUE,o=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)}),e.y.forEach(e=>{i=Math.min(i,e),o=Math.max(o,e)})});const n=.1*(t-r),l=.1*(o-i);return{xMin:r-n,xMax:t+n,yMin:i-l,yMax:o+l}})(),C=o||[c,g],x=n||[f,u],m=(()=>{const e=C[1]-C[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let i=Math.ceil(C[0]/r)*r;for(;i<=C[1];)t.push(i),i+=r;return t})(),b=(()=>{const e=x[1]-x[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let i=Math.ceil(x[0]/r)*r;for(;i<=x[1];)t.push(i),i+=r;return t})(),v={tickcolor:Go.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Go.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Go.BLACK_900,linewidth:1,position:0,zeroline:!1},w={showspikes:!0,spikemode:"across",spikedash:"solid",spikecolor:Go.BLACK_OPACITY_20,spikethickness:2};return p(()=>{if(!d.current)return;const r=e.map(e=>({x:e.x,y:e.y,type:"scatter",mode:"markers",name:e.name,marker:{color:e.color,size:10,symbol:"circle"},hovertemplate:`${l}: %{x}<br>${a}: %{y}<extra>${e.name}</extra>`})),c={title:{text:s,font:{size:32,family:"Inter, sans-serif",color:Go.BLACK_900}},width:t,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:Go.WHITE,plot_bgcolor:Go.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Go.GREY_200,range:o,autorange:!o,tickmode:"array",tickvals:m,ticktext:m.map(String),showgrid:!0,...w,...v},yaxis:{title:{text:a,font:{size:16,color:Go.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Go.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:b,showgrid:!0,...w,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Go.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0,hovermode:"closest"};return y.newPlot(d.current,r,c,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{d.current&&y.purge(d.current)}},[e,t,i,o,n,l,a,s]),r("div",{className:"chart-container",children:r("div",{ref:d,style:{width:"100%",height:"100%"}})})},Ln={colors:{primary:"var(--blue-900)",primaryHover:"var(--blue-800)",primaryActive:"var(--blue-800)",background:"var(--white-900)",text:"var(--black-900)",border:"var(--grey-200)",cardBackground:"var(--white-900)",cardBorder:"var(--grey-200)"},radius:{small:"4px",medium:"8px",large:"16px"},spacing:{small:"8px",medium:"16px",large:"24px"}},En=({theme:e={},children:t})=>{const i=f(()=>({colors:{...Ln.colors,...e.colors},radius:{...Ln.radius,...e.radius},spacing:{...Ln.spacing,...e.spacing}}),[e]);return p(()=>{const e=document.documentElement;return i.colors&&Object.entries(i.colors).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-${r}`,t)}),i.radius&&Object.entries(i.radius).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-radius-${r}`,t)}),i.spacing&&Object.entries(i.spacing).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-spacing-${r}`,t)}),()=>{i.colors&&Object.keys(i.colors).forEach(r=>{e.style.removeProperty(`--theme-${r}`)}),i.radius&&Object.keys(i.radius).forEach(r=>{e.style.removeProperty(`--theme-radius-${r}`)}),i.spacing&&Object.keys(i.spacing).forEach(r=>{e.style.removeProperty(`--theme-spacing-${r}`)})}},[i]),r(a,{theme:i,children:t})};export{Zt as AppHeader,Uo as AppLayout,jo as AreaGraph,ii as AssistantModal,M as Badge,Ko as BarGraph,Yo as Boxplot,N as Button,B as ButtonControl,li as ButtonControlGroup,Wo as CHART_COLORS,Go as COLORS,S as Card,gi as CardSidebar,ze as Checkbox,Fo as Chromatogram,Ge as CodeEditor,xi as CodeScriptEditorButton,Xo as DotPlot,Je as Dropdown,fr as ErrorAlert,vi as FormField,Qo as Heatmap,Jo as Histogram,Ae as Icon,Me as IconName,br as Input,Lr as Label,Ii as LaunchContent,en as LineGraph,wn as Main,Rr as MarkdownDisplay,Bi as Menu,zr as MenuItem,Kr as Modal,ji as Navbar,yn as PieChart,Jr as PopConfirm,to as ProtocolConfiguration,po as ProtocolYamlCard,fo as PythonEditorModal,kn as ScatterGraph,xo as SelectField,ko as Sidebar,tt as SupportiveText,nt as Tab,$o as TabGroup,Ho as Table,at as TableCell,gt as TableHeaderCell,xt as Textarea,En as ThemeProvider,Rt as Toast,Do as ToastManager,Ht as Toggle,Pe as Tooltip,Ln as defaultTheme};
1998
+ `,Ya=({userProfile:i,hostname:o,organization:n})=>{const a=[{icon:Me.SEARCH_DOCUMENT,label:"Search"},{icon:Me.SEARCH_SQL,label:"SQL Search"},{icon:Me.LAMP,label:"Projects"},{icon:Me.PIPELINE,label:"Pipelines"},{icon:Me.COMPUTER,label:"Data & AI Workspace"},{icon:Me.CUBE,label:"Artifacts"},{icon:Me.DATABASE,label:"Data Sources"},{icon:Me.PIE_CHART,label:"Health Monitoring"},{icon:Me.BULK_CHECK,label:"Bulk Actions"},{icon:Me.CODE,label:"Attribute Management"},{icon:Me.GEAR,label:"Administration"}],[l,s]=c("Pipelines"),[d,h]=c("templates"),[p,g]=c("pipelineBuilder"),[u,f]=c("1"),m=[{id:"1",title:"Tecan D300e and PerkinElmer EnVision to Dotmatics (v1)",description:"c901ejs",buttonText:"",linkText:""},{id:"2",title:"Bruker D8 Andvanced CRD Raw to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"3",title:"Extract and Decorate(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"4",title:"Intellict (Que3 Raw to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"5",title:"Leica Aperio RAW to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"6",title:"IDS to Benchling(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"7",title:"Lorem Ipsum",description:"c901ejs",buttonText:"",linkText:""}],x=[],b=e=>{f(e===u?null:e)},C=e=>{console.log(`Using template: ${e}`)},v=e=>{console.log(`Viewing template: ${e}`)};return e(Na,{children:[t(no,{organization:n}),e($a,{children:[t(Bo,{items:a,activeItem:l,onItemClick:e=>{s(e)}}),e(Ta,{children:[t(ti,{hostname:o,userProfile:i,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),t(Ra,{children:t(za,{children:e("div",{style:{display:"flex",height:"100%"},children:[e(Pa,{children:[t(Yo,{tabs:[{id:"templates",label:"Templates"},{id:"protocol",label:"Protocol"},{id:"steps",label:"Steps"}],activeTab:d,onChange:e=>{h(e)}}),"templates"===d&&e(r,{children:[e(Sa,{children:[t(Ba,{children:"Templates"}),e(Ha,{children:[t(Oa,{variant:"tertiary",size:"small","aria-label":"Delete",noPadding:!0,children:t(Ie,{name:Me.TRASH,width:"20",height:"20",fill:"var(--red-error)"})}),t(Oa,{variant:"primary",size:"small","aria-label":"Add",noPadding:!0,children:t(Ie,{name:Me.PLUS,width:"20",height:"20",fill:"var(--white-900)"})})]})]}),t(Ua,{children:m.length>0?m.map(e=>t(Za,{onClick:()=>b(e.id),children:t(Wa,{title:e.title,description:e.description,buttonText:e.buttonText,linkText:e.linkText,status:u===e.id?"active":"default",onButtonClick:()=>C(e.id),onLinkClick:()=>v(e.id)})},e.id)):e(Ga,{children:[t(Ie,{name:Me.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),t(Ka,{children:"No data"})]})})]}),"protocol"===d&&e(r,{children:[t(Sa,{children:e(Ba,{children:["Protocol (",x.length,")"]})}),t(Ua,{children:x.length>0?x.map(e=>t(Za,{onClick:()=>b(e.id),children:t(Wa,{title:e.title,description:e.description,status:u===e.id?"active":"default",onButtonClick:()=>C(e.id),onLinkClick:()=>v(e.id)})},e.id)):e(Ga,{children:[t(Ie,{name:Me.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),t(Ka,{children:"No data"})]})})]}),"steps"===d&&e(r,{children:[t(Sa,{children:e(Ba,{children:["Task Scripts (",0,")"]})}),t(Ua,{children:x.length>0?x.map(e=>t(Za,{onClick:()=>b(e.id),children:t(Wa,{title:e.title,description:e.description,status:u===e.id?"active":"default",onButtonClick:()=>C(e.id),onLinkClick:()=>v(e.id)})},e.id)):e(Ga,{children:[t(Ie,{name:Me.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),t(Ka,{children:"No data"})]})})]})]}),e(Da,{children:[t(Va,{children:t(Yo,{tabs:[{id:"pipelineBuilder",label:"Pipeline Builder"},{id:"configuration",label:"Configuration"},{id:"launch",label:"Launch"}],activeTab:p,onChange:e=>{g(e)}})}),e(ja,{children:["pipelineBuilder"===p&&t(Fa,{}),"configuration"===p&&t(mo,{}),"launch"===p&&t(Vi,{})]})]})]})})})]})]})]})},Xa=[on.BLUE,on.GREEN,on.ORANGE,on.RED,on.YELLOW,on.PURPLE],qa=({dataSeries:r,width:i=400,height:o=400,title:n="Pie Chart",textInfo:a="percent",hole:l=0,rotation:c=0})=>{const p=d(null),g=u(()=>{if(r.colors&&r.colors.length>=r.labels.length)return r.colors;const e=[...r.colors||[]],t=r.labels.length-e.length;if(t<=0)return e;for(let r=0;r<t;r++)e.push(Xa[r%Xa.length]);return e},[r.colors,r.labels.length]);h(()=>{if(!p.current)return;const e=[{type:"pie",labels:r.labels,values:r.values,name:r.name,marker:{colors:g},textinfo:a,hoverinfo:"label+text+value",insidetextfont:{size:0,family:"Inter, sans-serif",color:"transparent"},hole:l,rotation:c}],t={width:i,height:o,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:40,r:40,b:40,t:40}};y.newPlot(p.current,e,t,{responsive:!0,displayModeBar:!1,displaylogo:!1});const n=p.current;return()=>{n&&y.purge(n)}},[g,r.labels,r.name,r.values,i,o,a,l,c]);return t("div",{className:"card-container",style:{width:i},children:e("div",{className:"chart-container",children:[n&&t("div",{className:"title-container",children:t("h2",{className:"title",children:n})}),t("div",{ref:p,style:{width:"100%",height:"100%",margin:"0"}}),t(({labels:r,colors:i})=>{const o=r.map((o,n)=>t(s.Fragment,{children:e("div",{className:"legend-item",children:[t("span",{className:"color-box",style:{background:i[n]}}),o,n<r.length-1&&t("span",{className:"divider"})]})},o)),n=[];for(let e=0;e<o.length;e+=6)n.push(t("div",{className:"legend-row",children:o.slice(e,e+6)},e));return t("div",{className:"legend-container",children:n})},{labels:r.labels,colors:g})]})})},Qa=({dataSeries:e,width:r=1e3,height:i=600,xRange:o,yRange:n,xTitle:a="Columns",yTitle:l="Rows",title:s="Scatter Plot"})=>{const c=d(null),{xMin:p,xMax:g,yMin:f,yMax:m}=u(()=>{let t=Number.MAX_VALUE,r=Number.MIN_VALUE,i=Number.MAX_VALUE,o=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{t=Math.min(t,e),r=Math.max(r,e)}),e.y.forEach(e=>{i=Math.min(i,e),o=Math.max(o,e)})});const n=.1*(r-t),a=.1*(o-i);return{xMin:t-n,xMax:r+n,yMin:i-a,yMax:o+a}},[e]),x=u(()=>o||[p,g],[o,p,g]),b=u(()=>n||[f,m],[n,f,m]),C=u(()=>{const e=x[1]-x[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let i=Math.ceil(x[0]/t)*t;for(;i<=x[1];)r.push(i),i+=t;return r},[x]),v=u(()=>{const e=b[1]-b[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let i=Math.ceil(b[0]/t)*t;for(;i<=b[1];)r.push(i),i+=t;return r},[b]),w=u(()=>({tickcolor:on.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:on.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:on.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]),k=u(()=>({showspikes:!0,spikemode:"across",spikedash:"solid",spikecolor:on.BLACK_OPACITY_20,spikethickness:2}),[]);return h(()=>{if(!c.current)return;const t=e.map(e=>({x:e.x,y:e.y,type:"scatter",mode:"markers",name:e.name,marker:{color:e.color,size:10,symbol:"circle"},hovertemplate:`${a}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),d={title:{text:s,font:{size:32,family:"Inter, sans-serif",color:on.BLACK_900}},width:r,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:on.WHITE,plot_bgcolor:on.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:a,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:on.GREY_200,range:o,autorange:!o,tickmode:"array",tickvals:C,ticktext:C.map(String),showgrid:!0,...k,...w},yaxis:{title:{text:l,font:{size:16,color:on.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:on.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:v,showgrid:!0,...k,...w},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:on.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0,hovermode:"closest"};y.newPlot(c.current,t,d,{responsive:!0,displayModeBar:!1,displaylogo:!1});const h=c.current;return()=>{h&&y.purge(h)}},[e,r,i,o,n,a,l,s,x,b,C,v,w,k]),t("div",{className:"chart-container",children:t("div",{ref:c,style:{width:"100%",height:"100%"}})})},Ja=({filters:r,filterValues:i,onFilterChange:o})=>t("div",{className:"tdp-search__filters-row",children:r.map(r=>e("div",{className:"tdp-search__filter-wrapper",children:[t("label",{className:"tdp-search__filter-label",children:r.label}),t(Je,{options:r.options,value:i[r.key]||"",onChange:e=>o(r.key,e)})]},r.key))}),el=({results:i,total:o,currentPage:n,pageSize:a,columns:l,onPageChange:s,sortKey:c,sortDirection:d,onSort:h})=>e(r,{children:[t("div",{className:"tdp-search__results-header",children:e("div",{className:"tdp-search__results-count",children:["Showing ",(n-1)*a+1,"-",Math.min(n*a,o)," of ",o," results"]})}),t(jo,{columns:l,data:i,pageSize:a,currentPage:n,totalItems:o,onPageChange:s,sortKey:c||void 0,sortDirection:d,onSort:h,rowKey:e=>e.id||Math.random().toString()})]}),tl=({query:r,setQuery:i,onSearch:o,isLoading:n,placeholder:a})=>e("div",{className:"tdp-search__search-bar",children:[t("div",{className:"tdp-search__search-input-wrapper",children:t(wt,{value:r,onChange:e=>i(e.target.value),onKeyDown:e=>{"Enter"===e.key&&o()},placeholder:a,iconLeft:t(be,{}),size:"small"})}),t(N,{variant:"primary",onClick:o,disabled:!r.trim()||n,children:n?"Searching...":"Search"})]}),rl="ts-auth-token",il="x-org-slug",ol=(e,t,r)=>{const{searchTerm:i,sort:o,order:n,...a}=e,l={from:t,size:r};return void 0!==i&&""!==i&&(l.query={simple_query_string:{query:i,default_operator:"and"}}),void 0!==o&&""!==o&&(l.sort=n?[{[o]:n}]:[o]),Object.entries(a).forEach(([e,t])=>{void 0!==t&&(l[e]=t)}),l};function nl(e){const[t,r]=c([]),[i,o]=c(0),[n,a]=c(1),[l,s]=c(!1),[d,h]=c(null);return{results:t,total:i,currentPage:n,isLoading:l,error:d,executeSearch:async(t,i=1)=>{s(!0),h(null);const{pageSize:n,standalone:l,baseUrl:c,apiEndpoint:d="/api/search",authToken:p,orgSlug:g}=e,u=(i-1)*n;let f,m;if(l){if(!c)throw new Error("baseUrl is required when standalone is true");f=`${c.replace(/\/$/,"")}/v1/datalake/searchEql`,m={method:"POST",headers:{"Content-Type":"application/json",...p&&{[rl]:p},...g&&{[il]:g}},body:JSON.stringify(ol(t,u,n))}}else{const e={"Content-Type":"application/json"};p&&g&&(e[rl]=p,e[il]=g),f=d,m={method:"POST",headers:e,credentials:"include",body:JSON.stringify({...t,size:n,from:u})}}try{const e=await fetch(f,m);if(!e.ok){const t=await e.json().catch(()=>({error:"Unknown error"})),r=l&&t.error?.message||t.error;throw new Error(r||`HTTP ${e.status}: ${e.statusText}`)}const t=await e.json(),n=(t.hits?.hits||[]).map(e=>({id:e._id,...e._source,_score:e._score})),s="number"==typeof t.hits?.total?t.hits.total:t.hits?.total?.value||0;return r(n),o(s),a(i),n}catch(e){return h(e.message||"An error occurred while searching"),r([]),o(0),[]}finally{s(!1)}}}}function al(e){try{return localStorage.getItem(e)??void 0}catch{return}}function ll(e){try{const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}catch{return}}const sl=({defaultQuery:i="",columns:o,filters:n=[],defaultSort:a,advancedSearchParams:l,pageSize:s=10,searchPlaceholder:d="Enter search term...",className:h,onSearch:p,renderSearchBar:g,renderFilters:u,renderResults:f,...m})=>{const{authToken:x,orgSlug:b}=function(e,t){if(e&&t)return{authToken:e,orgSlug:t};const r=al(rl),i=al(il);if(r&&i)return{authToken:r,orgSlug:i};const o=ll(rl),n=ll(il);return o&&n?{authToken:o,orgSlug:n}:{authToken:e,orgSlug:t}}(m.authToken,m.orgSlug),{results:C,total:v,currentPage:w,isLoading:y,error:k,executeSearch:L}=nl({...m,authToken:x??"",orgSlug:b??"",pageSize:s}),[E,M]=c(i),[I,_]=c({}),[A,N]=c(null),[$,T]=c("asc"),[R,z]=c(!1),S=async(e=1,t)=>{if(!E.trim())return;z(!0);const r=t?.sortKey??A??a?.field,i=null==t?A?$:a?.order??$:t.sortDirection,o=Object.entries(I).filter(([,e])=>""!==e).map(([e,t])=>({field:e,operator:"eq",value:t}));let n=l?.expression;o.length>0&&(n={g:"AND",e:n?[...o,n]:o});const c={searchTerm:E.trim(),sort:r??void 0,order:i,...l,...void 0!==n&&{expression:n}},d=await L(c,e);p&&p({...c,from:(e-1)*s,size:s},d)},B=e("div",{className:"tdp-search__empty-state",children:[t("div",{className:"tdp-search__empty-state-icon",children:t(be,{})}),t("div",{className:"tdp-search__empty-state-text",children:"No results found. Try adjusting your search query or filters."})]}),H={query:E,setQuery:M,onSearch:()=>{S(1)},isLoading:y,placeholder:d},O={filters:n,filterValues:I,onFilterChange:(e,t)=>{_(r=>({...r,[e]:t}))}},P={results:C,total:v,currentPage:w,pageSize:s,columns:o,onPageChange:e=>{S(e)},sortKey:A,sortDirection:$,onSort:(e,t)=>{N(e),T(t),S(1,{sortKey:e,sortDirection:t})}};return e("div",{className:`tdp-search ${h||""}`,children:[g?g(H):t(tl,{...H}),n.length>0&&(u?u(O):t(Ja,{...O})),k&&e(r,{children:[t(mt,{error:k,onClose:()=>{}}),B]}),y&&t("div",{className:"tdp-search__loading-overlay",children:"Loading results..."}),!y&&!R&&e("div",{className:"tdp-search__empty-state",children:[t("div",{className:"tdp-search__empty-state-icon",children:t(be,{})}),t("div",{className:"tdp-search__empty-state-text",children:"Enter a search query and click Search to get started."})]}),!y&&!k&&R&&C.length>0&&(f?f(P):t(el,{...P})),!y&&!k&&R&&0===C.length&&B]})},cl={colors:{primary:"var(--blue-900)",primaryHover:"var(--blue-800)",primaryActive:"var(--blue-800)",background:"var(--white-900)",text:"var(--black-900)",border:"var(--grey-200)",cardBackground:"var(--white-900)",cardBorder:"var(--grey-200)"},radius:{small:"4px",medium:"8px",large:"16px"},spacing:{small:"8px",medium:"16px",large:"24px"}},dl=i.div`
1999
+ ${e=>Object.entries(e.$themeStyles).map(([e,t])=>`${e}: ${t};`).join("\n")}
2000
+ `,hl=({theme:e={},children:r})=>{const i=u(()=>({colors:{...cl.colors,...e.colors},radius:{...cl.radius,...e.radius},spacing:{...cl.spacing,...e.spacing}}),[e]),o=u(()=>{const e={};return i.colors&&Object.entries(i.colors).forEach(([t,r])=>{r&&(e[`--theme-${t}`]=r)}),i.radius&&Object.entries(i.radius).forEach(([t,r])=>{r&&(e[`--theme-radius-${t}`]=r)}),i.spacing&&Object.entries(i.spacing).forEach(([t,r])=>{r&&(e[`--theme-spacing-${t}`]=r)}),e},[i]);return t(l,{theme:i,children:t(dl,{$themeStyles:o,children:r})})};export{ti as AppHeader,tn as AppLayout,an as AreaGraph,fi as AssistantModal,M as Badge,ln as BarGraph,sn as Boxplot,N as Button,T as ButtonControl,bi as ButtonControlGroup,nn as CHART_COLORS,on as COLORS,O as Card,Ei as CardSidebar,Re as Checkbox,cn as Chromatogram,An as ChromatogramChart,Ke as CodeEditor,Ni as CodeScriptEditorButton,xa as DEFAULT_CATEGORY_COLORS,ma as DEFAULT_COLOR_SCALE,ba as DEFAULT_MARKER_SIZE,va as DEFAULT_MAX_POINTS,Ca as DEFAULT_SIZE_RANGE,Nn as DotPlot,Je as Dropdown,mt as ErrorAlert,Ri as FormField,ua as Heatmap,fa as Histogram,Ie as Icon,Me as IconName,wt as Input,_a as InteractiveScatter,Mt as Label,Vi as LaunchContent,Aa as LineGraph,Ya as Main,Nt as MarkdownDisplay,Zi as Menu,zt as MenuItem,Ft as Modal,no as Navbar,wa as PLOT_CONSTANTS,qa as PieChart,ga as PlateMap,er as PopConfirm,mo as ProtocolConfiguration,Eo as ProtocolYamlCard,Io as PythonEditorModal,ya as SELECTION_MODIFIERS,Qa as ScatterGraph,No as SelectField,Bo as Sidebar,ir as SupportiveText,Wr as TDPLink,ar as Tab,Yo as TabGroup,jo as Table,sr as TableCell,ur as TableHeaderCell,Vr as TdpNavigationContext,Gr as TdpNavigationProvider,sl as TdpSearch,br as Textarea,hl as ThemeProvider,Nr as Toast,en as ToastManager,Sr as Toggle,Be as Tooltip,Or as buildTdpUrl,cl as defaultTheme,Hr as getTdpBaseUrlFromReferrer,Pr as navigateToTdpUrl,Dr as tdpPaths,nl as useSearch,Kr as useTdpNavigation,Ur as useTdpNavigationContext};
1983
2001
  //# sourceMappingURL=index.js.map