@axiom-lattice/gateway 8.4.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{a2a-TDZ3TT6H.mjs → a2a-YLKZE5JG.mjs} +6 -4
- package/dist/{a2a-standard-INVCUSAW.mjs → a2a-standard-MD7WNDTP.mjs} +41 -126
- package/dist/a2a-standard-MD7WNDTP.mjs.map +1 -0
- package/dist/chunk-NYYSBNDG.mjs +575 -0
- package/dist/chunk-NYYSBNDG.mjs.map +1 -0
- package/dist/{chunk-W3YH4S6G.mjs → chunk-SIMEG2JT.mjs} +19 -2
- package/dist/chunk-SIMEG2JT.mjs.map +1 -0
- package/dist/embed/{embed-page-AgentDetailSideApp-TQEJK6ZF.js → embed-page-AgentDetailSideApp-6RYNHS5F.js} +1 -1
- package/dist/embed/embed-page-AgentGovernanceWorkbench-UAPXF3SZ.js +1 -0
- package/dist/embed/{embed-page-LangfuseDashboard-7OANGQXY.js → embed-page-LangfuseDashboard-ZYGZNW7P.js} +1 -1
- package/dist/embed/{embed-page-MessageGraph-KJPQWTHE.js → embed-page-MessageGraph-S2P3WACC.js} +1 -1
- package/dist/embed/{embed-page-ReactChart-2CAIM4JD.js → embed-page-ReactChart-I3UZVE4Z.js} +1 -1
- package/dist/embed/{embed-page-SkillFlow-243MXRXC.js → embed-page-SkillFlow-JMIJ46FX.js} +1 -1
- package/dist/embed/{embed-page-TasksSideApp-OA7CULHS.js → embed-page-TasksSideApp-IVFEFLSH.js} +1 -1
- package/dist/embed/{embed-page-ThreadMaintenancePanel-Z4424X3J.js → embed-page-ThreadMaintenancePanel-KQPPAEWJ.js} +1 -1
- package/dist/embed/{embed-page-TopologyRuntimeView-THTCZUS7.js → embed-page-TopologyRuntimeView-XCFQ23HF.js} +1 -1
- package/dist/embed/embed-page-WorkflowAutomationView-UTKCKP75.js +3 -0
- package/dist/embed/embed-page-chunk-5X4MNQAW.js +242 -0
- package/dist/embed/{embed-page-chunk-JMP7EQEF.js → embed-page-chunk-77CQOFKU.js} +1 -1
- package/dist/embed/{embed-page-chunk-RKQJBKN2.js → embed-page-chunk-7VDAOX3D.js} +1 -1
- package/dist/embed/{embed-page-chunk-FZX4A32D.js → embed-page-chunk-MD4U4DHC.js} +1 -1
- package/dist/embed/embed-page-chunk-RANB2CUO.js +3 -0
- package/dist/embed/{embed-page-chunk-L2EGVVJS.js → embed-page-chunk-RVIS6CKE.js} +1 -1
- package/dist/embed/embed-page-chunk-SEOTZ4Q7.js +6829 -0
- package/dist/embed/{embed-page-chunk-W5OP2CZG.js → embed-page-chunk-TCVPYXPL.js} +2 -2
- package/dist/embed/embed-page-chunk-WHGU76CU.js +211 -0
- package/dist/embed/{embed-page-chunk-LDQGH44H.js → embed-page-chunk-ZZFTCBM6.js} +1 -1
- package/dist/embed/embed-page-en-4HSTKY4Q.js +1 -0
- package/dist/embed/embed-page-en-MIVBTEEL.js +1 -0
- package/dist/embed/embed-page-zh-7PJNJJZY.js +1 -0
- package/dist/embed/embed-page-zh-UZ4GPIU7.js +1 -0
- package/dist/embed/embed-page.js +1 -1
- package/dist/embed/mcp-app-page.js +10 -10
- package/dist/index.js +1415 -1265
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +224 -372
- package/dist/index.mjs.map +1 -1
- package/dist/{open-exposure-BPLYUIX6.mjs → open-exposure-HGYT5VFC.mjs} +5 -6
- package/dist/open-exposure-HGYT5VFC.mjs.map +1 -0
- package/package.json +7 -7
- package/dist/a2a-standard-INVCUSAW.mjs.map +0 -1
- package/dist/chunk-OBODBHIS.mjs +0 -230
- package/dist/chunk-OBODBHIS.mjs.map +0 -1
- package/dist/chunk-W3YH4S6G.mjs.map +0 -1
- package/dist/embed/embed-page-AgentGovernanceWorkbench-II2MRGCG.js +0 -1
- package/dist/embed/embed-page-WorkflowAutomationView-YDIDG35E.js +0 -3
- package/dist/embed/embed-page-chunk-7ULTMRM2.js +0 -211
- package/dist/embed/embed-page-chunk-OMN6G52V.js +0 -3
- package/dist/embed/embed-page-chunk-VYS3TAK4.js +0 -242
- package/dist/embed/embed-page-chunk-Z6KWW64I.js +0 -6837
- package/dist/embed/embed-page-en-D4M3DPFT.js +0 -1
- package/dist/embed/embed-page-en-JOTELYAL.js +0 -1
- package/dist/embed/embed-page-zh-BPO6ZSJM.js +0 -1
- package/dist/embed/embed-page-zh-NEXLMDHF.js +0 -1
- package/dist/open-exposure-BPLYUIX6.mjs.map +0 -1
- /package/dist/{a2a-TDZ3TT6H.mjs.map → a2a-YLKZE5JG.mjs.map} +0 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import{f as Nr,h as Lr,j as zr,l as we,o as xt,t as yt}from"./embed-page-chunk-MD4U4DHC.js";import{b as jr,l as Ce}from"./embed-page-chunk-TCVPYXPL.js";import{a as B}from"./embed-page-chunk-QV7QAJ4N.js";import{La as Mr,M as ht,Ma as Ir,N as ae,Na as Fr,O as We,P as Er,Q as Ie,R as A,U as Rr,V as $r,_a as Fe,b as Pr,bb as gt,j as Ar,o as kr}from"./embed-page-chunk-F7TA3LRH.js";import{a as z}from"./embed-page-chunk-R5QL57JJ.js";import{c as Jt,f as y}from"./embed-page-chunk-QBTAJ2YI.js";var Po=Jt(W=>{"use strict";var Z=typeof Symbol=="function"&&Symbol.for,nr=Z?Symbol.for("react.element"):60103,sr=Z?Symbol.for("react.portal"):60106,Et=Z?Symbol.for("react.fragment"):60107,Rt=Z?Symbol.for("react.strict_mode"):60108,$t=Z?Symbol.for("react.profiler"):60114,Mt=Z?Symbol.for("react.provider"):60109,It=Z?Symbol.for("react.context"):60110,ar=Z?Symbol.for("react.async_mode"):60111,Ft=Z?Symbol.for("react.concurrent_mode"):60111,jt=Z?Symbol.for("react.forward_ref"):60112,Nt=Z?Symbol.for("react.suspense"):60113,ws=Z?Symbol.for("react.suspense_list"):60120,Lt=Z?Symbol.for("react.memo"):60115,zt=Z?Symbol.for("react.lazy"):60116,Ss=Z?Symbol.for("react.block"):60121,Ts=Z?Symbol.for("react.fundamental"):60117,Ps=Z?Symbol.for("react.responder"):60118,As=Z?Symbol.for("react.scope"):60119;function de(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case nr:switch(e=e.type,e){case ar:case Ft:case Et:case $t:case Rt:case Nt:return e;default:switch(e=e&&e.$$typeof,e){case It:case jt:case zt:case Lt:case Mt:return e;default:return t}}case sr:return t}}}function To(e){return de(e)===Ft}W.AsyncMode=ar;W.ConcurrentMode=Ft;W.ContextConsumer=It;W.ContextProvider=Mt;W.Element=nr;W.ForwardRef=jt;W.Fragment=Et;W.Lazy=zt;W.Memo=Lt;W.Portal=sr;W.Profiler=$t;W.StrictMode=Rt;W.Suspense=Nt;W.isAsyncMode=function(e){return To(e)||de(e)===ar};W.isConcurrentMode=To;W.isContextConsumer=function(e){return de(e)===It};W.isContextProvider=function(e){return de(e)===Mt};W.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===nr};W.isForwardRef=function(e){return de(e)===jt};W.isFragment=function(e){return de(e)===Et};W.isLazy=function(e){return de(e)===zt};W.isMemo=function(e){return de(e)===Lt};W.isPortal=function(e){return de(e)===sr};W.isProfiler=function(e){return de(e)===$t};W.isStrictMode=function(e){return de(e)===Rt};W.isSuspense=function(e){return de(e)===Nt};W.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Et||e===Ft||e===$t||e===Rt||e===Nt||e===ws||typeof e=="object"&&e!==null&&(e.$$typeof===zt||e.$$typeof===Lt||e.$$typeof===Mt||e.$$typeof===It||e.$$typeof===jt||e.$$typeof===Ts||e.$$typeof===Ps||e.$$typeof===As||e.$$typeof===Ss)};W.typeOf=de});var ko=Jt(($i,Ao)=>{"use strict";Ao.exports=Po()});var jo=Jt((Mi,Fo)=>{"use strict";var ir=ko(),ks={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Es={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Rs={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cr={};cr[ir.ForwardRef]=Rs;cr[ir.Memo]=Mo;function Eo(e){return ir.isMemo(e)?Mo:cr[e.$$typeof]||ks}var $s=Object.defineProperty,Ms=Object.getOwnPropertyNames,Ro=Object.getOwnPropertySymbols,Is=Object.getOwnPropertyDescriptor,Fs=Object.getPrototypeOf,$o=Object.prototype;function Io(e,t,r){if(typeof t!="string"){if($o){var o=Fs(t);o&&o!==$o&&Io(e,o,r)}var n=Ms(t);Ro&&(n=n.concat(Ro(t)));for(var s=Eo(e),a=Eo(t),i=0;i<n.length;++i){var c=n[i];if(!Es[c]&&!(r&&r[c])&&!(a&&a[c])&&!(s&&s[c])){var l=Is(t,c);try{$s(e,c,l)}catch{}}}}return e}Fo.exports=Io});var rs=!1;function os(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ns(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Or=(function(){function e(r){var o=this;this._insertTag=function(n){var s;o.tags.length===0?o.insertionPoint?s=o.insertionPoint.nextSibling:o.prepend?s=o.container.firstChild:s=o.before:s=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,s),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!rs:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ns(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var s=os(n);try{s.insertRule(o,s.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var n;return(n=o.parentNode)==null?void 0:n.removeChild(o)}),this.tags=[],this.ctr=0},e})();var ee="-ms-",nt="-moz-",N="-webkit-",vt="comm",Be="rule",Ue="decl";var Wr="@import";var bt="@keyframes";var Br="@layer";var Ur=Math.abs,je=String.fromCharCode,Dr=Object.assign;function _r(e,t){return K(e,0)^45?(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3):0}function Ct(e){return e.trim()}function Qt(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,r){return e.replace(t,r)}function st(e,t){return e.indexOf(t)}function K(e,t){return e.charCodeAt(t)|0}function Se(e,t,r){return e.slice(t,r)}function oe(e){return e.length}function De(e){return e.length}function _e(e,t){return t.push(e),e}function Zt(e,t){return e.map(t).join("")}var wt=1,Ve=1,Vr=0,ne=0,Y=0,Ge="";function at(e,t,r,o,n,s,a){return{value:e,root:t,parent:r,type:o,props:n,children:s,line:wt,column:Ve,length:a,return:""}}function qe(e,t){return Dr(at("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hr(){return Y}function Gr(){return Y=ne>0?K(Ge,--ne):0,Ve--,Y===10&&(Ve=1,wt--),Y}function se(){return Y=ne<Vr?K(Ge,ne++):0,Ve++,Y===10&&(Ve=1,wt++),Y}function pe(){return K(Ge,ne)}function it(){return ne}function Ke(e,t){return Se(Ge,e,t)}function He(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function St(e){return wt=Ve=1,Vr=oe(Ge=e),ne=0,[]}function Tt(e){return Ge="",e}function Xe(e){return Ct(Ke(ne-1,er(e===91?e+2:e===40?e+1:e)))}function qr(e){for(;(Y=pe())&&Y<33;)se();return He(e)>2||He(Y)>3?"":" "}function Kr(e,t){for(;--t&&se()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Ke(e,it()+(t<6&&pe()==32&&se()==32))}function er(e){for(;se();)switch(Y){case e:return ne;case 34:case 39:e!==34&&e!==39&&er(Y);break;case 40:e===41&&er(e);break;case 92:se();break}return ne}function Xr(e,t){for(;se()&&e+Y!==57;)if(e+Y===84&&pe()===47)break;return"/*"+Ke(t,ne-1)+"*"+je(e===47?e:se())}function Yr(e){for(;!He(pe());)se();return Ke(e,ne)}function Zr(e){return Tt(Pt("",null,null,null,[""],e=St(e),0,[0],e))}function Pt(e,t,r,o,n,s,a,i,c){for(var l=0,p=0,x=a,u=0,w=0,h=0,m=1,d=1,f=1,g=0,T="",j=n,L=s,O=o,v=T;d;)switch(h=g,g=se()){case 40:if(h!=108&&K(v,x-1)==58){st(v+=F(Xe(g),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:v+=Xe(g);break;case 9:case 10:case 13:case 32:v+=qr(h);break;case 92:v+=Kr(it()-1,7);continue;case 47:switch(pe()){case 42:case 47:_e(ss(Xr(se(),it()),t,r),c);break;default:v+="/"}break;case 123*m:i[l++]=oe(v)*f;case 125*m:case 59:case 0:switch(g){case 0:case 125:d=0;case 59+p:f==-1&&(v=F(v,/\f/g,"")),w>0&&oe(v)-x&&_e(w>32?Qr(v+";",o,r,x-1):Qr(F(v," ","")+";",o,r,x-2),c);break;case 59:v+=";";default:if(_e(O=Jr(v,t,r,l,p,n,i,T,j=[],L=[],x),s),g===123)if(p===0)Pt(v,t,O,O,j,s,x,i,L);else switch(u===99&&K(v,3)===110?100:u){case 100:case 108:case 109:case 115:Pt(e,O,O,o&&_e(Jr(e,O,O,0,0,n,i,T,n,j=[],x),L),n,L,x,i,o?j:L);break;default:Pt(v,O,O,O,[""],L,0,i,L)}}l=p=w=0,m=f=1,T=v="",x=a;break;case 58:x=1+oe(v),w=h;default:if(m<1){if(g==123)--m;else if(g==125&&m++==0&&Gr()==125)continue}switch(v+=je(g),g*m){case 38:f=p>0?1:(v+="\f",-1);break;case 44:i[l++]=(oe(v)-1)*f,f=1;break;case 64:pe()===45&&(v+=Xe(se())),u=pe(),p=x=oe(T=v+=Yr(it())),g++;break;case 45:h===45&&oe(v)==2&&(m=0)}}return s}function Jr(e,t,r,o,n,s,a,i,c,l,p){for(var x=n-1,u=n===0?s:[""],w=De(u),h=0,m=0,d=0;h<o;++h)for(var f=0,g=Se(e,x+1,x=Ur(m=a[h])),T=e;f<w;++f)(T=Ct(m>0?u[f]+" "+g:F(g,/&\f/g,u[f])))&&(c[d++]=T);return at(e,t,r,n===0?Be:i,c,l,p)}function ss(e,t,r){return at(e,t,r,vt,je(Hr()),Se(e,2,-2),0)}function Qr(e,t,r,o){return at(e,t,r,Ue,Se(e,0,o),Se(e,o+1,-1),o)}function Ne(e,t){for(var r="",o=De(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function eo(e,t,r,o){switch(e.type){case Br:if(e.children.length)break;case Wr:case Ue:return e.return=e.return||e.value;case vt:return"";case bt:return e.return=e.value+"{"+Ne(e.children,o)+"}";case Be:e.value=e.props.join(",")}return oe(r=Ne(e.children,o))?e.return=e.value+"{"+r+"}":""}function to(e){var t=De(e);return function(r,o,n,s){for(var a="",i=0;i<t;i++)a+=e[i](r,o,n,s)||"";return a}}function ro(e){return function(t){t.root||(t=t.return)&&e(t)}}var tr=function(t){var r=new WeakMap;return function(o){if(r.has(o))return r.get(o);var n=t(o);return r.set(o,n),n}};function oo(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var as=function(t,r,o){for(var n=0,s=0;n=s,s=pe(),n===38&&s===12&&(r[o]=1),!He(s);)se();return Ke(t,ne)},is=function(t,r){var o=-1,n=44;do switch(He(n)){case 0:n===38&&pe()===12&&(r[o]=1),t[o]+=as(ne-1,r,o);break;case 2:t[o]+=Xe(n);break;case 4:if(n===44){t[++o]=pe()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=je(n)}while(n=se());return t},cs=function(t,r){return Tt(is(St(t),r))},no=new WeakMap,ls=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!no.get(o))&&!n){no.set(t,!0);for(var s=[],a=cs(r,s),i=o.props,c=0,l=0;c<a.length;c++)for(var p=0;p<i.length;p++,l++)t.props[l]=s[c]?a[c].replace(/&\f/g,i[p]):i[p]+" "+a[c]}}},ds=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function so(e,t){switch(_r(e,t)){case 5103:return N+"print-"+e+e;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 N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+nt+e+ee+e+e;case 6828:case 4268:return N+e+ee+e+e;case 6165:return N+e+ee+"flex-"+e+e;case 5187:return N+e+F(e,/(\w+).+(:[^]+)/,N+"box-$1$2"+ee+"flex-$1$2")+e;case 5443:return N+e+ee+"flex-item-"+F(e,/flex-|-self/,"")+e;case 4675:return N+e+ee+"flex-line-pack"+F(e,/align-content|flex-|-self/,"")+e;case 5548:return N+e+ee+F(e,"shrink","negative")+e;case 5292:return N+e+ee+F(e,"basis","preferred-size")+e;case 6060:return N+"box-"+F(e,"-grow","")+N+e+ee+F(e,"grow","positive")+e;case 4554:return N+F(e,/([^-])(transform)/g,"$1"+N+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,N+"$1$2")+e;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(oe(e)-1-t>6)switch(K(e,t+1)){case 109:if(K(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+nt+(K(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~st(e,"stretch")?so(F(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(K(e,t+1)!==115)break;case 6444:switch(K(e,oe(e)-3-(~st(e,"!important")&&10))){case 107:return F(e,":",":"+N)+e;case 101:return F(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(K(e,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+ee+"$2box$3")+e}break;case 5936:switch(K(e,t+11)){case 114:return N+e+ee+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+ee+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+ee+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+ee+e+e}return e}var us=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case Ue:t.return=so(t.value,t.length);break;case bt:return Ne([qe(t,{value:F(t.value,"@","@"+N)})],n);case Be:if(t.length)return Zt(t.props,function(s){switch(Qt(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ne([qe(t,{props:[F(s,/:(read-\w+)/,":"+nt+"$1")]})],n);case"::placeholder":return Ne([qe(t,{props:[F(s,/:(plac\w+)/,":"+N+"input-$1")]}),qe(t,{props:[F(s,/:(plac\w+)/,":"+nt+"$1")]}),qe(t,{props:[F(s,/:(plac\w+)/,ee+"input-$1")]})],n)}return""})}},fs=[us],At=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(m){var d=m.getAttribute("data-emotion");d.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=t.stylisPlugins||fs,s={},a,i=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var d=m.getAttribute("data-emotion").split(" "),f=1;f<d.length;f++)s[d[f]]=!0;i.push(m)});var c,l=[ls,ds];{var p,x=[eo,ro(function(m){p.insert(m)})],u=to(l.concat(n,x)),w=function(d){return Ne(Zr(d),u)};c=function(d,f,g,T){p=g,w(d?d+"{"+f.styles+"}":f.styles),T&&(h.inserted[f.name]=!0)}}var h={key:r,sheet:new Or({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return h.sheet.hydrate(i),h};function ao(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var io={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ps=!1,ms=/[A-Z]|^ms/g,hs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fo=function(t){return t.charCodeAt(1)===45},co=function(t){return t!=null&&typeof t!="boolean"},rr=oo(function(e){return fo(e)?e:e.replace(ms,"-$&").toLowerCase()}),lo=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(hs,function(o,n,s){return xe={name:n,styles:s,next:xe},n})}return io[t]!==1&&!fo(t)&&typeof r=="number"&&r!==0?r+"px":r},gs="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ct(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return xe={name:n.name,styles:n.styles,next:xe},n.name;var s=r;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)xe={name:a.name,styles:a.styles,next:xe},a=a.next;var i=s.styles+";";return i}return xs(e,t,r)}case"function":{if(e!==void 0){var c=xe,l=r(e);return xe=c,ct(e,t,l)}break}}var p=r;if(t==null)return p;var x=t[p];return x!==void 0?x:p}function xs(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=ct(e,t,r[n])+";";else for(var s in r){var a=r[s];if(typeof a!="object"){var i=a;t!=null&&t[i]!==void 0?o+=s+"{"+t[i]+"}":co(i)&&(o+=rr(s)+":"+lo(s,i)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&ps)throw new Error(gs);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)co(a[c])&&(o+=rr(s)+":"+lo(s,a[c])+";");else{var l=ct(e,t,a);switch(s){case"animation":case"animationName":{o+=rr(s)+":"+l+";";break}default:o+=s+"{"+l+"}"}}}}return o}var uo=/label:\s*([^\s;{]+)\s*(;|$)/g,xe;function ie(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";xe=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,n+=ct(r,t,s);else{var a=s;n+=a[0]}for(var i=1;i<e.length;i++)if(n+=ct(r,t,e[i]),o){var c=s;n+=c[i]}uo.lastIndex=0;for(var l="",p;(p=uo.exec(n))!==null;)l+="-"+p[1];var x=ao(n)+l;return{name:x,styles:n,next:xe}}var ys=!0;function Te(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(o+=n+" ")}),o}var Ye=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||ys===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},Je=function(t,r,o){Ye(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+n:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function po(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function mo(e,t,r){var o=[],n=Te(e,o,r);return o.length<2?r:n+t(o)}var Le=function(t){var r=At(t);r.sheet.speedy=function(i){this.isSpeedy=i},r.compat=!0;var o=function(){for(var c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];var x=ie(l,r.registered,void 0);return Je(r,x,!1),r.key+"-"+x.name},n=function(){for(var c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];var x=ie(l,r.registered),u="animation-"+x.name;return po(r,{name:x.name,styles:"@keyframes "+u+"{"+x.styles+"}"}),u},s=function(){for(var c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];var x=ie(l,r.registered);po(r,x)},a=function(){for(var c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];return mo(r.registered,o,vs(l))};return{css:o,cx:a,injectGlobal:s,keyframes:n,hydrate:function(c){c.forEach(function(l){r.inserted[l]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Te.bind(null,r.registered),merge:mo.bind(null,r.registered,o)}},vs=function e(t){for(var r="",o=0;o<t.length;o++){var n=t[o];if(n!=null){var s=void 0;switch(typeof n){case"boolean":break;case"object":{if(Array.isArray(n))s=e(n);else{s="";for(var a in n)n[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=n}s&&(r&&(r+=" "),r+=s)}}return r};var ye=Le({key:"css"}),Xa=ye.flush,Ya=ye.hydrate,Ja=ye.cx,Qa=ye.merge,Za=ye.getRegisteredStyles,ei=ye.injectGlobal,ti=ye.keyframes,ri=ye.css,oi=ye.sheet,ho=ye.cache;var go=(function(){function e(){Rr(this,e),Er(this,"_cacheList",[ho])}return $r(e,[{key:"add",value:function(r){var o=this.getCache(r.key);return o||(this._cacheList.push(r),r)}},{key:"delete",value:function(r){this._cacheList=this._cacheList.filter(function(o){return o.key!==r.key})}},{key:"hasCache",value:function(r){return this._cacheList.some(function(o){return o.key===r.key})}},{key:"getCache",value:function(r){return this._cacheList.find(function(o){return o.key===r})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e})();var xo=typeof document<"u",or=function(t,r){return"".concat(t,"-").concat(r)},yo=function(t,r,o,n){var s=n.hashPriority||"high";Ye(t,r,o);var a=".".concat(or(t.key,r.name)),i=s==="low"?":where(".concat(a,")"):a;if(t.inserted[r.name]===void 0){var c="",l=r;do{var p=t.insert(r===l?i:"",l,t.sheet,!0);!xo&&p!==void 0&&(c+=p),l=l.next}while(l!==void 0);if(!xo&&c.length!==0)return c}};var Qe=function(t){return We(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},vo=function e(t){for(var r="",o=0;o<t.length;o++){var n=t[o];if(n!==null){var s=void 0;switch(We(n)){case"boolean":break;case"object":{if(Array.isArray(n))s=e(n);else{s="";for(var a in n)n[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=n}s&&(r&&(r+=" "),r+=s)}}return r},bo=function(t,r,o){var n=[],s=Te(t,n,o);return n.length<2?o:s+r(n)};var bs=function(t,r){return function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];var a=ie(n,t.registered,void 0);return yo(t,a,!1,r),or(t.key,a.name)}},Cs=function(t,r){return function(){for(var o=arguments.length,n=new Array(o),s=0;s<o;s++)n[s]=arguments[s];var a=n.map(function(i){return Qe(i)?r(i):i});return bo(t.registered,r,vo(a))}},kt=function(t,r){var o=bs(t,{hashPriority:r.hashPriority||"high",label:r.label}),n=Cs(t,o);return{css:o,cx:n}};var he=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return ie(r)};var Co="acss";var yr=y(z());var wo=y(z()),So=function(t){return(0,wo.createContext)(t)};var ce=y(z()),Ot=y(z());var lt=y(z()),js=function(t){return t()},No=lt.useInsertionEffect?lt.useInsertionEffect:!1,lr=No||js,dr=No||lt.useLayoutEffect;var Lo=!1,zo=ce.createContext(typeof HTMLElement<"u"?At({key:"css"}):null),Ns=zo.Provider;var Wt=function(t){return(0,Ot.forwardRef)(function(r,o){var n=(0,Ot.useContext)(zo);return t(r,n,o)})},Pe=ce.createContext({});var Ls=function(t,r){if(typeof r=="function"){var o=r(t);return o}return Pr({},t,r)},zs=tr(function(e){return tr(function(t){return Ls(e,t)})}),fr=function(t){var r=ce.useContext(Pe);return t.theme!==r&&(r=zs(r)(t.theme)),ce.createElement(Pe.Provider,{value:r},t.children)};var Bt={}.hasOwnProperty,ur="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Oo=function(t,r){var o={};for(var n in r)Bt.call(r,n)&&(o[n]=r[n]);return o[ur]=t,o},Os=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Ye(r,o,n),lr(function(){return Je(r,o,n)}),null},Ws=Wt(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[ur],s=[o],a="";typeof e.className=="string"?a=Te(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var i=ie(s,void 0,ce.useContext(Pe));a+=t.key+"-"+i.name;var c={};for(var l in e)Bt.call(e,l)&&l!=="css"&&l!==ur&&!Lo&&(c[l]=e[l]);return c.className=a,r&&(c.ref=r),ce.createElement(ce.Fragment,null,ce.createElement(Os,{cache:t,serialized:i,isStringTag:typeof n=="string"}),ce.createElement(n,c))}),Wo=Ws;var Ae=y(z());var Yi=y(jo()),Bo=function(t,r){var o=arguments;if(r==null||!Bt.call(r,"css"))return Ae.createElement.apply(void 0,o);var n=o.length,s=new Array(n);s[0]=Wo,s[1]=Oo(t,r);for(var a=2;a<n;a++)s[a]=o[a];return Ae.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Bo||(Bo={}));var Uo=Wt(function(e,t){var r=e.styles,o=ie([r],void 0,Ae.useContext(Pe)),n=Ae.useRef();return dr(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,c=document.querySelector('style[data-emotion="'+s+" "+o.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(i=!0,c.setAttribute("data-emotion",s),a.hydrate([c])),n.current=[a,i],function(){a.flush()}},[t]),dr(function(){var s=n.current,a=s[0],i=s[1];if(i){s[1]=!1;return}if(o.next!==void 0&&Je(t,o.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",o,a,!1)},[t,o.name]),null});var Do=y(z()),_o=y(B()),Vo=function(t){return function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return(0,Do.memo)(function(s){var a=t();return(0,_o.jsx)(Uo,{styles:ie(o,void 0,A(A({},s),{},{theme:a}))})})}};var Ho=function(t){return function(r){var o=t(r);return function(n){var s=o(n),a=s.styles;return a}}};var ke=y(z()),pr=y(B()),Bs=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],Go=function(t){return(0,ke.memo)(function(r){var o=r.children,n=r.prefix,s=r.speedy,a=r.getStyleManager,i=r.container,c=r.nonce,l=r.insertionPoint,p=r.stylisPlugins,x=r.linters,u=Ie(r,Bs),w=(0,ke.useContext)(t),h=n??w.sheet.key,m=i??w.sheet.container,d=s??w.sheet.isSpeedy,f=(0,ke.useMemo)(function(){var T=!1,j=Le({speedy:d??T,key:h,container:m,nonce:c,insertionPoint:l,stylisPlugins:p});if(typeof global<"u"){var L=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;L&&(j.cache=L.add(j.cache))}return j},[h,d,m,c,l,p]);(0,ke.useEffect)(function(){a?.(f)},[f]);var g=(0,pr.jsx)(t.Provider,{value:f,children:o});return Object.keys(u).length||m?(0,pr.jsx)(kr,A(A({linters:x,container:m},u),{},{children:g})):g})};var dt=y(z());var Jo=y(z());var qo=function(t){var r=t.css,o=t.token;return{buttonDefaultHover:r({backgroundColor:o.colorBgContainer,border:"1px solid ".concat(o.colorBorder),cursor:"pointer",":hover":{color:o.colorPrimaryHover,borderColor:o.colorPrimaryHover},":active":{color:o.colorPrimaryActive,borderColor:o.colorPrimaryActive}})}};var Ko=function(t){return Object.fromEntries(Object.entries(t).map(function(r){var o=ae(r,2),n=o[0],s=o[1];return[n,s.styles]}))};var Ze=function(){var t=Fe.useToken(),r=t.token;return r};var Yo=y(z());var Xo=y(z());var Ee=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}};var mr,Ut=(0,Xo.createContext)({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(mr=Ee("dark"))!==null&&mr!==void 0&&mr.matches?"dark":"light"});var Re=function(){return(0,Yo.useContext)(Ut)};var Qo=function(){var t=Ze(),r=Re(),o=r.appearance,n=r.isDarkMode;return(0,Jo.useMemo)(function(){return Ko(qo({token:t,css:he,appearance:o,isDarkMode:n}))},[t,o,n])};var Zo=y(z());var Dt=function(){var t=Ze(),r=Qo();return(0,Zo.useMemo)(function(){return A(A({},t),{},{stylish:r})},[t,r])};var en=function(t){return A(A({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})};var tn=y(z()),rn=function(){var t=Ze(),r={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return(0,tn.useMemo)(function(){return en(r)},[t])},on=function(t,r){return Object.entries(t).map(function(o){var n=ae(o,2),s=n[0],a=n[1],i=a;return Qe(a)||(i=he(a)),r[s]?"".concat(r[s]," {").concat(i.styles,"}"):""}).join("")};var Us=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],Ds=["prefixCls","iconPrefixCls"],nn=function(t){var r=t.hashPriority,o=t.useTheme,n=t.EmotionContext;return function(s,a){var i=a?.__BABEL_FILE_NAME__,c=!!i;return function(l){var p=o(),x=(0,dt.useContext)(n),u=x.cache,w=kt(u,{hashPriority:a?.hashPriority||r,label:a?.label}),h=w.cx,m=w.css,d=rn(),f=(0,dt.useMemo)(function(){var g;if(s instanceof Function){var T=p.stylish,j=p.appearance,L=p.isDarkMode,O=p.prefixCls,v=p.iconPrefixCls,G=Ie(p,Us),Q=function(_){return on(_,d)};Object.assign(Q,d),g=s({token:G,stylish:T,appearance:j,isDarkMode:L,prefixCls:O,iconPrefixCls:v,cx:h,css:he,responsive:Q},l)}else g=s;return We(g)==="object"&&(Qe(g)?g=m(g):g=Object.fromEntries(Object.entries(g).map(function(ue){var _=ae(ue,2),be=_[0],fe=_[1],tt=c?"".concat(i,"-").concat(be):void 0;return We(fe)==="object"?c?[be,m(fe,"label:".concat(tt))]:[be,m(fe)]:[be,fe]}))),g},[l,p]);return(0,dt.useMemo)(function(){var g=p.prefixCls,T=p.iconPrefixCls,j=Ie(p,Ds);return{styles:f,cx:h,theme:j,prefixCls:g,iconPrefixCls:T}},[f,p])}}};var pt=y(z());var sn=y(B()),hr=function(t){if(t.ThemeProvider)return t.ThemeProvider;var r=t.ThemeContext;return function(o){return(0,sn.jsx)(r.Provider,{value:o.theme,children:o.children})}};var an=fr,_t=Pe;var et=y(z());var cn=y(B()),ln=(0,et.memo)(function(e){var t=e.children,r=e.theme,o=e.prefixCls,n=e.getStaticInstance,s=e.staticInstanceConfig,a=Re(),i=a.appearance,c=a.isDarkMode,l=Mr.useMessage(s?.message),p=ae(l,2),x=p[0],u=p[1],w=Fr.useNotification(s?.notification),h=ae(w,2),m=h[0],d=h[1],f=Ir.useModal(),g=ae(f,2),T=g[0],j=g[1];(0,et.useEffect)(function(){n?.({message:x,modal:T,notification:m})},[]);var L=(0,et.useMemo)(function(){var O=c?Fe.darkAlgorithm:Fe.defaultAlgorithm,v=r;if(typeof r=="function"&&(v=r(i)),!v)return{algorithm:O};var G=v.algorithm?v.algorithm instanceof Array?v.algorithm:[v.algorithm]:[];return A(A({},v),{},{algorithm:v.algorithm?[O].concat(Ar(G)):O})},[r,c]);return(0,cn.jsxs)(ht,{prefixCls:o,theme:L,children:[u,d,j,t]})});ln.displayName="AntdProvider";var dn=ln;var ze=y(z());var fn=y(z());function _s(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,s,a,i=[],c=!0,l=!1;try{if(s=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(o=s.call(r)).done)&&(i.push(o.value),i.length!==t);c=!0);}catch(p){l=!0,n=p}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw n}}return i}}function Vs(e,t){return Hs(e)||_s(e,t)||Gs(e,t)||qs()}function Hs(e){if(Array.isArray(e))return e}function Gs(e,t){if(e){if(typeof e=="string")return un(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return un(e,t)}}function un(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function qs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ks(e,t){var r=t||{},o=r.defaultValue,n=r.value,s=r.onChange,a=r.postState,i=fn.default.useState(function(){return n!==void 0?n:o!==void 0?typeof o=="function"?o():o:typeof e=="function"?e():e}),c=Vs(i,2),l=c[0],p=c[1],x=n!==void 0?n:l;a&&(x=a(x));function u(w){p(w),x!==w&&s&&s(w,x)}return[x,u]}var gr=Ks;var xr=y(z()),Vt=function(t){typeof xr.startTransition=="function"?(0,xr.startTransition)(t):t()};var pn=y(B()),mn=y(B()),$e,Xs=function(t){var r=t.themeMode,o=t.setAppearance,n=t.setBrowserPrefers,s=function(){Vt(function(){Ee("dark").matches?o("dark"):o("light")})},a=function(){Vt(function(){Ee("dark").matches?n("dark"):n("light")})};return(0,ze.useLayoutEffect)(function(){if(r!=="auto"){Vt(function(){o(r)});return}return setTimeout(s,1),$e||($e=Ee("dark")),$e.addEventListener("change",s),function(){$e.removeEventListener("change",s)}},[r]),(0,ze.useLayoutEffect)(function(){return $e||($e=Ee("dark")),$e.addEventListener("change",a),function(){$e.removeEventListener("change",a)}},[]),null},hn=(0,ze.memo)(function(e){var t,r=e.children,o=e.appearance,n=e.defaultAppearance,s=e.onAppearanceChange,a=e.themeMode,i=e.defaultThemeMode,c=e.onThemeModeChange,l=e.useTheme,p=l(),x=p.appearance,u=p.themeMode,w=gr("light",{value:a,defaultValue:i??u,onChange:function(ue){return c?.(ue)}}),h=ae(w,2),m=h[0],d=h[1],f=gr("light",{value:o,defaultValue:n??x,onChange:function(ue){return s?.(ue)}}),g=ae(f,2),T=g[0],j=g[1],L=(0,ze.useState)((t=Ee("dark"))!==null&&t!==void 0&&t.matches?"dark":"light"),O=ae(L,2),v=O[0],G=O[1];return(0,mn.jsxs)(Ut.Provider,{value:{themeMode:m,setThemeMode:d,appearance:T,setAppearance:j,isDarkMode:T==="dark",browserPrefers:v},children:[typeof window<"u"&&(0,pn.jsx)(Xs,{themeMode:m,setAppearance:j,setBrowserPrefers:G}),r]})});hn.displayName="ThemeSwitcher";var gn=hn;var ut=y(z());var xn=y(B()),Ys=["stylish"],Js=function(t){var r=t.children,o=t.customToken,n=t.defaultCustomToken,s=t.customStylish,a=t.prefixCls,i=t.StyledThemeProvider,c=Re(),l=c.appearance,p=c.isDarkMode,x=Dt(),u=x.stylish,w=Ie(x,Ys),h=(0,ut.useMemo)(function(){return n?n instanceof Function?n({token:w,appearance:l,isDarkMode:p}):n:{}},[n,w,l]),m=(0,ut.useMemo)(function(){return o instanceof Function?A(A({},h),o({token:w,appearance:l,isDarkMode:p})):A(A({},h),o)},[h,o,w,l]),d=(0,ut.useMemo)(function(){return s?s({token:A(A({},w),m),stylish:u,appearance:l,isDarkMode:p,css:he}):{}},[s,w,m,u,l]),f=(0,ut.useMemo)(function(){return A(A({},d),u)},[d,u]),g=A(A(A(A({},w),m),{},{stylish:f},c),{},{prefixCls:a});return(0,xn.jsx)(i,{theme:g,children:r})},yn=Js;var ft=y(B()),vn=function(t){var r=t.styledConfig?hr(t.styledConfig):void 0,o=t.StyleEngineContext;return(0,pt.memo)(function(n){var s=n.children,a=n.customToken,i=n.customStylish,c=n.theme,l=n.getStaticInstance,p=n.prefixCls,x=n.staticInstanceConfig,u=n.appearance,w=n.defaultAppearance,h=n.onAppearanceChange,m=n.themeMode,d=n.defaultThemeMode,f=n.onThemeModeChange,g=n.styled,T=(0,pt.useContext)(o),j=T.prefixCls,L=T.StyledThemeContext,O=T.CustomThemeContext,v=(0,pt.useContext)(O),G=g?hr(g):r||an,Q=p||j;return(0,ft.jsx)(o.Provider,{value:{prefixCls:Q,StyledThemeContext:g?.ThemeContext||L||_t,CustomThemeContext:O},children:(0,ft.jsx)(gn,{themeMode:m,defaultThemeMode:d,onThemeModeChange:f,defaultAppearance:w,appearance:u,onAppearanceChange:h,useTheme:t.useTheme,children:(0,ft.jsx)(dn,{prefixCls:Q,staticInstanceConfig:x,theme:c,getStaticInstance:l,children:(0,ft.jsx)(yn,{prefixCls:Q,customToken:a,defaultCustomToken:v,customStylish:i,StyledThemeProvider:G,children:s})})})})})};var Oe=y(z());var bn=function(t){return function(){var r=t.StyleEngineContext,o=(0,Oe.useContext)(r),n=o.StyledThemeContext,s=o.CustomThemeContext,a=o.prefixCls,i=Dt(),c=Re(),l=(0,Oe.useContext)(s),p=(0,Oe.useContext)(n??_t)||{},x=(0,Oe.useContext)(ht.ConfigContext),u=x.iconPrefixCls,w=x.getPrefixCls,h=w(),m=a&&a!=="ant"?a:h,d=(0,Oe.useMemo)(function(){return A(A(A(A({},i),c),l),{},{prefixCls:m,iconPrefixCls:u})},[i,c,l,m,u]);return!p||Object.keys(p).length===0?d:A(A({},p),{},{prefixCls:m,iconPrefixCls:u})}};var Cn=new go;typeof global<"u"&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=Cn);var wn=function(t){var r,o,n,s=A(A({},t),{},{key:(r=t.key)!==null&&r!==void 0?r:"zcss",speedy:(o=t.speedy)!==null&&o!==void 0?o:!1}),a=Le({key:s.key,speedy:s.speedy,container:s.container}),i=So(a),c=Go(i);a.cache=Cn.add(a.cache);var l=(0,yr.createContext)(s.customToken?s.customToken:{}),p=(n=s.styled)===null||n===void 0?void 0:n.ThemeContext,x=(0,yr.createContext)({CustomThemeContext:l,StyledThemeContext:p,prefixCls:s?.prefixCls,iconPrefixCls:s?.iconPrefixCls}),u=bn({StyleEngineContext:x}),w=nn({hashPriority:s.hashPriority,useTheme:u,EmotionContext:i}),h=Vo(u),m=Ho(w),d=vn({styledConfig:s.styled,StyleEngineContext:x,useTheme:u});d.displayName="AntdStyleThemeProvider";var f=kt(a.cache,{hashPriority:s.hashPriority}),g=f.cx,T=a.injectGlobal,j=a.keyframes;return{createStyles:w,createGlobalStyle:h,createStylish:m,css:he,cx:g,keyframes:j,injectGlobal:T,styleManager:a,useTheme:u,StyleProvider:c,ThemeProvider:d}};var ge=wn({key:Co,speedy:!1}),Sn=ge.createStyles,zl=ge.createGlobalStyle,Ol=ge.createStylish,Wl=ge.css,Bl=ge.cx,Ul=ge.keyframes,Dl=ge.injectGlobal,_l=ge.styleManager,Vl=ge.ThemeProvider,Hl=ge.StyleProvider,Gl=ge.useTheme;var C=y(z());var ra=y(z());var Tn={primary:{50:"#f0f4ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},success:"#22c55e",warning:"#f59e0b",error:"#ef4444",info:"#3b82f6",light:{bg:"#fafafa",surface:"rgba(255, 255, 255, 1)",surfaceHover:"#f9fafb",surfaceActive:"#f3f4f6",border:"#e5e7eb",borderHover:"#d1d5db",text:"#111827",textSecondary:"#6b7280",textMuted:"#9ca3af"},dark:{bg:"#0a0a0a",surface:"rgba(23, 23, 23, 0.95)",surfaceHover:"#1f1f1f",surfaceActive:"#262626",border:"#27272a",borderHover:"#3f3f46",text:"#fafafa",textSecondary:"#a1a1aa",textMuted:"#71717a"}},Pn={none:"0",sm:"4px",md:"10px",lg:"16px",xl:"20px",xxl:"28px",xxxl:"32px",full:"9999px"},An={0:"0",1:"4px",2:"8px",3:"12px",4:"16px",5:"20px",6:"24px",8:"32px",10:"40px",12:"48px"},kn={none:"none",sm:"0 1px 2px rgba(0, 0, 0, 0.04)",md:"0 2px 8px rgba(0, 0, 0, 0.06)",lg:"0 4px 12px rgba(0, 0, 0, 0.08)",xl:"0 8px 24px rgba(0, 0, 0, 0.1)"},En={fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',sizes:{xs:{size:"12px",lineHeight:"16px",weight:400},sm:{size:"14px",lineHeight:"20px",weight:400},base:{size:"16px",lineHeight:"24px",weight:400},lg:{size:"18px",lineHeight:"28px",weight:500},xl:{size:"20px",lineHeight:"28px",weight:600},"2xl":{size:"24px",lineHeight:"32px",weight:600}}},Rn={duration:{fast:"150ms",normal:"250ms",slow:"350ms"},easing:{default:"cubic-bezier(0.4, 0, 0.2, 1)",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},I={colors:Tn,radius:Pn,spacing:An,shadows:kn,typography:En,animation:Rn};var mt={token:{colorPrimary:I.colors.primary[500],colorPrimaryHover:I.colors.primary[600],colorPrimaryActive:I.colors.primary[700],colorSuccess:I.colors.success,colorWarning:I.colors.warning,colorError:I.colors.error,colorInfo:I.colors.info,colorText:I.colors.light.text,colorTextSecondary:I.colors.light.textSecondary,colorTextTertiary:I.colors.light.textMuted,colorBgContainer:I.colors.light.surface,colorBgElevated:I.colors.light.surface,colorBgLayout:I.colors.light.bg,colorBorder:I.colors.light.border,colorBorderSecondary:I.colors.light.borderHover,fontFamily:I.typography.fontFamily,fontSize:16,fontSizeSM:14,fontSizeLG:18,lineHeight:1.5,borderRadius:8,borderRadiusLG:12,borderRadiusSM:4,borderRadiusXS:2,boxShadow:I.shadows.md,boxShadowSecondary:I.shadows.lg,boxShadowTertiary:I.shadows.xl,motionDurationFast:I.animation.duration.fast,motionDurationMid:I.animation.duration.normal,motionDurationSlow:I.animation.duration.slow},components:{Card:{borderRadius:12,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.06)"},Button:{borderRadius:8,controlHeight:40,controlHeightLG:44,controlHeightSM:32},Input:{borderRadius:8,controlHeight:40},Modal:{borderRadius:16},Select:{borderRadius:8,controlHeight:40},Tag:{borderRadius:4},Alert:{borderRadius:8},Menu:{borderRadius:8},Dropdown:{borderRadius:8}}},Qs={...mt,token:{...mt.token,colorText:I.colors.dark.text,colorTextSecondary:I.colors.dark.textSecondary,colorTextTertiary:I.colors.dark.textMuted,colorBgContainer:I.colors.dark.surface,colorBgElevated:I.colors.dark.surface,colorBgLayout:I.colors.dark.bg,colorBgMask:"rgba(0, 0, 0, 0.7)",colorBorder:I.colors.dark.border,colorBorderSecondary:I.colors.dark.borderHover},components:{...mt.components,Modal:{...mt.components?.Modal,colorBgElevated:I.colors.dark.surface}}};var{colors:Ql,radius:Zl,spacing:ed,shadows:td,typography:rd,animation:od}=I;var Mn=y(B()),{Text:xd}=gt;var vr=y(B()),{Text:Td}=gt;var Ht=y(z());var In=y(z());var na=y(B());var sa=y(z());var Fn=y(B()),{useToken:Bd}=Fe;var Ud=Sn(({token:e,css:t})=>({surface:t`
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: 720px;
|
|
8
|
+
max-height: min(84vh, 760px);
|
|
9
|
+
background: ${e.colorBgContainer};
|
|
10
|
+
border: 1px solid ${e.colorBorderSecondary};
|
|
11
|
+
border-radius: 16px;
|
|
12
|
+
box-shadow: ${e.boxShadowSecondary};
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
`,closeButton:t`
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 12px;
|
|
17
|
+
right: 12px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
width: 32px;
|
|
22
|
+
height: 32px;
|
|
23
|
+
padding: 0;
|
|
24
|
+
border: none;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
background: transparent;
|
|
27
|
+
color: ${e.colorTextTertiary};
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
transition: background 0.15s, color 0.15s;
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
background: ${e.colorFillSecondary};
|
|
33
|
+
color: ${e.colorText};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:focus-visible {
|
|
37
|
+
outline: 2px solid ${e.colorPrimary};
|
|
38
|
+
outline-offset: 2px;
|
|
39
|
+
}
|
|
40
|
+
`,header:t`
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
padding: 24px 24px 16px;
|
|
43
|
+
text-align: center;
|
|
44
|
+
`,logo:t`
|
|
45
|
+
width: 64px;
|
|
46
|
+
height: 64px;
|
|
47
|
+
background: ${e.colorPrimary};
|
|
48
|
+
border-radius: 16px;
|
|
49
|
+
margin: 0 auto 16px;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
`,title:t`
|
|
54
|
+
margin: 0 0 4px;
|
|
55
|
+
font-size: ${e.fontSizeHeading4}px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
color: ${e.colorText};
|
|
58
|
+
line-height: 1.4;
|
|
59
|
+
`,subtitle:t`
|
|
60
|
+
margin: 0;
|
|
61
|
+
font-size: ${e.fontSize}px;
|
|
62
|
+
color: ${e.colorTextSecondary};
|
|
63
|
+
line-height: 1.5;
|
|
64
|
+
`,toolbar:t`
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
padding: 0 24px 12px;
|
|
70
|
+
`,scrollRegion:t`
|
|
71
|
+
flex: 1 1 auto;
|
|
72
|
+
min-height: 120px;
|
|
73
|
+
max-height: min(52vh, 460px);
|
|
74
|
+
overflow-y: auto;
|
|
75
|
+
overflow-x: hidden;
|
|
76
|
+
padding: 0 24px;
|
|
77
|
+
position: relative;
|
|
78
|
+
|
|
79
|
+
&::-webkit-scrollbar {
|
|
80
|
+
width: 8px;
|
|
81
|
+
}
|
|
82
|
+
&::-webkit-scrollbar-track {
|
|
83
|
+
background: transparent;
|
|
84
|
+
}
|
|
85
|
+
&::-webkit-scrollbar-thumb {
|
|
86
|
+
background: ${e.colorBorder};
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
}
|
|
89
|
+
`,grid:t`
|
|
90
|
+
display: grid;
|
|
91
|
+
gap: ${e.marginSM}px;
|
|
92
|
+
padding-bottom: 4px;
|
|
93
|
+
`,gridOne:t`
|
|
94
|
+
grid-template-columns: minmax(0, 1fr);
|
|
95
|
+
`,gridTwo:t`
|
|
96
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
97
|
+
|
|
98
|
+
@media (max-width: 480px) {
|
|
99
|
+
grid-template-columns: minmax(0, 1fr);
|
|
100
|
+
}
|
|
101
|
+
`,card:t`
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: 12px;
|
|
105
|
+
padding: 12px 14px;
|
|
106
|
+
min-height: 64px;
|
|
107
|
+
width: 100%;
|
|
108
|
+
min-width: 0;
|
|
109
|
+
text-align: left;
|
|
110
|
+
/* A <button> does not inherit the page font by default. */
|
|
111
|
+
font: inherit;
|
|
112
|
+
color: inherit;
|
|
113
|
+
background: ${e.colorBgContainer};
|
|
114
|
+
border: 1px solid ${e.colorBorderSecondary};
|
|
115
|
+
border-radius: 12px;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
transition: border-color 0.15s, background 0.15s;
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
border-color: ${e.colorPrimaryBorder};
|
|
121
|
+
background: ${e.colorFillQuaternary};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:focus-visible {
|
|
125
|
+
outline: 2px solid ${e.colorPrimary};
|
|
126
|
+
outline-offset: 2px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* The border + tint is the whole selected affordance — no check icon. */
|
|
130
|
+
&[aria-pressed="true"] {
|
|
131
|
+
border-color: ${e.colorPrimary};
|
|
132
|
+
background: ${e.colorPrimaryBg};
|
|
133
|
+
}
|
|
134
|
+
`,avatar:t`
|
|
135
|
+
width: 40px;
|
|
136
|
+
height: 40px;
|
|
137
|
+
border-radius: 50%;
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
flex-shrink: 0;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
font-size: ${e.fontSizeLG}px;
|
|
144
|
+
font-weight: 600;
|
|
145
|
+
`,cardBody:t`
|
|
146
|
+
flex: 1;
|
|
147
|
+
min-width: 0;
|
|
148
|
+
`,cardName:t`
|
|
149
|
+
margin: 0;
|
|
150
|
+
font-size: ${e.fontSize}px;
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
line-height: 1.4;
|
|
153
|
+
color: ${e.colorText};
|
|
154
|
+
white-space: nowrap;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
text-overflow: ellipsis;
|
|
157
|
+
`,cardDescription:t`
|
|
158
|
+
margin: 2px 0 0;
|
|
159
|
+
font-size: ${e.fontSizeSM}px;
|
|
160
|
+
line-height: 1.4;
|
|
161
|
+
color: ${e.colorTextTertiary};
|
|
162
|
+
white-space: nowrap;
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
text-overflow: ellipsis;
|
|
165
|
+
`,centeredBody:t`
|
|
166
|
+
flex: 1 1 auto;
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
gap: 12px;
|
|
172
|
+
padding: 48px 24px;
|
|
173
|
+
text-align: center;
|
|
174
|
+
color: ${e.colorTextSecondary};
|
|
175
|
+
`,emptyTitle:t`
|
|
176
|
+
font-size: ${e.fontSizeLG}px;
|
|
177
|
+
font-weight: 600;
|
|
178
|
+
color: ${e.colorText};
|
|
179
|
+
`,footer:t`
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
justify-content: space-between;
|
|
184
|
+
gap: 8px;
|
|
185
|
+
padding: 16px 24px;
|
|
186
|
+
border-top: 1px solid ${e.colorBorderSecondary};
|
|
187
|
+
background: ${e.colorFillQuaternary};
|
|
188
|
+
`,srOnly:t`
|
|
189
|
+
position: absolute;
|
|
190
|
+
width: 1px;
|
|
191
|
+
height: 1px;
|
|
192
|
+
padding: 0;
|
|
193
|
+
margin: -1px;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
clip: rect(0 0 0 0);
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
border: 0;
|
|
198
|
+
`}));var aa=y(z());var jn=y(B());var br=y(z());var Nn=y(B()),Gt=(0,C.createContext)(null),bu=()=>{let e=(0,C.useContext)(Gt);if(!e)throw new Error("useWorkspaceContext must be used within a WorkspaceContextProvider");return e};var Cu=({children:e,workspaceId:t,projectId:r,client:o,isolated:n=!1})=>{let{currentTenant:s,isAuthenticated:a}=we(),i=s?.id||"",{config:c}=yt(),l=Ce(),p=()=>t!==void 0?t:!n&&typeof window<"u"?sessionStorage.getItem("workspaceId"):null,x=()=>r!==void 0?r:!n&&typeof window<"u"?sessionStorage.getItem("projectId"):null,[u,w]=(0,C.useState)(p),[h,m]=(0,C.useState)(x);(0,C.useLayoutEffect)(()=>{o?o.setWorkspaceContext(u||void 0,h||void 0):Nr.setWorkspaceContext(u||void 0,h||void 0)},[u,h,o]);let[d,f]=(0,C.useState)([]),[g,T]=(0,C.useState)([]),[j,L]=(0,C.useState)([]),[O,v]=(0,C.useState)([]),[G,Q]=(0,C.useState)([]),[ue,_]=(0,C.useState)([]),[be,fe]=(0,C.useState)([]),[tt,V]=(0,C.useState)(!1),[Kt,H]=(0,C.useState)(null),R=C.default.useMemo(()=>{let b=a?zr("lattice_token")||c.apiKey||"":c.apiKey||"";return new Lr({baseURL:c.baseURL,apiKey:b,assistantId:"",transport:"sse"},i)},[c.baseURL,c.apiKey,i,a]),rt=(0,C.useCallback)(()=>{v([]),T([]),L([]),Q([]),_([]),fe([]),w(t??null),n||sessionStorage.removeItem("workspaceId"),m(r??null),n||sessionStorage.removeItem("projectId")},[v,T,L,Q,_,fe,w,m,t,r,n]),$=(0,C.useCallback)(()=>{f([]),rt()},[rt,f]);(0,C.useEffect)(()=>{$(),E()},[i]);let E=(0,C.useCallback)(async()=>{V(!0),H(null);try{let b=await R.listWorkspaces();f(b)}catch(b){H(b instanceof Error?b.message:l("chatWorkspace.workspace.loadWorkspacesFailed"))}finally{V(!1)}},[R,l]),M=(0,C.useCallback)(async b=>{let P=b||u;if(!P){T([]),L([]),v([]),Q([]),_([]),fe([]);return}V(!0),H(null);try{let S=await R.listProjects(P),U=re=>re.kind!=="public"&&re.kind!=="training"&&re.kind!=="personal",ot=re=>re.kind==="public"&&!re.id.startsWith(jr),Sr=S.filter(U),Tr=S.filter(ot),ts=new Set([...Sr,...Tr].map(re=>re.id));T(Sr),L(Tr),v(S.filter(re=>ts.has(re.id))),Q(S.filter(re=>re.kind==="training")),_(S.filter(re=>re.kind==="personal")),fe(S.filter(re=>re.kind!=="personal"))}catch(S){H(S instanceof Error?S.message:l("chatWorkspace.workspace.loadProjectsFailed"))}finally{V(!1)}},[R,u,l]);(0,C.useEffect)(()=>{!n&&u&&typeof window<"u"&&sessionStorage.setItem("workspaceId",u)},[u,n]),(0,C.useEffect)(()=>{!n&&h&&typeof window<"u"&&sessionStorage.setItem("projectId",h)},[h,n]),(0,C.useEffect)(()=>{E().catch(b=>{console.warn("Failed to load workspaces:",b)})},[E]),(0,C.useEffect)(()=>{if(d.length>0&&!u){let b=d[0];w(b.id)}},[d,u]);let q=(0,C.useRef)(u);(0,C.useEffect)(()=>{u?M(u):(T([]),L([]),v([]),Q([]),_([]),fe([])),q.current!=null&&q.current!==u&&m(r??null),q.current=u},[u,M]);let me=(0,C.useCallback)(async b=>{V(!0),H(null);try{let P=await R.createWorkspace(b);return await E(),P}catch(P){let S=P instanceof Error?P.message:l("chatWorkspace.workspace.createWorkspaceFailed");throw H(S),P}finally{V(!1)}},[R,E,l]),ve=(0,C.useCallback)(async(b,P)=>{V(!0),H(null);try{let S=await R.updateWorkspace(b,P);return await E(),S}catch(S){let U=S instanceof Error?S.message:l("chatWorkspace.workspace.updateWorkspaceFailed");throw H(U),S}finally{V(!1)}},[R,E,l]),te=(0,C.useCallback)(async b=>{V(!0),H(null);try{await R.deleteWorkspace(b),u===b&&rt(),await E()}catch(P){let S=P instanceof Error?P.message:l("chatWorkspace.workspace.deleteWorkspaceFailed");throw H(S),P}finally{V(!1)}},[R,u,E,l]),le=(0,C.useCallback)(async(b,P)=>{V(!0),H(null);try{let S=await R.createProject(b,P);return await M(b),S}catch(S){let U=S instanceof Error?S.message:l("chatWorkspace.projects.createFailed");throw H(U),S}finally{V(!1)}},[R,M,l]),Me=(0,C.useCallback)(async(b,P,S)=>{V(!0),H(null);try{let U=await R.updateProject(b,P,S);return await M(b),U}catch(U){let ot=U instanceof Error?U.message:l("chatWorkspace.workspace.updateProjectFailed");throw H(ot),U}finally{V(!1)}},[R,M,l]),wr=(0,C.useCallback)(async(b,P)=>{V(!0),H(null);try{await R.deleteProject(b,P),h===P&&m(null),await M(b)}catch(S){let U=S instanceof Error?S.message:l("chatWorkspace.workspace.deleteProjectFailed");throw H(U),S}finally{V(!1)}},[R,h,M,l]),Xt=(0,C.useCallback)(async(b="/",P)=>{if(!u||!h)return[];V(!0),H(null);try{return await R.listPath(u,h,b,P)}catch(S){return H(S instanceof Error?S.message:l("chatWorkspace.workspace.loadFilesFailed")),[]}finally{V(!1)}},[R,u,h,l]),Vn=(0,C.useCallback)(async(b,P)=>{let S=b;return S.startsWith("~/")&&(S=`/${S.slice(2)}`),S.startsWith("/")||(S=`/${S}`),Xt(S,P)},[Xt]),Yt=(0,C.useCallback)(async(b,P,S)=>{if(!u||!h)throw new Error("Workspace and project must be selected before uploading files");V(!0),H(null);try{return await R.uploadFile(u,h,P,b,S)}catch(U){let ot=U instanceof Error?U.message:l("chatWorkspace.workspace.uploadFailed");throw H(ot),U}finally{V(!1)}},[R,u,h,l]),Hn=(0,C.useCallback)(async(b,P,S)=>{let U=b;return U.startsWith("~/")&&(U=`/${U.slice(2)}`),Yt(U,P,S)},[Yt]),Gn=(0,C.useCallback)(async(b,P,S,U)=>{if(!u)throw new Error("Workspace must be selected before uploading files");return R.uploadFile(u,b,S,P,U)},[R,u]),qn=(0,C.useCallback)((b,P)=>!u||!h?"":R.getFileViewUrl(u,h,b,P),[R,u,h]),Kn=(0,C.useCallback)((b,P)=>!u||!h?"":R.getFileDownloadUrl(u,h,b,P),[R,u,h]),Xn=(0,C.useCallback)(async(b,P)=>{if(!u||!h)throw new Error("Workspace and project must be selected");return R.downloadFolder(u,h,b,P)},[R,u,h]),Yn=(0,C.useCallback)(b=>{if(!i||!u||!h)return"";let P=b.replace(/^\/?project\//,"").replace(/^\/+/,"").replace(/\/+$/,"");return`${c.baseURL}/f/${i}/${u}/${h}/${P}`},[i,u,h,c.baseURL]),Jn=(0,C.useCallback)(async(b,P,S)=>{if(!u||!h)throw new Error("Workspace and project must be selected");return R.resources.share({resourcePath:b,assistantId:P,...S})},[R,u,h]),Qn=(0,C.useCallback)(async()=>R.resources.listShares(),[R]),Zn=(0,C.useCallback)(async b=>{await R.resources.unshare(b)},[R]),es={workspaceId:u,projectId:h,workspaces:d,businessProjects:g,publicProjects:j,projects:O,trainingProjects:G,personalProjects:ue,allProjects:be,loading:tt,error:Kt,setWorkspace:w,setProject:m,createWorkspace:me,updateWorkspace:ve,deleteWorkspace:te,createProject:le,updateProject:Me,deleteProject:wr,refreshWorkspaces:E,refreshProjects:M,listPath:Xt,listPathByFolder:Vn,uploadFile:Yt,uploadFileToFolder:Hn,uploadFileToProject:Gn,getFileViewUrl:qn,getFileDownloadUrl:Kn,downloadFolder:Xn,getDirectFileUrl:Yn,shareFile:Jn,listShares:Qn,unshareFile:Zn},ua=d.find(b=>b.id===u)?.name,fa=b=>{m(b.id)};return(0,Nn.jsx)(Gt.Provider,{value:es,children:e})};var k=y(z());var X=y(z());var On=y(B()),Ln=(0,X.createContext)({assistants:[],currentAssistant:null,isLoading:!1,error:null,listAssistants:async()=>{},getAssistant:async()=>{throw new Error("Not implemented")},createAssistant:async()=>{throw new Error("Not implemented")},updateAssistant:async()=>{throw new Error("Not implemented")},deleteAssistant:async()=>{},selectAssistant:async()=>{},clearCurrentAssistant:()=>{},refresh:async()=>{}}),Tu=({children:e,autoLoad:t=!0,initialAssistantId:r=null})=>{let o=xt(r||""),[n,s]=(0,X.useState)({assistants:[],currentAssistant:null,isLoading:!1,error:null}),a=(0,X.useRef)([]);(0,X.useEffect)(()=>{a.current=n.assistants},[n.assistants]);let i=(0,X.useCallback)(async()=>{s(m=>({...m,isLoading:!0,error:null}));try{let m=await o.assistants.list()??[];s(d=>({...d,assistants:m,isLoading:!1,currentAssistant:d.currentAssistant&&m.some(f=>f.id===d.currentAssistant?.id)?d.currentAssistant:d.currentAssistant&&m[0]||null}))}catch(m){s(d=>({...d,isLoading:!1,error:m instanceof Error?m:new Error(String(m))}))}},[o]),c=(0,X.useCallback)(async m=>{s(d=>({...d,isLoading:!0,error:null}));try{let d=await o.assistants.get(m);return s(f=>({...f,assistants:f.assistants.map(g=>g.id===m?d:g),isLoading:!1})),d}catch(d){throw s(f=>({...f,isLoading:!1,error:d instanceof Error?d:new Error(String(d))})),d}},[o]),l=(0,X.useCallback)(async m=>{s(d=>({...d,isLoading:!0,error:null}));try{let d=await o.assistants.create(m);return s(f=>({...f,assistants:[...f.assistants,d],isLoading:!1})),d}catch(d){throw s(f=>({...f,isLoading:!1,error:d instanceof Error?d:new Error(String(d))})),d}},[o]),p=(0,X.useCallback)(async(m,d)=>{s(f=>({...f,isLoading:!0,error:null}));try{let f=await o.assistants.update(m,d);return s(g=>({...g,assistants:g.assistants.map(T=>T.id===m?f:T),currentAssistant:g.currentAssistant?.id===m?f:g.currentAssistant,isLoading:!1})),f}catch(f){throw s(g=>({...g,isLoading:!1,error:f instanceof Error?f:new Error(String(f))})),f}},[o]),x=(0,X.useCallback)(async m=>{s(d=>({...d,isLoading:!0,error:null}));try{await o.assistants.delete(m),s(d=>({...d,assistants:d.assistants.filter(f=>f.id!==m),currentAssistant:d.currentAssistant?.id===m?null:d.currentAssistant,isLoading:!1}))}catch(d){throw s(f=>({...f,isLoading:!1,error:d instanceof Error?d:new Error(String(d))})),d}},[o]),u=(0,X.useCallback)(async m=>{s(d=>({...d,isLoading:!0,error:null}));try{let d=a.current.find(f=>f.id===m);if(d)s(f=>({...f,currentAssistant:d,isLoading:!1}));else{let f=await o.assistants.get(m);s(g=>({...g,assistants:[...g.assistants,f],currentAssistant:f,isLoading:!1}))}}catch(d){throw s(f=>({...f,isLoading:!1,error:d instanceof Error?d:new Error(String(d))})),d}},[o]),w=(0,X.useCallback)(()=>{s(m=>({...m,currentAssistant:null}))},[]),h=(0,X.useCallback)(async()=>{await i()},[i]);return(0,X.useEffect)(()=>{t&&i()},[t,i]),(0,X.useEffect)(()=>{if(console.log("[AssistantContext] selection effect fired",{initialAssistantId:r,assistantsCount:n.assistants.length,currentAssistantId:n.currentAssistant?.id,currentAssistantName:n.currentAssistant?.name}),n.assistants.length>0){let m=n.currentAssistant&&n.assistants.some(d=>d.id===n.currentAssistant?.id);if(console.log("[AssistantContext] isCurrentAssistantValid:",m,"initialAssistantId:",r),!m)if(r){let d=n.assistants.find(f=>f.id===r);console.log("[AssistantContext] find result for",r,":",d?.id??"NOT FOUND"),d?s(f=>({...f,currentAssistant:d})):(console.warn(`[AssistantContext] initialAssistantId "${r}" not found in assistant list, falling back to first assistant`,`
|
|
199
|
+
assistants:`,n.assistants.map(f=>({id:f.id,name:f.name}))),s(f=>({...f,currentAssistant:f.assistants[0]})))}else s(d=>({...d,currentAssistant:d.assistants[0]}))}},[r,n.assistants,n.currentAssistant]),(0,On.jsx)(Ln.Provider,{value:{...n,listAssistants:i,getAssistant:c,createAssistant:l,updateAssistant:p,deleteAssistant:x,selectAssistant:u,clearCurrentAssistant:w,refresh:h},children:e})},zn=()=>{let e=(0,X.useContext)(Ln);if(!e)throw new Error("useAssistantContext must be used within an AssistantContextProvider");return e};var Un=y(B()),Cr=(0,k.createContext)(null);function qt(e,t){return{id:e.id,label:t||e.metadata?.label||new Date(e.createdAt).toLocaleString(),createdAt:e.createdAt?.toString(),updatedAt:e.updatedAt?.toString()}}function Wn(e){return e?{label:e}:{}}var ia="lattice_active_thread";function Bn(e,t){return`${ia}:${e}:${t}`}function ca(e,t){if(typeof window>"u")return null;try{return window.sessionStorage.getItem(Bn(e,t))}catch{return null}}function la(e,t,r){if(!(typeof window>"u"))try{window.sessionStorage.setItem(Bn(e,t),r)}catch{}}function $u(e){let t=e.replace(/```attachments[\s\S]*?```/g,"").trim();return t?t.length<=15?t:t.slice(0,15)+"...":""}var Mu=({children:e})=>{let{currentAssistant:t}=zn(),r=t?.id||null,o=yt(),n=xt(r||""),[s,a]=(0,k.useState)([]),[i,c]=(0,k.useState)(null),[l,p]=(0,k.useState)(null),[x,u]=(0,k.useState)(!1),[w,h]=(0,k.useState)(null),[m,d]=(0,k.useState)({}),f=(0,k.useRef)(null),g=(0,k.useRef)(null),T=(0,k.useRef)(!1),j=(0,k.useRef)(0),L=(0,k.useRef)(n);(0,k.useEffect)(()=>{L.current=n},[n]);let O=(0,k.useContext)(Gt),v=`${O?.workspaceId??""}:${O?.projectId??""}`,G=(0,k.useCallback)(async($=!1)=>{let E=L.current;if(!r||!E.assistantId){j.current+=1,a([]),u(!1),T.current=!1,f.current=null;return}if(!$&&T.current&&f.current===r)return;let M=++j.current;T.current=!0,u(!0),h(null);try{let q=await E.threads.list();if(M!==j.current)return;let ve=q.sort((te,le)=>{let Me=new Date(te.updatedAt).getTime();return new Date(le.updatedAt).getTime()-Me}).map(te=>qt(te));if(ve.length===0)try{let te=await E.threads.create({metadata:Wn()});if(M!==j.current)return;let le=qt(te);a([le]),c(le.id)}catch(te){if(M!==j.current)return;let le=te instanceof Error?te:new Error(String(te));h(le),console.error("Failed to create initial thread:",le),a([])}else{a(ve);let te=ca(r,v);c(le=>le&&ve.some(Me=>Me.id===le)?le:te&&ve.some(Me=>Me.id===te)?te:ve[0].id)}p(r),f.current=r}catch(q){if(M!==j.current)return;let me=q instanceof Error?q:new Error(String(q));h(me),console.error("Failed to load threads:",me)}finally{M===j.current&&(u(!1),T.current=!1)}},[r,v]);(0,k.useEffect)(()=>{let $=L.current,M=g.current!==r;r&&$.assistantId===r?(M&&(c(null),a([]),p(null),g.current=r),f.current!==r&&G()):(c(null),a([]),p(null),f.current=null,g.current=null)},[r,G]);let Q=(0,k.useRef)(v);(0,k.useEffect)(()=>{let $=L.current;!r||!$.assistantId||Q.current!==v&&(Q.current=v,c(null),p(null),f.current=null,G())},[v,r,G]),(0,k.useEffect)(()=>{!r||!i||la(r,v,i)},[r,v,i]);let ue=(0,k.useMemo)(()=>!r||!i||l!==r?null:s.find($=>$.id===i)||null,[r,i,s,l]),_=(0,k.useCallback)($=>{c($?$.id:null)},[]),be=(0,k.useCallback)($=>{s.find(M=>M.id===$)&&c($)},[s]),fe=(0,k.useCallback)(async($,E)=>{if(!r||!n.assistantId)throw new Error("No assistant selected");u(!0),h(null);try{let M=await n.threads.create({metadata:Wn($),...E??{}}),q=qt(M,$);return await G(),c(q.id),q}catch(M){let q=M instanceof Error?M:new Error(String(M));throw h(q),q}finally{u(!1)}},[r,n,G]),tt=(0,k.useCallback)(async()=>{if(!r||!n.assistantId)return[];u(!0),h(null);try{let M=(await n.threads.list()).sort((q,me)=>{let ve=new Date(q.updatedAt).getTime();return new Date(me.updatedAt).getTime()-ve}).map(q=>qt(q));return a(M),M}catch($){let E=$ instanceof Error?$:new Error(String($));return h(E),s}finally{u(!1)}},[r,n,s]),V=(0,k.useCallback)(async $=>{if(!r||!n.assistantId)throw new Error("No assistant selected");h(null);try{let M=(await n.threads.get($.id)).metadata||{};await n.threads.update($.id,{metadata:{...M,label:$.label}}),a(q=>q.map(me=>me.id===$.id?{...me,label:$.label}:me))}catch(E){let M=E instanceof Error?E:new Error(String(E));throw h(M),M}},[r,n]),Kt=(0,k.useCallback)($=>s.find(E=>E.id===$)||null,[s]),H=(0,k.useCallback)(async $=>{if(!r||!n.assistantId)throw new Error("No assistant selected");u(!0),h(null);try{await n.threads.delete($),await G(!0),c(E=>E===$?null:E)}catch(E){let M=E instanceof Error?E:new Error(String(E));throw h(M),M}finally{u(!1)}},[r,n,G]),R=(0,k.useCallback)(()=>{c(null)},[]),rt=(0,k.useCallback)($=>{d(E=>({...E,...$}))},[]);return(0,Un.jsx)(Cr.Provider,{value:{assistantId:r,thread:ue,threadId:i,threads:s,isLoading:x,error:w,setThread:_,selectThread:be,createThread:fe,listThreads:tt,updateThread:V,getThreadById:Kt,deleteThread:H,clearThread:R,refresh:G,customRunConfig:m,updateCustomRunConfig:rt},children:e})},Iu=()=>{let e=(0,k.useContext)(Cr);if(!e)throw new Error("useConversationContext must be used within a ConversationContextProvider");return e},Fu=()=>(0,k.useContext)(Cr);var D=y(z()),_n=y(B()),J=()=>{throw new Error("ChatUIContextProvider not found")},Dn=(0,D.createContext)({detailVisible:!1,setDetailVisible:J,detailSize:"large",setDetailSize:J,detailSelectedCard:null,setDetailSelectedCard:J,openDetail:J,closeDetail:J,toolsVisible:!1,setToolsVisible:J,toggleTools:J,toolSelectedCard:null,setToolSelectedCard:J,openTools:J,closeTools:J,sideAppVisible:!1,setSideAppVisible:J,sideAppSize:"large",setSideAppSize:J,sideAppSelectedCard:null,setSideAppSelectedCard:J,openSideApp:J,closeSideApp:J,menuCollapsed:void 0,setMenuCollapsed:J,openContentApp:J,closeContentApp:J,contentAppVisible:!1,setcontentAppVisible:J,contentAppSelectedCard:null,setContentAppSelectedCard:J}),Lu=({children:e,defaultMenuCollapsed:t})=>{let[r,o]=(0,D.useState)(!1),[n,s]=(0,D.useState)(!1),[a,i]=(0,D.useState)("large"),[c,l]=(0,D.useState)(null),[p,x]=(0,D.useState)(!1),[u,w]=(0,D.useState)(null),[h,m]=(0,D.useState)(null),[d,f]=(0,D.useState)(t??void 0),g=(0,D.useCallback)(_=>{l(_),o(!0)},[]),T=(0,D.useCallback)(()=>{l(null),o(!1)},[]),j=(0,D.useCallback)(_=>{w(_),x(!0)},[]),L=(0,D.useCallback)(()=>{w(null),x(!1)},[]),O=(0,D.useCallback)(_=>{g(_)},[g]),v=(0,D.useCallback)(_=>{m(_),s(!0)},[]),G=(0,D.useCallback)(()=>{T()},[T]),Q=(0,D.useCallback)(()=>{m(null),s(!1)},[]),ue=(0,D.useCallback)(()=>{x(_=>!_)},[]);return(0,_n.jsx)(Dn.Provider,{value:{detailVisible:r,setDetailVisible:o,detailSize:a,setDetailSize:i,detailSelectedCard:c,setDetailSelectedCard:l,openDetail:g,closeDetail:T,toolsVisible:p,setToolsVisible:x,toggleTools:ue,toolSelectedCard:u,setToolSelectedCard:w,openTools:j,closeTools:L,sideAppVisible:r,setSideAppVisible:o,sideAppSize:a,setSideAppSize:i,sideAppSelectedCard:c,setSideAppSelectedCard:l,openSideApp:O,closeSideApp:G,openContentApp:v,closeContentApp:Q,menuCollapsed:d,setMenuCollapsed:f,contentAppVisible:n,setcontentAppVisible:s,contentAppSelectedCard:h,setContentAppSelectedCard:m},children:e})},zu=()=>(0,D.useContext)(Dn);export{Ln as a,Tu as b,zn as c,Tn as d,Pn as e,I as f,Sn as g,Gt as h,bu as i,Cu as j,Cr as k,$u as l,Mu as m,Iu as n,Fu as o,Lu as p,zu as q};
|
|
200
|
+
/*! Bundled license information:
|
|
201
|
+
|
|
202
|
+
react-is/cjs/react-is.production.min.js:
|
|
203
|
+
(** @license React v16.13.1
|
|
204
|
+
* react-is.production.min.js
|
|
205
|
+
*
|
|
206
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the MIT license found in the
|
|
209
|
+
* LICENSE file in the root directory of this source tree.
|
|
210
|
+
*)
|
|
211
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{X as ye,Y as be,c as he}from"./embed-page-chunk-SEOTZ4Q7.js";import{a as ce,c as ue,m as ge,n as O,q as Ae}from"./embed-page-chunk-WHGU76CU.js";import{g as ie,k as pe,n as le,s as me}from"./embed-page-chunk-MD4U4DHC.js";import{B as fe,ca as J}from"./embed-page-chunk-F7ZUYG42.js";import{a as C,f as U,g as D,h as $,l as q,o as se,p as de}from"./embed-page-chunk-TCVPYXPL.js";import{a as N}from"./embed-page-chunk-QV7QAJ4N.js";import{i as Z,j as Ne,k as Oe,l as je,m as Fe}from"./embed-page-chunk-34RWKVD7.js";import{Ja as ae,M as oe}from"./embed-page-chunk-F7TA3LRH.js";import{a as re}from"./embed-page-chunk-R5QL57JJ.js";import{c as L,f as _}from"./embed-page-chunk-QBTAJ2YI.js";var Pe=L(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.default=void 0;var st={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},Vt=z.default=st});var We=L(G=>{"use strict";var dt=Ne().default;Object.defineProperty(G,"__esModule",{value:!0});G.default=void 0;var _e=dt(Oe()),pt=je(),lt=(0,_e.default)((0,_e.default)({},pt.commonLocale),{},{locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",week:"\u5468",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA",yearFormat:"YYYY\u5E74",cellDateFormat:"D",monthBeforeYear:!1}),Jt=G.default=lt});var ee=L(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.default=void 0;var ct={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},en=K.default=ct});var te=L(X=>{"use strict";var Le=Z().default;Object.defineProperty(X,"__esModule",{value:!0});X.default=void 0;var ut=Le(We()),mt=Le(ee()),xe={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},ut.default),timePickerLocale:Object.assign({},mt.default)};xe.lang.ok="\u786E\u5B9A";var nn=X.default=xe});var ve=L(Q=>{"use strict";var ft=Z().default;Object.defineProperty(Q,"__esModule",{value:!0});Q.default=void 0;var gt=ft(te()),on=Q.default=gt.default});var Me=L(Y=>{"use strict";var V=Z().default;Object.defineProperty(Y,"__esModule",{value:!0});Y.default=void 0;var At=V(Pe()),ht=V(ve()),yt=V(te()),bt=V(ee()),w="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",Ct={locale:"zh-cn",Pagination:At.default,DatePicker:yt.default,TimePicker:bt.default,Calendar:ht.default,global:{placeholder:"\u8BF7\u9009\u62E9",close:"\u5173\u95ED"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckAll:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",emptyText:"\u6682\u65E0\u6570\u636E",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",deselectAll:"\u53D6\u6D88\u5168\u9009",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"},ColorPicker:{presetEmpty:"\u6682\u65E0",transparent:"\u65E0\u8272",singleColor:"\u5355\u8272",gradientColor:"\u6E10\u53D8\u8272"}},sn=Y.default=Ct});var Ue=L((pn,qe)=>{"use strict";qe.exports=Me()});var A=_(re());var y=class extends Error{code;retryable;status;constructor(t,n,r,i){super(n),this.name="AgentWebAppRuntimeClientError",this.code=t,this.retryable=r,this.status=i}};function x(){return new y("STREAM_FAILED","Stream failed",!0)}var He=new Set(["WEB_APP_NOT_FOUND","WEB_APP_DISABLED","USER_ID_REQUIRED","INVALID_USER_ID","PROJECT_NOT_ALLOWED","PROJECT_SELECTOR_DISABLED","MODEL_NOT_ALLOWED","FEATURE_DISABLED","THREAD_NOT_FOUND","STREAM_CONFLICT","STREAM_FAILED","INVALID_REQUEST","INTERNAL_ERROR"]);function v(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function T(e,t){return Object.keys(e).length===t.length&&t.every(r=>r in e)}function Be(e){return v(e)&&T(e,["code","message","retryable"])&&typeof e.code=="string"&&He.has(e.code)&&typeof e.message=="string"&&typeof e.retryable=="boolean"}function ze(e){if(!v(e))return!1;let t=e.data===void 0?["id","type","prompt"]:["id","type","prompt","data"];return T(e,t)&&typeof e.id=="string"&&typeof e.type=="string"&&typeof e.prompt=="string"&&(e.data===void 0||v(e.data))}var Ge=new Set([C.HUMAN,C.AI,C.TOOL,C.INTERRUPT,C.MESSAGE_COMPLETED,C.MESSAGE_FAILED,C.THREAD_IDLE]);function Ke(e,t){let n;try{n=JSON.parse(e)}catch{throw x()}if(!v(n)||typeof n.type!="string")throw x();if(Ge.has(n.type)||n.type==="error"&&v(n.data)&&!v(n.error)){let r=$(n,t);return r.length===0?[]:r}switch(n.type){case"message.delta":if(T(n,["type","text"])&&typeof n.text=="string")return[n];break;case"message.completed":if(T(n,["type","messageId"])&&typeof n.messageId=="string")return[n];break;case"tool.started":if(T(n,["type","id","name"])&&typeof n.id=="string"&&typeof n.name=="string")return[n];break;case"tool.completed":if(T(n,["type","id"])&&typeof n.id=="string")return[n];break;case"interrupt.created":if(T(n,["type","interrupt"])&&ze(n.interrupt))return[n];break;case"genui.render":if(T(n,["type","block"])&&U(n.block))return[n];break;case"error":if(T(n,["type","error"])&&Be(n.error))return[n];break;case"stream.completed":if(T(n,["type"]))return[n];break}throw x()}function Xe(e){return e instanceof Error&&e.name==="AbortError"}async function Ce(e,t){let n=D({allowGenUI:!0,allowInterrupts:!0}),r=e.getReader(),i=new TextDecoder,o="",a=!1,s=!1;try{for(;!a;){let d;try{d=await r.read()}catch(l){if(Xe(l))return;throw x()}d.done&&(s=!0);try{o+=i.decode(d.value,{stream:!d.done})}catch{throw x()}let h=o.split(/\r?\n\r?\n/);o=d.done?"":h.pop()??"";for(let l of h){let g=l.split(/\r?\n/).filter(f=>f==="data"||f.startsWith("data:")).map(f=>f==="data"?"":f.slice(5).replace(/^ /,""));if(g.length!==0){for(let f of Ke(g.join(`
|
|
2
2
|
`),n))if(await t(f),a=f.type==="stream.completed",a)break;if(a)break}}if(d.done)break}if(!a)throw x()}finally{if(!s)try{await r.cancel()}catch{}r.releaseLock()}}var Qe=new Set(["WEB_APP_NOT_FOUND","WEB_APP_DISABLED","USER_ID_REQUIRED","INVALID_USER_ID","PROJECT_NOT_ALLOWED","PROJECT_SELECTOR_DISABLED","MODEL_NOT_ALLOWED","FEATURE_DISABLED","THREAD_NOT_FOUND","STREAM_CONFLICT","STREAM_FAILED","RUN_CANCEL_UNAVAILABLE","RUN_CANCEL_STORE_UNAVAILABLE","INVALID_REQUEST","INTERNAL_ERROR"]);function c(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function b(e,t,n=[]){let r=Object.keys(e);return t.every(i=>i in e)&&r.every(i=>t.includes(i)||n.includes(i))}function p(e){return typeof e=="string"}function j(e){if(!c(e)||!b(e,["id","projectId","createdAt","updatedAt"],["label"])||!p(e.id)||!p(e.projectId)||e.label!==void 0&&!p(e.label)||!p(e.createdAt)||!p(e.updatedAt))return;let t=new Date(e.createdAt),n=new Date(e.updatedAt);if(!(Number.isNaN(t.getTime())||Number.isNaN(n.getTime())))return{id:e.id,projectId:e.projectId,...e.label===void 0?{}:{label:e.label},createdAt:t,updatedAt:n}}function we(e){if(!c(e)||e.success!==!1||!c(e.error))return!1;let t=e.error;return b(e,["success","error"])&&b(t,["code","message","retryable"])&&typeof t.code=="string"&&Qe.has(t.code)&&typeof t.message=="string"&&typeof t.retryable=="boolean"}function Ve(e){if(!c(e))return!1;let t=["projectSelector","modelSelector","threadManagement","attachments","hitl","genUI"];return b(e,t,["files"])&&t.every(n=>typeof e[n]=="boolean")&&(e.files===void 0||typeof e.files=="boolean")}function Ye(e){return Array.isArray(e)&&e.length<=6&&e.every(t=>c(t)&&b(t,["label","text"])&&p(t.label)&&t.label.length>=1&&t.label.length<=40&&p(t.text)&&t.text.length>=1&&t.text.length<=500)}function Je(e){return c(e)&&b(e,[],["title","welcomeMessage","primaryColor","quickPrompts"])&&(e.title===void 0||p(e.title))&&(e.welcomeMessage===void 0||p(e.welcomeMessage))&&(e.primaryColor===void 0||p(e.primaryColor))&&(e.quickPrompts===void 0||Ye(e.quickPrompts))}function Ze(e){if(!c(e)||!b(e,["webApp","projects","models"],["thread"])||!c(e.webApp))return;let t=e.webApp;if(!b(t,["id","name","assistant","defaultProjectId","features","appearance","identityAssurance"],["description","defaultModelKey"])||!p(t.id)||!p(t.name)||!p(t.defaultProjectId)||t.description!==void 0&&!p(t.description)||t.defaultModelKey!==void 0&&!p(t.defaultModelKey)||t.identityAssurance!=="unverified"||!c(t.assistant)||!b(t.assistant,["id","name"],["description"])||!p(t.assistant.id)||!p(t.assistant.name)||t.assistant.description!==void 0&&!p(t.assistant.description)||!Ve(t.features)||!Je(t.appearance)||!Array.isArray(e.projects)||!e.projects.every(r=>c(r)&&b(r,["id","name"])&&p(r.id)&&p(r.name))||!Array.isArray(e.models)||!e.models.every(r=>c(r)&&b(r,["key","label"])&&p(r.key)&&p(r.label)))return;let n=e.thread===void 0?void 0:j(e.thread);if(!(e.thread!==void 0&&!n))return{...e,...n?{thread:n}:{}}}function et(e){if(!c(e)||!b(e,["records","total"])||!Array.isArray(e.records)||typeof e.total!="number")return;let t=e.records.map(j);return t.every(n=>n!==void 0)?{records:t,total:e.total}:void 0}function tt(e){return c(e)&&p(e.id)&&(e.role==="human"||e.role==="ai")&&(e.content===void 0||p(e.content)||Array.isArray(e.content)&&e.content.every(t=>U(t)!==void 0))}function nt(e){return c(e)&&b(e,["messages"])&&Array.isArray(e.messages)&&e.messages.every(tt)?e:void 0}function rt(e){return c(e)&&b(e,["ref","name","mimeType","size"])&&p(e.ref)&&p(e.name)&&p(e.mimeType)&&typeof e.size=="number"?e:void 0}function Ee(e,t){return n=>c(n)&&b(n,e)&&t(n)?n:void 0}function ot(e){let t=c(e.payload)?e.payload:{},n=typeof t.prompt=="string"?t.prompt:typeof t.message=="string"?t.message:"Input required";return{id:e.interruptId,type:e.type,prompt:n,...c(t.data)?{data:t.data}:{}}}var F=class{constructor(t){this.options=t;this.baseUrl=`${t.gatewayUrl.replace(/\/+$/,"")}/api/web-apps/${encodeURIComponent(t.webAppId)}/runtime`,this.fetchImplementation=t.fetch??globalThis.fetch.bind(globalThis),this.translate=t.translate}baseUrl;fetchImplementation;translate;async bootstrap(t={},n){return this.request("bootstrap",Ze,{query:t,signal:n})}async listThreads(t={},n){return this.request("threads",et,{query:t,signal:n})}async createThread(t={},n){return this.request("threads",j,{method:"POST",body:t,signal:n})}async updateThread(t,n,r){return this.request(`threads/${encodeURIComponent(t)}`,j,{method:"PATCH",body:n,signal:r})}async deleteThread(t,n={},r){await this.request(`threads/${encodeURIComponent(t)}`,Ee(["id"],i=>p(i.id)),{method:"DELETE",query:n,signal:r})}async getMessages(t,n={},r){return this.request(`threads/${encodeURIComponent(t)}/messages`,nt,{query:n,signal:r})}async streamMessage(t,n,r,i){return this.streamRequest(`threads/${encodeURIComponent(t)}/messages/stream`,n,r,i)}async resumeInterrupt(t,n,r,i,o){return this.streamRequest(`threads/${encodeURIComponent(t)}/interrupts/${encodeURIComponent(n)}/resume`,r,i,o)}async streamRequest(t,n,r,i){let o;try{o=await this.fetchRequest(t,{method:"POST",body:n,signal:i})}catch(a){throw Re(a)||a instanceof y?a:new y("STREAM_FAILED",this.translate?.("integration.error.streamFailed")??"Stream failed",!0)}if(o.ok||await this.throwResponseError(o),!o.body||!o.headers.get("content-type")?.toLowerCase().includes("text/event-stream")){if(o.body)try{await o.body.cancel()}catch{}throw new y("STREAM_FAILED",this.translate?.("integration.error.streamFailed")??"Stream failed",!0,o.status)}await Ce(o.body,r)}async commandsRunStart(t,n,r,i={},o){return this.request(`api/assistants/${encodeURIComponent(t)}/threads/${encodeURIComponent(n)}/commands`,a=>c(a)&&typeof a.messageId=="string"?{messageId:a.messageId}:void 0,{method:"POST",query:i,body:{command:"run.start",args:r},signal:o})}async commandsRespond(t,n,r,i={},o){return this.request(`api/assistants/${encodeURIComponent(t)}/threads/${encodeURIComponent(n)}/commands`,a=>{if(!c(a)||typeof a.messageId!="string"||typeof a.interruptId!="string")return;let s=typeof a.accepted=="boolean"?a.accepted:void 0,d=typeof a.commandId=="string"?a.commandId:void 0;return{messageId:a.messageId,interruptId:a.interruptId,...s===void 0?{}:{accepted:s},...d===void 0?{}:{commandId:d}}},{method:"POST",query:i,body:{command:"input.respond",args:r},signal:o})}async getThreadStatus(t,n,r={},i){return this.request(`api/assistants/${encodeURIComponent(t)}/threads/${encodeURIComponent(n)}/status`,o=>c(o)&&typeof o.status=="string"&&typeof o.pendingMessages=="number"&&Array.isArray(o.interrupts)?{status:o.status,pendingMessages:o.pendingMessages,interrupts:o.interrupts.map(a=>ot(a))}:void 0,{query:r,signal:i})}async streamThreadEvents(t,n,r,i,o){let a=await this.fetchRequest(`api/assistants/${encodeURIComponent(t)}/threads/${encodeURIComponent(n)}/stream/events`,{method:"POST",query:{projectId:r.projectId,modelKey:r.modelKey},body:{channels:["messages","tools","input","lifecycle"],...r.since?{since:r.since}:{}},signal:o});if(a.ok||await this.throwResponseError(a),!a.body)throw new y("STREAM_FAILED",this.translate?.("integration.error.streamFailed")??"Stream failed",!0,a.status);let s=D({allowInterrupts:r.allowInterrupts??!0,allowGenUI:r.allowGenUI??!1}),d=new TextDecoder,h="",l=!1,g=a.body.getReader();try{for(;;){let{done:f,value:S}=await g.read();if(f)break;h+=d.decode(S,{stream:!0});let k=h.indexOf(`
|
|
3
3
|
|
|
4
4
|
`);for(;k>=0;){let W=h.slice(0,k);h=h.slice(k+2),k=h.indexOf(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./embed-page-chunk-QBTAJ2YI.js";var t={"chat.empty.createConversationFirst":"Please create a conversation first","chat.empty.question":"Ready to turn data into insightful charts in seconds?","chat.empty.welcomePrefix":"Hey","chat.empty.userFallback":"there","chat.sender.attachments":"Attachments","chat.sender.uploadFile":"Upload File","chat.sender.rootDirectory":"Root Directory","chat.sender.filesUploading":"Files are still uploading...","chat.sender.uploadFailed":"{{name}} file upload failed.{{reason}}","chat.sender.fileTooLarge":"File must be smaller than {{max}}MB! {{name}} is too large.","chat.sender.thinking":"{{frame}} Thinking...","chat.sender.messagesWaiting":"{{count}} messages waiting...","chat.sender.placeholder":"Type / to see available skills, or @ to reference files","chat.sender.moreMatches":"...and {{count}} more \u2014 keep typing to narrow","chat.error.streamError":"Stream error","chat.error.hitlResponseRejected":"The agent did not accept this response. Please retry.","chat.error.interruptNotFound":"Unable to resolve the pending interrupt. Please retry.","chat.hitl.processing":"Your answer was already submitted. The agent is still working.","chat.hitl.alreadyHandled":"This question has already been answered.","chat.hitl.outdated":"This question is no longer pending. Reload to see the latest question.","chat.hitl.ambiguous":"Multiple questions are pending. Reload and answer the latest one.","chat.stop.superseded":"Response interrupted by a new message.","chat.stop.stopped":"Response stopped.","chat.layout.toggleMenu":"Toggle menu","chat.layout.closeDetail":"Close detail panel","chat.layout.closeTools":"Close tool panel","chat.menu.branding":"Menu","chat.menu.expandSidebar":"Expand sidebar","chat.menu.collapseSidebar":"Collapse sidebar","chat.menu.newThread":"New Thread","chat.agent.fallbackName":"Agent","chat.agent.selectTitle":"Select Agent","chat.agent.empty":"No agents available","chat.agent.search":"Search agents","chat.agent.noResults":"No matching agents","chat.agent.onboardingTitle":"Agent switching moved here","chat.agent.onboardingDescription":"Click this agent item to switch agents.","chat.agent.onboardingGotIt":"Got it","chat.model.label":"Model","chat.model.placeholder":"Model","chat.model.empty":"No models available","chat.budget.hint":"Run effort budget","chat.budget.turns":"~{{count}} turns","chat.budget.current":"Run effort: {{level}}","chat.budget.low":"Low","chat.budget.lowDescription":"Light task","chat.budget.medium":"Medium","chat.budget.mediumDescription":"Standard task","chat.budget.high":"High","chat.budget.highDescription":"Multi-step task","chat.budget.max":"Max","chat.budget.maxDescription":"Long task","chat.workspace.selectPlaceholder":"Workspace","chat.workspace.selectTitle":"Select Workspace","chat.project.selectPlaceholder":"Project","chat.project.selectTitle":"Select Project","chat.project.empty":"No projects","chat.project.nameRequired":"Project name is required","chat.project.nameTooLong":"Name must be {{max}} characters or less","chat.project.selectWorkspaceFirst":"Please select a workspace first","chat.project.created":'Project "{{name}}" created',"chat.project.createFailed":"Failed to create project","chat.project.createTitle":"Create New Project","chat.project.namePlaceholder":"Enter project name","chat.thread.create":"Create New Conversation","chat.thread.createFailed":"Failed to create new thread","chat.thread.history":"Conversation History","chat.thread.refreshHistory":"Refresh Conversation History","chat.thread.searchPlaceholder":"Search conversations\u2026","chat.thread.sortName":"Name","chat.thread.sortUpdated":"Updated","chat.thread.sortCreated":"Created","chat.thread.sortAscending":"Ascending","chat.thread.sortDescending":"Descending","chat.thread.loading":"Loading conversations...","chat.thread.noMatch":'No conversations match "{{query}}"',"chat.thread.empty":"No conversations yet","chat.thread.nameLabel":"Conversation name","chat.thread.status.idle":"Idle","chat.thread.status.busy":"Working","chat.thread.status.interrupted":"Interrupted","chat.thread.status.error":"Error","chat.thread.saveName":"Save name","chat.thread.cancelRename":"Cancel rename","chat.thread.rename":"Rename conversation","chat.thread.renamed":"Conversation renamed","chat.thread.renameFailed":"Failed to rename conversation","chat.thread.delete":"Delete conversation","chat.thread.deleteTitle":"Delete Conversation","chat.thread.deleteConfirm":"Are you sure you want to delete this conversation? This action cannot be undone.","chat.thread.deleted":"Conversation deleted","chat.thread.deleteFailed":"Failed to delete conversation","chat.pin.pin":"Pin to Menu","chat.pin.unpin":"Unpin from Menu","chat.pin.pinTitle":"Pin to Menu","chat.pin.enterName":"Please enter a menu name","chat.pin.pinned":"Pinned to menu","chat.pin.unpinned":"Unpinned from menu","chat.pin.pinFailed":"Failed to pin to menu","chat.pin.unpinFailed":"Failed to unpin from menu","chat.pin.namePlaceholder":"Menu name (required)","chat.pin.groupPlaceholder":"Group (optional, select or type new)","chat.sideApp.unnamed":"Unnamed","chat.sideApp.allTabs":"All tabs","chat.sideApp.close":"Close","chat.sideApp.empty":"Select an app to start","chat.sideApp.componentNotFound":"Component view not found","chat.todo.title":"Todos","chat.todo.noTasks":"No tasks","chat.todo.inProgress":"{{count}} in progress","chat.todo.completed":"{{count}} completed","chat.todo.progressTooltip":"{{completed}} / {{total}} tasks completed","chat.task.title":"Tasks","chat.task.noTasks":"No tasks","chat.task.inProgress":"{{count}} in progress","chat.task.completed":"{{count}} completed","chat.task.progressTooltip":"{{completed}} / {{total}} tasks completed","chat.customMenu.invalid":"Invalid menu item","chat.customMenu.empty":"(empty)","chat.customMenu.htmlPage":"Custom HTML Page","chat.customMenu.componentNotFound":'Component "{{name}}" not found',"chat.customMenu.invalidMcpApp":"Invalid MCP App menu item","chat.customMenu.loadingApp":"Loading app\u2026","chat.customMenu.unknownType":"Unknown content type: {{type}}","chat.customMenu.fileFallback":"File","chat.file.changed":"File Changed","chat.file.explorer":"File Explorer","chat.file.count":"{{count}} files","chat.copilot.agentBuilder":"Agent Builder","chat.copilot.viewing":"Viewing: {{name}}","chat.copilot.close":"Close copilot","chat.copilot.selectWorkflow":"Select a workflow to start","chat.environment.title":"Environment","chat.environment.tools":"Tools","chat.environment.capabilities":"Capabilities","chat.environment.subAgents":"Sub-agents","chat.environment.runtime":"Runtime","chat.environment.model":"Model: {{model}}","chat.environment.db":"DB: {{db}}","chat.environment.skills":"Skills: {{skills}}","chat.environment.channels":"Channels","chat.environment.noChannels":"No channels configured","chat.viewToggle.chat":"Chat","chat.viewToggle.graph":"Execution","chat.viewToggle.aria":"Switch view","chat.trace.backToCurrent":"Back to current","chat.trace.collapseOlder":"Collapse older","chat.trace.expandAll":"Expand all","chat.trace.parallelBadge":"Parallel \xD7{{count}}","chat.trace.jumpToChat":"Chat","chat.trace.phase.understand":"Understand & plan","chat.trace.phase.act":"Execute","chat.trace.phase.delegate":"Delegate","chat.trace.phase.answer":"Answer","chat.trace.phase.earlier":"Earlier","chat.trace.node.human":"User","chat.trace.summary.steps":"{{count}} steps","chat.trace.summary.steps_one":"{{count}} step","chat.trace.summary.steps_other":"{{count}} steps","chat.menu.history":"History","chat.error.resumeStreamError":"Resume stream error","chat.error.copySucceeded":"Error details copied","chat.error.copyFailed":"Failed to copy","chat.error.sectionFallback":"this section","chat.error.renderFailed":"Failed to render {{label}}","chat.error.details":"Error details","chat.error.copyDetails":"Copy Details","chat.error.boundary.sidebar":"Sidebar","chat.error.boundary.chatPanel":"Chat panel","chat.error.boundary.detailPanel":"Detail panel","chat.error.boundary.toolsPanel":"Tools panel","chat.error.boundary.thread":"Thread","chat.error.boundary.chatShell":"Chat shell","chat.agent.defaultName":"AI Assistant","chat.file.toggleDirectory":"Toggle file directory","chat.conversation.creating":"Creating conversation...","chat.tools.loading":"Loading tools...","chat.skills.loading":"Loading skills...","chat.schedule.none":"No schedules","chat.schedule.scheduledCount":"{{count}} scheduled","chat.schedule.totalCount":"{{count}} total","chat.topology.outgoing":"{{count}} out","chat.topology.incoming":"{{count}} in","chat.config.executableRequired":"Choose a template or enter a custom executable","chat.voice.unavailable":"Voice input unavailable: No STT model configured","chat.voice.transcribing":"Transcribing...","chat.voice.retryHint":"Transcription failed, tap to retry","chat.voice.rerecordHint":"Tap to re-record","chat.voice.stopRecordingAuto":"Stop recording ({{seconds}}s, {{segments}} segments transcribed)","chat.voice.stopRecording":"Stop recording ({{seconds}}s)","chat.voice.start":"Start voice input","chat.voice.noModel":"No STT model configured","chat.voice.uploading":"Uploading...","chat.voice.modeAuto":"Auto","chat.voice.modeManual":"Manual","chat.voice.segments":"{{count}} segments","chat.voice.segments_one":"{{count}} segment","chat.voice.segments_other":"{{count}} segments","chat.voice.recordingStatus":"{{mode}} mode, recording {{time}}{{chunks}} \u2014 tap to stop","chat.voice.errNotSupported":"Voice input not supported. Use Chrome, Edge, or Safari.","chat.voice.errFormatNotSupported":"Audio recording format not supported in this browser.","chat.voice.errRecordingFailed":"Recording failed, please try again.","chat.voice.errRecordInitFailed":"Recording initialization failed.","chat.voice.errMicPermission":"Please allow microphone access in browser settings","chat.voice.errMicAccess":"Cannot access microphone","chat.voice.errStopTimeout":"Stop recording timed out","chat.voice.errTranscribeFailed":"Transcription failed","chat.voice.errRetryFailed":"Retry failed","chat.analysis.quickTitle":"Quick Analysis","chat.analysis.categoriesTitle":"Analysis Categories","chat.analysis.viewMore":"View more analysis options","chat.analysis.category.sales":"Sales Analysis","chat.analysis.category.financial":"Financial Analysis","chat.analysis.category.operations":"Operations Analysis","chat.analysis.sales.comprehensive.label":"Comprehensive Sales Analysis","chat.analysis.sales.comprehensive.description":"Analyze sales revenue by specified dimensions with trend analysis and growth opportunities","chat.analysis.sales.performance.label":"Sales Performance Analysis","chat.analysis.sales.performance.description":"Aggregate omni-channel sales, evaluate performance achievement rate, and compare with historical growth","chat.analysis.sales.topCustomers.label":"Top Customer Analysis","chat.analysis.sales.topCustomers.description":"Identify top 10% customers by sales volume, analyze their purchase preferences and churn risks","chat.analysis.sales.trend.label":"Sales Trend Analysis","chat.analysis.sales.trend.description":"Analyze sales peaks and troughs through time series, forecast sales trends for the next quarter","chat.analysis.sales.repPerformance.label":"Sales Representative Performance","chat.analysis.sales.repPerformance.description":"Quantitatively evaluate conversion rates, average order value, and contract fulfillment efficiency of each sales representative","chat.analysis.sales.regional.label":"Regional Sales Comparison","chat.analysis.sales.regional.description":"Compare sales penetration across different geographic regions, identify markets with abnormal performance","chat.analysis.sales.productVolume.label":"Product Volume Analysis","chat.analysis.sales.productVolume.description":"Count sales quantities of each SKU, identify best-selling products and slow-moving inventory","chat.analysis.financial.grossMargin.label":"Product Line Gross Margin Analysis","chat.analysis.financial.grossMargin.description":"Compare gross margin levels across product lines, identify high-margin contributors and loss-making businesses","chat.analysis.financial.customerProfitability.label":"Customer Profitability Analysis","chat.analysis.financial.customerProfitability.description":"Analyze net profit contribution by different customer dimensions, identify core high-quality customers and high-service-cost customers","chat.analysis.financial.monthlyReport.label":"Monthly Financial Report","chat.analysis.financial.monthlyReport.description":"Based on this month's accounting data, automatically generate income statement, balance sheet, and cash flow statement summaries","chat.analysis.financial.ratio.label":"Financial Ratio Analysis","chat.analysis.financial.ratio.description":"Calculate and analyze key indicators such as current ratio, debt-to-asset ratio, and ROE to assess company financial health","chat.analysis.financial.cashflow.label":"Cash Flow Analysis","chat.analysis.financial.cashflow.description":"Track cash flows from operating, investing, and financing activities, analyze reasons for changes in net cash flow","chat.analysis.financial.costStructure.label":"Cost Structure Analysis","chat.analysis.financial.costStructure.description":"Break down direct costs and indirect expenses of products or services, identify core drivers affecting total costs","chat.analysis.operations.supplierEvaluation.label":"Supplier Performance Evaluation","chat.analysis.operations.supplierEvaluation.description":"Based on delivery quality, response speed, and price competitiveness, conduct comprehensive rating of core suppliers","chat.analysis.operations.inventoryTurnover.label":"Inventory Turnover Analysis","chat.analysis.operations.inventoryTurnover.description":"Calculate inventory turnover rate and days, identify slow-moving inventory materials to release capital","chat.analysis.operations.deliveryOntime.label":"On-Time Delivery Analysis","chat.analysis.operations.deliveryOntime.description":"Count order lead time from placement to delivery, analyze core links causing delayed deliveries","chat.analysis.operations.procurementCost.label":"Procurement Cost Analysis","chat.analysis.operations.procurementCost.description":"Monitor raw material procurement price fluctuations, analyze impact of procurement premiums or savings on profit","chat.analysis.operations.productionEfficiency.label":"Production Efficiency Analysis","chat.analysis.operations.productionEfficiency.description":"Calculate Overall Equipment Effectiveness (OEE) or per capita output, identify efficiency bottlenecks on production lines","chat.analysis.operations.orderFulfillment.label":"Order Fulfillment Analysis","chat.analysis.operations.orderFulfillment.description":"Analyze the full process from order receipt to final delivery, optimize order processing response time","chat.skillCategory.businessAnalysis":"Business Analysis","chat.skillCategory.codeGeneration":"Code Generation","chat.skillCategory.documentProcessing":"Document Processing","chat.skillCategory.dataAnalysis":"Data Analysis","chat.skillCategory.toolOperations":"Tool Operations","chat.skillCategory.general":"General Skills","chat.skillCategory.global":"Global Skills","chat.skillCategory.viewMore":"View more skill categories","chat.skillCategory.quickActions":"\u2728 Quick actions","chat.threadMaintenance.button":"Thread maintenance","chat.threadMaintenance.title":"Thread Maintenance","chat.threadMaintenance.missingContext":"No thread or assistant selected.","chat.threadMaintenance.loadFailed":"Failed to load thread maintenance data.","chat.threadMaintenance.copy":"Copy thread","chat.threadMaintenance.copySuccess":"Copied to thread {{id}}.","chat.threadMaintenance.switchToCopy":"Switch to copy","chat.threadMaintenance.copyFailed":"Failed to copy the thread.","chat.threadMaintenance.status":"Status","chat.threadMaintenance.pendingMessages":"Pending messages","chat.threadMaintenance.storage":"Storage","chat.threadMaintenance.checkpoints":"Checkpoints","chat.threadMaintenance.channelValues":"Channel values","chat.threadMaintenance.pendingWrites":"Pending writes","chat.threadMaintenance.interrupts":"Pending interrupts","chat.threadMaintenance.noInterrupts":"No pending interrupts.","chat.threadMaintenance.history":"Recent checkpoints","chat.threadMaintenance.noHistory":"No checkpoints","chat.threadMaintenance.checkpointId":"Checkpoint","chat.threadMaintenance.checkpointTime":"Created","chat.threadMaintenance.unknown":"Unknown","chat.threadMaintenance.viewState":"View state","chat.threadMaintenance.stateTitle":"Checkpoint state","chat.threadMaintenance.stateFailed":"Failed to load checkpoint state.","chat.threadMaintenance.loadingState":"Loading state\u2026","chat.threadMaintenance.pruneDelete":"Delete thread","chat.threadMaintenance.pruneDeleteTitle":"Delete thread","chat.threadMaintenance.pruneDeleteConfirm":"Delete this thread and its checkpoints?","chat.threadMaintenance.pruneKeepLatest":"Keep latest","chat.threadMaintenance.pruneKeepTitle":"Prune checkpoints","chat.threadMaintenance.pruneKeepConfirm":"Keep the latest {{count}} checkpoints?","chat.threadMaintenance.pruneFailed":"Thread maintenance failed.","chat.threadMaintenance.keepLabel":"Checkpoints to keep","chat.threadMaintenance.statusLoadFailed":"Failed to load thread status.","chat.threadMaintenance.storageLoadFailed":"Storage accounting is unavailable.","chat.threadMaintenance.historyLoadFailed":"Failed to load thread history.","chat.threadMaintenance.runs":"Runs","chat.threadMaintenance.noRuns":"No runs","chat.threadMaintenance.runStatus":"Status","chat.threadMaintenance.runId":"Run ID","chat.threadMaintenance.runCreated":"Created","chat.threadMaintenance.runOwner":"Owner / attempts","chat.threadMaintenance.interruptRun":"Interrupt","chat.threadMaintenance.rollbackRun":"Rollback","chat.threadMaintenance.interruptRunConfirm":"Interrupt this run?","chat.threadMaintenance.rollbackRunConfirm":"Roll back this run?","chat.threadMaintenance.runCancelFailed":"Failed to cancel the run.","chat.threadMaintenance.runsLoadFailed":"Failed to load runs.","chat.thread.createOptions.menuLabel":"Create with options\u2026","chat.thread.createOptions.open":"More create options","chat.thread.createOptions.title":"Create Thread with Options","chat.thread.createOptions.ttlLabel":"TTL (minutes)","chat.thread.createOptions.ttlPlaceholder":"No TTL","chat.thread.createOptions.ttlHint":"Empty or 0 means no expiry.","chat.thread.createOptions.superstepsLabel":"Supersteps JSON","chat.thread.createOptions.superstepsPlaceholder":'[{"updates":[{"values":{"messages":[]}}]}]',"chat.thread.createOptions.invalidSupersteps":"Supersteps must be an array of updates with object values.","chat.thread.createOptions.createFailed":"Failed to create thread.","chat.run.status.pending":"Queued","chat.run.status.running":"Running","chat.run.status.awaitingInput":"Waiting for your confirmation","chat.run.status.interrupted":"Interrupted","chat.run.status.timeout":"Timed out","chat.run.status.error":"Run failed","chat.run.elapsed":"{{seconds}}s","chat.run.cancel":"Cancel","chat.run.cancelFailed":"Failed to cancel. Try again.","chat.run.dismiss":"Dismiss","chat.run.error.quota":"This tenant is at capacity. Try again shortly.","chat.run.error.rejected":"This conversation is already running. Wait for the current reply.","chat.run.error.rollbackInProgress":"A rollback is still in progress. Try again shortly.","chat.run.error.unavailable":"The run queue is temporarily unavailable. Try again shortly.","chat.run.error.notFound":"This run no longer exists.","chat.run.error.joinTimeout":"The run is still in progress.","chat.run.error.affinity":"The run moved to another replica. Reconnect and try again.","chat.run.error.network":"Network connection failed. Check your connection and try again.","chat.run.error.stateIncompatible":"The runtime state is incompatible. Start a new conversation.","chat.run.error.generic":"The run failed. Try again later.","chat.messageRail.label":"Your messages","chat.messageRail.jump":"Jump to your message: {{preview}}","chat.run.status.queued":"{{count}} queued","chat.queue.count":"{{count}} queued","chat.queue.queued":"Queued message","chat.queue.cancel":"Remove queued message","chat.queue.cancelFailed":"Could not remove the queued message"},n={messages:t};export{n as default,t as messages};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./embed-page-chunk-QBTAJ2YI.js";var n={"chatConfig.field.name":"Name","chatConfig.field.description":"Description","chatConfig.field.displayName":"Display Name","chatConfig.field.connectionKey":"Connection Key","chatConfig.field.host":"Host","chatConfig.field.port":"Port","chatConfig.field.username":"Username","chatConfig.field.password":"Password","chatConfig.field.serverUrl":"Server URL","chatConfig.field.apiKey":"API Key","chatConfig.field.optionalDescription":"Optional description","chatConfig.config.updated":"Configuration updated","chatConfig.config.created":"Configuration created","chatConfig.config.deleted":"Configuration deleted","chatConfig.config.deleteFailed":"Failed to delete configuration","chatConfig.config.saveFailed":"Failed to save configuration","chatConfig.config.missingId":"Cannot delete: configuration id is missing","chatConfig.agentType.executor":"Executor","chatConfig.agentType.orchestrator":"Orchestrator","chatConfig.agentType.workflow":"Workflow","chatConfig.agentType.a2aRemote":"A2A Remote","chatConfig.keyValue.key":"Key","chatConfig.keyValue.value":"Value","chatConfig.keyValue.add":"Add","chatConfig.keyValue.removeEntry":"Remove entry","chatConfig.connectionList.empty":'No "{{type}}" connections',"chatConfig.connectionList.selectAll":"Select All","chatConfig.connectionList.deselectAll":"Deselect All","chatConfig.connectionList.clear":"Clear","chatConfig.connectionsHub.title":"Plugins","chatConfig.connectionsHub.tab.all":"All ({{count}})","chatConfig.connectionsHub.tab.connections":"Connections ({{count}})","chatConfig.connectionsHub.tab.tools":"Tools ({{count}})","chatConfig.connectionsHub.empty.connections.title":"No connection plugins","chatConfig.connectionsHub.empty.connections.description":"No plugins with connection management registered","chatConfig.connectionsHub.empty.tools.title":"No tool plugins","chatConfig.connectionsHub.empty.tools.description":"No tool-only plugins registered","chatConfig.connectionsHub.empty.all.title":"No plugins","chatConfig.connectionsHub.empty.all.description":"No plugins registered","chatConfig.connectionsHub.capability.test":"test","chatConfig.connectionsHub.capability.discover":"discover","chatConfig.connectionsHub.capability.connection":"connection","chatConfig.connectionsHub.capability.tool":"tool","chatConfig.subAgentInherit.hint":"Choose how to handle each sub-agent from the parent:","chatConfig.subAgentInherit.clone":"Clone as new","chatConfig.subAgentInherit.reuse":"Reuse","chatConfig.subAgentInherit.cloneKeyPlaceholder":"Enter key for the cloned agent","chatConfig.project.create.title":"New Project","chatConfig.project.field.name":"Project name","chatConfig.project.field.namePlaceholder":"Enter project name","chatConfig.project.validation.nameRequired":"Please enter a project name","chatConfig.project.validation.nameMax":"Project name must be less than 50 characters","chatConfig.project.field.visibility":"Visibility","chatConfig.project.kind.business":"Business","chatConfig.project.kind.business.description":"Only invited members can see it.","chatConfig.project.kind.public":"Public","chatConfig.project.kind.public.description":"Visible to everyone in this workspace.","chatConfig.project.kind.training":"Training","chatConfig.project.kind.training.description":"A workspace for agent training.","chatConfig.project.field.description":"Description (optional)","chatConfig.project.field.descriptionPlaceholder":"Enter project description","chatConfig.workflow.create.title":"New Workflow","chatConfig.workflow.create.titleProcessing":"New Processing Workflow","chatConfig.workflow.field.purpose":"Purpose","chatConfig.workflow.field.purposePlaceholder":"Describe what this workflow should do. Name and key will be generated automatically.","chatConfig.workflow.validation.purposeRequired":"Please describe the workflow purpose","chatConfig.workflow.middleware.topologyName":"Topology","chatConfig.workflow.middleware.topologyDescription":"Workflow topology","chatConfig.skill.create.title":"Create New Skill","chatConfig.skill.edit.title":"Edit Skill","chatConfig.skill.created":"Skill created successfully","chatConfig.skill.updated":"Skill updated successfully","chatConfig.skill.createFailed":"Failed to create skill","chatConfig.skill.updateFailed":"Failed to update skill","chatConfig.skill.createError":"An error occurred while creating the skill","chatConfig.skill.updateError":"An error occurred while updating the skill","chatConfig.skill.field.name":"Name","chatConfig.skill.field.description":"Description","chatConfig.skill.field.license":"License","chatConfig.skill.field.compatibility":"Compatibility","chatConfig.skill.field.metadata":"Metadata","chatConfig.skill.field.content":"Content","chatConfig.skill.placeholder.description":"Description","chatConfig.skill.placeholder.license":"License","chatConfig.skill.placeholder.compatibility":"Compatibility","chatConfig.skill.placeholder.content":"Content","chatConfig.skill.validation.nameRequired":"Please enter skill name","chatConfig.skill.validation.namePattern":"Name must be lowercase alphanumeric with single hyphens (e.g., 'my-skill')","chatConfig.skill.validation.nameLength":"Name must be 1-64 characters","chatConfig.skill.validation.descriptionRequired":"Please enter skill description","chatConfig.skill.metadata.add":"Add","chatConfig.skill.metadata.empty":"No metadata yet. Use Add to create one.","chatConfig.skill.metadata.row":"Meta {{index}}","chatConfig.skill.action.save":"Save Changes","chatConfig.skill.action.create":"Create Skill","chatConfig.skillPicker.title":"Skills","chatConfig.skillPicker.selectTitle":"Select Skills","chatConfig.skillPicker.empty":"No skills available","chatConfig.databasePicker.title":"Database","chatConfig.databasePicker.selectTitle":"Select Database","chatConfig.databasePicker.empty":"No databases available","chatConfig.channelInstall.title":"Channel Installations","chatConfig.channelInstall.add":"Add Installation","chatConfig.channelInstall.editTitle":"Edit Installation","chatConfig.channelInstall.addTitle":"Add Installation","chatConfig.channelInstall.empty.title":"No channel installations","chatConfig.channelInstall.empty.description":'Click "Add Installation" to create one',"chatConfig.channelInstall.unsupported":"Unsupported channel configuration UI","chatConfig.channelInstall.loadFailed":"Failed to load channel installations","chatConfig.channelInstall.deleted":"Installation deleted","chatConfig.channelInstall.deleteFailed":"Failed to delete installation","chatConfig.channelInstall.updated":"Installation updated","chatConfig.channelInstall.updateFailed":"Failed to update installation","chatConfig.channelInstall.created":"Installation created","chatConfig.channelInstall.createFailed":"Failed to create installation","chatConfig.channelInstall.delete.title":"Delete Channel Installation","chatConfig.channelInstall.delete.description":'Are you sure you want to delete "{{name}}"?',"chatConfig.channelInstall.field.channel":"Channel","chatConfig.channelInstall.field.name":"Name","chatConfig.channelInstall.field.appId":"App ID","chatConfig.channelInstall.field.appSecret":"App Secret","chatConfig.channelInstall.field.verificationToken":"Verification Token","chatConfig.channelInstall.field.encryptKey":"Encrypt Key","chatConfig.channelInstall.validation.appIdRequired":"App ID is required","chatConfig.channelInstall.validation.appSecretRequired":"App Secret is required","chatConfig.connection.loadFailed":"Failed to load connections","chatConfig.connection.testPassed":"Connection test passed: {{message}}","chatConfig.connection.testFailed":"Connection test failed","chatConfig.connection.testError":"Failed to test connection","chatConfig.connection.missingKey":"Cannot delete: connection key is missing","chatConfig.connection.deleted":"Connection deleted","chatConfig.connection.deleteFailed":"Failed to delete connection","chatConfig.connection.noSchema.title":"No connection schema defined","chatConfig.connection.noSchema.description":"This plugin type does not support connection management","chatConfig.connection.action.test":"Test","chatConfig.connection.status.online":"Online","chatConfig.connection.status.offline":"Offline","chatConfig.connection.updated":"Updated {{date}}","chatConfig.connection.add":"Add Connection","chatConfig.connection.empty.title":"No connections configured","chatConfig.connection.empty.description":'Click "Add Connection" to create one',"chatConfig.connection.delete.title":"Delete Connection","chatConfig.connection.delete.confirm":'Delete "{{name}}"?',"chatConfig.connectionForm.testRequestFailed":"Test request failed","chatConfig.connectionForm.keyRequired":"Connection key is required","chatConfig.connectionForm.updated":"Connection updated","chatConfig.connectionForm.created":"Connection created","chatConfig.connectionForm.saveFailed":"Failed to save connection","chatConfig.connectionForm.selectPlaceholder":"Select {{title}}","chatConfig.connectionForm.enterPlaceholder":"Enter {{title}}","chatConfig.connectionForm.step.details":"Connection Details","chatConfig.connectionForm.step.verify":"Verify","chatConfig.connectionForm.editTitle":"Edit {{type}} Connection","chatConfig.connectionForm.addTitle":"Add {{type}} Connection","chatConfig.connectionForm.save":"Save Changes","chatConfig.connectionForm.finish":"Finish","chatConfig.connectionForm.testing":"Testing connection...","chatConfig.connectionForm.availableResources":"Available Resources","chatConfig.connectionForm.selectedCount":" ({{count}} selected)","chatConfig.connectionForm.retryTest":"Retry Test","chatConfig.database.title":"Database Connections","chatConfig.database.loadFailed":"Failed to load database configurations","chatConfig.database.testSuccess":"Successfully connected to {{host}} ({{latency}}ms)","chatConfig.database.connectionFailed":"Connection failed: {{error}}","chatConfig.database.empty.title":"No database configurations","chatConfig.database.keyAndId":"Key: {{key}} | ID: {{id}}","chatConfig.database.connectionStringMode":"Connection String Mode","chatConfig.database.testing":"Testing...","chatConfig.database.editTitle":"Edit Database Configuration","chatConfig.database.addTitle":"Add Database Configuration","chatConfig.database.field.type":"Database Type","chatConfig.database.field.connectionString":"Connection String","chatConfig.database.priorityMode":"Priority Mode","chatConfig.database.note.important":"Important:","chatConfig.database.note.whenProvided":"When connection string is provided, it takes","chatConfig.database.note.priorityOver":"priority over","chatConfig.database.note.suffix":"all individual connection parameters below. The backend implements the same priority logic.","chatConfig.database.field.individualParams":"Individual Connection Parameters","chatConfig.database.ignoredWhenString":"Ignored when connection string is set","chatConfig.database.field.name":"Database Name","chatConfig.database.delete.title":"Delete Database Configuration","chatConfig.database.delete.description":'Are you sure you want to delete "{{name}}"?',"chatConfig.metrics.title":"Metrics Server Connections","chatConfig.metrics.loadFailed":"Failed to load metrics configurations","chatConfig.metrics.testSuccess":"Successfully connected to {{serverUrl}} ({{latency}}ms)","chatConfig.metrics.empty.title":"No metrics configurations","chatConfig.metrics.delete.title":"Delete Metrics Configuration","chatConfig.metrics.step.basic":"Basic Info","chatConfig.metrics.step.dataSources":"Select Data Sources","chatConfig.metrics.serverUrlRequired":"Please enter the server URL","chatConfig.metrics.fetchDataSourcesFailed":"Failed to fetch data sources","chatConfig.metrics.editTitle":"Edit Metrics Configuration","chatConfig.metrics.addTitle":"Add Metrics Configuration","chatConfig.metrics.field.serverType":"Server Type","chatConfig.metrics.field.authentication":"Authentication","chatConfig.metrics.optional":"Optional","chatConfig.metrics.placeholder.apiKey":"Optional API key for authentication","chatConfig.metrics.placeholder.username":"Optional username for basic auth","chatConfig.metrics.placeholder.password":"Optional password for basic auth","chatConfig.metrics.fetchingDataSources":"Fetching data sources...","chatConfig.metrics.field.dataSources":"Data Sources","chatConfig.metrics.selectedCount":"Selected: {{count}}","chatConfig.metrics.connected":"Connected","chatConfig.metrics.metricsAvailable":"{{count}} metrics available","chatConfig.metrics.loadingMetrics":"Loading metrics...","chatConfig.metrics.loadMetricsFailed":"Failed to load metrics","chatConfig.metrics.selectDataSourceHint":"Click a data source on the left to view its metrics","chatConfig.metrics.previous":"Previous","chatConfig.metrics.save":"Save Changes","chatConfig.metrics.type.semantic":"Semantic","chatConfig.metricsDataSource.select":"Select Data Source","chatConfig.metricsDataSource.noneAvailable":"No data sources available","chatConfig.metricsDataSource.title":"Select Metrics Data Source","chatConfig.metricsDataSource.empty":"No Metrics Data Sources Available","chatConfig.metricsDataSource.disconnected":"Disconnected","chatConfig.metricsDataSource.selected":"Selected","chatConfig.mcp.title":"MCP Server Connections","chatConfig.mcp.loadFailed":"Failed to load MCP server configurations","chatConfig.mcp.testSuccess":"Successfully connected ({{latency}}ms)","chatConfig.mcp.disconnected":"{{name}} disconnected","chatConfig.mcp.connected":"{{name}} connected","chatConfig.mcp.connectFailed":"Failed to connect","chatConfig.mcp.toggleFailed":"Failed to toggle connection","chatConfig.mcp.action.test":"Test Connection","chatConfig.mcp.toolsCount":"{{count}} tools","chatConfig.mcp.empty.title":"No MCP server configurations","chatConfig.mcp.delete.title":"Delete MCP Server Configuration","chatConfig.mcp.step.connection":"Connection","chatConfig.mcp.step.tools":"Select Tools","chatConfig.mcp.commandRequired":"Please enter the command for stdio transport","chatConfig.mcp.urlRequired":"Please enter the URL for HTTP/SSE transport","chatConfig.mcp.fetchToolsFailed":"Failed to fetch tools","chatConfig.mcp.fetchToolsError":"Failed to fetch tools from MCP server","chatConfig.mcp.editTitle":"Edit MCP Server Configuration","chatConfig.mcp.addTitle":"Add MCP Server Configuration","chatConfig.mcp.field.transport":"Transport Type","chatConfig.mcp.transport.stdio":"STDIO (Command)","chatConfig.mcp.transport.http":"HTTP","chatConfig.mcp.transport.sse":"SSE (Server-Sent Events)","chatConfig.mcp.field.command":"Command","chatConfig.mcp.field.args":"Arguments (one per line)","chatConfig.mcp.field.env":"Environment Variables","chatConfig.mcp.envHint":"Passed to the server process (e.g. API tokens). Values are stored encrypted.","chatConfig.mcp.addVariable":"Add Variable","chatConfig.mcp.sseDeprecated":"SSE is deprecated by the MCP specification \u2014 prefer Streamable HTTP (HTTP) for new servers.","chatConfig.mcp.field.headers":"Headers","chatConfig.mcp.headersHint":"Sent with every request (e.g. Authorization for authentication). Values are stored encrypted.","chatConfig.mcp.addHeader":"Add Header","chatConfig.mcp.advanced":"Advanced Options","chatConfig.mcp.field.timeout":"Timeout (ms)","chatConfig.mcp.field.retryAttempts":"Retry Attempts","chatConfig.mcp.connecting":"Connecting to MCP server and fetching tools...","chatConfig.mcp.noTools":"No tools available. Please check your connection settings.","chatConfig.mcp.availableTools":"Available Tools","chatConfig.mcp.selectedTools":"Selected: {{selected}} / {{total}}","chatConfig.mcp.parameters":"Parameters: {{list}}","chatConfig.mcp.previous":"Previous","chatConfig.mcp.save":"Save Changes","chatConfig.midForm.selectAll":"Select All","chatConfig.midForm.clear":"Clear","chatConfig.midForm.selectedOfTotal":"{{selected}} / {{total}} selected","chatConfig.midForm.tools":"Tools","chatConfig.midForm.skills.title":"Skill Library","chatConfig.midForm.skills.search":"Search skills\u2026","chatConfig.midForm.skills.empty":"No skills available","chatConfig.midForm.databases.title":"Databases","chatConfig.midForm.databases.search":"Search databases\u2026","chatConfig.midForm.databases.empty":"No databases available","chatConfig.midForm.metrics.title":"Metrics Servers","chatConfig.midForm.metrics.search":"Search servers\u2026","chatConfig.midForm.metrics.empty":"No servers available","chatConfig.midForm.collections.title":"Collections","chatConfig.midForm.collections.search":"Search collections\u2026","chatConfig.midForm.collections.empty":"No collections available","chatConfig.midForm.topology.title":"Dependencies","chatConfig.midForm.topology.edges":"{{count}} edges","chatConfig.midForm.topology.empty":"No dependencies defined yet","chatConfig.midForm.topology.addTitle":"Add Dependency","chatConfig.midForm.topology.fromPlaceholder":"Source Agent ID","chatConfig.midForm.topology.toPlaceholder":"Target Agent ID","chatConfig.midForm.topology.purposePlaceholder":"Purpose (e.g. classify invoice fields)","chatConfig.midForm.topology.addEdge":"Add Edge","chatConfig.midForm.connections.title":"Connections","chatConfig.midForm.section.config":"Config","chatConfig.midForm.section.resources":"Resources Permission","chatConfig.midForm.section.tools":"Tools Permission","chatConfig.midForm.enabled":"Enabled","chatConfig.midForm.disabled":"Disabled","chatConfig.midForm.scope.global":"Global","chatConfig.midForm.scope.agent":"Agent","chatConfig.midForm.scope.project":"Project","chatConfig.agentModal.title":"Configure Agent","chatConfig.agentModal.tab.basic":"Basic","chatConfig.agentModal.tab.tools":"Tools","chatConfig.agentModal.tab.skills":"Skills","chatConfig.agentModal.tab.subAgents":"Sub-Agents","chatConfig.agentModal.field.agentType":"Agent Type","chatConfig.agentModal.field.systemPrompt":"System Prompt","chatConfig.agentModal.systemPromptPlaceholder":"Enter the system prompt for this agent...","chatConfig.agentModal.systemPromptHint":"Define the agent's behavior, capabilities, and constraints","chatConfig.agentModal.selectedOfTotal":"{{selected}} of {{total}} selected","chatConfig.agentModal.selectAll":"Select All","chatConfig.agentModal.deselectAll":"Deselect All","chatConfig.agentModal.noTools":"No tools available","chatConfig.agentModal.noSkills":"No skills available","chatConfig.agentModal.noOtherAgents":"No other agents available","chatConfig.agentModal.approve":"Approve","chatConfig.agentModal.noDescription":"No description","chatConfig.agentModal.hierarchy":"Agent Hierarchy","chatConfig.agentModal.currentAgent":"Current Agent","chatConfig.agentModal.currentTag":"Current","chatConfig.agentModal.type.react":"React","chatConfig.agentModal.type.deepAgent":"Deep Agent","chatConfig.agentModal.type.workflow":"Workflow","chatConfig.agentModal.toolsCount":"{{count}} tools","chatConfig.agentModal.skillsCount":"{{count}} skills","chatConfig.agentModal.subAgentsCount":"{{count}} sub-agents","chatConfig.agentModal.structureTree":"Structure Tree","chatConfig.agentModal.tip":"Tip","chatConfig.agentModal.tipBody":"Deep Agent type allows you to delegate tasks to sub-agents. Select agents from the Sub-Agents tab to build your hierarchy.","chatConfig.agentModal.changesHint":"Changes will update the agent configuration","chatConfig.agentModal.saveConfiguration":"Save Configuration","chatConfig.agentPanel.category.data":"Data & Knowledge","chatConfig.agentPanel.category.execution":"Execution & Interaction","chatConfig.agentPanel.category.workflow":"Workflow & Orchestration","chatConfig.agentPanel.category.assistant":"Assistant & Evaluation","chatConfig.agentPanel.category.other":"Other","chatConfig.agentPanel.nav.basic":"Basic Info","chatConfig.agentPanel.nav.prompt":"System Prompt","chatConfig.agentPanel.nav.tools":"Common Tools","chatConfig.agentPanel.nav.capabilities":"Capabilities","chatConfig.agentPanel.nav.subAgents":"Sub-Agents","chatConfig.agentPanel.navAriaLabel":"Agent configuration sections","chatConfig.agentPanel.basic.title":"Basic Info","chatConfig.agentPanel.basic.desc":"Core identity and behavior of this agent","chatConfig.agentPanel.field.name":"Name","chatConfig.agentPanel.field.agentType":"Agent Type","chatConfig.agentPanel.field.description":"Description","chatConfig.agentPanel.validation.nameRequired":"Please enter agent name","chatConfig.agentPanel.validation.descriptionRequired":"Please enter agent description","chatConfig.agentPanel.placeholder.name":"Enter agent name\u2026","chatConfig.agentPanel.placeholder.description":"Enter agent description\u2026","chatConfig.agentPanel.typeDesc.react":"Executor: Executes tasks directly using tools. Best for single-step operations like search, code execution, and data retrieval.","chatConfig.agentPanel.typeDesc.deepAgent":"Orchestrator: Maintains a todo list to plan and delegate tasks to sub-agents. Best for structured multi-step workflows.","chatConfig.agentPanel.typeDesc.processing":"Workflow: Delegates to sub-agents in a predefined topology order. Best for deterministic multi-step processes.","chatConfig.agentPanel.prompt.title":"System Prompt","chatConfig.agentPanel.prompt.desc":"Define the agent's behavior, capabilities, and constraints","chatConfig.agentPanel.prompt.expand":"Expand","chatConfig.agentPanel.prompt.placeholder":"Enter the system prompt for this agent\u2026","chatConfig.agentPanel.prompt.chars":"{{count}} chars","chatConfig.agentPanel.tools.title":"Common Tools","chatConfig.agentPanel.tools.desc":"Choose the tools this agent can call directly","chatConfig.agentPanel.tools.search":"Search tools\u2026","chatConfig.agentPanel.tools.selected":"Selected {{selected}} / {{total}}","chatConfig.agentPanel.subAgents.title":"Sub-Agents","chatConfig.agentPanel.subAgents.desc":"Choose sub-agents this agent can delegate to","chatConfig.agentPanel.subAgents.search":"Search sub-agents\u2026","chatConfig.agentPanel.subAgents.selected":"Selected {{selected}} / {{total}}","chatConfig.agentPanel.noTools":"No tools available","chatConfig.agentPanel.noCapabilities":"No capabilities available","chatConfig.agentPanel.noOtherAgents":"No other agents available","chatConfig.agentPanel.noMatching":"No matching results","chatConfig.agentPanel.selectAll":"Select All","chatConfig.agentPanel.clear":"Clear","chatConfig.agentPanel.approve":"Approve","chatConfig.agentPanel.noDescription":"No description","chatConfig.agentPanel.configWorkbench":"Config Workbench","chatConfig.agentPanel.deleteAgent":"Delete Agent","chatConfig.agentPanel.loadingConfig":"Loading agent configuration...","chatConfig.agentPanel.footer.saveHint":"Changes will be saved to this agent","chatConfig.agentPanel.footer.viewing":"Viewing agent configuration","chatConfig.agentPanel.done":"Done","chatConfig.agentPanel.delete.title":"Delete Agent","chatConfig.agentPanel.delete.confirmPrefix":"Are you sure you want to delete","chatConfig.agentPanel.delete.confirmSuffix":"? This action cannot be undone.","chatConfig.agentPanel.deleteFailed":"Failed to delete agent","chatConfig.createAssistant.title":"Create New Agent","chatConfig.createAssistant.createExtend":"Create (Extend)","chatConfig.createAssistant.startLearning":"Start Learning","chatConfig.createAssistant.parentAgent":"Parent Agent","chatConfig.createAssistant.inheritHint":"Fields left unchanged will be inherited from the parent agent.","chatConfig.createAssistant.learnHint":"Describe what the agent should do.","chatConfig.createAssistant.learnGoalPlaceholder":"e.g. Handle price disputes using the price protection policy","chatConfig.createAssistant.referenceFiles":"Reference Files","chatConfig.createAssistant.referenceFilesHint":"Optional \u2014 uploaded to the shared training workspace and attached to the learning round; the architect reads them as round material.","chatConfig.createAssistant.field.key":"Key (ID)","chatConfig.createAssistant.keyPlaceholder":"e.g., my_agent","chatConfig.createAssistant.field.name":"Name","chatConfig.createAssistant.namePlaceholder":"e.g., My Agent","chatConfig.createAssistant.field.description":"Description","chatConfig.createAssistant.field.agentType":"Agent Type","chatConfig.createAssistant.field.connectionMode":"Connection Mode","chatConfig.createAssistant.mode.remoteUrl":"Remote URL","chatConfig.createAssistant.mode.localManaged":"Local Managed","chatConfig.createAssistant.field.template":"Template","chatConfig.createAssistant.templatePlaceholder":"Choose a template...","chatConfig.createAssistant.noTemplates":'No templates. Use "Custom Command" below.',"chatConfig.createAssistant.customCommand":"+ Custom Command","chatConfig.createAssistant.hideCustomCommand":"- Hide Custom Command","chatConfig.createAssistant.field.executable":"Executable","chatConfig.createAssistant.executablePlaceholder":"e.g. node, opencode, /usr/local/bin/my-server","chatConfig.createAssistant.field.arguments":"Arguments","chatConfig.createAssistant.argumentsPlaceholder":"e.g. --serve --port 4301","chatConfig.createAssistant.field.workingDirectory":"Working directory","chatConfig.createAssistant.workingDirectoryPlaceholder":"e.g. /Users/me/project","chatConfig.createAssistant.field.agentCardUrl":"Agent Card URL","chatConfig.createAssistant.field.apiKeyOptional":"API Key (optional)","chatConfig.createAssistant.apiKeyPlaceholder":"API key for authentication","chatConfig.createAssistant.field.timeout":"Timeout (ms)","chatConfig.createAssistant.field.systemPrompt":"System Prompt","chatConfig.createAssistant.field.systemPromptInherit":"System Prompt (leave unchanged to inherit from parent)","chatConfig.createAssistant.systemPromptInheritPlaceholder":"Leave empty to inherit parent's prompt, or enter a new prompt to override...","chatConfig.createAssistant.systemPromptPlaceholder":"Enter the system prompt for this agent...","chatConfig.createAssistant.subAgents":"Sub-Agents","chatConfig.createAssistant.descriptionPlaceholder":"Enter a description for this agent...","chatConfig.createAssistant.typeDesc.react":"Executor: Directly executes tasks using tools. Best for single-step operations like search, code execution, and data retrieval.","chatConfig.createAssistant.typeDesc.deepAgent":"Orchestrator: Manages a sequential todo list to plan and assign todo items to sub-agents. Best for structured multi-step workflows.","chatConfig.createAssistant.typeDesc.processing":"Workflow: Enforces a fixed workflow topology by delegating to sub-agents in a predefined order. Best for deterministic multi-step processes with validated delegation paths.","chatConfig.createAssistant.typeDesc.a2aRemote":"A2A Remote: Delegates to an external A2A-compatible agent server. Use for local CLI tools (Claude Code, Codex, OpenCode) or remote agents.","chatConfig.createAssistant.validation.keyRequired":"Please enter a unique key","chatConfig.createAssistant.validation.keyPattern":"Key must start with a letter and contain only letters, numbers, underscores, or hyphens","chatConfig.createAssistant.validation.nameRequired":"Please enter a name","chatConfig.createAssistant.validation.descriptionRequired":"Please enter a description","chatConfig.createAssistant.validation.systemPromptRequired":"Please enter a system prompt","chatConfig.createAssistant.validation.urlRequired":"Please enter the A2A server URL","chatConfig.createAssistant.validation.executableRequired":"Executable is required","chatConfig.createAssistant.a2aUrlWarning":"Please enter an A2A server URL first","chatConfig.createAssistant.connectedTo":'Connected to "{{name}}"',"chatConfig.createAssistant.connectionFailed":"Connection failed","chatConfig.createAssistant.connectionTestFailed":"Connection test failed","chatConfig.createAssistant.trainingGoalRequired":"Please describe the training goal","chatConfig.createAssistant.noTrainingProject":"No shared training project available","chatConfig.createAssistant.agentCreated":"Agent created \u2014 architect started building","chatConfig.createAssistant.createdByExtending":'Agent created by extending "{{name}}"',"chatConfig.createAssistant.created":"Agent created successfully","chatConfig.createAssistant.createFailed":"Failed to create agent","chatConfig.createAssistant.createError":"An error occurred while creating the agent","chatConfig.createAssistant.requiredFields":"Please complete the required fields: {{fields}}","chatConfig.createAssistant.requiredFieldsGeneric":"Please complete the required fields","chatConfig.createAssistant.noParentAgent":"No parent agent selected","chatConfig.createAssistant.agentCreateFailed":"Failed to create agent","chatConfig.createAssistant.cloneFetchFailed":'Failed to fetch sub-agent "{{key}}" for cloning',"chatConfig.createAssistant.cloneFailed":'Failed to clone sub-agent "{{key}}"',"chatConfig.createAssistant.cloneKeyRequired":'Please provide a key for the cloned sub-agent "{{key}}"',"chatConfig.createAssistant.cloneKeyInvalid":'Invalid key "{{key}}" for cloned sub-agent "{{originalKey}}". Key must start with a letter and contain only letters, numbers, underscores, or hyphens.',"chatConfig.parentAgent.selectPlaceholder":"Select a parent agent to extend...","chatConfig.settings.defaultConnectionName":"Default","chatConfig.settings.serverNamePlaceholder":"e.g., Production Server","chatConfig.settings.title":"Settings","chatConfig.settings.menu.environment":"Environment Variables","chatConfig.settings.menu.models":"Model Configuration","chatConfig.settings.menu.environment.desc":"Manage environment variables for the gateway server","chatConfig.settings.menu.models.desc":"Configure the gateway-wide default model registry","chatConfig.settings.saveConfiguration":"Save Configuration","chatConfig.settings.addServer":"Add Server","chatConfig.settings.addNewServer":"Add New Server","chatConfig.settings.serverName":"Server Name","chatConfig.settings.serverNameHint":"Optional: Leave empty to use URL as name","chatConfig.settings.serverUrl":"Server URL *","chatConfig.settings.serverUrlHint":"Enter the full URL of the gateway server","chatConfig.settings.apiKey":"API Key","chatConfig.settings.apiKeyPlaceholder":"Optional: Enter API key for authentication","chatConfig.settings.apiKeyHint":"Optional: API key for server authentication","chatConfig.settings.pleaseEnterServerUrl":"Please enter a server URL","chatConfig.settings.serverAdded":"Server added successfully","chatConfig.settings.serverDeleted":"Server deleted","chatConfig.settings.connectFirst":"Please connect to a server first","chatConfig.settings.loadConfigFailed":"Failed to load current configuration","chatConfig.settings.saveFailed":"Failed to save configuration","chatConfig.settings.restartWarning":"Configuration saved. Please restart the server for {{services}} to take effect.","chatConfig.settings.savedApplied":"Configuration saved and applied successfully","chatConfig.settings.modelSaved":"Model configuration saved and registered successfully","chatConfig.settings.modelSaveFailed":"Failed to save model configuration","chatConfig.settings.alert.title":"Configuration Effect","chatConfig.settings.alert.immediate":"Immediately effective:","chatConfig.settings.alert.restart":"Requires restart:","chatConfig.settings.alert.restartDetail":"PORT (server must be restarted to change port)","chatConfig.settings.envHint":"Configure environment variables in .env format (key=value). One variable per line. Leave password fields empty to keep current values.","chatConfig.settings.modelsHint":"Configure model lattices. Each model will be registered with the provided key and can be used by agents.","chatConfig.settings.model":"Model {{index}}","chatConfig.settings.remove":"Remove","chatConfig.settings.field.key":"Key *","chatConfig.settings.field.keyHint":"Unique identifier for this model","chatConfig.settings.field.provider":"Provider *","chatConfig.settings.field.modelName":"Model Name *","chatConfig.settings.field.apiKeyHintStored":"A key is stored on the server and is never sent back. Leave blank to keep it, or type a new one to replace it.","chatConfig.settings.field.apiKeyHintNew":"API key for the model provider. Leave empty to use environment variable.","chatConfig.settings.apiKeyPlaceholderConfigured":"Configured \u2014 leave blank to keep","chatConfig.settings.apiKeyPlaceholderNew":"Enter your API key","chatConfig.settings.field.baseUrl":"Base URL","chatConfig.settings.field.baseUrlHint":"Optional custom base URL for the API","chatConfig.settings.field.streaming":"Enable Streaming","chatConfig.settings.field.maxTokens":"Max Tokens","chatConfig.settings.field.temperature":"Temperature","chatConfig.settings.addModel":"+ Add Model","chatConfig.settings.connecting":"Connecting...","chatConfig.settings.connectingTo":"Connecting to {{url}}","chatConfig.settings.notConnected":"Not Connected","chatConfig.settings.connectFailedDetail":"Failed to connect to {{url}}. Please check the server URL and try again.","chatConfig.settings.clickReconnect":'Click "Reconnect" to connect to {{url}}',"chatConfig.settings.reconnect":"Reconnect","chatConfig.settings.error.serverError":"Server returned an error","chatConfig.settings.error.timeout":"Connection timeout","chatConfig.settings.error.connectFailed":"Failed to connect to server","chatConfig.paChannel.title":"Connect Channels","chatConfig.paChannel.channels":"Channels","chatConfig.paChannel.noChannels":"No channels yet","chatConfig.paChannel.connect":"Connect","chatConfig.paChannel.selectHint":"Select a channel from the left or add a new one","chatConfig.paChannel.chooseType":"Choose Channel Type","chatConfig.paChannel.editChannel":"Edit Channel","chatConfig.paChannel.newChannel":"New {{channel}}","chatConfig.paChannel.channel.lark":"Feishu","chatConfig.paChannel.channel.wechat":"WeChat","chatConfig.paChannel.channel.wecom":"WeCom","chatConfig.paChannel.wechatBot":"WeChat Bot","chatConfig.paChannel.feishuBot":"Feishu Bot","chatConfig.paChannel.wecomBot":"WeCom Bot","chatConfig.paChannel.field.botId":"Bot ID","chatConfig.paChannel.field.secret":"Secret","chatConfig.paChannel.placeholder.botId":"Bot ID from the WeCom admin console","chatConfig.paChannel.placeholder.secret":"Long-connection Secret from the WeCom admin console","chatConfig.paChannel.wecomConnectHint":"Uses the smart-bot long-connection (API) mode \u2014 no public callback URL; the gateway maintains the connection.","chatConfig.paChannel.validation.botIdRequired":"Bot ID is required","chatConfig.paChannel.validation.secretRequired":"Secret is required","chatConfig.paChannel.field.channelType":"Channel Type","chatConfig.paChannel.field.displayName":"Display Name","chatConfig.paChannel.field.appId":"App ID","chatConfig.paChannel.field.appSecret":"App Secret","chatConfig.paChannel.field.verificationToken":"Verification Token","chatConfig.paChannel.field.encryptKey":"Encrypt Key","chatConfig.paChannel.field.botToken":"Bot Token","chatConfig.paChannel.field.uin":"UIN","chatConfig.paChannel.enabled":"Enabled","chatConfig.paChannel.listenerActive":"Listener service is active","chatConfig.paChannel.listenerStopped":"Listener service is stopped","chatConfig.paChannel.anyoneCanMessage":"Anyone can message","chatConfig.paChannel.anyoneCanMessageHint":"When enabled, anyone with access to this channel can chat with your assistant","chatConfig.paChannel.whoCanChat":"Who can chat","chatConfig.paChannel.whoCanChatHint":"Only people you add here can message your assistant","chatConfig.paChannel.noContacts":"No contacts added yet","chatConfig.paChannel.addContact":"Add Contact","chatConfig.paChannel.add":"Add","chatConfig.paChannel.required":"Required","chatConfig.paChannel.placeholder.wechatOpenId":"WeChat Open ID","chatConfig.paChannel.placeholder.feishuOpenId":"Feishu Open ID","chatConfig.paChannel.placeholder.wecomUserId":"WeCom User ID","chatConfig.paChannel.placeholder.displayName":"Display name (optional)","chatConfig.paChannel.placeholder.appSecret":"Your app secret","chatConfig.paChannel.placeholder.optional":"Optional","chatConfig.paChannel.placeholder.botToken":"Auto-filled after QR scan","chatConfig.paChannel.placeholder.uin":"Auto-filled from QR login","chatConfig.paChannel.addBindingHint":"Once saved, come back here to add the people you'd like to chat with.","chatConfig.paChannel.removeChannel":"Remove this channel?","chatConfig.paChannel.removeChannelDesc":"All bindings for this installation will also be lost.","chatConfig.paChannel.save":"Save","chatConfig.paChannel.bindingAdded":"Binding added","chatConfig.paChannel.bindingAddFailed":"Failed to add binding","chatConfig.paChannel.bindingRemoved":"Binding removed","chatConfig.paChannel.bindingRemoveFailed":"Failed to remove binding","chatConfig.paChannel.bindingsLoadFailed":"Failed to load bindings","chatConfig.paChannel.installationsLoadFailed":"Failed to load channel installations","chatConfig.paChannel.channelEnabled":"Channel enabled","chatConfig.paChannel.channelDisabled":"Channel disabled","chatConfig.paChannel.toggleFailed":"Failed to toggle channel","chatConfig.paChannel.installationUpdated":"Installation updated","chatConfig.paChannel.installationUpdateFailed":"Failed to update installation","chatConfig.paChannel.installationCreated":"Installation created","chatConfig.paChannel.installationCreateFailed":"Failed to create installation","chatConfig.paChannel.installationSaveFailed":"Failed to save installation","chatConfig.paChannel.installationDeleted":"Installation deleted","chatConfig.paChannel.installationDeleteFailed":"Failed to delete installation","chatConfig.paChannel.addUsersHint":"Now add users who can access this channel","chatConfig.paChannel.validation.appIdRequired":"App ID is required","chatConfig.paChannel.validation.appSecretRequired":"App Secret is required","chatConfig.paChannel.validation.botTokenRequired":"Bot Token is required","chatConfig.paChannel.qr.hint":"Scan the QR code with WeChat to get a bot token","chatConfig.paChannel.qr.get":"Get QR Code","chatConfig.paChannel.qr.generating":"Generating QR code...","chatConfig.paChannel.qr.scan":"Scan with WeChat","chatConfig.paChannel.qr.scanned":"Scanned! Confirm on your phone...","chatConfig.paChannel.qr.expiresIn":"Expires in {{time}}","chatConfig.paChannel.qr.expired":"QR code expired","chatConfig.paChannel.qr.refreshStatus":"Refresh Status","chatConfig.paChannel.qr.loginConfirmed":"Login confirmed!","chatConfig.paChannel.qr.tokenFilled":"Bot token has been filled automatically","chatConfig.paChannel.qr.expiredGetNew":"QR code expired. Get a new one.","chatConfig.paChannel.qr.retry":"Retry","chatConfig.paChannel.qr.loadFailed":"Failed to load QR code","chatConfig.paChannel.qr.getFailed":"Failed to get QR code","chatConfig.paChannel.qr.statusFailed":"Failed to check QR status","chatConfig.connectionsHub.mcpAppTools":"MCP App tools","chatConfig.connectionsHub.publishWithAgent":"Publish with agent","chatConfig.connectionsHub.publishUnsupported":"Publishing is not supported in V1","chatConfig.connectionsHub.connectionPlaceholder":"Connection","chatConfig.connectionsHub.publishPrompt":'Publish the MCP App for plugin "{{plugin}}" tool "{{tool}}". Ask me whether the link should be public or password-protected.',"chatConfig.connectionsHub.publishPromptWithConnection":'Publish the MCP App for plugin "{{plugin}}" tool "{{tool}}" using connection "{{connection}}". Ask me whether the link should be public or password-protected.'},a={messages:n};export{a as default,n as messages};
|