diff --git a/datacenter/next.config.js b/datacenter/next.config.js
index 9ebb2f610..b1f8602d8 100644
--- a/datacenter/next.config.js
+++ b/datacenter/next.config.js
@@ -8,7 +8,7 @@ const nextConfig = {
ignoreBuildErrors: true
},
env: {
- API_BASE_URL: process.env.API_BASE_URL
+ API_BASE_URL: process.env.NEXT_PUBLIC_API_BASE_URL ||'http://120.26.193.159:5000'
},
trailingSlash: true
}
diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html
index 316c2314a..a4feabea5 100644
--- a/pilot/server/static/404.html
+++ b/pilot/server/static/404.html
@@ -1 +1 @@
-
404: This page could not be found 404
This page could not be found.
\ No newline at end of file
+404: This page could not be found 404
This page could not be found.
\ No newline at end of file
diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html
index 316c2314a..a4feabea5 100644
--- a/pilot/server/static/404/index.html
+++ b/pilot/server/static/404/index.html
@@ -1 +1 @@
-404: This page could not be found 404
This page could not be found.
\ No newline at end of file
+404: This page could not be found 404
This page could not be found.
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/esqxweU8ZaWkPpbX1ngPx/_buildManifest.js b/pilot/server/static/_next/static/78-6fvqkDkgeOnUsWIzRd/_buildManifest.js
similarity index 100%
rename from pilot/server/static/_next/static/esqxweU8ZaWkPpbX1ngPx/_buildManifest.js
rename to pilot/server/static/_next/static/78-6fvqkDkgeOnUsWIzRd/_buildManifest.js
diff --git a/pilot/server/static/_next/static/esqxweU8ZaWkPpbX1ngPx/_ssgManifest.js b/pilot/server/static/_next/static/78-6fvqkDkgeOnUsWIzRd/_ssgManifest.js
similarity index 100%
rename from pilot/server/static/_next/static/esqxweU8ZaWkPpbX1ngPx/_ssgManifest.js
rename to pilot/server/static/_next/static/78-6fvqkDkgeOnUsWIzRd/_ssgManifest.js
diff --git a/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_buildManifest.js b/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_buildManifest.js
new file mode 100644
index 000000000..cb10d35e8
--- /dev/null
+++ b/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_buildManifest.js
@@ -0,0 +1 @@
+self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-f5357f382422dd96.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_ssgManifest.js b/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_ssgManifest.js
new file mode 100644
index 000000000..5b3ff592f
--- /dev/null
+++ b/pilot/server/static/_next/static/BVzBiuHGuyq42mJZb_YZ8/_ssgManifest.js
@@ -0,0 +1 @@
+self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_buildManifest.js b/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_buildManifest.js
new file mode 100644
index 000000000..cb10d35e8
--- /dev/null
+++ b/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_buildManifest.js
@@ -0,0 +1 @@
+self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-f5357f382422dd96.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_ssgManifest.js b/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_ssgManifest.js
new file mode 100644
index 000000000..5b3ff592f
--- /dev/null
+++ b/pilot/server/static/_next/static/C5iDQ207eyReb9bRXegbu/_ssgManifest.js
@@ -0,0 +1 @@
+self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_buildManifest.js b/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_buildManifest.js
new file mode 100644
index 000000000..cb10d35e8
--- /dev/null
+++ b/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_buildManifest.js
@@ -0,0 +1 @@
+self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-f5357f382422dd96.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_ssgManifest.js b/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_ssgManifest.js
new file mode 100644
index 000000000..5b3ff592f
--- /dev/null
+++ b/pilot/server/static/_next/static/I32BqNR_oBtzM3ewXQsG-/_ssgManifest.js
@@ -0,0 +1 @@
+self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/430-266fcdf5d617a912.js b/pilot/server/static/_next/static/chunks/430-266fcdf5d617a912.js
new file mode 100644
index 000000000..2ece9273d
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/430-266fcdf5d617a912.js
@@ -0,0 +1,65 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[430],{70333:function(e,t,n){"use strict";n.d(t,{iN:function(){return g},R_:function(){return f},ez:function(){return d}});var r=n(32675),o=n(79185),a=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function i(e){var t=e.r,n=e.g,o=e.b,a=(0,r.py)(t,n,o);return{h:360*a.h,s:a.s,v:a.v}}function l(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function c(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function s(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),f=5;f>0;f-=1){var d=i(r),p=l((0,o.uA)({h:c(d,f,!0),s:s(d,f,!0),v:u(d,f,!0)}));n.push(p)}n.push(l(r));for(var h=1;h<=4;h+=1){var g=i(r),v=l((0,o.uA)({h:c(g,h),s:s(g,h),v:u(g,h)}));n.push(v)}return"dark"===t.theme?a.map(function(e){var r,a,i,c=e.index,s=e.opacity;return l((r=(0,o.uA)(t.backgroundColor||"#141414"),a=(0,o.uA)(n[c]),i=100*s/100,{r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b}))}):n}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}),p.red,p.volcano,p.gold,p.orange,p.yellow,p.lime,p.green,p.cyan;var g=p.blue;p.geekblue,p.purple,p.magenta,p.grey,p.grey},11717:function(e,t,n){"use strict";n.d(t,{E4:function(){return D},jG:function(){return G},t2:function(){return Z},fp:function(){return E},xy:function(){return _}});var r=n(90151),o=n(88684),a=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},i=n(86006);n(55567),n(81027);var l=n(18050),c=n(49449),s=n(65877),u=function(){function e(t){(0,l.Z)(this,e),(0,s.Z)(this,"instanceId",void 0),(0,s.Z)(this,"cache",new Map),this.instanceId=t}return(0,c.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),f="data-token-hash",d="data-css-hash",p="__cssinjs_instance__",h=i.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(d,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[p]=t[p]||e,t[p]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(d,"]"))).forEach(function(t){var n,o=t.getAttribute(d);r[o]?t[p]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new u(e)}(),defaultCache:!0}),g=n(965),v=n(71693),m=n(52160);function y(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&"object"===(0,g.Z)(r)?t+=y(r):t+=r}),t}var b="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),x="903px",C=void 0,S=n(60456);function w(e,t,n,o){var a=i.useContext(h).cache,l=[e].concat((0,r.Z)(t));return i.useMemo(function(){a.update(l,function(e){var t=(0,S.Z)(e||[],2),r=t[0];return[(void 0===r?0:r)+1,t[1]||n()]})},[l.join("_")]),i.useEffect(function(){return function(){a.update(l,function(e){var t=(0,S.Z)(e||[],2),n=t[0],r=void 0===n?0:n,a=t[1];return 0==r-1?(null==o||o(a,!1),null):[r-1,a]})}},l),a.get(l)[1]}var $={},k=new Map,Z=function(e,t,n,r){var a=n.getDerivativeToken(e),i=(0,o.Z)((0,o.Z)({},a),t);return r&&(i=r(i)),i};function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,i.useContext)(h).cache.instanceId,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?$:s,d=n.formatToken,g=i.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,r.Z)(t)))},[t]),v=i.useMemo(function(){return y(g)},[g]),m=i.useMemo(function(){return y(u)},[u]);return w("token",[c,e.id,v,m],function(){var t=Z(g,u,e,d),n=a("".concat(c,"_").concat(y(t)));t._tokenKey=n,k.set(n,(k.get(n)||0)+1);var r="".concat("css","-").concat(a(n));return t._hashId=r,[t,r]},function(e){var t,n,r;t=e[0]._tokenKey,k.set(t,(k.get(t)||0)-1),(r=(n=Array.from(k.keys())).filter(function(e){return 0>=(k.get(e)||0)})).length1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=a.root,l=a.injectHash,c=a.parentSelectors,s=n.hashId,u=n.layer,f=(n.path,n.hashPriority),d=n.transformers,p=void 0===d?[]:d;n.linters;var h="",y={};function w(t){var r=t.getName(s);if(!y[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,S.Z)(o,1)[0];y[r]="@keyframes ".concat(t.getName(s)).concat(a)}}if((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var a="string"!=typeof t||i?t:{};if("string"==typeof a)h+="".concat(a,"\n");else if(a._keyframe)w(a);else{var u=p.reduce(function(e,t){var n;return(null==t?void 0:null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},a);Object.keys(u).forEach(function(t){var a=u[t];if("object"!==(0,g.Z)(a)||!a||"animationName"===t&&a._keyframe||"object"===(0,g.Z)(a)&&a&&("_skip_check_"in a||H in a)){function d(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;O[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(w(t),r=t.getName(s)),h+="".concat(n,":").concat(r,";")}var p,v=null!==(p=null==a?void 0:a.value)&&void 0!==p?p:a;"object"===(0,g.Z)(a)&&null!=a&&a[H]&&Array.isArray(v)?v.forEach(function(e){d(t,e)}):d(t,v)}else{var m=!1,b=t.trim(),x=!1;(i||l)&&s?b.startsWith("@")?m=!0:b=function(e,t,n){if(!t)return e;var o=".".concat(t),a="low"===n?":where(".concat(o,")"):o;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(a).concat(o.slice(i.length))].concat((0,r.Z)(n.slice(1))).join(" ")}).join(",")}(t,s,f):i&&!s&&("&"===b||""===b)&&(b="",x=!0);var C=e(a,n,{root:x,injectHash:m,parentSelectors:[].concat((0,r.Z)(c),[b])}),$=(0,S.Z)(C,2),k=$[0],Z=$[1];y=(0,o.Z)((0,o.Z)({},y),Z),h+="".concat(b).concat(k)}})}}),i){if(u&&(void 0===C&&(C=function(e,t){if((0,v.Z)()){(0,m.hq)(e,b);var n,r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",null==t||t(r),document.body.appendChild(r);var o=getComputedStyle(r).width===x;return null===(n=r.parentNode)||void 0===n||n.removeChild(r),(0,m.jL)(b),o}return!1}("@layer ".concat(b," { .").concat(b," { width: ").concat(x,"!important; } }"),function(e){e.className=b})),C)){var $=u.split(","),k=$[$.length-1].trim();h="@layer ".concat(k," {").concat(h,"}"),$.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,y]};function R(){return null}function _(e,t){var n=e.token,o=e.path,l=e.hashId,c=e.layer,u=e.nonce,g=i.useContext(h),v=g.autoClear,y=(g.mock,g.defaultCache),b=g.hashPriority,x=g.container,C=g.ssrInline,$=g.transformers,k=g.linters,Z=g.cache,E=n._tokenKey,O=[E].concat((0,r.Z)(o)),P=w("style",O,function(){var e=F(t(),{hashId:l,hashPriority:b,layer:c,path:o.join("-"),transformers:$,linters:k}),n=(0,S.Z)(e,2),r=n[0],i=n[1],s=T(r),h=a("".concat(O.join("%")).concat(s));if(j){var g={mark:d,prepend:"queue",attachTo:x},v="function"==typeof u?u():u;v&&(g.csp={nonce:v});var y=(0,m.hq)(s,h,g);y[p]=Z.instanceId,y.setAttribute(f,E),Object.keys(i).forEach(function(e){(0,m.hq)(T(i[e]),"_effect-".concat(e),g)})}return[s,E,h]},function(e,t){var n=(0,S.Z)(e,3)[2];(t||v)&&j&&(0,m.jL)(n,{mark:d})}),B=(0,S.Z)(P,3),M=B[0],H=B[1],_=B[2];return function(e){var t,n;return t=C&&!j&&y?i.createElement("style",(0,A.Z)({},(n={},(0,s.Z)(n,f,H),(0,s.Z)(n,d,_),n),{dangerouslySetInnerHTML:{__html:M}})):i.createElement(R,null),i.createElement(i.Fragment,null,t,e)}}var D=function(){function e(t,n){(0,l.Z)(this,e),(0,s.Z)(this,"name",void 0),(0,s.Z)(this,"style",void 0),(0,s.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,c.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),L=function(){function e(){(0,l.Z)(this,e),(0,s.Z)(this,"cache",void 0),(0,s.Z)(this,"keys",void 0),(0,s.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,c.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,n;o=null===(t=o)||void 0===t?void 0:null===(n=t.map)||void 0===n?void 0:n.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,S.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),I+=1}return(0,c.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),z=new L;function G(e){var t=Array.isArray(e)?e:[e];return z.has(t)||z.set(t,new N(t)),z.get(t)}function W(e){return e.notSplit=!0,e}W(["borderTop","borderBottom"]),W(["borderTop"]),W(["borderBottom"]),W(["borderLeft","borderRight"]),W(["borderLeft"]),W(["borderRight"])},1240:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(40431),o=n(60456),a=n(65877),i=n(89301),l=n(86006),c=n(8683),s=n.n(c),u=n(70333),f=n(83346),d=n(88684),p=n(965),h=n(5004),g=n(52160),v=n(60618);function m(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):t[n]=r,t},{})}function b(e){return(0,u.R_)(e)[0]}function x(e){return e?Array.isArray(e)?e:[e]:[]}var C=function(e){var t=(0,l.useContext)(f.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,l.useEffect)(function(){var t=e.current,r=(0,v.A)(t);(0,g.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])},S=["icon","className","onClick","style","primaryColor","secondaryColor"],w={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},$=function(e){var t,n,r=e.icon,o=e.className,a=e.onClick,c=e.style,s=e.primaryColor,u=e.secondaryColor,f=(0,i.Z)(e,S),p=l.useRef(),g=w;if(s&&(g={primaryColor:s,secondaryColor:u||b(s)}),C(p),t=m(r),n="icon should be icon definiton, but got ".concat(r),(0,h.ZP)(t,"[@ant-design/icons] ".concat(n)),!m(r))return null;var v=r;return v&&"function"==typeof v.icon&&(v=(0,d.Z)((0,d.Z)({},v),{},{icon:v.icon(g.primaryColor,g.secondaryColor)})),function e(t,n,r){return r?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:n},y(t.attrs)),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:n},y(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}(v.icon,"svg-".concat(v.name),(0,d.Z)((0,d.Z)({className:o,onClick:a,style:c,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function k(e){var t=x(e),n=(0,o.Z)(t,2),r=n[0],a=n[1];return $.setTwoToneColors({primaryColor:r,secondaryColor:a})}$.displayName="IconReact",$.getTwoToneColors=function(){return(0,d.Z)({},w)},$.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;w.primaryColor=t,w.secondaryColor=n||b(t),w.calculated=!!n};var Z=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.iN.primary);var E=l.forwardRef(function(e,t){var n,c=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,v=e.twoToneColor,m=(0,i.Z)(e,Z),y=l.useContext(f.Z),b=y.prefixCls,C=void 0===b?"anticon":b,S=y.rootClassName,w=s()(S,C,(n={},(0,a.Z)(n,"".concat(C,"-").concat(u.name),!!u.name),(0,a.Z)(n,"".concat(C,"-spin"),!!d||"loading"===u.name),n),c),k=h;void 0===k&&g&&(k=-1);var E=x(v),A=(0,o.Z)(E,2),O=A[0],P=A[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},m,{ref:t,tabIndex:k,onClick:g,className:w}),l.createElement($,{icon:u,primaryColor:O,secondaryColor:P,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});E.displayName="AntdIcon",E.getTwoToneColor=function(){var e=$.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},E.setTwoToneColor=k;var A=E},83346:function(e,t,n){"use strict";var r=(0,n(86006).createContext)({});t.Z=r},56222:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(40431),o=n(86006),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},i=n(1240),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},31533:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(40431),o=n(86006),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},i=n(1240),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},75710:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(40431),o=n(86006),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},i=n(1240),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},32675:function(e,t,n){"use strict";n.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return s},Yt:function(){return h},lC:function(){return a},py:function(){return c},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var r=n(25752);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function a(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=0,c=(o+a)/2;if(o===a)l=0,i=0;else{var s=o-a;switch(l=c>.5?s/(2-o-a):s/(o+a),o){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6)?e+(t-e)*(6*n):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)a=n,l=n,o=n;else{var o,a,l,c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=i(s,c,e+1/3),a=i(s,c,e),l=i(s,c,e-1/3)}return{r:255*o,g:255*a,b:255*l}}function c(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),a=Math.min(e,t,n),i=0,l=o-a;if(o===a)i=0;else{switch(o){case e:i=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},29888:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},79185:function(e,t,n){"use strict";n.d(t,{uA:function(){return i}});var r=n(32675),o=n(29888),a=n(25752);function i(e){var t={r:0,g:0,b:0},n=1,i=null,l=null,c=null,s=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),s=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(i=(0,a.JX)(e.s),l=(0,a.JX)(e.v),t=(0,r.WE)(e.h,i,l),s=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(i=(0,a.JX)(e.s),c=(0,a.JX)(e.l),t=(0,r.ve)(e.h,i,c),s=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,a.Yq)(n),{ok:s,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+c),rgba:RegExp("rgba"+s),hsl:RegExp("hsl"+c),hsla:RegExp("hsla"+s),hsv:RegExp("hsv"+c),hsva:RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return!!u.CSS_UNIT.exec(String(e))}},57389:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(32675),o=n(29888),a=n(79185),i=n(25752),l=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var o,i=(0,a.uA)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,i.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,i.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,i.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(255*(t/100))))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(255*(t/100))))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(255*(t/100))))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,i.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,i.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;iMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function a(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function i(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return i},V2:function(){return o},Yq:function(){return a},sh:function(){return r}})},43709:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case i.h5:e.return=function e(t,n){switch((0,a.vp)(t,n)){case 5103:return i.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i.G$+t+i.uj+t+i.MS+t+t;case 6828:case 4268:return i.G$+t+i.MS+t+t;case 6165:return i.G$+t+i.MS+"flex-"+t+t;case 5187:return i.G$+t+(0,a.gx)(t,/(\w+).+(:[^]+)/,i.G$+"box-$1$2"+i.MS+"flex-$1$2")+t;case 5443:return i.G$+t+i.MS+"flex-item-"+(0,a.gx)(t,/flex-|-self/,"")+t;case 4675:return i.G$+t+i.MS+"flex-line-pack"+(0,a.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return i.G$+t+i.MS+(0,a.gx)(t,"shrink","negative")+t;case 5292:return i.G$+t+i.MS+(0,a.gx)(t,"basis","preferred-size")+t;case 6060:return i.G$+"box-"+(0,a.gx)(t,"-grow","")+i.G$+t+i.MS+(0,a.gx)(t,"grow","positive")+t;case 4554:return i.G$+(0,a.gx)(t,/([^-])(transform)/g,"$1"+i.G$+"$2")+t;case 6187:return(0,a.gx)((0,a.gx)((0,a.gx)(t,/(zoom-|grab)/,i.G$+"$1"),/(image-set)/,i.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,a.gx)(t,/(image-set\([^]*)/,i.G$+"$1$`$1");case 4968:return(0,a.gx)((0,a.gx)(t,/(.+:)(flex-)?(.*)/,i.G$+"box-pack:$3"+i.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,a.gx)(t,/(.+)-inline(.+)/,i.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,a.to)(t)-1-n>6)switch((0,a.uO)(t,n+1)){case 109:if(45!==(0,a.uO)(t,n+4))break;case 102:return(0,a.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+i.G$+"$2-$3$1"+i.uj+(108==(0,a.uO)(t,n+3)?"$3":"$2-$3"))+t;case 115:return~(0,a.Cw)(t,"stretch")?e((0,a.gx)(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==(0,a.uO)(t,n+1))break;case 6444:switch((0,a.uO)(t,(0,a.to)(t)-3-(~(0,a.Cw)(t,"!important")&&10))){case 107:return(0,a.gx)(t,":",":"+i.G$)+t;case 101:return(0,a.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i.G$+(45===(0,a.uO)(t,14)?"inline-":"")+"box$3$1"+i.G$+"$2$3$1"+i.MS+"$2box$3")+t}break;case 5936:switch((0,a.uO)(t,n+11)){case 114:return i.G$+t+i.MS+(0,a.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i.G$+t+i.MS+(0,a.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i.G$+t+i.MS+(0,a.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return i.G$+t+i.MS+t+t}return t}(e.value,e.length);break;case i.lK:return(0,l.q)([(0,o.JG)(e,{value:(0,a.gx)(e.value,"@","@"+i.G$)})],r);case i.Fr:if(e.length)return(0,a.$e)(e.props,function(t){switch((0,a.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(e,{props:[(0,a.gx)(t,/:(read-\w+)/,":"+i.uj+"$1")]})],r);case"::placeholder":return(0,l.q)([(0,o.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,":"+i.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,":"+i.uj+"$1")]}),(0,o.JG)(e,{props:[(0,a.gx)(t,/:(plac\w+)/,i.MS+"input-$1")]})],r)}return""})}}],g=function(e){var t,n,o,i,s,u=e.key;if("css"===u){var f=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(f,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||h,v={},m=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(i)+s,styles:i,next:r}}},85124:function(e,t,n){"use strict";n.d(t,{L:function(){return i},j:function(){return l}});var r,o=n(86006),a=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,i=a||function(e){return e()},l=a||o.useLayoutEffect},75941:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}n.d(t,{My:function(){return a},fp:function(){return r},hC:function(){return o}});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next;while(void 0!==a)}}},18587:function(e,t,n){"use strict";n.d(t,{d6:function(){return a},sI:function(){return i}});var r=n(13809),o=n(88539);let a=(e,t)=>(0,r.Z)(e,t,"Joy"),i=(e,t)=>(0,o.Z)(e,t,"Joy")},38230:function(e,t){"use strict";t.Z={grey:{50:"#F7F7F8",100:"#EBEBEF",200:"#D8D8DF",300:"#B9B9C6",400:"#8F8FA3",500:"#73738C",600:"#5A5A72",700:"#434356",800:"#25252D",900:"#131318"},blue:{50:"#F4FAFF",100:"#DDF1FF",200:"#ADDBFF",300:"#6FB6FF",400:"#3990FF",500:"#096BDE",600:"#054DA7",700:"#02367D",800:"#072859",900:"#00153C"},yellow:{50:"#FFF8C5",100:"#FAE17D",200:"#EAC54F",300:"#D4A72C",400:"#BF8700",500:"#9A6700",600:"#7D4E00",700:"#633C01",800:"#4D2D00",900:"#3B2300"},red:{50:"#FFF8F6",100:"#FFE9E8",200:"#FFC7C5",300:"#FF9192",400:"#FA5255",500:"#D3232F",600:"#A10E25",700:"#77061B",800:"#580013",900:"#39000D"},green:{50:"#F3FEF5",100:"#D7F5DD",200:"#77EC95",300:"#4CC76E",400:"#2CA24D",500:"#1A7D36",600:"#0F5D26",700:"#034318",800:"#002F0F",900:"#001D09"},purple:{50:"#FDF7FF",100:"#F4EAFF",200:"#E1CBFF",300:"#C69EFF",400:"#A374F9",500:"#814DDE",600:"#5F35AE",700:"#452382",800:"#301761",900:"#1D0A42"}}},31227:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(40431);function o(e,t,n){return void 0===e||"string"==typeof e?t:(0,r.Z)({},t,{ownerState:(0,r.Z)({},t.ownerState,n)})}},87862:function(e,t,n){"use strict";function r(e,t=[]){if(void 0===e)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}n.d(t,{Z:function(){return r}})},85059:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(40431),o=n(89791),a=n(87862);function i(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function l(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:l,externalForwardedProps:c,className:s}=e;if(!t){let e=(0,o.Z)(null==c?void 0:c.className,null==l?void 0:l.className,s,null==n?void 0:n.className),t=(0,r.Z)({},null==n?void 0:n.style,null==c?void 0:c.style,null==l?void 0:l.style),a=(0,r.Z)({},n,c,l);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}let u=(0,a.Z)((0,r.Z)({},c,l)),f=i(l),d=i(c),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==n?void 0:n.className,s,null==c?void 0:c.className,null==l?void 0:l.className),g=(0,r.Z)({},null==p?void 0:p.style,null==n?void 0:n.style,null==c?void 0:c.style,null==l?void 0:l.style),v=(0,r.Z)({},p,n,d,f);return h.length>0&&(v.className=h),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:p.ref}}},95596:function(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{Z:function(){return r}})},47093:function(e,t,n){"use strict";n.d(t,{VT:function(){return c},do:function(){return s}});var r=n(86006),o=n(95887),a=n(98918),i=n(9268);let l=r.createContext(void 0),c=e=>{let t=r.useContext(l);return{getColor:(n,r)=>t&&e&&t.includes(e)?n||"context":n||r}};function s({children:e,variant:t}){var n;let r=(0,o.Z)(a.Z);return(0,i.jsx)(l.Provider,{value:t?(null!=(n=r.colorInversionConfig)?n:a.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},98918:function(e,t,n){"use strict";var r=n(41287);let o=(0,r.Z)();t.Z=o},41287:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(40431),o=n(46750),a=n(95135),i=n(82190),l=n(23343),c=n(57716),s=n(93815);let u=(e,t,n,r=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})},f=(e,t,n)=>{!function e(r,o=[],a=[]){Object.entries(r).forEach(([r,i])=>{n&&(!n||n([...o,r]))||null==i||("object"==typeof i&&Object.keys(i).length>0?e(i,[...o,r],Array.isArray(i)?[...a,r]:a):t([...o,r],i,a))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let n=e[e.length-1];return n.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:d(e,t)}),u(a,e,`var(${r})`,l),u(i,e,`var(${r}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:a,varsWithDefaults:i}}let h=["colorSchemes","components"],g=["light"];var v=function(e,t){let{colorSchemes:n={}}=e,i=(0,o.Z)(e,h),{vars:l,css:c,varsWithDefaults:s}=p(i,t),u=s,f={},{light:d}=n,v=(0,o.Z)(n,g);if(Object.entries(v||{}).forEach(([e,n])=>{let{vars:r,css:o,varsWithDefaults:i}=p(n,t);u=(0,a.Z)(u,i),f[e]={css:o,vars:r}}),d){let{css:e,vars:n,varsWithDefaults:r}=p(d,t);u=(0,a.Z)(u,r),f.light={css:e,vars:n}}return{vars:u,generateCssVars:e=>e?{css:(0,r.Z)({},f[e].css),vars:f[e].vars}:{css:(0,r.Z)({},c),vars:l}}},m=n(51579),y=n(2272);let b=(0,r.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=n(38230);function C(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var S=n(18587),w=n(52428);let $=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],k=["colorSchemes"],Z=(e="joy")=>(0,i.Z)(e);function E(e){var t,n,i,u,f,d,p,h,g,y,E,A,O,P,B,M,j,H,T,F,R,_,D,L,I,N,z,G,W,U,K,V,X,q,Y,Q,J,ee,et,en,er,eo,ea,ei,el,ec,es,eu,ef,ed,ep,eh,eg,ev,em,ey,eb,ex,eC,eS,ew,e$,ek,eZ,eE,eA,eO,eP,eB,eM,ej,eH,eT,eF,eR,e_,eD,eL,eI,eN,ez,eG;let eW=e||{},{cssVarPrefix:eU="joy",breakpoints:eK,spacing:eV,components:eX,variants:eq,colorInversion:eY,shouldSkipGeneratingVar:eQ=C}=eW,eJ=(0,o.Z)(eW,$),e0=Z(eU),e1={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,info:x.Z.purple,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FFF",black:"#09090D"}},e5=e=>{var t;let n=e.split("-"),r=n[1],o=n[2];return e0(e,null==(t=e1[r])?void 0:t[o])},e2=e=>({plainColor:e5(`palette-${e}-600`),plainHoverBg:e5(`palette-${e}-100`),plainActiveBg:e5(`palette-${e}-200`),plainDisabledColor:e5(`palette-${e}-200`),outlinedColor:e5(`palette-${e}-500`),outlinedBorder:e5(`palette-${e}-200`),outlinedHoverBg:e5(`palette-${e}-100`),outlinedHoverBorder:e5(`palette-${e}-300`),outlinedActiveBg:e5(`palette-${e}-200`),outlinedDisabledColor:e5(`palette-${e}-100`),outlinedDisabledBorder:e5(`palette-${e}-100`),softColor:e5(`palette-${e}-600`),softBg:e5(`palette-${e}-100`),softHoverBg:e5(`palette-${e}-200`),softActiveBg:e5(`palette-${e}-300`),softDisabledColor:e5(`palette-${e}-300`),softDisabledBg:e5(`palette-${e}-50`),solidColor:"#fff",solidBg:e5(`palette-${e}-500`),solidHoverBg:e5(`palette-${e}-600`),solidActiveBg:e5(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:e5(`palette-${e}-200`)}),e6=e=>({plainColor:e5(`palette-${e}-300`),plainHoverBg:e5(`palette-${e}-800`),plainActiveBg:e5(`palette-${e}-700`),plainDisabledColor:e5(`palette-${e}-800`),outlinedColor:e5(`palette-${e}-200`),outlinedBorder:e5(`palette-${e}-700`),outlinedHoverBg:e5(`palette-${e}-800`),outlinedHoverBorder:e5(`palette-${e}-600`),outlinedActiveBg:e5(`palette-${e}-900`),outlinedDisabledColor:e5(`palette-${e}-800`),outlinedDisabledBorder:e5(`palette-${e}-800`),softColor:e5(`palette-${e}-200`),softBg:e5(`palette-${e}-900`),softHoverBg:e5(`palette-${e}-800`),softActiveBg:e5(`palette-${e}-700`),softDisabledColor:e5(`palette-${e}-800`),softDisabledBg:e5(`palette-${e}-900`),solidColor:"#fff",solidBg:e5(`palette-${e}-600`),solidHoverBg:e5(`palette-${e}-700`),solidActiveBg:e5(`palette-${e}-800`),solidDisabledColor:e5(`palette-${e}-700`),solidDisabledBg:e5(`palette-${e}-900`)}),e3={palette:{mode:"light",primary:(0,r.Z)({},e1.primary,e2("primary")),neutral:(0,r.Z)({},e1.neutral,{plainColor:e5("palette-neutral-800"),plainHoverColor:e5("palette-neutral-900"),plainHoverBg:e5("palette-neutral-100"),plainActiveBg:e5("palette-neutral-200"),plainDisabledColor:e5("palette-neutral-300"),outlinedColor:e5("palette-neutral-800"),outlinedBorder:e5("palette-neutral-200"),outlinedHoverColor:e5("palette-neutral-900"),outlinedHoverBg:e5("palette-neutral-100"),outlinedHoverBorder:e5("palette-neutral-300"),outlinedActiveBg:e5("palette-neutral-200"),outlinedDisabledColor:e5("palette-neutral-300"),outlinedDisabledBorder:e5("palette-neutral-100"),softColor:e5("palette-neutral-800"),softBg:e5("palette-neutral-100"),softHoverColor:e5("palette-neutral-900"),softHoverBg:e5("palette-neutral-200"),softActiveBg:e5("palette-neutral-300"),softDisabledColor:e5("palette-neutral-300"),softDisabledBg:e5("palette-neutral-50"),solidColor:e5("palette-common-white"),solidBg:e5("palette-neutral-600"),solidHoverBg:e5("palette-neutral-700"),solidActiveBg:e5("palette-neutral-800"),solidDisabledColor:e5("palette-neutral-300"),solidDisabledBg:e5("palette-neutral-50")}),danger:(0,r.Z)({},e1.danger,e2("danger")),info:(0,r.Z)({},e1.info,e2("info")),success:(0,r.Z)({},e1.success,e2("success")),warning:(0,r.Z)({},e1.warning,e2("warning"),{solidColor:e5("palette-warning-800"),solidBg:e5("palette-warning-200"),solidHoverBg:e5("palette-warning-300"),solidActiveBg:e5("palette-warning-400"),solidDisabledColor:e5("palette-warning-200"),solidDisabledBg:e5("palette-warning-50"),softColor:e5("palette-warning-800"),softBg:e5("palette-warning-50"),softHoverBg:e5("palette-warning-100"),softActiveBg:e5("palette-warning-200"),softDisabledColor:e5("palette-warning-200"),softDisabledBg:e5("palette-warning-50"),outlinedColor:e5("palette-warning-800"),outlinedHoverBg:e5("palette-warning-50"),plainColor:e5("palette-warning-800"),plainHoverBg:e5("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:e5("palette-neutral-800"),secondary:e5("palette-neutral-600"),tertiary:e5("palette-neutral-500")},background:{body:e5("palette-common-white"),surface:e5("palette-common-white"),popup:e5("palette-common-white"),level1:e5("palette-neutral-50"),level2:e5("palette-neutral-100"),level3:e5("palette-neutral-200"),tooltip:e5("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${e0("palette-neutral-mainChannel",(0,l.n8)(e1.neutral[500]))} / 0.28)`,focusVisible:e5("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},e8={palette:{mode:"dark",primary:(0,r.Z)({},e1.primary,e6("primary")),neutral:(0,r.Z)({},e1.neutral,{plainColor:e5("palette-neutral-200"),plainHoverColor:e5("palette-neutral-50"),plainHoverBg:e5("palette-neutral-800"),plainActiveBg:e5("palette-neutral-700"),plainDisabledColor:e5("palette-neutral-700"),outlinedColor:e5("palette-neutral-200"),outlinedBorder:e5("palette-neutral-800"),outlinedHoverColor:e5("palette-neutral-50"),outlinedHoverBg:e5("palette-neutral-800"),outlinedHoverBorder:e5("palette-neutral-700"),outlinedActiveBg:e5("palette-neutral-800"),outlinedDisabledColor:e5("palette-neutral-800"),outlinedDisabledBorder:e5("palette-neutral-800"),softColor:e5("palette-neutral-200"),softBg:e5("palette-neutral-800"),softHoverColor:e5("palette-neutral-50"),softHoverBg:e5("palette-neutral-700"),softActiveBg:e5("palette-neutral-600"),softDisabledColor:e5("palette-neutral-700"),softDisabledBg:e5("palette-neutral-900"),solidColor:e5("palette-common-white"),solidBg:e5("palette-neutral-600"),solidHoverBg:e5("palette-neutral-700"),solidActiveBg:e5("palette-neutral-800"),solidDisabledColor:e5("palette-neutral-700"),solidDisabledBg:e5("palette-neutral-900")}),danger:(0,r.Z)({},e1.danger,e6("danger")),info:(0,r.Z)({},e1.info,e6("info")),success:(0,r.Z)({},e1.success,e6("success"),{solidColor:"#fff",solidBg:e5("palette-success-600"),solidHoverBg:e5("palette-success-700"),solidActiveBg:e5("palette-success-800")}),warning:(0,r.Z)({},e1.warning,e6("warning"),{solidColor:e5("palette-common-black"),solidBg:e5("palette-warning-300"),solidHoverBg:e5("palette-warning-400"),solidActiveBg:e5("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:e5("palette-neutral-100"),secondary:e5("palette-neutral-300"),tertiary:e5("palette-neutral-400")},background:{body:e5("palette-neutral-900"),surface:e5("palette-common-black"),popup:e5("palette-neutral-800"),level1:e5("palette-neutral-800"),level2:e5("palette-neutral-700"),level3:e5("palette-neutral-600"),tooltip:e5("palette-neutral-600"),backdrop:`rgba(${e0("palette-neutral-darkChannel",(0,l.n8)(e1.neutral[800]))} / 0.5)`},divider:`rgba(${e0("palette-neutral-mainChannel",(0,l.n8)(e1.neutral[500]))} / 0.24)`,focusVisible:e5("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},e4='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',e9=(0,r.Z)({body:`"Public Sans", ${e0("fontFamily-fallback",e4)}`,display:`"Public Sans", ${e0("fontFamily-fallback",e4)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:e4},eJ.fontFamily),e7=(0,r.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eJ.fontWeight),te=(0,r.Z)({xs3:"0.5rem",xs2:"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem"},eJ.fontSize),tt=(0,r.Z)({sm:1.25,md:1.5,lg:1.7},eJ.lineHeight),tn=(0,r.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eJ.letterSpacing),tr={colorSchemes:{light:e3,dark:e8},fontSize:te,fontFamily:e9,fontWeight:e7,focus:{thickness:"2px",selector:`&.${(0,S.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${e0("focus-thickness",null!=(t=null==(n=eJ.focus)?void 0:n.thickness)?t:"2px")})`,outline:`${e0("focus-thickness",null!=(i=null==(u=eJ.focus)?void 0:u.thickness)?i:"2px")} solid ${e0("palette-focusVisible",e1.primary[500])}`}},lineHeight:tt,letterSpacing:tn,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${e0("shadowRing",null!=(f=null==(d=eJ.colorSchemes)?void 0:null==(p=d.light)?void 0:p.shadowRing)?f:e3.shadowRing)}, 0 1px 2px 0 rgba(${e0("shadowChannel",null!=(h=null==(g=eJ.colorSchemes)?void 0:null==(y=g.light)?void 0:y.shadowChannel)?h:e3.shadowChannel)} / 0.12)`,sm:`${e0("shadowRing",null!=(E=null==(A=eJ.colorSchemes)?void 0:null==(O=A.light)?void 0:O.shadowRing)?E:e3.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e0("shadowChannel",null!=(P=null==(B=eJ.colorSchemes)?void 0:null==(M=B.light)?void 0:M.shadowChannel)?P:e3.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${e0("shadowChannel",null!=(j=null==(H=eJ.colorSchemes)?void 0:null==(T=H.light)?void 0:T.shadowChannel)?j:e3.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${e0("shadowChannel",null!=(F=null==(R=eJ.colorSchemes)?void 0:null==(_=R.light)?void 0:_.shadowChannel)?F:e3.shadowChannel)} / 0.26)`,md:`${e0("shadowRing",null!=(D=null==(L=eJ.colorSchemes)?void 0:null==(I=L.light)?void 0:I.shadowRing)?D:e3.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e0("shadowChannel",null!=(N=null==(z=eJ.colorSchemes)?void 0:null==(G=z.light)?void 0:G.shadowChannel)?N:e3.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${e0("shadowChannel",null!=(W=null==(U=eJ.colorSchemes)?void 0:null==(K=U.light)?void 0:K.shadowChannel)?W:e3.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${e0("shadowChannel",null!=(V=null==(X=eJ.colorSchemes)?void 0:null==(q=X.light)?void 0:q.shadowChannel)?V:e3.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${e0("shadowChannel",null!=(Y=null==(Q=eJ.colorSchemes)?void 0:null==(J=Q.light)?void 0:J.shadowChannel)?Y:e3.shadowChannel)} / 0.29)`,lg:`${e0("shadowRing",null!=(ee=null==(et=eJ.colorSchemes)?void 0:null==(en=et.light)?void 0:en.shadowRing)?ee:e3.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e0("shadowChannel",null!=(er=null==(eo=eJ.colorSchemes)?void 0:null==(ea=eo.light)?void 0:ea.shadowChannel)?er:e3.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e0("shadowChannel",null!=(ei=null==(el=eJ.colorSchemes)?void 0:null==(ec=el.light)?void 0:ec.shadowChannel)?ei:e3.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e0("shadowChannel",null!=(es=null==(eu=eJ.colorSchemes)?void 0:null==(ef=eu.light)?void 0:ef.shadowChannel)?es:e3.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e0("shadowChannel",null!=(ed=null==(ep=eJ.colorSchemes)?void 0:null==(eh=ep.light)?void 0:eh.shadowChannel)?ed:e3.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e0("shadowChannel",null!=(eg=null==(ev=eJ.colorSchemes)?void 0:null==(em=ev.light)?void 0:em.shadowChannel)?eg:e3.shadowChannel)} / 0.21)`,xl:`${e0("shadowRing",null!=(ey=null==(eb=eJ.colorSchemes)?void 0:null==(ex=eb.light)?void 0:ex.shadowRing)?ey:e3.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e0("shadowChannel",null!=(eC=null==(eS=eJ.colorSchemes)?void 0:null==(ew=eS.light)?void 0:ew.shadowChannel)?eC:e3.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e0("shadowChannel",null!=(e$=null==(ek=eJ.colorSchemes)?void 0:null==(eZ=ek.light)?void 0:eZ.shadowChannel)?e$:e3.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e0("shadowChannel",null!=(eE=null==(eA=eJ.colorSchemes)?void 0:null==(eO=eA.light)?void 0:eO.shadowChannel)?eE:e3.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e0("shadowChannel",null!=(eP=null==(eB=eJ.colorSchemes)?void 0:null==(eM=eB.light)?void 0:eM.shadowChannel)?eP:e3.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e0("shadowChannel",null!=(ej=null==(eH=eJ.colorSchemes)?void 0:null==(eT=eH.light)?void 0:eT.shadowChannel)?ej:e3.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${e0("shadowChannel",null!=(eF=null==(eR=eJ.colorSchemes)?void 0:null==(e_=eR.light)?void 0:e_.shadowChannel)?eF:e3.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${e0("shadowChannel",null!=(eD=null==(eL=eJ.colorSchemes)?void 0:null==(eI=eL.light)?void 0:eI.shadowChannel)?eD:e3.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${e0("shadowChannel",null!=(eN=null==(ez=eJ.colorSchemes)?void 0:null==(eG=ez.light)?void 0:eG.shadowChannel)?eN:e3.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:e0("fontFamily-display",e9.display),fontWeight:e0("fontWeight-xl",e7.xl.toString()),fontSize:e0("fontSize-xl7",te.xl7),lineHeight:e0("lineHeight-sm",tt.sm.toString()),letterSpacing:e0("letterSpacing-sm",tn.sm),color:e0("palette-text-primary",e3.palette.text.primary)},display2:{fontFamily:e0("fontFamily-display",e9.display),fontWeight:e0("fontWeight-xl",e7.xl.toString()),fontSize:e0("fontSize-xl6",te.xl6),lineHeight:e0("lineHeight-sm",tt.sm.toString()),letterSpacing:e0("letterSpacing-sm",tn.sm),color:e0("palette-text-primary",e3.palette.text.primary)},h1:{fontFamily:e0("fontFamily-display",e9.display),fontWeight:e0("fontWeight-lg",e7.lg.toString()),fontSize:e0("fontSize-xl5",te.xl5),lineHeight:e0("lineHeight-sm",tt.sm.toString()),letterSpacing:e0("letterSpacing-sm",tn.sm),color:e0("palette-text-primary",e3.palette.text.primary)},h2:{fontFamily:e0("fontFamily-display",e9.display),fontWeight:e0("fontWeight-lg",e7.lg.toString()),fontSize:e0("fontSize-xl4",te.xl4),lineHeight:e0("lineHeight-sm",tt.sm.toString()),letterSpacing:e0("letterSpacing-sm",tn.sm),color:e0("palette-text-primary",e3.palette.text.primary)},h3:{fontFamily:e0("fontFamily-body",e9.body),fontWeight:e0("fontWeight-md",e7.md.toString()),fontSize:e0("fontSize-xl3",te.xl3),lineHeight:e0("lineHeight-sm",tt.sm.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},h4:{fontFamily:e0("fontFamily-body",e9.body),fontWeight:e0("fontWeight-md",e7.md.toString()),fontSize:e0("fontSize-xl2",te.xl2),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},h5:{fontFamily:e0("fontFamily-body",e9.body),fontWeight:e0("fontWeight-md",e7.md.toString()),fontSize:e0("fontSize-xl",te.xl),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},h6:{fontFamily:e0("fontFamily-body",e9.body),fontWeight:e0("fontWeight-md",e7.md.toString()),fontSize:e0("fontSize-lg",te.lg),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},body1:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-md",te.md),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-primary",e3.palette.text.primary)},body2:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-sm",te.sm),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-secondary",e3.palette.text.secondary)},body3:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-xs",te.xs),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-tertiary",e3.palette.text.tertiary)},body4:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-xs2",te.xs2),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-tertiary",e3.palette.text.tertiary)},body5:{fontFamily:e0("fontFamily-body",e9.body),fontSize:e0("fontSize-xs3",te.xs3),lineHeight:e0("lineHeight-md",tt.md.toString()),color:e0("palette-text-tertiary",e3.palette.text.tertiary)}}},to=eJ?(0,a.Z)(tr,eJ):tr,{colorSchemes:ta}=to,ti=(0,o.Z)(to,k),tl=(0,r.Z)({colorSchemes:ta},ti,{breakpoints:(0,c.Z)(null!=eK?eK:{}),components:(0,a.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;let o=e.instanceFontSize;return(0,r.Z)({color:"var(--Icon-color)",margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eX),cssVarPrefix:eU,getCssVar:e0,spacing:(0,s.Z)(eV),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(tl.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(n=>{let r={main:"500",light:"200",dark:"800"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=(0,l.n8)(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=(0,l.n8)(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=(0,l.n8)(t[n][r.dark]))})}(e,t.palette)});let{vars:tc,generateCssVars:ts}=v((0,r.Z)({colorSchemes:ta},ti),{prefix:eU,shouldSkipGeneratingVar:eQ});tl.vars=tc,tl.generateCssVars=ts,tl.unstable_sxConfig=(0,r.Z)({},b,null==e?void 0:e.unstable_sxConfig),tl.unstable_sx=function(e){return(0,m.Z)({sx:e,theme:this})},tl.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let tu={getCssVar:e0,palette:tl.colorSchemes.light.palette};return tl.variants=(0,a.Z)({plain:(0,w.Zm)("plain",tu),plainHover:(0,w.Zm)("plainHover",tu),plainActive:(0,w.Zm)("plainActive",tu),plainDisabled:(0,w.Zm)("plainDisabled",tu),outlined:(0,w.Zm)("outlined",tu),outlinedHover:(0,w.Zm)("outlinedHover",tu),outlinedActive:(0,w.Zm)("outlinedActive",tu),outlinedDisabled:(0,w.Zm)("outlinedDisabled",tu),soft:(0,w.Zm)("soft",tu),softHover:(0,w.Zm)("softHover",tu),softActive:(0,w.Zm)("softActive",tu),softDisabled:(0,w.Zm)("softDisabled",tu),solid:(0,w.Zm)("solid",tu),solidHover:(0,w.Zm)("solidHover",tu),solidActive:(0,w.Zm)("solidActive",tu),solidDisabled:(0,w.Zm)("solidDisabled",tu)},eq),tl.palette=(0,r.Z)({},tl.colorSchemes.light.palette,{colorScheme:"light"}),tl.shouldSkipGeneratingVar=eQ,tl.colorInversion="function"==typeof eY?eY:(0,a.Z)({soft:(0,w.pP)(tl,!0),solid:(0,w.Lo)(tl,!0)},eY||{},{clone:!1}),tl}},50645:function(e,t,n){"use strict";var r=n(9312),o=n(98918);let a=(0,r.ZP)({defaultTheme:o.Z});t.Z=a},88930:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(40431),o=n(38295),a=n(98918);function i({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,r.Z)({},a.Z,{components:{}})})}},52428:function(e,t,n){"use strict";n.d(t,{Lo:function(){return f},Zm:function(){return s},pP:function(){return u}});var r=n(40431),o=n(82190);let a=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),i=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},l=(e,t,n)=>{let r={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),i(r,t,e)}}),r},c=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,s=(e,t)=>{let n={};if(t){let{getCssVar:o,palette:i}=t;Object.entries(i).forEach(t=>{let[c,s]=t;a(s)&&"object"==typeof s&&(n=(0,r.Z)({},n,{[c]:l(e,s,e=>o(`palette-${c}-${e}`,i[c][e]))}))})}return n.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverColor:"var(--variant-solidHoverColor)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},u=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=c(e.cssVarPrefix),i={},l=t?t=>{var r,o;let a=t.split("-"),i=a[1],l=a[2];return n(t,null==(r=e.palette)?void 0:null==(o=r[i])?void 0:o[l])}:n;return Object.entries(e.palette).forEach(t=>{let[n,o]=t;a(o)&&(i[n]={"--Badge-ringColor":l(`palette-${n}-softBg`),[r("--shadowChannel")]:l(`palette-${n}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[r("--palette-focusVisible")]:l(`palette-${n}-300`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,[r("--palette-text-primary")]:l(`palette-${n}-100`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.72)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-divider")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${n}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${n}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${n}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${n}-100`),"--variant-softBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${n}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${n}-400`),"--variant-solidActiveBg":l(`palette-${n}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[r("--palette-focusVisible")]:l(`palette-${n}-500`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,[r("--palette-text-primary")]:l(`palette-${n}-700`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.68)`,[r("--palette-divider")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${n}-mainChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${n}-600`),"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${n}-600`),"--variant-outlinedHoverBorder":l(`palette-${n}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${n}-600`),"--variant-softBg":`rgba(${l(`palette-${n}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${n}-700`),"--variant-softHoverBg":l(`palette-${n}-200`),"--variant-softActiveBg":l(`palette-${n}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${n}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${n}-500`),"--variant-solidActiveBg":l(`palette-${n}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`}})}),i},f=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=c(e.cssVarPrefix),i={},l=t?t=>{let r=t.split("-"),o=r[1],a=r[2];return n(t,e.palette[o][a])}:n;return Object.entries(e.palette).forEach(e=>{let[t,n]=e;a(n)&&("warning"===t?i.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[r("--shadowChannel")]:l(`palette-${t}-darkChannel`),[r("--palette-focusVisible")]:l(`palette-${t}-700`),[r("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[r("--palette-background-popup")]:l(`palette-${t}-100`),[r("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:l(`palette-${t}-900`),[r("--palette-text-secondary")]:l(`palette-${t}-700`),[r("--palette-text-tertiary")]:l(`palette-${t}-500`),[r("--palette-divider")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,"--variant-plainColor":l(`palette-${t}-700`),"--variant-plainHoverColor":l(`palette-${t}-800`),"--variant-plainHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-700`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.5)`,"--variant-outlinedHoverColor":l(`palette-${t}-800`),"--variant-outlinedHoverBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.6)`,"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${t}-800`),"--variant-softHoverColor":l(`palette-${t}-900`),"--variant-softBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.28)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${t}-600`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${t}-700`),"--variant-solidActiveBg":l(`palette-${t}-800`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`}:i[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[r("--shadowChannel")]:l(`palette-${t}-darkChannel`),[r("--palette-focusVisible")]:l(`palette-${t}-200`),[r("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[r("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[r("--palette-background-popup")]:l(`palette-${t}-700`),[r("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:l("palette-common-white"),[r("--palette-text-secondary")]:l(`palette-${t}-100`),[r("--palette-text-tertiary")]:l(`palette-${t}-200`),[r("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverColor":l(`palette-${t}-700`),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-200`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),i}},326:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(40431),o=n(46750),a=n(99179),i=n(95596),l=n(85059),c=n(31227),s=n(47093);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:n,elementType:h,ownerState:g,externalForwardedProps:v,getSlotOwnerState:m,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:C={[e]:void 0},slotProps:S={[e]:void 0}}=v,w=(0,o.Z)(v,f),$=C[e]||h,k=(0,i.Z)(S[e],g),Z=(0,l.Z)((0,r.Z)({className:n},b,{externalForwardedProps:"root"===e?w:void 0,externalSlotProps:k})),{props:{component:E},internalRef:A}=Z,O=(0,o.Z)(Z.props,d),P=(0,a.Z)(A,null==k?void 0:k.ref,t.ref),B=m?m(O):{},{disableColorInversion:M=!1}=B,j=(0,o.Z)(B,p),H=(0,r.Z)({},g,j),{getColor:T}=(0,s.VT)(H.variant);if("root"===e){var F;H.color=null!=(F=O.color)?F:g.color}else M||(H.color=T(O.color,H.color));let R="root"===e?E||x:E,_=(0,c.Z)($,(0,r.Z)({},"root"===e&&!x&&!C[e]&&y,"root"!==e&&!C[e]&&y,O,R&&{as:R},{ref:P}),H);return Object.keys(j).forEach(e=>{delete _[e]}),[$,_]}},4323:function(e,t,n){"use strict";n.d(t,{ZP:function(){return m},Co:function(){return y}});var r=n(40431),o=n(86006),a=n(83596),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=(0,a.Z)(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),c=n(17464),s=n(75941),u=n(5013),f=n(85124),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.hC)(t,n,r),(0,f.L)(function(){return(0,s.My)(t,n,r)}),null},v=(function e(t,n){var a,i,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==n&&(a=n.label,i=n.target);var d=h(t,n,l),v=d||p(f),m=!v("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&b.push("label:"+a+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,C=1;C{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},91559:function(e,t,n){"use strict";n.d(t,{L7:function(){return c},P$:function(){return u},VO:function(){return o},W8:function(){return l},dt:function(){return s},k9:function(){return i}});var r=n(95135);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function i(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||a;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){let e=r.breakpoints||a;return Object.keys(t).reduce((r,a)=>{if(-1!==Object.keys(e.values||o).indexOf(a)){let o=e.up(a);r[o]=n(t[a],a)}else r[a]=t[a];return r},{})}let i=n(t);return i}function l(e={}){var t;let n=null==(t=e.keys)?void 0:t.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{});return n||{}}function c(e,t){return e.reduce((e,t)=>{let n=e[t],r=!n||0===Object.keys(n).length;return r&&delete e[t],e},t)}function s(e,...t){let n=l(e),o=[n,...t].reduce((e,t)=>(0,r.Z)(e,t),{});return c(Object.keys(n),o)}function u({values:e,breakpoints:t,base:n}){let r;let o=n||function(e,t){if("object"!=typeof e)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r{null!=e[t]&&(n[t]=!0)}),n}(e,t),a=Object.keys(o);return 0===a.length?e:a.reduce((t,n,o)=>(Array.isArray(e)?(t[n]=null!=e[o]?e[o]:e[r],r=o):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t),{})}},23343:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return s},n8:function(){return i}});var r=n(16066);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function a(e){let t;if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),o=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,r.Z)(9,e));let i=e.substring(n+1,e.length-1);if("color"===o){if(t=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,r.Z)(10,t))}else i=i.split(",");return{type:o,values:i=i.map(e=>parseFloat(e)),colorSpace:t}}let i=e=>{let t=a(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function c(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){e=a(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),c=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1),s="rgb",u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),l({type:s,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,t){let n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function f(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)}},9312:function(e,t,n){"use strict";n.d(t,{ZP:function(){return b},x9:function(){return v}});var r=n(46750),o=n(40431),a=n(4323),i=n(89587),l=n(53832);let c=["variant"];function s(e){return 0===e.length}function u(e){let{variant:t}=e,n=(0,r.Z)(e,c),o=t||"";return Object.keys(n).sort().forEach(t=>{"color"===t?o+=s(o)?e[t]:(0,l.Z)(e[t]):o+=`${s(o)?t:(0,l.Z)(t)}${(0,l.Z)(e[t].toString())}`}),o}var f=n(51579);let d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,h=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);let r={};return n.forEach(e=>{let t=u(e.props);r[t]=e.style}),r},g=(e,t,n,r)=>{var o,a;let{ownerState:i={}}=e,l=[],c=null==n?void 0:null==(o=n.components)?void 0:null==(a=o[r])?void 0:a.variants;return c&&c.forEach(n=>{let r=!0;Object.keys(n.props).forEach(t=>{i[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)}),r&&l.push(t[u(n.props)])}),l};function v(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let m=(0,i.Z)();function y({defaultTheme:e,theme:t,themeId:n}){return 0===Object.keys(t).length?e:t[n]||t}function b(e={}){let{themeId:t,defaultTheme:n=m,rootShouldForwardProp:i=v,slotShouldForwardProp:l=v}=e,c=e=>(0,f.Z)((0,o.Z)({},e,{theme:y((0,o.Z)({},e,{defaultTheme:n,themeId:t}))}));return c.__mui_systemSx=!0,(e,s={})=>{let u;(0,a.Co)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:f,slot:m,skipVariantsResolver:b,skipSx:x,overridesResolver:C}=s,S=(0,r.Z)(s,d),w=void 0!==b?b:m&&"Root"!==m||!1,$=x||!1,k=v;"Root"===m?k=i:m?k=l:"string"==typeof e&&e.charCodeAt(0)>96&&(k=void 0);let Z=(0,a.ZP)(e,(0,o.Z)({shouldForwardProp:k,label:u},S)),E=(r,...a)=>{let i=a?a.map(e=>"function"==typeof e&&e.__emotion_real!==e?r=>e((0,o.Z)({},r,{theme:y((0,o.Z)({},r,{defaultTheme:n,themeId:t}))})):e):[],l=r;f&&C&&i.push(e=>{let r=y((0,o.Z)({},e,{defaultTheme:n,themeId:t})),a=p(f,r);if(a){let t={};return Object.entries(a).forEach(([n,a])=>{t[n]="function"==typeof a?a((0,o.Z)({},e,{theme:r})):a}),C(e,t)}return null}),f&&!w&&i.push(e=>{let r=y((0,o.Z)({},e,{defaultTheme:n,themeId:t}));return g(e,h(f,r),r,f)}),$||i.push(c);let s=i.length-a.length;if(Array.isArray(r)&&s>0){let e=Array(s).fill("");(l=[...r,...e]).raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(l=e=>r((0,o.Z)({},e,{theme:y((0,o.Z)({},e,{defaultTheme:n,themeId:t}))})));let u=Z(l,...i);return e.muiName&&(u.muiName=e.muiName),u};return Z.withConfig&&(E.withConfig=Z.withConfig),E}}},57716:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(46750),o=n(40431);let a=["values","unit","step"],i=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:l=5}=e,c=(0,r.Z)(e,a),s=i(t),u=Object.keys(s);function f(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function d(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-l/100}${n})`}function p(e,r){let o=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:r)-l/100}${n})`}return(0,o.Z)({keys:u,values:s,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let n=0===e.length?[1]:e;return n.map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}},89587:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(40431),o=n(46750),a=n(95135),i=n(57716),l={borderRadius:4},c=n(93815),s=n(51579),u=n(2272);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:n={},palette:d={},spacing:p,shape:h={}}=e,g=(0,o.Z)(e,f),v=(0,i.Z)(n),m=(0,c.Z)(p),y=(0,a.Z)({breakpoints:v,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},d),spacing:m,shape:(0,r.Z)({},l,h)},g);return(y=t.reduce((e,t)=>(0,a.Z)(e,t),y)).unstable_sxConfig=(0,r.Z)({},u.Z,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,s.Z)({sx:e,theme:this})},y}},82190:function(e,t,n){"use strict";function r(e=""){return(t,...n)=>`var(--${e?`${e}-`:""}${t}${function t(...n){if(!n.length)return"";let r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}(...n)})`}n.d(t,{Z:function(){return r}})},70233:function(e,t,n){"use strict";var r=n(95135);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},48527:function(e,t,n){"use strict";n.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return g},e6:function(){return m},o3:function(){return y}});var r=n(91559),o=n(95247),a=n(70233);let i={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},s=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!c[e])return[e];e=c[e]}let[t,n]=e.split(""),r=i[t],o=l[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,n,r){var a;let i=null!=(a=(0,o.DW)(e,t,!1))?a:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function g(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function v(e,t){let n=h(e.theme);return Object.keys(e).map(o=>(function(e,t,n,o){if(-1===t.indexOf(n))return null;let a=s(n),i=e[n];return(0,r.k9)(e,i,e=>a.reduce((t,n)=>(t[n]=g(o,e),t),{}))})(e,t,o,n)).reduce(a.Z,{})}function m(e){return v(e,u)}function y(e){return v(e,f)}function b(e){return v(e,d)}m.propTypes={},m.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},95247:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return i}});var r=n(53832),o=n(91559);function a(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function i(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(o=t(o,r,e)),o}t.ZP=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:l,transform:c}=e,s=e=>{if(null==e[t])return null;let s=e[t],u=e.theme,f=a(u,l)||{};return(0,o.k9)(e,s,e=>{let o=i(f,c,e);return(e===o&&"string"==typeof e&&(o=i(f,c,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n)?o:{[n]:o}})};return s.propTypes={},s.filterProps=[t],s}},2272:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(48527),o=n(95247),a=n(70233),i=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,a.Z)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n},l=n(91559);function c(e){return"number"!=typeof e?e:`${e}px solid`}let s=(0,o.ZP)({prop:"border",themeKey:"borders",transform:c}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:c}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:c}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:c}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:c}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,r.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],i(s,u,f,d,p,h,g,v,m,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,r.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,r.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["columnGap"];let S=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,r.NA)(t,e)}))}return null};S.propTypes={},S.filterProps=["rowGap"];let w=(0,o.ZP)({prop:"gridColumn"}),$=(0,o.ZP)({prop:"gridRow"}),k=(0,o.ZP)({prop:"gridAutoFlow"}),Z=(0,o.ZP)({prop:"gridAutoColumns"}),E=(0,o.ZP)({prop:"gridAutoRows"}),A=(0,o.ZP)({prop:"gridTemplateColumns"}),O=(0,o.ZP)({prop:"gridTemplateRows"}),P=(0,o.ZP)({prop:"gridTemplateAreas"}),B=(0,o.ZP)({prop:"gridArea"});function M(e,t){return"grey"===t?t:e}i(x,C,S,w,$,k,Z,E,A,O,P,B);let j=(0,o.ZP)({prop:"color",themeKey:"palette",transform:M}),H=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),T=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:M});function F(e){return e<=1&&0!==e?`${100*e}%`:e}i(j,H,T);let R=(0,o.ZP)({prop:"width",transform:F}),_=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var n,r,o;let a=(null==(n=e.theme)?void 0:null==(r=n.breakpoints)?void 0:null==(o=r.values)?void 0:o[t])||l.VO[t];return{maxWidth:a||F(t)}}):null;_.filterProps=["maxWidth"];let D=(0,o.ZP)({prop:"minWidth",transform:F}),L=(0,o.ZP)({prop:"height",transform:F}),I=(0,o.ZP)({prop:"maxHeight",transform:F}),N=(0,o.ZP)({prop:"minHeight",transform:F});(0,o.ZP)({prop:"size",cssProperty:"width",transform:F}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:F});let z=(0,o.ZP)({prop:"boxSizing"});i(R,_,D,L,I,N,z);let G={border:{themeKey:"borders",transform:c},borderTop:{themeKey:"borders",transform:c},borderRight:{themeKey:"borders",transform:c},borderBottom:{themeKey:"borders",transform:c},borderLeft:{themeKey:"borders",transform:c},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:S},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:F},maxWidth:{style:_},minWidth:{transform:F},height:{transform:F},maxHeight:{transform:F},minHeight:{transform:F},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var W=G},86601:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(40431),o=n(46750),a=n(95135),i=n(2272);let l=["sx"],c=e=>{var t,n;let r={systemProps:{},otherProps:{}},o=null!=(t=null==e?void 0:null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:i.Z;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function s(e){let t;let{sx:n}=e,i=(0,o.Z)(e,l),{systemProps:s,otherProps:u}=c(i);return t=Array.isArray(n)?[s,...n]:"function"==typeof n?(...e)=>{let t=n(...e);return(0,a.P)(t)?(0,r.Z)({},s,t):s}:(0,r.Z)({},s,n),(0,r.Z)({},u,{sx:t})}},51579:function(e,t,n){"use strict";var r=n(53832),o=n(70233),a=n(95247),i=n(91559),l=n(2272);let c=function(){function e(e,t,n,o){let l={[e]:t,theme:n},c=o[e];if(!c)return{[e]:t};let{cssProperty:s=e,themeKey:u,transform:f,style:d}=c;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,a.DW)(n,u)||{};return d?d(l):(0,i.k9)(l,t,t=>{let n=(0,a.Jq)(p,f,t);return(t===n&&"string"==typeof t&&(n=(0,a.Jq)(p,f,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===s)?n:{[s]:n}})}return function t(n){var r;let{sx:a,theme:c={}}=n||{};if(!a)return null;let s=null!=(r=c.unstable_sxConfig)?r:l.Z;function u(n){let r=n;if("function"==typeof n)r=n(c);else if("object"!=typeof n)return n;if(!r)return null;let a=(0,i.W8)(c.breakpoints),l=Object.keys(a),u=a;return Object.keys(r).forEach(n=>{var a;let l="function"==typeof(a=r[n])?a(c):a;if(null!=l){if("object"==typeof l){if(s[n])u=(0,o.Z)(u,e(n,l,c,s));else{let e=(0,i.k9)({theme:c},l,e=>({[n]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)})(e,l)?u[n]=t({sx:l,theme:c}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(n,l,c,s))}}),(0,i.L7)(l,u)}return Array.isArray(a)?a.map(u):u(a)}}();c.filterProps=["sx"],t.Z=c},95887:function(e,t,n){"use strict";var r=n(89587),o=n(65396);let a=(0,r.Z)();t.Z=function(e=a){return(0,o.Z)(e)}},38295:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(40431),o=n(95887);function a({props:e,name:t,defaultTheme:n,themeId:a}){let i=(0,o.Z)(n);a&&(i=i[a]||i);let l=function(e){let{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?function e(t,n){let o=(0,r.Z)({},n);return Object.keys(t).forEach(a=>{if(a.toString().match(/^(components|slots)$/))o[a]=(0,r.Z)({},t[a],o[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){let i=t[a]||{},l=n[a];o[a]={},l&&Object.keys(l)?i&&Object.keys(i)?(o[a]=(0,r.Z)({},l),Object.keys(i).forEach(t=>{o[a][t]=e(i[t],l[t])})):o[a]=l:o[a]=i}else void 0===o[a]&&(o[a]=t[a])}),o}(t.components[n].defaultProps,o):o}({theme:i,name:t,props:e});return l}},65396:function(e,t,n){"use strict";var r=n(86006),o=n(17464);t.Z=function(e=null){let t=r.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},47327:function(e,t){"use strict";let n;let r=e=>e,o=(n=r,{configure(e){n=e},generate:e=>n(e),reset(){n=r}});t.Z=o},53832:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(16066);function o(e){if("string"!=typeof e)throw Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},47562:function(e,t,n){"use strict";function r(e,t,n){let r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){let o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}n.d(t,{Z:function(){return r}})},95135:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return function e(t,n,a={clone:!0}){let i=a.clone?(0,r.Z)({},t):t;return o(t)&&o(n)&&Object.keys(n).forEach(r=>{"__proto__"!==r&&(o(n[r])&&r in t&&o(t[r])?i[r]=e(t[r],n[r],a):a.clone?i[r]=o(n[r])?function e(t){if(!o(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(n[r]):n[r]:i[r]=n[r])}),i}}});var r=n(40431);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},16066:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,r.Z)(e,t,n)}),o}},65464:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},99179:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(86006),o=n(65464);function a(...e){return r.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,o.Z)(e,t)})},e)}},21454:function(e,t,n){"use strict";let r;n.d(t,{Z:function(){return f}});var o=n(86006);let a=!0,i=!1,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function s(){a=!1}function u(){"hidden"===this.visibilityState&&i&&(a=!0)}function f(){let e=o.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",s,!0),t.addEventListener("pointerdown",s,!0),t.addEventListener("touchstart",s,!0),t.addEventListener("visibilitychange",u,!0)}},[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return a||function(e){let{type:t,tagName:n}=e;return"INPUT"===n&&!!l[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,window.clearTimeout(r),r=window.setTimeout(()=>{i=!1},100),t.current=!1,!0)},ref:e}}},20538:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(86006);let o=r.createContext(!1),a=e=>{let{children:t,disabled:n}=e,a=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:a},t)};t.Z=o},25844:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(86006),o=n(30069);let a=r.createContext(void 0),i=e=>{let{children:t,size:n}=e,i=(0,o.Z)(n);return r.createElement(a.Provider,{value:i},t)};t.Z=a},79746:function(e,t,n){"use strict";n.d(t,{E_:function(){return a},oR:function(){return o}});var r=n(86006);let o="anticon",a=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:i}=a},30069:function(e,t,n){"use strict";var r=n(86006),o=n(25844);t.Z=e=>{let t=r.useContext(o.Z),n=r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t]);return n}},17583:function(e,t,n){"use strict";let r,o,a;n.d(t,{ZP:function(){return _},w6:function(){return T}});var i=n(11717),l=n(83346),c=n(55567),s=n(79035),u=n(86006),f=(0,u.createContext)(void 0),d=n(66255),p=n(67044),h=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>((0,d.f)(t&&t.Modal),()=>{(0,d.f)()}),[t]);let o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(p.Z.Provider,{value:o},n)},g=n(91295),v=n(31508),m=n(99528),y=n(79746),b=n(70333),x=n(57389),C=n(71693),S=n(52160);let w=`-ant-${Date.now()}-${Math.random()}`;var $=n(20538),k=n(25844),Z=n(81027),E=n(78641);function A(e){let{children:t}=e,[,n]=(0,v.dQ)(),{motion:r}=n,o=u.useRef(!1);return(o.current=o.current||!1===r,o.current)?u.createElement(E.zt,{motion:r},t):t}var O=n(98663),P=(e,t)=>{let[n,r]=(0,v.dQ)();return(0,i.xy)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,O.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},B=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let M=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function j(){return r||"ant"}function H(){return o||y.oR}let T=()=>({getPrefixCls:(e,t)=>t||(e?`${j()}-${e}`:j()),getIconPrefixCls:H,getRootPrefixCls:()=>r||j(),getTheme:()=>a}),F=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:a,componentSize:d,direction:p,space:b,virtual:x,dropdownMatchSelectWidth:C,popupMatchSelectWidth:S,popupOverflow:w,legacyLocale:E,parentContext:O,iconPrefixCls:j,theme:H,componentDisabled:T}=e,F=u.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||O.getPrefixCls("");return t?`${o}-${t}`:o},[O.getPrefixCls,e.prefixCls]),R=j||O.iconPrefixCls||y.oR,_=R!==O.iconPrefixCls,D=n||O.csp,L=P(R,D),I=function(e,t){let n=e||{},r=!1!==n.inherit&&t?t:v.u_,o=(0,c.Z)(()=>{if(!e)return t;let o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,Z.Z)(e,r,!0)}));return o}(H,O.theme),N={csp:D,autoInsertSpaceInButton:r,locale:a||E,direction:p,space:b,virtual:x,popupMatchSelectWidth:null!=S?S:C,popupOverflow:w,getPrefixCls:F,iconPrefixCls:R,theme:I},z=Object.assign({},O);Object.keys(N).forEach(e=>{void 0!==N[e]&&(z[e]=N[e])}),M.forEach(t=>{let n=e[t];n&&(z[t]=n)});let G=(0,c.Z)(()=>z,z,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),W=u.useMemo(()=>({prefixCls:R,csp:D}),[R,D]),U=_?L(t):t,K=u.useMemo(()=>{var e,t,n;return(0,s.T)((null===(e=g.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=G.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null==o?void 0:o.validateMessages)||{})},[G,null==o?void 0:o.validateMessages]);Object.keys(K).length>0&&(U=u.createElement(f.Provider,{value:K},t)),a&&(U=u.createElement(h,{locale:a,_ANT_MARK__:"internalMark"},U)),(R||D)&&(U=u.createElement(l.Z.Provider,{value:W},U)),d&&(U=u.createElement(k.q,{size:d},U)),U=u.createElement(A,null,U);let V=u.useMemo(()=>{let e=I||{},{algorithm:t,token:n}=e,r=B(e,["algorithm","token"]),o=t&&(!Array.isArray(t)||t.length>0)?(0,i.jG)(t):void 0;return Object.assign(Object.assign({},r),{theme:o,token:Object.assign(Object.assign({},m.Z),n)})},[I]);return H&&(U=u.createElement(v.Mj.Provider,{value:V},U)),void 0!==T&&(U=u.createElement($.n,{disabled:T},U)),u.createElement(y.E_.Provider,{value:G},U)},R=e=>{let t=u.useContext(y.E_),n=u.useContext(p.Z);return u.createElement(F,Object.assign({parentContext:t,legacyLocale:n},e))};R.ConfigContext=y.E_,R.SizeContext=k.Z,R.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:i}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),i&&(Object.keys(i).some(e=>e.endsWith("Color"))?function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new x.C(e),a=(0,b.R_)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),a=(0,b.R_)(e.toRgbString());a.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));let i=new x.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(i,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let a=Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`);return`
+ :root {
+ ${a.join("\n")}
+ }
+ `.trim()}(e,t);(0,C.Z)()&&(0,S.hq)(n,`${w}-dynamic-theme`)}(j(),i):a=i)},R.useConfig=function(){let e=(0,u.useContext)($.Z),t=(0,u.useContext)(k.Z);return{componentDisabled:e,componentSize:t}},Object.defineProperty(R,"SizeContext",{get:()=>k.Z});var _=R},67044:function(e,t,n){"use strict";var r=n(86006);let o=(0,r.createContext)(void 0);t.Z=o},91295:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(91219),o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},o)},i="${label} is not a valid ${type}",l={locale:"en",Pagination:r.Z,DatePicker:a,TimePicker:o,Calendar:a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var c=l},66255:function(e,t,n){"use strict";n.d(t,{A:function(){return i},f:function(){return a}});var r=n(91295);let o=Object.assign({},r.Z.Modal);function a(e){o=e?Object.assign(Object.assign({},o),e):Object.assign({},r.Z.Modal)}function i(){return o}},98663:function(e,t,n){"use strict";n.d(t,{Lx:function(){return l},Qy:function(){return u},Ro:function(){return a},Wf:function(){return o},dF:function(){return i},du:function(){return c},oN:function(){return s},vS:function(){return r}});let r={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),i=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active,
+ &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t)=>{let{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},s=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},s(e))})},31508:function(e,t,n){"use strict";n.d(t,{Mj:function(){return u},u_:function(){return s},dQ:function(){return f}});var r=n(11717),o=n(86006),a=n(47794),i=n(99528),l=n(85207);let c=(0,r.jG)(a.Z),s={token:i.Z,hashed:!0},u=o.createContext(s);function f(){let{token:e,hashed:t,theme:n,components:a}=o.useContext(u),s=`5.6.2-${t||""}`,f=n||c,[d,p]=(0,r.fp)(f,[i.Z,e],{salt:s,override:Object.assign({override:e},a),formatToken:l.Z});return[f,d,t?p:""]}},47794:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(70333),o=n(33058),a=n(99528),i=n(41433),l=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},c=n(57389);let s=(e,t)=>new c.C(e).setAlpha(t).toRgbString(),u=(e,t)=>{let n=new c.C(e);return n.darken(t).toHexString()},f=e=>{let t=(0,r.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},d=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:s(r,.88),colorTextSecondary:s(r,.65),colorTextTertiary:s(r,.45),colorTextQuaternary:s(r,.25),colorFill:s(r,.15),colorFillSecondary:s(r,.06),colorFillTertiary:s(r,.04),colorFillQuaternary:s(r,.02),colorBgLayout:u(n,4),colorBgContainer:u(n,0),colorBgElevated:u(n,0),colorBgSpotlight:s(r,.85),colorBorder:u(n,15),colorBorderSecondary:u(n,6)}};var p=n(89931);function h(e){let t=Object.keys(a.M).map(t=>{let n=(0,r.R_)(e[t]);return Array(10).fill(1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,i.Z)(e,{generateColorPalettes:f,generateNeutralColorPalettes:d})),(0,p.Z)(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(0,o.Z)(e)),function(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},l(r))}(e))}},99528:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});let r={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
+'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
+'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});t.Z=o},41433:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(57389);function o(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t,{colorSuccess:a,colorWarning:i,colorError:l,colorInfo:c,colorPrimary:s,colorBgBase:u,colorTextBase:f}=e,d=n(s),p=n(a),h=n(i),g=n(l),v=n(c),m=o(u,f);return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new r.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},33058:function(e,t){"use strict";t.Z=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},89931:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=e=>{let t=function(e){let t=Array(10).fill(null).map((t,n)=>{let r=e*Math.pow(2.71828,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:(e+8)/e}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}}},85207:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(57389),o=n(99528);function a(e){return e>=0&&e<=255}var i=function(e,t){let{r:n,g:o,b:i,a:l}=new r.C(e).toRgb();if(l<1)return e;let{r:c,g:s,b:u}=new r.C(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-c*(1-e))/e),l=Math.round((o-s*(1-e))/e),f=Math.round((i-u*(1-e))/e);if(a(t)&&a(l)&&a(f))return new r.C({r:t,g:l,b:f,a:Math.round(100*e)/100}).toRgbString()}return new r.C({r:n,g:o,b:i,a:1}).toRgbString()},l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function c(e){let{override:t}=e,n=l(e,["override"]),a=Object.assign({},t);Object.keys(o.Z).forEach(e=>{delete a[e]});let c=Object.assign(Object.assign({},n),a);!1===c.motion&&(c.motionDurationFast="0s",c.motionDurationMid="0s",c.motionDurationSlow="0s");let s=Object.assign(Object.assign(Object.assign({},c),{colorLink:c.colorInfoText,colorLinkHover:c.colorInfoHover,colorLinkActive:c.colorInfoActive,colorFillContent:c.colorFillSecondary,colorFillContentHover:c.colorFill,colorFillAlter:c.colorFillQuaternary,colorBgContainerDisabled:c.colorFillTertiary,colorBorderBg:c.colorBgContainer,colorSplit:i(c.colorBorderSecondary,c.colorBgContainer),colorTextPlaceholder:c.colorTextQuaternary,colorTextDisabled:c.colorTextQuaternary,colorTextHeading:c.colorText,colorTextLabel:c.colorTextSecondary,colorTextDescription:c.colorTextTertiary,colorTextLightSolid:c.colorWhite,colorHighlight:c.colorError,colorBgTextHover:c.colorFillSecondary,colorBgTextActive:c.colorFill,colorIcon:c.colorTextTertiary,colorIconHover:c.colorText,colorErrorOutline:i(c.colorErrorBg,c.colorBgContainer),colorWarningOutline:i(c.colorWarningBg,c.colorBgContainer),fontSizeIcon:c.fontSizeSM,lineWidthFocus:4*c.lineWidth,lineWidth:c.lineWidth,controlOutlineWidth:2*c.lineWidth,controlInteractiveSize:c.controlHeight/2,controlItemBgHover:c.colorFillTertiary,controlItemBgActive:c.colorPrimaryBg,controlItemBgActiveHover:c.colorPrimaryBgHover,controlItemBgActiveDisabled:c.colorFill,controlTmpOutline:c.colorFillQuaternary,controlOutline:i(c.colorPrimaryBg,c.colorBgContainer),lineType:c.lineType,borderRadius:c.borderRadius,borderRadiusXS:c.borderRadiusXS,borderRadiusSM:c.borderRadiusSM,borderRadiusLG:c.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:c.sizeXXS,paddingXS:c.sizeXS,paddingSM:c.sizeSM,padding:c.size,paddingMD:c.sizeMD,paddingLG:c.sizeLG,paddingXL:c.sizeXL,paddingContentHorizontalLG:c.sizeLG,paddingContentVerticalLG:c.sizeMS,paddingContentHorizontal:c.sizeMS,paddingContentVertical:c.sizeSM,paddingContentHorizontalSM:c.size,paddingContentVerticalSM:c.sizeXS,marginXXS:c.sizeXXS,marginXS:c.sizeXS,marginSM:c.sizeSM,margin:c.size,marginMD:c.sizeMD,marginLG:c.sizeLG,marginXL:c.sizeXL,marginXXL:c.sizeXXL,boxShadow:`
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
+ `,boxShadowSecondary:`
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
+ `,boxShadowTertiary:`
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
+ `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
+ 0 1px 2px -2px ${new r.C("rgba(0, 0, 0, 0.16)").toRgbString()},
+ 0 3px 6px 0 ${new r.C("rgba(0, 0, 0, 0.12)").toRgbString()},
+ 0 5px 12px 4px ${new r.C("rgba(0, 0, 0, 0.09)").toRgbString()}
+ `,boxShadowDrawerRight:`
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
+ `,boxShadowDrawerLeft:`
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
+ `,boxShadowDrawerUp:`
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
+ `,boxShadowDrawerDown:`
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),a);return s}},40650:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(11717);n(65493);var o=n(86006),a=n(79746),i=n(98663),l=n(31508),c=n(70721);function s(e,t,n,s){return u=>{let[f,d,p]=(0,l.dQ)(),{getPrefixCls:h,iconPrefixCls:g,csp:v}=(0,o.useContext)(a.E_),m=h(),y={theme:f,token:d,hashId:p,nonce:()=>null==v?void 0:v.nonce};return(0,r.xy)(Object.assign(Object.assign({},y),{path:["Shared",m]}),()=>[{"&":(0,i.Lx)(d)}]),[(0,r.xy)(Object.assign(Object.assign({},y),{path:[e,u,g]}),()=>{let{token:r,flush:o}=(0,c.ZP)(d),a=Object.assign({},d[e]);if(null==s?void 0:s.deprecatedTokens){let{deprecatedTokens:e}=s;e.forEach(e=>{var t;let[n,r]=e;((null==a?void 0:a[n])||(null==a?void 0:a[r]))&&(null!==(t=a[r])&&void 0!==t||(a[r]=null==a?void 0:a[n]))})}let l="function"==typeof n?n((0,c.TS)(r,null!=a?a:{})):n,f=Object.assign(Object.assign({},l),a),h=`.${u}`,v=(0,c.TS)(r,{componentCls:h,prefixCls:u,iconCls:`.${g}`,antCls:`.${m}`},f),y=t(v,{hashId:p,prefixCls:u,rootPrefixCls:m,iconPrefixCls:g,overrideComponentToken:a});return o(e,f),[(null==s?void 0:s.resetStyle)===!1?null:(0,i.du)(d,u),y]}),p]}}},70721:function(e,t,n){"use strict";n.d(t,{TS:function(){return a},ZP:function(){return c}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function a(){for(var e=arguments.length,t=Array(e),n=0;n{let t=Object.keys(e);t.forEach(t=>{Object.defineProperty(a,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,a}let i={};function l(){}function c(e){let t;let n=e,a=l;return r&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),a=(e,n)=>{i[e]={global:Array.from(t),component:n}}),{token:n,keys:t,flush:a}}},8683:function(e,t){var n;/*!
+ Copyright (c) 2018 Jed Watson.
+ Licensed under the MIT License (MIT), see
+ http://jedwatson.github.io/classnames
+*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,q.Z)(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a},t]},Q=[M,j,H,"end"],J=[M,T];function ee(e){return e===H||"end"===e}var et=function(e,t,n){var r=(0,Z.Z)(B),o=(0,u.Z)(r,2),a=o[0],i=o[1],l=Y(),c=(0,u.Z)(l,2),s=c[0],f=c[1],d=t?J:Q;return X(function(){if(a!==B&&"end"!==a){var e=d.indexOf(a),t=d[e+1],r=n(a);!1===r?i(t,!0):t&&s(function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,a]),v.useEffect(function(){return function(){f()}},[]),[function(){i(M,!0)},a]},en=(i=G,"object"===(0,f.Z)(G)&&(i=G.transitionSupport),(l=v.forwardRef(function(e,t){var n=e.visible,r=void 0===n||n,o=e.removeOnLeave,a=void 0===o||o,l=e.forceRender,f=e.children,d=e.motionName,m=e.leavedClassName,y=e.eventProps,x=v.useContext(b).motion,C=!!(e.motionName&&i&&!1!==x),S=(0,v.useRef)(),w=(0,v.useRef)(),$=function(e,t,n,r){var o=r.motionEnter,a=void 0===o||o,i=r.motionAppear,l=void 0===i||i,f=r.motionLeave,d=void 0===f||f,p=r.motionDeadline,h=r.motionLeaveImmediately,g=r.onAppearPrepare,m=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,x=r.onEnterStart,C=r.onLeaveStart,S=r.onAppearActive,w=r.onEnterActive,$=r.onLeaveActive,k=r.onAppearEnd,B=r.onEnterEnd,F=r.onLeaveEnd,R=r.onVisibleChanged,_=(0,Z.Z)(),D=(0,u.Z)(_,2),L=D[0],I=D[1],N=(0,Z.Z)(E),z=(0,u.Z)(N,2),G=z[0],W=z[1],U=(0,Z.Z)(null),K=(0,u.Z)(U,2),q=K[0],Y=K[1],Q=(0,v.useRef)(!1),J=(0,v.useRef)(null),en=(0,v.useRef)(!1);function er(){W(E,!0),Y(null,!0)}function eo(e){var t,r=n();if(!e||e.deadline||e.target===r){var o=en.current;G===A&&o?t=null==k?void 0:k(r,e):G===O&&o?t=null==B?void 0:B(r,e):G===P&&o&&(t=null==F?void 0:F(r,e)),G!==E&&o&&!1!==t&&er()}}var ea=V(eo),ei=(0,u.Z)(ea,1)[0],el=function(e){var t,n,r;switch(e){case A:return t={},(0,c.Z)(t,M,g),(0,c.Z)(t,j,b),(0,c.Z)(t,H,S),t;case O:return n={},(0,c.Z)(n,M,m),(0,c.Z)(n,j,x),(0,c.Z)(n,H,w),n;case P:return r={},(0,c.Z)(r,M,y),(0,c.Z)(r,j,C),(0,c.Z)(r,H,$),r;default:return{}}},ec=v.useMemo(function(){return el(G)},[G]),es=et(G,!e,function(e){if(e===M){var t,r=ec[M];return!!r&&r(n())}return ed in ec&&Y((null===(t=ec[ed])||void 0===t?void 0:t.call(ec,n(),null))||null),ed===H&&(ei(n()),p>0&&(clearTimeout(J.current),J.current=setTimeout(function(){eo({deadline:!0})},p))),ed===T&&er(),!0}),eu=(0,u.Z)(es,2),ef=eu[0],ed=eu[1],ep=ee(ed);en.current=ep,X(function(){I(t);var n,r=Q.current;Q.current=!0,!r&&t&&l&&(n=A),r&&t&&a&&(n=O),(r&&!t&&d||!r&&h&&!t&&d)&&(n=P);var o=el(n);n&&(e||o[M])?(W(n),ef()):W(E)},[t]),(0,v.useEffect)(function(){(G!==A||l)&&(G!==O||a)&&(G!==P||d)||W(E)},[l,a,d]),(0,v.useEffect)(function(){return function(){Q.current=!1,clearTimeout(J.current)}},[]);var eh=v.useRef(!1);(0,v.useEffect)(function(){L&&(eh.current=!0),void 0!==L&&G===E&&((eh.current||L)&&(null==R||R(L)),eh.current=!0)},[L,G]);var eg=q;return ec[M]&&ed===j&&(eg=(0,s.Z)({transition:"none"},eg)),[G,ed,eg,null!=L?L:t]}(C,r,function(){try{return S.current instanceof HTMLElement?S.current:(0,h.Z)(w.current)}catch(e){return null}},e),B=(0,u.Z)($,4),F=B[0],R=B[1],_=B[2],D=B[3],L=v.useRef(D);D&&(L.current=!0);var I=v.useCallback(function(e){S.current=e,(0,g.mH)(t,e)},[t]),N=(0,s.Z)((0,s.Z)({},y),{},{visible:r});if(f){if(F===E)z=D?f((0,s.Z)({},N),I):!a&&L.current&&m?f((0,s.Z)((0,s.Z)({},N),{},{className:m}),I):!l&&(a||m)?null:f((0,s.Z)((0,s.Z)({},N),{},{style:{display:"none"}}),I);else{R===M?W="prepare":ee(R)?W="active":R===j&&(W="start");var z,G,W,U=K(d,"".concat(F,"-").concat(W));z=f((0,s.Z)((0,s.Z)({},N),{},{className:p()(K(d,F),(G={},(0,c.Z)(G,U,U&&W),(0,c.Z)(G,d,"string"==typeof d),G)),style:_}),I)}}else z=null;return v.isValidElement(z)&&(0,g.Yr)(z)&&!z.ref&&(z=v.cloneElement(z,{ref:I})),v.createElement(k,{ref:w},z)})).displayName="CSSMotion",l),er=n(40431),eo=n(70184),ea="keep",ei="remove",el="removed";function ec(e){var t;return t=e&&"object"===(0,f.Z)(e)&&"key"in e?e:{key:e},(0,s.Z)((0,s.Z)({},t),{},{key:String(t.key)})}function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ec)}var eu=["component","children","onVisibleChanged","onAllRemoved"],ef=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],ep=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en,n=function(e){(0,w.Z)(r,e);var n=(0,$.Z)(r);function r(){var e;(0,C.Z)(this,r);for(var t=arguments.length,o=Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=es(e),i=es(t);a.forEach(function(e){for(var t=!1,a=r;a1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==ei})).forEach(function(t){t.key===e&&(t.status=ea)})}),n})(r,es(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==el||e.status!==ei})}}}]),r}(v.Component);return(0,c.Z)(n,"defaultProps",{component:"div"}),n}(G),eh=en},91219:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},71693:function(e,t,n){"use strict";function r(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}n.d(t,{Z:function(){return r}})},14071:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:function(){return r}})},52160:function(e,t,n){"use strict";n.d(t,{hq:function(){return p},jL:function(){return d}});var r=n(71693),o=n(14071),a="data-rc-order",i=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function s(e){return Array.from((i.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,o=t.prepend,i=document.createElement("style");i.setAttribute(a,"queue"===o?"prependQueue":o?"prepend":"append"),null!=n&&n.nonce&&(i.nonce=null==n?void 0:n.nonce),i.innerHTML=e;var l=c(t),u=l.firstChild;if(o){if("queue"===o){var f=s(l).filter(function(e){return["prepend","prependQueue"].includes(e.getAttribute(a))});if(f.length)return l.insertBefore(i,f[f.length-1].nextSibling),i}l.insertBefore(i,u)}else l.appendChild(i);return i}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(c(t)).find(function(n){return n.getAttribute(l(t))===e})}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(e,t);n&&c(t).removeChild(n)}function p(e,t){var n,r,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=i.get(e);if(!n||!(0,o.Z)(document,n)){var r=u("",t),a=r.parentNode;i.set(e,a),e.removeChild(r)}}(c(s),s);var d=f(t,s);if(d)return null!==(n=s.csp)&&void 0!==n&&n.nonce&&d.nonce!==(null===(r=s.csp)||void 0===r?void 0:r.nonce)&&(d.nonce=null===(a=s.csp)||void 0===a?void 0:a.nonce),d.innerHTML!==e&&(d.innerHTML=e),d;var p=u(e,s);return p.setAttribute(l(s),t),p}},49175:function(e,t,n){"use strict";n.d(t,{S:function(){return a},Z:function(){return i}});var r=n(86006),o=n(8431);function a(e){return e instanceof HTMLElement||e instanceof SVGElement}function i(e){return a(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},60618:function(e,t,n){"use strict";function r(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return r(e)!==(null==e?void 0:e.ownerDocument)?r(e):null}n.d(t,{A:function(){return o}})},48580:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},23254:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(86006);function o(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o2&&void 0!==arguments[2]&&arguments[2],a=new Set;return function e(t,i){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.has(t);if((0,o.ZP)(!c,"Warning: There may be circular references"),c)return!1;if(t===i)return!0;if(n&&l>1)return!1;a.add(t);var s=l+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:1,r=o+=1;return!function t(o){if(0===o)a.delete(r),e();else{var i=n(function(){t(o-1)});a.set(r,i)}}(t),r};i.cancel=function(e){var t=a.get(e);return a.delete(t),r(t)},t.Z=i},92510:function(e,t,n){"use strict";n.d(t,{Yr:function(){return s},mH:function(){return i},sQ:function(){return l},x1:function(){return c}});var r=n(965),o=n(10854),a=n(55567);function i(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function l(){for(var e=arguments.length,t=Array(e),n=0;n3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!(0,l.Z)(e,t.slice(0,-1))?e:function e(t,n,r,l){if(!n.length)return r;var c,s=(0,i.Z)(n),u=s[0],f=s.slice(1);return c=t||"number"!=typeof u?Array.isArray(t)?(0,a.Z)(t):(0,o.Z)({},t):[],l&&void 0===r&&1===f.length?delete c[u][f[0]]:c[u]=e(c[u],f,r,l),c}(e,t,n,r)}function s(e){return Array.isArray(e)?[]:{}}var u="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},46750:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},71971:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(965);function o(){o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o,i,l=Object.create((t&&t.prototype instanceof h?t:h).prototype);return a(l,"_invoke",{value:(o=new k(r||[]),i="suspendedStart",function(t,r){if("executing"===i)throw Error("Generator is already running");if("completed"===i){if("throw"===t)throw r;return E()}for(o.method=t,o.arg=r;;){var a=o.delegate;if(a){var l=function e(t,n){var r=n.method,o=t.iterator[r];if(void 0===o)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),p;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,p;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,p):i:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,p)}(a,o);if(l){if(l===p)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===i)throw i="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i="executing";var c=d(e,n,o);if("normal"===c.type){if(i=o.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(i="completed",o.method="throw",o.arg=c.arg)}})}),l}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function g(){}function v(){}var m={};u(m,l,function(){return this});var y=Object.getPrototypeOf,b=y&&y(y(Z([])));b&&b!==t&&n.call(b,l)&&(m=b);var x=v.prototype=h.prototype=Object.create(m);function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){var o;a(this,"_invoke",{value:function(a,i){function l(){return new t(function(o,l){!function o(a,i,l,c){var s=d(e[a],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==(0,r.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){o("next",e,l,c)},function(e){o("throw",e,l,c)}):t.resolve(f).then(function(e){u.value=e,l(u)},function(e){return o("throw",e,l,c)})}c(s.arg)}(a,i,o,l)})}return o=o?o.then(l,l):l()}})}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function Z(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),$(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:Z(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}},60456:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86351),o=n(24537),a=n(62160);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},29221:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(86351),o=n(13804),a=n(24537),i=n(62160);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)()}},90151:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(16544),o=n(13804),a=n(24537);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},58774:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(965);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},965:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},24537:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(16544);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,r.Z)(e,t)}}},57436:function(e,t,n){"use strict";n.d(t,{Ab:function(){return i},Fr:function(){return l},G$:function(){return a},JM:function(){return f},K$:function(){return s},MS:function(){return r},h5:function(){return c},lK:function(){return u},uj:function(){return o}});var r="-ms-",o="-moz-",a="-webkit-",i="comm",l="rule",c="decl",s="@import",u="@keyframes",f="@layer"},99946:function(e,t,n){"use strict";n.d(t,{MY:function(){return i}});var r=n(57436),o=n(10036),a=n(125);function i(e){return(0,a.cE)(function e(t,n,i,s,u,f,d,p,h){for(var g,v=0,m=0,y=d,b=0,x=0,C=0,S=1,w=1,$=1,k=0,Z="",E=u,A=f,O=s,P=Z;w;)switch(C=k,k=(0,a.lp)()){case 40:if(108!=C&&58==(0,o.uO)(P,y-1)){-1!=(0,o.Cw)(P+=(0,o.gx)((0,a.iF)(k),"&","&\f"),"&\f")&&($=-1);break}case 34:case 39:case 91:P+=(0,a.iF)(k);break;case 9:case 10:case 13:case 32:P+=(0,a.Qb)(C);break;case 92:P+=(0,a.kq)((0,a.Ud)()-1,7);continue;case 47:switch((0,a.fj)()){case 42:case 47:(0,o.R3)((g=(0,a.q6)((0,a.lp)(),(0,a.Ud)()),(0,a.dH)(g,n,i,r.Ab,(0,o.Dp)((0,a.Tb)()),(0,o.tb)(g,2,-2),0)),h);break;default:P+="/"}break;case 123*S:p[v++]=(0,o.to)(P)*$;case 125*S:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+m:-1==$&&(P=(0,o.gx)(P,/\f/g,"")),x>0&&(0,o.to)(P)-y&&(0,o.R3)(x>32?c(P+";",s,i,y-1):c((0,o.gx)(P," ","")+";",s,i,y-2),h);break;case 59:P+=";";default:if((0,o.R3)(O=l(P,n,i,v,m,u,p,Z,E=[],A=[],y),f),123===k){if(0===m)e(P,n,O,O,E,f,y,p,A);else switch(99===b&&110===(0,o.uO)(P,3)?100:b){case 100:case 108:case 109:case 115:e(t,O,O,s&&(0,o.R3)(l(t,O,O,0,0,u,p,Z,u,E=[],y),A),u,A,y,p,s?E:A);break;default:e(P,O,O,O,[""],A,0,p,A)}}}v=m=x=0,S=$=1,Z=P="",y=d;break;case 58:y=1+(0,o.to)(P),x=C;default:if(S<1){if(123==k)--S;else if(125==k&&0==S++&&125==(0,a.mp)())continue}switch(P+=(0,o.Dp)(k),k*S){case 38:$=m>0?1:(P+="\f",-1);break;case 44:p[v++]=((0,o.to)(P)-1)*$,$=1;break;case 64:45===(0,a.fj)()&&(P+=(0,a.iF)((0,a.lp)())),b=(0,a.fj)(),m=y=(0,o.to)(Z=P+=(0,a.QU)((0,a.Ud)())),k++;break;case 45:45===C&&2==(0,o.to)(P)&&(S=0)}}return f}("",null,null,null,[""],e=(0,a.un)(e),0,[0],e))}function l(e,t,n,i,l,c,s,u,f,d,p){for(var h=l-1,g=0===l?c:[""],v=(0,o.Ei)(g),m=0,y=0,b=0;m0?g[x]+" "+C:(0,o.gx)(C,/&\f/g,g[x])))&&(f[b++]=S);return(0,a.dH)(e,t,n,0===l?r.Fr:u,f,d,p)}function c(e,t,n,i){return(0,a.dH)(e,t,n,r.h5,(0,o.tb)(e,0,i),(0,o.tb)(e,i+1,-1),i)}},34523:function(e,t,n){"use strict";n.d(t,{P:function(){return i},q:function(){return a}});var r=n(57436),o=n(10036);function a(e,t){for(var n="",r=(0,o.Ei)(e),a=0;a0?(0,r.uO)(s,--l):0,a--,10===c&&(a=1,o--),c}function h(){return c=l2||y(c)>3?"":" "}function w(e,t){for(;--t&&h()&&!(c<48)&&!(c>102)&&(!(c>57)||!(c<65))&&(!(c>70)||!(c<97)););return m(e,l+(t<6&&32==g()&&32==h()))}function $(e,t){for(;h();)if(e+c===57)break;else if(e+c===84&&47===g())break;return"/*"+m(t,l-1)+"*"+(0,r.Dp)(47===e?e:h())}function k(e){for(;!y(g());)h();return m(e,l)}},10036:function(e,t,n){"use strict";n.d(t,{$e:function(){return v},Cw:function(){return u},Dp:function(){return o},EQ:function(){return c},Ei:function(){return h},R3:function(){return g},Wn:function(){return r},f0:function(){return a},fy:function(){return l},gx:function(){return s},tb:function(){return d},to:function(){return p},uO:function(){return f},vp:function(){return i}});var r=Math.abs,o=String.fromCharCode,a=Object.assign;function i(e,t){return 45^f(e,0)?(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3):0}function l(e){return e.trim()}function c(e,t){return(e=t.exec(e))?e[0]:e}function s(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function g(e,t){return t.push(e),e}function v(e,t){return e.map(t).join("")}}}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/440-96bb64772ec3a56d.js b/pilot/server/static/_next/static/chunks/440-96bb64772ec3a56d.js
new file mode 100644
index 000000000..c4fb949c0
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/440-96bb64772ec3a56d.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[440],{21440:function(e,t,r){"use strict";r.d(t,{aM:function(){return eO},Ux:function(){return eC}});var n,i=r(86006),a=r(40431),s=r(89301),o=r(65877),u=r(88684),l=r(90151),c=r(18050),f=r(49449),d=r(70184),g=r(43663),h=r(38340),v=r(25912),p=r(5004),m="RC_FORM_INTERNAL_HOOKS",y=function(){(0,p.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},F=i.createContext({getFieldValue:y,getFieldsValue:y,getFieldError:y,getFieldWarning:y,getFieldsError:y,isFieldsTouched:y,isFieldTouched:y,isFieldValidating:y,isFieldsValidating:y,resetFields:y,setFields:y,setFieldValue:y,setFieldsValue:y,validateFields:y,submit:y,getInternalHooks:function(){return y(),{dispatch:y,initEntityValue:y,registerField:y,useSubscribe:y,setInitialValues:y,destroyForm:y,setCallbacks:y,registerWatch:y,getFields:y,setValidateMessages:y,setPreserve:y,getInitialValue:y}}}),b=i.createContext(null);function w(e){return null==e?[]:Array.isArray(e)?e:[e]}var E=r(71971),P=r(27859),Z=r(52040);function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),n=1;n=a)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}break;default:return e}}):e}function N(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e}function T(e,t,r){var n=0,i=e.length;!function a(s){if(s&&s.length){r(s);return}var o=n;n+=1,o()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},L={integer:function(e){return L.number(e)&&parseInt(e,10)===e},float:function(e){return L.number(e)&&!L.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!L.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(S.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(_())},hex:function(e){return"string"==typeof e&&!!e.match(S.hex)}},U="enum",W={required:I,whitespace:function(e,t,r,n,i){(/^\s+$/.test(t)||""===t)&&n.push(R(i.messages.whitespace,e.fullField))},type:function(e,t,r,n,i){if(e.required&&void 0===t){I(e,t,r,n,i);return}var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?L[a](t)||n.push(R(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&n.push(R(i.messages.types[a],e.fullField,e.type))},range:function(e,t,r,n,i){var a="number"==typeof e.len,s="number"==typeof e.min,o="number"==typeof e.max,u=t,l=null,c="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(c?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(u=t.length),f&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?u!==e.len&&n.push(R(i.messages[l].len,e.fullField,e.len)):s&&!o&&ue.max?n.push(R(i.messages[l].max,e.fullField,e.max)):s&&o&&(ue.max)&&n.push(R(i.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,r,n,i){e[U]=Array.isArray(e[U])?e[U]:[],-1===e[U].indexOf(t)&&n.push(R(i.messages[U],e.fullField,e[U].join(", ")))},pattern:function(e,t,r,n,i){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||n.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern)))}},D=function(e,t,r,n,i){var a=e.type,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t,a)&&!e.required)return r();W.required(e,t,n,s,i,a),N(t,a)||W.type(e,t,n,s,i)}r(s)},H={string:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return r();W.required(e,t,n,a,i,"string"),N(t,"string")||(W.type(e,t,n,a,i),W.range(e,t,n,a,i),W.pattern(e,t,n,a,i),!0===e.whitespace&&W.whitespace(e,t,n,a,i))}r(a)},method:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&W.type(e,t,n,a,i)}r(a)},number:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&(W.type(e,t,n,a,i),W.range(e,t,n,a,i))}r(a)},boolean:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&W.type(e,t,n,a,i)}r(a)},regexp:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),N(t)||W.type(e,t,n,a,i)}r(a)},integer:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&(W.type(e,t,n,a,i),W.range(e,t,n,a,i))}r(a)},float:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&(W.type(e,t,n,a,i),W.range(e,t,n,a,i))}r(a)},array:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();W.required(e,t,n,a,i,"array"),null!=t&&(W.type(e,t,n,a,i),W.range(e,t,n,a,i))}r(a)},object:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&W.type(e,t,n,a,i)}r(a)},enum:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i),void 0!==t&&W.enum(e,t,n,a,i)}r(a)},pattern:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t,"string")&&!e.required)return r();W.required(e,t,n,a,i),N(t,"string")||W.pattern(e,t,n,a,i)}r(a)},date:function(e,t,r,n,i){var a,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t,"date")&&!e.required)return r();W.required(e,t,n,s,i),!N(t,"date")&&(a=t instanceof Date?t:new Date(t),W.type(e,a,n,s,i),a&&W.range(e,a.getTime(),n,s,i))}r(s)},url:D,hex:D,email:D,required:function(e,t,r,n,i){var a=[],s=Array.isArray(t)?"array":typeof t;W.required(e,t,n,a,i,s),r(a)},any:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(N(t)&&!e.required)return r();W.required(e,t,n,a,i)}r(a)}};function z(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var J=z(),B=function(){function e(e){this.rules=null,this._messages=J,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(r){var n=e[r];t.rules[r]=Array.isArray(n)?n:[n]})},t.messages=function(e){return e&&(this._messages=$(z(),e)),this._messages},t.validate=function(t,r,n){var i=this;void 0===r&&(r={}),void 0===n&&(n=function(){});var a=t,s=r,o=n;if("function"==typeof s&&(o=s,s={}),!this.rules||0===Object.keys(this.rules).length)return o&&o(null,a),Promise.resolve(a);if(s.messages){var u=this.messages();u===J&&(u=z()),$(u,s.messages),s.messages=u}else s.messages=this.messages();var l={};(s.keys||Object.keys(this.rules)).forEach(function(e){var r=i.rules[e],n=a[e];r.forEach(function(r){var s=r;"function"==typeof s.transform&&(a===t&&(a=V({},a)),n=a[e]=s.transform(n)),(s="function"==typeof s?{validator:s}:V({},s)).validator=i.getValidationMethod(s),s.validator&&(s.field=e,s.fullField=s.fullField||e,s.type=i.getType(s),l[e]=l[e]||[],l[e].push({rule:s,value:n,source:a,field:e}))})});var c={};return function(e,t,r,n,i){if(t.first){var a=new Promise(function(t,a){var s;T((s=[],Object.keys(e).forEach(function(t){s.push.apply(s,e[t]||[])}),s),r,function(e){return n(e),e.length?a(new M(e,A(e))):t(i)})});return a.catch(function(e){return e}),a}var s=!0===t.firstFields?Object.keys(e):t.firstFields||[],o=Object.keys(e),u=o.length,l=0,c=[],f=new Promise(function(t,a){var f=function(e){if(c.push.apply(c,e),++l===u)return n(c),c.length?a(new M(c,A(c))):t(i)};o.length||(n(c),t(i)),o.forEach(function(t){var n=e[t];-1!==s.indexOf(t)?T(n,r,f):function(e,t,r){var n=[],i=0,a=e.length;function s(e){n.push.apply(n,e||[]),++i===a&&r(n)}e.forEach(function(e){t(e,s)})}(n,r,f)})});return f.catch(function(e){return e}),f}(l,s,function(t,r){var n,i=t.rule,o=("object"===i.type||"array"===i.type)&&("object"==typeof i.fields||"object"==typeof i.defaultField);function u(e,t){return V({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function l(n){void 0===n&&(n=[]);var l=Array.isArray(n)?n:[n];!s.suppressWarning&&l.length&&e.warning("async-validator:",l),l.length&&void 0!==i.message&&(l=[].concat(i.message));var f=l.map(j(i,a));if(s.first&&f.length)return c[i.field]=1,r(f);if(o){if(i.required&&!t.value)return void 0!==i.message?f=[].concat(i.message).map(j(i,a)):s.error&&(f=[s.error(i,R(s.messages.required,i.field))]),r(f);var d={};i.defaultField&&Object.keys(t.value).map(function(e){d[e]=i.defaultField});var g={};Object.keys(d=V({},d,t.rule.fields)).forEach(function(e){var t=d[e],r=Array.isArray(t)?t:[t];g[e]=r.map(u.bind(null,e))});var h=new e(g);h.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),h.validate(t.value,t.rule.options||s,function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),r(t.length?t:null)})}else r(f)}if(o=o&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)n=i.asyncValidator(i,t.value,l,t.source,s);else if(i.validator){try{n=i.validator(i,t.value,l,t.source,s)}catch(e){null==console.error||console.error(e),s.suppressValidatorError||setTimeout(function(){throw e},0),l(e.message)}!0===n?l():!1===n?l("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):n instanceof Array?l(n):n instanceof Error&&l(n.message)}n&&n.then&&n.then(function(){return l()},function(e){return l(e)})},function(e){!function(e){for(var t=[],r={},n=0;n=n||r<0||r>=n)return e;var i=e[t],a=t-r;return a>0?[].concat((0,l.Z)(e.slice(0,r)),[i],(0,l.Z)(e.slice(r,t)),(0,l.Z)(e.slice(t+1,n))):a<0?[].concat((0,l.Z)(e.slice(0,t)),(0,l.Z)(e.slice(t+1,r+1)),[i],(0,l.Z)(e.slice(r+1,n))):e}var ef=["name"],ed=[];function eg(e,t,r,n,i,a){return"function"==typeof e?e(t,r,"source"in a?{source:a.source}:{}):n!==i}var eh=function(e){(0,g.Z)(r,e);var t=(0,h.Z)(r);function r(e){var n;return(0,c.Z)(this,r),(n=t.call(this,e)).state={resetCount:0},n.cancelRegisterFunc=null,n.mounted=!1,n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.prevValidating=void 0,n.errors=ed,n.warnings=ed,n.cancelRegister=function(){var e=n.props,t=e.preserve,r=e.isListField,i=e.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(r,t,ea(i)),n.cancelRegisterFunc=null},n.getNamePath=function(){var e=n.props,t=e.name,r=e.fieldContext.prefixName,i=void 0===r?[]:r;return void 0!==t?[].concat((0,l.Z)(i),(0,l.Z)(t)):[]},n.getRules=function(){var e=n.props,t=e.rules,r=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(r):e})},n.refresh=function(){n.mounted&&n.setState(function(e){return{resetCount:e.resetCount+1}})},n.triggerMetaEvent=function(e){var t=n.props.onMetaChange;null==t||t((0,u.Z)((0,u.Z)({},n.getMeta()),{},{destroy:e}))},n.onStoreChange=function(e,t,r){var i=n.props,a=i.shouldUpdate,s=i.dependencies,o=void 0===s?[]:s,u=i.onReset,l=r.store,c=n.getNamePath(),f=n.getValue(e),d=n.getValue(l),g=t&&eo(t,c);switch("valueUpdate"===r.type&&"external"===r.source&&f!==d&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=ed,n.warnings=ed,n.triggerMetaEvent()),r.type){case"reset":if(!t||g){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=ed,n.warnings=ed,n.triggerMetaEvent(),null==u||u(),n.refresh();return}break;case"remove":if(a){n.reRender();return}break;case"setField":if(g){var h=r.data;"touched"in h&&(n.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(n.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(n.errors=h.errors||ed),"warnings"in h&&(n.warnings=h.warnings||ed),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}if(a&&!c.length&&eg(a,e,l,f,d,r)){n.reRender();return}break;case"dependenciesUpdate":if(o.map(ea).some(function(e){return eo(r.relatedFields,e)})){n.reRender();return}break;default:if(g||(!o.length||c.length||a)&&eg(a,e,l,f,d,r)){n.reRender();return}}!0===a&&n.reRender()},n.validateRules=function(e){var t=n.getNamePath(),r=n.getValue(),i=e||{},a=i.triggerName,s=i.validateOnly,o=Promise.resolve().then(function(){if(!n.mounted)return[];var i=n.props,s=i.validateFirst,c=void 0!==s&&s,f=i.messageVariables,d=n.getRules();a&&(d=d.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||w(t).includes(a)}));var g=function(e,t,r,n,i,a){var s,o,l=e.join("."),c=r.map(function(e,t){var r=e.validator,n=(0,u.Z)((0,u.Z)({},e),{},{ruleIndex:t});return r&&(n.validator=function(e,t,n){var i=!1,a=r(e,t,function(){for(var e=arguments.length,t=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:ed;if(n.validatePromise===o){n.validatePromise=null;var t,r=[],i=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,n=e.errors,a=void 0===n?ed:n;t?i.push.apply(i,(0,l.Z)(a)):r.push.apply(r,(0,l.Z)(a))}),n.errors=r,n.warnings=i,n.triggerMetaEvent(),n.reRender()}}),g});return void 0!==s&&s||(n.validatePromise=o,n.dirty=!0,n.errors=ed,n.warnings=ed,n.triggerMetaEvent(),n.reRender()),o},n.isFieldValidating=function(){return!!n.validatePromise},n.isFieldTouched=function(){return n.touched},n.isFieldDirty=function(){return!!n.dirty||void 0!==n.props.initialValue||void 0!==(0,n.props.fieldContext.getInternalHooks(m).getInitialValue)(n.getNamePath())},n.getErrors=function(){return n.errors},n.getWarnings=function(){return n.warnings},n.isListField=function(){return n.props.isListField},n.isList=function(){return n.props.isList},n.isPreserve=function(){return n.props.preserve},n.getMeta=function(){return n.prevValidating=n.isFieldValidating(),{touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:null===n.validatePromise}},n.getOnlyChild=function(e){if("function"==typeof e){var t=n.getMeta();return(0,u.Z)((0,u.Z)({},n.getOnlyChild(e(n.getControlled(),t,n.props.fieldContext))),{},{isFunction:!0})}var r=(0,v.Z)(e);return 1===r.length&&i.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}},n.getValue=function(e){var t=n.props.fieldContext.getFieldsValue,r=n.getNamePath();return(0,ei.Z)(e||t(!0),r)},n.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,f=t.fieldContext,d=void 0!==i?i:f.validateTrigger,g=n.getNamePath(),h=f.getInternalHooks,v=f.getFieldsValue,p=h(m).dispatch,y=n.getValue(),F=c||function(e){return(0,o.Z)({},l,e)},b=e[r],E=(0,u.Z)((0,u.Z)({},e),F(y));return E[r]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var e,t=arguments.length,r=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];if(r.watchList.length){var t=r.getFieldsValue(),n=r.getFieldsValue(!0);r.watchList.forEach(function(r){r(t,n,e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){r.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?r.fieldEntities.filter(function(e){return e.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new eF;return r.getFieldEntities(e).forEach(function(e){var r=e.getNamePath();t.set(r,e)}),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return r.getFieldEntities(!0);var t=r.getFieldsMap(!0);return e.map(function(e){var r=ea(e);return t.get(r)||{INVALIDATE_NAME_PATH:ea(e)}})},this.getFieldsValue=function(e,t){if(r.warningUnhooked(),!0===e&&!t)return r.store;var n=r.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),i=[];return n.forEach(function(r){var n,a="INVALIDATE_NAME_PATH"in r?r.INVALIDATE_NAME_PATH:r.getNamePath();!(!e&&(null===(n=r.isListField)||void 0===n?void 0:n.call(r)))&&(t?t("getMeta"in r?r.getMeta():null)&&i.push(a):i.push(a))}),es(r.store,i.map(ea))},this.getFieldValue=function(e){r.warningUnhooked();var t=ea(e);return(0,ei.Z)(r.store,t)},this.getFieldsError=function(e){return r.warningUnhooked(),r.getFieldEntitiesForNamePathList(e).map(function(t,r){return!t||"INVALIDATE_NAME_PATH"in t?{name:ea(e[r]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})},this.getFieldError=function(e){r.warningUnhooked();var t=ea(e);return r.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){r.warningUnhooked();var t=ea(e);return r.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var e,t=arguments.length,n=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=new eF,i=r.getFieldEntities(!0);i.forEach(function(e){var t=e.props.initialValue,r=e.getNamePath();if(void 0!==t){var i=n.get(r)||new Set;i.add({entity:e,value:t}),n.set(r,i)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var r,i=n.get(t);i&&(r=e).push.apply(r,(0,l.Z)((0,l.Z)(i).map(function(e){return e.entity})))})):e=i,function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==r.getInitialValue(i))(0,p.ZP)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var a=n.get(i);if(a&&a.size>1)(0,p.ZP)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var s=r.getFieldValue(i);t.skipExist&&void 0!==s||r.updateStore((0,G.Z)(r.store,i,(0,l.Z)(a)[0].value))}}}})}(e)},this.resetFields=function(e){r.warningUnhooked();var t=r.store;if(!e){r.updateStore((0,G.T)(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(t,null,{type:"reset"}),r.notifyWatch();return}var n=e.map(ea);n.forEach(function(e){var t=r.getInitialValue(e);r.updateStore((0,G.Z)(r.store,e,t))}),r.resetWithFieldInitialValue({namePathList:n}),r.notifyObservers(t,n,{type:"reset"}),r.notifyWatch(n)},this.setFields=function(e){r.warningUnhooked();var t=r.store,n=[];e.forEach(function(e){var i=e.name,a=(0,s.Z)(e,eb),o=ea(i);n.push(o),"value"in a&&r.updateStore((0,G.Z)(r.store,o,a.value)),r.notifyObservers(t,[o],{type:"setField",data:e})}),r.notifyWatch(n)},this.getFields=function(){return r.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),n=e.getMeta(),i=(0,u.Z)((0,u.Z)({},n),{},{name:t,value:r.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i})},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var n=e.getNamePath();void 0===(0,ei.Z)(r.store,n)&&r.updateStore((0,G.Z)(r.store,n,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:r.preserve;return null==t||t},this.registerField=function(e){r.fieldEntities.push(e);var t=e.getNamePath();if(r.notifyWatch([t]),void 0!==e.props.initialValue){var n=r.store;r.resetWithFieldInitialValue({entities:[e],skipExist:!0}),r.notifyObservers(n,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(t){return t!==e}),!r.isMergedPreserve(i)&&(!n||a.length>1)){var s=n?void 0:r.getInitialValue(t);if(t.length&&r.getFieldValue(t)!==s&&r.fieldEntities.every(function(e){return!eu(e.getNamePath(),t)})){var o=r.store;r.updateStore((0,G.Z)(o,t,s,!0)),r.notifyObservers(o,[t],{type:"remove"}),r.triggerDependenciesUpdate(o,t)}}r.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,n=e.value;r.updateValue(t,n);break;case"validateField":var i=e.namePath,a=e.triggerName;r.validateFields([i],{triggerName:a})}},this.notifyObservers=function(e,t,n){if(r.subscribable){var i=(0,u.Z)((0,u.Z)({},n),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(r){(0,r.onStoreChange)(e,t,i)})}else r.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var n=r.getDependencyChildrenFields(t);return n.length&&r.validateFields(n),r.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t].concat((0,l.Z)(n))}),n},this.updateValue=function(e,t){var n=ea(e),i=r.store;r.updateStore((0,G.Z)(r.store,n,t)),r.notifyObservers(i,[n],{type:"valueUpdate",source:"internal"}),r.notifyWatch([n]);var a=r.triggerDependenciesUpdate(i,n),s=r.callbacks.onValuesChange;s&&s(es(r.store,[n]),r.getFieldsValue()),r.triggerOnFieldsChange([n].concat((0,l.Z)(a)))},this.setFieldsValue=function(e){r.warningUnhooked();var t=r.store;if(e){var n=(0,G.T)(r.store,e);r.updateStore(n)}r.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()},this.setFieldValue=function(e,t){r.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,n=[],i=new eF;return r.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var r=ea(t);i.update(r,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(r){(i.get(r)||new Set).forEach(function(r){if(!t.has(r)){t.add(r);var i=r.getNamePath();r.isFieldDirty()&&i.length&&(n.push(i),e(i))}})}(e),n},this.triggerOnFieldsChange=function(e,t){var n=r.callbacks.onFieldsChange;if(n){var i=r.getFields();if(t){var a=new eF;t.forEach(function(e){var t=e.name,r=e.errors;a.set(t,r)}),i.forEach(function(e){e.errors=a.get(e.name)||e.errors})}n(i.filter(function(t){return eo(e,t.name)}),i)}},this.validateFields=function(e,t){r.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(s=e,o=t):o=e;var n,i,a,s,o,c=!!s,f=c?s.map(ea):[],d=[];r.getFieldEntities(!0).forEach(function(e){if(c||f.push(e.getNamePath()),(null===(t=o)||void 0===t?void 0:t.recursive)&&c){var t,n=e.getNamePath();n.every(function(e,t){return s[t]===e||void 0===s[t]})&&f.push(n)}if(e.props.rules&&e.props.rules.length){var i=e.getNamePath();if(!c||eo(f,i)){var a=e.validateRules((0,u.Z)({validateMessages:(0,u.Z)((0,u.Z)({},Y),r.validateMessages)},o));d.push(a.then(function(){return{name:i,errors:[],warnings:[]}}).catch(function(e){var t,r=[],n=[];return(null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,i=e.errors;t?n.push.apply(n,(0,l.Z)(i)):r.push.apply(r,(0,l.Z)(i))}),r.length)?Promise.reject({name:i,errors:r,warnings:n}):{name:i,errors:r,warnings:n}}))}}});var g=(n=!1,i=d.length,a=[],d.length?new Promise(function(e,t){d.forEach(function(r,s){r.catch(function(e){return n=!0,e}).then(function(r){i-=1,a[s]=r,i>0||(n&&t(a),e(a))})})}):Promise.resolve([]));r.lastValidatePromise=g,g.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});r.notifyObservers(r.store,t,{type:"validateFinish"}),r.triggerOnFieldsChange(t,e)});var h=g.then(function(){return r.lastValidatePromise===g?Promise.resolve(r.getFieldsValue(f)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:r.getFieldsValue(f),errorFields:t,outOfDate:r.lastValidatePromise!==g})});return h.catch(function(e){return e}),r.triggerOnFieldsChange(f),h},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(e){var t=r.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=r.callbacks.onFinishFailed;t&&t(e)})},this.forceRootUpdate=t}),eE=function(e){var t=i.useRef(),r=i.useState({}),n=(0,ep.Z)(r,2)[1];if(!t.current){if(e)t.current=e;else{var a=new ew(function(){n({})});t.current=a.getForm()}}return[t.current]},eP=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eZ=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];function eV(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ek=function(){},ex=i.forwardRef(function(e,t){var r,n=e.name,o=e.initialValues,c=e.fields,f=e.form,d=e.preserve,g=e.children,h=e.component,v=void 0===h?"form":h,p=e.validateMessages,y=e.validateTrigger,w=void 0===y?"onChange":y,E=e.onValuesChange,P=e.onFieldsChange,Z=e.onFinish,V=e.onFinishFailed,k=(0,s.Z)(e,eZ),x=i.useContext(eP),O=eE(f),C=(0,ep.Z)(O,1)[0],q=C.getInternalHooks(m),A=q.useSubscribe,R=q.setInitialValues,N=q.setCallbacks,T=q.setValidateMessages,M=q.setPreserve,j=q.destroyForm;i.useImperativeHandle(t,function(){return C}),i.useEffect(function(){return x.registerForm(n,C),function(){x.unregisterForm(n)}},[x,C,n]),T((0,u.Z)((0,u.Z)({},x.validateMessages),p)),N({onValuesChange:E,onFieldsChange:function(e){if(x.triggerFormChange(n,e),P){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i=0&&t<=r.length?(d.keys=[].concat((0,l.Z)(d.keys.slice(0,t)),[d.id],(0,l.Z)(d.keys.slice(t))),i([].concat((0,l.Z)(r.slice(0,t)),[e],(0,l.Z)(r.slice(t))))):(d.keys=[].concat((0,l.Z)(d.keys),[d.id]),i([].concat((0,l.Z)(r),[e]))),d.id+=1},remove:function(e){var t=s(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(d.keys=d.keys.filter(function(e,t){return!r.has(t)}),i(t.filter(function(e,t){return!r.has(t)})))},move:function(e,t){if(e!==t){var r=s();e<0||e>=r.length||t<0||t>=r.length||(d.keys=ec(d.keys,e,t),i(ec(r,e,t)))}}},t)})))},ex.useForm=eE,ex.useWatch=function(){for(var e=arguments.length,t=Array(e),r=0;r{let{children:t,status:r,override:n}=e,a=(0,i.useContext)(eO),s=(0,i.useMemo)(()=>{let e=Object.assign({},a);return n&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[r,n,a]);return i.createElement(eO.Provider,{value:s},t)}},52040:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(66003)},66003:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?u=n.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=o(f);l=!0;for(var t=u.length;t;){for(n=u,u=[];++c1)for(var r=1;r{let{messages:t,onSubmit:l,initialMessage:y,readOnly:w,paramsList:b,clearIntialMessage:N}=e,k=x.useRef(null),[T,P]=(0,x.useState)(!1),[C,S]=(0,x.useState)(),[O,R]=(0,x.useState)(),E=(0,p.cI)({resolver:(0,a.F)(Z),defaultValues:{}}),A=async e=>{let{query:t}=e;try{P(!0),E.reset(),await l(t,{select_param:null==b?void 0:b[O]})}catch(e){}finally{P(!1)}},W=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:y})}catch(e){console.log(e)}finally{null==N||N()}},M={overrides:{code:e=>{let{children:t}=e;return(0,s.jsx)(v.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&W()},[y]),x.useEffect(()=>{var e,t;b&&(null===(e=Object.keys(b||{}))||void 0===e?void 0:e.length)>0&&R(null===(t=Object.keys(b||{}))||void 0===t?void 0:t[0])},[b]),(0,s.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,s.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,s.jsxs)(n.Z,{ref:k,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[C&&(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==C?void 0:C.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,s.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,s.jsx)(j.Z,{options:M,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),T&&(0,s.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!w&&(0,s.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),E.handleSubmit(A)(e)},children:[Object.keys(b||{}).length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c.Z,{value:O,onChange:(e,t)=>{R(t)},className:"max-w-xs",children:Object.keys(b||{}).map(e=>(0,s.jsx)(u.Z,{value:e,children:null==b?void 0:b[e]},e))}),(0,s.jsx)(d.Z,{className:"cursor-pointer",title:O,placement:"top",variant:"outlined",children:(0,s.jsx)(f.Z,{})})]}),(0,s.jsx)(h.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,s.jsx)(m.ZP,{type:"submit",disabled:T,children:(0,s.jsx)(r.Z,{})}),...E.register("query")})]})]})})},b=l(91440),N=l(50645),k=l(5737),T=l(45642),P=l(26974),C=l(22046),S=l(78417),O=l(66487);let R=(0,N.Z)(k.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var E=()=>{let{handleChatSubmit:e,history:t}=(0,O.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,s.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,s.jsx)("div",{className:"flex w-full",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,s.jsx)(T.Z,{xs:8,children:(0,s.jsxs)(S.Z,{spacing:2,className:"h-full",children:[(0,s.jsx)(R,{children:(0,s.jsx)(T.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,s.jsx)(T.Z,{xs:3,children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"justify-around",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,s.jsx)(C.ZP,{children:e.value})]})})},e.label))})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsx)(o.Z,{className:"h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(b.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,s.jsx)(b.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,className:"h-full",children:[(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(b.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(b.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,b.getTheme)().colors10[0]}}),(0,s.jsx)(b.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(b.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(b.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,b.getTheme)().colors10[0]}}),(0,s.jsx)(b.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(b.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(b.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,b.getTheme)().colors10[0]}}),(0,s.jsx)(b.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,s.jsx)(T.Z,{xs:4,children:(0,s.jsx)(w,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var s=l(9268),a=l(89081),r=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,a.Z)(async()=>await (0,r.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,s.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return o}});var s=l(71990),a=l(86006),r=e=>{let t=(0,a.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=e=>{let{queryAgentURL:t,channel:l,queryBody:o,initHistory:i}=e,[c,u]=r({history:i||[]}),{refreshDialogList:d}=(0,n.Cg)();(0,a.useEffect)(()=>{i&&u({history:i})},[i]);let h=async(e,a)=>{if(!e)return;let r=[...c.history,{role:"human",context:e}],n=r.length;u({history:r});try{let i=new AbortController;await (0,s.L)("".concat("http://${window.location.hostname}:${window.location.port}/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,...o,user_input:e,channel:l}),signal:i.signal,async onopen(e){if(r.length<=1){d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==s.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)i.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))i.abort(),u({history:[...r,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...r];e.data&&((null==t?void 0:t[n])?t[n].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...r,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:h,history:c.history}}},78915:function(e,t,l){"use strict";l.d(t,{T:function(){return c},K:function(){return u}});var s=l(21628),a=l(24214);let r=a.Z.create({baseURL:"http://${window.location.hostname}:${window.location.port}"});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var n=l(84835);let o={"content-type":"application/json"},i=e=>{if(!(0,n.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return r.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let l=i(t);return r.post("/api"+e,{body:l,headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}}},function(e){e.O(0,[180,757,430,577,86,562,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/agents/page-9ff5589fdf9f0807.js b/pilot/server/static/_next/static/chunks/app/agents/page-9ff5589fdf9f0807.js
new file mode 100644
index 000000000..c67c6f6b6
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/agents/page-9ff5589fdf9f0807.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{82738:function(e,t,l){Promise.resolve().then(l.bind(l,4191))},4191:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return E}});var s=l(9268),a=l(67830),r=l(54842),n=l(70900),o=l(62414),i=l(94244),c=l(33155),u=l(7354),h=l(35891),d=l(35086),m=l(53047),x=l(86006),p=l(19700),y=l(92391),f=l(70321),j=l(75403),v=l(99398),g=l(49064);let Z=y.z.object({query:y.z.string().min(1)});var b=e=>{let{messages:t,onSubmit:l,initialMessage:y,readOnly:b,paramsList:w,clearIntialMessage:N}=e,k=x.useRef(null),[T,P]=(0,x.useState)(!1),[C,S]=(0,x.useState)(),[O,R]=(0,x.useState)(),E=(0,p.cI)({resolver:(0,a.F)(Z),defaultValues:{}}),A=async e=>{let{query:t}=e;try{P(!0),E.reset(),await l(t,{select_param:null==w?void 0:w[O]})}catch(e){}finally{P(!1)}},W=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:y})}catch(e){console.log(e)}finally{null==N||N()}},M={overrides:{code:e=>{let{children:t}=e;return(0,s.jsx)(v.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&W()},[y]),x.useEffect(()=>{var e,t;w&&(null===(e=Object.keys(w||{}))||void 0===e?void 0:e.length)>0&&R(null===(t=Object.keys(w||{}))||void 0===t?void 0:t[0])},[w]),(0,s.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,s.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,s.jsxs)(n.Z,{ref:k,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[C&&(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==C?void 0:C.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,s.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,s.jsx)(j.Z,{options:M,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),T&&(0,s.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!b&&(0,s.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),E.handleSubmit(A)(e)},children:[Object.keys(w||{}).length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c.Z,{value:O,onChange:(e,t)=>{R(t)},className:"max-w-xs",children:Object.keys(w||{}).map(e=>(0,s.jsx)(u.Z,{value:e,children:null==w?void 0:w[e]},e))}),(0,s.jsx)(h.Z,{className:"cursor-pointer",title:O,placement:"top",variant:"outlined",children:(0,s.jsx)(f.Z,{})})]}),(0,s.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,s.jsx)(m.ZP,{type:"submit",disabled:T,children:(0,s.jsx)(r.Z,{})}),...E.register("query")})]})]})})},w=l(91440),N=l(50645),k=l(5737),T=l(45642),P=l(26974),C=l(22046),S=l(78417),O=l(66487);let R=(0,N.Z)(k.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var E=()=>{let{handleChatSubmit:e,history:t}=(0,O.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,s.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,s.jsx)("div",{className:"flex w-full",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,s.jsx)(T.Z,{xs:8,children:(0,s.jsxs)(S.Z,{spacing:2,className:"h-full",children:[(0,s.jsx)(R,{children:(0,s.jsx)(T.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,s.jsx)(T.Z,{xs:3,children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"justify-around",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,s.jsx)(C.ZP,{children:e.value})]})})},e.label))})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsx)(o.Z,{className:"h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(w.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,s.jsx)(w.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,className:"h-full",children:[(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,s.jsx)(T.Z,{xs:4,children:(0,s.jsx)(b,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var s=l(9268),a=l(89081),r=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,a.Z)(async()=>await (0,r.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,s.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return o}});var s=l(71990),a=l(86006),r=e=>{let t=(0,a.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=e=>{let{queryAgentURL:t,channel:l,queryBody:o,initHistory:i}=e,[c,u]=r({history:i||[]}),{refreshDialogList:h}=(0,n.Cg)();(0,a.useEffect)(()=>{i&&u({history:i})},[i]);let d=async(e,a)=>{if(!e)return;let r=[...c.history,{role:"human",context:e}],n=r.length;u({history:r});try{let i=new AbortController;await (0,s.L)("".concat("http://localhost:5000/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,...o,user_input:e,channel:l}),signal:i.signal,async onopen(e){if(r.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==s.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)i.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))i.abort(),u({history:[...r,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...r];e.data&&((null==t?void 0:t[n])?t[n].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...r,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:d,history:c.history}}},78915:function(e,t,l){"use strict";l.d(t,{T:function(){return c},K:function(){return u}});var s=l(21628),a=l(24214);let r=a.Z.create({baseURL:"http://localhost:5000"});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var n=l(84835);let o={"content-type":"application/json"},i=e=>{if(!(0,n.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return r.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let l=i(t);return r.post("/api"+e,{body:l,headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}}},function(e){e.O(0,[180,757,430,577,86,562,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/agents/page-bf26b65bed55ade1.js b/pilot/server/static/_next/static/chunks/app/agents/page-bf26b65bed55ade1.js
new file mode 100644
index 000000000..5d9294c04
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/agents/page-bf26b65bed55ade1.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[718],{82738:function(e,t,l){Promise.resolve().then(l.bind(l,4191))},4191:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return E}});var s=l(9268),r=l(67830),a=l(54842),n=l(70900),o=l(62414),i=l(94244),c=l(33155),u=l(7354),h=l(35891),d=l(35086),m=l(53047),x=l(86006),p=l(19700),y=l(92391),f=l(70321),j=l(75403),v=l(99398),g=l(49064);let Z=y.z.object({query:y.z.string().min(1)});var b=e=>{let{messages:t,onSubmit:l,initialMessage:y,readOnly:b,paramsList:w,clearIntialMessage:N}=e,k=x.useRef(null),[T,P]=(0,x.useState)(!1),[C,S]=(0,x.useState)(),[O,R]=(0,x.useState)(),E=(0,p.cI)({resolver:(0,r.F)(Z),defaultValues:{}}),A=async e=>{let{query:t}=e;try{P(!0),E.reset(),await l(t,{select_param:null==w?void 0:w[O]})}catch(e){}finally{P(!1)}},W=async()=>{try{let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await A({query:y})}catch(e){console.log(e)}finally{null==N||N()}},M={overrides:{code:e=>{let{children:t}=e;return(0,s.jsx)(v.Z,{language:"javascript",style:g.Z,children:t})}}};return x.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==t?void 0:t.length]),x.useEffect(()=>{y&&t.length<=0&&W()},[y]),x.useEffect(()=>{var e,t;w&&(null===(e=Object.keys(w||{}))||void 0===e?void 0:e.length)>0&&R(null===(t=Object.keys(w||{}))||void 0===t?void 0:t[0])},[w]),(0,s.jsx)("div",{className:"mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 py-6 sm:gap-8 xl:max-w-5xl",children:(0,s.jsxs)(n.Z,{direction:"column",gap:2,sx:{display:"flex",flex:1,flexBasis:"100%",width:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",mx:"auto"},children:[(0,s.jsxs)(n.Z,{ref:k,direction:"column",gap:2,sx:{boxSizing:"border-box",maxWidth:"100%",width:"100%",mx:"auto",flex:1,maxHeight:"100%",overflowY:"auto",p:2,border:"1px solid",borderColor:"var(--joy-palette-divider)"},children:[C&&(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",color:"primary",className:"message-agent",sx:{mr:"auto",ml:"none",whiteSpace:"pre-wrap"},children:null==C?void 0:C.context}),t.filter(e=>["view","human"].includes(e.role)).map((e,t)=>{var l;return(0,s.jsx)(n.Z,{sx:{mr:"view"===e.role?"auto":"none",ml:"human"===e.role?"auto":"none"},children:(0,s.jsx)(o.Z,{size:"sm",variant:"outlined",className:"view"===e.role?"message-agent":"message-human",color:"view"===e.role?"primary":"neutral",sx:e=>({px:2,"ol, ul":{my:0,pl:2},ol:{listStyle:"numeric"},ul:{listStyle:"disc",mb:2},li:{my:1},a:{textDecoration:"underline"}}),children:(0,s.jsx)(j.Z,{options:M,children:null===(l=e.context)||void 0===l?void 0:l.replaceAll("\\n","\n")})})},t)}),T&&(0,s.jsx)(i.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!b&&(0,s.jsxs)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px"},onSubmit:e=>{e.stopPropagation(),E.handleSubmit(A)(e)},children:[Object.keys(w||{}).length>0&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c.Z,{value:O,onChange:(e,t)=>{R(t)},className:"max-w-xs",children:Object.keys(w||{}).map(e=>(0,s.jsx)(u.Z,{value:e,children:null==w?void 0:w[e]},e))}),(0,s.jsx)(h.Z,{className:"cursor-pointer",title:O,placement:"top",variant:"outlined",children:(0,s.jsx)(f.Z,{})})]}),(0,s.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",endDecorator:(0,s.jsx)(m.ZP,{type:"submit",disabled:T,children:(0,s.jsx)(a.Z,{})}),...E.register("query")})]})]})})},w=l(91440),N=l(50645),k=l(5737),T=l(45642),P=l(26974),C=l(22046),S=l(78417),O=l(66487);let R=(0,N.Z)(k.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}});var E=()=>{let{handleChatSubmit:e,history:t}=(0,O.Z)({queryAgentURL:"/v1/chat/completions"}),l=[{year:"1951 年",sales:0},{year:"1952 年",sales:52},{year:"1956 年",sales:61},{year:"1957 年",sales:45},{year:"1958 年",sales:48},{year:"1959 年",sales:38},{year:"1960 年",sales:38},{year:"1962 年",sales:38}];return(0,s.jsx)("div",{className:"p-4 flex flex-row gap-6 min-h-full w-full",children:(0,s.jsx)("div",{className:"flex w-full",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,s.jsx)(T.Z,{xs:8,children:(0,s.jsxs)(S.Z,{spacing:2,className:"h-full",children:[(0,s.jsx)(R,{children:(0,s.jsx)(T.Z,{container:!0,spacing:2,children:[{label:"Revenue Won",value:"$7,811,851"},{label:"Close %",value:"37.7%"},{label:"AVG Days to Close",value:"121"},{label:"Opportunities Won",value:"526"}].map(e=>(0,s.jsx)(T.Z,{xs:3,children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"justify-around",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:e.label}),(0,s.jsx)(C.ZP,{children:e.value})]})})},e.label))})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsx)(o.Z,{className:"h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Revenue Won by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(w.Chart,{padding:[10,20,50,40],autoFit:!0,data:[{month:"Jan",city:"Tokyo",temperature:7},{month:"Feb",city:"Tokyo",temperature:13},{month:"Mar",city:"Tokyo",temperature:16.5},{month:"Apr",city:"Tokyo",temperature:14.5},{month:"May",city:"Tokyo",temperature:10},{month:"Jun",city:"Tokyo",temperature:7.5},{month:"Jul",city:"Tokyo",temperature:9.2},{month:"Aug",city:"Tokyo",temperature:14.5},{month:"Sep",city:"Tokyo",temperature:9.3},{month:"Oct",city:"Tokyo",temperature:8.3},{month:"Nov",city:"Tokyo",temperature:8.9},{month:"Dec",city:"Tokyo",temperature:5.6}],children:(0,s.jsx)(w.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"month*temperature",color:"city"})})})]})})}),(0,s.jsx)(R,{className:"flex-1",children:(0,s.jsxs)(T.Z,{container:!0,spacing:2,className:"h-full",children:[(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})}),(0,s.jsx)(T.Z,{xs:4,className:"h-full",children:(0,s.jsx)(o.Z,{className:"flex-1 h-full",children:(0,s.jsxs)(P.Z,{className:"h-full",children:[(0,s.jsx)(C.ZP,{gutterBottom:!0,component:"div",children:"Close % by Month"}),(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsxs)(w.Chart,{autoFit:!0,data:l,children:[(0,s.jsx)(w.Interval,{position:"year*sales",style:{lineWidth:3,stroke:(0,w.getTheme)().colors10[0]}}),(0,s.jsx)(w.Tooltip,{shared:!0})]})})]})})})]})})]})}),(0,s.jsx)(T.Z,{xs:4,children:(0,s.jsx)(b,{messages:t,onSubmit:e})})]})})})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return o}});var s=l(9268),r=l(89081),a=l(78915),n=l(86006);let[o,i]=function(){let e=n.createContext(void 0);return[function(){let t=n.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:n,refresh:o}=(0,r.Z)(async()=>await (0,a.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,s.jsx)(i,{value:{dialogueList:n,queryDialogueList:l,refreshDialogList:o},children:t})}},66487:function(e,t,l){"use strict";l.d(t,{Z:function(){return o}});var s=l(71990),r=l(86006),a=e=>{let t=(0,r.useReducer)((e,t)=>({...e,...t}),{...e});return t},n=l(57931),o=e=>{let{queryAgentURL:t,channel:l,queryBody:o,initHistory:i}=e,[c,u]=a({history:i||[]}),{refreshDialogList:h}=(0,n.Cg)();(0,r.useEffect)(()=>{i&&u({history:i})},[i]);let d=async(e,r)=>{if(!e)return;let a=[...c.history,{role:"human",context:e}],n=a.length;u({history:a});try{let i=new AbortController;await (0,s.L)("".concat("http://120.26.193.159:5000/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...o,user_input:e,channel:l}),signal:i.signal,async onopen(e){if(a.length<=1){h();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==s.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)i.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))i.abort(),u({history:[...a,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...a];e.data&&((null==t?void 0:t[n])?t[n].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:d,history:c.history}}},78915:function(e,t,l){"use strict";l.d(t,{T:function(){return c},K:function(){return u}});var s=l(21628),r=l(24214);let a=r.Z.create({baseURL:"http://120.26.193.159:5000"});a.defaults.timeout=1e4,a.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var n=l(84835);let o={"content-type":"application/json"},i=e=>{if(!(0,n.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return a.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let l=i(t);return a.post("/api"+e,{body:l,headers:o}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}}},function(e){e.O(0,[180,757,430,577,86,562,259,751,662,481,253,769,744],function(){return e(e.s=82738)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-2070328aeac2da46.js b/pilot/server/static/_next/static/chunks/app/chat/page-2070328aeac2da46.js
new file mode 100644
index 000000000..36d5577c3
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/chat/page-2070328aeac2da46.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),o=r(9268),i=(0,n.default)([(0,o.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,o.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,o.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,o.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=i},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),o=r(9268),i=(0,n.default)((0,o.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=i},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var a=r(40431),n=r(46750),o=r(86006),i=r(89791),s=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),m=r(98918);let p=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:m}=e,p=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),v=o.forwardRef(function(e,o){let s=(0,u.Z)(r),l=(0,c.Z)(e),{className:v,component:g="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(p,(0,a.Z)({as:g,ref:o,className:(0,i.Z)(v,m?m(f):f),theme:t&&s[t]||s},x))});return v}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var v=p},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return R}});var a=r(9268),n=r(89081),o=r(78915),i=r(66487),s=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),m=r(7354),p=r(35086),v=r(53047),g=r(86006),x=r(19700),y=r(92391),w=r(55749),j=r(70781),b=r(75403),Z=r(99398),S=r(49064),N=r(56008);let P=y.z.object({query:y.z.string().min(1)});var C=e=>{var t;let{messages:r,onSubmit:n,readOnly:o,paramsList:i,clearIntialMessage:y}=e,C=(0,N.useSearchParams)(),O=C.get("initMessage"),R=g.useRef(null),[k,z]=(0,g.useState)(!1),[_,E]=(0,g.useState)(),M=(0,x.cI)({resolver:(0,s.F)(P),defaultValues:{}}),L=async e=>{let{query:t}=e;try{console.log("submit"),z(!0),M.reset(),await n(t,{select_param:null==i?void 0:i[_]})}catch(e){}finally{z(!1)}},T=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await L({query:t})}catch(e){console.log(e)}finally{null==y||y()}},F={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:S.Z,children:t})}},wrapper:g.Fragment};return g.useEffect(()=>{R.current&&R.current.scrollTo(0,R.current.scrollHeight)},[null==r?void 0:r.length]),g.useEffect(()=>{O&&r.length<=0&&T()},[O,r.length]),g.useEffect(()=>{var e,t;i&&(null===(e=Object.keys(i||{}))||void 0===e?void 0:e.length)>0&&E(null===(t=Object.keys(i||{}))||void 0===t?void 0:t[0])},[i]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,a.jsxs)(c.Z,{ref:R,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(j.Z,{}):(0,a.jsx)(w.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:F,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),k&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,a.jsx)(d.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,a.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),M.handleSubmit(L)(e)},children:[Object.keys(i||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:_,onChange:(e,t)=>{E(t)},sx:{maxWidth:"100%"},children:Object.keys(i||{}).map(e=>(0,a.jsx)(m.Z,{value:e,children:e},e))})}),(0,a.jsx)(p.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(v.ZP,{type:"submit",disabled:k,children:(0,a.jsx)(l.Z,{})}),...M.register("query")})]})})]})})},O=r(57931),R=()=>{let e=(0,N.useSearchParams)(),{refreshDialogList:t}=(0,O.Cg)(),r=e.get("id"),s=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,o.T)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,o.K)("/v1/chat/mode/params/list?chat_mode=".concat(s)),{ready:!!s,refreshDeps:[r,s]}),{history:u,handleChatSubmit:d}=(0,i.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:s||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return s}});var a=r(9268),n=r(89081),o=r(78915),i=r(86006);let[s,l]=function(){let e=i.createContext(void 0);return[function(){let t=i.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:i,refresh:s}=(0,n.Z)(async()=>await (0,o.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:i,queryDialogueList:r,refreshDialogList:s},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var a=r(71990),n=r(86006),o=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},i=r(57931),s=e=>{let{queryAgentURL:t,channel:r,queryBody:s,initHistory:l}=e,[c,u]=o({history:l||[]}),{refreshDialogList:d}=(0,i.Cg)();(0,n.useEffect)(()=>{l&&u({history:l})},[l]);let h=async(e,n)=>{if(!e)return;let o=[...c.history,{role:"human",context:e}],i=o.length;u({history:o});try{let l=new AbortController;await (0,a.L)("".concat("http://${window.location.hostname}:${window.location.port}/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...s,user_input:e,channel:r}),signal:l.signal,async onopen(e){if(o.length<=1){d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)l.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))l.abort(),u({history:[...o,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...o];e.data&&((null==t?void 0:t[i])?t[i].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...o,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:h,history:c.history}}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return c},K:function(){return u}});var a=r(21628),n=r(24214);let o=n.Z.create({baseURL:"http://${window.location.hostname}:${window.location.port}"});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=r(84835);let s={"content-type":"application/json"},l=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return o.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=l(t);return o.post("/api"+e,{body:r,headers:s}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,430,577,86,562,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-51dab834c773ef72.js b/pilot/server/static/_next/static/chunks/app/chat/page-51dab834c773ef72.js
new file mode 100644
index 000000000..955819935
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/chat/page-51dab834c773ef72.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)([(0,s.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,s.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,s.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,s.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=i},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)((0,s.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=i},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var a=r(40431),n=r(46750),s=r(86006),i=r(89791),o=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),v=r(98918);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:v}=e,m=(0,o.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),p=s.forwardRef(function(e,s){let o=(0,u.Z)(r),l=(0,c.Z)(e),{className:p,component:g="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(m,(0,a.Z)({as:g,ref:s,className:(0,i.Z)(p,v?v(f):f),theme:t&&o[t]||o},x))});return p}({defaultTheme:v.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var p=m},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return R}});var a=r(9268),n=r(89081),s=r(78915),i=r(66487),o=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),v=r(7354),m=r(35086),p=r(53047),g=r(86006),x=r(19700),y=r(92391),j=r(55749),w=r(70781),b=r(75403),Z=r(99398),S=r(49064),N=r(56008);let P=y.z.object({query:y.z.string().min(1)});var C=e=>{var t;let{messages:r,onSubmit:n,readOnly:s,paramsList:i,clearIntialMessage:y}=e,C=(0,N.useSearchParams)(),O=C.get("initMessage"),R=g.useRef(null),[k,z]=(0,g.useState)(!1),[_,E]=(0,g.useState)(),M=(0,x.cI)({resolver:(0,o.F)(P),defaultValues:{}}),L=async e=>{let{query:t}=e;try{console.log("submit"),z(!0),M.reset(),await n(t,{select_param:null==i?void 0:i[_]})}catch(e){}finally{z(!1)}},T=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await L({query:t})}catch(e){console.log(e)}finally{null==y||y()}},F={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:S.Z,children:t})}},wrapper:g.Fragment};return g.useEffect(()=>{R.current&&R.current.scrollTo(0,R.current.scrollHeight)},[null==r?void 0:r.length]),g.useEffect(()=>{O&&r.length<=0&&T()},[O,r.length]),g.useEffect(()=>{var e,t;i&&(null===(e=Object.keys(i||{}))||void 0===e?void 0:e.length)>0&&E(null===(t=Object.keys(i||{}))||void 0===t?void 0:t[0])},[i]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,a.jsxs)(c.Z,{ref:R,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(w.Z,{}):(0,a.jsx)(j.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:F,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),k&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!s&&(0,a.jsx)(d.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,a.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),M.handleSubmit(L)(e)},children:[Object.keys(i||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:_,onChange:(e,t)=>{E(t)},sx:{maxWidth:"100%"},children:Object.keys(i||{}).map(e=>(0,a.jsx)(v.Z,{value:e,children:e},e))})}),(0,a.jsx)(m.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(p.ZP,{type:"submit",disabled:k,children:(0,a.jsx)(l.Z,{})}),...M.register("query")})]})})]})})},O=r(57931),R=()=>{let e=(0,N.useSearchParams)(),{refreshDialogList:t}=(0,O.Cg)(),r=e.get("id"),o=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,s.K)("/v1/chat/mode/params/list?chat_mode=".concat(o)),{ready:!!o,refreshDeps:[r,o]}),{history:u,handleChatSubmit:d}=(0,i.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:o||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return o}});var a=r(9268),n=r(89081),s=r(78915),i=r(86006);let[o,l]=function(){let e=i.createContext(void 0);return[function(){let t=i.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:i,refresh:o}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:i,queryDialogueList:r,refreshDialogList:o},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var a=r(71990),n=r(86006),s=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},i=r(57931),o=e=>{let{queryAgentURL:t,channel:r,queryBody:o,initHistory:l}=e,[c,u]=s({history:l||[]}),{refreshDialogList:d}=(0,i.Cg)();(0,n.useEffect)(()=>{l&&u({history:l})},[l]);let h=async(e,n)=>{if(!e)return;let s=[...c.history,{role:"human",context:e}],i=s.length;u({history:s});try{let l=new AbortController;await (0,a.L)("".concat("http://localhost:5000/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...o,user_input:e,channel:r}),signal:l.signal,async onopen(e){if(s.length<=1){d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)l.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))l.abort(),u({history:[...s,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...s];e.data&&((null==t?void 0:t[i])?t[i].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...s,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:h,history:c.history}}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return c},K:function(){return u}});var a=r(21628),n=r(24214);let s=n.Z.create({baseURL:"http://localhost:5000"});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=r(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=l(t);return s.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,430,577,86,562,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-c8e22645d6c99448.js b/pilot/server/static/_next/static/chunks/app/chat/page-c8e22645d6c99448.js
new file mode 100644
index 000000000..5461ee8d4
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/chat/page-c8e22645d6c99448.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{55749:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)([(0,s.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,s.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,s.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,s.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=i},70781:function(e,t,r){"use strict";var a=r(78997);t.Z=void 0;var n=a(r(76906)),s=r(9268),i=(0,n.default)((0,s.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=i},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var a=r(40431),n=r(46750),s=r(86006),i=r(89791),o=r(4323),l=r(51579),c=r(86601),u=r(95887),d=r(9268);let h=["className","component"];var f=r(47327),v=r(98918);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:f="MuiBox-root",generateClassName:v}=e,m=(0,o.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),p=s.forwardRef(function(e,s){let o=(0,u.Z)(r),l=(0,c.Z)(e),{className:p,component:g="div"}=l,x=(0,n.Z)(l,h);return(0,d.jsx)(m,(0,a.Z)({as:g,ref:s,className:(0,i.Z)(p,v?v(f):f),theme:t&&o[t]||o},x))});return p}({defaultTheme:v.Z,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate});var p=m},84380:function(e,t,r){Promise.resolve().then(r.bind(r,59498))},59498:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return R}});var a=r(9268),n=r(89081),s=r(78915),i=r(66487),o=r(67830),l=r(54842),c=r(70900),u=r(62414),d=r(90545),h=r(94244),f=r(33155),v=r(7354),m=r(35086),p=r(53047),g=r(86006),x=r(19700),y=r(92391),j=r(55749),w=r(70781),b=r(75403),Z=r(99398),S=r(49064),N=r(56008);let P=y.z.object({query:y.z.string().min(1)});var C=e=>{var t;let{messages:r,onSubmit:n,readOnly:s,paramsList:i,clearIntialMessage:y}=e,C=(0,N.useSearchParams)(),O=C.get("initMessage"),R=g.useRef(null),[k,z]=(0,g.useState)(!1),[_,E]=(0,g.useState)(),M=(0,x.cI)({resolver:(0,o.F)(P),defaultValues:{}}),L=async e=>{let{query:t}=e;try{console.log("submit"),z(!0),M.reset(),await n(t,{select_param:null==i?void 0:i[_]})}catch(e){}finally{z(!1)}},T=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await L({query:t})}catch(e){console.log(e)}finally{null==y||y()}},F={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(Z.Z,{language:"javascript",style:S.Z,children:t})}},wrapper:g.Fragment};return g.useEffect(()=>{R.current&&R.current.scrollTo(0,R.current.scrollHeight)},[null==r?void 0:r.length]),g.useEffect(()=>{O&&r.length<=0&&T()},[O,r.length]),g.useEffect(()=>{var e,t;i&&(null===(e=Object.keys(i||{}))||void 0===e?void 0:e.length)>0&&E(null===(t=Object.keys(i||{}))||void 0===t?void 0:t[0])},[i]),(0,a.jsx)("div",{className:"w-full h-full",children:(0,a.jsxs)(c.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,a.jsxs)(c.Z,{ref:R,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null===(t=r.filter(e=>["view","human"].includes(e.role)))||void 0===t?void 0:t.map((e,t)=>{var r;return(0,a.jsx)(c.Z,{children:(0,a.jsx)(u.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,a.jsxs)(d.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(w.Z,{}):(0,a.jsx)(j.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:(0,a.jsx)(b.Z,{options:F,children:null===(r=e.context)||void 0===r?void 0:r.replaceAll("\\n","\n")})})]})})},t)}),k&&(0,a.jsx)(h.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!s&&(0,a.jsx)(d.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,a.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),M.handleSubmit(L)(e)},children:[Object.keys(i||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f.Z,{value:_,onChange:(e,t)=>{E(t)},sx:{maxWidth:"100%"},children:Object.keys(i||{}).map(e=>(0,a.jsx)(v.Z,{value:e,children:e},e))})}),(0,a.jsx)(m.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(p.ZP,{type:"submit",disabled:k,children:(0,a.jsx)(l.Z,{})}),...M.register("query")})]})})]})})},O=r(57931),R=()=>{let e=(0,N.useSearchParams)(),{refreshDialogList:t}=(0,O.Cg)(),r=e.get("id"),o=e.get("scene"),{data:l}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/messages/history",{con_uid:r}),{ready:!!r,refreshDeps:[r]}),{data:c}=(0,n.Z)(async()=>await (0,s.K)("/v1/chat/mode/params/list?chat_mode=".concat(o)),{ready:!!o,refreshDeps:[r,o]}),{history:u,handleChatSubmit:d}=(0,i.Z)({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:r,chat_mode:o||"chat_normal"},initHistory:null==l?void 0:l.data});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C,{clearIntialMessage:async()=>{await t()},messages:u||[],onSubmit:d,paramsList:null==c?void 0:c.data})})}},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return o}});var a=r(9268),n=r(89081),s=r(78915),i=r(86006);let[o,l]=function(){let e=i.createContext(void 0);return[function(){let t=i.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:i,refresh:o}=(0,n.Z)(async()=>await (0,s.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(l,{value:{dialogueList:i,queryDialogueList:r,refreshDialogList:o},children:t})}},66487:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var a=r(71990),n=r(86006),s=e=>{let t=(0,n.useReducer)((e,t)=>({...e,...t}),{...e});return t},i=r(57931),o=e=>{let{queryAgentURL:t,channel:r,queryBody:o,initHistory:l}=e,[c,u]=s({history:l||[]}),{refreshDialogList:d}=(0,i.Cg)();(0,n.useEffect)(()=>{l&&u({history:l})},[l]);let h=async(e,n)=>{if(!e)return;let s=[...c.history,{role:"human",context:e}],i=s.length;u({history:s});try{let l=new AbortController;await (0,a.L)("".concat("http://120.26.193.159:5000/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...o,user_input:e,channel:r}),signal:l.signal,async onopen(e){if(s.length<=1){d();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==a.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw Error(e)},onmessage:e=>{var t;if(console.log(e,"e"),e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data)l.abort();else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))l.abort(),u({history:[...s,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...s];e.data&&((null==t?void 0:t[i])?t[i].context="".concat(e.data):t.push({role:"view",context:e.data}),u({history:t}))}}})}catch(e){console.log("---e",e),u({history:[...s,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:h,history:c.history}}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return c},K:function(){return u}});var a=r(21628),n=r(24214);let s=n.Z.create({baseURL:"http://120.26.193.159:5000"});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=r(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=l(t);return s.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},56008:function(e,t,r){e.exports=r(30794)}},function(e){e.O(0,[180,430,577,86,562,259,751,662,253,769,744],function(){return e(e.s=84380)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-d24299cdff6d507c.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-d24299cdff6d507c.js
new file mode 100644
index 000000000..41f3d5f32
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-d24299cdff6d507c.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{55254:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var a=n(9268),i=n(56008),s=n(86006),r=n(78635),c=n(70900),o=n(44334),d=n(311),l=n(22046),h=n(83192),u=n(23910),g=n(1031);t.default=()=>{let e=(0,i.useRouter)(),{mode:t}=(0,r.tv)(),n=(0,i.useSearchParams)().get("spacename"),x=(0,i.useSearchParams)().get("documentid"),[j,p]=(0,s.useState)(0),[m,f]=(0,s.useState)(0),[S,y]=(0,s.useState)([]);return(0,s.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:1,page_size:20})}),t=await e.json();t.success&&(y(t.data.data),p(t.data.total),f(t.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,a.jsxs)(o.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,a.jsx)(l.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,a.jsx)("div",{className:"p-4",children:S.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Content"}),(0,a.jsx)("th",{children:"Meta Data"})]})}),(0,a.jsx)("tbody",{children:S.map(e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:e.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:m,total:j,onChange:async e=>{let t=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:e,page_size:20})}),a=await t.json();a.success&&(y(a.data.data),p(a.data.total),f(a.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{})})]})}}},function(e){e.O(0,[430,693,118,440,55,253,769,744],function(){return e(e.s=55254)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-e0ca49fea4a412bb.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-e0ca49fea4a412bb.js
new file mode 100644
index 000000000..5a79ce8f2
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-e0ca49fea4a412bb.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{55254:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var a=n(9268),o=n(56008),i=n(86006),s=n(78635),c=n(70900),r=n(44334),d=n(311),l=n(22046),h=n(83192),u=n(23910),g=n(1031);t.default=()=>{let e=(0,o.useRouter)(),{mode:t}=(0,s.tv)(),n=(0,o.useSearchParams)().get("spacename"),p=(0,o.useSearchParams)().get("documentid"),[x,m]=(0,i.useState)(0),[j,f]=(0,i.useState)(0),[w,S]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:p,page:1,page_size:20})}),t=await e.json();t.success&&(S(t.data.data),m(t.data.total),f(t.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,a.jsxs)(r.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,a.jsx)(l.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,a.jsx)("div",{className:"p-4",children:w.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Content"}),(0,a.jsx)("th",{children:"Meta Data"})]})}),(0,a.jsx)("tbody",{children:w.map(e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:e.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:j,total:x,onChange:async e=>{let t=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:p,page:e,page_size:20})}),a=await t.json();a.success&&(S(a.data.data),m(a.data.total),f(a.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{})})]})}}},function(e){e.O(0,[430,693,118,440,55,253,769,744],function(){return e(e.s=55254)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-ff44ac50657039fc.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-ff44ac50657039fc.js
new file mode 100644
index 000000000..5bf5fcca4
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-ff44ac50657039fc.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{55254:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var a=n(9268),i=n(56008),s=n(86006),o=n(78635),c=n(70900),r=n(44334),l=n(311),d=n(22046),h=n(83192),u=n(23910),g=n(1031);t.default=()=>{let e=(0,i.useRouter)(),{mode:t}=(0,o.tv)(),n=(0,i.useSearchParams)().get("spacename"),x=(0,i.useSearchParams)().get("documentid"),[j,p]=(0,s.useState)(0),[m,f]=(0,s.useState)(0),[S,y]=(0,s.useState)([]);return(0,s.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:1,page_size:20})}),t=await e.json();t.success&&(y(t.data.data),p(t.data.total),f(t.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,a.jsxs)(r.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(l.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(l.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,a.jsx)(d.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,a.jsx)("div",{className:"p-4",children:S.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Content"}),(0,a.jsx)("th",{children:"Meta Data"})]})}),(0,a.jsx)("tbody",{children:S.map(e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:e.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,a.jsx)("td",{children:(0,a.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:m,total:j,onChange:async e=>{let t=await fetch("".concat("http://localhost:5000","/knowledge/").concat(n,"/chunk/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({document_id:x,page:e,page_size:20})}),a=await t.json();a.success&&(y(a.data.data),p(a.data.total),f(a.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{})})]})}}},function(e){e.O(0,[430,693,118,440,55,253,769,744],function(){return e(e.s=55254)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-497fcc1c34ff4a13.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-497fcc1c34ff4a13.js
new file mode 100644
index 000000000..c983f9f11
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-497fcc1c34ff4a13.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{78141:function(e,t,a){"use strict";var i=a(78997);t.Z=void 0;var n=i(a(76906)),o=a(9268),r=(0,n.default)((0,o.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=r},22199:function(e,t,a){Promise.resolve().then(a.bind(a,16692))},16692:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return et}});var i=a(9268),n=a(56008),o=a(86006),r=a(50645),s=a(5737),l=a(78635),c=a(70900),d=a(44334),h=a(311),p=a(22046),u=a(53113),g=a(83192),m=a(46750),x=a(40431),v=a(89791),f=a(47562),C=a(46319),b=a(53832),y=a(49657),j=a(88930),S=a(47093),Z=a(18587);function w(e){return(0,Z.d6)("MuiChip",e)}let P=(0,Z.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=o.createContext({disabled:void 0,variant:void 0,color:void 0});var D=a(326);let T=["children","className","color","slotProps","onClick","disabled","size","variant","startDecorator","endDecorator"],k=e=>{let{disabled:t,size:a,color:i,clickable:n,variant:o,focusVisible:r}=e,s={root:["root",t&&"disabled",i&&`color${(0,b.Z)(i)}`,a&&`size${(0,b.Z)(a)}`,o&&`variant${(0,b.Z)(o)}`,n&&"clickable"],action:["action",t&&"disabled",r&&"focusVisible"],label:["label",a&&`label${(0,b.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,w,{})},z=(0,r.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,n,o,r,s;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${P.disabled}`]:{color:null==(a=e.variants[`${t.variant}Disabled`])?void 0:null==(i=a[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(r=e.variants[t.variant])?void 0:null==(s=r[t.color])?void 0:s.color}]:[null==(n=e.variants[t.variant])?void 0:n[t.color],{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]]}),O=(0,r.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),I=(0,r.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var a,i,n,o;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(a=e.variants[t.variant])?void 0:a[t.color],{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color]},{"&:active":null==(n=e.variants[`${t.variant}Active`])?void 0:n[t.color]},{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]}),N=(0,r.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),R=(0,r.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),H=o.forwardRef(function(e,t){let a=(0,j.Z)({props:e,name:"JoyChip"}),{children:n,className:r,color:s="primary",slotProps:l={},onClick:c,disabled:d=!1,size:h="md",variant:p="solid",startDecorator:u,endDecorator:g}=a,f=(0,m.Z)(a,T),{getColor:b}=(0,S.VT)(p),Z=b(e.color,s),w=!!c||!!l.action,P=(0,x.Z)({},a,{disabled:d,size:h,color:Z,variant:p,clickable:w,focusVisible:!1}),H="function"==typeof l.action?l.action(P):l.action,F=o.useRef(null),{focusVisible:E,getRootProps:J}=(0,C.Z)((0,x.Z)({},H,{disabled:d,ref:F}));P.focusVisible=E;let W=k(P),M=(0,x.Z)({},f,{slotProps:l}),[L,$]=(0,D.Z)("root",{ref:t,className:(0,v.Z)(W.root,r),elementType:z,externalForwardedProps:M,ownerState:P}),[U,A]=(0,D.Z)("label",{className:W.label,elementType:O,externalForwardedProps:M,ownerState:P}),B=(0,y.Z)(A.id),[V,Y]=(0,D.Z)("action",{className:W.action,elementType:I,externalForwardedProps:M,ownerState:P,getSlotProps:J,additionalProps:{"aria-labelledby":B,as:null==H?void 0:H.component,onClick:c}}),[G,K]=(0,D.Z)("startDecorator",{className:W.startDecorator,elementType:N,externalForwardedProps:M,ownerState:P}),[X,q]=(0,D.Z)("endDecorator",{className:W.endDecorator,elementType:R,externalForwardedProps:M,ownerState:P}),Q=o.useMemo(()=>({disabled:d,variant:p,color:"context"===Z?void 0:Z}),[Z,d,p]);return(0,i.jsx)(_.Provider,{value:Q,children:(0,i.jsxs)(L,(0,x.Z)({},$,{children:[w&&(0,i.jsx)(V,(0,x.Z)({},Y)),(0,i.jsx)(U,(0,x.Z)({},A,{id:B,children:n})),u&&(0,i.jsx)(G,(0,x.Z)({},K,{children:u})),g&&(0,i.jsx)(X,(0,x.Z)({},q,{children:g}))]}))})});var F=a(11437),E=a(90545),J=a(35086),W=a(866),M=a(28086),L=a(65326),$=a.n(L),U=a(72474),A=a(59534),B=a(78141),V=a(50157),Y=a(23910),G=a(21628),K=a(1031);let{Dragger:X}=V.default,q=(0,r.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),Q=["Choose a Datasource type","Setup the Datasource"],ee=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var et=()=>{let e=(0,n.useRouter)(),t=(0,n.useSearchParams)().get("name"),{mode:a}=(0,l.tv)(),[r,m]=(0,o.useState)(!1),[x,v]=(0,o.useState)(0),[f,C]=(0,o.useState)(""),[b,y]=(0,o.useState)([]),[j,S]=(0,o.useState)(""),[Z,w]=(0,o.useState)(""),[P,_]=(0,o.useState)(""),[D,T]=(0,o.useState)(""),[k,z]=(0,o.useState)(null),[O,I]=(0,o.useState)(0),[N,R]=(0,o.useState)(0),[L,V]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:1,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))})()},[]),(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,i.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,i.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]}),b.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(g.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===a?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Name"}),(0,i.jsx)("th",{children:"Type"}),(0,i.jsx)("th",{children:"Size"}),(0,i.jsx)("th",{children:"Last Synch"}),(0,i.jsx)("th",{children:"Status"}),(0,i.jsx)("th",{children:"Result"}),(0,i.jsx)("th",{children:"Operation"})]})}),(0,i.jsx)("tbody",{children:b.map(a=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:a.doc_name}),(0,i.jsx)("td",{children:(0,i.jsx)(H,{variant:"solid",color:"neutral",sx:{opacity:.5},children:a.doc_type})}),(0,i.jsxs)("td",{children:[a.chunk_size," chunks"]}),(0,i.jsx)("td",{children:$()(a.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,i.jsx)("td",{children:(0,i.jsx)(H,{sx:{opacity:.5},variant:"solid",color:function(){switch(a.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:a.status})}),(0,i.jsx)("td",{children:"TODO"===a.status||"RUNNING"===a.status?"":"FINISHED"===a.status?(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(H,{variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(H,{variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,i.jsx)("td",{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"20px"},onClick:async()=>{let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.id]})}),i=await e.json();i.success?G.ZP.success("success"):G.ZP.error(i.err_msg||"failed")},children:["Synch",(0,i.jsx)(B.Z,{})]}),(0,i.jsx)(u.Z,{variant:"outlined",size:"sm",onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(a.id))},children:"Details"})]})})]},a.id))})]}),(0,i.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,i.jsx)(K.Z,{defaultPageSize:20,showSizeChanger:!1,current:N,total:O,onChange:async e=>{let a=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:e,page_size:20})}),i=await a.json();i.success&&(y(i.data.data),I(i.data.total),R(i.data.page))},hideOnSinglePage:!0})})]}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(F.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:r,onClose:()=>m(!1),children:(0,i.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,i.jsx)(E.Z,{sx:{width:"100%"},children:(0,i.jsx)(c.Z,{spacing:2,direction:"row",children:Q.map((e,t)=>(0,i.jsxs)(q,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#814DDE":""},children:[t(0,i.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,i.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,i.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(E.Z,{sx:{margin:"30px auto"},children:["Name:",(0,i.jsx)(J.ZP,{placeholder:"Please input the name",onChange:e=>w(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,i.jsxs)(i.Fragment,{children:["Web Page URL:",(0,i.jsx)(J.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>S(e.target.value)})]}):"file"===f?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(X,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){z(null),w("");return}z(e.file.originFileObj),w(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,i.jsx)("p",{className:"ant-upload-drag-icon",children:(0,i.jsx)(U.Z,{})}),(0,i.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,i.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,i.jsxs)(i.Fragment,{children:["Text Source(Optional):",(0,i.jsx)(J.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,i.jsx)(W.Z,{onChange:e=>T(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,i.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,i.jsx)(M.Z,{checked:L,onChange:e=>V(e.target.checked)}),children:"Synch:"})]}),(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===Z){G.ZP.error("Please input the name");return}if("webPage"===f){if(""===j){G.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:Z,content:j,doc_type:"URL"})}),a=await e.json();if(a.success&&L&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(a.err_msg||"failed")}else if("file"===f){if(!k){G.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",Z),e.append("doc_file",k),e.append("doc_type","DOCUMENT");let a=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/upload"),{method:"POST",body:e}),i=await a.json();if(i.success&&L&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[i.data]})}),i.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(i.err_msg||"failed")}else{if(""===D){G.ZP.error("Please input the text");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:Z,source:P,content:D,doc_type:"TEXT"})}),a=await e.json();if(a.success&&L&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(a.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[550,430,577,86,693,118,440,672,55,642,253,769,744],function(){return e(e.s=22199)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-a131be003bf1298d.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-a131be003bf1298d.js
new file mode 100644
index 000000000..6209617e2
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-a131be003bf1298d.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{78141:function(e,t,a){"use strict";var i=a(78997);t.Z=void 0;var n=i(a(76906)),o=a(9268),r=(0,n.default)((0,o.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=r},22199:function(e,t,a){Promise.resolve().then(a.bind(a,16692))},16692:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return et}});var i=a(9268),n=a(56008),o=a(86006),r=a(50645),s=a(5737),l=a(78635),c=a(70900),d=a(44334),h=a(311),p=a(22046),u=a(53113),g=a(83192),m=a(46750),x=a(40431),v=a(89791),f=a(47562),C=a(46319),w=a(53832),b=a(49657),y=a(88930),j=a(47093),S=a(18587);function Z(e){return(0,S.d6)("MuiChip",e)}let P=(0,S.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=o.createContext({disabled:void 0,variant:void 0,color:void 0});var D=a(326);let T=["children","className","color","slotProps","onClick","disabled","size","variant","startDecorator","endDecorator"],k=e=>{let{disabled:t,size:a,color:i,clickable:n,variant:o,focusVisible:r}=e,s={root:["root",t&&"disabled",i&&`color${(0,w.Z)(i)}`,a&&`size${(0,w.Z)(a)}`,o&&`variant${(0,w.Z)(o)}`,n&&"clickable"],action:["action",t&&"disabled",r&&"focusVisible"],label:["label",a&&`label${(0,w.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,Z,{})},z=(0,r.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,n,o,r,s;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${P.disabled}`]:{color:null==(a=e.variants[`${t.variant}Disabled`])?void 0:null==(i=a[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(r=e.variants[t.variant])?void 0:null==(s=r[t.color])?void 0:s.color}]:[null==(n=e.variants[t.variant])?void 0:n[t.color],{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]]}),O=(0,r.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),I=(0,r.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var a,i,n,o;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(a=e.variants[t.variant])?void 0:a[t.color],{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color]},{"&:active":null==(n=e.variants[`${t.variant}Active`])?void 0:n[t.color]},{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]}),$=(0,r.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),N=(0,r.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),R=o.forwardRef(function(e,t){let a=(0,y.Z)({props:e,name:"JoyChip"}),{children:n,className:r,color:s="primary",slotProps:l={},onClick:c,disabled:d=!1,size:h="md",variant:p="solid",startDecorator:u,endDecorator:g}=a,f=(0,m.Z)(a,T),{getColor:w}=(0,j.VT)(p),S=w(e.color,s),Z=!!c||!!l.action,P=(0,x.Z)({},a,{disabled:d,size:h,color:S,variant:p,clickable:Z,focusVisible:!1}),R="function"==typeof l.action?l.action(P):l.action,H=o.useRef(null),{focusVisible:F,getRootProps:E}=(0,C.Z)((0,x.Z)({},R,{disabled:d,ref:H}));P.focusVisible=F;let J=k(P),W=(0,x.Z)({},f,{slotProps:l}),[M,L]=(0,D.Z)("root",{ref:t,className:(0,v.Z)(J.root,r),elementType:z,externalForwardedProps:W,ownerState:P}),[U,A]=(0,D.Z)("label",{className:J.label,elementType:O,externalForwardedProps:W,ownerState:P}),B=(0,b.Z)(A.id),[V,Y]=(0,D.Z)("action",{className:J.action,elementType:I,externalForwardedProps:W,ownerState:P,getSlotProps:E,additionalProps:{"aria-labelledby":B,as:null==R?void 0:R.component,onClick:c}}),[G,K]=(0,D.Z)("startDecorator",{className:J.startDecorator,elementType:$,externalForwardedProps:W,ownerState:P}),[X,q]=(0,D.Z)("endDecorator",{className:J.endDecorator,elementType:N,externalForwardedProps:W,ownerState:P}),Q=o.useMemo(()=>({disabled:d,variant:p,color:"context"===S?void 0:S}),[S,d,p]);return(0,i.jsx)(_.Provider,{value:Q,children:(0,i.jsxs)(M,(0,x.Z)({},L,{children:[Z&&(0,i.jsx)(V,(0,x.Z)({},Y)),(0,i.jsx)(U,(0,x.Z)({},A,{id:B,children:n})),u&&(0,i.jsx)(G,(0,x.Z)({},K,{children:u})),g&&(0,i.jsx)(X,(0,x.Z)({},q,{children:g}))]}))})});var H=a(11437),F=a(90545),E=a(35086),J=a(866),W=a(28086),M=a(65326),L=a.n(M),U=a(72474),A=a(59534),B=a(78141),V=a(50157),Y=a(23910),G=a(21628),K=a(1031);let{Dragger:X}=V.default,q=(0,r.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),Q=["Choose a Datasource type","Setup the Datasource"],ee=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var et=()=>{let e=(0,n.useRouter)(),t=(0,n.useSearchParams)().get("name"),{mode:a}=(0,l.tv)(),[r,m]=(0,o.useState)(!1),[x,v]=(0,o.useState)(0),[f,C]=(0,o.useState)(""),[w,b]=(0,o.useState)([]),[y,j]=(0,o.useState)(""),[S,Z]=(0,o.useState)(""),[P,_]=(0,o.useState)(""),[D,T]=(0,o.useState)(""),[k,z]=(0,o.useState)(null),[O,I]=(0,o.useState)(0),[$,N]=(0,o.useState)(0),[M,V]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:1,page_size:20})}),a=await e.json();a.success&&(b(a.data.data),I(a.data.total),N(a.data.page))})()},[]),(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,i.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,i.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]}),w.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(g.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===a?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Name"}),(0,i.jsx)("th",{children:"Type"}),(0,i.jsx)("th",{children:"Size"}),(0,i.jsx)("th",{children:"Last Synch"}),(0,i.jsx)("th",{children:"Status"}),(0,i.jsx)("th",{children:"Result"}),(0,i.jsx)("th",{children:"Operation"})]})}),(0,i.jsx)("tbody",{children:w.map(a=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:a.doc_name}),(0,i.jsx)("td",{children:(0,i.jsx)(R,{variant:"solid",color:"neutral",sx:{opacity:.5},children:a.doc_type})}),(0,i.jsxs)("td",{children:[a.chunk_size," chunks"]}),(0,i.jsx)("td",{children:L()(a.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,i.jsx)("td",{children:(0,i.jsx)(R,{sx:{opacity:.5},variant:"solid",color:function(){switch(a.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:a.status})}),(0,i.jsx)("td",{children:"TODO"===a.status||"RUNNING"===a.status?"":"FINISHED"===a.status?(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(R,{variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(R,{variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,i.jsx)("td",{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"20px"},onClick:async()=>{let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.id]})}),i=await e.json();i.success?G.ZP.success("success"):G.ZP.error(i.err_msg||"failed")},children:["Synch",(0,i.jsx)(B.Z,{})]}),(0,i.jsx)(u.Z,{variant:"outlined",size:"sm",onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(a.id))},children:"Details"})]})})]},a.id))})]}),(0,i.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,i.jsx)(K.Z,{defaultPageSize:20,showSizeChanger:!1,current:$,total:O,onChange:async e=>{let a=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:e,page_size:20})}),i=await a.json();i.success&&(b(i.data.data),I(i.data.total),N(i.data.page))},hideOnSinglePage:!0})})]}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(H.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:r,onClose:()=>m(!1),children:(0,i.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,i.jsx)(F.Z,{sx:{width:"100%"},children:(0,i.jsx)(c.Z,{spacing:2,direction:"row",children:Q.map((e,t)=>(0,i.jsxs)(q,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#814DDE":""},children:[t(0,i.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,i.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,i.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(F.Z,{sx:{margin:"30px auto"},children:["Name:",(0,i.jsx)(E.ZP,{placeholder:"Please input the name",onChange:e=>Z(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,i.jsxs)(i.Fragment,{children:["Web Page URL:",(0,i.jsx)(E.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>j(e.target.value)})]}):"file"===f?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(X,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){z(null),Z("");return}z(e.file.originFileObj),Z(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,i.jsx)("p",{className:"ant-upload-drag-icon",children:(0,i.jsx)(U.Z,{})}),(0,i.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,i.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,i.jsxs)(i.Fragment,{children:["Text Source(Optional):",(0,i.jsx)(E.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,i.jsx)(J.Z,{onChange:e=>T(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,i.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,i.jsx)(W.Z,{checked:M,onChange:e=>V(e.target.checked)}),children:"Synch:"})]}),(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===S){G.ZP.error("Please input the name");return}if("webPage"===f){if(""===y){G.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:S,content:y,doc_type:"URL"})}),a=await e.json();if(a.success&&M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:$,page_size:20})}),a=await e.json();a.success&&(b(a.data.data),I(a.data.total),N(a.data.page))}else G.ZP.error(a.err_msg||"failed")}else if("file"===f){if(!k){G.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",S),e.append("doc_file",k),e.append("doc_type","DOCUMENT");let a=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/upload"),{method:"POST",body:e}),i=await a.json();if(i.success&&M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[i.data]})}),i.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:$,page_size:20})}),a=await e.json();a.success&&(b(a.data.data),I(a.data.total),N(a.data.page))}else G.ZP.error(i.err_msg||"failed")}else{if(""===D){G.ZP.error("Please input the text");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:S,source:P,content:D,doc_type:"TEXT"})}),a=await e.json();if(a.success&&M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:$,page_size:20})}),a=await e.json();a.success&&(b(a.data.data),I(a.data.total),N(a.data.page))}else G.ZP.error(a.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[550,430,577,86,693,118,440,672,55,642,253,769,744],function(){return e(e.s=22199)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-c51de11f1af75384.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-c51de11f1af75384.js
new file mode 100644
index 000000000..8a836c7cd
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-c51de11f1af75384.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{78141:function(e,t,a){"use strict";var i=a(78997);t.Z=void 0;var n=i(a(76906)),o=a(9268),r=(0,n.default)((0,o.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=r},22199:function(e,t,a){Promise.resolve().then(a.bind(a,16692))},16692:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return et}});var i=a(9268),n=a(56008),o=a(86006),r=a(50645),s=a(5737),l=a(78635),c=a(70900),d=a(44334),h=a(311),p=a(22046),u=a(53113),g=a(83192),m=a(46750),x=a(40431),v=a(89791),f=a(47562),C=a(46319),b=a(53832),y=a(49657),j=a(88930),S=a(47093),Z=a(18587);function w(e){return(0,Z.d6)("MuiChip",e)}let P=(0,Z.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=o.createContext({disabled:void 0,variant:void 0,color:void 0});var D=a(326);let T=["children","className","color","slotProps","onClick","disabled","size","variant","startDecorator","endDecorator"],k=e=>{let{disabled:t,size:a,color:i,clickable:n,variant:o,focusVisible:r}=e,s={root:["root",t&&"disabled",i&&`color${(0,b.Z)(i)}`,a&&`size${(0,b.Z)(a)}`,o&&`variant${(0,b.Z)(o)}`,n&&"clickable"],action:["action",t&&"disabled",r&&"focusVisible"],label:["label",a&&`label${(0,b.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,w,{})},z=(0,r.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,n,o,r,s;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${P.disabled}`]:{color:null==(a=e.variants[`${t.variant}Disabled`])?void 0:null==(i=a[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(r=e.variants[t.variant])?void 0:null==(s=r[t.color])?void 0:s.color}]:[null==(n=e.variants[t.variant])?void 0:n[t.color],{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]]}),O=(0,r.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),I=(0,r.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var a,i,n,o;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(a=e.variants[t.variant])?void 0:a[t.color],{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color]},{"&:active":null==(n=e.variants[`${t.variant}Active`])?void 0:n[t.color]},{[`&.${P.disabled}`]:null==(o=e.variants[`${t.variant}Disabled`])?void 0:o[t.color]}]}),N=(0,r.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),R=(0,r.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),H=o.forwardRef(function(e,t){let a=(0,j.Z)({props:e,name:"JoyChip"}),{children:n,className:r,color:s="primary",slotProps:l={},onClick:c,disabled:d=!1,size:h="md",variant:p="solid",startDecorator:u,endDecorator:g}=a,f=(0,m.Z)(a,T),{getColor:b}=(0,S.VT)(p),Z=b(e.color,s),w=!!c||!!l.action,P=(0,x.Z)({},a,{disabled:d,size:h,color:Z,variant:p,clickable:w,focusVisible:!1}),H="function"==typeof l.action?l.action(P):l.action,F=o.useRef(null),{focusVisible:E,getRootProps:J}=(0,C.Z)((0,x.Z)({},H,{disabled:d,ref:F}));P.focusVisible=E;let W=k(P),M=(0,x.Z)({},f,{slotProps:l}),[L,$]=(0,D.Z)("root",{ref:t,className:(0,v.Z)(W.root,r),elementType:z,externalForwardedProps:M,ownerState:P}),[U,A]=(0,D.Z)("label",{className:W.label,elementType:O,externalForwardedProps:M,ownerState:P}),B=(0,y.Z)(A.id),[V,Y]=(0,D.Z)("action",{className:W.action,elementType:I,externalForwardedProps:M,ownerState:P,getSlotProps:J,additionalProps:{"aria-labelledby":B,as:null==H?void 0:H.component,onClick:c}}),[G,K]=(0,D.Z)("startDecorator",{className:W.startDecorator,elementType:N,externalForwardedProps:M,ownerState:P}),[X,q]=(0,D.Z)("endDecorator",{className:W.endDecorator,elementType:R,externalForwardedProps:M,ownerState:P}),Q=o.useMemo(()=>({disabled:d,variant:p,color:"context"===Z?void 0:Z}),[Z,d,p]);return(0,i.jsx)(_.Provider,{value:Q,children:(0,i.jsxs)(L,(0,x.Z)({},$,{children:[w&&(0,i.jsx)(V,(0,x.Z)({},Y)),(0,i.jsx)(U,(0,x.Z)({},A,{id:B,children:n})),u&&(0,i.jsx)(G,(0,x.Z)({},K,{children:u})),g&&(0,i.jsx)(X,(0,x.Z)({},q,{children:g}))]}))})});var F=a(11437),E=a(90545),J=a(35086),W=a(866),M=a(28086),L=a(65326),$=a.n(L),U=a(72474),A=a(59534),B=a(78141),V=a(50157),Y=a(23910),G=a(21628),K=a(1031);let{Dragger:X}=V.default,q=(0,r.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),Q=["Choose a Datasource type","Setup the Datasource"],ee=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var et=()=>{let e=(0,n.useRouter)(),t=(0,n.useSearchParams)().get("name"),{mode:a}=(0,l.tv)(),[r,m]=(0,o.useState)(!1),[x,v]=(0,o.useState)(0),[f,C]=(0,o.useState)(""),[b,y]=(0,o.useState)([]),[j,S]=(0,o.useState)(""),[Z,w]=(0,o.useState)(""),[P,_]=(0,o.useState)(""),[D,T]=(0,o.useState)(""),[k,z]=(0,o.useState)(null),[O,I]=(0,o.useState)(0),[N,R]=(0,o.useState)(0),[L,V]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:1,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))})()},[]),(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,i.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,i.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]}),b.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(g.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===a?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Name"}),(0,i.jsx)("th",{children:"Type"}),(0,i.jsx)("th",{children:"Size"}),(0,i.jsx)("th",{children:"Last Synch"}),(0,i.jsx)("th",{children:"Status"}),(0,i.jsx)("th",{children:"Result"}),(0,i.jsx)("th",{children:"Operation"})]})}),(0,i.jsx)("tbody",{children:b.map(a=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:a.doc_name}),(0,i.jsx)("td",{children:(0,i.jsx)(H,{variant:"solid",color:"neutral",sx:{opacity:.5},children:a.doc_type})}),(0,i.jsxs)("td",{children:[a.chunk_size," chunks"]}),(0,i.jsx)("td",{children:$()(a.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,i.jsx)("td",{children:(0,i.jsx)(H,{sx:{opacity:.5},variant:"solid",color:function(){switch(a.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:a.status})}),(0,i.jsx)("td",{children:"TODO"===a.status||"RUNNING"===a.status?"":"FINISHED"===a.status?(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(H,{variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,i.jsx)(Y.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(H,{variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,i.jsx)("td",{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"20px"},onClick:async()=>{let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.id]})}),i=await e.json();i.success?G.ZP.success("success"):G.ZP.error(i.err_msg||"failed")},children:["Synch",(0,i.jsx)(B.Z,{})]}),(0,i.jsx)(u.Z,{variant:"outlined",size:"sm",onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(a.id))},children:"Details"})]})})]},a.id))})]}),(0,i.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,i.jsx)(K.Z,{defaultPageSize:20,showSizeChanger:!1,current:N,total:O,onChange:async e=>{let a=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:e,page_size:20})}),i=await a.json();i.success&&(y(i.data.data),I(i.data.total),R(i.data.page))},hideOnSinglePage:!0})})]}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(F.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:r,onClose:()=>m(!1),children:(0,i.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,i.jsx)(E.Z,{sx:{width:"100%"},children:(0,i.jsx)(c.Z,{spacing:2,direction:"row",children:Q.map((e,t)=>(0,i.jsxs)(q,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#814DDE":""},children:[t(0,i.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,i.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,i.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(E.Z,{sx:{margin:"30px auto"},children:["Name:",(0,i.jsx)(J.ZP,{placeholder:"Please input the name",onChange:e=>w(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,i.jsxs)(i.Fragment,{children:["Web Page URL:",(0,i.jsx)(J.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>S(e.target.value)})]}):"file"===f?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(X,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){z(null),w("");return}z(e.file.originFileObj),w(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,i.jsx)("p",{className:"ant-upload-drag-icon",children:(0,i.jsx)(U.Z,{})}),(0,i.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,i.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,i.jsxs)(i.Fragment,{children:["Text Source(Optional):",(0,i.jsx)(J.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,i.jsx)(W.Z,{onChange:e=>T(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,i.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,i.jsx)(M.Z,{checked:L,onChange:e=>V(e.target.checked)}),children:"Synch:"})]}),(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===Z){G.ZP.error("Please input the name");return}if("webPage"===f){if(""===j){G.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:Z,content:j,doc_type:"URL"})}),a=await e.json();if(a.success&&L&&fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(a.err_msg||"failed")}else if("file"===f){if(!k){G.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",Z),e.append("doc_file",k),e.append("doc_type","DOCUMENT");let a=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/upload"),{method:"POST",body:e}),i=await a.json();if(i.success&&L&&fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[i.data]})}),i.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(i.err_msg||"failed")}else{if(""===D){G.ZP.error("Please input the text");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:Z,source:P,content:D,doc_type:"TEXT"})}),a=await e.json();if(a.success&&L&&fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[a.data]})}),a.success){G.ZP.success("success"),m(!1);let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(t,"/document/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:N,page_size:20})}),a=await e.json();a.success&&(y(a.data.data),I(a.data.total),R(a.data.page))}else G.ZP.error(a.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[550,430,577,86,693,118,440,672,55,642,253,769,744],function(){return e(e.s=22199)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-84d5a7826bef9983.js b/pilot/server/static/_next/static/chunks/app/datastores/page-84d5a7826bef9983.js
new file mode 100644
index 000000000..2b2729335
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/page-84d5a7826bef9983.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{25123:function(e,t,o){"use strict";var n=o(78997);t.Z=void 0;var a=n(o(76906)),i=o(9268),s=(0,a.default)((0,i.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");t.Z=s},29382:function(e,t,o){"use strict";var n=o(78997);t.Z=void 0;var a=n(o(76906)),i=o(9268),s=(0,a.default)([(0,i.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,i.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=s},31982:function(e,t,o){Promise.resolve().then(o.bind(o,44323))},44323:function(e,t,o){"use strict";o.r(t);var n=o(9268),a=o(56008),i=o(86006),s=o(72474),r=o(59534),c=o(25123),l=o(29382),d=o(50157),x=o(21628),p=o(50645),h=o(5737),g=o(78635),u=o(90545),m=o(70900),w=o(11437),f=o(35086),j=o(53113),b=o(866),y=o(22046),Z=o(28086);let{Dragger:S}=d.default,P=(0,p.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],C=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,g.tv)(),[o,d]=(0,i.useState)(0),[p,v]=(0,i.useState)(""),[T,O]=(0,i.useState)([]),[_,z]=(0,i.useState)(!1),[N,$]=(0,i.useState)(""),[R,F]=(0,i.useState)(""),[D,B]=(0,i.useState)(""),[W,E]=(0,i.useState)(""),[J,U]=(0,i.useState)(""),[V,L]=(0,i.useState)(null),[M,G]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)})()},[]),(0,n.jsxs)(u.Z,{sx:{width:"100%",height:"100%",backgroundColor:"light"===t?"rgb(238, 240, 245)":"rgb(33, 33, 33)"},children:[(0,n.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,n.jsxs)(u.Z,{sx:{boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",backgroundColor:"light"===t?"rgb(224, 228, 237)":"rgb(72, 72, 72)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>z(!0),children:[(0,n.jsx)(c.Z,{sx:{marginRight:"10px",fontSize:"30px"}}),"Space"]}),T.map((o,a)=>(0,n.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",backgroundColor:"light"===t?"rgb(255, 255, 255)":"rgb(72, 72, 72)",borderTop:"3px solid rgb(82, 196, 26)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(o.name))},children:[(0,n.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px"}}),o.name]}),(0,n.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(u.Z,{sx:{color:"black"},children:o.vector_type}),(0,n.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(u.Z,{sx:{color:"black"},children:o.owner}),(0,n.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(u.Z,{sx:{color:"black"},children:o.docs||0}),(0,n.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},a)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(w.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:_,onClose:()=>z(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(u.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:k.map((e,t)=>(0,n.jsxs)(P,{sx:{fontWeight:o===t?"bold":"",color:o===t?"#814DDE":""},children:[t$(e.target.value)})]}),(0,n.jsx)(j.Z,{variant:"outlined",onClick:async()=>{if(""===N){x.ZP.error("please input the name");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/space/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:N,vector_type:"Chroma",owner:"keting",desc:"test1"})}),t=await e.json();if(t.success){x.ZP.success("success"),d(1);let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)}else x.ZP.error(t.err_msg||"failed")},children:"Next"})]}):1===o?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(u.Z,{sx:{margin:"30px auto"},children:C.map(e=>(0,n.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{v(e.type),d(2)},children:[(0,n.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>B(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===p?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>F(e.target.value)})]}):"file"===p?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(S,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){L(null),B("");return}L(e.file.originFileObj),B(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(s.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>E(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>U(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(y.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(Z.Z,{checked:M,onChange:e=>G(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(j.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>d(1),children:"< Back"}),(0,n.jsx)(j.Z,{variant:"outlined",onClick:async()=>{if(""===D){x.ZP.error("Please input the name");return}if("webPage"===p){if(""===R){x.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:D,content:R,doc_type:"URL"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}else if("file"===p){if(!V){x.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",D),e.append("doc_file",V),e.append("doc_type","DOCUMENT");let t=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/upload"),{method:"POST",body:e}),o=await t.json();o.success?(x.ZP.success("success"),z(!1),M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[o.data]})})):x.ZP.error(o.err_msg||"failed")}else{if(""===J){x.ZP.error("Please input the text");return}let e=await fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:D,source:W,content:J,doc_type:"TEXT"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),M&&fetch("".concat("http://${window.location.hostname}:${window.location.port}","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[430,577,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-a19a0b3ef6d9cc2f.js b/pilot/server/static/_next/static/chunks/app/datastores/page-a19a0b3ef6d9cc2f.js
new file mode 100644
index 000000000..fefce74cc
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/page-a19a0b3ef6d9cc2f.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{25123:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)((0,a.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");t.Z=i},29382:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)([(0,a.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,a.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=i},31982:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var o=n(9268),s=n(56008),a=n(86006),i=n(72474),r=n(59534),c=n(25123),l=n(29382),d=n(50157),x=n(21628),h=n(50645),p=n(5737),g=n(78635),u=n(90545),f=n(70900),m=n(11437),j=n(35086),b=n(53113),w=n(866),y=n(22046),Z=n(28086);let{Dragger:S}=d.default,P=(0,h.Z)(p.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],C=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),{mode:t}=(0,g.tv)(),[n,d]=(0,a.useState)(0),[h,v]=(0,a.useState)(""),[T,O]=(0,a.useState)([]),[_,z]=(0,a.useState)(!1),[N,R]=(0,a.useState)(""),[F,D]=(0,a.useState)(""),[B,W]=(0,a.useState)(""),[E,J]=(0,a.useState)(""),[U,V]=(0,a.useState)(""),[L,M]=(0,a.useState)(null),[G,H]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://localhost:5000","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)})()},[]),(0,o.jsxs)(u.Z,{sx:{width:"100%",height:"100%",backgroundColor:"light"===t?"rgb(238, 240, 245)":"rgb(33, 33, 33)"},children:[(0,o.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,o.jsxs)(u.Z,{sx:{boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",backgroundColor:"light"===t?"rgb(224, 228, 237)":"rgb(72, 72, 72)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>z(!0),children:[(0,o.jsx)(c.Z,{sx:{marginRight:"10px",fontSize:"30px"}}),"Space"]}),T.map((n,s)=>(0,o.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",backgroundColor:"light"===t?"rgb(255, 255, 255)":"rgb(72, 72, 72)",borderTop:"3px solid rgb(82, 196, 26)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(n.name))},children:[(0,o.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,o.jsx)(l.Z,{sx:{marginRight:"5px"}}),n.name]}),(0,o.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.vector_type}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.owner}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.docs||0}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},s)),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{})]})}),(0,o.jsx)(m.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:_,onClose:()=>z(!1),children:(0,o.jsxs)(p.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,o.jsx)(u.Z,{sx:{width:"100%"},children:(0,o.jsx)(f.Z,{spacing:2,direction:"row",children:k.map((e,t)=>(0,o.jsxs)(P,{sx:{fontWeight:n===t?"bold":"",color:n===t?"#814DDE":""},children:[tR(e.target.value)})]}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===N){x.ZP.error("please input the name");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/space/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:N,vector_type:"Chroma",owner:"keting",desc:"test1"})}),t=await e.json();if(t.success){x.ZP.success("success"),d(1);let e=await fetch("".concat("http://localhost:5000","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)}else x.ZP.error(t.err_msg||"failed")},children:"Next"})]}):1===n?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(u.Z,{sx:{margin:"30px auto"},children:C.map(e=>(0,o.jsxs)(p.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{v(e.type),d(2)},children:[(0,o.jsx)(p.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,o.jsx)(p.Z,{children:e.subTitle})]},e.type))})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,o.jsx)(j.ZP,{placeholder:"Please input the name",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===h?(0,o.jsxs)(o.Fragment,{children:["Web Page URL:",(0,o.jsx)(j.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>D(e.target.value)})]}):"file"===h?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(S,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){M(null),W("");return}M(e.file.originFileObj),W(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,o.jsx)("p",{className:"ant-upload-drag-icon",children:(0,o.jsx)(i.Z,{})}),(0,o.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,o.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,o.jsxs)(o.Fragment,{children:["Text Source(Optional):",(0,o.jsx)(j.ZP,{placeholder:"Please input the text source",onChange:e=>J(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,o.jsx)(w.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,o.jsx)(y.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,o.jsx)(Z.Z,{checked:G,onChange:e=>H(e.target.checked)}),children:"Synch:"})]}),(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,o.jsx)(b.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>d(1),children:"< Back"}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===B){x.ZP.error("Please input the name");return}if("webPage"===h){if(""===F){x.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:B,content:F,doc_type:"URL"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}else if("file"===h){if(!L){x.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",B),e.append("doc_file",L),e.append("doc_type","DOCUMENT");let t=await fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/upload"),{method:"POST",body:e}),n=await t.json();n.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[n.data]})})):x.ZP.error(n.err_msg||"failed")}else{if(""===U){x.ZP.error("Please input the text");return}let e=await fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:B,source:E,content:U,doc_type:"TEXT"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://localhost:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[430,577,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-f80c26174f4684ec.js b/pilot/server/static/_next/static/chunks/app/datastores/page-f80c26174f4684ec.js
new file mode 100644
index 000000000..95eecb278
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/page-f80c26174f4684ec.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{25123:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)((0,a.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4z"}),"AddBoxOutlined");t.Z=i},29382:function(e,t,n){"use strict";var o=n(78997);t.Z=void 0;var s=o(n(76906)),a=n(9268),i=(0,s.default)([(0,a.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,a.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=i},31982:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var o=n(9268),s=n(56008),a=n(86006),i=n(72474),r=n(59534),c=n(25123),l=n(29382),d=n(50157),x=n(21628),p=n(50645),h=n(5737),g=n(78635),u=n(90545),f=n(70900),m=n(11437),j=n(35086),b=n(53113),w=n(866),y=n(22046),Z=n(28086);let{Dragger:S}=d.default,P=(0,p.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],C=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),{mode:t}=(0,g.tv)(),[n,d]=(0,a.useState)(0),[p,v]=(0,a.useState)(""),[T,O]=(0,a.useState)([]),[_,z]=(0,a.useState)(!1),[N,R]=(0,a.useState)(""),[F,D]=(0,a.useState)(""),[B,W]=(0,a.useState)(""),[E,J]=(0,a.useState)(""),[U,V]=(0,a.useState)(""),[L,M]=(0,a.useState)(null),[G,H]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{(async function(){let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)})()},[]),(0,o.jsxs)(u.Z,{sx:{width:"100%",height:"100%",backgroundColor:"light"===t?"rgb(238, 240, 245)":"rgb(33, 33, 33)"},children:[(0,o.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,o.jsxs)(u.Z,{sx:{boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",backgroundColor:"light"===t?"rgb(224, 228, 237)":"rgb(72, 72, 72)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>z(!0),children:[(0,o.jsx)(c.Z,{sx:{marginRight:"10px",fontSize:"30px"}}),"Space"]}),T.map((n,s)=>(0,o.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",backgroundColor:"light"===t?"rgb(255, 255, 255)":"rgb(72, 72, 72)",borderTop:"3px solid rgb(82, 196, 26)",flexShrink:0,flexGrow:0,cursor:"pointer","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(n.name))},children:[(0,o.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,o.jsx)(l.Z,{sx:{marginRight:"5px"}}),n.name]}),(0,o.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.vector_type}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.owner}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,o.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,o.jsx)(u.Z,{sx:{color:"black"},children:n.docs||0}),(0,o.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},s)),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{}),(0,o.jsx)("i",{})]})}),(0,o.jsx)(m.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:_,onClose:()=>z(!1),children:(0,o.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,o.jsx)(u.Z,{sx:{width:"100%"},children:(0,o.jsx)(f.Z,{spacing:2,direction:"row",children:k.map((e,t)=>(0,o.jsxs)(P,{sx:{fontWeight:n===t?"bold":"",color:n===t?"#814DDE":""},children:[tR(e.target.value)})]}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===N){x.ZP.error("please input the name");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/space/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:N,vector_type:"Chroma",owner:"keting",desc:"test1"})}),t=await e.json();if(t.success){x.ZP.success("success"),d(1);let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/space/list"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();t.success&&O(t.data)}else x.ZP.error(t.err_msg||"failed")},children:"Next"})]}):1===n?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(u.Z,{sx:{margin:"30px auto"},children:C.map(e=>(0,o.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{v(e.type),d(2)},children:[(0,o.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,o.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,o.jsx)(j.ZP,{placeholder:"Please input the name",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===p?(0,o.jsxs)(o.Fragment,{children:["Web Page URL:",(0,o.jsx)(j.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>D(e.target.value)})]}):"file"===p?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(S,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){M(null),W("");return}M(e.file.originFileObj),W(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,o.jsx)("p",{className:"ant-upload-drag-icon",children:(0,o.jsx)(i.Z,{})}),(0,o.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,o.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,o.jsxs)(o.Fragment,{children:["Text Source(Optional):",(0,o.jsx)(j.ZP,{placeholder:"Please input the text source",onChange:e=>J(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,o.jsx)(w.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,o.jsx)(y.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,o.jsx)(Z.Z,{checked:G,onChange:e=>H(e.target.checked)}),children:"Synch:"})]}),(0,o.jsxs)(f.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,o.jsx)(b.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>d(1),children:"< Back"}),(0,o.jsx)(b.Z,{variant:"outlined",onClick:async()=>{if(""===B){x.ZP.error("Please input the name");return}if("webPage"===p){if(""===F){x.ZP.error("Please input the Web Page URL");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:B,content:F,doc_type:"URL"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}else if("file"===p){if(!L){x.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",B),e.append("doc_file",L),e.append("doc_type","DOCUMENT");let t=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/upload"),{method:"POST",body:e}),n=await t.json();n.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[n.data]})})):x.ZP.error(n.err_msg||"failed")}else{if(""===U){x.ZP.error("Please input the text");return}let e=await fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/add"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_name:B,source:E,content:U,doc_type:"TEXT"})}),t=await e.json();t.success?(x.ZP.success("success"),z(!1),G&&fetch("".concat("http://120.26.193.159:5000","/knowledge/").concat(N,"/document/sync"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({doc_ids:[t.data]})})):x.ZP.error(t.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}}},function(e){e.O(0,[430,577,86,693,118,672,642,253,769,744],function(){return e(e.s=31982)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/layout-601c7da47d01f9e4.js b/pilot/server/static/_next/static/chunks/app/layout-601c7da47d01f9e4.js
new file mode 100644
index 000000000..ec99acb19
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/layout-601c7da47d01f9e4.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},91541:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return o}});var n=r(9268),i=r(89081),l=r(78915),s=r(86006);let[o,a]=function(){let e=s.createContext(void 0);return[function(){let t=s.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:s,refresh:o}=(0,i.Z)(async()=>await (0,l.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(a,{value:{dialogueList:s,queryDialogueList:r,refreshDialogList:o},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return K}});var l=r(9268);r(97402),r(23517);var s=r(86006),o=r(56008),a=r(35846),d=r.n(a),c=r(20837),u=r(78635),f=r(90545),h=r(22046),x=r(53113),m=r(18818),p=r(4882),v=r(70092),g=r(64579),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),N=r(57931),P=r(66664),_=r(78915),D=()=>{var e;let t=(0,o.usePathname)(),r=(0,o.useSearchParams)(),n=r.get("id"),i=(0,o.useRouter)(),{dialogueList:a,queryDialogueList:D,refreshDialogList:E}=(0,N.Cg)(),{mode:S,setMode:z}=(0,u.tv)(),F=(0,s.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,l.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,s.useEffect)(()=>{(async()=>{await D()})()},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k.Z,{})}),(0,l.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,l.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,l.jsx)(C.Z,{})})]}),(0,l.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,l.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,l.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsx)(h.ZP,{component:"h1",fontWeight:"xl",children:"DB-GPT"})})}),(0,l.jsx)(f.Z,{sx:{px:2},children:(0,l.jsx)(d(),{href:"/",children:(0,l.jsx)(x.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,l.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,l.jsx)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.map(e=>{let s=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,l.jsx)(p.Z,{children:(0,l.jsx)(v.Z,{selected:s,variant:s?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,l.jsx)(g.Z,{children:(0,l.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,l.jsxs)(h.ZP,{fontSize:14,noWrap:!0,children:[(0,l.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,l.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.K)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await E(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,l.jsx)(P.Z,{})})]})})})},e.conv_uid)})})})})}),(0,l.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,l.jsx)("div",{}),(0,l.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,l.jsxs)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,l.jsx)(d(),{href:e.route,children:(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,l.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,l.jsx)(g.Z,{children:e.label})]})})},e.route))})}),(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===S?z("dark"):z("light")},children:[(0,l.jsx)(b.Z,{children:"dark"===S?(0,l.jsx)(Z.Z,{fontSize:"small"}):(0,l.jsx)(w.Z,{fontSize:"small"})}),(0,l.jsx)(g.Z,{children:"Theme"})]})})]})})]})]})})]})},E=r(29720),S=r(41287),z=r(38230);let F=(0,S.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});var H=r(53794),L=r.n(H),T=r(54486),O=r.n(T);let I=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){O().start()},250))}function R(){I>0||(i="stop",clearTimeout(n),O().done())}if(L().events.on("routeChangeStart",J),L().events.on("routeChangeComplete",R),L().events.on("routeChangeError",R),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,l,s,o;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(l=i.classList)||void 0===l||l.remove("dark"):null==n||null===(s=n.current)||void 0===s||null===(o=s.classList)||void 0===o||o.remove("light")}},[n,r]),(0,l.jsxs)("div",{ref:n,className:"h-full",children:[(0,l.jsx)(A,{}),(0,l.jsx)(N.ZP,{children:(0,l.jsx)("div",{className:"contents h-full",children:(0,l.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,l.jsx)(D,{}),(0,l.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var K=function(e){let{children:t}=e;return(0,l.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,l.jsx)("body",{className:"h-full font-sans",children:(0,l.jsx)(E.Z,{theme:F,children:(0,l.jsx)(u.lL,{theme:F,defaultMode:"light",children:(0,l.jsx)(W,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return d},K:function(){return c}});var n=r(21628),i=r(24214);let l=i.Z.create({baseURL:"http://${window.location.hostname}:${window.location.port}"});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=r(84835);let o={"content-type":"application/json"},a=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},c=(e,t)=>{let r=a(t);return l.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},97402:function(){},23517:function(){}},function(e){e.O(0,[180,430,577,562,693,440,672,751,216,253,769,744],function(){return e(e.s=91541)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/layout-686ec2e1c5b2d957.js b/pilot/server/static/_next/static/chunks/app/layout-686ec2e1c5b2d957.js
new file mode 100644
index 000000000..a16d57557
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/layout-686ec2e1c5b2d957.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},91541:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return a}});var n=r(9268),i=r(89081),l=r(78915),s=r(86006);let[a,o]=function(){let e=s.createContext(void 0);return[function(){let t=s.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:s,refresh:a}=(0,i.Z)(async()=>await (0,l.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:r,refreshDialogList:a},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return K}});var l=r(9268);r(97402),r(23517);var s=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(22046),x=r(53113),m=r(18818),p=r(4882),v=r(70092),g=r(64579),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),N=r(57931),P=r(66664),_=r(78915),D=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:D,refreshDialogList:E}=(0,N.Cg)(),{mode:S,setMode:z}=(0,u.tv)(),F=(0,s.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,l.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,s.useEffect)(()=>{(async()=>{await D()})()},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k.Z,{})}),(0,l.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,l.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,l.jsx)(C.Z,{})})]}),(0,l.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,l.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,l.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsx)(h.ZP,{component:"h1",fontWeight:"xl",children:"DB-GPT"})})}),(0,l.jsx)(f.Z,{sx:{px:2},children:(0,l.jsx)(d(),{href:"/",children:(0,l.jsx)(x.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,l.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,l.jsx)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.map(e=>{let s=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,l.jsx)(p.Z,{children:(0,l.jsx)(v.Z,{selected:s,variant:s?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,l.jsx)(g.Z,{children:(0,l.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,l.jsxs)(h.ZP,{fontSize:14,noWrap:!0,children:[(0,l.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,l.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.K)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await E(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,l.jsx)(P.Z,{})})]})})})},e.conv_uid)})})})})}),(0,l.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,l.jsx)("div",{}),(0,l.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,l.jsxs)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,l.jsx)(d(),{href:e.route,children:(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,l.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,l.jsx)(g.Z,{children:e.label})]})})},e.route))})}),(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===S?z("dark"):z("light")},children:[(0,l.jsx)(b.Z,{children:"dark"===S?(0,l.jsx)(Z.Z,{fontSize:"small"}):(0,l.jsx)(w.Z,{fontSize:"small"})}),(0,l.jsx)(g.Z,{children:"Theme"})]})})]})})]})]})})]})},E=r(29720),S=r(41287),z=r(38230);let F=(0,S.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});var H=r(53794),L=r.n(H),T=r(54486),O=r.n(T);let I=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){O().start()},250))}function R(){I>0||(i="stop",clearTimeout(n),O().done())}if(L().events.on("routeChangeStart",J),L().events.on("routeChangeComplete",R),L().events.on("routeChangeError",R),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,l,s,a;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(l=i.classList)||void 0===l||l.remove("dark"):null==n||null===(s=n.current)||void 0===s||null===(a=s.classList)||void 0===a||a.remove("light")}},[n,r]),(0,l.jsxs)("div",{ref:n,className:"h-full",children:[(0,l.jsx)(A,{}),(0,l.jsx)(N.ZP,{children:(0,l.jsx)("div",{className:"contents h-full",children:(0,l.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,l.jsx)(D,{}),(0,l.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var K=function(e){let{children:t}=e;return(0,l.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,l.jsx)("body",{className:"h-full font-sans",children:(0,l.jsx)(E.Z,{theme:F,children:(0,l.jsx)(u.lL,{theme:F,defaultMode:"light",children:(0,l.jsx)(W,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return d},K:function(){return c}});var n=r(21628),i=r(24214);let l=i.Z.create({baseURL:"http://localhost:5000"});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=r(84835);let a={"content-type":"application/json"},o=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},c=(e,t)=>{let r=o(t);return l.post("/api"+e,{body:r,headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},97402:function(){},23517:function(){}},function(e){e.O(0,[180,430,577,562,693,440,672,751,216,253,769,744],function(){return e(e.s=91541)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/layout-c8df6bd2dbefb573.js b/pilot/server/static/_next/static/chunks/app/layout-c8df6bd2dbefb573.js
new file mode 100644
index 000000000..e78be7b9b
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/layout-c8df6bd2dbefb573.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},91541:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return a}});var n=r(9268),i=r(89081),l=r(78915),s=r(86006);let[a,o]=function(){let e=s.createContext(void 0);return[function(){let t=s.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:s,refresh:a}=(0,i.Z)(async()=>await (0,l.T)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:r,refreshDialogList:a},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return K}});var l=r(9268);r(97402),r(23517);var s=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(22046),x=r(53113),m=r(18818),p=r(4882),v=r(70092),g=r(64579),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),N=r(57931),P=r(66664),_=r(78915),D=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:D,refreshDialogList:E}=(0,N.Cg)(),{mode:S,setMode:z}=(0,u.tv)(),F=(0,s.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,l.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,s.useEffect)(()=>{(async()=>{await D()})()},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,l.jsx)("div",{children:(0,l.jsx)(k.Z,{})}),(0,l.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,l.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,l.jsx)(C.Z,{})})]}),(0,l.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,l.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,l.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsx)(h.ZP,{component:"h1",fontWeight:"xl",children:"DB-GPT"})})}),(0,l.jsx)(f.Z,{sx:{px:2},children:(0,l.jsx)(d(),{href:"/",children:(0,l.jsx)(x.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,l.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,l.jsx)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.map(e=>{let s=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,l.jsx)(p.Z,{children:(0,l.jsx)(v.Z,{selected:s,variant:s?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,l.jsx)(g.Z,{children:(0,l.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,l.jsxs)(h.ZP,{fontSize:14,noWrap:!0,children:[(0,l.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,l.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.K)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await E(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,l.jsx)(P.Z,{})})]})})})},e.conv_uid)})})})})}),(0,l.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,l.jsx)("div",{}),(0,l.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,l.jsxs)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,l.jsx)(p.Z,{nested:!0,children:(0,l.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,l.jsx)(d(),{href:e.route,children:(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,l.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,l.jsx)(g.Z,{children:e.label})]})})},e.route))})}),(0,l.jsx)(p.Z,{children:(0,l.jsxs)(v.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===S?z("dark"):z("light")},children:[(0,l.jsx)(b.Z,{children:"dark"===S?(0,l.jsx)(Z.Z,{fontSize:"small"}):(0,l.jsx)(w.Z,{fontSize:"small"})}),(0,l.jsx)(g.Z,{children:"Theme"})]})})]})})]})]})})]})},E=r(29720),S=r(41287),z=r(38230);let F=(0,S.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});var H=r(53794),L=r.n(H),T=r(54486),O=r.n(T);let I=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){O().start()},250))}function R(){I>0||(i="stop",clearTimeout(n),O().done())}if(L().events.on("routeChangeStart",J),L().events.on("routeChangeComplete",R),L().events.on("routeChangeError",R),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,l,s,a;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(l=i.classList)||void 0===l||l.remove("dark"):null==n||null===(s=n.current)||void 0===s||null===(a=s.classList)||void 0===a||a.remove("light")}},[n,r]),(0,l.jsxs)("div",{ref:n,className:"h-full",children:[(0,l.jsx)(A,{}),(0,l.jsx)(N.ZP,{children:(0,l.jsx)("div",{className:"contents h-full",children:(0,l.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,l.jsx)(D,{}),(0,l.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var K=function(e){let{children:t}=e;return(0,l.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,l.jsx)("body",{className:"h-full font-sans",children:(0,l.jsx)(E.Z,{theme:F,children:(0,l.jsx)(u.lL,{theme:F,defaultMode:"light",children:(0,l.jsx)(W,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{T:function(){return d},K:function(){return c}});var n=r(21628),i=r(24214);let l=i.Z.create({baseURL:"http://120.26.193.159:5000"});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=r(84835);let a={"content-type":"application/json"},o=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},c=(e,t)=>{let r=o(t);return l.post("/api"+e,{body:r,headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},97402:function(){},23517:function(){}},function(e){e.O(0,[180,430,577,562,693,440,672,751,216,253,769,744],function(){return e(e.s=91541)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/page-42511314a150846a.js b/pilot/server/static/_next/static/chunks/app/page-42511314a150846a.js
new file mode 100644
index 000000000..930570ff0
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/page-42511314a150846a.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{90545:function(e,r,t){"use strict";t.d(r,{Z:function(){return g}});var o=t(40431),i=t(46750),n=t(86006),a=t(89791),l=t(4323),s=t(51579),c=t(86601),d=t(95887),v=t(9268);let u=["className","component"];var p=t(47327),m=t(98918);let h=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:m}=e,h=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),g=n.forwardRef(function(e,n){let l=(0,d.Z)(t),s=(0,c.Z)(e),{className:g,component:f="div"}=s,y=(0,i.Z)(s,u);return(0,v.jsx)(h,(0,o.Z)({as:f,ref:n,className:(0,a.Z)(g,m?m(p):p),theme:r&&l[r]||l},y))});return g}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var g=h},53113:function(e,r,t){"use strict";var o=t(46750),i=t(40431),n=t(86006),a=t(46319),l=t(47562),s=t(53832),c=t(99179),d=t(50645),v=t(88930),u=t(47093),p=t(326),m=t(94244),h=t(77614),g=t(9268);let f=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled"],y=e=>{let{color:r,disabled:t,focusVisible:o,focusVisibleClassName:i,fullWidth:n,size:a,variant:c,loading:d}=e,v={root:["root",t&&"disabled",o&&"focusVisible",n&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,r&&`color${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`,d&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=(0,l.Z)(v,h.F,{});return o&&i&&(u.root+=` ${i}`),u},x=(0,d.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Z=(0,d.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,r)=>r.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),D=(0,d.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,r)=>r.loadingIndicatorCenter})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=e.variants[r.variant])?void 0:null==(o=t[r.color])?void 0:o.color},r.disabled&&{color:null==(n=e.variants[`${r.variant}Disabled`])?void 0:null==(a=n[r.color])?void 0:a.color})}),b=(0,d.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return[(0,i.Z)({"--Icon-margin":"initial"},"sm"===r.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===r.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===r.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},r.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(t=e.variants[r.variant])?void 0:t[r.color],{"&:hover":null==(o=e.variants[`${r.variant}Hover`])?void 0:o[r.color]},{"&:active":null==(n=e.variants[`${r.variant}Active`])?void 0:n[r.color]},(0,i.Z)({[`&.${h.Z.disabled}`]:null==(a=e.variants[`${r.variant}Disabled`])?void 0:a[r.color]},"center"===r.loadingPosition&&{[`&.${h.Z.loading}`]:{color:"transparent"}})]}),S=n.forwardRef(function(e,r){let t=(0,v.Z)({props:e,name:"JoyButton"}),{children:l,action:s,color:d="primary",variant:h="solid",size:S="md",fullWidth:j=!1,startDecorator:B,endDecorator:I,loading:P=!1,loadingPosition:w="center",loadingIndicator:C,disabled:z}=t,k=(0,o.Z)(t,f),{getColor:N}=(0,u.VT)(h),T=N(e.color,d),R=n.useRef(null),_=(0,c.Z)(R,r),{focusVisible:$,setFocusVisible:F,getRootProps:W}=(0,a.Z)((0,i.Z)({},t,{disabled:z||P,ref:_})),J=null!=C?C:(0,g.jsx)(m.Z,(0,i.Z)({},"context"!==T&&{color:T},{thickness:{sm:2,md:3,lg:4}[S]||3}));n.useImperativeHandle(s,()=>({focusVisible:()=>{var e;F(!0),null==(e=R.current)||e.focus()}}),[F]);let M=(0,i.Z)({},t,{color:T,fullWidth:j,variant:h,size:S,focusVisible:$,loading:P,loadingPosition:w,disabled:z||P}),H=y(M),[O,E]=(0,p.Z)("root",{ref:r,className:H.root,elementType:b,externalForwardedProps:k,getSlotProps:W,ownerState:M}),[L,V]=(0,p.Z)("startDecorator",{className:H.startDecorator,elementType:x,externalForwardedProps:k,ownerState:M}),[A,K]=(0,p.Z)("endDecorator",{className:H.endDecorator,elementType:Z,externalForwardedProps:k,ownerState:M}),[q,G]=(0,p.Z)("loadingIndicatorCenter",{className:H.loadingIndicatorCenter,elementType:D,externalForwardedProps:k,ownerState:M});return(0,g.jsxs)(O,(0,i.Z)({},E,{children:[(B||P&&"start"===w)&&(0,g.jsx)(L,(0,i.Z)({},V,{children:P&&"start"===w?J:B})),l,P&&"center"===w&&(0,g.jsx)(q,(0,i.Z)({},G,{children:J})),(I||P&&"end"===w)&&(0,g.jsx)(A,(0,i.Z)({},K,{children:P&&"end"===w?J:I}))]}))});r.Z=S},77614:function(e,r,t){"use strict";t.d(r,{F:function(){return i}});var o=t(18587);function i(e){return(0,o.d6)("MuiButton",e)}let n=(0,o.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);r.Z=n},22046:function(e,r,t){"use strict";t.d(r,{eu:function(){return x},FR:function(){return y},ZP:function(){return I}});var o=t(46750),i=t(40431),n=t(86006),a=t(53832),l=t(86601),s=t(47562),c=t(50645),d=t(88930),v=t(47093),u=t(326),p=t(18587);function m(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=t(9268);let g=["color","textColor"],f=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant"],y=n.createContext(!1),x=n.createContext(!1),Z=e=>{let{gutterBottom:r,noWrap:t,level:o,color:i,variant:n}=e,l={root:["root",o,r&&"gutterBottom",t&&"noWrap",i&&`color${(0,a.Z)(i)}`,n&&`variant${(0,a.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(l,m,{})},D=(0,c.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),b=(0,c.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,r)=>r.endDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),S=(0,c.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},r.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(r.startDecorator||r.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},r.nesting&&(0,i.Z)({display:"inline-flex"},r.startDecorator&&{verticalAlign:"bottom"})),r.level&&"inherit"!==r.level&&e.typography[r.level],{fontSize:`var(--Typography-fontSize, ${r.level&&"inherit"!==r.level&&null!=(t=null==(o=e.typography[r.level])?void 0:o.fontSize)?t:"inherit"})`},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.color&&"context"!==r.color&&{color:`rgba(${null==(n=e.vars.palette[r.color])?void 0:n.mainChannel} / 1)`},r.variant&&(0,i.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!r.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[r.variant])?void 0:a[r.color]))}),j={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},B=n.forwardRef(function(e,r){let t=(0,d.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:s}=t,c=(0,o.Z)(t,g),p=n.useContext(y),m=n.useContext(x),B=(0,l.Z)((0,i.Z)({},c,{color:s})),{component:I,gutterBottom:P=!1,noWrap:w=!1,level:C="body1",levelMapping:z={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:k,endDecorator:N,startDecorator:T,variant:R}=B,_=(0,o.Z)(B,f),{getColor:$}=(0,v.VT)(R),F=$(e.color,R?null!=a?a:"neutral":a),W=p||m?e.level||"inherit":C,J=I||(p?"span":z[W]||j[W]||"span"),M=(0,i.Z)({},B,{level:W,component:J,color:F,gutterBottom:P,noWrap:w,nesting:p,variant:R}),H=Z(M),O=(0,i.Z)({},_,{component:J}),[E,L]=(0,u.Z)("root",{ref:r,className:H.root,elementType:S,externalForwardedProps:O,ownerState:M}),[V,A]=(0,u.Z)("startDecorator",{className:H.startDecorator,elementType:D,externalForwardedProps:O,ownerState:M}),[K,q]=(0,u.Z)("endDecorator",{className:H.endDecorator,elementType:b,externalForwardedProps:O,ownerState:M});return(0,h.jsx)(y.Provider,{value:!0,children:(0,h.jsxs)(E,(0,i.Z)({},L,{children:[T&&(0,h.jsx)(V,(0,i.Z)({},A,{children:T})),k,N&&(0,h.jsx)(K,(0,i.Z)({},q,{children:N}))]}))})});var I=B},45825:function(e,r,t){Promise.resolve().then(t.bind(t,26925))},26925:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return k}});var o=t(9268),i=t(89081),n=t(86006),a=t(22046),l=t(46750),s=t(40431),c=t(89791),d=t(53832),v=t(47562),u=t(50645),p=t(88930),m=t(18587);function h(e){return(0,m.d6)("MuiDivider",e)}(0,m.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);let g=["className","children","component","inset","orientation","role"],f=e=>{let{orientation:r,inset:t}=e,o={root:["root",r,t&&`inset${(0,d.Z)(t)}`]};return(0,v.Z)(o,h,{})},y=(0,u.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>(0,s.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===r.inset&&{"--_Divider-inset":"0px"},"context"===r.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===r.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===r.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},r.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===r.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===r.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===r.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===r.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===r.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)"})),x=n.forwardRef(function(e,r){let t=(0,p.Z)({props:e,name:"JoyDivider"}),{className:i,children:n,component:a=null!=n?"div":"hr",inset:d,orientation:v="horizontal",role:u="hr"!==a?"separator":void 0}=t,m=(0,l.Z)(t,g),h=(0,s.Z)({},t,{inset:d,role:u,orientation:v,component:a}),x=f(h);return(0,o.jsx)(y,(0,s.Z)({ref:r,as:a,className:(0,c.Z)(x.root,i),ownerState:h,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"},m,{children:n}))});x.muiName="Divider";var Z=t(90545),D=t(77614),b=t(53113),S=t(35086),j=t(53047),B=t(54842),I=t(67830),P=t(19700),w=t(92391),C=t(78915),z=t(56008);function k(){var e;let r=w.z.object({query:w.z.string().min(1)}),t=(0,z.useRouter)(),[l,s]=(0,n.useState)(!1),c=(0,P.cI)({resolver:(0,I.F)(r),defaultValues:{}}),{data:d}=(0,i.Z)(async()=>await (0,C.K)("/v1/chat/dialogue/scenes")),v=async e=>{let{query:r}=e;try{var o,i;s(!0),c.reset();let e=await (0,C.K)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&t.push("/chat?id=".concat(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.conv_uid,"&initMessage=").concat(r))}catch(e){}finally{s(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6 xl:max-w-4xl",children:[(0,o.jsxs)("div",{className:"max-w-xs my-0 mx-auto",children:[(0,o.jsx)(a.ZP,{level:"h3",className:"text-center",children:"DB-GPT"}),(0,o.jsx)(a.ZP,{level:"body1",className:"text-center pt-4",children:"Revolutionizing Database Interactions with Private LLM Technology"})]}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(x,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(Z.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(D.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}}},children:null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(b.Z,{size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var r,o;let i=await (0,C.K)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(o=i.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{c.handleSubmit(v)(e)},children:(0,o.jsx)(S.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(j.ZP,{type:"submit",disabled:l,children:(0,o.jsx)(B.Z,{})}),...c.register("query")})})})]})})}},78915:function(e,r,t){"use strict";t.d(r,{T:function(){return c},K:function(){return d}});var o=t(21628),i=t(24214);let n=i.Z.create({baseURL:"http://${window.location.hostname}:${window.location.port}"});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=t(84835);let l={"content-type":"application/json"},s=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let r={...e};for(let e in r){let t=r[e];"string"==typeof t&&(r[e]=t.trim())}return JSON.stringify(r)},c=(e,r)=>{if(r){let t=Object.keys(r).filter(e=>void 0!==r[e]&&""!==r[e]).map(e=>"".concat(e,"=").concat(r[e])).join("&");t&&(e+="?".concat(t))}return n.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},d=(e,r)=>{let t=s(r);return n.post("/api"+e,{body:t,headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})}},56008:function(e,r,t){e.exports=t(30794)}},function(e){e.O(0,[180,430,577,86,562,259,253,769,744],function(){return e(e.s=45825)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/page-96f2bace1a1ea8be.js b/pilot/server/static/_next/static/chunks/app/page-96f2bace1a1ea8be.js
new file mode 100644
index 000000000..caef62cb5
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/page-96f2bace1a1ea8be.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{90545:function(e,r,t){"use strict";t.d(r,{Z:function(){return g}});var o=t(40431),i=t(46750),n=t(86006),a=t(89791),l=t(4323),s=t(51579),c=t(86601),d=t(95887),v=t(9268);let u=["className","component"];var p=t(47327),m=t(98918);let h=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:m}=e,h=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),g=n.forwardRef(function(e,n){let l=(0,d.Z)(t),s=(0,c.Z)(e),{className:g,component:f="div"}=s,y=(0,i.Z)(s,u);return(0,v.jsx)(h,(0,o.Z)({as:f,ref:n,className:(0,a.Z)(g,m?m(p):p),theme:r&&l[r]||l},y))});return g}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var g=h},53113:function(e,r,t){"use strict";var o=t(46750),i=t(40431),n=t(86006),a=t(46319),l=t(47562),s=t(53832),c=t(99179),d=t(50645),v=t(88930),u=t(47093),p=t(326),m=t(94244),h=t(77614),g=t(9268);let f=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled"],y=e=>{let{color:r,disabled:t,focusVisible:o,focusVisibleClassName:i,fullWidth:n,size:a,variant:c,loading:d}=e,v={root:["root",t&&"disabled",o&&"focusVisible",n&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,r&&`color${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`,d&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=(0,l.Z)(v,h.F,{});return o&&i&&(u.root+=` ${i}`),u},x=(0,d.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Z=(0,d.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,r)=>r.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),D=(0,d.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,r)=>r.loadingIndicatorCenter})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=e.variants[r.variant])?void 0:null==(o=t[r.color])?void 0:o.color},r.disabled&&{color:null==(n=e.variants[`${r.variant}Disabled`])?void 0:null==(a=n[r.color])?void 0:a.color})}),b=(0,d.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return[(0,i.Z)({"--Icon-margin":"initial"},"sm"===r.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===r.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===r.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},r.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(t=e.variants[r.variant])?void 0:t[r.color],{"&:hover":null==(o=e.variants[`${r.variant}Hover`])?void 0:o[r.color]},{"&:active":null==(n=e.variants[`${r.variant}Active`])?void 0:n[r.color]},(0,i.Z)({[`&.${h.Z.disabled}`]:null==(a=e.variants[`${r.variant}Disabled`])?void 0:a[r.color]},"center"===r.loadingPosition&&{[`&.${h.Z.loading}`]:{color:"transparent"}})]}),S=n.forwardRef(function(e,r){let t=(0,v.Z)({props:e,name:"JoyButton"}),{children:l,action:s,color:d="primary",variant:h="solid",size:S="md",fullWidth:j=!1,startDecorator:B,endDecorator:I,loading:P=!1,loadingPosition:C="center",loadingIndicator:z,disabled:w}=t,k=(0,o.Z)(t,f),{getColor:N}=(0,u.VT)(h),T=N(e.color,d),R=n.useRef(null),_=(0,c.Z)(R,r),{focusVisible:F,setFocusVisible:$,getRootProps:W}=(0,a.Z)((0,i.Z)({},t,{disabled:w||P,ref:_})),J=null!=z?z:(0,g.jsx)(m.Z,(0,i.Z)({},"context"!==T&&{color:T},{thickness:{sm:2,md:3,lg:4}[S]||3}));n.useImperativeHandle(s,()=>({focusVisible:()=>{var e;$(!0),null==(e=R.current)||e.focus()}}),[$]);let M=(0,i.Z)({},t,{color:T,fullWidth:j,variant:h,size:S,focusVisible:F,loading:P,loadingPosition:C,disabled:w||P}),H=y(M),[O,E]=(0,p.Z)("root",{ref:r,className:H.root,elementType:b,externalForwardedProps:k,getSlotProps:W,ownerState:M}),[L,V]=(0,p.Z)("startDecorator",{className:H.startDecorator,elementType:x,externalForwardedProps:k,ownerState:M}),[A,K]=(0,p.Z)("endDecorator",{className:H.endDecorator,elementType:Z,externalForwardedProps:k,ownerState:M}),[q,G]=(0,p.Z)("loadingIndicatorCenter",{className:H.loadingIndicatorCenter,elementType:D,externalForwardedProps:k,ownerState:M});return(0,g.jsxs)(O,(0,i.Z)({},E,{children:[(B||P&&"start"===C)&&(0,g.jsx)(L,(0,i.Z)({},V,{children:P&&"start"===C?J:B})),l,P&&"center"===C&&(0,g.jsx)(q,(0,i.Z)({},G,{children:J})),(I||P&&"end"===C)&&(0,g.jsx)(A,(0,i.Z)({},K,{children:P&&"end"===C?J:I}))]}))});r.Z=S},77614:function(e,r,t){"use strict";t.d(r,{F:function(){return i}});var o=t(18587);function i(e){return(0,o.d6)("MuiButton",e)}let n=(0,o.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);r.Z=n},22046:function(e,r,t){"use strict";t.d(r,{eu:function(){return x},FR:function(){return y},ZP:function(){return I}});var o=t(46750),i=t(40431),n=t(86006),a=t(53832),l=t(86601),s=t(47562),c=t(50645),d=t(88930),v=t(47093),u=t(326),p=t(18587);function m(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=t(9268);let g=["color","textColor"],f=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant"],y=n.createContext(!1),x=n.createContext(!1),Z=e=>{let{gutterBottom:r,noWrap:t,level:o,color:i,variant:n}=e,l={root:["root",o,r&&"gutterBottom",t&&"noWrap",i&&`color${(0,a.Z)(i)}`,n&&`variant${(0,a.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(l,m,{})},D=(0,c.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),b=(0,c.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,r)=>r.endDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),S=(0,c.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},r.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(r.startDecorator||r.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},r.nesting&&(0,i.Z)({display:"inline-flex"},r.startDecorator&&{verticalAlign:"bottom"})),r.level&&"inherit"!==r.level&&e.typography[r.level],{fontSize:`var(--Typography-fontSize, ${r.level&&"inherit"!==r.level&&null!=(t=null==(o=e.typography[r.level])?void 0:o.fontSize)?t:"inherit"})`},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.color&&"context"!==r.color&&{color:`rgba(${null==(n=e.vars.palette[r.color])?void 0:n.mainChannel} / 1)`},r.variant&&(0,i.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!r.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[r.variant])?void 0:a[r.color]))}),j={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},B=n.forwardRef(function(e,r){let t=(0,d.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:s}=t,c=(0,o.Z)(t,g),p=n.useContext(y),m=n.useContext(x),B=(0,l.Z)((0,i.Z)({},c,{color:s})),{component:I,gutterBottom:P=!1,noWrap:C=!1,level:z="body1",levelMapping:w={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:k,endDecorator:N,startDecorator:T,variant:R}=B,_=(0,o.Z)(B,f),{getColor:F}=(0,v.VT)(R),$=F(e.color,R?null!=a?a:"neutral":a),W=p||m?e.level||"inherit":z,J=I||(p?"span":w[W]||j[W]||"span"),M=(0,i.Z)({},B,{level:W,component:J,color:$,gutterBottom:P,noWrap:C,nesting:p,variant:R}),H=Z(M),O=(0,i.Z)({},_,{component:J}),[E,L]=(0,u.Z)("root",{ref:r,className:H.root,elementType:S,externalForwardedProps:O,ownerState:M}),[V,A]=(0,u.Z)("startDecorator",{className:H.startDecorator,elementType:D,externalForwardedProps:O,ownerState:M}),[K,q]=(0,u.Z)("endDecorator",{className:H.endDecorator,elementType:b,externalForwardedProps:O,ownerState:M});return(0,h.jsx)(y.Provider,{value:!0,children:(0,h.jsxs)(E,(0,i.Z)({},L,{children:[T&&(0,h.jsx)(V,(0,i.Z)({},A,{children:T})),k,N&&(0,h.jsx)(K,(0,i.Z)({},q,{children:N}))]}))})});var I=B},45825:function(e,r,t){Promise.resolve().then(t.bind(t,26925))},26925:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return k}});var o=t(9268),i=t(89081),n=t(86006),a=t(22046),l=t(46750),s=t(40431),c=t(89791),d=t(53832),v=t(47562),u=t(50645),p=t(88930),m=t(18587);function h(e){return(0,m.d6)("MuiDivider",e)}(0,m.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);let g=["className","children","component","inset","orientation","role"],f=e=>{let{orientation:r,inset:t}=e,o={root:["root",r,t&&`inset${(0,d.Z)(t)}`]};return(0,v.Z)(o,h,{})},y=(0,u.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>(0,s.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===r.inset&&{"--_Divider-inset":"0px"},"context"===r.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===r.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===r.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},r.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===r.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===r.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===r.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===r.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===r.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)"})),x=n.forwardRef(function(e,r){let t=(0,p.Z)({props:e,name:"JoyDivider"}),{className:i,children:n,component:a=null!=n?"div":"hr",inset:d,orientation:v="horizontal",role:u="hr"!==a?"separator":void 0}=t,m=(0,l.Z)(t,g),h=(0,s.Z)({},t,{inset:d,role:u,orientation:v,component:a}),x=f(h);return(0,o.jsx)(y,(0,s.Z)({ref:r,as:a,className:(0,c.Z)(x.root,i),ownerState:h,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"},m,{children:n}))});x.muiName="Divider";var Z=t(90545),D=t(77614),b=t(53113),S=t(35086),j=t(53047),B=t(54842),I=t(67830),P=t(19700),C=t(92391),z=t(78915),w=t(56008);function k(){var e;let r=C.z.object({query:C.z.string().min(1)}),t=(0,w.useRouter)(),[l,s]=(0,n.useState)(!1),c=(0,P.cI)({resolver:(0,I.F)(r),defaultValues:{}}),{data:d}=(0,i.Z)(async()=>await (0,z.K)("/v1/chat/dialogue/scenes")),v=async e=>{let{query:r}=e;try{var o,i;s(!0),c.reset();let e=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&t.push("/chat?id=".concat(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.conv_uid,"&initMessage=").concat(r))}catch(e){}finally{s(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6 xl:max-w-4xl",children:[(0,o.jsxs)("div",{className:"max-w-xs my-0 mx-auto",children:[(0,o.jsx)(a.ZP,{level:"h3",className:"text-center",children:"DB-GPT"}),(0,o.jsx)(a.ZP,{level:"body1",className:"text-center pt-4",children:"Revolutionizing Database Interactions with Private LLM Technology"})]}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(x,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(Z.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(D.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}}},children:null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(b.Z,{size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var r,o;let i=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(o=i.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{c.handleSubmit(v)(e)},children:(0,o.jsx)(S.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(j.ZP,{type:"submit",disabled:l,children:(0,o.jsx)(B.Z,{})}),...c.register("query")})})})]})})}},78915:function(e,r,t){"use strict";t.d(r,{T:function(){return c},K:function(){return d}});var o=t(21628),i=t(24214);let n=i.Z.create({baseURL:"http://localhost:5000"});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=t(84835);let l={"content-type":"application/json"},s=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let r={...e};for(let e in r){let t=r[e];"string"==typeof t&&(r[e]=t.trim())}return JSON.stringify(r)},c=(e,r)=>{if(r){let t=Object.keys(r).filter(e=>void 0!==r[e]&&""!==r[e]).map(e=>"".concat(e,"=").concat(r[e])).join("&");t&&(e+="?".concat(t))}return n.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},d=(e,r)=>{let t=s(r);return n.post("/api"+e,{body:t,headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})}},56008:function(e,r,t){e.exports=t(30794)}},function(e){e.O(0,[180,430,577,86,562,259,253,769,744],function(){return e(e.s=45825)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/page-d905b9e0123b490c.js b/pilot/server/static/_next/static/chunks/app/page-d905b9e0123b490c.js
new file mode 100644
index 000000000..3442db94f
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/page-d905b9e0123b490c.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{90545:function(e,r,t){"use strict";t.d(r,{Z:function(){return g}});var o=t(40431),i=t(46750),n=t(86006),a=t(89791),l=t(4323),s=t(51579),c=t(86601),d=t(95887),v=t(9268);let u=["className","component"];var p=t(47327),m=t(98918);let h=function(e={}){let{themeId:r,defaultTheme:t,defaultClassName:p="MuiBox-root",generateClassName:m}=e,h=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),g=n.forwardRef(function(e,n){let l=(0,d.Z)(t),s=(0,c.Z)(e),{className:g,component:f="div"}=s,y=(0,i.Z)(s,u);return(0,v.jsx)(h,(0,o.Z)({as:f,ref:n,className:(0,a.Z)(g,m?m(p):p),theme:r&&l[r]||l},y))});return g}({defaultTheme:m.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var g=h},53113:function(e,r,t){"use strict";var o=t(46750),i=t(40431),n=t(86006),a=t(46319),l=t(47562),s=t(53832),c=t(99179),d=t(50645),v=t(88930),u=t(47093),p=t(326),m=t(94244),h=t(77614),g=t(9268);let f=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled"],y=e=>{let{color:r,disabled:t,focusVisible:o,focusVisibleClassName:i,fullWidth:n,size:a,variant:c,loading:d}=e,v={root:["root",t&&"disabled",o&&"focusVisible",n&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,r&&`color${(0,s.Z)(r)}`,a&&`size${(0,s.Z)(a)}`,d&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=(0,l.Z)(v,h.F,{});return o&&i&&(u.root+=` ${i}`),u},x=(0,d.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),Z=(0,d.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,r)=>r.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),D=(0,d.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,r)=>r.loadingIndicatorCenter})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=e.variants[r.variant])?void 0:null==(o=t[r.color])?void 0:o.color},r.disabled&&{color:null==(n=e.variants[`${r.variant}Disabled`])?void 0:null==(a=n[r.color])?void 0:a.color})}),b=(0,d.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return[(0,i.Z)({"--Icon-margin":"initial"},"sm"===r.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===r.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===r.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},r.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(t=e.variants[r.variant])?void 0:t[r.color],{"&:hover":null==(o=e.variants[`${r.variant}Hover`])?void 0:o[r.color]},{"&:active":null==(n=e.variants[`${r.variant}Active`])?void 0:n[r.color]},(0,i.Z)({[`&.${h.Z.disabled}`]:null==(a=e.variants[`${r.variant}Disabled`])?void 0:a[r.color]},"center"===r.loadingPosition&&{[`&.${h.Z.loading}`]:{color:"transparent"}})]}),S=n.forwardRef(function(e,r){let t=(0,v.Z)({props:e,name:"JoyButton"}),{children:l,action:s,color:d="primary",variant:h="solid",size:S="md",fullWidth:j=!1,startDecorator:B,endDecorator:I,loading:P=!1,loadingPosition:C="center",loadingIndicator:z,disabled:w}=t,k=(0,o.Z)(t,f),{getColor:N}=(0,u.VT)(h),T=N(e.color,d),R=n.useRef(null),_=(0,c.Z)(R,r),{focusVisible:F,setFocusVisible:$,getRootProps:W}=(0,a.Z)((0,i.Z)({},t,{disabled:w||P,ref:_})),J=null!=z?z:(0,g.jsx)(m.Z,(0,i.Z)({},"context"!==T&&{color:T},{thickness:{sm:2,md:3,lg:4}[S]||3}));n.useImperativeHandle(s,()=>({focusVisible:()=>{var e;$(!0),null==(e=R.current)||e.focus()}}),[$]);let M=(0,i.Z)({},t,{color:T,fullWidth:j,variant:h,size:S,focusVisible:F,loading:P,loadingPosition:C,disabled:w||P}),H=y(M),[O,E]=(0,p.Z)("root",{ref:r,className:H.root,elementType:b,externalForwardedProps:k,getSlotProps:W,ownerState:M}),[L,V]=(0,p.Z)("startDecorator",{className:H.startDecorator,elementType:x,externalForwardedProps:k,ownerState:M}),[A,K]=(0,p.Z)("endDecorator",{className:H.endDecorator,elementType:Z,externalForwardedProps:k,ownerState:M}),[q,G]=(0,p.Z)("loadingIndicatorCenter",{className:H.loadingIndicatorCenter,elementType:D,externalForwardedProps:k,ownerState:M});return(0,g.jsxs)(O,(0,i.Z)({},E,{children:[(B||P&&"start"===C)&&(0,g.jsx)(L,(0,i.Z)({},V,{children:P&&"start"===C?J:B})),l,P&&"center"===C&&(0,g.jsx)(q,(0,i.Z)({},G,{children:J})),(I||P&&"end"===C)&&(0,g.jsx)(A,(0,i.Z)({},K,{children:P&&"end"===C?J:I}))]}))});r.Z=S},77614:function(e,r,t){"use strict";t.d(r,{F:function(){return i}});var o=t(18587);function i(e){return(0,o.d6)("MuiButton",e)}let n=(0,o.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);r.Z=n},22046:function(e,r,t){"use strict";t.d(r,{eu:function(){return x},FR:function(){return y},ZP:function(){return I}});var o=t(46750),i=t(40431),n=t(86006),a=t(53832),l=t(86601),s=t(47562),c=t(50645),d=t(88930),v=t(47093),u=t(326),p=t(18587);function m(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=t(9268);let g=["color","textColor"],f=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant"],y=n.createContext(!1),x=n.createContext(!1),Z=e=>{let{gutterBottom:r,noWrap:t,level:o,color:i,variant:n}=e,l={root:["root",o,r&&"gutterBottom",t&&"noWrap",i&&`color${(0,a.Z)(i)}`,n&&`variant${(0,a.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(l,m,{})},D=(0,c.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,r)=>r.startDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),b=(0,c.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,r)=>r.endDecorator})(({ownerState:e})=>{var r;return(0,i.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(r=e.sx)?void 0:r.alignItems)==="flex-start")&&{marginTop:"2px"})}),S=(0,c.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>{var t,o,n,a;return(0,i.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},r.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(r.startDecorator||r.endDecorator)&&(0,i.Z)({display:"flex",alignItems:"center"},r.nesting&&(0,i.Z)({display:"inline-flex"},r.startDecorator&&{verticalAlign:"bottom"})),r.level&&"inherit"!==r.level&&e.typography[r.level],{fontSize:`var(--Typography-fontSize, ${r.level&&"inherit"!==r.level&&null!=(t=null==(o=e.typography[r.level])?void 0:o.fontSize)?t:"inherit"})`},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.color&&"context"!==r.color&&{color:`rgba(${null==(n=e.vars.palette[r.color])?void 0:n.mainChannel} / 1)`},r.variant&&(0,i.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!r.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[r.variant])?void 0:a[r.color]))}),j={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},B=n.forwardRef(function(e,r){let t=(0,d.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:s}=t,c=(0,o.Z)(t,g),p=n.useContext(y),m=n.useContext(x),B=(0,l.Z)((0,i.Z)({},c,{color:s})),{component:I,gutterBottom:P=!1,noWrap:C=!1,level:z="body1",levelMapping:w={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:k,endDecorator:N,startDecorator:T,variant:R}=B,_=(0,o.Z)(B,f),{getColor:F}=(0,v.VT)(R),$=F(e.color,R?null!=a?a:"neutral":a),W=p||m?e.level||"inherit":z,J=I||(p?"span":w[W]||j[W]||"span"),M=(0,i.Z)({},B,{level:W,component:J,color:$,gutterBottom:P,noWrap:C,nesting:p,variant:R}),H=Z(M),O=(0,i.Z)({},_,{component:J}),[E,L]=(0,u.Z)("root",{ref:r,className:H.root,elementType:S,externalForwardedProps:O,ownerState:M}),[V,A]=(0,u.Z)("startDecorator",{className:H.startDecorator,elementType:D,externalForwardedProps:O,ownerState:M}),[K,q]=(0,u.Z)("endDecorator",{className:H.endDecorator,elementType:b,externalForwardedProps:O,ownerState:M});return(0,h.jsx)(y.Provider,{value:!0,children:(0,h.jsxs)(E,(0,i.Z)({},L,{children:[T&&(0,h.jsx)(V,(0,i.Z)({},A,{children:T})),k,N&&(0,h.jsx)(K,(0,i.Z)({},q,{children:N}))]}))})});var I=B},45825:function(e,r,t){Promise.resolve().then(t.bind(t,26925))},26925:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return k}});var o=t(9268),i=t(89081),n=t(86006),a=t(22046),l=t(46750),s=t(40431),c=t(89791),d=t(53832),v=t(47562),u=t(50645),p=t(88930),m=t(18587);function h(e){return(0,m.d6)("MuiDivider",e)}(0,m.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);let g=["className","children","component","inset","orientation","role"],f=e=>{let{orientation:r,inset:t}=e,o={root:["root",r,t&&`inset${(0,d.Z)(t)}`]};return(0,v.Z)(o,h,{})},y=(0,u.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,r)=>r.root})(({theme:e,ownerState:r})=>(0,s.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===r.inset&&{"--_Divider-inset":"0px"},"context"===r.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===r.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===r.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},r.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===r.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===r.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===r.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===r.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===r.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===r.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===r.orientation?"initial":"var(--Divider-thickness)"})),x=n.forwardRef(function(e,r){let t=(0,p.Z)({props:e,name:"JoyDivider"}),{className:i,children:n,component:a=null!=n?"div":"hr",inset:d,orientation:v="horizontal",role:u="hr"!==a?"separator":void 0}=t,m=(0,l.Z)(t,g),h=(0,s.Z)({},t,{inset:d,role:u,orientation:v,component:a}),x=f(h);return(0,o.jsx)(y,(0,s.Z)({ref:r,as:a,className:(0,c.Z)(x.root,i),ownerState:h,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"},m,{children:n}))});x.muiName="Divider";var Z=t(90545),D=t(77614),b=t(53113),S=t(35086),j=t(53047),B=t(54842),I=t(67830),P=t(19700),C=t(92391),z=t(78915),w=t(56008);function k(){var e;let r=C.z.object({query:C.z.string().min(1)}),t=(0,w.useRouter)(),[l,s]=(0,n.useState)(!1),c=(0,P.cI)({resolver:(0,I.F)(r),defaultValues:{}}),{data:d}=(0,i.Z)(async()=>await (0,z.K)("/v1/chat/dialogue/scenes")),v=async e=>{let{query:r}=e;try{var o,i;s(!0),c.reset();let e=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&t.push("/chat?id=".concat(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.conv_uid,"&initMessage=").concat(r))}catch(e){}finally{s(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6 xl:max-w-4xl",children:[(0,o.jsxs)("div",{className:"max-w-xs my-0 mx-auto",children:[(0,o.jsx)(a.ZP,{level:"h3",className:"text-center",children:"DB-GPT"}),(0,o.jsx)(a.ZP,{level:"body1",className:"text-center pt-4",children:"Revolutionizing Database Interactions with Private LLM Technology"})]}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(x,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(Z.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(D.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}}},children:null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(b.Z,{size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var r,o;let i=await (0,z.K)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(o=i.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{c.handleSubmit(v)(e)},children:(0,o.jsx)(S.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(j.ZP,{type:"submit",disabled:l,children:(0,o.jsx)(B.Z,{})}),...c.register("query")})})})]})})}},78915:function(e,r,t){"use strict";t.d(r,{T:function(){return c},K:function(){return d}});var o=t(21628),i=t(24214);let n=i.Z.create({baseURL:"http://120.26.193.159:5000"});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=t(84835);let l={"content-type":"application/json"},s=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let r={...e};for(let e in r){let t=r[e];"string"==typeof t&&(r[e]=t.trim())}return JSON.stringify(r)},c=(e,r)=>{if(r){let t=Object.keys(r).filter(e=>void 0!==r[e]&&""!==r[e]).map(e=>"".concat(e,"=").concat(r[e])).join("&");t&&(e+="?".concat(t))}return n.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},d=(e,r)=>{let t=s(r);return n.post("/api"+e,{body:t,headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})}},56008:function(e,r,t){e.exports=t(30794)}},function(e){e.O(0,[180,430,577,86,562,259,253,769,744],function(){return e(e.s=45825)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/agents/index.html b/pilot/server/static/agents/index.html
index 12ebe2ad9..1e22a5aa0 100644
--- a/pilot/server/static/agents/index.html
+++ b/pilot/server/static/agents/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/agents/index.txt b/pilot/server/static/agents/index.txt
index 1f46615ad..fb272acb4 100644
--- a/pilot/server/static/agents/index.txt
+++ b/pilot/server/static/agents/index.txt
@@ -1,9 +1,9 @@
1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}]
-0:["esqxweU8ZaWkPpbX1ngPx",[[["",{"children":["agents",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
-4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false}
+0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["agents",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
+4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
-8:I{"id":"4191","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","481:static/chunks/481-55e7d47dd2c74b66.js","718:static/chunks/app/agents/page-14efdc7876dcf19f.js"],"name":"","async":false}
+8:I{"id":"4191","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","481:static/chunks/481-55e7d47dd2c74b66.js","718:static/chunks/app/agents/page-bf26b65bed55ade1.js"],"name":"","async":false}
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","agents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],null],"segment":"agents"},"styles":[]}],"params":{}}],null]
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
diff --git a/pilot/server/static/chat/index.html b/pilot/server/static/chat/index.html
index 97bb3339e..014fde83b 100644
--- a/pilot/server/static/chat/index.html
+++ b/pilot/server/static/chat/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/chat/index.txt b/pilot/server/static/chat/index.txt
index b5e2f653e..fe4edfe05 100644
--- a/pilot/server/static/chat/index.txt
+++ b/pilot/server/static/chat/index.txt
@@ -1,9 +1,9 @@
1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}]
-0:["esqxweU8ZaWkPpbX1ngPx",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
-4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false}
+0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
+4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
-8:I{"id":"59498","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","929:static/chunks/app/chat/page-d3d20e749b98a936.js"],"name":"","async":false}
+8:I{"id":"59498","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-9808572c67f2351c.js","662:static/chunks/662-6f651dffca342bc9.js","929:static/chunks/app/chat/page-c8e22645d6c99448.js"],"name":"","async":false}
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","chat","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chat"},"styles":[]}],"params":{}}],null]
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
diff --git a/pilot/server/static/datastores/documents/chunklist/index.html b/pilot/server/static/datastores/documents/chunklist/index.html
index 2132482be..4bede4f93 100644
--- a/pilot/server/static/datastores/documents/chunklist/index.html
+++ b/pilot/server/static/datastores/documents/chunklist/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/datastores/documents/chunklist/index.txt b/pilot/server/static/datastores/documents/chunklist/index.txt
index e7c2f6b65..adb767936 100644
--- a/pilot/server/static/datastores/documents/chunklist/index.txt
+++ b/pilot/server/static/datastores/documents/chunklist/index.txt
@@ -1,9 +1,9 @@
1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}]
-0:["esqxweU8ZaWkPpbX1ngPx",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
-4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false}
+0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
+4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
-8:I{"id":"26257","chunks":["797:static/chunks/797-d2478b2581e1fdcb.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-8431a38ed9f2e11b.js","55:static/chunks/55-41778c7520ea1334.js","538:static/chunks/app/datastores/documents/chunklist/page-72f7f9cb769de003.js"],"name":"","async":false}
+8:I{"id":"26257","chunks":["430:static/chunks/430-266fcdf5d617a912.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-96bb64772ec3a56d.js","55:static/chunks/55-41778c7520ea1334.js","538:static/chunks/app/datastores/documents/chunklist/page-d24299cdff6d507c.js"],"name":"","async":false}
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children","chunklist","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chunklist"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null]
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
diff --git a/pilot/server/static/datastores/documents/index.html b/pilot/server/static/datastores/documents/index.html
index e01f58325..fd965a764 100644
--- a/pilot/server/static/datastores/documents/index.html
+++ b/pilot/server/static/datastores/documents/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/datastores/documents/index.txt b/pilot/server/static/datastores/documents/index.txt
index 6f2f5168e..72fad0fe8 100644
--- a/pilot/server/static/datastores/documents/index.txt
+++ b/pilot/server/static/datastores/documents/index.txt
@@ -1,9 +1,9 @@
1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}]
-0:["esqxweU8ZaWkPpbX1ngPx",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
-4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false}
+0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
+4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
-8:I{"id":"16692","chunks":["550:static/chunks/925f3d25-1af7259455ef26bd.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","55:static/chunks/55-41778c7520ea1334.js","642:static/chunks/642-df31c252aa27b391.js","470:static/chunks/app/datastores/documents/page-d8e7a09883074ff0.js"],"name":"","async":false}
+8:I{"id":"16692","chunks":["550:static/chunks/925f3d25-1af7259455ef26bd.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","55:static/chunks/55-41778c7520ea1334.js","642:static/chunks/642-df31c252aa27b391.js","470:static/chunks/app/datastores/documents/page-497fcc1c34ff4a13.js"],"name":"","async":false}
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null]
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
diff --git a/pilot/server/static/datastores/index.html b/pilot/server/static/datastores/index.html
index 323db843e..997ef0403 100644
--- a/pilot/server/static/datastores/index.html
+++ b/pilot/server/static/datastores/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/datastores/index.txt b/pilot/server/static/datastores/index.txt
index be542b567..ca88ab883 100644
--- a/pilot/server/static/datastores/index.txt
+++ b/pilot/server/static/datastores/index.txt
@@ -1,9 +1,9 @@
1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}]
-0:["esqxweU8ZaWkPpbX1ngPx",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
-4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false}
+0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
+4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
-8:I{"id":"44323","chunks":["797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","672:static/chunks/672-860e1c1d53658862.js","642:static/chunks/642-df31c252aa27b391.js","43:static/chunks/app/datastores/page-2c82a1b061f2cc3b.js"],"name":"","async":false}
+8:I{"id":"44323","chunks":["430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","693:static/chunks/693-ed79550f78fd681b.js","118:static/chunks/118-46b95fe35f46f1b9.js","672:static/chunks/672-860e1c1d53658862.js","642:static/chunks/642-df31c252aa27b391.js","43:static/chunks/app/datastores/page-f80c26174f4684ec.js"],"name":"","async":false}
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null]
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
diff --git a/pilot/server/static/index.html b/pilot/server/static/index.html
index 6888aae21..219ec054d 100644
--- a/pilot/server/static/index.html
+++ b/pilot/server/static/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/index.txt b/pilot/server/static/index.txt
index c0871215a..7ee8af731 100644
--- a/pilot/server/static/index.txt
+++ b/pilot/server/static/index.txt
@@ -1,9 +1,9 @@
1:HL["/_next/static/css/2d59d2fccc805bbc.css",{"as":"style"}]
-0:["esqxweU8ZaWkPpbX1ngPx",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
-4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-8431a38ed9f2e11b.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-3463461ae68b31ef.js"],"name":"","async":false}
+0:["78-6fvqkDkgeOnUsWIzRd",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2d59d2fccc805bbc.css","precedence":"next"}]],["$L3",null]]]]]
+4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","562:static/chunks/562-967d90db5cfc2e85.js","693:static/chunks/693-ed79550f78fd681b.js","440:static/chunks/440-96bb64772ec3a56d.js","672:static/chunks/672-860e1c1d53658862.js","751:static/chunks/751-9808572c67f2351c.js","216:static/chunks/216-7cd3d510ec0e1384.js","185:static/chunks/app/layout-c8df6bd2dbefb573.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
7:I{"id":"37396","chunks":["272:static/chunks/webpack-b546a9873d86091b.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
-8:I{"id":"26925","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","797:static/chunks/797-d2478b2581e1fdcb.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","931:static/chunks/app/page-3ac84803013d92de.js"],"name":"","async":false}
+8:I{"id":"26925","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","430:static/chunks/430-266fcdf5d617a912.js","577:static/chunks/577-98027453991b6c69.js","86:static/chunks/86-3a20bc6b78835c59.js","562:static/chunks/562-967d90db5cfc2e85.js","259:static/chunks/259-2c3490a9eca2f411.js","931:static/chunks/app/page-d905b9e0123b490c.js"],"name":"","async":false}
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"params":{}}],null]
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]