@customize-agent/server 4.0.95 → 4.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +52 -79
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/routes-manifest.json +0 -6
  5. package/.next/server/chunks/1928.js +1 -1
  6. package/.next/server/chunks/1936.js +1 -1
  7. package/.next/server/chunks/8204.js +1 -1
  8. package/.next/server/middleware-build-manifest.js +1 -1
  9. package/.next/server/pages/404.html +1 -1
  10. package/.next/server/pages/500.html +1 -1
  11. package/.next/server/pages/_app.js +1 -1
  12. package/.next/server/pages/_app.js.nft.json +1 -1
  13. package/.next/server/pages/_error.js +1 -1
  14. package/.next/server/pages/_error.js.nft.json +1 -1
  15. package/.next/server/pages/asset-library.html +1 -1
  16. package/.next/server/pages/document-roles.html +1 -1
  17. package/.next/server/pages/documents.html +1 -1
  18. package/.next/server/pages/guide.html +1 -1
  19. package/.next/server/pages/index.html +1 -1
  20. package/.next/server/pages/index.js.nft.json +1 -1
  21. package/.next/server/pages/knowledge/file-detail.html +1 -1
  22. package/.next/server/pages/knowledge/files.html +1 -1
  23. package/.next/server/pages/knowledge/manage.html +1 -1
  24. package/.next/server/pages/knowledge.html +1 -1
  25. package/.next/server/pages/models.html +1 -1
  26. package/.next/server/pages/overview.html +1 -1
  27. package/.next/server/pages/prompt.html +1 -1
  28. package/.next/server/pages/settings.html +1 -1
  29. package/.next/server/pages/system/logs.html +1 -1
  30. package/.next/server/pages-manifest.json +22 -23
  31. package/.next/static/023mfOogIrGGOivjQt58T/_buildManifest.js +1 -0
  32. package/.next/static/chunks/337-b06909f6d29f6d1f.js +1 -0
  33. package/.next/static/chunks/371-291e96a3ec471950.js +6 -0
  34. package/.next/static/chunks/375-1e1be370b94c7512.js +1 -0
  35. package/.next/static/chunks/478-ac4777b05b3c42e8.js +1 -0
  36. package/.next/static/chunks/63-dd8eeb8edd766bae.js +4 -0
  37. package/.next/static/chunks/726-835aceca52ec904a.js +1 -0
  38. package/.next/static/chunks/788-72bd97a04f2aee27.js +1 -0
  39. package/.next/static/chunks/795-ed2375ec938022d8.js +1 -0
  40. package/.next/static/chunks/850-0f48354694fc6b3e.js +1 -0
  41. package/.next/static/chunks/pages/{_app-d0d7f3a02373fa7e.js → _app-d98d9d52c6257579.js} +17 -17
  42. package/.next/static/chunks/pages/{asset-library-c744f6c91b24629f.js → asset-library-b76abaab31043cdb.js} +1 -1
  43. package/.next/static/chunks/pages/document-roles-edefc9a1752155f1.js +1 -0
  44. package/.next/static/chunks/pages/documents-cccd60ddbf3d8401.js +1 -0
  45. package/.next/static/chunks/pages/{guide-e00b6e23a8dd41b3.js → guide-40908b2721e92d01.js} +1 -1
  46. package/.next/static/chunks/pages/{index-a2a24e9602e7ea52.js → index-9df5670a1487dbb1.js} +1 -1
  47. package/.next/static/chunks/pages/knowledge/file-detail-8c37a455e6cc010f.js +1 -0
  48. package/.next/static/chunks/pages/knowledge/files-ebe54cb8a7886df1.js +1 -0
  49. package/.next/static/chunks/pages/knowledge/manage-1363f53928abf98c.js +1 -0
  50. package/.next/static/chunks/pages/models-8883cd27c251e4ae.js +1 -0
  51. package/.next/static/chunks/pages/{overview-1260176045ed5f7a.js → overview-63f3dda2dde16c9e.js} +1 -1
  52. package/.next/static/chunks/pages/prompt-5adc3ca18a2764f4.js +1 -0
  53. package/.next/static/chunks/pages/settings-810eb1a6cf1a6b02.js +1 -0
  54. package/.next/static/chunks/pages/system/logs-1b77471f6db59846.js +1 -0
  55. package/.next/static/chunks/webpack-4224e970a97a4a86.js +1 -0
  56. package/.next/static/css/20743781fa68bc70.css +1 -0
  57. package/messages/en-US.json +127 -3
  58. package/messages/zh-CN.json +128 -3
  59. package/package.json +4 -2
  60. package/postcss.config.mjs +3 -1
  61. package/scripts/start-server.cjs +5 -0
  62. package/.next/server/pages/knowledge/search.html +0 -1
  63. package/.next/server/pages/knowledge/search.js.nft.json +0 -1
  64. package/.next/static/3nHhxjRVb6Sv1RCvTTJ6o/_buildManifest.js +0 -1
  65. package/.next/static/chunks/192-dee7faefaf840b17.js +0 -1
  66. package/.next/static/chunks/238-4ad320af4f787bd6.js +0 -1
  67. package/.next/static/chunks/375-4a1c73eb22d653d2.js +0 -1
  68. package/.next/static/chunks/525-5d947137d894f5fe.js +0 -1
  69. package/.next/static/chunks/621-1c48b0d6d904f023.js +0 -4
  70. package/.next/static/chunks/694-2d545cfbb9779f2c.js +0 -1
  71. package/.next/static/chunks/788-7f7359a830e3f4fd.js +0 -1
  72. package/.next/static/chunks/795-e8cfd56df2293576.js +0 -1
  73. package/.next/static/chunks/797-9166f495bb6138e3.js +0 -6
  74. package/.next/static/chunks/861-91cbdd34b8e23151.js +0 -1
  75. package/.next/static/chunks/938-45efd516bb130bd5.js +0 -1
  76. package/.next/static/chunks/pages/document-roles-5108efe16c9b0dd0.js +0 -1
  77. package/.next/static/chunks/pages/documents-1fad70e8cff2eff9.js +0 -1
  78. package/.next/static/chunks/pages/knowledge/file-detail-44e52d9e351e8784.js +0 -1
  79. package/.next/static/chunks/pages/knowledge/files-4f7bacb11528982e.js +0 -1
  80. package/.next/static/chunks/pages/knowledge/manage-205647551376b193.js +0 -1
  81. package/.next/static/chunks/pages/knowledge/search-577f08171a786578.js +0 -1
  82. package/.next/static/chunks/pages/models-47a9542ac5bec5c0.js +0 -1
  83. package/.next/static/chunks/pages/prompt-aad4329e419fb442.js +0 -1
  84. package/.next/static/chunks/pages/settings-78d0d5322fd61afe.js +0 -1
  85. package/.next/static/chunks/pages/system/logs-c97311a24d1a67e1.js +0 -1
  86. package/.next/static/chunks/webpack-77d10b4726f13aa5.js +0 -1
  87. package/.next/static/css/38dba0a7a42a8df3.css +0 -1
  88. /package/.next/static/{3nHhxjRVb6Sv1RCvTTJ6o → 023mfOogIrGGOivjQt58T}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[525],{7492:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),i=r(33460),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:i.A})))},12887:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"}},17362:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"}},23830:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"}},24810:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),i=r(31738),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:i.A})))},26631:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),i=r(12887),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:i.A})))},28438:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"}},29606:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),i=r(23830),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:i.A})))},31738:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"}},33460:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"}},42758:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),i=r(28438),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:i.A})))},46082:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),i=r(17362),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:i.A})))},49292:(e,t,r)=>{r.d(t,{A:()=>O});var a=r(97109),i=r(64446),n=r(32565),o=r(91147),l=r(77611),c=r(3638),d=r(67189),s=r(73473);let h=(e,t)=>{if(!e)return null;let r={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},m=e=>void 0!==e?`${e}px`:void 0;function u(e){let{prefixCls:t,containerRef:r,value:i,getValueIndex:n,motionName:o,onMotionStart:u,onMotionEnd:g,direction:b,vertical:f=!1}=e,v=a.useRef(null),[p,$]=a.useState(i),w=e=>{let a=n(e),i=r.current?.querySelectorAll(`.${t}-item`)[a];return i?.offsetParent&&i},[z,A]=a.useState(null),[y,S]=a.useState(null);(0,s.A)(()=>{if(p!==i){let e=w(p),t=w(i),r=h(e,f),a=h(t,f);$(i),A(r),S(a),e&&t?u():g()}},[i]);let H=a.useMemo(()=>f?m(z?.top??0):"rtl"===b?m(-z?.right):m(z?.left),[f,b,z]),x=a.useMemo(()=>f?m(y?.top??0):"rtl"===b?m(-y?.right):m(y?.left),[f,b,y]);return z&&y?a.createElement(d.Ay,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:()=>f?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},onAppearActive:()=>f?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},onVisibleChanged:()=>{A(null),S(null),g()}},({className:e,style:r},i)=>{let n={...r,"--thumb-start-left":H,"--thumb-start-width":m(z?.width),"--thumb-active-left":x,"--thumb-active-width":m(y?.width),"--thumb-start-top":H,"--thumb-start-height":m(z?.height),"--thumb-active-top":x,"--thumb-active-height":m(y?.height)},o={ref:(0,l.K4)(v,i),style:n,className:(0,c.$)(`${t}-thumb`,e)};return a.createElement("div",o)}):null}let g=({prefixCls:e,className:t,style:r,styles:i,classNames:n,data:o,disabled:l,checked:d,label:s,title:h,value:m,name:u,onChange:g,onFocus:b,onBlur:f,onKeyDown:v,onKeyUp:p,onMouseDown:$,itemRender:w=e=>e})=>w(a.createElement("label",{className:(0,c.$)(t,{[`${e}-item-disabled`]:l}),style:r,onMouseDown:$},a.createElement("input",{name:u,className:`${e}-item-input`,type:"radio",disabled:l,checked:d,onChange:e=>{l||g(e,m)},onFocus:b,onBlur:f,onKeyDown:v,onKeyUp:p}),a.createElement("div",{className:(0,c.$)(`${e}-item-label`,n?.label),title:h,style:i?.label},s)),{item:o}),b=a.forwardRef((e,t)=>{let{prefixCls:r="rc-segmented",direction:d,vertical:s,options:h=[],disabled:m,defaultValue:b,value:f,name:v,onChange:p,className:$="",style:w,styles:z,classNames:A,motionName:y="thumb-motion",itemRender:S,...H}=e,x=a.useRef(null),k=a.useMemo(()=>(0,l.K4)(x,t),[x,t]),M=a.useMemo(()=>h.map(e=>{if("object"==typeof e&&null!==e){let t=void 0!==e.title?e.title:"object"!=typeof e.label?e.label?.toString():void 0;return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}}),[h]),[E,B]=(0,n.A)(b??M[0]?.value,f),[O,R]=a.useState(!1),j=(e,t)=>{B(t),p?.(t)},N=(0,o.A)(H,["children"]),[P,I]=a.useState(!1),[V,C]=a.useState(!1),L=()=>{C(!0)},T=()=>{C(!1)},W=()=>{I(!1)},X=e=>{"Tab"===e.key&&I(!0)},D=e=>{let t=M.findIndex(e=>e.value===E),r=M.length,a=M[(t+e+r)%r];a&&(B(a.value),p?.(a.value))},F=e=>{switch(e.key){case"ArrowLeft":case"ArrowUp":D(-1);break;case"ArrowRight":case"ArrowDown":D(1)}};return a.createElement("div",(0,i.A)({role:"radiogroup","aria-label":"segmented control",tabIndex:m?void 0:0,"aria-orientation":s?"vertical":"horizontal",style:w},N,{className:(0,c.$)(r,{[`${r}-rtl`]:"rtl"===d,[`${r}-disabled`]:m,[`${r}-vertical`]:s},$),ref:k}),a.createElement("div",{className:`${r}-group`},a.createElement(u,{vertical:s,prefixCls:r,value:E,containerRef:x,motionName:`${r}-${y}`,direction:d,getValueIndex:e=>M.findIndex(t=>t.value===e),onMotionStart:()=>{R(!0)},onMotionEnd:()=>{R(!1)}}),M.map(e=>{let{value:t,disabled:n}=e;return a.createElement(g,(0,i.A)({},e,{name:v,data:e,itemRender:S,key:t,prefixCls:r,className:(0,c.$)(e.className,`${r}-item`,A?.item,{[`${r}-item-selected`]:t===E&&!O,[`${r}-item-focused`]:V&&P&&t===E}),style:z?.item,classNames:A,styles:z,checked:t===E,onChange:j,onFocus:L,onBlur:T,onKeyDown:F,onKeyUp:X,onMouseDown:W,disabled:!!m||!!n}))})))});var f=r(42644),v=r(5045),p=r(92162),$=r(26047),w=r(74567),z=r(27273),A=r(14932),y=r(15561),S=r(7961),H=r(10540),x=r(28403);function k(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}let M=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),E={overflow:"hidden",...S.L9},B=(0,H.OF)("Segmented",e=>{let{lineWidth:t,calc:r}=e;return(e=>{let{componentCls:t,motionDurationSlow:r,motionEaseInOut:a,motionDurationMid:i}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...(0,S.dF)(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...(0,S.K8)(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,y.zA)(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...M(e),color:e.itemSelectedColor},"&-focused":(0,S.jk)(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(e=>`${e} ${i}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:n,lineHeight:(0,y.zA)(n),padding:`0 ${(0,y.zA)(e.segmentedPaddingHorizontal)}`,...E},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...M(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,y.zA)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:(0,y.zA)(o),padding:`0 ${(0,y.zA)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:(0,y.zA)(l),padding:`0 ${(0,y.zA)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...k(`&-disabled ${t}-item`,e),...k(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(e=>`${e} ${r} ${a}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}})((0,x.oX)(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:r,colorFillSecondary:a,colorBgElevated:i,colorFill:n,lineWidthBold:o,colorBgLayout:l}=e;return{trackPadding:o,trackBg:l,itemColor:t,itemHoverColor:r,itemHoverBg:a,itemSelectedBg:i,itemActiveBg:n,itemSelectedColor:r}}),O=a.forwardRef((e,t)=>{let r=(0,f.Bi)(),{prefixCls:i,className:n,rootClassName:o,block:l,options:d=[],size:s,style:h,vertical:m,orientation:u,shape:g="default",name:y=r,styles:S,classNames:H,...x}=e,{getPrefixCls:k,direction:M,className:E,style:O,classNames:R,styles:j}=(0,w.TP)("segmented"),N={...e,options:d,size:s,shape:g},P=(0,p.XT)(O),I=(0,p.XT)(h),[V,C]=(0,p.AV)([R,H],[j,P,S,I],{props:N}),L=k("segmented",i),[T,W]=B(L),X=(0,z.A)(s),D=a.useMemo(()=>d.map(e=>{if(function(e){return(0,$.Qd)(e)&&!!e?.icon}(e)){let{icon:t,label:r,...i}=e;return{...i,label:a.createElement(a.Fragment,null,a.createElement("span",{className:(0,c.$)(`${L}-item-icon`,V.icon),style:C.icon},t),r&&a.createElement("span",null,r))}}return e}),[d,L,V.icon,C.icon]),[,F]=(0,v.M)(u,m),q=(0,c.$)(n,o,E,V.root,{[`${L}-block`]:l,[`${L}-sm`]:"small"===X,[`${L}-lg`]:"large"===X,[`${L}-vertical`]:F,[`${L}-shape-${g}`]:"round"===g},T,W);return a.createElement(b,{...x,name:y,className:q,style:C.root,classNames:V,styles:C,itemRender:(e,{item:t})=>{if(!t.tooltip)return e;let r=(0,$.Qd)(t.tooltip)?t.tooltip:{title:t.tooltip};return a.createElement(A.A,{...r},e)},options:D,ref:t,prefixCls:L,direction:M,vertical:F})})},53707:(e,t)=>{t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"}},55122:(e,t,r)=>{r.d(t,{A:()=>f});var a=r(97109),i=r(3638),n=r(5045),o=r(92162),l=r(26047),c=r(74567),d=r(27273),s=r(15561),h=r(7961),m=r(10540),u=r(28403);let g=(0,m.OF)("Divider",e=>{let t=(0,u.oX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[(e=>{let{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:a,lineWidth:i,textPaddingInline:n,orientationMargin:o,verticalMarginInline:l}=e,c=`${t}-rail`;return{[t]:{...(0,h.dF)(e),borderBlockStart:`${(0,s.zA)(i)} solid ${a}`,[c]:{borderBlockStart:`${(0,s.zA)(i)} solid ${a}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,s.zA)(i)} solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,s.zA)(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,s.zA)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,[`${c}-start, ${c}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${c}-start`]:{width:`calc(${o} * 100%)`},[`${c}-end`]:{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${c}-start`]:{width:`calc(100% - ${o} * 100%)`},[`${c}-end`]:{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:n},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${(0,s.zA)(i)} 0 0`,[c]:{borderBlockStart:`${(0,s.zA)(i)} dashed ${a}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${c}-start, ${c}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:a,borderStyle:"dotted",borderWidth:`${(0,s.zA)(i)} 0 0`,[c]:{borderBlockStart:`${(0,s.zA)(i)} dotted ${a}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${c}-start`]:{width:0},[`${c}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${c}-start`]:{width:"100%"},[`${c}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}}}})(t),(e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}})(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}}),b=["left","right","center","start","end"],f=e=>{let{getPrefixCls:t,direction:r,className:s,style:h,classNames:m,styles:u}=(0,c.TP)("divider"),{prefixCls:f,type:v,orientation:p,vertical:$,titlePlacement:w,orientationMargin:z,className:A,rootClassName:y,children:S,dashed:H,variant:x="solid",plain:k,style:M,size:E,classNames:B,styles:O,...R}=e,j=t("divider",f),N=`${j}-rail`,[P,I]=g(j),V=(0,d.A)(E),C=!!S,L=b.includes(p||""),T=a.useMemo(()=>{let e=w??(L?p:"center");return"left"===e?"rtl"===r?"end":"start":"right"===e?"rtl"===r?"start":"end":e},[r,p,w,L]),W="start"===T&&null!=z,X="end"===T&&null!=z,[D,F]=(0,n.M)(p,$,v),q={...e,orientation:D,titlePlacement:T,size:V},[G,K]=(0,o.AV)([m,B],[u,O],{props:q}),_=(0,i.$)(j,s,P,I,`${j}-${D}`,{[`${j}-with-text`]:C,[`${j}-with-text-${T}`]:C,[`${j}-dashed`]:!!H,[`${j}-${x}`]:"solid"!==x,[`${j}-plain`]:!!k,[`${j}-rtl`]:"rtl"===r,[`${j}-no-default-orientation-margin-start`]:W,[`${j}-no-default-orientation-margin-end`]:X,[`${j}-md`]:"medium"===V||"middle"===V,[`${j}-sm`]:"small"===V,[N]:!S,[G.rail]:G.rail&&!S},A,y,G.root),U=a.useMemo(()=>(0,l.Et)(z)?z:/^\d+$/.test(z)?Number(z):z,[z]);return a.createElement("div",{className:_,style:{...h,...K.root,...S?{}:K.rail,...M},...R,role:"separator"},S&&!F&&a.createElement(a.Fragment,null,a.createElement("div",{className:(0,i.$)(N,`${N}-start`,G.rail),style:K.rail}),a.createElement("span",{className:(0,i.$)(`${j}-inner-text`,G.content),style:{marginInlineStart:W?U:void 0,marginInlineEnd:X?U:void 0,...K.content}},S),a.createElement("div",{className:(0,i.$)(N,`${N}-end`,G.rail),style:K.rail})))}},81668:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),i=r(96724),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:i.A})))},96091:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),i=r(53707),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:i.A})))},96724:(e,t)=>{t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"}}}]);
@@ -1,4 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[621],{1310:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(90190),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},1611:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"}},7851:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(12059),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},8579:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(95008),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},12059:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"}},12887:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"}},16285:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(71885),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},23216:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(29664),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},26619:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(1611),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},26631:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(12887),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},29071:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(78847),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},29664:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"}},51307:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"}},56398:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"}},63552:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(87312),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},64068:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(76148),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},66284:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"}},67547:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(51307),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},68498:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"}},71330:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(68498),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},71885:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"}},75548:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(66284),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},76148:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"}},76830:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(97109),n=r(56398),o=r(88483);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let l=a.forwardRef((e,t)=>a.createElement(o.A,c({},e,{ref:t,icon:n.A})))},78847:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"}},87312:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"}},90190:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"}},95008:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"}},96285:(e,t,r)=>{r.d(t,{Ay:()=>i,gd:()=>l});var a=r(15561),n=r(7961),o=r(16666),c=r(28403);function l(e,t){var r=(0,c.oX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});let{checkboxCls:l,checkboxSize:i,lineWidth:s}=r,d=`${l}-wrapper`,h="@media (hover: hover) and (pointer: fine)";return[{[`${l}-group`]:{...(0,n.dF)(r),display:"inline-flex",flexWrap:"wrap",columnGap:r.marginXS,[`> ${r.antCls}-row`]:{flex:1}},[d]:{...(0,n.dF)(r),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${d}`]:{marginInlineStart:0}},[l]:{...(0,n.dF)(r),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:i,height:i,direction:"ltr",backgroundColor:r.colorBgContainer,border:`${(0,a.zA)(s)} ${r.lineType} ${r.colorBorder}`,borderRadius:r.borderRadiusSM,borderCollapse:"separate",transition:`all ${r.motionDurationSlow}`,flex:"none",...(0,o.V)(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${i} / 2 - ${s})`,insetInlineStart:`calc(${i} / 4 - ${s})`,display:"table",width:r.calc(i).div(14).mul(5).equal(),height:r.calc(i).div(14).mul(8).equal(),border:`${(0,a.zA)(r.lineWidthBold)} solid ${r.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${r.motionDurationFast} ${r.motionEaseInBack}, opacity ${r.motionDurationFast}`,...(0,o.V)()},[`${l}-input`]:{position:"absolute",inset:`calc(-1 * (${s}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${l}-input:focus-visible)`]:(0,n.jk)(r),"& + span":{paddingInlineStart:r.paddingXS,paddingInlineEnd:r.paddingXS}}},{[h]:{[`
2
- ${d}:not(${d}-disabled),
3
- ${l}:not(${l}-disabled)
4
- `]:{[`&:hover ${l}`]:{borderColor:r.colorPrimary}},[`${d}:not(${d}-disabled)`]:{[`&:hover ${l}-checked:not(${l}-disabled)`]:{backgroundColor:r.colorPrimaryHover,borderColor:"transparent"}}}},{[`${l}-checked`]:{backgroundColor:r.colorPrimary,borderColor:r.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${r.motionDurationMid} ${r.motionEaseOutBack} ${r.motionDurationFast}`,...(0,o.V)()},[h]:{[`&:not(${l}-disabled):hover`]:{backgroundColor:r.colorPrimaryHover,borderColor:"transparent"}}}},{[l]:{"&-indeterminate":{backgroundColor:r.colorBgContainer,borderColor:r.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:r.calc(r.fontSizeLG).div(2).equal(),height:r.calc(r.fontSizeLG).div(2).equal(),backgroundColor:r.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},[h]:{[`&:not(${l}-disabled):hover`]:{backgroundColor:r.colorBgContainer,borderColor:r.colorPrimary}}}}},{[`${d}-disabled`]:{cursor:"not-allowed"},[`${l}-disabled`]:{[`&, ${l}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:r.colorBgContainerDisabled,borderColor:r.colorBorder,"&:after":{borderColor:r.colorTextDisabled},"& + span":{color:r.colorTextDisabled},[`&${l}-indeterminate::after`]:{background:r.colorTextDisabled}}}]}let i=(0,r(10540).OF)("Checkbox",(e,{prefixCls:t})=>[l(t,e)])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[694],{520:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(18200),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))},2256:(e,t,a)=>{a.d(t,{A:()=>r});let r=a(25341).A},5450:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"}},8579:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(95008),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))},12887:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"}},13114:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(5450),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))},14995:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"}},18200:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"}},24810:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(31738),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))},26631:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(12887),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))},29071:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(78847),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))},31738:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"}},32632:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(68552),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))},38770:(e,t,a)=>{a.d(t,{A:()=>r});let r=a(51916).A},53234:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"}},54849:(e,t,a)=>{a.d(t,{A:()=>y});var r=a(97109),n=a(42644),c=a(52690),l=a(3638),o=a(92162),s=a(26047),i=a(74567),f=a(88762);let v=e=>{let t,{value:a,formatter:n,precision:c,decimalSeparator:l,groupSeparator:o="",prefixCls:i,className:f,style:v}=e;if((0,s.Tn)(n))t=n(a);else{let e=String(a),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){let e=n[1],a=n[2]||"0",f=n[4]||"";a=a.replace(/\B(?=(\d{3})+(?!\d))/g,o),(0,s.Et)(c)&&(f=f.padEnd(c,"0").slice(0,c>0?c:0)),f&&(f=`${l}${f}`),t=[r.createElement("span",{key:"int",className:`${i}-content-value-int`},e,a),f&&r.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},f)]}else t=e}return r.createElement("span",{className:f,style:v},t)};var d=a(7961),u=a(10540),h=a(28403);let p=(0,u.OF)("Statistic",e=>(e=>{let{componentCls:t,marginXXS:a,padding:r,colorTextDescription:n,titleFontSize:c,colorTextHeading:l,contentFontSize:o,fontFamily:s}=e;return{[t]:{...(0,d.dF)(e),[`${t}-header`]:{paddingBottom:a,[`${t}-title`]:{color:n,fontSize:c}},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:l,fontSize:o,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:a},[`${t}-content-suffix`]:{marginInlineStart:a}}}}})((0,h.oX)(e,{})),e=>{let{fontSizeHeading3:t,fontSize:a}=e;return{titleFontSize:a,contentFontSize:t}}),m=r.forwardRef((e,t)=>{let{prefixCls:a,className:c,rootClassName:d,style:u,valueStyle:h,value:m=0,title:g,valueRender:b,prefix:A,suffix:w,loading:y=!1,formatter:z,precision:O,decimalSeparator:E=".",groupSeparator:M=",",onMouseEnter:H,onMouseLeave:j,styles:$,classNames:x,...V}=e,{getPrefixCls:L,direction:N,className:S,style:R,classNames:B,styles:P}=(0,i.TP)("statistic"),k=L("statistic",a),[T,C]=p(k),I={...e,decimalSeparator:E,groupSeparator:M,loading:y,value:m},D=(0,o.XT)(R),_=(0,o.XT)(u),[F,X]=(0,o.AV)([B,x],[P,D,$,_],{props:I}),q=(0,l.$)(k,{[`${k}-rtl`]:"rtl"===N},S,c,d,F.root,T,C),K=(0,l.$)(`${k}-header`,F.header),Y=(0,l.$)(`${k}-title`,F.title),G=(0,l.$)(`${k}-content`,F.content),J=(0,l.$)(`${k}-content-value`,F.value),Q=(0,l.$)(`${k}-content-prefix`,F.prefix),U=(0,l.$)(`${k}-content-suffix`,F.suffix),W=r.createElement(v,{decimalSeparator:E,groupSeparator:M,prefixCls:k,formatter:z,precision:O,value:m,className:J,style:X.value}),Z=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:Z.current}));let ee=(0,n.KE)(V,{aria:!0,data:!0});return r.createElement("div",{...ee,className:q,style:X.root,ref:Z,onMouseEnter:H,onMouseLeave:j},g&&r.createElement("div",{className:K,style:X.header},r.createElement("div",{className:Y,style:X.title},g)),r.createElement(f.A,{paragraph:!1,loading:y,className:`${k}-skeleton`,active:!0},r.createElement("div",{className:G,style:{...h,...X.content}},A&&r.createElement("span",{className:Q,style:X.prefix},A),(0,s.Tn)(b)?b(W):W,w&&r.createElement("span",{className:U,style:X.suffix},w))))}),g=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],b=1e3/60,A=e=>{let{value:t,format:a="HH:mm:ss",onChange:l,onFinish:o,type:s,...i}=e,f="countdown"===s,[v,d]=r.useState(null),u=(0,n._q)(()=>{let e=Date.now(),a=new Date(t).getTime();d({});let r=f?a-e:e-a;return l?.(r),!f||!(a<e)||(o?.(),!1)});return r.useEffect(()=>{let e;return e=window.setInterval(()=>{u()||window.clearInterval(e)},b),()=>{window.clearInterval(e)}},[t,f]),r.useEffect(()=>{d({})},[]),r.createElement(m,{...i,value:t,valueRender:e=>(0,c.Ob)(e,{title:void 0}),formatter:(e,t)=>v?function(e,t,a){let{format:r=""}=t,n=new Date(e).getTime(),c=Date.now();return function(e,t){let a=e,r=/\[[^\]]*]/g,n=(t.match(r)||[]).map(e=>e.slice(1,-1)),c=t.replace(r,"[]"),l=g.reduce((e,[t,r])=>{if(e.includes(t)){let n=Math.floor(a/r);return a-=n*r,e.replace(RegExp(`${t}+`,"g"),e=>{let t=e.length;return n.toString().padStart(t,"0")})}return e},c),o=0;return l.replace(r,()=>{let e=n[o];return o+=1,e})}(a?Math.max(n-c,0):Math.max(c-n,0),r)}(e,{...t,format:a},f):"-"})},w=r.memo(e=>r.createElement(A,{...e,type:"countdown"}));m.Timer=A,m.Countdown=w;let y=m},68552:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z"}}]},name:"layout",theme:"outlined"}},75710:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M843.5 737.4c-12.4-75.2-79.2-129.1-155.3-125.4S550.9 676 546 752c-153.5-4.8-208-40.7-199.1-113.7 3.3-27.3 19.8-41.9 50.1-49 18.4-4.3 38.8-4.9 57.3-3.2 1.7.2 3.5.3 5.2.5 11.3 2.7 22.8 5 34.3 6.8 34.1 5.6 68.8 8.4 101.8 6.6 92.8-5 156-45.9 159.2-132.7 3.1-84.1-54.7-143.7-147.9-183.6-29.9-12.8-61.6-22.7-93.3-30.2-14.3-3.4-26.3-5.7-35.2-7.2-7.9-75.9-71.5-133.8-147.8-134.4-76.3-.6-140.9 56.1-150.1 131.9s40 146.3 114.2 163.9c74.2 17.6 149.9-23.3 175.7-95.1 9.4 1.7 18.7 3.6 28 5.8 28.2 6.6 56.4 15.4 82.4 26.6 70.7 30.2 109.3 70.1 107.5 119.9-1.6 44.6-33.6 65.2-96.2 68.6-27.5 1.5-57.6-.9-87.3-5.8-8.3-1.4-15.9-2.8-22.6-4.3-3.9-.8-6.6-1.5-7.8-1.8l-3.1-.6c-2.2-.3-5.9-.8-10.7-1.3-25-2.3-52.1-1.5-78.5 4.6-55.2 12.9-93.9 47.2-101.1 105.8-15.7 126.2 78.6 184.7 276 188.9 29.1 70.4 106.4 107.9 179.6 87 73.3-20.9 119.3-93.4 106.9-168.6zM329.1 345.2a83.3 83.3 0 11.01-166.61 83.3 83.3 0 01-.01 166.61zM695.6 845a83.3 83.3 0 11.01-166.61A83.3 83.3 0 01695.6 845z"}}]},name:"node-index",theme:"outlined"}},78847:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"}},93314:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(53234),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))},95008:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"}},95118:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(75710),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))},99811:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(97109),n=a(14995),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}let o=r.forwardRef((e,t)=>r.createElement(c.A,l({},e,{ref:t,icon:n.A})))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[788],{1611:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"}},2256:(e,t,a)=>{a.d(t,{A:()=>n});let n=a(25341).A},11100:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M567.1 512l318.5-319.3c5-5 1.5-13.7-5.6-13.7h-90.5c-2.1 0-4.2.8-5.6 2.3l-273.3 274-90.2-90.5c12.5-22.1 19.7-47.6 19.7-74.8 0-83.9-68.1-152-152-152s-152 68.1-152 152 68.1 152 152 152c27.7 0 53.6-7.4 75.9-20.3l90 90.3-90.1 90.3A151.04 151.04 0 00288 582c-83.9 0-152 68.1-152 152s68.1 152 152 152 152-68.1 152-152c0-27.2-7.2-52.7-19.7-74.8l90.2-90.5 273.3 274c1.5 1.5 3.5 2.3 5.6 2.3H880c7.1 0 10.7-8.6 5.6-13.7L567.1 512zM288 370c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm0 444c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"}}]},name:"scissor",theme:"outlined"}},14995:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"}},21247:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482.2 508.4L331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"}}]},name:"merge-cells",theme:"outlined"}},23216:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(97109),r=a(29664),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},23830:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"}},26619:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(97109),r=a(1611),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},29606:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(97109),r=a(23830),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},29664:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"}},30960:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"}},35459:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(97109),r=a(98995),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},38770:(e,t,a)=>{a.d(t,{A:()=>n});let n=a(51916).A},49484:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(97109),r=a(11100),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},53234:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"}},54849:(e,t,a)=>{a.d(t,{A:()=>w});var n=a(97109),r=a(42644),c=a(52690),l=a(3638),s=a(92162),o=a(26047),i=a(74567),f=a(88762);let v=e=>{let t,{value:a,formatter:r,precision:c,decimalSeparator:l,groupSeparator:s="",prefixCls:i,className:f,style:v}=e;if((0,o.Tn)(r))t=r(a);else{let e=String(a),r=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(r&&"-"!==e){let e=r[1],a=r[2]||"0",f=r[4]||"";a=a.replace(/\B(?=(\d{3})+(?!\d))/g,s),(0,o.Et)(c)&&(f=f.padEnd(c,"0").slice(0,c>0?c:0)),f&&(f=`${l}${f}`),t=[n.createElement("span",{key:"int",className:`${i}-content-value-int`},e,a),f&&n.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},f)]}else t=e}return n.createElement("span",{className:f,style:v},t)};var h=a(7961),d=a(10540),u=a(28403);let m=(0,d.OF)("Statistic",e=>(e=>{let{componentCls:t,marginXXS:a,padding:n,colorTextDescription:r,titleFontSize:c,colorTextHeading:l,contentFontSize:s,fontFamily:o}=e;return{[t]:{...(0,h.dF)(e),[`${t}-header`]:{paddingBottom:a,[`${t}-title`]:{color:r,fontSize:c}},[`${t}-skeleton`]:{paddingTop:n},[`${t}-content`]:{color:l,fontSize:s,fontFamily:o,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:a},[`${t}-content-suffix`]:{marginInlineStart:a}}}}})((0,u.oX)(e,{})),e=>{let{fontSizeHeading3:t,fontSize:a}=e;return{titleFontSize:a,contentFontSize:t}}),p=n.forwardRef((e,t)=>{let{prefixCls:a,className:c,rootClassName:h,style:d,valueStyle:u,value:p=0,title:g,valueRender:b,prefix:A,suffix:H,loading:w=!1,formatter:y,precision:O,decimalSeparator:z=".",groupSeparator:V=",",onMouseEnter:E,onMouseLeave:$,styles:j,classNames:x,...M}=e,{getPrefixCls:N,direction:R,className:S,style:k,classNames:B,styles:P}=(0,i.TP)("statistic"),T=N("statistic",a),[C,I]=m(T),L={...e,decimalSeparator:z,groupSeparator:V,loading:w,value:p},D=(0,s.XT)(k),_=(0,s.XT)(d),[F,X]=(0,s.AV)([B,x],[P,D,j,_],{props:L}),q=(0,l.$)(T,{[`${T}-rtl`]:"rtl"===R},S,c,h,F.root,C,I),K=(0,l.$)(`${T}-header`,F.header),Y=(0,l.$)(`${T}-title`,F.title),G=(0,l.$)(`${T}-content`,F.content),J=(0,l.$)(`${T}-content-value`,F.value),Q=(0,l.$)(`${T}-content-prefix`,F.prefix),U=(0,l.$)(`${T}-content-suffix`,F.suffix),W=n.createElement(v,{decimalSeparator:z,groupSeparator:V,prefixCls:T,formatter:y,precision:O,value:p,className:J,style:X.value}),Z=n.useRef(null);n.useImperativeHandle(t,()=>({nativeElement:Z.current}));let ee=(0,r.KE)(M,{aria:!0,data:!0});return n.createElement("div",{...ee,className:q,style:X.root,ref:Z,onMouseEnter:E,onMouseLeave:$},g&&n.createElement("div",{className:K,style:X.header},n.createElement("div",{className:Y,style:X.title},g)),n.createElement(f.A,{paragraph:!1,loading:w,className:`${T}-skeleton`,active:!0},n.createElement("div",{className:G,style:{...u,...X.content}},A&&n.createElement("span",{className:Q,style:X.prefix},A),(0,o.Tn)(b)?b(W):W,H&&n.createElement("span",{className:U,style:X.suffix},H))))}),g=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],b=1e3/60,A=e=>{let{value:t,format:a="HH:mm:ss",onChange:l,onFinish:s,type:o,...i}=e,f="countdown"===o,[v,h]=n.useState(null),d=(0,r._q)(()=>{let e=Date.now(),a=new Date(t).getTime();h({});let n=f?a-e:e-a;return l?.(n),!f||!(a<e)||(s?.(),!1)});return n.useEffect(()=>{let e;return e=window.setInterval(()=>{d()||window.clearInterval(e)},b),()=>{window.clearInterval(e)}},[t,f]),n.useEffect(()=>{h({})},[]),n.createElement(p,{...i,value:t,valueRender:e=>(0,c.Ob)(e,{title:void 0}),formatter:(e,t)=>v?function(e,t,a){let{format:n=""}=t,r=new Date(e).getTime(),c=Date.now();return function(e,t){let a=e,n=/\[[^\]]*]/g,r=(t.match(n)||[]).map(e=>e.slice(1,-1)),c=t.replace(n,"[]"),l=g.reduce((e,[t,n])=>{if(e.includes(t)){let r=Math.floor(a/n);return a-=r*n,e.replace(RegExp(`${t}+`,"g"),e=>{let t=e.length;return r.toString().padStart(t,"0")})}return e},c),s=0;return l.replace(n,()=>{let e=r[s];return s+=1,e})}(a?Math.max(r-c,0):Math.max(c-r,0),n)}(e,{...t,format:a},f):"-"})},H=n.memo(e=>n.createElement(A,{...e,type:"countdown"}));p.Timer=A,p.Countdown=H;let w=p},56768:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(97109),r=a(30960),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},63663:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(97109),r=a(21247),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},93314:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(97109),r=a(53234),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))},98995:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z"}}]},name:"block",theme:"outlined"}},99811:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(97109),r=a(14995),c=a(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}let s=n.forwardRef((e,t)=>n.createElement(c.A,l({},e,{ref:t,icon:r.A})))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[795],{27795:(e,l,s)=>{s.r(l),s.d(l,{default:()=>N});var t=s(65321),r=s(97109),i=s(44494),o=s(33442),n=s(85114),c=s(2256),a=s(38770),d=s(68787),x=s(99605),v=s(54849),u=s(11702),h=s(99811),m=s(520),j=s(93314),A=s(13114),y=s(29071),p=s(26631),g=s(84742),f=s(38762),k=s(8579),S=s(32632),w=s(95118),z=s(24810),T=s(6578);function N(){var e,l,s,N,b,C,P,D,M,O,F,I,B,E,_,W,U,L;let R=(0,i.Vr)(),[V,Z]=(0,r.useState)(null),[q,G]=(0,r.useState)(!0),[H,J]=(0,r.useState)(0),[K,Q]=(0,r.useState)(0),[X,Y]=(0,r.useState)(0),[$,ee]=(0,r.useState)(0),[el,es]=(0,r.useState)(null),et=(0,r.useCallback)(async()=>{G(!0);try{let[e,l,s,t,r]=await Promise.all([(0,T.FC)(),(0,T.Z3)().catch(()=>[]),(0,T.lv)().catch(()=>({roles:[],configs:[]})),(0,T.Dl)().catch(()=>({templates:[]})),(0,T.II)().catch(()=>null)]);Z(e),J(Array.isArray(l)?l.length:0);let i=Array.isArray(s.roles)?s.roles:[];Q(i.filter(e=>"file"===e.type).length),Y(i.filter(e=>"prompt"===e.type).length),ee(Array.isArray(t.templates)?t.templates.length:0),es(r)}catch(e){}finally{G(!1)}},[]);(0,r.useEffect)(()=>{et();let e=setInterval(()=>{et()},1e4);return()=>clearInterval(e)},[et]);let er=(null!=(l=null==V?void 0:V.cpu.usagePercent)?l:0)>80?"var(--colorDanger)":(null!=(s=null==V?void 0:V.cpu.usagePercent)?s:0)>50?"var(--colorWarning)":"var(--colorOk)",ei=(null!=(N=null==V?void 0:V.memory.usagePercent)?N:0)>80?"var(--colorDanger)":(null!=(b=null==V?void 0:V.memory.usagePercent)?b:0)>50?"var(--colorWarning)":"var(--colorOk)",eo=(null==V?void 0:V.tasks.total)?Math.round(V.tasks.success/V.tasks.total*100):0,en=null==V||null==(e=V.models)?void 0:e[0],ec=(null==V?void 0:V.logs.latestAt)?new Date(V.logs.latestAt).toLocaleString():"暂无日志";return(0,t.jsxs)("div",{className:"space-y-6 animateFadeIn",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"pageTitle",children:R("overview.title")}),(0,t.jsx)("p",{className:"pageDesc",children:R("overview.description")})]}),(0,t.jsxs)(o.A,{children:[(0,t.jsxs)("span",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["统计更新:",ec]}),(0,t.jsx)(n.Ay,{icon:(0,t.jsx)(h.A,{spin:q}),loading:q,onClick:()=>{et()},children:R("common.retry")})]})]}),(0,t.jsxs)(c.A,{gutter:[16,16],children:[(0,t.jsx)(a.A,{xs:24,sm:12,children:(0,t.jsx)(d.A,{size:"small",title:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.A,{})," CPU"]}),children:(0,t.jsxs)("div",{style:{textAlign:"center"},children:[(0,t.jsx)(x.A,{type:"circle",percent:null!=(C=null==V?void 0:V.cpu.usagePercent)?C:0,size:120,strokeColor:er,format:e=>"".concat(null==e?void 0:e.toFixed(1),"%")}),(0,t.jsxs)("div",{className:"text-xs mt-2",style:{color:"var(--colorTextSecondary)"},children:[null!=(P=null==V?void 0:V.cpu.cores)?P:0," ",R("overview.cores")]})]})})}),(0,t.jsx)(a.A,{xs:24,sm:12,children:(0,t.jsx)(d.A,{size:"small",title:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.A,{})," ",R("overview.memory")]}),children:(0,t.jsxs)("div",{style:{textAlign:"center"},children:[(0,t.jsx)(x.A,{type:"circle",percent:null!=(D=null==V?void 0:V.memory.usagePercent)?D:0,size:120,strokeColor:ei,format:e=>"".concat(e,"%")}),(0,t.jsxs)("div",{className:"text-xs mt-2",style:{color:"var(--colorTextSecondary)"},children:[null!=(M=null==V?void 0:V.memory.processMB)?M:0," MB / ",null!=(O=null==V?void 0:V.memory.totalMB)?O:0," MB"]})]})})})]}),(0,t.jsxs)(c.A,{gutter:[16,16],children:[(0,t.jsx)(a.A,{xs:12,sm:6,children:(0,t.jsx)(d.A,{size:"small",children:(0,t.jsx)(v.A,{title:"运行时间",value:V?Math.floor(V.uptime/3600):0,suffix:"小时",prefix:(0,t.jsx)(A.A,{})})})}),(0,t.jsx)(a.A,{xs:12,sm:6,children:(0,t.jsxs)(d.A,{size:"small",children:[(0,t.jsx)(v.A,{title:R("overview.tokensUsed"),value:null!=(F=null==V?void 0:V.tokens.total)?F:0,prefix:(0,t.jsx)(y.A,{})}),(0,t.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["Prompt ",null!=(I=null==V?void 0:V.tokens.prompt)?I:0," / Completion ",null!=(B=null==V?void 0:V.tokens.completion)?B:0]})]})}),(0,t.jsx)(a.A,{xs:12,sm:6,children:(0,t.jsxs)(d.A,{size:"small",children:[(0,t.jsx)(v.A,{title:R("overview.tasksTotal"),value:null!=(E=null==V?void 0:V.tasks.total)?E:0,prefix:(0,t.jsx)(p.A,{})}),(0,t.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["成功 ",null!=(_=null==V?void 0:V.tasks.success)?_:0," / 失败 ",null!=(W=null==V?void 0:V.tasks.failed)?W:0," / 运行中 ",null!=(U=null==V?void 0:V.tasks.running)?U:0]})]})}),(0,t.jsx)(a.A,{xs:12,sm:6,children:(0,t.jsx)(d.A,{size:"small",children:(0,t.jsx)(v.A,{title:R("overview.successRate"),value:eo,suffix:"%",prefix:eo>80?(0,t.jsx)(g.A,{style:{color:"var(--colorOk)"}}):(0,t.jsx)(f.A,{style:{color:"var(--colorDanger)"}})})})})]}),(0,t.jsx)(d.A,{size:"small",title:"资源概览",children:(0,t.jsxs)(c.A,{gutter:[16,16],children:[(0,t.jsx)(a.A,{xs:24,sm:12,md:8,lg:4,children:(0,t.jsx)(d.A,{size:"small",style:{height:"100%"},children:(0,t.jsx)(v.A,{title:"文件角色",value:K,prefix:(0,t.jsx)(p.A,{style:{color:"var(--colorAccent)"}})})})}),(0,t.jsx)(a.A,{xs:24,sm:12,md:8,lg:4,children:(0,t.jsx)(d.A,{size:"small",style:{height:"100%"},children:(0,t.jsx)(v.A,{title:"提示词角色",value:X,prefix:(0,t.jsx)(k.A,{style:{color:"var(--colorWarning)"}})})})}),(0,t.jsx)(a.A,{xs:24,sm:12,md:8,lg:4,children:(0,t.jsx)(d.A,{size:"small",style:{height:"100%"},children:(0,t.jsx)(v.A,{title:"模板",value:$,prefix:(0,t.jsx)(S.A,{style:{color:"var(--colorDanger)"}})})})}),(0,t.jsx)(a.A,{xs:24,sm:12,md:8,lg:4,children:(0,t.jsxs)(d.A,{size:"small",style:{height:"100%",overflow:"hidden"},children:[(0,t.jsx)(v.A,{title:"语义模型",value:(null==el?void 0:el.provider)==="openai-compatible"?"外部 Embedding":el?"本地语义模型":"—",prefix:(0,t.jsx)(w.A,{style:{color:"var(--colorAccent)"}}),valueStyle:{fontSize:18,whiteSpace:"nowrap"}}),(null==el?void 0:el.model)&&(0,t.jsxs)("div",{className:"text-xs mt-1",style:{color:"var(--colorTextSecondary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:"".concat(el.model).concat(el.dimensions?" \xb7 ".concat(el.dimensions,"维"):""),children:[el.model,el.dimensions?" \xb7 ".concat(el.dimensions,"维"):""]})]})}),(0,t.jsx)(a.A,{xs:24,sm:12,md:8,lg:4,children:(0,t.jsx)(d.A,{size:"small",style:{height:"100%"},children:(0,t.jsx)(v.A,{title:"模型供应商",value:H,prefix:(0,t.jsx)(z.A,{style:{color:"var(--colorAccent)"}})})})}),(0,t.jsx)(a.A,{xs:24,sm:12,md:8,lg:4,children:(0,t.jsx)(d.A,{size:"small",style:{height:"100%"},children:(0,t.jsx)(v.A,{title:"审计日志",value:null!=(L=null==V?void 0:V.logs.events)?L:0,suffix:"条",prefix:(0,t.jsx)(A.A,{style:{color:"var(--colorOk)"}})})})})]})}),(0,t.jsxs)(c.A,{gutter:[16,16],children:[(0,t.jsx)(a.A,{xs:24,sm:12,children:(0,t.jsx)(d.A,{size:"small",title:R("overview.topModel"),style:{height:"100%"},children:en?(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(A.A,{style:{fontSize:24,color:"var(--colorAccent)"}}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-semibold",children:en.model}),(0,t.jsxs)("div",{style:{color:"var(--colorTextSecondary)",fontSize:12},children:["@",en.provider," — ",en.count," ",R("overview.calls")]})]})]}):(0,t.jsx)("span",{style:{color:"var(--colorTextSecondary)"},children:"暂无真实模型调用日志"})})}),(0,t.jsx)(a.A,{xs:24,sm:12,children:(0,t.jsx)(d.A,{size:"small",title:R("overview.taskTypes"),style:{height:"100%"},children:(null==V?void 0:V.tasks.types)&&Object.keys(V.tasks.types).length>0?(0,t.jsx)(o.A,{wrap:!0,children:Object.entries(V.tasks.types).sort((e,l)=>l[1]-e[1]).map(e=>{let[l,s]=e;return(0,t.jsxs)(u.A,{children:[l.slice(0,30),": ",s]},l)})}):(0,t.jsx)("span",{style:{color:"var(--colorTextSecondary)"},children:R("common.noData")})})})]})]})}}}]);
@@ -1,6 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[797],{2256:(e,t,l)=>{l.d(t,{A:()=>r});let r=l(25341).A},38770:(e,t,l)=>{l.d(t,{A:()=>r});let r=l(51916).A},63455:(e,t,l)=>{l.d(t,{A:()=>es});var r=l(55359),n=l(9750),a=l(97109),i=l(67189),o=l(3638),s=l(26047),c=l(84649),u=l(632);function m(e){let[t,l]=a.useState(e);return a.useEffect(()=>{let t=setTimeout(()=>{l(e)},10*!e.length);return()=>{clearTimeout(t)}},[e]),t}var d=l(15561),p=l(7961),h=l(49345),g=l(15437),f=l(28403),$=l(10540);let b=(e,t)=>{let{formItemCls:l}=e;return{[l]:{[`${l}-label > label`]:{height:t},[`${l}-control-input`]:{minHeight:t}}}},v=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),x=(e,t)=>(0,f.oX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),y=(0,$.OF)("Form",(e,{rootPrefixCls:t})=>{let l=x(e,t);return[(e=>{let{componentCls:t}=e;return{[t]:{...(0,p.dF)(e),...(e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,d.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,d.zA)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}))(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...b(e,e.controlHeightSM)},"&-large":{...b(e,e.controlHeightLG)}}}})(l),(e=>{let{formItemCls:t,iconCls:l,rootPrefixCls:r,antCls:n,labelRequiredMarkColor:a,labelColor:i,labelFontSize:o,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:m}=e,[d]=(0,$.PN)(n,"grid");return{[t]:{...(0,p.dF)(e),marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
2
- &-hidden${n}-row`]:{display:"none"},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:o,[`> ${l}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[d("display")]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${n}-switch:only-child, > ${n}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:h.nF,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}})(l),(e=>{let{componentCls:t,motionDurationFast:l,motionEaseInOut:r}=e,n=`${t}-show-help`,a=`${t}-show-help-item`;return{[n]:{transition:`opacity ${l} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(e=>`${e} ${l} ${r}`).join(", ")} !important`,[`&${a}-appear, &${a}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${a}-leave-active`]:{transform:"translateY(-5px)"}}}}})(l),(e=>{let{antCls:t,formItemCls:l}=e;return{[`${l}-horizontal`]:{[`${l}-label`]:{flexGrow:0},[`${l}-control`]:{flex:"1 1 0",minWidth:0},[`${l}-label[class$='-24'], ${l}-label[class*='-24 ']`]:{[`& + ${l}-control`]:{minWidth:"unset"}},[`${t}-col-24${l}-label,
3
- ${t}-col-xl-24${l}-label`]:v(e)}}})(l),(e=>{let{componentCls:t,formItemCls:l,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${l}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${l}-label,
4
- > ${l}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${l}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${l}-has-feedback`]:{display:"inline-block"}}}}})(l),(e=>{let{componentCls:t,formItemCls:l,antCls:r,verticalLabelHeight:n}=e;return{[`${l}-vertical`]:{[`${l}-row`]:{flexDirection:"column"},[`${l}-label > label`]:{height:n},[`${l}-control`]:{width:"100%"},[`${l}-label,
5
- ${r}-col-24${l}-label,
6
- ${r}-col-xl-24${l}-label`]:v(e)},[`@media (max-width: ${(0,d.zA)(e.screenXSMax)})`]:[(e=>{let{componentCls:t,formItemCls:l,rootPrefixCls:r}=e;return{[`${l} ${l}-label`]:v(e),[`${t}:not(${t}-inline)`]:{[l]:{flexWrap:"wrap",[`${l}-label, ${l}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}})(e),{[t]:{[`${l}:not(${l}-horizontal)`]:{[`${r}-col-xs-24${l}-label`]:v(e)}}}],[`@media (max-width: ${(0,d.zA)(e.screenSMMax)})`]:{[t]:{[`${l}:not(${l}-horizontal)`]:{[`${r}-col-sm-24${l}-label`]:v(e)}}},[`@media (max-width: ${(0,d.zA)(e.screenMDMax)})`]:{[t]:{[`${l}:not(${l}-horizontal)`]:{[`${r}-col-md-24${l}-label`]:v(e)}}},[`@media (max-width: ${(0,d.zA)(e.screenLGMax)})`]:{[t]:{[`${l}:not(${l}-horizontal)`]:{[`${r}-col-lg-24${l}-label`]:v(e)}}}}})(l),(0,g.A)(l),h.nF]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??"auto",labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3}),E=[];function w(e,t,l,r=0){return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:l}}let A=({help:e,helpStatus:t,errors:l=E,warnings:d=E,className:p,fieldId:h,onVisibleChanged:g})=>{let{prefixCls:f}=a.useContext(r.hb),{classNames:$,styles:b}=a.useContext(r.cK),v=`${f}-item-explain`,x=(0,u.A)(f),[A,k]=y(f,x),C=a.useMemo(()=>(0,c.A)(f),[f]),S=m(l),F=m(d),M=(0,s.R)(e)&&!1!==e,N=a.useMemo(()=>M?[w(e,"help",t)]:[].concat((0,n.A)(S.map((e,t)=>w(e,"error","error",t))),(0,n.A)(F.map((e,t)=>w(e,"warning","warning",t)))),[e,t,M,S,F]),z=a.useMemo(()=>{let e={};return N.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),N.map((t,l)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${l}`:t.key}))},[N]),I={};return h&&(I.id=`${h}_help`),a.createElement(i.Ay,{motionDeadline:C.motionDeadline,motionName:`${f}-show-help`,visible:!!z.length,onVisibleChanged:g},e=>{let{className:t,style:l}=e;return a.createElement("div",{...I,className:(0,o.$)(v,t,$?.help,k,x,p,A),style:{...b?.help,...l}},a.createElement(i.aF,{keys:z,...(0,c.A)(f),motionName:`${f}-show-help-item`,component:!1},e=>{let{key:t,error:l,errorStatus:r,className:n,style:i}=e;return a.createElement("div",{key:t,className:(0,o.$)(n,$?.helpItem,{[`${v}-${r}`]:r}),style:{...b?.helpItem,...i}},l)}))})};var k=l(4932),C=l(92162),S=l(74567),F=l(6831),M=l(27273),N=l(53172),z=l(10218),I=l(99381);let T=a.forwardRef((e,t)=>{let l=a.useContext(F.A),{getPrefixCls:n,direction:i,requiredMark:c,colon:m,scrollToFirstError:d,className:p,style:h,styles:g,classNames:f,tooltip:$,labelAlign:b,labelWrap:v}=(0,S.TP)("form"),{prefixCls:x,className:E,rootClassName:w,size:A,disabled:T=l,form:H,colon:P,labelAlign:R,labelWrap:W,labelCol:q,wrapperCol:O,layout:_="horizontal",scrollToFirstError:B,requiredMark:D,onFinishFailed:X,name:L,style:K,feedbackIcons:V,variant:j,classNames:G,styles:Q,tooltip:J,...Y}=e,Z=(0,M.A)(A),U=a.useContext(I.A),ee=a.useMemo(()=>void 0!==D?D:void 0===c||c,[D,c]),et=P??m,el=R??b,er=W??v,en={...$,...J},ea=n("form",x),ei=(0,u.A)(ea),[eo,es]=y(ea,ei),ec={...e,size:Z,disabled:T,layout:_,colon:et,requiredMark:ee,labelAlign:el,labelWrap:er},eu=(0,C.XT)(h),em=(0,C.XT)(K),[ed,ep]=(0,C.AV)([f,G],[g,eu,Q,em],{props:ec}),eh=(0,o.$)(ea,`${ea}-${_}`,{[`${ea}-hide-required-mark`]:!1===ee,[`${ea}-rtl`]:"rtl"===i,[`${ea}-large`]:"large"===Z,[`${ea}-small`]:"small"===Z},es,ei,eo,p,E,w,ed.root),[eg]=(0,z.A)(H),{__INTERNAL__:ef}=eg;ef.name=L;let e$=a.useMemo(()=>({name:L,labelAlign:el,labelCol:q,labelWrap:er,wrapperCol:O,layout:_,colon:et,requiredMark:ee,itemRef:ef.itemRef,form:eg,feedbackIcons:V,tooltip:en,classNames:ed,styles:ep}),[L,el,er,q,O,_,et,ee,eg,V,ed,ep,en]),eb=a.useRef(null);a.useImperativeHandle(t,()=>({...eg,nativeElement:eb.current?.nativeElement}));let ev=(e,t)=>{if(e){let l={block:"nearest"};(0,s.Qd)(e)&&(l={...l,...e}),eg.scrollToField(t,l)}};return a.createElement(r.Pp.Provider,{value:j},a.createElement(F.X,{disabled:T},a.createElement(N.A.Provider,{value:Z},a.createElement(r.Op,{validateMessages:U},a.createElement(r.cK.Provider,{value:e$},a.createElement(r.XB,{status:!0},a.createElement(k.Ay,{id:L,...Y,name:L,onFinishFailed:e=>{if(X?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(void 0!==B)return void ev(B,t);void 0!==d&&ev(d,t)}},form:eg,ref:eb,style:ep?.root,className:eh})))))))});var H=l(42644),P=l(52690),R=l(29633);let W=()=>{let{status:e,errors:t=[],warnings:l=[]}=a.useContext(r.$W);return{status:e,errors:t,warnings:l}};W.Context=r.$W;var q=l(44624),O=l(25341),_=l(19135),B=l(51916);let D=(0,$.bf)(["Form","item-item"],(e,{rootPrefixCls:t})=>(e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}})(x(e,t))),X=e=>{let{prefixCls:t,status:l,labelCol:i,wrapperCol:c,children:u,errors:m,warnings:d,_internalItemRender:p,extra:h,help:g,fieldId:f,marginBottom:$,onErrorVisibleChanged:b,label:v}=e,x=`${t}-item`,y=a.useContext(r.cK),{classNames:E,styles:w}=y,k=a.useMemo(()=>{let e={...c||y.wrapperCol||{}};return null!==v||i||c||!y.labelCol||[void 0].concat((0,n.A)(_.Gl)).forEach(t=>{let l=t?[t]:[],r=(0,H.Jt)(y.labelCol,l),n=(0,s.Qd)(r)?r:{},a=(0,H.Jt)(e,l),i=(0,s.Qd)(a)?a:{};"span"in n&&!("offset"in i)&&n.span<24&&(e=(0,H.hZ)(e,[].concat(l,["offset"]),n.span))}),e},[c,y.wrapperCol,y.labelCol,v,i]),C=(0,o.$)(`${x}-control`,k.className),S=a.useMemo(()=>{let{labelCol:e,wrapperCol:t,...l}=y;return l},[y]),F=a.useRef(null),[M,N]=a.useState(0);(0,H.Nf)(()=>{h&&F.current?N(F.current.clientHeight):N(0)},[h]);let z=a.createElement("div",{className:`${x}-control-input`},a.createElement("div",{className:(0,o.$)(`${x}-control-input-content`,E?.content),style:w?.content},u)),I=a.useMemo(()=>({prefixCls:t,status:l}),[t,l]),T=null!==$||m.length||d.length?a.createElement(r.hb.Provider,{value:I},a.createElement(A,{fieldId:f,errors:m,warnings:d,help:g,helpStatus:l,className:`${x}-explain-connected`,onVisibleChanged:b})):null,P={};f&&(P.id=`${f}_extra`);let R=h?a.createElement("div",{...P,className:(0,o.$)(`${x}-extra`,E?.extra),style:w?.extra,ref:F},h):null,W=T||R?a.createElement("div",{className:`${x}-additional`,style:$?{minHeight:$+M}:{}},T,R):null,q=p&&"pro_table_render"===p.mark&&p.render?p.render(e,{input:z,errorList:T,extra:R}):a.createElement(a.Fragment,null,z,W);return a.createElement(r.cK.Provider,{value:S},a.createElement(B.A,{...k,className:C},q),a.createElement(D,{prefixCls:t}))};var L=l(83230),K=l(88483);function V(){return(V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(this,arguments)}let j=a.forwardRef((e,t)=>a.createElement(K.A,V({},e,{ref:t,icon:L.A})));var G=l(69925),Q=l(79287),J=l(14932);let Y=({prefixCls:e,label:t,htmlFor:l,labelCol:n,labelAlign:i,colon:c,required:u,requiredMark:m,tooltip:d,vertical:p})=>{let h,[g]=(0,G.A)("Form"),{labelAlign:f,labelCol:$,labelWrap:b,colon:v,classNames:x,styles:y,tooltip:E}=a.useContext(r.cK);if(!t)return null;let w=n||$||{},A=`${e}-item-label`,k=(0,o.$)(A,"left"===(i||f)&&`${A}-left`,w.className,{[`${A}-wrap`]:!!b}),C=t,S=!0===c||!1!==v&&!1!==c;S&&!p&&"string"==typeof t&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));let F=((e,t)=>(0,s.AZ)(e)?(0,s.Qd)(e)&&!(0,a.isValidElement)(e)?{...t,...e}:{...t,title:e}:null)(d,E);if(F){let t=a.createElement(J.A,{...F},a.createElement("span",{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},F.icon||F.children||a.createElement(j,null)));C=a.createElement(a.Fragment,null,C,t)}let M="optional"===m,N=(0,s.Tn)(m),z=!1===m;N?C=m(C,{required:!!u}):M&&!u&&(C=a.createElement(a.Fragment,null,C,a.createElement("span",{className:`${e}-item-optional`},g?.optional||Q.A.Form?.optional))),z?h="hidden":(M||N)&&(h="optional");let I=(0,o.$)(x?.label,{[`${e}-item-required`]:u,[`${e}-item-required-mark-${h}`]:h,[`${e}-item-no-colon`]:!S});return a.createElement(B.A,{...w,className:k},a.createElement("label",{htmlFor:l,className:I,style:y?.label,title:"string"==typeof t?t:void 0},C))};var Z=l(59188),U=l(4216),ee=l(97137),et=l(83914);let el={success:Z.A,warning:ee.A,error:U.A,validating:et.A},er=function({children:e,errors:t,warnings:l,hasFeedback:n,validateStatus:i,prefixCls:s,meta:c,noStyle:u,name:m}){let d=`${s}-item`,{feedbackIcons:p}=a.useContext(r.cK),h=(0,q.BS)(t,l,c,null,!!n,i),{isFormItemInput:g,status:f,hasFeedback:$,feedbackIcon:b,name:v}=a.useContext(r.$W),x=a.useMemo(()=>{let e;if(n){let r=!0!==n&&n.icons||p,i=h&&r?.({status:h,errors:t,warnings:l})?.[h],s=h?el[h]:null;e=!1!==i&&s?a.createElement("span",{className:(0,o.$)(`${d}-feedback-icon`,`${d}-feedback-icon-${h}`)},i||a.createElement(s,null)):null}let r={status:h||"",errors:t,warnings:l,hasFeedback:!!n,feedbackIcon:e,isFormItemInput:!0,name:m};return u&&(r.status=(h??f)||"",r.isFormItemInput=g,r.hasFeedback=!!(n??$),r.feedbackIcon=void 0!==n?r.feedbackIcon:b,r.name=m??v),r},[h,n,u,g,f]);return a.createElement(r.$W.Provider,{value:x},e)};function en(e){let{prefixCls:t,className:l,rootClassName:n,style:i,help:c,errors:u,warnings:d,validateStatus:p,meta:h,hasFeedback:g,hidden:f,children:$,fieldId:b,required:v,isRequired:x,onSubItemMetaChange:y,layout:E,name:w,...A}=e,k=`${t}-item`,{requiredMark:C,layout:S}=a.useContext(r.cK),F=E||S,M="vertical"===F,N=a.useRef(null),z=m(u),I=m(d),T=(0,s.R)(c)&&!1!==c,P=!!(T||u.length||d.length),R=!!N.current&&(0,H.zN)(N.current),[W,_]=a.useState(null);(0,H.Nf)(()=>{P&&N.current&&_(Number.parseInt(getComputedStyle(N.current).marginBottom,10))},[P,R]);let B=((e=!1)=>{let t=e?z:h.errors,l=e?I:h.warnings;return(0,q.BS)(t,l,h,"",!!g,p)})(),D=(0,o.$)(k,l,n,{[`${k}-with-help`]:T||z.length||I.length,[`${k}-has-feedback`]:B&&g,[`${k}-has-success`]:"success"===B,[`${k}-has-warning`]:"warning"===B,[`${k}-has-error`]:"error"===B,[`${k}-is-validating`]:"validating"===B,[`${k}-hidden`]:f,[`${k}-${F}`]:F});return a.createElement("div",{className:D,style:i,ref:N},a.createElement(O.A,{className:`${k}-row`,...(0,H.cJ)(A,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},a.createElement(Y,{htmlFor:b,...e,requiredMark:C,required:v??x,prefixCls:t,vertical:M}),a.createElement(X,{...e,...h,errors:z,warnings:I,prefixCls:t,status:B,help:c,marginBottom:W,onErrorVisibleChanged:e=>{e||_(null)}},a.createElement(r.jC.Provider,{value:y},a.createElement(er,{prefixCls:t,meta:h,errors:h.errors,warnings:h.warnings,hasFeedback:g,validateStatus:B,name:w},$)))),!!W&&a.createElement("div",{className:`${k}-margin-offset`,style:{marginBottom:-W}}))}let ea=a.memo(e=>e.children,(e,t)=>(function(e,t){let l=Object.keys(e),r=Object.keys(t);return l.length===r.length&&l.every(l=>{let r=e[l],n=t[l];return r===n||(0,s.Tn)(r)||(0,s.Tn)(n)})})(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,l)=>e===t.childProps[l]));function ei(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}let eo=function(e){let{name:t,noStyle:l,className:i,dependencies:c,prefixCls:m,shouldUpdate:d,rules:p,children:h,required:g,label:f,messageVariables:$,trigger:b="onChange",validateTrigger:v,hidden:x,help:E,layout:w}=e,{getPrefixCls:A}=a.useContext(S.QO),{name:C}=a.useContext(r.cK),F=(e=>{if((0,s.Tn)(e))return e;let t=(0,H.$r)(e);return t.length<=1?t[0]:t})(h),M=(0,s.Tn)(F),N=a.useContext(r.jC),{validateTrigger:z}=a.useContext(k._z),I=(0,s.R)(v)?v:z,T=(0,s.R)(t),W=A("form",m),O=(0,u.A)(W),[_,B]=y(W,O);(0,R.rJ)("Form.Item");let D=a.useContext(k.EF),X=a.useRef(null),[L,K]=function(e){let[t,l]=a.useState(e),r=a.useRef(null),n=a.useRef([]),i=a.useRef(!1);return a.useEffect(()=>(i.current=!1,()=>{i.current=!0,H.er.cancel(r.current),r.current=null}),[]),[t,function(e){i.current||(null===r.current&&(n.current=[],r.current=(0,H.er)(()=>{r.current=null,l(e=>{let t=e;return n.current.forEach(e=>{t=e(t)}),t})})),n.current.push(e))}]}({}),[V,j]=(0,H.J0)(()=>ei()),G=(e,t)=>{K(l=>{let r={...l},a=[].concat((0,n.A)(e.name.slice(0,-1)),(0,n.A)(t)).join("__SPLIT__");return e.destroy?delete r[a]:r[a]=e,r})},[Q,J]=a.useMemo(()=>{let e=(0,n.A)(V.errors),t=(0,n.A)(V.warnings);return Object.values(L).forEach(l=>{e.push.apply(e,(0,n.A)(l.errors||[])),t.push.apply(t,(0,n.A)(l.warnings||[]))}),[e,t]},[L,V.errors,V.warnings]),Y=(()=>{let{itemRef:e}=a.useContext(r.cK),t=a.useRef({});return(l,r)=>{let n=r&&(0,s.Qd)(r)&&(0,H.A9)(r),a=l.join("_");return(t.current.name!==a||t.current.originRef!==n)&&(t.current.name=a,t.current.originRef=n,t.current.ref=(0,H.K4)(e(l),n)),t.current.ref}})();function Z(r,n,s){return l&&!x?a.createElement(er,{prefixCls:W,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:V,errors:Q,warnings:J,noStyle:!0,name:t},r):a.createElement(en,{key:"row",...e,className:(0,o.$)(i,B,O,_),prefixCls:W,fieldId:n,isRequired:s,errors:Q,warnings:J,meta:V,onSubItemMetaChange:G,layout:w,name:t},r)}if(!T&&!M&&!c)return Z(F);let U={};return"string"==typeof f?U.label=f:t&&(U.label=String(t)),$&&(U={...U,...$}),a.createElement(k.D0,{...e,messageVariables:U,trigger:b,validateTrigger:I,onMetaChange:e=>{let t=D?.getKey(e.name);if(j(e.destroy?ei():e,!0),l&&!1!==E&&N){let l=e.name;if(e.destroy)l=X.current||l;else if(void 0!==t){let[e,r]=t;X.current=l=[e].concat((0,n.A)(r))}N(e,l)}}},(l,r,i)=>{let o=(0,q.$r)(t).length&&r?r.name:[],u=(0,q.kV)(o,C),m=void 0!==g?g:p?.some(e=>{if((0,s.Qd)(e)&&e.required&&!e.warningOnly)return!0;if((0,s.Tn)(e)){let t=e(i);return t?.required&&!t?.warningOnly}return!1}),h={...l},f=null;if(Array.isArray(F)&&T)f=F;else if(M&&(!(d||c)||T));else if(!c||M||T)if(a.isValidElement(F)){let t={...F.props,...h};if(t.id||(t.id=u),E||Q.length>0||J.length>0||e.extra){let l=[];(E||Q.length>0)&&l.push(`${u}_help`),e.extra&&l.push(`${u}_extra`),t["aria-describedby"]=l.join(" ")}Q.length>0&&(t["aria-invalid"]="true"),m&&(t["aria-required"]="true"),(0,H.f3)(F)&&(t.ref=Y(o,F)),new Set([].concat((0,n.A)((0,q.$r)(b)),(0,n.A)((0,q.$r)(I)))).forEach(e=>{t[e]=(...t)=>{h[e]?.(...t),F.props[e]?.(...t)}});let l=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];f=a.createElement(ea,{control:h,update:F,childProps:l},(0,P.Ob)(F,t))}else f=M&&(d||c)&&!T?F(i):F;return Z(f,u,m)})};eo.useStatus=W,T.Item=eo,T.List=({prefixCls:e,children:t,...l})=>{let{getPrefixCls:n}=a.useContext(S.QO),i=n("form",e),o=a.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return a.createElement(k.B8,{...l},(e,l,n)=>a.createElement(r.hb.Provider,{value:o},t(e.map(e=>({...e,fieldKey:e.key})),l,{errors:n.errors,warnings:n.warnings})))},T.ErrorList=A,T.useForm=z.A,T.useFormInstance=function(){let{form:e}=a.useContext(r.cK);return e},T.useWatch=k.FH,T.Provider=r.Op;let es=T},83230:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[861],{9137:(e,t,n)=>{n.d(t,{Ay:()=>I});var o=n(9750),r=n(97109),l=n(42644),i=n(10252),a=n(74567),s=n(48921),c=n(98379),d=n(3638),p=n(632),m=n(34475),u=n(52093),f=n(60815),g=n(5741);let $=null,y=e=>e(),h=[],v={};function E(){let{getContainer:e,duration:t,rtl:n,maxCount:o,top:r,stack:l}=v,i=e?.()||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:o,top:r,stack:l}}let C=r.forwardRef((e,t)=>{let{messageConfig:n,sync:o}=e,{getPrefixCls:l}=(0,r.useContext)(a.QO),s=v.prefixCls||l("message"),c=(0,r.useContext)(i.B),[d,p]=(0,f.y)({...n,prefixCls:s,...c.message});return r.useImperativeHandle(t,()=>{let e={...d};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(o(),d[t].apply(d,e))}),{instance:e,sync:o}}),p}),b=r.forwardRef((e,t)=>{let[n,o]=r.useState(E),l=()=>{o(E)};r.useEffect(l,[]);let i=(0,s.cr)(),a=i.getRootPrefixCls(),c=i.getIconPrefixCls(),d=i.getTheme(),p=r.createElement(C,{ref:t,sync:l,messageConfig:n});return r.createElement(s.Ay,{prefixCls:a,iconPrefixCls:c,theme:d},i.holderRender?i.holderRender(p):p)}),w=()=>{if(!$){let e=document.createDocumentFragment(),t={fragment:e};$=t,y(()=>{(0,l.XX)(r.createElement(b,{ref:e=>{let{instance:n,sync:o}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,w())})}}),e)});return}$.instance&&(h.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":y(()=>{let t=$.instance.open({...v,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case"destroy":y(()=>{$?.instance.destroy(e.key)});break;default:y(()=>{var n;let r=(n=$.instance)[t].apply(n,(0,o.A)(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),h=[])},A={open:function(e){let t=(0,g.E)(t=>{let n,o={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return h.push(o),()=>{n?y(()=>{n()}):o.skipped=!0}});return w(),t},destroy:e=>{h.push({type:"destroy",key:e}),w()},config:function(e){v={...v,...e},y(()=>{$?.sync?.()})},useMessage:f.A,_InternalPanelDoNotUseOrYouWillBeFired:m.Ay,_InternalListDoNotUseOrYouWillBeFired:e=>{let{items:t,classNames:n,style:o}=e,{getPrefixCls:l}=(0,a.TP)("message"),i=l("message"),s=(0,p.A)(i),[f,g]=(0,u.A)(i,s),$=`${i}-notice`,y=t.map(e=>{let{content:t,duration:n,key:o,type:r}=e,l=r?`${$}-icon-${r}`:void 0;return{key:o,duration:n,icon:(0,m.HC)(r),title:t,className:`${$}-${r}`,classNames:{wrapper:`${i}-${r}`,icon:l}}});return r.createElement(c.qb,{prefixCls:i,placement:"top",configList:y,className:(0,d.$)(f,g,s),classNames:{...n,wrapper:n?.wrapper,title:n?.title},style:o,stack:!1})}};["success","info","warning","error","loading"].forEach(e=>{A[e]=(...t)=>(function(e,t){(0,s.cr)();let n=(0,g.E)(n=>{let o,r={type:e,args:t,resolve:n,setCloseFn:e=>{o=e}};return h.push(r),()=>{o?y(()=>{o()}):r.skipped=!0}});return w(),n})(e,t)});let I=A},85493:(e,t,n)=>{n.d(t,{A:()=>R});var o=n(97109),r=n(59188),l=n(4216),i=n(45042),a=n(97137),s=n(62188),c=n(67189),d=n(42644),p=n(3638),m=n(92162),u=n(26047),f=n(74567),g=n(15561),$=n(7961),y=n(10540);let h=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),v=(0,y.OF)("Alert",e=>[(e=>{let{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:l,fontSizeLG:i,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:p,colorTextHeading:m,withDescriptionPadding:u,defaultPadding:f,lineWidth:y,lineType:h,colorSuccessBorder:v,colorWarningBorder:E,colorErrorBorder:C,colorInfoBorder:b}=e;return{[t]:{...(0,$.dF)(e),position:"relative",display:"flex",alignItems:"center",padding:f,wordWrap:"break-word",borderRadius:s,borderWidth:(0,g.zA)(y),borderStyle:h,[`&${t}-success`]:{borderColor:v},[`&${t}-info`]:{borderColor:b},[`&${t}-warning`]:{borderColor:E},[`&${t}-error`]:{borderColor:C},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:a},"&-title":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(e=>`${e} ${n} ${c}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:u,[`${t}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:o,color:m,fontSize:i},[`${t}-description`]:{display:"block",color:p}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}})(e),(e=>{let{componentCls:t,colorSuccess:n,colorSuccessBg:o,colorWarning:r,colorWarningBg:l,colorError:i,colorErrorBg:a,colorInfo:s,colorInfoBg:c}=e;return{[t]:{"&-success":h(o,n,t),"&-info":h(c,s,t),"&-warning":h(l,r,t),"&-error":{...h(a,i,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}})(e),(e=>{let{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:l,colorIcon:i,colorIconHover:a}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:l,lineHeight:(0,g.zA)(l),backgroundColor:"transparent",border:"none",cursor:"pointer",...(0,$.K8)(e),[`${n}-close`]:{color:i,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:i,transition:`color ${o}`,"&:hover":{color:a}}}}})(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),E=e=>{let{icon:t,type:n,className:i,style:c,successIcon:d,infoIcon:p,warningIcon:m,errorIcon:u}=e,f={success:d??o.createElement(r.A,null),info:p??o.createElement(s.A,null),error:u??o.createElement(l.A,null),warning:m??o.createElement(a.A,null)};return o.createElement("span",{className:i,style:c},t??f[n])},C=e=>{let{isClosable:t,prefixCls:n,closeIcon:r,handleClose:l,ariaProps:a,className:s,style:c}=e,d=!0===r||void 0===r?o.createElement(i.A,null):r;return t?o.createElement("button",{type:"button",onClick:l,className:(0,p.$)(`${n}-close-icon`,s),tabIndex:0,style:c,...a},d):null},b=o.forwardRef((e,t)=>{let{description:n,prefixCls:r,message:l,title:i,banner:a,className:s,rootClassName:g,style:$,onMouseEnter:y,onMouseLeave:h,onClick:b,afterClose:w,showIcon:A,closable:I,closeText:x,closeIcon:k,action:N,id:S,styles:R,classNames:H,...P}=e,z=i??l,[F,M]=o.useState(!1),B=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:B.current}));let{getPrefixCls:D,direction:L,variant:Q,closable:T,closeIcon:_,className:O,style:W,classNames:X,styles:K,successIcon:j,infoIcon:G,warningIcon:U,errorIcon:V}=(0,f.TP)("alert"),Y=D("alert",r),[q,J]=v(Y),{onClose:Z,afterClose:ee}=(0,u.Qd)(I)?I:{},et=t=>{M(!0),(Z??e.onClose)?.(t)},en=o.useMemo(()=>void 0!==e.type?e.type:a?"warning":"info",[e.type,a]),eo=e.variant??Q??"outlined",er=o.useMemo(()=>!!(0,u.Qd)(I)&&!!I.closeIcon||!!x||("boolean"==typeof I?I:!!(!1!==k&&(0,u.R)(k))||!!T),[x,k,I,T]),el=!!a&&void 0===A||A,ei={...e,prefixCls:Y,variant:eo,type:en,showIcon:el,closable:er},ea=(0,m.XT)(W),es=(0,m.XT)($),[ec,ed]=(0,m.AV)([X,H],[K,ea,R,es],{props:ei}),ep=(0,p.$)(Y,`${Y}-${en}`,`${Y}-${eo}`,{[`${Y}-with-description`]:!!n,[`${Y}-no-icon`]:!el,[`${Y}-banner`]:!!a,[`${Y}-rtl`]:"rtl"===L},O,s,g,ec.root,J,q),em=(0,d.KE)(P,{aria:!0,data:!0}),eu=o.useMemo(()=>(0,u.Qd)(I)&&I.closeIcon?I.closeIcon:x||(void 0!==k?k:(0,u.Qd)(T)&&T.closeIcon?T.closeIcon:_),[k,I,T,x,_]),ef=o.useMemo(()=>{let e=I??T;return(0,u.Qd)(e)?(0,d.KE)(e,{data:!0,aria:!0}):{}},[I,T]);return o.createElement(c.Ay,{visible:!F,motionName:`${Y}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:ee??w},({className:t,style:r},l)=>o.createElement("div",{id:S,ref:(0,d.K4)(B,l),"data-show":!F,className:(0,p.$)(ep,t),style:{...ed.root,...r},onMouseEnter:y,onMouseLeave:h,onClick:b,role:"alert",...em},el?o.createElement(E,{className:(0,p.$)(`${Y}-icon`,ec.icon),style:ed.icon,description:n,icon:e.icon,prefixCls:Y,type:en,successIcon:j,infoIcon:G,warningIcon:U,errorIcon:V}):null,o.createElement("div",{className:(0,p.$)(`${Y}-section`,ec.section),style:ed.section},z?o.createElement("div",{className:(0,p.$)(`${Y}-title`,ec.title),style:ed.title},z):null,n?o.createElement("div",{className:(0,p.$)(`${Y}-description`,ec.description),style:ed.description},n):null),N?o.createElement("div",{className:(0,p.$)(`${Y}-actions`,ec.actions),style:ed.actions},N):null,o.createElement(C,{className:ec.close,style:ed.close,isClosable:er,prefixCls:Y,closeIcon:eu,handleClose:et,ariaProps:ef})))});var w=n(41113),A=n(49939),I=n(90218),x=n(13076),k=n(83784),N=n(15472);let S=function(e){function t(){var e,n,o;return(0,w.A)(this,t),n=t,o=arguments,n=(0,I.A)(n),(e=(0,k.A)(this,(0,x.A)()?Reflect.construct(n,o||[],(0,I.A)(this).constructor):n.apply(this,o))).state={error:void 0,info:{}},e}return(0,N.A)(t,e),(0,A.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,title:t,description:n,id:r,children:l}=this.props,{error:i,info:a}=this.state,s=t??e,c=a?.componentStack||null,d=(0,u.R)(s)?s:i?.toString(),p=(0,u.R)(n)?n:c;return i?o.createElement(b,{id:r,type:"error",title:d,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},p)}):l}}])}(o.PureComponent);b.ErrorBoundary=S;let R=b}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[938],{48318:(e,t,n)=>{n.d(t,{A:()=>ed});var r=n(97109),i=n(60470),a=n(63890),o=n(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let s=r.forwardRef((e,t)=>r.createElement(o.A,l({},e,{ref:t,icon:a.A})));var c=n(54746),u=n(96651),d=n(41113),p=n(49939),m=n(70895),f=n(8572);function g(){return"function"==typeof BigInt}function h(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function v(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),a=i[0]||"0",o=i[1]||"0";"0"===a&&"0"===o&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:o,fullStr:"".concat(l).concat(r)}}function b(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function $(e){var t=e.toLowerCase().split("e"),n=(0,f.A)(t,2),r=n[0],i=n[1],a=r.startsWith("-"),o=(a?r.slice(1):r).split("."),l=(0,f.A)(o,2),s=l[0],c=void 0===s?"0":s,u=l[1],d=void 0===u?"":u,p="".concat(c).concat(d).replace(/^0+/,"")||"0";return{decimal:d,digits:p,exponent:Number(void 0===i?"0":i),integer:c,negative:a}}function N(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function y(e){var t=String(e);return b(e)?N($(t)):t.includes(".")&&S(t)?t.length-t.indexOf(".")-1:0}function E(e){var t=String(e);if(b(e)){if(e>Number.MAX_SAFE_INTEGER)return String(g()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(g()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=$(t),r=N(n);t=r>100?function(e){var t=e.decimal,n=e.digits,r=e.exponent,i=e.integer,a=e.negative;if("0"===n)return"0";var o=i.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,s=(o||-l)+r,c="";return c=s<=0?"0.".concat("0".repeat(-s)).concat(n):s>=n.length?"".concat(n).concat("0".repeat(s-n.length)):"".concat(n.slice(0,s),".").concat(n.slice(s)),"".concat(a?"-":"").concat(c)}(n):e.toFixed(r)}return v(t).fullStr}function S(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var A=function(){function e(t){if((0,d.A)(this,e),(0,m.A)(this,"origin",""),(0,m.A)(this,"negative",void 0),(0,m.A)(this,"integer",void 0),(0,m.A)(this,"decimal",void 0),(0,m.A)(this,"decimalLen",void 0),(0,m.A)(this,"empty",void 0),(0,m.A)(this,"nan",void 0),h(t)){this.empty=!0;return}if(this.origin=String(t),"-"===t||Number.isNaN(t)){this.nan=!0;return}var n=t;if(b(n)&&(n=Number(n)),S(n="string"==typeof n?n:E(n))){var r=v(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var a=i[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return(0,p.A)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){return BigInt("".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0")))}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),o=r(i),l=v(a),s=l.negativeStr,c=l.trimStr,u="".concat(s).concat(c.padStart(o+1,"0"));return new e("".concat(u.slice(0,-o),".").concat(u.slice(-o)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return 0>=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":v("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),w=function(){function e(t){if((0,d.A)(this,e),(0,m.A)(this,"origin",""),(0,m.A)(this,"number",void 0),(0,m.A)(this,"empty",void 0),h(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return(0,p.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(y(this.number),y(n));return new e(r.toFixed(i))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(y(this.number),y(n));return new e(r.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return 0>=this.add(e.negate().toString()).toNumber()}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return e?this.isInvalidate()?"":b(this.number)&&y(this.number)>100?String(this.number):E(this.number):this.origin}}]),e}();function I(e){return g()?new A(e):new w(e)}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var i=v(e),a=i.negativeStr,o=i.integerStr,l=i.decimalStr,s="".concat(t).concat(l),c="".concat(a).concat(o);if(n>=0){var u=Number(l[n]);return u>=5&&!r?k(I(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}var x=n(73473),M=n(3638),C=n(96546),R=n(49127);function B({prefixCls:e,action:t,children:n,disabled:i,className:a,style:o,onStep:l}){let s="up"===t,c=r.useRef(),u=r.useRef([]),d=()=>{clearTimeout(c.current)};r.useEffect(()=>()=>{d(),u.current.forEach(e=>{R.A.cancel(e)})},[]);let p=`${e}-action`,m=(0,M.$)(p,`${p}-${t}`,{[`${p}-${t}-disabled`]:i},a),f=()=>u.current.push((0,R.A)(d));return r.createElement("span",{unselectable:"on",role:"button",onMouseUp:f,onMouseLeave:f,onMouseDown:e=>{e.preventDefault(),d(),l(s,"handler"),c.current=setTimeout(function e(){l(s,"handler"),c.current=setTimeout(e,200)},600)},"aria-label":s?"Increase Value":"Decrease Value","aria-disabled":i,className:m,style:o},n||r.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function _(e){let t="number"==typeof e?E(e):v(e).fullStr;return t.includes(".")?v(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var z=n(42644),F=n(64213);function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let T=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),O=e=>{let t=I(e);return t.isInvalidate()?null:t},H=r.forwardRef((e,t)=>{let{mode:n="input",prefixCls:i="rc-input-number",className:a,style:o,classNames:l,styles:s,min:c,max:u,step:d=1,defaultValue:p,value:m,disabled:f,readOnly:g,upHandler:h,downHandler:v,keyboard:b,changeOnWheel:$=!1,controls:N=!0,prefix:A,suffix:w,stringMode:H,parser:W,formatter:P,precision:L,decimalSeparator:G,onChange:q,onInput:j,onPressEnter:X,onStep:V,onMouseDown:U,onClick:Q,onMouseUp:K,onMouseLeave:Y,onMouseMove:J,onMouseEnter:Z,onMouseOut:ee,changeOnBlur:et=!0,...en}=e,[er,ei]=r.useState(!1),ea=r.useRef(!1),eo=r.useRef(!1),el=r.useRef(!1),es=r.useRef(null),ec=r.useRef(null);r.useImperativeHandle(t,()=>(function(e,t){return"undefined"!=typeof Proxy&&e?new Proxy(e,{get(e,n){if(t[n])return t[n];let r=e[n];return"function"==typeof r?r.bind(e):r}}):e})(ec.current,{focus:e=>{(0,F.F4)(ec.current,e)},blur:()=>{ec.current?.blur()},nativeElement:es.current}));let[eu,ed]=r.useState(()=>I(m??p)),ep=r.useCallback((e,t)=>{if(!t)return L>=0?L:Math.max(y(e),y(d))},[L,d]),em=r.useCallback(e=>{let t=String(e);if(W)return W(t);let n=t;return G&&(n=n.replace(G,".")),n.replace(/[^\w.-]+/g,"")},[W,G]),ef=r.useRef(""),eg=r.useCallback((e,t)=>{if(P)return P(e,{userTyping:t,input:String(ef.current)});let n="number"==typeof e?E(e):e;if(!t){let e=ep(n,t);S(n)&&(G||e>=0)&&(n=k(n,G||".",e))}return n},[P,ep,G]),[eh,ev]=r.useState(()=>{let e=p??m;return eu.isInvalidate()&&["string","number"].includes(typeof e)?Number.isNaN(e)?"":e:eg(eu.toString(),!1)});function eb(e,t){ev(eg(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ef.current=eh;let e$=r.useMemo(()=>O(u),[u,L]),eN=r.useMemo(()=>O(c),[c,L]),ey=r.useMemo(()=>!(!e$||!eu||eu.isInvalidate())&&e$.lessEquals(eu),[e$,eu]),eE=r.useMemo(()=>!(!eN||!eu||eu.isInvalidate())&&eu.lessEquals(eN),[eN,eu]),[eS,eA]=function(e,t){let n=(0,r.useRef)(null);return[function(){try{let{selectionStart:t,selectionEnd:r,value:i}=e,a=i.substring(0,t),o=i.substring(r);n.current={start:t,end:r,value:i,beforeTxt:a,afterTxt:o}}catch(e){}},function(){if(e&&n.current&&t)try{let{value:t}=e,{beforeTxt:r,afterTxt:i,start:a}=n.current,o=t.length;if(t.startsWith(r))o=r.length;else if(t.endsWith(i))o=t.length-n.current.afterTxt.length;else{let e=r[a-1],n=t.indexOf(e,a-1);-1!==n&&(o=n+1)}e.setSelectionRange(o,o)}catch(e){(0,C.Ay)(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}]}(ec.current,er),ew=e=>e$&&!e.lessEquals(e$)?e$:eN&&!eN.lessEquals(e)?eN:null,eI=e=>!ew(e),ek=(e,t)=>{let n=e,r=eI(n)||n.isEmpty();if(n.isEmpty()||t||(n=ew(n)||n,r=!0),!g&&!f&&r){let e=n.toString(),r=ep(e,t);if(r>=0&&(eI(n=I(k(e,".",r)))||(n=I(k(e,".",r,!0)))),!n.equals(eu)){var i;i=n,void 0===m&&ed(i),q?.(n.isEmpty()?null:T(H,n)),void 0===m&&eb(n,t)}return n}return eu},ex=(()=>{let e=(0,r.useRef)(0),t=()=>{R.A.cancel(e.current)};return(0,r.useEffect)(()=>t,[]),n=>{t(),e.current=(0,R.A)(()=>{n()})}})(),eM=e=>{if(eS(),ef.current=e,ev(e),!eo.current){let t=I(em(e));t.isNaN()||ek(t,!0)}j?.(e),ex(()=>{let t=e;W||(t=e.replace(/。/g,".")),t!==e&&eM(t)})},eC=(0,z._q)((e,t)=>{if(e&&ey||!e&&eE)return;ea.current=!1;let n=I(el.current?_(d):d);e||(n=n.negate());let r=ek((eu||I(0)).add(n.toString()),!1);V?.(T(H,r),{offset:el.current?_(d):d,type:e?"up":"down",emitter:t}),ec.current?.focus()}),eR=e=>{let t,n=I(em(eh));t=n.isNaN()?ek(eu,e):ek(n,e),void 0!==m?eb(eu,!1):t.isNaN()||eb(t,!1)};r.useEffect(()=>{if($&&er){let e=e=>{eC(e.deltaY<0,"wheel"),e.preventDefault()},t=ec.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),()=>t.removeEventListener("wheel",e)}}),(0,x.o)(()=>{eu.isInvalidate()||eb(eu,!1)},[L,P]),(0,x.o)(()=>{let e=I(m);ed(e);let t=I(em(eh));e.equals(t)&&ea.current&&!P||eb(e,ea.current)},[m]),(0,x.o)(()=>{P&&eA()},[eh]);let eB={prefixCls:i,onStep:eC,className:l?.action,style:s?.action},e_=r.createElement(B,D({},eB,{action:"up",disabled:ey}),h),ez=r.createElement(B,D({},eB,{action:"down",disabled:eE}),v);return r.createElement("div",{ref:es,className:(0,M.$)(i,`${i}-mode-${n}`,a,l?.root,{[`${i}-focused`]:er,[`${i}-disabled`]:f,[`${i}-readonly`]:g,[`${i}-not-a-number`]:eu.isNaN(),[`${i}-out-of-range`]:!eu.isInvalidate()&&!eI(eu)}),style:{...s?.root,...o},onMouseDown:e=>{ec.current&&e.target!==ec.current&&(ec.current.focus(),e.preventDefault()),U?.(e)},onMouseUp:K,onMouseLeave:Y,onMouseMove:J,onMouseEnter:Z,onMouseOut:ee,onClick:Q,onFocus:()=>{ei(!0)},onBlur:()=>{et&&eR(!1),ei(!1),ea.current=!1},onKeyDown:e=>{let{key:t,shiftKey:n}=e;ea.current=!0,el.current=n,"Enter"===t&&(eo.current||(ea.current=!1),eR(!1),X?.(e)),!1!==b&&!eo.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(eC("Up"===t||"ArrowUp"===t,"keyboard"),e.preventDefault())},onKeyUp:()=>{ea.current=!1,el.current=!1},onCompositionStart:()=>{eo.current=!0},onCompositionEnd:()=>{eo.current=!1,eM(ec.current.value)},onBeforeInput:()=>{ea.current=!0}},"spinner"===n&&N&&ez,void 0!==A&&r.createElement("div",{className:(0,M.$)(`${i}-prefix`,l?.prefix),style:s?.prefix},A),r.createElement("input",D({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":u,"aria-valuenow":eu.isInvalidate()?null:eu.toString(),step:d,ref:ec,className:(0,M.$)(`${i}-input`,l?.input),style:s?.input,value:eh,onChange:e=>{eM(e.target.value)},disabled:f,readOnly:g},en)),void 0!==w&&r.createElement("div",{className:(0,M.$)(`${i}-suffix`,l?.suffix),style:s?.suffix},w),"spinner"===n&&N&&e_,"input"===n&&N&&r.createElement("div",{className:(0,M.$)(`${i}-actions`,l?.actions),style:s?.actions},e_,ez))});var W=n(44137),P=n(92162),L=n(26047),G=n(4034),q=n(48921),j=n(74567),X=n(6831),V=n(632),U=n(27273),Q=n(55359),K=n(73134),Y=n(24716),J=n(49644),Z=n(15561),ee=n(44390),et=n(84767),en=n(90560),er=n(7961),ei=n(77032),ea=n(10540),eo=n(28403),el=n(47252);let es=(0,ea.OF)("InputNumber",e=>{let t=(0,eo.oX)(e,(0,et.C)(e));return[(e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,colorError:l,paddingInlineSM:s,paddingBlockSM:c,paddingBlockLG:u,paddingInlineLG:d,colorIcon:p,colorTextDisabled:m,motionDurationMid:f,handleHoverColor:g,handleOpacity:h,paddingInline:v,paddingBlock:b,handleBg:$,handleActiveBg:N,inputAffixPadding:y,borderRadiusSM:E,controlWidth:S,handleBorderColor:A,filledHandleBg:w,lineHeightLG:I,antCls:k}=e,x=`${(0,Z.zA)(n)} ${r} ${A}`,[M,C]=(0,ea.PN)(k,"input-number");return[{[t]:{...(0,er.dF)(e),...(0,ee.wj)(e),[M("input-padding-block")]:(0,Z.zA)(b),[M("input-padding-inline")]:(0,Z.zA)(v),display:"inline-flex",width:S,margin:0,paddingBlock:0,borderRadius:i,...(0,en.Eb)(e,{[`${t}-actions`]:{background:$,[`${t}-action-down`]:{borderBlockStart:x}}}),...(0,en.sA)(e,{[`${t}-actions`]:{background:w,[`${t}-action-down`]:{borderBlockStart:x}},"&:focus-within":{[`${t}-actions`]:{background:$}}}),...(0,en.aP)(e,{[`${t}-actions`]:{background:$,[`${t}-action-down`]:{borderBlockStart:x}}}),...(0,en.lB)(e),[`&${t}-borderless`]:{paddingBlock:0,[M("input-padding-block")]:(0,Z.zA)(e.calc(b).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[M("input-padding-block")]:(0,Z.zA)(e.calc(c).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[M("input-padding-block")]:(0,Z.zA)(e.calc(u).add(n).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:l}},[`${t}-input`]:{...(0,er.dF)(e),width:"100%",paddingBlock:C("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...(0,ee.j_)(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{...(0,er.Nk)(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${f} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:N},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:g},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:m}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:h,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${f}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:p,height:"50%",borderInlineStart:x,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:C("input-padding-inline"),"&-up":{borderInlineStart:x},"&-down":{borderInlineEnd:x}},[`${t}-input`]:{textAlign:"center",paddingInline:C("input-padding-inline")}}}},{[t]:{"&-lg":{[M("input-padding-block")]:(0,Z.zA)(u),[M("input-padding-inline")]:(0,Z.zA)(d),paddingBlock:0,fontSize:o,lineHeight:I},"&-sm":{[M("input-padding-block")]:(0,Z.zA)(c),[M("input-padding-inline")]:(0,Z.zA)(s),paddingBlock:0,fontSize:a,borderRadius:E}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:y},[`${t}-suffix`]:{height:"100%",marginInlineStart:y,transition:`margin ${f}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]})(t),(e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}})(t),(0,ei.G)(t)]},e=>{let t=e.handleVisible??"auto",n=e.controlHeightSM-2*e.lineWidth;return{...(0,et.b)(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new el.Y(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(!0===t),handleVisibleWidth:!0===t?n:0}},{unitless:{handleOpacity:!0},resetFont:!1}),ec=r.forwardRef((e,t)=>{let n=r.useRef(null);r.useImperativeHandle(t,()=>n.current);let{rootClassName:a,size:o,disabled:l,prefixCls:d,addonBefore:p,addonAfter:m,prefix:f,suffix:g,bordered:h,readOnly:v,status:b,controls:$=!0,variant:N,className:y,style:E,classNames:S,styles:A,mode:w,...I}=e,{direction:k,className:x,style:C,styles:R,classNames:B}=(0,j.TP)("inputNumber"),_=r.useContext(X.A),z=l??_,F=r.useMemo(()=>!!$&&!z&&!v&&$,[$,z,v]),{compactSize:D,compactItemClassnames:T}=(0,J.RQ)(d,k),O="spinner"===w?r.createElement(c.A,null):r.createElement(u.A,null),W="spinner"===w?r.createElement(s,null):r.createElement(i.A,null),q="boolean"==typeof F?F:void 0;(0,L.Qd)(F)&&(O=F.upIcon||O,W=F.downIcon||W);let{hasFeedback:V,isFormItemInput:Y,feedbackIcon:Z}=r.useContext(Q.$W),ee=(0,U.A)(e=>o??D??e),[et,en]=(0,K.A)("inputNumber",N,h),er=V&&r.createElement(r.Fragment,null,Z),ei={...e,size:ee,disabled:z,controls:F},ea=(0,P.XT)(C),eo=(0,P.XT)(E),[el,es]=(0,P.AV)([B,S],[R,ea,A,eo],{props:ei});return r.createElement(H,{ref:n,mode:w,disabled:z,className:(0,M.$)(y,a,el.root,x,T,(0,G.L)(d,b,V),{[`${d}-${et}`]:en,[`${d}-lg`]:"large"===ee,[`${d}-sm`]:"small"===ee,[`${d}-rtl`]:"rtl"===k,[`${d}-in-form-item`]:Y,[`${d}-without-controls`]:!F}),style:es.root,upHandler:O,downHandler:W,prefixCls:d,readOnly:v,controls:q,prefix:f,suffix:er||g,classNames:el,styles:es,...I})}),eu=r.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:i,prefixCls:a,className:o,status:l,rootClassName:s,...c}=e,{getPrefixCls:u}=(0,j.TP)("inputNumber"),d=u("input-number",a),{status:p}=r.useContext(Q.$W),m=(0,G.v)(p,l),f=(0,V.A)(d),[g,h]=es(d,f),v=n||i,b=r.createElement(ec,{ref:t,...c,prefixCls:d,status:m,className:(0,M.$)(h,f,g,o),rootClassName:v?void 0:s});if(v){let t=t=>t?r.createElement(Y.A,{className:(0,M.$)(`${d}-addon`,h,g),variant:e.variant,disabled:e.disabled,status:m},r.createElement(W.A,{form:!0},t)):null,a=t(n),o=t(i);return r.createElement(J.Ay,{rootClassName:s},a,b,o)}return b});eu._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(q.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(eu,{...e}));let ed=eu},63890:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"}},85493:(e,t,n)=>{n.d(t,{A:()=>C});var r=n(97109),i=n(59188),a=n(4216),o=n(45042),l=n(97137),s=n(62188),c=n(67189),u=n(42644),d=n(3638),p=n(92162),m=n(26047),f=n(74567),g=n(15561),h=n(7961),v=n(10540);let b=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),$=(0,v.OF)("Alert",e=>[(e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:p,withDescriptionPadding:m,defaultPadding:f,lineWidth:v,lineType:b,colorSuccessBorder:$,colorWarningBorder:N,colorErrorBorder:y,colorInfoBorder:E}=e;return{[t]:{...(0,h.dF)(e),position:"relative",display:"flex",alignItems:"center",padding:f,wordWrap:"break-word",borderRadius:s,borderWidth:(0,g.zA)(v),borderStyle:b,[`&${t}-success`]:{borderColor:$},[`&${t}-info`]:{borderColor:E},[`&${t}-warning`]:{borderColor:N},[`&${t}-error`]:{borderColor:y},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:l},"&-title":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(e=>`${e} ${n} ${c}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:p,fontSize:o},[`${t}-description`]:{display:"block",color:d}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}})(e),(e=>{let{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:i,colorWarningBg:a,colorError:o,colorErrorBg:l,colorInfo:s,colorInfoBg:c}=e;return{[t]:{"&-success":b(r,n,t),"&-info":b(c,s,t),"&-warning":b(a,i,t),"&-error":{...b(l,o,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}})(e),(e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:l}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:(0,g.zA)(a),backgroundColor:"transparent",border:"none",cursor:"pointer",...(0,h.K8)(e),[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:l}}}}})(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),N=e=>{let{icon:t,type:n,className:o,style:c,successIcon:u,infoIcon:d,warningIcon:p,errorIcon:m}=e,f={success:u??r.createElement(i.A,null),info:d??r.createElement(s.A,null),error:m??r.createElement(a.A,null),warning:p??r.createElement(l.A,null)};return r.createElement("span",{className:o,style:c},t??f[n])},y=e=>{let{isClosable:t,prefixCls:n,closeIcon:i,handleClose:a,ariaProps:l,className:s,style:c}=e,u=!0===i||void 0===i?r.createElement(o.A,null):i;return t?r.createElement("button",{type:"button",onClick:a,className:(0,d.$)(`${n}-close-icon`,s),tabIndex:0,style:c,...l},u):null},E=r.forwardRef((e,t)=>{let{description:n,prefixCls:i,message:a,title:o,banner:l,className:s,rootClassName:g,style:h,onMouseEnter:v,onMouseLeave:b,onClick:E,afterClose:S,showIcon:A,closable:w,closeText:I,closeIcon:k,action:x,id:M,styles:C,classNames:R,...B}=e,_=o??a,[z,F]=r.useState(!1),D=r.useRef(null);r.useImperativeHandle(t,()=>({nativeElement:D.current}));let{getPrefixCls:T,direction:O,variant:H,closable:W,closeIcon:P,className:L,style:G,classNames:q,styles:j,successIcon:X,infoIcon:V,warningIcon:U,errorIcon:Q}=(0,f.TP)("alert"),K=T("alert",i),[Y,J]=$(K),{onClose:Z,afterClose:ee}=(0,m.Qd)(w)?w:{},et=t=>{F(!0),(Z??e.onClose)?.(t)},en=r.useMemo(()=>void 0!==e.type?e.type:l?"warning":"info",[e.type,l]),er=e.variant??H??"outlined",ei=r.useMemo(()=>!!(0,m.Qd)(w)&&!!w.closeIcon||!!I||("boolean"==typeof w?w:!!(!1!==k&&(0,m.R)(k))||!!W),[I,k,w,W]),ea=!!l&&void 0===A||A,eo={...e,prefixCls:K,variant:er,type:en,showIcon:ea,closable:ei},el=(0,p.XT)(G),es=(0,p.XT)(h),[ec,eu]=(0,p.AV)([q,R],[j,el,C,es],{props:eo}),ed=(0,d.$)(K,`${K}-${en}`,`${K}-${er}`,{[`${K}-with-description`]:!!n,[`${K}-no-icon`]:!ea,[`${K}-banner`]:!!l,[`${K}-rtl`]:"rtl"===O},L,s,g,ec.root,J,Y),ep=(0,u.KE)(B,{aria:!0,data:!0}),em=r.useMemo(()=>(0,m.Qd)(w)&&w.closeIcon?w.closeIcon:I||(void 0!==k?k:(0,m.Qd)(W)&&W.closeIcon?W.closeIcon:P),[k,w,W,I,P]),ef=r.useMemo(()=>{let e=w??W;return(0,m.Qd)(e)?(0,u.KE)(e,{data:!0,aria:!0}):{}},[w,W]);return r.createElement(c.Ay,{visible:!z,motionName:`${K}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:ee??S},({className:t,style:i},a)=>r.createElement("div",{id:M,ref:(0,u.K4)(D,a),"data-show":!z,className:(0,d.$)(ed,t),style:{...eu.root,...i},onMouseEnter:v,onMouseLeave:b,onClick:E,role:"alert",...ep},ea?r.createElement(N,{className:(0,d.$)(`${K}-icon`,ec.icon),style:eu.icon,description:n,icon:e.icon,prefixCls:K,type:en,successIcon:X,infoIcon:V,warningIcon:U,errorIcon:Q}):null,r.createElement("div",{className:(0,d.$)(`${K}-section`,ec.section),style:eu.section},_?r.createElement("div",{className:(0,d.$)(`${K}-title`,ec.title),style:eu.title},_):null,n?r.createElement("div",{className:(0,d.$)(`${K}-description`,ec.description),style:eu.description},n):null),x?r.createElement("div",{className:(0,d.$)(`${K}-actions`,ec.actions),style:eu.actions},x):null,r.createElement(y,{className:ec.close,style:eu.close,isClosable:ei,prefixCls:K,closeIcon:em,handleClose:et,ariaProps:ef})))});var S=n(41113),A=n(49939),w=n(90218),I=n(13076),k=n(83784),x=n(15472);let M=function(e){function t(){var e,n,r;return(0,S.A)(this,t),n=t,r=arguments,n=(0,w.A)(n),(e=(0,k.A)(this,(0,I.A)()?Reflect.construct(n,r||[],(0,w.A)(this).constructor):n.apply(this,r))).state={error:void 0,info:{}},e}return(0,x.A)(t,e),(0,A.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,title:t,description:n,id:i,children:a}=this.props,{error:o,info:l}=this.state,s=t??e,c=l?.componentStack||null,u=(0,m.R)(s)?s:o?.toString(),d=(0,m.R)(n)?n:c;return o?r.createElement(E,{id:i,type:"error",title:u,description:r.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):a}}])}(r.PureComponent);E.ErrorBoundary=M;let C=E},92123:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"}},96651:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(97109),i=n(92123),a=n(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let l=r.forwardRef((e,t)=>r.createElement(a.A,o({},e,{ref:t,icon:i.A})))}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[623],{23507:(e,l,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/document-roles",function(){return r(59889)}])},59889:(e,l,r)=>{"use strict";r.r(l),r.d(l,{default:()=>K});var i=r(65321),n=r(97109),s=r(35292),t=r(17807),o=r(63455),a=r(11702),c=r(84253),d=r(68787),p=r(85114),x=r(26171),m=r(33442),h=r(57271),u=r(85493),y=r(34052),f=r(7576),g=r(2256),j=r(38770),A=r(58569),v=r(25345),b=r(80042),w=r(75548),I=r(26631),S=r(84662),z=r(30486),T=r(99650),R=r(8263),k=r(84742),C=r(43094),B=r(8579),_=r(81668),F=r(58209),N=r(96091),E=r(54746),O=r(96651),W=r(60470),D=r(6578),H=r(44494);let{Paragraph:P}=s.A,L={rule:(0,i.jsx)(v.A,{}),table:(0,i.jsx)(b.A,{}),drawing:(0,i.jsx)(w.A,{}),specification:(0,i.jsx)(I.A,{}),reference:(0,i.jsx)(S.A,{})},U={fact_extraction:(0,i.jsx)(z.A,{}),chapter_generation:(0,i.jsx)(T.A,{}),llm_review:(0,i.jsx)(R.A,{}),validation:(0,i.jsx)(k.A,{}),formatting:(0,i.jsx)(C.A,{}),reference:(0,i.jsx)(S.A,{})},q={rule:"#fa8c16",table:"#52c41a",drawing:"#722ed1",specification:"#eb2f96",reference:"#13c2c2"},V={fact_extraction:"#fa8c16",chapter_generation:"#1677ff",llm_review:"#722ed1",validation:"#52c41a",formatting:"#eb2f96",reference:"#13c2c2"},G={rule:"roles.ruleFile",table:"roles.tableFile",drawing:"roles.drawingFile",specification:"roles.specificationFile",reference:"roles.reference"},Q={fact_extraction:"roles.factExtraction",chapter_generation:"roles.chapterGeneration",llm_review:"roles.llmReview",validation:"roles.validation",formatting:"roles.formatting",reference:"roles.reference"};function J(e,l){let r=new Blob([JSON.stringify(l,null,2)],{type:"application/json;charset=utf-8"}),i=URL.createObjectURL(r),n=document.createElement("a");n.href=i,n.download=e,n.click(),URL.revokeObjectURL(i)}function M(e){return e.trim().replace(/[\\/:*?"<>|]/g,"-").slice(0,80)||"untitled"}function X(e,l){return{type:"customize-agent.documentRoles",version:1,exportedAt:new Date().toISOString(),roles:e,configs:l}}function K(){let e,l,r=(0,H.Vr)(),{message:s}=t.A.useApp(),[v]=o.A.useForm(),[b]=o.A.useForm(),[w,S]=(0,n.useState)([]),[z,R]=(0,n.useState)([]),[k,C]=(0,n.useState)([]),[K,Y]=(0,n.useState)(!1),[Z,$]=(0,n.useState)(!1),[ee,el]=(0,n.useState)(!1),[er,ei]=(0,n.useState)("file"),[en,es]=(0,n.useState)("custom"),[et,eo]=(0,n.useState)(!1),ea=(0,n.useRef)(null),ec=async()=>{let[e,l]=await Promise.all([(0,D.lv)(),(0,D.dx)()]);S(e.roles),R(e.configs),C(l)};(0,n.useEffect)(()=>{ec().catch(()=>s.error(r("common.error")))},[s,r]);let ed=()=>"all"===en||"custom"===en,ep=w.filter(ed),ex=z.filter(ed),em=ep.filter(e=>"file"===e.type),eh=ep.filter(e=>"prompt"===e.type),eu=w.filter(e=>"file"===e.type),ey=w.filter(e=>"prompt"===e.type),ef=async()=>{try{let e=await v.validateFields(),l="file"===e.type?{...e,resourceId:void 0,resourceIds:[]}:e,i=await (0,D.dg)(l);S(i.roles),R(i.configs),Y(!1),s.success(r("common.success"))}catch(e){s.error(r("common.error"))}},eg=async()=>{try{let e=await b.validateFields(),l=e=>(null!=e?e:[]).map((e,l)=>{var r;return{roleId:e.roleId,order:Number(null!=(r=e.order)?r:l)}}),i=await (0,D.NR)({...e,fileRoles:l(e.fileRoles),promptRoles:l(e.promptRoles)});S(i.roles),R(i.configs),$(!1),s.success(r("common.success"))}catch(e){s.error(r("common.error"))}},ej=async e=>{try{let l=await (0,D.FV)(e.type,e.id);S(l.roles),R(l.configs),s.success("角色已删除")}catch(e){s.error(e instanceof Error?e.message:"角色删除失败")}},eA=async e=>{try{let l=await (0,D.dw)(e);S(l.roles),R(l.configs),s.success("项目角色配置已删除")}catch(e){s.error(e instanceof Error?e.message:"项目角色配置删除失败")}},ev=async e=>{if(e){eo(!0);try{let l=JSON.parse(await e.text()),r=await fetch("/api/documents/roles?mode=import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!r.ok)throw Error(await r.text());let i=await r.json();S(i.roles),R(i.configs),s.success("已导入 ".concat(i.importedRoles," 个角色、").concat(i.importedConfigs," 个配置"))}catch(e){s.error("导入失败,请确认 JSON 文件格式正确")}finally{eo(!1),ea.current&&(ea.current.value="")}}},eb=function(e){var l;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"file";v.setFieldsValue(e?{...e,resourceIds:(null==(l=e.resourceIds)?void 0:l.length)?e.resourceIds:e.resourceId?[e.resourceId]:[]}:{id:"role-".concat(Date.now()),name:"",description:"",type:r,resourceIds:[],executionType:"prompt"===r?"reference":void 0,processingType:"file"===r?"reference":void 0}),Y(!0)},ew=e=>{b.setFieldsValue(null!=e?e:{id:"config-".concat(Date.now()),name:"",description:"",fileRoles:[],promptRoles:[],builtIn:!1}),$(!0)},eI=e=>w.find(l=>l.id===e),eS=e=>{var l;return(null==e?void 0:e.type)==="prompt"?(null==(l=e.resourceIds)?void 0:l.length)?e.resourceIds:e.resourceId?[e.resourceId]:[]:[]},ez=e=>{var l;return(null==(l=k.find(l=>l.id===e))?void 0:l.projectName)||e},eT=e=>(0,i.jsx)(a.A,{closable:e.closable,onClose:e.onClose,color:"purple",title:e.value,style:{margin:"1px 2px",fontSize:11,lineHeight:"18px"},children:ez(e.value)}),eR=(e,l)=>{let n="file"===l?"blue":"purple",s="file"===l?G:Q,t=[...e].sort((e,l)=>{var r,i;return Number(null!=(r=e.order)?r:0)-Number(null!=(i=l.order)?i:0)}).map(e=>eI(e.roleId)).filter(e=>!!e);return 0===t.length?(0,i.jsx)(c.A,{image:c.A.PRESENTED_IMAGE_SIMPLE,description:"file"===l?"暂未选择文件角色":"暂未选择提示词角色"}):(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:t.map((e,l)=>{var t,o;let c=eS(e),d="file"===e.type?null!=(t=e.processingType)?t:"":null!=(o=e.executionType)?o:"";return(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 8px",borderRadius:8,background:"var(--colorBgContainer)",border:"1px solid var(--colorBorderSecondary)"},children:[(0,i.jsxs)(a.A,{color:n,style:{margin:0},children:["#",l+1]}),(0,i.jsx)("span",{style:{fontWeight:600,flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),(0,i.jsx)(a.A,{style:{margin:0},children:r(s[d]||"roles.reference")}),"prompt"===e.type&&(0,i.jsxs)("span",{style:{fontSize:12,color:"var(--colorTextSecondary)"},children:["绑定 ",c.length," 个提示词"]})]},e.id)})})},ek=e=>{if(!e)return null;let l=eS(e);return(0,i.jsxs)("div",{style:{marginTop:8,padding:8,borderRadius:8,background:"var(--colorFillQuaternary)",fontSize:12,color:"var(--colorTextSecondary)"},children:[e.description&&(0,i.jsx)("div",{style:{marginBottom:4*("prompt"===e.type)},children:e.description}),"prompt"===e.type&&(0,i.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:[l.slice(0,4).map(e=>(0,i.jsx)(a.A,{title:e,style:{margin:0,fontSize:10,lineHeight:"16px",maxWidth:180,overflow:"hidden",textOverflow:"ellipsis"},children:ez(e)},e)),l.length>4&&(0,i.jsxs)(a.A,{style:{margin:0,fontSize:10,lineHeight:"16px"},children:["+",l.length-4]}),0===l.length&&(0,i.jsx)("span",{children:"未绑定提示词"})]})]})};return(0,i.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:12},children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{className:"pageTitle",children:r("roles.title")}),(0,i.jsx)("p",{className:"pageDesc",children:r("roles.description")})]}),(0,i.jsxs)(m.A,{children:[(0,i.jsx)(h.A,{value:en,onChange:es,style:{width:170},options:[{label:"我的配置 (".concat(w.length+z.length,")"),value:"custom"},{label:"全部来源 (".concat(w.length+z.length,")"),value:"all"}]}),(0,i.jsx)("input",{ref:ea,type:"file",accept:"application/json,.json",style:{display:"none"},onChange:e=>{var l;ev(null==(l=e.target.files)?void 0:l[0])}}),(0,i.jsx)(p.Ay,{icon:(0,i.jsx)(N.A,{}),loading:et,onClick:()=>{var e;return null==(e=ea.current)?void 0:e.click()},children:"导入"}),(0,i.jsx)(p.Ay,{icon:(0,i.jsx)(_.A,{}),disabled:w.length+z.length===0,onClick:()=>{J("customize-document-roles-".concat(new Date().toISOString().slice(0,10),".json"),X(w,z)),s.success("已导出 ".concat(w.length," 个角色、").concat(z.length," 个配置"))},children:"导出全部"}),(0,i.jsx)(p.Ay,{icon:(0,i.jsx)(E.A,{}),onClick:()=>eb(void 0,"file"),children:r("roles.newFileRole")}),(0,i.jsx)(p.Ay,{icon:(0,i.jsx)(E.A,{}),onClick:()=>eb(void 0,"prompt"),children:r("roles.newPromptRole")}),(0,i.jsx)(p.Ay,{type:"primary",icon:(0,i.jsx)(E.A,{}),onClick:()=>ew(),children:r("roles.newConfig")})]})]}),(0,i.jsx)(u.A,{type:"info",showIcon:!0,message:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsx)("span",{children:r("roles.plainGuideTitle")}),(0,i.jsx)(p.Ay,{type:"link",size:"small",icon:ee?(0,i.jsx)(O.A,{}):(0,i.jsx)(W.A,{}),onClick:()=>el(!ee),style:{padding:"0 4px"},children:ee?"收起说明":"展开说明"})]}),description:ee?r("roles.plainGuideDesc"):void 0}),(0,i.jsx)(d.A,{size:"small",tabList:[{key:"file",label:"文件角色 (".concat(em.length,")")},{key:"prompt",label:"提示词角色 (".concat(eh.length,")")},{key:"configs",label:"项目角色配置 (".concat(ex.length,")")}],activeTabKey:er,onTabChange:ei,children:"configs"===er?0===ex.length?(0,i.jsx)(c.A,{description:r("common.noData")}):(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:12},children:ex.map(e=>{let l=e.fileRoles.map(e=>({...e,role:eI(e.roleId)})).filter(e=>e.role),n=e.promptRoles.map(e=>({...e,role:eI(e.roleId)})).filter(e=>e.role);return(0,i.jsxs)(d.A,{size:"small",hoverable:!0,style:{minWidth:0},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:8,marginBottom:6},children:[(0,i.jsx)("span",{style:{fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:e.name}),(0,i.jsx)(a.A,{color:"cyan",style:{margin:0,fontSize:10,lineHeight:"16px"},children:"我的配置"}),(0,i.jsxs)("div",{style:{display:"flex",gap:4,flexShrink:0},children:[(0,i.jsx)(p.Ay,{size:"small",icon:(0,i.jsx)(T.A,{}),onClick:()=>ew(e),children:"编辑"}),!e.builtIn&&(0,i.jsx)(p.Ay,{size:"small",icon:(0,i.jsx)(_.A,{}),onClick:()=>(e=>{let l=new Set([...e.fileRoles.map(e=>e.roleId),...e.promptRoles.map(e=>e.roleId)]);J("customize-role-config-".concat(M(e.name),"-").concat(new Date().toISOString().slice(0,10),".json"),X(w.filter(e=>l.has(e.id)&&!e.builtIn),[e])),s.success("已导出 1 个配置")})(e),children:"导出"}),(0,i.jsx)(x.A,{title:r("common.confirm"),onConfirm:()=>{eA(e.id)},children:(0,i.jsx)(p.Ay,{size:"small",danger:!0,icon:(0,i.jsx)(F.A,{})})})]})]}),e.description&&(0,i.jsx)(P,{ellipsis:{rows:2},style:{fontSize:12,color:"var(--colorTextSecondary)",marginBottom:8},children:e.description}),(0,i.jsxs)("div",{style:{fontSize:12,color:"var(--colorTextSecondary)"},children:[(0,i.jsxs)("div",{style:{marginBottom:4},children:[(0,i.jsxs)("span",{children:["文件角色 (",e.fileRoles.length,"): "]}),l.length>0?(0,i.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginTop:2},children:[l.slice(0,4).map(e=>(0,i.jsx)(a.A,{color:"blue",style:{margin:0,fontSize:10,lineHeight:"16px"},children:e.role.name},e.roleId)),l.length>4&&(0,i.jsxs)(a.A,{style:{margin:0,fontSize:10,lineHeight:"16px"},children:["+",l.length-4]})]}):(0,i.jsx)("span",{style:{color:"var(--colorTextQuaternary)"},children:"无"})]}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{children:["提示词角色 (",e.promptRoles.length,"): "]}),n.length>0?(0,i.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginTop:2},children:[n.slice(0,4).map(e=>(0,i.jsx)(a.A,{color:"purple",style:{margin:0,fontSize:10,lineHeight:"16px"},children:e.role.name},e.roleId)),n.length>4&&(0,i.jsxs)(a.A,{style:{margin:0,fontSize:10,lineHeight:"16px"},children:["+",n.length-4]})]}):(0,i.jsx)("span",{style:{color:"var(--colorTextQuaternary)"},children:"无"})]})]})]},e.id)})}):(e="file"===er?em:eh,l=r,0===e.length?(0,i.jsx)(c.A,{description:r("common.noData")}):(0,i.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(270px, 1fr))",gap:12},children:e.map(e=>{var n,t,o,c,m,h,u,y,f;let g="prompt"===e.type?(null==(n=e.resourceIds)?void 0:n.length)?e.resourceIds:e.resourceId?[e.resourceId]:[]:[],j=g.slice(0,3),A=g.length-j.length,v="file"===e.type?null!=(o=L[null!=(t=e.processingType)?t:""])?o:(0,i.jsx)(I.A,{}):null!=(m=U[null!=(c=e.executionType)?c:""])?m:(0,i.jsx)(B.A,{}),b="file"===e.type?null!=(u=q[null!=(h=e.processingType)?h:""])?u:"var(--colorAccent)":null!=(f=V[null!=(y=e.executionType)?y:""])?f:"var(--colorWarning)";return(0,i.jsxs)(d.A,{size:"small",hoverable:!0,style:{minWidth:0},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:8,marginBottom:8},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,minWidth:0,flex:1},children:[(0,i.jsx)("span",{style:{color:b,fontSize:16,flexShrink:0,lineHeight:1},children:v}),(0,i.jsx)("span",{style:{fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"20px"},children:e.name})]}),(0,i.jsx)("div",{style:{display:"flex",gap:4,flexShrink:0},children:(0,i.jsx)(a.A,{color:"cyan",style:{margin:0,fontSize:10,lineHeight:"16px"},children:"我的角色"})})]}),e.description&&(0,i.jsx)(P,{ellipsis:{rows:2},style:{fontSize:12,color:"var(--colorTextSecondary)",marginBottom:8},children:e.description}),(0,i.jsxs)("div",{style:{marginBottom:8,display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[(0,i.jsx)(a.A,{color:"file"===e.type?"blue":"purple",style:{margin:0},children:function(e,l){var r,i,n;let s="file"===e.type?G[null!=(r=e.processingType)?r:""]:Q[null!=(i=e.executionType)?i:""];return s?l(s):null!=(n="file"===e.type?e.processingType:e.executionType)?n:""}(e,l)}),g.length>0&&(0,i.jsxs)("span",{style:{fontSize:12,color:"var(--colorTextSecondary)"},children:["绑定 ",g.length," 个提示词"]})]}),j.length>0&&(0,i.jsx)("div",{style:{marginBottom:10},children:(0,i.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:[j.map(e=>(0,i.jsx)(a.A,{color:"purple",title:e,style:{margin:0,fontSize:10,lineHeight:"16px",maxWidth:140,overflow:"hidden",textOverflow:"ellipsis"},children:ez(e)},e)),A>0&&(0,i.jsxs)(a.A,{style:{margin:0,fontSize:10,lineHeight:"16px"},children:["+",A]})]})}),(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:6,paddingTop:4,borderTop:"1px solid var(--colorBorderSecondary)"},children:[(0,i.jsx)(p.Ay,{size:"small",icon:(0,i.jsx)(T.A,{}),onClick:()=>eb(e),children:"编辑"}),!e.builtIn&&(0,i.jsx)(p.Ay,{size:"small",icon:(0,i.jsx)(_.A,{}),onClick:()=>{J("customize-role-".concat(M(e.name),"-").concat(new Date().toISOString().slice(0,10),".json"),X([e],[])),s.success("已导出 1 个角色")},children:"导出"}),(0,i.jsx)(x.A,{title:r("common.confirm"),onConfirm:()=>{ej(e)},children:(0,i.jsx)(p.Ay,{size:"small",danger:!0,icon:(0,i.jsx)(F.A,{})})})]})]},e.id)})}))}),(0,i.jsx)(y.A,{title:r("roles.roleEditor"),open:K,onClose:()=>Y(!1),width:800,maskClosable:!1,style:{borderRadius:"12px 0 0 12px"},styles:{body:{padding:"16px 24px"},header:{borderRadius:"12px 0 0 0",borderBottom:"1px solid var(--colorBorderSecondary)"}},extra:(0,i.jsx)(p.Ay,{type:"primary",onClick:()=>{ef()},children:r("common.save")}),children:(0,i.jsxs)(o.A,{form:v,layout:"vertical",children:[(0,i.jsx)(o.A.Item,{name:"id",hidden:!0,children:(0,i.jsx)(f.A,{})}),(0,i.jsxs)(g.A,{gutter:16,children:[(0,i.jsx)(j.A,{span:12,children:(0,i.jsx)(o.A.Item,{name:"type",label:r("roles.roleType"),rules:[{required:!0}],children:(0,i.jsx)(h.A,{options:[{label:r("roles.fileRole"),value:"file"},{label:r("roles.promptRole"),value:"prompt"}]})})}),(0,i.jsx)(j.A,{span:12,children:(0,i.jsx)(o.A.Item,{name:"name",label:r("roles.roleName"),rules:[{required:!0}],children:(0,i.jsx)(f.A,{})})})]}),(0,i.jsx)(o.A.Item,{name:"description",label:r("roles.roleDescription"),children:(0,i.jsx)(f.A.TextArea,{rows:2})}),(0,i.jsx)(o.A.Item,{noStyle:!0,shouldUpdate:(e,l)=>e.type!==l.type,children:e=>{let{getFieldValue:l}=e,n="prompt"===l("type");return(0,i.jsx)(d.A,{size:"small",title:n?"提示词角色配置":"文件角色配置",style:{border:"1px solid var(--colorBorderSecondary)"},children:n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A.Item,{name:"executionType",label:r("roles.executionType"),rules:[{required:!0}],style:{marginBottom:12},children:(0,i.jsx)(h.A,{options:[{label:r("roles.factExtraction"),value:"fact_extraction"},{label:r("roles.chapterGeneration"),value:"chapter_generation"},{label:r("roles.validation"),value:"validation"},{label:r("roles.formatting"),value:"formatting"},{label:r("roles.reference"),value:"reference"}]})}),(0,i.jsx)(o.A.Item,{name:"resourceIds",label:r("roles.bindPrompt"),style:{marginBottom:0},help:(0,i.jsx)("span",{style:{fontSize:11,color:"var(--colorTextSecondary)"},children:r("roles.multiBindPromptHelp")}),children:(0,i.jsx)(h.A,{mode:"multiple",showSearch:!0,tagRender:eT,placeholder:"选择提示词",options:k.filter(e=>e.hasFile).map(e=>({label:e.projectName,value:e.id}))})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A.Item,{name:"processingType",label:r("roles.processingType"),rules:[{required:!0}],style:{marginBottom:12},children:(0,i.jsx)(h.A,{options:[{label:r("roles.ruleFile"),value:"rule"},{label:r("roles.tableFile"),value:"table"},{label:r("roles.drawingFile"),value:"drawing"},{label:r("roles.specificationFile"),value:"specification"},{label:r("roles.reference"),value:"reference"}]})}),(0,i.jsx)(u.A,{type:"info",showIcon:!0,message:"文件角色只定义处理类型",description:"具体项目文件由生成流程自动识别,或在模板的高级固定绑定资料中手动覆盖;这里不再绑定知识库文件,避免角色复用时混入其他项目资料。"})]})})}})]})}),(0,i.jsx)(y.A,{title:r("roles.configEditor"),open:Z,onClose:()=>$(!1),width:800,maskClosable:!1,style:{borderRadius:"12px 0 0 12px"},styles:{body:{padding:"16px 24px"},header:{borderRadius:"12px 0 0 0",borderBottom:"1px solid var(--colorBorderSecondary)"}},extra:(0,i.jsx)(p.Ay,{type:"primary",onClick:()=>{eg()},children:r("common.save")}),children:(0,i.jsxs)(o.A,{form:b,layout:"vertical",children:[(0,i.jsx)(o.A.Item,{name:"id",hidden:!0,children:(0,i.jsx)(f.A,{})}),(0,i.jsxs)(g.A,{gutter:16,children:[(0,i.jsx)(j.A,{span:12,children:(0,i.jsx)(o.A.Item,{name:"name",label:r("roles.configName"),rules:[{required:!0}],children:(0,i.jsx)(f.A,{})})}),(0,i.jsx)(j.A,{span:12,children:(0,i.jsx)(o.A.Item,{name:"description",label:r("roles.configDescription"),children:(0,i.jsx)(f.A,{})})})]}),(0,i.jsx)(o.A.Item,{noStyle:!0,shouldUpdate:(e,l)=>e.fileRoles!==l.fileRoles||e.promptRoles!==l.promptRoles,children:e=>{let{getFieldValue:l}=e,n=l("fileRoles")||[],s=l("promptRoles")||[];return(0,i.jsx)(A.A,{destroyInactiveTabPane:!1,items:[{key:"file",label:"文件角色 (".concat(n.length,"/").concat(eu.length,")"),children:(0,i.jsx)(o.A.List,{name:"fileRoles",children:(e,l)=>{let{add:s,remove:t}=l;return(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,i.jsx)(d.A,{size:"small",title:"已选文件角色",style:{background:"var(--colorFillQuaternary)"},children:eR(n,"file")}),0===e.length&&(0,i.jsx)(c.A,{description:"暂未添加文件角色"}),e.map((e,l)=>(0,i.jsxs)(d.A,{size:"small",style:{border:"1px solid var(--colorBorderSecondary)",position:"relative"},children:[(0,i.jsxs)("div",{style:{position:"absolute",top:-10,left:12,background:"#1677ff",color:"#fff",fontSize:11,fontWeight:700,padding:"1px 8px",borderRadius:10},children:["#",l+1]}),(0,i.jsx)(p.Ay,{danger:!0,size:"small",icon:(0,i.jsx)(F.A,{}),onClick:()=>t(e.name),style:{position:"absolute",top:8,right:8,zIndex:1}}),(0,i.jsxs)(g.A,{gutter:[16,8],align:"middle",style:{marginTop:4},children:[(0,i.jsxs)(j.A,{flex:"auto",children:[(0,i.jsx)(o.A.Item,{name:[e.name,"roleId"],label:"文件角色",rules:[{required:!0}],style:{marginBottom:0},children:(0,i.jsx)(h.A,{placeholder:"选择文件角色",size:"small",options:eu.map(e=>{var l;return{label:"".concat(e.name," (").concat(r(G[null!=(l=e.processingType)?l:""]||"roles.reference"),")"),value:e.id}})})}),(0,i.jsx)(o.A.Item,{noStyle:!0,shouldUpdate:!0,children:l=>{let{getFieldValue:r}=l;return ek(eI(r(["fileRoles",e.name,"roleId"])))}})]}),(0,i.jsx)(j.A,{style:{width:90},children:(0,i.jsx)(o.A.Item,{name:[e.name,"order"],label:"排序",initialValue:l,style:{marginBottom:0},children:(0,i.jsx)(f.A,{type:"number",size:"small"})})})]})]},e.key)),(0,i.jsx)(p.Ay,{icon:(0,i.jsx)(E.A,{}),onClick:()=>s({order:e.length}),children:r("roles.addRole")})]})}})},{key:"prompt",label:"提示词角色 (".concat(s.length,"/").concat(ey.length,")"),children:(0,i.jsx)(o.A.List,{name:"promptRoles",children:(e,l)=>{let{add:n,remove:t}=l;return(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,i.jsx)(d.A,{size:"small",title:"已选提示词角色",style:{background:"var(--colorFillQuaternary)"},children:eR(s,"prompt")}),0===e.length&&(0,i.jsx)(c.A,{description:"暂未添加提示词角色"}),e.map((e,l)=>(0,i.jsxs)(d.A,{size:"small",style:{border:"1px solid var(--colorBorderSecondary)",position:"relative"},children:[(0,i.jsxs)("div",{style:{position:"absolute",top:-10,left:12,background:"#722ed1",color:"#fff",fontSize:11,fontWeight:700,padding:"1px 8px",borderRadius:10},children:["#",l+1]}),(0,i.jsx)(p.Ay,{danger:!0,size:"small",icon:(0,i.jsx)(F.A,{}),onClick:()=>t(e.name),style:{position:"absolute",top:8,right:8,zIndex:1}}),(0,i.jsxs)(g.A,{gutter:[16,8],align:"middle",style:{marginTop:4},children:[(0,i.jsxs)(j.A,{flex:"auto",children:[(0,i.jsx)(o.A.Item,{name:[e.name,"roleId"],label:"提示词角色",rules:[{required:!0}],style:{marginBottom:0},children:(0,i.jsx)(h.A,{placeholder:"选择提示词角色",size:"small",options:ey.map(e=>{var l;return{label:"".concat(e.name," (").concat(r(Q[null!=(l=e.executionType)?l:""]||"roles.reference"),")"),value:e.id}})})}),(0,i.jsx)(o.A.Item,{noStyle:!0,shouldUpdate:!0,children:l=>{let{getFieldValue:r}=l;return ek(eI(r(["promptRoles",e.name,"roleId"])))}})]}),(0,i.jsx)(j.A,{style:{width:90},children:(0,i.jsx)(o.A.Item,{name:[e.name,"order"],label:"排序",initialValue:l,style:{marginBottom:0},children:(0,i.jsx)(f.A,{type:"number",size:"small"})})})]})]},e.key)),(0,i.jsx)(p.Ay,{icon:(0,i.jsx)(E.A,{}),onClick:()=>n({order:e.length}),children:r("roles.addRole")})]})}})}]})}})]})})]})}}},e=>{e.O(0,[433,787,576,195,797,192,636,593,792],()=>e(e.s=23507)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298],{16403:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/documents",function(){return r(19562)}])},19562:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ec});var l=r(65321),n=r(97109),s=r(7576),i=r(35292),o=r(33442),a=r(11702),c=r(17807),d=r(63455),u=r(88762),p=r(85114),h=r(68787),m=r(84253),g=r(38332),x=r(26171),f=r(34052),j=r(42700),v=r(58569),y=r(2256),w=r(38770),A=r(76506),S=r(57271),b=r(49604),k=r(23216),I=r(26619),C=r(8263),z=r(16285),T=r(8579),R=r(75548),E=r(7851),M=r(84742),B=r(29071),_=r(63552),D=r(26631),F=r(29606),P=r(83914),L=r(58209),W=r(54746),G=r(71330),N=r(64068),O=r(93051),H=r(38762),q=r(64629),K=r(67547),V=r(76830),U=r(1310),X=r(6578),Q=r(44494);let{TextArea:J}=s.A,{Text:Y}=i.A;function Z(e){let{type:t="info",title:r,children:n,style:s}=e,i="error"===t?"var(--colorError)":"warning"===t?"var(--colorWarning)":"success"===t?"var(--colorSuccess)":"var(--colorInfo)";return(0,l.jsxs)("div",{style:{border:"1px solid ".concat(i),background:"error"===t?"var(--colorErrorBg)":"warning"===t?"var(--colorWarningBg)":"success"===t?"var(--colorSuccessBg)":"var(--colorInfoBg)",borderRadius:8,padding:"9px 12px",...s},children:[(0,l.jsx)(Y,{strong:!0,style:{color:i},children:r}),n&&(0,l.jsx)("div",{style:{marginTop:4,color:"var(--colorTextSecondary)",fontSize:12},children:n})]})}function $(e){let{children:t,gap:r=12,style:n}=e;return(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:r,...n},children:t})}let ee=null;function et(){null==ee||ee.listeners.forEach(e=>e())}let er={role_binding:(0,l.jsx)(k.A,{}),knowledge_retrieval:(0,l.jsx)(I.A,{}),file_understanding:(0,l.jsx)(C.A,{}),fact_extraction:(0,l.jsx)(z.A,{}),chapter_generation:(0,l.jsx)(T.A,{}),asset_generation:(0,l.jsx)(R.A,{}),validation:(0,l.jsx)(E.A,{}),formatting:(0,l.jsx)(M.A,{}),llm_review:(0,l.jsx)(B.A,{}),export_ready:(0,l.jsx)(_.A,{}),reference:(0,l.jsx)(R.A,{})},el={施工组织设计:(0,l.jsx)(E.A,{}),投标文件:(0,l.jsx)(_.A,{}),技术方案:(0,l.jsx)(z.A,{}),报告:(0,l.jsx)(D.A,{}),自定义:(0,l.jsx)(T.A,{})};function en(e){return[...new Set(e.map(e=>e.trim()).filter(Boolean))]}function es(e){return e?e.split(/[\\/]/u).pop()||e:""}function ei(e){let t=[],r=e=>{for(let l of e)l.isFolder?l.children&&r(l.children):t.push(l.key)};return r(e),t}let eo={role_binding:"角色配置绑定",knowledge_retrieval:"知识库检索",file_understanding:"多模态文件理解",fact_extraction:"LLM 事实抽取",chapter_generation:"LLM 章节生成",asset_generation:"多模态资源生成",validation:"规则校验",formatting:"格式化排版",llm_review:"LLM 审查优化",export_ready:"导出就绪",reference:"参考资源处理"},ea={"knowledge-base":"知识库","document-readiness":"生成准备度检查","quality-repair":"质量补写","export-gate":"导出门禁","context-memory":"项目上下文","final-format":"正式排版","multimodal-files":"多模态文件理解",tender_announcement:"招标公告"};function ec(){var e,t,r,i,R;let ec=(0,Q.Vr)(),{message:ed}=c.A.useApp(),[eu]=d.A.useForm(),ep=(0,n.useRef)(null),[eh,em]=(0,n.useState)([]),[eg,ex]=(0,n.useState)("construction-organization-design"),[ef,ej]=(0,n.useState)([]),[ev,ey]=(0,n.useState)([]),[ew,eA]=(0,n.useState)([]),[eS,eb]=(0,n.useState)([]),[ek,eI]=(0,n.useState)(!1),[eC,ez]=(0,n.useState)(""),[eT,eR]=(0,n.useState)(),[eE,eM]=(0,n.useState)([]),[eB,e_]=(0,n.useState)(!0),[eD,eF]=(0,n.useState)(!1),[eP,eL]=(0,n.useState)(null),[eW,eG]=(0,n.useState)(""),[eN,eO]=(0,n.useState)([]),[eH,eq]=(0,n.useState)(null),[eK,eV]=(0,n.useState)(null),[eU,eX]=(0,n.useState)(""),[eQ,eJ]=(0,n.useState)(!1),[eY,eZ]=(0,n.useState)("idle"),[e$,e0]=(0,n.useState)(null),[e1,e2]=(0,n.useState)(null),[e6,e8]=(0,n.useState)({start:0,end:0}),[e4,e3]=(0,n.useState)([]),[e7,e5]=(0,n.useState)(!1),[e9,te]=(0,n.useState)(!1),[tt,tr]=(0,n.useState)({}),tl=d.A.useWatch("projectRoleConfigId",eu),tn=(0,n.useMemo)(()=>ev.find(e=>e.id===tl),[ev,tl]),ts=(0,n.useMemo)(()=>new Set(((null==tn?void 0:tn.fileRoles)||[]).map(e=>e.roleId)),[tn]),ti=(0,n.useMemo)(()=>ef.filter(e=>"file"===e.type&&(!tl||ts.has(e.id))).map(e=>({label:e.name,value:e.id})),[ef,ts,tl]),to=(0,n.useMemo)(()=>ti.find(e=>e.value===eT)||ti[0],[eT,ti]),ta=d.A.useWatch("fileBindingGroups",eu)||{},tc=(0,n.useMemo)(()=>(function(e){let t={};for(let n of[...e].sort((e,t)=>e.relativePath.localeCompare(t.relativePath,"zh-CN"))){let e=n.relativePath.split("/").filter(Boolean),s="";for(let i=0;i<e.length;i++){let a=e[i],c=s;s=s?"".concat(s,"/").concat(a):a;let d=i===e.length-1;if(!t[s]){var r;t[s]={key:s,rawTitle:a,title:d?(0,l.jsx)("span",{title:n.relativePath,children:a}):(0,l.jsxs)(o.A,{size:4,children:[(0,l.jsx)(F.A,{style:{color:"#faad14"}}),(0,l.jsx)("span",{children:a})]}),isFolder:!d,fileCount:+!!d,...d?{}:{children:[]}},c&&(null==(r=t[c])?void 0:r.children)&&t[c].children.push(t[s])}d&&(t[s].fileCount=1)}}let n=e=>{for(let r of e){var t;(null==(t=r.children)?void 0:t.length)&&(n(r.children),r.fileCount=r.children.reduce((e,t)=>e+t.fileCount,0),r.title=(0,l.jsxs)(o.A,{size:4,children:[(0,l.jsx)(F.A,{style:{color:"#faad14"}}),(0,l.jsx)("span",{children:r.rawTitle}),(0,l.jsx)(a.A,{style:{margin:0},children:r.fileCount})]}))}},s=Object.values(t).filter(e=>!e.key.includes("/"));return n(s),s.filter(e=>!e.isFolder||e.fileCount>0)})(eS),[eS]),td=(0,n.useMemo)(()=>(function e(t,r){let l=r.trim().toLowerCase();return l?t.flatMap(t=>{let r=t.children?e(t.children,l):void 0;return t.key.toLowerCase().includes(l)||t.rawTitle.toLowerCase().includes(l)||(null==r?void 0:r.length)?[{...t,children:r}]:[]}):t})(tc,eC),[tc,eC]),tu=(0,n.useMemo)(()=>ei(tc),[tc]),tp=(0,n.useMemo)(()=>{var e,t,r;return(null==(e=ew.find(e=>e.selected))?void 0:e.projectRoot)||(null==(t=ew.find(e=>e.isCurrent))?void 0:t.projectRoot)||(null==(r=ew[0])?void 0:r.projectRoot)||""},[ew]),th=(0,n.useMemo)(()=>{let e=[],t=r=>{for(let l of r)e.push(l.key),l.children&&t(l.children)};return t(tc),e},[tc]);(0,n.useEffect)(()=>{if(!e9||!tl)return;let e=eu.getFieldValue("fileBindingGroups")||{},t=Object.fromEntries(Object.entries(e).filter(e=>{let[t]=e;return ts.has(t)}));Object.keys(t).length!==Object.keys(e).length&&eu.setFieldValue("fileBindingGroups",t)},[eu,ts,tl,e9]),(0,n.useEffect)(()=>{if(e9){if(0===ti.length)return void eR(void 0);eT&&ti.some(e=>e.value===eT)||eR(ti[0].value)}},[eT,ti,e9]);let[tm,tg]=(0,n.useState)([]),[tx,tf]=(0,n.useState)(null),[tj,tv]=(0,n.useState)(null),[ty,tw]=(0,n.useState)("templates"),[tA,tS]=(0,n.useState)(!1),[tb,tk]=(0,n.useState)("workflow"),tI=(0,n.useRef)(null),tC=(0,n.useRef)(null),tz=(0,n.useRef)(0),tT=(0,n.useMemo)(()=>"activeGenDocId:".concat(tp||"default"),[tp]),tR=async()=>{try{eO((await (0,X.cQ)(tp||void 0)).documents)}catch(e){eO([])}};(0,n.useEffect)(()=>{let e=()=>{ee&&(tg(ee.flowSteps),tf(ee.activeFlowKey),eF(ee.loading),ee.documentId&&eq(ee.documentId),ee.draft&&eL(ee.draft),void 0!==ee.content&&eG(ee.content))},t=ee;return null==t||t.listeners.add(e),e(),()=>{null==t||t.listeners.delete(e)}},[]),(0,n.useEffect)(()=>{e_(!0),Promise.all([(0,X.Dl)().then(e=>{var t,r;em(e.templates),ex(null!=(r=null==(t=e.templates[0])?void 0:t.id)?r:"construction-organization-design")}),(0,X.lv)().then(e=>{ej(e.roles),ey(e.configs)}),(0,X.dx)().then(e=>eA(e))]).catch(()=>ed.error(ec("common.error"))).finally(()=>e_(!1))},[ed,ec]),(0,n.useEffect)(()=>{tp&&(localStorage.removeItem("activeGenDocId"),tR())},[tp]),(0,n.useEffect)(()=>{if(0===eN.length)return;let e=localStorage.getItem(tT);if(!e)return;if(!eN.find(t=>t.id===e&&"generating"===t.status))return void localStorage.removeItem(tT);let t=setInterval(()=>{(async()=>{try{let{document:r}=await (0,X.v7)(e,!1,tp||void 0);await tR(),"generating"!==r.status&&(localStorage.removeItem(tT),clearInterval(t))}catch(e){clearInterval(t)}})()},3e3);return()=>clearInterval(t)},[eN]);let tE=(0,n.useMemo)(()=>eh.find(e=>e.id===eg),[eh,eg]),tM=ev.map(e=>({label:e.name,value:e.id})),tB=Math.max(0,tm.findIndex(e=>e.key===tx)),t_=e=>{var t;return e?(null==(t=ef.find(t=>t.id===e))?void 0:t.name)||ea[e]||"未知角色":""},tD=e=>e.subtitle||e.roleName||t_(e.roleId)||eo[e.type]||e.type,tF=e=>{var t,r,l;return e.promptName||((t=e.promptId)?(null==(r=ew.find(e=>e.id===t))?void 0:r.projectName)||(null==(l=ef.find(e=>e.id===t))?void 0:l.name)||ea[t]||"未知提示词":"")},tP=()=>{tz.current+=1,eX(""),e0(null),e2(null),e3([]),e5(!1),eJ(!1),eZ("idle")},tL=e=>{ex(e),eq(null),eL(null),eG(""),tP(),tk("workflow"),tS(!0),tw("drafts")},tW=async e=>{eq(e.id),ex(e.templateId);let t=tG(e.status);if(t||"failed"===e.status||"aborted"===e.status){tP(),tv(e),eL(null),eG(""),eF(t),tk("workflow"),tS(!0);try{let{document:t}=await (0,X.v7)(e.id,!1,e.projectRoot||tp||void 0);tH(t),tG(t.status)?tq(t.id,t.projectRoot||e.projectRoot||tp||void 0):await tR()}catch(t){tH(e)}return}tk("editor"),tg([]),tf(null),tP();try{let{document:t}=await (0,X.v7)(e.id,!1,e.projectRoot||tp||void 0);eL(t.draft||null),eG(t.editedMarkdown||t.markdown)}catch(e){ed.error(ec("common.error"))}tS(!0)},tG=e=>"completed"!==e&&"warning"!==e&&"failed"!==e&&"aborted"!==e,tN=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eD;(null==ee?void 0:ee.loading)&&(ee.flowSteps=e,ee.activeFlowKey=t,ee.loading=r,et())},tO=e=>{var t,r,n,s,i;let o=e.executionStages||(null==(t=e.draft)?void 0:t.executionStages)||[];if(o.length>0){let t=o.map((t,r)=>{var n;let s,i=("failed"===e.status||"aborted"===e.status)&&"running"===t.status||"failed"===(s=t.status)?"error":"running"===s?"process":"fallback"===s?"warning":"finish";return{key:"".concat(t.type,"-").concat(r),title:t.title||eo[t.type]||t.type,subtitle:tD(t),description:t.message||"",status:i,icon:"role_binding"===(n=t.type)?(0,l.jsx)(k.A,{}):"knowledge_retrieval"===n?(0,l.jsx)(I.A,{}):"file_understanding"===n?(0,l.jsx)(C.A,{}):"fact_extraction"===n?(0,l.jsx)(z.A,{}):"chapter_generation"===n?(0,l.jsx)(T.A,{}):"llm_review"===n?(0,l.jsx)(B.A,{}):"validation"===n?(0,l.jsx)(E.A,{}):"formatting"===n?(0,l.jsx)(M.A,{}):"export_ready"===n?(0,l.jsx)(_.A,{}):(0,l.jsx)(D.A,{}),subSteps:((e,t,r)=>{let l=Array.isArray(e.details)?e.details.filter(Boolean):[],n=e.progress?"".concat(e.progress.label||"进度",":").concat(e.progress.current,"/").concat(e.progress.total):"",s=[...n?[n]:[],...l];return 0===s.length?[{key:"stage-".concat(r),title:tF(e)?"提示词:".concat(tF(e)):tD(e),status:t}]:s.slice(0,8).map((e,l)=>({key:"stage-".concat(r,"-").concat(l),title:e,status:"process"===t&&0===l?"process":"error"===t&&0===l?"error":"warning"===t?"warning":"process"===t?"finish":t}))})(t,i,r)}});"generating"===e.status&&t.length>0&&(null==(r=t.at(-1))?void 0:r.status)==="finish"&&(t[t.length-1]={...t[t.length-1],status:"process"});let a="generating"===e.status?(null==(n=t.at(-1))?void 0:n.key)||"prepare":"failed"===e.status||"aborted"===e.status?(null==(s=t.find(e=>"error"===e.status))?void 0:s.key)||(null==(i=t.at(-1))?void 0:i.key)||"prepare":"done";return{steps:t,activeKey:a}}return{steps:[],activeKey:null}},tH=e=>{tv(e);let{steps:t,activeKey:r}=tO(e);tg(t),tf(r),eF(tG(e.status)),tN(t,r,tG(e.status)),("failed"===e.status||"aborted"===e.status)&&tk("workflow"),("completed"===e.status||"warning"===e.status)&&e.draft&&(eL(e.draft),eG(e.editedMarkdown||e.markdown),tk("editor"),tg([]),tf(null))},tq=(e,t)=>{tI.current&&clearInterval(tI.current),tI.current=setInterval(()=>{(async()=>{try{let{document:r}=await (0,X.v7)(e,!0,t||tp||void 0);tH(r),await tR(),tG(r.status)||(tI.current&&clearInterval(tI.current),tI.current=null,localStorage.removeItem(tT))}catch(e){}})()},2e3)};(0,n.useEffect)(()=>()=>{tI.current&&(clearInterval(tI.current),tI.current=null),tC.current&&(clearTimeout(tC.current),tC.current=null)},[]),(0,n.useEffect)(()=>{if(!eD||!tx)return;let e=window.setInterval(()=>tg(e=>{let t=e.map(e=>{if(e.key!==tx||"process"!==e.status)return e;let t=e.subSteps.findIndex(e=>"process"===e.status),r=t<0?0:Math.min(t+1,e.subSteps.length-1);return{...e,subSteps:e.subSteps.map((e,t)=>t<r?{...e,status:"finish"}:t===r?{...e,status:"process"}:{...e,status:"wait"})}});return tN(t,tx),t}),1400);return()=>window.clearInterval(e)},[tx,eD]);let tK=async()=>{eI(!0);try{let e=await (0,X.HT)({limit:5e3,projectRoot:tp||void 0});eb(e.files)}catch(e){ed.error("知识库文件加载失败")}finally{eI(!1)}},tV=e=>{var t,r,l;let n=null!=e?e:{id:"tpl-".concat(Date.now()),name:"",description:"",category:"自定义",outputTitle:"",projectRoleConfigId:void 0,chapters:[],fileBindings:[]};eu.resetFields(),eu.setFieldsValue({...n,fileBindingGroups:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((e,t)=>(t.roleId&&t.filePath&&(e[t.roleId]=en([...e[t.roleId]||[],t.filePath])),e),{})}(n.fileBindings)}),eR(null==(l=ev.find(e=>e.id===n.projectRoleConfigId))||null==(r=l.fileRoles)||null==(t=r[0])?void 0:t.roleId),ez(""),tK(),te(!0)},tU=(e,t)=>{let r=eu.getFieldValue("fileBindingGroups")||{};eu.setFieldValue("fileBindingGroups",{...r,[e]:en(t)})},tX=async()=>{try{var e;await eu.validateFields();let t=eu.getFieldsValue(!0),r=new Set(((null==(e=ev.find(e=>e.id===t.projectRoleConfigId))?void 0:e.fileRoles)||[]).map(e=>e.roleId)),l=t.fileBindingGroups||{},n=Object.entries(l).filter(e=>{let[t]=e;return 0===r.size||r.has(t)}).flatMap(e=>{let[t,r]=e;return en(r||[]).map(e=>({roleId:t,filePath:e}))}),{fileBindingGroups:s,...i}=t,o={...i,chapters:[],fileBindings:n},a=await (0,X.l2)(o);em(a.templates),ex(a.template.id),te(!1),await tR(),ed.success(ec("common.success"))}catch(e){e instanceof Error&&ed.error(e.message)}},tQ=async e=>{try{let t=await (0,X.bV)(e);em(t.templates),ex(t.template.id),ed.success(ec("common.success"))}catch(e){ed.error(ec("common.error"))}},tJ=async e=>{try{var t,r;let l=await (0,X.h0)(e);em(l.templates),ex(null!=(r=null==(t=l.templates[0])?void 0:t.id)?r:""),ed.success(ec("common.success"))}catch(e){ed.error(ec("common.error"))}},tY=async e=>{try{let{validation:t}=await (0,X.SM)(e,tp||void 0);tr(r=>({...r,[e]:t}));let r=t.issues.filter(e=>"error"===e.level);if(ex(e),r.length>0)return void ed.warning("模板运行前检查未通过,请先处理阻断项");if(t.issues.length>0)return void ed.warning("模板存在警告,可在检查面板确认后继续运行");tL(e)}catch(e){ed.error(e instanceof Error?e.message:"模板运行前检查失败")}},tZ=async e=>{try{await (0,X.QG)(e.id,e.projectRoot||tp||void 0),eH===e.id&&(eq(null),eL(null),eG("")),await tR(),ed.success(ec("common.success"))}catch(e){ed.error(ec("common.error"))}},t$=async(e,t)=>{let r=Date.now(),l=0,n=Date.now();for(;;){let s;if(null==t?void 0:t.aborted)throw Error("用户中止");let i=new AbortController;t&&(t.pollController=i);try{({document:s}=await (0,X.v7)(e,!0,tp||void 0,i.signal))}finally{(null==t?void 0:t.pollController)===i&&(t.pollController=void 0)}if(tH(s),s.updatedAt!==l&&(l=s.updatedAt,n=Date.now()),("completed"===s.status||"warning"===s.status)&&s.draft)return s;if("failed"===s.status||"aborted"===s.status)throw Error(s.error||("aborted"===s.status?"生成已中止":"生成失败"));if(Date.now()-r>75e5||Date.now()-n>96e4)throw Error("生成任务疑似卡住,请点击继续生成或重新生成");await new Promise(e=>window.setTimeout(e,1500))}},t0=async()=>{if(!eg)return;if((null==ee?void 0:ee.aborted)&&(ee=null),null==ee?void 0:ee.loading){tg(ee.flowSteps),tf(ee.activeFlowKey),eF(!0);return}if(!tp)return void ed.error("未识别当前项目,请先选择或打开项目后再生成文件");eF(!0);let e=(0,X.OX)({templateId:eg,projectRoot:tp});ee={id:Date.now(),templateId:eg,loading:!0,flowSteps:[],activeFlowKey:null,promise:e,listeners:new Set},tg([]),tf(null);let t=[];try{let r=await e;r.documentId&&(localStorage.setItem(tT,r.documentId),eq(r.documentId),(null==ee?void 0:ee.promise)===e&&(ee.documentId=r.documentId)),await tR();let l=r.documentId?await t$(r.documentId,(null==ee?void 0:ee.promise)===e?ee:void 0):void 0,n=r.draft||(null==l?void 0:l.draft);if(!n)throw Error("生成结果为空");(r.documentId||(null==l?void 0:l.id))&&eq(r.documentId||l.id),t.forEach(e=>window.clearTimeout(e)),eL(n),eG((null==l?void 0:l.editedMarkdown)||(null==l?void 0:l.markdown)||n.markdown),(null==ee?void 0:ee.promise)===e&&(ee.draft=n,ee.content=(null==l?void 0:l.editedMarkdown)||(null==l?void 0:l.markdown)||n.markdown);let s=l||{id:r.documentId||"draft-".concat(Date.now()),templateId:eg,title:n.title,requirement:n.requirement,projectRoot:n.projectRoot||tp,projectId:n.projectId,markdown:n.markdown,status:n.validationIssues.some(e=>"error"===e.level||"warning"===e.level)||!n.exportGate.passed?"warning":"completed",draft:n,executionStages:n.executionStages,assets:n.assets||[],createdAt:n.generatedAt,updatedAt:Date.now()},{steps:i}=tO(s);tg(i),tN(i,"done",!1),tf("done"),(null==ee?void 0:ee.promise)===e&&(ee.activeFlowKey="done",ee.loading=!1,et(),ee=null),localStorage.removeItem(tT),await tR(),ed.success(ec("common.success")),window.setTimeout(()=>{var e;return null==(e=ep.current)?void 0:e.scrollIntoView({behavior:"smooth",block:"start"})},200)}catch(l){localStorage.removeItem(tT);let t=l instanceof Error?l.message:ec("common.error"),r=/用户中止|abort|aborted/i.test(t);r||tg(e=>{let r=e.map(e=>"process"===e.status?{...e,status:"error",description:t,subSteps:((e,t)=>{if("wait"===t)return e.subSteps.map(e=>({...e,status:"wait"}));if("finish"===t)return e.subSteps.map(e=>({...e,status:"finish"}));if("error"===t)return e.subSteps.map((e,t)=>({...e,status:0===t?"error":e.status}));let r=e.subSteps.findIndex(e=>"wait"===e.status);return e.subSteps.map((e,t)=>t<r||-1===r?{...e,status:"finish"}:t===r?{...e,status:"process"}:e)})(e,"error")}:e);return tN(r,tx,!1),r}),(null==ee?void 0:ee.promise)===e&&(ee.loading=!1,ee.error=t,et(),ee=null),await tR().catch(()=>void 0),r||ed.error(t)}finally{t.forEach(e=>window.clearTimeout(e)),eF(!1),(null==ee?void 0:ee.promise)===e&&(ee.loading=!1,et())}},t1=(0,n.useRef)(!1);(0,n.useEffect)(()=>(tC.current&&(clearTimeout(tC.current),tC.current=null),!tA||"workflow"!==tb||eH||t1.current||(null==ee?void 0:ee.loading)||null==tE||!tE.projectRoleConfigId||(t1.current=!0,tC.current=setTimeout(()=>{tC.current=null,tA&&"workflow"===tb&&!eH&&eg==eg&&t0()},300)),tA||(t1.current=!1),()=>{tC.current&&(clearTimeout(tC.current),tC.current=null)}),[tA,tb,eH,tE,eg]);let t2=async e=>{try{eq(e.id),ex(e.templateId),tk("workflow"),tS(!0),eF(!0);let t=await (0,X.UQ)(e.id,e.projectRoot||tp||void 0);localStorage.setItem(tT,t.documentId),await tR();let r=await t$(t.documentId);r.draft&&(eL(r.draft),eG(r.editedMarkdown||r.markdown||r.draft.markdown),tk("editor")),localStorage.removeItem(tT),await tR(),ed.success("已继续生成并完成")}catch(e){ed.error(e instanceof Error?e.message:"继续生成失败")}finally{eF(!1)}},t6=async e=>{if((null==ee?void 0:ee.loading)&&ee.documentId===e.id){var t;ee.aborted=!0,null==(t=ee.pollController)||t.abort(),ee.loading=!1,ee.error="用户中止",et(),ee=null,eF(!1)}localStorage.removeItem(tT),tI.current&&(clearInterval(tI.current),tI.current=null);try{await (0,X.r)(e.id,e.projectRoot||tp||void 0),ed.success("已中止生成任务")}catch(e){ed.info("任务已不在运行,已刷新状态")}finally{await tR(),eH===e.id&&(eq(null),tv(null),eL(null),eG(""))}},t8=async e=>{if(eP){eV(e);try{eP.exportGate.passed||ed.warning("导出门禁存在风险项,已允许导出,请下载后人工复核。");let t={documentId:eH||void 0,title:eP.title,markdown:eW,format:e,enforceGate:!1,exportGate:eP.exportGate,useClientMarkdown:!0,projectRoot:eP.projectRoot||tp||void 0},r=await (0,X.UE)(t);((e,t,r)=>{let l=new Blob([e],{type:r}),n=URL.createObjectURL(l),s=document.createElement("a");s.href=n,s.download=t,s.target="_self",s.rel="noopener",s.style.display="none",document.body.appendChild(s),s.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),s.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),1e3)})(r,"".concat(eP.title,".").concat("markdown"===e?"md":e),{markdown:"text/markdown;charset=utf-8",html:"text/html;charset=utf-8",pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}[e])}catch(e){ed.error(e instanceof Error?e.message:ec("common.error"))}finally{eV(null)}}},t4=async()=>{if(eP)try{if(eH)await (0,X.a6)(eH,{editedMarkdown:eW,markdown:eW},eP.projectRoot||tp||void 0);else{let e=await (0,X.Af)({...eP,markdown:eW});eL(e.draft)}await tR(),ed.success(ec("common.success"))}catch(e){ed.error(ec("common.error"))}},t3=(e,t)=>{e3(r=>[{id:"".concat(Date.now()),content:e,prompt:t,createdAt:Date.now()},...r].slice(0,12))},t7=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&eX(""),e0(null),e2(null),e8({start:0,end:0})},t5=(e,t)=>{var r,l;return{title:(null==eP?void 0:eP.title)||"未命名文档",markdown:t,instruction:e,facts:null==eP||null==(r=eP.structuredFacts)?void 0:r.map(e=>"".concat(e.key,": ").concat(e.value)),chapters:null==eP||null==(l=eP.chapters)?void 0:l.map(e=>e.title),...(()=>{let e=e6.start,t=e6.end;return t>e?{selection:{start:e,end:t,text:eW.slice(e,t)},cursorOffset:e}:{cursorOffset:e}})()}},t9=async()=>{let e=eU.trim();if(!eP||!e||eQ)return;let t=tz.current+1;tz.current=t,eJ(!0),eZ("planning"),e2(null);try{let r=await (0,X.Gi)({mode:"plan",...t5(e,eW)});if(tz.current!==t||eH!=eH)return;if(!r.plan)throw Error("AI 未返回修改计划");e0(r.plan)}catch(e){tz.current===t&&ed.error(e instanceof Error?e.message:ec("common.error"))}finally{tz.current===t&&(eJ(!1),eZ("idle"))}},re=async e=>{let t=eU.trim();if(!eP||!t||eQ)return;let r=tz.current+1;tz.current=r,eJ(!0),eZ("applying");try{let l=await (0,X.Gi)({mode:"apply",...t5(t,eW),plan:e});if(tz.current!==r||eH!=eH)return;if(!l.markdown)throw Error("AI 未返回修改结果");e2({plan:l.plan||e,markdown:l.markdown,beforeSnippet:l.beforeSnippet,afterSnippet:l.afterSnippet,summary:l.summary,changedChars:l.changedChars,prompt:t,before:eW})}catch(e){tz.current===r&&ed.error(e instanceof Error?e.message:ec("common.error"))}finally{tz.current===r&&(eJ(!1),eZ("idle"))}};if(eB)return(0,l.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,l.jsx)(u.A,{active:!0,title:!0,paragraph:{rows:1}}),(0,l.jsx)(u.A,{active:!0,paragraph:{rows:2}}),(0,l.jsx)(u.A,{active:!0,paragraph:{rows:8}})]});let rt="workflow"===tb?"工作流:".concat((null==tE?void 0:tE.name)||"选择模板"):"编辑:".concat((null==eP?void 0:eP.title)||(null==tE?void 0:tE.outputTitle)||"文档");return(0,l.jsxs)("div",{className:"space-y-5 animateFadeIn",children:[(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:12},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"pageTitle",children:ec("documents.title")}),(0,l.jsx)("p",{className:"pageDesc",children:ec("documents.description")})]}),(0,l.jsx)(p.Ay,{type:"primary",icon:(0,l.jsx)(W.A,{}),onClick:()=>tV(),children:ec("documents.newTemplate")})]}),(0,l.jsx)(h.A,{size:"small",tabList:[{key:"templates",label:"模板库 (".concat(eh.length,")")},{key:"drafts",label:"生成记录 (".concat(eN.length,")")}],activeTabKey:ty,onTabChange:tw,children:"templates"===ty?0===eh.length?(0,l.jsx)(m.A,{description:ec("common.noData")}):(0,l.jsx)(g.A,{dataSource:eh,renderItem:e=>{var t,r;return(0,l.jsx)(g.A.Item,{style:{cursor:"pointer",padding:"10px 0"},actions:[(0,l.jsx)(p.Ay,{size:"small",icon:(0,l.jsx)(G.A,{}),onClick:t=>{t.stopPropagation(),tV(e)},children:"配置"},"cfg"),(0,l.jsx)(p.Ay,{size:"small",type:"primary",icon:(0,l.jsx)(N.A,{}),onClick:t=>{t.stopPropagation(),tY(e.id)},children:"运行"},"run"),(0,l.jsx)(p.Ay,{size:"small",icon:(0,l.jsx)(O.A,{}),onClick:t=>{t.stopPropagation(),tQ(e.id)}},"copy"),(0,l.jsx)(x.A,{title:ec("documents.deleteTemplateConfirm"),onConfirm:t=>{null==t||t.stopPropagation(),tJ(e.id)},children:(0,l.jsx)(p.Ay,{size:"small",danger:!0,icon:(0,l.jsx)(L.A,{}),onClick:e=>e.stopPropagation()})},"del")],onClick:()=>ex(e.id),children:(0,l.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:10,minWidth:0,flex:1},children:[function(e,t){let r=el[e]||(0,l.jsx)(D.A,{});return(0,l.jsx)("span",{style:{color:t?"var(--colorAccent)":"var(--colorTextSecondary)",fontSize:16,marginTop:2,flexShrink:0},children:r})}(e.category,eg===e.id),(0,l.jsxs)("div",{style:{minWidth:0,flex:1},children:[(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:2},children:[(0,l.jsx)("span",{style:{fontWeight:eg===e.id?600:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),eg===e.id&&(0,l.jsx)(a.A,{color:"blue",style:{margin:0,fontSize:10,lineHeight:"16px",flexShrink:0},children:"当前"}),(0,l.jsx)(a.A,{style:{margin:0,fontSize:10,lineHeight:"16px",flexShrink:0},children:e.category}),tt[e.id]&&(0,l.jsxs)(a.A,{color:tt[e.id].issues.some(e=>"error"===e.level)?"error":tt[e.id].issues.length?"warning":"success",style:{margin:0,fontSize:10,lineHeight:"16px",flexShrink:0},children:["检查 ",tt[e.id].fileDiagnostics.length," 文件 / ",tt[e.id].promptDiagnostics.length," 提示词"]})]}),e.description&&(0,l.jsx)(Y,{type:"secondary",style:{fontSize:12,lineHeight:"18px"},children:e.description}),tt[e.id]&&(0,l.jsx)("div",{onClick:e=>e.stopPropagation(),style:{marginTop:8,padding:10,border:"1px solid ".concat(tt[e.id].issues.some(e=>"error"===e.level)?"var(--colorErrorBorder)":tt[e.id].issues.length?"var(--colorWarningBorder)":"var(--colorSuccessBorder)"),borderRadius:10,background:tt[e.id].issues.some(e=>"error"===e.level)?"var(--colorErrorBg)":tt[e.id].issues.length?"var(--colorWarningBg)":"var(--colorSuccessBg)"},children:(0,l.jsxs)($,{gap:6,style:{width:"100%"},children:[(0,l.jsxs)(o.A,{wrap:!0,children:[(0,l.jsx)(Y,{strong:!0,children:tt[e.id].issues.some(e=>"error"===e.level)?"运行前检查未通过":tt[e.id].issues.length?"运行前检查存在警告":"运行前检查通过"}),(0,l.jsxs)(a.A,{color:"blue",children:["文件角色 ",tt[e.id].fileDiagnostics.length]}),(0,l.jsxs)(a.A,{color:"purple",children:["提示词角色 ",tt[e.id].promptDiagnostics.length]}),tt[e.id].readiness&&(0,l.jsxs)(a.A,{color:tt[e.id].readiness.ready?"green":"error",children:["资料覆盖 ",Math.round(100*tt[e.id].readiness.materialCoverageRate),"%"]}),tt[e.id].readiness&&(0,l.jsxs)(a.A,{color:"cyan",children:["角色满足 ",Math.round(100*tt[e.id].readiness.roleSatisfactionRate),"%"]}),tt[e.id].readiness&&(0,l.jsxs)(a.A,{color:"geekblue",children:["规范完整 ",Math.round(100*tt[e.id].readiness.specCompletenessRate),"%"]})]}),null==(r=tt[e.id].readiness)||null==(t=r.chapterDiagnostics)?void 0:t.filter(e=>e.readinessRate<.7||e.missingFacts.length>0).slice(0,5).map(e=>(0,l.jsx)(Z,{type:e.readinessRate<.5?"warning":"info",title:"章节预检:".concat(e.title," \xb7 覆盖 ").concat(Math.round(100*e.readinessRate),"% \xb7 证据 ").concat(e.evidenceCount," 条").concat(e.missingFacts.length?" \xb7 缺失 ".concat(e.missingFacts.slice(0,4).join("、")):"")},e.chapterId)),tt[e.id].issues.length>0?tt[e.id].issues.map(e=>(0,l.jsx)(Z,{type:"error"===e.level?"error":"warning",title:e.message},e.message)):(0,l.jsx)(Z,{type:"success",title:"文件角色、提示词角色和后台自动规范检查通过,可以运行。"}),!tt[e.id].issues.some(e=>"error"===e.level)&&tt[e.id].issues.length>0&&(0,l.jsx)("div",{children:(0,l.jsx)(p.Ay,{size:"small",type:"primary",icon:(0,l.jsx)(N.A,{}),onClick:()=>tL(e.id),children:"忽略警告并继续运行"})})]})})]})]})})}}):0===eN.length?(0,l.jsx)(m.A,{description:ec("common.noData")}):(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:eN.slice(0,15).map((e,t)=>{var r,n,s,i,c;let d,u;return(0,l.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:10,padding:"10px 12px",border:"1px solid var(--colorBorderSecondary)",borderRadius:10,cursor:"pointer",background:eH===e.id?"var(--colorFillAlter)":void 0,minWidth:0},onClick:()=>{tW(e)},children:["completed"===e.status?(0,l.jsx)(M.A,{style:{fontSize:18,color:"var(--colorOk)",flexShrink:0,marginTop:2}}):"failed"===e.status||"aborted"===e.status?(0,l.jsx)(H.A,{style:{fontSize:18,color:"var(--colorDanger)",flexShrink:0,marginTop:2}}):"warning"===e.status?(0,l.jsx)(E.A,{style:{fontSize:18,color:"var(--colorWarning)",flexShrink:0,marginTop:2}}):(0,l.jsx)(q.A,{spin:!0,style:{fontSize:18,color:"#1677ff",flexShrink:0,marginTop:2}}),(0,l.jsxs)("div",{style:{minWidth:0,flex:1},children:[(0,l.jsx)("div",{style:{fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginBottom:3},children:e.title}),(0,l.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px 10px",color:"var(--colorTextSecondary)",fontSize:11},children:[(0,l.jsx)("span",{children:new Date(e.updatedAt).toLocaleString()}),(0,l.jsxs)("span",{children:["耗时 ",(e=>{let t=Math.max(0,Math.round(((e.completedAt||e.updatedAt)-e.createdAt)/1e3));if(t<60)return"".concat(t," 秒");let r=Math.floor(t/60),l=t%60;if(r<60)return l?"".concat(r," 分 ").concat(l," 秒"):"".concat(r," 分");let n=Math.floor(r/60),s=r%60;return s?"".concat(n," 小时 ").concat(s," 分"):"".concat(n," 小时")})(e)]})]}),e.partialChapters&&e.partialChapters.length>0&&(0,l.jsxs)("div",{style:{marginTop:3,fontSize:11,color:"var(--colorTextSecondary)"},children:["已完成章节 ",e.partialChapters.filter(e=>"completed"===e.status).length,"/",e.partialChapters.length," \xb7 ",e.partialChapters.reduce((e,t)=>e+t.chars,0).toLocaleString()," 字"]}),("warning"===e.status||"failed"===e.status||"aborted"===e.status)&&(0,l.jsx)("div",{style:{marginTop:3,color:"failed"===e.status||"aborted"===e.status?"var(--colorError)":"var(--colorWarning)",fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.error||(null==(r=e.warningIssues)?void 0:r[0])||(null==(s=e.draft)||null==(n=s.validationIssues.find(e=>"error"===e.level||"warning"===e.level))?void 0:n.message)||"需复核"})]}),(0,l.jsxs)(o.A,{size:4,align:"center",children:[(0,l.jsx)(a.A,{color:"completed"===(d=e.status)?"success":"warning"===d?"warning":"failed"===d?"error":"aborted"===d?"default":"processing",style:{margin:0,fontSize:10,lineHeight:"18px"},children:"completed"===(u=e.status)?"已完成":"warning"===u?"需复核":"failed"===u?"失败":"aborted"===u?"已中止":"生成中"}),(0,l.jsxs)(a.A,{style:{margin:0,fontSize:10,lineHeight:"18px"},children:["#",t+1]}),(0,l.jsx)(x.A,{title:"确认删除?",onConfirm:t=>{null==t||t.stopPropagation(),tZ(e)},children:(0,l.jsx)(p.Ay,{size:"small",danger:!0,icon:(0,l.jsx)(L.A,{}),onClick:e=>e.stopPropagation()})}),tG(e.status)&&(0,l.jsx)(x.A,{title:"确定中止此生成任务?",onConfirm:t=>{null==t||t.stopPropagation(),t6(e)},children:(0,l.jsx)(p.Ay,{size:"small",danger:!0,onClick:e=>e.stopPropagation(),children:"中止"})}),("failed"===e.status||"aborted"===e.status||"warning"===e.status&&!!(null==(i=e.checkpointChapters)?void 0:i.length)&&/继续生成|重新生成|中断|卡住|未完成/u.test(e.error||(null==(c=e.warningIssues)?void 0:c.join(";"))||""))&&(0,l.jsx)(p.Ay,{size:"small",onClick:t=>{t.stopPropagation(),t2(e)},children:"继续"}),(0,l.jsx)(p.Ay,{size:"small",type:"primary",icon:tG(e.status)?(0,l.jsx)(q.A,{spin:!0}):(0,l.jsx)(N.A,{}),onClick:t=>{t.stopPropagation(),tW(e)},children:"打开"})]})]},e.id)})})}),(0,l.jsx)(f.A,{title:rt,open:tA,onClose:()=>{tS(!1),tI.current&&(clearInterval(tI.current),tI.current=null)},size:800,mask:{closable:!1},style:{borderRadius:"12px 0 0 12px"},styles:{body:{padding:"16px 24px"},header:{borderRadius:"12px 0 0 0",borderBottom:"1px solid var(--colorBorderSecondary)"}},extra:eP?(0,l.jsxs)(o.A,{wrap:!0,children:[(0,l.jsx)(p.Ay,{icon:(0,l.jsx)(K.A,{}),disabled:eQ,onClick:()=>{t4()},children:ec("documents.saveDraft")}),(0,l.jsx)(p.Ay,{icon:(0,l.jsx)(V.A,{}),disabled:eQ,loading:"markdown"===eK,onClick:()=>{t8("markdown")},children:"MD"}),(0,l.jsx)(p.Ay,{disabled:eQ,loading:"html"===eK,onClick:()=>{t8("html")},children:"HTML"}),(0,l.jsx)(p.Ay,{disabled:eQ,loading:"docx"===eK,onClick:()=>{t8("docx")},children:"DOCX"}),(0,l.jsx)(p.Ay,{type:"primary",disabled:eQ,loading:"pdf"===eK,onClick:()=>{t8("pdf")},children:"PDF"})]}):eD&&"workflow"===tb?(0,l.jsx)(p.Ay,{danger:!0,onClick:()=>{(async()=>{if(eH&&await (0,X.r)(eH,tp||void 0).catch(()=>void 0),ee){var e;ee.aborted=!0,null==(e=ee.pollController)||e.abort(),ee.loading=!1,ee.error="用户中止",et(),ee=null}localStorage.removeItem(tT),tI.current&&(clearInterval(tI.current),tI.current=null),eF(!1),tg([]),tf(null),tS(!1),await tR(),ed.info("已中止生成任务")})()},children:"中止任务"}):void 0,children:(0,l.jsxs)($,{style:{width:"100%"},gap:16,children:["workflow"===tb&&tm.length>0&&(0,l.jsx)($,{gap:10,children:tm.map((e,t)=>{let r;return(0,l.jsxs)("div",{style:{display:"flex",gap:10,padding:10,border:"1px solid var(--colorBorderSecondary)",borderRadius:10,background:t===tB?"var(--colorFillAlter)":"var(--colorBgContainer)"},children:[(0,l.jsx)("span",{children:"process"===e.status?(0,l.jsx)(P.A,{}):"warning"===e.status?(0,l.jsx)(E.A,{style:{color:"var(--colorWarning)"}}):e.icon}),(0,l.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,l.jsxs)(o.A,{wrap:!0,children:[(0,l.jsx)(Y,{strong:!0,children:e.title}),(0,l.jsx)(a.A,{color:"finish"===e.status?"success":"error"===e.status?"error":"warning"===e.status?"warning":"process"===e.status?"processing":"default",children:"warning"===(r=e.status)?"finish":r})]}),(0,l.jsx)("div",{style:{marginTop:4,color:"var(--colorTextSecondary)",fontSize:12,whiteSpace:"pre-wrap"},children:(0,l.jsxs)("div",{children:[e.subtitle&&(0,l.jsx)("div",{style:{marginBottom:4},children:(0,l.jsx)(a.A,{children:e.subtitle})}),(0,l.jsx)("div",{children:e.description}),(0,l.jsx)("div",{style:{marginTop:4},children:e.subSteps.map(e=>{var t;return(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,fontSize:12,color:"process"===e.status?"var(--colorPrimary)":"var(--colorTextSecondary)"},children:["process"===(t=e.status)?(0,l.jsx)(P.A,{}):"finish"===t?(0,l.jsx)(M.A,{}):"warning"===t?(0,l.jsx)(E.A,{style:{color:"var(--colorWarning)"}}):"error"===t?(0,l.jsx)(L.A,{}):(0,l.jsx)("span",{style:{display:"inline-block",height:6,width:6,borderRadius:"50%",background:"var(--colorTextTertiary)"}}),(0,l.jsx)("span",{children:e.title})]},e.key)})})]})})]})]},e.key)})}),"workflow"===tb&&(null==tj?void 0:tj.partialChapters)&&tj.partialChapters.length>0&&(0,l.jsx)(h.A,{size:"small",title:"章节进度",extra:(0,l.jsxs)(a.A,{color:"blue",children:[tj.partialChapters.filter(e=>"completed"===e.status).length,"/",tj.partialChapters.length]}),children:(0,l.jsx)($,{gap:6,style:{width:"100%"},children:tj.partialChapters.map(e=>(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",gap:8,fontSize:12},children:[(0,l.jsx)(Y,{ellipsis:!0,style:{maxWidth:480},children:e.title}),(0,l.jsxs)(o.A,{size:6,children:[(0,l.jsx)(a.A,{color:"failed"===e.status?"error":"success",children:"failed"===e.status?"失败":"完成"}),(0,l.jsxs)(Y,{type:"secondary",children:[e.chars.toLocaleString()," 字"]})]})]},e.id))})}),"workflow"===tb&&(null==tj||null==(e=tj.reviewMetadata)?void 0:e.diagnostics)&&(0,l.jsx)(Z,{type:"info",title:"后台自动优化",children:"策略:".concat(tj.reviewMetadata.diagnostics.strategy.mode,";LLM 调用 ").concat(tj.reviewMetadata.diagnostics.llm.calls," 次;噪声过滤 ").concat((null==(t=tj.reviewMetadata.diagnostics.evidence)?void 0:t.filteredNoise)||0," 条;质量门禁 阻断").concat((null==(r=tj.reviewMetadata.diagnostics.quality)?void 0:r.blockingCount)||0,"/重要").concat((null==(i=tj.reviewMetadata.diagnostics.quality)?void 0:i.importantCount)||0,"/轻微").concat((null==(R=tj.reviewMetadata.diagnostics.quality)?void 0:R.minorCount)||0,";自动限流调整 ").concat(tj.reviewMetadata.diagnostics.llm.limitAdjustments," 次。审查与诊断信息仅用于系统修复,不会写入正文或导出文件。")}),"workflow"===tb&&eD&&0===tm.length&&(0,l.jsxs)("div",{style:{textAlign:"center",padding:40},children:[(0,l.jsx)(j.A,{}),(0,l.jsx)("div",{style:{marginTop:12,color:"var(--colorTextSecondary)"},children:"正在准备生成…"})]}),eP&&(0,l.jsx)("div",{ref:ep,children:(0,l.jsx)(v.A,{items:[{key:"edit",label:ec("documents.edit"),children:(0,l.jsxs)($,{gap:16,style:{width:"100%"},children:[(0,l.jsx)(J,{rows:28,value:eW,disabled:eQ,onSelect:e=>{var t,r,l;return e8({start:null!=(t=e.currentTarget.selectionStart)?t:0,end:null!=(l=null!=(r=e.currentTarget.selectionEnd)?r:e.currentTarget.selectionStart)?l:0})},onChange:e=>{var t,r,l;eG(e.target.value),e0(null),e2(null),e8({start:null!=(t=e.target.selectionStart)?t:0,end:null!=(l=null!=(r=e.target.selectionEnd)?r:e.target.selectionStart)?l:0})}}),(0,l.jsx)(h.A,{size:"small",style:{borderRadius:12,background:"linear-gradient(135deg, var(--colorFillAlter), var(--colorBgContainer))"},children:(0,l.jsxs)($,{gap:16,style:{width:"100%"},children:[(0,l.jsxs)(o.A,{align:"start",style:{width:"100%",justifyContent:"space-between"},children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)(o.A,{size:6,children:[(0,l.jsx)(B.A,{style:{color:"var(--colorAccent)"}}),(0,l.jsx)(Y,{strong:!0,children:"精准修改"}),(0,l.jsx)(a.A,{color:"blue",children:"AI 辅助"})]}),(0,l.jsx)("div",{style:{marginTop:4,color:"var(--colorTextSecondary)",fontSize:12},children:"针对当前编辑内容补充更具体的要求,AI 会保留文档结构并按你的提示细化修改。"})]}),(0,l.jsxs)(p.Ay,{size:"small",icon:(0,l.jsx)(U.A,{}),onClick:()=>e5(e=>!e),disabled:0===e4.length,children:["历史版本 ",e4.length>0?e4.length:""]})]}),(0,l.jsx)(Z,{type:"info",title:"系统只负责识别修改范围,不改写你的提示词;选中文字后优先只改选区,没有选区时按光标所在小节/章节定位。"}),(0,l.jsx)(J,{rows:4,value:eU,disabled:eQ,onChange:e=>{eX(e.target.value),e0(null),e2(null)},placeholder:"例如:写细一点;润色这段;第七章补充高处作业和临电安全措施;把安全检查频次改成每周一次。"}),(0,l.jsxs)(o.A,{wrap:!0,style:{width:"100%",justifyContent:"space-between"},children:[(0,l.jsx)(o.A,{wrap:!0,children:["写细一点","更专业","只润色选区","补充可执行措施"].map(e=>(0,l.jsx)(p.Ay,{size:"small",disabled:eQ,onClick:()=>eX(t=>t?"".concat(t,";").concat(e):e),children:e},e))}),(0,l.jsx)(p.Ay,{type:"primary",icon:(0,l.jsx)(B.A,{}),loading:eQ&&"planning"===eY,disabled:!eU.trim()||eQ,onClick:()=>{t9()},children:"识别修改范围"})]}),e$&&!e1&&(0,l.jsx)(h.A,{size:"small",style:{borderRadius:10,borderColor:"var(--colorAccent)"},children:(0,l.jsxs)($,{gap:8,style:{width:"100%"},children:[(0,l.jsxs)(o.A,{wrap:!0,children:[(0,l.jsx)(a.A,{color:"purple",children:e$.scope}),(0,l.jsx)(a.A,{color:"blue",children:e$.action}),(0,l.jsxs)(a.A,{color:e$.confidence>=.8?"green":"orange",children:["置信度 ",Math.round(100*e$.confidence),"%"]}),e$.targetTitle&&(0,l.jsx)(Y,{strong:!0,children:e$.targetTitle})]}),(0,l.jsx)(Y,{children:e$.summary}),(0,l.jsx)(Y,{type:"secondary",style:{fontSize:12},children:"将按你的原始提示词执行,不添加额外编辑任务。"}),(0,l.jsxs)(o.A,{children:[(0,l.jsx)(p.Ay,{type:"primary",loading:eQ&&"applying"===eY,onClick:()=>{re(e$)},children:"执行并预览"}),(0,l.jsx)(p.Ay,{disabled:eQ,onClick:()=>e0(null),children:"取消"})]})]})}),e1&&(0,l.jsx)(h.A,{size:"small",style:{borderRadius:10,borderColor:"var(--colorSuccess)"},children:(0,l.jsxs)($,{gap:8,style:{width:"100%"},children:[(0,l.jsxs)(o.A,{wrap:!0,children:[(0,l.jsx)(a.A,{color:"green",children:"修改预览"}),(0,l.jsx)(Y,{children:e1.summary||e1.plan.summary}),(0,l.jsxs)(a.A,{children:[e1.changedChars&&e1.changedChars>0?"+".concat(e1.changedChars):e1.changedChars," 字符"]})]}),(0,l.jsxs)(y.A,{gutter:12,children:[(0,l.jsxs)(w.A,{span:12,children:[(0,l.jsx)(Y,{strong:!0,children:"修改前"}),(0,l.jsx)("div",{style:{marginTop:6,maxHeight:180,overflow:"auto",padding:10,borderRadius:8,background:"var(--colorFillAlter)",whiteSpace:"pre-wrap",fontSize:12},children:e1.beforeSnippet||"无片段预览"})]}),(0,l.jsxs)(w.A,{span:12,children:[(0,l.jsx)(Y,{strong:!0,children:"修改后"}),(0,l.jsx)("div",{style:{marginTop:6,maxHeight:180,overflow:"auto",padding:10,borderRadius:8,background:"var(--colorFillAlter)",whiteSpace:"pre-wrap",fontSize:12},children:e1.afterSnippet||"无片段预览"})]})]}),(0,l.jsxs)(o.A,{children:[(0,l.jsx)(p.Ay,{type:"primary",onClick:()=>{e1&&(t3(e1.before,e1.prompt),eG(e1.markdown),t7(!0),ed.success("已应用精准修改"))},children:"应用到文档"}),(0,l.jsx)(p.Ay,{onClick:()=>e2(null),children:"返回计划"}),(0,l.jsx)(p.Ay,{danger:!0,onClick:()=>{e0(null),e2(null)},children:"放弃"})]})]})}),e7&&(0,l.jsx)("div",{style:{borderTop:"1px solid var(--colorBorderSecondary)",paddingTop:12},children:(0,l.jsx)(g.A,{size:"small",dataSource:e4,locale:{emptyText:"暂无历史版本"},renderItem:e=>(0,l.jsx)(g.A.Item,{actions:[(0,l.jsx)(p.Ay,{size:"small",disabled:eQ,onClick:()=>{t3(eW,"恢复前版本"),eG(e.content),t7(!0),ed.success("已恢复历史版本")},children:"恢复"},"restore")],children:(0,l.jsx)(g.A.Item.Meta,{title:(0,l.jsxs)(o.A,{children:[(0,l.jsx)(Y,{children:new Date(e.createdAt).toLocaleString()}),(0,l.jsx)(a.A,{children:e.prompt})]}),description:(0,l.jsx)(Y,{type:"secondary",ellipsis:!0,children:e.content.replace(/\s+/gu," ").slice(0,120)})})})})})]})})]})},{key:"chapters-facts",label:"章节与事实",children:(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[eP.chapters.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsxs)(Y,{strong:!0,style:{fontSize:13,marginBottom:8,display:"block"},children:["章节 (",eP.chapters.length,")"]}),(0,l.jsx)(g.A,{size:"small",dataSource:eP.chapters,renderItem:e=>(0,l.jsx)(g.A.Item,{children:(0,l.jsx)(g.A.Item.Meta,{title:e.title,description:"证据: ".concat(e.evidence.length," \xb7 缺失: ").concat(e.missingFacts.length)})})})]}),eP.structuredFacts.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsxs)(Y,{strong:!0,style:{fontSize:13,marginBottom:8,display:"block"},children:["结构化事实 (",eP.structuredFacts.length,")"]}),(0,l.jsx)(A.A,{size:"small",column:1,bordered:!0,children:eP.structuredFacts.map((e,t)=>(0,l.jsxs)(A.A.Item,{label:e.key,children:[(0,l.jsx)("span",{children:e.value}),(0,l.jsx)(a.A,{style:{marginLeft:8},children:e.confidence.toFixed(2)}),(0,l.jsx)(Y,{type:"secondary",style:{fontSize:11,marginLeft:8},children:e.sourceFile})]},t))})]})]})},{key:"sources-missing",label:"来源与缺失",children:(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)(Y,{strong:!0,style:{fontSize:13,marginBottom:8,display:"block"},children:["引用来源 (",eP.sources.length,")"]}),0===eP.sources.length?(0,l.jsx)(m.A,{description:"暂无"}):(0,l.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:eP.sources.map(e=>(0,l.jsxs)(a.A,{color:"blue",children:[e.filePath," (",e.count,")"]},e.filePath))})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)(Y,{strong:!0,style:{fontSize:13,marginBottom:8,display:"block"},children:["缺失项 (",eP.missingItems.length,")"]}),0===eP.missingItems.length?(0,l.jsx)(m.A,{description:"无缺失"}):(0,l.jsx)(g.A,{size:"small",dataSource:eP.missingItems,renderItem:e=>(0,l.jsx)(g.A.Item,{children:e})})]})]})},{key:"validation",label:"校验 (".concat(eP.validationIssues.length,")"),children:0===eP.validationIssues.length?(0,l.jsx)(m.A,{description:"校验通过"}):(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[eP.validationIssues.map(e=>(0,l.jsxs)("div",{style:{border:"1px solid var(--colorBorderSecondary)",borderRadius:8,padding:12},children:[(0,l.jsx)(a.A,{color:"error"===e.level?"error":"warning"===e.level?"warning":"blue",children:e.level}),(0,l.jsx)("div",{style:{marginTop:6,whiteSpace:"pre-wrap",overflowWrap:"anywhere",wordBreak:"break-all",lineHeight:1.6},children:e.message}),e.suggestion&&(0,l.jsx)("div",{style:{marginTop:6,color:"var(--colorTextSecondary)",whiteSpace:"pre-wrap",overflowWrap:"anywhere",wordBreak:"break-all"},children:e.suggestion})]},"".concat(e.level,"-").concat(e.message))),eP.exportGate.checklist.length>0&&(0,l.jsxs)("div",{style:{marginTop:8},children:[(0,l.jsx)(Y,{strong:!0,style:{fontSize:13,marginBottom:8,display:"block"},children:"导出门禁"}),(0,l.jsx)(g.A,{size:"small",dataSource:eP.exportGate.checklist,renderItem:e=>(0,l.jsxs)(g.A.Item,{children:[(0,l.jsx)(Y,{style:{overflowWrap:"anywhere",wordBreak:"break-word"},children:e.label}),(0,l.jsx)(a.A,{color:e.passed?"success":"error",children:e.passed?"PASS":"FAIL"})]})})]})]})},{key:"stages",label:"执行阶段 (".concat(eP.executionStages.length,")"),children:(0,l.jsx)(g.A,{size:"small",dataSource:eP.executionStages,renderItem:e=>(0,l.jsxs)(g.A.Item,{children:[(0,l.jsx)(g.A.Item.Meta,{avatar:er[e.type]||(0,l.jsx)(D.A,{}),title:(0,l.jsx)(Y,{title:e.roleId,style:{overflowWrap:"anywhere",wordBreak:"break-word"},children:"".concat(eo[e.type]||e.type," \xb7 ").concat(e.roleName||t_(e.roleId))}),description:(0,l.jsx)(Y,{type:"secondary",style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",wordBreak:"break-word"},children:e.message})}),(0,l.jsx)(a.A,{color:"success"===e.status?"success":"failed"===e.status?"error":"skipped"===e.status?"default":"warning",children:e.status})]})})}]})})]})}),(0,l.jsx)(f.A,{title:ec("documents.templateEditor"),open:e9,onClose:()=>te(!1),size:860,mask:{closable:!1},styles:{body:{padding:20,overflow:"auto"},header:{borderBottom:"1px solid var(--colorBorderSecondary)"}},extra:(0,l.jsxs)(o.A,{children:[(0,l.jsx)(p.Ay,{onClick:()=>te(!1),children:ec("common.cancel")}),(0,l.jsx)(p.Ay,{type:"primary",onClick:()=>{tX()},children:ec("common.save")})]}),children:(0,l.jsxs)(d.A,{form:eu,layout:"vertical",requiredMark:"optional",children:[(0,l.jsxs)(y.A,{gutter:12,children:[(0,l.jsx)(d.A.Item,{name:"id",hidden:!0,children:(0,l.jsx)(s.A,{})}),(0,l.jsx)(w.A,{xs:24,md:8,children:(0,l.jsx)(d.A.Item,{name:"name",label:ec("documents.templateName"),rules:[{required:!0}],children:(0,l.jsx)(s.A,{})})}),(0,l.jsx)(w.A,{xs:24,md:8,children:(0,l.jsx)(d.A.Item,{name:"category",label:ec("documents.templateCategory"),children:(0,l.jsx)(s.A,{})})}),(0,l.jsx)(w.A,{xs:24,md:8,children:(0,l.jsx)(d.A.Item,{name:"outputTitle",label:ec("documents.outputTitle"),children:(0,l.jsx)(s.A,{})})}),(0,l.jsx)(w.A,{xs:24,md:12,children:(0,l.jsx)(d.A.Item,{name:"description",label:ec("documents.templateDescription"),children:(0,l.jsx)(s.A,{})})})]}),(0,l.jsx)(d.A.Item,{name:"projectRoleConfigId",label:ec("documents.projectRoleConfig"),rules:[{required:!0,message:ec("documents.projectRoleConfigRequired")}],children:(0,l.jsx)(S.A,{showSearch:!0,placeholder:ec("documents.projectRoleConfigRequired"),options:tM})}),(0,l.jsxs)("div",{style:{marginBottom:16},children:[(0,l.jsxs)(o.A,{style:{width:"100%",justifyContent:"space-between",marginBottom:8},children:[(0,l.jsx)(Y,{strong:!0,children:"项目文件绑定"}),(0,l.jsx)(a.A,{color:"blue",children:"按文件角色多选"})]}),(0,l.jsx)(Z,{type:"info",title:"每个文件角色可直接勾选文件或文件夹;勾选文件夹会自动绑定该文件夹下所有文件。保存时仍按具体文件路径绑定,兼容现有模板和生成流程。",style:{marginBottom:12}}),(0,l.jsx)(s.A.Search,{allowClear:!0,placeholder:"搜索文件或文件夹",value:eC,onChange:e=>ez(e.target.value),style:{marginBottom:12}}),ek?(0,l.jsxs)("div",{style:{textAlign:"center",padding:24},children:[(0,l.jsx)(j.A,{}),(0,l.jsx)("div",{style:{marginTop:12,color:"var(--colorTextSecondary)"},children:"正在加载知识库文件…"})]}):0===ti.length?(0,l.jsx)(m.A,{image:m.A.PRESENTED_IMAGE_SIMPLE,description:tl?"当前项目角色未配置文件角色":"请先选择项目角色"}):0===tc.length?(0,l.jsx)(m.A,{image:m.A.PRESENTED_IMAGE_SIMPLE,description:"暂无知识库文件"}):(()=>{let e=null==to?void 0:to.value,t=e?en(ta[e]||[]).filter(e=>tu.includes(e)):[],r=new Set(ei(td));return(0,l.jsxs)(y.A,{gutter:12,children:[(0,l.jsx)(w.A,{xs:24,md:7,children:(0,l.jsx)(h.A,{size:"small",title:"文件角色",bodyStyle:{padding:8,maxHeight:360,overflow:"auto"},children:(0,l.jsx)(o.A,{direction:"vertical",style:{width:"100%"},size:6,children:ti.map(t=>{let r=en(ta[t.value]||[]).filter(e=>tu.includes(e)).length;return(0,l.jsx)(p.Ay,{block:!0,type:t.value===e?"primary":"default",onClick:()=>eR(t.value),style:{textAlign:"left",height:"auto",padding:"6px 8px"},children:(0,l.jsxs)(o.A,{style:{width:"100%",justifyContent:"space-between"},children:[(0,l.jsx)("span",{children:t.label}),(0,l.jsx)(a.A,{color:r>0?"blue":"default",children:r})]})},t.value)})})})}),(0,l.jsx)(w.A,{xs:24,md:17,children:(0,l.jsxs)(h.A,{size:"small",title:(0,l.jsxs)(o.A,{children:[(0,l.jsx)(Y,{children:null==to?void 0:to.label}),(0,l.jsxs)(a.A,{color:"blue",children:["已选 ",t.length]})]}),extra:(0,l.jsx)(p.Ay,{size:"small",disabled:!e||0===t.length,onClick:()=>e&&tU(e,[]),children:"清空"}),children:[e&&(0,l.jsx)(d.A.Item,{name:["fileBindingGroups",e],hidden:!0,children:(0,l.jsx)(s.A,{})}),(0,l.jsx)("div",{style:{marginBottom:8,color:"var(--colorTextSecondary)",fontSize:12},children:t.length>0?t.slice(0,4).map(es).join("、")+(t.length>4?" 等 ".concat(t.length," 个文件"):""):"未选择文件"}),(0,l.jsx)(b.A,{checkable:!0,blockNode:!0,height:360,treeData:td,checkedKeys:t,expandedKeys:eC.trim()?th:eE,onExpand:e=>eM(e),onCheck:(l,n)=>{if(!e)return;let s=new Set(t.filter(e=>!r.has(e)));for(let e of n.checkedNodes)e.isFolder?ei([e]).forEach(e=>s.add(e)):s.add(e.key);tU(e,Array.from(s))}})]})})]})})()]}),(0,l.jsx)(Z,{type:"info",title:"文档规范由后台根据模板、提示词和角色绑定自动生成,无需手动维护规范包。"})]})})]})}}},e=>{e.O(0,[433,787,576,195,375,506,797,621,636,593,792],()=>e(e.s=16403)),_N_E=e.O()}]);