@tetrascience-npm/tetrascience-react-ui 0.2.0

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.
@@ -0,0 +1,1983 @@
1
+ import e,{forwardRef as r,useState as t,useRef as i,useEffect as o,useCallback as n,useMemo as a,createContext as l}from"react";import s,{css as d,createGlobalStyle as c,keyframes as h,ThemeProvider as p}from"styled-components";import x from"@monaco-editor/react";import g from"react-markdown";import{Prism as f}from"react-syntax-highlighter";import u from"rehype-raw";import m from"remark-gfm";import{createPortal as b}from"react-dom";import C from"plotly.js-dist";var v,y={exports:{}},w={};var j,k,E={};function L(){return j||(j=1,"production"!==process.env.NODE_ENV&&function(){var r=e,t=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),f=Symbol.iterator;var u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),i=1;i<r;i++)t[i-1]=arguments[i];!function(e,r,t){var i=u.ReactDebugCurrentFrame,o=i.getStackAddendum();""!==o&&(r+="%s",t=t.concat([o]));var n=t.map(function(e){return String(e)});n.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,n)}("error",e,t)}var b;function C(e){return e.displayName||"Context"}function v(e){if(null==e)return null;if("number"==typeof e.tag&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case i:return"Portal";case a:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case h:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return C(e)+".Consumer";case l:return C(e._context)+".Provider";case d:return function(e,r,t){var i=e.displayName;if(i)return i;var o=r.displayName||r.name||"";return""!==o?t+"("+o+")":t}(e,e.render,"ForwardRef");case p:var r=e.displayName||null;return null!==r?r:v(e.type)||"Memo";case x:var t=e,g=t._payload,f=t._init;try{return v(f(g))}catch(e){return null}}return null}b=Symbol.for("react.module.reference");var y,w,j,k,L,M,_,A=Object.assign,R=0;function I(){}I.__reactDisabledLog=!0;var N,T=u.ReactCurrentDispatcher;function z(e,r,t){if(void 0===N)try{throw Error()}catch(e){var i=e.stack.trim().match(/\n( *(at )?)/);N=i&&i[1]||""}return"\n"+N+e}var B,H=!1,$="function"==typeof WeakMap?WeakMap:Map;function S(e,r){if(!e||H)return"";var t,i=B.get(e);if(void 0!==i)return i;H=!0;var o,n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=T.current,T.current=null,function(){if(0===R){y=console.log,w=console.info,j=console.warn,k=console.error,L=console.group,M=console.groupCollapsed,_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}R++}();try{if(r){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){t=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){t=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){t=e}e()}}catch(r){if(r&&t&&"string"==typeof r.stack){for(var l=r.stack.split("\n"),s=t.stack.split("\n"),d=l.length-1,c=s.length-1;d>=1&&c>=0&&l[d]!==s[c];)c--;for(;d>=1&&c>=0;d--,c--)if(l[d]!==s[c]){if(1!==d||1!==c)do{if(d--,--c<0||l[d]!==s[c]){var h="\n"+l[d].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),"function"==typeof e&&B.set(e,h),h}}while(d>=1&&c>=0);break}}}finally{H=!1,T.current=o,function(){if(0===--R){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:y}),info:A({},e,{value:w}),warn:A({},e,{value:j}),error:A({},e,{value:k}),group:A({},e,{value:L}),groupCollapsed:A({},e,{value:M}),groupEnd:A({},e,{value:_})})}R<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}var p=e?e.displayName||e.name:"",x=p?z(p):"";return"function"==typeof e&&B.set(e,x),x}function O(e,r,t){if(null==e)return"";if("function"==typeof e)return S(e,!(!(i=e.prototype)||!i.isReactComponent));var i;if("string"==typeof e)return z(e);switch(e){case c:return z("Suspense");case h:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case d:return S(e.render,!1);case p:return O(e.type,r,t);case x:var o=e,n=o._payload,a=o._init;try{return O(a(n),r,t)}catch(e){}}return""}B=new $;var P=Object.prototype.hasOwnProperty,V={},D=u.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);D.setExtraStackFrame(t)}else D.setExtraStackFrame(null)}var Z=Array.isArray;function W(e){return Z(e)}function G(e){return""+e}function K(e){if(function(e){try{return G(e),!1}catch(e){return!0}}(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),G(e)}var F,Y,X=u.ReactCurrentOwner,q={key:!0,ref:!0,__self:!0,__source:!0};function Q(e,r,i,o,n){var a,l={},s=null,d=null;for(a in void 0!==i&&(K(i),s=""+i),function(e){if(P.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(K(r.key),s=""+r.key),function(e){if(P.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(d=r.ref,function(e){"string"==typeof e.ref&&X.current}(r)),r)P.call(r,a)&&!q.hasOwnProperty(a)&&(l[a]=r[a]);if(e&&e.defaultProps){var c=e.defaultProps;for(a in c)void 0===l[a]&&(l[a]=c[a])}if(s||d){var h="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,r){var t=function(){F||(F=!0,m("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(l,h),d&&function(e,r){var t=function(){Y||(Y=!0,m("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(l,h)}return function(e,r,i,o,n,a,l){var s={$$typeof:t,type:e,key:r,ref:i,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,d,n,o,X.current,l)}var J,ee=u.ReactCurrentOwner,re=u.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);re.setExtraStackFrame(t)}else re.setExtraStackFrame(null)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function oe(){if(ee.current){var e=v(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}J=!1;var ne={};function ae(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=oe();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!ne[t]){ne[t]=!0;var i="";e&&e._owner&&e._owner!==ee.current&&(i=" It was passed a child from "+v(e._owner.type)+"."),te(e),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,i),te(null)}}}function le(e,r){if("object"==typeof e)if(W(e))for(var t=0;t<e.length;t++){var i=e[t];ie(i)&&ae(i,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var r=f&&e[f]||e["@@iterator"];return"function"==typeof r?r:null}(e);if("function"==typeof o&&o!==e.entries)for(var n,a=o.call(e);!(n=a.next()).done;)ie(n.value)&&ae(n.value,r)}}function se(e){var r,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==d&&t.$$typeof!==p)return;r=t.propTypes}if(r){var i=v(t);!function(e,r,t,i,o){var n=Function.call.bind(P);for(var a in e)if(n(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((i||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](r,a,i,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(U(o),m("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",t,a,typeof l),U(null)),l instanceof Error&&!(l.message in V)&&(V[l.message]=!0,U(o),m("Failed %s type: %s",t,l.message),U(null))}}(r,e.props,"prop",i,e)}else if(void 0!==t.PropTypes&&!J){J=!0,m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v(t)||"Unknown")}"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var de={};function ce(e,r,i,f,u,C){var y=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===n||e===c||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===x||e.$$typeof===p||e.$$typeof===l||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||void 0!==e.getModuleId)}(e);if(!y){var w="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j;w+=oe(),null===e?j="null":W(e)?j="array":void 0!==e&&e.$$typeof===t?(j="<"+(v(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,w)}var k=Q(e,r,i,u,C);if(null==k)return k;if(y){var E=r.children;if(void 0!==E)if(f)if(W(E)){for(var L=0;L<E.length;L++)le(E[L],e);Object.freeze&&Object.freeze(E)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,e)}if(P.call(r,"key")){var M=v(e),_=Object.keys(r).filter(function(e){return"key"!==e}),A=_.length>0?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}";if(!de[M+A])m('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',A,M,_.length>0?"{"+_.join(": ..., ")+": ...}":"{}",M),de[M+A]=!0}return e===o?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var i=r[t];if("children"!==i&&"key"!==i){te(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),te(null);break}}null!==e.ref&&(te(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(k):se(k),k}var he=function(e,r,t){return ce(e,r,t,!1)},pe=function(e,r,t){return ce(e,r,t,!0)};E.Fragment=o,E.jsx=he,E.jsxs=pe}()),E}var M=(k||(k=1,"production"===process.env.NODE_ENV?y.exports=function(){if(v)return w;v=1;var r=e,t=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,n=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,i){var l,s={},d=null,c=null;for(l in void 0!==i&&(d=""+i),void 0!==r.key&&(d=""+r.key),void 0!==r.ref&&(c=r.ref),r)o.call(r,l)&&!a.hasOwnProperty(l)&&(s[l]=r[l]);if(e&&e.defaultProps)for(l in r=e.defaultProps)void 0===s[l]&&(s[l]=r[l]);return{$$typeof:t,type:e,key:d,ref:c,props:s,_owner:n.current}}return w.Fragment=i,w.jsx=l,w.jsxs=l,w}():y.exports=L()),y.exports);const _={small:d`
2
+ height: 22px;
3
+ `,medium:d`
4
+ height: 26px;
5
+ `},A={default:d`
6
+ color: var(--black);
7
+ background-color: var(--white);
8
+ border: 1px solid var(--grey-300);
9
+ `,primary:d`
10
+ color: var(--blue-600);
11
+ background-color: var(--blue-50);
12
+ border: 1px solid var(--blue-600);
13
+ `},R=s.span`
14
+ display: inline-flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ gap: 6px;
18
+ font-family: "Inter", sans-serif;
19
+ font-size: 13px;
20
+ font-style: normal;
21
+ font-weight: 400;
22
+ line-height: 18px;
23
+ white-space: nowrap;
24
+ padding: 2px 8px;
25
+ border-radius: 6px;
26
+ user-select: none;
27
+
28
+ ${({$size:e})=>_[e]}
29
+ ${({$variant:e})=>A[e]}
30
+
31
+ ${({$disabled:e})=>e&&d`
32
+ cursor: not-allowed;
33
+ background-color: var(--white);
34
+ border-color: var(--grey-300);
35
+ color: var(--grey-300);
36
+ `}
37
+
38
+ svg {
39
+ width: 16px;
40
+ height: 16px;
41
+ }
42
+ `,I=({children:e,size:r="medium",variant:t="default",disabled:i=!1,iconLeft:o,iconRight:n,className:a})=>M.jsxs(R,{$size:r,$variant:t,$disabled:i,className:a,children:[o&&o,e,n&&n]}),N={small:d`
43
+ height: 34px;
44
+ `,medium:d`
45
+ height: 38px;
46
+ `},T={primary:d`
47
+ color: var(--white-900);
48
+ background-color: var(--theme-primary, var(--blue-900));
49
+ border: 1px solid var(--theme-primary, var(--blue-900));
50
+
51
+ &:hover:not(:disabled) {
52
+ background-color: var(--theme-primaryHover, var(--blue-800));
53
+ border-color: var(--theme-primaryHover, var(--blue-800));
54
+ }
55
+
56
+ &:focus:not(:disabled) {
57
+ background-color: var(--theme-primaryHover, var(--blue-800));
58
+ }
59
+
60
+ &:active:not(:disabled) {
61
+ background-color: var(--theme-primaryActive, var(--blue-800));
62
+ border-color: var(--theme-primaryActive, var(--blue-800));
63
+ }
64
+ `,secondary:d`
65
+ color: var(--blue-600);
66
+ background-color: var(--white-900);
67
+ border: 1px solid var(--blue-600);
68
+
69
+ &:hover:not(:disabled) {
70
+ background-color: var(--blue-100);
71
+ border-color: var(--blue-600);
72
+ }
73
+
74
+ &:focus:not(:disabled) {
75
+ background-color: var(--blue-100);
76
+ }
77
+
78
+ &:active:not(:disabled) {
79
+ border-color: var(--blue-600);
80
+ background-color: var(--blue-100);
81
+ }
82
+ `,tertiary:d`
83
+ color: var(--black-900);
84
+ background-color: var(--white-900);
85
+ border: 1px solid var(--grey-300);
86
+
87
+ &:hover:not(:disabled) {
88
+ background-color: var(--grey-100);
89
+ border: 1px solid var(--grey-300);
90
+ }
91
+
92
+ &:focus:not(:disabled) {
93
+ background-color: var(--grey-100);
94
+ }
95
+
96
+ &:active:not(:disabled) {
97
+ background-color: var(--grey-100);
98
+ }
99
+ `},z=s.button`
100
+ display: inline-flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ gap: 8px;
104
+ border-radius: var(--theme-radius-medium, 8px);
105
+ font-family: "Inter", sans-serif;
106
+ font-weight: 600;
107
+ cursor: pointer;
108
+ transition: all 0.2s;
109
+ font-size: 14px;
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}};
113
+ user-select: none;
114
+
115
+ ${e=>N[e.size||"medium"]}
116
+ ${e=>T[e.variant||"primary"]}
117
+
118
+ &:disabled {
119
+ cursor: not-allowed;
120
+ user-select: none;
121
+ pointer-events: none;
122
+ background-color: var(--grey-300);
123
+ border-color: var(--grey-300);
124
+ color: var(--white-900);
125
+ }
126
+
127
+ &:focus {
128
+ outline: none;
129
+ box-shadow: 0px 0px 0px 1px var(--white-900),
130
+ 0px 0px 0px 3px var(--blue-600);
131
+ }
132
+ `,B=e.forwardRef(({children:e,variant:r="primary",size:t="medium",loading:i=!1,leftIcon:o,rightIcon:n,noPadding:a=!1,fullWidth:l=!1,disabled:s,...d},c)=>M.jsxs(z,{ref:c,variant:r,size:t,noPadding:a,fullWidth:l,disabled:s||i,...d,children:[o&&o,e,n&&n]}));B.displayName="Button";const H=s.button`
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: center;
136
+ width: 40px;
137
+ height: 40px;
138
+ background-color: ${e=>e.selected?"var(--grey-100)":"var(--white-900)"};
139
+ border: none;
140
+ border-radius: 0;
141
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
142
+ outline: none;
143
+ transition: all 0.2s ease;
144
+ padding: 0;
145
+
146
+ &:hover:not(:disabled) {
147
+ background-color: var(--grey-100);
148
+ }
149
+
150
+ &:active:not(:disabled) {
151
+ background-color: var(--grey-100);
152
+ outline: none;
153
+ }
154
+
155
+ &:focus,
156
+ &:focus-visible {
157
+ outline-color: var(--blue-600) !important;
158
+ }
159
+
160
+ &:disabled {
161
+ opacity: 0.5;
162
+ background-color: var(--grey-50);
163
+ border-color: var(--grey-200);
164
+ }
165
+
166
+ svg {
167
+ width: 20px;
168
+ height: 20px;
169
+ color: ${e=>e.disabled?"var(--grey-400)":"var(--blue-900)"};
170
+ }
171
+ `,$=({icon:e,selected:r=!1,disabled:t=!1,onClick:i})=>M.jsx(H,{selected:r,disabled:t,onClick:t?void 0:i,children:e}),S={small:d`
172
+ padding: 12px;
173
+ `,medium:d`
174
+ padding: 16px;
175
+ `,large:d`
176
+ padding: 20px;
177
+ `},O={default:d`
178
+ background-color: var(--theme-cardBackground, var(--white-900));
179
+ border: 1px solid var(--theme-cardBorder, var(--grey-200));
180
+ `,outlined:d`
181
+ background-color: var(--theme-cardBackground, var(--white-900));
182
+ border: 1px solid var(--theme-cardBorder, var(--grey-200));
183
+ `,elevated:d`
184
+ background-color: var(--theme-cardBackground, var(--white-900));
185
+ border: 1px solid var(--theme-cardBorder, var(--grey-200));
186
+ box-shadow: 0px 2px 4px var(--black-100);
187
+ `},P=s.div`
188
+ border-radius: var(--theme-radius-large, 16px);
189
+ width: ${e=>e.$fullWidth?"100%":"auto"};
190
+ ${e=>O[e.$variant]}
191
+ transition: all 0.2s ease;
192
+ `,V=s.div`
193
+ font-family: "Inter", sans-serif;
194
+ font-size: 14px;
195
+ font-style: normal;
196
+ font-weight: 600;
197
+ line-height: 20px;
198
+ background-color: var(--grey-50);
199
+ border-top-left-radius: var(--theme-radius-large, 16px);
200
+ border-top-right-radius: var(--theme-radius-large, 16px);
201
+ ${e=>S[e.$size]}
202
+ `,D=s.div`
203
+ ${e=>S[e.$size]}
204
+ `,U=r(({children:e,title:r,size:t="medium",variant:i="default",className:o,fullWidth:n=!1,...a},l)=>M.jsxs(P,{ref:l,$size:t,$variant:i,$fullWidth:n,className:o,...a,children:[r&&M.jsx(V,{$size:t,children:r}),M.jsx(D,{$size:t,children:e})]}));U.displayName="Card";const Z=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[M.jsx("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:e}),M.jsx("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:e})]}),W=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),G=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[M.jsx("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:e}),M.jsx("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:e})]}),K=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),F=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),Y=({fill:e="currentColor",width:r="16",height:t="16"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:[M.jsx("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:e}),M.jsx("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"})]}),X=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{width:r,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("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})}),q=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("path",{d:"M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Q=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),J=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),ee=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[M.jsx("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:e}),M.jsx("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:e})]}),re=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),te=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),ie=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),oe=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),ne=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),ae=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),le=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),se=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),de=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",fill:"none",children:M.jsx("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"})}),ce=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),he=({fill:e="currentColor",width:r="16",height:t="16"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:M.jsx("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})}),pe=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),xe=({fill:e="currentColor",width:r="16",height:t="16"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:M.jsx("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})}),ge=({fill:e="currentColor",width:r="16",height:t="16"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:M.jsx("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})}),fe=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{width:r,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("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})}),ue=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),me=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[M.jsx("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:e}),M.jsx("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:e})]}),be=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),Ce=({fill:e="currentColor",width:r="16",height:t="16"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:M.jsx("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})}),ve=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),ye=({fill:e="currentColor",width:r="16",height:t="16"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:M.jsx("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})}),we=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[M.jsx("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:e}),M.jsx("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:e})]}),je=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{width:r,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[M.jsx("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:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),M.jsx("path",{d:"M18 18L14 14",stroke:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),ke=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[M.jsx("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:e}),M.jsx("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:e})]}),Ee=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[M.jsx("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:e}),M.jsx("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:e})]}),Le=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 14 16",fill:"none",children:[M.jsx("path",{d:"M7 5V8",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),M.jsx("path",{d:"M3 11V9C3 8.4477 3.4477 8 4 8H10C10.5523 8 11 8.4477 11 9V11",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),M.jsx("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:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),M.jsx("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:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),M.jsx("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:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Me=({fill:e="currentColor",width:r="21",height:t="21"})=>M.jsxs("svg",{width:r,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[M.jsx("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:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),M.jsx("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:e,stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),_e=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 14 14",fill:"none",children:[M.jsx("path",{d:"M13 1H1",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),M.jsx("path",{d:"M7 13V1",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ae=({fill:e="currentColor",width:r="20",height:t="20"})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:M.jsx("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})}),Re=({fill:e="currentColor",width:r="16",height:t="16"})=>M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:[M.jsx("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:e}),M.jsx("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:e}),M.jsx("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:e}),M.jsx("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:e}),M.jsx("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:e})]});var Ie;!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"}(Ie||(Ie={}));const Ne=e=>{let r=null;const{name:t}=e;switch(t){case Ie.BARS_3_BOTTOM_LEFT:r=M.jsx(Z,{...e});break;case Ie.BUILDING:r=M.jsx(W,{...e});break;case Ie.BULK_CHECK:r=M.jsx(G,{...e});break;case Ie.CHECK:r=M.jsx(K,{...e});break;case Ie.CHECK_CIRCLE:r=M.jsx(F,{...e});break;case Ie.CHECK_SQUARE:r=M.jsx(Y,{...e});break;case Ie.CHEVRON_DOWN:r=M.jsx(X,{...e});break;case Ie.CLOSE:r=M.jsx(q,{...e});break;case Ie.CODE:r=M.jsx(Q,{...e});break;case Ie.COMPUTER:r=M.jsx(J,{...e});break;case Ie.COPY:r=M.jsx(ee,{...e});break;case Ie.CUBE:r=M.jsx(re,{...e});break;case Ie.DATABASE:r=M.jsx(te,{...e});break;case Ie.EXCLAMATION_CIRCLE:r=M.jsx(ie,{...e});break;case Ie.EXCLAMATION_TRIANGLE:r=M.jsx(oe,{...e});break;case Ie.GEAR:r=M.jsx(ne,{...e});break;case Ie.GLobe:r=M.jsx(ae,{...e});break;case Ie.HASHTAG:r=M.jsx(le,{...e});break;case Ie.HOME:r=M.jsx(se,{...e});break;case Ie.INBOX:r=M.jsx(de,{...e});break;case Ie.INFORMATION_CIRCLE:r=M.jsx(ce,{...e});break;case Ie.INFORMATION_CIRCLE_MICRO:r=M.jsx(he,{...e});break;case Ie.LAMP:r=M.jsx(pe,{...e});break;case Ie.LOCK_OPEN:r=M.jsx(xe,{...e});break;case Ie.MINUS:r=M.jsx(ge,{...e});break;case Ie.PAPER_PLANE:r=M.jsx(fe,{...e});break;case Ie.PENCIL:r=M.jsx(ue,{...e});break;case Ie.PIE_CHART:r=M.jsx(me,{...e});break;case Ie.PIPELINE:r=M.jsx(be,{...e});break;case Ie.PLUS:r=M.jsx(Ce,{...e});break;case Ie.PROFILE:r=M.jsx(ve,{...e});break;case Ie.QUESTION_CIRCLE:r=M.jsx(ye,{...e});break;case Ie.ROCKET_LAUNCH:r=M.jsx(we,{...e});break;case Ie.SEARCH:r=M.jsx(je,{...e});break;case Ie.SEARCH_DOCUMENT:r=M.jsx(ke,{...e});break;case Ie.SEARCH_SQL:r=M.jsx(Ee,{...e});break;case Ie.SITEMAP:r=M.jsx(Le,{...e});break;case Ie.TETRASCIENCE_ICON:r=M.jsx(Me,{...e});break;case Ie.TEXT:r=M.jsx(_e,{...e});break;case Ie.TRASH:r=M.jsx(Ae,{...e});break;case Ie.VIEWFINDER_CIRCLE:r=M.jsx(Re,{...e});break;default:throw`[Icon] name "${t}" does not exist`}return M.jsx("div",{style:{display:"inline-flex"},children:r})},Te=s.label`
205
+ display: inline-flex;
206
+ align-items: center;
207
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
208
+ opacity: ${e=>e.disabled?.6:1};
209
+ padding: ${e=>e.noPadding?"0":"12px 16px"};
210
+ width: 100%;
211
+ `,ze=s.input.attrs({type:"checkbox"})`
212
+ position: absolute;
213
+ opacity: 0;
214
+ height: 0;
215
+ width: 0;
216
+ `,Be=s.div`
217
+ display: flex;
218
+ align-items: center;
219
+ justify-content: center;
220
+ width: 16px;
221
+ height: 16px;
222
+ background: ${e=>e.checked?"var(--blue-600)":"var(--white-900)"};
223
+ border: 1px solid
224
+ ${e=>e.checked?"var(--blue-600)":"var(--grey-300)"};
225
+ border-radius: 3px;
226
+ transition: all 0.2s;
227
+
228
+ ${e=>!e.disabled&&"\n\t\t&:hover {\n\t\t\tborder-color: var(--blue-600);\n\t\t}\n\t"}
229
+ `,He=()=>M.jsx(Ne,{name:Ie.CHECK_SQUARE,fill:"var(--blue-600)"}),$e=s.span`
230
+ margin-left: 10px;
231
+ font-family: "Inter", sans-serif;
232
+ font-size: 14px;
233
+ font-style: normal;
234
+ font-weight: 400;
235
+ line-height: 20px;
236
+ `,Se=r(({checked:e=!1,onChange:r,disabled:t=!1,className:i,onClick:o,label:n,noPadding:a=!1},l)=>M.jsxs(Te,{className:i,disabled:t,noPadding:a,onClick:e=>{o&&o(e)},children:[M.jsx(ze,{ref:l,checked:e,onChange:e=>{!t&&r&&r(e.target.checked)},disabled:t}),M.jsx(Be,{checked:e,disabled:t,children:e&&M.jsx(He,{})}),n&&M.jsx($e,{children:n})]}));Se.displayName="Checkbox";var Oe={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 Pe=s.div`
237
+ position: relative;
238
+ display: inline-flex;
239
+ width: fit-content;
240
+ `,Ve=s.div`
241
+ position: absolute;
242
+ background-color: var(--black);
243
+ color: var(--white);
244
+ padding: 8px 12px;
245
+ border-radius: 6px;
246
+ font-family: "Inter", sans-serif;
247
+ font-size: 13px;
248
+ font-weight: 400;
249
+ line-height: 18px;
250
+ max-width: 250px;
251
+ min-width: min-content;
252
+ width: max-content;
253
+ z-index: 1000;
254
+ opacity: 0;
255
+ visibility: hidden;
256
+ transition: opacity 0.2s, visibility 0.2s;
257
+ white-space: normal;
258
+ word-wrap: break-word;
259
+ box-sizing: border-box;
260
+ text-align: left;
261
+
262
+ ${e=>e.isVisible&&d`
263
+ opacity: 1;
264
+ visibility: visible;
265
+ `}
266
+
267
+ ${e=>{switch(e.placement){case"top":return d`
268
+ bottom: 100%;
269
+ left: 50%;
270
+ transform: translateX(-50%) translateY(-8px);
271
+
272
+ &::after {
273
+ content: "";
274
+ position: absolute;
275
+ top: 100%;
276
+ left: 50%;
277
+ margin-left: -6px;
278
+ border-width: 6px;
279
+ border-style: solid;
280
+ border-color: var(--black) transparent transparent transparent;
281
+ }
282
+ `;case"right":return d`
283
+ top: 50%;
284
+ left: 100%;
285
+ transform: translateY(-50%) translateX(8px);
286
+
287
+ &::after {
288
+ content: "";
289
+ position: absolute;
290
+ top: 50%;
291
+ right: 100%;
292
+ margin-top: -6px;
293
+ border-width: 6px;
294
+ border-style: solid;
295
+ border-color: transparent var(--black) transparent transparent;
296
+ }
297
+ `;case"bottom":return d`
298
+ top: 100%;
299
+ left: 50%;
300
+ transform: translateX(-50%) translateY(8px);
301
+
302
+ &::after {
303
+ content: "";
304
+ position: absolute;
305
+ bottom: 100%;
306
+ left: 50%;
307
+ margin-left: -6px;
308
+ border-width: 6px;
309
+ border-style: solid;
310
+ border-color: transparent transparent var(--black) transparent;
311
+ }
312
+ `;case"left":return d`
313
+ top: 50%;
314
+ right: 100%;
315
+ transform: translateY(-50%) translateX(-8px);
316
+
317
+ &::after {
318
+ content: "";
319
+ position: absolute;
320
+ top: 50%;
321
+ left: 100%;
322
+ margin-top: -6px;
323
+ border-width: 6px;
324
+ border-style: solid;
325
+ border-color: transparent transparent transparent var(--black);
326
+ }
327
+ `;default:return""}}}
328
+ `,De=({content:e,children:r,placement:n="top",className:a,delay:l=100})=>{const[s,d]=t(!1),c=i(null);return o(()=>()=>{c.current&&clearTimeout(c.current)},[]),M.jsxs(Pe,{className:a,onMouseEnter:()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{d(!0)},l)},onMouseLeave:()=>{c.current&&clearTimeout(c.current),d(!1)},children:[r,M.jsx(Ve,{placement:n,isVisible:s,children:e})]})},Ue="function"==typeof import.meta.glob?import.meta.glob("/node_modules/monaco-themes/themes/*.json"):{},Ze={light:"github-light",dark:"dracula"},We=s.div`
329
+ border-radius: 16px;
330
+ overflow: hidden;
331
+ background-color: ${e=>"dark"===e.themeMode?"var(--grey-800)":"var(--grey-50)"};
332
+ position: relative;
333
+ border: 1px solid var(--grey-200);
334
+ opacity: ${e=>e.disabled?.6:1};
335
+ cursor: ${e=>e.disabled?"not-allowed":"default"};
336
+ `,Ge=s.div`
337
+ margin-left: auto;
338
+ display: flex;
339
+ gap: 8px;
340
+ padding: 8px 16px;
341
+ position: absolute;
342
+ top: 0;
343
+ right: 0;
344
+ z-index: 1;
345
+ `,Ke=s.div`
346
+ width: 32px;
347
+ height: 32px;
348
+ display: flex;
349
+ align-items: center;
350
+ justify-content: center;
351
+ `,Fe=s(B)`
352
+ width: 100%;
353
+ height: 100%;
354
+ `,Ye=({value:e,onChange:r,language:i="python",theme:o="dark",height:a=400,width:l="100%",options:s={},onCopy:d,onLaunch:c,disabled:h=!1})=>{const[p,g]=t("Copy"),[f,u]=t("Launch"),m=n(e=>{d&&!h&&(d(e),g("Copied"),setTimeout(()=>{g("Copy")},1e3))},[d,h]),b=n(e=>{c&&!h&&(c(e),u("Launched"),setTimeout(()=>{u("Launch")},1e3))},[c,h]),C={minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"on",padding:{top:12,bottom:12,left:20,right:20},scrollbar:{vertical:"hidden",verticalScrollbarSize:0},readOnly:h,...s};return M.jsxs(We,{themeMode:o,disabled:h,children:[M.jsxs(Ge,{children:[d&&M.jsx(De,{content:p,placement:"bottom",children:M.jsx(Ke,{children:M.jsx(Fe,{variant:"tertiary",size:"small",leftIcon:M.jsx(Ne,{name:Ie.COPY}),noPadding:!0,fullWidth:!0,onClick:()=>m(e),disabled:h,children:null})})}),c&&M.jsx(De,{content:f,placement:"bottom",children:M.jsx(Ke,{children:M.jsx(Fe,{variant:"tertiary",size:"small",leftIcon:M.jsx(Ne,{name:Ie.ROCKET_LAUNCH}),noPadding:!0,fullWidth:!0,onClick:()=>b(e),disabled:h,children:null})})})]}),M.jsx(x,{value:e,onChange:r,language:i,theme:Ze[o],height:a,width:l,options:C,beforeMount:async e=>{const r=Ze[o];try{const t=Oe[r];if(t){const i=Ue[`/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")}}})]})},Xe=s.div`
355
+ position: relative;
356
+ width: ${e=>e.width||"100%"};
357
+ `,qe=s.button`
358
+ display: flex;
359
+ align-items: center;
360
+ justify-content: space-between;
361
+ width: 100%;
362
+ height: ${e=>"xsmall"===e.size?"34px":"38px"};
363
+ padding: 0 12px;
364
+ background-color: ${e=>e.disabled?"var(--grey-100)":"var(--white-900)"};
365
+ border: 1px solid
366
+ ${e=>e.error?"var(--red-error)":e.disabled?"var(--grey-200)":e.open?"var(--blue-600)":"var(--grey-300)"};
367
+ border-radius: 6px;
368
+ outline: none;
369
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
370
+ user-select: ${e=>e.disabled?"none":"auto"};
371
+ transition: all 0.2s ease;
372
+ font-family: "Inter", sans-serif;
373
+ font-size: 14px;
374
+ font-weight: 400;
375
+ line-height: 20px;
376
+ text-align: left;
377
+ color: ${e=>e.disabled?"var(--grey-400)":e.open?"var(--black-900)":"var(--grey-400)"};
378
+
379
+ &:hover:not(:disabled) {
380
+ border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
381
+ color: var(--black-900) !important;
382
+ }
383
+
384
+ &:disabled {
385
+ color: var(--grey-400) !important;
386
+ border-color: var(--grey-300);
387
+ }
388
+
389
+ &:active:not(:disabled) {
390
+ color: var(--black-900) !important;
391
+ }
392
+
393
+ &:focus {
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)"};
397
+ }
398
+ `,Qe=s.div`
399
+ width: 20px;
400
+ height: 20px;
401
+ transform: ${e=>e.open?"rotate(180deg)":"rotate(0deg)"};
402
+ transition: transform 0.2s ease;
403
+ color: var(--grey-600);
404
+ display: flex;
405
+ align-items: center;
406
+ justify-content: center;
407
+ `,Je=s.div`
408
+ text-overflow: ellipsis;
409
+ white-space: nowrap;
410
+ overflow: hidden;
411
+ flex: 1;
412
+ text-align: left;
413
+ display: block;
414
+ max-width: calc(100% - 24px);
415
+
416
+ .dropdown-menu-item {
417
+ text-overflow: ellipsis;
418
+ white-space: nowrap;
419
+ overflow: hidden;
420
+ }
421
+ `,er=s.ul`
422
+ position: absolute;
423
+ top: calc(100% + 4px);
424
+ left: 0;
425
+ width: ${e=>e.menuWidth||"calc(100% - 2px)"};
426
+ max-height: 200px;
427
+ overflow-y: auto;
428
+ background-color: var(--white-900);
429
+ border: 1px solid var(--grey-200);
430
+ border-radius: 6px;
431
+ box-shadow: 0px 4px 8px var(--black-100);
432
+ z-index: 10;
433
+ padding: 4px 0;
434
+ margin: 0;
435
+ list-style: none;
436
+ `,rr=s.div`
437
+ display: flex;
438
+ flex-direction: column;
439
+ align-items: center;
440
+ justify-content: center;
441
+ padding: 16px;
442
+ color: var(--grey-400);
443
+ `,tr=s.p`
444
+ margin: 8px 0 0 0;
445
+ font-family: "Inter", sans-serif;
446
+ font-size: 14px;
447
+ line-height: 20px;
448
+ text-align: center;
449
+ `,ir=s.li`
450
+ padding: 8px 12px;
451
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
452
+ background-color: ${e=>e.selected?"var(--blue-50)":"transparent"};
453
+ color: ${e=>e.disabled?"var(--grey-400)":(e.selected,"var(--blue-900)")};
454
+ font-family: "Inter", sans-serif;
455
+ font-size: 14px;
456
+ line-height: 20px;
457
+ transition: background-color 0.2s ease;
458
+ outline: none;
459
+
460
+ &:hover:not(:disabled) {
461
+ background-color: ${e=>e.selected?"var(--blue-50)":"var(--grey-50)"};
462
+ }
463
+
464
+ &:focus-visible {
465
+ background-color: var(--blue-50);
466
+ outline: 2px solid var(--blue-600);
467
+ outline-offset: -2px;
468
+ }
469
+ `,or=({options:e=[],value:r,placeholder:n="Select an option",disabled:a=!1,error:l=!1,size:s="small",onChange:d,onOpen:c,onClose:h,width:p,menuWidth:x})=>{const[g,f]=t(!1),[u,m]=t(r||""),b=i(null),C=i([]);o(()=>{void 0!==r&&m(r)},[r]),o(()=>{const e=e=>{b.current&&!b.current.contains(e.target)&&g&&(f(!1),h?.())};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[g,h]),o(()=>{g&&(C.current=C.current.slice(0,e.length))},[g,e.length]),o(()=>{if(g&&C.current.length>0){const r=e.findIndex(e=>e.value===u),t=r>=0?r:0;setTimeout(()=>{C.current[t]&&C.current[t]?.focus()},10)}},[g,e,u]);const v=e=>{e.disabled||(m(e.value),f(!1),d?.(e.value),h?.())},y=e.find(e=>e.value===u),w=y?y.label:n;return M.jsxs(Xe,{ref:b,width:p,children:[M.jsxs(qe,{type:"button",onClick:()=>{if(!a){const e=!g;f(e),e?c?.():h?.()}},onKeyDown:e=>{if(!a)switch(e.key){case"Enter":case" ":case"ArrowDown":e.preventDefault(),g||(f(!0),c?.());break;case"Escape":e.preventDefault(),g&&(f(!1),h?.())}},open:g,disabled:a,error:l,size:s,"aria-haspopup":"listbox","aria-expanded":g,"aria-label":n,children:[M.jsx(Je,{children:w}),M.jsx(Qe,{open:g,children:M.jsx(Ne,{name:Ie.CHEVRON_DOWN,fill:"var(--grey-600)"})})]}),g&&M.jsx(er,{role:"listbox","aria-labelledby":"dropdown-button",menuWidth:x,children:e.length>0?e.map((r,t)=>M.jsx(ir,{ref:e=>{C.current[t]=e},selected:r.value===u,disabled:r.disabled,onClick:()=>v(r),onKeyDown:r=>((r,t)=>{const i=e[t];switch(r.key){case"Enter":case" ":r.preventDefault(),i.disabled||v(i);break;case"ArrowDown":if(r.preventDefault(),t<e.length-1){let r=t+1;for(;r<e.length;){if(!e[r].disabled){C.current[r]?.focus();break}r++}}break;case"ArrowUp":if(r.preventDefault(),t>0){let r=t-1;for(;r>=0;){if(!e[r].disabled){C.current[r]?.focus();break}r--}}break;case"Escape":r.preventDefault(),f(!1),h?.();break;case"Tab":f(!1),h?.()}})(r,t),tabIndex:r.disabled?-1:0,role:"option","aria-selected":r.value===u,"aria-disabled":r.disabled,children:r.label},r.value)):M.jsxs(rr,{children:[M.jsx(Ne,{name:Ie.INBOX,fill:"var(--grey-400)",width:"24px",height:"24px"}),M.jsx(tr,{children:"No Data"})]})})]})},nr=s.div`
470
+ width: 100%;
471
+ padding: 15px;
472
+ border-radius: 4px;
473
+ margin-bottom: 16px;
474
+ background-color: #fff2f0;
475
+ border: 1px solid #ffccc7;
476
+ display: flex;
477
+ flex-direction: column;
478
+ gap: 8px;
479
+ `,ar=s.div`
480
+ display: flex;
481
+ justify-content: space-between;
482
+ align-items: flex-start;
483
+ `,lr=s.div`
484
+ color: #ff4d4f;
485
+ font-size: 18px;
486
+ margin-right: 12px;
487
+ display: flex;
488
+ align-items: center;
489
+ `,sr=s.button`
490
+ background: none;
491
+ border: none;
492
+ font-size: 16px;
493
+ cursor: pointer;
494
+ color: rgba(0, 0, 0, 0.45);
495
+ padding: 0;
496
+ line-height: 1;
497
+ &:hover {
498
+ color: rgba(0, 0, 0, 0.75);
499
+ }
500
+ `,dr=s.div`
501
+ font-weight: 500;
502
+ font-size: 16px;
503
+ display: flex;
504
+ align-items: center;
505
+ flex-grow: 1;
506
+ `,cr=s.div`
507
+ display: flex;
508
+ flex-direction: column;
509
+ gap: 8px;
510
+ width: 100%;
511
+ `,hr=s.p`
512
+ margin: 0;
513
+ padding: 0;
514
+ line-height: 1.5;
515
+ `,pr=s.span`
516
+ font-weight: ${e=>e.strong?"600":"400"};
517
+ color: ${e=>"secondary"===e.type?"rgba(0, 0, 0, 0.45)":"inherit"};
518
+ `,xr=s(pr).attrs({type:"secondary"})``,gr=s.div`
519
+ margin-left: -15px;
520
+ margin-right: -15px;
521
+ margin-bottom: -5px;
522
+ `,fr=s.div`
523
+ padding: 12px 16px;
524
+ cursor: pointer;
525
+ display: flex;
526
+ align-items: center;
527
+ user-select: none;
528
+
529
+ &:hover {
530
+ background-color: rgba(0, 0, 0, 0.02);
531
+ }
532
+
533
+ &::after {
534
+ content: "${e=>e.isActive?"▼":"▶"}";
535
+ font-size: 12px;
536
+ margin-left: 8px;
537
+ }
538
+ `,ur=s.div`
539
+ padding: ${e=>e.isVisible?"0 16px 12px":"0 16px"};
540
+ max-height: ${e=>e.isVisible?"300px":"0"};
541
+ overflow: hidden;
542
+ transition: max-height 0.3s ease;
543
+ `,mr=s.pre`
544
+ white-space: pre-wrap;
545
+ word-break: break-all;
546
+ max-height: 300px;
547
+ overflow-y: auto;
548
+ background: #f5f5f5;
549
+ padding: 10px;
550
+ border-radius: 4px;
551
+ margin: 0;
552
+ `;const br=({children:e,header:r,defaultExpanded:i=!1})=>{const[o,n]=t(i);return M.jsxs("div",{children:[M.jsx(fr,{isActive:o,onClick:()=>n(!o),children:r}),M.jsx(ur,{isVisible:o,children:e})]})},Cr=({error:e,title:r="An Error Occurred",onClose:t,showDetailsDefault:i=!1})=>{if(!e)return M.jsx(M.Fragment,{});let o="An unexpected error occurred.",n=null,a=null,l="Unknown Error";if(function(e){return"object"==typeof e&&null!==e&&"isAxiosError"in e&&!0===e.isAxiosError}(e)){if(l="Network/API Error",o=e.message,e.response){const r=e.response.status,t=e.response.statusText;o=`API Error: ${r} ${t}`;const i=e.response.data;if("string"==typeof i)n=i;else if(i&&"object"==typeof i){const e=i.detail||i.message||i.error;"string"==typeof e?n=e:(n="Check details for response data.",a=JSON.stringify(i,null,2))}else n=`Request failed with status code ${r}.`;a=`URL: ${e.config?.method?.toUpperCase()} ${e.config?.url}\nStatus: ${r} ${t}\nResponse Data:\n${a??JSON.stringify(i,null,2)}`}else e.request?(l="Network Error",o="Network Error: Could not reach the server.",n="Please check your internet connection or contact support if the problem persists.",a=`URL: ${e.config?.method?.toUpperCase()} ${e.config?.url}\nError Message: ${e.message}`):o=`Request Setup Error: ${e.message}`;e.code&&(l+=` (Code: ${e.code})`)}else if(e instanceof Error)l=e.name||"Error",o=e.message,a=e.stack??"No stack trace available.";else if("string"==typeof e)l="Message",o=e;else if("object"==typeof e&&null!==e){l="Object Error",o=e.message||e.error||"An object was thrown as an error.";try{a=JSON.stringify(e,null,2)}catch{a="Could not stringify the error object."}}return M.jsxs(nr,{type:"error",children:[M.jsxs(ar,{children:[M.jsxs(dr,{children:[M.jsx(lr,{children:"⚠️"}),r]}),t&&M.jsx(sr,{onClick:t,children:"✕"})]}),M.jsxs(cr,{children:[M.jsxs(hr,{children:[M.jsxs(pr,{strong:!0,children:[l,":"]})," ",o]}),n&&M.jsx(hr,{children:M.jsx(xr,{children:n})}),a&&M.jsx(gr,{children:M.jsx(br,{header:"Details",defaultExpanded:i,children:M.jsx(mr,{children:a})})})]})]})},vr={xsmall:d`
553
+ 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
+ `,small:d`
556
+ 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
+ `},yr=s.div`
559
+ position: relative;
560
+ display: inline-flex;
561
+ align-items: center;
562
+ width: 100%;
563
+ gap: 8px;
564
+ `,wr=s.input`
565
+ width: 100%;
566
+ border-radius: 6px;
567
+ font-family: "Inter", sans-serif;
568
+ font-size: 14px;
569
+ font-style: normal;
570
+ font-weight: 400;
571
+ line-height: 20px;
572
+ border: 1px solid
573
+ ${e=>e.error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
574
+ background-color: ${e=>e.disabled?"var(--grey-200)":"var(--white-900)"};
575
+ color: ${e=>e.disabled?"var(--grey-400)":"var(--black-900)"};
576
+ transition: all 0.2s;
577
+
578
+ ${e=>vr[e.size||"small"]}
579
+
580
+ &:hover:not(:disabled):not(:focus) {
581
+ border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
582
+ }
583
+
584
+ &:focus {
585
+ outline: none;
586
+ box-shadow: 0px 0px 0px 1px var(--white-900),
587
+ 0px 0px 0px 3px var(--blue-600);
588
+ border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
589
+ }
590
+
591
+ &:active {
592
+ outline: none;
593
+ box-shadow: 0px 0px 0px 2px var(--blue-200);
594
+ border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
595
+ }
596
+
597
+ &:disabled {
598
+ cursor: not-allowed;
599
+ user-select: none;
600
+ pointer-events: none;
601
+ }
602
+
603
+ &::placeholder {
604
+ color: var(--grey-400);
605
+ }
606
+ `,jr=s.div`
607
+ position: absolute;
608
+ display: flex;
609
+ align-items: center;
610
+ justify-content: center;
611
+ pointer-events: none;
612
+ color: var(--grey-400);
613
+ ${e=>"left"===e.position?"left: 10px;":"right: 10px;"}
614
+ ${e=>"xsmall"===e.size?"width: 16px; height: 16px;":"width: 20px; height: 20px;"}
615
+ `,kr=r(({size:e="small",iconLeft:r,iconRight:t,error:i=!1,disabled:o=!1,...n},a)=>M.jsxs(yr,{size:e,disabled:o,error:i,children:[r&&M.jsx(jr,{position:"left",size:e,children:r}),M.jsx(wr,{ref:a,size:e,hasIconLeft:!!r,hasIconRight:!!t,error:i,disabled:o,...n}),t&&M.jsx(jr,{position:"right",size:e,children:t})]}));kr.displayName="Input";const Er=s.div`
616
+ display: flex;
617
+ flex-direction: column;
618
+ gap: 4px;
619
+ `,Lr=s.div`
620
+ display: flex;
621
+ align-items: center;
622
+ gap: 6px;
623
+ color: var(--grey-600);
624
+ text-overflow: ellipsis;
625
+ font-family: "Inter", sans-serif;
626
+ font-size: 13px;
627
+ font-style: normal;
628
+ font-weight: 400;
629
+ line-height: 18px;
630
+ `,Mr=()=>M.jsx(Ne,{name:Ie.INFORMATION_CIRCLE_MICRO,fill:"var(--grey-600)"}),_r=s.span`
631
+ display: inline-flex;
632
+ cursor: help;
633
+ `,Ar=({children:e,infoText:r,className:t})=>M.jsx(Er,{className:t,children:M.jsxs(Lr,{children:[e,r&&M.jsx(De,{content:r,placement:"bottom",children:M.jsx(_r,{children:M.jsx(Mr,{})})})]})});var Rr={'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 Ir=s.div`
634
+ display: flex;
635
+ gap: 8px;
636
+ align-items: center;
637
+ `,Nr=s.code`
638
+ background-color: rgba(0, 0, 0, 0.05);
639
+ border-radius: 3px;
640
+ font-family: "Courier New", Courier, monospace;
641
+ padding: 0.2em 0.4em;
642
+ font-size: 85%;
643
+ `,Tr=({inline:r,className:i,children:o,...n})=>{const a=/language-(\w+)/.exec(i||""),l=a?a[1]:void 0,s=String(o).replace(/\n$/,""),[d,c]=t(!1),h=e=>{console.log(e)};return!r&&a?M.jsxs("div",{style:{position:"relative",marginBottom:"1em"},children:[M.jsx(Ir,{style:{position:"absolute",top:8,right:8,zIndex:1},children:M.jsxs(B,{size:"small",leftIcon:M.jsx(Ne,{name:Ie.COPY}),onClick:async()=>{if(!navigator.clipboard)return console.error("Clipboard API not available."),void h("Clipboard access not available or denied.");try{await navigator.clipboard.writeText(s),c(!0),h("Code copied to clipboard!"),setTimeout(()=>c(!1),2e3)}catch(e){console.error("Failed to copy code: ",e),c(!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:[d?"Copied!":"Copy"," "]})}),e.createElement(f,{style:Rr,language:l,PreTag:"div",children:s})]}):M.jsx(Nr,{...n,children:o})},zr=({markdown:e,codeRenderer:r})=>M.jsx(g,{remarkPlugins:[m],rehypePlugins:[u],components:{code:r||Tr},children:e}),Br=s.div`
644
+ display: flex;
645
+ align-items: center;
646
+ justify-content: space-between;
647
+ font-size: 14px;
648
+ gap: 10px;
649
+ color: ${e=>e.active?"var(--blue-900)":"var(--grey-600)"};
650
+ cursor: pointer;
651
+ transition: all 0.2s;
652
+ user-select: none;
653
+ 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"};
656
+
657
+ &:hover {
658
+ background-color: ${e=>e.active?"var(--grey-100)":"var(--grey-50)"};
659
+ }
660
+
661
+ &:last-child {
662
+ border-bottom: none;
663
+ }
664
+ `,Hr=s.div`
665
+ display: flex;
666
+ align-items: center;
667
+ gap: 12px;
668
+ flex: 1;
669
+ `,$r=s.div`
670
+ display: flex;
671
+ align-items: center;
672
+ justify-content: flex-start;
673
+ flex: 1;
674
+ width: 100%;
675
+ `,Sr=r(({label:e,checked:r=!1,showCheckbox:t=!1,onClick:i,onCheckChange:o,active:n=!1,className:a},l)=>{const s=e=>{console.log("Checkbox clicked!"),e.stopPropagation()};return M.jsxs(Br,{ref:l,active:n,showCheckbox:t,className:a,onClick:()=>{console.log("MenuItem clicked!"),i&&i()},role:"button",tabIndex:0,children:[!t&&M.jsx(Hr,{children:e}),t&&M.jsx($r,{onClick:s,children:M.jsx(Se,{checked:r,onChange:e=>{console.log("Checkbox changed:",e),o&&o(e)},onClick:s,label:e})})]})});Sr.displayName="MenuItem";const Or=c`
676
+ body.stop-scrolling {
677
+ overflow: hidden;
678
+ }
679
+ `,Pr=h`
680
+ from {
681
+ opacity: 0;
682
+ }
683
+ to {
684
+ opacity: 1;
685
+ }
686
+ `,Vr=h`
687
+ from {
688
+ opacity: 1;
689
+ }
690
+ to {
691
+ opacity: 0;
692
+ }
693
+ `,Dr=h`
694
+ from {
695
+ opacity: 0;
696
+ }
697
+ to {
698
+ opacity: 1;
699
+ }
700
+ `,Ur=h`
701
+ from {
702
+ opacity: 1;
703
+ }
704
+ to {
705
+ opacity: 0;
706
+ }
707
+ `,Zr=s.div`
708
+ position: fixed;
709
+ top: 0;
710
+ right: 0;
711
+ bottom: 0;
712
+ left: 0;
713
+ z-index: 10000;
714
+ animation: ${e=>e.isFadeOut?Vr:Pr} 0.3s
715
+ ease forwards;
716
+ display: flex;
717
+ align-items: center;
718
+ justify-content: center;
719
+ `,Wr=s.button`
720
+ background-color: var(--black-500);
721
+ position: absolute;
722
+ top: 0;
723
+ right: 0;
724
+ bottom: 0;
725
+ left: 0;
726
+ backdrop-filter: blur(2px);
727
+ box-shadow: none;
728
+ border: none;
729
+ height: 100%;
730
+ animation: ${e=>e.isFadeOut?Ur:Dr}
731
+ 0.3s ease forwards;
732
+ `,Gr=s.div`
733
+ position: relative;
734
+ background: var(--theme-background, var(--white-900));
735
+ border-radius: var(--theme-radius-large, 16px);
736
+ width: ${e=>e.width||"480px"};
737
+ max-width: 90vw;
738
+ padding: 0;
739
+ box-shadow: 0px 4px 12px 0px var(--black-100),
740
+ 0px 2px 4px -2px var(--black-100);
741
+ z-index: 1;
742
+ transform: ${e=>e.isFadeOut?"scale(0.95)":"scale(1)"};
743
+ opacity: ${e=>e.isFadeOut?0:1};
744
+ transition: transform 0.3s ease-out, opacity 0.3s ease-out;
745
+ max-height: 90vh;
746
+ display: flex;
747
+ flex-direction: column;
748
+
749
+ @media (max-width: 767px) {
750
+ width: calc(100% - 40px) !important;
751
+ }
752
+ `,Kr=s.div`
753
+ display: flex;
754
+ flex-direction: row;
755
+ justify-content: space-between;
756
+ align-items: center;
757
+ padding: 12px 24px;
758
+ border-bottom: 1px solid var(--grey-100);
759
+ `,Fr=s.h3`
760
+ margin: 0;
761
+ font-family: "Inter", sans-serif;
762
+ font-size: 18px;
763
+ font-style: normal;
764
+ font-weight: 500;
765
+ line-height: 28px;
766
+ color: var(--black-900);
767
+ `,Yr=s.button`
768
+ background: none;
769
+ border: none;
770
+ cursor: pointer;
771
+ padding: 0;
772
+ display: flex;
773
+ align-items: center;
774
+ justify-content: center;
775
+ color: var(--black-900);
776
+ width: 24px;
777
+ height: 24px;
778
+
779
+ &:hover {
780
+ color: var(--black-900);
781
+ }
782
+
783
+ svg {
784
+ width: 20px;
785
+ height: 20px;
786
+ }
787
+ `,Xr=s.div`
788
+ padding: 12px;
789
+ display: flex;
790
+ justify-content: flex-end;
791
+ gap: 12px;
792
+
793
+ @media (max-width: 767px) {
794
+ justify-content: center !important;
795
+
796
+ .button {
797
+ display: flex !important;
798
+ width: 100%;
799
+ }
800
+ }
801
+ `,qr=s.div`
802
+ color: var(--grey-500);
803
+ font-family: "Inter", sans-serif;
804
+ font-size: 14px;
805
+ font-style: normal;
806
+ font-weight: 400;
807
+ line-height: 20px;
808
+ margin: 0 24px;
809
+ overflow-y: auto;
810
+ flex: 1;
811
+ max-height: calc(90vh - 140px); /* Account for header and footer */
812
+ `,Qr=({isOpen:e,onClose:r,onCloseLabel:n,onConfirm:a,onConfirmLabel:l,children:s,width:d="400px",className:c="",hideActions:h=!1,title:p})=>{const[x,g]=t(!1),[f,u]=t(!1),m=i(null);o(()=>{if(e)g(!0),u(!1);else{if(!x)return;u(!0),m.current=setTimeout(()=>{g(!1)},300)}return()=>{m.current&&clearTimeout(m.current)}},[e,x]),o(()=>(x?"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")}),[x]);const b=()=>{u(!0),m.current=setTimeout(()=>{r()},300)};return x&&M.jsxs(M.Fragment,{children:[M.jsx(Or,{}),M.jsxs(Zr,{isFadeOut:f,className:c,children:[M.jsx(Wr,{isFadeOut:f,onClick:b}),M.jsxs(Gr,{isFadeOut:f,width:d,children:[p&&M.jsxs(Kr,{children:[M.jsx(Fr,{children:p}),M.jsx(Yr,{onClick:b,children:M.jsx(Ne,{name:Ie.CLOSE})})]}),!p&&M.jsx(Yr,{onClick:b,style:{position:"absolute",top:"16px",right:"16px"},children:M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[M.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),M.jsx(qr,{children:s}),!h&&M.jsxs(Xr,{children:[M.jsx(B,{variant:"tertiary",onClick:b,className:"button",size:"medium",fullWidth:!0,children:n||"Cancel"}),M.jsx(B,{variant:"primary",onClick:a,className:"button",size:"medium",fullWidth:!0,children:l||"Confirm"})]})]})]})]})},Jr=s.div`
813
+ position: absolute;
814
+ background-color: var(--white-900);
815
+ border-radius: 8px;
816
+ box-shadow: 0 3px 6px -4px var(--black-200), 0 6px 16px 0 var(--black-100),
817
+ 0 9px 28px 8px var(--black-50);
818
+ z-index: 1000;
819
+ max-width: 450px;
820
+ min-width: 400px;
821
+ opacity: 0;
822
+ visibility: hidden;
823
+ transition: opacity 0.2s, visibility 0.2s;
824
+ user-select: none;
825
+ padding: 0;
826
+ font-family: "Inter", sans-serif;
827
+
828
+ ${e=>e.isVisible&&d`
829
+ opacity: 1;
830
+ visibility: visible;
831
+ `}
832
+
833
+ ${e=>{switch(e.placement){case"top":return d`
834
+ bottom: 100%;
835
+ left: 50%;
836
+ transform: translateX(-50%) translateY(-15px);
837
+
838
+ &::after {
839
+ content: "";
840
+ position: absolute;
841
+ top: 100%;
842
+ left: 50%;
843
+ margin-left: -6px;
844
+ border-width: 6px;
845
+ border-style: solid;
846
+ border-color: var(--white-900) transparent transparent transparent;
847
+ }
848
+ `;case"topLeft":return d`
849
+ bottom: 100%;
850
+ left: 0;
851
+ transform: translateY(-15px);
852
+
853
+ &::after {
854
+ content: "";
855
+ position: absolute;
856
+ top: 100%;
857
+ left: 12px;
858
+ border-width: 6px;
859
+ border-style: solid;
860
+ border-color: var(--white-900) transparent transparent transparent;
861
+ }
862
+ `;case"topRight":return d`
863
+ bottom: 100%;
864
+ right: 0;
865
+ transform: translateY(-15px);
866
+
867
+ &::after {
868
+ content: "";
869
+ position: absolute;
870
+ top: 100%;
871
+ right: 12px;
872
+ border-width: 6px;
873
+ border-style: solid;
874
+ border-color: var(--white-900) transparent transparent transparent;
875
+ }
876
+ `;case"left":return d`
877
+ top: 50%;
878
+ right: 100%;
879
+ transform: translateY(-50%) translateX(-15px);
880
+
881
+ &::after {
882
+ content: "";
883
+ position: absolute;
884
+ top: 50%;
885
+ left: 100%;
886
+ margin-top: -6px;
887
+ border-width: 6px;
888
+ border-style: solid;
889
+ border-color: transparent transparent transparent var(--white-900);
890
+ }
891
+ `;case"leftTop":return d`
892
+ top: 0;
893
+ right: 100%;
894
+ transform: translateX(-15px);
895
+
896
+ &::after {
897
+ content: "";
898
+ position: absolute;
899
+ top: 12px;
900
+ left: 100%;
901
+ border-width: 6px;
902
+ border-style: solid;
903
+ border-color: transparent transparent transparent var(--white-900);
904
+ }
905
+ `;case"leftBottom":return d`
906
+ bottom: 0;
907
+ right: 100%;
908
+ transform: translateX(-15px);
909
+
910
+ &::after {
911
+ content: "";
912
+ position: absolute;
913
+ bottom: 12px;
914
+ left: 100%;
915
+ border-width: 6px;
916
+ border-style: solid;
917
+ border-color: transparent transparent transparent var(--white-900);
918
+ }
919
+ `;case"right":return d`
920
+ top: 50%;
921
+ left: 100%;
922
+ transform: translateY(-50%) translateX(15px);
923
+
924
+ &::after {
925
+ content: "";
926
+ position: absolute;
927
+ top: 50%;
928
+ right: 100%;
929
+ margin-top: -6px;
930
+ border-width: 6px;
931
+ border-style: solid;
932
+ border-color: transparent var(--white-900) transparent transparent;
933
+ }
934
+ `;case"rightTop":return d`
935
+ top: 0;
936
+ left: 100%;
937
+ transform: translateX(15px);
938
+
939
+ &::after {
940
+ content: "";
941
+ position: absolute;
942
+ top: 12px;
943
+ right: 100%;
944
+ border-width: 6px;
945
+ border-style: solid;
946
+ border-color: transparent var(--white-900) transparent transparent;
947
+ }
948
+ `;case"rightBottom":return d`
949
+ bottom: 0;
950
+ left: 100%;
951
+ transform: translateX(15px);
952
+
953
+ &::after {
954
+ content: "";
955
+ position: absolute;
956
+ bottom: 12px;
957
+ right: 100%;
958
+ border-width: 6px;
959
+ border-style: solid;
960
+ border-color: transparent var(--white-900) transparent transparent;
961
+ }
962
+ `;case"bottom":return d`
963
+ top: 100%;
964
+ left: 50%;
965
+ transform: translateX(-50%) translateY(15px);
966
+
967
+ &::after {
968
+ content: "";
969
+ position: absolute;
970
+ bottom: 100%;
971
+ left: 50%;
972
+ margin-left: -6px;
973
+ border-width: 6px;
974
+ border-style: solid;
975
+ border-color: transparent transparent var(--white-900) transparent;
976
+ }
977
+ `;case"bottomLeft":return d`
978
+ top: 100%;
979
+ left: 0;
980
+ transform: translateY(15px);
981
+
982
+ &::after {
983
+ content: "";
984
+ position: absolute;
985
+ bottom: 100%;
986
+ left: 12px;
987
+ border-width: 6px;
988
+ border-style: solid;
989
+ border-color: transparent transparent var(--white-900) transparent;
990
+ }
991
+ `;case"bottomRight":return d`
992
+ top: 100%;
993
+ right: 0;
994
+ transform: translateY(15px);
995
+
996
+ &::after {
997
+ content: "";
998
+ position: absolute;
999
+ bottom: 100%;
1000
+ right: 12px;
1001
+ border-width: 6px;
1002
+ border-style: solid;
1003
+ border-color: transparent transparent var(--white-900) transparent;
1004
+ }
1005
+ `;default:return""}}}
1006
+ `,et=s.div`
1007
+ padding: 12px 16px;
1008
+ color: var(--black-800);
1009
+ font-weight: 600;
1010
+ font-size: 14px;
1011
+ border-bottom: 1px solid var(--grey-100);
1012
+ `,rt=s.div`
1013
+ padding: 12px 16px;
1014
+ color: var(--grey-600);
1015
+ font-size: 14px;
1016
+ `,tt=s.div`
1017
+ display: flex;
1018
+ justify-content: flex-end;
1019
+ gap: 8px;
1020
+ padding: 8px 16px 12px;
1021
+ `,it=s.div`
1022
+ position: relative;
1023
+ display: inline-block;
1024
+ `,ot=({title:e,description:r,onConfirm:n,onCancel:a,okText:l="OK",cancelText:s="Cancel",placement:d="top",children:c,className:h,okButtonProps:p,cancelButtonProps:x,...g})=>{const[f,u]=t(!1),m=i(null);o(()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&u(!1)};return f&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[f]);return M.jsxs(it,{ref:m,className:h,...g,children:[M.jsx("div",{onClick:()=>{u(!f)},children:c}),M.jsxs(Jr,{placement:d,isVisible:f,children:[e&&M.jsx(et,{children:e}),r&&M.jsx(rt,{children:r}),M.jsxs(tt,{children:[M.jsx(B,{variant:"tertiary",size:"small",onClick:e=>{u(!1),a?.(e)},...x,children:s}),M.jsx(B,{variant:"primary",size:"small",onClick:e=>{u(!1),n?.(e)},...p,children:l})]})]})]})};ot.displayName="PopConfirm";const nt=s.div`
1025
+ display: flex;
1026
+ align-items: center;
1027
+ gap: 6px;
1028
+ color: var(--grey-600);
1029
+ text-overflow: ellipsis;
1030
+ font-family: "Inter", sans-serif;
1031
+ font-size: 13px;
1032
+ font-style: normal;
1033
+ font-weight: 400;
1034
+ line-height: 18px;
1035
+ `,at=()=>M.jsx(Ne,{name:Ie.CHECK_CIRCLE,fill:"var(--grey-600)"}),lt=({children:e,showCheck:r=!1,className:t})=>M.jsxs(nt,{className:t,children:[r&&M.jsx(at,{}),e]}),st={small:d`
1036
+ font-family: "Inter", sans-serif;
1037
+ font-size: 14px;
1038
+ font-style: normal;
1039
+ font-weight: 600;
1040
+ line-height: 20px;
1041
+ `,medium:d`
1042
+ font-family: "Inter", sans-serif;
1043
+ font-size: 16px;
1044
+ font-style: normal;
1045
+ font-weight: 500;
1046
+ line-height: 24px;
1047
+ `},dt=s.button`
1048
+ position: relative;
1049
+ display: inline-flex;
1050
+ align-items: center;
1051
+ justify-content: center;
1052
+ padding: 12px 16px;
1053
+ background: transparent;
1054
+ border: none;
1055
+ outline: none;
1056
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
1057
+ ${e=>st[e.size]}
1058
+ color: ${e=>e.disabled?"var(--grey-400)":e.active?"var(--blue-900)":"var(--grey-500)"};
1059
+ transition: all 0.2s ease;
1060
+
1061
+ &:hover:not(:disabled) {
1062
+ color: var(--blue-900);
1063
+ }
1064
+
1065
+ &:after {
1066
+ content: "";
1067
+ position: absolute;
1068
+ width: 100%;
1069
+ height: 3px;
1070
+ background-color: ${e=>e.disabled?"var(--grey-400)":"var(--blue-900)"};
1071
+ bottom: 0;
1072
+ left: 0;
1073
+ opacity: ${e=>e.active?1:0};
1074
+ transition: opacity 0.2s ease;
1075
+ }
1076
+
1077
+ &:focus {
1078
+ outline: none;
1079
+ box-shadow: none;
1080
+ }
1081
+ `,ct=({label:e,active:r=!1,disabled:t=!1,size:i="medium",onClick:o})=>M.jsx(dt,{active:r,disabled:t,size:i,onClick:o,children:e}),ht=s.td`
1082
+ background-color: var(--white-900);
1083
+ border-right: 1px solid var(--grey-200);
1084
+ border-bottom: 1px solid var(--grey-200);
1085
+ padding: 10px 12px;
1086
+ font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
1087
+ font-size: 14px;
1088
+ font-weight: 400;
1089
+ line-height: 20px;
1090
+ color: var(--grey-900);
1091
+ opacity: 0.8;
1092
+ text-align: ${e=>e.align||"left"};
1093
+ width: ${e=>e.width||"auto"};
1094
+ white-space: nowrap;
1095
+ box-sizing: border-box;
1096
+
1097
+ &:last-child {
1098
+ border-right: 1px solid var(--grey-200);
1099
+ }
1100
+ `,pt=r(({children:e,align:r="left",width:t,className:i,...o},n)=>M.jsx(ht,{ref:n,align:r,width:t,className:i,...o,children:e}));pt.displayName="TableCell";const xt=s.th`
1101
+ background-color: var(--grey-50);
1102
+ border-right: 1px solid var(--grey-200);
1103
+ border-bottom: 1px solid var(--grey-200);
1104
+ padding: 8px 12px;
1105
+ height: 35px;
1106
+ box-sizing: border-box;
1107
+ width: ${e=>e.width||"auto"};
1108
+
1109
+ &:last-child {
1110
+ border-right: 1px solid var(--grey-200);
1111
+ }
1112
+ `,gt=s.div`
1113
+ display: flex;
1114
+ align-items: center;
1115
+ gap: 4px;
1116
+ cursor: ${e=>e.clickable?"pointer":"default"};
1117
+ user-select: none;
1118
+ `,ft=s.span`
1119
+ font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
1120
+ font-size: 13px;
1121
+ font-weight: 600;
1122
+ line-height: 18px;
1123
+ color: var(--grey-900);
1124
+ white-space: nowrap;
1125
+ flex-shrink: 0;
1126
+ `,ut=s.svg`
1127
+ width: 16px;
1128
+ height: 16px;
1129
+ flex-shrink: 0;
1130
+ `,mt=s.div`
1131
+ padding: 10px 4px;
1132
+ height: 35px;
1133
+ box-sizing: border-box;
1134
+ display: flex;
1135
+ align-items: center;
1136
+ justify-content: flex-start;
1137
+
1138
+ & > div {
1139
+ height: 32px;
1140
+ }
1141
+
1142
+ li {
1143
+ text-align: left;
1144
+ }
1145
+ `,bt=r(({children:e,sortable:r=!1,sortDirection:t=null,onSort:i,filterable:o=!1,filterOptions:n=[],filterValue:a,onFilterChange:l,width:s,className:d,...c},h)=>o?M.jsx(xt,{ref:h,width:s,className:d,...c,children:M.jsx(mt,{children:M.jsx(or,{options:n,value:a,onChange:l,placeholder:"Placeholder",size:"small",width:"100%"})})}):M.jsx(xt,{ref:h,width:s,className:d,...c,children:M.jsxs(gt,{clickable:r,onClick:()=>{r&&i&&i()},children:[M.jsx(ft,{children:e}),r&&M.jsxs(ut,{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[M.jsx("path",{d:"M8 3.33337L10.6667 6.00004H5.33333L8 3.33337Z",fill:"asc"===t?"var(--grey-900)":"var(--grey-400)"}),M.jsx("path",{d:"M8 12.6667L5.33333 10H10.6667L8 12.6667Z",fill:"desc"===t?"var(--grey-900)":"var(--grey-400)"})]})]})}));bt.displayName="TableHeaderCell";const Ct={xsmall:d`
1146
+ min-height: ${e=>e.rows?"auto":"80px"};
1147
+ padding: 10px;
1148
+ `,small:d`
1149
+ min-height: ${e=>e.rows?"auto":"100px"};
1150
+ padding: 12px;
1151
+ `},vt=s.div`
1152
+ position: relative;
1153
+ display: inline-flex;
1154
+ align-items: center;
1155
+ width: ${e=>e.fullWidth?"100%":"auto"};
1156
+ gap: 8px;
1157
+ `,yt=s.textarea`
1158
+ width: 100%;
1159
+ border-radius: 6px;
1160
+ font-family: "Inter", sans-serif;
1161
+ font-style: normal;
1162
+ font-weight: 400;
1163
+ line-height: 20px;
1164
+ border: 1px solid
1165
+ ${e=>e.error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
1166
+ background-color: ${e=>e.disabled?"var(--grey-200)":"var(--white-900)"};
1167
+ color: ${e=>e.disabled?"var(--grey-400)":"var(--black-900)"};
1168
+ transition: all 0.2s;
1169
+ resize: vertical;
1170
+ font-size: 14px;
1171
+
1172
+ ${e=>Ct[e.size||"small"]}
1173
+
1174
+ &:hover:not(:disabled):not(:focus) {
1175
+ border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
1176
+ }
1177
+
1178
+ &:focus {
1179
+ outline: none;
1180
+ box-shadow: 0px 0px 0px 1px var(--white-900),
1181
+ 0px 0px 0px 3px var(--blue-600);
1182
+ border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
1183
+ }
1184
+
1185
+ &:active {
1186
+ outline: none;
1187
+ box-shadow: 0px 0px 0px 2px var(--blue-200);
1188
+ border-color: ${e=>e.error?"var(--red-error)":"var(--blue-600)"};
1189
+ }
1190
+
1191
+ &:disabled {
1192
+ cursor: not-allowed;
1193
+ user-select: none;
1194
+ pointer-events: none;
1195
+ }
1196
+
1197
+ &::placeholder {
1198
+ color: var(--grey-400);
1199
+ }
1200
+ `,wt=r(({size:e="small",error:r=!1,disabled:t=!1,fullWidth:i=!1,rows:o,...n},a)=>M.jsx(vt,{fullWidth:i,disabled:t,error:r,children:M.jsx(yt,{ref:a,size:e,error:r,disabled:t,rows:o,...n})}));wt.displayName="Textarea";const jt={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)"}},kt=s.div`
1201
+ display: flex;
1202
+ padding: 8px;
1203
+ gap: 8px;
1204
+ align-items: flex-start;
1205
+ border-radius: 8px;
1206
+ background-color: ${e=>jt[e.type].backgroundColor};
1207
+ border: 1px solid ${e=>jt[e.type].borderColor};
1208
+ width: 100%;
1209
+ box-sizing: border-box;
1210
+ `,Et=s.div`
1211
+ display: flex;
1212
+ flex-direction: column;
1213
+ gap: 4px;
1214
+ flex: 1;
1215
+ `,Lt=s.h3`
1216
+ margin: 0;
1217
+ color: var(--black-900);
1218
+ font-family: "Inter", sans-serif;
1219
+ font-size: 16px;
1220
+ font-style: normal;
1221
+ font-weight: 400;
1222
+ line-height: 24px;
1223
+ `,Mt=s.p`
1224
+ margin: 0;
1225
+ color: var(--grey-500);
1226
+ text-overflow: ellipsis;
1227
+ font-family: "Inter", sans-serif;
1228
+ font-size: 13px;
1229
+ font-style: normal;
1230
+ font-weight: 400;
1231
+ line-height: 18px;
1232
+ `,_t=({color:e})=>M.jsx(Ne,{name:Ie.INFORMATION_CIRCLE,fill:e}),At=({color:e})=>M.jsx(Ne,{name:Ie.CHECK_CIRCLE,fill:e}),Rt=({color:e})=>M.jsx(Ne,{name:Ie.EXCLAMATION_TRIANGLE,fill:e}),It=({color:e})=>M.jsx(Ne,{name:Ie.EXCLAMATION_CIRCLE,fill:e}),Nt=({color:e})=>M.jsx(Ne,{name:Ie.EXCLAMATION_TRIANGLE,fill:e}),Tt=(e,r)=>{switch(e){case"info":return M.jsx(_t,{color:r});case"success":return M.jsx(At,{color:r});case"warning":return M.jsx(Rt,{color:r});case"danger":return M.jsx(It,{color:r});default:return M.jsx(Nt,{color:r})}},zt=({type:e="default",heading:r,description:t,className:i})=>M.jsxs(kt,{type:e,className:i,children:[Tt(e,jt[e].iconColor),M.jsxs(Et,{children:[M.jsx(Lt,{children:r}),t&&M.jsx(Mt,{children:t})]})]}),Bt=s.div`
1233
+ display: flex;
1234
+ align-items: center;
1235
+ gap: 8px;
1236
+ opacity: ${({disabled:e})=>e?.6:1};
1237
+ cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1238
+ `,Ht=s.div`
1239
+ position: relative;
1240
+ width: 32px;
1241
+ height: 20px;
1242
+ background-color: ${({checked:e})=>e?"var(--blue-600)":"var(--grey-500)"};
1243
+ border-radius: 100px;
1244
+ border: 2px solid var(--black-200);
1245
+ transition: all 0.2s ease;
1246
+ cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
1247
+ box-sizing: border-box;
1248
+ `,$t=s.div`
1249
+ position: absolute;
1250
+ top: 0px;
1251
+ left: ${({checked:e})=>e?"12px":"0px"};
1252
+ width: 16px;
1253
+ height: 16px;
1254
+ background-color: var(--white-900);
1255
+ border-radius: 50%;
1256
+ box-shadow: 0 1px 3px var(--black-300);
1257
+ transition: all 0.2s ease;
1258
+ `,St=s.span`
1259
+ font-size: 16px;
1260
+ font-style: normal;
1261
+ font-weight: 400;
1262
+ line-height: 24px;
1263
+ user-select: none;
1264
+ pointer-events: none;
1265
+ color: var(--grey-500);
1266
+ `,Ot=({checked:e=!1,onChange:r,disabled:i=!1,label:o,className:n})=>{const[a,l]=t(e);return M.jsxs(Bt,{disabled:i,className:n,onClick:()=>{if(i)return;const e=!a;l(e),r?.(e)},children:[M.jsx(Ht,{checked:a,disabled:i,children:M.jsx($t,{checked:a})}),o&&M.jsx(St,{children:o})]})},Pt=s.div`
1267
+ display: flex;
1268
+ align-items: center;
1269
+ justify-content: space-between;
1270
+ height: auto;
1271
+ width: 100%;
1272
+ padding: 16px 28px;
1273
+ box-sizing: border-box;
1274
+ border-bottom: 1px solid var(--grey-200);
1275
+ background-color: var(--white-900);
1276
+ `,Vt=s.div`
1277
+ color: var(--black-900);
1278
+ font-family: "Inter", sans-serif;
1279
+ font-size: 18px;
1280
+ font-style: normal;
1281
+ font-weight: 500;
1282
+ line-height: 28px;
1283
+ `,Dt=s.div`
1284
+ display: flex;
1285
+ align-items: center;
1286
+ gap: 12px;
1287
+ `,Ut=s.div`
1288
+ display: flex;
1289
+ align-items: center;
1290
+ gap: 12px;
1291
+ cursor: pointer;
1292
+ border-radius: 4px;
1293
+
1294
+ &:hover {
1295
+ background-color: var(--grey-100);
1296
+ }
1297
+ `,Zt=s.div`
1298
+ width: 32px;
1299
+ height: 32px;
1300
+ border-radius: 50%;
1301
+ background-color: var(--blue-100);
1302
+ background-image: ${e=>e.src?`url(${e.src})`:"none"};
1303
+ background-size: cover;
1304
+ background-position: center;
1305
+ display: flex;
1306
+ align-items: center;
1307
+ justify-content: center;
1308
+ color: var(--blue-600);
1309
+ font-weight: 500;
1310
+ font-size: 14px;
1311
+ font-family: "Inter", sans-serif;
1312
+ `,Wt=s.div`
1313
+ font-family: "Inter", sans-serif;
1314
+ color: var(--grey-400);
1315
+ font-size: 16px;
1316
+ font-style: normal;
1317
+ font-weight: 400;
1318
+ line-height: 24px;
1319
+ `,Gt=s(B)`
1320
+ width: 32px;
1321
+ height: 32px;
1322
+ padding: 0;
1323
+ min-height: 0;
1324
+ border-radius: 4px;
1325
+ `,Kt=s.div`
1326
+ height: 20px;
1327
+ width: 1px;
1328
+ background-color: var(--grey-200);
1329
+ margin: 0;
1330
+ `,Ft=({hostname:e,userProfile:r,onHomeClick:t,onSettingsClick:i,onUserProfileClick:o})=>{return M.jsxs(Pt,{children:[M.jsx(Vt,{children:e}),M.jsxs(Dt,{children:[M.jsx(Gt,{variant:"tertiary",size:"small",onClick:t,"aria-label":"Home",children:M.jsx(Ne,{name:Ie.HOME,width:"20",height:"20",fill:"var(--grey-600)"})}),M.jsx(Gt,{variant:"tertiary",size:"small",onClick:i,"aria-label":"Settings",children:M.jsx(Ne,{name:Ie.GEAR,width:"20",height:"20",fill:"var(--grey-600)"})}),M.jsx(Kt,{}),M.jsxs(Ut,{onClick:o,children:[M.jsx(Zt,{src:r.avatar,children:!r.avatar&&(n=r.name,n.split(" ").map(e=>e.charAt(0)).join("").toUpperCase().substring(0,2))}),M.jsx(Wt,{children:r.name})]})]})]});var n},Yt=s.div`
1331
+ position: fixed;
1332
+ top: 0;
1333
+ left: 0;
1334
+ width: 100vw;
1335
+ height: 100vh;
1336
+ background: var(--black-100);
1337
+ z-index: 1300;
1338
+ display: flex;
1339
+ align-items: center;
1340
+ justify-content: center;
1341
+ `,Xt=s.div`
1342
+ background: var(--white-900);
1343
+ border-radius: 20px;
1344
+ box-shadow: 0 2px 16px var(--black-100);
1345
+ min-width: 600px;
1346
+ max-width: 90vw;
1347
+ min-height: 500px;
1348
+ padding: 0;
1349
+ display: flex;
1350
+ flex-direction: column;
1351
+ `,qt=s.div`
1352
+ display: flex;
1353
+ align-items: center;
1354
+ justify-content: space-between;
1355
+ padding: 20px 24px 0 24px;
1356
+ `,Qt=s.div`
1357
+ display: flex;
1358
+ align-items: center;
1359
+ gap: 8px;
1360
+ `,Jt=s.span`
1361
+ font-weight: 600;
1362
+ font-size: 20px;
1363
+ `,ei=s.button`
1364
+ background: none;
1365
+ border: none;
1366
+ font-size: 20px;
1367
+ cursor: pointer;
1368
+ `,ri=s.div`
1369
+ padding: 24px;
1370
+
1371
+ color: var(--black-900);
1372
+ font-family: "Inter", sans-serif;
1373
+ font-size: 14px;
1374
+ font-style: normal;
1375
+ font-weight: 400;
1376
+ line-height: 20px;
1377
+ `,ti=s.div`
1378
+ margin: 0 24px;
1379
+ background: var(--blue-900);
1380
+ color: var(--white-900);
1381
+ border-radius: 12px;
1382
+ padding: 0;
1383
+ font-size: 16px;
1384
+ font-weight: 500;
1385
+ word-break: break-word;
1386
+ box-shadow: 0 1px 4px var(--black-50);
1387
+ `,ii=s.textarea`
1388
+ width: 100%;
1389
+ min-height: 48px;
1390
+ background: transparent;
1391
+ color: var(--white-900);
1392
+ border: none;
1393
+ outline: none;
1394
+ resize: vertical;
1395
+ font-family: "Inter", sans-serif;
1396
+ font-size: 14px;
1397
+ font-style: normal;
1398
+ font-weight: 400;
1399
+ line-height: 20px;
1400
+ padding: 16px 20px;
1401
+ border-radius: 12px;
1402
+ box-sizing: border-box;
1403
+ `,oi=s.div`
1404
+ padding: 24px;
1405
+ padding-bottom: 0;
1406
+ flex: 1;
1407
+ `,ni=s.div`
1408
+ border-radius: 20px;
1409
+ overflow: hidden;
1410
+ background: var(--blue-900);
1411
+ min-height: 200px;
1412
+ position: relative;
1413
+ `,ai=s.div`
1414
+ display: flex;
1415
+ align-items: center;
1416
+ gap: 12px;
1417
+ padding: 24px;
1418
+ padding-top: 16px;
1419
+ background: var(--white-900);
1420
+ border-bottom-left-radius: 20px;
1421
+ border-bottom-right-radius: 20px;
1422
+ `,li=s(B)`
1423
+ min-width: 100px;
1424
+ display: flex;
1425
+ align-items: center;
1426
+ gap: 6px;
1427
+ `,si=({open:r,title:i,prompt:o,initialCode:n="",userQuery:a="",onUserQueryChange:l,onCopy:s,onLaunch:d,onSend:c,onCancel:h})=>{const[p,x]=t(n),[g,f]=t(""),[u,m]=t(a);return e.useEffect(()=>{m(a)},[a]),r?M.jsx(Yt,{children:M.jsxs(Xt,{children:[M.jsxs(qt,{children:[M.jsxs(Qt,{children:[M.jsx(Ne,{name:Ie.TETRASCIENCE_ICON,fill:"var(--blue-600)"}),M.jsx(Jt,{children:i})]}),M.jsx(ei,{onClick:h,children:M.jsx(Ne,{name:Ie.CLOSE,width:"20",height:"20",fill:"var(--black-900)"})})]}),M.jsx(ri,{children:o}),M.jsx(ti,{children:M.jsx(ii,{value:u,onChange:e=>{m(e.target.value),l&&l(e.target.value)},rows:2,placeholder:"Type your question here..."})}),M.jsx(oi,{children:M.jsx(ni,{children:M.jsx(Ye,{value:p,onChange:e=>x(e??""),language:"python",theme:"dark",height:200,onCopy:s,onLaunch:d})})}),M.jsxs(ai,{children:[M.jsx(kr,{value:g,onChange:e=>f(e.target.value),placeholder:"Ask us anything related to your work...",size:"small",onKeyDown:e=>{"Enter"===e.key&&c(g)}}),M.jsxs(li,{variant:"primary",onClick:()=>c(g),children:[M.jsx(Ne,{name:Ie.PAPER_PLANE}),"Send"]})]})]})}):null},di=s.div`
1428
+ display: flex;
1429
+ flex-direction: ${e=>e.vertical?"column":"row"};
1430
+ border-radius: 6px;
1431
+ overflow: hidden;
1432
+ border: 1px solid var(--grey-200);
1433
+
1434
+ & > *:not(:last-child) {
1435
+ ${e=>e.vertical?"border-bottom: 1px solid var(--grey-200);":"border-right: 1px solid var(--grey-200);"}
1436
+ }
1437
+
1438
+ ${e=>e.vertical&&"\n width: 40px;\n "}
1439
+ `,ci=s.div`
1440
+ &:first-child {
1441
+ 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;"}
1443
+ }
1444
+ }
1445
+
1446
+ &:last-child {
1447
+ 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;"}
1449
+ }
1450
+ }
1451
+ `,hi=({controls:e,selectedId:r,onChange:t,vertical:i=!0,disabled:o=!1})=>M.jsx(di,{vertical:i,children:e.map(e=>M.jsx(ci,{vertical:i,children:M.jsx($,{icon:e.icon,selected:r===e.id,disabled:o||e.disabled,onClick:()=>{return r=e.id,void(o||t?.(r));var r}})},e.id))}),pi=s.div`
1452
+ padding: 20px 16px;
1453
+ border-radius: 8px;
1454
+ background-color: ${e=>(e=>{switch(e){case"active":return"var(--blue-100)";case"hover":return"var(--grey-100)";default:return"transparent"}})(e.status)};
1455
+ cursor: ${e=>"disabled"===e.status?"not-allowed":"pointer"};
1456
+ transition: background-color 0.2s ease;
1457
+
1458
+ ${e=>"default"===e.status&&d`
1459
+ &:hover {
1460
+ background-color: var(--grey-100);
1461
+ }
1462
+ `}
1463
+ `,xi=s.h3`
1464
+ margin: 0 0 4px 0;
1465
+ font-family: "Inter", sans-serif;
1466
+ font-size: 16px;
1467
+ font-weight: 600;
1468
+ line-height: 24px;
1469
+ color: ${e=>"disabled"===e.status?"var(--grey-400)":"var(--black-900)"};
1470
+ `,gi=s.p`
1471
+ margin: 0 0 16px 0;
1472
+ font-family: "Inter", sans-serif;
1473
+ font-size: 13px;
1474
+ font-style: normal;
1475
+ font-weight: 400;
1476
+ line-height: 18px;
1477
+ line-height: 20px;
1478
+ color: ${e=>(e.status,"var(--grey-400)")};
1479
+ `,fi=s.div`
1480
+ display: flex;
1481
+ align-items: center;
1482
+ gap: 16px;
1483
+ `,ui=s(B)`
1484
+ flex-shrink: 0;
1485
+ `,mi=s.a`
1486
+ font-family: "Inter", sans-serif;
1487
+ font-size: 13px;
1488
+ font-style: normal;
1489
+ font-weight: 500;
1490
+ line-height: 18px;
1491
+ color: ${e=>"disabled"===e.status?"var(--grey-400)":"var(--blue-600)"};
1492
+ text-decoration: none;
1493
+ cursor: ${e=>"disabled"===e.status?"not-allowed":"pointer"};
1494
+
1495
+ &:hover {
1496
+ text-decoration: ${e=>"disabled"===e.status?"none":"underline"};
1497
+ }
1498
+ `,bi=r(({title:e,description:r,buttonText:t,linkText:i,status:o="default",onButtonClick:n,onLinkClick:a,className:l},s)=>M.jsxs(pi,{ref:s,status:o,className:l,children:[M.jsx(xi,{status:o,children:e}),r&&M.jsx(gi,{status:o,children:r}),M.jsxs(fi,{children:[t&&M.jsx(ui,{variant:"secondary",size:"small",disabled:"disabled"===o,onClick:e=>{e.stopPropagation(),"disabled"!==o&&n&&n()},leftIcon:M.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("rect",{x:"3",y:"3",width:"10",height:"10",rx:"2",fill:"currentColor"})}),children:t}),i&&M.jsx(mi,{status:o,onClick:e=>{e.stopPropagation(),"disabled"!==o&&a&&a()},href:"disabled"===o?void 0:"#",children:i})]})]}));bi.displayName="CardSidebar";const Ci=s.div`
1499
+ display: flex;
1500
+ align-items: center;
1501
+ flex-direction: row;
1502
+ gap: 16px;
1503
+ flex-wrap: wrap;
1504
+ width: 100%;
1505
+ `,vi=s.div`
1506
+ margin: 16px 0;
1507
+ `,yi=s.span`
1508
+ font-size: 12px;
1509
+ color: var(--grey-400);
1510
+ `,wi=({initialCode:e="",onCodeSave:r,language:i="python",buttonText:o="Edit Code",modalTitle:a="Edit Code",buttonProps:l,modalProps:s,disabled:d=!1})=>{const[c,h]=t(!1),[p,x]=t(e),g=p?p.split("\n").length:0,f=p.length,u=n(()=>{x(e),h(!0)},[e]),m=n(()=>{r&&r(p),h(!1)},[r,p]),b=n(()=>{h(!1)},[]),C=n(e=>{x(e||"")},[]);return M.jsxs(M.Fragment,{children:[M.jsxs(Ci,{children:[M.jsx(B,{leftIcon:M.jsx(Ne,{name:Ie.PENCIL}),onClick:u,size:"small",variant:"tertiary",...l,disabled:d,style:{height:38},children:o}),M.jsxs(yi,{title:`${g} lines, ${f} characters`,children:[g," lines / ",f," chars"]})]}),M.jsx(Qr,{isOpen:c,onClose:b,onConfirm:m,onCloseLabel:"Cancel",onConfirmLabel:"Save Code",title:a,width:"80%",...s,children:M.jsx(vi,{children:M.jsx(Ye,{height:"400px",language:i,value:p,onChange:C,options:{minimap:{enabled:!1}}})})})]})},ji=s.div`
1511
+ display: flex;
1512
+ flex-direction: column;
1513
+ gap: 6px;
1514
+ width: 100%;
1515
+ `,ki=s(Ar)`
1516
+ margin-bottom: 2px;
1517
+ `,Ei=r(({label:e,infoText:r,supportiveText:t,showSupportiveCheck:i=!1,className:o,...n},a)=>M.jsxs(ji,{className:o,children:[M.jsx(ki,{infoText:r,children:e}),M.jsx(kr,{ref:a,...n}),t&&M.jsx(lt,{showCheck:i,children:t})]}));Ei.displayName="FormField";const Li=s.div``,Mi=s.div`
1518
+ display: flex;
1519
+ align-items: center;
1520
+ justify-content: space-between;
1521
+ margin-bottom: 16px;
1522
+ background-color: var(--grey-100);
1523
+ `,_i=s.h1`
1524
+ color: var(--black-900);
1525
+ font-family: "Inter", sans-serif;
1526
+ font-size: 18px;
1527
+ font-style: normal;
1528
+ font-weight: 600;
1529
+ line-height: 28px;
1530
+ margin: 0;
1531
+ `,Ai=s.div`
1532
+ display: flex;
1533
+ align-items: center;
1534
+ gap: 16px;
1535
+ `,Ri=s.div`
1536
+ display: flex;
1537
+ align-items: center;
1538
+ `,Ii=s.div`
1539
+ width: 1px;
1540
+ height: 20px;
1541
+ background-color: var(--grey-200);
1542
+ `,Ni=s.div`
1543
+ position: relative;
1544
+ width: 100%;
1545
+ max-width: 100%;
1546
+ margin-bottom: 16px;
1547
+ `,Ti=({initialCode:e="protocolSchema: v3\nname: v3\ndescription: No description\nconfig: {}\nsteps: []",onDeploy:r,versions:i=["v0.0.7","v0.0.6","v0.0.5"],currentVersion:o="v0.0.7",onVersionChange:n=()=>{}})=>{const[a,l]=t(e),[s,d]=t(!0),[c,h]=t(!1),[p,x]=t(!1),[g,f]=t(!1),[u,m]=t(!1);return M.jsxs(Li,{children:[M.jsxs(Mi,{children:[M.jsx(_i,{children:"Launch"}),M.jsxs(Ai,{children:[M.jsx(Ot,{checked:s,onChange:d,label:"Overwrite Mode",disabled:c}),M.jsx(Ii,{}),M.jsx(Ri,{children:M.jsx(or,{options:i.map(e=>({label:e,value:e})),value:o,onChange:e=>n(e),width:"150px",size:"small",disabled:c})}),M.jsx(B,{variant:"primary",size:"medium",onClick:()=>{h(!0),x(!0),f(!1),m(!1),setTimeout(()=>{x(!1);Math.random()>.3?(f(!0),m(!1)):(f(!1),m(!0)),h(!1),r&&r(),setTimeout(()=>{f(!1),m(!1)},5e3)},3e3)},disabled:c,children:"Deploy"})]})]}),p&&M.jsx(Ni,{children:M.jsx(zt,{type:"info",heading:"Building Protocol: Status=IN_PROGRESS, Phase=FINALIZING"})}),g&&M.jsx(Ni,{children:M.jsx(zt,{type:"success",heading:`Pipeline visual-pipeline-builder-protocol-${o}-pipeline deployed successfully! Deployment complete`})}),u&&M.jsx(Ni,{children:M.jsx(zt,{type:"danger",heading:`Failed to deploy pipeline visual-pipeline-builder-protocol-${o}-pipeline. Please try again.`})}),M.jsx(Ye,{value:a,onChange:e=>{void 0!==e&&l(e)},language:"yaml",theme:"light",width:"100%",onCopy:e=>{navigator.clipboard.writeText(e)},onLaunch:e=>{console.log("Launching code:",e)},disabled:!s})]})},zi=s.div`
1548
+ width: 100%;
1549
+ border-radius: 8px;
1550
+ overflow: hidden;
1551
+ box-shadow: 0px 4px 12px 0px var(--black-100),
1552
+ 0px 2px 4px -2px var(--black-100);
1553
+ background-color: var(--white-900);
1554
+ border: 1px solid var(--grey-200);
1555
+ `,Bi=s.div`
1556
+ padding: 8px 16px;
1557
+ font-family: "Inter", sans-serif;
1558
+ font-size: 12px;
1559
+ font-style: normal;
1560
+ font-weight: 500;
1561
+ line-height: 16px;
1562
+ color: var(--grey-600);
1563
+ border-bottom: 1px solid var(--grey-200);
1564
+ `,Hi=s.div`
1565
+ display: flex;
1566
+ flex-direction: column;
1567
+ `,$i=({title:e,items:r,onItemClick:t,onItemCheckChange:i,activeItemId:o=null,className:n})=>M.jsxs(zi,{className:n,children:[e&&M.jsx(Bi,{children:e}),M.jsx(Hi,{children:r.map(e=>M.jsx(Sr,{label:e.label,checked:e.checked,showCheckbox:e.showCheckbox,active:o===e.id||e.active,onClick:()=>{return r=e.id,void(t&&t(r));var r},onCheckChange:r=>((e,r)=>{i&&i(e,r)})(e.id,r)},e.id))})]}),Si=s.div`
1568
+ display: flex;
1569
+ align-items: center;
1570
+ background-color: var(--blue-900);
1571
+ height: 80px;
1572
+ width: 100%;
1573
+ padding: 12px 24px 12px 128px;
1574
+ box-sizing: border-box;
1575
+ color: var(--white-900);
1576
+ gap: 40px;
1577
+ `,Oi=s.div`
1578
+ display: flex;
1579
+ align-items: center;
1580
+ height: 100%;
1581
+ `,Pi=s.div`
1582
+ text-transform: uppercase;
1583
+ margin-bottom: 2px;
1584
+ color: var(--white-900);
1585
+ font-size: 10px;
1586
+ font-style: normal;
1587
+ font-weight: 500;
1588
+ line-height: 16px;
1589
+ letter-spacing: 0.2px;
1590
+ font-family: "Inter", sans-serif;
1591
+ `,Vi=s.div`
1592
+ font-size: 14px;
1593
+ font-style: normal;
1594
+ font-weight: 500;
1595
+ line-height: 22px;
1596
+ font-family: "Inter", sans-serif;
1597
+ `,Di=s.div`
1598
+ color: var(--grey-400);
1599
+ font-size: 12px;
1600
+ font-style: italic;
1601
+ font-weight: 500;
1602
+ line-height: 16px;
1603
+ font-family: "Inter", sans-serif;
1604
+ `,Ui=s.div`
1605
+ display: flex;
1606
+ flex-direction: column;
1607
+ `,Zi=s.div`
1608
+ display: flex;
1609
+ align-items: center;
1610
+ justify-content: center;
1611
+ `,Wi=s.div`
1612
+ display: flex;
1613
+ align-items: center;
1614
+ padding: 6px 0;
1615
+ border-radius: 4px;
1616
+ gap: 8px;
1617
+ `,Gi=s.div`
1618
+ font-family: "Inter", sans-serif;
1619
+ color: var(--grey-400);
1620
+ font-size: 14px;
1621
+ font-style: normal;
1622
+ font-weight: 500;
1623
+ line-height: 22px;
1624
+ `,Ki=s.div`
1625
+ display: flex;
1626
+ align-items: center;
1627
+ justify-content: center;
1628
+ `,Fi=s.div`
1629
+ display: flex;
1630
+ align-items: center;
1631
+ gap: 8px;
1632
+ width: 320px;
1633
+ `,Yi=()=>M.jsx("div",{style:{borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},children:M.jsx(Ne,{name:Ie.BUILDING,fill:"var(--white-900)",width:"20",height:"20"})}),Xi=()=>M.jsx(Ne,{name:Ie.LAMP,fill:"var(--white-900)",width:"20",height:"20"}),qi=({organization:e})=>M.jsxs(Si,{children:[M.jsx(Oi,{children:M.jsxs(Ui,{children:[M.jsx(Pi,{children:"ORGANIZATION"}),M.jsxs(Fi,{children:[M.jsx(Zi,{children:e.logo||M.jsx(Yi,{})}),M.jsxs("div",{children:[M.jsx(Vi,{children:e.name}),e.subtext&&M.jsx(Di,{children:e.subtext})]})]})]})}),M.jsx(Oi,{children:M.jsxs(Ui,{children:[M.jsx(Pi,{children:"PROJECT"}),M.jsxs(Wi,{children:[M.jsx(Ki,{children:M.jsx(Xi,{})}),M.jsx(Gi,{children:"Not Selected"})]})]})})]}),Qi=s.div`
1634
+ display: flex;
1635
+ align-items: center;
1636
+ justify-content: space-between;
1637
+ background: var(--grey-100);
1638
+ padding: 0 0 24px;
1639
+ border-top-left-radius: 24px;
1640
+ border-top-right-radius: 24px;
1641
+ `,Ji=s.h2`
1642
+ color: var(--blue-900);
1643
+ font-family: "Inter", sans-serif;
1644
+ font-size: 20px;
1645
+ font-weight: 600;
1646
+ line-height: 28px;
1647
+ margin: 0;
1648
+ `,eo=s.div`
1649
+ display: flex;
1650
+ align-items: center;
1651
+ gap: 8px;
1652
+ color: var(--grey-600);
1653
+ font-size: 15px;
1654
+ font-weight: 500;
1655
+ `,ro=s.div`
1656
+ background-color: var(--white-900);
1657
+ border-radius: 24px;
1658
+ border: 1px solid var(--grey-200);
1659
+ width: 100%;
1660
+ `,to=s.div`
1661
+ display: flex;
1662
+ align-items: center;
1663
+ border-bottom: 1px solid var(--grey-200);
1664
+ padding-bottom: 16px;
1665
+ padding: 12px 24px;
1666
+ `,io=s.h3`
1667
+ color: var(--blue-900);
1668
+ font-family: "Inter", sans-serif;
1669
+ font-size: 20px;
1670
+ font-weight: 600;
1671
+ line-height: 28px;
1672
+ margin: 0;
1673
+ `,oo=s.div`
1674
+ padding: 20px 24px 36px 24px;
1675
+ `,no=s.div`
1676
+ display: flex;
1677
+ flex-direction: column;
1678
+ align-items: flex-start;
1679
+ gap: 16px;
1680
+ `,ao=s.div`
1681
+ color: var(--grey-400);
1682
+ font-size: 14px;
1683
+ font-weight: 500;
1684
+ `,lo=({className:e})=>{const[r,i]=t(!1);return M.jsxs("div",{className:e,children:[M.jsxs(Qi,{children:[M.jsx(Ji,{children:"Protocol Configuration"}),M.jsx(eo,{children:M.jsx(Ot,{label:"Edit Mode",checked:r,onChange:()=>i(e=>!e)})})]}),M.jsxs(ro,{children:[M.jsx(to,{children:M.jsx(io,{children:"Configuration"})}),M.jsx(oo,{children:r?M.jsx(B,{variant:"secondary",size:"medium",leftIcon:M.jsx(Ne,{name:Ie.PLUS,width:"20",height:"20",fill:"var(--blue-600)"}),children:"Add Input"}):M.jsx(no,{children:M.jsx(ao,{children:"No values, Use the 'edit' button to add values"})})})]})]})},so=s.div`
1685
+ display: flex;
1686
+ flex-direction: column;
1687
+ align-items: flex-start;
1688
+ padding: 0;
1689
+ gap: 16px;
1690
+ width: 928px;
1691
+ background: transparent;
1692
+ `,co=s.div`
1693
+ display: flex;
1694
+ flex-direction: row;
1695
+ justify-content: space-between;
1696
+ align-items: center;
1697
+ width: 928px;
1698
+ height: 36px;
1699
+ `,ho=s.span`
1700
+ font-family: "Inter", sans-serif;
1701
+ font-weight: 600;
1702
+ font-size: 18px;
1703
+ line-height: 28px;
1704
+ color: var(--black-900);
1705
+ `,po=s.div`
1706
+ display: flex;
1707
+ flex-direction: row;
1708
+ align-items: center;
1709
+ gap: 16px;
1710
+ justify-content: flex-end;
1711
+ `,xo=s.div`
1712
+ width: 1px;
1713
+ height: 20px;
1714
+ background: var(--grey-200);
1715
+ `,go=s.div`
1716
+ width: 100%;
1717
+ `,fo=s(Ot)`
1718
+ min-width: 176px;
1719
+ `,uo=s(or)``,mo=({title:e,newVersionMode:r,onToggleNewVersionMode:t,versionOptions:i,selectedVersion:o,onVersionChange:n,onDeploy:a,yaml:l,onYamlChange:s})=>M.jsxs(so,{children:[M.jsxs(co,{children:[M.jsx(ho,{children:e}),M.jsxs(po,{children:[M.jsx(fo,{checked:r,onChange:t,label:"New Version Mode"}),M.jsx(xo,{}),M.jsx(uo,{options:i,value:o,onChange:n,size:"small",width:"120px"}),M.jsx(B,{variant:"primary",size:"medium",onClick:a,children:"Deploy"})]})]}),M.jsx(go,{children:M.jsx(Ye,{value:l,onChange:e=>s(e??""),language:"yaml",theme:"light",onCopy:()=>{},onLaunch:()=>{}})})]}),bo=s.div`
1720
+ padding: 12px 0;
1721
+ flex: 1;
1722
+ `,Co=({open:e,initialValue:r="",title:i="",onSave:o,onCancel:n})=>{const[a,l]=t(r);return M.jsx(Qr,{isOpen:e,onClose:n,onCloseLabel:"Cancel",onConfirm:()=>{o(a)},onConfirmLabel:"Save Code",title:i,width:"600px",children:M.jsx(bo,{children:M.jsx(Ye,{value:a,onChange:e=>l(e??""),language:"python",height:300,theme:"dark",onCopy:()=>{},onLaunch:()=>{}})})})},vo=s.div`
1723
+ display: flex;
1724
+ flex-direction: column;
1725
+ gap: 6px;
1726
+ width: 100%;
1727
+ `,yo=s(Ar)`
1728
+ margin-bottom: 2px;
1729
+ `,wo=r(({label:e,infoText:r,supportiveText:t,showSupportiveCheck:i=!1,className:o,...n},a)=>M.jsxs(vo,{className:o,ref:a,children:[M.jsx(yo,{infoText:r,children:e}),M.jsx(or,{...n}),t&&M.jsx(lt,{showCheck:i,children:t})]}));wo.displayName="SelectField";const jo=s.div`
1730
+ width: 104px;
1731
+ height: 100%;
1732
+ background-color: var(--blue-900);
1733
+ display: flex;
1734
+ flex-direction: column;
1735
+ align-items: center;
1736
+ padding: 0;
1737
+ `,ko=s.div`
1738
+ width: 100%;
1739
+ display: inline-flex;
1740
+ flex-direction: column;
1741
+ align-items: center;
1742
+ padding: 12px 0;
1743
+ cursor: pointer;
1744
+ transition: background-color 0.2s ease;
1745
+ background-color: ${e=>e.active?"var(--white-100)":"transparent"};
1746
+
1747
+ &:hover {
1748
+ background-color: var(--white-50);
1749
+ }
1750
+ `,Eo=s.div`
1751
+ display: flex;
1752
+ justify-content: center;
1753
+ align-items: center;
1754
+ margin-bottom: 10px;
1755
+ color: var(--white-900);
1756
+ `,Lo=s.div`
1757
+ color: var(--white-900);
1758
+ text-align: center;
1759
+ font-family: "Inter", sans-serif;
1760
+ font-size: 12px;
1761
+ font-style: normal;
1762
+ font-weight: 500;
1763
+ line-height: 16px;
1764
+ text-align: center;
1765
+ padding: 0 8px;
1766
+ `,Mo=({icon:e,label:r,active:t,onClick:i})=>M.jsxs(ko,{active:t,onClick:i,children:[M.jsx(Eo,{children:M.jsx(Ne,{name:e,fill:"var(--white-900)",width:"20",height:"20"})}),M.jsx(Lo,{children:r})]}),_o=({items:e,activeItem:r,onItemClick:t})=>M.jsx(jo,{children:e.map(e=>M.jsx(Mo,{icon:e.icon,label:e.label,active:r===e.label,onClick:()=>{return r=e.label,void(t&&t(r));var r}},e.label))}),Ao=s.div`
1767
+ width: 100%;
1768
+ border: 1px solid var(--grey-200);
1769
+ border-radius: 8px;
1770
+ overflow: visible;
1771
+ background-color: var(--white-900);
1772
+ `,Ro=s.table`
1773
+ width: 100%;
1774
+ border-collapse: collapse;
1775
+ border-spacing: 0;
1776
+ `,Io=s.tbody``,No=s.tr`
1777
+ cursor: ${e=>e.selectable?"pointer":"default"};
1778
+
1779
+ &:hover {
1780
+ background-color: ${e=>e.selectable?"var(--grey-50)":"transparent"};
1781
+ }
1782
+ `,To=s(pt)`
1783
+ width: 40px;
1784
+ padding: 10px 12px;
1785
+ `,zo=s(bt)`
1786
+ width: 40px;
1787
+ padding: 8px 12px;
1788
+ `,Bo=s.div`
1789
+ display: flex;
1790
+ align-items: center;
1791
+ justify-content: center;
1792
+ gap: 16px;
1793
+ padding: 10px 12px;
1794
+ height: 40px;
1795
+ background-color: var(--grey-50);
1796
+ border-top: 1px solid var(--grey-200);
1797
+ `,Ho=s.button`
1798
+ display: flex;
1799
+ align-items: center;
1800
+ justify-content: center;
1801
+ width: 32px;
1802
+ height: 32px;
1803
+ padding: 0;
1804
+ border: 1px solid var(--grey-300);
1805
+ border-radius: 6px;
1806
+ background-color: var(--white-900);
1807
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
1808
+ opacity: ${e=>e.disabled?.5:1};
1809
+
1810
+ &:hover:not(:disabled) {
1811
+ background-color: var(--grey-50);
1812
+ }
1813
+
1814
+ svg {
1815
+ width: 20px;
1816
+ height: 20px;
1817
+ }
1818
+ `,$o=s.div`
1819
+ display: flex;
1820
+ align-items: center;
1821
+ gap: 0;
1822
+ `,So=s.button`
1823
+ display: flex;
1824
+ align-items: center;
1825
+ justify-content: center;
1826
+ width: 32px;
1827
+ height: 32px;
1828
+ padding: 0;
1829
+ border: none;
1830
+ border-radius: 6px;
1831
+ background-color: ${e=>e.active?"var(--grey-100)":"transparent"};
1832
+ font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
1833
+ font-size: 13px;
1834
+ font-weight: 500;
1835
+ line-height: 18px;
1836
+ color: var(--grey-600);
1837
+ cursor: pointer;
1838
+
1839
+ &:hover:not(:disabled) {
1840
+ background-color: var(--grey-100);
1841
+ }
1842
+ `;function Oo({columns:e,data:r,pageSize:i=10,rowKey:n,selectable:l=!1,onRowSelect:s,sortKey:d,sortDirection:c,onSort:h,currentPage:p,onPageChange:x,selectedRows:g,className:f}){const[u,m]=t(null),[b,C]=t(null),[v,y]=t(1),[w,j]=t([]),[k,E]=t({}),L=void 0!==d,_=void 0!==p,A=void 0!==g,R=L?d:u,I=L?c:b,N=_?p:v,T=A?g:w,z=a(()=>{let e=[...r];return Object.entries(k).forEach(([r,t])=>{t&&(e=e.filter(e=>{const i=e[r];return i?.toString()===t}))}),e},[r,k]),B=a(()=>R&&I?[...z].sort((e,r)=>{const t=e[R],i=r[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"===I?o:-o}):z,[z,R,I]),H=-1===i?1:Math.ceil(B.length/i),$=a(()=>{if(-1===i)return B;const e=(N-1)*i;return B.slice(e,e+i)},[B,N,i]);o(()=>{_||y(1)},[k,R,I,_]);const S=e=>{_&&x?x(e):y(e)},O=(e,r)=>n?"function"==typeof n?n(e):e[n]:r,P=(e,r)=>{let t;t=r?[...T,e]:T.filter(r=>r!==e),A&&s||j(t),s(t)},V=e=>T.some(r=>O(r,0)===O(e,0)),D=B.length>0&&B.every(e=>V(e));return M.jsxs(Ao,{className:f,children:[M.jsxs(Ro,{children:[M.jsx("thead",{children:M.jsxs("tr",{children:[l&&M.jsx(zo,{children:M.jsx(Se,{checked:D,onChange:e=>{const r=e?[...B]:[];A&&s||j(r),s(r)},noPadding:!0})}),e.map(e=>M.jsx(bt,{width:e.width,sortable:e.sortable,sortDirection:R===e.key&&I||null,onSort:e.sortable?()=>{return r=e.key,void(L&&h?h(r,R===r&&"asc"===I?"desc":"asc"):R===r?"asc"===I?C("desc"):(m(null),C(null)):(m(r),C("asc")));var r}:void 0,filterable:e.filterable,filterOptions:e.filterOptions,filterValue:k[e.key]||"",onFilterChange:e.filterable?r=>((e,r)=>{E(t=>({...t,[e]:r}))})(e.key,r):void 0,children:e.header},e.key))]})}),M.jsx(Io,{children:$.map((r,t)=>M.jsxs(No,{selectable:l,onClick:l?()=>P(r,!V(r)):void 0,children:[l&&M.jsx(To,{children:M.jsx(Se,{checked:V(r),onChange:e=>P(r,e),noPadding:!0,onClick:e=>e.stopPropagation()})}),e.map(e=>{const i=r[e.key],o=e.render?e.render(i,r,t):i;return M.jsx(pt,{align:e.align,children:o},e.key)})]},O(r,t)))})]}),-1!==i&&H>1&&M.jsxs(Bo,{children:[M.jsx(Ho,{disabled:1===N,onClick:()=>S(N-1),"aria-label":"Previous page",children:M.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),M.jsx($o,{children:(()=>{const e=[];if(H<=5)for(let r=1;r<=H;r++)e.push(r);else{e.push(1),N>3&&e.push("...");const r=Math.max(2,N-1),t=Math.min(H-1,N+1);for(let i=r;i<=t;i++)e.push(i);N<H-2&&e.push("..."),e.push(H)}return e})().map((e,r)=>M.jsx(So,{active:e===N,onClick:"number"==typeof e?()=>S(e):void 0,disabled:"number"!=typeof e,children:e},r))}),M.jsx(Ho,{disabled:N===H,onClick:()=>S(N+1),"aria-label":"Next page",children:M.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}Oo.displayName="Table";const Po=s.div`
1843
+ display: flex;
1844
+ align-items: center;
1845
+ border-bottom: 1px solid var(--grey-200);
1846
+ overflow-x: auto;
1847
+
1848
+ &::-webkit-scrollbar {
1849
+ display: none;
1850
+ }
1851
+
1852
+ -ms-overflow-style: none;
1853
+ scrollbar-width: none;
1854
+ `,Vo=({tabs:e,activeTab:r,onChange:i,disabled:o=!1,size:n="medium"})=>{const[a,l]=t(r||(e.length>0?e[0].id:""));return M.jsx(Po,{children:e.map(e=>M.jsx(ct,{label:e.label,active:r?r===e.id:a===e.id,disabled:o||e.disabled,size:e.size||n,onClick:()=>{return r=e.id,void(o||(l(r),i?.(r)));var r}},e.id))})},Do=s.div`
1855
+ position: fixed;
1856
+ ${e=>"top"===e.position?"top: 16px;":"bottom: 16px;"}
1857
+ left: 50%;
1858
+ transform: translateX(-50%);
1859
+ z-index: 9999;
1860
+ width: 100%;
1861
+ max-width: 500px;
1862
+ display: flex;
1863
+ flex-direction: column;
1864
+ gap: 8px;
1865
+ pointer-events: none;
1866
+ `,Uo=s.div`
1867
+ opacity: 0;
1868
+ transform: translateY(
1869
+ ${e=>"top"===e.theme.position?"-10px":"10px"}
1870
+ );
1871
+ animation: ${e=>"top"===e.theme.position?"slideDownFade":"slideUpFade"}
1872
+ 0.3s forwards;
1873
+ pointer-events: auto;
1874
+
1875
+ @keyframes slideDownFade {
1876
+ to {
1877
+ opacity: 1;
1878
+ transform: translateY(0);
1879
+ }
1880
+ }
1881
+
1882
+ @keyframes slideUpFade {
1883
+ to {
1884
+ opacity: 1;
1885
+ transform: translateY(0);
1886
+ }
1887
+ }
1888
+ `;l(void 0);let Zo=[],Wo=[];const Go=({position:e="top"})=>{const[r,i]=t([]),[n,a]=t(!1);return o(()=>{a(!0);const e=(r=i,Wo.push(r),r(Zo),()=>{Wo=Wo.filter(e=>e!==r)});var r;return()=>{e(),a(!1)}},[]),n?b(M.jsx(Do,{position:e,children:r.map(r=>M.jsx(Uo,{theme:{position:e},children:M.jsx(zt,{type:r.type,heading:r.heading,description:r.description})},r.id))}),document.body):null},Ko=({userProfile:e,hostname:r,organization:i,children:o})=>{const n=[{icon:Ie.SEARCH_DOCUMENT,label:"Search"},{icon:Ie.SEARCH_SQL,label:"SQL Search"},{icon:Ie.LAMP,label:"Projects"},{icon:Ie.PIPELINE,label:"Pipelines"},{icon:Ie.COMPUTER,label:"Data & AI Workspace"},{icon:Ie.CUBE,label:"Artifacts"},{icon:Ie.DATABASE,label:"Data Sources"},{icon:Ie.PIE_CHART,label:"Health Monitoring"},{icon:Ie.BULK_CHECK,label:"Bulk Actions"},{icon:Ie.CODE,label:"Attribute Management"},{icon:Ie.GEAR,label:"Administration"}],[a,l]=t("Pipelines");return M.jsxs("div",{className:"app-layout",children:[M.jsx(qi,{organization:i}),M.jsxs("div",{className:"content-container",children:[M.jsx(_o,{items:n,activeItem:a,onItemClick:e=>{l(e)}}),M.jsxs("div",{className:"main-content",children:[M.jsx(Ft,{hostname:r,userProfile:e,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),M.jsx("div",{className:"main-layout",children:o})]})]})]})},Fo=(e,r)=>{if("undefined"!=typeof window){return getComputedStyle(document.documentElement).getPropertyValue(`--${e}`).trim()||r||""}return`var(--${e}${r?`, ${r}`:""})`},Yo={BLACK_50:Fo("black-50","rgba(26, 26, 26, 0.05)"),BLACK_100:Fo("black-100","rgba(26, 26, 26, 0.1)"),BLACK_200:Fo("black-200","rgba(26, 26, 26, 0.2)"),BLACK_300:Fo("black-300","rgba(26, 26, 26, 0.3)"),BLACK_400:Fo("black-400","rgba(26, 26, 26, 0.4)"),BLACK_500:Fo("black-500","rgba(26, 26, 26, 0.5)"),BLACK_600:Fo("black-600","rgba(26, 26, 26, 0.6)"),BLACK_700:Fo("black-700","rgba(26, 26, 26, 0.7)"),BLACK_800:Fo("black-800","rgba(26, 26, 26, 0.8)"),BLACK_900:Fo("black-900","rgba(26, 26, 26, 1)"),BLACK:Fo("black-900","#1a1a1a"),BLACK_OPACITY_20:"rgba(26, 26, 26, 0.2)",WHITE_50:Fo("white-50","rgba(255, 255, 255, 0.05)"),WHITE_100:Fo("white-100","rgba(255, 255, 255, 0.1)"),WHITE_200:Fo("white-200","rgba(255, 255, 255, 0.2)"),WHITE_300:Fo("white-300","rgba(255, 255, 255, 0.3)"),WHITE_400:Fo("white-400","rgba(255, 255, 255, 0.4)"),WHITE_500:Fo("white-500","rgba(255, 255, 255, 0.5)"),WHITE_600:Fo("white-600","rgba(255, 255, 255, 0.6)"),WHITE_700:Fo("white-700","rgba(255, 255, 255, 0.7)"),WHITE_800:Fo("white-800","rgba(255, 255, 255, 0.8)"),WHITE_900:Fo("white-900","rgba(255, 255, 255, 1)"),WHITE:Fo("white-900","#ffffff"),BLUE_50:Fo("blue-50","rgba(240, 249, 255, 1)"),BLUE_100:Fo("blue-100","rgba(225, 243, 254, 1)"),BLUE_200:Fo("blue-200","rgba(185, 229, 252, 1)"),BLUE_300:Fo("blue-300","rgba(125, 211, 251, 1)"),BLUE_400:Fo("blue-400","rgba(58, 190, 247, 1)"),BLUE_500:Fo("blue-500","rgba(27, 173, 240, 1)"),BLUE_600:Fo("blue-600","rgba(64, 114, 210, 1)"),BLUE_700:Fo("blue-700","rgba(3, 105, 159, 1)"),BLUE_800:Fo("blue-800","rgba(5, 69, 103, 1)"),BLUE_900:Fo("blue-900","rgba(4, 38, 63, 1)"),BLUE:Fo("graph-primary-blue","#2D9CDB"),GREY_50:Fo("grey-50","rgba(248, 250, 252, 1)"),GREY_100:Fo("grey-100","rgba(241, 245, 249, 1)"),GREY_200:Fo("grey-200","rgba(225, 231, 239, 1)"),GREY_300:Fo("grey-300","rgba(200, 214, 229, 1)"),GREY_400:Fo("grey-400","rgba(158, 172, 192, 1)"),GREY_500:Fo("grey-500","rgba(100, 116, 139, 1)"),GREY_600:Fo("grey-600","rgba(72, 86, 106, 1)"),GREY_700:Fo("grey-700","rgba(51, 65, 86, 1)"),GREY_800:Fo("grey-800","rgba(29, 40, 57, 1)"),GREY_900:Fo("grey-900","rgba(20, 30, 53, 1)"),GREY:Fo("grey-400","#CCCCCC"),ORANGE:Fo("graph-primary-orange","#FFA62E"),RED:Fo("graph-primary-red","#FF5C64"),GREEN:Fo("graph-primary-green","#A5C34E"),YELLOW:Fo("graph-primary-yellow","#FBED53"),PURPLE:Fo("graph-primary-purple","#7A51AB"),GREEN_BG:Fo("green-bg","rgba(234, 254, 229, 1)"),GREEN_SUCCESS:Fo("green-success","rgba(8, 173, 55, 1)"),ORANGE_BG:Fo("orange-bg","rgba(254, 250, 229, 1)"),ORANGE_CAUTION:Fo("orange-caution","rgba(249, 173, 20, 1)"),RED_BG:Fo("red-bg","rgba(254, 234, 229, 1)"),RED_ERROR:Fo("red-error","rgba(216, 35, 44, 1)"),GRAPH_SECONDARY_BROWN:Fo("graph-secondary-brown","#AD7942"),GRAPH_SECONDARY_PINK:Fo("graph-secondary-pink","#FB90B4"),GRAPH_SECONDARY_TEAL:Fo("graph-secondary-teal","#3CCABA"),GRAPH_SECONDARY_DARK_BLUE:Fo("graph-secondary-dark-blue","#4072D2"),GRAPH_SECONDARY_BLACK:Fo("graph-secondary-black","#424E62"),GRAPH_SECONDARY_GREY:Fo("graph-secondary-grey","#B4B4B4")},Xo=[Yo.ORANGE,Yo.RED,Yo.GREEN,Yo.BLUE,Yo.YELLOW,Yo.PURPLE,Yo.GRAPH_SECONDARY_BROWN,Yo.GRAPH_SECONDARY_PINK,Yo.GRAPH_SECONDARY_TEAL,Yo.GRAPH_SECONDARY_DARK_BLUE,Yo.GRAPH_SECONDARY_BLACK,Yo.GRAPH_SECONDARY_GREY],qo=({dataSeries:e,width:r=1e3,height:t=600,xRange:n,yRange:a,variant:l="normal",xTitle:s="Columns",yTitle:d="Rows",title:c="Area Graph"})=>{const h=i(null),{xMin:p,xMax:x,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),a=.1*(o-i);return{xMin:r-n,xMax:t+n,yMin:"stacked"===l?0:i-a,yMax:o+a}})(),u=n||[p,x],m=a||[g,f],b=(()=>{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})(),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})(),y={tickcolor:Yo.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Yo.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Yo.BLACK_900,linewidth:1,position:0,zeroline:!1},w={text:c,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Yo.BLACK_900,lineheight:1.2,standoff:30}};return o(()=>{if(!h.current)return;let i;if("stacked"===l){const r=new Array(e[0]?.x.length||0).fill(0);i=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 i=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 o={width:r,height:t,title:w,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:Yo.WHITE,plot_bgcolor:Yo.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Yo.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:b,showgrid:!0,...y},yaxis:{title:{text:d,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Yo.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:v,showgrid:!0,...y},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Yo.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};return C.newPlot(h.current,i,o,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{h.current&&C.purge(h.current)}},[e,r,t,n,a,l,s,d,c]),M.jsx("div",{className:"area-graph-container",children:M.jsx("div",{ref:h,style:{width:"100%",height:"100%"}})})},Qo=({dataSeries:e,width:r=1e3,height:t=600,xRange:n,yRange:a,variant:l="group",xTitle:s="Columns",yTitle:d="Rows",title:c="Bar Graph",barWidth:h=24})=>{const p=i(null),{yMin:x,yMax:g}=(()=>{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}})(),f=a||[x,g],u=Array.from(new Set(e.flatMap(e=>e.x))),m=(()=>{const e=f[1]-f[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(f[0]/r)*r;for(;i<=f[1];)t.push(i),i+=r;return t})(),b=()=>{switch(l){case"stack":return"stack";case"overlay":return"overlay";default:return"group"}},v={tickcolor:Yo.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Yo.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Yo.BLACK_900,linewidth:1,position:0,zeroline:!1};return o(()=>{if(!p.current)return;const i=e.map(e=>({x:e.x,y:e.y,type:"bar",name:e.name,marker:{color:e.color},width:h,error_y:e.error_y})),o={title:{text:c,font:{size:32,family:"Inter, sans-serif",color:Yo.BLACK_900}},width:r,height:t,margin:{l:80,r:30,b:80,t:60,pad:0},paper_bgcolor:Yo.WHITE,plot_bgcolor:Yo.WHITE,font:{family:"Inter, sans-serif"},barmode:b(),bargap:.15,dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Yo.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:u,showgrid:!0,...v},yaxis:{title:{text:d,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Yo.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:m,showgrid:!0,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Yo.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:e.length>1};return C.newPlot(p.current,i,o,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{p.current&&C.purge(p.current)}},[e,r,t,n,a,l,s,d,c,h]),M.jsx("div",{className:"bar-graph-container",children:M.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},Jo=({dataSeries:e,width:r=1e3,height:t=600,xRange:n,yRange:a,xTitle:l="Columns",yTitle:s="Rows",title:d="Boxplot",showPoints:c=!1})=>{const h=i(null),{yMin:p,yMax:x}=(()=>{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}})(),g=a||[p,x],f=(()=>{const e=g[1]-g[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(g[0]/r)*r;for(;i<=g[1];)t.push(i),i+=r;return t})(),u={tickcolor:Yo.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Yo.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Yo.BLACK_900,linewidth:1,position:0,zeroline:!1},m={text:d,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Yo.BLACK_900,lineheight:1.2,standoff:30}};return o(()=>{if(!h.current)return;const i=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})),o={width:r,height:t,title:m,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:Yo.WHITE,plot_bgcolor:Yo.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Yo.GREY_200,range:n,autorange:!n,showgrid:!0,...u},yaxis:{title:{text:s,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Yo.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:f,showgrid:!0,...u},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Yo.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};return C.newPlot(h.current,i,o,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{h.current&&C.purge(h.current)}},[e,r,t,n,a,l,s,d,c]),M.jsx("div",{className:"boxplot-container",children:M.jsx("div",{ref:h,style:{width:"100%",height:"100%"}})})},en=({data:e=[],width:r=900,height:t=600,positionInterval:n=10,colorA:a="#2D9CDB",colorT:l="#A1C63C",colorG:s="#FF5C64",colorC:d="#FFA62E"})=>{const c=i(null),h=e.map(e=>e.position),p=e.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)),x=e.map(e=>e.peakA),g=e.map(e=>e.peakT),f=e.map(e=>e.peakG),u=e.map(e=>e.peakC),m={x:h,y:x,type:"scatter",mode:"lines",name:"A",line:{color:a,width:2,shape:"spline"}},b={x:h,y:g,type:"scatter",mode:"lines",name:"T",line:{color:l,width:2,shape:"spline"}},v={x:h,y:f,type:"scatter",mode:"lines",name:"G",line:{color:s,width:2,shape:"spline"}},y={x:h,y:u,type:"scatter",mode:"lines",name:"C",line:{color:d,width:2,shape:"spline"}},w=Math.max(...x,...g,...f,...u);if(o(()=>{if(!c.current||0===e.length)return;const i=[m,b,v,y],o={width:r,height:t-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(...h),Math.max(...h)],fixedrange:!0},yaxis:{showgrid:!1,zeroline:!1,showticklabels:!1,showline:!1,range:[0,1.05*w],fixedrange:!0}};return C.newPlot(c.current,i,o,{responsive:!0,displayModeBar:!1,displaylogo:!1,fillFrame:!0}),()=>{c.current&&C.purge(c.current)}},[e,r,t,n,a,l,s,d,h,x,g,f,u,w]),0===e.length)return M.jsx("div",{className:"chart-container",children:"No data available"});return M.jsxs("div",{className:"chromatogram-container",style:{width:r,height:t},children:[M.jsxs("div",{className:"sequence-header",children:[(()=>{const e=Math.min(...h),t=Math.max(...h),i=r;return M.jsx("div",{className:"sequence-letters-container",children:p.map((r,o)=>{const n=h[o],c="A"===r?a:"T"===r?l:"G"===r?s:"C"===r?d:"var(--black-900)",p=(n-e)/(t-e)*i;return M.jsx("span",{className:"sequence-letter",style:{left:`${p}px`,color:c},children:r},`base-${o}`)})})})(),(()=>{const e=Math.min(...h),t=Math.max(...h),i=r,o=[];for(let r=Math.ceil(e/n)*n;r<=t;r+=n)o.push({position:r,label:r.toString()});return M.jsx("div",{className:"position-numbers-container",children:o.map(r=>{const o=(r.position-e)/(t-e)*i;return M.jsx("span",{className:"position-number",style:{left:`${o}px`},children:r.label},`pos-${r.position}`)})})})()]}),M.jsx("div",{className:"chromatogram-chart",children:M.jsx("div",{ref:c,style:{width:"100%",height:"100%"}})})]})},rn=({dataSeries:e,width:r=1e3,height:t=600,title:n="Dot Plot",xTitle:a="Columns",yTitle:l="Rows",variant:s="default",markerSize:d=8})=>{const c=i(null),h=Array.isArray(e)?e:[e],p=[Yo.ORANGE,Yo.RED,Yo.GREEN,Yo.BLUE,Yo.YELLOW,Yo.PURPLE],x=["circle","square","diamond","triangle-up","triangle-down","star"],g=h.map((e,r)=>"default"===s?{...e,color:e.color||p[0],symbol:"circle",size:e.size||d}:{...e,color:e.color||p[r%p.length],symbol:e.symbol||x[r%x.length],size:e.size||d}),f=Yo.GREY_200,u=g.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:Yo.WHITE,width:1}},hovertemplate:`${a}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),m={tickcolor:Yo.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Yo.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Yo.BLACK_900,linewidth:1,position:0,zeroline:!1},b={text:n,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Yo.BLACK_900,lineheight:1.2,standoff:30}};return o(()=>{if(!c.current)return;const e={width:r,height:t,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:Yo.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},xaxis:{title:{text:a,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...m},yaxis:{title:{text:l,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...m},paper_bgcolor:Yo.WHITE,plot_bgcolor:Yo.WHITE};return C.newPlot(c.current,u,e,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{c.current&&C.purge(c.current)}},[e,r,t,a,l,s,d,u]),M.jsx("div",{className:"dotplot-container",style:{width:r},children:M.jsx("div",{ref:c,style:{width:"100%",height:"100%",margin:"0"}})})};const tn=[[0,"#092761"],[.15,"#141950"],[.3,"#282D73"],[.45,"#463782"],[.6,"#643C8C"],[.7,"#8C4696"],[.8,"#B45096"],[.9,"#DC5A8C"],[.95,"#FA6482"],[1,"#FF5C64"]],on=({data:e,xLabels:r,yLabels:t,title:n,xTitle:a="Columns",yTitle:l="Rows",colorscale:s=tn,width:d=800,height:c=600,showScale:h=!0,precision:p=0,zmin:x=0,zmax:g=5e4,valueUnit:f=""})=>{const u=i(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=r||Array.from({length:b},(e,r)=>r+1),y=t||(w=m.length,Array.from({length:w},(e,r)=>String.fromCharCode(65+r)));var w;return o(()=>{if(!u.current)return;const e=[{z:m,x:v,y:y,type:"heatmap",colorscale:s,showscale:h,zsmooth:!1,hovertemplate:`Row: %{y}<br>Column: %{x}<br>Value: %{z:.${p}f}${f}<extra></extra>`,zmin:x,zmax:g,colorbar:{thickness:28,len:1,outlinewidth:0,ticksuffix:f,y:.5,yanchor:"middle"}}],r={title:{text:n||"",font:{family:"Inter, sans-serif",size:20,color:"var(--black-300)"},y:.98,yanchor:"top"},width:d,height:c,margin:{l:70,r:70,b:70,t:100,pad:5},xaxis:{title:{text:a,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 C.newPlot(u.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{u.current&&C.purge(u.current)}},[e,r,t,n,a,l,s,d,c,h,p,x,g,f]),M.jsx("div",{className:"heatmap-container",children:M.jsx("div",{ref:u,style:{width:"100%",height:"100%"}})})},nn=({dataSeries:r,width:t=480,height:n=480,title:a="Histogram",xTitle:l="X Axis",yTitle:s="Frequency",bargap:d=.2,showDistributionLine:c=!1})=>{const h=i(null),p=Array.isArray(r)?r:[r],x=p.length>1?"stack":void 0,g=[Yo.ORANGE,Yo.RED,Yo.BLUE,Yo.GREEN,Yo.PURPLE,Yo.YELLOW],f=p.map((e,r)=>{const t=void 0!==e.showDistributionLine?e.showDistributionLine:c;return{...e,color:e.color||g[r%g.length],opacity:t?.5:e.opacity||1,showDistributionLine:t,lineWidth:e.lineWidth||3}}),u=Yo.GREY_200,m=f.map(e=>({type:"histogram",x:e.x,name:e.name,marker:{color:e.color,line:{color:Yo.WHITE,width:1},opacity:e.opacity},autobinx:e.autobinx,xbins:e.xbins,hovertemplate:`${l}: %{x}<br>${s}: %{y}<extra>${e.name}</extra>`})),b=f.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),a=n-o,l=o-.1*a,s=n+.1*a,d=e.xbins||{start:l,end:s,size:a/10},c=((e,r,t,i,o=100)=>{const n=[],a=[],l=(i-t)/(o-1);for(let i=0;i<o;i++){const o=t+i*l;n.push(o);const s=-.5*Math.pow((o-e)/r,2),d=1/(r*Math.sqrt(2*Math.PI))*Math.exp(s);a.push(d)}return{x:n,y:a}})(r,i,l,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"}}),v=[...m,...b];o(()=>{if(!h.current)return;const e={width:t,height:n,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:90,r:40,b:80,t:40},xaxis:{title:{text:l,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:u,tickcolor:Yo.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:Yo.BLACK_900,linewidth:1,zeroline:!1},yaxis:{title:{text:s,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:u,tickcolor:Yo.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:Yo.BLACK_900,linewidth:1,zeroline:!1,rangemode:"tozero"},barmode:x,bargap:d,paper_bgcolor:Yo.WHITE,plot_bgcolor:Yo.WHITE};return C.newPlot(h.current,v,e,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{h.current&&C.purge(h.current)}},[r,t,n,a,l,s,d,c,v]);return M.jsx("div",{className:"histogram-container",style:{width:t},children:M.jsxs("div",{className:"chart-container",children:[a&&M.jsx("div",{className:"title-container",children:M.jsx("h2",{className:"title",children:a})}),M.jsx("div",{ref:h,style:{width:"100%",height:"100%",margin:"0"}}),M.jsx(({series:r})=>{const t=r.map((t,i)=>M.jsx(e.Fragment,{children:M.jsxs("div",{className:"legend-item",children:[M.jsx("span",{className:"color-box",style:{background:t.color}}),t.name,i<r.length-1&&M.jsx("span",{className:"divider"})]})},t.name)),i=[];for(let e=0;e<t.length;e+=6)i.push(M.jsx("div",{className:"legend-row",children:t.slice(e,e+6)},e));return M.jsx("div",{className:"legend-container",children:i})},{series:f})]})})},an=({dataSeries:e,width:r=1e3,height:t=600,xRange:n,yRange:a,variant:l="lines",xTitle:s="Columns",yTitle:d="Rows",title:c="Line Graph"})=>{const h=i(null),{yMin:p,yMax:x}=(()=>{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:i-a,yMax:o+a}})(),g=a||[p,x],f=Array.from(new Set(e.flatMap(e=>e.x))),u=(()=>{const e=g[1]-g[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(g[0]/r)*r;for(;i<=g[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:Yo.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Yo.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Yo.BLACK_900,linewidth:1,position:0,zeroline:!1};return o(()=>{if(!h.current)return;const i=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})),o={title:{text:c,font:{size:32,family:"Inter, sans-serif",color:Yo.BLACK_900}},width:r,height:t,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:Yo.WHITE,plot_bgcolor:Yo.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Yo.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:f,ticktext:f.map(String),showgrid:!0,...b},yaxis:{title:{text:d,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Yo.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:u,showgrid:!0,...b},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Yo.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0};return C.newPlot(h.current,i,o,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{h.current&&C.purge(h.current)}},[e,r,t,n,a,l,s,d,c]),M.jsx("div",{className:"chart-container",children:M.jsx("div",{ref:h,style:{width:"100%",height:"100%"}})})},ln=s.div`
1889
+ display: flex;
1890
+ flex-direction: column;
1891
+ width: 100vw;
1892
+ height: 100vh;
1893
+ `,sn=s.div`
1894
+ display: flex;
1895
+ flex: 1;
1896
+ overflow: hidden;
1897
+ `,dn=s.div`
1898
+ display: flex;
1899
+ flex-direction: column;
1900
+ flex: 1;
1901
+ overflow: hidden;
1902
+ `,cn=s.div`
1903
+ display: flex;
1904
+ flex-direction: column;
1905
+ background-color: var(--white-900);
1906
+ flex: 1;
1907
+ overflow: hidden;
1908
+ `,hn=s.div`
1909
+ border-bottom: 1px solid var(--grey-200);
1910
+ display: flex;
1911
+ flex-direction: column;
1912
+ flex: 1;
1913
+ overflow: hidden;
1914
+ `,pn=s.div`
1915
+ display: flex;
1916
+ justify-content: space-between;
1917
+ align-items: center;
1918
+ padding: 24px 0;
1919
+ background-color: var(--white-900);
1920
+ `,xn=s.h2`
1921
+ font-family: "Inter", sans-serif;
1922
+ font-size: 20px;
1923
+ font-weight: 500;
1924
+ color: var(--black-900);
1925
+ margin: 0;
1926
+ `,gn=s.div`
1927
+ display: flex;
1928
+ gap: 8px;
1929
+ `,fn=s(B)`
1930
+ border-radius: 4px;
1931
+ width: 32px;
1932
+ height: 32px;
1933
+ `,un=s.div`
1934
+ width: 360px;
1935
+ height: 100%;
1936
+ display: flex;
1937
+ flex-direction: column;
1938
+ padding: 16px 24px;
1939
+ overflow: hidden;
1940
+ max-height: 100%;
1941
+ `,mn=s.div`
1942
+ flex: 1;
1943
+ height: 100%;
1944
+ background-color: var(--grey-100);
1945
+ display: flex;
1946
+ flex-direction: column;
1947
+ `,bn=s.div`
1948
+ padding: 16px 24px 0 24px;
1949
+ `,Cn=s.div`
1950
+ display: flex;
1951
+ flex-direction: column;
1952
+ overflow-y: auto;
1953
+ flex: 1;
1954
+ margin-top: 8px;
1955
+ max-height: calc(100vh - 240px);
1956
+ `,vn=s.div`
1957
+ display: flex;
1958
+ flex-direction: column;
1959
+ justify-content: center;
1960
+ align-items: center;
1961
+ gap: 16px;
1962
+ `,yn=s.div`
1963
+ color: var(--grey-400);
1964
+ font-size: 14px;
1965
+ font-weight: 500;
1966
+ `,wn=s.div`
1967
+ cursor: pointer;
1968
+
1969
+ &:last-child {
1970
+ border-bottom: none;
1971
+ }
1972
+ `,jn=s(bi)``,kn=s.div`
1973
+ padding: 24px;
1974
+ margin-top: -1px;
1975
+ flex: 1;
1976
+ border-top: 1px solid var(--grey-200);
1977
+ `,En=s.div`
1978
+ height: 100%;
1979
+ border: 1px solid var(--grey-200);
1980
+ border-radius: 8px;
1981
+ overflow: hidden;
1982
+ `,Ln=({userProfile:e,hostname:r,organization:i})=>{const o=[{icon:Ie.SEARCH_DOCUMENT,label:"Search"},{icon:Ie.SEARCH_SQL,label:"SQL Search"},{icon:Ie.LAMP,label:"Projects"},{icon:Ie.PIPELINE,label:"Pipelines"},{icon:Ie.COMPUTER,label:"Data & AI Workspace"},{icon:Ie.CUBE,label:"Artifacts"},{icon:Ie.DATABASE,label:"Data Sources"},{icon:Ie.PIE_CHART,label:"Health Monitoring"},{icon:Ie.BULK_CHECK,label:"Bulk Actions"},{icon:Ie.CODE,label:"Attribute Management"},{icon:Ie.GEAR,label:"Administration"}],[n,a]=t("Pipelines"),[l,s]=t("templates"),[d,c]=t("pipelineBuilder"),[h,p]=t("1"),x=[{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:""}],g=[],f=e=>{p(e===h?null:e)},u=e=>{console.log(`Using template: ${e}`)},m=e=>{console.log(`Viewing template: ${e}`)};return M.jsxs(ln,{children:[M.jsx(qi,{organization:i}),M.jsxs(sn,{children:[M.jsx(_o,{items:o,activeItem:n,onItemClick:e=>{a(e)}}),M.jsxs(dn,{children:[M.jsx(Ft,{hostname:r,userProfile:e,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),M.jsx(cn,{children:M.jsx(hn,{children:M.jsxs("div",{style:{display:"flex",height:"100%"},children:[M.jsxs(un,{children:[M.jsx(Vo,{tabs:[{id:"templates",label:"Templates"},{id:"protocol",label:"Protocol"},{id:"steps",label:"Steps"}],activeTab:l,onChange:e=>{s(e)}}),"templates"===l&&M.jsxs(M.Fragment,{children:[M.jsxs(pn,{children:[M.jsx(xn,{children:"Templates"}),M.jsxs(gn,{children:[M.jsx(fn,{variant:"tertiary",size:"small","aria-label":"Delete",noPadding:!0,children:M.jsx(Ne,{name:Ie.TRASH,width:"20",height:"20",fill:"var(--red-error)"})}),M.jsx(fn,{variant:"primary",size:"small","aria-label":"Add",noPadding:!0,children:M.jsx(Ne,{name:Ie.PLUS,width:"20",height:"20",fill:"var(--white-900)"})})]})]}),M.jsx(Cn,{children:x.length>0?x.map(e=>M.jsx(wn,{onClick:()=>f(e.id),children:M.jsx(jn,{title:e.title,description:e.description,buttonText:e.buttonText,linkText:e.linkText,status:h===e.id?"active":"default",onButtonClick:()=>u(e.id),onLinkClick:()=>m(e.id)})},e.id)):M.jsxs(vn,{children:[M.jsx(Ne,{name:Ie.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),M.jsx(yn,{children:"No data"})]})})]}),"protocol"===l&&M.jsxs(M.Fragment,{children:[M.jsx(pn,{children:M.jsxs(xn,{children:["Protocol (",g.length,")"]})}),M.jsx(Cn,{children:g.length>0?g.map(e=>M.jsx(wn,{onClick:()=>f(e.id),children:M.jsx(jn,{title:e.title,description:e.description,status:h===e.id?"active":"default",onButtonClick:()=>u(e.id),onLinkClick:()=>m(e.id)})},e.id)):M.jsxs(vn,{children:[M.jsx(Ne,{name:Ie.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),M.jsx(yn,{children:"No data"})]})})]}),"steps"===l&&M.jsxs(M.Fragment,{children:[M.jsx(pn,{children:M.jsxs(xn,{children:["Task Scripts (",0,")"]})}),M.jsx(Cn,{children:g.length>0?g.map(e=>M.jsx(wn,{onClick:()=>f(e.id),children:M.jsx(jn,{title:e.title,description:e.description,status:h===e.id?"active":"default",onButtonClick:()=>u(e.id),onLinkClick:()=>m(e.id)})},e.id)):M.jsxs(vn,{children:[M.jsx(Ne,{name:Ie.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),M.jsx(yn,{children:"No data"})]})})]})]}),M.jsxs(mn,{children:[M.jsx(bn,{children:M.jsx(Vo,{tabs:[{id:"pipelineBuilder",label:"Pipeline Builder"},{id:"configuration",label:"Configuration"},{id:"launch",label:"Launch"}],activeTab:d,onChange:e=>{c(e)}})}),M.jsxs(kn,{children:["pipelineBuilder"===d&&M.jsx(En,{}),"configuration"===d&&M.jsx(lo,{}),"launch"===d&&M.jsx(Ti,{})]})]})]})})})]})]})]})},Mn=({dataSeries:r,width:t=400,height:n=400,title:a="Pie Chart",textInfo:l="percent",hole:s=0,rotation:d=0})=>{const c=i(null),h=[Yo.BLUE,Yo.GREEN,Yo.ORANGE,Yo.RED,Yo.YELLOW,Yo.PURPLE],p=()=>{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(h[r%h.length]);return e};o(()=>{if(!c.current)return;const e=[{type:"pie",labels:r.labels,values:r.values,name:r.name,marker:{colors:p()},textinfo:l,hoverinfo:"label+text+value",insidetextfont:{size:0,family:"Inter, sans-serif",color:"transparent"},hole:s,rotation:d}],i={width:t,height:n,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:40,r:40,b:40,t:40}};return C.newPlot(c.current,e,i,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{c.current&&C.purge(c.current)}},[r,t,n,l,s,d]);return M.jsx("div",{className:"card-container",style:{width:t},children:M.jsxs("div",{className:"chart-container",children:[a&&M.jsx("div",{className:"title-container",children:M.jsx("h2",{className:"title",children:a})}),M.jsx("div",{ref:c,style:{width:"100%",height:"100%",margin:"0"}}),M.jsx(({labels:r,colors:t})=>{const i=r.map((i,o)=>M.jsx(e.Fragment,{children:M.jsxs("div",{className:"legend-item",children:[M.jsx("span",{className:"color-box",style:{background:t[o]}}),i,o<r.length-1&&M.jsx("span",{className:"divider"})]})},i)),o=[];for(let e=0;e<i.length;e+=6)o.push(M.jsx("div",{className:"legend-row",children:i.slice(e,e+6)},e));return M.jsx("div",{className:"legend-container",children:o})},{labels:r.labels,colors:p()})]})})},_n=({dataSeries:e,width:r=1e3,height:t=600,xRange:n,yRange:a,xTitle:l="Columns",yTitle:s="Rows",title:d="Scatter Plot"})=>{const c=i(null),{xMin:h,xMax:p,yMin:x,yMax:g}=(()=>{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:i-a,yMax:o+a}})(),f=n||[h,p],u=a||[x,g],m=(()=>{const e=f[1]-f[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(f[0]/r)*r;for(;i<=f[1];)t.push(i),i+=r;return t})(),b=(()=>{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})(),v={tickcolor:Yo.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Yo.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Yo.BLACK_900,linewidth:1,position:0,zeroline:!1},y={showspikes:!0,spikemode:"across",spikedash:"solid",spikecolor:Yo.BLACK_OPACITY_20,spikethickness:2};return o(()=>{if(!c.current)return;const i=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>${s}: %{y}<extra>${e.name}</extra>`})),o={title:{text:d,font:{size:32,family:"Inter, sans-serif",color:Yo.BLACK_900}},width:r,height:t,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:Yo.WHITE,plot_bgcolor:Yo.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Yo.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:m,ticktext:m.map(String),showgrid:!0,...y,...v},yaxis:{title:{text:s,font:{size:16,color:Yo.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Yo.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:b,showgrid:!0,...y,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Yo.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0,hovermode:"closest"};return C.newPlot(c.current,i,o,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{c.current&&C.purge(c.current)}},[e,r,t,n,a,l,s,d]),M.jsx("div",{className:"chart-container",children:M.jsx("div",{ref:c,style:{width:"100%",height:"100%"}})})},An={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"}},Rn=({theme:e={},children:r})=>{const t=a(()=>({colors:{...An.colors,...e.colors},radius:{...An.radius,...e.radius},spacing:{...An.spacing,...e.spacing}}),[e]);return o(()=>{const e=document.documentElement;return t.colors&&Object.entries(t.colors).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-${r}`,t)}),t.radius&&Object.entries(t.radius).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-radius-${r}`,t)}),t.spacing&&Object.entries(t.spacing).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-spacing-${r}`,t)}),()=>{t.colors&&Object.keys(t.colors).forEach(r=>{e.style.removeProperty(`--theme-${r}`)}),t.radius&&Object.keys(t.radius).forEach(r=>{e.style.removeProperty(`--theme-radius-${r}`)}),t.spacing&&Object.keys(t.spacing).forEach(r=>{e.style.removeProperty(`--theme-spacing-${r}`)})}},[t]),M.jsx(p,{theme:t,children:r})};export{Ft as AppHeader,Ko as AppLayout,qo as AreaGraph,si as AssistantModal,I as Badge,Qo as BarGraph,Jo as Boxplot,B as Button,$ as ButtonControl,hi as ButtonControlGroup,Xo as CHART_COLORS,Yo as COLORS,U as Card,bi as CardSidebar,Se as Checkbox,en as Chromatogram,Ye as CodeEditor,wi as CodeScriptEditorButton,rn as DotPlot,or as Dropdown,Cr as ErrorAlert,Ei as FormField,on as Heatmap,nn as Histogram,Ne as Icon,Ie as IconName,kr as Input,Ar as Label,Ti as LaunchContent,an as LineGraph,Ln as Main,zr as MarkdownDisplay,$i as Menu,Sr as MenuItem,Qr as Modal,qi as Navbar,Mn as PieChart,ot as PopConfirm,lo as ProtocolConfiguration,mo as ProtocolYamlCard,Co as PythonEditorModal,_n as ScatterGraph,wo as SelectField,_o as Sidebar,lt as SupportiveText,ct as Tab,Vo as TabGroup,Oo as Table,pt as TableCell,bt as TableHeaderCell,wt as Textarea,Rn as ThemeProvider,zt as Toast,Go as ToastManager,Ot as Toggle,De as Tooltip,An as defaultTheme};
1983
+ //# sourceMappingURL=index.js.map